@fleetless/contracts 12.1.0 → 13.0.1

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/artifacts/openapi.json +8431 -6164
  3. package/artifacts/routes.json +125 -3
  4. package/artifacts/schema/billing-change-response.schema.json +3 -3
  5. package/artifacts/schema/billing-decision-display-response.schema.json +749 -504
  6. package/artifacts/schema/billing-decision-period.schema.json +573 -504
  7. package/artifacts/schema/billing-decision-snapshot.schema.json +749 -504
  8. package/artifacts/schema/billing-invoice-pdf-query.schema.json +1 -1
  9. package/artifacts/schema/billing-invoice.schema.json +1 -1
  10. package/artifacts/schema/billing-view.schema.json +1 -1
  11. package/artifacts/schema/journal-access-proof.schema.json +342 -0
  12. package/artifacts/schema/journal-deletion-manifest.schema.json +2103 -0
  13. package/artifacts/schema/journal-evidence-ref.schema.json +596 -0
  14. package/artifacts/schema/journal-export-item.schema.json +2910 -0
  15. package/artifacts/schema/journal-final-seal-body.schema.json +160 -0
  16. package/artifacts/schema/journal-final-seal.schema.json +169 -0
  17. package/artifacts/schema/journal-first-checkpoint-body.schema.json +101 -0
  18. package/artifacts/schema/journal-first-checkpoint.schema.json +111 -0
  19. package/artifacts/schema/journal-generation-checkpoint-body.schema.json +88 -0
  20. package/artifacts/schema/journal-generation-checkpoint.schema.json +97 -0
  21. package/artifacts/schema/journal-intent-v2-body.schema.json +4166 -0
  22. package/artifacts/schema/journal-intent-v2.schema.json +4616 -0
  23. package/artifacts/schema/journal-manifest-batch.schema.json +1236 -0
  24. package/artifacts/schema/journal-manifest-binding.schema.json +3541 -0
  25. package/artifacts/schema/journal-manifest-entry.schema.json +106 -0
  26. package/artifacts/schema/journal-manifest-intent-projection.schema.json +1428 -0
  27. package/artifacts/schema/journal-manifest-row.schema.json +578 -0
  28. package/artifacts/schema/journal-manifest-scope.schema.json +135 -0
  29. package/artifacts/schema/journal-mirror-attempt.schema.json +182 -0
  30. package/artifacts/schema/journal-mixed-export.schema.json +3115 -0
  31. package/artifacts/schema/journal-registry-activation-receipt-body.schema.json +304 -0
  32. package/artifacts/schema/journal-registry-activation-receipt.schema.json +324 -0
  33. package/artifacts/schema/journal-registry-transition-body.schema.json +113 -0
  34. package/artifacts/schema/journal-registry-transition.schema.json +123 -0
  35. package/artifacts/schema/journal-replay-receipt-body.schema.json +1252 -0
  36. package/artifacts/schema/journal-replay-receipt.schema.json +1261 -0
  37. package/artifacts/schema/journal-v2-activation-checkpoint-body.schema.json +99 -0
  38. package/artifacts/schema/journal-v2-activation-checkpoint.schema.json +108 -0
  39. package/artifacts/schema/legal-acceptance-list-response.schema.json +31 -2
  40. package/artifacts/schema/legal-acceptance-version-row.schema.json +31 -2
  41. package/artifacts/schema/legal-offer-conflict-details.schema.json +32 -0
  42. package/artifacts/schema/legal-offer-decision-lookup-query.schema.json +16 -0
  43. package/artifacts/schema/legal-offer-decision-request.schema.json +37 -0
  44. package/artifacts/schema/legal-offer-decision-result.schema.json +409 -0
  45. package/artifacts/schema/legal-offer-decision-snapshot.schema.json +678 -0
  46. package/artifacts/schema/legal-offer-display-request.schema.json +16 -0
  47. package/artifacts/schema/legal-offer-display-response.schema.json +712 -0
  48. package/artifacts/schema/legal-offer-list-query.schema.json +17 -0
  49. package/artifacts/schema/legal-offer-list-response.schema.json +347 -0
  50. package/artifacts/schema/legal-offer-summary.schema.json +321 -0
  51. package/artifacts/schema/plan-change-prepare-response.schema.json +749 -504
  52. package/artifacts/schema/purchase-intent-response.schema.json +3 -3
  53. package/dist/billing.d.ts +361 -275
  54. package/dist/billing.js +27 -6
  55. package/dist/errors.d.ts +1 -1
  56. package/dist/errors.js +2 -0
  57. package/dist/index.d.ts +12 -0
  58. package/dist/index.js +6 -0
  59. package/dist/journal-controls.d.ts +228 -0
  60. package/dist/journal-controls.js +111 -0
  61. package/dist/journal-intents.d.ts +1695 -0
  62. package/dist/journal-intents.js +97 -0
  63. package/dist/journal-manifests.d.ts +1670 -0
  64. package/dist/journal-manifests.js +182 -0
  65. package/dist/journal-restore.d.ts +1871 -0
  66. package/dist/journal-restore.js +324 -0
  67. package/dist/journal-seals.d.ts +147 -0
  68. package/dist/journal-seals.js +89 -0
  69. package/dist/legal-acceptances.d.ts +4 -0
  70. package/dist/legal-acceptances.js +9 -2
  71. package/dist/legal-offers.d.ts +468 -0
  72. package/dist/legal-offers.js +91 -0
  73. package/dist/realtime.d.ts +2 -2
  74. package/dist/routes.js +57 -3
  75. package/package.json +1 -1
@@ -0,0 +1,1236 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "batch_id": {
8
+ "type": "string",
9
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
10
+ },
11
+ "kind": {
12
+ "type": "string",
13
+ "enum": [
14
+ "history.retention",
15
+ "audit.retention",
16
+ "job_run.retention",
17
+ "latency.retention",
18
+ "ops_event.retention",
19
+ "ops_global_event.retention",
20
+ "operator_audit.retention",
21
+ "oidc_interaction.expire",
22
+ "mcp_interaction.expire",
23
+ "mcp_central_interaction.expire",
24
+ "mcp_client.expire",
25
+ "mcp_central_client.expire",
26
+ "console_interaction.expire",
27
+ "console_code.expire"
28
+ ]
29
+ },
30
+ "cutoff_at": {
31
+ "type": "string",
32
+ "format": "date-time",
33
+ "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{3}(?:Z))$"
34
+ },
35
+ "policy_revision": {
36
+ "type": "integer",
37
+ "minimum": 1,
38
+ "maximum": 9007199254740991
39
+ },
40
+ "rows": {
41
+ "minItems": 1,
42
+ "type": "array",
43
+ "items": {
44
+ "anyOf": [
45
+ {
46
+ "type": "object",
47
+ "properties": {
48
+ "membership_kind": {
49
+ "type": "string",
50
+ "enum": [
51
+ "affected",
52
+ "unaffected"
53
+ ]
54
+ },
55
+ "type": {
56
+ "type": "string",
57
+ "const": "uuid_row"
58
+ },
59
+ "table": {
60
+ "type": "string",
61
+ "enum": [
62
+ "assets",
63
+ "audit_events",
64
+ "job_runs",
65
+ "oidc_interactions",
66
+ "organization_exports",
67
+ "ops_notification_jobs",
68
+ "console_oauth_codes"
69
+ ]
70
+ },
71
+ "id": {
72
+ "type": "string",
73
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
74
+ },
75
+ "row_generation": {
76
+ "type": "string",
77
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
78
+ }
79
+ },
80
+ "required": [
81
+ "membership_kind",
82
+ "type",
83
+ "table",
84
+ "id",
85
+ "row_generation"
86
+ ],
87
+ "additionalProperties": false
88
+ },
89
+ {
90
+ "type": "object",
91
+ "properties": {
92
+ "membership_kind": {
93
+ "type": "string",
94
+ "enum": [
95
+ "affected",
96
+ "unaffected"
97
+ ]
98
+ },
99
+ "type": {
100
+ "type": "string",
101
+ "const": "basic_activity_observation"
102
+ },
103
+ "org_id": {
104
+ "type": "string",
105
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
106
+ },
107
+ "audit_event_id": {
108
+ "type": "string",
109
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
110
+ }
111
+ },
112
+ "required": [
113
+ "membership_kind",
114
+ "type",
115
+ "org_id",
116
+ "audit_event_id"
117
+ ],
118
+ "additionalProperties": false
119
+ },
120
+ {
121
+ "type": "object",
122
+ "properties": {
123
+ "membership_kind": {
124
+ "type": "string",
125
+ "enum": [
126
+ "affected",
127
+ "unaffected"
128
+ ]
129
+ },
130
+ "type": {
131
+ "type": "string",
132
+ "const": "history_sample"
133
+ },
134
+ "robot_id": {
135
+ "type": "string",
136
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
137
+ },
138
+ "series_id": {
139
+ "type": "integer",
140
+ "minimum": 1,
141
+ "maximum": 9007199254740991
142
+ },
143
+ "series_generation": {
144
+ "type": "string",
145
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
146
+ },
147
+ "captured_at_epoch_us": {
148
+ "type": "integer",
149
+ "minimum": 1,
150
+ "maximum": 9007199254740991
151
+ },
152
+ "sample_id": {
153
+ "type": "string",
154
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
155
+ }
156
+ },
157
+ "required": [
158
+ "membership_kind",
159
+ "type",
160
+ "robot_id",
161
+ "series_id",
162
+ "series_generation",
163
+ "captured_at_epoch_us",
164
+ "sample_id"
165
+ ],
166
+ "additionalProperties": false
167
+ },
168
+ {
169
+ "type": "object",
170
+ "properties": {
171
+ "membership_kind": {
172
+ "type": "string",
173
+ "enum": [
174
+ "affected",
175
+ "unaffected"
176
+ ]
177
+ },
178
+ "type": {
179
+ "type": "string",
180
+ "const": "latency_bucket"
181
+ },
182
+ "robot_id": {
183
+ "type": "string",
184
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
185
+ },
186
+ "bucket_at": {
187
+ "type": "string",
188
+ "format": "date-time",
189
+ "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{3}(?:Z))$"
190
+ },
191
+ "bucket_generation": {
192
+ "type": "string",
193
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
194
+ }
195
+ },
196
+ "required": [
197
+ "membership_kind",
198
+ "type",
199
+ "robot_id",
200
+ "bucket_at",
201
+ "bucket_generation"
202
+ ],
203
+ "additionalProperties": false
204
+ },
205
+ {
206
+ "type": "object",
207
+ "properties": {
208
+ "membership_kind": {
209
+ "type": "string",
210
+ "enum": [
211
+ "affected",
212
+ "unaffected"
213
+ ]
214
+ },
215
+ "type": {
216
+ "type": "string",
217
+ "const": "org_keyed_row"
218
+ },
219
+ "table": {
220
+ "type": "string",
221
+ "enum": [
222
+ "basic_activity_history",
223
+ "synthetic_org_fixtures"
224
+ ]
225
+ },
226
+ "org_id": {
227
+ "type": "string",
228
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
229
+ }
230
+ },
231
+ "required": [
232
+ "membership_kind",
233
+ "type",
234
+ "table",
235
+ "org_id"
236
+ ],
237
+ "additionalProperties": false
238
+ },
239
+ {
240
+ "type": "object",
241
+ "properties": {
242
+ "membership_kind": {
243
+ "type": "string",
244
+ "enum": [
245
+ "affected",
246
+ "unaffected"
247
+ ]
248
+ },
249
+ "type": {
250
+ "type": "string",
251
+ "const": "app_mcp_client"
252
+ },
253
+ "app_id": {
254
+ "type": "string",
255
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
256
+ },
257
+ "client_row_id": {
258
+ "type": "string",
259
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
260
+ }
261
+ },
262
+ "required": [
263
+ "membership_kind",
264
+ "type",
265
+ "app_id",
266
+ "client_row_id"
267
+ ],
268
+ "additionalProperties": false
269
+ },
270
+ {
271
+ "type": "object",
272
+ "properties": {
273
+ "membership_kind": {
274
+ "type": "string",
275
+ "enum": [
276
+ "affected",
277
+ "unaffected"
278
+ ]
279
+ },
280
+ "type": {
281
+ "type": "string",
282
+ "const": "central_mcp_client"
283
+ },
284
+ "client_row_id": {
285
+ "type": "string",
286
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
287
+ }
288
+ },
289
+ "required": [
290
+ "membership_kind",
291
+ "type",
292
+ "client_row_id"
293
+ ],
294
+ "additionalProperties": false
295
+ },
296
+ {
297
+ "type": "object",
298
+ "properties": {
299
+ "membership_kind": {
300
+ "type": "string",
301
+ "enum": [
302
+ "affected",
303
+ "unaffected"
304
+ ]
305
+ },
306
+ "type": {
307
+ "type": "string",
308
+ "const": "app_mcp_grant"
309
+ },
310
+ "app_id": {
311
+ "type": "string",
312
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
313
+ },
314
+ "grant_id": {
315
+ "type": "string",
316
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
317
+ },
318
+ "grant_generation": {
319
+ "type": "string",
320
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
321
+ }
322
+ },
323
+ "required": [
324
+ "membership_kind",
325
+ "type",
326
+ "app_id",
327
+ "grant_id",
328
+ "grant_generation"
329
+ ],
330
+ "additionalProperties": false
331
+ },
332
+ {
333
+ "type": "object",
334
+ "properties": {
335
+ "membership_kind": {
336
+ "type": "string",
337
+ "enum": [
338
+ "affected",
339
+ "unaffected"
340
+ ]
341
+ },
342
+ "type": {
343
+ "type": "string",
344
+ "const": "central_mcp_grant"
345
+ },
346
+ "grant_id": {
347
+ "type": "string",
348
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
349
+ },
350
+ "grant_generation": {
351
+ "type": "string",
352
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
353
+ }
354
+ },
355
+ "required": [
356
+ "membership_kind",
357
+ "type",
358
+ "grant_id",
359
+ "grant_generation"
360
+ ],
361
+ "additionalProperties": false
362
+ },
363
+ {
364
+ "type": "object",
365
+ "properties": {
366
+ "membership_kind": {
367
+ "type": "string",
368
+ "enum": [
369
+ "affected",
370
+ "unaffected"
371
+ ]
372
+ },
373
+ "type": {
374
+ "type": "string",
375
+ "const": "app_mcp_code"
376
+ },
377
+ "app_id": {
378
+ "type": "string",
379
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
380
+ },
381
+ "code_row_id": {
382
+ "type": "string",
383
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
384
+ }
385
+ },
386
+ "required": [
387
+ "membership_kind",
388
+ "type",
389
+ "app_id",
390
+ "code_row_id"
391
+ ],
392
+ "additionalProperties": false
393
+ },
394
+ {
395
+ "type": "object",
396
+ "properties": {
397
+ "membership_kind": {
398
+ "type": "string",
399
+ "enum": [
400
+ "affected",
401
+ "unaffected"
402
+ ]
403
+ },
404
+ "type": {
405
+ "type": "string",
406
+ "const": "central_mcp_code"
407
+ },
408
+ "code_row_id": {
409
+ "type": "string",
410
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
411
+ }
412
+ },
413
+ "required": [
414
+ "membership_kind",
415
+ "type",
416
+ "code_row_id"
417
+ ],
418
+ "additionalProperties": false
419
+ },
420
+ {
421
+ "type": "object",
422
+ "properties": {
423
+ "membership_kind": {
424
+ "type": "string",
425
+ "enum": [
426
+ "affected",
427
+ "unaffected"
428
+ ]
429
+ },
430
+ "type": {
431
+ "type": "string",
432
+ "const": "app_mcp_interaction"
433
+ },
434
+ "app_id": {
435
+ "type": "string",
436
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
437
+ },
438
+ "interaction_id": {
439
+ "type": "string",
440
+ "minLength": 1
441
+ }
442
+ },
443
+ "required": [
444
+ "membership_kind",
445
+ "type",
446
+ "app_id",
447
+ "interaction_id"
448
+ ],
449
+ "additionalProperties": false
450
+ },
451
+ {
452
+ "type": "object",
453
+ "properties": {
454
+ "membership_kind": {
455
+ "type": "string",
456
+ "enum": [
457
+ "affected",
458
+ "unaffected"
459
+ ]
460
+ },
461
+ "type": {
462
+ "type": "string",
463
+ "const": "central_mcp_interaction"
464
+ },
465
+ "interaction_id": {
466
+ "type": "string",
467
+ "minLength": 1
468
+ }
469
+ },
470
+ "required": [
471
+ "membership_kind",
472
+ "type",
473
+ "interaction_id"
474
+ ],
475
+ "additionalProperties": false
476
+ },
477
+ {
478
+ "type": "object",
479
+ "properties": {
480
+ "membership_kind": {
481
+ "type": "string",
482
+ "enum": [
483
+ "affected",
484
+ "unaffected"
485
+ ]
486
+ },
487
+ "type": {
488
+ "type": "string",
489
+ "const": "console_interaction"
490
+ },
491
+ "interaction_id": {
492
+ "type": "string",
493
+ "minLength": 1
494
+ }
495
+ },
496
+ "required": [
497
+ "membership_kind",
498
+ "type",
499
+ "interaction_id"
500
+ ],
501
+ "additionalProperties": false
502
+ },
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "membership_kind": {
507
+ "type": "string",
508
+ "enum": [
509
+ "affected",
510
+ "unaffected"
511
+ ]
512
+ },
513
+ "type": {
514
+ "type": "string",
515
+ "const": "org_ops_event"
516
+ },
517
+ "org_id": {
518
+ "type": "string",
519
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
520
+ },
521
+ "event_id": {
522
+ "type": "string",
523
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
524
+ }
525
+ },
526
+ "required": [
527
+ "membership_kind",
528
+ "type",
529
+ "org_id",
530
+ "event_id"
531
+ ],
532
+ "additionalProperties": false
533
+ },
534
+ {
535
+ "type": "object",
536
+ "properties": {
537
+ "membership_kind": {
538
+ "type": "string",
539
+ "enum": [
540
+ "affected",
541
+ "unaffected"
542
+ ]
543
+ },
544
+ "type": {
545
+ "type": "string",
546
+ "const": "global_ops_event"
547
+ },
548
+ "event_id": {
549
+ "type": "string",
550
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
551
+ }
552
+ },
553
+ "required": [
554
+ "membership_kind",
555
+ "type",
556
+ "event_id"
557
+ ],
558
+ "additionalProperties": false
559
+ },
560
+ {
561
+ "type": "object",
562
+ "properties": {
563
+ "membership_kind": {
564
+ "type": "string",
565
+ "enum": [
566
+ "affected",
567
+ "unaffected"
568
+ ]
569
+ },
570
+ "type": {
571
+ "type": "string",
572
+ "const": "org_operator_audit"
573
+ },
574
+ "org_id": {
575
+ "type": "string",
576
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
577
+ },
578
+ "audit_id": {
579
+ "type": "string",
580
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
581
+ }
582
+ },
583
+ "required": [
584
+ "membership_kind",
585
+ "type",
586
+ "org_id",
587
+ "audit_id"
588
+ ],
589
+ "additionalProperties": false
590
+ },
591
+ {
592
+ "type": "object",
593
+ "properties": {
594
+ "membership_kind": {
595
+ "type": "string",
596
+ "enum": [
597
+ "affected",
598
+ "unaffected"
599
+ ]
600
+ },
601
+ "type": {
602
+ "type": "string",
603
+ "const": "global_operator_audit"
604
+ },
605
+ "audit_id": {
606
+ "type": "string",
607
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
608
+ }
609
+ },
610
+ "required": [
611
+ "membership_kind",
612
+ "type",
613
+ "audit_id"
614
+ ],
615
+ "additionalProperties": false
616
+ }
617
+ ],
618
+ "description": "JSON Schema consumers must also check uuid_row generation equality and exact physical identity."
619
+ }
620
+ }
621
+ },
622
+ "required": [
623
+ "batch_id",
624
+ "kind",
625
+ "cutoff_at",
626
+ "policy_revision",
627
+ "rows"
628
+ ],
629
+ "additionalProperties": false
630
+ },
631
+ {
632
+ "type": "object",
633
+ "properties": {
634
+ "batch_id": {
635
+ "type": "string",
636
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
637
+ },
638
+ "kind": {
639
+ "type": "string",
640
+ "enum": [
641
+ "history.slug_delete",
642
+ "robot_assets.clear"
643
+ ]
644
+ },
645
+ "rows": {
646
+ "minItems": 1,
647
+ "type": "array",
648
+ "items": {
649
+ "anyOf": [
650
+ {
651
+ "type": "object",
652
+ "properties": {
653
+ "membership_kind": {
654
+ "type": "string",
655
+ "enum": [
656
+ "affected",
657
+ "unaffected"
658
+ ]
659
+ },
660
+ "type": {
661
+ "type": "string",
662
+ "const": "uuid_row"
663
+ },
664
+ "table": {
665
+ "type": "string",
666
+ "enum": [
667
+ "assets",
668
+ "audit_events",
669
+ "job_runs",
670
+ "oidc_interactions",
671
+ "organization_exports",
672
+ "ops_notification_jobs",
673
+ "console_oauth_codes"
674
+ ]
675
+ },
676
+ "id": {
677
+ "type": "string",
678
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
679
+ },
680
+ "row_generation": {
681
+ "type": "string",
682
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
683
+ }
684
+ },
685
+ "required": [
686
+ "membership_kind",
687
+ "type",
688
+ "table",
689
+ "id",
690
+ "row_generation"
691
+ ],
692
+ "additionalProperties": false
693
+ },
694
+ {
695
+ "type": "object",
696
+ "properties": {
697
+ "membership_kind": {
698
+ "type": "string",
699
+ "enum": [
700
+ "affected",
701
+ "unaffected"
702
+ ]
703
+ },
704
+ "type": {
705
+ "type": "string",
706
+ "const": "basic_activity_observation"
707
+ },
708
+ "org_id": {
709
+ "type": "string",
710
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
711
+ },
712
+ "audit_event_id": {
713
+ "type": "string",
714
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
715
+ }
716
+ },
717
+ "required": [
718
+ "membership_kind",
719
+ "type",
720
+ "org_id",
721
+ "audit_event_id"
722
+ ],
723
+ "additionalProperties": false
724
+ },
725
+ {
726
+ "type": "object",
727
+ "properties": {
728
+ "membership_kind": {
729
+ "type": "string",
730
+ "enum": [
731
+ "affected",
732
+ "unaffected"
733
+ ]
734
+ },
735
+ "type": {
736
+ "type": "string",
737
+ "const": "history_sample"
738
+ },
739
+ "robot_id": {
740
+ "type": "string",
741
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
742
+ },
743
+ "series_id": {
744
+ "type": "integer",
745
+ "minimum": 1,
746
+ "maximum": 9007199254740991
747
+ },
748
+ "series_generation": {
749
+ "type": "string",
750
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
751
+ },
752
+ "captured_at_epoch_us": {
753
+ "type": "integer",
754
+ "minimum": 1,
755
+ "maximum": 9007199254740991
756
+ },
757
+ "sample_id": {
758
+ "type": "string",
759
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
760
+ }
761
+ },
762
+ "required": [
763
+ "membership_kind",
764
+ "type",
765
+ "robot_id",
766
+ "series_id",
767
+ "series_generation",
768
+ "captured_at_epoch_us",
769
+ "sample_id"
770
+ ],
771
+ "additionalProperties": false
772
+ },
773
+ {
774
+ "type": "object",
775
+ "properties": {
776
+ "membership_kind": {
777
+ "type": "string",
778
+ "enum": [
779
+ "affected",
780
+ "unaffected"
781
+ ]
782
+ },
783
+ "type": {
784
+ "type": "string",
785
+ "const": "latency_bucket"
786
+ },
787
+ "robot_id": {
788
+ "type": "string",
789
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
790
+ },
791
+ "bucket_at": {
792
+ "type": "string",
793
+ "format": "date-time",
794
+ "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{3}(?:Z))$"
795
+ },
796
+ "bucket_generation": {
797
+ "type": "string",
798
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
799
+ }
800
+ },
801
+ "required": [
802
+ "membership_kind",
803
+ "type",
804
+ "robot_id",
805
+ "bucket_at",
806
+ "bucket_generation"
807
+ ],
808
+ "additionalProperties": false
809
+ },
810
+ {
811
+ "type": "object",
812
+ "properties": {
813
+ "membership_kind": {
814
+ "type": "string",
815
+ "enum": [
816
+ "affected",
817
+ "unaffected"
818
+ ]
819
+ },
820
+ "type": {
821
+ "type": "string",
822
+ "const": "org_keyed_row"
823
+ },
824
+ "table": {
825
+ "type": "string",
826
+ "enum": [
827
+ "basic_activity_history",
828
+ "synthetic_org_fixtures"
829
+ ]
830
+ },
831
+ "org_id": {
832
+ "type": "string",
833
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
834
+ }
835
+ },
836
+ "required": [
837
+ "membership_kind",
838
+ "type",
839
+ "table",
840
+ "org_id"
841
+ ],
842
+ "additionalProperties": false
843
+ },
844
+ {
845
+ "type": "object",
846
+ "properties": {
847
+ "membership_kind": {
848
+ "type": "string",
849
+ "enum": [
850
+ "affected",
851
+ "unaffected"
852
+ ]
853
+ },
854
+ "type": {
855
+ "type": "string",
856
+ "const": "app_mcp_client"
857
+ },
858
+ "app_id": {
859
+ "type": "string",
860
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
861
+ },
862
+ "client_row_id": {
863
+ "type": "string",
864
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
865
+ }
866
+ },
867
+ "required": [
868
+ "membership_kind",
869
+ "type",
870
+ "app_id",
871
+ "client_row_id"
872
+ ],
873
+ "additionalProperties": false
874
+ },
875
+ {
876
+ "type": "object",
877
+ "properties": {
878
+ "membership_kind": {
879
+ "type": "string",
880
+ "enum": [
881
+ "affected",
882
+ "unaffected"
883
+ ]
884
+ },
885
+ "type": {
886
+ "type": "string",
887
+ "const": "central_mcp_client"
888
+ },
889
+ "client_row_id": {
890
+ "type": "string",
891
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
892
+ }
893
+ },
894
+ "required": [
895
+ "membership_kind",
896
+ "type",
897
+ "client_row_id"
898
+ ],
899
+ "additionalProperties": false
900
+ },
901
+ {
902
+ "type": "object",
903
+ "properties": {
904
+ "membership_kind": {
905
+ "type": "string",
906
+ "enum": [
907
+ "affected",
908
+ "unaffected"
909
+ ]
910
+ },
911
+ "type": {
912
+ "type": "string",
913
+ "const": "app_mcp_grant"
914
+ },
915
+ "app_id": {
916
+ "type": "string",
917
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
918
+ },
919
+ "grant_id": {
920
+ "type": "string",
921
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
922
+ },
923
+ "grant_generation": {
924
+ "type": "string",
925
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
926
+ }
927
+ },
928
+ "required": [
929
+ "membership_kind",
930
+ "type",
931
+ "app_id",
932
+ "grant_id",
933
+ "grant_generation"
934
+ ],
935
+ "additionalProperties": false
936
+ },
937
+ {
938
+ "type": "object",
939
+ "properties": {
940
+ "membership_kind": {
941
+ "type": "string",
942
+ "enum": [
943
+ "affected",
944
+ "unaffected"
945
+ ]
946
+ },
947
+ "type": {
948
+ "type": "string",
949
+ "const": "central_mcp_grant"
950
+ },
951
+ "grant_id": {
952
+ "type": "string",
953
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
954
+ },
955
+ "grant_generation": {
956
+ "type": "string",
957
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
958
+ }
959
+ },
960
+ "required": [
961
+ "membership_kind",
962
+ "type",
963
+ "grant_id",
964
+ "grant_generation"
965
+ ],
966
+ "additionalProperties": false
967
+ },
968
+ {
969
+ "type": "object",
970
+ "properties": {
971
+ "membership_kind": {
972
+ "type": "string",
973
+ "enum": [
974
+ "affected",
975
+ "unaffected"
976
+ ]
977
+ },
978
+ "type": {
979
+ "type": "string",
980
+ "const": "app_mcp_code"
981
+ },
982
+ "app_id": {
983
+ "type": "string",
984
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
985
+ },
986
+ "code_row_id": {
987
+ "type": "string",
988
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
989
+ }
990
+ },
991
+ "required": [
992
+ "membership_kind",
993
+ "type",
994
+ "app_id",
995
+ "code_row_id"
996
+ ],
997
+ "additionalProperties": false
998
+ },
999
+ {
1000
+ "type": "object",
1001
+ "properties": {
1002
+ "membership_kind": {
1003
+ "type": "string",
1004
+ "enum": [
1005
+ "affected",
1006
+ "unaffected"
1007
+ ]
1008
+ },
1009
+ "type": {
1010
+ "type": "string",
1011
+ "const": "central_mcp_code"
1012
+ },
1013
+ "code_row_id": {
1014
+ "type": "string",
1015
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1016
+ }
1017
+ },
1018
+ "required": [
1019
+ "membership_kind",
1020
+ "type",
1021
+ "code_row_id"
1022
+ ],
1023
+ "additionalProperties": false
1024
+ },
1025
+ {
1026
+ "type": "object",
1027
+ "properties": {
1028
+ "membership_kind": {
1029
+ "type": "string",
1030
+ "enum": [
1031
+ "affected",
1032
+ "unaffected"
1033
+ ]
1034
+ },
1035
+ "type": {
1036
+ "type": "string",
1037
+ "const": "app_mcp_interaction"
1038
+ },
1039
+ "app_id": {
1040
+ "type": "string",
1041
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1042
+ },
1043
+ "interaction_id": {
1044
+ "type": "string",
1045
+ "minLength": 1
1046
+ }
1047
+ },
1048
+ "required": [
1049
+ "membership_kind",
1050
+ "type",
1051
+ "app_id",
1052
+ "interaction_id"
1053
+ ],
1054
+ "additionalProperties": false
1055
+ },
1056
+ {
1057
+ "type": "object",
1058
+ "properties": {
1059
+ "membership_kind": {
1060
+ "type": "string",
1061
+ "enum": [
1062
+ "affected",
1063
+ "unaffected"
1064
+ ]
1065
+ },
1066
+ "type": {
1067
+ "type": "string",
1068
+ "const": "central_mcp_interaction"
1069
+ },
1070
+ "interaction_id": {
1071
+ "type": "string",
1072
+ "minLength": 1
1073
+ }
1074
+ },
1075
+ "required": [
1076
+ "membership_kind",
1077
+ "type",
1078
+ "interaction_id"
1079
+ ],
1080
+ "additionalProperties": false
1081
+ },
1082
+ {
1083
+ "type": "object",
1084
+ "properties": {
1085
+ "membership_kind": {
1086
+ "type": "string",
1087
+ "enum": [
1088
+ "affected",
1089
+ "unaffected"
1090
+ ]
1091
+ },
1092
+ "type": {
1093
+ "type": "string",
1094
+ "const": "console_interaction"
1095
+ },
1096
+ "interaction_id": {
1097
+ "type": "string",
1098
+ "minLength": 1
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "membership_kind",
1103
+ "type",
1104
+ "interaction_id"
1105
+ ],
1106
+ "additionalProperties": false
1107
+ },
1108
+ {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "membership_kind": {
1112
+ "type": "string",
1113
+ "enum": [
1114
+ "affected",
1115
+ "unaffected"
1116
+ ]
1117
+ },
1118
+ "type": {
1119
+ "type": "string",
1120
+ "const": "org_ops_event"
1121
+ },
1122
+ "org_id": {
1123
+ "type": "string",
1124
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1125
+ },
1126
+ "event_id": {
1127
+ "type": "string",
1128
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1129
+ }
1130
+ },
1131
+ "required": [
1132
+ "membership_kind",
1133
+ "type",
1134
+ "org_id",
1135
+ "event_id"
1136
+ ],
1137
+ "additionalProperties": false
1138
+ },
1139
+ {
1140
+ "type": "object",
1141
+ "properties": {
1142
+ "membership_kind": {
1143
+ "type": "string",
1144
+ "enum": [
1145
+ "affected",
1146
+ "unaffected"
1147
+ ]
1148
+ },
1149
+ "type": {
1150
+ "type": "string",
1151
+ "const": "global_ops_event"
1152
+ },
1153
+ "event_id": {
1154
+ "type": "string",
1155
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1156
+ }
1157
+ },
1158
+ "required": [
1159
+ "membership_kind",
1160
+ "type",
1161
+ "event_id"
1162
+ ],
1163
+ "additionalProperties": false
1164
+ },
1165
+ {
1166
+ "type": "object",
1167
+ "properties": {
1168
+ "membership_kind": {
1169
+ "type": "string",
1170
+ "enum": [
1171
+ "affected",
1172
+ "unaffected"
1173
+ ]
1174
+ },
1175
+ "type": {
1176
+ "type": "string",
1177
+ "const": "org_operator_audit"
1178
+ },
1179
+ "org_id": {
1180
+ "type": "string",
1181
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1182
+ },
1183
+ "audit_id": {
1184
+ "type": "string",
1185
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1186
+ }
1187
+ },
1188
+ "required": [
1189
+ "membership_kind",
1190
+ "type",
1191
+ "org_id",
1192
+ "audit_id"
1193
+ ],
1194
+ "additionalProperties": false
1195
+ },
1196
+ {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "membership_kind": {
1200
+ "type": "string",
1201
+ "enum": [
1202
+ "affected",
1203
+ "unaffected"
1204
+ ]
1205
+ },
1206
+ "type": {
1207
+ "type": "string",
1208
+ "const": "global_operator_audit"
1209
+ },
1210
+ "audit_id": {
1211
+ "type": "string",
1212
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1213
+ }
1214
+ },
1215
+ "required": [
1216
+ "membership_kind",
1217
+ "type",
1218
+ "audit_id"
1219
+ ],
1220
+ "additionalProperties": false
1221
+ }
1222
+ ],
1223
+ "description": "JSON Schema consumers must also check uuid_row generation equality and exact physical identity."
1224
+ }
1225
+ }
1226
+ },
1227
+ "required": [
1228
+ "batch_id",
1229
+ "kind",
1230
+ "rows"
1231
+ ],
1232
+ "additionalProperties": false
1233
+ }
1234
+ ],
1235
+ "description": "A batch binds one intent and contains exactly its frozen affected rows; JSON Schema consumers check this cross-record relation."
1236
+ }