UNPKG

@argus-labs/proto

Version:

Generated TypeScript protobuf definitions for Argus Labs World Engine

153 lines (133 loc) 4.39 kB
// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file isc/v1/epoch.proto (package isc.v1, syntax proto3) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; import type { SignedCommand } from "./command_pb"; import { file_isc_v1_command } from "./command_pb"; import type { JsonObject, Message } from "@bufbuild/protobuf"; /** * Describes the file isc/v1/epoch.proto. */ export const file_isc_v1_epoch: GenFile = /*@__PURE__*/ fileDesc("ChJpc2MvdjEvZXBvY2gucHJvdG8SBmlzYy52MSJBCgVFcG9jaBIbCgV0aWNrcxgBIAMoCzIMLmlzYy52MS5UaWNrEgwKBGhhc2gYAiABKAwSDQoFZXBvY2gYAyABKAQicgoEVGljaxInCghjb21tYW5kcxgBIAMoCzIVLmlzYy52MS5TaWduZWRDb21tYW5kEiAKBmV2ZW50cxgCIAMoCzIQLmlzYy52MS5SYXdFdmVudBIMCgR0aWNrGAMgASgEEhEKCXRpbWVzdGFtcBgEIAEoBCLCAQoIUmF3RXZlbnQSKAoHcGF5bG9hZBgBIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSKAoEa2luZBgCIAEoDjIaLmlzYy52MS5SYXdFdmVudC5FdmVudEtpbmQiYgoJRXZlbnRLaW5kEhoKFkVWRU5UX0tJTkRfVU5TUEVDSUZJRUQQABIWChJFVkVOVF9LSU5EX0RFRkFVTFQQARIhCh1FVkVOVF9LSU5EX0lOVEVSU0hBUkRfQ09NTUFORBAQQjhaNmdpdGh1Yi5jb20vYXJndXMtbGFicy9nby1lY3MvcHJvdG8vZ2VuL2dvL2lzYy92MTtpc2N2MWIGcHJvdG8z", [file_google_protobuf_struct, file_isc_v1_command]); /** * Epoch represents a collection of ticks and a hash of the epoch. * * @generated from message isc.v1.Epoch */ export type Epoch = Message<"isc.v1.Epoch"> & { /** * All ticks that occurred in this epoch. * * @generated from field: repeated isc.v1.Tick ticks = 1; */ ticks: Tick[]; /** * Hash of the epoch for integrity verification. * * @generated from field: bytes hash = 2; */ hash: Uint8Array; /** * The epoch number when this event was emitted. * * @generated from field: uint64 epoch = 3; */ epoch: bigint; }; /** * Describes the message isc.v1.Epoch. * Use `create(EpochSchema)` to create a new message. */ export const EpochSchema: GenMessage<Epoch> = /*@__PURE__*/ messageDesc(file_isc_v1_epoch, 0); /** * Tick represents a single state change in Cardinal. * * @generated from message isc.v1.Tick */ export type Tick = Message<"isc.v1.Tick"> & { /** * Commands processed during this tick. * * @generated from field: repeated isc.v1.SignedCommand commands = 1; */ commands: SignedCommand[]; /** * Events emitted during this tick. * * @generated from field: repeated isc.v1.RawEvent events = 2; */ events: RawEvent[]; /** * Tick number (monotonically increasing). * * @generated from field: uint64 tick = 3; */ tick: bigint; /** * Timestamp of the tick in unix microseconds. * * @generated from field: uint64 timestamp = 4; */ timestamp: bigint; }; /** * Describes the message isc.v1.Tick. * Use `create(TickSchema)` to create a new message. */ export const TickSchema: GenMessage<Tick> = /*@__PURE__*/ messageDesc(file_isc_v1_epoch, 1); /** * @generated from message isc.v1.RawEvent */ export type RawEvent = Message<"isc.v1.RawEvent"> & { /** * The raw event payload. * * @generated from field: google.protobuf.Struct payload = 1; */ payload?: JsonObject; /** * The type of this raw event. * * @generated from field: isc.v1.RawEvent.EventKind kind = 2; */ kind: RawEvent_EventKind; }; /** * Describes the message isc.v1.RawEvent. * Use `create(RawEventSchema)` to create a new message. */ export const RawEventSchema: GenMessage<RawEvent> = /*@__PURE__*/ messageDesc(file_isc_v1_epoch, 2); /** * @generated from enum isc.v1.RawEvent.EventKind */ export enum RawEvent_EventKind { /** * KIND_UNSPECIFIED is an invalid state and should not be used. * * @generated from enum value: EVENT_KIND_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * The default event kind emitted by ECS. * * @generated from enum value: EVENT_KIND_DEFAULT = 1; */ DEFAULT = 1, /** * Cardinal specific event kind for inter-shard commands. * * @generated from enum value: EVENT_KIND_INTERSHARD_COMMAND = 16; */ INTERSHARD_COMMAND = 16, } /** * Describes the enum isc.v1.RawEvent.EventKind. */ export const RawEvent_EventKindSchema: GenEnum<RawEvent_EventKind> = /*@__PURE__*/ enumDesc(file_isc_v1_epoch, 2, 0);