@fleetless/contracts 12.1.0 → 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 +38 -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,578 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "membership_kind": {
8
+ "type": "string",
9
+ "enum": [
10
+ "affected",
11
+ "unaffected"
12
+ ]
13
+ },
14
+ "type": {
15
+ "type": "string",
16
+ "const": "uuid_row"
17
+ },
18
+ "table": {
19
+ "type": "string",
20
+ "enum": [
21
+ "assets",
22
+ "audit_events",
23
+ "job_runs",
24
+ "oidc_interactions",
25
+ "organization_exports",
26
+ "ops_notification_jobs",
27
+ "console_oauth_codes"
28
+ ]
29
+ },
30
+ "id": {
31
+ "type": "string",
32
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
33
+ },
34
+ "row_generation": {
35
+ "type": "string",
36
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
37
+ }
38
+ },
39
+ "required": [
40
+ "membership_kind",
41
+ "type",
42
+ "table",
43
+ "id",
44
+ "row_generation"
45
+ ],
46
+ "additionalProperties": false
47
+ },
48
+ {
49
+ "type": "object",
50
+ "properties": {
51
+ "membership_kind": {
52
+ "type": "string",
53
+ "enum": [
54
+ "affected",
55
+ "unaffected"
56
+ ]
57
+ },
58
+ "type": {
59
+ "type": "string",
60
+ "const": "basic_activity_observation"
61
+ },
62
+ "org_id": {
63
+ "type": "string",
64
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
65
+ },
66
+ "audit_event_id": {
67
+ "type": "string",
68
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
69
+ }
70
+ },
71
+ "required": [
72
+ "membership_kind",
73
+ "type",
74
+ "org_id",
75
+ "audit_event_id"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "membership_kind": {
83
+ "type": "string",
84
+ "enum": [
85
+ "affected",
86
+ "unaffected"
87
+ ]
88
+ },
89
+ "type": {
90
+ "type": "string",
91
+ "const": "history_sample"
92
+ },
93
+ "robot_id": {
94
+ "type": "string",
95
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
96
+ },
97
+ "series_id": {
98
+ "type": "integer",
99
+ "minimum": 1,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "series_generation": {
103
+ "type": "string",
104
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
105
+ },
106
+ "captured_at_epoch_us": {
107
+ "type": "integer",
108
+ "minimum": 1,
109
+ "maximum": 9007199254740991
110
+ },
111
+ "sample_id": {
112
+ "type": "string",
113
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
114
+ }
115
+ },
116
+ "required": [
117
+ "membership_kind",
118
+ "type",
119
+ "robot_id",
120
+ "series_id",
121
+ "series_generation",
122
+ "captured_at_epoch_us",
123
+ "sample_id"
124
+ ],
125
+ "additionalProperties": false
126
+ },
127
+ {
128
+ "type": "object",
129
+ "properties": {
130
+ "membership_kind": {
131
+ "type": "string",
132
+ "enum": [
133
+ "affected",
134
+ "unaffected"
135
+ ]
136
+ },
137
+ "type": {
138
+ "type": "string",
139
+ "const": "latency_bucket"
140
+ },
141
+ "robot_id": {
142
+ "type": "string",
143
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
144
+ },
145
+ "bucket_at": {
146
+ "type": "string",
147
+ "format": "date-time",
148
+ "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))$"
149
+ },
150
+ "bucket_generation": {
151
+ "type": "string",
152
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
153
+ }
154
+ },
155
+ "required": [
156
+ "membership_kind",
157
+ "type",
158
+ "robot_id",
159
+ "bucket_at",
160
+ "bucket_generation"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ {
165
+ "type": "object",
166
+ "properties": {
167
+ "membership_kind": {
168
+ "type": "string",
169
+ "enum": [
170
+ "affected",
171
+ "unaffected"
172
+ ]
173
+ },
174
+ "type": {
175
+ "type": "string",
176
+ "const": "org_keyed_row"
177
+ },
178
+ "table": {
179
+ "type": "string",
180
+ "enum": [
181
+ "basic_activity_history",
182
+ "synthetic_org_fixtures"
183
+ ]
184
+ },
185
+ "org_id": {
186
+ "type": "string",
187
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
188
+ }
189
+ },
190
+ "required": [
191
+ "membership_kind",
192
+ "type",
193
+ "table",
194
+ "org_id"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ {
199
+ "type": "object",
200
+ "properties": {
201
+ "membership_kind": {
202
+ "type": "string",
203
+ "enum": [
204
+ "affected",
205
+ "unaffected"
206
+ ]
207
+ },
208
+ "type": {
209
+ "type": "string",
210
+ "const": "app_mcp_client"
211
+ },
212
+ "app_id": {
213
+ "type": "string",
214
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
215
+ },
216
+ "client_row_id": {
217
+ "type": "string",
218
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
219
+ }
220
+ },
221
+ "required": [
222
+ "membership_kind",
223
+ "type",
224
+ "app_id",
225
+ "client_row_id"
226
+ ],
227
+ "additionalProperties": false
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "membership_kind": {
233
+ "type": "string",
234
+ "enum": [
235
+ "affected",
236
+ "unaffected"
237
+ ]
238
+ },
239
+ "type": {
240
+ "type": "string",
241
+ "const": "central_mcp_client"
242
+ },
243
+ "client_row_id": {
244
+ "type": "string",
245
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
246
+ }
247
+ },
248
+ "required": [
249
+ "membership_kind",
250
+ "type",
251
+ "client_row_id"
252
+ ],
253
+ "additionalProperties": false
254
+ },
255
+ {
256
+ "type": "object",
257
+ "properties": {
258
+ "membership_kind": {
259
+ "type": "string",
260
+ "enum": [
261
+ "affected",
262
+ "unaffected"
263
+ ]
264
+ },
265
+ "type": {
266
+ "type": "string",
267
+ "const": "app_mcp_grant"
268
+ },
269
+ "app_id": {
270
+ "type": "string",
271
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
272
+ },
273
+ "grant_id": {
274
+ "type": "string",
275
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
276
+ },
277
+ "grant_generation": {
278
+ "type": "string",
279
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
280
+ }
281
+ },
282
+ "required": [
283
+ "membership_kind",
284
+ "type",
285
+ "app_id",
286
+ "grant_id",
287
+ "grant_generation"
288
+ ],
289
+ "additionalProperties": false
290
+ },
291
+ {
292
+ "type": "object",
293
+ "properties": {
294
+ "membership_kind": {
295
+ "type": "string",
296
+ "enum": [
297
+ "affected",
298
+ "unaffected"
299
+ ]
300
+ },
301
+ "type": {
302
+ "type": "string",
303
+ "const": "central_mcp_grant"
304
+ },
305
+ "grant_id": {
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
+ "grant_generation": {
310
+ "type": "string",
311
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
312
+ }
313
+ },
314
+ "required": [
315
+ "membership_kind",
316
+ "type",
317
+ "grant_id",
318
+ "grant_generation"
319
+ ],
320
+ "additionalProperties": false
321
+ },
322
+ {
323
+ "type": "object",
324
+ "properties": {
325
+ "membership_kind": {
326
+ "type": "string",
327
+ "enum": [
328
+ "affected",
329
+ "unaffected"
330
+ ]
331
+ },
332
+ "type": {
333
+ "type": "string",
334
+ "const": "app_mcp_code"
335
+ },
336
+ "app_id": {
337
+ "type": "string",
338
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
339
+ },
340
+ "code_row_id": {
341
+ "type": "string",
342
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
343
+ }
344
+ },
345
+ "required": [
346
+ "membership_kind",
347
+ "type",
348
+ "app_id",
349
+ "code_row_id"
350
+ ],
351
+ "additionalProperties": false
352
+ },
353
+ {
354
+ "type": "object",
355
+ "properties": {
356
+ "membership_kind": {
357
+ "type": "string",
358
+ "enum": [
359
+ "affected",
360
+ "unaffected"
361
+ ]
362
+ },
363
+ "type": {
364
+ "type": "string",
365
+ "const": "central_mcp_code"
366
+ },
367
+ "code_row_id": {
368
+ "type": "string",
369
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
370
+ }
371
+ },
372
+ "required": [
373
+ "membership_kind",
374
+ "type",
375
+ "code_row_id"
376
+ ],
377
+ "additionalProperties": false
378
+ },
379
+ {
380
+ "type": "object",
381
+ "properties": {
382
+ "membership_kind": {
383
+ "type": "string",
384
+ "enum": [
385
+ "affected",
386
+ "unaffected"
387
+ ]
388
+ },
389
+ "type": {
390
+ "type": "string",
391
+ "const": "app_mcp_interaction"
392
+ },
393
+ "app_id": {
394
+ "type": "string",
395
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
396
+ },
397
+ "interaction_id": {
398
+ "type": "string",
399
+ "minLength": 1
400
+ }
401
+ },
402
+ "required": [
403
+ "membership_kind",
404
+ "type",
405
+ "app_id",
406
+ "interaction_id"
407
+ ],
408
+ "additionalProperties": false
409
+ },
410
+ {
411
+ "type": "object",
412
+ "properties": {
413
+ "membership_kind": {
414
+ "type": "string",
415
+ "enum": [
416
+ "affected",
417
+ "unaffected"
418
+ ]
419
+ },
420
+ "type": {
421
+ "type": "string",
422
+ "const": "central_mcp_interaction"
423
+ },
424
+ "interaction_id": {
425
+ "type": "string",
426
+ "minLength": 1
427
+ }
428
+ },
429
+ "required": [
430
+ "membership_kind",
431
+ "type",
432
+ "interaction_id"
433
+ ],
434
+ "additionalProperties": false
435
+ },
436
+ {
437
+ "type": "object",
438
+ "properties": {
439
+ "membership_kind": {
440
+ "type": "string",
441
+ "enum": [
442
+ "affected",
443
+ "unaffected"
444
+ ]
445
+ },
446
+ "type": {
447
+ "type": "string",
448
+ "const": "console_interaction"
449
+ },
450
+ "interaction_id": {
451
+ "type": "string",
452
+ "minLength": 1
453
+ }
454
+ },
455
+ "required": [
456
+ "membership_kind",
457
+ "type",
458
+ "interaction_id"
459
+ ],
460
+ "additionalProperties": false
461
+ },
462
+ {
463
+ "type": "object",
464
+ "properties": {
465
+ "membership_kind": {
466
+ "type": "string",
467
+ "enum": [
468
+ "affected",
469
+ "unaffected"
470
+ ]
471
+ },
472
+ "type": {
473
+ "type": "string",
474
+ "const": "org_ops_event"
475
+ },
476
+ "org_id": {
477
+ "type": "string",
478
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
479
+ },
480
+ "event_id": {
481
+ "type": "string",
482
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
483
+ }
484
+ },
485
+ "required": [
486
+ "membership_kind",
487
+ "type",
488
+ "org_id",
489
+ "event_id"
490
+ ],
491
+ "additionalProperties": false
492
+ },
493
+ {
494
+ "type": "object",
495
+ "properties": {
496
+ "membership_kind": {
497
+ "type": "string",
498
+ "enum": [
499
+ "affected",
500
+ "unaffected"
501
+ ]
502
+ },
503
+ "type": {
504
+ "type": "string",
505
+ "const": "global_ops_event"
506
+ },
507
+ "event_id": {
508
+ "type": "string",
509
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
510
+ }
511
+ },
512
+ "required": [
513
+ "membership_kind",
514
+ "type",
515
+ "event_id"
516
+ ],
517
+ "additionalProperties": false
518
+ },
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "membership_kind": {
523
+ "type": "string",
524
+ "enum": [
525
+ "affected",
526
+ "unaffected"
527
+ ]
528
+ },
529
+ "type": {
530
+ "type": "string",
531
+ "const": "org_operator_audit"
532
+ },
533
+ "org_id": {
534
+ "type": "string",
535
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
536
+ },
537
+ "audit_id": {
538
+ "type": "string",
539
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
540
+ }
541
+ },
542
+ "required": [
543
+ "membership_kind",
544
+ "type",
545
+ "org_id",
546
+ "audit_id"
547
+ ],
548
+ "additionalProperties": false
549
+ },
550
+ {
551
+ "type": "object",
552
+ "properties": {
553
+ "membership_kind": {
554
+ "type": "string",
555
+ "enum": [
556
+ "affected",
557
+ "unaffected"
558
+ ]
559
+ },
560
+ "type": {
561
+ "type": "string",
562
+ "const": "global_operator_audit"
563
+ },
564
+ "audit_id": {
565
+ "type": "string",
566
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
567
+ }
568
+ },
569
+ "required": [
570
+ "membership_kind",
571
+ "type",
572
+ "audit_id"
573
+ ],
574
+ "additionalProperties": false
575
+ }
576
+ ],
577
+ "description": "JSON Schema consumers must also check uuid_row generation equality and exact physical identity."
578
+ }
@@ -0,0 +1,135 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "const": "organization"
10
+ },
11
+ "org_id": {
12
+ "type": "string",
13
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
14
+ }
15
+ },
16
+ "required": [
17
+ "kind",
18
+ "org_id"
19
+ ],
20
+ "additionalProperties": false
21
+ },
22
+ {
23
+ "type": "object",
24
+ "properties": {
25
+ "kind": {
26
+ "type": "string",
27
+ "const": "organization_scope"
28
+ },
29
+ "org_id": {
30
+ "type": "string",
31
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
32
+ },
33
+ "scope_id": {
34
+ "type": "string",
35
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
36
+ },
37
+ "scope_generation": {
38
+ "type": "integer",
39
+ "minimum": 1,
40
+ "maximum": 9007199254740991
41
+ },
42
+ "approved_predicate_digest": {
43
+ "type": "string",
44
+ "pattern": "^[0-9a-f]{64}$"
45
+ }
46
+ },
47
+ "required": [
48
+ "kind",
49
+ "org_id",
50
+ "scope_id",
51
+ "scope_generation",
52
+ "approved_predicate_digest"
53
+ ],
54
+ "additionalProperties": false
55
+ },
56
+ {
57
+ "type": "object",
58
+ "properties": {
59
+ "kind": {
60
+ "type": "string",
61
+ "const": "central_mcp"
62
+ }
63
+ },
64
+ "required": [
65
+ "kind"
66
+ ],
67
+ "additionalProperties": false
68
+ },
69
+ {
70
+ "type": "object",
71
+ "properties": {
72
+ "kind": {
73
+ "type": "string",
74
+ "const": "console_oauth"
75
+ }
76
+ },
77
+ "required": [
78
+ "kind"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ {
83
+ "type": "object",
84
+ "properties": {
85
+ "kind": {
86
+ "type": "string",
87
+ "const": "global_ops_event"
88
+ }
89
+ },
90
+ "required": [
91
+ "kind"
92
+ ],
93
+ "additionalProperties": false
94
+ },
95
+ {
96
+ "type": "object",
97
+ "properties": {
98
+ "kind": {
99
+ "type": "string",
100
+ "const": "operator_audit"
101
+ }
102
+ },
103
+ "required": [
104
+ "kind"
105
+ ],
106
+ "additionalProperties": false
107
+ },
108
+ {
109
+ "type": "object",
110
+ "properties": {
111
+ "kind": {
112
+ "type": "string",
113
+ "const": "subject"
114
+ },
115
+ "subject_kind": {
116
+ "type": "string",
117
+ "enum": [
118
+ "developer",
119
+ "app_user"
120
+ ]
121
+ },
122
+ "subject_id": {
123
+ "type": "string",
124
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
125
+ }
126
+ },
127
+ "required": [
128
+ "kind",
129
+ "subject_kind",
130
+ "subject_id"
131
+ ],
132
+ "additionalProperties": false
133
+ }
134
+ ]
135
+ }