@argus-labs/proto
Version:
Generated TypeScript protobuf definitions for Argus Labs World Engine
87 lines (75 loc) • 2.78 kB
text/typescript
// @generated by protoc-gen-es v2.2.3 with parameter "target=ts"
// @generated from file isc/v1/command.proto (package isc.v1, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
import type { JsonObject, Message } from "@bufbuild/protobuf";
/**
* Describes the file isc/v1/command.proto.
*/
export const file_isc_v1_command: GenFile = /*@__PURE__*/
fileDesc("ChRpc2MvdjEvY29tbWFuZC5wcm90bxIGaXNjLnYxImsKDVNpZ25lZENvbW1hbmQSHQoJc2lnbmF0dXJlGAEgASgMQgq6SAfIAQF6AmhAEiIKDnNpZ25lcl9hZGRyZXNzGAIgASgMQgq6SAfIAQF6AmggEhcKB2NvbW1hbmQYAyABKAxCBrpIA8gBASKXAQoHQ29tbWFuZBIwCgdwYXlsb2FkGAEgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEIGukgDyAEBEi0KBG5hbWUYAiABKAlCH7pIHMgBAXIXEAEYgAEyEF5bYS16QS1aMC05Xy1dKyQSKwoFZ3JvdXAYAyABKAlCHLpIGXIXEAAYgAEyEF5bYS16QS1aMC05Xy1dKiRCOFo2Z2l0aHViLmNvbS9hcmd1cy1sYWJzL2dvLWVjcy9wcm90by9nZW4vZ28vaXNjL3YxO2lzY3YxYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_struct]);
/**
* SignedCommand is a wrapper around a command that carries a signature of the command payload.
*
* @generated from message isc.v1.SignedCommand
*/
export type SignedCommand = Message<"isc.v1.SignedCommand"> & {
/**
* The signature of the command.
*
* @generated from field: bytes signature = 1;
*/
signature: Uint8Array;
/**
* The address of the signer. Right now this is just the public key.
*
* @generated from field: bytes signer_address = 2;
*/
signerAddress: Uint8Array;
/**
* The command itself.
*
* @generated from field: bytes command = 3;
*/
command: Uint8Array;
};
/**
* Describes the message isc.v1.SignedCommand.
* Use `create(SignedCommandSchema)` to create a new message.
*/
export const SignedCommandSchema: GenMessage<SignedCommand> = /*@__PURE__*/
messageDesc(file_isc_v1_command, 0);
/**
* Command represents an input to trigger systems in Cardinal.
*
* @generated from message isc.v1.Command
*/
export type Command = Message<"isc.v1.Command"> & {
/**
* The payload of the command.
*
* @generated from field: google.protobuf.Struct payload = 1;
*/
payload?: JsonObject;
/**
* The command name.
*
* @generated from field: string name = 2;
*/
name: string;
/**
* Optional command group.
*
* @generated from field: string group = 3;
*/
group: string;
};
/**
* Describes the message isc.v1.Command.
* Use `create(CommandSchema)` to create a new message.
*/
export const CommandSchema: GenMessage<Command> = /*@__PURE__*/
messageDesc(file_isc_v1_command, 1);