@zinn-digital/sdk 0.1.1782 → 0.1.1785

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.
@@ -37461,6 +37461,26 @@ export interface paths {
37461
37461
  patch?: never;
37462
37462
  trace?: never;
37463
37463
  };
37464
+ "/v1/mail/services/{mailServiceId}/dns-records": {
37465
+ parameters: {
37466
+ query?: never;
37467
+ header?: never;
37468
+ path?: never;
37469
+ cookie?: never;
37470
+ };
37471
+ /**
37472
+ * Every DNS record this domain needs for email, each checked live.
37473
+ * @description The exact records (type, host, value, priority) the domain needs for its email provider - MX, SPF, DKIM, DMARC and the mail-app discovery records - from the same preset the provisioning publishes, so what is shown is what would be written. Each record carries a live `status` asked of the domain's OWN nameservers: `ok`, `missing`, `different` (with what was `found` instead) or `unknown` when the nameservers could not be asked (never shown as ok or missing). `dns_hosted` says whether we publish them (`ours`) or the customer adds them at their DNS provider (`external`). The support AI reads the same list. `422` for our own mail under a white label, as the connection settings are. Requires `mail.view`.
37474
+ */
37475
+ get: operations["getMailDnsRecords"];
37476
+ put?: never;
37477
+ post?: never;
37478
+ delete?: never;
37479
+ options?: never;
37480
+ head?: never;
37481
+ patch?: never;
37482
+ trace?: never;
37483
+ };
37464
37484
  "/v1/mail/services/{mailServiceId}/forwarders": {
37465
37485
  parameters: {
37466
37486
  query?: never;
@@ -91628,6 +91648,37 @@ export interface components {
91628
91648
  */
91629
91649
  confirm: boolean;
91630
91650
  };
91651
+ /** @description One mail DNS record a domain needs and what its own nameservers answer now. */
91652
+ MailDnsRecordCheck: {
91653
+ /** @description What the nameservers answered instead, when `status` is `different`. */
91654
+ found: string[];
91655
+ /** @description The host as a DNS panel asks for it - `@` for the domain itself. */
91656
+ host: string;
91657
+ /** @description The full record name. */
91658
+ name: string;
91659
+ priority: number | null;
91660
+ /** @enum {string} */
91661
+ purpose: "receive" | "spf" | "dkim" | "dmarc" | "discovery" | "security";
91662
+ /** @enum {string} */
91663
+ status: "ok" | "missing" | "different" | "unknown";
91664
+ /** @description MX, TXT, CNAME or SRV. */
91665
+ type: string;
91666
+ value: string;
91667
+ };
91668
+ /** @description Every DNS record one mail domain needs, each checked live. */
91669
+ MailDnsRecords: {
91670
+ /** @description True when every record is live; null when any could not be checked. */
91671
+ all_ok: boolean | null;
91672
+ /**
91673
+ * @description `ours`: we publish the records. `external`: add them at your DNS provider.
91674
+ * @enum {string}
91675
+ */
91676
+ dns_hosted: "ours" | "external" | "unknown";
91677
+ domain: string;
91678
+ nameservers: string[];
91679
+ provider: string;
91680
+ records: components["schemas"]["MailDnsRecordCheck"][];
91681
+ };
91631
91682
  MailDomain: {
91632
91683
  /**
91633
91684
  * Format: uuid
@@ -111772,6 +111823,8 @@ export interface components {
111772
111823
  domain_state?: components["schemas"]["DomainAttachState"] | null;
111773
111824
  /** @description Set when the site's latest domain change ended without moving the site (its primary domain is still the current one; the saga's undo is best effort); null otherwise. `reason` is a machine key the client explains: `dns_never_pointed` (the new name was not pointed at the site within the waiting period: the customer can fix their DNS and try again), `certificate_not_issued` (no certificate for the new name could be issued, so the site never switched: the customer can check the name's DNS and try again), `domain_in_other_dns_account` (the domain is held in a DNS account that is not ours and its nameservers do not point at us: the customer keeps their own DNS, adds `failed.dns_record` there and tries again; not a platform fault) or `our_side` (any other failure: contact support). */
111774
111825
  failed: components["schemas"]["SiteRenameFailure"] | null;
111826
+ /** @description True when the platform writes `dns_record` itself once the domain's delegation is live: the domain is registered with us, we hold its DNS zone, its DNS is not managed externally, and it is delegated to that zone (or its registrar nameservers are already our expected pair while the delegation goes live). False for a name whose DNS is hosted elsewhere (for example its own Cloudflare account) even when it is registered with us: the customer adds the record there. Always false when nothing is waiting. */
111827
+ pointed_by_us?: boolean;
111775
111828
  site_id: components["schemas"]["Uuid"];
111776
111829
  /** @description The domain the change is waiting for, or null. */
111777
111830
  waiting_for: components["schemas"]["Hostname"] | null;
@@ -183744,6 +183797,35 @@ export interface operations {
183744
183797
  429: components["responses"]["TooManyRequests"];
183745
183798
  };
183746
183799
  };
183800
+ getMailDnsRecords: {
183801
+ parameters: {
183802
+ query?: never;
183803
+ header?: never;
183804
+ path: {
183805
+ /** @description Email service ID (UUIDv7). */
183806
+ mailServiceId: components["parameters"]["MailServiceId"];
183807
+ };
183808
+ cookie?: never;
183809
+ };
183810
+ requestBody?: never;
183811
+ responses: {
183812
+ /** @description The domain's mail records and their live state. */
183813
+ 200: {
183814
+ headers: {
183815
+ [name: string]: unknown;
183816
+ };
183817
+ content: {
183818
+ "application/json": components["schemas"]["MailDnsRecords"];
183819
+ };
183820
+ };
183821
+ 401: components["responses"]["Unauthorized"];
183822
+ 403: components["responses"]["Forbidden"];
183823
+ 404: components["responses"]["NotFound"];
183824
+ 422: components["responses"]["UnprocessableEntity"];
183825
+ 429: components["responses"]["TooManyRequests"];
183826
+ 503: components["responses"]["ServiceUnavailable"];
183827
+ };
183828
+ };
183747
183829
  listMailForwarders: {
183748
183830
  parameters: {
183749
183831
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1782",
3
+ "version": "0.1.1785",
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>",