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