@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/dist/errors.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
export { fileTooLargeDetails } from './file-too-large-details.js';
|
|
4
|
+
export type { FileTooLargeDetails } from './file-too-large-details.js';
|
|
3
5
|
/**
|
|
4
6
|
* The one error shape of the REST and realtime APIs: a stable
|
|
5
7
|
* machine-readable code plus a human message; validation errors name the
|
|
@@ -209,28 +211,14 @@ export declare const orgLockedDetails: z.ZodObject<{
|
|
|
209
211
|
}>;
|
|
210
212
|
}, z.core.$strip>;
|
|
211
213
|
export type OrgLockedDetails = z.infer<typeof orgLockedDetails>;
|
|
212
|
-
/**
|
|
213
|
-
* The `details` of a `413 file_too_large` refusal (2026-10-03,
|
|
214
|
-
* fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
|
|
215
|
-
* Not a store and not a plan limit — those are `409 plan_limit` and
|
|
216
|
-
* `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
|
|
217
|
-
* the file's size: the announced one when the refusal came before the body
|
|
218
|
-
* was read, or the bytes that arrived when no size (or a false one) was
|
|
219
|
-
* announced and the body still fit the server's body limit. It is `null` only
|
|
220
|
-
* when the body limit stopped the upload, because then nobody counted the
|
|
221
|
-
* bytes.
|
|
222
|
-
*/
|
|
223
|
-
export declare const fileTooLargeDetails: z.ZodObject<{
|
|
224
|
-
max_bytes: z.ZodNumber;
|
|
225
|
-
size_bytes: z.ZodNullable<z.ZodNumber>;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
export type FileTooLargeDetails = z.infer<typeof fileTooLargeDetails>;
|
|
228
214
|
/**
|
|
229
215
|
* The `details` of a `502 payment_provider_unavailable` refusal (2026-10-04,
|
|
230
216
|
* fleetless/fleetless#104): Mollie did not answer, or answered with an
|
|
231
|
-
* error
|
|
232
|
-
*
|
|
233
|
-
*
|
|
217
|
+
* error. A plan change or add-on purchase is not applied, but an interrupted
|
|
218
|
+
* Mollie request may still be charged and later refunded in full; a `502`
|
|
219
|
+
* does not prove that no charge occurred (fleetless/fleetless#187, #216).
|
|
220
|
+
* `status` is Mollie's own HTTP status, `null` for a timeout — the two ways
|
|
221
|
+
* "did not answer" happens, told apart for whoever reads a support ticket.
|
|
234
222
|
*/
|
|
235
223
|
export declare const paymentProviderUnavailableDetails: z.ZodObject<{
|
|
236
224
|
provider: z.ZodLiteral<"mollie">;
|
package/dist/errors.js
CHANGED
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { assetStoreRefusedDetails } from './assets.js';
|
|
4
4
|
import { addonKey, planFeature, planId, planLimitKey } from './plans.js';
|
|
5
5
|
import { bridgeCancelResultEntry } from './protocol.js';
|
|
6
|
+
export { fileTooLargeDetails } from './file-too-large-details.js';
|
|
6
7
|
/**
|
|
7
8
|
* The one error shape of the REST and realtime APIs: a stable
|
|
8
9
|
* machine-readable code plus a human message; validation errors name the
|
|
@@ -135,31 +136,14 @@ export const orgLockedDetails = z.object({
|
|
|
135
136
|
description: '`payment`: a payment is missing. `migration`: the org did not choose what stays when the beta ended.',
|
|
136
137
|
}),
|
|
137
138
|
});
|
|
138
|
-
/**
|
|
139
|
-
* The `details` of a `413 file_too_large` refusal (2026-10-03,
|
|
140
|
-
* fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
|
|
141
|
-
* Not a store and not a plan limit — those are `409 plan_limit` and
|
|
142
|
-
* `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
|
|
143
|
-
* the file's size: the announced one when the refusal came before the body
|
|
144
|
-
* was read, or the bytes that arrived when no size (or a false one) was
|
|
145
|
-
* announced and the body still fit the server's body limit. It is `null` only
|
|
146
|
-
* when the body limit stopped the upload, because then nobody counted the
|
|
147
|
-
* bytes.
|
|
148
|
-
*/
|
|
149
|
-
export const fileTooLargeDetails = z.object({
|
|
150
|
-
max_bytes: z.number().int().positive().meta({
|
|
151
|
-
description: 'The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan.',
|
|
152
|
-
}),
|
|
153
|
-
size_bytes: z.number().int().positive().nullable().meta({
|
|
154
|
-
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.',
|
|
155
|
-
}),
|
|
156
|
-
});
|
|
157
139
|
/**
|
|
158
140
|
* The `details` of a `502 payment_provider_unavailable` refusal (2026-10-04,
|
|
159
141
|
* fleetless/fleetless#104): Mollie did not answer, or answered with an
|
|
160
|
-
* error
|
|
161
|
-
*
|
|
162
|
-
*
|
|
142
|
+
* error. A plan change or add-on purchase is not applied, but an interrupted
|
|
143
|
+
* Mollie request may still be charged and later refunded in full; a `502`
|
|
144
|
+
* does not prove that no charge occurred (fleetless/fleetless#187, #216).
|
|
145
|
+
* `status` is Mollie's own HTTP status, `null` for a timeout — the two ways
|
|
146
|
+
* "did not answer" happens, told apart for whoever reads a support ticket.
|
|
163
147
|
*/
|
|
164
148
|
export const paymentProviderUnavailableDetails = z.object({
|
|
165
149
|
provider: z.literal('mollie').meta({ description: 'The payment provider. Always `mollie` today.' }),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* The `details` of a `413 file_too_large` refusal (2026-10-03,
|
|
5
|
+
* fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
|
|
6
|
+
* Not a store and not a plan limit — those are `409 plan_limit` and
|
|
7
|
+
* `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
|
|
8
|
+
* the file's size: the announced one when the refusal came before the body
|
|
9
|
+
* was read, or the bytes that arrived when no size (or a false one) was
|
|
10
|
+
* announced and the body still fit the server's body limit. It is `null` only
|
|
11
|
+
* when the body limit stopped the upload, because then nobody counted the
|
|
12
|
+
* bytes.
|
|
13
|
+
*/
|
|
14
|
+
export declare const fileTooLargeDetails: z.ZodObject<{
|
|
15
|
+
max_bytes: z.ZodNumber;
|
|
16
|
+
size_bytes: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type FileTooLargeDetails = z.infer<typeof fileTooLargeDetails>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* The `details` of a `413 file_too_large` refusal (2026-10-03,
|
|
5
|
+
* fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
|
|
6
|
+
* Not a store and not a plan limit — those are `409 plan_limit` and
|
|
7
|
+
* `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
|
|
8
|
+
* the file's size: the announced one when the refusal came before the body
|
|
9
|
+
* was read, or the bytes that arrived when no size (or a false one) was
|
|
10
|
+
* announced and the body still fit the server's body limit. It is `null` only
|
|
11
|
+
* when the body limit stopped the upload, because then nobody counted the
|
|
12
|
+
* bytes.
|
|
13
|
+
*/
|
|
14
|
+
export const fileTooLargeDetails = z.object({
|
|
15
|
+
max_bytes: z.number().int().positive().meta({
|
|
16
|
+
description: 'The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan.',
|
|
17
|
+
}),
|
|
18
|
+
size_bytes: z.number().int().positive().nullable().meta({
|
|
19
|
+
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.',
|
|
20
|
+
}),
|
|
21
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ export type { PlanId, PlanLimitKey, PlanLimits, PlanFeature, PlanFeatures, PlanP
|
|
|
64
64
|
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
65
65
|
export type { PlanCurrency, OrgAddons, OrgPlanUsage, PlanChangeKeep, PlanChangeReason, PendingPlanChange, OrgLock, OrgPlan, PlanChangeRequest, PlanChangePrepareRequest, PlanChangeDecisionLookupQuery, PlanChangeDecisionStatusResponse, PlanOverrides, AdminPlanChangeRequest, } from './plans.js';
|
|
66
66
|
export { ianaTimeZones } from './iana-time-zones.js';
|
|
67
|
-
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse, billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery, billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
68
|
-
export type { PayerKind, BillingCycle, VatTreatment, PayerRefusalRule, VatDecision, ChargeAmounts, BillingState, QuoteLine, CheckoutQuote, BillingAddress, BillingDetails, CheckoutRequest, CheckoutResponse, CheckoutStatus, VatIdStatus, VatIdCheckRequest, VatIdCheckResponse, BillingChangeRequest, BillingCancelRequest, BillingDetailsUpdate, PaymentMethodKind, PaymentMethodChangeRequest, BillingAccountStatus, PaymentMethod, InvoiceStatus, BillingInvoice, BillingAccount, BillingView, BillingChangeResponse, BillingDocumentKind, BillingDocumentStatus, BillingDocumentProfile, BillingDocumentFormat, BillingDocument, BillingDocumentList, BillingDocumentFileRole, BillingDocumentDetail, BillingDocumentFileQuery, BillingIssuer, BillingChargeInvoice, BillingCharge, ChargePayRequest, } from './billing.js';
|
|
67
|
+
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingInvoicePdfQuery, billingAccount, billingView, billingChangeResponse, billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery, billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
68
|
+
export type { PayerKind, BillingCycle, VatTreatment, PayerRefusalRule, VatDecision, ChargeAmounts, BillingState, QuoteLine, CheckoutQuote, BillingAddress, BillingDetails, CheckoutRequest, CheckoutResponse, CheckoutStatus, VatIdStatus, VatIdCheckRequest, VatIdCheckResponse, BillingChangeRequest, BillingCancelRequest, BillingDetailsUpdate, PaymentMethodKind, PaymentMethodChangeRequest, BillingAccountStatus, PaymentMethod, InvoiceStatus, BillingInvoice, BillingInvoicePdfQuery, BillingAccount, BillingView, BillingChangeResponse, BillingDocumentKind, BillingDocumentStatus, BillingDocumentProfile, BillingDocumentFormat, BillingDocument, BillingDocumentList, BillingDocumentFileRole, BillingDocumentDetail, BillingDocumentFileQuery, BillingIssuer, BillingChargeInvoice, BillingCharge, ChargePayRequest, } from './billing.js';
|
|
69
69
|
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
70
70
|
export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
|
|
71
71
|
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, billingDecisionDisplayRequest, confirmationProof, billingDecisionAmounts, billingDecisionPeriod, billingDecisionSnapshot, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentDraft, purchaseIntentPaymentStarted, purchaseIntentAcceptedWithoutPayment, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ export { planId, PLAN_ORDER, planLimitKey, planLimits, planFeature, planFeatures
|
|
|
77
77
|
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
78
78
|
export { ianaTimeZones } from './iana-time-zones.js';
|
|
79
79
|
// 2026-10-04 — billing through Mollie (#104).
|
|
80
|
-
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse,
|
|
80
|
+
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingInvoicePdfQuery, billingAccount, billingView, billingChangeResponse,
|
|
81
81
|
// 2026-10-19 — Lexware billing documents (fleetless/fleetless#544).
|
|
82
82
|
billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery,
|
|
83
83
|
// 2026-10-19 — the Lexware issuer cutover (fleetless/fleetless#327).
|
package/dist/jobs.js
CHANGED
|
@@ -57,7 +57,7 @@ export const job = z.object({
|
|
|
57
57
|
description: 'The action or service this job is running, as the published configuration exposes it. One slug carries one job at a time, so every observer of that slug sees the same one.',
|
|
58
58
|
}),
|
|
59
59
|
state: jobState.meta({
|
|
60
|
-
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
|
|
60
|
+
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.',
|
|
61
61
|
}),
|
|
62
62
|
origin: jobOrigin.meta({
|
|
63
63
|
description: "Who started this job. `fleetless` for everything minted by the cloud; `external` for a goal the bridge found active on a published action without having sent it — no parameters, no starter, never written to `job_runs`.",
|
|
@@ -263,7 +263,7 @@ export const jobRun = z.object({
|
|
|
263
263
|
description: 'Whether the slug was an `action` or a `service`.',
|
|
264
264
|
}),
|
|
265
265
|
state: jobState.meta({
|
|
266
|
-
description: 'How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final
|
|
266
|
+
description: 'How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `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 run or a deleted robot\'s run as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final.',
|
|
267
267
|
}),
|
|
268
268
|
started_at: z.iso.datetime().meta({
|
|
269
269
|
description: 'When the run started, as an ISO 8601 timestamp. Runs are listed and filtered by this instant.',
|
package/dist/protocol.d.ts
CHANGED
|
@@ -778,8 +778,8 @@ export type BridgeJobUpdate = z.infer<typeof bridgeJobUpdate>;
|
|
|
778
778
|
* **`error` is optional and, when present, applies to every job named in
|
|
779
779
|
* `job_ids`.** A vanished action server is discovered once, by the bridge's
|
|
780
780
|
* own liveness check on that one action, so a frame naming several jobs at
|
|
781
|
-
* once always shares the same cause.
|
|
782
|
-
* `lost` with
|
|
781
|
+
* once always shares the same cause. Without `error`, the cloud settles each
|
|
782
|
+
* job `lost` with the generic `job_lost` error code; explicit causes are kept.
|
|
783
783
|
*/
|
|
784
784
|
export declare const bridgeJobLost: z.ZodObject<{
|
|
785
785
|
type: z.ZodLiteral<"job_lost">;
|
|
@@ -1073,6 +1073,10 @@ export declare const bridgeAssetProgress: z.ZodObject<{
|
|
|
1073
1073
|
used_bytes: z.ZodNumber;
|
|
1074
1074
|
size_bytes: z.ZodNumber;
|
|
1075
1075
|
}, z.core.$strip>>>;
|
|
1076
|
+
file_limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1077
|
+
max_bytes: z.ZodNumber;
|
|
1078
|
+
size_bytes: z.ZodNullable<z.ZodNumber>;
|
|
1079
|
+
}, z.core.$strip>>>;
|
|
1076
1080
|
}, z.core.$strip>>;
|
|
1077
1081
|
state: z.ZodEnum<{
|
|
1078
1082
|
running: "running";
|
package/dist/protocol.js
CHANGED
|
@@ -605,8 +605,8 @@ export const bridgeJobUpdate = z.object({
|
|
|
605
605
|
* **`error` is optional and, when present, applies to every job named in
|
|
606
606
|
* `job_ids`.** A vanished action server is discovered once, by the bridge's
|
|
607
607
|
* own liveness check on that one action, so a frame naming several jobs at
|
|
608
|
-
* once always shares the same cause.
|
|
609
|
-
* `lost` with
|
|
608
|
+
* once always shares the same cause. Without `error`, the cloud settles each
|
|
609
|
+
* job `lost` with the generic `job_lost` error code; explicit causes are kept.
|
|
610
610
|
*/
|
|
611
611
|
export const bridgeJobLost = z.object({
|
|
612
612
|
type: z.literal('job_lost'),
|
package/dist/routes.js
CHANGED
|
@@ -15,7 +15,7 @@ import { MCP_APP_PATHS, mcpRobotDatasheet, mcpRolePreviewResponse } from './mcp.
|
|
|
15
15
|
import { authorizationServerMetadata, dynamicClientRegistrationRequest, dynamicClientRegistrationResponse, oauthAuthorizeQuery, oauthRedirectResponse, oauthTokenRequest, oauthTokenResponse, protectedResourceMetadata, } from './oauth.js';
|
|
16
16
|
import { adminPlanChangeRequest, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse } from './plans.js';
|
|
17
17
|
import { supportRenewFailRequest, supportTokenRequest, supportTokenResponse } from './support.js';
|
|
18
|
-
import { purchaseIntentLookupQuery, purchaseIntentConfirmRequest, billingDecisionDisplayRequest, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseIntentResponse, invoicePayRequest, billingCancelRequest, billingChangeRequest, billingChangeResponse, billingDetailsUpdate, billingDocumentDetail, billingDocumentFileQuery, billingDocumentList, billingView, chargePayRequest, checkoutRequest, checkoutResponse, checkoutStatus, paymentMethodChangeRequest, vatIdCheckRequest, vatIdCheckResponse, } from './billing.js';
|
|
18
|
+
import { purchaseIntentLookupQuery, purchaseIntentConfirmRequest, billingDecisionDisplayRequest, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseIntentResponse, invoicePayRequest, billingCancelRequest, billingChangeRequest, billingChangeResponse, billingDetailsUpdate, billingInvoicePdfQuery, billingDocumentDetail, billingDocumentFileQuery, billingDocumentList, billingView, chargePayRequest, checkoutRequest, checkoutResponse, checkoutStatus, paymentMethodChangeRequest, vatIdCheckRequest, vatIdCheckResponse, } from './billing.js';
|
|
19
19
|
import { cameraListResponse, cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, configDraftResponse, configVersionResponse, configVersionsResponse, createRobotRequest, createRobotResponse, datapointListResponse, datapointValue, exposureListResponse, fetchTypesRequest, fetchTypesResponse, historyQuery, historyResponse, introspectionResponse, invokeOrServiceResponse, invokeRequest, jobResponse, liveSessionResponse, orgHealthQuery, orgLatencyQuery, orgLatencyResponse, orgQuotaUsage, orgUsageQuery, orgUsageResponse, patchRobotRequest, patchRobotResponse, publishConfigResponse, publishRequest, putConfigDraftRequest, putRobotDetailsRequest, putRobotDetailsResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, releaseLiveQuery, renameSlugRequest, renameSlugResponse, robotDeleteQuery, resourceHealthListResponse, robotDeletionSummary, robotDetailResponse, robotJobsResponse, robotListResponse, slugUsageResponse, snapshotMetaResponse, typesResponse, } from './rest.js';
|
|
20
20
|
export const ROUTE_SECTIONS = [
|
|
21
21
|
{ id: 'health', title: 'Health' },
|
|
@@ -3032,7 +3032,7 @@ export const ROUTES = [
|
|
|
3032
3032
|
params: [], query: null, request: checkoutRequest, response: checkoutResponse,
|
|
3033
3033
|
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'plan_limit', 'target_state_conflict', 'rate_limited', ...BILLING_OFF, ...MOLLIE],
|
|
3034
3034
|
transport: 'http',
|
|
3035
|
-
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
|
|
3035
|
+
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.",
|
|
3036
3036
|
},
|
|
3037
3037
|
{
|
|
3038
3038
|
method: 'GET', path: '/api/billing/intents', section: 'billing',
|
|
@@ -3058,7 +3058,7 @@ export const ROUTES = [
|
|
|
3058
3058
|
params: [{ name: 'id', description: 'The intent ID returned by the start or lookup response.' }],
|
|
3059
3059
|
query: null, request: purchaseIntentConfirmRequest, response: purchaseIntentResponse,
|
|
3060
3060
|
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'not_found', 'target_state_conflict', 'plan_limit', 'rate_limited', ...BILLING_OFF, ...MOLLIE], transport: 'http',
|
|
3061
|
-
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.',
|
|
3061
|
+
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.',
|
|
3062
3062
|
},
|
|
3063
3063
|
{
|
|
3064
3064
|
method: 'GET', path: '/api/billing/checkout/:id', section: 'billing',
|
|
@@ -3095,7 +3095,7 @@ export const ROUTES = [
|
|
|
3095
3095
|
params: [], query: null, request: billingChangeRequest, response: billingChangeResponse,
|
|
3096
3096
|
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'plan_limit', 'target_state_conflict', ...BILLING_OFF, ...MOLLIE],
|
|
3097
3097
|
transport: 'http',
|
|
3098
|
-
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.",
|
|
3098
|
+
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.",
|
|
3099
3099
|
},
|
|
3100
3100
|
{
|
|
3101
3101
|
method: 'POST', path: '/api/billing/payment-method', section: 'billing',
|
|
@@ -3124,13 +3124,14 @@ export const ROUTES = [
|
|
|
3124
3124
|
},
|
|
3125
3125
|
{
|
|
3126
3126
|
method: 'GET', path: '/api/billing/invoices/:id/pdf', section: 'billing',
|
|
3127
|
-
summary: "Downloads
|
|
3127
|
+
summary: "Downloads an invoice's original or cancellation PDF.",
|
|
3128
3128
|
audience: 'developer', auth: 'developer', rateLimited: false, ownerTier: true, status: 200,
|
|
3129
3129
|
params: [{ name: 'id', description: 'The invoice id, from `billingInvoice.id` in `GET /api/billing`\'s `invoices`.' }],
|
|
3130
|
-
query:
|
|
3131
|
-
errors: [...DEVELOPER_GUARD, 'tier_required', 'not_found'], transport: 'http',
|
|
3132
|
-
notes: '
|
|
3133
|
-
'
|
|
3130
|
+
query: billingInvoicePdfQuery, request: null, response: null, contentType: 'application/pdf',
|
|
3131
|
+
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'not_found'], transport: 'http',
|
|
3132
|
+
notes: 'Owner-only. Omitted `kind` or `kind=invoice` returns the original PDF, rendered once with `pdfkit` when issued and stored as bytes. ' +
|
|
3133
|
+
'`kind=cancellation` returns the stored cancellation PDF for this same invoice id; no read renders a new PDF. ' +
|
|
3134
|
+
'`404 not_found` for an unknown id, one from another org, or a missing cancellation number or PDF. This reads historical Cloud ' +
|
|
3134
3135
|
"invoices only: a due charge has no PDF of its own here — its eventual Lexware invoice is a document, read through " +
|
|
3135
3136
|
'`GET /api/billing/documents/:id/file`.',
|
|
3136
3137
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0-next.1",
|
|
4
4
|
"description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Dehne Robotik GmbH",
|