@zinn-digital/sdk 0.1.1551 → 0.1.1553

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.
@@ -38252,7 +38252,7 @@ export interface paths {
38252
38252
  put?: never;
38253
38253
  /**
38254
38254
  * Ask our AI to move a site here — free, overseen by our team.
38255
- * @description The intake. The access given (`access`) is written straight to Vault and never stored, logged or returned; the request keeps only which kinds of access were given and the host each points at. A $0 `managed_migration` purchase keeps the SLA, and a support ticket is opened for the customer and linked both ways — every step the AI takes is posted there. **Refused with 403 unless eligible** (`getAiMoveEligibility`): a trial is refused with `ai_move_trial`. With no `site_id` the move creates the site, which needs `sites.create`. Requires `hosting.import.manage`.
38255
+ * @description The intake. The access given (`access`) is written straight to Vault and never stored, logged or returned; the request keeps only which kinds of access were given and the host each points at. A $0 `managed_migration` purchase keeps the SLA, and a support ticket is opened for the customer and linked both ways — every step the AI takes is posted there. **Refused with 403 unless eligible** (`getAiMoveEligibility`): a trial is refused with `ai_move_trial`. With no `site_id` the move creates the site, which needs `sites.create`. With `site_id` the move goes OVER that site: when it has ever served anything, `replace_confirmation` (its domain, typed) is required and checked here (`422` `replace_not_confirmed` / `replace_confirmation_mismatch`), the site is backed up before the copy writes, and it can be restored for 30 days. Requires `hosting.import.manage`.
38256
38256
  */
38257
38257
  post: operations["requestAiMove"];
38258
38258
  delete?: never;
@@ -39132,7 +39132,7 @@ export interface paths {
39132
39132
  *
39133
39133
  * **Idempotent without an `Idempotency-Key`**, unlike checkout. The order already exists and is itself the dedup scope, so a double-submit records the same capture rather than taking a second one. A pay attempt against an already-paid order returns that order unchanged rather than an error.
39134
39134
  *
39135
- * A **declined card answers 200**, not 402: the attempt was processed exactly as asked and the order comes back `payment_failed` for the caller to read. Only the platform being unable to charge at all — no gateway configured, or one an operator has deliberately disabled — is a 503.
39135
+ * A **declined card answers 200**, not 402: the attempt was processed exactly as asked and the order comes back `payment_failed` for the caller to read. Only the platform being unable to charge at all — no gateway configured, or one an operator has deliberately disabled — is a 503. A decline on the customer's side (their bank said no, 3-D Secure not completed, card details wrong) arms ONE short help e-mail (`order.payment_help`) an hour later, tailored to the cause and the card's country, and sent only if nothing has been paid by then; a failure on our side never does.
39136
39136
  *
39137
39137
  * **Choosing a gateway.** Send `gateway` to settle this order on a specific rail rather than the org's default mandate — the owner's *"settle overdue bills with any gateway they like"*. It must be one of `getOrderPaymentOptions`'s entries, which is why a reseller's client (who has exactly one) cannot be re-routed. Rails that finish in the browser — PayPal approval, a crypto invoice — answer `200` with the order still `pending_payment` and a `customer_action` carrying the URL to send the customer to; the order settles when the gateway's webhook confirms it.
39138
39138
  */
@@ -39236,7 +39236,7 @@ export interface paths {
39236
39236
  *
39237
39237
  * ⛔ **The browser is not believed.** It reports that the buyer finished; only PayPal's capture response says money moved, and only the engine writes a payment. Posting an invented `paypal_order_id` produces a gateway error, never a paid order.
39238
39238
  *
39239
- * A **declined card answers 200** with the order `payment_failed`, for the same reason `payOrder` does — the attempt was processed exactly as asked.
39239
+ * A **declined card answers 200** with the order `payment_failed`, for the same reason `payOrder` does — the attempt was processed exactly as asked. A decline on the customer's side (e.g. `INSTRUMENT_DECLINED`) also arms a one-hour help e-mail (`order.payment_help`), sent only if nothing is paid by then.
39240
39240
  */
39241
39241
  post: operations["capturePayPalOrder"];
39242
39242
  delete?: never;
@@ -57663,7 +57663,7 @@ export interface paths {
57663
57663
  put?: never;
57664
57664
  /**
57665
57665
  * Ingest a signed NOWPayments IPN.
57666
- * @description **Unauthenticated by design** — NOWPayments holds no Zinn® credential, so the `x-nowpayments-sig` HMAC-SHA512 over the raw request body *is* the authentication. Crypto holds no mandate, so this path only ever **confirms an async (invoice-ahead) payment** (ADR 0011 §6) — it never creates a chargeable mandate. The tenant is recovered from the `order_id` Zinn® packed on the outbound invoice, since the IPN carries no principal. Replays are expected and converge; a status Zinn® does not act on (still pending, or terminally failed) is acknowledged with 200 (a non-2xx would make NOWPayments retry it for days).
57666
+ * @description **Unauthenticated by design** — NOWPayments holds no Zinn® credential, so the `x-nowpayments-sig` HMAC-SHA512 over the raw request body *is* the authentication. Crypto holds no mandate, so this path only ever **confirms an async (invoice-ahead) payment** (ADR 0011 §6) — it never creates a chargeable mandate. The tenant is recovered from the `order_id` Zinn® packed on the outbound invoice, since the IPN carries no principal. Replays are expected and converge; a status Zinn® does not act on (still pending, or terminally failed) is acknowledged with 200 (a non-2xx would make NOWPayments retry it for days). An `expired` invoice on a checkout order arms the customer's one-hour payment-help e-mail (`order.payment_help`, sent only if nothing is paid by then); the order's state is not changed.
57667
57667
  */
57668
57668
  post: operations["receiveNowPaymentsWebhook"];
57669
57669
  delete?: never;
@@ -72915,6 +72915,8 @@ export interface components {
72915
72915
  platform: "cpanel" | "plesk" | "directadmin" | "wordpress" | "moodle" | "joomla" | "static" | "other";
72916
72916
  /** @description The line a new site is created on. */
72917
72917
  product_line?: string;
72918
+ /** @description With `site_id`: the chosen site's primary domain, typed back. Required when that site has ever served anything (its content is replaced; it is backed up first and can be restored for 30 days). `422` `replace_not_confirmed` when it is missing, `replace_confirmation_mismatch` when it is not that site's domain. Ignored without `site_id`. */
72919
+ replace_confirmation?: string;
72918
72920
  /**
72919
72921
  * Format: uuid
72920
72922
  * @description Move into this site; omit to create one.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1551",
3
+ "version": "0.1.1553",
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>",