@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,17 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "limit": {
6
+ "type": "string",
7
+ "pattern": "^(?:[1-9]|[1-9][0-9]|100)$"
8
+ },
9
+ "cursor": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$",
13
+ "description": "Canonical unpadded base64url of UTF-8 JSON {v:1,created_at:UTC,id:UUID}, in that exact key order. Consumers must validate the decoded payload and organization scope; JSON Schema checks encoding syntax only."
14
+ }
15
+ },
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,347 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "offers": {
6
+ "type": "array",
7
+ "items": {
8
+ "oneOf": [
9
+ {
10
+ "type": "object",
11
+ "properties": {
12
+ "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
+ "decision_state": {
23
+ "type": "string",
24
+ "enum": [
25
+ "open",
26
+ "declined",
27
+ "accepted",
28
+ "withdrawn"
29
+ ]
30
+ },
31
+ "organization_name": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "pattern": "\\S"
35
+ },
36
+ "announced_at": {
37
+ "anyOf": [
38
+ {
39
+ "type": "string",
40
+ "allOf": [
41
+ {
42
+ "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))$"
43
+ },
44
+ {
45
+ "pattern": "Z$"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "type": "null"
51
+ }
52
+ ]
53
+ },
54
+ "kind": {
55
+ "type": "string",
56
+ "const": "terms"
57
+ },
58
+ "current_terms": {
59
+ "type": "object",
60
+ "properties": {
61
+ "version": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 80
65
+ },
66
+ "version_date": {
67
+ "type": "string",
68
+ "format": "date",
69
+ "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])))$"
70
+ },
71
+ "url": {
72
+ "type": "string",
73
+ "maxLength": 2048,
74
+ "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]))?(?:[/?#]|$)",
75
+ "format": "uri"
76
+ }
77
+ },
78
+ "required": [
79
+ "version",
80
+ "version_date",
81
+ "url"
82
+ ],
83
+ "additionalProperties": false
84
+ },
85
+ "proposed_terms": {
86
+ "type": "object",
87
+ "properties": {
88
+ "version": {
89
+ "type": "string",
90
+ "minLength": 1,
91
+ "maxLength": 80
92
+ },
93
+ "version_date": {
94
+ "type": "string",
95
+ "format": "date",
96
+ "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])))$"
97
+ },
98
+ "url": {
99
+ "type": "string",
100
+ "maxLength": 2048,
101
+ "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]))?(?:[/?#]|$)",
102
+ "format": "uri"
103
+ }
104
+ },
105
+ "required": [
106
+ "version",
107
+ "version_date",
108
+ "url"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "published_at": {
113
+ "type": "string",
114
+ "allOf": [
115
+ {
116
+ "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))$"
117
+ },
118
+ {
119
+ "pattern": "Z$"
120
+ }
121
+ ]
122
+ },
123
+ "acceptance_deadline_at": {
124
+ "type": "string",
125
+ "allOf": [
126
+ {
127
+ "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))$"
128
+ },
129
+ {
130
+ "pattern": "Z$"
131
+ }
132
+ ]
133
+ },
134
+ "terms_access": {
135
+ "type": "string",
136
+ "enum": [
137
+ "pending",
138
+ "suspended",
139
+ "unrestricted"
140
+ ]
141
+ },
142
+ "summary": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "pattern": "\\S"
146
+ }
147
+ },
148
+ "required": [
149
+ "id",
150
+ "revision",
151
+ "decision_state",
152
+ "organization_name",
153
+ "announced_at",
154
+ "kind",
155
+ "current_terms",
156
+ "proposed_terms",
157
+ "published_at",
158
+ "acceptance_deadline_at",
159
+ "terms_access",
160
+ "summary"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ {
165
+ "type": "object",
166
+ "properties": {
167
+ "id": {
168
+ "type": "string",
169
+ "format": "uuid",
170
+ "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)$"
171
+ },
172
+ "revision": {
173
+ "type": "string",
174
+ "format": "uuid",
175
+ "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)$"
176
+ },
177
+ "decision_state": {
178
+ "type": "string",
179
+ "enum": [
180
+ "open",
181
+ "declined",
182
+ "accepted",
183
+ "withdrawn"
184
+ ]
185
+ },
186
+ "organization_name": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "pattern": "\\S"
190
+ },
191
+ "announced_at": {
192
+ "anyOf": [
193
+ {
194
+ "type": "string",
195
+ "allOf": [
196
+ {
197
+ "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))$"
198
+ },
199
+ {
200
+ "pattern": "Z$"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "type": "null"
206
+ }
207
+ ]
208
+ },
209
+ "kind": {
210
+ "type": "string",
211
+ "const": "price"
212
+ },
213
+ "plan": {
214
+ "type": "string",
215
+ "enum": [
216
+ "plus",
217
+ "pro"
218
+ ]
219
+ },
220
+ "cycle": {
221
+ "type": "string",
222
+ "enum": [
223
+ "monthly",
224
+ "yearly"
225
+ ]
226
+ },
227
+ "addons": {
228
+ "type": "object",
229
+ "properties": {
230
+ "seats": {
231
+ "type": "integer",
232
+ "minimum": 0,
233
+ "maximum": 9007199254740991,
234
+ "description": "Extra developer seats, one each."
235
+ },
236
+ "robots": {
237
+ "type": "integer",
238
+ "minimum": 0,
239
+ "maximum": 9007199254740991,
240
+ "description": "Extra robots, one each."
241
+ },
242
+ "apps": {
243
+ "type": "integer",
244
+ "minimum": 0,
245
+ "maximum": 9007199254740991,
246
+ "description": "Extra apps, one each."
247
+ },
248
+ "app_user_packs": {
249
+ "type": "integer",
250
+ "minimum": 0,
251
+ "maximum": 9007199254740991,
252
+ "description": "Packs of five extra app users."
253
+ },
254
+ "live_video_packs": {
255
+ "type": "integer",
256
+ "minimum": 0,
257
+ "maximum": 9007199254740991,
258
+ "description": "Packs of 250 extra hours of app-user live video per month."
259
+ }
260
+ },
261
+ "required": [
262
+ "seats",
263
+ "robots",
264
+ "apps",
265
+ "app_user_packs",
266
+ "live_video_packs"
267
+ ],
268
+ "additionalProperties": false
269
+ },
270
+ "current_net_cents": {
271
+ "type": "integer",
272
+ "minimum": 0,
273
+ "maximum": 9007199254740991
274
+ },
275
+ "offered_net_cents": {
276
+ "type": "integer",
277
+ "minimum": 0,
278
+ "maximum": 9007199254740991
279
+ },
280
+ "offered_period_start_at": {
281
+ "type": "string",
282
+ "allOf": [
283
+ {
284
+ "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))$"
285
+ },
286
+ {
287
+ "pattern": "Z$"
288
+ }
289
+ ]
290
+ },
291
+ "price_start_at": {
292
+ "type": "string",
293
+ "allOf": [
294
+ {
295
+ "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))$"
296
+ },
297
+ {
298
+ "pattern": "Z$"
299
+ }
300
+ ]
301
+ },
302
+ "currency": {
303
+ "type": "string",
304
+ "const": "eur"
305
+ }
306
+ },
307
+ "required": [
308
+ "id",
309
+ "revision",
310
+ "decision_state",
311
+ "organization_name",
312
+ "announced_at",
313
+ "kind",
314
+ "plan",
315
+ "cycle",
316
+ "addons",
317
+ "current_net_cents",
318
+ "offered_net_cents",
319
+ "offered_period_start_at",
320
+ "price_start_at",
321
+ "currency"
322
+ ],
323
+ "additionalProperties": false
324
+ }
325
+ ]
326
+ }
327
+ },
328
+ "next_cursor": {
329
+ "anyOf": [
330
+ {
331
+ "type": "string",
332
+ "minLength": 1,
333
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$",
334
+ "description": "Canonical unpadded base64url of UTF-8 JSON {v:1,created_at:UTC,id:UUID}, in that exact key order. Consumers must validate the decoded payload and organization scope; JSON Schema checks encoding syntax only."
335
+ },
336
+ {
337
+ "type": "null"
338
+ }
339
+ ]
340
+ }
341
+ },
342
+ "required": [
343
+ "offers",
344
+ "next_cursor"
345
+ ],
346
+ "additionalProperties": false
347
+ }
@@ -0,0 +1,321 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "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
+ "revision": {
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
+ "decision_state": {
18
+ "type": "string",
19
+ "enum": [
20
+ "open",
21
+ "declined",
22
+ "accepted",
23
+ "withdrawn"
24
+ ]
25
+ },
26
+ "organization_name": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "pattern": "\\S"
30
+ },
31
+ "announced_at": {
32
+ "anyOf": [
33
+ {
34
+ "type": "string",
35
+ "allOf": [
36
+ {
37
+ "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))$"
38
+ },
39
+ {
40
+ "pattern": "Z$"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "type": "null"
46
+ }
47
+ ]
48
+ },
49
+ "kind": {
50
+ "type": "string",
51
+ "const": "terms"
52
+ },
53
+ "current_terms": {
54
+ "type": "object",
55
+ "properties": {
56
+ "version": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 80
60
+ },
61
+ "version_date": {
62
+ "type": "string",
63
+ "format": "date",
64
+ "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])))$"
65
+ },
66
+ "url": {
67
+ "type": "string",
68
+ "maxLength": 2048,
69
+ "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]))?(?:[/?#]|$)",
70
+ "format": "uri"
71
+ }
72
+ },
73
+ "required": [
74
+ "version",
75
+ "version_date",
76
+ "url"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ "proposed_terms": {
81
+ "type": "object",
82
+ "properties": {
83
+ "version": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "maxLength": 80
87
+ },
88
+ "version_date": {
89
+ "type": "string",
90
+ "format": "date",
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])))$"
92
+ },
93
+ "url": {
94
+ "type": "string",
95
+ "maxLength": 2048,
96
+ "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]))?(?:[/?#]|$)",
97
+ "format": "uri"
98
+ }
99
+ },
100
+ "required": [
101
+ "version",
102
+ "version_date",
103
+ "url"
104
+ ],
105
+ "additionalProperties": false
106
+ },
107
+ "published_at": {
108
+ "type": "string",
109
+ "allOf": [
110
+ {
111
+ "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))$"
112
+ },
113
+ {
114
+ "pattern": "Z$"
115
+ }
116
+ ]
117
+ },
118
+ "acceptance_deadline_at": {
119
+ "type": "string",
120
+ "allOf": [
121
+ {
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+)?)?(?:Z))$"
123
+ },
124
+ {
125
+ "pattern": "Z$"
126
+ }
127
+ ]
128
+ },
129
+ "terms_access": {
130
+ "type": "string",
131
+ "enum": [
132
+ "pending",
133
+ "suspended",
134
+ "unrestricted"
135
+ ]
136
+ },
137
+ "summary": {
138
+ "type": "string",
139
+ "minLength": 1,
140
+ "pattern": "\\S"
141
+ }
142
+ },
143
+ "required": [
144
+ "id",
145
+ "revision",
146
+ "decision_state",
147
+ "organization_name",
148
+ "announced_at",
149
+ "kind",
150
+ "current_terms",
151
+ "proposed_terms",
152
+ "published_at",
153
+ "acceptance_deadline_at",
154
+ "terms_access",
155
+ "summary"
156
+ ],
157
+ "additionalProperties": false
158
+ },
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "id": {
163
+ "type": "string",
164
+ "format": "uuid",
165
+ "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)$"
166
+ },
167
+ "revision": {
168
+ "type": "string",
169
+ "format": "uuid",
170
+ "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)$"
171
+ },
172
+ "decision_state": {
173
+ "type": "string",
174
+ "enum": [
175
+ "open",
176
+ "declined",
177
+ "accepted",
178
+ "withdrawn"
179
+ ]
180
+ },
181
+ "organization_name": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "pattern": "\\S"
185
+ },
186
+ "announced_at": {
187
+ "anyOf": [
188
+ {
189
+ "type": "string",
190
+ "allOf": [
191
+ {
192
+ "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))$"
193
+ },
194
+ {
195
+ "pattern": "Z$"
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "type": "null"
201
+ }
202
+ ]
203
+ },
204
+ "kind": {
205
+ "type": "string",
206
+ "const": "price"
207
+ },
208
+ "plan": {
209
+ "type": "string",
210
+ "enum": [
211
+ "plus",
212
+ "pro"
213
+ ]
214
+ },
215
+ "cycle": {
216
+ "type": "string",
217
+ "enum": [
218
+ "monthly",
219
+ "yearly"
220
+ ]
221
+ },
222
+ "addons": {
223
+ "type": "object",
224
+ "properties": {
225
+ "seats": {
226
+ "type": "integer",
227
+ "minimum": 0,
228
+ "maximum": 9007199254740991,
229
+ "description": "Extra developer seats, one each."
230
+ },
231
+ "robots": {
232
+ "type": "integer",
233
+ "minimum": 0,
234
+ "maximum": 9007199254740991,
235
+ "description": "Extra robots, one each."
236
+ },
237
+ "apps": {
238
+ "type": "integer",
239
+ "minimum": 0,
240
+ "maximum": 9007199254740991,
241
+ "description": "Extra apps, one each."
242
+ },
243
+ "app_user_packs": {
244
+ "type": "integer",
245
+ "minimum": 0,
246
+ "maximum": 9007199254740991,
247
+ "description": "Packs of five extra app users."
248
+ },
249
+ "live_video_packs": {
250
+ "type": "integer",
251
+ "minimum": 0,
252
+ "maximum": 9007199254740991,
253
+ "description": "Packs of 250 extra hours of app-user live video per month."
254
+ }
255
+ },
256
+ "required": [
257
+ "seats",
258
+ "robots",
259
+ "apps",
260
+ "app_user_packs",
261
+ "live_video_packs"
262
+ ],
263
+ "additionalProperties": false
264
+ },
265
+ "current_net_cents": {
266
+ "type": "integer",
267
+ "minimum": 0,
268
+ "maximum": 9007199254740991
269
+ },
270
+ "offered_net_cents": {
271
+ "type": "integer",
272
+ "minimum": 0,
273
+ "maximum": 9007199254740991
274
+ },
275
+ "offered_period_start_at": {
276
+ "type": "string",
277
+ "allOf": [
278
+ {
279
+ "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))$"
280
+ },
281
+ {
282
+ "pattern": "Z$"
283
+ }
284
+ ]
285
+ },
286
+ "price_start_at": {
287
+ "type": "string",
288
+ "allOf": [
289
+ {
290
+ "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))$"
291
+ },
292
+ {
293
+ "pattern": "Z$"
294
+ }
295
+ ]
296
+ },
297
+ "currency": {
298
+ "type": "string",
299
+ "const": "eur"
300
+ }
301
+ },
302
+ "required": [
303
+ "id",
304
+ "revision",
305
+ "decision_state",
306
+ "organization_name",
307
+ "announced_at",
308
+ "kind",
309
+ "plan",
310
+ "cycle",
311
+ "addons",
312
+ "current_net_cents",
313
+ "offered_net_cents",
314
+ "offered_period_start_at",
315
+ "price_start_at",
316
+ "currency"
317
+ ],
318
+ "additionalProperties": false
319
+ }
320
+ ]
321
+ }