@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,596 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "evidence_id": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "version_id": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "sha256": {
16
+ "type": "string",
17
+ "pattern": "^[0-9a-f]{64}$"
18
+ },
19
+ "observed_at": {
20
+ "type": "string",
21
+ "format": "date-time",
22
+ "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))$"
23
+ },
24
+ "bundle_digest": {
25
+ "type": "string",
26
+ "pattern": "^[0-9a-f]{64}$"
27
+ },
28
+ "seal_hash": {
29
+ "type": "string",
30
+ "pattern": "^[0-9a-f]{64}$"
31
+ },
32
+ "target_fingerprint": {
33
+ "type": "string",
34
+ "pattern": "^[0-9a-f]{64}$"
35
+ },
36
+ "binding_scope": {
37
+ "type": "string",
38
+ "const": "global"
39
+ },
40
+ "type": {
41
+ "type": "string",
42
+ "const": "probe_ref"
43
+ },
44
+ "surface_id": {
45
+ "type": "string",
46
+ "const": "source.version_read"
47
+ },
48
+ "outcome": {
49
+ "type": "string",
50
+ "enum": [
51
+ "denied",
52
+ "allowed",
53
+ "failed"
54
+ ]
55
+ },
56
+ "credential_class": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ }
60
+ },
61
+ "required": [
62
+ "evidence_id",
63
+ "version_id",
64
+ "sha256",
65
+ "observed_at",
66
+ "bundle_digest",
67
+ "seal_hash",
68
+ "target_fingerprint",
69
+ "binding_scope",
70
+ "type",
71
+ "surface_id",
72
+ "outcome",
73
+ "credential_class"
74
+ ],
75
+ "additionalProperties": false
76
+ },
77
+ {
78
+ "type": "object",
79
+ "properties": {
80
+ "evidence_id": {
81
+ "type": "string",
82
+ "minLength": 1
83
+ },
84
+ "version_id": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ "sha256": {
89
+ "type": "string",
90
+ "pattern": "^[0-9a-f]{64}$"
91
+ },
92
+ "observed_at": {
93
+ "type": "string",
94
+ "format": "date-time",
95
+ "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))$"
96
+ },
97
+ "bundle_digest": {
98
+ "type": "string",
99
+ "pattern": "^[0-9a-f]{64}$"
100
+ },
101
+ "seal_hash": {
102
+ "type": "string",
103
+ "pattern": "^[0-9a-f]{64}$"
104
+ },
105
+ "target_fingerprint": {
106
+ "type": "string",
107
+ "pattern": "^[0-9a-f]{64}$"
108
+ },
109
+ "binding_scope": {
110
+ "type": "string",
111
+ "const": "operation"
112
+ },
113
+ "operation_id": {
114
+ "type": "string",
115
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
116
+ },
117
+ "type": {
118
+ "type": "string",
119
+ "const": "probe_ref"
120
+ },
121
+ "surface_id": {
122
+ "type": "string",
123
+ "minLength": 1
124
+ },
125
+ "outcome": {
126
+ "type": "string",
127
+ "enum": [
128
+ "denied",
129
+ "allowed",
130
+ "failed"
131
+ ]
132
+ },
133
+ "credential_class": {
134
+ "type": "string",
135
+ "minLength": 1
136
+ }
137
+ },
138
+ "required": [
139
+ "evidence_id",
140
+ "version_id",
141
+ "sha256",
142
+ "observed_at",
143
+ "bundle_digest",
144
+ "seal_hash",
145
+ "target_fingerprint",
146
+ "binding_scope",
147
+ "operation_id",
148
+ "type",
149
+ "surface_id",
150
+ "outcome",
151
+ "credential_class"
152
+ ],
153
+ "additionalProperties": false
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "evidence_id": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ },
162
+ "version_id": {
163
+ "type": "string",
164
+ "minLength": 1
165
+ },
166
+ "sha256": {
167
+ "type": "string",
168
+ "pattern": "^[0-9a-f]{64}$"
169
+ },
170
+ "observed_at": {
171
+ "type": "string",
172
+ "format": "date-time",
173
+ "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))$"
174
+ },
175
+ "bundle_digest": {
176
+ "type": "string",
177
+ "pattern": "^[0-9a-f]{64}$"
178
+ },
179
+ "seal_hash": {
180
+ "type": "string",
181
+ "pattern": "^[0-9a-f]{64}$"
182
+ },
183
+ "target_fingerprint": {
184
+ "type": "string",
185
+ "pattern": "^[0-9a-f]{64}$"
186
+ },
187
+ "binding_scope": {
188
+ "type": "string",
189
+ "const": "operation"
190
+ },
191
+ "operation_id": {
192
+ "type": "string",
193
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
194
+ },
195
+ "type": {
196
+ "type": "string",
197
+ "const": "policy_ref"
198
+ },
199
+ "evaluated_at": {
200
+ "type": "string",
201
+ "format": "date-time",
202
+ "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))$"
203
+ },
204
+ "negative_export_probe_ids": {
205
+ "minItems": 1,
206
+ "type": "array",
207
+ "items": {
208
+ "type": "string",
209
+ "minLength": 1
210
+ }
211
+ },
212
+ "policy_class": {
213
+ "type": "string",
214
+ "const": "retrieval_deadline"
215
+ },
216
+ "effective_deadline": {
217
+ "type": "string",
218
+ "format": "date-time",
219
+ "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))$"
220
+ }
221
+ },
222
+ "required": [
223
+ "evidence_id",
224
+ "version_id",
225
+ "sha256",
226
+ "observed_at",
227
+ "bundle_digest",
228
+ "seal_hash",
229
+ "target_fingerprint",
230
+ "binding_scope",
231
+ "operation_id",
232
+ "type",
233
+ "evaluated_at",
234
+ "negative_export_probe_ids",
235
+ "policy_class",
236
+ "effective_deadline"
237
+ ],
238
+ "additionalProperties": false
239
+ },
240
+ {
241
+ "type": "object",
242
+ "properties": {
243
+ "evidence_id": {
244
+ "type": "string",
245
+ "minLength": 1
246
+ },
247
+ "version_id": {
248
+ "type": "string",
249
+ "minLength": 1
250
+ },
251
+ "sha256": {
252
+ "type": "string",
253
+ "pattern": "^[0-9a-f]{64}$"
254
+ },
255
+ "observed_at": {
256
+ "type": "string",
257
+ "format": "date-time",
258
+ "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))$"
259
+ },
260
+ "bundle_digest": {
261
+ "type": "string",
262
+ "pattern": "^[0-9a-f]{64}$"
263
+ },
264
+ "seal_hash": {
265
+ "type": "string",
266
+ "pattern": "^[0-9a-f]{64}$"
267
+ },
268
+ "target_fingerprint": {
269
+ "type": "string",
270
+ "pattern": "^[0-9a-f]{64}$"
271
+ },
272
+ "binding_scope": {
273
+ "type": "string",
274
+ "const": "operation"
275
+ },
276
+ "operation_id": {
277
+ "type": "string",
278
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
279
+ },
280
+ "type": {
281
+ "type": "string",
282
+ "const": "policy_ref"
283
+ },
284
+ "evaluated_at": {
285
+ "type": "string",
286
+ "format": "date-time",
287
+ "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))$"
288
+ },
289
+ "negative_export_probe_ids": {
290
+ "minItems": 1,
291
+ "type": "array",
292
+ "items": {
293
+ "type": "string",
294
+ "minLength": 1
295
+ }
296
+ },
297
+ "policy_class": {
298
+ "type": "string",
299
+ "const": "section_6_6_decision"
300
+ },
301
+ "decision_id": {
302
+ "type": "string",
303
+ "minLength": 1
304
+ },
305
+ "section_11_rights_digest": {
306
+ "type": "string",
307
+ "pattern": "^[0-9a-f]{64}$"
308
+ }
309
+ },
310
+ "required": [
311
+ "evidence_id",
312
+ "version_id",
313
+ "sha256",
314
+ "observed_at",
315
+ "bundle_digest",
316
+ "seal_hash",
317
+ "target_fingerprint",
318
+ "binding_scope",
319
+ "operation_id",
320
+ "type",
321
+ "evaluated_at",
322
+ "negative_export_probe_ids",
323
+ "policy_class",
324
+ "decision_id",
325
+ "section_11_rights_digest"
326
+ ],
327
+ "additionalProperties": false
328
+ },
329
+ {
330
+ "type": "object",
331
+ "properties": {
332
+ "evidence_id": {
333
+ "type": "string",
334
+ "minLength": 1
335
+ },
336
+ "version_id": {
337
+ "type": "string",
338
+ "minLength": 1
339
+ },
340
+ "sha256": {
341
+ "type": "string",
342
+ "pattern": "^[0-9a-f]{64}$"
343
+ },
344
+ "observed_at": {
345
+ "type": "string",
346
+ "format": "date-time",
347
+ "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))$"
348
+ },
349
+ "bundle_digest": {
350
+ "type": "string",
351
+ "pattern": "^[0-9a-f]{64}$"
352
+ },
353
+ "seal_hash": {
354
+ "type": "string",
355
+ "pattern": "^[0-9a-f]{64}$"
356
+ },
357
+ "target_fingerprint": {
358
+ "type": "string",
359
+ "pattern": "^[0-9a-f]{64}$"
360
+ },
361
+ "binding_scope": {
362
+ "type": "string",
363
+ "const": "operation"
364
+ },
365
+ "operation_id": {
366
+ "type": "string",
367
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
368
+ },
369
+ "type": {
370
+ "type": "string",
371
+ "const": "preservation_ref"
372
+ },
373
+ "manifest_id": {
374
+ "type": "string",
375
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
376
+ },
377
+ "manifest_version_id": {
378
+ "type": "string",
379
+ "minLength": 1
380
+ },
381
+ "manifest_hash": {
382
+ "type": "string",
383
+ "pattern": "^[0-9a-f]{64}$"
384
+ },
385
+ "frozen_unaffected_digest": {
386
+ "type": "string",
387
+ "pattern": "^[0-9a-f]{64}$"
388
+ },
389
+ "target_unaffected_digest": {
390
+ "type": "string",
391
+ "pattern": "^[0-9a-f]{64}$"
392
+ }
393
+ },
394
+ "required": [
395
+ "evidence_id",
396
+ "version_id",
397
+ "sha256",
398
+ "observed_at",
399
+ "bundle_digest",
400
+ "seal_hash",
401
+ "target_fingerprint",
402
+ "binding_scope",
403
+ "operation_id",
404
+ "type",
405
+ "manifest_id",
406
+ "manifest_version_id",
407
+ "manifest_hash",
408
+ "frozen_unaffected_digest",
409
+ "target_unaffected_digest"
410
+ ],
411
+ "additionalProperties": false
412
+ },
413
+ {
414
+ "type": "object",
415
+ "properties": {
416
+ "evidence_id": {
417
+ "type": "string",
418
+ "minLength": 1
419
+ },
420
+ "version_id": {
421
+ "type": "string",
422
+ "minLength": 1
423
+ },
424
+ "sha256": {
425
+ "type": "string",
426
+ "pattern": "^[0-9a-f]{64}$"
427
+ },
428
+ "observed_at": {
429
+ "type": "string",
430
+ "format": "date-time",
431
+ "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))$"
432
+ },
433
+ "bundle_digest": {
434
+ "type": "string",
435
+ "pattern": "^[0-9a-f]{64}$"
436
+ },
437
+ "seal_hash": {
438
+ "type": "string",
439
+ "pattern": "^[0-9a-f]{64}$"
440
+ },
441
+ "target_fingerprint": {
442
+ "type": "string",
443
+ "pattern": "^[0-9a-f]{64}$"
444
+ },
445
+ "binding_scope": {
446
+ "type": "string",
447
+ "const": "global"
448
+ },
449
+ "type": {
450
+ "type": "string",
451
+ "const": "copy_ref"
452
+ },
453
+ "copy_inventory_digest": {
454
+ "type": "string",
455
+ "pattern": "^[0-9a-f]{64}$"
456
+ },
457
+ "source_isolation_digest": {
458
+ "type": "string",
459
+ "pattern": "^[0-9a-f]{64}$"
460
+ },
461
+ "target_inventory_digest": {
462
+ "type": "string",
463
+ "pattern": "^[0-9a-f]{64}$"
464
+ },
465
+ "last_restorable_deadline": {
466
+ "type": "string",
467
+ "format": "date-time",
468
+ "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))$"
469
+ }
470
+ },
471
+ "required": [
472
+ "evidence_id",
473
+ "version_id",
474
+ "sha256",
475
+ "observed_at",
476
+ "bundle_digest",
477
+ "seal_hash",
478
+ "target_fingerprint",
479
+ "binding_scope",
480
+ "type",
481
+ "copy_inventory_digest",
482
+ "source_isolation_digest",
483
+ "target_inventory_digest",
484
+ "last_restorable_deadline"
485
+ ],
486
+ "additionalProperties": false
487
+ },
488
+ {
489
+ "type": "object",
490
+ "properties": {
491
+ "evidence_id": {
492
+ "type": "string",
493
+ "minLength": 1
494
+ },
495
+ "version_id": {
496
+ "type": "string",
497
+ "minLength": 1
498
+ },
499
+ "sha256": {
500
+ "type": "string",
501
+ "pattern": "^[0-9a-f]{64}$"
502
+ },
503
+ "observed_at": {
504
+ "type": "string",
505
+ "format": "date-time",
506
+ "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))$"
507
+ },
508
+ "bundle_digest": {
509
+ "type": "string",
510
+ "pattern": "^[0-9a-f]{64}$"
511
+ },
512
+ "seal_hash": {
513
+ "type": "string",
514
+ "pattern": "^[0-9a-f]{64}$"
515
+ },
516
+ "target_fingerprint": {
517
+ "type": "string",
518
+ "pattern": "^[0-9a-f]{64}$"
519
+ },
520
+ "binding_scope": {
521
+ "type": "string",
522
+ "const": "global"
523
+ },
524
+ "type": {
525
+ "type": "string",
526
+ "const": "closure_ref"
527
+ },
528
+ "restore_attempt_id": {
529
+ "type": "string",
530
+ "minLength": 1
531
+ },
532
+ "attempt_descriptor_hash": {
533
+ "type": "string",
534
+ "pattern": "^[0-9a-f]{64}$"
535
+ },
536
+ "attempt_descriptor_version_id": {
537
+ "type": "string",
538
+ "minLength": 1
539
+ },
540
+ "original_restore_at": {
541
+ "type": "string",
542
+ "format": "date-time",
543
+ "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))$"
544
+ },
545
+ "original_affected_count": {
546
+ "type": "integer",
547
+ "minimum": 0,
548
+ "maximum": 9007199254740991
549
+ },
550
+ "closure_row_digest": {
551
+ "type": "string",
552
+ "pattern": "^[0-9a-f]{64}$"
553
+ },
554
+ "closure_commit_marker": {
555
+ "type": "string",
556
+ "minLength": 1
557
+ },
558
+ "schema_preflight_digest": {
559
+ "type": "string",
560
+ "pattern": "^[0-9a-f]{64}$"
561
+ },
562
+ "zero_open_sessions_count": {
563
+ "type": "number",
564
+ "const": 0
565
+ },
566
+ "zero_open_sessions_at": {
567
+ "type": "string",
568
+ "format": "date-time",
569
+ "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))$"
570
+ }
571
+ },
572
+ "required": [
573
+ "evidence_id",
574
+ "version_id",
575
+ "sha256",
576
+ "observed_at",
577
+ "bundle_digest",
578
+ "seal_hash",
579
+ "target_fingerprint",
580
+ "binding_scope",
581
+ "type",
582
+ "restore_attempt_id",
583
+ "attempt_descriptor_hash",
584
+ "attempt_descriptor_version_id",
585
+ "original_restore_at",
586
+ "original_affected_count",
587
+ "closure_row_digest",
588
+ "closure_commit_marker",
589
+ "schema_preflight_digest",
590
+ "zero_open_sessions_count",
591
+ "zero_open_sessions_at"
592
+ ],
593
+ "additionalProperties": false
594
+ }
595
+ ]
596
+ }