@zinn-digital/sdk 0.1.1984 → 0.1.1986

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.
@@ -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;
@@ -82098,6 +82098,11 @@ export interface components {
82098
82098
  CdnConfig: {
82099
82099
  /** @description Which CDN account serves this site, and whether its credential still works. ⛔ Always present — never omitted for "we do not know", because an absent object is read by a client as "nothing to show" (§2.44). The unknown states are carried *inside* it. */
82100
82100
  account: components["schemas"]["CdnAccount"];
82101
+ /**
82102
+ * @description True while the edge rules for this site (the bad and fake bot block included) are written to its zone but the zone is not live, because the domain's name servers do not point to us yet. Until they do, the rules serve no traffic; protection activates on its own once the name servers point to `zone_nameservers` (the platform re-checks every converge pass). False once the zone is live, and on a site with no zone. "Rule written" is not "rule serving".
82103
+ * @default false
82104
+ */
82105
+ bot_protection_waiting: boolean;
82101
82106
  /** @description ISO-4217 code the price_minor above is expressed in. */
82102
82107
  currency: string;
82103
82108
  /**
@@ -100418,7 +100423,7 @@ export interface components {
100418
100423
  return_url: string;
100419
100424
  };
100420
100425
  PartnerEvent: {
100421
- /** @description For `order.*`: `order_id`, `human_ref`, `status`, `previous_status`, `currency`, `total_minor`, `reason` and `reason_code`. 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. 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`). */
100426
+ /** @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`). */
100422
100427
  data: {
100423
100428
  [key: string]: unknown;
100424
100429
  };
@@ -100813,10 +100818,16 @@ export interface components {
100813
100818
  action_kind: string;
100814
100819
  /** @description A card-form client secret for the browser SDK, when one is needed. */
100815
100820
  client_token: string;
100821
+ /** @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. */
100822
+ methods: string[];
100816
100823
  /** @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. */
100817
100824
  paypal_order_id: string;
100818
100825
  /** @description Which rail this step belongs to (`stripe`, `paypal`, `nowpayments`). */
100819
100826
  rail: string;
100827
+ /** @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. */
100828
+ reason_code: string;
100829
+ /** @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. */
100830
+ reason_message: string;
100820
100831
  /** @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. */
100821
100832
  redirect_url: string;
100822
100833
  /** @description The partner URL to send the browser to */
@@ -198712,7 +198723,10 @@ export interface operations {
198712
198723
  };
198713
198724
  startPartnerPayment: {
198714
198725
  parameters: {
198715
- query?: never;
198726
+ query?: {
198727
+ /** @description The language `reason_message` is written in (default `en`). */
198728
+ locale?: string;
198729
+ };
198716
198730
  header?: never;
198717
198731
  path: {
198718
198732
  token: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1984",
3
+ "version": "0.1.1986",
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>",