@zinn-digital/sdk 0.1.1734 → 0.1.1735

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.
@@ -85591,7 +85591,39 @@ export interface components {
85591
85591
  /** Format: uuid */
85592
85592
  id: string;
85593
85593
  /** @enum {string} */
85594
- kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
85594
+ kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go" | "managed";
85595
+ /** @description `kind: managed` only (docs/1052 §3.2e): the sending domain at our provider, the DNS records to publish, and its warm-up ramp. `held` = the EU route is waiting for approval; the domain is saved and nothing is sent until it opens. Null for every other kind. */
85596
+ managed: {
85597
+ /** @enum {string} */
85598
+ data_location: "eu" | "global";
85599
+ domain: string;
85600
+ held: boolean;
85601
+ /** @description `auto` (billing country) or `customer` (chosen). */
85602
+ location_source: string;
85603
+ /** @enum {string} */
85604
+ provider: "telnyx" | "ses";
85605
+ ramp: {
85606
+ /** @description Null once the ramp has no ceiling. */
85607
+ cap_today: number | null;
85608
+ day: number;
85609
+ room_today: number | null;
85610
+ sent_today: number;
85611
+ };
85612
+ records: {
85613
+ name: string;
85614
+ /** @description ownership, spf, dkim, dmarc, return_path, or the provider's own label. */
85615
+ purpose: string;
85616
+ required: boolean;
85617
+ /** @enum {string} */
85618
+ type: "TXT" | "CNAME" | "MX";
85619
+ value: string;
85620
+ }[];
85621
+ reputation_band: string;
85622
+ /** @enum {string} */
85623
+ status: "pending" | "verified" | "failed" | "degraded" | "suspended";
85624
+ /** Format: date-time */
85625
+ verified_at: string | null;
85626
+ } | null;
85595
85627
  name: string;
85596
85628
  port: number;
85597
85629
  /** @description The catalogue slug; empty for a connection made before the catalogue. */
@@ -85617,16 +85649,21 @@ export interface components {
85617
85649
  /** Format: date-time */
85618
85650
  verified_at: string | null;
85619
85651
  };
85620
- /** @description Send `provider` (a `sender-providers` slug) and the fields its catalogue row lists in `fields`; the row decides `kind`, and a mailbox provider's SMTP host, port and TLS come from the row. Without `provider`, `kind` is `pool` (name and from address only) or `smtp` (`host`, `username` and `password` required). A missing or malformed field for the chosen provider is refused by name (`refusal.campaigns.providerField`). Every secret (`password`, `api_key`, `api_secret`, `access_key_id`, `secret_access_key`) goes to the secret store and is never returned; `region`, `domain` and `message_stream` are kept as the connection's `settings`. */
85652
+ /** @description Send `provider` (a `sender-providers` slug) and the fields its catalogue row lists in `fields`; the row decides `kind`, and a mailbox provider's SMTP host, port and TLS come from the row. Without `provider`, `kind` is `pool` (name and from address only) or `smtp` (`host`, `username` and `password` required). A missing or malformed field for the chosen provider is refused by name (`refusal.campaigns.providerField`). Every secret (`password`, `api_key`, `api_secret`, `access_key_id`, `secret_access_key`) goes to the secret store and is never returned; `region`, `domain` and `message_stream` are kept as the connection's `settings`. `kind: managed` (Zinn® managed delivery, docs/1052 §3.2e) needs only `name` and `from_address`: the From domain is created at our sending provider and its records are returned on the sender's `managed` object; `data_location` picks EU (held until the EU route opens) or Global, and defaults to the billing country's. Refused with `refusal.campaigns.managedNotOpen` when the line is not open to the organisation and `refusal.campaigns.managedDataLocation` for any other location. */
85621
85653
  EmailMarketingSenderCreate: {
85622
85654
  access_key_id?: string;
85623
85655
  api_key?: string;
85624
85656
  api_secret?: string;
85657
+ /**
85658
+ * @description Managed senders only.
85659
+ * @enum {string}
85660
+ */
85661
+ data_location?: "eu" | "global";
85625
85662
  domain?: string;
85626
85663
  from_address: string;
85627
85664
  host?: string;
85628
85665
  /** @enum {string} */
85629
- kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
85666
+ kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go" | "managed";
85630
85667
  message_stream?: string;
85631
85668
  name: string;
85632
85669
  password?: string;
@@ -85650,8 +85687,10 @@ export interface components {
85650
85687
  current: string[];
85651
85688
  /** @description The fully qualified record name. */
85652
85689
  name: string;
85690
+ /** @description MX records only. */
85691
+ priority?: number;
85653
85692
  /** @enum {string} */
85654
- type: "TXT";
85693
+ type: "TXT" | "CNAME" | "MX";
85655
85694
  value: string;
85656
85695
  };
85657
85696
  EmailMarketingSenderDnsPlan: {
@@ -85691,6 +85730,21 @@ export interface components {
85691
85730
  };
85692
85731
  EmailMarketingSenderList: {
85693
85732
  data: components["schemas"]["EmailMarketingSender"][];
85733
+ /**
85734
+ * @description The location the billing country picks; null when managed delivery is not offered.
85735
+ * @enum {string|null}
85736
+ */
85737
+ managed_default_location?: "eu" | "global" | null;
85738
+ /** @description Each data location the connect form offers, its provider, and whether its route is held (waiting for approval). */
85739
+ managed_locations?: {
85740
+ held: boolean;
85741
+ /** @enum {string} */
85742
+ location: "eu" | "global";
85743
+ /** @enum {string} */
85744
+ provider: "telnyx" | "ses";
85745
+ }[];
85746
+ /** @description Whether `kind: managed` (Zinn® managed delivery) may be connected now. */
85747
+ managed_offered?: boolean;
85694
85748
  /** @description Whether `kind: pool` (Zinn® sending) may be connected. `false` for a white-labelled organisation (a reseller and its clients), which sends through its own server only, because a pool message names our relay in its headers. */
85695
85749
  pool_offered?: boolean;
85696
85750
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1734",
3
+ "version": "0.1.1735",
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>",