@fleetless/contracts 16.1.0-next.2 → 17.0.0-next.2

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/dist/index.d.ts CHANGED
@@ -91,8 +91,8 @@ export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCou
91
91
  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';
92
92
  export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
93
93
  export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
94
- 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, formatEur, C4_ACTIONS, C4_TEXT_IDS, c4ActionOf, c4Declaration, storedBillingDecisionSnapshot, checkoutStartResponse, checkoutDraftResponse, checkoutOpenDetails, viesUnavailableDetails, } from './billing.js';
95
- export type { PurchaseBillingDetails, PurchaseOperation, PurchaseQuote, PurchaseIntent, PurchaseIntentDraft, PurchaseIntentPaymentStarted, PurchaseIntentAcceptedWithoutPayment, BillingDecisionDisplayRequest, ConfirmationProof, BillingDecisionAmounts, BillingDecisionPeriod, BillingDecisionSnapshot, BillingDecisionDisplayResponse, PlanChangePrepareResponse, PurchaseIntentLookupQuery, PurchaseIntentConfirmRequest, PurchaseConflictDetails, InvoicePayRequest, PurchaseIntentResponse, ViesVerdict, ViesPendingReason, C4Action, C4TextId, C4DeclarationText, C4DeclarationValues, C4Decision, C4From, StoredBillingDecisionSnapshot, CheckoutStartResponse, CheckoutDraftResponse, CheckoutOpenDetails, ViesUnavailableDetails, } from './billing.js';
94
+ 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, viesOutage, formatEur, C4_ACTIONS, C4_TEXT_IDS, c4ActionOf, c4Declaration, storedBillingDecisionSnapshot, checkoutStartResponse, checkoutDraftResponse, checkoutOpenDetails, viesUnavailableDetails, } from './billing.js';
95
+ export type { PurchaseBillingDetails, PurchaseOperation, PurchaseQuote, PurchaseIntent, PurchaseIntentDraft, PurchaseIntentPaymentStarted, PurchaseIntentAcceptedWithoutPayment, BillingDecisionDisplayRequest, ConfirmationProof, BillingDecisionAmounts, BillingDecisionPeriod, BillingDecisionSnapshot, BillingDecisionDisplayResponse, PlanChangePrepareResponse, PurchaseIntentLookupQuery, PurchaseIntentConfirmRequest, PurchaseConflictDetails, InvoicePayRequest, PurchaseIntentResponse, ViesVerdict, ViesPendingReason, ViesOutage, C4Action, C4TextId, C4DeclarationText, C4DeclarationValues, C4Decision, C4From, StoredBillingDecisionSnapshot, CheckoutStartResponse, CheckoutDraftResponse, CheckoutOpenDetails, ViesUnavailableDetails, } from './billing.js';
96
96
  export { COLLECTIONS_FORMAT_VERSION, COLLECTION_RESERVED_KEYS, COLLECTION_LIMITS, collectionKey, collectionBinding, collectionFieldType, collectionField, collectionAccessValue, collectionAccess, collectionDefinition, collectionsDocument, } from './collections.js';
97
97
  export type { CollectionKey, CollectionBinding, CollectionFieldType, CollectionField, CollectionAccessValue, CollectionAccess, CollectionDefinition, CollectionsDocument, } from './collections.js';
98
98
  export { roleCollectionRights } from './collections-rights.js';
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocum
102
102
  // 2026-10-19 — the Lexware issuer cutover (fleetless/fleetless#327).
103
103
  billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
104
104
  export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
105
- 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, formatEur, C4_ACTIONS, C4_TEXT_IDS, c4ActionOf, c4Declaration, storedBillingDecisionSnapshot, checkoutStartResponse, checkoutDraftResponse, checkoutOpenDetails, viesUnavailableDetails, } from './billing.js';
105
+ 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, viesOutage, formatEur, C4_ACTIONS, C4_TEXT_IDS, c4ActionOf, c4Declaration, storedBillingDecisionSnapshot, checkoutStartResponse, checkoutDraftResponse, checkoutOpenDetails, viesUnavailableDetails, } from './billing.js';
106
106
  export { COLLECTIONS_FORMAT_VERSION, COLLECTION_RESERVED_KEYS, COLLECTION_LIMITS, collectionKey, collectionBinding, collectionFieldType, collectionField, collectionAccessValue, collectionAccess, collectionDefinition, collectionsDocument, } from './collections.js';
107
107
  export { roleCollectionRights } from './collections-rights.js';
108
108
  export { collectionJsonTemplateName, COLLECTION_JSON_TEMPLATES, parseDisplayTemplate } from './collections-templates.js';
package/dist/plans.d.ts CHANGED
@@ -197,21 +197,8 @@ export declare function yearlyEurCents(monthEurCents: number): number;
197
197
  export declare function pricesFromEurMonth(eurMonthCents: number): PlanPrices;
198
198
  /**
199
199
  * The catalogue: limits, prices and features as the decision table
200
- * (2026-09-30) states them, with two later changes. The audit export is on
201
- * every plan, as the developer docs (`plans-and-limits.md`) and the cloud
202
- * have it. And fleetless/fleetless#1175 (2026-11-19) made Pro hold a fleet
203
- * (ten robots and apps, fifteen seats, 500 app users, 500 hours of live
204
- * video), raised Plus to five seats and 100 app users, put a developer's
205
- * own two-factor (`two_factor`) on every plan, and set the prices to 30 €
206
- * and 150 € a month.
207
- *
208
- * **Asset storage is the same on every sold plan**, one gigabyte per robot:
209
- * what a robot's meshes need depends on its CAD, not on the plan, so it is
210
- * no plan differentiator. An organization that needs more gets it as an
211
- * override (`planOverrides.asset_bytes_per_robot`), and no plan below
212
- * Enterprise raises it — a consumer that names the way up from this limit
213
- * must not read it off `nextPlanRaising`, which answers `enterprise`.
214
- *
200
+ * (2026-09-30) states them, except that the audit export is on every plan,
201
+ * as the developer docs (`plans-and-limits.md`) and the cloud have it.
215
202
  * Live video is in milliseconds, asset storage in decimal bytes per robot;
216
203
  * Enterprise's limits and features are `null` / `true` throughout because
217
204
  * they are set by contract, not read off this table.
package/dist/plans.js CHANGED
@@ -138,21 +138,8 @@ export function pricesFromEurMonth(eurMonthCents) {
138
138
  }
139
139
  /**
140
140
  * The catalogue: limits, prices and features as the decision table
141
- * (2026-09-30) states them, with two later changes. The audit export is on
142
- * every plan, as the developer docs (`plans-and-limits.md`) and the cloud
143
- * have it. And fleetless/fleetless#1175 (2026-11-19) made Pro hold a fleet
144
- * (ten robots and apps, fifteen seats, 500 app users, 500 hours of live
145
- * video), raised Plus to five seats and 100 app users, put a developer's
146
- * own two-factor (`two_factor`) on every plan, and set the prices to 30 €
147
- * and 150 € a month.
148
- *
149
- * **Asset storage is the same on every sold plan**, one gigabyte per robot:
150
- * what a robot's meshes need depends on its CAD, not on the plan, so it is
151
- * no plan differentiator. An organization that needs more gets it as an
152
- * override (`planOverrides.asset_bytes_per_robot`), and no plan below
153
- * Enterprise raises it — a consumer that names the way up from this limit
154
- * must not read it off `nextPlanRaising`, which answers `enterprise`.
155
- *
141
+ * (2026-09-30) states them, except that the audit export is on every plan,
142
+ * as the developer docs (`plans-and-limits.md`) and the cloud have it.
156
143
  * Live video is in milliseconds, asset storage in decimal bytes per robot;
157
144
  * Enterprise's limits and features are `null` / `true` throughout because
158
145
  * they are set by contract, not read off this table.
@@ -175,7 +162,7 @@ export const PLANS = {
175
162
  },
176
163
  features: {
177
164
  app_mcp: false,
178
- two_factor: true,
165
+ two_factor: false,
179
166
  require_two_factor: false,
180
167
  app_oidc: false,
181
168
  hosted_logo: false,
@@ -189,12 +176,12 @@ export const PLANS = {
189
176
  id: 'plus',
190
177
  name: 'Plus',
191
178
  limits: {
192
- seats: 5,
179
+ seats: 3,
193
180
  robots: 3,
194
181
  apps: 3,
195
- app_users: 100,
182
+ app_users: 25,
196
183
  live_video_ms_per_month: 360_000_000,
197
- asset_bytes_per_robot: 1_000_000_000,
184
+ asset_bytes_per_robot: 2_000_000_000,
198
185
  history_days: 30,
199
186
  audit_days: 30,
200
187
  collection_records: 250_000,
@@ -209,19 +196,19 @@ export const PLANS = {
209
196
  audit_export: true,
210
197
  addons: false,
211
198
  },
212
- prices: pricesFromEurMonth(3000),
199
+ prices: pricesFromEurMonth(2900),
213
200
  support: 'email',
214
201
  },
215
202
  pro: {
216
203
  id: 'pro',
217
204
  name: 'Pro',
218
205
  limits: {
219
- seats: 15,
220
- robots: 10,
221
- apps: 10,
222
- app_users: 500,
223
- live_video_ms_per_month: 1_800_000_000,
224
- asset_bytes_per_robot: 1_000_000_000,
206
+ seats: 5,
207
+ robots: 5,
208
+ apps: 5,
209
+ app_users: 50,
210
+ live_video_ms_per_month: 900_000_000,
211
+ asset_bytes_per_robot: 3_000_000_000,
225
212
  history_days: 90,
226
213
  audit_days: 90,
227
214
  collection_records: 1_000_000,
@@ -236,7 +223,7 @@ export const PLANS = {
236
223
  audit_export: true,
237
224
  addons: true,
238
225
  },
239
- prices: pricesFromEurMonth(15000),
226
+ prices: pricesFromEurMonth(14900),
240
227
  support: 'priority',
241
228
  },
242
229
  enterprise: {
package/dist/routes.js CHANGED
@@ -3211,6 +3211,9 @@ export const ROUTES = [
3211
3211
  'Cache-Control: no-store: show `display.snapshot.declaration.text` directly above one button labelled `action_label`; that one ' +
3212
3212
  'click is `POST /api/billing/intents/:id/confirm` with the display\'s `confirmation_proof`. `vies_unavailable`, `invalid_vat_id` ' +
3213
3213
  'and `refused` answer 200 and nothing is stored but the draft: no intent, no account, no retry in the background; check again. ' +
3214
+ '`vies_unavailable` with `reason: vies_unavailable` carries `vies_outage`: `scope: member_state` when the VAT register of ' +
3215
+ '`country` does not answer VIES (a register VIES reports as down answers at once, not after the 15 seconds), `scope: vies` when ' +
3216
+ 'VIES itself does not. ' +
3214
3217
  '`held` (`issuer_cutover_in_progress`) only while an issuer cutover runs, for minutes; try again. Lexware never holds a checkout: ' +
3215
3218
  'its contact and invoice follow the payment. Use a fresh operation_key per press; the same key and input answer 200 with the same ' +
3216
3219
  'intent (`payment_started` with its hosted checkout once confirmed), without another Mollie payment; changed input conflicts. ' +
@@ -3235,7 +3238,7 @@ export const ROUTES = [
3235
3238
  audience: 'developer', auth: 'developer', rateLimited: false, ownerTier: true, status: 200,
3236
3239
  params: [], query: purchaseIntentLookupQuery, request: null, response: purchaseIntentResponse,
3237
3240
  errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'not_found'], transport: 'http',
3238
- notes: 'Supply exactly one of operation_key or intent_id and the expected operation. Scope lookup to the authenticated owner and org; unknown, foreign-org or mismatched-operation intents return 404 without disclosure. Repeating a lookup after restart or lost response returns the same intent/payment identity and, for a paid change, its billing result. A proof is never returned here; a still-eligible decision needs a fresh C.4 display and explicit Owner click.',
3241
+ notes: 'Supply exactly one of operation_key or intent_id and the expected operation. Scope lookup to the authenticated owner and org; unknown, foreign-org or mismatched-operation intents return 404 without disclosure. Repeating a lookup after restart or lost response returns the same intent/payment identity and, for a paid change, its billing result. A proof is never returned here; a still-eligible decision needs a fresh C.4 display and explicit Owner click. An `awaiting_vies` intent with `reason: vies_unavailable` carries `vies_outage` as the hourly retry last found it: `scope: member_state` for the VAT register of `country`, `scope: vies` for VIES itself.',
3239
3242
  },
3240
3243
  {
3241
3244
  method: 'POST', path: '/api/billing/intents/:id/display', section: 'billing',
@@ -3293,7 +3296,7 @@ export const ROUTES = [
3293
3296
  audience: 'developer', auth: 'developer', rateLimited: true, ownerTier: true, status: 200,
3294
3297
  params: [], query: null, request: vatIdCheckRequest, response: vatIdCheckResponse,
3295
3298
  errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'rate_limited'], transport: 'http',
3296
- notes: "Reports status and optional display name only; full evidence stays in protected Finance storage. valid with a missing identifier remains pending/vies_identifier_missing. unverified or unavailable remains pending without zero rating or payment. A form check never authorizes a later charge; Cloud binds current evidence to the buyer and quote at confirmation. Rate limited on billing.vat_check.",
3299
+ notes: "Reports status and optional display name only; full evidence stays in protected Finance storage. valid with a missing identifier remains pending/vies_identifier_missing. unverified or unavailable remains pending without zero rating or payment. pending/vies_unavailable carries `vies_outage`: `scope: member_state` when the VAT register of `country` does not answer VIES, which answers at once when VIES reports the register as down, and `scope: vies` when VIES itself does not answer within the 15 seconds. A form check never authorizes a later charge; Cloud binds current evidence to the buyer and quote at confirmation. Rate limited on billing.vat_check.",
3297
3300
  },
3298
3301
  {
3299
3302
  method: 'PATCH', path: '/api/billing/details', section: 'billing',
@@ -3315,7 +3318,9 @@ export const ROUTES = [
3315
3318
  'acceptance. The change is decided in the request and never waits: no `awaiting_vies`, and Lexware never holds it; `held` ' +
3316
3319
  '(`issuer_cutover_in_progress`) only while an issuer cutover runs. VIES runs only when the billing details changed since the last ' +
3317
3320
  'decision or the recorded VAT treatment is blocked, and a change that charges nothing never calls it. When VIES does not answer: ' +
3318
- '409 target_state_conflict with `viesUnavailableDetails` (`field: billing.vat_id`, `rule: vies_unavailable`), nothing stored. A ' +
3321
+ '409 target_state_conflict with `viesUnavailableDetails` (`field: billing.vat_id`, `rule: vies_unavailable`), nothing stored; with ' +
3322
+ '`reason: vies_unavailable` it carries `vies_outage` (`scope: member_state` for the VAT register of `country`, `scope: vies` for ' +
3323
+ 'VIES itself). A ' +
3319
3324
  'change charging nothing while the recorded VAT treatment is unresolved: 409 target_state_conflict with `{ field: billing.vat_id, ' +
3320
3325
  'rule: purchase_eligibility_pending }`. An eligible Owner obtains a C.4 display (`POST /api/billing/intents/:id/display`) and ' +
3321
3326
  'confirms with one click on its `action_label`. Confirmation may return accepted_no_payment with charged: null and no provider ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/contracts",
3
- "version": "16.1.0-next.2",
3
+ "version": "17.0.0-next.2",
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",