@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,3115 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schema": {
6
+ "type": "string",
7
+ "const": "fleetless.journal-mixed-export.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "restore_attempt_id": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "source_db_timeline": {
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "maximum": 9007199254740991
21
+ },
22
+ "source_db_lsn": {
23
+ "type": "string",
24
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
25
+ },
26
+ "selected_recovery_point": {
27
+ "oneOf": [
28
+ {
29
+ "type": "object",
30
+ "properties": {
31
+ "kind": {
32
+ "type": "string",
33
+ "const": "timestamp"
34
+ },
35
+ "at": {
36
+ "type": "string",
37
+ "format": "date-time",
38
+ "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))$"
39
+ }
40
+ },
41
+ "required": [
42
+ "kind",
43
+ "at"
44
+ ],
45
+ "additionalProperties": false
46
+ },
47
+ {
48
+ "type": "object",
49
+ "properties": {
50
+ "kind": {
51
+ "type": "string",
52
+ "const": "lsn"
53
+ },
54
+ "timeline": {
55
+ "type": "integer",
56
+ "minimum": 1,
57
+ "maximum": 9007199254740991
58
+ },
59
+ "lsn": {
60
+ "type": "string",
61
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
62
+ },
63
+ "at": {
64
+ "type": "string",
65
+ "format": "date-time",
66
+ "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))$"
67
+ }
68
+ },
69
+ "required": [
70
+ "kind",
71
+ "timeline",
72
+ "lsn",
73
+ "at"
74
+ ],
75
+ "additionalProperties": false
76
+ }
77
+ ]
78
+ },
79
+ "oldest_mapping_bearing_point": {
80
+ "oneOf": [
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "kind": {
85
+ "type": "string",
86
+ "const": "timestamp"
87
+ },
88
+ "at": {
89
+ "type": "string",
90
+ "format": "date-time",
91
+ "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))$"
92
+ }
93
+ },
94
+ "required": [
95
+ "kind",
96
+ "at"
97
+ ],
98
+ "additionalProperties": false
99
+ },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "kind": {
104
+ "type": "string",
105
+ "const": "lsn"
106
+ },
107
+ "timeline": {
108
+ "type": "integer",
109
+ "minimum": 1,
110
+ "maximum": 9007199254740991
111
+ },
112
+ "lsn": {
113
+ "type": "string",
114
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
115
+ },
116
+ "at": {
117
+ "type": "string",
118
+ "format": "date-time",
119
+ "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))$"
120
+ }
121
+ },
122
+ "required": [
123
+ "kind",
124
+ "timeline",
125
+ "lsn",
126
+ "at"
127
+ ],
128
+ "additionalProperties": false
129
+ }
130
+ ]
131
+ },
132
+ "copy_inventory_digest": {
133
+ "type": "string",
134
+ "pattern": "^[0-9a-f]{64}$"
135
+ },
136
+ "copy_coverage_digest": {
137
+ "type": "string",
138
+ "pattern": "^[0-9a-f]{64}$"
139
+ },
140
+ "lower_sequence": {
141
+ "type": "integer",
142
+ "minimum": 0,
143
+ "maximum": 9007199254740991
144
+ },
145
+ "lower_hash": {
146
+ "type": "string",
147
+ "pattern": "^[0-9a-f]{64}$"
148
+ },
149
+ "upper_sequence": {
150
+ "type": "integer",
151
+ "minimum": 0,
152
+ "maximum": 9007199254740991
153
+ },
154
+ "upper_hash": {
155
+ "type": "string",
156
+ "pattern": "^[0-9a-f]{64}$"
157
+ },
158
+ "registry_chain_digest": {
159
+ "type": "string",
160
+ "pattern": "^[0-9a-f]{64}$"
161
+ },
162
+ "pinned_standby_id": {
163
+ "type": "string",
164
+ "minLength": 1
165
+ },
166
+ "pinned_standby_head_hash": {
167
+ "type": "string",
168
+ "pattern": "^[0-9a-f]{64}$"
169
+ },
170
+ "seal_hash": {
171
+ "type": "string",
172
+ "pattern": "^[0-9a-f]{64}$"
173
+ },
174
+ "seal_version_id": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
178
+ "items": {
179
+ "minItems": 1,
180
+ "type": "array",
181
+ "items": {
182
+ "anyOf": [
183
+ {
184
+ "type": "object",
185
+ "properties": {
186
+ "generation": {
187
+ "type": "string",
188
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
189
+ },
190
+ "stored_bytes_b64url": {
191
+ "type": "string",
192
+ "minLength": 1,
193
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
194
+ },
195
+ "mirror_inventory_digest": {
196
+ "type": "string",
197
+ "pattern": "^[0-9a-f]{64}$"
198
+ },
199
+ "type": {
200
+ "type": "string",
201
+ "const": "c0"
202
+ },
203
+ "schema": {
204
+ "type": "string",
205
+ "const": "fleetless.journal-first-checkpoint.v1"
206
+ },
207
+ "sequence": {
208
+ "type": "number",
209
+ "const": 0
210
+ },
211
+ "checkpoint_hash": {
212
+ "type": "string",
213
+ "pattern": "^[0-9a-f]{64}$"
214
+ },
215
+ "mirror_verdict": {
216
+ "type": "string",
217
+ "const": "complete"
218
+ },
219
+ "mirror_attempts": {
220
+ "minItems": 1,
221
+ "type": "array",
222
+ "items": {
223
+ "type": "object",
224
+ "properties": {
225
+ "attempt_id": {
226
+ "type": "string",
227
+ "minLength": 1
228
+ },
229
+ "observed_at": {
230
+ "type": "string",
231
+ "format": "date-time",
232
+ "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))$"
233
+ },
234
+ "type": {
235
+ "type": "string",
236
+ "const": "object_version"
237
+ },
238
+ "version_id": {
239
+ "type": "string",
240
+ "minLength": 1
241
+ },
242
+ "delete_marker": {
243
+ "type": "boolean",
244
+ "const": false
245
+ },
246
+ "stored_sha256": {
247
+ "type": "string",
248
+ "pattern": "^[0-9a-f]{64}$"
249
+ },
250
+ "readback_sha256": {
251
+ "type": "string",
252
+ "pattern": "^[0-9a-f]{64}$"
253
+ },
254
+ "readback_at": {
255
+ "type": "string",
256
+ "format": "date-time",
257
+ "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))$"
258
+ },
259
+ "effective_retain_until": {
260
+ "type": "string",
261
+ "format": "date-time",
262
+ "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))$"
263
+ },
264
+ "object_lock_mode": {
265
+ "type": "string",
266
+ "const": "COMPLIANCE"
267
+ }
268
+ },
269
+ "required": [
270
+ "attempt_id",
271
+ "observed_at",
272
+ "type",
273
+ "version_id",
274
+ "delete_marker",
275
+ "stored_sha256",
276
+ "readback_sha256",
277
+ "readback_at",
278
+ "effective_retain_until",
279
+ "object_lock_mode"
280
+ ],
281
+ "additionalProperties": false
282
+ }
283
+ }
284
+ },
285
+ "required": [
286
+ "generation",
287
+ "stored_bytes_b64url",
288
+ "mirror_inventory_digest",
289
+ "type",
290
+ "schema",
291
+ "sequence",
292
+ "checkpoint_hash",
293
+ "mirror_verdict",
294
+ "mirror_attempts"
295
+ ],
296
+ "additionalProperties": false
297
+ },
298
+ {
299
+ "type": "object",
300
+ "properties": {
301
+ "generation": {
302
+ "type": "string",
303
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
304
+ },
305
+ "stored_bytes_b64url": {
306
+ "type": "string",
307
+ "minLength": 1,
308
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
309
+ },
310
+ "mirror_inventory_digest": {
311
+ "type": "string",
312
+ "pattern": "^[0-9a-f]{64}$"
313
+ },
314
+ "type": {
315
+ "type": "string",
316
+ "const": "c0"
317
+ },
318
+ "schema": {
319
+ "type": "string",
320
+ "const": "fleetless.journal-first-checkpoint.v1"
321
+ },
322
+ "sequence": {
323
+ "type": "number",
324
+ "const": 0
325
+ },
326
+ "checkpoint_hash": {
327
+ "type": "string",
328
+ "pattern": "^[0-9a-f]{64}$"
329
+ },
330
+ "mirror_verdict": {
331
+ "type": "string",
332
+ "const": "failed"
333
+ },
334
+ "mirror_attempts": {
335
+ "minItems": 1,
336
+ "type": "array",
337
+ "items": {
338
+ "anyOf": [
339
+ {
340
+ "type": "object",
341
+ "properties": {
342
+ "attempt_id": {
343
+ "type": "string",
344
+ "minLength": 1
345
+ },
346
+ "observed_at": {
347
+ "type": "string",
348
+ "format": "date-time",
349
+ "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))$"
350
+ },
351
+ "type": {
352
+ "type": "string",
353
+ "const": "object_version"
354
+ },
355
+ "version_id": {
356
+ "type": "string",
357
+ "minLength": 1
358
+ },
359
+ "delete_marker": {
360
+ "type": "boolean",
361
+ "const": false
362
+ },
363
+ "stored_sha256": {
364
+ "type": "string",
365
+ "pattern": "^[0-9a-f]{64}$"
366
+ },
367
+ "readback_sha256": {
368
+ "type": "string",
369
+ "pattern": "^[0-9a-f]{64}$"
370
+ },
371
+ "readback_at": {
372
+ "type": "string",
373
+ "format": "date-time",
374
+ "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))$"
375
+ },
376
+ "effective_retain_until": {
377
+ "type": "string",
378
+ "format": "date-time",
379
+ "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))$"
380
+ },
381
+ "object_lock_mode": {
382
+ "type": "string",
383
+ "const": "COMPLIANCE"
384
+ }
385
+ },
386
+ "required": [
387
+ "attempt_id",
388
+ "observed_at",
389
+ "type",
390
+ "version_id",
391
+ "delete_marker",
392
+ "stored_sha256",
393
+ "readback_sha256",
394
+ "readback_at",
395
+ "effective_retain_until",
396
+ "object_lock_mode"
397
+ ],
398
+ "additionalProperties": false
399
+ },
400
+ {
401
+ "type": "object",
402
+ "properties": {
403
+ "attempt_id": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ },
407
+ "observed_at": {
408
+ "type": "string",
409
+ "format": "date-time",
410
+ "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))$"
411
+ },
412
+ "type": {
413
+ "type": "string",
414
+ "const": "delete_marker"
415
+ },
416
+ "version_id": {
417
+ "type": "string",
418
+ "minLength": 1
419
+ },
420
+ "delete_marker": {
421
+ "type": "boolean",
422
+ "const": true
423
+ },
424
+ "failure_code": {
425
+ "type": "string",
426
+ "const": "UNEXPECTED_DELETE_MARKER"
427
+ }
428
+ },
429
+ "required": [
430
+ "attempt_id",
431
+ "observed_at",
432
+ "type",
433
+ "version_id",
434
+ "delete_marker",
435
+ "failure_code"
436
+ ],
437
+ "additionalProperties": false
438
+ },
439
+ {
440
+ "anyOf": [
441
+ {
442
+ "type": "object",
443
+ "properties": {
444
+ "attempt_id": {
445
+ "type": "string",
446
+ "minLength": 1
447
+ },
448
+ "observed_at": {
449
+ "type": "string",
450
+ "format": "date-time",
451
+ "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))$"
452
+ },
453
+ "type": {
454
+ "type": "string",
455
+ "const": "inventory_error"
456
+ },
457
+ "failure_code": {
458
+ "type": "string",
459
+ "enum": [
460
+ "MISSING_VERSION",
461
+ "INCOMPLETE_LISTING"
462
+ ]
463
+ },
464
+ "version_id": {
465
+ "type": "string",
466
+ "minLength": 1
467
+ }
468
+ },
469
+ "required": [
470
+ "attempt_id",
471
+ "observed_at",
472
+ "type",
473
+ "failure_code"
474
+ ],
475
+ "additionalProperties": false
476
+ },
477
+ {
478
+ "type": "object",
479
+ "properties": {
480
+ "attempt_id": {
481
+ "type": "string",
482
+ "minLength": 1
483
+ },
484
+ "observed_at": {
485
+ "type": "string",
486
+ "format": "date-time",
487
+ "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))$"
488
+ },
489
+ "type": {
490
+ "type": "string",
491
+ "const": "inventory_error"
492
+ },
493
+ "failure_code": {
494
+ "type": "string",
495
+ "enum": [
496
+ "CONFLICTING_BYTES",
497
+ "UNKNOWN_RETENTION"
498
+ ]
499
+ },
500
+ "version_id": {
501
+ "type": "string",
502
+ "minLength": 1
503
+ }
504
+ },
505
+ "required": [
506
+ "attempt_id",
507
+ "observed_at",
508
+ "type",
509
+ "failure_code",
510
+ "version_id"
511
+ ],
512
+ "additionalProperties": false
513
+ }
514
+ ]
515
+ }
516
+ ]
517
+ }
518
+ }
519
+ },
520
+ "required": [
521
+ "generation",
522
+ "stored_bytes_b64url",
523
+ "mirror_inventory_digest",
524
+ "type",
525
+ "schema",
526
+ "sequence",
527
+ "checkpoint_hash",
528
+ "mirror_verdict",
529
+ "mirror_attempts"
530
+ ],
531
+ "additionalProperties": false
532
+ },
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "generation": {
537
+ "type": "string",
538
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
539
+ },
540
+ "stored_bytes_b64url": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
544
+ },
545
+ "mirror_inventory_digest": {
546
+ "type": "string",
547
+ "pattern": "^[0-9a-f]{64}$"
548
+ },
549
+ "type": {
550
+ "type": "string",
551
+ "const": "intent_v1"
552
+ },
553
+ "schema": {
554
+ "type": "string",
555
+ "const": "fleetless.deletion-intent.v1"
556
+ },
557
+ "sequence": {
558
+ "type": "integer",
559
+ "minimum": 1,
560
+ "maximum": 9007199254740991
561
+ },
562
+ "previous_hash": {
563
+ "type": "string",
564
+ "pattern": "^[0-9a-f]{64}$"
565
+ },
566
+ "record_hash": {
567
+ "type": "string",
568
+ "pattern": "^[0-9a-f]{64}$"
569
+ },
570
+ "operation_id": {
571
+ "type": "string",
572
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
573
+ },
574
+ "mirror_verdict": {
575
+ "type": "string",
576
+ "const": "complete"
577
+ },
578
+ "mirror_attempts": {
579
+ "minItems": 1,
580
+ "type": "array",
581
+ "items": {
582
+ "type": "object",
583
+ "properties": {
584
+ "attempt_id": {
585
+ "type": "string",
586
+ "minLength": 1
587
+ },
588
+ "observed_at": {
589
+ "type": "string",
590
+ "format": "date-time",
591
+ "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))$"
592
+ },
593
+ "type": {
594
+ "type": "string",
595
+ "const": "object_version"
596
+ },
597
+ "version_id": {
598
+ "type": "string",
599
+ "minLength": 1
600
+ },
601
+ "delete_marker": {
602
+ "type": "boolean",
603
+ "const": false
604
+ },
605
+ "stored_sha256": {
606
+ "type": "string",
607
+ "pattern": "^[0-9a-f]{64}$"
608
+ },
609
+ "readback_sha256": {
610
+ "type": "string",
611
+ "pattern": "^[0-9a-f]{64}$"
612
+ },
613
+ "readback_at": {
614
+ "type": "string",
615
+ "format": "date-time",
616
+ "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))$"
617
+ },
618
+ "effective_retain_until": {
619
+ "type": "string",
620
+ "format": "date-time",
621
+ "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))$"
622
+ },
623
+ "object_lock_mode": {
624
+ "type": "string",
625
+ "const": "COMPLIANCE"
626
+ }
627
+ },
628
+ "required": [
629
+ "attempt_id",
630
+ "observed_at",
631
+ "type",
632
+ "version_id",
633
+ "delete_marker",
634
+ "stored_sha256",
635
+ "readback_sha256",
636
+ "readback_at",
637
+ "effective_retain_until",
638
+ "object_lock_mode"
639
+ ],
640
+ "additionalProperties": false
641
+ }
642
+ }
643
+ },
644
+ "required": [
645
+ "generation",
646
+ "stored_bytes_b64url",
647
+ "mirror_inventory_digest",
648
+ "type",
649
+ "schema",
650
+ "sequence",
651
+ "previous_hash",
652
+ "record_hash",
653
+ "operation_id",
654
+ "mirror_verdict",
655
+ "mirror_attempts"
656
+ ],
657
+ "additionalProperties": false
658
+ },
659
+ {
660
+ "type": "object",
661
+ "properties": {
662
+ "generation": {
663
+ "type": "string",
664
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
665
+ },
666
+ "stored_bytes_b64url": {
667
+ "type": "string",
668
+ "minLength": 1,
669
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
670
+ },
671
+ "mirror_inventory_digest": {
672
+ "type": "string",
673
+ "pattern": "^[0-9a-f]{64}$"
674
+ },
675
+ "type": {
676
+ "type": "string",
677
+ "const": "intent_v1"
678
+ },
679
+ "schema": {
680
+ "type": "string",
681
+ "const": "fleetless.deletion-intent.v1"
682
+ },
683
+ "sequence": {
684
+ "type": "integer",
685
+ "minimum": 1,
686
+ "maximum": 9007199254740991
687
+ },
688
+ "previous_hash": {
689
+ "type": "string",
690
+ "pattern": "^[0-9a-f]{64}$"
691
+ },
692
+ "record_hash": {
693
+ "type": "string",
694
+ "pattern": "^[0-9a-f]{64}$"
695
+ },
696
+ "operation_id": {
697
+ "type": "string",
698
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
699
+ },
700
+ "mirror_verdict": {
701
+ "type": "string",
702
+ "const": "failed"
703
+ },
704
+ "mirror_attempts": {
705
+ "minItems": 1,
706
+ "type": "array",
707
+ "items": {
708
+ "anyOf": [
709
+ {
710
+ "type": "object",
711
+ "properties": {
712
+ "attempt_id": {
713
+ "type": "string",
714
+ "minLength": 1
715
+ },
716
+ "observed_at": {
717
+ "type": "string",
718
+ "format": "date-time",
719
+ "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))$"
720
+ },
721
+ "type": {
722
+ "type": "string",
723
+ "const": "object_version"
724
+ },
725
+ "version_id": {
726
+ "type": "string",
727
+ "minLength": 1
728
+ },
729
+ "delete_marker": {
730
+ "type": "boolean",
731
+ "const": false
732
+ },
733
+ "stored_sha256": {
734
+ "type": "string",
735
+ "pattern": "^[0-9a-f]{64}$"
736
+ },
737
+ "readback_sha256": {
738
+ "type": "string",
739
+ "pattern": "^[0-9a-f]{64}$"
740
+ },
741
+ "readback_at": {
742
+ "type": "string",
743
+ "format": "date-time",
744
+ "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))$"
745
+ },
746
+ "effective_retain_until": {
747
+ "type": "string",
748
+ "format": "date-time",
749
+ "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))$"
750
+ },
751
+ "object_lock_mode": {
752
+ "type": "string",
753
+ "const": "COMPLIANCE"
754
+ }
755
+ },
756
+ "required": [
757
+ "attempt_id",
758
+ "observed_at",
759
+ "type",
760
+ "version_id",
761
+ "delete_marker",
762
+ "stored_sha256",
763
+ "readback_sha256",
764
+ "readback_at",
765
+ "effective_retain_until",
766
+ "object_lock_mode"
767
+ ],
768
+ "additionalProperties": false
769
+ },
770
+ {
771
+ "type": "object",
772
+ "properties": {
773
+ "attempt_id": {
774
+ "type": "string",
775
+ "minLength": 1
776
+ },
777
+ "observed_at": {
778
+ "type": "string",
779
+ "format": "date-time",
780
+ "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))$"
781
+ },
782
+ "type": {
783
+ "type": "string",
784
+ "const": "delete_marker"
785
+ },
786
+ "version_id": {
787
+ "type": "string",
788
+ "minLength": 1
789
+ },
790
+ "delete_marker": {
791
+ "type": "boolean",
792
+ "const": true
793
+ },
794
+ "failure_code": {
795
+ "type": "string",
796
+ "const": "UNEXPECTED_DELETE_MARKER"
797
+ }
798
+ },
799
+ "required": [
800
+ "attempt_id",
801
+ "observed_at",
802
+ "type",
803
+ "version_id",
804
+ "delete_marker",
805
+ "failure_code"
806
+ ],
807
+ "additionalProperties": false
808
+ },
809
+ {
810
+ "anyOf": [
811
+ {
812
+ "type": "object",
813
+ "properties": {
814
+ "attempt_id": {
815
+ "type": "string",
816
+ "minLength": 1
817
+ },
818
+ "observed_at": {
819
+ "type": "string",
820
+ "format": "date-time",
821
+ "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))$"
822
+ },
823
+ "type": {
824
+ "type": "string",
825
+ "const": "inventory_error"
826
+ },
827
+ "failure_code": {
828
+ "type": "string",
829
+ "enum": [
830
+ "MISSING_VERSION",
831
+ "INCOMPLETE_LISTING"
832
+ ]
833
+ },
834
+ "version_id": {
835
+ "type": "string",
836
+ "minLength": 1
837
+ }
838
+ },
839
+ "required": [
840
+ "attempt_id",
841
+ "observed_at",
842
+ "type",
843
+ "failure_code"
844
+ ],
845
+ "additionalProperties": false
846
+ },
847
+ {
848
+ "type": "object",
849
+ "properties": {
850
+ "attempt_id": {
851
+ "type": "string",
852
+ "minLength": 1
853
+ },
854
+ "observed_at": {
855
+ "type": "string",
856
+ "format": "date-time",
857
+ "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))$"
858
+ },
859
+ "type": {
860
+ "type": "string",
861
+ "const": "inventory_error"
862
+ },
863
+ "failure_code": {
864
+ "type": "string",
865
+ "enum": [
866
+ "CONFLICTING_BYTES",
867
+ "UNKNOWN_RETENTION"
868
+ ]
869
+ },
870
+ "version_id": {
871
+ "type": "string",
872
+ "minLength": 1
873
+ }
874
+ },
875
+ "required": [
876
+ "attempt_id",
877
+ "observed_at",
878
+ "type",
879
+ "failure_code",
880
+ "version_id"
881
+ ],
882
+ "additionalProperties": false
883
+ }
884
+ ]
885
+ }
886
+ ]
887
+ }
888
+ }
889
+ },
890
+ "required": [
891
+ "generation",
892
+ "stored_bytes_b64url",
893
+ "mirror_inventory_digest",
894
+ "type",
895
+ "schema",
896
+ "sequence",
897
+ "previous_hash",
898
+ "record_hash",
899
+ "operation_id",
900
+ "mirror_verdict",
901
+ "mirror_attempts"
902
+ ],
903
+ "additionalProperties": false
904
+ },
905
+ {
906
+ "type": "object",
907
+ "properties": {
908
+ "generation": {
909
+ "type": "string",
910
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
911
+ },
912
+ "stored_bytes_b64url": {
913
+ "type": "string",
914
+ "minLength": 1,
915
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
916
+ },
917
+ "mirror_inventory_digest": {
918
+ "type": "string",
919
+ "pattern": "^[0-9a-f]{64}$"
920
+ },
921
+ "type": {
922
+ "type": "string",
923
+ "const": "intent_v2"
924
+ },
925
+ "schema": {
926
+ "type": "string",
927
+ "const": "fleetless.deletion-intent.v2"
928
+ },
929
+ "sequence": {
930
+ "type": "integer",
931
+ "minimum": 1,
932
+ "maximum": 9007199254740991
933
+ },
934
+ "previous_hash": {
935
+ "type": "string",
936
+ "pattern": "^[0-9a-f]{64}$"
937
+ },
938
+ "record_hash": {
939
+ "type": "string",
940
+ "pattern": "^[0-9a-f]{64}$"
941
+ },
942
+ "operation_id": {
943
+ "type": "string",
944
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
945
+ },
946
+ "mirror_verdict": {
947
+ "type": "string",
948
+ "const": "complete"
949
+ },
950
+ "mirror_attempts": {
951
+ "minItems": 1,
952
+ "type": "array",
953
+ "items": {
954
+ "type": "object",
955
+ "properties": {
956
+ "attempt_id": {
957
+ "type": "string",
958
+ "minLength": 1
959
+ },
960
+ "observed_at": {
961
+ "type": "string",
962
+ "format": "date-time",
963
+ "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))$"
964
+ },
965
+ "type": {
966
+ "type": "string",
967
+ "const": "object_version"
968
+ },
969
+ "version_id": {
970
+ "type": "string",
971
+ "minLength": 1
972
+ },
973
+ "delete_marker": {
974
+ "type": "boolean",
975
+ "const": false
976
+ },
977
+ "stored_sha256": {
978
+ "type": "string",
979
+ "pattern": "^[0-9a-f]{64}$"
980
+ },
981
+ "readback_sha256": {
982
+ "type": "string",
983
+ "pattern": "^[0-9a-f]{64}$"
984
+ },
985
+ "readback_at": {
986
+ "type": "string",
987
+ "format": "date-time",
988
+ "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))$"
989
+ },
990
+ "effective_retain_until": {
991
+ "type": "string",
992
+ "format": "date-time",
993
+ "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))$"
994
+ },
995
+ "object_lock_mode": {
996
+ "type": "string",
997
+ "const": "COMPLIANCE"
998
+ }
999
+ },
1000
+ "required": [
1001
+ "attempt_id",
1002
+ "observed_at",
1003
+ "type",
1004
+ "version_id",
1005
+ "delete_marker",
1006
+ "stored_sha256",
1007
+ "readback_sha256",
1008
+ "readback_at",
1009
+ "effective_retain_until",
1010
+ "object_lock_mode"
1011
+ ],
1012
+ "additionalProperties": false
1013
+ }
1014
+ }
1015
+ },
1016
+ "required": [
1017
+ "generation",
1018
+ "stored_bytes_b64url",
1019
+ "mirror_inventory_digest",
1020
+ "type",
1021
+ "schema",
1022
+ "sequence",
1023
+ "previous_hash",
1024
+ "record_hash",
1025
+ "operation_id",
1026
+ "mirror_verdict",
1027
+ "mirror_attempts"
1028
+ ],
1029
+ "additionalProperties": false
1030
+ },
1031
+ {
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "generation": {
1035
+ "type": "string",
1036
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1037
+ },
1038
+ "stored_bytes_b64url": {
1039
+ "type": "string",
1040
+ "minLength": 1,
1041
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1042
+ },
1043
+ "mirror_inventory_digest": {
1044
+ "type": "string",
1045
+ "pattern": "^[0-9a-f]{64}$"
1046
+ },
1047
+ "type": {
1048
+ "type": "string",
1049
+ "const": "intent_v2"
1050
+ },
1051
+ "schema": {
1052
+ "type": "string",
1053
+ "const": "fleetless.deletion-intent.v2"
1054
+ },
1055
+ "sequence": {
1056
+ "type": "integer",
1057
+ "minimum": 1,
1058
+ "maximum": 9007199254740991
1059
+ },
1060
+ "previous_hash": {
1061
+ "type": "string",
1062
+ "pattern": "^[0-9a-f]{64}$"
1063
+ },
1064
+ "record_hash": {
1065
+ "type": "string",
1066
+ "pattern": "^[0-9a-f]{64}$"
1067
+ },
1068
+ "operation_id": {
1069
+ "type": "string",
1070
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1071
+ },
1072
+ "mirror_verdict": {
1073
+ "type": "string",
1074
+ "const": "failed"
1075
+ },
1076
+ "mirror_attempts": {
1077
+ "minItems": 1,
1078
+ "type": "array",
1079
+ "items": {
1080
+ "anyOf": [
1081
+ {
1082
+ "type": "object",
1083
+ "properties": {
1084
+ "attempt_id": {
1085
+ "type": "string",
1086
+ "minLength": 1
1087
+ },
1088
+ "observed_at": {
1089
+ "type": "string",
1090
+ "format": "date-time",
1091
+ "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))$"
1092
+ },
1093
+ "type": {
1094
+ "type": "string",
1095
+ "const": "object_version"
1096
+ },
1097
+ "version_id": {
1098
+ "type": "string",
1099
+ "minLength": 1
1100
+ },
1101
+ "delete_marker": {
1102
+ "type": "boolean",
1103
+ "const": false
1104
+ },
1105
+ "stored_sha256": {
1106
+ "type": "string",
1107
+ "pattern": "^[0-9a-f]{64}$"
1108
+ },
1109
+ "readback_sha256": {
1110
+ "type": "string",
1111
+ "pattern": "^[0-9a-f]{64}$"
1112
+ },
1113
+ "readback_at": {
1114
+ "type": "string",
1115
+ "format": "date-time",
1116
+ "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))$"
1117
+ },
1118
+ "effective_retain_until": {
1119
+ "type": "string",
1120
+ "format": "date-time",
1121
+ "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))$"
1122
+ },
1123
+ "object_lock_mode": {
1124
+ "type": "string",
1125
+ "const": "COMPLIANCE"
1126
+ }
1127
+ },
1128
+ "required": [
1129
+ "attempt_id",
1130
+ "observed_at",
1131
+ "type",
1132
+ "version_id",
1133
+ "delete_marker",
1134
+ "stored_sha256",
1135
+ "readback_sha256",
1136
+ "readback_at",
1137
+ "effective_retain_until",
1138
+ "object_lock_mode"
1139
+ ],
1140
+ "additionalProperties": false
1141
+ },
1142
+ {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "attempt_id": {
1146
+ "type": "string",
1147
+ "minLength": 1
1148
+ },
1149
+ "observed_at": {
1150
+ "type": "string",
1151
+ "format": "date-time",
1152
+ "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))$"
1153
+ },
1154
+ "type": {
1155
+ "type": "string",
1156
+ "const": "delete_marker"
1157
+ },
1158
+ "version_id": {
1159
+ "type": "string",
1160
+ "minLength": 1
1161
+ },
1162
+ "delete_marker": {
1163
+ "type": "boolean",
1164
+ "const": true
1165
+ },
1166
+ "failure_code": {
1167
+ "type": "string",
1168
+ "const": "UNEXPECTED_DELETE_MARKER"
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "attempt_id",
1173
+ "observed_at",
1174
+ "type",
1175
+ "version_id",
1176
+ "delete_marker",
1177
+ "failure_code"
1178
+ ],
1179
+ "additionalProperties": false
1180
+ },
1181
+ {
1182
+ "anyOf": [
1183
+ {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "attempt_id": {
1187
+ "type": "string",
1188
+ "minLength": 1
1189
+ },
1190
+ "observed_at": {
1191
+ "type": "string",
1192
+ "format": "date-time",
1193
+ "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))$"
1194
+ },
1195
+ "type": {
1196
+ "type": "string",
1197
+ "const": "inventory_error"
1198
+ },
1199
+ "failure_code": {
1200
+ "type": "string",
1201
+ "enum": [
1202
+ "MISSING_VERSION",
1203
+ "INCOMPLETE_LISTING"
1204
+ ]
1205
+ },
1206
+ "version_id": {
1207
+ "type": "string",
1208
+ "minLength": 1
1209
+ }
1210
+ },
1211
+ "required": [
1212
+ "attempt_id",
1213
+ "observed_at",
1214
+ "type",
1215
+ "failure_code"
1216
+ ],
1217
+ "additionalProperties": false
1218
+ },
1219
+ {
1220
+ "type": "object",
1221
+ "properties": {
1222
+ "attempt_id": {
1223
+ "type": "string",
1224
+ "minLength": 1
1225
+ },
1226
+ "observed_at": {
1227
+ "type": "string",
1228
+ "format": "date-time",
1229
+ "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))$"
1230
+ },
1231
+ "type": {
1232
+ "type": "string",
1233
+ "const": "inventory_error"
1234
+ },
1235
+ "failure_code": {
1236
+ "type": "string",
1237
+ "enum": [
1238
+ "CONFLICTING_BYTES",
1239
+ "UNKNOWN_RETENTION"
1240
+ ]
1241
+ },
1242
+ "version_id": {
1243
+ "type": "string",
1244
+ "minLength": 1
1245
+ }
1246
+ },
1247
+ "required": [
1248
+ "attempt_id",
1249
+ "observed_at",
1250
+ "type",
1251
+ "failure_code",
1252
+ "version_id"
1253
+ ],
1254
+ "additionalProperties": false
1255
+ }
1256
+ ]
1257
+ }
1258
+ ]
1259
+ }
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "generation",
1264
+ "stored_bytes_b64url",
1265
+ "mirror_inventory_digest",
1266
+ "type",
1267
+ "schema",
1268
+ "sequence",
1269
+ "previous_hash",
1270
+ "record_hash",
1271
+ "operation_id",
1272
+ "mirror_verdict",
1273
+ "mirror_attempts"
1274
+ ],
1275
+ "additionalProperties": false
1276
+ },
1277
+ {
1278
+ "type": "object",
1279
+ "properties": {
1280
+ "generation": {
1281
+ "type": "string",
1282
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1283
+ },
1284
+ "stored_bytes_b64url": {
1285
+ "type": "string",
1286
+ "minLength": 1,
1287
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1288
+ },
1289
+ "mirror_inventory_digest": {
1290
+ "type": "string",
1291
+ "pattern": "^[0-9a-f]{64}$"
1292
+ },
1293
+ "type": {
1294
+ "type": "string",
1295
+ "const": "registry_transition"
1296
+ },
1297
+ "schema": {
1298
+ "type": "string",
1299
+ "const": "fleetless.registry-transition.v1"
1300
+ },
1301
+ "sequence": {
1302
+ "type": "integer",
1303
+ "minimum": 1,
1304
+ "maximum": 9007199254740991
1305
+ },
1306
+ "previous_hash": {
1307
+ "type": "string",
1308
+ "pattern": "^[0-9a-f]{64}$"
1309
+ },
1310
+ "record_hash": {
1311
+ "type": "string",
1312
+ "pattern": "^[0-9a-f]{64}$"
1313
+ },
1314
+ "mirror_verdict": {
1315
+ "type": "string",
1316
+ "const": "complete"
1317
+ },
1318
+ "mirror_attempts": {
1319
+ "minItems": 1,
1320
+ "type": "array",
1321
+ "items": {
1322
+ "type": "object",
1323
+ "properties": {
1324
+ "attempt_id": {
1325
+ "type": "string",
1326
+ "minLength": 1
1327
+ },
1328
+ "observed_at": {
1329
+ "type": "string",
1330
+ "format": "date-time",
1331
+ "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))$"
1332
+ },
1333
+ "type": {
1334
+ "type": "string",
1335
+ "const": "object_version"
1336
+ },
1337
+ "version_id": {
1338
+ "type": "string",
1339
+ "minLength": 1
1340
+ },
1341
+ "delete_marker": {
1342
+ "type": "boolean",
1343
+ "const": false
1344
+ },
1345
+ "stored_sha256": {
1346
+ "type": "string",
1347
+ "pattern": "^[0-9a-f]{64}$"
1348
+ },
1349
+ "readback_sha256": {
1350
+ "type": "string",
1351
+ "pattern": "^[0-9a-f]{64}$"
1352
+ },
1353
+ "readback_at": {
1354
+ "type": "string",
1355
+ "format": "date-time",
1356
+ "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))$"
1357
+ },
1358
+ "effective_retain_until": {
1359
+ "type": "string",
1360
+ "format": "date-time",
1361
+ "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))$"
1362
+ },
1363
+ "object_lock_mode": {
1364
+ "type": "string",
1365
+ "const": "COMPLIANCE"
1366
+ }
1367
+ },
1368
+ "required": [
1369
+ "attempt_id",
1370
+ "observed_at",
1371
+ "type",
1372
+ "version_id",
1373
+ "delete_marker",
1374
+ "stored_sha256",
1375
+ "readback_sha256",
1376
+ "readback_at",
1377
+ "effective_retain_until",
1378
+ "object_lock_mode"
1379
+ ],
1380
+ "additionalProperties": false
1381
+ }
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "generation",
1386
+ "stored_bytes_b64url",
1387
+ "mirror_inventory_digest",
1388
+ "type",
1389
+ "schema",
1390
+ "sequence",
1391
+ "previous_hash",
1392
+ "record_hash",
1393
+ "mirror_verdict",
1394
+ "mirror_attempts"
1395
+ ],
1396
+ "additionalProperties": false
1397
+ },
1398
+ {
1399
+ "type": "object",
1400
+ "properties": {
1401
+ "generation": {
1402
+ "type": "string",
1403
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1404
+ },
1405
+ "stored_bytes_b64url": {
1406
+ "type": "string",
1407
+ "minLength": 1,
1408
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1409
+ },
1410
+ "mirror_inventory_digest": {
1411
+ "type": "string",
1412
+ "pattern": "^[0-9a-f]{64}$"
1413
+ },
1414
+ "type": {
1415
+ "type": "string",
1416
+ "const": "registry_transition"
1417
+ },
1418
+ "schema": {
1419
+ "type": "string",
1420
+ "const": "fleetless.registry-transition.v1"
1421
+ },
1422
+ "sequence": {
1423
+ "type": "integer",
1424
+ "minimum": 1,
1425
+ "maximum": 9007199254740991
1426
+ },
1427
+ "previous_hash": {
1428
+ "type": "string",
1429
+ "pattern": "^[0-9a-f]{64}$"
1430
+ },
1431
+ "record_hash": {
1432
+ "type": "string",
1433
+ "pattern": "^[0-9a-f]{64}$"
1434
+ },
1435
+ "mirror_verdict": {
1436
+ "type": "string",
1437
+ "const": "failed"
1438
+ },
1439
+ "mirror_attempts": {
1440
+ "minItems": 1,
1441
+ "type": "array",
1442
+ "items": {
1443
+ "anyOf": [
1444
+ {
1445
+ "type": "object",
1446
+ "properties": {
1447
+ "attempt_id": {
1448
+ "type": "string",
1449
+ "minLength": 1
1450
+ },
1451
+ "observed_at": {
1452
+ "type": "string",
1453
+ "format": "date-time",
1454
+ "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))$"
1455
+ },
1456
+ "type": {
1457
+ "type": "string",
1458
+ "const": "object_version"
1459
+ },
1460
+ "version_id": {
1461
+ "type": "string",
1462
+ "minLength": 1
1463
+ },
1464
+ "delete_marker": {
1465
+ "type": "boolean",
1466
+ "const": false
1467
+ },
1468
+ "stored_sha256": {
1469
+ "type": "string",
1470
+ "pattern": "^[0-9a-f]{64}$"
1471
+ },
1472
+ "readback_sha256": {
1473
+ "type": "string",
1474
+ "pattern": "^[0-9a-f]{64}$"
1475
+ },
1476
+ "readback_at": {
1477
+ "type": "string",
1478
+ "format": "date-time",
1479
+ "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))$"
1480
+ },
1481
+ "effective_retain_until": {
1482
+ "type": "string",
1483
+ "format": "date-time",
1484
+ "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))$"
1485
+ },
1486
+ "object_lock_mode": {
1487
+ "type": "string",
1488
+ "const": "COMPLIANCE"
1489
+ }
1490
+ },
1491
+ "required": [
1492
+ "attempt_id",
1493
+ "observed_at",
1494
+ "type",
1495
+ "version_id",
1496
+ "delete_marker",
1497
+ "stored_sha256",
1498
+ "readback_sha256",
1499
+ "readback_at",
1500
+ "effective_retain_until",
1501
+ "object_lock_mode"
1502
+ ],
1503
+ "additionalProperties": false
1504
+ },
1505
+ {
1506
+ "type": "object",
1507
+ "properties": {
1508
+ "attempt_id": {
1509
+ "type": "string",
1510
+ "minLength": 1
1511
+ },
1512
+ "observed_at": {
1513
+ "type": "string",
1514
+ "format": "date-time",
1515
+ "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))$"
1516
+ },
1517
+ "type": {
1518
+ "type": "string",
1519
+ "const": "delete_marker"
1520
+ },
1521
+ "version_id": {
1522
+ "type": "string",
1523
+ "minLength": 1
1524
+ },
1525
+ "delete_marker": {
1526
+ "type": "boolean",
1527
+ "const": true
1528
+ },
1529
+ "failure_code": {
1530
+ "type": "string",
1531
+ "const": "UNEXPECTED_DELETE_MARKER"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "attempt_id",
1536
+ "observed_at",
1537
+ "type",
1538
+ "version_id",
1539
+ "delete_marker",
1540
+ "failure_code"
1541
+ ],
1542
+ "additionalProperties": false
1543
+ },
1544
+ {
1545
+ "anyOf": [
1546
+ {
1547
+ "type": "object",
1548
+ "properties": {
1549
+ "attempt_id": {
1550
+ "type": "string",
1551
+ "minLength": 1
1552
+ },
1553
+ "observed_at": {
1554
+ "type": "string",
1555
+ "format": "date-time",
1556
+ "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))$"
1557
+ },
1558
+ "type": {
1559
+ "type": "string",
1560
+ "const": "inventory_error"
1561
+ },
1562
+ "failure_code": {
1563
+ "type": "string",
1564
+ "enum": [
1565
+ "MISSING_VERSION",
1566
+ "INCOMPLETE_LISTING"
1567
+ ]
1568
+ },
1569
+ "version_id": {
1570
+ "type": "string",
1571
+ "minLength": 1
1572
+ }
1573
+ },
1574
+ "required": [
1575
+ "attempt_id",
1576
+ "observed_at",
1577
+ "type",
1578
+ "failure_code"
1579
+ ],
1580
+ "additionalProperties": false
1581
+ },
1582
+ {
1583
+ "type": "object",
1584
+ "properties": {
1585
+ "attempt_id": {
1586
+ "type": "string",
1587
+ "minLength": 1
1588
+ },
1589
+ "observed_at": {
1590
+ "type": "string",
1591
+ "format": "date-time",
1592
+ "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))$"
1593
+ },
1594
+ "type": {
1595
+ "type": "string",
1596
+ "const": "inventory_error"
1597
+ },
1598
+ "failure_code": {
1599
+ "type": "string",
1600
+ "enum": [
1601
+ "CONFLICTING_BYTES",
1602
+ "UNKNOWN_RETENTION"
1603
+ ]
1604
+ },
1605
+ "version_id": {
1606
+ "type": "string",
1607
+ "minLength": 1
1608
+ }
1609
+ },
1610
+ "required": [
1611
+ "attempt_id",
1612
+ "observed_at",
1613
+ "type",
1614
+ "failure_code",
1615
+ "version_id"
1616
+ ],
1617
+ "additionalProperties": false
1618
+ }
1619
+ ]
1620
+ }
1621
+ ]
1622
+ }
1623
+ }
1624
+ },
1625
+ "required": [
1626
+ "generation",
1627
+ "stored_bytes_b64url",
1628
+ "mirror_inventory_digest",
1629
+ "type",
1630
+ "schema",
1631
+ "sequence",
1632
+ "previous_hash",
1633
+ "record_hash",
1634
+ "mirror_verdict",
1635
+ "mirror_attempts"
1636
+ ],
1637
+ "additionalProperties": false
1638
+ },
1639
+ {
1640
+ "type": "object",
1641
+ "properties": {
1642
+ "generation": {
1643
+ "type": "string",
1644
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1645
+ },
1646
+ "stored_bytes_b64url": {
1647
+ "type": "string",
1648
+ "minLength": 1,
1649
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1650
+ },
1651
+ "mirror_inventory_digest": {
1652
+ "type": "string",
1653
+ "pattern": "^[0-9a-f]{64}$"
1654
+ },
1655
+ "type": {
1656
+ "type": "string",
1657
+ "const": "v2_activation_checkpoint"
1658
+ },
1659
+ "schema": {
1660
+ "type": "string",
1661
+ "const": "fleetless.journal-v2-activation-checkpoint.v1"
1662
+ },
1663
+ "sequence": {
1664
+ "type": "integer",
1665
+ "minimum": 1,
1666
+ "maximum": 9007199254740991
1667
+ },
1668
+ "previous_hash": {
1669
+ "type": "string",
1670
+ "pattern": "^[0-9a-f]{64}$"
1671
+ },
1672
+ "record_hash": {
1673
+ "type": "string",
1674
+ "pattern": "^[0-9a-f]{64}$"
1675
+ },
1676
+ "mirror_verdict": {
1677
+ "type": "string",
1678
+ "const": "complete"
1679
+ },
1680
+ "mirror_attempts": {
1681
+ "minItems": 1,
1682
+ "type": "array",
1683
+ "items": {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "attempt_id": {
1687
+ "type": "string",
1688
+ "minLength": 1
1689
+ },
1690
+ "observed_at": {
1691
+ "type": "string",
1692
+ "format": "date-time",
1693
+ "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))$"
1694
+ },
1695
+ "type": {
1696
+ "type": "string",
1697
+ "const": "object_version"
1698
+ },
1699
+ "version_id": {
1700
+ "type": "string",
1701
+ "minLength": 1
1702
+ },
1703
+ "delete_marker": {
1704
+ "type": "boolean",
1705
+ "const": false
1706
+ },
1707
+ "stored_sha256": {
1708
+ "type": "string",
1709
+ "pattern": "^[0-9a-f]{64}$"
1710
+ },
1711
+ "readback_sha256": {
1712
+ "type": "string",
1713
+ "pattern": "^[0-9a-f]{64}$"
1714
+ },
1715
+ "readback_at": {
1716
+ "type": "string",
1717
+ "format": "date-time",
1718
+ "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))$"
1719
+ },
1720
+ "effective_retain_until": {
1721
+ "type": "string",
1722
+ "format": "date-time",
1723
+ "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))$"
1724
+ },
1725
+ "object_lock_mode": {
1726
+ "type": "string",
1727
+ "const": "COMPLIANCE"
1728
+ }
1729
+ },
1730
+ "required": [
1731
+ "attempt_id",
1732
+ "observed_at",
1733
+ "type",
1734
+ "version_id",
1735
+ "delete_marker",
1736
+ "stored_sha256",
1737
+ "readback_sha256",
1738
+ "readback_at",
1739
+ "effective_retain_until",
1740
+ "object_lock_mode"
1741
+ ],
1742
+ "additionalProperties": false
1743
+ }
1744
+ }
1745
+ },
1746
+ "required": [
1747
+ "generation",
1748
+ "stored_bytes_b64url",
1749
+ "mirror_inventory_digest",
1750
+ "type",
1751
+ "schema",
1752
+ "sequence",
1753
+ "previous_hash",
1754
+ "record_hash",
1755
+ "mirror_verdict",
1756
+ "mirror_attempts"
1757
+ ],
1758
+ "additionalProperties": false
1759
+ },
1760
+ {
1761
+ "type": "object",
1762
+ "properties": {
1763
+ "generation": {
1764
+ "type": "string",
1765
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1766
+ },
1767
+ "stored_bytes_b64url": {
1768
+ "type": "string",
1769
+ "minLength": 1,
1770
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1771
+ },
1772
+ "mirror_inventory_digest": {
1773
+ "type": "string",
1774
+ "pattern": "^[0-9a-f]{64}$"
1775
+ },
1776
+ "type": {
1777
+ "type": "string",
1778
+ "const": "v2_activation_checkpoint"
1779
+ },
1780
+ "schema": {
1781
+ "type": "string",
1782
+ "const": "fleetless.journal-v2-activation-checkpoint.v1"
1783
+ },
1784
+ "sequence": {
1785
+ "type": "integer",
1786
+ "minimum": 1,
1787
+ "maximum": 9007199254740991
1788
+ },
1789
+ "previous_hash": {
1790
+ "type": "string",
1791
+ "pattern": "^[0-9a-f]{64}$"
1792
+ },
1793
+ "record_hash": {
1794
+ "type": "string",
1795
+ "pattern": "^[0-9a-f]{64}$"
1796
+ },
1797
+ "mirror_verdict": {
1798
+ "type": "string",
1799
+ "const": "failed"
1800
+ },
1801
+ "mirror_attempts": {
1802
+ "minItems": 1,
1803
+ "type": "array",
1804
+ "items": {
1805
+ "anyOf": [
1806
+ {
1807
+ "type": "object",
1808
+ "properties": {
1809
+ "attempt_id": {
1810
+ "type": "string",
1811
+ "minLength": 1
1812
+ },
1813
+ "observed_at": {
1814
+ "type": "string",
1815
+ "format": "date-time",
1816
+ "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))$"
1817
+ },
1818
+ "type": {
1819
+ "type": "string",
1820
+ "const": "object_version"
1821
+ },
1822
+ "version_id": {
1823
+ "type": "string",
1824
+ "minLength": 1
1825
+ },
1826
+ "delete_marker": {
1827
+ "type": "boolean",
1828
+ "const": false
1829
+ },
1830
+ "stored_sha256": {
1831
+ "type": "string",
1832
+ "pattern": "^[0-9a-f]{64}$"
1833
+ },
1834
+ "readback_sha256": {
1835
+ "type": "string",
1836
+ "pattern": "^[0-9a-f]{64}$"
1837
+ },
1838
+ "readback_at": {
1839
+ "type": "string",
1840
+ "format": "date-time",
1841
+ "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))$"
1842
+ },
1843
+ "effective_retain_until": {
1844
+ "type": "string",
1845
+ "format": "date-time",
1846
+ "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))$"
1847
+ },
1848
+ "object_lock_mode": {
1849
+ "type": "string",
1850
+ "const": "COMPLIANCE"
1851
+ }
1852
+ },
1853
+ "required": [
1854
+ "attempt_id",
1855
+ "observed_at",
1856
+ "type",
1857
+ "version_id",
1858
+ "delete_marker",
1859
+ "stored_sha256",
1860
+ "readback_sha256",
1861
+ "readback_at",
1862
+ "effective_retain_until",
1863
+ "object_lock_mode"
1864
+ ],
1865
+ "additionalProperties": false
1866
+ },
1867
+ {
1868
+ "type": "object",
1869
+ "properties": {
1870
+ "attempt_id": {
1871
+ "type": "string",
1872
+ "minLength": 1
1873
+ },
1874
+ "observed_at": {
1875
+ "type": "string",
1876
+ "format": "date-time",
1877
+ "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))$"
1878
+ },
1879
+ "type": {
1880
+ "type": "string",
1881
+ "const": "delete_marker"
1882
+ },
1883
+ "version_id": {
1884
+ "type": "string",
1885
+ "minLength": 1
1886
+ },
1887
+ "delete_marker": {
1888
+ "type": "boolean",
1889
+ "const": true
1890
+ },
1891
+ "failure_code": {
1892
+ "type": "string",
1893
+ "const": "UNEXPECTED_DELETE_MARKER"
1894
+ }
1895
+ },
1896
+ "required": [
1897
+ "attempt_id",
1898
+ "observed_at",
1899
+ "type",
1900
+ "version_id",
1901
+ "delete_marker",
1902
+ "failure_code"
1903
+ ],
1904
+ "additionalProperties": false
1905
+ },
1906
+ {
1907
+ "anyOf": [
1908
+ {
1909
+ "type": "object",
1910
+ "properties": {
1911
+ "attempt_id": {
1912
+ "type": "string",
1913
+ "minLength": 1
1914
+ },
1915
+ "observed_at": {
1916
+ "type": "string",
1917
+ "format": "date-time",
1918
+ "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))$"
1919
+ },
1920
+ "type": {
1921
+ "type": "string",
1922
+ "const": "inventory_error"
1923
+ },
1924
+ "failure_code": {
1925
+ "type": "string",
1926
+ "enum": [
1927
+ "MISSING_VERSION",
1928
+ "INCOMPLETE_LISTING"
1929
+ ]
1930
+ },
1931
+ "version_id": {
1932
+ "type": "string",
1933
+ "minLength": 1
1934
+ }
1935
+ },
1936
+ "required": [
1937
+ "attempt_id",
1938
+ "observed_at",
1939
+ "type",
1940
+ "failure_code"
1941
+ ],
1942
+ "additionalProperties": false
1943
+ },
1944
+ {
1945
+ "type": "object",
1946
+ "properties": {
1947
+ "attempt_id": {
1948
+ "type": "string",
1949
+ "minLength": 1
1950
+ },
1951
+ "observed_at": {
1952
+ "type": "string",
1953
+ "format": "date-time",
1954
+ "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))$"
1955
+ },
1956
+ "type": {
1957
+ "type": "string",
1958
+ "const": "inventory_error"
1959
+ },
1960
+ "failure_code": {
1961
+ "type": "string",
1962
+ "enum": [
1963
+ "CONFLICTING_BYTES",
1964
+ "UNKNOWN_RETENTION"
1965
+ ]
1966
+ },
1967
+ "version_id": {
1968
+ "type": "string",
1969
+ "minLength": 1
1970
+ }
1971
+ },
1972
+ "required": [
1973
+ "attempt_id",
1974
+ "observed_at",
1975
+ "type",
1976
+ "failure_code",
1977
+ "version_id"
1978
+ ],
1979
+ "additionalProperties": false
1980
+ }
1981
+ ]
1982
+ }
1983
+ ]
1984
+ }
1985
+ }
1986
+ },
1987
+ "required": [
1988
+ "generation",
1989
+ "stored_bytes_b64url",
1990
+ "mirror_inventory_digest",
1991
+ "type",
1992
+ "schema",
1993
+ "sequence",
1994
+ "previous_hash",
1995
+ "record_hash",
1996
+ "mirror_verdict",
1997
+ "mirror_attempts"
1998
+ ],
1999
+ "additionalProperties": false
2000
+ },
2001
+ {
2002
+ "type": "object",
2003
+ "properties": {
2004
+ "generation": {
2005
+ "type": "string",
2006
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2007
+ },
2008
+ "stored_bytes_b64url": {
2009
+ "type": "string",
2010
+ "minLength": 1,
2011
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2012
+ },
2013
+ "mirror_inventory_digest": {
2014
+ "type": "string",
2015
+ "pattern": "^[0-9a-f]{64}$"
2016
+ },
2017
+ "type": {
2018
+ "type": "string",
2019
+ "const": "generation_checkpoint"
2020
+ },
2021
+ "schema": {
2022
+ "type": "string",
2023
+ "const": "fleetless.journal-generation-checkpoint.v1"
2024
+ },
2025
+ "sequence": {
2026
+ "type": "integer",
2027
+ "minimum": 1,
2028
+ "maximum": 9007199254740991
2029
+ },
2030
+ "previous_hash": {
2031
+ "type": "string",
2032
+ "pattern": "^[0-9a-f]{64}$"
2033
+ },
2034
+ "record_hash": {
2035
+ "type": "string",
2036
+ "pattern": "^[0-9a-f]{64}$"
2037
+ },
2038
+ "mirror_verdict": {
2039
+ "type": "string",
2040
+ "const": "complete"
2041
+ },
2042
+ "mirror_attempts": {
2043
+ "minItems": 1,
2044
+ "type": "array",
2045
+ "items": {
2046
+ "type": "object",
2047
+ "properties": {
2048
+ "attempt_id": {
2049
+ "type": "string",
2050
+ "minLength": 1
2051
+ },
2052
+ "observed_at": {
2053
+ "type": "string",
2054
+ "format": "date-time",
2055
+ "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))$"
2056
+ },
2057
+ "type": {
2058
+ "type": "string",
2059
+ "const": "object_version"
2060
+ },
2061
+ "version_id": {
2062
+ "type": "string",
2063
+ "minLength": 1
2064
+ },
2065
+ "delete_marker": {
2066
+ "type": "boolean",
2067
+ "const": false
2068
+ },
2069
+ "stored_sha256": {
2070
+ "type": "string",
2071
+ "pattern": "^[0-9a-f]{64}$"
2072
+ },
2073
+ "readback_sha256": {
2074
+ "type": "string",
2075
+ "pattern": "^[0-9a-f]{64}$"
2076
+ },
2077
+ "readback_at": {
2078
+ "type": "string",
2079
+ "format": "date-time",
2080
+ "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))$"
2081
+ },
2082
+ "effective_retain_until": {
2083
+ "type": "string",
2084
+ "format": "date-time",
2085
+ "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))$"
2086
+ },
2087
+ "object_lock_mode": {
2088
+ "type": "string",
2089
+ "const": "COMPLIANCE"
2090
+ }
2091
+ },
2092
+ "required": [
2093
+ "attempt_id",
2094
+ "observed_at",
2095
+ "type",
2096
+ "version_id",
2097
+ "delete_marker",
2098
+ "stored_sha256",
2099
+ "readback_sha256",
2100
+ "readback_at",
2101
+ "effective_retain_until",
2102
+ "object_lock_mode"
2103
+ ],
2104
+ "additionalProperties": false
2105
+ }
2106
+ }
2107
+ },
2108
+ "required": [
2109
+ "generation",
2110
+ "stored_bytes_b64url",
2111
+ "mirror_inventory_digest",
2112
+ "type",
2113
+ "schema",
2114
+ "sequence",
2115
+ "previous_hash",
2116
+ "record_hash",
2117
+ "mirror_verdict",
2118
+ "mirror_attempts"
2119
+ ],
2120
+ "additionalProperties": false
2121
+ },
2122
+ {
2123
+ "type": "object",
2124
+ "properties": {
2125
+ "generation": {
2126
+ "type": "string",
2127
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2128
+ },
2129
+ "stored_bytes_b64url": {
2130
+ "type": "string",
2131
+ "minLength": 1,
2132
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2133
+ },
2134
+ "mirror_inventory_digest": {
2135
+ "type": "string",
2136
+ "pattern": "^[0-9a-f]{64}$"
2137
+ },
2138
+ "type": {
2139
+ "type": "string",
2140
+ "const": "generation_checkpoint"
2141
+ },
2142
+ "schema": {
2143
+ "type": "string",
2144
+ "const": "fleetless.journal-generation-checkpoint.v1"
2145
+ },
2146
+ "sequence": {
2147
+ "type": "integer",
2148
+ "minimum": 1,
2149
+ "maximum": 9007199254740991
2150
+ },
2151
+ "previous_hash": {
2152
+ "type": "string",
2153
+ "pattern": "^[0-9a-f]{64}$"
2154
+ },
2155
+ "record_hash": {
2156
+ "type": "string",
2157
+ "pattern": "^[0-9a-f]{64}$"
2158
+ },
2159
+ "mirror_verdict": {
2160
+ "type": "string",
2161
+ "const": "failed"
2162
+ },
2163
+ "mirror_attempts": {
2164
+ "minItems": 1,
2165
+ "type": "array",
2166
+ "items": {
2167
+ "anyOf": [
2168
+ {
2169
+ "type": "object",
2170
+ "properties": {
2171
+ "attempt_id": {
2172
+ "type": "string",
2173
+ "minLength": 1
2174
+ },
2175
+ "observed_at": {
2176
+ "type": "string",
2177
+ "format": "date-time",
2178
+ "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))$"
2179
+ },
2180
+ "type": {
2181
+ "type": "string",
2182
+ "const": "object_version"
2183
+ },
2184
+ "version_id": {
2185
+ "type": "string",
2186
+ "minLength": 1
2187
+ },
2188
+ "delete_marker": {
2189
+ "type": "boolean",
2190
+ "const": false
2191
+ },
2192
+ "stored_sha256": {
2193
+ "type": "string",
2194
+ "pattern": "^[0-9a-f]{64}$"
2195
+ },
2196
+ "readback_sha256": {
2197
+ "type": "string",
2198
+ "pattern": "^[0-9a-f]{64}$"
2199
+ },
2200
+ "readback_at": {
2201
+ "type": "string",
2202
+ "format": "date-time",
2203
+ "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))$"
2204
+ },
2205
+ "effective_retain_until": {
2206
+ "type": "string",
2207
+ "format": "date-time",
2208
+ "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))$"
2209
+ },
2210
+ "object_lock_mode": {
2211
+ "type": "string",
2212
+ "const": "COMPLIANCE"
2213
+ }
2214
+ },
2215
+ "required": [
2216
+ "attempt_id",
2217
+ "observed_at",
2218
+ "type",
2219
+ "version_id",
2220
+ "delete_marker",
2221
+ "stored_sha256",
2222
+ "readback_sha256",
2223
+ "readback_at",
2224
+ "effective_retain_until",
2225
+ "object_lock_mode"
2226
+ ],
2227
+ "additionalProperties": false
2228
+ },
2229
+ {
2230
+ "type": "object",
2231
+ "properties": {
2232
+ "attempt_id": {
2233
+ "type": "string",
2234
+ "minLength": 1
2235
+ },
2236
+ "observed_at": {
2237
+ "type": "string",
2238
+ "format": "date-time",
2239
+ "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))$"
2240
+ },
2241
+ "type": {
2242
+ "type": "string",
2243
+ "const": "delete_marker"
2244
+ },
2245
+ "version_id": {
2246
+ "type": "string",
2247
+ "minLength": 1
2248
+ },
2249
+ "delete_marker": {
2250
+ "type": "boolean",
2251
+ "const": true
2252
+ },
2253
+ "failure_code": {
2254
+ "type": "string",
2255
+ "const": "UNEXPECTED_DELETE_MARKER"
2256
+ }
2257
+ },
2258
+ "required": [
2259
+ "attempt_id",
2260
+ "observed_at",
2261
+ "type",
2262
+ "version_id",
2263
+ "delete_marker",
2264
+ "failure_code"
2265
+ ],
2266
+ "additionalProperties": false
2267
+ },
2268
+ {
2269
+ "anyOf": [
2270
+ {
2271
+ "type": "object",
2272
+ "properties": {
2273
+ "attempt_id": {
2274
+ "type": "string",
2275
+ "minLength": 1
2276
+ },
2277
+ "observed_at": {
2278
+ "type": "string",
2279
+ "format": "date-time",
2280
+ "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))$"
2281
+ },
2282
+ "type": {
2283
+ "type": "string",
2284
+ "const": "inventory_error"
2285
+ },
2286
+ "failure_code": {
2287
+ "type": "string",
2288
+ "enum": [
2289
+ "MISSING_VERSION",
2290
+ "INCOMPLETE_LISTING"
2291
+ ]
2292
+ },
2293
+ "version_id": {
2294
+ "type": "string",
2295
+ "minLength": 1
2296
+ }
2297
+ },
2298
+ "required": [
2299
+ "attempt_id",
2300
+ "observed_at",
2301
+ "type",
2302
+ "failure_code"
2303
+ ],
2304
+ "additionalProperties": false
2305
+ },
2306
+ {
2307
+ "type": "object",
2308
+ "properties": {
2309
+ "attempt_id": {
2310
+ "type": "string",
2311
+ "minLength": 1
2312
+ },
2313
+ "observed_at": {
2314
+ "type": "string",
2315
+ "format": "date-time",
2316
+ "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))$"
2317
+ },
2318
+ "type": {
2319
+ "type": "string",
2320
+ "const": "inventory_error"
2321
+ },
2322
+ "failure_code": {
2323
+ "type": "string",
2324
+ "enum": [
2325
+ "CONFLICTING_BYTES",
2326
+ "UNKNOWN_RETENTION"
2327
+ ]
2328
+ },
2329
+ "version_id": {
2330
+ "type": "string",
2331
+ "minLength": 1
2332
+ }
2333
+ },
2334
+ "required": [
2335
+ "attempt_id",
2336
+ "observed_at",
2337
+ "type",
2338
+ "failure_code",
2339
+ "version_id"
2340
+ ],
2341
+ "additionalProperties": false
2342
+ }
2343
+ ]
2344
+ }
2345
+ ]
2346
+ }
2347
+ }
2348
+ },
2349
+ "required": [
2350
+ "generation",
2351
+ "stored_bytes_b64url",
2352
+ "mirror_inventory_digest",
2353
+ "type",
2354
+ "schema",
2355
+ "sequence",
2356
+ "previous_hash",
2357
+ "record_hash",
2358
+ "mirror_verdict",
2359
+ "mirror_attempts"
2360
+ ],
2361
+ "additionalProperties": false
2362
+ },
2363
+ {
2364
+ "type": "object",
2365
+ "properties": {
2366
+ "generation": {
2367
+ "type": "string",
2368
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2369
+ },
2370
+ "stored_bytes_b64url": {
2371
+ "type": "string",
2372
+ "minLength": 1,
2373
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2374
+ },
2375
+ "mirror_inventory_digest": {
2376
+ "type": "string",
2377
+ "pattern": "^[0-9a-f]{64}$"
2378
+ },
2379
+ "type": {
2380
+ "type": "string",
2381
+ "const": "registry_activation_receipt"
2382
+ },
2383
+ "schema": {
2384
+ "type": "string",
2385
+ "const": "fleetless.registry-activation-receipt.v1"
2386
+ },
2387
+ "control_sequence": {
2388
+ "type": "integer",
2389
+ "minimum": 0,
2390
+ "maximum": 9007199254740991
2391
+ },
2392
+ "control_hash": {
2393
+ "type": "string",
2394
+ "pattern": "^[0-9a-f]{64}$"
2395
+ },
2396
+ "receipt_hash": {
2397
+ "type": "string",
2398
+ "pattern": "^[0-9a-f]{64}$"
2399
+ },
2400
+ "mirror_verdict": {
2401
+ "type": "string",
2402
+ "const": "complete"
2403
+ },
2404
+ "mirror_attempts": {
2405
+ "minItems": 1,
2406
+ "type": "array",
2407
+ "items": {
2408
+ "type": "object",
2409
+ "properties": {
2410
+ "attempt_id": {
2411
+ "type": "string",
2412
+ "minLength": 1
2413
+ },
2414
+ "observed_at": {
2415
+ "type": "string",
2416
+ "format": "date-time",
2417
+ "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))$"
2418
+ },
2419
+ "type": {
2420
+ "type": "string",
2421
+ "const": "object_version"
2422
+ },
2423
+ "version_id": {
2424
+ "type": "string",
2425
+ "minLength": 1
2426
+ },
2427
+ "delete_marker": {
2428
+ "type": "boolean",
2429
+ "const": false
2430
+ },
2431
+ "stored_sha256": {
2432
+ "type": "string",
2433
+ "pattern": "^[0-9a-f]{64}$"
2434
+ },
2435
+ "readback_sha256": {
2436
+ "type": "string",
2437
+ "pattern": "^[0-9a-f]{64}$"
2438
+ },
2439
+ "readback_at": {
2440
+ "type": "string",
2441
+ "format": "date-time",
2442
+ "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))$"
2443
+ },
2444
+ "effective_retain_until": {
2445
+ "type": "string",
2446
+ "format": "date-time",
2447
+ "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))$"
2448
+ },
2449
+ "object_lock_mode": {
2450
+ "type": "string",
2451
+ "const": "COMPLIANCE"
2452
+ }
2453
+ },
2454
+ "required": [
2455
+ "attempt_id",
2456
+ "observed_at",
2457
+ "type",
2458
+ "version_id",
2459
+ "delete_marker",
2460
+ "stored_sha256",
2461
+ "readback_sha256",
2462
+ "readback_at",
2463
+ "effective_retain_until",
2464
+ "object_lock_mode"
2465
+ ],
2466
+ "additionalProperties": false
2467
+ }
2468
+ }
2469
+ },
2470
+ "required": [
2471
+ "generation",
2472
+ "stored_bytes_b64url",
2473
+ "mirror_inventory_digest",
2474
+ "type",
2475
+ "schema",
2476
+ "control_sequence",
2477
+ "control_hash",
2478
+ "receipt_hash",
2479
+ "mirror_verdict",
2480
+ "mirror_attempts"
2481
+ ],
2482
+ "additionalProperties": false
2483
+ },
2484
+ {
2485
+ "type": "object",
2486
+ "properties": {
2487
+ "generation": {
2488
+ "type": "string",
2489
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2490
+ },
2491
+ "stored_bytes_b64url": {
2492
+ "type": "string",
2493
+ "minLength": 1,
2494
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2495
+ },
2496
+ "mirror_inventory_digest": {
2497
+ "type": "string",
2498
+ "pattern": "^[0-9a-f]{64}$"
2499
+ },
2500
+ "type": {
2501
+ "type": "string",
2502
+ "const": "registry_activation_receipt"
2503
+ },
2504
+ "schema": {
2505
+ "type": "string",
2506
+ "const": "fleetless.registry-activation-receipt.v1"
2507
+ },
2508
+ "control_sequence": {
2509
+ "type": "integer",
2510
+ "minimum": 0,
2511
+ "maximum": 9007199254740991
2512
+ },
2513
+ "control_hash": {
2514
+ "type": "string",
2515
+ "pattern": "^[0-9a-f]{64}$"
2516
+ },
2517
+ "receipt_hash": {
2518
+ "type": "string",
2519
+ "pattern": "^[0-9a-f]{64}$"
2520
+ },
2521
+ "mirror_verdict": {
2522
+ "type": "string",
2523
+ "const": "failed"
2524
+ },
2525
+ "mirror_attempts": {
2526
+ "minItems": 1,
2527
+ "type": "array",
2528
+ "items": {
2529
+ "anyOf": [
2530
+ {
2531
+ "type": "object",
2532
+ "properties": {
2533
+ "attempt_id": {
2534
+ "type": "string",
2535
+ "minLength": 1
2536
+ },
2537
+ "observed_at": {
2538
+ "type": "string",
2539
+ "format": "date-time",
2540
+ "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))$"
2541
+ },
2542
+ "type": {
2543
+ "type": "string",
2544
+ "const": "object_version"
2545
+ },
2546
+ "version_id": {
2547
+ "type": "string",
2548
+ "minLength": 1
2549
+ },
2550
+ "delete_marker": {
2551
+ "type": "boolean",
2552
+ "const": false
2553
+ },
2554
+ "stored_sha256": {
2555
+ "type": "string",
2556
+ "pattern": "^[0-9a-f]{64}$"
2557
+ },
2558
+ "readback_sha256": {
2559
+ "type": "string",
2560
+ "pattern": "^[0-9a-f]{64}$"
2561
+ },
2562
+ "readback_at": {
2563
+ "type": "string",
2564
+ "format": "date-time",
2565
+ "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))$"
2566
+ },
2567
+ "effective_retain_until": {
2568
+ "type": "string",
2569
+ "format": "date-time",
2570
+ "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))$"
2571
+ },
2572
+ "object_lock_mode": {
2573
+ "type": "string",
2574
+ "const": "COMPLIANCE"
2575
+ }
2576
+ },
2577
+ "required": [
2578
+ "attempt_id",
2579
+ "observed_at",
2580
+ "type",
2581
+ "version_id",
2582
+ "delete_marker",
2583
+ "stored_sha256",
2584
+ "readback_sha256",
2585
+ "readback_at",
2586
+ "effective_retain_until",
2587
+ "object_lock_mode"
2588
+ ],
2589
+ "additionalProperties": false
2590
+ },
2591
+ {
2592
+ "type": "object",
2593
+ "properties": {
2594
+ "attempt_id": {
2595
+ "type": "string",
2596
+ "minLength": 1
2597
+ },
2598
+ "observed_at": {
2599
+ "type": "string",
2600
+ "format": "date-time",
2601
+ "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))$"
2602
+ },
2603
+ "type": {
2604
+ "type": "string",
2605
+ "const": "delete_marker"
2606
+ },
2607
+ "version_id": {
2608
+ "type": "string",
2609
+ "minLength": 1
2610
+ },
2611
+ "delete_marker": {
2612
+ "type": "boolean",
2613
+ "const": true
2614
+ },
2615
+ "failure_code": {
2616
+ "type": "string",
2617
+ "const": "UNEXPECTED_DELETE_MARKER"
2618
+ }
2619
+ },
2620
+ "required": [
2621
+ "attempt_id",
2622
+ "observed_at",
2623
+ "type",
2624
+ "version_id",
2625
+ "delete_marker",
2626
+ "failure_code"
2627
+ ],
2628
+ "additionalProperties": false
2629
+ },
2630
+ {
2631
+ "anyOf": [
2632
+ {
2633
+ "type": "object",
2634
+ "properties": {
2635
+ "attempt_id": {
2636
+ "type": "string",
2637
+ "minLength": 1
2638
+ },
2639
+ "observed_at": {
2640
+ "type": "string",
2641
+ "format": "date-time",
2642
+ "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))$"
2643
+ },
2644
+ "type": {
2645
+ "type": "string",
2646
+ "const": "inventory_error"
2647
+ },
2648
+ "failure_code": {
2649
+ "type": "string",
2650
+ "enum": [
2651
+ "MISSING_VERSION",
2652
+ "INCOMPLETE_LISTING"
2653
+ ]
2654
+ },
2655
+ "version_id": {
2656
+ "type": "string",
2657
+ "minLength": 1
2658
+ }
2659
+ },
2660
+ "required": [
2661
+ "attempt_id",
2662
+ "observed_at",
2663
+ "type",
2664
+ "failure_code"
2665
+ ],
2666
+ "additionalProperties": false
2667
+ },
2668
+ {
2669
+ "type": "object",
2670
+ "properties": {
2671
+ "attempt_id": {
2672
+ "type": "string",
2673
+ "minLength": 1
2674
+ },
2675
+ "observed_at": {
2676
+ "type": "string",
2677
+ "format": "date-time",
2678
+ "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))$"
2679
+ },
2680
+ "type": {
2681
+ "type": "string",
2682
+ "const": "inventory_error"
2683
+ },
2684
+ "failure_code": {
2685
+ "type": "string",
2686
+ "enum": [
2687
+ "CONFLICTING_BYTES",
2688
+ "UNKNOWN_RETENTION"
2689
+ ]
2690
+ },
2691
+ "version_id": {
2692
+ "type": "string",
2693
+ "minLength": 1
2694
+ }
2695
+ },
2696
+ "required": [
2697
+ "attempt_id",
2698
+ "observed_at",
2699
+ "type",
2700
+ "failure_code",
2701
+ "version_id"
2702
+ ],
2703
+ "additionalProperties": false
2704
+ }
2705
+ ]
2706
+ }
2707
+ ]
2708
+ }
2709
+ }
2710
+ },
2711
+ "required": [
2712
+ "generation",
2713
+ "stored_bytes_b64url",
2714
+ "mirror_inventory_digest",
2715
+ "type",
2716
+ "schema",
2717
+ "control_sequence",
2718
+ "control_hash",
2719
+ "receipt_hash",
2720
+ "mirror_verdict",
2721
+ "mirror_attempts"
2722
+ ],
2723
+ "additionalProperties": false
2724
+ },
2725
+ {
2726
+ "type": "object",
2727
+ "properties": {
2728
+ "generation": {
2729
+ "type": "string",
2730
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2731
+ },
2732
+ "stored_bytes_b64url": {
2733
+ "type": "string",
2734
+ "minLength": 1,
2735
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2736
+ },
2737
+ "mirror_inventory_digest": {
2738
+ "type": "string",
2739
+ "pattern": "^[0-9a-f]{64}$"
2740
+ },
2741
+ "type": {
2742
+ "type": "string",
2743
+ "const": "seal"
2744
+ },
2745
+ "schema": {
2746
+ "type": "string",
2747
+ "const": "fleetless.journal-final-seal.v1"
2748
+ },
2749
+ "final_sequence": {
2750
+ "type": "integer",
2751
+ "minimum": 0,
2752
+ "maximum": 9007199254740991
2753
+ },
2754
+ "final_hash": {
2755
+ "type": "string",
2756
+ "pattern": "^[0-9a-f]{64}$"
2757
+ },
2758
+ "seal_hash": {
2759
+ "type": "string",
2760
+ "pattern": "^[0-9a-f]{64}$"
2761
+ },
2762
+ "mirror_verdict": {
2763
+ "type": "string",
2764
+ "const": "complete"
2765
+ },
2766
+ "mirror_attempts": {
2767
+ "minItems": 1,
2768
+ "type": "array",
2769
+ "items": {
2770
+ "type": "object",
2771
+ "properties": {
2772
+ "attempt_id": {
2773
+ "type": "string",
2774
+ "minLength": 1
2775
+ },
2776
+ "observed_at": {
2777
+ "type": "string",
2778
+ "format": "date-time",
2779
+ "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))$"
2780
+ },
2781
+ "type": {
2782
+ "type": "string",
2783
+ "const": "object_version"
2784
+ },
2785
+ "version_id": {
2786
+ "type": "string",
2787
+ "minLength": 1
2788
+ },
2789
+ "delete_marker": {
2790
+ "type": "boolean",
2791
+ "const": false
2792
+ },
2793
+ "stored_sha256": {
2794
+ "type": "string",
2795
+ "pattern": "^[0-9a-f]{64}$"
2796
+ },
2797
+ "readback_sha256": {
2798
+ "type": "string",
2799
+ "pattern": "^[0-9a-f]{64}$"
2800
+ },
2801
+ "readback_at": {
2802
+ "type": "string",
2803
+ "format": "date-time",
2804
+ "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))$"
2805
+ },
2806
+ "effective_retain_until": {
2807
+ "type": "string",
2808
+ "format": "date-time",
2809
+ "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))$"
2810
+ },
2811
+ "object_lock_mode": {
2812
+ "type": "string",
2813
+ "const": "COMPLIANCE"
2814
+ }
2815
+ },
2816
+ "required": [
2817
+ "attempt_id",
2818
+ "observed_at",
2819
+ "type",
2820
+ "version_id",
2821
+ "delete_marker",
2822
+ "stored_sha256",
2823
+ "readback_sha256",
2824
+ "readback_at",
2825
+ "effective_retain_until",
2826
+ "object_lock_mode"
2827
+ ],
2828
+ "additionalProperties": false
2829
+ }
2830
+ }
2831
+ },
2832
+ "required": [
2833
+ "generation",
2834
+ "stored_bytes_b64url",
2835
+ "mirror_inventory_digest",
2836
+ "type",
2837
+ "schema",
2838
+ "final_sequence",
2839
+ "final_hash",
2840
+ "seal_hash",
2841
+ "mirror_verdict",
2842
+ "mirror_attempts"
2843
+ ],
2844
+ "additionalProperties": false
2845
+ },
2846
+ {
2847
+ "type": "object",
2848
+ "properties": {
2849
+ "generation": {
2850
+ "type": "string",
2851
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2852
+ },
2853
+ "stored_bytes_b64url": {
2854
+ "type": "string",
2855
+ "minLength": 1,
2856
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2857
+ },
2858
+ "mirror_inventory_digest": {
2859
+ "type": "string",
2860
+ "pattern": "^[0-9a-f]{64}$"
2861
+ },
2862
+ "type": {
2863
+ "type": "string",
2864
+ "const": "seal"
2865
+ },
2866
+ "schema": {
2867
+ "type": "string",
2868
+ "const": "fleetless.journal-final-seal.v1"
2869
+ },
2870
+ "final_sequence": {
2871
+ "type": "integer",
2872
+ "minimum": 0,
2873
+ "maximum": 9007199254740991
2874
+ },
2875
+ "final_hash": {
2876
+ "type": "string",
2877
+ "pattern": "^[0-9a-f]{64}$"
2878
+ },
2879
+ "seal_hash": {
2880
+ "type": "string",
2881
+ "pattern": "^[0-9a-f]{64}$"
2882
+ },
2883
+ "mirror_verdict": {
2884
+ "type": "string",
2885
+ "const": "failed"
2886
+ },
2887
+ "mirror_attempts": {
2888
+ "minItems": 1,
2889
+ "type": "array",
2890
+ "items": {
2891
+ "anyOf": [
2892
+ {
2893
+ "type": "object",
2894
+ "properties": {
2895
+ "attempt_id": {
2896
+ "type": "string",
2897
+ "minLength": 1
2898
+ },
2899
+ "observed_at": {
2900
+ "type": "string",
2901
+ "format": "date-time",
2902
+ "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))$"
2903
+ },
2904
+ "type": {
2905
+ "type": "string",
2906
+ "const": "object_version"
2907
+ },
2908
+ "version_id": {
2909
+ "type": "string",
2910
+ "minLength": 1
2911
+ },
2912
+ "delete_marker": {
2913
+ "type": "boolean",
2914
+ "const": false
2915
+ },
2916
+ "stored_sha256": {
2917
+ "type": "string",
2918
+ "pattern": "^[0-9a-f]{64}$"
2919
+ },
2920
+ "readback_sha256": {
2921
+ "type": "string",
2922
+ "pattern": "^[0-9a-f]{64}$"
2923
+ },
2924
+ "readback_at": {
2925
+ "type": "string",
2926
+ "format": "date-time",
2927
+ "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))$"
2928
+ },
2929
+ "effective_retain_until": {
2930
+ "type": "string",
2931
+ "format": "date-time",
2932
+ "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))$"
2933
+ },
2934
+ "object_lock_mode": {
2935
+ "type": "string",
2936
+ "const": "COMPLIANCE"
2937
+ }
2938
+ },
2939
+ "required": [
2940
+ "attempt_id",
2941
+ "observed_at",
2942
+ "type",
2943
+ "version_id",
2944
+ "delete_marker",
2945
+ "stored_sha256",
2946
+ "readback_sha256",
2947
+ "readback_at",
2948
+ "effective_retain_until",
2949
+ "object_lock_mode"
2950
+ ],
2951
+ "additionalProperties": false
2952
+ },
2953
+ {
2954
+ "type": "object",
2955
+ "properties": {
2956
+ "attempt_id": {
2957
+ "type": "string",
2958
+ "minLength": 1
2959
+ },
2960
+ "observed_at": {
2961
+ "type": "string",
2962
+ "format": "date-time",
2963
+ "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))$"
2964
+ },
2965
+ "type": {
2966
+ "type": "string",
2967
+ "const": "delete_marker"
2968
+ },
2969
+ "version_id": {
2970
+ "type": "string",
2971
+ "minLength": 1
2972
+ },
2973
+ "delete_marker": {
2974
+ "type": "boolean",
2975
+ "const": true
2976
+ },
2977
+ "failure_code": {
2978
+ "type": "string",
2979
+ "const": "UNEXPECTED_DELETE_MARKER"
2980
+ }
2981
+ },
2982
+ "required": [
2983
+ "attempt_id",
2984
+ "observed_at",
2985
+ "type",
2986
+ "version_id",
2987
+ "delete_marker",
2988
+ "failure_code"
2989
+ ],
2990
+ "additionalProperties": false
2991
+ },
2992
+ {
2993
+ "anyOf": [
2994
+ {
2995
+ "type": "object",
2996
+ "properties": {
2997
+ "attempt_id": {
2998
+ "type": "string",
2999
+ "minLength": 1
3000
+ },
3001
+ "observed_at": {
3002
+ "type": "string",
3003
+ "format": "date-time",
3004
+ "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))$"
3005
+ },
3006
+ "type": {
3007
+ "type": "string",
3008
+ "const": "inventory_error"
3009
+ },
3010
+ "failure_code": {
3011
+ "type": "string",
3012
+ "enum": [
3013
+ "MISSING_VERSION",
3014
+ "INCOMPLETE_LISTING"
3015
+ ]
3016
+ },
3017
+ "version_id": {
3018
+ "type": "string",
3019
+ "minLength": 1
3020
+ }
3021
+ },
3022
+ "required": [
3023
+ "attempt_id",
3024
+ "observed_at",
3025
+ "type",
3026
+ "failure_code"
3027
+ ],
3028
+ "additionalProperties": false
3029
+ },
3030
+ {
3031
+ "type": "object",
3032
+ "properties": {
3033
+ "attempt_id": {
3034
+ "type": "string",
3035
+ "minLength": 1
3036
+ },
3037
+ "observed_at": {
3038
+ "type": "string",
3039
+ "format": "date-time",
3040
+ "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))$"
3041
+ },
3042
+ "type": {
3043
+ "type": "string",
3044
+ "const": "inventory_error"
3045
+ },
3046
+ "failure_code": {
3047
+ "type": "string",
3048
+ "enum": [
3049
+ "CONFLICTING_BYTES",
3050
+ "UNKNOWN_RETENTION"
3051
+ ]
3052
+ },
3053
+ "version_id": {
3054
+ "type": "string",
3055
+ "minLength": 1
3056
+ }
3057
+ },
3058
+ "required": [
3059
+ "attempt_id",
3060
+ "observed_at",
3061
+ "type",
3062
+ "failure_code",
3063
+ "version_id"
3064
+ ],
3065
+ "additionalProperties": false
3066
+ }
3067
+ ]
3068
+ }
3069
+ ]
3070
+ }
3071
+ }
3072
+ },
3073
+ "required": [
3074
+ "generation",
3075
+ "stored_bytes_b64url",
3076
+ "mirror_inventory_digest",
3077
+ "type",
3078
+ "schema",
3079
+ "final_sequence",
3080
+ "final_hash",
3081
+ "seal_hash",
3082
+ "mirror_verdict",
3083
+ "mirror_attempts"
3084
+ ],
3085
+ "additionalProperties": false
3086
+ }
3087
+ ],
3088
+ "description": "JSON Schema consumers must also reject complete coverage with marker/error arms or unequal readbacks, and verify exact stored bytes and all versions."
3089
+ }
3090
+ }
3091
+ },
3092
+ "required": [
3093
+ "schema",
3094
+ "environment",
3095
+ "restore_attempt_id",
3096
+ "source_db_timeline",
3097
+ "source_db_lsn",
3098
+ "selected_recovery_point",
3099
+ "oldest_mapping_bearing_point",
3100
+ "copy_inventory_digest",
3101
+ "copy_coverage_digest",
3102
+ "lower_sequence",
3103
+ "lower_hash",
3104
+ "upper_sequence",
3105
+ "upper_hash",
3106
+ "registry_chain_digest",
3107
+ "pinned_standby_id",
3108
+ "pinned_standby_head_hash",
3109
+ "seal_hash",
3110
+ "seal_version_id",
3111
+ "items"
3112
+ ],
3113
+ "additionalProperties": false,
3114
+ "description": "JSON Schema consumers must also verify ordered C0/transition receipts, seal anchors, original v1 bytes, mirror coverage, standby and #844 copy inventory."
3115
+ }