@zinn-digital/sdk 0.1.1985 → 0.1.1987
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/generated/schema.d.ts +18 -4
- package/package.json +1 -1
|
@@ -30556,7 +30556,7 @@ export interface paths {
|
|
|
30556
30556
|
*
|
|
30557
30557
|
* ⭐ These are the decisions `docs/127` §2 took on 2026-08-15 (D1–D5), expressed as rows a customer can buy. They are **orthogonal to the machine size**: a customer picks a size *and* an add-on, and the two multiply rather than choosing between each other. What the API calls a `ComputeTier` elsewhere is the SIZE; this is the software.
|
|
30558
30558
|
*
|
|
30559
|
-
* ⛔ **An empty list is the correct answer on the resold range**, not an error. There the supplier installs its own managed image and exposes no `user_data` seam, so there is no add-on question to answer — and rendering a picker with one disabled option would imply the others are coming.
|
|
30559
|
+
* ⛔ **An empty list is the correct answer on the resold range**, not an error. There the supplier installs its own managed image and exposes no `user_data` seam, so there is no add-on question to answer — and rendering a picker with one disabled option would imply the others are coming. On a range we build that is not Zinn® Cloud (`aws_cloud`, `gcp_cloud`) the list holds only the `managed` row (Server Care, owner 2026-11-22): care is delivered over SSH by our care agent and needs no supplier seam.
|
|
30560
30560
|
*
|
|
30561
30561
|
* ⛔ **A row absent from this list in one currency is not sold in that currency**, never converted at today's rate: a machine and the add-on beside it must not be quoted from two different sources, or the same basket costs two different amounts on two days. Requires `sites.view`.
|
|
30562
30562
|
*/
|
|
@@ -44555,7 +44555,7 @@ export interface paths {
|
|
|
44555
44555
|
put?: never;
|
|
44556
44556
|
/**
|
|
44557
44557
|
* Pay a partner's domain order on our checkout. Unauthenticated.
|
|
44558
|
-
* @description With an empty body or `{"rail": …}`: the chosen rail is opened. Card gives a card-setup `client_token` (`status: setup_required`, nothing charged); PayPal gives a `paypal_order_id` for the wallet overlay (`status: paypal_approval_required`, nothing charged); crypto gives a `redirect_url` to the vendor invoice. With `setup_intent_id`, after the card form is confirmed: the card is re-read from the gateway, refused unless it belongs to this order's organization, recorded, and charged. With `paypal_order_id`, after the buyer approved: PayPal is asked to capture — the browser is never believed. When the order is paid, `return_url` is the partner's URL to send the browser to. ⛔ Nothing here decides an order is paid — the capture and the gateway webhook do, as for every order. A refusal the payer can act on is a `409` carrying its sentence.
|
|
44558
|
+
* @description With an empty body or `{"rail": …}`: the chosen rail is opened. Card gives a card-setup `client_token` (`status: setup_required`, nothing charged); PayPal gives a `paypal_order_id` for the wallet overlay (`status: paypal_approval_required`, nothing charged); crypto gives a `redirect_url` to the vendor invoice. With `setup_intent_id`, after the card form is confirmed: the card is re-read from the gateway, refused unless it belongs to this order's organization, recorded, and charged. With `paypal_order_id`, after the buyer approved: PayPal is asked to capture — the browser is never believed. When the order is paid, `return_url` is the partner's URL to send the browser to. ⛔ Nothing here decides an order is paid — the capture and the gateway webhook do, as for every order. A refusal the payer can act on is a `409` carrying its sentence. A decline answers `200` with `status: payment_failed`, its `reason_code`, the `reason_message` for it in `locale`, and the other `methods` the order can be paid on.
|
|
44559
44559
|
*/
|
|
44560
44560
|
post: operations["startPartnerPayment"];
|
|
44561
44561
|
delete?: never;
|
|
@@ -99141,6 +99141,11 @@ export interface components {
|
|
|
99141
99141
|
* ⛔ Required — `422` — on any range that publishes images, and meaningless on one that does not. It is not marked required here because which ranges publish them is a live provider fact a schema cannot know. ⛔⛔ Check the image's `architecture` against the chosen size: ARM and x86 images are separate entries with the **same name**, and a mismatch is refused *after* the customer has paid.
|
|
99142
99142
|
*/
|
|
99143
99143
|
image?: string;
|
|
99144
|
+
/**
|
|
99145
|
+
* @description Server Care on a pay-by-the-hour machine (`orderMeteredComputeServer`; a monthly machine takes it on its cart line). The care's monthly price joins the meter's hourly rate (`ceil((plan + care) / 730)` an hour, never above the month) from the machine's first care report; nothing is charged for care before it connects. Refused `422` when care is not sold in the organisation's billing currency, and then no machine is recorded.
|
|
99146
|
+
* @default false
|
|
99147
|
+
*/
|
|
99148
|
+
managed_care: boolean;
|
|
99144
99149
|
/**
|
|
99145
99150
|
* @description CLOUD-U2 (P3-007). How the server is run: `panel` = With the Zinn® panel (our free web stack converged on it and managed from the dashboard), `bare` = Bare server, I manage it. Omitted or blank = `bare` (R2: the panel is only ever given when the order names it; the dashboard's order form always sends the choice). An explicit `panel` that cannot run (Windows, under 2 GB or an unknown size, a range we do not hold the account for, or with a Docker or Kubernetes `blueprint`) is refused `422` (`refusal.compute.panel*`) and nothing is charged.
|
|
99146
99151
|
* @enum {string}
|
|
@@ -100423,7 +100428,7 @@ export interface components {
|
|
|
100423
100428
|
return_url: string;
|
|
100424
100429
|
};
|
|
100425
100430
|
PartnerEvent: {
|
|
100426
|
-
/** @description For `order.*`: `order_id`, `human_ref`, `status`, `previous_status`, `currency`, `total_minor`, `reason` and `
|
|
100431
|
+
/** @description For `order.*`: `order_id`, `human_ref`, `status`, `previous_status`, `currency`, `total_minor`, `reason`, `reason_code` and `reason_message`. On `order.partially_fulfilled`, `reason` is a sentence safe to show the customer and `reason_code` its type (`delegation_unknown`, `registrant_local_presence`, `transfer_rejected`, `transfer_auth_code`, `transfer_pending`, or `delivery_failed`); both are "" when there is none. On `order.payment_failed`, `reason` is the payment provider's own text (unchanged), `reason_code` the decline class (`bank_declined`, `insufficient_funds`, `limit`, `authentication`, `card_expired`, `card_unusable`, `card_details`, `processing`, `unknown`, …) and `reason_message` the sentence to show your customer for that class, in the order owner's language — it never blames the customer's bank for a refusal that was not the bank's. `reason_message` is "" on every other event. For `partner.domain_*` (`partner.domain_registered`, `partner.domain_registration_failed`, `partner.domain_transferred_in`, `partner.domain_transfer_failed`): also `external_id` and `order_id` — the id of the order YOU placed for that domain, or `null` when the domain has none (or it was not placed through your API). For `domain.*`: `domain_id`, `fqdn`, `status`, and where known `previous_status`, `expires_at`, `nameservers` — except `domain.registrant_email_flagged` and `domain.registrant_email_confirmed`, which carry `registrant_email`, `deadline_at`, `suspended`, `domain_count` and `domains` (see `reportPartnerRegistrantEmailReminder`). */
|
|
100427
100432
|
data: {
|
|
100428
100433
|
[key: string]: unknown;
|
|
100429
100434
|
};
|
|
@@ -100818,10 +100823,16 @@ export interface components {
|
|
|
100818
100823
|
action_kind: string;
|
|
100819
100824
|
/** @description A card-form client secret for the browser SDK, when one is needed. */
|
|
100820
100825
|
client_token: string;
|
|
100826
|
+
/** @description On `payment_failed`, the rails this order can still be paid on (the same list as `GET` → `rails`), so the payer can try another way; empty otherwise. */
|
|
100827
|
+
methods: string[];
|
|
100821
100828
|
/** @description The PayPal order the browser's SDK attaches to, on the PayPal rail. Minted by us — an id a client invents is refused by the gateway, not honoured. */
|
|
100822
100829
|
paypal_order_id: string;
|
|
100823
100830
|
/** @description Which rail this step belongs to (`stripe`, `paypal`, `nowpayments`). */
|
|
100824
100831
|
rail: string;
|
|
100832
|
+
/** @description On `payment_failed`, the decline class of the newest failed attempt (`bank_declined`, `insufficient_funds`, `limit`, `authentication`, `card_expired`, `card_unusable`, `card_details`, `processing`, `unknown`, …); "" otherwise. */
|
|
100833
|
+
reason_code: string;
|
|
100834
|
+
/** @description On `payment_failed`, the sentence to show the payer for `reason_code`, in the `locale` the request named. It names the bank's reason only when the bank gave one and never blames the bank for a refusal that was not the bank's; "" otherwise. */
|
|
100835
|
+
reason_message: string;
|
|
100825
100836
|
/** @description Where to send the browser to approve the payment on a rail that finishes off-site — a crypto invoice today. Empty on the card and PayPal rails, both of which finish on this page. */
|
|
100826
100837
|
redirect_url: string;
|
|
100827
100838
|
/** @description The partner URL to send the browser to */
|
|
@@ -198717,7 +198728,10 @@ export interface operations {
|
|
|
198717
198728
|
};
|
|
198718
198729
|
startPartnerPayment: {
|
|
198719
198730
|
parameters: {
|
|
198720
|
-
query?:
|
|
198731
|
+
query?: {
|
|
198732
|
+
/** @description The language `reason_message` is written in (default `en`). */
|
|
198733
|
+
locale?: string;
|
|
198734
|
+
};
|
|
198721
198735
|
header?: never;
|
|
198722
198736
|
path: {
|
|
198723
198737
|
token: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1987",
|
|
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>",
|