@zlink-systems/framework 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts/Configuration/Builders.d.ts +0 -2
- package/dist/contracts/Configuration/Configs.d.ts +1 -0
- package/dist/contracts/Configuration/RegistrationTypes.d.ts +1 -2
- package/dist/contracts/Locations/Authority.d.ts +1 -7
- package/dist/runtime/actors/actor-authority-publication.js +25 -22
- package/dist/runtime/actors/actor-creation.js +30 -9
- package/dist/runtime/actors/actor-runtime-state.d.ts +3 -0
- package/dist/runtime/actors/index.d.ts +3 -0
- package/dist/runtime/actors/index.js +14 -3
- package/dist/runtime/admission.d.ts +2 -0
- package/dist/runtime/admission.js +11 -5
- package/dist/runtime/backend/contracts/index.d.ts +4 -1
- package/dist/runtime/backend/node/node-mesh-backend-adapter.d.ts +1 -0
- package/dist/runtime/backend/node/node-mesh-backend-adapter.js +1 -1
- package/dist/runtime/backend/node/node-raw-binding-port.d.ts +2 -1
- package/dist/runtime/backend/node/node-raw-binding-port.js +12 -5
- package/dist/runtime/backend/node/node-raw-mesh-backend.d.ts +1 -1
- package/dist/runtime/backend/node/node-socket-backend-adapter.js +6 -0
- package/dist/runtime/channels/channel-socket-options.js +7 -0
- package/dist/runtime/channels/channel-socket-registry.js +3 -0
- package/dist/runtime/foundation/service-stateful-runtime.d.ts +1 -1
- package/dist/runtime/foundation/service-stateful-runtime.js +1 -5
- package/dist/runtime/host/actor-placement-coordinator.d.ts +14 -5
- package/dist/runtime/host/actor-placement-coordinator.js +159 -47
- package/dist/runtime/host/index.d.ts +2 -1
- package/dist/runtime/host/index.js +77 -120
- package/dist/runtime/host/location-runtime-owner.js +4 -2
- package/dist/runtime/host/remote-actor-join-receiver.js +12 -3
- package/dist/runtime/locations/creation-operation-id.d.ts +4 -0
- package/dist/runtime/locations/creation-operation-id.js +12 -0
- package/dist/runtime/locations/in-memory-authority-store.js +8 -22
- package/dist/runtime/locations/location-store-repository.js +36 -59
- package/dist/runtime/locations/opaque-record-key.d.ts +5 -0
- package/dist/runtime/locations/opaque-record-key.js +16 -0
- package/dist/runtime/locations/runtime.d.ts +7 -0
- package/dist/runtime/locations/runtime.js +130 -42
- package/dist/runtime/protocol/service_wire_codec.generated.d.ts +1672 -0
- package/dist/runtime/protocol/service_wire_codec.generated.js +9169 -0
- package/dist/runtime/spots/spot-node-runtime-manager.js +2 -2
- package/package.json +2 -2
- package/src/contracts/Configuration/Builders.ts +0 -2
- package/src/contracts/Configuration/Configs.ts +1 -0
- package/src/contracts/Configuration/RegistrationTypes.ts +1 -2
- package/src/contracts/Locations/Authority.ts +1 -8
- package/src/runtime/actors/actor-authority-publication.ts +25 -22
- package/src/runtime/actors/actor-creation.ts +45 -11
- package/src/runtime/actors/actor-runtime-state.ts +4 -0
- package/src/runtime/actors/index.ts +32 -4
- package/src/runtime/admission.ts +8 -5
- package/src/runtime/backend/contracts/index.ts +4 -1
- package/src/runtime/backend/node/node-mesh-backend-adapter.ts +2 -1
- package/src/runtime/backend/node/node-raw-binding-port.ts +16 -5
- package/src/runtime/backend/node/node-raw-mesh-backend.ts +1 -1
- package/src/runtime/backend/node/node-socket-backend-adapter.ts +7 -0
- package/src/runtime/channels/channel-socket-options.ts +9 -0
- package/src/runtime/channels/channel-socket-registry.ts +4 -0
- package/src/runtime/foundation/service-stateful-runtime.ts +2 -6
- package/src/runtime/host/actor-placement-coordinator.ts +216 -77
- package/src/runtime/host/index.ts +95 -135
- package/src/runtime/host/location-runtime-owner.ts +4 -2
- package/src/runtime/host/remote-actor-join-receiver.ts +15 -3
- package/src/runtime/locations/creation-operation-id.ts +11 -0
- package/src/runtime/locations/in-memory-authority-store.ts +7 -29
- package/src/runtime/locations/location-store-repository.ts +71 -69
- package/src/runtime/locations/opaque-record-key.ts +26 -0
- package/src/runtime/locations/runtime.ts +154 -60
- package/src/runtime/protocol/service_wire_codec.generated.ts +8302 -0
- package/src/runtime/protocol/service_wire_pilot_codec.generated.ts +1 -1
- package/src/runtime/spots/spot-node-runtime-manager.ts +2 -2
|
@@ -0,0 +1,1672 @@
|
|
|
1
|
+
export type ServiceWireRuntimePredicate = (terminalResult: number, failureCode: number) => boolean;
|
|
2
|
+
export type ServiceWireDecoderContext = Readonly<{
|
|
3
|
+
originalOperationKind?: MeshOperationKind;
|
|
4
|
+
durableRelocationPresent?: boolean;
|
|
5
|
+
applicationSnapshotPresent?: boolean;
|
|
6
|
+
readonly effectiveCompleteMessageBytesMinusActualEnvelopeOverhead?: number | bigint;
|
|
7
|
+
readonly effectiveCompleteMessageBytes?: number | bigint;
|
|
8
|
+
runtimePredicates: Readonly<Record<string, ServiceWireRuntimePredicate>>;
|
|
9
|
+
}>;
|
|
10
|
+
export type U8 = number;
|
|
11
|
+
export declare function decodeU8(bytes: Uint8Array, context: ServiceWireDecoderContext): U8;
|
|
12
|
+
export declare function encodeU8(value: U8, context: ServiceWireDecoderContext): Uint8Array;
|
|
13
|
+
export type U16 = number;
|
|
14
|
+
export declare function decodeU16(bytes: Uint8Array, context: ServiceWireDecoderContext): U16;
|
|
15
|
+
export declare function encodeU16(value: U16, context: ServiceWireDecoderContext): Uint8Array;
|
|
16
|
+
export type U32 = number;
|
|
17
|
+
export declare function decodeU32(bytes: Uint8Array, context: ServiceWireDecoderContext): U32;
|
|
18
|
+
export declare function encodeU32(value: U32, context: ServiceWireDecoderContext): Uint8Array;
|
|
19
|
+
export type NonzeroU32 = number;
|
|
20
|
+
export declare function decodeNonzeroU32(bytes: Uint8Array, context: ServiceWireDecoderContext): NonzeroU32;
|
|
21
|
+
export declare function encodeNonzeroU32(value: NonzeroU32, context: ServiceWireDecoderContext): Uint8Array;
|
|
22
|
+
export type U64 = bigint;
|
|
23
|
+
export declare function decodeU64(bytes: Uint8Array, context: ServiceWireDecoderContext): U64;
|
|
24
|
+
export declare function encodeU64(value: U64, context: ServiceWireDecoderContext): Uint8Array;
|
|
25
|
+
export type NonzeroU64 = bigint;
|
|
26
|
+
export declare function decodeNonzeroU64(bytes: Uint8Array, context: ServiceWireDecoderContext): NonzeroU64;
|
|
27
|
+
export declare function encodeNonzeroU64(value: NonzeroU64, context: ServiceWireDecoderContext): Uint8Array;
|
|
28
|
+
export type OrdinalOrZero = bigint;
|
|
29
|
+
export declare function decodeOrdinalOrZero(bytes: Uint8Array, context: ServiceWireDecoderContext): OrdinalOrZero;
|
|
30
|
+
export declare function encodeOrdinalOrZero(value: OrdinalOrZero, context: ServiceWireDecoderContext): Uint8Array;
|
|
31
|
+
export type RelocationLogicalLength = bigint;
|
|
32
|
+
export declare function decodeRelocationLogicalLength(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationLogicalLength;
|
|
33
|
+
export declare function encodeRelocationLogicalLength(value: RelocationLogicalLength, context: ServiceWireDecoderContext): Uint8Array;
|
|
34
|
+
export type RelocationChunkCount = number;
|
|
35
|
+
export declare function decodeRelocationChunkCount(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationChunkCount;
|
|
36
|
+
export declare function encodeRelocationChunkCount(value: RelocationChunkCount, context: ServiceWireDecoderContext): Uint8Array;
|
|
37
|
+
export type ApplicationVersion = bigint;
|
|
38
|
+
export declare function decodeApplicationVersion(bytes: Uint8Array, context: ServiceWireDecoderContext): ApplicationVersion;
|
|
39
|
+
export declare function encodeApplicationVersion(value: ApplicationVersion, context: ServiceWireDecoderContext): Uint8Array;
|
|
40
|
+
export type Bool8 = "false" | "true";
|
|
41
|
+
export declare function enumWireBool8(value: Bool8): number;
|
|
42
|
+
export declare function decodeBool8(bytes: Uint8Array, context: ServiceWireDecoderContext): Bool8;
|
|
43
|
+
export declare function encodeBool8(value: Bool8, context: ServiceWireDecoderContext): Uint8Array;
|
|
44
|
+
export type Rid = Uint8Array;
|
|
45
|
+
export declare function decodeRid(bytes: Uint8Array, context: ServiceWireDecoderContext): Rid;
|
|
46
|
+
export declare function encodeRid(value: Rid, context: ServiceWireDecoderContext): Uint8Array;
|
|
47
|
+
export type OptionalRid = Uint8Array | null;
|
|
48
|
+
export declare function decodeOptionalRid(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalRid;
|
|
49
|
+
export declare function encodeOptionalRid(value: OptionalRid, context: ServiceWireDecoderContext): Uint8Array;
|
|
50
|
+
export type Text8 = string;
|
|
51
|
+
export declare function decodeText8(bytes: Uint8Array, context: ServiceWireDecoderContext): Text8;
|
|
52
|
+
export declare function encodeText8(value: Text8, context: ServiceWireDecoderContext): Uint8Array;
|
|
53
|
+
export type OptionalText8 = string | null;
|
|
54
|
+
export declare function decodeOptionalText8(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalText8;
|
|
55
|
+
export declare function encodeOptionalText8(value: OptionalText8, context: ServiceWireDecoderContext): Uint8Array;
|
|
56
|
+
export type Sha256Bytes = Uint8Array;
|
|
57
|
+
export declare function decodeSha256Bytes(bytes: Uint8Array, context: ServiceWireDecoderContext): Sha256Bytes;
|
|
58
|
+
export declare function encodeSha256Bytes(value: Sha256Bytes, context: ServiceWireDecoderContext): Uint8Array;
|
|
59
|
+
export type CreationRequestSize = number;
|
|
60
|
+
export declare function decodeCreationRequestSize(bytes: Uint8Array, context: ServiceWireDecoderContext): CreationRequestSize;
|
|
61
|
+
export declare function encodeCreationRequestSize(value: CreationRequestSize, context: ServiceWireDecoderContext): Uint8Array;
|
|
62
|
+
export type Text16 = string;
|
|
63
|
+
export declare function decodeText16(bytes: Uint8Array, context: ServiceWireDecoderContext): Text16;
|
|
64
|
+
export declare function encodeText16(value: Text16, context: ServiceWireDecoderContext): Uint8Array;
|
|
65
|
+
export type NonemptyText16 = string;
|
|
66
|
+
export declare function decodeNonemptyText16(bytes: Uint8Array, context: ServiceWireDecoderContext): NonemptyText16;
|
|
67
|
+
export declare function encodeNonemptyText16(value: NonemptyText16, context: ServiceWireDecoderContext): Uint8Array;
|
|
68
|
+
export type Endpoint = string;
|
|
69
|
+
export declare function decodeEndpoint(bytes: Uint8Array, context: ServiceWireDecoderContext): Endpoint;
|
|
70
|
+
export declare function encodeEndpoint(value: Endpoint, context: ServiceWireDecoderContext): Uint8Array;
|
|
71
|
+
export type Blob16 = Uint8Array;
|
|
72
|
+
export declare function decodeBlob16(bytes: Uint8Array, context: ServiceWireDecoderContext): Blob16;
|
|
73
|
+
export declare function encodeBlob16(value: Blob16, context: ServiceWireDecoderContext): Uint8Array;
|
|
74
|
+
export type NonemptyBlob16 = Uint8Array;
|
|
75
|
+
export declare function decodeNonemptyBlob16(bytes: Uint8Array, context: ServiceWireDecoderContext): NonemptyBlob16;
|
|
76
|
+
export declare function encodeNonemptyBlob16(value: NonemptyBlob16, context: ServiceWireDecoderContext): Uint8Array;
|
|
77
|
+
export type PacketName = string;
|
|
78
|
+
export declare function decodePacketName(bytes: Uint8Array, context: ServiceWireDecoderContext): PacketName;
|
|
79
|
+
export declare function encodePacketName(value: PacketName, context: ServiceWireDecoderContext): Uint8Array;
|
|
80
|
+
export type ContentType = string;
|
|
81
|
+
export declare function decodeContentType(bytes: Uint8Array, context: ServiceWireDecoderContext): ContentType;
|
|
82
|
+
export declare function encodeContentType(value: ContentType, context: ServiceWireDecoderContext): Uint8Array;
|
|
83
|
+
export type ApplicationPayloadBytes = Uint8Array;
|
|
84
|
+
export declare function decodeApplicationPayloadBytes(bytes: Uint8Array, context: ServiceWireDecoderContext): ApplicationPayloadBytes;
|
|
85
|
+
export declare function encodeApplicationPayloadBytes(value: ApplicationPayloadBytes, context: ServiceWireDecoderContext): Uint8Array;
|
|
86
|
+
export type ApplicationPayloadEnvelopeV1 = {
|
|
87
|
+
readonly packetName: PacketName;
|
|
88
|
+
readonly contentType: ContentType;
|
|
89
|
+
readonly payload: ApplicationPayloadBytes;
|
|
90
|
+
};
|
|
91
|
+
export declare function decodeApplicationPayloadEnvelopeV1(bytes: Uint8Array, context: ServiceWireDecoderContext): ApplicationPayloadEnvelopeV1;
|
|
92
|
+
export declare function encodeApplicationPayloadEnvelopeV1(value: ApplicationPayloadEnvelopeV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
93
|
+
export type MetadataValue = string;
|
|
94
|
+
export declare function decodeMetadataValue(bytes: Uint8Array, context: ServiceWireDecoderContext): MetadataValue;
|
|
95
|
+
export declare function encodeMetadataValue(value: MetadataValue, context: ServiceWireDecoderContext): Uint8Array;
|
|
96
|
+
export type MetadataEntry = {
|
|
97
|
+
readonly key: Text8;
|
|
98
|
+
readonly value: MetadataValue;
|
|
99
|
+
};
|
|
100
|
+
export declare function decodeMetadataEntry(bytes: Uint8Array, context: ServiceWireDecoderContext): MetadataEntry;
|
|
101
|
+
export declare function encodeMetadataEntry(value: MetadataEntry, context: ServiceWireDecoderContext): Uint8Array;
|
|
102
|
+
export type MetadataFrame = {
|
|
103
|
+
readonly entries: readonly MetadataEntry[];
|
|
104
|
+
};
|
|
105
|
+
export declare function decodeMetadataFrame(bytes: Uint8Array, context: ServiceWireDecoderContext): MetadataFrame;
|
|
106
|
+
export declare function encodeMetadataFrame(value: MetadataFrame, context: ServiceWireDecoderContext): Uint8Array;
|
|
107
|
+
export type RuntimeState = "preparing" | "serving" | "draining" | "stopped" | "error";
|
|
108
|
+
export declare function enumWireRuntimeState(value: RuntimeState): number;
|
|
109
|
+
export declare function decodeRuntimeState(bytes: Uint8Array, context: ServiceWireDecoderContext): RuntimeState;
|
|
110
|
+
export declare function encodeRuntimeState(value: RuntimeState, context: ServiceWireDecoderContext): Uint8Array;
|
|
111
|
+
export type StatefulObjectKind = "actor" | "userSpot" | "instanceSpot";
|
|
112
|
+
export declare function enumWireStatefulObjectKind(value: StatefulObjectKind): number;
|
|
113
|
+
export declare function decodeStatefulObjectKind(bytes: Uint8Array, context: ServiceWireDecoderContext): StatefulObjectKind;
|
|
114
|
+
export declare function encodeStatefulObjectKind(value: StatefulObjectKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
115
|
+
export type ObjectRole = "none" | "client" | "server";
|
|
116
|
+
export declare function enumWireObjectRole(value: ObjectRole): number;
|
|
117
|
+
export declare function decodeObjectRole(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectRole;
|
|
118
|
+
export declare function encodeObjectRole(value: ObjectRole, context: ServiceWireDecoderContext): Uint8Array;
|
|
119
|
+
export type ObjectCapacityLimit = number;
|
|
120
|
+
export declare function decodeObjectCapacityLimit(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectCapacityLimit;
|
|
121
|
+
export declare function encodeObjectCapacityLimit(value: ObjectCapacityLimit, context: ServiceWireDecoderContext): Uint8Array;
|
|
122
|
+
export type ObjectPendingCapacityLimit = number;
|
|
123
|
+
export declare function decodeObjectPendingCapacityLimit(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectPendingCapacityLimit;
|
|
124
|
+
export declare function encodeObjectPendingCapacityLimit(value: ObjectPendingCapacityLimit, context: ServiceWireDecoderContext): Uint8Array;
|
|
125
|
+
export type AuthorityObjectKind = "actor" | "spot";
|
|
126
|
+
export declare function enumWireAuthorityObjectKind(value: AuthorityObjectKind): number;
|
|
127
|
+
export declare function decodeAuthorityObjectKind(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityObjectKind;
|
|
128
|
+
export declare function encodeAuthorityObjectKind(value: AuthorityObjectKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
129
|
+
export type SpotKind = "entry" | "user" | "instance";
|
|
130
|
+
export declare function enumWireSpotKind(value: SpotKind): number;
|
|
131
|
+
export declare function decodeSpotKind(bytes: Uint8Array, context: ServiceWireDecoderContext): SpotKind;
|
|
132
|
+
export declare function encodeSpotKind(value: SpotKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
133
|
+
export type EntryUserSpotAuthorityState = "creating" | "ready" | "closing" | "relocating";
|
|
134
|
+
export declare function enumWireEntryUserSpotAuthorityState(value: EntryUserSpotAuthorityState): number;
|
|
135
|
+
export declare function decodeEntryUserSpotAuthorityState(bytes: Uint8Array, context: ServiceWireDecoderContext): EntryUserSpotAuthorityState;
|
|
136
|
+
export declare function encodeEntryUserSpotAuthorityState(value: EntryUserSpotAuthorityState, context: ServiceWireDecoderContext): Uint8Array;
|
|
137
|
+
export type ActorAuthorityState = "creating" | "ready";
|
|
138
|
+
export declare function enumWireActorAuthorityState(value: ActorAuthorityState): number;
|
|
139
|
+
export declare function decodeActorAuthorityState(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorAuthorityState;
|
|
140
|
+
export declare function encodeActorAuthorityState(value: ActorAuthorityState, context: ServiceWireDecoderContext): Uint8Array;
|
|
141
|
+
export type RelocationPolicyKind = "disabled" | "recreate" | "snapshot";
|
|
142
|
+
export declare function enumWireRelocationPolicyKind(value: RelocationPolicyKind): number;
|
|
143
|
+
export declare function decodeRelocationPolicyKind(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationPolicyKind;
|
|
144
|
+
export declare function encodeRelocationPolicyKind(value: RelocationPolicyKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
145
|
+
export type TimerOverrunPolicyKind = "skipLateTicks" | "catchUpBounded" | "delayNextTick";
|
|
146
|
+
export declare function enumWireTimerOverrunPolicyKind(value: TimerOverrunPolicyKind): number;
|
|
147
|
+
export declare function decodeTimerOverrunPolicyKind(bytes: Uint8Array, context: ServiceWireDecoderContext): TimerOverrunPolicyKind;
|
|
148
|
+
export declare function encodeTimerOverrunPolicyKind(value: TimerOverrunPolicyKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
149
|
+
export type ActorSpotKind = "entry" | "user";
|
|
150
|
+
export declare function enumWireActorSpotKind(value: ActorSpotKind): number;
|
|
151
|
+
export declare function decodeActorSpotKind(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorSpotKind;
|
|
152
|
+
export declare function encodeActorSpotKind(value: ActorSpotKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
153
|
+
export type RelocationRole = "source" | "target" | "coordinator";
|
|
154
|
+
export declare function enumWireRelocationRole(value: RelocationRole): number;
|
|
155
|
+
export declare function decodeRelocationRole(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationRole;
|
|
156
|
+
export declare function encodeRelocationRole(value: RelocationRole, context: ServiceWireDecoderContext): Uint8Array;
|
|
157
|
+
export type ActorJoinResult = "accepted" | "rejected";
|
|
158
|
+
export declare function enumWireActorJoinResult(value: ActorJoinResult): number;
|
|
159
|
+
export declare function decodeActorJoinResult(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorJoinResult;
|
|
160
|
+
export declare function encodeActorJoinResult(value: ActorJoinResult, context: ServiceWireDecoderContext): Uint8Array;
|
|
161
|
+
export type ActorJoinReplyTail = {
|
|
162
|
+
readonly joinResult: "accepted";
|
|
163
|
+
readonly spot: SpotRef;
|
|
164
|
+
readonly membershipEpoch: NonzeroU64;
|
|
165
|
+
readonly receiveChunkLimitBytes: U32;
|
|
166
|
+
} | {
|
|
167
|
+
readonly joinResult: "rejected";
|
|
168
|
+
readonly spot: OptionalSpotRef;
|
|
169
|
+
};
|
|
170
|
+
export declare function decodeActorJoinReplyTail(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorJoinReplyTail;
|
|
171
|
+
export declare function encodeActorJoinReplyTail(value: ActorJoinReplyTail, context: ServiceWireDecoderContext): Uint8Array;
|
|
172
|
+
export type MeshRecordKind = "nodeSend" | "nodeRequest" | "channelSend" | "channelRequest" | "spotSend" | "spotRequest" | "spotMulticast" | "spotControl" | "actorSend" | "actorRequest" | "completion" | "sendReady" | "relocationControl" | "instanceSpotActivation";
|
|
173
|
+
export declare function enumWireMeshRecordKind(value: MeshRecordKind): number;
|
|
174
|
+
export declare function decodeMeshRecordKind(bytes: Uint8Array, context: ServiceWireDecoderContext): MeshRecordKind;
|
|
175
|
+
export declare function encodeMeshRecordKind(value: MeshRecordKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
176
|
+
export type FrozenSourceKind = "node" | "spot" | "actor" | "boundSession";
|
|
177
|
+
export declare function enumWireFrozenSourceKind(value: FrozenSourceKind): number;
|
|
178
|
+
export declare function decodeFrozenSourceKind(bytes: Uint8Array, context: ServiceWireDecoderContext): FrozenSourceKind;
|
|
179
|
+
export declare function encodeFrozenSourceKind(value: FrozenSourceKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
180
|
+
export type MeshDestinationKind = "node" | "channel" | "spot" | "actor" | "boundSession";
|
|
181
|
+
export declare function enumWireMeshDestinationKind(value: MeshDestinationKind): number;
|
|
182
|
+
export declare function decodeMeshDestinationKind(bytes: Uint8Array, context: ServiceWireDecoderContext): MeshDestinationKind;
|
|
183
|
+
export declare function encodeMeshDestinationKind(value: MeshDestinationKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
184
|
+
export type ServiceTopologyKind = "routeMesh" | "clientServer";
|
|
185
|
+
export declare function enumWireServiceTopologyKind(value: ServiceTopologyKind): number;
|
|
186
|
+
export declare function decodeServiceTopologyKind(bytes: Uint8Array, context: ServiceWireDecoderContext): ServiceTopologyKind;
|
|
187
|
+
export declare function encodeServiceTopologyKind(value: ServiceTopologyKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
188
|
+
export type ClientServerRole = "client" | "server";
|
|
189
|
+
export declare function enumWireClientServerRole(value: ClientServerRole): number;
|
|
190
|
+
export declare function decodeClientServerRole(bytes: Uint8Array, context: ServiceWireDecoderContext): ClientServerRole;
|
|
191
|
+
export declare function encodeClientServerRole(value: ClientServerRole, context: ServiceWireDecoderContext): Uint8Array;
|
|
192
|
+
export type ClientServerDirection = "clientToServer";
|
|
193
|
+
export declare function enumWireClientServerDirection(value: ClientServerDirection): number;
|
|
194
|
+
export declare function decodeClientServerDirection(bytes: Uint8Array, context: ServiceWireDecoderContext): ClientServerDirection;
|
|
195
|
+
export declare function encodeClientServerDirection(value: ClientServerDirection, context: ServiceWireDecoderContext): Uint8Array;
|
|
196
|
+
export type ActorLifecycleKind = "created" | "joined" | "left" | "disconnected" | "destroyed";
|
|
197
|
+
export declare function enumWireActorLifecycleKind(value: ActorLifecycleKind): number;
|
|
198
|
+
export declare function decodeActorLifecycleKind(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorLifecycleKind;
|
|
199
|
+
export declare function encodeActorLifecycleKind(value: ActorLifecycleKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
200
|
+
export type BoundSessionBindingState = "active" | "tombstone";
|
|
201
|
+
export declare function enumWireBoundSessionBindingState(value: BoundSessionBindingState): number;
|
|
202
|
+
export declare function decodeBoundSessionBindingState(bytes: Uint8Array, context: ServiceWireDecoderContext): BoundSessionBindingState;
|
|
203
|
+
export declare function encodeBoundSessionBindingState(value: BoundSessionBindingState, context: ServiceWireDecoderContext): Uint8Array;
|
|
204
|
+
export type SessionRelocationRouteAction = "commit" | "abort";
|
|
205
|
+
export declare function enumWireSessionRelocationRouteAction(value: SessionRelocationRouteAction): number;
|
|
206
|
+
export declare function decodeSessionRelocationRouteAction(bytes: Uint8Array, context: ServiceWireDecoderContext): SessionRelocationRouteAction;
|
|
207
|
+
export declare function encodeSessionRelocationRouteAction(value: SessionRelocationRouteAction, context: ServiceWireDecoderContext): Uint8Array;
|
|
208
|
+
export type RelocationPhase = "none" | "preparing" | "captured" | "prepared" | "committed" | "activating" | "activated" | "cleaning" | "completed" | "aborted";
|
|
209
|
+
export declare function enumWireRelocationPhase(value: RelocationPhase): number;
|
|
210
|
+
export declare function decodeRelocationPhase(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationPhase;
|
|
211
|
+
export declare function encodeRelocationPhase(value: RelocationPhase, context: ServiceWireDecoderContext): Uint8Array;
|
|
212
|
+
export type SourceCleanupState = "pending" | "completed" | "sourceLeaseExpired";
|
|
213
|
+
export declare function enumWireSourceCleanupState(value: SourceCleanupState): number;
|
|
214
|
+
export declare function decodeSourceCleanupState(bytes: Uint8Array, context: ServiceWireDecoderContext): SourceCleanupState;
|
|
215
|
+
export declare function encodeSourceCleanupState(value: SourceCleanupState, context: ServiceWireDecoderContext): Uint8Array;
|
|
216
|
+
export type ReplyRelayAckStatus = "terminalReceived" | "alreadyTerminal";
|
|
217
|
+
export declare function enumWireReplyRelayAckStatus(value: ReplyRelayAckStatus): number;
|
|
218
|
+
export declare function decodeReplyRelayAckStatus(bytes: Uint8Array, context: ServiceWireDecoderContext): ReplyRelayAckStatus;
|
|
219
|
+
export declare function encodeReplyRelayAckStatus(value: ReplyRelayAckStatus, context: ServiceWireDecoderContext): Uint8Array;
|
|
220
|
+
export type AuthorityOperationKind = "steady" | "coldActivation" | "maintenanceRelocation" | "close";
|
|
221
|
+
export declare function enumWireAuthorityOperationKind(value: AuthorityOperationKind): number;
|
|
222
|
+
export declare function decodeAuthorityOperationKind(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityOperationKind;
|
|
223
|
+
export declare function encodeAuthorityOperationKind(value: AuthorityOperationKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
224
|
+
export type MeshOperationKind = "none" | "nodeRequest" | "channelRequest" | "spotRequest" | "actorRequest" | "actorLookup" | "actorDestroy" | "actorJoin" | "actorLeave" | "streamBind" | "streamUnbind" | "streamClose" | "instanceSpotRequest" | "userSpotCreate" | "userSpotClose" | "actorCreate";
|
|
225
|
+
export declare function enumWireMeshOperationKind(value: MeshOperationKind): number;
|
|
226
|
+
export declare function decodeMeshOperationKind(bytes: Uint8Array, context: ServiceWireDecoderContext): MeshOperationKind;
|
|
227
|
+
export declare function encodeMeshOperationKind(value: MeshOperationKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
228
|
+
export type RequestTerminalResult = "ok" | "timedOut" | "notFound" | "terminated" | "protocolError" | "internalError" | "rejected" | "conflict" | "busy" | "notConnected" | "invalidArgument" | "invalidState" | "notSupported" | "backpressured";
|
|
229
|
+
export declare function enumWireRequestTerminalResult(value: RequestTerminalResult): number;
|
|
230
|
+
export declare function decodeRequestTerminalResult(bytes: Uint8Array, context: ServiceWireDecoderContext): RequestTerminalResult;
|
|
231
|
+
export declare function encodeRequestTerminalResult(value: RequestTerminalResult, context: ServiceWireDecoderContext): Uint8Array;
|
|
232
|
+
export type FrameworkErrorCode = "none" | "actorRouteNotFound" | "actorCreateFailed" | "actorAlreadyExists" | "actorTypeMismatch" | "spotCreateFailed" | "spotRouteNotFound" | "spotTypeMismatch" | "actorSessionNotBound" | "handlerNotFound" | "routeHandlerNotFound" | "actorDispatchHandlerNotFound" | "payloadDecodeFailed" | "routeNotConnected" | "requestTargetNotFound" | "requestRejected" | "requestProtocolError" | "requestFailed" | "workerQueueFull" | "workerTimedOut" | "workerFailed" | "actorLocationStale" | "actorCreateRejected" | "spotGenerationStale" | "spotMoving" | "relocationDataLost";
|
|
233
|
+
export declare function enumWireFrameworkErrorCode(value: FrameworkErrorCode): number;
|
|
234
|
+
export declare function decodeFrameworkErrorCode(bytes: Uint8Array, context: ServiceWireDecoderContext): FrameworkErrorCode;
|
|
235
|
+
export declare function encodeFrameworkErrorCode(value: FrameworkErrorCode, context: ServiceWireDecoderContext): Uint8Array;
|
|
236
|
+
export type InstanceOperationKind = "send" | "request";
|
|
237
|
+
export declare function enumWireInstanceOperationKind(value: InstanceOperationKind): number;
|
|
238
|
+
export declare function decodeInstanceOperationKind(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceOperationKind;
|
|
239
|
+
export declare function encodeInstanceOperationKind(value: InstanceOperationKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
240
|
+
export type InstanceRouteKind = "ready" | "coldActivation";
|
|
241
|
+
export declare function enumWireInstanceRouteKind(value: InstanceRouteKind): number;
|
|
242
|
+
export declare function decodeInstanceRouteKind(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceRouteKind;
|
|
243
|
+
export declare function encodeInstanceRouteKind(value: InstanceRouteKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
244
|
+
export type UserSpotCreateResult = "existing" | "created" | "rejected";
|
|
245
|
+
export declare function enumWireUserSpotCreateResult(value: UserSpotCreateResult): number;
|
|
246
|
+
export declare function decodeUserSpotCreateResult(bytes: Uint8Array, context: ServiceWireDecoderContext): UserSpotCreateResult;
|
|
247
|
+
export declare function encodeUserSpotCreateResult(value: UserSpotCreateResult, context: ServiceWireDecoderContext): Uint8Array;
|
|
248
|
+
export type ActorCreateResult = "existing" | "created" | "rejected";
|
|
249
|
+
export declare function enumWireActorCreateResult(value: ActorCreateResult): number;
|
|
250
|
+
export declare function decodeActorCreateResult(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorCreateResult;
|
|
251
|
+
export declare function encodeActorCreateResult(value: ActorCreateResult, context: ServiceWireDecoderContext): Uint8Array;
|
|
252
|
+
export type InstanceAuthorityState = "coldActivating" | "ready" | "closing" | "relocating";
|
|
253
|
+
export declare function enumWireInstanceAuthorityState(value: InstanceAuthorityState): number;
|
|
254
|
+
export declare function decodeInstanceAuthorityState(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceAuthorityState;
|
|
255
|
+
export declare function encodeInstanceAuthorityState(value: InstanceAuthorityState, context: ServiceWireDecoderContext): Uint8Array;
|
|
256
|
+
export type ReplyRelayContextKind = "coldActivation" | "maintenanceRelocation";
|
|
257
|
+
export declare function enumWireReplyRelayContextKind(value: ReplyRelayContextKind): number;
|
|
258
|
+
export declare function decodeReplyRelayContextKind(bytes: Uint8Array, context: ServiceWireDecoderContext): ReplyRelayContextKind;
|
|
259
|
+
export declare function encodeReplyRelayContextKind(value: ReplyRelayContextKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
260
|
+
export type ColdActivationCompletionKind = "readyBarrier" | "activationFailure";
|
|
261
|
+
export declare function enumWireColdActivationCompletionKind(value: ColdActivationCompletionKind): number;
|
|
262
|
+
export declare function decodeColdActivationCompletionKind(bytes: Uint8Array, context: ServiceWireDecoderContext): ColdActivationCompletionKind;
|
|
263
|
+
export declare function encodeColdActivationCompletionKind(value: ColdActivationCompletionKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
264
|
+
export type RejectReason = "protocolVersionUnsupported" | "topologyMismatch" | "identityMismatch" | "securityIdentityMismatch" | "channelMismatch" | "lifecycleGenerationStale" | "descriptorRevisionStale" | "capabilityMismatch" | "runtimeNotServing" | "duplicateConnection" | "invalidDescriptor" | "resourceLimit";
|
|
265
|
+
export declare function enumWireRejectReason(value: RejectReason): number;
|
|
266
|
+
export declare function decodeRejectReason(bytes: Uint8Array, context: ServiceWireDecoderContext): RejectReason;
|
|
267
|
+
export declare function encodeRejectReason(value: RejectReason, context: ServiceWireDecoderContext): Uint8Array;
|
|
268
|
+
export type ActorRef = {
|
|
269
|
+
readonly actorId: Text8;
|
|
270
|
+
readonly objectGeneration: NonzeroU64;
|
|
271
|
+
};
|
|
272
|
+
export declare function decodeActorRef(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorRef;
|
|
273
|
+
export declare function encodeActorRef(value: ActorRef, context: ServiceWireDecoderContext): Uint8Array;
|
|
274
|
+
export type SpotRef = {
|
|
275
|
+
readonly spotId: Text8;
|
|
276
|
+
readonly objectGeneration: NonzeroU64;
|
|
277
|
+
};
|
|
278
|
+
export declare function decodeSpotRef(bytes: Uint8Array, context: ServiceWireDecoderContext): SpotRef;
|
|
279
|
+
export declare function encodeSpotRef(value: SpotRef, context: ServiceWireDecoderContext): Uint8Array;
|
|
280
|
+
export type ActorCreateTerminal = {
|
|
281
|
+
readonly createResult: "existing";
|
|
282
|
+
readonly actor: ActorRef;
|
|
283
|
+
} | {
|
|
284
|
+
readonly createResult: "created";
|
|
285
|
+
readonly actor: ActorRef;
|
|
286
|
+
} | {
|
|
287
|
+
readonly createResult: "rejected";
|
|
288
|
+
};
|
|
289
|
+
export declare function decodeActorCreateTerminal(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorCreateTerminal;
|
|
290
|
+
export declare function encodeActorCreateTerminal(value: ActorCreateTerminal, context: ServiceWireDecoderContext): Uint8Array;
|
|
291
|
+
export type CreationOperationTerminalV1 = {
|
|
292
|
+
readonly terminalResult: RequestTerminalResult;
|
|
293
|
+
readonly failureCode: FrameworkErrorCode;
|
|
294
|
+
readonly hasCreation: Bool8;
|
|
295
|
+
readonly creation?: ActorCreateTerminal;
|
|
296
|
+
readonly hasApplicationPayload: Bool8;
|
|
297
|
+
readonly applicationPayload?: ApplicationPayloadEnvelopeV1;
|
|
298
|
+
};
|
|
299
|
+
export declare function decodeCreationOperationTerminalV1(bytes: Uint8Array, context: ServiceWireDecoderContext): CreationOperationTerminalV1;
|
|
300
|
+
export declare function encodeCreationOperationTerminalV1(value: CreationOperationTerminalV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
301
|
+
export type OptionalSpotRef = {
|
|
302
|
+
readonly hasSpot: "false";
|
|
303
|
+
} | {
|
|
304
|
+
readonly hasSpot: "true";
|
|
305
|
+
readonly spot: SpotRef;
|
|
306
|
+
};
|
|
307
|
+
export declare function decodeOptionalSpotRef(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalSpotRef;
|
|
308
|
+
export declare function encodeOptionalSpotRef(value: OptionalSpotRef, context: ServiceWireDecoderContext): Uint8Array;
|
|
309
|
+
export type SpotMembership = {
|
|
310
|
+
readonly spot: SpotRef;
|
|
311
|
+
};
|
|
312
|
+
export declare function decodeSpotMembership(bytes: Uint8Array, context: ServiceWireDecoderContext): SpotMembership;
|
|
313
|
+
export declare function encodeSpotMembership(value: SpotMembership, context: ServiceWireDecoderContext): Uint8Array;
|
|
314
|
+
export type OptionalSpotMembership = {
|
|
315
|
+
readonly hasMembership: "false";
|
|
316
|
+
} | {
|
|
317
|
+
readonly hasMembership: "true";
|
|
318
|
+
readonly membership: SpotMembership;
|
|
319
|
+
};
|
|
320
|
+
export declare function decodeOptionalSpotMembership(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalSpotMembership;
|
|
321
|
+
export declare function encodeOptionalSpotMembership(value: OptionalSpotMembership, context: ServiceWireDecoderContext): Uint8Array;
|
|
322
|
+
export type BoundSessionBindingTransition = {
|
|
323
|
+
readonly bindingState: "active";
|
|
324
|
+
readonly bindingGeneration: NonzeroU64;
|
|
325
|
+
} | {
|
|
326
|
+
readonly bindingState: "tombstone";
|
|
327
|
+
readonly retiredBindingGeneration: NonzeroU64;
|
|
328
|
+
};
|
|
329
|
+
export declare function decodeBoundSessionBindingTransition(bytes: Uint8Array, context: ServiceWireDecoderContext): BoundSessionBindingTransition;
|
|
330
|
+
export declare function encodeBoundSessionBindingTransition(value: BoundSessionBindingTransition, context: ServiceWireDecoderContext): Uint8Array;
|
|
331
|
+
export type RetiredBoundSessionRouteFence = {
|
|
332
|
+
readonly sessionOwnerNodeRid: Rid;
|
|
333
|
+
readonly sessionOwnerNodeGeneration: NonzeroU64;
|
|
334
|
+
readonly sessionOwnerId: Text8;
|
|
335
|
+
readonly sessionOwnerLeaseGeneration: NonzeroU64;
|
|
336
|
+
readonly sessionRid: Rid;
|
|
337
|
+
readonly retiredBindingGeneration: NonzeroU64;
|
|
338
|
+
};
|
|
339
|
+
export declare function decodeRetiredBoundSessionRouteFence(bytes: Uint8Array, context: ServiceWireDecoderContext): RetiredBoundSessionRouteFence;
|
|
340
|
+
export declare function encodeRetiredBoundSessionRouteFence(value: RetiredBoundSessionRouteFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
341
|
+
export type SessionRelocationRouteUpdate = {
|
|
342
|
+
readonly action: "commit";
|
|
343
|
+
readonly previousAuthorityOwnerGeneration: NonzeroU64;
|
|
344
|
+
readonly targetAuthorityOwnerGeneration: NonzeroU64;
|
|
345
|
+
readonly targetNodeRid: Rid;
|
|
346
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
347
|
+
} | {
|
|
348
|
+
readonly action: "abort";
|
|
349
|
+
readonly currentAuthorityOwnerGeneration: NonzeroU64;
|
|
350
|
+
};
|
|
351
|
+
export declare function decodeSessionRelocationRouteUpdate(bytes: Uint8Array, context: ServiceWireDecoderContext): SessionRelocationRouteUpdate;
|
|
352
|
+
export declare function encodeSessionRelocationRouteUpdate(value: SessionRelocationRouteUpdate, context: ServiceWireDecoderContext): Uint8Array;
|
|
353
|
+
export type ObjectCreationKey = {
|
|
354
|
+
readonly objectKind: "actor";
|
|
355
|
+
readonly actorId: Text8;
|
|
356
|
+
} | {
|
|
357
|
+
readonly objectKind: "userSpot";
|
|
358
|
+
readonly spotId: Text8;
|
|
359
|
+
} | {
|
|
360
|
+
readonly objectKind: "instanceSpot";
|
|
361
|
+
readonly spotId: Text8;
|
|
362
|
+
};
|
|
363
|
+
export declare function decodeObjectCreationKey(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectCreationKey;
|
|
364
|
+
export declare function encodeObjectCreationKey(value: ObjectCreationKey, context: ServiceWireDecoderContext): Uint8Array;
|
|
365
|
+
export type ObjectCreationIntentV1 = {
|
|
366
|
+
readonly key: ObjectCreationKey;
|
|
367
|
+
readonly stableType: Text8;
|
|
368
|
+
readonly initialMeshName: Text8;
|
|
369
|
+
readonly requestContentReference: CreationContentReference;
|
|
370
|
+
readonly requestSha256: Sha256Bytes;
|
|
371
|
+
readonly requestEncodedSize: CreationRequestSize;
|
|
372
|
+
};
|
|
373
|
+
export declare function decodeObjectCreationIntentV1(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectCreationIntentV1;
|
|
374
|
+
export declare function encodeObjectCreationIntentV1(value: ObjectCreationIntentV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
375
|
+
export type PendingObjectCreationV1 = {
|
|
376
|
+
readonly reservationId: Text8;
|
|
377
|
+
readonly requestContentReference: CreationContentReference;
|
|
378
|
+
readonly requestSha256: Sha256Bytes;
|
|
379
|
+
readonly requestEncodedSize: CreationRequestSize;
|
|
380
|
+
};
|
|
381
|
+
export declare function decodePendingObjectCreationV1(bytes: Uint8Array, context: ServiceWireDecoderContext): PendingObjectCreationV1;
|
|
382
|
+
export declare function encodePendingObjectCreationV1(value: PendingObjectCreationV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
383
|
+
export type ObjectCreationTargetV1 = {
|
|
384
|
+
readonly meshName: Text8;
|
|
385
|
+
readonly nodeRid: Rid;
|
|
386
|
+
readonly nodeLifecycleGeneration: NonzeroU64;
|
|
387
|
+
readonly ownerId: Text8;
|
|
388
|
+
readonly ownerLeaseGeneration: NonzeroU64;
|
|
389
|
+
};
|
|
390
|
+
export declare function decodeObjectCreationTargetV1(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectCreationTargetV1;
|
|
391
|
+
export declare function encodeObjectCreationTargetV1(value: ObjectCreationTargetV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
392
|
+
export type InstanceActivationRecoveryV1 = {
|
|
393
|
+
readonly targetSpotId: Text8;
|
|
394
|
+
readonly stableType: Text8;
|
|
395
|
+
readonly targetMeshName: Text8;
|
|
396
|
+
readonly targetNodeRid: Rid;
|
|
397
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
398
|
+
readonly targetDescriptorVersion: Text8;
|
|
399
|
+
readonly sourceNodeRid: Rid;
|
|
400
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
401
|
+
readonly hasSourceSpotId: Bool8;
|
|
402
|
+
readonly sourceSpotId?: Text8;
|
|
403
|
+
readonly operationKind: InstanceOperationKind;
|
|
404
|
+
readonly operation: OperationId;
|
|
405
|
+
readonly replyRoute: InstanceReplyRoute;
|
|
406
|
+
readonly deadlineUnixMs: NonzeroU64;
|
|
407
|
+
readonly hasMetadata: Bool8;
|
|
408
|
+
readonly metadata?: MetadataFrame;
|
|
409
|
+
readonly applicationPayload: ApplicationPayloadEnvelopeV1;
|
|
410
|
+
};
|
|
411
|
+
export declare function decodeInstanceActivationRecoveryV1(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceActivationRecoveryV1;
|
|
412
|
+
export declare function encodeInstanceActivationRecoveryV1(value: InstanceActivationRecoveryV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
413
|
+
export type ObjectReservationFence = {
|
|
414
|
+
readonly reservationId: Text8;
|
|
415
|
+
readonly expectedStoreVersion: AuthorityStoreVersion;
|
|
416
|
+
readonly objectGeneration: NonzeroU64;
|
|
417
|
+
readonly authorityOwnerGeneration: NonzeroU64;
|
|
418
|
+
readonly targetNodeRid: Rid;
|
|
419
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
420
|
+
readonly targetOwnerId: Text8;
|
|
421
|
+
readonly targetOwnerLeaseGeneration: NonzeroU64;
|
|
422
|
+
readonly pendingCapacityDelta: NonzeroU32;
|
|
423
|
+
};
|
|
424
|
+
export declare function decodeObjectReservationFence(bytes: Uint8Array, context: ServiceWireDecoderContext): ObjectReservationFence;
|
|
425
|
+
export declare function encodeObjectReservationFence(value: ObjectReservationFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
426
|
+
export type GenericReservationOperationKind = "reserve" | "commit" | "abort";
|
|
427
|
+
export declare function enumWireGenericReservationOperationKind(value: GenericReservationOperationKind): number;
|
|
428
|
+
export declare function decodeGenericReservationOperationKind(bytes: Uint8Array, context: ServiceWireDecoderContext): GenericReservationOperationKind;
|
|
429
|
+
export declare function encodeGenericReservationOperationKind(value: GenericReservationOperationKind, context: ServiceWireDecoderContext): Uint8Array;
|
|
430
|
+
export type GenericObjectReservationV1 = {
|
|
431
|
+
readonly operationKind: "reserve";
|
|
432
|
+
readonly intent: ObjectCreationIntentV1;
|
|
433
|
+
readonly target: ObjectCreationTargetV1;
|
|
434
|
+
readonly creatingPayload: DurableBlob;
|
|
435
|
+
readonly pendingCapacityDelta: NonzeroU32;
|
|
436
|
+
} | {
|
|
437
|
+
readonly operationKind: "commit";
|
|
438
|
+
readonly key: ObjectCreationKey;
|
|
439
|
+
readonly fence: ObjectReservationFence;
|
|
440
|
+
} | {
|
|
441
|
+
readonly operationKind: "abort";
|
|
442
|
+
readonly key: ObjectCreationKey;
|
|
443
|
+
readonly fence: ObjectReservationFence;
|
|
444
|
+
};
|
|
445
|
+
export declare function decodeGenericObjectReservationV1(bytes: Uint8Array, context: ServiceWireDecoderContext): GenericObjectReservationV1;
|
|
446
|
+
export declare function encodeGenericObjectReservationV1(value: GenericObjectReservationV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
447
|
+
export type AggregateId = {
|
|
448
|
+
readonly high: U64;
|
|
449
|
+
readonly low: U64;
|
|
450
|
+
};
|
|
451
|
+
export declare function decodeAggregateId(bytes: Uint8Array, context: ServiceWireDecoderContext): AggregateId;
|
|
452
|
+
export declare function encodeAggregateId(value: AggregateId, context: ServiceWireDecoderContext): Uint8Array;
|
|
453
|
+
export type AggregateParticipantMutationBytes = Uint8Array;
|
|
454
|
+
export declare function decodeAggregateParticipantMutationBytes(bytes: Uint8Array, context: ServiceWireDecoderContext): AggregateParticipantMutationBytes;
|
|
455
|
+
export declare function encodeAggregateParticipantMutationBytes(value: AggregateParticipantMutationBytes, context: ServiceWireDecoderContext): Uint8Array;
|
|
456
|
+
export type MaintenanceAggregateParticipantV1 = {
|
|
457
|
+
readonly object: RelocationObjectIdentity;
|
|
458
|
+
readonly expectedStoreVersion: AuthorityStoreVersion;
|
|
459
|
+
readonly mutation: AggregateParticipantMutationBytes;
|
|
460
|
+
};
|
|
461
|
+
export declare function decodeMaintenanceAggregateParticipantV1(bytes: Uint8Array, context: ServiceWireDecoderContext): MaintenanceAggregateParticipantV1;
|
|
462
|
+
export declare function encodeMaintenanceAggregateParticipantV1(value: MaintenanceAggregateParticipantV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
463
|
+
export type AggregateParticipantVector = readonly MaintenanceAggregateParticipantV1[];
|
|
464
|
+
export declare function decodeAggregateParticipantVector(bytes: Uint8Array, context: ServiceWireDecoderContext): AggregateParticipantVector;
|
|
465
|
+
export declare function encodeAggregateParticipantVector(value: AggregateParticipantVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
466
|
+
export type MaintenanceAggregateV1 = {
|
|
467
|
+
readonly aggregateId: AggregateId;
|
|
468
|
+
readonly aggregateGeneration: NonzeroU64;
|
|
469
|
+
readonly ownerSpot: SpotRef;
|
|
470
|
+
readonly participants: AggregateParticipantVector;
|
|
471
|
+
readonly inventoryDigestSha256: Sha256Bytes;
|
|
472
|
+
};
|
|
473
|
+
export declare function decodeMaintenanceAggregateV1(bytes: Uint8Array, context: ServiceWireDecoderContext): MaintenanceAggregateV1;
|
|
474
|
+
export declare function encodeMaintenanceAggregateV1(value: MaintenanceAggregateV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
475
|
+
export type ActorRouteFence = {
|
|
476
|
+
readonly actor: ActorRef;
|
|
477
|
+
readonly targetNodeRid: Rid;
|
|
478
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
479
|
+
readonly expectedAuthorityOwnerGeneration: NonzeroU64;
|
|
480
|
+
readonly expectedOwnerLeaseGeneration: NonzeroU64;
|
|
481
|
+
};
|
|
482
|
+
export declare function decodeActorRouteFence(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorRouteFence;
|
|
483
|
+
export declare function encodeActorRouteFence(value: ActorRouteFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
484
|
+
export type SpotRouteFence = {
|
|
485
|
+
readonly spot: SpotRef;
|
|
486
|
+
readonly targetNodeRid: Rid;
|
|
487
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
488
|
+
readonly expectedAuthorityOwnerGeneration: NonzeroU64;
|
|
489
|
+
readonly expectedOwnerLeaseGeneration: NonzeroU64;
|
|
490
|
+
};
|
|
491
|
+
export declare function decodeSpotRouteFence(bytes: Uint8Array, context: ServiceWireDecoderContext): SpotRouteFence;
|
|
492
|
+
export declare function encodeSpotRouteFence(value: SpotRouteFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
493
|
+
export type UserSpotCloseFenceV1 = {
|
|
494
|
+
readonly spot: SpotRef;
|
|
495
|
+
readonly targetNodeRid: Rid;
|
|
496
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
497
|
+
readonly expectedAuthorityOwnerGeneration: NonzeroU64;
|
|
498
|
+
readonly expectedStoreVersion: AuthorityStoreVersion;
|
|
499
|
+
};
|
|
500
|
+
export declare function decodeUserSpotCloseFenceV1(bytes: Uint8Array, context: ServiceWireDecoderContext): UserSpotCloseFenceV1;
|
|
501
|
+
export declare function encodeUserSpotCloseFenceV1(value: UserSpotCloseFenceV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
502
|
+
export type MessageFollowRoute = {
|
|
503
|
+
readonly objectKind: "actor";
|
|
504
|
+
readonly actor: ActorRouteFence;
|
|
505
|
+
} | {
|
|
506
|
+
readonly objectKind: "spot";
|
|
507
|
+
readonly spot: SpotRouteFence;
|
|
508
|
+
};
|
|
509
|
+
export declare function decodeMessageFollowRoute(bytes: Uint8Array, context: ServiceWireDecoderContext): MessageFollowRoute;
|
|
510
|
+
export declare function encodeMessageFollowRoute(value: MessageFollowRoute, context: ServiceWireDecoderContext): Uint8Array;
|
|
511
|
+
export type MessageFollowRouteV1 = {
|
|
512
|
+
readonly source: MessageFollowRoute;
|
|
513
|
+
readonly target: MessageFollowRoute;
|
|
514
|
+
readonly hopCount: U8;
|
|
515
|
+
readonly queuedMessages: U32;
|
|
516
|
+
readonly queuedBytes: U32;
|
|
517
|
+
readonly originalOperation: OperationId;
|
|
518
|
+
readonly originalReplyRouteId: U64;
|
|
519
|
+
};
|
|
520
|
+
export declare function decodeMessageFollowRouteV1(bytes: Uint8Array, context: ServiceWireDecoderContext): MessageFollowRouteV1;
|
|
521
|
+
export declare function encodeMessageFollowRouteV1(value: MessageFollowRouteV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
522
|
+
export type RelocationObjectIdentity = {
|
|
523
|
+
readonly objectKind: "actor";
|
|
524
|
+
readonly actor: ActorRef;
|
|
525
|
+
readonly expectedAuthorityOwnerGeneration: NonzeroU64;
|
|
526
|
+
} | {
|
|
527
|
+
readonly objectKind: "userSpot";
|
|
528
|
+
readonly spot: SpotRef;
|
|
529
|
+
readonly expectedAuthorityOwnerGeneration: NonzeroU64;
|
|
530
|
+
} | {
|
|
531
|
+
readonly objectKind: "instanceSpot";
|
|
532
|
+
readonly instanceType: Text8;
|
|
533
|
+
readonly spotId: Text8;
|
|
534
|
+
readonly objectGeneration: NonzeroU64;
|
|
535
|
+
};
|
|
536
|
+
export declare function decodeRelocationObjectIdentity(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationObjectIdentity;
|
|
537
|
+
export declare function encodeRelocationObjectIdentity(value: RelocationObjectIdentity, context: ServiceWireDecoderContext): Uint8Array;
|
|
538
|
+
export type ActorAuthorityIdentity = {
|
|
539
|
+
readonly actorType: Text8;
|
|
540
|
+
readonly actorId: Text8;
|
|
541
|
+
readonly state: ActorAuthorityState;
|
|
542
|
+
readonly currentSpot: SpotRef;
|
|
543
|
+
readonly currentSpotKind: ActorSpotKind;
|
|
544
|
+
};
|
|
545
|
+
export declare function decodeActorAuthorityIdentity(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorAuthorityIdentity;
|
|
546
|
+
export declare function encodeActorAuthorityIdentity(value: ActorAuthorityIdentity, context: ServiceWireDecoderContext): Uint8Array;
|
|
547
|
+
export type InstanceAuthorityIdentity = {
|
|
548
|
+
readonly authorityState: "coldActivating";
|
|
549
|
+
readonly instanceType: Text8;
|
|
550
|
+
readonly spotId: Text8;
|
|
551
|
+
} | {
|
|
552
|
+
readonly authorityState: "ready";
|
|
553
|
+
readonly instanceType: Text8;
|
|
554
|
+
readonly spotId: Text8;
|
|
555
|
+
} | {
|
|
556
|
+
readonly authorityState: "closing";
|
|
557
|
+
readonly instanceType: Text8;
|
|
558
|
+
readonly spotId: Text8;
|
|
559
|
+
} | {
|
|
560
|
+
readonly authorityState: "relocating";
|
|
561
|
+
readonly instanceType: Text8;
|
|
562
|
+
readonly spotId: Text8;
|
|
563
|
+
};
|
|
564
|
+
export declare function decodeInstanceAuthorityIdentity(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceAuthorityIdentity;
|
|
565
|
+
export declare function encodeInstanceAuthorityIdentity(value: InstanceAuthorityIdentity, context: ServiceWireDecoderContext): Uint8Array;
|
|
566
|
+
export type SpotAuthorityIdentity = {
|
|
567
|
+
readonly spotKind: "entry";
|
|
568
|
+
readonly spotId: Text8;
|
|
569
|
+
readonly spotType: Text8;
|
|
570
|
+
readonly state: EntryUserSpotAuthorityState;
|
|
571
|
+
} | {
|
|
572
|
+
readonly spotKind: "user";
|
|
573
|
+
readonly spotId: Text8;
|
|
574
|
+
readonly spotType: Text8;
|
|
575
|
+
readonly state: EntryUserSpotAuthorityState;
|
|
576
|
+
} | {
|
|
577
|
+
readonly spotKind: "instance";
|
|
578
|
+
readonly instance: InstanceAuthorityIdentity;
|
|
579
|
+
};
|
|
580
|
+
export declare function decodeSpotAuthorityIdentity(bytes: Uint8Array, context: ServiceWireDecoderContext): SpotAuthorityIdentity;
|
|
581
|
+
export declare function encodeSpotAuthorityIdentity(value: SpotAuthorityIdentity, context: ServiceWireDecoderContext): Uint8Array;
|
|
582
|
+
export type AuthorityObjectIdentity = {
|
|
583
|
+
readonly objectKind: "actor";
|
|
584
|
+
readonly actor: ActorAuthorityIdentity;
|
|
585
|
+
} | {
|
|
586
|
+
readonly objectKind: "spot";
|
|
587
|
+
readonly spot: SpotAuthorityIdentity;
|
|
588
|
+
};
|
|
589
|
+
export declare function decodeAuthorityObjectIdentity(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityObjectIdentity;
|
|
590
|
+
export declare function encodeAuthorityObjectIdentity(value: AuthorityObjectIdentity, context: ServiceWireDecoderContext): Uint8Array;
|
|
591
|
+
export type OperationId = {
|
|
592
|
+
readonly high: U64;
|
|
593
|
+
readonly low: U64;
|
|
594
|
+
};
|
|
595
|
+
export declare function decodeOperationId(bytes: Uint8Array, context: ServiceWireDecoderContext): OperationId;
|
|
596
|
+
export declare function encodeOperationId(value: OperationId, context: ServiceWireDecoderContext): Uint8Array;
|
|
597
|
+
export type OperationIdOrZero = {
|
|
598
|
+
readonly high: U64;
|
|
599
|
+
readonly low: U64;
|
|
600
|
+
};
|
|
601
|
+
export declare function decodeOperationIdOrZero(bytes: Uint8Array, context: ServiceWireDecoderContext): OperationIdOrZero;
|
|
602
|
+
export declare function encodeOperationIdOrZero(value: OperationIdOrZero, context: ServiceWireDecoderContext): Uint8Array;
|
|
603
|
+
export type CreationContentReference = string;
|
|
604
|
+
export declare function decodeCreationContentReference(bytes: Uint8Array, context: ServiceWireDecoderContext): CreationContentReference;
|
|
605
|
+
export declare function encodeCreationContentReference(value: CreationContentReference, context: ServiceWireDecoderContext): Uint8Array;
|
|
606
|
+
export type RelocationReference = string;
|
|
607
|
+
export declare function decodeRelocationReference(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationReference;
|
|
608
|
+
export declare function encodeRelocationReference(value: RelocationReference, context: ServiceWireDecoderContext): Uint8Array;
|
|
609
|
+
export type AuthorityStoreVersion = string;
|
|
610
|
+
export declare function decodeAuthorityStoreVersion(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityStoreVersion;
|
|
611
|
+
export declare function encodeAuthorityStoreVersion(value: AuthorityStoreVersion, context: ServiceWireDecoderContext): Uint8Array;
|
|
612
|
+
export type AuthorityGenerationFence = {
|
|
613
|
+
readonly objectGeneration: NonzeroU64;
|
|
614
|
+
readonly ownerId: Text8;
|
|
615
|
+
readonly authorityOwnerGeneration: NonzeroU64;
|
|
616
|
+
readonly leaseGeneration: NonzeroU64;
|
|
617
|
+
readonly storeVersion: AuthorityStoreVersion;
|
|
618
|
+
};
|
|
619
|
+
export declare function decodeAuthorityGenerationFence(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityGenerationFence;
|
|
620
|
+
export declare function encodeAuthorityGenerationFence(value: AuthorityGenerationFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
621
|
+
export type RelocationCoordinatorFence = {
|
|
622
|
+
readonly coordinatorOwnerId: Text8;
|
|
623
|
+
readonly coordinatorLeaseGeneration: NonzeroU64;
|
|
624
|
+
readonly coordinatorNodeRid: Rid;
|
|
625
|
+
readonly coordinatorNodeGeneration: NonzeroU64;
|
|
626
|
+
readonly expectedAuthorityStoreVersion: AuthorityStoreVersion;
|
|
627
|
+
};
|
|
628
|
+
export declare function decodeRelocationCoordinatorFence(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationCoordinatorFence;
|
|
629
|
+
export declare function encodeRelocationCoordinatorFence(value: RelocationCoordinatorFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
630
|
+
export type RelocationTargetFence = {
|
|
631
|
+
readonly targetNodeRid: Rid;
|
|
632
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
633
|
+
readonly targetOwnerId: Text8;
|
|
634
|
+
readonly targetOwnerLeaseGeneration: NonzeroU64;
|
|
635
|
+
};
|
|
636
|
+
export declare function decodeRelocationTargetFence(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationTargetFence;
|
|
637
|
+
export declare function encodeRelocationTargetFence(value: RelocationTargetFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
638
|
+
export type RequestSourceFence = {
|
|
639
|
+
readonly sourceOwnerId: Text8;
|
|
640
|
+
readonly sourceOwnerLeaseGeneration: NonzeroU64;
|
|
641
|
+
readonly sourceNodeRid: Rid;
|
|
642
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
643
|
+
};
|
|
644
|
+
export declare function decodeRequestSourceFence(bytes: Uint8Array, context: ServiceWireDecoderContext): RequestSourceFence;
|
|
645
|
+
export declare function encodeRequestSourceFence(value: RequestSourceFence, context: ServiceWireDecoderContext): Uint8Array;
|
|
646
|
+
export type RelocationId = {
|
|
647
|
+
readonly high: U64;
|
|
648
|
+
readonly low: U64;
|
|
649
|
+
};
|
|
650
|
+
export declare function decodeRelocationId(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationId;
|
|
651
|
+
export declare function encodeRelocationId(value: RelocationId, context: ServiceWireDecoderContext): Uint8Array;
|
|
652
|
+
export type OptionalActorRef = {
|
|
653
|
+
readonly actorId: OptionalText8;
|
|
654
|
+
readonly generation?: NonzeroU64;
|
|
655
|
+
};
|
|
656
|
+
export declare function decodeOptionalActorRef(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalActorRef;
|
|
657
|
+
export declare function encodeOptionalActorRef(value: OptionalActorRef, context: ServiceWireDecoderContext): Uint8Array;
|
|
658
|
+
export type OptionalBoundSessionTail = {
|
|
659
|
+
readonly sourceSessionRid: Rid;
|
|
660
|
+
readonly sourceBindingGeneration: NonzeroU64;
|
|
661
|
+
readonly sourceSessionSequence: NonzeroU64;
|
|
662
|
+
};
|
|
663
|
+
export declare function decodeOptionalBoundSessionTail(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalBoundSessionTail;
|
|
664
|
+
export declare function encodeOptionalBoundSessionTail(value: OptionalBoundSessionTail, context: ServiceWireDecoderContext): Uint8Array;
|
|
665
|
+
export type ChannelEntry = {
|
|
666
|
+
readonly channelName: Text8;
|
|
667
|
+
readonly weight: U32;
|
|
668
|
+
};
|
|
669
|
+
export declare function decodeChannelEntry(bytes: Uint8Array, context: ServiceWireDecoderContext): ChannelEntry;
|
|
670
|
+
export declare function encodeChannelEntry(value: ChannelEntry, context: ServiceWireDecoderContext): Uint8Array;
|
|
671
|
+
export type ChannelVector = readonly ChannelEntry[];
|
|
672
|
+
export declare function decodeChannelVector(bytes: Uint8Array, context: ServiceWireDecoderContext): ChannelVector;
|
|
673
|
+
export declare function encodeChannelVector(value: ChannelVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
674
|
+
export type SortedText8Vector = readonly Text8[];
|
|
675
|
+
export declare function decodeSortedText8Vector(bytes: Uint8Array, context: ServiceWireDecoderContext): SortedText8Vector;
|
|
676
|
+
export declare function encodeSortedText8Vector(value: SortedText8Vector, context: ServiceWireDecoderContext): Uint8Array;
|
|
677
|
+
export type StatefulCapabilityEntry = {
|
|
678
|
+
readonly objectKind: StatefulObjectKind;
|
|
679
|
+
readonly type: Text8;
|
|
680
|
+
readonly relocationPolicy: RelocationPolicyKind;
|
|
681
|
+
readonly activeCapacityLimit: ObjectCapacityLimit;
|
|
682
|
+
readonly pendingCapacityLimit: ObjectPendingCapacityLimit;
|
|
683
|
+
readonly hasSnapshotAdapter: Bool8;
|
|
684
|
+
readonly available: OrdinalOrZero;
|
|
685
|
+
};
|
|
686
|
+
export declare function decodeStatefulCapabilityEntry(bytes: Uint8Array, context: ServiceWireDecoderContext): StatefulCapabilityEntry;
|
|
687
|
+
export declare function encodeStatefulCapabilityEntry(value: StatefulCapabilityEntry, context: ServiceWireDecoderContext): Uint8Array;
|
|
688
|
+
export type StatefulCapabilityVector = readonly StatefulCapabilityEntry[];
|
|
689
|
+
export declare function decodeStatefulCapabilityVector(bytes: Uint8Array, context: ServiceWireDecoderContext): StatefulCapabilityVector;
|
|
690
|
+
export declare function encodeStatefulCapabilityVector(value: StatefulCapabilityVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
691
|
+
export type DescriptorExtension = {
|
|
692
|
+
readonly runtimeState: RuntimeState;
|
|
693
|
+
readonly applicationVersion: ApplicationVersion;
|
|
694
|
+
readonly spotTypes?: SortedText8Vector;
|
|
695
|
+
readonly statefulCapabilities?: StatefulCapabilityVector;
|
|
696
|
+
readonly maintenanceWave?: OptionalText8;
|
|
697
|
+
readonly protocolCapabilities: SortedText8Vector;
|
|
698
|
+
readonly objectRole: ObjectRole;
|
|
699
|
+
readonly placementWeight: U32;
|
|
700
|
+
readonly activeCapacityLimit: ObjectCapacityLimit;
|
|
701
|
+
readonly pendingCapacityLimit: ObjectPendingCapacityLimit;
|
|
702
|
+
readonly activeCapacityUsed: U32;
|
|
703
|
+
readonly pendingCapacityUsed: U32;
|
|
704
|
+
};
|
|
705
|
+
export declare function decodeDescriptorExtension(bytes: Uint8Array, context: ServiceWireDecoderContext): DescriptorExtension;
|
|
706
|
+
export declare function encodeDescriptorExtension(value: DescriptorExtension, context: ServiceWireDecoderContext): Uint8Array;
|
|
707
|
+
export type RouteMeshAdmission = {
|
|
708
|
+
readonly meshName: Text8;
|
|
709
|
+
readonly securityIdentity: Text8;
|
|
710
|
+
readonly lifecycleGeneration: NonzeroU64;
|
|
711
|
+
readonly descriptorRevision: NonzeroU64;
|
|
712
|
+
readonly advertisedEndpoint: Endpoint;
|
|
713
|
+
readonly channels: ChannelVector;
|
|
714
|
+
readonly extension: DescriptorExtension;
|
|
715
|
+
};
|
|
716
|
+
export declare function decodeRouteMeshAdmission(bytes: Uint8Array, context: ServiceWireDecoderContext): RouteMeshAdmission;
|
|
717
|
+
export declare function encodeRouteMeshAdmission(value: RouteMeshAdmission, context: ServiceWireDecoderContext): Uint8Array;
|
|
718
|
+
export type ClientServerAdmission = {
|
|
719
|
+
readonly role: "client";
|
|
720
|
+
readonly channelName: Text8;
|
|
721
|
+
readonly direction: ClientServerDirection;
|
|
722
|
+
readonly securityIdentity: Text8;
|
|
723
|
+
readonly normalizedEffectiveMaxMessageBytes: NonzeroU32;
|
|
724
|
+
} | {
|
|
725
|
+
readonly role: "server";
|
|
726
|
+
readonly channelName: Text8;
|
|
727
|
+
readonly direction: ClientServerDirection;
|
|
728
|
+
readonly serverRid: Rid;
|
|
729
|
+
readonly lifecycleGeneration: NonzeroU64;
|
|
730
|
+
readonly descriptorRevision: NonzeroU64;
|
|
731
|
+
readonly weight: U32;
|
|
732
|
+
readonly runtimeState: RuntimeState;
|
|
733
|
+
readonly securityIdentity: Text8;
|
|
734
|
+
readonly normalizedEffectiveMaxMessageBytes: NonzeroU32;
|
|
735
|
+
readonly advertisedEndpoint: Endpoint;
|
|
736
|
+
};
|
|
737
|
+
export declare function decodeClientServerAdmission(bytes: Uint8Array, context: ServiceWireDecoderContext): ClientServerAdmission;
|
|
738
|
+
export declare function encodeClientServerAdmission(value: ClientServerAdmission, context: ServiceWireDecoderContext): Uint8Array;
|
|
739
|
+
export type ServiceAdmission = {
|
|
740
|
+
readonly topologyKind: "routeMesh";
|
|
741
|
+
readonly routeMesh: RouteMeshAdmission;
|
|
742
|
+
} | {
|
|
743
|
+
readonly topologyKind: "clientServer";
|
|
744
|
+
readonly clientServer: ClientServerAdmission;
|
|
745
|
+
};
|
|
746
|
+
export declare function decodeServiceAdmission(bytes: Uint8Array, context: ServiceWireDecoderContext): ServiceAdmission;
|
|
747
|
+
export declare function encodeServiceAdmission(value: ServiceAdmission, context: ServiceWireDecoderContext): Uint8Array;
|
|
748
|
+
export type InstanceReplyRoute = {
|
|
749
|
+
readonly operationKind: "send";
|
|
750
|
+
} | {
|
|
751
|
+
readonly operationKind: "request";
|
|
752
|
+
readonly replyRouteId: NonzeroU64;
|
|
753
|
+
};
|
|
754
|
+
export declare function decodeInstanceReplyRoute(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceReplyRoute;
|
|
755
|
+
export declare function encodeInstanceReplyRoute(value: InstanceReplyRoute, context: ServiceWireDecoderContext): Uint8Array;
|
|
756
|
+
export type ColdActivationReplyContext = {
|
|
757
|
+
readonly completionKind: "readyBarrier";
|
|
758
|
+
readonly authority: AuthorityGenerationFence;
|
|
759
|
+
} | {
|
|
760
|
+
readonly completionKind: "activationFailure";
|
|
761
|
+
readonly authority: AuthorityGenerationFence;
|
|
762
|
+
};
|
|
763
|
+
export declare function decodeColdActivationReplyContext(bytes: Uint8Array, context: ServiceWireDecoderContext): ColdActivationReplyContext;
|
|
764
|
+
export declare function encodeColdActivationReplyContext(value: ColdActivationReplyContext, context: ServiceWireDecoderContext): Uint8Array;
|
|
765
|
+
export type ReplyRelayContext = {
|
|
766
|
+
readonly contextKind: "coldActivation";
|
|
767
|
+
readonly coldActivation: ColdActivationReplyContext;
|
|
768
|
+
} | {
|
|
769
|
+
readonly contextKind: "maintenanceRelocation";
|
|
770
|
+
readonly relocation: RelocationId;
|
|
771
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
772
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
773
|
+
readonly participantId: NonzeroU64;
|
|
774
|
+
readonly sequence: NonzeroU64;
|
|
775
|
+
};
|
|
776
|
+
export declare function decodeReplyRelayContext(bytes: Uint8Array, context: ServiceWireDecoderContext): ReplyRelayContext;
|
|
777
|
+
export declare function encodeReplyRelayContext(value: ReplyRelayContext, context: ServiceWireDecoderContext): Uint8Array;
|
|
778
|
+
export type SendReadyDestination = {
|
|
779
|
+
readonly destinationKind: "node";
|
|
780
|
+
readonly targetNodeRid: Rid;
|
|
781
|
+
} | {
|
|
782
|
+
readonly destinationKind: "channel";
|
|
783
|
+
readonly channelName: Text8;
|
|
784
|
+
} | {
|
|
785
|
+
readonly destinationKind: "spot";
|
|
786
|
+
readonly targetSpot: SpotRouteFence;
|
|
787
|
+
} | {
|
|
788
|
+
readonly destinationKind: "actor";
|
|
789
|
+
readonly targetActor: ActorRouteFence;
|
|
790
|
+
} | {
|
|
791
|
+
readonly destinationKind: "boundSession";
|
|
792
|
+
readonly targetActor: ActorRouteFence;
|
|
793
|
+
readonly bindingGeneration: NonzeroU64;
|
|
794
|
+
};
|
|
795
|
+
export declare function decodeSendReadyDestination(bytes: Uint8Array, context: ServiceWireDecoderContext): SendReadyDestination;
|
|
796
|
+
export declare function encodeSendReadyDestination(value: SendReadyDestination, context: ServiceWireDecoderContext): Uint8Array;
|
|
797
|
+
export type ActorMembershipSnapshot = {
|
|
798
|
+
readonly actor: ActorRef;
|
|
799
|
+
readonly membership: SpotMembership;
|
|
800
|
+
};
|
|
801
|
+
export declare function decodeActorMembershipSnapshot(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorMembershipSnapshot;
|
|
802
|
+
export declare function encodeActorMembershipSnapshot(value: ActorMembershipSnapshot, context: ServiceWireDecoderContext): Uint8Array;
|
|
803
|
+
export type OptionalActorMembershipSnapshot = {
|
|
804
|
+
readonly hasSnapshot: "false";
|
|
805
|
+
} | {
|
|
806
|
+
readonly hasSnapshot: "true";
|
|
807
|
+
readonly snapshot: ActorMembershipSnapshot;
|
|
808
|
+
};
|
|
809
|
+
export declare function decodeOptionalActorMembershipSnapshot(bytes: Uint8Array, context: ServiceWireDecoderContext): OptionalActorMembershipSnapshot;
|
|
810
|
+
export declare function encodeOptionalActorMembershipSnapshot(value: OptionalActorMembershipSnapshot, context: ServiceWireDecoderContext): Uint8Array;
|
|
811
|
+
export type ActorControlData = {
|
|
812
|
+
readonly lifecycleKind: "created";
|
|
813
|
+
readonly current: ActorMembershipSnapshot;
|
|
814
|
+
} | {
|
|
815
|
+
readonly lifecycleKind: "joined";
|
|
816
|
+
readonly previous: OptionalActorMembershipSnapshot;
|
|
817
|
+
readonly current: ActorMembershipSnapshot;
|
|
818
|
+
} | {
|
|
819
|
+
readonly lifecycleKind: "left";
|
|
820
|
+
readonly previous: ActorMembershipSnapshot;
|
|
821
|
+
readonly current: ActorMembershipSnapshot;
|
|
822
|
+
} | {
|
|
823
|
+
readonly lifecycleKind: "disconnected";
|
|
824
|
+
readonly current: ActorMembershipSnapshot;
|
|
825
|
+
} | {
|
|
826
|
+
readonly lifecycleKind: "destroyed";
|
|
827
|
+
readonly previous: ActorMembershipSnapshot;
|
|
828
|
+
};
|
|
829
|
+
export declare function decodeActorControlData(bytes: Uint8Array, context: ServiceWireDecoderContext): ActorControlData;
|
|
830
|
+
export declare function encodeActorControlData(value: ActorControlData, context: ServiceWireDecoderContext): Uint8Array;
|
|
831
|
+
export type RelocationControlData = {
|
|
832
|
+
readonly phase: RelocationPhase;
|
|
833
|
+
readonly role: RelocationRole;
|
|
834
|
+
readonly relocation: RelocationId;
|
|
835
|
+
readonly object: RelocationObjectIdentity;
|
|
836
|
+
readonly terminalResult: RequestTerminalResult;
|
|
837
|
+
readonly failureCode: FrameworkErrorCode;
|
|
838
|
+
};
|
|
839
|
+
export declare function decodeRelocationControlData(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationControlData;
|
|
840
|
+
export declare function encodeRelocationControlData(value: RelocationControlData, context: ServiceWireDecoderContext): Uint8Array;
|
|
841
|
+
export type RequestSpecificTail = {
|
|
842
|
+
readonly originalOperationKind: "actorLookup";
|
|
843
|
+
readonly terminalResult: "ok";
|
|
844
|
+
readonly actor: ActorRef;
|
|
845
|
+
readonly spotId: Text8;
|
|
846
|
+
readonly spotGeneration: NonzeroU64;
|
|
847
|
+
readonly membershipEpoch: NonzeroU64;
|
|
848
|
+
readonly authorityOwnerGeneration: NonzeroU64;
|
|
849
|
+
} | {
|
|
850
|
+
readonly originalOperationKind: "actorJoin";
|
|
851
|
+
readonly terminalResult: "ok";
|
|
852
|
+
readonly join: ActorJoinReplyTail;
|
|
853
|
+
} | {
|
|
854
|
+
readonly originalOperationKind: "streamBind";
|
|
855
|
+
readonly terminalResult: "ok";
|
|
856
|
+
readonly bindingGeneration: NonzeroU64;
|
|
857
|
+
readonly authorityOwnerGeneration: NonzeroU64;
|
|
858
|
+
} | {
|
|
859
|
+
readonly originalOperationKind: "userSpotCreate";
|
|
860
|
+
readonly terminalResult: "ok";
|
|
861
|
+
readonly createResult: UserSpotCreateResult;
|
|
862
|
+
readonly spot: SpotRef;
|
|
863
|
+
} | {
|
|
864
|
+
readonly originalOperationKind: "userSpotClose";
|
|
865
|
+
readonly terminalResult: "ok";
|
|
866
|
+
readonly closed: Bool8;
|
|
867
|
+
} | {
|
|
868
|
+
readonly originalOperationKind: "actorCreate";
|
|
869
|
+
readonly terminalResult: "ok";
|
|
870
|
+
readonly creation: ActorCreateTerminal;
|
|
871
|
+
} | {
|
|
872
|
+
readonly originalOperationKind: MeshOperationKind;
|
|
873
|
+
readonly terminalResult: RequestTerminalResult;
|
|
874
|
+
};
|
|
875
|
+
export declare function decodeRequestSpecificTail(bytes: Uint8Array, context: ServiceWireDecoderContext): RequestSpecificTail;
|
|
876
|
+
export declare function encodeRequestSpecificTail(value: RequestSpecificTail, context: ServiceWireDecoderContext): Uint8Array;
|
|
877
|
+
export type FrozenRecordBody = {
|
|
878
|
+
readonly recordKind: "nodeSend";
|
|
879
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
880
|
+
} | {
|
|
881
|
+
readonly recordKind: "nodeRequest";
|
|
882
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
883
|
+
} | {
|
|
884
|
+
readonly recordKind: "channelSend";
|
|
885
|
+
readonly channelName: Text8;
|
|
886
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
887
|
+
} | {
|
|
888
|
+
readonly recordKind: "channelRequest";
|
|
889
|
+
readonly channelName: Text8;
|
|
890
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
891
|
+
} | {
|
|
892
|
+
readonly recordKind: "spotSend";
|
|
893
|
+
readonly targetSpot: SpotRouteFence;
|
|
894
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
895
|
+
} | {
|
|
896
|
+
readonly recordKind: "spotRequest";
|
|
897
|
+
readonly targetSpot: SpotRouteFence;
|
|
898
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
899
|
+
} | {
|
|
900
|
+
readonly recordKind: "spotMulticast";
|
|
901
|
+
readonly channelName: Text8;
|
|
902
|
+
readonly topic: Text8;
|
|
903
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
904
|
+
} | {
|
|
905
|
+
readonly recordKind: "spotControl";
|
|
906
|
+
readonly control: ActorControlData;
|
|
907
|
+
} | {
|
|
908
|
+
readonly recordKind: "actorSend";
|
|
909
|
+
readonly targetActor: ActorRouteFence;
|
|
910
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
911
|
+
} | {
|
|
912
|
+
readonly recordKind: "actorRequest";
|
|
913
|
+
readonly targetActor: ActorRouteFence;
|
|
914
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
915
|
+
} | {
|
|
916
|
+
readonly recordKind: "completion";
|
|
917
|
+
readonly terminalResult: RequestTerminalResult;
|
|
918
|
+
readonly failureCode: FrameworkErrorCode;
|
|
919
|
+
readonly hasPayload: Bool8;
|
|
920
|
+
readonly payload?: ApplicationPayloadEnvelopeV1;
|
|
921
|
+
} | {
|
|
922
|
+
readonly recordKind: "sendReady";
|
|
923
|
+
readonly destination: SendReadyDestination;
|
|
924
|
+
} | {
|
|
925
|
+
readonly recordKind: "relocationControl";
|
|
926
|
+
readonly control: RelocationControlData;
|
|
927
|
+
} | {
|
|
928
|
+
readonly recordKind: "instanceSpotActivation";
|
|
929
|
+
readonly route: InstanceRouteV1;
|
|
930
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
931
|
+
readonly operationKind: InstanceOperationKind;
|
|
932
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
933
|
+
};
|
|
934
|
+
export declare function decodeFrozenRecordBody(bytes: Uint8Array, context: ServiceWireDecoderContext): FrozenRecordBody;
|
|
935
|
+
export declare function encodeFrozenRecordBody(value: FrozenRecordBody, context: ServiceWireDecoderContext): Uint8Array;
|
|
936
|
+
export type FrozenSourceIdentity = {
|
|
937
|
+
readonly sourceKind: "node";
|
|
938
|
+
readonly sourceNodeRid: Rid;
|
|
939
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
940
|
+
readonly sourceOwnerId: Text8;
|
|
941
|
+
readonly sourceOwnerLeaseGeneration: NonzeroU64;
|
|
942
|
+
} | {
|
|
943
|
+
readonly sourceKind: "spot";
|
|
944
|
+
readonly sourceNodeRid: Rid;
|
|
945
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
946
|
+
readonly sourceOwnerId: Text8;
|
|
947
|
+
readonly sourceOwnerLeaseGeneration: NonzeroU64;
|
|
948
|
+
readonly sourceSpotId: Text8;
|
|
949
|
+
} | {
|
|
950
|
+
readonly sourceKind: "actor";
|
|
951
|
+
readonly sourceNodeRid: Rid;
|
|
952
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
953
|
+
readonly sourceOwnerId: Text8;
|
|
954
|
+
readonly sourceOwnerLeaseGeneration: NonzeroU64;
|
|
955
|
+
readonly sourceActor: ActorRef;
|
|
956
|
+
} | {
|
|
957
|
+
readonly sourceKind: "boundSession";
|
|
958
|
+
readonly sourceNodeRid: Rid;
|
|
959
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
960
|
+
readonly sourceOwnerId: Text8;
|
|
961
|
+
readonly sourceOwnerLeaseGeneration: NonzeroU64;
|
|
962
|
+
readonly sourceActor: ActorRef;
|
|
963
|
+
readonly sourceSessionRid: Rid;
|
|
964
|
+
readonly sourceBindingGeneration: NonzeroU64;
|
|
965
|
+
readonly sourceSessionSequence: NonzeroU64;
|
|
966
|
+
};
|
|
967
|
+
export declare function decodeFrozenSourceIdentity(bytes: Uint8Array, context: ServiceWireDecoderContext): FrozenSourceIdentity;
|
|
968
|
+
export declare function encodeFrozenSourceIdentity(value: FrozenSourceIdentity, context: ServiceWireDecoderContext): Uint8Array;
|
|
969
|
+
export type FrozenReplyRoute = {
|
|
970
|
+
readonly originalOperationKind: "nodeRequest";
|
|
971
|
+
readonly replyRouteId: NonzeroU64;
|
|
972
|
+
} | {
|
|
973
|
+
readonly originalOperationKind: "channelRequest";
|
|
974
|
+
readonly replyRouteId: NonzeroU64;
|
|
975
|
+
} | {
|
|
976
|
+
readonly originalOperationKind: "spotRequest";
|
|
977
|
+
readonly replyRouteId: NonzeroU64;
|
|
978
|
+
} | {
|
|
979
|
+
readonly originalOperationKind: "actorRequest";
|
|
980
|
+
readonly replyRouteId: NonzeroU64;
|
|
981
|
+
} | {
|
|
982
|
+
readonly originalOperationKind: "instanceSpotRequest";
|
|
983
|
+
readonly replyRouteId: NonzeroU64;
|
|
984
|
+
} | {
|
|
985
|
+
readonly originalOperationKind: MeshOperationKind;
|
|
986
|
+
};
|
|
987
|
+
export declare function decodeFrozenReplyRoute(bytes: Uint8Array, context: ServiceWireDecoderContext): FrozenReplyRoute;
|
|
988
|
+
export declare function encodeFrozenReplyRoute(value: FrozenReplyRoute, context: ServiceWireDecoderContext): Uint8Array;
|
|
989
|
+
export type FrozenRecord = {
|
|
990
|
+
readonly recordKind: MeshRecordKind;
|
|
991
|
+
readonly source: FrozenSourceIdentity;
|
|
992
|
+
readonly hasMetadata: Bool8;
|
|
993
|
+
readonly metadata?: MetadataFrame;
|
|
994
|
+
readonly operationId: OperationIdOrZero;
|
|
995
|
+
readonly operationKind: MeshOperationKind;
|
|
996
|
+
readonly replyRoute: FrozenReplyRoute;
|
|
997
|
+
readonly body: FrozenRecordBody;
|
|
998
|
+
};
|
|
999
|
+
export declare function decodeFrozenRecord(bytes: Uint8Array, context: ServiceWireDecoderContext): FrozenRecord;
|
|
1000
|
+
export declare function encodeFrozenRecord(value: FrozenRecord, context: ServiceWireDecoderContext): Uint8Array;
|
|
1001
|
+
export type InstanceRouteV1 = {
|
|
1002
|
+
readonly routeKind: "ready";
|
|
1003
|
+
readonly targetNodeRid: Rid;
|
|
1004
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
1005
|
+
readonly targetSpotId: Text8;
|
|
1006
|
+
readonly authority: AuthorityGenerationFence;
|
|
1007
|
+
} | {
|
|
1008
|
+
readonly routeKind: "coldActivation";
|
|
1009
|
+
readonly targetNodeRid: Rid;
|
|
1010
|
+
readonly targetNodeGeneration: NonzeroU64;
|
|
1011
|
+
readonly targetSpotId: Text8;
|
|
1012
|
+
readonly targetMeshName: Text8;
|
|
1013
|
+
readonly stableType: Text8;
|
|
1014
|
+
readonly targetDescriptorVersion: Text8;
|
|
1015
|
+
readonly deadlineUnixMs: NonzeroU64;
|
|
1016
|
+
};
|
|
1017
|
+
export declare function decodeInstanceRouteV1(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceRouteV1;
|
|
1018
|
+
export declare function encodeInstanceRouteV1(value: InstanceRouteV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1019
|
+
export type RelocationRootPointer = {
|
|
1020
|
+
readonly hasRelocation: "false";
|
|
1021
|
+
} | {
|
|
1022
|
+
readonly hasRelocation: "true";
|
|
1023
|
+
readonly reference: RelocationReference;
|
|
1024
|
+
readonly checksumCrc32c: U32;
|
|
1025
|
+
};
|
|
1026
|
+
export declare function decodeRelocationRootPointer(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationRootPointer;
|
|
1027
|
+
export declare function encodeRelocationRootPointer(value: RelocationRootPointer, context: ServiceWireDecoderContext): Uint8Array;
|
|
1028
|
+
export type AuthorityRelocationState = {
|
|
1029
|
+
readonly hasRelocation: "false";
|
|
1030
|
+
} | {
|
|
1031
|
+
readonly hasRelocation: "true";
|
|
1032
|
+
readonly relocation: RelocationId;
|
|
1033
|
+
readonly aggregateGeneration: OrdinalOrZero;
|
|
1034
|
+
readonly targetAttemptGeneration: OrdinalOrZero;
|
|
1035
|
+
readonly relocationReference: RelocationReference;
|
|
1036
|
+
readonly relocationChecksumCrc32c: U32;
|
|
1037
|
+
readonly sourceNodeRid: Rid;
|
|
1038
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
1039
|
+
readonly sourceOwnerId: Text8;
|
|
1040
|
+
readonly sourceOwnerLeaseGeneration: NonzeroU64;
|
|
1041
|
+
readonly targetNodeRid: OptionalRid;
|
|
1042
|
+
readonly targetNodeGeneration: OrdinalOrZero;
|
|
1043
|
+
readonly targetOwnerId: OptionalText8;
|
|
1044
|
+
readonly targetOwnerLeaseGeneration: OrdinalOrZero;
|
|
1045
|
+
readonly coordinatorOwnerId: Text8;
|
|
1046
|
+
readonly coordinatorLeaseGeneration: NonzeroU64;
|
|
1047
|
+
readonly coordinatorNodeRid: Rid;
|
|
1048
|
+
readonly coordinatorNodeGeneration: NonzeroU64;
|
|
1049
|
+
readonly coordinatorExpectedStoreVersion: OptionalText8;
|
|
1050
|
+
readonly phase: RelocationPhase;
|
|
1051
|
+
readonly applicationVersion: ApplicationVersion;
|
|
1052
|
+
readonly sourceCleanupState: SourceCleanupState;
|
|
1053
|
+
};
|
|
1054
|
+
export declare function decodeAuthorityRelocationState(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityRelocationState;
|
|
1055
|
+
export declare function encodeAuthorityRelocationState(value: AuthorityRelocationState, context: ServiceWireDecoderContext): Uint8Array;
|
|
1056
|
+
export type AuthorityActivationRecoveryState = {
|
|
1057
|
+
readonly hasActivationRecovery: "false";
|
|
1058
|
+
} | {
|
|
1059
|
+
readonly hasActivationRecovery: "true";
|
|
1060
|
+
readonly reference: CreationContentReference;
|
|
1061
|
+
readonly sha256: Sha256Bytes;
|
|
1062
|
+
readonly encodedSize: CreationRequestSize;
|
|
1063
|
+
readonly inboxSequence: NonzeroU64;
|
|
1064
|
+
readonly replayCursor: U64;
|
|
1065
|
+
};
|
|
1066
|
+
export declare function decodeAuthorityActivationRecoveryState(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityActivationRecoveryState;
|
|
1067
|
+
export declare function encodeAuthorityActivationRecoveryState(value: AuthorityActivationRecoveryState, context: ServiceWireDecoderContext): Uint8Array;
|
|
1068
|
+
export type AuthorityPayloadV1 = {
|
|
1069
|
+
readonly operationKind: AuthorityOperationKind;
|
|
1070
|
+
readonly object: AuthorityObjectIdentity;
|
|
1071
|
+
readonly ownerId: Text8;
|
|
1072
|
+
readonly ownerLeaseGeneration: NonzeroU64;
|
|
1073
|
+
readonly ownerMeshName: Text8;
|
|
1074
|
+
readonly ownerNodeRid: Rid;
|
|
1075
|
+
readonly ownerNodeGeneration: NonzeroU64;
|
|
1076
|
+
readonly relocationState: AuthorityRelocationState;
|
|
1077
|
+
readonly activationRecoveryState: AuthorityActivationRecoveryState;
|
|
1078
|
+
};
|
|
1079
|
+
export declare function decodeAuthorityPayloadV1(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityPayloadV1;
|
|
1080
|
+
export declare function encodeAuthorityPayloadV1(value: AuthorityPayloadV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1081
|
+
export type SavedWorkEntry = {
|
|
1082
|
+
readonly participantId: NonzeroU64;
|
|
1083
|
+
readonly order: NonzeroU64;
|
|
1084
|
+
readonly record: FrozenRecord;
|
|
1085
|
+
};
|
|
1086
|
+
export declare function decodeSavedWorkEntry(bytes: Uint8Array, context: ServiceWireDecoderContext): SavedWorkEntry;
|
|
1087
|
+
export declare function encodeSavedWorkEntry(value: SavedWorkEntry, context: ServiceWireDecoderContext): Uint8Array;
|
|
1088
|
+
export type SavedWorkVector = readonly SavedWorkEntry[];
|
|
1089
|
+
export declare function decodeSavedWorkVector(bytes: Uint8Array, context: ServiceWireDecoderContext): SavedWorkVector;
|
|
1090
|
+
export declare function encodeSavedWorkVector(value: SavedWorkVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
1091
|
+
export type DurableBlob = Uint8Array;
|
|
1092
|
+
export declare function decodeDurableBlob(bytes: Uint8Array, context: ServiceWireDecoderContext): DurableBlob;
|
|
1093
|
+
export declare function encodeDurableBlob(value: DurableBlob, context: ServiceWireDecoderContext): Uint8Array;
|
|
1094
|
+
export type DurableStateBlob = Uint8Array;
|
|
1095
|
+
export declare function decodeDurableStateBlob(bytes: Uint8Array, context: ServiceWireDecoderContext): DurableStateBlob;
|
|
1096
|
+
export declare function encodeDurableStateBlob(value: DurableStateBlob, context: ServiceWireDecoderContext): Uint8Array;
|
|
1097
|
+
export type RelocationChunkEntryV1 = {
|
|
1098
|
+
readonly order: U32;
|
|
1099
|
+
readonly reference: RelocationReference;
|
|
1100
|
+
readonly length: NonzeroU64;
|
|
1101
|
+
readonly checksumCrc32c: U32;
|
|
1102
|
+
};
|
|
1103
|
+
export declare function decodeRelocationChunkEntryV1(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationChunkEntryV1;
|
|
1104
|
+
export declare function encodeRelocationChunkEntryV1(value: RelocationChunkEntryV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1105
|
+
export type RelocationChunkVectorV1 = readonly RelocationChunkEntryV1[];
|
|
1106
|
+
export declare function decodeRelocationChunkVectorV1(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationChunkVectorV1;
|
|
1107
|
+
export declare function encodeRelocationChunkVectorV1(value: RelocationChunkVectorV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1108
|
+
export type RelocationManifestV1 = {
|
|
1109
|
+
readonly logicalFormatVersion: U8;
|
|
1110
|
+
readonly totalLength: RelocationLogicalLength;
|
|
1111
|
+
readonly totalChecksumCrc32c: U32;
|
|
1112
|
+
readonly inventoryDigestSha256: Sha256Bytes;
|
|
1113
|
+
readonly chunks: RelocationChunkVectorV1;
|
|
1114
|
+
};
|
|
1115
|
+
export declare function decodeRelocationManifestV1(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationManifestV1;
|
|
1116
|
+
export declare function encodeRelocationManifestV1(value: RelocationManifestV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1117
|
+
export type RelocationDataChunkV1 = {
|
|
1118
|
+
readonly order: U32;
|
|
1119
|
+
readonly data: DurableBlob;
|
|
1120
|
+
};
|
|
1121
|
+
export declare function decodeRelocationDataChunkV1(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationDataChunkV1;
|
|
1122
|
+
export declare function encodeRelocationDataChunkV1(value: RelocationDataChunkV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1123
|
+
export type RelocationApplicationState = {
|
|
1124
|
+
readonly hasState: "false";
|
|
1125
|
+
} | {
|
|
1126
|
+
readonly hasState: "true";
|
|
1127
|
+
readonly payload: DurableStateBlob;
|
|
1128
|
+
};
|
|
1129
|
+
export declare function decodeRelocationApplicationState(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationApplicationState;
|
|
1130
|
+
export declare function encodeRelocationApplicationState(value: RelocationApplicationState, context: ServiceWireDecoderContext): Uint8Array;
|
|
1131
|
+
export type RelocationParticipantApplicationState = {
|
|
1132
|
+
readonly participantId: NonzeroU64;
|
|
1133
|
+
readonly applicationState: RelocationApplicationState;
|
|
1134
|
+
};
|
|
1135
|
+
export declare function decodeRelocationParticipantApplicationState(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationParticipantApplicationState;
|
|
1136
|
+
export declare function encodeRelocationParticipantApplicationState(value: RelocationParticipantApplicationState, context: ServiceWireDecoderContext): Uint8Array;
|
|
1137
|
+
export type RelocationParticipantApplicationStateVector = readonly RelocationParticipantApplicationState[];
|
|
1138
|
+
export declare function decodeRelocationParticipantApplicationStateVector(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationParticipantApplicationStateVector;
|
|
1139
|
+
export declare function encodeRelocationParticipantApplicationStateVector(value: RelocationParticipantApplicationStateVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
1140
|
+
export type RelocationTimerRegistration = {
|
|
1141
|
+
readonly participantId: NonzeroU64;
|
|
1142
|
+
readonly name: Text8;
|
|
1143
|
+
readonly handlerType: Text8;
|
|
1144
|
+
readonly periodMilliseconds: NonzeroU64;
|
|
1145
|
+
readonly overrunPolicy: TimerOverrunPolicyKind;
|
|
1146
|
+
readonly maxCatchUpTicks: NonzeroU64;
|
|
1147
|
+
readonly stopOnUnhandledException: Bool8;
|
|
1148
|
+
readonly lastCompletedDeliveryIndex: OrdinalOrZero;
|
|
1149
|
+
readonly lastCompletedScheduledIndex: OrdinalOrZero;
|
|
1150
|
+
readonly nextScheduledAtUnixMilliseconds: U64;
|
|
1151
|
+
};
|
|
1152
|
+
export declare function decodeRelocationTimerRegistration(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationTimerRegistration;
|
|
1153
|
+
export declare function encodeRelocationTimerRegistration(value: RelocationTimerRegistration, context: ServiceWireDecoderContext): Uint8Array;
|
|
1154
|
+
export type RelocationTimerRegistrationVector = readonly RelocationTimerRegistration[];
|
|
1155
|
+
export declare function decodeRelocationTimerRegistrationVector(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationTimerRegistrationVector;
|
|
1156
|
+
export declare function encodeRelocationTimerRegistrationVector(value: RelocationTimerRegistrationVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
1157
|
+
export type RelocationPendingTimerTick = {
|
|
1158
|
+
readonly participantId: NonzeroU64;
|
|
1159
|
+
readonly order: NonzeroU64;
|
|
1160
|
+
readonly timerName: Text8;
|
|
1161
|
+
readonly deliveryIndex: NonzeroU64;
|
|
1162
|
+
readonly scheduledIndex: NonzeroU64;
|
|
1163
|
+
readonly scheduledAtUnixMilliseconds: U64;
|
|
1164
|
+
readonly skippedTicks: OrdinalOrZero;
|
|
1165
|
+
};
|
|
1166
|
+
export declare function decodeRelocationPendingTimerTick(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationPendingTimerTick;
|
|
1167
|
+
export declare function encodeRelocationPendingTimerTick(value: RelocationPendingTimerTick, context: ServiceWireDecoderContext): Uint8Array;
|
|
1168
|
+
export type RelocationPendingTimerTickVector = readonly RelocationPendingTimerTick[];
|
|
1169
|
+
export declare function decodeRelocationPendingTimerTickVector(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationPendingTimerTickVector;
|
|
1170
|
+
export declare function encodeRelocationPendingTimerTickVector(value: RelocationPendingTimerTickVector, context: ServiceWireDecoderContext): Uint8Array;
|
|
1171
|
+
export type RelocationEnvelopeV1 = {
|
|
1172
|
+
readonly relocation: RelocationId;
|
|
1173
|
+
readonly object: RelocationObjectIdentity;
|
|
1174
|
+
readonly applicationVersion: ApplicationVersion;
|
|
1175
|
+
readonly applicationStates: RelocationParticipantApplicationStateVector;
|
|
1176
|
+
readonly savedWork: SavedWorkVector;
|
|
1177
|
+
readonly timerRegistrations: RelocationTimerRegistrationVector;
|
|
1178
|
+
readonly pendingTimerTicks: RelocationPendingTimerTickVector;
|
|
1179
|
+
};
|
|
1180
|
+
export declare function decodeRelocationEnvelopeV1(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationEnvelopeV1;
|
|
1181
|
+
export declare function encodeRelocationEnvelopeV1(value: RelocationEnvelopeV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1182
|
+
export type HelloCommand = {
|
|
1183
|
+
readonly command: "hello";
|
|
1184
|
+
readonly flags: number;
|
|
1185
|
+
readonly admission: ServiceAdmission;
|
|
1186
|
+
};
|
|
1187
|
+
export declare function decodeHelloCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): HelloCommand;
|
|
1188
|
+
export declare function encodeHelloCommand(value: HelloCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1189
|
+
export declare function validateHelloCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1190
|
+
export type AdmitCommand = {
|
|
1191
|
+
readonly command: "admit";
|
|
1192
|
+
readonly flags: number;
|
|
1193
|
+
readonly admission: ServiceAdmission;
|
|
1194
|
+
};
|
|
1195
|
+
export declare function decodeAdmitCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): AdmitCommand;
|
|
1196
|
+
export declare function encodeAdmitCommand(value: AdmitCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1197
|
+
export declare function validateAdmitCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1198
|
+
export type RejectCommand = {
|
|
1199
|
+
readonly command: "reject";
|
|
1200
|
+
readonly flags: number;
|
|
1201
|
+
readonly reason: RejectReason;
|
|
1202
|
+
};
|
|
1203
|
+
export declare function decodeRejectCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RejectCommand;
|
|
1204
|
+
export declare function encodeRejectCommand(value: RejectCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1205
|
+
export declare function validateRejectCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1206
|
+
export type UpdateCommand = {
|
|
1207
|
+
readonly command: "update";
|
|
1208
|
+
readonly flags: number;
|
|
1209
|
+
readonly admission: ServiceAdmission;
|
|
1210
|
+
};
|
|
1211
|
+
export declare function decodeUpdateCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): UpdateCommand;
|
|
1212
|
+
export declare function encodeUpdateCommand(value: UpdateCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1213
|
+
export declare function validateUpdateCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1214
|
+
export type LivenessProbeCommand = {
|
|
1215
|
+
readonly command: "livenessProbe";
|
|
1216
|
+
readonly flags: number;
|
|
1217
|
+
readonly probeId: NonzeroU64;
|
|
1218
|
+
};
|
|
1219
|
+
export declare function decodeLivenessProbeCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): LivenessProbeCommand;
|
|
1220
|
+
export declare function encodeLivenessProbeCommand(value: LivenessProbeCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1221
|
+
export declare function validateLivenessProbeCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1222
|
+
export type LivenessAckCommand = {
|
|
1223
|
+
readonly command: "livenessAck";
|
|
1224
|
+
readonly flags: number;
|
|
1225
|
+
readonly probeId: NonzeroU64;
|
|
1226
|
+
};
|
|
1227
|
+
export declare function decodeLivenessAckCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): LivenessAckCommand;
|
|
1228
|
+
export declare function encodeLivenessAckCommand(value: LivenessAckCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1229
|
+
export declare function validateLivenessAckCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1230
|
+
export type NodeSendCommand = {
|
|
1231
|
+
readonly command: "nodeSend";
|
|
1232
|
+
readonly flags: number;
|
|
1233
|
+
readonly metadata?: MetadataFrame;
|
|
1234
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1235
|
+
};
|
|
1236
|
+
export declare function decodeNodeSendCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): NodeSendCommand;
|
|
1237
|
+
export declare function encodeNodeSendCommand(value: NodeSendCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1238
|
+
export declare function validateNodeSendCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1239
|
+
export type NodeRequestCommand = {
|
|
1240
|
+
readonly command: "nodeRequest";
|
|
1241
|
+
readonly flags: number;
|
|
1242
|
+
readonly correlation: NonzeroU64;
|
|
1243
|
+
readonly metadata?: MetadataFrame;
|
|
1244
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1245
|
+
};
|
|
1246
|
+
export declare function decodeNodeRequestCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): NodeRequestCommand;
|
|
1247
|
+
export declare function encodeNodeRequestCommand(value: NodeRequestCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1248
|
+
export declare function validateNodeRequestCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1249
|
+
export type ChannelSendCommand = {
|
|
1250
|
+
readonly command: "channelSend";
|
|
1251
|
+
readonly flags: number;
|
|
1252
|
+
readonly channelName: Text8;
|
|
1253
|
+
readonly metadata?: MetadataFrame;
|
|
1254
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1255
|
+
};
|
|
1256
|
+
export declare function decodeChannelSendCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ChannelSendCommand;
|
|
1257
|
+
export declare function encodeChannelSendCommand(value: ChannelSendCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1258
|
+
export declare function validateChannelSendCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1259
|
+
export type ChannelRequestCommand = {
|
|
1260
|
+
readonly command: "channelRequest";
|
|
1261
|
+
readonly flags: number;
|
|
1262
|
+
readonly correlation: NonzeroU64;
|
|
1263
|
+
readonly channelName: Text8;
|
|
1264
|
+
readonly metadata?: MetadataFrame;
|
|
1265
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1266
|
+
};
|
|
1267
|
+
export declare function decodeChannelRequestCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ChannelRequestCommand;
|
|
1268
|
+
export declare function encodeChannelRequestCommand(value: ChannelRequestCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1269
|
+
export declare function validateChannelRequestCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1270
|
+
export type ReplyCommand = {
|
|
1271
|
+
readonly command: "reply";
|
|
1272
|
+
readonly flags: number;
|
|
1273
|
+
readonly correlation: NonzeroU64;
|
|
1274
|
+
readonly terminalResult: RequestTerminalResult;
|
|
1275
|
+
readonly failureCode: FrameworkErrorCode;
|
|
1276
|
+
readonly tail: RequestSpecificTail;
|
|
1277
|
+
readonly payload?: ApplicationPayloadEnvelopeV1;
|
|
1278
|
+
};
|
|
1279
|
+
export declare function decodeReplyCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ReplyCommand;
|
|
1280
|
+
export declare function encodeReplyCommand(value: ReplyCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1281
|
+
export declare function validateReplyCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1282
|
+
export type SpotSendCommand = {
|
|
1283
|
+
readonly command: "spotSend";
|
|
1284
|
+
readonly flags: number;
|
|
1285
|
+
readonly operation: OperationId;
|
|
1286
|
+
readonly messageFollowHopCount: U8;
|
|
1287
|
+
readonly sourceSpotId: Text8;
|
|
1288
|
+
readonly targetSpot: SpotRouteFence;
|
|
1289
|
+
readonly metadata?: MetadataFrame;
|
|
1290
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1291
|
+
};
|
|
1292
|
+
export declare function decodeSpotSendCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): SpotSendCommand;
|
|
1293
|
+
export declare function encodeSpotSendCommand(value: SpotSendCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1294
|
+
export declare function validateSpotSendCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1295
|
+
export type SpotRequestCommand = {
|
|
1296
|
+
readonly command: "spotRequest";
|
|
1297
|
+
readonly flags: number;
|
|
1298
|
+
readonly correlation: NonzeroU64;
|
|
1299
|
+
readonly operation: OperationId;
|
|
1300
|
+
readonly messageFollowHopCount: U8;
|
|
1301
|
+
readonly sourceSpotId: Text8;
|
|
1302
|
+
readonly targetSpot: SpotRouteFence;
|
|
1303
|
+
readonly metadata?: MetadataFrame;
|
|
1304
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1305
|
+
};
|
|
1306
|
+
export declare function decodeSpotRequestCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): SpotRequestCommand;
|
|
1307
|
+
export declare function encodeSpotRequestCommand(value: SpotRequestCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1308
|
+
export declare function validateSpotRequestCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1309
|
+
export type LogicalMulticastCommand = {
|
|
1310
|
+
readonly command: "logicalMulticast";
|
|
1311
|
+
readonly flags: number;
|
|
1312
|
+
readonly channelName: Text8;
|
|
1313
|
+
readonly topic: Text8;
|
|
1314
|
+
readonly sourceSpotId: Text8;
|
|
1315
|
+
readonly metadata?: MetadataFrame;
|
|
1316
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1317
|
+
};
|
|
1318
|
+
export declare function decodeLogicalMulticastCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): LogicalMulticastCommand;
|
|
1319
|
+
export declare function encodeLogicalMulticastCommand(value: LogicalMulticastCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1320
|
+
export declare function validateLogicalMulticastCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1321
|
+
export type ActorSendCommand = {
|
|
1322
|
+
readonly command: "actorSend";
|
|
1323
|
+
readonly flags: number;
|
|
1324
|
+
readonly operation: OperationId;
|
|
1325
|
+
readonly messageFollowHopCount: U8;
|
|
1326
|
+
readonly sourceActor: OptionalActorRef;
|
|
1327
|
+
readonly targetActor: ActorRouteFence;
|
|
1328
|
+
readonly boundSessionTail?: OptionalBoundSessionTail;
|
|
1329
|
+
readonly metadata?: MetadataFrame;
|
|
1330
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1331
|
+
};
|
|
1332
|
+
export declare function decodeActorSendCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorSendCommand;
|
|
1333
|
+
export declare function encodeActorSendCommand(value: ActorSendCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1334
|
+
export declare function validateActorSendCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1335
|
+
export type ActorRequestCommand = {
|
|
1336
|
+
readonly command: "actorRequest";
|
|
1337
|
+
readonly flags: number;
|
|
1338
|
+
readonly correlation: NonzeroU64;
|
|
1339
|
+
readonly operation: OperationId;
|
|
1340
|
+
readonly messageFollowHopCount: U8;
|
|
1341
|
+
readonly sourceActor: OptionalActorRef;
|
|
1342
|
+
readonly targetActor: ActorRouteFence;
|
|
1343
|
+
readonly boundSessionTail?: OptionalBoundSessionTail;
|
|
1344
|
+
readonly metadata?: MetadataFrame;
|
|
1345
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1346
|
+
};
|
|
1347
|
+
export declare function decodeActorRequestCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorRequestCommand;
|
|
1348
|
+
export declare function encodeActorRequestCommand(value: ActorRequestCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1349
|
+
export declare function validateActorRequestCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1350
|
+
export type ActorLookupCommand = {
|
|
1351
|
+
readonly command: "actorLookup";
|
|
1352
|
+
readonly flags: number;
|
|
1353
|
+
readonly correlation: NonzeroU64;
|
|
1354
|
+
readonly actorId: Text8;
|
|
1355
|
+
};
|
|
1356
|
+
export declare function decodeActorLookupCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorLookupCommand;
|
|
1357
|
+
export declare function encodeActorLookupCommand(value: ActorLookupCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1358
|
+
export declare function validateActorLookupCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1359
|
+
export type ActorDestroyCommand = {
|
|
1360
|
+
readonly command: "actorDestroy";
|
|
1361
|
+
readonly flags: number;
|
|
1362
|
+
readonly correlation: NonzeroU64;
|
|
1363
|
+
readonly actor: ActorRouteFence;
|
|
1364
|
+
};
|
|
1365
|
+
export declare function decodeActorDestroyCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorDestroyCommand;
|
|
1366
|
+
export declare function encodeActorDestroyCommand(value: ActorDestroyCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1367
|
+
export declare function validateActorDestroyCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1368
|
+
export type ActorJoinCommand = {
|
|
1369
|
+
readonly command: "actorJoin";
|
|
1370
|
+
readonly flags: number;
|
|
1371
|
+
readonly correlation: NonzeroU64;
|
|
1372
|
+
readonly actor: ActorRouteFence;
|
|
1373
|
+
readonly entry: Bool8;
|
|
1374
|
+
readonly targetSpot: SpotRouteFence;
|
|
1375
|
+
readonly payload?: ApplicationPayloadEnvelopeV1;
|
|
1376
|
+
};
|
|
1377
|
+
export declare function decodeActorJoinCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorJoinCommand;
|
|
1378
|
+
export declare function encodeActorJoinCommand(value: ActorJoinCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1379
|
+
export declare function validateActorJoinCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1380
|
+
export type ActorLeftCommand = {
|
|
1381
|
+
readonly command: "actorLeft";
|
|
1382
|
+
readonly flags: number;
|
|
1383
|
+
readonly actor: ActorRef;
|
|
1384
|
+
readonly previousMembership: SpotMembership;
|
|
1385
|
+
readonly currentAuthorityOwnerGeneration: NonzeroU64;
|
|
1386
|
+
};
|
|
1387
|
+
export declare function decodeActorLeftCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorLeftCommand;
|
|
1388
|
+
export declare function encodeActorLeftCommand(value: ActorLeftCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1389
|
+
export declare function validateActorLeftCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1390
|
+
export type RelocationReadyCommand = {
|
|
1391
|
+
readonly command: "relocationReady";
|
|
1392
|
+
readonly flags: number;
|
|
1393
|
+
readonly relocation: RelocationId;
|
|
1394
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
1395
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1396
|
+
readonly target: RelocationTargetFence;
|
|
1397
|
+
readonly object: RelocationObjectIdentity;
|
|
1398
|
+
readonly senderRole: RelocationRole;
|
|
1399
|
+
};
|
|
1400
|
+
export declare function decodeRelocationReadyCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RelocationReadyCommand;
|
|
1401
|
+
export declare function encodeRelocationReadyCommand(value: RelocationReadyCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1402
|
+
export declare function validateRelocationReadyCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1403
|
+
export type RelocationDataCommand = {
|
|
1404
|
+
readonly command: "relocationData";
|
|
1405
|
+
readonly flags: number;
|
|
1406
|
+
readonly relocation: RelocationId;
|
|
1407
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
1408
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1409
|
+
readonly senderRole: RelocationRole;
|
|
1410
|
+
readonly object: RelocationObjectIdentity;
|
|
1411
|
+
readonly record: FrozenRecord;
|
|
1412
|
+
};
|
|
1413
|
+
export declare function decodeRelocationDataCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RelocationDataCommand;
|
|
1414
|
+
export declare function encodeRelocationDataCommand(value: RelocationDataCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1415
|
+
export declare function validateRelocationDataCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1416
|
+
export type ReplyRelayCommand = {
|
|
1417
|
+
readonly command: "replyRelay";
|
|
1418
|
+
readonly flags: number;
|
|
1419
|
+
readonly operation: OperationId;
|
|
1420
|
+
readonly replyRouteId: NonzeroU64;
|
|
1421
|
+
readonly context: ReplyRelayContext;
|
|
1422
|
+
readonly terminalResult: RequestTerminalResult;
|
|
1423
|
+
readonly failureCode: FrameworkErrorCode;
|
|
1424
|
+
readonly payload?: ApplicationPayloadEnvelopeV1;
|
|
1425
|
+
};
|
|
1426
|
+
export declare function decodeReplyRelayCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ReplyRelayCommand;
|
|
1427
|
+
export declare function encodeReplyRelayCommand(value: ReplyRelayCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1428
|
+
export declare function validateReplyRelayCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1429
|
+
export type RelocationCutoverCommand = {
|
|
1430
|
+
readonly command: "relocationCutover";
|
|
1431
|
+
readonly flags: number;
|
|
1432
|
+
readonly relocation: RelocationId;
|
|
1433
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
1434
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1435
|
+
readonly senderRole: RelocationRole;
|
|
1436
|
+
readonly object: RelocationObjectIdentity;
|
|
1437
|
+
readonly boundaryRecordCount: OrdinalOrZero;
|
|
1438
|
+
readonly boundaryChecksumCrc32c: U32;
|
|
1439
|
+
};
|
|
1440
|
+
export declare function decodeRelocationCutoverCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RelocationCutoverCommand;
|
|
1441
|
+
export declare function encodeRelocationCutoverCommand(value: RelocationCutoverCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1442
|
+
export declare function validateRelocationCutoverCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1443
|
+
export type BoundSessionSendCommand = {
|
|
1444
|
+
readonly command: "boundSessionSend";
|
|
1445
|
+
readonly flags: number;
|
|
1446
|
+
readonly actor: ActorRouteFence;
|
|
1447
|
+
readonly expectedBindingGeneration: NonzeroU64;
|
|
1448
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1449
|
+
};
|
|
1450
|
+
export declare function decodeBoundSessionSendCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): BoundSessionSendCommand;
|
|
1451
|
+
export declare function encodeBoundSessionSendCommand(value: BoundSessionSendCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1452
|
+
export declare function validateBoundSessionSendCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1453
|
+
export type ActorJoinedCommand = {
|
|
1454
|
+
readonly command: "actorJoined";
|
|
1455
|
+
readonly flags: number;
|
|
1456
|
+
readonly actor: ActorRef;
|
|
1457
|
+
readonly previousMembership: OptionalSpotMembership;
|
|
1458
|
+
readonly currentMembership: SpotMembership;
|
|
1459
|
+
readonly currentAuthorityOwnerGeneration: NonzeroU64;
|
|
1460
|
+
};
|
|
1461
|
+
export declare function decodeActorJoinedCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorJoinedCommand;
|
|
1462
|
+
export declare function encodeActorJoinedCommand(value: ActorJoinedCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1463
|
+
export declare function validateActorJoinedCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1464
|
+
export type BoundSessionBindCommand = {
|
|
1465
|
+
readonly command: "boundSessionBind";
|
|
1466
|
+
readonly flags: number;
|
|
1467
|
+
readonly correlation: NonzeroU64;
|
|
1468
|
+
readonly actor: ActorRouteFence;
|
|
1469
|
+
readonly sessionRid: Rid;
|
|
1470
|
+
readonly binding: BoundSessionBindingTransition;
|
|
1471
|
+
};
|
|
1472
|
+
export declare function decodeBoundSessionBindCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): BoundSessionBindCommand;
|
|
1473
|
+
export declare function encodeBoundSessionBindCommand(value: BoundSessionBindCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1474
|
+
export declare function validateBoundSessionBindCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1475
|
+
export type InstanceSpotCommand = {
|
|
1476
|
+
readonly command: "instanceSpot";
|
|
1477
|
+
readonly flags: number;
|
|
1478
|
+
readonly route: InstanceRouteV1;
|
|
1479
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
1480
|
+
readonly sourceNodeRid: Rid;
|
|
1481
|
+
readonly sourceSpotId: OptionalText8;
|
|
1482
|
+
readonly operationKind: InstanceOperationKind;
|
|
1483
|
+
readonly operation: OperationIdOrZero;
|
|
1484
|
+
readonly replyRoute: InstanceReplyRoute;
|
|
1485
|
+
readonly metadata?: MetadataFrame;
|
|
1486
|
+
readonly payload: ApplicationPayloadEnvelopeV1;
|
|
1487
|
+
};
|
|
1488
|
+
export declare function decodeInstanceSpotCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): InstanceSpotCommand;
|
|
1489
|
+
export declare function encodeInstanceSpotCommand(value: InstanceSpotCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1490
|
+
export declare function validateInstanceSpotCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1491
|
+
export type RelocationPrepareCommand = {
|
|
1492
|
+
readonly command: "relocationPrepare";
|
|
1493
|
+
readonly flags: number;
|
|
1494
|
+
readonly relocation: RelocationId;
|
|
1495
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
1496
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1497
|
+
readonly target: RelocationTargetFence;
|
|
1498
|
+
readonly initiatorRole: RelocationRole;
|
|
1499
|
+
readonly object: RelocationObjectIdentity;
|
|
1500
|
+
readonly sourceNodeRid: Rid;
|
|
1501
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
1502
|
+
readonly payloadTotalLength: RelocationLogicalLength;
|
|
1503
|
+
readonly payloadChunkCount: RelocationChunkCount;
|
|
1504
|
+
readonly payloadChecksumCrc32c: U32;
|
|
1505
|
+
readonly applicationVersion: ApplicationVersion;
|
|
1506
|
+
};
|
|
1507
|
+
export declare function decodeRelocationPrepareCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RelocationPrepareCommand;
|
|
1508
|
+
export declare function encodeRelocationPrepareCommand(value: RelocationPrepareCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1509
|
+
export declare function validateRelocationPrepareCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1510
|
+
export type SessionRelocationSealCommand = {
|
|
1511
|
+
readonly command: "sessionRelocationSeal";
|
|
1512
|
+
readonly flags: number;
|
|
1513
|
+
readonly relocation: RelocationId;
|
|
1514
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1515
|
+
readonly senderRole: RelocationRole;
|
|
1516
|
+
readonly actor: ActorRouteFence;
|
|
1517
|
+
readonly sessionOwnerNodeRid: Rid;
|
|
1518
|
+
readonly sessionOwnerNodeGeneration: NonzeroU64;
|
|
1519
|
+
readonly sessionOwnerId: Text8;
|
|
1520
|
+
readonly sessionOwnerLeaseGeneration: NonzeroU64;
|
|
1521
|
+
readonly sessionRid: Rid;
|
|
1522
|
+
readonly bindingGeneration: NonzeroU64;
|
|
1523
|
+
};
|
|
1524
|
+
export declare function decodeSessionRelocationSealCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): SessionRelocationSealCommand;
|
|
1525
|
+
export declare function encodeSessionRelocationSealCommand(value: SessionRelocationSealCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1526
|
+
export declare function validateSessionRelocationSealCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1527
|
+
export type SessionRelocationSealedCommand = {
|
|
1528
|
+
readonly command: "sessionRelocationSealed";
|
|
1529
|
+
readonly flags: number;
|
|
1530
|
+
readonly relocation: RelocationId;
|
|
1531
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1532
|
+
readonly actor: ActorRouteFence;
|
|
1533
|
+
readonly sessionOwnerNodeRid: Rid;
|
|
1534
|
+
readonly sessionOwnerNodeGeneration: NonzeroU64;
|
|
1535
|
+
readonly sessionOwnerId: Text8;
|
|
1536
|
+
readonly sessionOwnerLeaseGeneration: NonzeroU64;
|
|
1537
|
+
readonly sessionRid: Rid;
|
|
1538
|
+
readonly bindingGeneration: NonzeroU64;
|
|
1539
|
+
};
|
|
1540
|
+
export declare function decodeSessionRelocationSealedCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): SessionRelocationSealedCommand;
|
|
1541
|
+
export declare function encodeSessionRelocationSealedCommand(value: SessionRelocationSealedCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1542
|
+
export declare function validateSessionRelocationSealedCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1543
|
+
export type SessionRelocationRouteCommand = {
|
|
1544
|
+
readonly command: "sessionRelocationRoute";
|
|
1545
|
+
readonly flags: number;
|
|
1546
|
+
readonly relocation: RelocationId;
|
|
1547
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1548
|
+
readonly senderRole: RelocationRole;
|
|
1549
|
+
readonly actor: ActorRef;
|
|
1550
|
+
readonly sessionOwnerNodeRid: Rid;
|
|
1551
|
+
readonly sessionOwnerNodeGeneration: NonzeroU64;
|
|
1552
|
+
readonly sessionOwnerId: Text8;
|
|
1553
|
+
readonly sessionOwnerLeaseGeneration: NonzeroU64;
|
|
1554
|
+
readonly sessionRid: Rid;
|
|
1555
|
+
readonly bindingGeneration: NonzeroU64;
|
|
1556
|
+
readonly route: SessionRelocationRouteUpdate;
|
|
1557
|
+
};
|
|
1558
|
+
export declare function decodeSessionRelocationRouteCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): SessionRelocationRouteCommand;
|
|
1559
|
+
export declare function encodeSessionRelocationRouteCommand(value: SessionRelocationRouteCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1560
|
+
export declare function validateSessionRelocationRouteCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1561
|
+
export type ReplyRelayAckCommand = {
|
|
1562
|
+
readonly command: "replyRelayAck";
|
|
1563
|
+
readonly flags: number;
|
|
1564
|
+
readonly relocation: RelocationId;
|
|
1565
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1566
|
+
readonly operation: OperationId;
|
|
1567
|
+
readonly replyRouteId: NonzeroU64;
|
|
1568
|
+
readonly requestSource: RequestSourceFence;
|
|
1569
|
+
readonly status: ReplyRelayAckStatus;
|
|
1570
|
+
};
|
|
1571
|
+
export declare function decodeReplyRelayAckCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ReplyRelayAckCommand;
|
|
1572
|
+
export declare function encodeReplyRelayAckCommand(value: ReplyRelayAckCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1573
|
+
export declare function validateReplyRelayAckCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1574
|
+
export type UserSpotCreateCommand = {
|
|
1575
|
+
readonly command: "userSpotCreate";
|
|
1576
|
+
readonly flags: number;
|
|
1577
|
+
readonly correlation: NonzeroU64;
|
|
1578
|
+
readonly operation: OperationId;
|
|
1579
|
+
readonly sourceNodeRid: Rid;
|
|
1580
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
1581
|
+
readonly spotId: Text8;
|
|
1582
|
+
readonly stableType: Text8;
|
|
1583
|
+
readonly reservation: ObjectReservationFence;
|
|
1584
|
+
readonly deadlineUnixMs: NonzeroU64;
|
|
1585
|
+
};
|
|
1586
|
+
export declare function decodeUserSpotCreateCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): UserSpotCreateCommand;
|
|
1587
|
+
export declare function encodeUserSpotCreateCommand(value: UserSpotCreateCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1588
|
+
export declare function validateUserSpotCreateCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1589
|
+
export type UserSpotCloseCommand = {
|
|
1590
|
+
readonly command: "userSpotClose";
|
|
1591
|
+
readonly flags: number;
|
|
1592
|
+
readonly correlation: NonzeroU64;
|
|
1593
|
+
readonly operation: OperationId;
|
|
1594
|
+
readonly sourceNodeRid: Rid;
|
|
1595
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
1596
|
+
readonly target: UserSpotCloseFenceV1;
|
|
1597
|
+
readonly deadlineUnixMs: NonzeroU64;
|
|
1598
|
+
};
|
|
1599
|
+
export declare function decodeUserSpotCloseCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): UserSpotCloseCommand;
|
|
1600
|
+
export declare function encodeUserSpotCloseCommand(value: UserSpotCloseCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1601
|
+
export declare function validateUserSpotCloseCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1602
|
+
export type ActorCreateCommand = {
|
|
1603
|
+
readonly command: "actorCreate";
|
|
1604
|
+
readonly flags: number;
|
|
1605
|
+
readonly correlation: NonzeroU64;
|
|
1606
|
+
readonly operation: OperationId;
|
|
1607
|
+
readonly sourceNodeRid: Rid;
|
|
1608
|
+
readonly sourceNodeGeneration: NonzeroU64;
|
|
1609
|
+
readonly actorId: Text8;
|
|
1610
|
+
readonly stableType: Text8;
|
|
1611
|
+
readonly reservation: ObjectReservationFence;
|
|
1612
|
+
readonly deadlineUnixMs: NonzeroU64;
|
|
1613
|
+
};
|
|
1614
|
+
export declare function decodeActorCreateCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): ActorCreateCommand;
|
|
1615
|
+
export declare function encodeActorCreateCommand(value: ActorCreateCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1616
|
+
export declare function validateActorCreateCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1617
|
+
export type MessageFollowCommand = {
|
|
1618
|
+
readonly command: "messageFollow";
|
|
1619
|
+
readonly flags: number;
|
|
1620
|
+
readonly route: MessageFollowRouteV1;
|
|
1621
|
+
};
|
|
1622
|
+
export declare function decodeMessageFollowCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): MessageFollowCommand;
|
|
1623
|
+
export declare function encodeMessageFollowCommand(value: MessageFollowCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1624
|
+
export declare function validateMessageFollowCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1625
|
+
export type BoundSessionReplacedCommand = {
|
|
1626
|
+
readonly command: "boundSessionReplaced";
|
|
1627
|
+
readonly flags: number;
|
|
1628
|
+
readonly actorAuthority: ActorRouteFence;
|
|
1629
|
+
readonly retiredSession: RetiredBoundSessionRouteFence;
|
|
1630
|
+
};
|
|
1631
|
+
export declare function decodeBoundSessionReplacedCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): BoundSessionReplacedCommand;
|
|
1632
|
+
export declare function encodeBoundSessionReplacedCommand(value: BoundSessionReplacedCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1633
|
+
export declare function validateBoundSessionReplacedCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1634
|
+
export type RelocationStateCommand = {
|
|
1635
|
+
readonly command: "relocationState";
|
|
1636
|
+
readonly flags: number;
|
|
1637
|
+
readonly relocation: RelocationId;
|
|
1638
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
1639
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1640
|
+
readonly senderRole: RelocationRole;
|
|
1641
|
+
readonly object: RelocationObjectIdentity;
|
|
1642
|
+
readonly chunkOrdinal: U32;
|
|
1643
|
+
readonly chunkData: DurableBlob;
|
|
1644
|
+
};
|
|
1645
|
+
export declare function decodeRelocationStateCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RelocationStateCommand;
|
|
1646
|
+
export declare function encodeRelocationStateCommand(value: RelocationStateCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1647
|
+
export declare function validateRelocationStateCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1648
|
+
export type RelocationFailedCommand = {
|
|
1649
|
+
readonly command: "relocationFailed";
|
|
1650
|
+
readonly flags: number;
|
|
1651
|
+
readonly relocation: RelocationId;
|
|
1652
|
+
readonly targetAttemptGeneration: NonzeroU64;
|
|
1653
|
+
readonly coordinator: RelocationCoordinatorFence;
|
|
1654
|
+
readonly target: RelocationTargetFence;
|
|
1655
|
+
readonly object: RelocationObjectIdentity;
|
|
1656
|
+
readonly senderRole: RelocationRole;
|
|
1657
|
+
readonly failureCode: FrameworkErrorCode;
|
|
1658
|
+
};
|
|
1659
|
+
export declare function decodeRelocationFailedCommand(frames: readonly Uint8Array[], context: ServiceWireDecoderContext): RelocationFailedCommand;
|
|
1660
|
+
export declare function encodeRelocationFailedCommand(value: RelocationFailedCommand, context: ServiceWireDecoderContext): readonly Uint8Array[];
|
|
1661
|
+
export declare function validateRelocationFailedCommandRuntimePredicates(value: any, context: ServiceWireDecoderContext): void;
|
|
1662
|
+
export type ServiceWireCommand = HelloCommand | AdmitCommand | RejectCommand | UpdateCommand | LivenessProbeCommand | LivenessAckCommand | NodeSendCommand | NodeRequestCommand | ChannelSendCommand | ChannelRequestCommand | ReplyCommand | SpotSendCommand | SpotRequestCommand | LogicalMulticastCommand | ActorSendCommand | ActorRequestCommand | ActorLookupCommand | ActorDestroyCommand | ActorJoinCommand | ActorLeftCommand | RelocationReadyCommand | RelocationDataCommand | ReplyRelayCommand | RelocationCutoverCommand | BoundSessionSendCommand | ActorJoinedCommand | BoundSessionBindCommand | InstanceSpotCommand | RelocationPrepareCommand | SessionRelocationSealCommand | SessionRelocationSealedCommand | SessionRelocationRouteCommand | ReplyRelayAckCommand | UserSpotCreateCommand | UserSpotCloseCommand | ActorCreateCommand | MessageFollowCommand | BoundSessionReplacedCommand | RelocationStateCommand | RelocationFailedCommand;
|
|
1663
|
+
export declare function decodeAuthorityPayloadV1DurableFormat(bytes: Uint8Array, context: ServiceWireDecoderContext): AuthorityPayloadV1;
|
|
1664
|
+
export declare function encodeAuthorityPayloadV1DurableFormat(value: AuthorityPayloadV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1665
|
+
export declare function decodeInstanceActivationRecoveryV1DurableFormat(bytes: Uint8Array, context: ServiceWireDecoderContext): InstanceActivationRecoveryV1;
|
|
1666
|
+
export declare function encodeInstanceActivationRecoveryV1DurableFormat(value: InstanceActivationRecoveryV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1667
|
+
export declare function decodeRelocationDataChunkV1DurableFormat(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationDataChunkV1;
|
|
1668
|
+
export declare function encodeRelocationDataChunkV1DurableFormat(value: RelocationDataChunkV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1669
|
+
export declare function decodeRelocationManifestV1DurableFormat(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationManifestV1;
|
|
1670
|
+
export declare function encodeRelocationManifestV1DurableFormat(value: RelocationManifestV1, context: ServiceWireDecoderContext): Uint8Array;
|
|
1671
|
+
export declare function decodeRelocationEnvelopeV1LogicalStream(bytes: Uint8Array, context: ServiceWireDecoderContext): RelocationEnvelopeV1;
|
|
1672
|
+
export declare function encodeRelocationEnvelopeV1LogicalStream(value: RelocationEnvelopeV1, context: ServiceWireDecoderContext): Uint8Array;
|