@zinn-digital/sdk 0.1.1784 → 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
@@ -183746,6 +183797,35 @@ export interface operations {
183746
183797
  429: components["responses"]["TooManyRequests"];
183747
183798
  };
183748
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
+ };
183749
183829
  listMailForwarders: {
183750
183830
  parameters: {
183751
183831
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1784",
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>",