@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,342 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "operation_id": {
10
+ "type": "string",
11
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
12
+ },
13
+ "probe_ref_ids": {
14
+ "minItems": 1,
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ }
20
+ },
21
+ "kind": {
22
+ "type": "string",
23
+ "const": "organization.erase"
24
+ },
25
+ "affected_verdict": {
26
+ "type": "string",
27
+ "const": "denied"
28
+ },
29
+ "unaffected_verdict": {
30
+ "type": "string",
31
+ "const": "not-applicable"
32
+ }
33
+ },
34
+ "required": [
35
+ "operation_id",
36
+ "probe_ref_ids",
37
+ "kind",
38
+ "affected_verdict",
39
+ "unaffected_verdict"
40
+ ],
41
+ "additionalProperties": false
42
+ },
43
+ {
44
+ "type": "object",
45
+ "properties": {
46
+ "operation_id": {
47
+ "type": "string",
48
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
49
+ },
50
+ "probe_ref_ids": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string",
54
+ "minLength": 1
55
+ }
56
+ },
57
+ "kind": {
58
+ "type": "string",
59
+ "const": "organization.erase"
60
+ },
61
+ "affected_verdict": {
62
+ "type": "string",
63
+ "const": "failed"
64
+ },
65
+ "unaffected_verdict": {
66
+ "type": "string",
67
+ "enum": [
68
+ "not-applicable",
69
+ "failed"
70
+ ]
71
+ }
72
+ },
73
+ "required": [
74
+ "operation_id",
75
+ "probe_ref_ids",
76
+ "kind",
77
+ "affected_verdict",
78
+ "unaffected_verdict"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ {
83
+ "type": "object",
84
+ "properties": {
85
+ "operation_id": {
86
+ "type": "string",
87
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
88
+ },
89
+ "probe_ref_ids": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "string",
93
+ "minLength": 1
94
+ }
95
+ },
96
+ "kind": {
97
+ "type": "string",
98
+ "const": "organization.erase"
99
+ },
100
+ "affected_verdict": {
101
+ "type": "string",
102
+ "const": "denied"
103
+ },
104
+ "unaffected_verdict": {
105
+ "type": "string",
106
+ "const": "failed"
107
+ }
108
+ },
109
+ "required": [
110
+ "operation_id",
111
+ "probe_ref_ids",
112
+ "kind",
113
+ "affected_verdict",
114
+ "unaffected_verdict"
115
+ ],
116
+ "additionalProperties": false
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "type": "object",
122
+ "properties": {
123
+ "operation_id": {
124
+ "type": "string",
125
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
126
+ },
127
+ "probe_ref_ids": {
128
+ "minItems": 1,
129
+ "type": "array",
130
+ "items": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ }
134
+ },
135
+ "kind": {
136
+ "type": "string",
137
+ "const": "organization.scope_erase"
138
+ },
139
+ "affected_verdict": {
140
+ "type": "string",
141
+ "const": "denied"
142
+ },
143
+ "unaffected_verdict": {
144
+ "type": "string",
145
+ "const": "allowed"
146
+ },
147
+ "unaffected_state_ref_id": {
148
+ "type": "string",
149
+ "minLength": 1
150
+ }
151
+ },
152
+ "required": [
153
+ "operation_id",
154
+ "probe_ref_ids",
155
+ "kind",
156
+ "affected_verdict",
157
+ "unaffected_verdict",
158
+ "unaffected_state_ref_id"
159
+ ],
160
+ "additionalProperties": false
161
+ },
162
+ {
163
+ "type": "object",
164
+ "properties": {
165
+ "operation_id": {
166
+ "type": "string",
167
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
168
+ },
169
+ "probe_ref_ids": {
170
+ "minItems": 1,
171
+ "type": "array",
172
+ "items": {
173
+ "type": "string",
174
+ "minLength": 1
175
+ }
176
+ },
177
+ "kind": {
178
+ "type": "string",
179
+ "const": "organization.scope_erase"
180
+ },
181
+ "affected_verdict": {
182
+ "type": "string",
183
+ "const": "denied"
184
+ },
185
+ "unaffected_verdict": {
186
+ "type": "string",
187
+ "const": "policy-denied"
188
+ },
189
+ "unaffected_state_ref_id": {
190
+ "type": "string",
191
+ "minLength": 1
192
+ },
193
+ "policy_ref_id": {
194
+ "type": "string",
195
+ "minLength": 1
196
+ }
197
+ },
198
+ "required": [
199
+ "operation_id",
200
+ "probe_ref_ids",
201
+ "kind",
202
+ "affected_verdict",
203
+ "unaffected_verdict",
204
+ "unaffected_state_ref_id",
205
+ "policy_ref_id"
206
+ ],
207
+ "additionalProperties": false
208
+ },
209
+ {
210
+ "anyOf": [
211
+ {
212
+ "type": "object",
213
+ "properties": {
214
+ "operation_id": {
215
+ "type": "string",
216
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
217
+ },
218
+ "probe_ref_ids": {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "string",
222
+ "minLength": 1
223
+ }
224
+ },
225
+ "kind": {
226
+ "type": "string",
227
+ "const": "organization.scope_erase"
228
+ },
229
+ "affected_verdict": {
230
+ "type": "string",
231
+ "const": "failed"
232
+ },
233
+ "unaffected_verdict": {
234
+ "type": "string",
235
+ "enum": [
236
+ "allowed",
237
+ "failed"
238
+ ]
239
+ },
240
+ "unaffected_state_ref_id": {
241
+ "type": "string",
242
+ "minLength": 1
243
+ }
244
+ },
245
+ "required": [
246
+ "operation_id",
247
+ "probe_ref_ids",
248
+ "kind",
249
+ "affected_verdict",
250
+ "unaffected_verdict"
251
+ ],
252
+ "additionalProperties": false
253
+ },
254
+ {
255
+ "type": "object",
256
+ "properties": {
257
+ "operation_id": {
258
+ "type": "string",
259
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
260
+ },
261
+ "probe_ref_ids": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "string",
265
+ "minLength": 1
266
+ }
267
+ },
268
+ "kind": {
269
+ "type": "string",
270
+ "const": "organization.scope_erase"
271
+ },
272
+ "affected_verdict": {
273
+ "type": "string",
274
+ "const": "failed"
275
+ },
276
+ "unaffected_verdict": {
277
+ "type": "string",
278
+ "const": "policy-denied"
279
+ },
280
+ "unaffected_state_ref_id": {
281
+ "type": "string",
282
+ "minLength": 1
283
+ },
284
+ "policy_ref_id": {
285
+ "type": "string",
286
+ "minLength": 1
287
+ }
288
+ },
289
+ "required": [
290
+ "operation_id",
291
+ "probe_ref_ids",
292
+ "kind",
293
+ "affected_verdict",
294
+ "unaffected_verdict",
295
+ "policy_ref_id"
296
+ ],
297
+ "additionalProperties": false
298
+ },
299
+ {
300
+ "type": "object",
301
+ "properties": {
302
+ "operation_id": {
303
+ "type": "string",
304
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
305
+ },
306
+ "probe_ref_ids": {
307
+ "type": "array",
308
+ "items": {
309
+ "type": "string",
310
+ "minLength": 1
311
+ }
312
+ },
313
+ "kind": {
314
+ "type": "string",
315
+ "const": "organization.scope_erase"
316
+ },
317
+ "affected_verdict": {
318
+ "type": "string",
319
+ "const": "denied"
320
+ },
321
+ "unaffected_verdict": {
322
+ "type": "string",
323
+ "const": "failed"
324
+ },
325
+ "unaffected_state_ref_id": {
326
+ "type": "string",
327
+ "minLength": 1
328
+ }
329
+ },
330
+ "required": [
331
+ "operation_id",
332
+ "probe_ref_ids",
333
+ "kind",
334
+ "affected_verdict",
335
+ "unaffected_verdict"
336
+ ],
337
+ "additionalProperties": false
338
+ }
339
+ ]
340
+ }
341
+ ]
342
+ }