@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.
@@ -1,990 +0,0 @@
1
- {
2
- "$id": "https://schemas.control-plane.dev/runtime-gateway/gateway-envelope.v1.json",
3
- "title": "Control Plane Runtime Gateway Envelope v1",
4
- "$schema": "https://json-schema.org/draft/2020-12/schema",
5
- "oneOf": [
6
- {
7
- "type": "object",
8
- "properties": {
9
- "schemaVersion": { "type": "number", "const": 1 },
10
- "protocolVersion": {
11
- "type": "object",
12
- "properties": {
13
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
14
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
15
- },
16
- "required": ["major", "minor"],
17
- "additionalProperties": false
18
- },
19
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
20
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
21
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
22
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
23
- "sentAt": {
24
- "type": "string",
25
- "format": "date-time",
26
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
27
- },
28
- "channelGeneration": {
29
- "type": "integer",
30
- "exclusiveMinimum": 0,
31
- "maximum": 9007199254740991
32
- },
33
- "type": { "type": "string", "const": "hello" },
34
- "supportedVersions": {
35
- "minItems": 1,
36
- "maxItems": 16,
37
- "type": "array",
38
- "items": {
39
- "type": "object",
40
- "properties": {
41
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
42
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
43
- },
44
- "required": ["major", "minor"],
45
- "additionalProperties": false
46
- }
47
- },
48
- "lastAcknowledgedSequence": {
49
- "type": "integer",
50
- "minimum": 0,
51
- "maximum": 9007199254740991
52
- },
53
- "retainedCommandOutcomes": {
54
- "maxItems": 256,
55
- "type": "array",
56
- "items": {
57
- "type": "object",
58
- "properties": {
59
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
60
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
61
- "status": {
62
- "type": "string",
63
- "enum": [
64
- "accepted",
65
- "running",
66
- "cancelling",
67
- "succeeded",
68
- "failed",
69
- "cancelled",
70
- "unknown"
71
- ]
72
- },
73
- "observedAt": {
74
- "type": "string",
75
- "format": "date-time",
76
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
77
- },
78
- "result": {
79
- "anyOf": [
80
- {
81
- "type": "object",
82
- "properties": {
83
- "data": {
84
- "type": "object",
85
- "propertyNames": { "type": "string" },
86
- "additionalProperties": { "$ref": "#/$defs/__schema0" }
87
- }
88
- },
89
- "required": ["data"],
90
- "additionalProperties": false
91
- },
92
- {
93
- "type": "object",
94
- "properties": {
95
- "artifact": {
96
- "type": "object",
97
- "properties": {
98
- "artifactId": {
99
- "type": "string",
100
- "pattern": "^art_[0-9A-HJKMNP-TV-Z]{26}$"
101
- },
102
- "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
103
- "mediaType": { "type": "string", "minLength": 1, "maxLength": 128 },
104
- "sizeBytes": { "type": "integer", "minimum": 0, "maximum": 67108864 }
105
- },
106
- "required": ["artifactId", "digest", "mediaType", "sizeBytes"],
107
- "additionalProperties": false
108
- }
109
- },
110
- "required": ["artifact"],
111
- "additionalProperties": false
112
- }
113
- ]
114
- }
115
- },
116
- "required": ["commandId", "payloadHash", "status", "observedAt"],
117
- "additionalProperties": false
118
- }
119
- }
120
- },
121
- "required": [
122
- "schemaVersion",
123
- "protocolVersion",
124
- "sequence",
125
- "nodeId",
126
- "workspaceId",
127
- "traceId",
128
- "sentAt",
129
- "channelGeneration",
130
- "type",
131
- "supportedVersions",
132
- "lastAcknowledgedSequence"
133
- ],
134
- "additionalProperties": false
135
- },
136
- {
137
- "type": "object",
138
- "properties": {
139
- "schemaVersion": { "type": "number", "const": 1 },
140
- "protocolVersion": {
141
- "type": "object",
142
- "properties": {
143
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
144
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
145
- },
146
- "required": ["major", "minor"],
147
- "additionalProperties": false
148
- },
149
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
150
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
151
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
152
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
153
- "sentAt": {
154
- "type": "string",
155
- "format": "date-time",
156
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
157
- },
158
- "channelGeneration": {
159
- "type": "integer",
160
- "exclusiveMinimum": 0,
161
- "maximum": 9007199254740991
162
- },
163
- "type": { "type": "string", "const": "command" },
164
- "canonicalizationVersion": {
165
- "anyOf": [
166
- { "type": "number", "const": 1 },
167
- { "type": "number", "const": 2 }
168
- ]
169
- },
170
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
171
- "idempotencyKey": {
172
- "type": "string",
173
- "minLength": 16,
174
- "maxLength": 128,
175
- "pattern": "^[A-Za-z0-9._:-]+$"
176
- },
177
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
178
- "issuedAt": {
179
- "type": "string",
180
- "format": "date-time",
181
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
182
- },
183
- "expiresAt": {
184
- "type": "string",
185
- "format": "date-time",
186
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
187
- },
188
- "family": { "type": "string", "enum": ["runtime", "context_provider"] },
189
- "operation": {
190
- "type": "string",
191
- "enum": [
192
- "runtime.execute",
193
- "runtime.cancel",
194
- "runtime.input",
195
- "runtime.approval",
196
- "runtime.status",
197
- "runtime.session",
198
- "runtime.acp-remote-sealed",
199
- "context.status",
200
- "context.read",
201
- "context.write"
202
- ]
203
- },
204
- "driver": {
205
- "type": "object",
206
- "properties": {
207
- "family": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
208
- "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$" }
209
- },
210
- "required": ["family", "version"],
211
- "additionalProperties": false
212
- },
213
- "runtimeConnectionId": { "type": "string", "pattern": "^rtc_[0-9A-HJKMNP-TV-Z]{26}$" },
214
- "executionId": { "type": "string", "pattern": "^exe_[0-9A-HJKMNP-TV-Z]{26}$" },
215
- "attemptId": { "type": "string", "pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$" },
216
- "providerRef": { "type": "string", "pattern": "^pvr_[0-9A-HJKMNP-TV-Z]{26}$" },
217
- "authorizationRef": {
218
- "type": "string",
219
- "minLength": 16,
220
- "maxLength": 128,
221
- "pattern": "^authz:[A-Za-z0-9._:-]+$"
222
- },
223
- "requiredCapabilities": {
224
- "minItems": 1,
225
- "maxItems": 64,
226
- "type": "array",
227
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" }
228
- },
229
- "payload": {
230
- "anyOf": [
231
- {
232
- "type": "object",
233
- "properties": {
234
- "version": {
235
- "type": "integer",
236
- "exclusiveMinimum": 0,
237
- "maximum": 9007199254740991
238
- },
239
- "parameters": {
240
- "type": "object",
241
- "propertyNames": { "type": "string" },
242
- "additionalProperties": { "$ref": "#/$defs/__schema1" }
243
- }
244
- },
245
- "required": ["version", "parameters"],
246
- "additionalProperties": false
247
- },
248
- {
249
- "type": "object",
250
- "properties": {
251
- "version": {
252
- "type": "integer",
253
- "exclusiveMinimum": 0,
254
- "maximum": 9007199254740991
255
- },
256
- "artifact": {
257
- "type": "object",
258
- "properties": {
259
- "artifactId": { "type": "string", "pattern": "^art_[0-9A-HJKMNP-TV-Z]{26}$" },
260
- "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
261
- "mediaType": { "type": "string", "minLength": 1, "maxLength": 128 },
262
- "sizeBytes": { "type": "integer", "minimum": 0, "maximum": 67108864 }
263
- },
264
- "required": ["artifactId", "digest", "mediaType", "sizeBytes"],
265
- "additionalProperties": false
266
- }
267
- },
268
- "required": ["version", "artifact"],
269
- "additionalProperties": false
270
- }
271
- ]
272
- }
273
- },
274
- "required": [
275
- "schemaVersion",
276
- "protocolVersion",
277
- "sequence",
278
- "nodeId",
279
- "workspaceId",
280
- "traceId",
281
- "sentAt",
282
- "channelGeneration",
283
- "type",
284
- "commandId",
285
- "idempotencyKey",
286
- "payloadHash",
287
- "issuedAt",
288
- "expiresAt",
289
- "family",
290
- "operation",
291
- "driver",
292
- "requiredCapabilities",
293
- "payload"
294
- ],
295
- "additionalProperties": false
296
- },
297
- {
298
- "type": "object",
299
- "properties": {
300
- "schemaVersion": { "type": "number", "const": 1 },
301
- "protocolVersion": {
302
- "type": "object",
303
- "properties": {
304
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
305
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
306
- },
307
- "required": ["major", "minor"],
308
- "additionalProperties": false
309
- },
310
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
311
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
312
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
313
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
314
- "sentAt": {
315
- "type": "string",
316
- "format": "date-time",
317
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
318
- },
319
- "channelGeneration": {
320
- "type": "integer",
321
- "exclusiveMinimum": 0,
322
- "maximum": 9007199254740991
323
- },
324
- "type": { "type": "string", "const": "ack" },
325
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
326
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
327
- "disposition": { "type": "string", "enum": ["accepted", "replayed", "rejected", "expired"] }
328
- },
329
- "required": [
330
- "schemaVersion",
331
- "protocolVersion",
332
- "sequence",
333
- "nodeId",
334
- "workspaceId",
335
- "traceId",
336
- "sentAt",
337
- "channelGeneration",
338
- "type",
339
- "commandId",
340
- "payloadHash",
341
- "disposition"
342
- ],
343
- "additionalProperties": false
344
- },
345
- {
346
- "type": "object",
347
- "properties": {
348
- "schemaVersion": { "type": "number", "const": 1 },
349
- "protocolVersion": {
350
- "type": "object",
351
- "properties": {
352
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
353
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
354
- },
355
- "required": ["major", "minor"],
356
- "additionalProperties": false
357
- },
358
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
359
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
360
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
361
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
362
- "sentAt": {
363
- "type": "string",
364
- "format": "date-time",
365
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
366
- },
367
- "channelGeneration": {
368
- "type": "integer",
369
- "exclusiveMinimum": 0,
370
- "maximum": 9007199254740991
371
- },
372
- "type": { "type": "string", "const": "progress" },
373
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
374
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
375
- "eventSequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 2147483647 },
376
- "event": {
377
- "type": "object",
378
- "properties": {
379
- "kind": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" },
380
- "data": {
381
- "type": "object",
382
- "propertyNames": { "type": "string" },
383
- "additionalProperties": { "$ref": "#/$defs/__schema2" }
384
- }
385
- },
386
- "required": ["kind", "data"],
387
- "additionalProperties": false
388
- }
389
- },
390
- "required": [
391
- "schemaVersion",
392
- "protocolVersion",
393
- "sequence",
394
- "nodeId",
395
- "workspaceId",
396
- "traceId",
397
- "sentAt",
398
- "channelGeneration",
399
- "type",
400
- "commandId",
401
- "payloadHash",
402
- "eventSequence",
403
- "event"
404
- ],
405
- "additionalProperties": false
406
- },
407
- {
408
- "type": "object",
409
- "properties": {
410
- "schemaVersion": { "type": "number", "const": 1 },
411
- "protocolVersion": {
412
- "type": "object",
413
- "properties": {
414
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
415
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
416
- },
417
- "required": ["major", "minor"],
418
- "additionalProperties": false
419
- },
420
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
421
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
422
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
423
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
424
- "sentAt": {
425
- "type": "string",
426
- "format": "date-time",
427
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
428
- },
429
- "channelGeneration": {
430
- "type": "integer",
431
- "exclusiveMinimum": 0,
432
- "maximum": 9007199254740991
433
- },
434
- "type": { "type": "string", "const": "result" },
435
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
436
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
437
- "status": { "type": "string", "enum": ["succeeded", "failed", "cancelled"] },
438
- "completedAt": {
439
- "type": "string",
440
- "format": "date-time",
441
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
442
- },
443
- "terminalUsage": {
444
- "type": "object",
445
- "properties": {
446
- "inputTokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
447
- "outputTokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
448
- "durationMs": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
449
- "cost": {
450
- "type": "object",
451
- "properties": {
452
- "amount": { "type": "string", "pattern": "^\\d+(?:\\.\\d+)?$" },
453
- "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }
454
- },
455
- "required": ["amount", "currency"],
456
- "additionalProperties": false
457
- },
458
- "accounting": {
459
- "type": "object",
460
- "properties": {
461
- "schemaVersion": { "type": "number", "const": 1 },
462
- "sourceId": { "type": "string", "minLength": 1, "maxLength": 256 },
463
- "fundingSource": {
464
- "type": "string",
465
- "enum": ["hq_managed", "byo_api", "external_subscription"]
466
- },
467
- "currency": { "type": "string", "const": "USD" },
468
- "chargedMicrounits": {
469
- "type": "integer",
470
- "minimum": 0,
471
- "maximum": 9007199254740991
472
- },
473
- "costExact": { "type": "boolean", "const": true }
474
- },
475
- "required": [
476
- "schemaVersion",
477
- "sourceId",
478
- "fundingSource",
479
- "currency",
480
- "chargedMicrounits",
481
- "costExact"
482
- ],
483
- "additionalProperties": false,
484
- "description": "Reported accounting metadata only; consumers must verify source authority before charging."
485
- }
486
- },
487
- "required": ["inputTokens", "outputTokens", "durationMs"],
488
- "additionalProperties": false
489
- },
490
- "result": {
491
- "anyOf": [
492
- {
493
- "type": "object",
494
- "properties": {
495
- "data": {
496
- "type": "object",
497
- "propertyNames": { "type": "string" },
498
- "additionalProperties": { "$ref": "#/$defs/__schema3" }
499
- }
500
- },
501
- "required": ["data"],
502
- "additionalProperties": false
503
- },
504
- {
505
- "type": "object",
506
- "properties": {
507
- "artifact": {
508
- "type": "object",
509
- "properties": {
510
- "artifactId": { "type": "string", "pattern": "^art_[0-9A-HJKMNP-TV-Z]{26}$" },
511
- "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
512
- "mediaType": { "type": "string", "minLength": 1, "maxLength": 128 },
513
- "sizeBytes": { "type": "integer", "minimum": 0, "maximum": 67108864 }
514
- },
515
- "required": ["artifactId", "digest", "mediaType", "sizeBytes"],
516
- "additionalProperties": false
517
- }
518
- },
519
- "required": ["artifact"],
520
- "additionalProperties": false
521
- }
522
- ]
523
- }
524
- },
525
- "required": [
526
- "schemaVersion",
527
- "protocolVersion",
528
- "sequence",
529
- "nodeId",
530
- "workspaceId",
531
- "traceId",
532
- "sentAt",
533
- "channelGeneration",
534
- "type",
535
- "commandId",
536
- "payloadHash",
537
- "status",
538
- "completedAt",
539
- "result"
540
- ],
541
- "additionalProperties": false
542
- },
543
- {
544
- "type": "object",
545
- "properties": {
546
- "schemaVersion": { "type": "number", "const": 1 },
547
- "protocolVersion": {
548
- "type": "object",
549
- "properties": {
550
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
551
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
552
- },
553
- "required": ["major", "minor"],
554
- "additionalProperties": false
555
- },
556
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
557
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
558
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
559
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
560
- "sentAt": {
561
- "type": "string",
562
- "format": "date-time",
563
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
564
- },
565
- "channelGeneration": {
566
- "type": "integer",
567
- "exclusiveMinimum": 0,
568
- "maximum": 9007199254740991
569
- },
570
- "type": { "type": "string", "const": "cancel" },
571
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
572
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
573
- "requestedAt": {
574
- "type": "string",
575
- "format": "date-time",
576
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
577
- },
578
- "reason": {
579
- "type": "string",
580
- "enum": ["user_requested", "policy_revoked", "deadline_exceeded", "shutdown"]
581
- }
582
- },
583
- "required": [
584
- "schemaVersion",
585
- "protocolVersion",
586
- "sequence",
587
- "nodeId",
588
- "workspaceId",
589
- "traceId",
590
- "sentAt",
591
- "channelGeneration",
592
- "type",
593
- "commandId",
594
- "payloadHash",
595
- "requestedAt",
596
- "reason"
597
- ],
598
- "additionalProperties": false
599
- },
600
- {
601
- "type": "object",
602
- "properties": {
603
- "schemaVersion": { "type": "number", "const": 1 },
604
- "protocolVersion": {
605
- "type": "object",
606
- "properties": {
607
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
608
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
609
- },
610
- "required": ["major", "minor"],
611
- "additionalProperties": false
612
- },
613
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
614
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
615
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
616
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
617
- "sentAt": {
618
- "type": "string",
619
- "format": "date-time",
620
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
621
- },
622
- "channelGeneration": {
623
- "type": "integer",
624
- "exclusiveMinimum": 0,
625
- "maximum": 9007199254740991
626
- },
627
- "type": { "type": "string", "const": "heartbeat" },
628
- "observedAt": {
629
- "type": "string",
630
- "format": "date-time",
631
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
632
- },
633
- "status": { "type": "string", "enum": ["online", "degraded", "draining"] }
634
- },
635
- "required": [
636
- "schemaVersion",
637
- "protocolVersion",
638
- "sequence",
639
- "nodeId",
640
- "workspaceId",
641
- "traceId",
642
- "sentAt",
643
- "channelGeneration",
644
- "type",
645
- "observedAt",
646
- "status"
647
- ],
648
- "additionalProperties": false
649
- },
650
- {
651
- "type": "object",
652
- "properties": {
653
- "schemaVersion": { "type": "number", "const": 1 },
654
- "protocolVersion": {
655
- "type": "object",
656
- "properties": {
657
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
658
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
659
- },
660
- "required": ["major", "minor"],
661
- "additionalProperties": false
662
- },
663
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
664
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
665
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
666
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
667
- "sentAt": {
668
- "type": "string",
669
- "format": "date-time",
670
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
671
- },
672
- "channelGeneration": {
673
- "type": "integer",
674
- "exclusiveMinimum": 0,
675
- "maximum": 9007199254740991
676
- },
677
- "type": { "type": "string", "const": "inventory" },
678
- "mode": { "type": "string", "enum": ["snapshot", "delta"] },
679
- "snapshotVersion": {
680
- "type": "integer",
681
- "exclusiveMinimum": 0,
682
- "maximum": 9007199254740991
683
- },
684
- "baseSnapshotVersion": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
685
- "observedAt": {
686
- "type": "string",
687
- "format": "date-time",
688
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
689
- },
690
- "runtimeDrivers": {
691
- "maxItems": 128,
692
- "type": "array",
693
- "items": {
694
- "type": "object",
695
- "properties": {
696
- "opaqueRef": { "type": "string", "pattern": "^(?:nref|pvr)_[0-9A-HJKMNP-TV-Z]{26}$" },
697
- "driverFamily": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
698
- "adapterVersion": {
699
- "type": "string",
700
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
701
- },
702
- "driverVersion": {
703
- "type": "string",
704
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
705
- },
706
- "harnessVersion": {
707
- "type": "string",
708
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
709
- },
710
- "capabilityTtlMs": { "type": "integer", "exclusiveMinimum": 0, "maximum": 60000 },
711
- "protocolVersion": {
712
- "type": "object",
713
- "properties": {
714
- "major": {
715
- "type": "integer",
716
- "exclusiveMinimum": 0,
717
- "maximum": 9007199254740991
718
- },
719
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
720
- },
721
- "required": ["major", "minor"],
722
- "additionalProperties": false
723
- },
724
- "health": { "type": "string", "enum": ["healthy", "degraded", "unavailable"] },
725
- "capabilities": {
726
- "maxItems": 128,
727
- "type": "array",
728
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" }
729
- },
730
- "limitations": {
731
- "maxItems": 64,
732
- "type": "array",
733
- "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" }
734
- }
735
- },
736
- "required": [
737
- "opaqueRef",
738
- "driverFamily",
739
- "driverVersion",
740
- "protocolVersion",
741
- "health",
742
- "capabilities",
743
- "limitations"
744
- ],
745
- "additionalProperties": false
746
- }
747
- },
748
- "contextProviders": {
749
- "maxItems": 32,
750
- "type": "array",
751
- "items": {
752
- "type": "object",
753
- "properties": {
754
- "opaqueRef": { "type": "string", "pattern": "^(?:nref|pvr)_[0-9A-HJKMNP-TV-Z]{26}$" },
755
- "driverFamily": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
756
- "adapterVersion": {
757
- "type": "string",
758
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
759
- },
760
- "driverVersion": {
761
- "type": "string",
762
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
763
- },
764
- "harnessVersion": {
765
- "type": "string",
766
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
767
- },
768
- "capabilityTtlMs": { "type": "integer", "exclusiveMinimum": 0, "maximum": 60000 },
769
- "protocolVersion": {
770
- "type": "object",
771
- "properties": {
772
- "major": {
773
- "type": "integer",
774
- "exclusiveMinimum": 0,
775
- "maximum": 9007199254740991
776
- },
777
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
778
- },
779
- "required": ["major", "minor"],
780
- "additionalProperties": false
781
- },
782
- "health": { "type": "string", "enum": ["healthy", "degraded", "unavailable"] },
783
- "capabilities": {
784
- "maxItems": 128,
785
- "type": "array",
786
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" }
787
- },
788
- "limitations": {
789
- "maxItems": 64,
790
- "type": "array",
791
- "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" }
792
- }
793
- },
794
- "required": [
795
- "opaqueRef",
796
- "driverFamily",
797
- "driverVersion",
798
- "protocolVersion",
799
- "health",
800
- "capabilities",
801
- "limitations"
802
- ],
803
- "additionalProperties": false
804
- }
805
- },
806
- "removedRuntimeRefs": {
807
- "maxItems": 128,
808
- "type": "array",
809
- "items": { "type": "string", "pattern": "^nref_[0-9A-HJKMNP-TV-Z]{26}$" }
810
- }
811
- },
812
- "required": [
813
- "schemaVersion",
814
- "protocolVersion",
815
- "sequence",
816
- "nodeId",
817
- "workspaceId",
818
- "traceId",
819
- "sentAt",
820
- "channelGeneration",
821
- "type",
822
- "snapshotVersion",
823
- "observedAt",
824
- "runtimeDrivers",
825
- "contextProviders"
826
- ],
827
- "additionalProperties": false
828
- },
829
- {
830
- "type": "object",
831
- "properties": {
832
- "schemaVersion": { "type": "number", "const": 1 },
833
- "protocolVersion": {
834
- "type": "object",
835
- "properties": {
836
- "major": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
837
- "minor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
838
- },
839
- "required": ["major", "minor"],
840
- "additionalProperties": false
841
- },
842
- "sequence": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
843
- "nodeId": { "type": "string", "pattern": "^rnr_[0-9A-HJKMNP-TV-Z]{26}$" },
844
- "workspaceId": { "type": "string", "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$" },
845
- "traceId": { "type": "string", "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$" },
846
- "sentAt": {
847
- "type": "string",
848
- "format": "date-time",
849
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
850
- },
851
- "channelGeneration": {
852
- "type": "integer",
853
- "exclusiveMinimum": 0,
854
- "maximum": 9007199254740991
855
- },
856
- "type": { "type": "string", "const": "error" },
857
- "commandId": { "type": "string", "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$" },
858
- "payloadHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
859
- "code": { "type": "string", "maxLength": 96, "pattern": "^[A-Z][A-Z0-9_]*$" },
860
- "retryable": { "type": "boolean" }
861
- },
862
- "required": [
863
- "schemaVersion",
864
- "protocolVersion",
865
- "sequence",
866
- "nodeId",
867
- "workspaceId",
868
- "traceId",
869
- "sentAt",
870
- "channelGeneration",
871
- "type",
872
- "code",
873
- "retryable"
874
- ],
875
- "additionalProperties": false
876
- }
877
- ],
878
- "$defs": {
879
- "__schema0": {
880
- "anyOf": [
881
- { "type": "string" },
882
- { "type": "number" },
883
- { "type": "boolean" },
884
- { "type": "null" },
885
- { "type": "array", "items": { "$ref": "#/$defs/__schema0" } },
886
- {
887
- "type": "object",
888
- "propertyNames": { "type": "string" },
889
- "additionalProperties": { "$ref": "#/$defs/__schema0" }
890
- }
891
- ]
892
- },
893
- "__schema1": {
894
- "anyOf": [
895
- { "type": "string" },
896
- { "type": "number" },
897
- { "type": "boolean" },
898
- { "type": "null" },
899
- { "type": "array", "items": { "$ref": "#/$defs/__schema1" } },
900
- {
901
- "type": "object",
902
- "propertyNames": { "type": "string" },
903
- "additionalProperties": { "$ref": "#/$defs/__schema1" }
904
- }
905
- ]
906
- },
907
- "__schema2": {
908
- "anyOf": [
909
- { "type": "string" },
910
- { "type": "number" },
911
- { "type": "boolean" },
912
- { "type": "null" },
913
- { "type": "array", "items": { "$ref": "#/$defs/__schema2" } },
914
- {
915
- "type": "object",
916
- "propertyNames": { "type": "string" },
917
- "additionalProperties": { "$ref": "#/$defs/__schema2" }
918
- }
919
- ]
920
- },
921
- "__schema3": {
922
- "anyOf": [
923
- { "type": "string" },
924
- { "type": "number" },
925
- { "type": "boolean" },
926
- { "type": "null" },
927
- { "type": "array", "items": { "$ref": "#/$defs/__schema3" } },
928
- {
929
- "type": "object",
930
- "propertyNames": { "type": "string" },
931
- "additionalProperties": { "$ref": "#/$defs/__schema3" }
932
- }
933
- ]
934
- }
935
- },
936
- "allOf": [
937
- {
938
- "if": {
939
- "properties": { "type": { "const": "inventory" } },
940
- "required": ["type"],
941
- "anyOf": [
942
- {
943
- "properties": { "runtimeDrivers": { "contains": { "required": ["capabilityTtlMs"] } } },
944
- "required": ["runtimeDrivers"]
945
- },
946
- {
947
- "properties": {
948
- "contextProviders": { "contains": { "required": ["capabilityTtlMs"] } }
949
- },
950
- "required": ["contextProviders"]
951
- }
952
- ]
953
- },
954
- "then": {
955
- "properties": { "protocolVersion": { "properties": { "minor": { "minimum": 6 } } } }
956
- }
957
- },
958
- {
959
- "if": {
960
- "properties": { "type": { "const": "result" }, "terminalUsage": {} },
961
- "required": ["type", "terminalUsage"]
962
- },
963
- "then": {
964
- "properties": { "protocolVersion": { "properties": { "minor": { "minimum": 7 } } } }
965
- }
966
- },
967
- {
968
- "if": {
969
- "properties": { "type": { "const": "command" }, "canonicalizationVersion": {} },
970
- "required": ["type", "canonicalizationVersion"]
971
- },
972
- "then": {
973
- "properties": { "protocolVersion": { "properties": { "minor": { "minimum": 8 } } } }
974
- }
975
- }
976
- ],
977
- "x-control-plane-prohibitedPayloadKeys": [
978
- "credential",
979
- "databaseId",
980
- "endpoint",
981
- "executable",
982
- "localPath",
983
- "password",
984
- "privateKey",
985
- "projectId",
986
- "sourceScope",
987
- "token",
988
- "url"
989
- ]
990
- }