@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,712 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "confirmation_proof": {
6
+ "type": "string",
7
+ "allOf": [
8
+ {
9
+ "pattern": "^[A-Za-z0-9_-]{43}$"
10
+ },
11
+ {
12
+ "pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$"
13
+ }
14
+ ],
15
+ "description": "Opaque 32-byte Cloud proof, unpadded base64url. Syntax alone is not evidence."
16
+ },
17
+ "expires_at": {
18
+ "type": "string",
19
+ "allOf": [
20
+ {
21
+ "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+)?)?(?:Z))$"
22
+ },
23
+ {
24
+ "pattern": "Z$"
25
+ }
26
+ ]
27
+ },
28
+ "snapshot": {
29
+ "anyOf": [
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "snapshot_id": {
34
+ "type": "string",
35
+ "format": "uuid",
36
+ "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)$"
37
+ },
38
+ "offer_id": {
39
+ "type": "string",
40
+ "format": "uuid",
41
+ "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)$"
42
+ },
43
+ "revision": {
44
+ "type": "string",
45
+ "format": "uuid",
46
+ "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)$"
47
+ },
48
+ "operation_key": {
49
+ "type": "string",
50
+ "format": "uuid",
51
+ "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)$",
52
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
53
+ },
54
+ "owner_id": {
55
+ "type": "string",
56
+ "format": "uuid",
57
+ "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)$"
58
+ },
59
+ "organization_id": {
60
+ "type": "string",
61
+ "format": "uuid",
62
+ "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)$"
63
+ },
64
+ "organization_name": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "pattern": "\\S"
68
+ },
69
+ "title": {
70
+ "type": "string",
71
+ "minLength": 1,
72
+ "pattern": "\\S"
73
+ },
74
+ "text": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "pattern": "\\S"
78
+ },
79
+ "accept_label": {
80
+ "type": "string",
81
+ "const": "Accept"
82
+ },
83
+ "current_terms": {
84
+ "type": "object",
85
+ "properties": {
86
+ "version": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 80
90
+ },
91
+ "version_date": {
92
+ "type": "string",
93
+ "format": "date",
94
+ "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])))$"
95
+ },
96
+ "url": {
97
+ "type": "string",
98
+ "maxLength": 2048,
99
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
100
+ "format": "uri"
101
+ }
102
+ },
103
+ "required": [
104
+ "version",
105
+ "version_date",
106
+ "url"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ "dpa": {
111
+ "type": "null"
112
+ },
113
+ "issued_at": {
114
+ "type": "string",
115
+ "allOf": [
116
+ {
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+)?)?(?:Z))$"
118
+ },
119
+ {
120
+ "pattern": "Z$"
121
+ }
122
+ ]
123
+ },
124
+ "expires_at": {
125
+ "type": "string",
126
+ "allOf": [
127
+ {
128
+ "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+)?)?(?:Z))$"
129
+ },
130
+ {
131
+ "pattern": "Z$"
132
+ }
133
+ ]
134
+ },
135
+ "kind": {
136
+ "type": "string",
137
+ "const": "terms"
138
+ },
139
+ "text_id": {
140
+ "type": "string",
141
+ "const": "DR-3032-2026-11-02-H.3-terms"
142
+ },
143
+ "proposed_terms": {
144
+ "type": "object",
145
+ "properties": {
146
+ "version": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 80
150
+ },
151
+ "version_date": {
152
+ "type": "string",
153
+ "format": "date",
154
+ "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])))$"
155
+ },
156
+ "url": {
157
+ "type": "string",
158
+ "maxLength": 2048,
159
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
160
+ "format": "uri"
161
+ }
162
+ },
163
+ "required": [
164
+ "version",
165
+ "version_date",
166
+ "url"
167
+ ],
168
+ "additionalProperties": false
169
+ },
170
+ "published_at": {
171
+ "type": "string",
172
+ "allOf": [
173
+ {
174
+ "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+)?)?(?:Z))$"
175
+ },
176
+ {
177
+ "pattern": "Z$"
178
+ }
179
+ ]
180
+ },
181
+ "acceptance_deadline_at": {
182
+ "type": "string",
183
+ "allOf": [
184
+ {
185
+ "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+)?)?(?:Z))$"
186
+ },
187
+ {
188
+ "pattern": "Z$"
189
+ }
190
+ ]
191
+ },
192
+ "summary": {
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "pattern": "\\S"
196
+ },
197
+ "read_changes_label": {
198
+ "type": "string",
199
+ "minLength": 1,
200
+ "pattern": "\\S"
201
+ },
202
+ "terms_access": {
203
+ "type": "string",
204
+ "const": "pending"
205
+ },
206
+ "decline_label": {
207
+ "type": "string",
208
+ "const": "Decline"
209
+ }
210
+ },
211
+ "required": [
212
+ "snapshot_id",
213
+ "offer_id",
214
+ "revision",
215
+ "operation_key",
216
+ "owner_id",
217
+ "organization_id",
218
+ "organization_name",
219
+ "title",
220
+ "text",
221
+ "accept_label",
222
+ "current_terms",
223
+ "dpa",
224
+ "issued_at",
225
+ "expires_at",
226
+ "kind",
227
+ "text_id",
228
+ "proposed_terms",
229
+ "published_at",
230
+ "acceptance_deadline_at",
231
+ "summary",
232
+ "read_changes_label",
233
+ "terms_access",
234
+ "decline_label"
235
+ ],
236
+ "additionalProperties": false
237
+ },
238
+ {
239
+ "type": "object",
240
+ "properties": {
241
+ "snapshot_id": {
242
+ "type": "string",
243
+ "format": "uuid",
244
+ "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)$"
245
+ },
246
+ "offer_id": {
247
+ "type": "string",
248
+ "format": "uuid",
249
+ "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)$"
250
+ },
251
+ "revision": {
252
+ "type": "string",
253
+ "format": "uuid",
254
+ "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)$"
255
+ },
256
+ "operation_key": {
257
+ "type": "string",
258
+ "format": "uuid",
259
+ "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)$",
260
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
261
+ },
262
+ "owner_id": {
263
+ "type": "string",
264
+ "format": "uuid",
265
+ "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)$"
266
+ },
267
+ "organization_id": {
268
+ "type": "string",
269
+ "format": "uuid",
270
+ "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)$"
271
+ },
272
+ "organization_name": {
273
+ "type": "string",
274
+ "minLength": 1,
275
+ "pattern": "\\S"
276
+ },
277
+ "title": {
278
+ "type": "string",
279
+ "minLength": 1,
280
+ "pattern": "\\S"
281
+ },
282
+ "text": {
283
+ "type": "string",
284
+ "minLength": 1,
285
+ "pattern": "\\S"
286
+ },
287
+ "accept_label": {
288
+ "type": "string",
289
+ "const": "Accept"
290
+ },
291
+ "current_terms": {
292
+ "type": "object",
293
+ "properties": {
294
+ "version": {
295
+ "type": "string",
296
+ "minLength": 1,
297
+ "maxLength": 80
298
+ },
299
+ "version_date": {
300
+ "type": "string",
301
+ "format": "date",
302
+ "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])))$"
303
+ },
304
+ "url": {
305
+ "type": "string",
306
+ "maxLength": 2048,
307
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
308
+ "format": "uri"
309
+ }
310
+ },
311
+ "required": [
312
+ "version",
313
+ "version_date",
314
+ "url"
315
+ ],
316
+ "additionalProperties": false
317
+ },
318
+ "dpa": {
319
+ "type": "null"
320
+ },
321
+ "issued_at": {
322
+ "type": "string",
323
+ "allOf": [
324
+ {
325
+ "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+)?)?(?:Z))$"
326
+ },
327
+ {
328
+ "pattern": "Z$"
329
+ }
330
+ ]
331
+ },
332
+ "expires_at": {
333
+ "type": "string",
334
+ "allOf": [
335
+ {
336
+ "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+)?)?(?:Z))$"
337
+ },
338
+ {
339
+ "pattern": "Z$"
340
+ }
341
+ ]
342
+ },
343
+ "kind": {
344
+ "type": "string",
345
+ "const": "terms"
346
+ },
347
+ "text_id": {
348
+ "type": "string",
349
+ "const": "DR-3032-2026-11-02-H.3-terms"
350
+ },
351
+ "proposed_terms": {
352
+ "type": "object",
353
+ "properties": {
354
+ "version": {
355
+ "type": "string",
356
+ "minLength": 1,
357
+ "maxLength": 80
358
+ },
359
+ "version_date": {
360
+ "type": "string",
361
+ "format": "date",
362
+ "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])))$"
363
+ },
364
+ "url": {
365
+ "type": "string",
366
+ "maxLength": 2048,
367
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
368
+ "format": "uri"
369
+ }
370
+ },
371
+ "required": [
372
+ "version",
373
+ "version_date",
374
+ "url"
375
+ ],
376
+ "additionalProperties": false
377
+ },
378
+ "published_at": {
379
+ "type": "string",
380
+ "allOf": [
381
+ {
382
+ "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+)?)?(?:Z))$"
383
+ },
384
+ {
385
+ "pattern": "Z$"
386
+ }
387
+ ]
388
+ },
389
+ "acceptance_deadline_at": {
390
+ "type": "string",
391
+ "allOf": [
392
+ {
393
+ "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+)?)?(?:Z))$"
394
+ },
395
+ {
396
+ "pattern": "Z$"
397
+ }
398
+ ]
399
+ },
400
+ "summary": {
401
+ "type": "string",
402
+ "minLength": 1,
403
+ "pattern": "\\S"
404
+ },
405
+ "read_changes_label": {
406
+ "type": "string",
407
+ "minLength": 1,
408
+ "pattern": "\\S"
409
+ },
410
+ "terms_access": {
411
+ "type": "string",
412
+ "const": "suspended"
413
+ },
414
+ "decline_label": {
415
+ "type": "null"
416
+ }
417
+ },
418
+ "required": [
419
+ "snapshot_id",
420
+ "offer_id",
421
+ "revision",
422
+ "operation_key",
423
+ "owner_id",
424
+ "organization_id",
425
+ "organization_name",
426
+ "title",
427
+ "text",
428
+ "accept_label",
429
+ "current_terms",
430
+ "dpa",
431
+ "issued_at",
432
+ "expires_at",
433
+ "kind",
434
+ "text_id",
435
+ "proposed_terms",
436
+ "published_at",
437
+ "acceptance_deadline_at",
438
+ "summary",
439
+ "read_changes_label",
440
+ "terms_access",
441
+ "decline_label"
442
+ ],
443
+ "additionalProperties": false
444
+ },
445
+ {
446
+ "type": "object",
447
+ "properties": {
448
+ "snapshot_id": {
449
+ "type": "string",
450
+ "format": "uuid",
451
+ "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)$"
452
+ },
453
+ "offer_id": {
454
+ "type": "string",
455
+ "format": "uuid",
456
+ "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)$"
457
+ },
458
+ "revision": {
459
+ "type": "string",
460
+ "format": "uuid",
461
+ "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)$"
462
+ },
463
+ "operation_key": {
464
+ "type": "string",
465
+ "format": "uuid",
466
+ "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)$",
467
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
468
+ },
469
+ "owner_id": {
470
+ "type": "string",
471
+ "format": "uuid",
472
+ "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)$"
473
+ },
474
+ "organization_id": {
475
+ "type": "string",
476
+ "format": "uuid",
477
+ "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)$"
478
+ },
479
+ "organization_name": {
480
+ "type": "string",
481
+ "minLength": 1,
482
+ "pattern": "\\S"
483
+ },
484
+ "title": {
485
+ "type": "string",
486
+ "minLength": 1,
487
+ "pattern": "\\S"
488
+ },
489
+ "text": {
490
+ "type": "string",
491
+ "minLength": 1,
492
+ "pattern": "\\S"
493
+ },
494
+ "accept_label": {
495
+ "type": "string",
496
+ "minLength": 1,
497
+ "pattern": "\\S"
498
+ },
499
+ "current_terms": {
500
+ "type": "object",
501
+ "properties": {
502
+ "version": {
503
+ "type": "string",
504
+ "minLength": 1,
505
+ "maxLength": 80
506
+ },
507
+ "version_date": {
508
+ "type": "string",
509
+ "format": "date",
510
+ "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])))$"
511
+ },
512
+ "url": {
513
+ "type": "string",
514
+ "maxLength": 2048,
515
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
516
+ "format": "uri"
517
+ }
518
+ },
519
+ "required": [
520
+ "version",
521
+ "version_date",
522
+ "url"
523
+ ],
524
+ "additionalProperties": false
525
+ },
526
+ "dpa": {
527
+ "type": "null"
528
+ },
529
+ "issued_at": {
530
+ "type": "string",
531
+ "allOf": [
532
+ {
533
+ "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+)?)?(?:Z))$"
534
+ },
535
+ {
536
+ "pattern": "Z$"
537
+ }
538
+ ]
539
+ },
540
+ "expires_at": {
541
+ "type": "string",
542
+ "allOf": [
543
+ {
544
+ "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+)?)?(?:Z))$"
545
+ },
546
+ {
547
+ "pattern": "Z$"
548
+ }
549
+ ]
550
+ },
551
+ "kind": {
552
+ "type": "string",
553
+ "const": "price"
554
+ },
555
+ "text_id": {
556
+ "type": "string",
557
+ "const": "DR-1374-draft-3-H.3-price"
558
+ },
559
+ "decline_label": {
560
+ "type": "string",
561
+ "minLength": 1,
562
+ "pattern": "\\S"
563
+ },
564
+ "proposed_terms": {
565
+ "type": "null"
566
+ },
567
+ "plan": {
568
+ "type": "string",
569
+ "enum": [
570
+ "plus",
571
+ "pro"
572
+ ]
573
+ },
574
+ "cycle": {
575
+ "type": "string",
576
+ "enum": [
577
+ "monthly",
578
+ "yearly"
579
+ ]
580
+ },
581
+ "addons": {
582
+ "type": "object",
583
+ "properties": {
584
+ "seats": {
585
+ "type": "integer",
586
+ "minimum": 0,
587
+ "maximum": 9007199254740991,
588
+ "description": "Extra developer seats, one each."
589
+ },
590
+ "robots": {
591
+ "type": "integer",
592
+ "minimum": 0,
593
+ "maximum": 9007199254740991,
594
+ "description": "Extra robots, one each."
595
+ },
596
+ "apps": {
597
+ "type": "integer",
598
+ "minimum": 0,
599
+ "maximum": 9007199254740991,
600
+ "description": "Extra apps, one each."
601
+ },
602
+ "app_user_packs": {
603
+ "type": "integer",
604
+ "minimum": 0,
605
+ "maximum": 9007199254740991,
606
+ "description": "Packs of five extra app users."
607
+ },
608
+ "live_video_packs": {
609
+ "type": "integer",
610
+ "minimum": 0,
611
+ "maximum": 9007199254740991,
612
+ "description": "Packs of 250 extra hours of app-user live video per month."
613
+ }
614
+ },
615
+ "required": [
616
+ "seats",
617
+ "robots",
618
+ "apps",
619
+ "app_user_packs",
620
+ "live_video_packs"
621
+ ],
622
+ "additionalProperties": false
623
+ },
624
+ "current_net_cents": {
625
+ "type": "integer",
626
+ "minimum": 0,
627
+ "maximum": 9007199254740991
628
+ },
629
+ "offered_net_cents": {
630
+ "type": "integer",
631
+ "minimum": 0,
632
+ "maximum": 9007199254740991
633
+ },
634
+ "offered_period_start_at": {
635
+ "type": "string",
636
+ "allOf": [
637
+ {
638
+ "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+)?)?(?:Z))$"
639
+ },
640
+ {
641
+ "pattern": "Z$"
642
+ }
643
+ ]
644
+ },
645
+ "price_start_at": {
646
+ "type": "string",
647
+ "allOf": [
648
+ {
649
+ "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+)?)?(?:Z))$"
650
+ },
651
+ {
652
+ "pattern": "Z$"
653
+ }
654
+ ]
655
+ },
656
+ "currency": {
657
+ "type": "string",
658
+ "const": "eur"
659
+ },
660
+ "current_agreed_price_id": {
661
+ "type": "string",
662
+ "format": "uuid",
663
+ "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)$"
664
+ },
665
+ "offered_price_proposal_id": {
666
+ "type": "string",
667
+ "format": "uuid",
668
+ "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)$"
669
+ }
670
+ },
671
+ "required": [
672
+ "snapshot_id",
673
+ "offer_id",
674
+ "revision",
675
+ "operation_key",
676
+ "owner_id",
677
+ "organization_id",
678
+ "organization_name",
679
+ "title",
680
+ "text",
681
+ "accept_label",
682
+ "current_terms",
683
+ "dpa",
684
+ "issued_at",
685
+ "expires_at",
686
+ "kind",
687
+ "text_id",
688
+ "decline_label",
689
+ "proposed_terms",
690
+ "plan",
691
+ "cycle",
692
+ "addons",
693
+ "current_net_cents",
694
+ "offered_net_cents",
695
+ "offered_period_start_at",
696
+ "price_start_at",
697
+ "currency",
698
+ "current_agreed_price_id",
699
+ "offered_price_proposal_id"
700
+ ],
701
+ "additionalProperties": false
702
+ }
703
+ ]
704
+ }
705
+ },
706
+ "required": [
707
+ "confirmation_proof",
708
+ "expires_at",
709
+ "snapshot"
710
+ ],
711
+ "additionalProperties": false
712
+ }