@zinn-digital/sdk 0.1.1776 → 0.1.1778

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.
@@ -33302,6 +33302,8 @@ export interface paths {
33302
33302
  * **Paginated (issue #466).** Keyset cursor over `(name, type, value, id)`, default page size 50, hard maximum 200. Filtering by product line happens **before** pagination, so a hidden record can never surface on a later page. A client must follow `page.next_cursor` until `page.has_more` is false; reading only the first page reads only the first page.
33303
33303
  *
33304
33304
  * **Two different 404s, and a client MUST branch on the `code` rather than the status.** `NOT_FOUND` is the ordinary miss — no such domain, or not in your scope. `DNS_NOT_HOSTED` means the domain exists and is yours, but its nameservers point at another DNS provider, so there is no zone here to read. The second is **permanent until the customer re-delegates** and retrying can never succeed; on a Footprint-Free estate, where most names are registered elsewhere and merely pointed at us, it is the normal answer for most domains rather than an edge case. Both carry the identical message, deliberately, so that a caller who may not see the domain cannot tell the two apart by wording.
33305
+ *
33306
+ * **`?not_hosted=empty`** asks for the `DNS_NOT_HOSTED` case as an ordinary answer instead: `200` with `data: []`, `has_more: false` and `hosted: false`. The dashboard sends it because it reads this list on every domain page and whether we host a zone cannot be told from `delegation_state` (a delegated domain can still have no zone here). `NOT_FOUND` is unchanged by it: a domain you cannot see is still a `404`.
33305
33307
  */
33306
33308
  get: operations["listDnsRecords"];
33307
33309
  put?: never;
@@ -85161,6 +85163,8 @@ export interface components {
85161
85163
  /** @description A **page** of a zone's records. This was the platform's last unbounded collection (issue #466): the whole zone came back in one response and the dashboard rendered it unvirtualised, so a 5,000-record zone was 5,000 DOM rows. Walk `page.next_cursor` until `page.has_more` is false — a client that reads only the first page has read only the first page. */
85162
85164
  DnsRecordList: {
85163
85165
  data: components["schemas"]["DnsRecord"][];
85166
+ /** @description Whether this platform hosts the domain's zone. `false` only on a `?not_hosted=empty` answer, where the empty `data` means "no zone here", not "no records". */
85167
+ hosted?: boolean;
85164
85168
  page: components["schemas"]["PageMeta"];
85165
85169
  /**
85166
85170
  * @description The record types this zone's DNS provider can hold, in a stable order — what an editor should offer. A write of any other type is refused with `422` (`refusal.dns.typeNotSupported`).
@@ -176713,6 +176717,8 @@ export interface operations {
176713
176717
  cursor?: components["parameters"]["Cursor"];
176714
176718
  /** @description Maximum items to return (page size). */
176715
176719
  limit?: components["parameters"]["Limit"];
176720
+ /** @description `empty` answers a domain whose DNS we do not host with an empty page and `hosted: false` instead of the `DNS_NOT_HOSTED` 404. */
176721
+ not_hosted?: "empty";
176716
176722
  };
176717
176723
  header?: never;
176718
176724
  path: {
@@ -180889,12 +180895,12 @@ export interface operations {
180889
180895
  /** @description The legal name exactly as on the IRS record of the EIN (US), or as on the country's company register (any other country). */
180890
180896
  company_name: string;
180891
180897
  /**
180892
- * @description ISO 3166-1 alpha-2 country where the business is registered. A business outside the US registers too. For `US` the EIN, phone, state and ZIP keep their US shapes (400 per field otherwise); elsewhere `ein` is the company registration or tax number, `phone` any E.164 number, and `state` and `postal_code` free text.
180898
+ * @description ISO 3166-1 alpha-2 country where the business is registered (a code outside the ISO list, such as `ZZ`, is a 400 on `country`). A business outside the US registers too. For `US` the EIN, phone, state and ZIP keep their US shapes (400 per field otherwise); elsewhere `ein` is the company registration or tax number, `phone` any E.164 number, and `state` and `postal_code` free text.
180893
180899
  * @default US
180894
180900
  */
180895
180901
  country?: string;
180896
180902
  display_name: string;
180897
- /** @description US - the 9-digit EIN (`12-3456789` or `123456789`). Elsewhere - the company registration or tax number. */
180903
+ /** @description US - the 9-digit EIN (`12-3456789` or `123456789`). Elsewhere - the company registration or tax number. Never blank. */
180898
180904
  ein: string;
180899
180905
  /** Format: email */
180900
180906
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1776",
3
+ "version": "0.1.1778",
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>",