@fleetless/contracts 12.1.0-next.1 → 13.0.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/artifacts/openapi.json +15968 -13701
  3. package/artifacts/routes.json +123 -1
  4. package/artifacts/schema/billing-decision-display-response.schema.json +749 -504
  5. package/artifacts/schema/billing-decision-period.schema.json +573 -504
  6. package/artifacts/schema/billing-decision-snapshot.schema.json +749 -504
  7. package/artifacts/schema/journal-access-proof.schema.json +342 -0
  8. package/artifacts/schema/journal-deletion-manifest.schema.json +2103 -0
  9. package/artifacts/schema/journal-evidence-ref.schema.json +596 -0
  10. package/artifacts/schema/journal-export-item.schema.json +2910 -0
  11. package/artifacts/schema/journal-final-seal-body.schema.json +160 -0
  12. package/artifacts/schema/journal-final-seal.schema.json +169 -0
  13. package/artifacts/schema/journal-first-checkpoint-body.schema.json +101 -0
  14. package/artifacts/schema/journal-first-checkpoint.schema.json +111 -0
  15. package/artifacts/schema/journal-generation-checkpoint-body.schema.json +88 -0
  16. package/artifacts/schema/journal-generation-checkpoint.schema.json +97 -0
  17. package/artifacts/schema/journal-intent-v2-body.schema.json +4166 -0
  18. package/artifacts/schema/journal-intent-v2.schema.json +4616 -0
  19. package/artifacts/schema/journal-manifest-batch.schema.json +1236 -0
  20. package/artifacts/schema/journal-manifest-binding.schema.json +3541 -0
  21. package/artifacts/schema/journal-manifest-entry.schema.json +106 -0
  22. package/artifacts/schema/journal-manifest-intent-projection.schema.json +1428 -0
  23. package/artifacts/schema/journal-manifest-row.schema.json +578 -0
  24. package/artifacts/schema/journal-manifest-scope.schema.json +135 -0
  25. package/artifacts/schema/journal-mirror-attempt.schema.json +182 -0
  26. package/artifacts/schema/journal-mixed-export.schema.json +3115 -0
  27. package/artifacts/schema/journal-registry-activation-receipt-body.schema.json +304 -0
  28. package/artifacts/schema/journal-registry-activation-receipt.schema.json +324 -0
  29. package/artifacts/schema/journal-registry-transition-body.schema.json +113 -0
  30. package/artifacts/schema/journal-registry-transition.schema.json +123 -0
  31. package/artifacts/schema/journal-replay-receipt-body.schema.json +1252 -0
  32. package/artifacts/schema/journal-replay-receipt.schema.json +1261 -0
  33. package/artifacts/schema/journal-v2-activation-checkpoint-body.schema.json +99 -0
  34. package/artifacts/schema/journal-v2-activation-checkpoint.schema.json +108 -0
  35. package/artifacts/schema/legal-acceptance-list-response.schema.json +31 -2
  36. package/artifacts/schema/legal-acceptance-version-row.schema.json +31 -2
  37. package/artifacts/schema/legal-offer-conflict-details.schema.json +32 -0
  38. package/artifacts/schema/legal-offer-decision-lookup-query.schema.json +16 -0
  39. package/artifacts/schema/legal-offer-decision-request.schema.json +37 -0
  40. package/artifacts/schema/legal-offer-decision-result.schema.json +409 -0
  41. package/artifacts/schema/legal-offer-decision-snapshot.schema.json +678 -0
  42. package/artifacts/schema/legal-offer-display-request.schema.json +16 -0
  43. package/artifacts/schema/legal-offer-display-response.schema.json +712 -0
  44. package/artifacts/schema/legal-offer-list-query.schema.json +17 -0
  45. package/artifacts/schema/legal-offer-list-response.schema.json +347 -0
  46. package/artifacts/schema/legal-offer-summary.schema.json +321 -0
  47. package/artifacts/schema/plan-change-prepare-response.schema.json +749 -504
  48. package/dist/billing.d.ts +361 -275
  49. package/dist/billing.js +25 -4
  50. package/dist/errors.d.ts +1 -1
  51. package/dist/errors.js +2 -0
  52. package/dist/index.d.ts +12 -0
  53. package/dist/index.js +6 -0
  54. package/dist/journal-controls.d.ts +228 -0
  55. package/dist/journal-controls.js +111 -0
  56. package/dist/journal-intents.d.ts +1695 -0
  57. package/dist/journal-intents.js +97 -0
  58. package/dist/journal-manifests.d.ts +1670 -0
  59. package/dist/journal-manifests.js +182 -0
  60. package/dist/journal-restore.d.ts +1871 -0
  61. package/dist/journal-restore.js +324 -0
  62. package/dist/journal-seals.d.ts +147 -0
  63. package/dist/journal-seals.js +89 -0
  64. package/dist/legal-acceptances.d.ts +4 -0
  65. package/dist/legal-acceptances.js +9 -2
  66. package/dist/legal-offers.d.ts +468 -0
  67. package/dist/legal-offers.js +91 -0
  68. package/dist/realtime.d.ts +2 -2
  69. package/dist/routes.js +54 -0
  70. package/package.json +1 -1
@@ -0,0 +1,2103 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schema": {
6
+ "type": "string",
7
+ "const": "fleetless.deletion-manifest.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "enum": [
12
+ "staging",
13
+ "production"
14
+ ]
15
+ },
16
+ "generation": {
17
+ "type": "integer",
18
+ "minimum": 1,
19
+ "maximum": 9007199254740991
20
+ },
21
+ "operation_id": {
22
+ "type": "string",
23
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
24
+ },
25
+ "manifest_id": {
26
+ "type": "string",
27
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
28
+ },
29
+ "scope": {
30
+ "anyOf": [
31
+ {
32
+ "type": "object",
33
+ "properties": {
34
+ "kind": {
35
+ "type": "string",
36
+ "const": "organization"
37
+ },
38
+ "org_id": {
39
+ "type": "string",
40
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
41
+ }
42
+ },
43
+ "required": [
44
+ "kind",
45
+ "org_id"
46
+ ],
47
+ "additionalProperties": false
48
+ },
49
+ {
50
+ "type": "object",
51
+ "properties": {
52
+ "kind": {
53
+ "type": "string",
54
+ "const": "organization_scope"
55
+ },
56
+ "org_id": {
57
+ "type": "string",
58
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
59
+ },
60
+ "scope_id": {
61
+ "type": "string",
62
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
63
+ },
64
+ "scope_generation": {
65
+ "type": "integer",
66
+ "minimum": 1,
67
+ "maximum": 9007199254740991
68
+ },
69
+ "approved_predicate_digest": {
70
+ "type": "string",
71
+ "pattern": "^[0-9a-f]{64}$"
72
+ }
73
+ },
74
+ "required": [
75
+ "kind",
76
+ "org_id",
77
+ "scope_id",
78
+ "scope_generation",
79
+ "approved_predicate_digest"
80
+ ],
81
+ "additionalProperties": false
82
+ },
83
+ {
84
+ "type": "object",
85
+ "properties": {
86
+ "kind": {
87
+ "type": "string",
88
+ "const": "central_mcp"
89
+ }
90
+ },
91
+ "required": [
92
+ "kind"
93
+ ],
94
+ "additionalProperties": false
95
+ },
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "kind": {
100
+ "type": "string",
101
+ "const": "console_oauth"
102
+ }
103
+ },
104
+ "required": [
105
+ "kind"
106
+ ],
107
+ "additionalProperties": false
108
+ },
109
+ {
110
+ "type": "object",
111
+ "properties": {
112
+ "kind": {
113
+ "type": "string",
114
+ "const": "global_ops_event"
115
+ }
116
+ },
117
+ "required": [
118
+ "kind"
119
+ ],
120
+ "additionalProperties": false
121
+ },
122
+ {
123
+ "type": "object",
124
+ "properties": {
125
+ "kind": {
126
+ "type": "string",
127
+ "const": "operator_audit"
128
+ }
129
+ },
130
+ "required": [
131
+ "kind"
132
+ ],
133
+ "additionalProperties": false
134
+ },
135
+ {
136
+ "type": "object",
137
+ "properties": {
138
+ "kind": {
139
+ "type": "string",
140
+ "const": "subject"
141
+ },
142
+ "subject_kind": {
143
+ "type": "string",
144
+ "enum": [
145
+ "developer",
146
+ "app_user"
147
+ ]
148
+ },
149
+ "subject_id": {
150
+ "type": "string",
151
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
152
+ }
153
+ },
154
+ "required": [
155
+ "kind",
156
+ "subject_kind",
157
+ "subject_id"
158
+ ],
159
+ "additionalProperties": false
160
+ }
161
+ ]
162
+ },
163
+ "entries": {
164
+ "type": "array",
165
+ "items": {
166
+ "anyOf": [
167
+ {
168
+ "type": "object",
169
+ "properties": {
170
+ "kind": {
171
+ "type": "string",
172
+ "const": "asset_blob"
173
+ },
174
+ "mapping_id": {
175
+ "type": "string",
176
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
177
+ },
178
+ "source_project_id": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ },
182
+ "source_bucket": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ },
186
+ "old_key": {
187
+ "type": "string",
188
+ "minLength": 1
189
+ },
190
+ "version_ids": {
191
+ "minItems": 1,
192
+ "type": "array",
193
+ "items": {
194
+ "type": "string",
195
+ "minLength": 1
196
+ }
197
+ },
198
+ "membership_kind": {
199
+ "type": "string",
200
+ "enum": [
201
+ "affected",
202
+ "unaffected"
203
+ ]
204
+ }
205
+ },
206
+ "required": [
207
+ "kind",
208
+ "mapping_id",
209
+ "source_project_id",
210
+ "source_bucket",
211
+ "old_key",
212
+ "version_ids",
213
+ "membership_kind"
214
+ ],
215
+ "additionalProperties": false
216
+ },
217
+ {
218
+ "type": "object",
219
+ "properties": {
220
+ "kind": {
221
+ "type": "string",
222
+ "const": "export_archive"
223
+ },
224
+ "mapping_id": {
225
+ "type": "string",
226
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
227
+ },
228
+ "source_project_id": {
229
+ "type": "string",
230
+ "minLength": 1
231
+ },
232
+ "source_bucket": {
233
+ "type": "string",
234
+ "minLength": 1
235
+ },
236
+ "old_key": {
237
+ "type": "string",
238
+ "minLength": 1
239
+ },
240
+ "version_ids": {
241
+ "minItems": 1,
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string",
245
+ "minLength": 1
246
+ }
247
+ },
248
+ "membership_kind": {
249
+ "type": "string",
250
+ "enum": [
251
+ "affected",
252
+ "unaffected"
253
+ ]
254
+ }
255
+ },
256
+ "required": [
257
+ "kind",
258
+ "mapping_id",
259
+ "source_project_id",
260
+ "source_bucket",
261
+ "old_key",
262
+ "version_ids",
263
+ "membership_kind"
264
+ ],
265
+ "additionalProperties": false
266
+ }
267
+ ],
268
+ "description": "Restricted object keys remain only in the protected manifest; JSON Schema consumers also check unique versions."
269
+ }
270
+ },
271
+ "rows": {
272
+ "type": "array",
273
+ "items": {
274
+ "anyOf": [
275
+ {
276
+ "type": "object",
277
+ "properties": {
278
+ "membership_kind": {
279
+ "type": "string",
280
+ "enum": [
281
+ "affected",
282
+ "unaffected"
283
+ ]
284
+ },
285
+ "type": {
286
+ "type": "string",
287
+ "const": "uuid_row"
288
+ },
289
+ "table": {
290
+ "type": "string",
291
+ "enum": [
292
+ "assets",
293
+ "audit_events",
294
+ "job_runs",
295
+ "oidc_interactions",
296
+ "organization_exports",
297
+ "ops_notification_jobs",
298
+ "console_oauth_codes"
299
+ ]
300
+ },
301
+ "id": {
302
+ "type": "string",
303
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
304
+ },
305
+ "row_generation": {
306
+ "type": "string",
307
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
308
+ }
309
+ },
310
+ "required": [
311
+ "membership_kind",
312
+ "type",
313
+ "table",
314
+ "id",
315
+ "row_generation"
316
+ ],
317
+ "additionalProperties": false
318
+ },
319
+ {
320
+ "type": "object",
321
+ "properties": {
322
+ "membership_kind": {
323
+ "type": "string",
324
+ "enum": [
325
+ "affected",
326
+ "unaffected"
327
+ ]
328
+ },
329
+ "type": {
330
+ "type": "string",
331
+ "const": "basic_activity_observation"
332
+ },
333
+ "org_id": {
334
+ "type": "string",
335
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
336
+ },
337
+ "audit_event_id": {
338
+ "type": "string",
339
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
340
+ }
341
+ },
342
+ "required": [
343
+ "membership_kind",
344
+ "type",
345
+ "org_id",
346
+ "audit_event_id"
347
+ ],
348
+ "additionalProperties": false
349
+ },
350
+ {
351
+ "type": "object",
352
+ "properties": {
353
+ "membership_kind": {
354
+ "type": "string",
355
+ "enum": [
356
+ "affected",
357
+ "unaffected"
358
+ ]
359
+ },
360
+ "type": {
361
+ "type": "string",
362
+ "const": "history_sample"
363
+ },
364
+ "robot_id": {
365
+ "type": "string",
366
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
367
+ },
368
+ "series_id": {
369
+ "type": "integer",
370
+ "minimum": 1,
371
+ "maximum": 9007199254740991
372
+ },
373
+ "series_generation": {
374
+ "type": "string",
375
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
376
+ },
377
+ "captured_at_epoch_us": {
378
+ "type": "integer",
379
+ "minimum": 1,
380
+ "maximum": 9007199254740991
381
+ },
382
+ "sample_id": {
383
+ "type": "string",
384
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
385
+ }
386
+ },
387
+ "required": [
388
+ "membership_kind",
389
+ "type",
390
+ "robot_id",
391
+ "series_id",
392
+ "series_generation",
393
+ "captured_at_epoch_us",
394
+ "sample_id"
395
+ ],
396
+ "additionalProperties": false
397
+ },
398
+ {
399
+ "type": "object",
400
+ "properties": {
401
+ "membership_kind": {
402
+ "type": "string",
403
+ "enum": [
404
+ "affected",
405
+ "unaffected"
406
+ ]
407
+ },
408
+ "type": {
409
+ "type": "string",
410
+ "const": "latency_bucket"
411
+ },
412
+ "robot_id": {
413
+ "type": "string",
414
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
415
+ },
416
+ "bucket_at": {
417
+ "type": "string",
418
+ "format": "date-time",
419
+ "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))$"
420
+ },
421
+ "bucket_generation": {
422
+ "type": "string",
423
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
424
+ }
425
+ },
426
+ "required": [
427
+ "membership_kind",
428
+ "type",
429
+ "robot_id",
430
+ "bucket_at",
431
+ "bucket_generation"
432
+ ],
433
+ "additionalProperties": false
434
+ },
435
+ {
436
+ "type": "object",
437
+ "properties": {
438
+ "membership_kind": {
439
+ "type": "string",
440
+ "enum": [
441
+ "affected",
442
+ "unaffected"
443
+ ]
444
+ },
445
+ "type": {
446
+ "type": "string",
447
+ "const": "org_keyed_row"
448
+ },
449
+ "table": {
450
+ "type": "string",
451
+ "enum": [
452
+ "basic_activity_history",
453
+ "synthetic_org_fixtures"
454
+ ]
455
+ },
456
+ "org_id": {
457
+ "type": "string",
458
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
459
+ }
460
+ },
461
+ "required": [
462
+ "membership_kind",
463
+ "type",
464
+ "table",
465
+ "org_id"
466
+ ],
467
+ "additionalProperties": false
468
+ },
469
+ {
470
+ "type": "object",
471
+ "properties": {
472
+ "membership_kind": {
473
+ "type": "string",
474
+ "enum": [
475
+ "affected",
476
+ "unaffected"
477
+ ]
478
+ },
479
+ "type": {
480
+ "type": "string",
481
+ "const": "app_mcp_client"
482
+ },
483
+ "app_id": {
484
+ "type": "string",
485
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
486
+ },
487
+ "client_row_id": {
488
+ "type": "string",
489
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
490
+ }
491
+ },
492
+ "required": [
493
+ "membership_kind",
494
+ "type",
495
+ "app_id",
496
+ "client_row_id"
497
+ ],
498
+ "additionalProperties": false
499
+ },
500
+ {
501
+ "type": "object",
502
+ "properties": {
503
+ "membership_kind": {
504
+ "type": "string",
505
+ "enum": [
506
+ "affected",
507
+ "unaffected"
508
+ ]
509
+ },
510
+ "type": {
511
+ "type": "string",
512
+ "const": "central_mcp_client"
513
+ },
514
+ "client_row_id": {
515
+ "type": "string",
516
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
517
+ }
518
+ },
519
+ "required": [
520
+ "membership_kind",
521
+ "type",
522
+ "client_row_id"
523
+ ],
524
+ "additionalProperties": false
525
+ },
526
+ {
527
+ "type": "object",
528
+ "properties": {
529
+ "membership_kind": {
530
+ "type": "string",
531
+ "enum": [
532
+ "affected",
533
+ "unaffected"
534
+ ]
535
+ },
536
+ "type": {
537
+ "type": "string",
538
+ "const": "app_mcp_grant"
539
+ },
540
+ "app_id": {
541
+ "type": "string",
542
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
543
+ },
544
+ "grant_id": {
545
+ "type": "string",
546
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
547
+ },
548
+ "grant_generation": {
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
+ "app_id",
557
+ "grant_id",
558
+ "grant_generation"
559
+ ],
560
+ "additionalProperties": false
561
+ },
562
+ {
563
+ "type": "object",
564
+ "properties": {
565
+ "membership_kind": {
566
+ "type": "string",
567
+ "enum": [
568
+ "affected",
569
+ "unaffected"
570
+ ]
571
+ },
572
+ "type": {
573
+ "type": "string",
574
+ "const": "central_mcp_grant"
575
+ },
576
+ "grant_id": {
577
+ "type": "string",
578
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
579
+ },
580
+ "grant_generation": {
581
+ "type": "string",
582
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
583
+ }
584
+ },
585
+ "required": [
586
+ "membership_kind",
587
+ "type",
588
+ "grant_id",
589
+ "grant_generation"
590
+ ],
591
+ "additionalProperties": false
592
+ },
593
+ {
594
+ "type": "object",
595
+ "properties": {
596
+ "membership_kind": {
597
+ "type": "string",
598
+ "enum": [
599
+ "affected",
600
+ "unaffected"
601
+ ]
602
+ },
603
+ "type": {
604
+ "type": "string",
605
+ "const": "app_mcp_code"
606
+ },
607
+ "app_id": {
608
+ "type": "string",
609
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
610
+ },
611
+ "code_row_id": {
612
+ "type": "string",
613
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
614
+ }
615
+ },
616
+ "required": [
617
+ "membership_kind",
618
+ "type",
619
+ "app_id",
620
+ "code_row_id"
621
+ ],
622
+ "additionalProperties": false
623
+ },
624
+ {
625
+ "type": "object",
626
+ "properties": {
627
+ "membership_kind": {
628
+ "type": "string",
629
+ "enum": [
630
+ "affected",
631
+ "unaffected"
632
+ ]
633
+ },
634
+ "type": {
635
+ "type": "string",
636
+ "const": "central_mcp_code"
637
+ },
638
+ "code_row_id": {
639
+ "type": "string",
640
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
641
+ }
642
+ },
643
+ "required": [
644
+ "membership_kind",
645
+ "type",
646
+ "code_row_id"
647
+ ],
648
+ "additionalProperties": false
649
+ },
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": "app_mcp_interaction"
663
+ },
664
+ "app_id": {
665
+ "type": "string",
666
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
667
+ },
668
+ "interaction_id": {
669
+ "type": "string",
670
+ "minLength": 1
671
+ }
672
+ },
673
+ "required": [
674
+ "membership_kind",
675
+ "type",
676
+ "app_id",
677
+ "interaction_id"
678
+ ],
679
+ "additionalProperties": false
680
+ },
681
+ {
682
+ "type": "object",
683
+ "properties": {
684
+ "membership_kind": {
685
+ "type": "string",
686
+ "enum": [
687
+ "affected",
688
+ "unaffected"
689
+ ]
690
+ },
691
+ "type": {
692
+ "type": "string",
693
+ "const": "central_mcp_interaction"
694
+ },
695
+ "interaction_id": {
696
+ "type": "string",
697
+ "minLength": 1
698
+ }
699
+ },
700
+ "required": [
701
+ "membership_kind",
702
+ "type",
703
+ "interaction_id"
704
+ ],
705
+ "additionalProperties": false
706
+ },
707
+ {
708
+ "type": "object",
709
+ "properties": {
710
+ "membership_kind": {
711
+ "type": "string",
712
+ "enum": [
713
+ "affected",
714
+ "unaffected"
715
+ ]
716
+ },
717
+ "type": {
718
+ "type": "string",
719
+ "const": "console_interaction"
720
+ },
721
+ "interaction_id": {
722
+ "type": "string",
723
+ "minLength": 1
724
+ }
725
+ },
726
+ "required": [
727
+ "membership_kind",
728
+ "type",
729
+ "interaction_id"
730
+ ],
731
+ "additionalProperties": false
732
+ },
733
+ {
734
+ "type": "object",
735
+ "properties": {
736
+ "membership_kind": {
737
+ "type": "string",
738
+ "enum": [
739
+ "affected",
740
+ "unaffected"
741
+ ]
742
+ },
743
+ "type": {
744
+ "type": "string",
745
+ "const": "org_ops_event"
746
+ },
747
+ "org_id": {
748
+ "type": "string",
749
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
750
+ },
751
+ "event_id": {
752
+ "type": "string",
753
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
754
+ }
755
+ },
756
+ "required": [
757
+ "membership_kind",
758
+ "type",
759
+ "org_id",
760
+ "event_id"
761
+ ],
762
+ "additionalProperties": false
763
+ },
764
+ {
765
+ "type": "object",
766
+ "properties": {
767
+ "membership_kind": {
768
+ "type": "string",
769
+ "enum": [
770
+ "affected",
771
+ "unaffected"
772
+ ]
773
+ },
774
+ "type": {
775
+ "type": "string",
776
+ "const": "global_ops_event"
777
+ },
778
+ "event_id": {
779
+ "type": "string",
780
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
781
+ }
782
+ },
783
+ "required": [
784
+ "membership_kind",
785
+ "type",
786
+ "event_id"
787
+ ],
788
+ "additionalProperties": false
789
+ },
790
+ {
791
+ "type": "object",
792
+ "properties": {
793
+ "membership_kind": {
794
+ "type": "string",
795
+ "enum": [
796
+ "affected",
797
+ "unaffected"
798
+ ]
799
+ },
800
+ "type": {
801
+ "type": "string",
802
+ "const": "org_operator_audit"
803
+ },
804
+ "org_id": {
805
+ "type": "string",
806
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
807
+ },
808
+ "audit_id": {
809
+ "type": "string",
810
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
811
+ }
812
+ },
813
+ "required": [
814
+ "membership_kind",
815
+ "type",
816
+ "org_id",
817
+ "audit_id"
818
+ ],
819
+ "additionalProperties": false
820
+ },
821
+ {
822
+ "type": "object",
823
+ "properties": {
824
+ "membership_kind": {
825
+ "type": "string",
826
+ "enum": [
827
+ "affected",
828
+ "unaffected"
829
+ ]
830
+ },
831
+ "type": {
832
+ "type": "string",
833
+ "const": "global_operator_audit"
834
+ },
835
+ "audit_id": {
836
+ "type": "string",
837
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
838
+ }
839
+ },
840
+ "required": [
841
+ "membership_kind",
842
+ "type",
843
+ "audit_id"
844
+ ],
845
+ "additionalProperties": false
846
+ }
847
+ ],
848
+ "description": "JSON Schema consumers must also check uuid_row generation equality and exact physical identity."
849
+ }
850
+ },
851
+ "batches": {
852
+ "type": "array",
853
+ "items": {
854
+ "anyOf": [
855
+ {
856
+ "type": "object",
857
+ "properties": {
858
+ "batch_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
+ "kind": {
863
+ "type": "string",
864
+ "enum": [
865
+ "history.retention",
866
+ "audit.retention",
867
+ "job_run.retention",
868
+ "latency.retention",
869
+ "ops_event.retention",
870
+ "ops_global_event.retention",
871
+ "operator_audit.retention",
872
+ "oidc_interaction.expire",
873
+ "mcp_interaction.expire",
874
+ "mcp_central_interaction.expire",
875
+ "mcp_client.expire",
876
+ "mcp_central_client.expire",
877
+ "console_interaction.expire",
878
+ "console_code.expire"
879
+ ]
880
+ },
881
+ "cutoff_at": {
882
+ "type": "string",
883
+ "format": "date-time",
884
+ "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))$"
885
+ },
886
+ "policy_revision": {
887
+ "type": "integer",
888
+ "minimum": 1,
889
+ "maximum": 9007199254740991
890
+ },
891
+ "rows": {
892
+ "minItems": 1,
893
+ "type": "array",
894
+ "items": {
895
+ "anyOf": [
896
+ {
897
+ "type": "object",
898
+ "properties": {
899
+ "membership_kind": {
900
+ "type": "string",
901
+ "enum": [
902
+ "affected",
903
+ "unaffected"
904
+ ]
905
+ },
906
+ "type": {
907
+ "type": "string",
908
+ "const": "uuid_row"
909
+ },
910
+ "table": {
911
+ "type": "string",
912
+ "enum": [
913
+ "assets",
914
+ "audit_events",
915
+ "job_runs",
916
+ "oidc_interactions",
917
+ "organization_exports",
918
+ "ops_notification_jobs",
919
+ "console_oauth_codes"
920
+ ]
921
+ },
922
+ "id": {
923
+ "type": "string",
924
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
925
+ },
926
+ "row_generation": {
927
+ "type": "string",
928
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
929
+ }
930
+ },
931
+ "required": [
932
+ "membership_kind",
933
+ "type",
934
+ "table",
935
+ "id",
936
+ "row_generation"
937
+ ],
938
+ "additionalProperties": false
939
+ },
940
+ {
941
+ "type": "object",
942
+ "properties": {
943
+ "membership_kind": {
944
+ "type": "string",
945
+ "enum": [
946
+ "affected",
947
+ "unaffected"
948
+ ]
949
+ },
950
+ "type": {
951
+ "type": "string",
952
+ "const": "basic_activity_observation"
953
+ },
954
+ "org_id": {
955
+ "type": "string",
956
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
957
+ },
958
+ "audit_event_id": {
959
+ "type": "string",
960
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
961
+ }
962
+ },
963
+ "required": [
964
+ "membership_kind",
965
+ "type",
966
+ "org_id",
967
+ "audit_event_id"
968
+ ],
969
+ "additionalProperties": false
970
+ },
971
+ {
972
+ "type": "object",
973
+ "properties": {
974
+ "membership_kind": {
975
+ "type": "string",
976
+ "enum": [
977
+ "affected",
978
+ "unaffected"
979
+ ]
980
+ },
981
+ "type": {
982
+ "type": "string",
983
+ "const": "history_sample"
984
+ },
985
+ "robot_id": {
986
+ "type": "string",
987
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
988
+ },
989
+ "series_id": {
990
+ "type": "integer",
991
+ "minimum": 1,
992
+ "maximum": 9007199254740991
993
+ },
994
+ "series_generation": {
995
+ "type": "string",
996
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
997
+ },
998
+ "captured_at_epoch_us": {
999
+ "type": "integer",
1000
+ "minimum": 1,
1001
+ "maximum": 9007199254740991
1002
+ },
1003
+ "sample_id": {
1004
+ "type": "string",
1005
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1006
+ }
1007
+ },
1008
+ "required": [
1009
+ "membership_kind",
1010
+ "type",
1011
+ "robot_id",
1012
+ "series_id",
1013
+ "series_generation",
1014
+ "captured_at_epoch_us",
1015
+ "sample_id"
1016
+ ],
1017
+ "additionalProperties": false
1018
+ },
1019
+ {
1020
+ "type": "object",
1021
+ "properties": {
1022
+ "membership_kind": {
1023
+ "type": "string",
1024
+ "enum": [
1025
+ "affected",
1026
+ "unaffected"
1027
+ ]
1028
+ },
1029
+ "type": {
1030
+ "type": "string",
1031
+ "const": "latency_bucket"
1032
+ },
1033
+ "robot_id": {
1034
+ "type": "string",
1035
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1036
+ },
1037
+ "bucket_at": {
1038
+ "type": "string",
1039
+ "format": "date-time",
1040
+ "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))$"
1041
+ },
1042
+ "bucket_generation": {
1043
+ "type": "string",
1044
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1045
+ }
1046
+ },
1047
+ "required": [
1048
+ "membership_kind",
1049
+ "type",
1050
+ "robot_id",
1051
+ "bucket_at",
1052
+ "bucket_generation"
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": "org_keyed_row"
1069
+ },
1070
+ "table": {
1071
+ "type": "string",
1072
+ "enum": [
1073
+ "basic_activity_history",
1074
+ "synthetic_org_fixtures"
1075
+ ]
1076
+ },
1077
+ "org_id": {
1078
+ "type": "string",
1079
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "membership_kind",
1084
+ "type",
1085
+ "table",
1086
+ "org_id"
1087
+ ],
1088
+ "additionalProperties": false
1089
+ },
1090
+ {
1091
+ "type": "object",
1092
+ "properties": {
1093
+ "membership_kind": {
1094
+ "type": "string",
1095
+ "enum": [
1096
+ "affected",
1097
+ "unaffected"
1098
+ ]
1099
+ },
1100
+ "type": {
1101
+ "type": "string",
1102
+ "const": "app_mcp_client"
1103
+ },
1104
+ "app_id": {
1105
+ "type": "string",
1106
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1107
+ },
1108
+ "client_row_id": {
1109
+ "type": "string",
1110
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1111
+ }
1112
+ },
1113
+ "required": [
1114
+ "membership_kind",
1115
+ "type",
1116
+ "app_id",
1117
+ "client_row_id"
1118
+ ],
1119
+ "additionalProperties": false
1120
+ },
1121
+ {
1122
+ "type": "object",
1123
+ "properties": {
1124
+ "membership_kind": {
1125
+ "type": "string",
1126
+ "enum": [
1127
+ "affected",
1128
+ "unaffected"
1129
+ ]
1130
+ },
1131
+ "type": {
1132
+ "type": "string",
1133
+ "const": "central_mcp_client"
1134
+ },
1135
+ "client_row_id": {
1136
+ "type": "string",
1137
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1138
+ }
1139
+ },
1140
+ "required": [
1141
+ "membership_kind",
1142
+ "type",
1143
+ "client_row_id"
1144
+ ],
1145
+ "additionalProperties": false
1146
+ },
1147
+ {
1148
+ "type": "object",
1149
+ "properties": {
1150
+ "membership_kind": {
1151
+ "type": "string",
1152
+ "enum": [
1153
+ "affected",
1154
+ "unaffected"
1155
+ ]
1156
+ },
1157
+ "type": {
1158
+ "type": "string",
1159
+ "const": "app_mcp_grant"
1160
+ },
1161
+ "app_id": {
1162
+ "type": "string",
1163
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1164
+ },
1165
+ "grant_id": {
1166
+ "type": "string",
1167
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1168
+ },
1169
+ "grant_generation": {
1170
+ "type": "string",
1171
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1172
+ }
1173
+ },
1174
+ "required": [
1175
+ "membership_kind",
1176
+ "type",
1177
+ "app_id",
1178
+ "grant_id",
1179
+ "grant_generation"
1180
+ ],
1181
+ "additionalProperties": false
1182
+ },
1183
+ {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "membership_kind": {
1187
+ "type": "string",
1188
+ "enum": [
1189
+ "affected",
1190
+ "unaffected"
1191
+ ]
1192
+ },
1193
+ "type": {
1194
+ "type": "string",
1195
+ "const": "central_mcp_grant"
1196
+ },
1197
+ "grant_id": {
1198
+ "type": "string",
1199
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1200
+ },
1201
+ "grant_generation": {
1202
+ "type": "string",
1203
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "membership_kind",
1208
+ "type",
1209
+ "grant_id",
1210
+ "grant_generation"
1211
+ ],
1212
+ "additionalProperties": false
1213
+ },
1214
+ {
1215
+ "type": "object",
1216
+ "properties": {
1217
+ "membership_kind": {
1218
+ "type": "string",
1219
+ "enum": [
1220
+ "affected",
1221
+ "unaffected"
1222
+ ]
1223
+ },
1224
+ "type": {
1225
+ "type": "string",
1226
+ "const": "app_mcp_code"
1227
+ },
1228
+ "app_id": {
1229
+ "type": "string",
1230
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1231
+ },
1232
+ "code_row_id": {
1233
+ "type": "string",
1234
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1235
+ }
1236
+ },
1237
+ "required": [
1238
+ "membership_kind",
1239
+ "type",
1240
+ "app_id",
1241
+ "code_row_id"
1242
+ ],
1243
+ "additionalProperties": false
1244
+ },
1245
+ {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "membership_kind": {
1249
+ "type": "string",
1250
+ "enum": [
1251
+ "affected",
1252
+ "unaffected"
1253
+ ]
1254
+ },
1255
+ "type": {
1256
+ "type": "string",
1257
+ "const": "central_mcp_code"
1258
+ },
1259
+ "code_row_id": {
1260
+ "type": "string",
1261
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1262
+ }
1263
+ },
1264
+ "required": [
1265
+ "membership_kind",
1266
+ "type",
1267
+ "code_row_id"
1268
+ ],
1269
+ "additionalProperties": false
1270
+ },
1271
+ {
1272
+ "type": "object",
1273
+ "properties": {
1274
+ "membership_kind": {
1275
+ "type": "string",
1276
+ "enum": [
1277
+ "affected",
1278
+ "unaffected"
1279
+ ]
1280
+ },
1281
+ "type": {
1282
+ "type": "string",
1283
+ "const": "app_mcp_interaction"
1284
+ },
1285
+ "app_id": {
1286
+ "type": "string",
1287
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1288
+ },
1289
+ "interaction_id": {
1290
+ "type": "string",
1291
+ "minLength": 1
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "membership_kind",
1296
+ "type",
1297
+ "app_id",
1298
+ "interaction_id"
1299
+ ],
1300
+ "additionalProperties": false
1301
+ },
1302
+ {
1303
+ "type": "object",
1304
+ "properties": {
1305
+ "membership_kind": {
1306
+ "type": "string",
1307
+ "enum": [
1308
+ "affected",
1309
+ "unaffected"
1310
+ ]
1311
+ },
1312
+ "type": {
1313
+ "type": "string",
1314
+ "const": "central_mcp_interaction"
1315
+ },
1316
+ "interaction_id": {
1317
+ "type": "string",
1318
+ "minLength": 1
1319
+ }
1320
+ },
1321
+ "required": [
1322
+ "membership_kind",
1323
+ "type",
1324
+ "interaction_id"
1325
+ ],
1326
+ "additionalProperties": false
1327
+ },
1328
+ {
1329
+ "type": "object",
1330
+ "properties": {
1331
+ "membership_kind": {
1332
+ "type": "string",
1333
+ "enum": [
1334
+ "affected",
1335
+ "unaffected"
1336
+ ]
1337
+ },
1338
+ "type": {
1339
+ "type": "string",
1340
+ "const": "console_interaction"
1341
+ },
1342
+ "interaction_id": {
1343
+ "type": "string",
1344
+ "minLength": 1
1345
+ }
1346
+ },
1347
+ "required": [
1348
+ "membership_kind",
1349
+ "type",
1350
+ "interaction_id"
1351
+ ],
1352
+ "additionalProperties": false
1353
+ },
1354
+ {
1355
+ "type": "object",
1356
+ "properties": {
1357
+ "membership_kind": {
1358
+ "type": "string",
1359
+ "enum": [
1360
+ "affected",
1361
+ "unaffected"
1362
+ ]
1363
+ },
1364
+ "type": {
1365
+ "type": "string",
1366
+ "const": "org_ops_event"
1367
+ },
1368
+ "org_id": {
1369
+ "type": "string",
1370
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1371
+ },
1372
+ "event_id": {
1373
+ "type": "string",
1374
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1375
+ }
1376
+ },
1377
+ "required": [
1378
+ "membership_kind",
1379
+ "type",
1380
+ "org_id",
1381
+ "event_id"
1382
+ ],
1383
+ "additionalProperties": false
1384
+ },
1385
+ {
1386
+ "type": "object",
1387
+ "properties": {
1388
+ "membership_kind": {
1389
+ "type": "string",
1390
+ "enum": [
1391
+ "affected",
1392
+ "unaffected"
1393
+ ]
1394
+ },
1395
+ "type": {
1396
+ "type": "string",
1397
+ "const": "global_ops_event"
1398
+ },
1399
+ "event_id": {
1400
+ "type": "string",
1401
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1402
+ }
1403
+ },
1404
+ "required": [
1405
+ "membership_kind",
1406
+ "type",
1407
+ "event_id"
1408
+ ],
1409
+ "additionalProperties": false
1410
+ },
1411
+ {
1412
+ "type": "object",
1413
+ "properties": {
1414
+ "membership_kind": {
1415
+ "type": "string",
1416
+ "enum": [
1417
+ "affected",
1418
+ "unaffected"
1419
+ ]
1420
+ },
1421
+ "type": {
1422
+ "type": "string",
1423
+ "const": "org_operator_audit"
1424
+ },
1425
+ "org_id": {
1426
+ "type": "string",
1427
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1428
+ },
1429
+ "audit_id": {
1430
+ "type": "string",
1431
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1432
+ }
1433
+ },
1434
+ "required": [
1435
+ "membership_kind",
1436
+ "type",
1437
+ "org_id",
1438
+ "audit_id"
1439
+ ],
1440
+ "additionalProperties": false
1441
+ },
1442
+ {
1443
+ "type": "object",
1444
+ "properties": {
1445
+ "membership_kind": {
1446
+ "type": "string",
1447
+ "enum": [
1448
+ "affected",
1449
+ "unaffected"
1450
+ ]
1451
+ },
1452
+ "type": {
1453
+ "type": "string",
1454
+ "const": "global_operator_audit"
1455
+ },
1456
+ "audit_id": {
1457
+ "type": "string",
1458
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1459
+ }
1460
+ },
1461
+ "required": [
1462
+ "membership_kind",
1463
+ "type",
1464
+ "audit_id"
1465
+ ],
1466
+ "additionalProperties": false
1467
+ }
1468
+ ],
1469
+ "description": "JSON Schema consumers must also check uuid_row generation equality and exact physical identity."
1470
+ }
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "batch_id",
1475
+ "kind",
1476
+ "cutoff_at",
1477
+ "policy_revision",
1478
+ "rows"
1479
+ ],
1480
+ "additionalProperties": false
1481
+ },
1482
+ {
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "batch_id": {
1486
+ "type": "string",
1487
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1488
+ },
1489
+ "kind": {
1490
+ "type": "string",
1491
+ "enum": [
1492
+ "history.slug_delete",
1493
+ "robot_assets.clear"
1494
+ ]
1495
+ },
1496
+ "rows": {
1497
+ "minItems": 1,
1498
+ "type": "array",
1499
+ "items": {
1500
+ "anyOf": [
1501
+ {
1502
+ "type": "object",
1503
+ "properties": {
1504
+ "membership_kind": {
1505
+ "type": "string",
1506
+ "enum": [
1507
+ "affected",
1508
+ "unaffected"
1509
+ ]
1510
+ },
1511
+ "type": {
1512
+ "type": "string",
1513
+ "const": "uuid_row"
1514
+ },
1515
+ "table": {
1516
+ "type": "string",
1517
+ "enum": [
1518
+ "assets",
1519
+ "audit_events",
1520
+ "job_runs",
1521
+ "oidc_interactions",
1522
+ "organization_exports",
1523
+ "ops_notification_jobs",
1524
+ "console_oauth_codes"
1525
+ ]
1526
+ },
1527
+ "id": {
1528
+ "type": "string",
1529
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1530
+ },
1531
+ "row_generation": {
1532
+ "type": "string",
1533
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1534
+ }
1535
+ },
1536
+ "required": [
1537
+ "membership_kind",
1538
+ "type",
1539
+ "table",
1540
+ "id",
1541
+ "row_generation"
1542
+ ],
1543
+ "additionalProperties": false
1544
+ },
1545
+ {
1546
+ "type": "object",
1547
+ "properties": {
1548
+ "membership_kind": {
1549
+ "type": "string",
1550
+ "enum": [
1551
+ "affected",
1552
+ "unaffected"
1553
+ ]
1554
+ },
1555
+ "type": {
1556
+ "type": "string",
1557
+ "const": "basic_activity_observation"
1558
+ },
1559
+ "org_id": {
1560
+ "type": "string",
1561
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1562
+ },
1563
+ "audit_event_id": {
1564
+ "type": "string",
1565
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1566
+ }
1567
+ },
1568
+ "required": [
1569
+ "membership_kind",
1570
+ "type",
1571
+ "org_id",
1572
+ "audit_event_id"
1573
+ ],
1574
+ "additionalProperties": false
1575
+ },
1576
+ {
1577
+ "type": "object",
1578
+ "properties": {
1579
+ "membership_kind": {
1580
+ "type": "string",
1581
+ "enum": [
1582
+ "affected",
1583
+ "unaffected"
1584
+ ]
1585
+ },
1586
+ "type": {
1587
+ "type": "string",
1588
+ "const": "history_sample"
1589
+ },
1590
+ "robot_id": {
1591
+ "type": "string",
1592
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1593
+ },
1594
+ "series_id": {
1595
+ "type": "integer",
1596
+ "minimum": 1,
1597
+ "maximum": 9007199254740991
1598
+ },
1599
+ "series_generation": {
1600
+ "type": "string",
1601
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1602
+ },
1603
+ "captured_at_epoch_us": {
1604
+ "type": "integer",
1605
+ "minimum": 1,
1606
+ "maximum": 9007199254740991
1607
+ },
1608
+ "sample_id": {
1609
+ "type": "string",
1610
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1611
+ }
1612
+ },
1613
+ "required": [
1614
+ "membership_kind",
1615
+ "type",
1616
+ "robot_id",
1617
+ "series_id",
1618
+ "series_generation",
1619
+ "captured_at_epoch_us",
1620
+ "sample_id"
1621
+ ],
1622
+ "additionalProperties": false
1623
+ },
1624
+ {
1625
+ "type": "object",
1626
+ "properties": {
1627
+ "membership_kind": {
1628
+ "type": "string",
1629
+ "enum": [
1630
+ "affected",
1631
+ "unaffected"
1632
+ ]
1633
+ },
1634
+ "type": {
1635
+ "type": "string",
1636
+ "const": "latency_bucket"
1637
+ },
1638
+ "robot_id": {
1639
+ "type": "string",
1640
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1641
+ },
1642
+ "bucket_at": {
1643
+ "type": "string",
1644
+ "format": "date-time",
1645
+ "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))$"
1646
+ },
1647
+ "bucket_generation": {
1648
+ "type": "string",
1649
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1650
+ }
1651
+ },
1652
+ "required": [
1653
+ "membership_kind",
1654
+ "type",
1655
+ "robot_id",
1656
+ "bucket_at",
1657
+ "bucket_generation"
1658
+ ],
1659
+ "additionalProperties": false
1660
+ },
1661
+ {
1662
+ "type": "object",
1663
+ "properties": {
1664
+ "membership_kind": {
1665
+ "type": "string",
1666
+ "enum": [
1667
+ "affected",
1668
+ "unaffected"
1669
+ ]
1670
+ },
1671
+ "type": {
1672
+ "type": "string",
1673
+ "const": "org_keyed_row"
1674
+ },
1675
+ "table": {
1676
+ "type": "string",
1677
+ "enum": [
1678
+ "basic_activity_history",
1679
+ "synthetic_org_fixtures"
1680
+ ]
1681
+ },
1682
+ "org_id": {
1683
+ "type": "string",
1684
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1685
+ }
1686
+ },
1687
+ "required": [
1688
+ "membership_kind",
1689
+ "type",
1690
+ "table",
1691
+ "org_id"
1692
+ ],
1693
+ "additionalProperties": false
1694
+ },
1695
+ {
1696
+ "type": "object",
1697
+ "properties": {
1698
+ "membership_kind": {
1699
+ "type": "string",
1700
+ "enum": [
1701
+ "affected",
1702
+ "unaffected"
1703
+ ]
1704
+ },
1705
+ "type": {
1706
+ "type": "string",
1707
+ "const": "app_mcp_client"
1708
+ },
1709
+ "app_id": {
1710
+ "type": "string",
1711
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1712
+ },
1713
+ "client_row_id": {
1714
+ "type": "string",
1715
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1716
+ }
1717
+ },
1718
+ "required": [
1719
+ "membership_kind",
1720
+ "type",
1721
+ "app_id",
1722
+ "client_row_id"
1723
+ ],
1724
+ "additionalProperties": false
1725
+ },
1726
+ {
1727
+ "type": "object",
1728
+ "properties": {
1729
+ "membership_kind": {
1730
+ "type": "string",
1731
+ "enum": [
1732
+ "affected",
1733
+ "unaffected"
1734
+ ]
1735
+ },
1736
+ "type": {
1737
+ "type": "string",
1738
+ "const": "central_mcp_client"
1739
+ },
1740
+ "client_row_id": {
1741
+ "type": "string",
1742
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1743
+ }
1744
+ },
1745
+ "required": [
1746
+ "membership_kind",
1747
+ "type",
1748
+ "client_row_id"
1749
+ ],
1750
+ "additionalProperties": false
1751
+ },
1752
+ {
1753
+ "type": "object",
1754
+ "properties": {
1755
+ "membership_kind": {
1756
+ "type": "string",
1757
+ "enum": [
1758
+ "affected",
1759
+ "unaffected"
1760
+ ]
1761
+ },
1762
+ "type": {
1763
+ "type": "string",
1764
+ "const": "app_mcp_grant"
1765
+ },
1766
+ "app_id": {
1767
+ "type": "string",
1768
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1769
+ },
1770
+ "grant_id": {
1771
+ "type": "string",
1772
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1773
+ },
1774
+ "grant_generation": {
1775
+ "type": "string",
1776
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1777
+ }
1778
+ },
1779
+ "required": [
1780
+ "membership_kind",
1781
+ "type",
1782
+ "app_id",
1783
+ "grant_id",
1784
+ "grant_generation"
1785
+ ],
1786
+ "additionalProperties": false
1787
+ },
1788
+ {
1789
+ "type": "object",
1790
+ "properties": {
1791
+ "membership_kind": {
1792
+ "type": "string",
1793
+ "enum": [
1794
+ "affected",
1795
+ "unaffected"
1796
+ ]
1797
+ },
1798
+ "type": {
1799
+ "type": "string",
1800
+ "const": "central_mcp_grant"
1801
+ },
1802
+ "grant_id": {
1803
+ "type": "string",
1804
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1805
+ },
1806
+ "grant_generation": {
1807
+ "type": "string",
1808
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1809
+ }
1810
+ },
1811
+ "required": [
1812
+ "membership_kind",
1813
+ "type",
1814
+ "grant_id",
1815
+ "grant_generation"
1816
+ ],
1817
+ "additionalProperties": false
1818
+ },
1819
+ {
1820
+ "type": "object",
1821
+ "properties": {
1822
+ "membership_kind": {
1823
+ "type": "string",
1824
+ "enum": [
1825
+ "affected",
1826
+ "unaffected"
1827
+ ]
1828
+ },
1829
+ "type": {
1830
+ "type": "string",
1831
+ "const": "app_mcp_code"
1832
+ },
1833
+ "app_id": {
1834
+ "type": "string",
1835
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1836
+ },
1837
+ "code_row_id": {
1838
+ "type": "string",
1839
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1840
+ }
1841
+ },
1842
+ "required": [
1843
+ "membership_kind",
1844
+ "type",
1845
+ "app_id",
1846
+ "code_row_id"
1847
+ ],
1848
+ "additionalProperties": false
1849
+ },
1850
+ {
1851
+ "type": "object",
1852
+ "properties": {
1853
+ "membership_kind": {
1854
+ "type": "string",
1855
+ "enum": [
1856
+ "affected",
1857
+ "unaffected"
1858
+ ]
1859
+ },
1860
+ "type": {
1861
+ "type": "string",
1862
+ "const": "central_mcp_code"
1863
+ },
1864
+ "code_row_id": {
1865
+ "type": "string",
1866
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1867
+ }
1868
+ },
1869
+ "required": [
1870
+ "membership_kind",
1871
+ "type",
1872
+ "code_row_id"
1873
+ ],
1874
+ "additionalProperties": false
1875
+ },
1876
+ {
1877
+ "type": "object",
1878
+ "properties": {
1879
+ "membership_kind": {
1880
+ "type": "string",
1881
+ "enum": [
1882
+ "affected",
1883
+ "unaffected"
1884
+ ]
1885
+ },
1886
+ "type": {
1887
+ "type": "string",
1888
+ "const": "app_mcp_interaction"
1889
+ },
1890
+ "app_id": {
1891
+ "type": "string",
1892
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1893
+ },
1894
+ "interaction_id": {
1895
+ "type": "string",
1896
+ "minLength": 1
1897
+ }
1898
+ },
1899
+ "required": [
1900
+ "membership_kind",
1901
+ "type",
1902
+ "app_id",
1903
+ "interaction_id"
1904
+ ],
1905
+ "additionalProperties": false
1906
+ },
1907
+ {
1908
+ "type": "object",
1909
+ "properties": {
1910
+ "membership_kind": {
1911
+ "type": "string",
1912
+ "enum": [
1913
+ "affected",
1914
+ "unaffected"
1915
+ ]
1916
+ },
1917
+ "type": {
1918
+ "type": "string",
1919
+ "const": "central_mcp_interaction"
1920
+ },
1921
+ "interaction_id": {
1922
+ "type": "string",
1923
+ "minLength": 1
1924
+ }
1925
+ },
1926
+ "required": [
1927
+ "membership_kind",
1928
+ "type",
1929
+ "interaction_id"
1930
+ ],
1931
+ "additionalProperties": false
1932
+ },
1933
+ {
1934
+ "type": "object",
1935
+ "properties": {
1936
+ "membership_kind": {
1937
+ "type": "string",
1938
+ "enum": [
1939
+ "affected",
1940
+ "unaffected"
1941
+ ]
1942
+ },
1943
+ "type": {
1944
+ "type": "string",
1945
+ "const": "console_interaction"
1946
+ },
1947
+ "interaction_id": {
1948
+ "type": "string",
1949
+ "minLength": 1
1950
+ }
1951
+ },
1952
+ "required": [
1953
+ "membership_kind",
1954
+ "type",
1955
+ "interaction_id"
1956
+ ],
1957
+ "additionalProperties": false
1958
+ },
1959
+ {
1960
+ "type": "object",
1961
+ "properties": {
1962
+ "membership_kind": {
1963
+ "type": "string",
1964
+ "enum": [
1965
+ "affected",
1966
+ "unaffected"
1967
+ ]
1968
+ },
1969
+ "type": {
1970
+ "type": "string",
1971
+ "const": "org_ops_event"
1972
+ },
1973
+ "org_id": {
1974
+ "type": "string",
1975
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1976
+ },
1977
+ "event_id": {
1978
+ "type": "string",
1979
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1980
+ }
1981
+ },
1982
+ "required": [
1983
+ "membership_kind",
1984
+ "type",
1985
+ "org_id",
1986
+ "event_id"
1987
+ ],
1988
+ "additionalProperties": false
1989
+ },
1990
+ {
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "membership_kind": {
1994
+ "type": "string",
1995
+ "enum": [
1996
+ "affected",
1997
+ "unaffected"
1998
+ ]
1999
+ },
2000
+ "type": {
2001
+ "type": "string",
2002
+ "const": "global_ops_event"
2003
+ },
2004
+ "event_id": {
2005
+ "type": "string",
2006
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2007
+ }
2008
+ },
2009
+ "required": [
2010
+ "membership_kind",
2011
+ "type",
2012
+ "event_id"
2013
+ ],
2014
+ "additionalProperties": false
2015
+ },
2016
+ {
2017
+ "type": "object",
2018
+ "properties": {
2019
+ "membership_kind": {
2020
+ "type": "string",
2021
+ "enum": [
2022
+ "affected",
2023
+ "unaffected"
2024
+ ]
2025
+ },
2026
+ "type": {
2027
+ "type": "string",
2028
+ "const": "org_operator_audit"
2029
+ },
2030
+ "org_id": {
2031
+ "type": "string",
2032
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2033
+ },
2034
+ "audit_id": {
2035
+ "type": "string",
2036
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2037
+ }
2038
+ },
2039
+ "required": [
2040
+ "membership_kind",
2041
+ "type",
2042
+ "org_id",
2043
+ "audit_id"
2044
+ ],
2045
+ "additionalProperties": false
2046
+ },
2047
+ {
2048
+ "type": "object",
2049
+ "properties": {
2050
+ "membership_kind": {
2051
+ "type": "string",
2052
+ "enum": [
2053
+ "affected",
2054
+ "unaffected"
2055
+ ]
2056
+ },
2057
+ "type": {
2058
+ "type": "string",
2059
+ "const": "global_operator_audit"
2060
+ },
2061
+ "audit_id": {
2062
+ "type": "string",
2063
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2064
+ }
2065
+ },
2066
+ "required": [
2067
+ "membership_kind",
2068
+ "type",
2069
+ "audit_id"
2070
+ ],
2071
+ "additionalProperties": false
2072
+ }
2073
+ ],
2074
+ "description": "JSON Schema consumers must also check uuid_row generation equality and exact physical identity."
2075
+ }
2076
+ }
2077
+ },
2078
+ "required": [
2079
+ "batch_id",
2080
+ "kind",
2081
+ "rows"
2082
+ ],
2083
+ "additionalProperties": false
2084
+ }
2085
+ ],
2086
+ "description": "A batch binds one intent and contains exactly its frozen affected rows; JSON Schema consumers check this cross-record relation."
2087
+ }
2088
+ }
2089
+ },
2090
+ "required": [
2091
+ "schema",
2092
+ "environment",
2093
+ "generation",
2094
+ "operation_id",
2095
+ "manifest_id",
2096
+ "scope",
2097
+ "entries",
2098
+ "rows",
2099
+ "batches"
2100
+ ],
2101
+ "additionalProperties": false,
2102
+ "description": "JSON Schema consumers also check physical uniqueness, ordering, intent binding and protected-version readbacks."
2103
+ }