@fleetless/contracts 12.1.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/artifacts/openapi.json +15968 -13701
  3. package/artifacts/routes.json +123 -1
  4. package/artifacts/schema/billing-decision-display-response.schema.json +749 -504
  5. package/artifacts/schema/billing-decision-period.schema.json +573 -504
  6. package/artifacts/schema/billing-decision-snapshot.schema.json +749 -504
  7. package/artifacts/schema/journal-access-proof.schema.json +342 -0
  8. package/artifacts/schema/journal-deletion-manifest.schema.json +2103 -0
  9. package/artifacts/schema/journal-evidence-ref.schema.json +596 -0
  10. package/artifacts/schema/journal-export-item.schema.json +2910 -0
  11. package/artifacts/schema/journal-final-seal-body.schema.json +160 -0
  12. package/artifacts/schema/journal-final-seal.schema.json +169 -0
  13. package/artifacts/schema/journal-first-checkpoint-body.schema.json +101 -0
  14. package/artifacts/schema/journal-first-checkpoint.schema.json +111 -0
  15. package/artifacts/schema/journal-generation-checkpoint-body.schema.json +88 -0
  16. package/artifacts/schema/journal-generation-checkpoint.schema.json +97 -0
  17. package/artifacts/schema/journal-intent-v2-body.schema.json +4166 -0
  18. package/artifacts/schema/journal-intent-v2.schema.json +4616 -0
  19. package/artifacts/schema/journal-manifest-batch.schema.json +1236 -0
  20. package/artifacts/schema/journal-manifest-binding.schema.json +3541 -0
  21. package/artifacts/schema/journal-manifest-entry.schema.json +106 -0
  22. package/artifacts/schema/journal-manifest-intent-projection.schema.json +1428 -0
  23. package/artifacts/schema/journal-manifest-row.schema.json +578 -0
  24. package/artifacts/schema/journal-manifest-scope.schema.json +135 -0
  25. package/artifacts/schema/journal-mirror-attempt.schema.json +182 -0
  26. package/artifacts/schema/journal-mixed-export.schema.json +3115 -0
  27. package/artifacts/schema/journal-registry-activation-receipt-body.schema.json +304 -0
  28. package/artifacts/schema/journal-registry-activation-receipt.schema.json +324 -0
  29. package/artifacts/schema/journal-registry-transition-body.schema.json +113 -0
  30. package/artifacts/schema/journal-registry-transition.schema.json +123 -0
  31. package/artifacts/schema/journal-replay-receipt-body.schema.json +1252 -0
  32. package/artifacts/schema/journal-replay-receipt.schema.json +1261 -0
  33. package/artifacts/schema/journal-v2-activation-checkpoint-body.schema.json +99 -0
  34. package/artifacts/schema/journal-v2-activation-checkpoint.schema.json +108 -0
  35. package/artifacts/schema/legal-acceptance-list-response.schema.json +31 -2
  36. package/artifacts/schema/legal-acceptance-version-row.schema.json +31 -2
  37. package/artifacts/schema/legal-offer-conflict-details.schema.json +32 -0
  38. package/artifacts/schema/legal-offer-decision-lookup-query.schema.json +16 -0
  39. package/artifacts/schema/legal-offer-decision-request.schema.json +37 -0
  40. package/artifacts/schema/legal-offer-decision-result.schema.json +409 -0
  41. package/artifacts/schema/legal-offer-decision-snapshot.schema.json +678 -0
  42. package/artifacts/schema/legal-offer-display-request.schema.json +16 -0
  43. package/artifacts/schema/legal-offer-display-response.schema.json +712 -0
  44. package/artifacts/schema/legal-offer-list-query.schema.json +17 -0
  45. package/artifacts/schema/legal-offer-list-response.schema.json +347 -0
  46. package/artifacts/schema/legal-offer-summary.schema.json +321 -0
  47. package/artifacts/schema/plan-change-prepare-response.schema.json +749 -504
  48. package/dist/billing.d.ts +361 -275
  49. package/dist/billing.js +25 -4
  50. package/dist/errors.d.ts +1 -1
  51. package/dist/errors.js +2 -0
  52. package/dist/index.d.ts +12 -0
  53. package/dist/index.js +6 -0
  54. package/dist/journal-controls.d.ts +228 -0
  55. package/dist/journal-controls.js +111 -0
  56. package/dist/journal-intents.d.ts +1695 -0
  57. package/dist/journal-intents.js +97 -0
  58. package/dist/journal-manifests.d.ts +1670 -0
  59. package/dist/journal-manifests.js +182 -0
  60. package/dist/journal-restore.d.ts +1871 -0
  61. package/dist/journal-restore.js +324 -0
  62. package/dist/journal-seals.d.ts +147 -0
  63. package/dist/journal-seals.js +89 -0
  64. package/dist/legal-acceptances.d.ts +4 -0
  65. package/dist/legal-acceptances.js +9 -2
  66. package/dist/legal-offers.d.ts +468 -0
  67. package/dist/legal-offers.js +91 -0
  68. package/dist/realtime.d.ts +2 -2
  69. package/dist/routes.js +54 -0
  70. package/package.json +1 -1
@@ -0,0 +1,160 @@
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-final-seal.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "signing_key_id": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "incident_id": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "isolated_target_id": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "restore_attempt_id": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "final_sequence": {
30
+ "type": "integer",
31
+ "minimum": 0,
32
+ "maximum": 9007199254740991
33
+ },
34
+ "final_hash": {
35
+ "type": "string",
36
+ "pattern": "^[0-9a-f]{64}$"
37
+ },
38
+ "final_generation": {
39
+ "type": "string",
40
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
41
+ },
42
+ "selected_recovery_point": {
43
+ "oneOf": [
44
+ {
45
+ "type": "object",
46
+ "properties": {
47
+ "kind": {
48
+ "type": "string",
49
+ "const": "timestamp"
50
+ },
51
+ "at": {
52
+ "type": "string",
53
+ "format": "date-time",
54
+ "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))$"
55
+ }
56
+ },
57
+ "required": [
58
+ "kind",
59
+ "at"
60
+ ],
61
+ "additionalProperties": false
62
+ },
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "kind": {
67
+ "type": "string",
68
+ "const": "lsn"
69
+ },
70
+ "timeline": {
71
+ "type": "integer",
72
+ "minimum": 1,
73
+ "maximum": 9007199254740991
74
+ },
75
+ "lsn": {
76
+ "type": "string",
77
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
78
+ },
79
+ "at": {
80
+ "type": "string",
81
+ "format": "date-time",
82
+ "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))$"
83
+ }
84
+ },
85
+ "required": [
86
+ "kind",
87
+ "timeline",
88
+ "lsn",
89
+ "at"
90
+ ],
91
+ "additionalProperties": false
92
+ }
93
+ ]
94
+ },
95
+ "fence_at": {
96
+ "type": "string",
97
+ "format": "date-time",
98
+ "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))$"
99
+ },
100
+ "e_max_ms": {
101
+ "type": "integer",
102
+ "minimum": 0,
103
+ "maximum": 9007199254740991
104
+ },
105
+ "w_max_ms": {
106
+ "type": "integer",
107
+ "minimum": 0,
108
+ "maximum": 9007199254740991
109
+ },
110
+ "deployment_admission_evidence_digest": {
111
+ "type": "string",
112
+ "pattern": "^[0-9a-f]{64}$"
113
+ },
114
+ "cutoff_utc": {
115
+ "type": "string",
116
+ "format": "date-time",
117
+ "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))$"
118
+ },
119
+ "previous_cutoff_utc": {
120
+ "type": "string",
121
+ "format": "date-time",
122
+ "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))$"
123
+ },
124
+ "registry_chain_digest": {
125
+ "type": "string",
126
+ "pattern": "^[0-9a-f]{64}$"
127
+ },
128
+ "copy_inventory_digest": {
129
+ "type": "string",
130
+ "pattern": "^[0-9a-f]{64}$"
131
+ },
132
+ "pinned_standby_id": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ }
136
+ },
137
+ "required": [
138
+ "schema",
139
+ "environment",
140
+ "signing_key_id",
141
+ "incident_id",
142
+ "isolated_target_id",
143
+ "restore_attempt_id",
144
+ "final_sequence",
145
+ "final_hash",
146
+ "final_generation",
147
+ "selected_recovery_point",
148
+ "fence_at",
149
+ "e_max_ms",
150
+ "w_max_ms",
151
+ "deployment_admission_evidence_digest",
152
+ "cutoff_utc",
153
+ "previous_cutoff_utc",
154
+ "registry_chain_digest",
155
+ "copy_inventory_digest",
156
+ "pinned_standby_id"
157
+ ],
158
+ "additionalProperties": false,
159
+ "description": "JSON Schema consumers must also verify C = max(ceil_to_second(T + E_max + W_max), previous C + 1 second), original signatures and complete drain/admission evidence."
160
+ }
@@ -0,0 +1,169 @@
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-final-seal.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "signing_key_id": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "incident_id": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "isolated_target_id": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "restore_attempt_id": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "final_sequence": {
30
+ "type": "integer",
31
+ "minimum": 0,
32
+ "maximum": 9007199254740991
33
+ },
34
+ "final_hash": {
35
+ "type": "string",
36
+ "pattern": "^[0-9a-f]{64}$"
37
+ },
38
+ "final_generation": {
39
+ "type": "string",
40
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
41
+ },
42
+ "selected_recovery_point": {
43
+ "oneOf": [
44
+ {
45
+ "type": "object",
46
+ "properties": {
47
+ "kind": {
48
+ "type": "string",
49
+ "const": "timestamp"
50
+ },
51
+ "at": {
52
+ "type": "string",
53
+ "format": "date-time",
54
+ "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))$"
55
+ }
56
+ },
57
+ "required": [
58
+ "kind",
59
+ "at"
60
+ ],
61
+ "additionalProperties": false
62
+ },
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "kind": {
67
+ "type": "string",
68
+ "const": "lsn"
69
+ },
70
+ "timeline": {
71
+ "type": "integer",
72
+ "minimum": 1,
73
+ "maximum": 9007199254740991
74
+ },
75
+ "lsn": {
76
+ "type": "string",
77
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
78
+ },
79
+ "at": {
80
+ "type": "string",
81
+ "format": "date-time",
82
+ "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))$"
83
+ }
84
+ },
85
+ "required": [
86
+ "kind",
87
+ "timeline",
88
+ "lsn",
89
+ "at"
90
+ ],
91
+ "additionalProperties": false
92
+ }
93
+ ]
94
+ },
95
+ "fence_at": {
96
+ "type": "string",
97
+ "format": "date-time",
98
+ "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))$"
99
+ },
100
+ "e_max_ms": {
101
+ "type": "integer",
102
+ "minimum": 0,
103
+ "maximum": 9007199254740991
104
+ },
105
+ "w_max_ms": {
106
+ "type": "integer",
107
+ "minimum": 0,
108
+ "maximum": 9007199254740991
109
+ },
110
+ "deployment_admission_evidence_digest": {
111
+ "type": "string",
112
+ "pattern": "^[0-9a-f]{64}$"
113
+ },
114
+ "cutoff_utc": {
115
+ "type": "string",
116
+ "format": "date-time",
117
+ "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))$"
118
+ },
119
+ "previous_cutoff_utc": {
120
+ "type": "string",
121
+ "format": "date-time",
122
+ "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))$"
123
+ },
124
+ "registry_chain_digest": {
125
+ "type": "string",
126
+ "pattern": "^[0-9a-f]{64}$"
127
+ },
128
+ "copy_inventory_digest": {
129
+ "type": "string",
130
+ "pattern": "^[0-9a-f]{64}$"
131
+ },
132
+ "pinned_standby_id": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ "seal_hash": {
137
+ "type": "string",
138
+ "pattern": "^[0-9a-f]{64}$"
139
+ },
140
+ "signature": {
141
+ "type": "string",
142
+ "pattern": "^[A-Za-z0-9_-]{85}[AQgw]$"
143
+ }
144
+ },
145
+ "required": [
146
+ "schema",
147
+ "environment",
148
+ "signing_key_id",
149
+ "incident_id",
150
+ "isolated_target_id",
151
+ "restore_attempt_id",
152
+ "final_sequence",
153
+ "final_hash",
154
+ "final_generation",
155
+ "selected_recovery_point",
156
+ "fence_at",
157
+ "e_max_ms",
158
+ "w_max_ms",
159
+ "deployment_admission_evidence_digest",
160
+ "cutoff_utc",
161
+ "previous_cutoff_utc",
162
+ "registry_chain_digest",
163
+ "copy_inventory_digest",
164
+ "pinned_standby_id",
165
+ "seal_hash",
166
+ "signature"
167
+ ],
168
+ "additionalProperties": false
169
+ }
@@ -0,0 +1,101 @@
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-first-checkpoint.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "generation": {
14
+ "type": "string",
15
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
16
+ },
17
+ "signing_key_id": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "sequence": {
22
+ "type": "number",
23
+ "const": 0
24
+ },
25
+ "previous_hash": {
26
+ "type": "string",
27
+ "const": "0000000000000000000000000000000000000000000000000000000000000000"
28
+ },
29
+ "checkpoint_at": {
30
+ "type": "string",
31
+ "format": "date-time",
32
+ "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))$"
33
+ },
34
+ "fence_drain_evidence_hash": {
35
+ "type": "string",
36
+ "pattern": "^[0-9a-f]{64}$"
37
+ },
38
+ "fence_drain_evidence_version_id": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "source_db_timeline": {
43
+ "type": "integer",
44
+ "minimum": 1,
45
+ "maximum": 9007199254740991
46
+ },
47
+ "source_db_lsn": {
48
+ "type": "string",
49
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
50
+ },
51
+ "registry_digest": {
52
+ "type": "string",
53
+ "pattern": "^[0-9a-f]{64}$"
54
+ },
55
+ "build_set_digest": {
56
+ "type": "string",
57
+ "pattern": "^[0-9a-f]{64}$"
58
+ },
59
+ "registry_version_id": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "build_set_version_id": {
64
+ "type": "string",
65
+ "minLength": 1
66
+ },
67
+ "copy_inventory_digest": {
68
+ "type": "string",
69
+ "pattern": "^[0-9a-f]{64}$"
70
+ },
71
+ "journal_primary_id": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "pinned_standby_id": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ }
79
+ },
80
+ "required": [
81
+ "schema",
82
+ "environment",
83
+ "generation",
84
+ "signing_key_id",
85
+ "sequence",
86
+ "previous_hash",
87
+ "checkpoint_at",
88
+ "fence_drain_evidence_hash",
89
+ "fence_drain_evidence_version_id",
90
+ "source_db_timeline",
91
+ "source_db_lsn",
92
+ "registry_digest",
93
+ "build_set_digest",
94
+ "registry_version_id",
95
+ "build_set_version_id",
96
+ "copy_inventory_digest",
97
+ "journal_primary_id",
98
+ "pinned_standby_id"
99
+ ],
100
+ "additionalProperties": false
101
+ }
@@ -0,0 +1,111 @@
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-first-checkpoint.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "generation": {
14
+ "type": "string",
15
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
16
+ },
17
+ "signing_key_id": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "sequence": {
22
+ "type": "number",
23
+ "const": 0
24
+ },
25
+ "previous_hash": {
26
+ "type": "string",
27
+ "const": "0000000000000000000000000000000000000000000000000000000000000000"
28
+ },
29
+ "checkpoint_at": {
30
+ "type": "string",
31
+ "format": "date-time",
32
+ "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))$"
33
+ },
34
+ "fence_drain_evidence_hash": {
35
+ "type": "string",
36
+ "pattern": "^[0-9a-f]{64}$"
37
+ },
38
+ "fence_drain_evidence_version_id": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "source_db_timeline": {
43
+ "type": "integer",
44
+ "minimum": 1,
45
+ "maximum": 9007199254740991
46
+ },
47
+ "source_db_lsn": {
48
+ "type": "string",
49
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
50
+ },
51
+ "registry_digest": {
52
+ "type": "string",
53
+ "pattern": "^[0-9a-f]{64}$"
54
+ },
55
+ "build_set_digest": {
56
+ "type": "string",
57
+ "pattern": "^[0-9a-f]{64}$"
58
+ },
59
+ "registry_version_id": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "build_set_version_id": {
64
+ "type": "string",
65
+ "minLength": 1
66
+ },
67
+ "copy_inventory_digest": {
68
+ "type": "string",
69
+ "pattern": "^[0-9a-f]{64}$"
70
+ },
71
+ "journal_primary_id": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "pinned_standby_id": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "checkpoint_hash": {
80
+ "type": "string",
81
+ "pattern": "^[0-9a-f]{64}$"
82
+ },
83
+ "signature": {
84
+ "type": "string",
85
+ "pattern": "^[A-Za-z0-9_-]{85}[AQgw]$"
86
+ }
87
+ },
88
+ "required": [
89
+ "schema",
90
+ "environment",
91
+ "generation",
92
+ "signing_key_id",
93
+ "sequence",
94
+ "previous_hash",
95
+ "checkpoint_at",
96
+ "fence_drain_evidence_hash",
97
+ "fence_drain_evidence_version_id",
98
+ "source_db_timeline",
99
+ "source_db_lsn",
100
+ "registry_digest",
101
+ "build_set_digest",
102
+ "registry_version_id",
103
+ "build_set_version_id",
104
+ "copy_inventory_digest",
105
+ "journal_primary_id",
106
+ "pinned_standby_id",
107
+ "checkpoint_hash",
108
+ "signature"
109
+ ],
110
+ "additionalProperties": false
111
+ }
@@ -0,0 +1,88 @@
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-generation-checkpoint.v1"
8
+ },
9
+ "environment": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "generation": {
14
+ "type": "string",
15
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
16
+ },
17
+ "sequence": {
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "maximum": 9007199254740991
21
+ },
22
+ "previous_hash": {
23
+ "type": "string",
24
+ "pattern": "^[0-9a-f]{64}$"
25
+ },
26
+ "checkpoint_at": {
27
+ "type": "string",
28
+ "format": "date-time",
29
+ "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))$"
30
+ },
31
+ "fence_drain_evidence_hash": {
32
+ "type": "string",
33
+ "pattern": "^[0-9a-f]{64}$"
34
+ },
35
+ "fence_drain_evidence_version_id": {
36
+ "type": "string",
37
+ "minLength": 1
38
+ },
39
+ "source_db_timeline": {
40
+ "type": "integer",
41
+ "minimum": 1,
42
+ "maximum": 9007199254740991
43
+ },
44
+ "source_db_lsn": {
45
+ "type": "string",
46
+ "pattern": "^(?:0|[1-9A-F][0-9A-F]{0,7})\\/(?:0|[1-9A-F][0-9A-F]{0,7})$"
47
+ },
48
+ "registry_chain_digest": {
49
+ "type": "string",
50
+ "pattern": "^[0-9a-f]{64}$"
51
+ },
52
+ "registry_digest": {
53
+ "type": "string",
54
+ "pattern": "^[0-9a-f]{64}$"
55
+ },
56
+ "build_set_digest": {
57
+ "type": "string",
58
+ "pattern": "^[0-9a-f]{64}$"
59
+ },
60
+ "signing_key_id": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "previous_generation": {
65
+ "type": "string",
66
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
67
+ }
68
+ },
69
+ "required": [
70
+ "schema",
71
+ "environment",
72
+ "generation",
73
+ "sequence",
74
+ "previous_hash",
75
+ "checkpoint_at",
76
+ "fence_drain_evidence_hash",
77
+ "fence_drain_evidence_version_id",
78
+ "source_db_timeline",
79
+ "source_db_lsn",
80
+ "registry_chain_digest",
81
+ "registry_digest",
82
+ "build_set_digest",
83
+ "signing_key_id",
84
+ "previous_generation"
85
+ ],
86
+ "additionalProperties": false,
87
+ "description": "JSON Schema consumers must also verify generation differs from previous_generation and the committed sequence is not reset."
88
+ }