@fleetless/contracts 12.1.0-next.1 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/artifacts/openapi.json +15968 -13701
  3. package/artifacts/routes.json +123 -1
  4. package/artifacts/schema/billing-decision-display-response.schema.json +749 -504
  5. package/artifacts/schema/billing-decision-period.schema.json +573 -504
  6. package/artifacts/schema/billing-decision-snapshot.schema.json +749 -504
  7. package/artifacts/schema/journal-access-proof.schema.json +342 -0
  8. package/artifacts/schema/journal-deletion-manifest.schema.json +2103 -0
  9. package/artifacts/schema/journal-evidence-ref.schema.json +596 -0
  10. package/artifacts/schema/journal-export-item.schema.json +2910 -0
  11. package/artifacts/schema/journal-final-seal-body.schema.json +160 -0
  12. package/artifacts/schema/journal-final-seal.schema.json +169 -0
  13. package/artifacts/schema/journal-first-checkpoint-body.schema.json +101 -0
  14. package/artifacts/schema/journal-first-checkpoint.schema.json +111 -0
  15. package/artifacts/schema/journal-generation-checkpoint-body.schema.json +88 -0
  16. package/artifacts/schema/journal-generation-checkpoint.schema.json +97 -0
  17. package/artifacts/schema/journal-intent-v2-body.schema.json +4166 -0
  18. package/artifacts/schema/journal-intent-v2.schema.json +4616 -0
  19. package/artifacts/schema/journal-manifest-batch.schema.json +1236 -0
  20. package/artifacts/schema/journal-manifest-binding.schema.json +3541 -0
  21. package/artifacts/schema/journal-manifest-entry.schema.json +106 -0
  22. package/artifacts/schema/journal-manifest-intent-projection.schema.json +1428 -0
  23. package/artifacts/schema/journal-manifest-row.schema.json +578 -0
  24. package/artifacts/schema/journal-manifest-scope.schema.json +135 -0
  25. package/artifacts/schema/journal-mirror-attempt.schema.json +182 -0
  26. package/artifacts/schema/journal-mixed-export.schema.json +3115 -0
  27. package/artifacts/schema/journal-registry-activation-receipt-body.schema.json +304 -0
  28. package/artifacts/schema/journal-registry-activation-receipt.schema.json +324 -0
  29. package/artifacts/schema/journal-registry-transition-body.schema.json +113 -0
  30. package/artifacts/schema/journal-registry-transition.schema.json +123 -0
  31. package/artifacts/schema/journal-replay-receipt-body.schema.json +1252 -0
  32. package/artifacts/schema/journal-replay-receipt.schema.json +1261 -0
  33. package/artifacts/schema/journal-v2-activation-checkpoint-body.schema.json +99 -0
  34. package/artifacts/schema/journal-v2-activation-checkpoint.schema.json +108 -0
  35. package/artifacts/schema/legal-acceptance-list-response.schema.json +31 -2
  36. package/artifacts/schema/legal-acceptance-version-row.schema.json +31 -2
  37. package/artifacts/schema/legal-offer-conflict-details.schema.json +32 -0
  38. package/artifacts/schema/legal-offer-decision-lookup-query.schema.json +16 -0
  39. package/artifacts/schema/legal-offer-decision-request.schema.json +37 -0
  40. package/artifacts/schema/legal-offer-decision-result.schema.json +409 -0
  41. package/artifacts/schema/legal-offer-decision-snapshot.schema.json +678 -0
  42. package/artifacts/schema/legal-offer-display-request.schema.json +16 -0
  43. package/artifacts/schema/legal-offer-display-response.schema.json +712 -0
  44. package/artifacts/schema/legal-offer-list-query.schema.json +17 -0
  45. package/artifacts/schema/legal-offer-list-response.schema.json +347 -0
  46. package/artifacts/schema/legal-offer-summary.schema.json +321 -0
  47. package/artifacts/schema/plan-change-prepare-response.schema.json +749 -504
  48. package/dist/billing.d.ts +361 -275
  49. package/dist/billing.js +25 -4
  50. package/dist/errors.d.ts +1 -1
  51. package/dist/errors.js +2 -0
  52. package/dist/index.d.ts +12 -0
  53. package/dist/index.js +6 -0
  54. package/dist/journal-controls.d.ts +228 -0
  55. package/dist/journal-controls.js +111 -0
  56. package/dist/journal-intents.d.ts +1695 -0
  57. package/dist/journal-intents.js +97 -0
  58. package/dist/journal-manifests.d.ts +1670 -0
  59. package/dist/journal-manifests.js +182 -0
  60. package/dist/journal-restore.d.ts +1871 -0
  61. package/dist/journal-restore.js +324 -0
  62. package/dist/journal-seals.d.ts +147 -0
  63. package/dist/journal-seals.js +89 -0
  64. package/dist/legal-acceptances.d.ts +4 -0
  65. package/dist/legal-acceptances.js +9 -2
  66. package/dist/legal-offers.d.ts +468 -0
  67. package/dist/legal-offers.js +91 -0
  68. package/dist/realtime.d.ts +2 -2
  69. package/dist/routes.js +54 -0
  70. package/package.json +1 -1
@@ -0,0 +1,99 @@
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-v2-activation-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
+ "first_v2_sequence": {
65
+ "type": "integer",
66
+ "minimum": 1,
67
+ "maximum": 9007199254740991
68
+ },
69
+ "binding_backfill_evidence_hash": {
70
+ "type": "string",
71
+ "pattern": "^[0-9a-f]{64}$"
72
+ },
73
+ "binding_backfill_evidence_version_id": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ }
77
+ },
78
+ "required": [
79
+ "schema",
80
+ "environment",
81
+ "generation",
82
+ "sequence",
83
+ "previous_hash",
84
+ "checkpoint_at",
85
+ "fence_drain_evidence_hash",
86
+ "fence_drain_evidence_version_id",
87
+ "source_db_timeline",
88
+ "source_db_lsn",
89
+ "registry_chain_digest",
90
+ "registry_digest",
91
+ "build_set_digest",
92
+ "signing_key_id",
93
+ "first_v2_sequence",
94
+ "binding_backfill_evidence_hash",
95
+ "binding_backfill_evidence_version_id"
96
+ ],
97
+ "additionalProperties": false,
98
+ "description": "JSON Schema consumers must also verify first_v2_sequence = sequence + 1 and journal activation evidence."
99
+ }
@@ -0,0 +1,108 @@
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-v2-activation-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
+ "first_v2_sequence": {
65
+ "type": "integer",
66
+ "minimum": 1,
67
+ "maximum": 9007199254740991
68
+ },
69
+ "binding_backfill_evidence_hash": {
70
+ "type": "string",
71
+ "pattern": "^[0-9a-f]{64}$"
72
+ },
73
+ "binding_backfill_evidence_version_id": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ },
77
+ "record_hash": {
78
+ "type": "string",
79
+ "pattern": "^[0-9a-f]{64}$"
80
+ },
81
+ "signature": {
82
+ "type": "string",
83
+ "pattern": "^[A-Za-z0-9_-]{85}[AQgw]$"
84
+ }
85
+ },
86
+ "required": [
87
+ "schema",
88
+ "environment",
89
+ "generation",
90
+ "sequence",
91
+ "previous_hash",
92
+ "checkpoint_at",
93
+ "fence_drain_evidence_hash",
94
+ "fence_drain_evidence_version_id",
95
+ "source_db_timeline",
96
+ "source_db_lsn",
97
+ "registry_chain_digest",
98
+ "registry_digest",
99
+ "build_set_digest",
100
+ "signing_key_id",
101
+ "first_v2_sequence",
102
+ "binding_backfill_evidence_hash",
103
+ "binding_backfill_evidence_version_id",
104
+ "record_hash",
105
+ "signature"
106
+ ],
107
+ "additionalProperties": false
108
+ }
@@ -18,7 +18,9 @@
18
18
  "registration",
19
19
  "invitation",
20
20
  "order",
21
- "existing_org"
21
+ "existing_org",
22
+ "amendment",
23
+ "price_offer"
22
24
  ]
23
25
  },
24
26
  "accepted_at": {
@@ -102,7 +104,34 @@
102
104
  "terms",
103
105
  "dpa"
104
106
  ],
105
- "additionalProperties": false
107
+ "additionalProperties": false,
108
+ "allOf": [
109
+ {
110
+ "if": {
111
+ "properties": {
112
+ "context": {
113
+ "enum": [
114
+ "amendment",
115
+ "price_offer"
116
+ ]
117
+ }
118
+ },
119
+ "required": [
120
+ "context"
121
+ ]
122
+ },
123
+ "then": {
124
+ "properties": {
125
+ "dpa": {
126
+ "type": "null"
127
+ }
128
+ },
129
+ "required": [
130
+ "dpa"
131
+ ]
132
+ }
133
+ }
134
+ ]
106
135
  }
107
136
  },
108
137
  "next_cursor": {
@@ -13,7 +13,9 @@
13
13
  "registration",
14
14
  "invitation",
15
15
  "order",
16
- "existing_org"
16
+ "existing_org",
17
+ "amendment",
18
+ "price_offer"
17
19
  ]
18
20
  },
19
21
  "accepted_at": {
@@ -97,5 +99,32 @@
97
99
  "terms",
98
100
  "dpa"
99
101
  ],
100
- "additionalProperties": false
102
+ "additionalProperties": false,
103
+ "allOf": [
104
+ {
105
+ "if": {
106
+ "properties": {
107
+ "context": {
108
+ "enum": [
109
+ "amendment",
110
+ "price_offer"
111
+ ]
112
+ }
113
+ },
114
+ "required": [
115
+ "context"
116
+ ]
117
+ },
118
+ "then": {
119
+ "properties": {
120
+ "dpa": {
121
+ "type": "null"
122
+ }
123
+ },
124
+ "required": [
125
+ "dpa"
126
+ ]
127
+ }
128
+ }
129
+ ]
101
130
  }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "field": {
6
+ "type": "string",
7
+ "enum": [
8
+ "offer",
9
+ "confirmation_proof",
10
+ "operation_key",
11
+ "period",
12
+ "term"
13
+ ]
14
+ },
15
+ "rule": {
16
+ "type": "string",
17
+ "enum": [
18
+ "withdrawn",
19
+ "stale",
20
+ "expired",
21
+ "reused",
22
+ "boundary_changed",
23
+ "deadline_unavailable"
24
+ ]
25
+ }
26
+ },
27
+ "required": [
28
+ "field",
29
+ "rule"
30
+ ],
31
+ "additionalProperties": false
32
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operation_key": {
6
+ "type": "string",
7
+ "format": "uuid",
8
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
9
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
10
+ }
11
+ },
12
+ "required": [
13
+ "operation_key"
14
+ ],
15
+ "additionalProperties": false
16
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operation_key": {
6
+ "type": "string",
7
+ "format": "uuid",
8
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
9
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
10
+ },
11
+ "decision": {
12
+ "type": "string",
13
+ "enum": [
14
+ "accept",
15
+ "decline"
16
+ ]
17
+ },
18
+ "confirmation_proof": {
19
+ "type": "string",
20
+ "allOf": [
21
+ {
22
+ "pattern": "^[A-Za-z0-9_-]{43}$"
23
+ },
24
+ {
25
+ "pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$"
26
+ }
27
+ ],
28
+ "description": "Opaque 32-byte Cloud proof, unpadded base64url. Syntax alone is not evidence."
29
+ }
30
+ },
31
+ "required": [
32
+ "operation_key",
33
+ "decision",
34
+ "confirmation_proof"
35
+ ],
36
+ "additionalProperties": false
37
+ }