@zinn-digital/sdk 0.1.1725 → 0.1.1727

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.
@@ -64703,7 +64703,7 @@ export interface components {
64703
64703
  /** Format: date-time */
64704
64704
  created_at: string;
64705
64705
  /** @enum {string} */
64706
- decision: "allowed" | "refused" | "review";
64706
+ decision: "allowed" | "warned" | "refused" | "review";
64707
64707
  domain: string;
64708
64708
  /** @description Masked. */
64709
64709
  email: string;
@@ -85671,6 +85671,13 @@ export interface components {
85671
85671
  * @enum {string}
85672
85672
  */
85673
85673
  EmailRoutingAction: "forward" | "drop";
85674
+ /** @description MAILQUOTA (owner ruling 2026-11-11): the address is a REAL mailbox that cannot take mail right now, so messages we send it may bounce. Never a refusal: the buyer is told and carries on or changes the address. `code` is `mailbox_full`; `provider` names the mailbox provider ("Gmail", "Outlook") or is empty when it is not one we recognise. */
85675
+ EmailWarning: {
85676
+ /** @enum {string} */
85677
+ code: "mailbox_full";
85678
+ /** @example Gmail */
85679
+ provider: string;
85680
+ };
85674
85681
  /** @description One counted entitlement: the cap the plan sold, and how much of it is spent. */
85675
85682
  EntitlementAllowance: {
85676
85683
  /** @description A real number governs this allowance. False for both unlimited and unstated — branch on this to decide whether to draw a usage bar. */
@@ -85788,6 +85795,11 @@ export interface components {
85788
85795
  fresh_total_minor?: number;
85789
85796
  /** @example Must be a supported ISO 4217 currency code. */
85790
85797
  message?: string;
85798
+ /**
85799
+ * @description Only on an `EMAIL_MAILBOX_FULL` detail from `POST /v1/public/checkout` (MAILQUOTA): the mailbox provider whose inbox is full ("Gmail", "Outlook"), or empty when unknown.
85800
+ * @example Gmail
85801
+ */
85802
+ provider?: string;
85791
85803
  };
85792
85804
  /** @description A tenant's own e-mail provider account. ⚖️ Owner ruling 2026-08-26 — a reseller sends through their own account, and one that is missing or unverified is REFUSED rather than quietly served from the platform key. ⛔ `status` distinguishes three states because the fix differs in each; one collapsed message tells the operator nothing they can act on. ⭐ The platform's own staff org is the one exception: with no account of its own it sends through the platform account, and reads `platform` (with the From and Reply-To that account sends as) — or `platform_key_missing` when the platform key is absent from this environment, the one case where a staff campaign is refused. A customer or reseller org never reads either. */
85793
85805
  EspConnection: {
@@ -99159,6 +99171,8 @@ export interface components {
99159
99171
  capabilities: {
99160
99172
  [key: string]: boolean;
99161
99173
  };
99174
+ /** @description MAILQUOTA (owner ruling 2026-11-11): this person's own address is a real mailbox whose inbox was FULL when they signed up, so our e-mails may bounce; the dashboard shows a banner asking them to clear it. `null` when there is nothing to say, and once the day-long check expires. */
99175
+ email_warning?: components["schemas"]["EmailWarning"] | null;
99162
99176
  /** @description The user's org memberships and roles (docs/02 §1). */
99163
99177
  memberships: components["schemas"]["Membership"][];
99164
99178
  user: components["schemas"]["User"];
@@ -100299,6 +100313,8 @@ export interface components {
100299
100313
  cart_token: string;
100300
100314
  /** Format: email */
100301
100315
  email: string;
100316
+ /** @description MAILQUOTA (owner ruling 2026-11-11). The buyer was told their inbox is full (`422`, `details[0].code = EMAIL_MAILBOX_FULL`) and chose "Continue anyway": with `true` the checkout goes ahead with this address and the result carries `email_warning`. Absent or `false`, a full inbox answers the `422` and nothing is created. */
100317
+ email_warning_accepted?: boolean;
100302
100318
  /**
100303
100319
  * Format: int64
100304
100320
  * @description The order total (tax included, minor units) the checkout page displayed. When sent and the placed order would total anything else, checkout refuses `422` with `details[0].code = TOTAL_CHANGED` before any order is placed, and nothing is charged: the visitor is shown the new total and confirms again (docs/1311).
@@ -100334,6 +100350,8 @@ export interface components {
100334
100350
  PublicCheckoutResult: {
100335
100351
  /** @description ISO 4217 code of the placed order. */
100336
100352
  currency: string;
100353
+ /** @description Present (non-null) when the order went through with `email_warning_accepted`: the customer's inbox is full, so the confirmation e-mail may bounce until they clear it. */
100354
+ email_warning?: components["schemas"]["EmailWarning"] | null;
100337
100355
  /**
100338
100356
  * @description What the client should do next. `payment` — the order exists and is `pending_payment`; nothing has been charged. `done` — the order totals **zero** and there is nothing to charge, so the customer is finished: this is what a free trial returns (owner ruling 2026-08-09 — a trial takes no card and starts immediately). It is keyed on the order TOTAL, not on the trial flag, because zero is zero however it got there and a payment step for nothing is a payment step for nothing.
100339
100357
  * @enum {string}
@@ -103279,6 +103297,8 @@ export interface components {
103279
103297
  * @enum {string}
103280
103298
  */
103281
103299
  account: "created" | "exists";
103300
+ /** @description Present only when the address's inbox is full (MAILQUOTA): the set-password e-mail may bounce, so the connect screen tells the site owner to clear it. */
103301
+ email_warning?: components["schemas"]["EmailWarning"];
103282
103302
  };
103283
103303
  SeoConnectStartInput: {
103284
103304
  /**
@@ -118265,6 +118285,19 @@ export interface components {
118265
118285
  };
118266
118286
  /** @description docs/76 §3.3 — the account codes and tax-rate mapping used by the Xero export. */
118267
118287
  XeroSettings: {
118288
+ /** @description The Xero `TrackingCategoryID` that tags every posted line with the app it came from (the `App` category). Matched by id, so a category with the same name is never adopted. Empty, with `app_tracking_option` empty, means no app tag. */
118289
+ app_tracking_category_id: string;
118290
+ /** @description The option set on every line in that category (`V2`). */
118291
+ app_tracking_option: string;
118292
+ /**
118293
+ * @description `RAIL:CURRENCY` → the Xero **AccountID** each rail's money is paid into when a finalised period is settled (docs/311). ⛔ An AccountID, never a name: three apps post into one Xero organisation, and a name pick put another app's crypto into V2's account (ZH-4323). An absent key means that rail+currency is not settled by code; a configured id that is missing, archived or in another currency refuses that payment.
118294
+ * @example {
118295
+ * "NOWPAYMENTS:USD": "779be0ea-45c1-4e18-8ebc-40929e97f605"
118296
+ * }
118297
+ */
118298
+ clearing_account_ids: {
118299
+ [key: string]: string;
118300
+ };
118268
118301
  /** @description Where a crypto **settlement variance** posts — the fiat value at the tax point less what actually settled (docs/313). ⚖️ **Empty means "the same account as fees"**, which is the owner's own answer of 2026-08-30 (*"we already have them set up in our export … send to same one"*) and is the configured state today — not an unset field. Set it to split crypto variance into its own nominal account. */
118269
118302
  crypto_variance_account_code: string;
118270
118303
  /** @description Where gateway fees post. `404` (Bank Fees) — an **expense**, which is why fees can never be a sales-invoice line. */
@@ -118290,6 +118323,13 @@ export interface components {
118290
118323
  };
118291
118324
  /** @description Partial update. Omitted fields are unchanged. */
118292
118325
  XeroSettingsUpdate: {
118326
+ /** @description A `TrackingCategoryID` (UUID). Set with `app_tracking_option`, or both empty. */
118327
+ app_tracking_category_id?: string;
118328
+ app_tracking_option?: string;
118329
+ /** @description Replaces the whole map. Keys are normalised to `RAIL:CURRENCY` (upper case); a value that is not an AccountID (UUID), or a key without a rail and an ISO 4217 code, is refused with 422 and nothing changes. */
118330
+ clearing_account_ids?: {
118331
+ [key: string]: string;
118332
+ };
118293
118333
  /** @description ⭐ An empty string is a real edit, not a no-op: it clears an override and returns the variance to following `fee_account_code`. */
118294
118334
  crypto_variance_account_code?: string;
118295
118335
  fee_account_code?: string;
@@ -140894,7 +140934,7 @@ export interface operations {
140894
140934
  query?: {
140895
140935
  /** @description Opaque cursor from a previous page's `page.next_cursor`. */
140896
140936
  cursor?: components["parameters"]["Cursor"];
140897
- decision?: "allowed" | "refused" | "review";
140937
+ decision?: "allowed" | "warned" | "refused" | "review";
140898
140938
  /** @description Maximum items to return (page size). */
140899
140939
  limit?: components["parameters"]["Limit"];
140900
140940
  };
@@ -193447,7 +193487,7 @@ export interface operations {
193447
193487
  "application/json": components["schemas"]["Error"];
193448
193488
  };
193449
193489
  };
193450
- /** @description The body failed validation, or (`error.code` `REGISTRY_DATA_REQUIRED`, Q10) a domain's registry demands fields `registry_data` did not carry — checked before any account exists — or (`error.code` `REGISTRANT_REQUIRED`) the basket holds a domain and no `registrant` was sent. The registrant refusal happens before any account, organization or order exists, so the visitor adds the owner and submits again with nothing to unwind. Or (`error.code` `REFUND_TERMS_REQUIRED`) `accept_refund_terms` was not `true`: the visitor ticks "refunds are issued as Zinn® credit" and submits again; nothing was created. Or (`details[0].code` `TOTAL_CHANGED`) the total the order will be placed or RESUMED at is not `expected_total_minor`: nothing is placed or charged, and `details[0].fresh_total_minor` carries that total, which the page shows and sends back as `expected_total_minor` on the next press (docs/1311). */
193490
+ /** @description The body failed validation, or (`error.code` `REGISTRY_DATA_REQUIRED`, Q10) a domain's registry demands fields `registry_data` did not carry — checked before any account exists — or (`error.code` `REGISTRANT_REQUIRED`) the basket holds a domain and no `registrant` was sent. The registrant refusal happens before any account, organization or order exists, so the visitor adds the owner and submits again with nothing to unwind. Or (`error.code` `REFUND_TERMS_REQUIRED`) `accept_refund_terms` was not `true`: the visitor ticks "refunds are issued as Zinn® credit" and submits again; nothing was created. Or (`details[0].code` `TOTAL_CHANGED`) the total the order will be placed or RESUMED at is not `expected_total_minor`: nothing is placed or charged, and `details[0].fresh_total_minor` carries that total, which the page shows and sends back as `expected_total_minor` on the next press (docs/1311). Or (`details[0].code` `EMAIL_MAILBOX_FULL`, `field: email`, MAILQUOTA) the address is a real mailbox whose inbox is full: `details[0].provider` names the provider ("Gmail") or is empty. It is NOT a refusal of the sale and nothing was created; the page keeps the basket and the form, and the buyer either changes the address or sends the same request again with `email_warning_accepted: true` ("Continue anyway"). */
193451
193491
  422: {
193452
193492
  headers: {
193453
193493
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1725",
3
+ "version": "0.1.1727",
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>",