@adea-ai/runtime-gateway-protocol 1.16.0 → 1.17.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/README.md +12 -23
- package/dist/device-relay.d.ts +2 -0
- package/dist/device-relay.js +14 -0
- package/dist/device-sync.d.ts +241 -0
- package/dist/device-sync.js +557 -0
- package/dist/index.d.ts +2 -6
- package/dist/index.js +2 -6
- package/package.json +12 -16
- package/dist/acp-remote-sealed-channel.d.ts +0 -12
- package/dist/acp-remote-sealed-channel.js +0 -1
- package/dist/authentication.d.ts +0 -45
- package/dist/authentication.js +0 -71
- package/dist/emulator.d.ts +0 -24
- package/dist/emulator.js +0 -137
- package/dist/fixtures.d.ts +0 -149
- package/dist/fixtures.js +0 -48
- package/dist/protocol.d.ts +0 -716
- package/dist/protocol.js +0 -522
- package/dist/public-identity-validation-compatibility.d.ts +0 -1
- package/dist/public-identity-validation-compatibility.js +0 -10
- package/fixtures/golden/envelopes.json +0 -153
- package/fixtures/index.mjs +0 -4
- package/fixtures/malformed/envelopes.json +0 -70
- package/schema/gateway-envelope.v1.json +0 -990
package/dist/protocol.d.ts
DELETED
|
@@ -1,716 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GatewayProtocolVersionSchema: z.ZodObject<{
|
|
3
|
-
major: z.ZodNumber;
|
|
4
|
-
minor: z.ZodNumber;
|
|
5
|
-
}, z.core.$strict>;
|
|
6
|
-
export type GatewayProtocolVersion = z.output<typeof GatewayProtocolVersionSchema>;
|
|
7
|
-
export declare const GatewayProtocolManifest: Readonly<{
|
|
8
|
-
name: "control-plane-runtime-gateway";
|
|
9
|
-
current: {
|
|
10
|
-
major: number;
|
|
11
|
-
minor: number;
|
|
12
|
-
};
|
|
13
|
-
supported: {
|
|
14
|
-
major: number;
|
|
15
|
-
minor: number;
|
|
16
|
-
}[];
|
|
17
|
-
}>;
|
|
18
|
-
export declare const GatewayProtocolDeprecationSchema: z.ZodObject<{
|
|
19
|
-
version: z.ZodObject<{
|
|
20
|
-
major: z.ZodNumber;
|
|
21
|
-
minor: z.ZodNumber;
|
|
22
|
-
}, z.core.$strict>;
|
|
23
|
-
deprecatedAt: z.ZodISODateTime;
|
|
24
|
-
sunsetAt: z.ZodOptional<z.ZodISODateTime>;
|
|
25
|
-
replacement: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
major: z.ZodNumber;
|
|
27
|
-
minor: z.ZodNumber;
|
|
28
|
-
}, z.core.$strict>>;
|
|
29
|
-
}, z.core.$strict>;
|
|
30
|
-
export declare function negotiateGatewayProtocolVersion(localValues: readonly GatewayProtocolVersion[], remoteValues: readonly GatewayProtocolVersion[]): GatewayProtocolVersion | undefined;
|
|
31
|
-
export declare const GatewayArtifactReferenceSchema: z.ZodObject<{
|
|
32
|
-
artifactId: z.ZodString;
|
|
33
|
-
digest: z.ZodString;
|
|
34
|
-
mediaType: z.ZodString;
|
|
35
|
-
sizeBytes: z.ZodNumber;
|
|
36
|
-
}, z.core.$strict>;
|
|
37
|
-
export declare const GatewayRetainedCommandOutcomeSchema: z.ZodObject<{
|
|
38
|
-
commandId: z.ZodString;
|
|
39
|
-
payloadHash: z.ZodString;
|
|
40
|
-
status: z.ZodEnum<{
|
|
41
|
-
accepted: "accepted";
|
|
42
|
-
cancelled: "cancelled";
|
|
43
|
-
cancelling: "cancelling";
|
|
44
|
-
failed: "failed";
|
|
45
|
-
running: "running";
|
|
46
|
-
succeeded: "succeeded";
|
|
47
|
-
unknown: "unknown";
|
|
48
|
-
}>;
|
|
49
|
-
observedAt: z.ZodISODateTime;
|
|
50
|
-
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
51
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
52
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
-
artifact: z.ZodObject<{
|
|
54
|
-
artifactId: z.ZodString;
|
|
55
|
-
digest: z.ZodString;
|
|
56
|
-
mediaType: z.ZodString;
|
|
57
|
-
sizeBytes: z.ZodNumber;
|
|
58
|
-
}, z.core.$strict>;
|
|
59
|
-
}, z.core.$strict>]>>;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
export declare const GatewayHelloEnvelopeSchema: z.ZodObject<{
|
|
62
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
63
|
-
protocolVersion: z.ZodObject<{
|
|
64
|
-
major: z.ZodNumber;
|
|
65
|
-
minor: z.ZodNumber;
|
|
66
|
-
}, z.core.$strict>;
|
|
67
|
-
sequence: z.ZodNumber;
|
|
68
|
-
nodeId: z.ZodString;
|
|
69
|
-
workspaceId: z.ZodString;
|
|
70
|
-
traceId: z.ZodString;
|
|
71
|
-
sentAt: z.ZodISODateTime;
|
|
72
|
-
channelGeneration: z.ZodNumber;
|
|
73
|
-
type: z.ZodLiteral<"hello">;
|
|
74
|
-
supportedVersions: z.ZodArray<z.ZodObject<{
|
|
75
|
-
major: z.ZodNumber;
|
|
76
|
-
minor: z.ZodNumber;
|
|
77
|
-
}, z.core.$strict>>;
|
|
78
|
-
lastAcknowledgedSequence: z.ZodNumber;
|
|
79
|
-
retainedCommandOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
-
commandId: z.ZodString;
|
|
81
|
-
payloadHash: z.ZodString;
|
|
82
|
-
status: z.ZodEnum<{
|
|
83
|
-
accepted: "accepted";
|
|
84
|
-
cancelled: "cancelled";
|
|
85
|
-
cancelling: "cancelling";
|
|
86
|
-
failed: "failed";
|
|
87
|
-
running: "running";
|
|
88
|
-
succeeded: "succeeded";
|
|
89
|
-
unknown: "unknown";
|
|
90
|
-
}>;
|
|
91
|
-
observedAt: z.ZodISODateTime;
|
|
92
|
-
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
93
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
94
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
-
artifact: z.ZodObject<{
|
|
96
|
-
artifactId: z.ZodString;
|
|
97
|
-
digest: z.ZodString;
|
|
98
|
-
mediaType: z.ZodString;
|
|
99
|
-
sizeBytes: z.ZodNumber;
|
|
100
|
-
}, z.core.$strict>;
|
|
101
|
-
}, z.core.$strict>]>>;
|
|
102
|
-
}, z.core.$strict>>>;
|
|
103
|
-
}, z.core.$strict>;
|
|
104
|
-
export declare const GatewayCommandEnvelopeSchema: z.ZodObject<{
|
|
105
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
106
|
-
protocolVersion: z.ZodObject<{
|
|
107
|
-
major: z.ZodNumber;
|
|
108
|
-
minor: z.ZodNumber;
|
|
109
|
-
}, z.core.$strict>;
|
|
110
|
-
sequence: z.ZodNumber;
|
|
111
|
-
nodeId: z.ZodString;
|
|
112
|
-
workspaceId: z.ZodString;
|
|
113
|
-
traceId: z.ZodString;
|
|
114
|
-
sentAt: z.ZodISODateTime;
|
|
115
|
-
channelGeneration: z.ZodNumber;
|
|
116
|
-
type: z.ZodLiteral<"command">;
|
|
117
|
-
canonicalizationVersion: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
118
|
-
commandId: z.ZodString;
|
|
119
|
-
idempotencyKey: z.ZodString;
|
|
120
|
-
payloadHash: z.ZodString;
|
|
121
|
-
issuedAt: z.ZodISODateTime;
|
|
122
|
-
expiresAt: z.ZodISODateTime;
|
|
123
|
-
family: z.ZodEnum<{
|
|
124
|
-
context_provider: "context_provider";
|
|
125
|
-
runtime: "runtime";
|
|
126
|
-
}>;
|
|
127
|
-
operation: z.ZodEnum<{
|
|
128
|
-
"context.read": "context.read";
|
|
129
|
-
"context.status": "context.status";
|
|
130
|
-
"context.write": "context.write";
|
|
131
|
-
"runtime.acp-remote-sealed": "runtime.acp-remote-sealed";
|
|
132
|
-
"runtime.approval": "runtime.approval";
|
|
133
|
-
"runtime.cancel": "runtime.cancel";
|
|
134
|
-
"runtime.execute": "runtime.execute";
|
|
135
|
-
"runtime.input": "runtime.input";
|
|
136
|
-
"runtime.session": "runtime.session";
|
|
137
|
-
"runtime.status": "runtime.status";
|
|
138
|
-
}>;
|
|
139
|
-
driver: z.ZodObject<{
|
|
140
|
-
family: z.ZodString;
|
|
141
|
-
version: z.ZodString;
|
|
142
|
-
}, z.core.$strict>;
|
|
143
|
-
runtimeConnectionId: z.ZodOptional<z.ZodString>;
|
|
144
|
-
executionId: z.ZodOptional<z.ZodString>;
|
|
145
|
-
attemptId: z.ZodOptional<z.ZodString>;
|
|
146
|
-
providerRef: z.ZodOptional<z.ZodString>;
|
|
147
|
-
authorizationRef: z.ZodOptional<z.ZodString>;
|
|
148
|
-
requiredCapabilities: z.ZodArray<z.ZodString>;
|
|
149
|
-
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
150
|
-
version: z.ZodNumber;
|
|
151
|
-
parameters: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
152
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
153
|
-
version: z.ZodNumber;
|
|
154
|
-
artifact: z.ZodObject<{
|
|
155
|
-
artifactId: z.ZodString;
|
|
156
|
-
digest: z.ZodString;
|
|
157
|
-
mediaType: z.ZodString;
|
|
158
|
-
sizeBytes: z.ZodNumber;
|
|
159
|
-
}, z.core.$strict>;
|
|
160
|
-
}, z.core.$strict>]>;
|
|
161
|
-
}, z.core.$strict>;
|
|
162
|
-
export declare const GatewayAcknowledgementEnvelopeSchema: z.ZodObject<{
|
|
163
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
164
|
-
protocolVersion: z.ZodObject<{
|
|
165
|
-
major: z.ZodNumber;
|
|
166
|
-
minor: z.ZodNumber;
|
|
167
|
-
}, z.core.$strict>;
|
|
168
|
-
sequence: z.ZodNumber;
|
|
169
|
-
nodeId: z.ZodString;
|
|
170
|
-
workspaceId: z.ZodString;
|
|
171
|
-
traceId: z.ZodString;
|
|
172
|
-
sentAt: z.ZodISODateTime;
|
|
173
|
-
channelGeneration: z.ZodNumber;
|
|
174
|
-
type: z.ZodLiteral<"ack">;
|
|
175
|
-
commandId: z.ZodString;
|
|
176
|
-
payloadHash: z.ZodString;
|
|
177
|
-
disposition: z.ZodEnum<{
|
|
178
|
-
accepted: "accepted";
|
|
179
|
-
expired: "expired";
|
|
180
|
-
rejected: "rejected";
|
|
181
|
-
replayed: "replayed";
|
|
182
|
-
}>;
|
|
183
|
-
}, z.core.$strict>;
|
|
184
|
-
export declare const GatewayProgressEnvelopeSchema: z.ZodObject<{
|
|
185
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
186
|
-
protocolVersion: z.ZodObject<{
|
|
187
|
-
major: z.ZodNumber;
|
|
188
|
-
minor: z.ZodNumber;
|
|
189
|
-
}, z.core.$strict>;
|
|
190
|
-
sequence: z.ZodNumber;
|
|
191
|
-
nodeId: z.ZodString;
|
|
192
|
-
workspaceId: z.ZodString;
|
|
193
|
-
traceId: z.ZodString;
|
|
194
|
-
sentAt: z.ZodISODateTime;
|
|
195
|
-
channelGeneration: z.ZodNumber;
|
|
196
|
-
type: z.ZodLiteral<"progress">;
|
|
197
|
-
commandId: z.ZodString;
|
|
198
|
-
payloadHash: z.ZodString;
|
|
199
|
-
eventSequence: z.ZodNumber;
|
|
200
|
-
event: z.ZodObject<{
|
|
201
|
-
kind: z.ZodString;
|
|
202
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
203
|
-
}, z.core.$strict>;
|
|
204
|
-
}, z.core.$strict>;
|
|
205
|
-
export declare const GatewayResultEnvelopeSchema: z.ZodObject<{
|
|
206
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
207
|
-
protocolVersion: z.ZodObject<{
|
|
208
|
-
major: z.ZodNumber;
|
|
209
|
-
minor: z.ZodNumber;
|
|
210
|
-
}, z.core.$strict>;
|
|
211
|
-
sequence: z.ZodNumber;
|
|
212
|
-
nodeId: z.ZodString;
|
|
213
|
-
workspaceId: z.ZodString;
|
|
214
|
-
traceId: z.ZodString;
|
|
215
|
-
sentAt: z.ZodISODateTime;
|
|
216
|
-
channelGeneration: z.ZodNumber;
|
|
217
|
-
type: z.ZodLiteral<"result">;
|
|
218
|
-
commandId: z.ZodString;
|
|
219
|
-
payloadHash: z.ZodString;
|
|
220
|
-
status: z.ZodEnum<{
|
|
221
|
-
cancelled: "cancelled";
|
|
222
|
-
failed: "failed";
|
|
223
|
-
succeeded: "succeeded";
|
|
224
|
-
}>;
|
|
225
|
-
completedAt: z.ZodISODateTime;
|
|
226
|
-
terminalUsage: z.ZodOptional<z.ZodObject<{
|
|
227
|
-
inputTokens: z.ZodNumber;
|
|
228
|
-
outputTokens: z.ZodNumber;
|
|
229
|
-
durationMs: z.ZodNumber;
|
|
230
|
-
cost: z.ZodOptional<z.ZodObject<{
|
|
231
|
-
amount: z.ZodString;
|
|
232
|
-
currency: z.ZodString;
|
|
233
|
-
}, z.core.$strict>>;
|
|
234
|
-
accounting: z.ZodOptional<z.ZodObject<{
|
|
235
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
236
|
-
sourceId: z.ZodString;
|
|
237
|
-
fundingSource: z.ZodEnum<{
|
|
238
|
-
byo_api: "byo_api";
|
|
239
|
-
external_subscription: "external_subscription";
|
|
240
|
-
hq_managed: "hq_managed";
|
|
241
|
-
}>;
|
|
242
|
-
currency: z.ZodLiteral<"USD">;
|
|
243
|
-
chargedMicrounits: z.ZodNumber;
|
|
244
|
-
costExact: z.ZodLiteral<true>;
|
|
245
|
-
}, z.core.$strict>>;
|
|
246
|
-
}, z.core.$strict>>;
|
|
247
|
-
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
248
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
249
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
250
|
-
artifact: z.ZodObject<{
|
|
251
|
-
artifactId: z.ZodString;
|
|
252
|
-
digest: z.ZodString;
|
|
253
|
-
mediaType: z.ZodString;
|
|
254
|
-
sizeBytes: z.ZodNumber;
|
|
255
|
-
}, z.core.$strict>;
|
|
256
|
-
}, z.core.$strict>]>;
|
|
257
|
-
}, z.core.$strict>;
|
|
258
|
-
export declare const GatewayCancellationEnvelopeSchema: z.ZodObject<{
|
|
259
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
260
|
-
protocolVersion: z.ZodObject<{
|
|
261
|
-
major: z.ZodNumber;
|
|
262
|
-
minor: z.ZodNumber;
|
|
263
|
-
}, z.core.$strict>;
|
|
264
|
-
sequence: z.ZodNumber;
|
|
265
|
-
nodeId: z.ZodString;
|
|
266
|
-
workspaceId: z.ZodString;
|
|
267
|
-
traceId: z.ZodString;
|
|
268
|
-
sentAt: z.ZodISODateTime;
|
|
269
|
-
channelGeneration: z.ZodNumber;
|
|
270
|
-
type: z.ZodLiteral<"cancel">;
|
|
271
|
-
commandId: z.ZodString;
|
|
272
|
-
payloadHash: z.ZodString;
|
|
273
|
-
requestedAt: z.ZodISODateTime;
|
|
274
|
-
reason: z.ZodEnum<{
|
|
275
|
-
deadline_exceeded: "deadline_exceeded";
|
|
276
|
-
policy_revoked: "policy_revoked";
|
|
277
|
-
shutdown: "shutdown";
|
|
278
|
-
user_requested: "user_requested";
|
|
279
|
-
}>;
|
|
280
|
-
}, z.core.$strict>;
|
|
281
|
-
export declare const GatewayHeartbeatEnvelopeSchema: z.ZodObject<{
|
|
282
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
283
|
-
protocolVersion: z.ZodObject<{
|
|
284
|
-
major: z.ZodNumber;
|
|
285
|
-
minor: z.ZodNumber;
|
|
286
|
-
}, z.core.$strict>;
|
|
287
|
-
sequence: z.ZodNumber;
|
|
288
|
-
nodeId: z.ZodString;
|
|
289
|
-
workspaceId: z.ZodString;
|
|
290
|
-
traceId: z.ZodString;
|
|
291
|
-
sentAt: z.ZodISODateTime;
|
|
292
|
-
channelGeneration: z.ZodNumber;
|
|
293
|
-
type: z.ZodLiteral<"heartbeat">;
|
|
294
|
-
observedAt: z.ZodISODateTime;
|
|
295
|
-
status: z.ZodEnum<{
|
|
296
|
-
degraded: "degraded";
|
|
297
|
-
draining: "draining";
|
|
298
|
-
online: "online";
|
|
299
|
-
}>;
|
|
300
|
-
}, z.core.$strict>;
|
|
301
|
-
export declare const GatewayInventoryEnvelopeSchema: z.ZodObject<{
|
|
302
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
303
|
-
protocolVersion: z.ZodObject<{
|
|
304
|
-
major: z.ZodNumber;
|
|
305
|
-
minor: z.ZodNumber;
|
|
306
|
-
}, z.core.$strict>;
|
|
307
|
-
sequence: z.ZodNumber;
|
|
308
|
-
nodeId: z.ZodString;
|
|
309
|
-
workspaceId: z.ZodString;
|
|
310
|
-
traceId: z.ZodString;
|
|
311
|
-
sentAt: z.ZodISODateTime;
|
|
312
|
-
channelGeneration: z.ZodNumber;
|
|
313
|
-
type: z.ZodLiteral<"inventory">;
|
|
314
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
315
|
-
delta: "delta";
|
|
316
|
-
snapshot: "snapshot";
|
|
317
|
-
}>>;
|
|
318
|
-
snapshotVersion: z.ZodNumber;
|
|
319
|
-
baseSnapshotVersion: z.ZodOptional<z.ZodNumber>;
|
|
320
|
-
observedAt: z.ZodISODateTime;
|
|
321
|
-
runtimeDrivers: z.ZodArray<z.ZodObject<{
|
|
322
|
-
opaqueRef: z.ZodString;
|
|
323
|
-
driverFamily: z.ZodString;
|
|
324
|
-
adapterVersion: z.ZodOptional<z.ZodString>;
|
|
325
|
-
driverVersion: z.ZodString;
|
|
326
|
-
harnessVersion: z.ZodOptional<z.ZodString>;
|
|
327
|
-
capabilityTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
328
|
-
protocolVersion: z.ZodObject<{
|
|
329
|
-
major: z.ZodNumber;
|
|
330
|
-
minor: z.ZodNumber;
|
|
331
|
-
}, z.core.$strict>;
|
|
332
|
-
health: z.ZodEnum<{
|
|
333
|
-
degraded: "degraded";
|
|
334
|
-
healthy: "healthy";
|
|
335
|
-
unavailable: "unavailable";
|
|
336
|
-
}>;
|
|
337
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
338
|
-
limitations: z.ZodArray<z.ZodString>;
|
|
339
|
-
}, z.core.$strict>>;
|
|
340
|
-
contextProviders: z.ZodArray<z.ZodObject<{
|
|
341
|
-
opaqueRef: z.ZodString;
|
|
342
|
-
driverFamily: z.ZodString;
|
|
343
|
-
adapterVersion: z.ZodOptional<z.ZodString>;
|
|
344
|
-
driverVersion: z.ZodString;
|
|
345
|
-
harnessVersion: z.ZodOptional<z.ZodString>;
|
|
346
|
-
capabilityTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
347
|
-
protocolVersion: z.ZodObject<{
|
|
348
|
-
major: z.ZodNumber;
|
|
349
|
-
minor: z.ZodNumber;
|
|
350
|
-
}, z.core.$strict>;
|
|
351
|
-
health: z.ZodEnum<{
|
|
352
|
-
degraded: "degraded";
|
|
353
|
-
healthy: "healthy";
|
|
354
|
-
unavailable: "unavailable";
|
|
355
|
-
}>;
|
|
356
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
357
|
-
limitations: z.ZodArray<z.ZodString>;
|
|
358
|
-
}, z.core.$strict>>;
|
|
359
|
-
removedRuntimeRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
360
|
-
}, z.core.$strict>;
|
|
361
|
-
export declare const GatewayErrorEnvelopeSchema: z.ZodObject<{
|
|
362
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
363
|
-
protocolVersion: z.ZodObject<{
|
|
364
|
-
major: z.ZodNumber;
|
|
365
|
-
minor: z.ZodNumber;
|
|
366
|
-
}, z.core.$strict>;
|
|
367
|
-
sequence: z.ZodNumber;
|
|
368
|
-
nodeId: z.ZodString;
|
|
369
|
-
workspaceId: z.ZodString;
|
|
370
|
-
traceId: z.ZodString;
|
|
371
|
-
sentAt: z.ZodISODateTime;
|
|
372
|
-
channelGeneration: z.ZodNumber;
|
|
373
|
-
type: z.ZodLiteral<"error">;
|
|
374
|
-
commandId: z.ZodOptional<z.ZodString>;
|
|
375
|
-
payloadHash: z.ZodOptional<z.ZodString>;
|
|
376
|
-
code: z.ZodString;
|
|
377
|
-
retryable: z.ZodBoolean;
|
|
378
|
-
}, z.core.$strict>;
|
|
379
|
-
export declare const GatewayEnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
380
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
381
|
-
protocolVersion: z.ZodObject<{
|
|
382
|
-
major: z.ZodNumber;
|
|
383
|
-
minor: z.ZodNumber;
|
|
384
|
-
}, z.core.$strict>;
|
|
385
|
-
sequence: z.ZodNumber;
|
|
386
|
-
nodeId: z.ZodString;
|
|
387
|
-
workspaceId: z.ZodString;
|
|
388
|
-
traceId: z.ZodString;
|
|
389
|
-
sentAt: z.ZodISODateTime;
|
|
390
|
-
channelGeneration: z.ZodNumber;
|
|
391
|
-
type: z.ZodLiteral<"hello">;
|
|
392
|
-
supportedVersions: z.ZodArray<z.ZodObject<{
|
|
393
|
-
major: z.ZodNumber;
|
|
394
|
-
minor: z.ZodNumber;
|
|
395
|
-
}, z.core.$strict>>;
|
|
396
|
-
lastAcknowledgedSequence: z.ZodNumber;
|
|
397
|
-
retainedCommandOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
398
|
-
commandId: z.ZodString;
|
|
399
|
-
payloadHash: z.ZodString;
|
|
400
|
-
status: z.ZodEnum<{
|
|
401
|
-
accepted: "accepted";
|
|
402
|
-
cancelled: "cancelled";
|
|
403
|
-
cancelling: "cancelling";
|
|
404
|
-
failed: "failed";
|
|
405
|
-
running: "running";
|
|
406
|
-
succeeded: "succeeded";
|
|
407
|
-
unknown: "unknown";
|
|
408
|
-
}>;
|
|
409
|
-
observedAt: z.ZodISODateTime;
|
|
410
|
-
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
411
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
412
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
-
artifact: z.ZodObject<{
|
|
414
|
-
artifactId: z.ZodString;
|
|
415
|
-
digest: z.ZodString;
|
|
416
|
-
mediaType: z.ZodString;
|
|
417
|
-
sizeBytes: z.ZodNumber;
|
|
418
|
-
}, z.core.$strict>;
|
|
419
|
-
}, z.core.$strict>]>>;
|
|
420
|
-
}, z.core.$strict>>>;
|
|
421
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
422
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
423
|
-
protocolVersion: z.ZodObject<{
|
|
424
|
-
major: z.ZodNumber;
|
|
425
|
-
minor: z.ZodNumber;
|
|
426
|
-
}, z.core.$strict>;
|
|
427
|
-
sequence: z.ZodNumber;
|
|
428
|
-
nodeId: z.ZodString;
|
|
429
|
-
workspaceId: z.ZodString;
|
|
430
|
-
traceId: z.ZodString;
|
|
431
|
-
sentAt: z.ZodISODateTime;
|
|
432
|
-
channelGeneration: z.ZodNumber;
|
|
433
|
-
type: z.ZodLiteral<"command">;
|
|
434
|
-
canonicalizationVersion: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
435
|
-
commandId: z.ZodString;
|
|
436
|
-
idempotencyKey: z.ZodString;
|
|
437
|
-
payloadHash: z.ZodString;
|
|
438
|
-
issuedAt: z.ZodISODateTime;
|
|
439
|
-
expiresAt: z.ZodISODateTime;
|
|
440
|
-
family: z.ZodEnum<{
|
|
441
|
-
context_provider: "context_provider";
|
|
442
|
-
runtime: "runtime";
|
|
443
|
-
}>;
|
|
444
|
-
operation: z.ZodEnum<{
|
|
445
|
-
"context.read": "context.read";
|
|
446
|
-
"context.status": "context.status";
|
|
447
|
-
"context.write": "context.write";
|
|
448
|
-
"runtime.acp-remote-sealed": "runtime.acp-remote-sealed";
|
|
449
|
-
"runtime.approval": "runtime.approval";
|
|
450
|
-
"runtime.cancel": "runtime.cancel";
|
|
451
|
-
"runtime.execute": "runtime.execute";
|
|
452
|
-
"runtime.input": "runtime.input";
|
|
453
|
-
"runtime.session": "runtime.session";
|
|
454
|
-
"runtime.status": "runtime.status";
|
|
455
|
-
}>;
|
|
456
|
-
driver: z.ZodObject<{
|
|
457
|
-
family: z.ZodString;
|
|
458
|
-
version: z.ZodString;
|
|
459
|
-
}, z.core.$strict>;
|
|
460
|
-
runtimeConnectionId: z.ZodOptional<z.ZodString>;
|
|
461
|
-
executionId: z.ZodOptional<z.ZodString>;
|
|
462
|
-
attemptId: z.ZodOptional<z.ZodString>;
|
|
463
|
-
providerRef: z.ZodOptional<z.ZodString>;
|
|
464
|
-
authorizationRef: z.ZodOptional<z.ZodString>;
|
|
465
|
-
requiredCapabilities: z.ZodArray<z.ZodString>;
|
|
466
|
-
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
467
|
-
version: z.ZodNumber;
|
|
468
|
-
parameters: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
469
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
470
|
-
version: z.ZodNumber;
|
|
471
|
-
artifact: z.ZodObject<{
|
|
472
|
-
artifactId: z.ZodString;
|
|
473
|
-
digest: z.ZodString;
|
|
474
|
-
mediaType: z.ZodString;
|
|
475
|
-
sizeBytes: z.ZodNumber;
|
|
476
|
-
}, z.core.$strict>;
|
|
477
|
-
}, z.core.$strict>]>;
|
|
478
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
479
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
480
|
-
protocolVersion: z.ZodObject<{
|
|
481
|
-
major: z.ZodNumber;
|
|
482
|
-
minor: z.ZodNumber;
|
|
483
|
-
}, z.core.$strict>;
|
|
484
|
-
sequence: z.ZodNumber;
|
|
485
|
-
nodeId: z.ZodString;
|
|
486
|
-
workspaceId: z.ZodString;
|
|
487
|
-
traceId: z.ZodString;
|
|
488
|
-
sentAt: z.ZodISODateTime;
|
|
489
|
-
channelGeneration: z.ZodNumber;
|
|
490
|
-
type: z.ZodLiteral<"ack">;
|
|
491
|
-
commandId: z.ZodString;
|
|
492
|
-
payloadHash: z.ZodString;
|
|
493
|
-
disposition: z.ZodEnum<{
|
|
494
|
-
accepted: "accepted";
|
|
495
|
-
expired: "expired";
|
|
496
|
-
rejected: "rejected";
|
|
497
|
-
replayed: "replayed";
|
|
498
|
-
}>;
|
|
499
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
500
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
501
|
-
protocolVersion: z.ZodObject<{
|
|
502
|
-
major: z.ZodNumber;
|
|
503
|
-
minor: z.ZodNumber;
|
|
504
|
-
}, z.core.$strict>;
|
|
505
|
-
sequence: z.ZodNumber;
|
|
506
|
-
nodeId: z.ZodString;
|
|
507
|
-
workspaceId: z.ZodString;
|
|
508
|
-
traceId: z.ZodString;
|
|
509
|
-
sentAt: z.ZodISODateTime;
|
|
510
|
-
channelGeneration: z.ZodNumber;
|
|
511
|
-
type: z.ZodLiteral<"progress">;
|
|
512
|
-
commandId: z.ZodString;
|
|
513
|
-
payloadHash: z.ZodString;
|
|
514
|
-
eventSequence: z.ZodNumber;
|
|
515
|
-
event: z.ZodObject<{
|
|
516
|
-
kind: z.ZodString;
|
|
517
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
518
|
-
}, z.core.$strict>;
|
|
519
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
520
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
521
|
-
protocolVersion: z.ZodObject<{
|
|
522
|
-
major: z.ZodNumber;
|
|
523
|
-
minor: z.ZodNumber;
|
|
524
|
-
}, z.core.$strict>;
|
|
525
|
-
sequence: z.ZodNumber;
|
|
526
|
-
nodeId: z.ZodString;
|
|
527
|
-
workspaceId: z.ZodString;
|
|
528
|
-
traceId: z.ZodString;
|
|
529
|
-
sentAt: z.ZodISODateTime;
|
|
530
|
-
channelGeneration: z.ZodNumber;
|
|
531
|
-
type: z.ZodLiteral<"result">;
|
|
532
|
-
commandId: z.ZodString;
|
|
533
|
-
payloadHash: z.ZodString;
|
|
534
|
-
status: z.ZodEnum<{
|
|
535
|
-
cancelled: "cancelled";
|
|
536
|
-
failed: "failed";
|
|
537
|
-
succeeded: "succeeded";
|
|
538
|
-
}>;
|
|
539
|
-
completedAt: z.ZodISODateTime;
|
|
540
|
-
terminalUsage: z.ZodOptional<z.ZodObject<{
|
|
541
|
-
inputTokens: z.ZodNumber;
|
|
542
|
-
outputTokens: z.ZodNumber;
|
|
543
|
-
durationMs: z.ZodNumber;
|
|
544
|
-
cost: z.ZodOptional<z.ZodObject<{
|
|
545
|
-
amount: z.ZodString;
|
|
546
|
-
currency: z.ZodString;
|
|
547
|
-
}, z.core.$strict>>;
|
|
548
|
-
accounting: z.ZodOptional<z.ZodObject<{
|
|
549
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
550
|
-
sourceId: z.ZodString;
|
|
551
|
-
fundingSource: z.ZodEnum<{
|
|
552
|
-
byo_api: "byo_api";
|
|
553
|
-
external_subscription: "external_subscription";
|
|
554
|
-
hq_managed: "hq_managed";
|
|
555
|
-
}>;
|
|
556
|
-
currency: z.ZodLiteral<"USD">;
|
|
557
|
-
chargedMicrounits: z.ZodNumber;
|
|
558
|
-
costExact: z.ZodLiteral<true>;
|
|
559
|
-
}, z.core.$strict>>;
|
|
560
|
-
}, z.core.$strict>>;
|
|
561
|
-
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
562
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
563
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
564
|
-
artifact: z.ZodObject<{
|
|
565
|
-
artifactId: z.ZodString;
|
|
566
|
-
digest: z.ZodString;
|
|
567
|
-
mediaType: z.ZodString;
|
|
568
|
-
sizeBytes: z.ZodNumber;
|
|
569
|
-
}, z.core.$strict>;
|
|
570
|
-
}, z.core.$strict>]>;
|
|
571
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
572
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
573
|
-
protocolVersion: z.ZodObject<{
|
|
574
|
-
major: z.ZodNumber;
|
|
575
|
-
minor: z.ZodNumber;
|
|
576
|
-
}, z.core.$strict>;
|
|
577
|
-
sequence: z.ZodNumber;
|
|
578
|
-
nodeId: z.ZodString;
|
|
579
|
-
workspaceId: z.ZodString;
|
|
580
|
-
traceId: z.ZodString;
|
|
581
|
-
sentAt: z.ZodISODateTime;
|
|
582
|
-
channelGeneration: z.ZodNumber;
|
|
583
|
-
type: z.ZodLiteral<"cancel">;
|
|
584
|
-
commandId: z.ZodString;
|
|
585
|
-
payloadHash: z.ZodString;
|
|
586
|
-
requestedAt: z.ZodISODateTime;
|
|
587
|
-
reason: z.ZodEnum<{
|
|
588
|
-
deadline_exceeded: "deadline_exceeded";
|
|
589
|
-
policy_revoked: "policy_revoked";
|
|
590
|
-
shutdown: "shutdown";
|
|
591
|
-
user_requested: "user_requested";
|
|
592
|
-
}>;
|
|
593
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
594
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
595
|
-
protocolVersion: z.ZodObject<{
|
|
596
|
-
major: z.ZodNumber;
|
|
597
|
-
minor: z.ZodNumber;
|
|
598
|
-
}, z.core.$strict>;
|
|
599
|
-
sequence: z.ZodNumber;
|
|
600
|
-
nodeId: z.ZodString;
|
|
601
|
-
workspaceId: z.ZodString;
|
|
602
|
-
traceId: z.ZodString;
|
|
603
|
-
sentAt: z.ZodISODateTime;
|
|
604
|
-
channelGeneration: z.ZodNumber;
|
|
605
|
-
type: z.ZodLiteral<"heartbeat">;
|
|
606
|
-
observedAt: z.ZodISODateTime;
|
|
607
|
-
status: z.ZodEnum<{
|
|
608
|
-
degraded: "degraded";
|
|
609
|
-
draining: "draining";
|
|
610
|
-
online: "online";
|
|
611
|
-
}>;
|
|
612
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
613
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
614
|
-
protocolVersion: z.ZodObject<{
|
|
615
|
-
major: z.ZodNumber;
|
|
616
|
-
minor: z.ZodNumber;
|
|
617
|
-
}, z.core.$strict>;
|
|
618
|
-
sequence: z.ZodNumber;
|
|
619
|
-
nodeId: z.ZodString;
|
|
620
|
-
workspaceId: z.ZodString;
|
|
621
|
-
traceId: z.ZodString;
|
|
622
|
-
sentAt: z.ZodISODateTime;
|
|
623
|
-
channelGeneration: z.ZodNumber;
|
|
624
|
-
type: z.ZodLiteral<"inventory">;
|
|
625
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
626
|
-
delta: "delta";
|
|
627
|
-
snapshot: "snapshot";
|
|
628
|
-
}>>;
|
|
629
|
-
snapshotVersion: z.ZodNumber;
|
|
630
|
-
baseSnapshotVersion: z.ZodOptional<z.ZodNumber>;
|
|
631
|
-
observedAt: z.ZodISODateTime;
|
|
632
|
-
runtimeDrivers: z.ZodArray<z.ZodObject<{
|
|
633
|
-
opaqueRef: z.ZodString;
|
|
634
|
-
driverFamily: z.ZodString;
|
|
635
|
-
adapterVersion: z.ZodOptional<z.ZodString>;
|
|
636
|
-
driverVersion: z.ZodString;
|
|
637
|
-
harnessVersion: z.ZodOptional<z.ZodString>;
|
|
638
|
-
capabilityTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
639
|
-
protocolVersion: z.ZodObject<{
|
|
640
|
-
major: z.ZodNumber;
|
|
641
|
-
minor: z.ZodNumber;
|
|
642
|
-
}, z.core.$strict>;
|
|
643
|
-
health: z.ZodEnum<{
|
|
644
|
-
degraded: "degraded";
|
|
645
|
-
healthy: "healthy";
|
|
646
|
-
unavailable: "unavailable";
|
|
647
|
-
}>;
|
|
648
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
649
|
-
limitations: z.ZodArray<z.ZodString>;
|
|
650
|
-
}, z.core.$strict>>;
|
|
651
|
-
contextProviders: z.ZodArray<z.ZodObject<{
|
|
652
|
-
opaqueRef: z.ZodString;
|
|
653
|
-
driverFamily: z.ZodString;
|
|
654
|
-
adapterVersion: z.ZodOptional<z.ZodString>;
|
|
655
|
-
driverVersion: z.ZodString;
|
|
656
|
-
harnessVersion: z.ZodOptional<z.ZodString>;
|
|
657
|
-
capabilityTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
658
|
-
protocolVersion: z.ZodObject<{
|
|
659
|
-
major: z.ZodNumber;
|
|
660
|
-
minor: z.ZodNumber;
|
|
661
|
-
}, z.core.$strict>;
|
|
662
|
-
health: z.ZodEnum<{
|
|
663
|
-
degraded: "degraded";
|
|
664
|
-
healthy: "healthy";
|
|
665
|
-
unavailable: "unavailable";
|
|
666
|
-
}>;
|
|
667
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
668
|
-
limitations: z.ZodArray<z.ZodString>;
|
|
669
|
-
}, z.core.$strict>>;
|
|
670
|
-
removedRuntimeRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
671
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
672
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
673
|
-
protocolVersion: z.ZodObject<{
|
|
674
|
-
major: z.ZodNumber;
|
|
675
|
-
minor: z.ZodNumber;
|
|
676
|
-
}, z.core.$strict>;
|
|
677
|
-
sequence: z.ZodNumber;
|
|
678
|
-
nodeId: z.ZodString;
|
|
679
|
-
workspaceId: z.ZodString;
|
|
680
|
-
traceId: z.ZodString;
|
|
681
|
-
sentAt: z.ZodISODateTime;
|
|
682
|
-
channelGeneration: z.ZodNumber;
|
|
683
|
-
type: z.ZodLiteral<"error">;
|
|
684
|
-
commandId: z.ZodOptional<z.ZodString>;
|
|
685
|
-
payloadHash: z.ZodOptional<z.ZodString>;
|
|
686
|
-
code: z.ZodString;
|
|
687
|
-
retryable: z.ZodBoolean;
|
|
688
|
-
}, z.core.$strict>], "type">;
|
|
689
|
-
export type GatewayEnvelope = z.output<typeof GatewayEnvelopeSchema>;
|
|
690
|
-
export type GatewayCommandEnvelope = z.output<typeof GatewayCommandEnvelopeSchema>;
|
|
691
|
-
export type GatewayAcknowledgementEnvelope = z.output<typeof GatewayAcknowledgementEnvelopeSchema>;
|
|
692
|
-
export type GatewayResultEnvelope = z.output<typeof GatewayResultEnvelopeSchema>;
|
|
693
|
-
export type GatewayProgressEnvelope = z.output<typeof GatewayProgressEnvelopeSchema>;
|
|
694
|
-
export type GatewayErrorEnvelope = z.output<typeof GatewayErrorEnvelopeSchema>;
|
|
695
|
-
export type GatewayInventoryEnvelope = z.output<typeof GatewayInventoryEnvelopeSchema>;
|
|
696
|
-
export type GatewayHelloEnvelope = z.output<typeof GatewayHelloEnvelopeSchema>;
|
|
697
|
-
export type GatewayRetainedCommandOutcome = z.output<typeof GatewayRetainedCommandOutcomeSchema>;
|
|
698
|
-
export declare const GrantReferenceSchema: z.ZodString;
|
|
699
|
-
export type GrantReference = z.output<typeof GrantReferenceSchema>;
|
|
700
|
-
export declare const RuntimeErrorDataSchema: z.ZodObject<{
|
|
701
|
-
code: z.ZodString;
|
|
702
|
-
classification: z.ZodEnum<{
|
|
703
|
-
cancelled: "cancelled";
|
|
704
|
-
conflict: "conflict";
|
|
705
|
-
infrastructure: "infrastructure";
|
|
706
|
-
runtime: "runtime";
|
|
707
|
-
timeout: "timeout";
|
|
708
|
-
unavailable: "unavailable";
|
|
709
|
-
unknown: "unknown";
|
|
710
|
-
unsupported: "unsupported";
|
|
711
|
-
validation: "validation";
|
|
712
|
-
}>;
|
|
713
|
-
message: z.ZodString;
|
|
714
|
-
retryable: z.ZodBoolean;
|
|
715
|
-
}, z.core.$strict>;
|
|
716
|
-
export type RuntimeErrorData = z.output<typeof RuntimeErrorDataSchema>;
|