@fleetless/contracts 10.1.0 → 11.1.0-next.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.
- package/CHANGELOG.md +26 -0
- package/artifacts/openapi.json +288 -24
- package/artifacts/routes.json +7 -6
- package/artifacts/schema/asset-list-response.schema.json +83 -3
- package/artifacts/schema/asset-sync-status.schema.json +83 -3
- package/artifacts/schema/billing-change-response.schema.json +42 -3
- package/artifacts/schema/billing-invoice-pdf-query.schema.json +15 -0
- package/artifacts/schema/billing-invoice.schema.json +14 -1
- package/artifacts/schema/billing-view.schema.json +14 -1
- package/artifacts/schema/bridge-asset-progress.schema.json +81 -2
- package/artifacts/schema/busy-details.schema.json +1 -1
- package/artifacts/schema/command-result.schema.json +1 -1
- package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
- package/artifacts/schema/invoke-response.schema.json +1 -1
- package/artifacts/schema/job-event.schema.json +1 -1
- package/artifacts/schema/job-response.schema.json +1 -1
- package/artifacts/schema/job-run-list-response.schema.json +1 -1
- package/artifacts/schema/job-run.schema.json +1 -1
- package/artifacts/schema/job.schema.json +1 -1
- package/artifacts/schema/purchase-intent-response.schema.json +42 -3
- package/artifacts/schema/recover-held-job-response.schema.json +1 -1
- package/artifacts/schema/robot-jobs-response.schema.json +1 -1
- package/artifacts/schema-outgoing/bridge-asset-progress.schema.json +83 -3
- package/dist/assets.d.ts +20 -10
- package/dist/assets.js +38 -18
- package/dist/billing.d.ts +32 -7
- package/dist/billing.js +9 -2
- package/dist/errors.d.ts +7 -19
- package/dist/errors.js +6 -22
- package/dist/file-too-large-details.d.ts +18 -0
- package/dist/file-too-large-details.js +21 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/jobs.js +2 -2
- package/dist/protocol.d.ts +6 -2
- package/dist/protocol.js +2 -2
- package/dist/routes.js +10 -9
- package/package.json +1 -1
package/artifacts/routes.json
CHANGED
|
@@ -6777,7 +6777,7 @@
|
|
|
6777
6777
|
"payment_provider_unavailable"
|
|
6778
6778
|
],
|
|
6779
6779
|
"transport": "http",
|
|
6780
|
-
"notes": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; same key
|
|
6780
|
+
"notes": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; the same key and input return 200 with the existing intent (and its hosted checkout when payment_started), without another Mollie payment; changed input conflicts. A different operation_key while a first payment is open returns 409 target_state_conflict with rule checkout_open and details expires_at: null. An eligible Owner obtains a no-store C.4 display, then explicitly confirms with its proof. No payment or acceptance occurs at start. Hosted payment later offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. An active/past_due account uses billing/change."
|
|
6781
6781
|
},
|
|
6782
6782
|
{
|
|
6783
6783
|
"method": "GET",
|
|
@@ -6868,7 +6868,7 @@
|
|
|
6868
6868
|
"payment_provider_unavailable"
|
|
6869
6869
|
],
|
|
6870
6870
|
"transport": "http",
|
|
6871
|
-
"notes": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. Foreign ownership answers 404 without disclosure; pending or held cannot charge."
|
|
6871
|
+
"notes": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. A paid change can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; it does not start another charge. Foreign ownership answers 404 without disclosure; pending or held cannot charge."
|
|
6872
6872
|
},
|
|
6873
6873
|
{
|
|
6874
6874
|
"method": "GET",
|
|
@@ -6975,7 +6975,7 @@
|
|
|
6975
6975
|
"payment_provider_unavailable"
|
|
6976
6976
|
],
|
|
6977
6977
|
"transport": "http",
|
|
6978
|
-
"notes": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain."
|
|
6978
|
+
"notes": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain. A later paid-change confirmation can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; no second charge starts."
|
|
6979
6979
|
},
|
|
6980
6980
|
{
|
|
6981
6981
|
"method": "POST",
|
|
@@ -7059,7 +7059,7 @@
|
|
|
7059
7059
|
"method": "GET",
|
|
7060
7060
|
"path": "/api/billing/invoices/:id/pdf",
|
|
7061
7061
|
"section": "billing",
|
|
7062
|
-
"summary": "Downloads
|
|
7062
|
+
"summary": "Downloads an invoice's original or cancellation PDF.",
|
|
7063
7063
|
"audience": "developer",
|
|
7064
7064
|
"auth": "developer",
|
|
7065
7065
|
"rateLimited": false,
|
|
@@ -7071,7 +7071,7 @@
|
|
|
7071
7071
|
"description": "The invoice id, from `billingInvoice.id` in `GET /api/billing`'s `invoices`."
|
|
7072
7072
|
}
|
|
7073
7073
|
],
|
|
7074
|
-
"query":
|
|
7074
|
+
"query": "billing-invoice-pdf-query",
|
|
7075
7075
|
"request": null,
|
|
7076
7076
|
"response": null,
|
|
7077
7077
|
"contentType": "application/pdf",
|
|
@@ -7080,10 +7080,11 @@
|
|
|
7080
7080
|
"token_expired",
|
|
7081
7081
|
"token_revoked",
|
|
7082
7082
|
"tier_required",
|
|
7083
|
+
"validation_error",
|
|
7083
7084
|
"not_found"
|
|
7084
7085
|
],
|
|
7085
7086
|
"transport": "http",
|
|
7086
|
-
"notes": "
|
|
7087
|
+
"notes": "Owner-only. Omitted `kind` or `kind=invoice` returns the original PDF, rendered once with `pdfkit` when issued and stored as bytes. `kind=cancellation` returns the stored cancellation PDF for this same invoice id; no read renders a new PDF. `404 not_found` for an unknown id, one from another org, or a missing cancellation number or PDF. This reads historical Cloud invoices only: a due charge has no PDF of its own here — its eventual Lexware invoice is a document, read through `GET /api/billing/documents/:id/file`."
|
|
7087
7088
|
},
|
|
7088
7089
|
{
|
|
7089
7090
|
"method": "GET",
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
"upload_failed",
|
|
130
130
|
"refused"
|
|
131
131
|
],
|
|
132
|
-
"description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed
|
|
132
|
+
"description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
|
|
133
133
|
},
|
|
134
134
|
"details": {
|
|
135
|
-
"description": "The three numbers behind a `refused` entry the robot's store had no room for
|
|
135
|
+
"description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
|
|
136
136
|
"anyOf": [
|
|
137
137
|
{
|
|
138
138
|
"type": "object",
|
|
@@ -167,13 +167,93 @@
|
|
|
167
167
|
"type": "null"
|
|
168
168
|
}
|
|
169
169
|
]
|
|
170
|
+
},
|
|
171
|
+
"file_limit": {
|
|
172
|
+
"description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
|
|
173
|
+
"anyOf": [
|
|
174
|
+
{
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"max_bytes": {
|
|
178
|
+
"type": "integer",
|
|
179
|
+
"exclusiveMinimum": 0,
|
|
180
|
+
"maximum": 9007199254740991,
|
|
181
|
+
"description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
|
|
182
|
+
},
|
|
183
|
+
"size_bytes": {
|
|
184
|
+
"anyOf": [
|
|
185
|
+
{
|
|
186
|
+
"type": "integer",
|
|
187
|
+
"exclusiveMinimum": 0,
|
|
188
|
+
"maximum": 9007199254740991
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "null"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"max_bytes",
|
|
199
|
+
"size_bytes"
|
|
200
|
+
],
|
|
201
|
+
"additionalProperties": false
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "null"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
170
207
|
}
|
|
171
208
|
},
|
|
172
209
|
"required": [
|
|
173
210
|
"reference",
|
|
174
211
|
"kind"
|
|
175
212
|
],
|
|
176
|
-
"additionalProperties": false
|
|
213
|
+
"additionalProperties": false,
|
|
214
|
+
"allOf": [
|
|
215
|
+
{
|
|
216
|
+
"if": {
|
|
217
|
+
"properties": {
|
|
218
|
+
"details": {
|
|
219
|
+
"type": "object"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": [
|
|
223
|
+
"details"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"then": {
|
|
227
|
+
"properties": {
|
|
228
|
+
"kind": {
|
|
229
|
+
"const": "refused"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"if": {
|
|
236
|
+
"properties": {
|
|
237
|
+
"file_limit": {
|
|
238
|
+
"type": "object"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"required": [
|
|
242
|
+
"file_limit"
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"then": {
|
|
246
|
+
"properties": {
|
|
247
|
+
"kind": {
|
|
248
|
+
"const": "refused"
|
|
249
|
+
},
|
|
250
|
+
"details": {
|
|
251
|
+
"type": "null"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
177
257
|
},
|
|
178
258
|
"description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
|
|
179
259
|
},
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"upload_failed",
|
|
55
55
|
"refused"
|
|
56
56
|
],
|
|
57
|
-
"description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed
|
|
57
|
+
"description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
|
|
58
58
|
},
|
|
59
59
|
"details": {
|
|
60
|
-
"description": "The three numbers behind a `refused` entry the robot's store had no room for
|
|
60
|
+
"description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
|
|
61
61
|
"anyOf": [
|
|
62
62
|
{
|
|
63
63
|
"type": "object",
|
|
@@ -92,13 +92,93 @@
|
|
|
92
92
|
"type": "null"
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
|
+
},
|
|
96
|
+
"file_limit": {
|
|
97
|
+
"description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
|
|
98
|
+
"anyOf": [
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"max_bytes": {
|
|
103
|
+
"type": "integer",
|
|
104
|
+
"exclusiveMinimum": 0,
|
|
105
|
+
"maximum": 9007199254740991,
|
|
106
|
+
"description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
|
|
107
|
+
},
|
|
108
|
+
"size_bytes": {
|
|
109
|
+
"anyOf": [
|
|
110
|
+
{
|
|
111
|
+
"type": "integer",
|
|
112
|
+
"exclusiveMinimum": 0,
|
|
113
|
+
"maximum": 9007199254740991
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "null"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"max_bytes",
|
|
124
|
+
"size_bytes"
|
|
125
|
+
],
|
|
126
|
+
"additionalProperties": false
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "null"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
95
132
|
}
|
|
96
133
|
},
|
|
97
134
|
"required": [
|
|
98
135
|
"reference",
|
|
99
136
|
"kind"
|
|
100
137
|
],
|
|
101
|
-
"additionalProperties": false
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"allOf": [
|
|
140
|
+
{
|
|
141
|
+
"if": {
|
|
142
|
+
"properties": {
|
|
143
|
+
"details": {
|
|
144
|
+
"type": "object"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"required": [
|
|
148
|
+
"details"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"then": {
|
|
152
|
+
"properties": {
|
|
153
|
+
"kind": {
|
|
154
|
+
"const": "refused"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"if": {
|
|
161
|
+
"properties": {
|
|
162
|
+
"file_limit": {
|
|
163
|
+
"type": "object"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"file_limit"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"then": {
|
|
171
|
+
"properties": {
|
|
172
|
+
"kind": {
|
|
173
|
+
"const": "refused"
|
|
174
|
+
},
|
|
175
|
+
"details": {
|
|
176
|
+
"type": "null"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
]
|
|
102
182
|
},
|
|
103
183
|
"description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
|
|
104
184
|
},
|
|
@@ -1117,10 +1117,22 @@
|
|
|
1117
1117
|
"enum": [
|
|
1118
1118
|
"open",
|
|
1119
1119
|
"paid",
|
|
1120
|
-
"uncollectible"
|
|
1120
|
+
"uncollectible",
|
|
1121
|
+
"cancelled"
|
|
1121
1122
|
],
|
|
1122
1123
|
"description": "This invoice's own status."
|
|
1123
1124
|
},
|
|
1125
|
+
"cancellation_document_url": {
|
|
1126
|
+
"anyOf": [
|
|
1127
|
+
{
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": "null"
|
|
1132
|
+
}
|
|
1133
|
+
],
|
|
1134
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
1135
|
+
},
|
|
1124
1136
|
"currency": {
|
|
1125
1137
|
"type": "string",
|
|
1126
1138
|
"enum": [
|
|
@@ -1159,6 +1171,7 @@
|
|
|
1159
1171
|
"number",
|
|
1160
1172
|
"issued_at",
|
|
1161
1173
|
"status",
|
|
1174
|
+
"cancellation_document_url",
|
|
1162
1175
|
"currency",
|
|
1163
1176
|
"net_cents",
|
|
1164
1177
|
"vat_rate_percent",
|
|
@@ -1428,10 +1441,22 @@
|
|
|
1428
1441
|
"enum": [
|
|
1429
1442
|
"open",
|
|
1430
1443
|
"paid",
|
|
1431
|
-
"uncollectible"
|
|
1444
|
+
"uncollectible",
|
|
1445
|
+
"cancelled"
|
|
1432
1446
|
],
|
|
1433
1447
|
"description": "This invoice's own status."
|
|
1434
1448
|
},
|
|
1449
|
+
"cancellation_document_url": {
|
|
1450
|
+
"anyOf": [
|
|
1451
|
+
{
|
|
1452
|
+
"type": "string"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"type": "null"
|
|
1456
|
+
}
|
|
1457
|
+
],
|
|
1458
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
1459
|
+
},
|
|
1435
1460
|
"currency": {
|
|
1436
1461
|
"type": "string",
|
|
1437
1462
|
"enum": [
|
|
@@ -1470,6 +1495,7 @@
|
|
|
1470
1495
|
"number",
|
|
1471
1496
|
"issued_at",
|
|
1472
1497
|
"status",
|
|
1498
|
+
"cancellation_document_url",
|
|
1473
1499
|
"currency",
|
|
1474
1500
|
"net_cents",
|
|
1475
1501
|
"vat_rate_percent",
|
|
@@ -2263,10 +2289,22 @@
|
|
|
2263
2289
|
"enum": [
|
|
2264
2290
|
"open",
|
|
2265
2291
|
"paid",
|
|
2266
|
-
"uncollectible"
|
|
2292
|
+
"uncollectible",
|
|
2293
|
+
"cancelled"
|
|
2267
2294
|
],
|
|
2268
2295
|
"description": "This invoice's own status."
|
|
2269
2296
|
},
|
|
2297
|
+
"cancellation_document_url": {
|
|
2298
|
+
"anyOf": [
|
|
2299
|
+
{
|
|
2300
|
+
"type": "string"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"type": "null"
|
|
2304
|
+
}
|
|
2305
|
+
],
|
|
2306
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
2307
|
+
},
|
|
2270
2308
|
"currency": {
|
|
2271
2309
|
"type": "string",
|
|
2272
2310
|
"enum": [
|
|
@@ -2305,6 +2343,7 @@
|
|
|
2305
2343
|
"number",
|
|
2306
2344
|
"issued_at",
|
|
2307
2345
|
"status",
|
|
2346
|
+
"cancellation_document_url",
|
|
2308
2347
|
"currency",
|
|
2309
2348
|
"net_cents",
|
|
2310
2349
|
"vat_rate_percent",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"description": "The original invoice or its stored cancellation PDF; omitted means `invoice`.",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"invoice",
|
|
10
|
+
"cancellation"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
@@ -24,10 +24,22 @@
|
|
|
24
24
|
"enum": [
|
|
25
25
|
"open",
|
|
26
26
|
"paid",
|
|
27
|
-
"uncollectible"
|
|
27
|
+
"uncollectible",
|
|
28
|
+
"cancelled"
|
|
28
29
|
],
|
|
29
30
|
"description": "This invoice's own status."
|
|
30
31
|
},
|
|
32
|
+
"cancellation_document_url": {
|
|
33
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "null"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
42
|
+
},
|
|
31
43
|
"currency": {
|
|
32
44
|
"type": "string",
|
|
33
45
|
"enum": [
|
|
@@ -66,6 +78,7 @@
|
|
|
66
78
|
"number",
|
|
67
79
|
"issued_at",
|
|
68
80
|
"status",
|
|
81
|
+
"cancellation_document_url",
|
|
69
82
|
"currency",
|
|
70
83
|
"net_cents",
|
|
71
84
|
"vat_rate_percent",
|
|
@@ -681,10 +681,22 @@
|
|
|
681
681
|
"enum": [
|
|
682
682
|
"open",
|
|
683
683
|
"paid",
|
|
684
|
-
"uncollectible"
|
|
684
|
+
"uncollectible",
|
|
685
|
+
"cancelled"
|
|
685
686
|
],
|
|
686
687
|
"description": "This invoice's own status."
|
|
687
688
|
},
|
|
689
|
+
"cancellation_document_url": {
|
|
690
|
+
"anyOf": [
|
|
691
|
+
{
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "null"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
699
|
+
},
|
|
688
700
|
"currency": {
|
|
689
701
|
"type": "string",
|
|
690
702
|
"enum": [
|
|
@@ -723,6 +735,7 @@
|
|
|
723
735
|
"number",
|
|
724
736
|
"issued_at",
|
|
725
737
|
"status",
|
|
738
|
+
"cancellation_document_url",
|
|
726
739
|
"currency",
|
|
727
740
|
"net_cents",
|
|
728
741
|
"vat_rate_percent",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"upload_failed",
|
|
41
41
|
"refused"
|
|
42
42
|
],
|
|
43
|
-
"description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed
|
|
43
|
+
"description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
|
|
44
44
|
},
|
|
45
45
|
"details": {
|
|
46
|
-
"description": "The three numbers behind a `refused` entry the robot's store had no room for
|
|
46
|
+
"description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
|
|
47
47
|
"anyOf": [
|
|
48
48
|
{
|
|
49
49
|
"type": "object",
|
|
@@ -77,11 +77,90 @@
|
|
|
77
77
|
"type": "null"
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
|
+
},
|
|
81
|
+
"file_limit": {
|
|
82
|
+
"description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"max_bytes": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"exclusiveMinimum": 0,
|
|
90
|
+
"maximum": 9007199254740991,
|
|
91
|
+
"description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
|
|
92
|
+
},
|
|
93
|
+
"size_bytes": {
|
|
94
|
+
"anyOf": [
|
|
95
|
+
{
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"exclusiveMinimum": 0,
|
|
98
|
+
"maximum": 9007199254740991
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "null"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"max_bytes",
|
|
109
|
+
"size_bytes"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "null"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
80
116
|
}
|
|
81
117
|
},
|
|
82
118
|
"required": [
|
|
83
119
|
"reference",
|
|
84
120
|
"kind"
|
|
121
|
+
],
|
|
122
|
+
"allOf": [
|
|
123
|
+
{
|
|
124
|
+
"if": {
|
|
125
|
+
"properties": {
|
|
126
|
+
"details": {
|
|
127
|
+
"type": "object"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"details"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"then": {
|
|
135
|
+
"properties": {
|
|
136
|
+
"kind": {
|
|
137
|
+
"const": "refused"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"if": {
|
|
144
|
+
"properties": {
|
|
145
|
+
"file_limit": {
|
|
146
|
+
"type": "object"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": [
|
|
150
|
+
"file_limit"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"then": {
|
|
154
|
+
"properties": {
|
|
155
|
+
"kind": {
|
|
156
|
+
"const": "refused"
|
|
157
|
+
},
|
|
158
|
+
"details": {
|
|
159
|
+
"type": "null"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
85
164
|
]
|
|
86
165
|
}
|
|
87
166
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cancelled",
|
|
35
35
|
"lost"
|
|
36
36
|
],
|
|
37
|
-
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final
|
|
37
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
38
38
|
},
|
|
39
39
|
"origin": {
|
|
40
40
|
"type": "string",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cancelled",
|
|
49
49
|
"lost"
|
|
50
50
|
],
|
|
51
|
-
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final
|
|
51
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
52
52
|
},
|
|
53
53
|
"origin": {
|
|
54
54
|
"type": "string",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cancelled",
|
|
37
37
|
"lost"
|
|
38
38
|
],
|
|
39
|
-
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final
|
|
39
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
40
40
|
},
|
|
41
41
|
"origin": {
|
|
42
42
|
"type": "string",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cancelled",
|
|
35
35
|
"lost"
|
|
36
36
|
],
|
|
37
|
-
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final
|
|
37
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
38
38
|
},
|
|
39
39
|
"origin": {
|
|
40
40
|
"type": "string",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"cancelled",
|
|
50
50
|
"lost"
|
|
51
51
|
],
|
|
52
|
-
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final
|
|
52
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
53
53
|
},
|
|
54
54
|
"origin": {
|
|
55
55
|
"type": "string",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cancelled",
|
|
37
37
|
"lost"
|
|
38
38
|
],
|
|
39
|
-
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final
|
|
39
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
40
40
|
},
|
|
41
41
|
"origin": {
|
|
42
42
|
"type": "string",
|