@zinn-digital/sdk 0.1.1958 → 0.1.1960
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.
|
@@ -117923,6 +117923,11 @@ export interface components {
|
|
|
117923
117923
|
/** @description The caller's own handle, echoed back. ⛔ Must be **unique** within the request — the response is matched by `ref` rather than by position, so duplicates would collapse and render one price for two products. A repeat is a 422 rather than a silent de-duplication. */
|
|
117924
117924
|
ref: string;
|
|
117925
117925
|
}[];
|
|
117926
|
+
/**
|
|
117927
|
+
* Format: uuid
|
|
117928
|
+
* @description Signed-in route only, optional (the public route ignores it). The caller's ACTIVE organisation, as the dashboard's org switcher scopes every read: the quote is rated on that org's stored billing country and VAT status. Honoured only when the caller is a member of it; any other id is ignored (never looked up, never a 403), so a quote can never reveal another organisation's country. Without it, a caller with more than one membership is rated as a guest (CARTVAT-1121).
|
|
117929
|
+
*/
|
|
117930
|
+
org_id?: string;
|
|
117926
117931
|
/** @description Absent means false. Which question is asked. `false` prices a BASKET exactly as its invoice will be rounded (VAT once per rate group, leftover cents by largest remainder), so the totals are what checkout charges: use it for a cart or checkout. `true` prices a LIST of independent items, each rated as its own one-item invoice, so an item shows the same cents whatever else is in the request: use it for a price list or plan table. The totals of a `per_item` quote are a sum of standalone prices, not a basket. Only a literal `true` enables it. */
|
|
117927
117932
|
per_item?: boolean;
|
|
117928
117933
|
/** @description Public route only (the signed-in route prices on the stored billing profile and ignores it). The VAT number the visitor typed at checkout. It needs `country` in the body. A number that is malformed, longer than 32 characters, sent without a country, or whose prefix names another country is never sent to the registry and answers `vat_check.status: not_confirmed` (the quote itself is not refused; the checkout refuses a mismatched prefix with a `422`). The **server** asks the VAT registry (3 second cut-off; answers are cached by a hash of country and number, a confirmation for 24 hours, anything else for 10 minutes; lookups are rate-limited per visitor and per cart) and prices on its own answer: the caller never states whether the number is valid. The answer comes back as `vat_check`. */
|
|
@@ -174488,7 +174493,7 @@ export interface operations {
|
|
|
174488
174493
|
/**
|
|
174489
174494
|
* @description One-time root access to the machine, required for any add-on whose `applies_at` is `running` or `running_reboot` and ignored for the rest.
|
|
174490
174495
|
*
|
|
174491
|
-
* ⛔⛔ **Write-only. Never echoed in a response, never logged, never recorded in an audit entry.** It is stored in Vault under a path scoped to this assignment and destroyed the moment the install reaches a terminal state. Supply `private_key` **or** `password
|
|
174496
|
+
* ⛔⛔ **Write-only. Never echoed in a response, never logged, never recorded in an audit entry.** It is stored in Vault under a path scoped to this assignment and destroyed the moment the install reaches a terminal state. Supply `private_key` **or** `password`, or send `{}` (P3-041, "sign in for me"): with the organisation's web terminal on, we sign in with its key as the machine's own account (sudo) and store no secret; with it off, `{}` is refused 422 before anything is stored or charged.
|
|
174492
174497
|
*/
|
|
174493
174498
|
access?: {
|
|
174494
174499
|
/** @description Root password. Accepted because much of this range is handed over with keys the customer holds and some have only ever set a password. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1960",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|