@zinn-digital/sdk 0.1.1726 → 0.1.1728

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.
@@ -40857,7 +40857,7 @@ export interface paths {
40857
40857
  get: operations["listDelegatedAccess"];
40858
40858
  /**
40859
40859
  * Set exactly which sites one person holds, and the role on each.
40860
- * @description One call for every change to one person: invite them, add a site, change a role, remove a site. After it the person holds EXACTLY the sites in `sites`. Sites they already hold keep their grant and have the role (and, when `expires_at` is sent, the end date) updated in place; new sites are granted — or, for an address with no account, invited, with one invitation however many sites; sites left out are revoked. The whole call is atomic: one refused site leaves every other site as it was.
40860
+ * @description One call for every change to one person: invite them, add a site, change a role, remove a site. After it the person holds EXACTLY the sites in `sites`. Sites they already hold keep their grant and have the role (and, when `expires_at` is sent, the end date) updated in place; new sites are granted to somebody already in this organisation, and for anybody else — with an account or without — invited, with one invitation however many sites and no membership until they accept (the answer does not disclose whether the address has an account); sites left out are revoked. The whole call is atomic: one refused site leaves every other site as it was.
40861
40861
  *
40862
40862
  * The same rules as sharing one site (`shareSiteWithCollaborator`) apply, with the same codes: `SITE_COLLABORATOR_ALREADY_A_MEMBER` (409), `SITE_COLLABORATOR_ALREADY_INVITED` (409), `SITE_COLLABORATOR_EXPIRY_IN_THE_PAST` (422) and `SITE_COLLABORATOR_REASON_REQUIRED` (422 — a new site for somebody with no reason on record). Two are this endpoint's own: `SITE_COLLABORATOR_SITE_NOT_IN_ORG` (422 — one code for "no such site" and "a site of another organisation", so it is not an oracle) and `SITE_COLLABORATOR_DUPLICATE_SITE` (422).
40863
40863
  *
@@ -51573,9 +51573,9 @@ export interface paths {
51573
51573
  put?: never;
51574
51574
  /**
51575
51575
  * Share this site with one person.
51576
- * @description Grants one person access to this one site at one role, optionally until a date, and gives them the narrow `site_collaborator` organisation membership if they have none. The narrowing is enforced by Postgres row-level security on the site table itself, not by a filter in a query, so it applies to every endpoint on this API rather than to the ones somebody remembered.
51576
+ * @description Grants one person access to this one site at one role, optionally until a date. The narrowing is enforced by Postgres row-level security on the site table itself, not by a filter in a query, so it applies to every endpoint on this API rather than to the ones somebody remembered.
51577
51577
  *
51578
- * ⭐ **The person need not have an account yet.** An address nobody has signed in as is invited in the same call: an ordinary organisation invitation is sent at the `site_collaborator` role, and the grant is returned with `status: pending` and a null `user_id`. The moment they accept — which proves control of that inbox through the identity provider, so no id is ever guessed — the grant activates for that person. A pending grant narrows nobody: nothing is reachable until the accept. If the address already holds a pending invitation to the *whole* organisation the call is refused with `SITE_COLLABORATOR_ALREADY_INVITED` rather than quietly downgrading that invitation to one site.
51578
+ * ⛔ **Nobody is put into an organisation they did not agree to join.** Unless the address already belongs to a member of this site's organisation, it is invited in the same call — whether or not it has an account with us: an ordinary organisation invitation is sent at the `site_collaborator` role, the grant is returned with `status: pending` and a null `user_id`, and the organisation gains no membership for them until they accept. The answer has the same shape for an address with an account and one without, so this operation never discloses which is which. A person who is already a member at the `site_collaborator` role (they accepted before) is shared with directly and the grant is `active`. The moment they accept — which proves control of that inbox through the identity provider, so no id is ever guessed — the grant activates for that person. A pending grant narrows nobody: nothing is reachable until the accept. If the address already holds a pending invitation to the *whole* organisation the call is refused with `SITE_COLLABORATOR_ALREADY_INVITED` rather than quietly downgrading that invitation to one site.
51579
51579
  *
51580
51580
  * **What a collaborator may then do is the per-site role, on that site only.** A request whose path names a granted site is evaluated with the role's keys (`viewer` reads; `editor` adds `hosting.deploy.manage`, `sites.cache.purge`, `hosting.performance.manage`, `sites.wp_login`, `sites.panel_access`, `sites.restart`, `hosting.php.manage`; `manager` adds `hosting.backup.manage`, `hosting.ssl.manage`, `hosting.cdn.manage`, `hosting.applications.manage`, `hosting.import.manage`). A request naming any other site answers `404`, and a request naming no site — the collection endpoints and every organisation-level surface such as members, API keys and billing — carries only `sites.view`, so it is refused with `403`. Revoking a grant takes effect on the next request, whatever token the person is holding.
51581
51581
  *
@@ -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;
@@ -83029,7 +83029,7 @@ export interface components {
83029
83029
  DelegatedPerson: {
83030
83030
  /**
83031
83031
  * Format: date-time
83032
- * @description When they accepted — or, shared straight to an existing account, when access began. Null while pending.
83032
+ * @description When they accepted — or, shared with somebody already in the organisation, when access began. Null while pending.
83033
83033
  */
83034
83034
  accepted_at: string | null;
83035
83035
  /** Format: email */
@@ -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
  /**
@@ -106336,7 +106356,7 @@ export interface components {
106336
106356
  status: "pending" | "active" | "expired" | "revoked";
106337
106357
  /**
106338
106358
  * Format: uuid
106339
- * @description The collaborator, once known. Null while the grant is `pending` — the address has been invited and nobody has signed in as it yet.
106359
+ * @description The collaborator, once known. Null while the grant is `pending` — the address has been invited and has not accepted yet (whether or not it has an account).
106340
106360
  */
106341
106361
  user_id: string | null;
106342
106362
  };
@@ -140914,7 +140934,7 @@ export interface operations {
140914
140934
  query?: {
140915
140935
  /** @description Opaque cursor from a previous page's `page.next_cursor`. */
140916
140936
  cursor?: components["parameters"]["Cursor"];
140917
- decision?: "allowed" | "refused" | "review";
140937
+ decision?: "allowed" | "warned" | "refused" | "review";
140918
140938
  /** @description Maximum items to return (page size). */
140919
140939
  limit?: components["parameters"]["Limit"];
140920
140940
  };
@@ -193467,7 +193487,7 @@ export interface operations {
193467
193487
  "application/json": components["schemas"]["Error"];
193468
193488
  };
193469
193489
  };
193470
- /** @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"). */
193471
193491
  422: {
193472
193492
  headers: {
193473
193493
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1726",
3
+ "version": "0.1.1728",
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>",