@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/CHANGELOG.md CHANGED
@@ -9,33 +9,28 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
- ### Added
13
-
14
- - **`billingAccount.current_price`** (`GET /api/billing`,
15
- fleetless/fleetless#1175): what one period of the current plan costs the
16
- organization, `{ net_cents }`, at the price it agreed. The catalogue price
17
- and the agreed price differ once the catalogue changes, so a consumer shows
18
- this as the price of a billed organization and never reads it off `PLANS`.
19
- `null` when no agreed price is recorded for the current plan, cycle and
20
- add-ons. The field is always present.
21
-
22
12
  ### Changed
23
13
 
24
- - **The plan catalogue** (fleetless/fleetless#1175). `PLANS` keeps its shape
25
- and changes its values. Pro holds ten robots, ten apps, fifteen developer
26
- seats, 500 app users and 500 hours of live video a month
27
- (`live_video_ms_per_month` 1,800,000,000). Plus holds five seats and 100
28
- app users. `features.two_factor` is `true` on Basic, so
29
- `requiredPlanFor('two_factor')` answers `basic`; requiring it for the
30
- organization (`require_two_factor`) stays with Pro. Prices: Plus
31
- `eur_month` 3000 and `eur_year` 30600, Pro 15000 and 153000. Both yearly
32
- prices divide by twelve to the cent.
33
- - **`asset_bytes_per_robot` is 1,000,000,000 on Basic, Plus and Pro.** Asset
34
- storage is no plan differentiator any more. No plan below Enterprise
35
- raises it; an organization that needs more gets an override
36
- (`planOverrides.asset_bytes_per_robot`). A consumer that names the way up
37
- from this limit must not read it off `nextPlanRaising`, which answers
38
- `enterprise`.
14
+ - **BREAKING: `vies_unavailable` says which side of VIES was down**
15
+ (fleetless/fleetless#1181). A new `viesOutage` is
16
+ `{ scope: 'member_state' | 'vies', country }`: `member_state` when the VAT
17
+ register of `country` does not answer VIES, `vies` when VIES itself does
18
+ not. `country` is the billing address's country, so Greece is `GR`, never
19
+ VIES's `EL`. Every object that answers `reason: 'vies_unavailable'` now
20
+ carries it as a required `vies_outage`, and refuses it beside
21
+ `vies_unverified` and `vies_identifier_missing`, which are no outage:
22
+ `vatDecision` (`pending`), the purchase intent (`awaiting_vies`, in
23
+ `purchaseIntent`, `purchaseIntentDraft`, `purchaseIntentResponse` and
24
+ `checkoutResponse`), `checkoutStartResponse` (`vies_unavailable`),
25
+ `viesUnavailableDetails` and `vatIdCheckResponse` (`pending`). Each is a
26
+ union on `reason` now, so the rule is in the JSON Schema as well, and
27
+ `viesUnavailableDetails` has no `.shape` any more. These objects are strict:
28
+ a consumer on an older version rejects the new key, and a producer that
29
+ omits it no longer parses.
30
+ - **BREAKING: `vatFor` takes the outage with an `unavailable` verdict.**
31
+ `ViesVerdict`'s `unavailable` is `{ status: 'unavailable', outage }`, and
32
+ `vatFor` returns it as `vies_outage` on the pending decision. `invalid` and
33
+ `unverified` are unchanged.
39
34
 
40
35
  ## [16.0.0] — 2026-11-19
41
36