@zinn-digital/sdk 0.1.1734 → 0.1.1736

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.
@@ -28152,6 +28152,30 @@ export interface paths {
28152
28152
  patch?: never;
28153
28153
  trace?: never;
28154
28154
  };
28155
+ "/v1/catalog/compute/add-ons": {
28156
+ parameters: {
28157
+ query?: never;
28158
+ header?: never;
28159
+ path?: never;
28160
+ cookie?: never;
28161
+ };
28162
+ /**
28163
+ * List the add-ons a Zinn® Private Cloud machine can carry, with every stored price.
28164
+ * @description The machine add-on catalogue (control panels, CloudLinux, LiteSpeed, KernelCare and **managed server care**) for the public product pages. **Public**, cacheable exactly like `listCatalogCompute` (strong `ETag` + `max-age=60`).
28165
+ *
28166
+ * ⛔ **Every currency the row is STORED in, never a conversion.** The public site prints a stored EUR or GBP figure where one exists, because that is what checkout charges. A paid add-on with no price row at all is omitted.
28167
+ *
28168
+ * ⛔ **Sell prices only.** No vendor cost, no vendor, no licence stock: those are the admin ledger's and checkout's. `listComputeAddOns` (signed in) remains the picker, which also answers whether a seat is free right now.
28169
+ */
28170
+ get: operations["listCatalogComputeAddOns"];
28171
+ put?: never;
28172
+ post?: never;
28173
+ delete?: never;
28174
+ options?: never;
28175
+ head?: never;
28176
+ patch?: never;
28177
+ trace?: never;
28178
+ };
28155
28179
  "/v1/catalog/compute/own-cloud": {
28156
28180
  parameters: {
28157
28181
  query?: never;
@@ -85591,7 +85615,39 @@ export interface components {
85591
85615
  /** Format: uuid */
85592
85616
  id: string;
85593
85617
  /** @enum {string} */
85594
- kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
85618
+ kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go" | "managed";
85619
+ /** @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. */
85620
+ managed: {
85621
+ /** @enum {string} */
85622
+ data_location: "eu" | "global";
85623
+ domain: string;
85624
+ held: boolean;
85625
+ /** @description `auto` (billing country) or `customer` (chosen). */
85626
+ location_source: string;
85627
+ /** @enum {string} */
85628
+ provider: "telnyx" | "ses";
85629
+ ramp: {
85630
+ /** @description Null once the ramp has no ceiling. */
85631
+ cap_today: number | null;
85632
+ day: number;
85633
+ room_today: number | null;
85634
+ sent_today: number;
85635
+ };
85636
+ records: {
85637
+ name: string;
85638
+ /** @description ownership, spf, dkim, dmarc, return_path, or the provider's own label. */
85639
+ purpose: string;
85640
+ required: boolean;
85641
+ /** @enum {string} */
85642
+ type: "TXT" | "CNAME" | "MX";
85643
+ value: string;
85644
+ }[];
85645
+ reputation_band: string;
85646
+ /** @enum {string} */
85647
+ status: "pending" | "verified" | "failed" | "degraded" | "suspended";
85648
+ /** Format: date-time */
85649
+ verified_at: string | null;
85650
+ } | null;
85595
85651
  name: string;
85596
85652
  port: number;
85597
85653
  /** @description The catalogue slug; empty for a connection made before the catalogue. */
@@ -85617,16 +85673,21 @@ export interface components {
85617
85673
  /** Format: date-time */
85618
85674
  verified_at: string | null;
85619
85675
  };
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`. */
85676
+ /** @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
85677
  EmailMarketingSenderCreate: {
85622
85678
  access_key_id?: string;
85623
85679
  api_key?: string;
85624
85680
  api_secret?: string;
85681
+ /**
85682
+ * @description Managed senders only.
85683
+ * @enum {string}
85684
+ */
85685
+ data_location?: "eu" | "global";
85625
85686
  domain?: string;
85626
85687
  from_address: string;
85627
85688
  host?: string;
85628
85689
  /** @enum {string} */
85629
- kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
85690
+ kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go" | "managed";
85630
85691
  message_stream?: string;
85631
85692
  name: string;
85632
85693
  password?: string;
@@ -85650,8 +85711,10 @@ export interface components {
85650
85711
  current: string[];
85651
85712
  /** @description The fully qualified record name. */
85652
85713
  name: string;
85714
+ /** @description MX records only. */
85715
+ priority?: number;
85653
85716
  /** @enum {string} */
85654
- type: "TXT";
85717
+ type: "TXT" | "CNAME" | "MX";
85655
85718
  value: string;
85656
85719
  };
85657
85720
  EmailMarketingSenderDnsPlan: {
@@ -85691,6 +85754,21 @@ export interface components {
85691
85754
  };
85692
85755
  EmailMarketingSenderList: {
85693
85756
  data: components["schemas"]["EmailMarketingSender"][];
85757
+ /**
85758
+ * @description The location the billing country picks; null when managed delivery is not offered.
85759
+ * @enum {string|null}
85760
+ */
85761
+ managed_default_location?: "eu" | "global" | null;
85762
+ /** @description Each data location the connect form offers, its provider, and whether its route is held (waiting for approval). */
85763
+ managed_locations?: {
85764
+ held: boolean;
85765
+ /** @enum {string} */
85766
+ location: "eu" | "global";
85767
+ /** @enum {string} */
85768
+ provider: "telnyx" | "ses";
85769
+ }[];
85770
+ /** @description Whether `kind: managed` (Zinn® managed delivery) may be connected now. */
85771
+ managed_offered?: boolean;
85694
85772
  /** @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
85773
  pool_offered?: boolean;
85696
85774
  };
@@ -100563,6 +100641,21 @@ export interface components {
100563
100641
  /** @description What the order owes, tax included, in minor units. ⛔ Display THIS, never the basket total, which is pre-tax (D25043). */
100564
100642
  total_minor: number;
100565
100643
  };
100644
+ /** @description One machine add-on as the public site shows it (`listCatalogComputeAddOns`). Sell prices only, in every currency the row is stored in. */
100645
+ PublicComputeAddOn: {
100646
+ /** @description When the add-on takes effect (at order or on a running machine). */
100647
+ applies_at: string;
100648
+ /** @description Stable key (`managed` is managed server care, `cloudlinux`, `plesk_web_pro` …). */
100649
+ code: string;
100650
+ is_free: boolean;
100651
+ /** @description The add-on family (`managed`, `software`, …). */
100652
+ kind: string;
100653
+ /** @description The stored monthly price per currency, in minor units (CLAUDE.md §2.8). */
100654
+ prices: {
100655
+ amount_minor: number;
100656
+ currency: string;
100657
+ }[];
100658
+ };
100566
100659
  /**
100567
100660
  * @description One sellable machine size. **Every** cadence it is priced at travels with it, so a term picker can render both figures honestly without a network round trip on a radio button.
100568
100661
  *
@@ -166531,6 +166624,43 @@ export interface operations {
166531
166624
  429: components["responses"]["TooManyRequests"];
166532
166625
  };
166533
166626
  };
166627
+ listCatalogComputeAddOns: {
166628
+ parameters: {
166629
+ query?: never;
166630
+ header?: {
166631
+ /** @description A previously returned `ETag`; a match responds `304`. */
166632
+ "If-None-Match"?: string;
166633
+ };
166634
+ path?: never;
166635
+ cookie?: never;
166636
+ };
166637
+ requestBody?: never;
166638
+ responses: {
166639
+ /** @description The enabled add-ons, each with its stored prices. */
166640
+ 200: {
166641
+ headers: {
166642
+ /** @description `public, max-age=60`. */
166643
+ "Cache-Control"?: string;
166644
+ /** @description Strong entity tag over the response body. */
166645
+ ETag?: string;
166646
+ [name: string]: unknown;
166647
+ };
166648
+ content: {
166649
+ "application/json": {
166650
+ data: components["schemas"]["PublicComputeAddOn"][];
166651
+ };
166652
+ };
166653
+ };
166654
+ /** @description Not modified — the caller's `ETag` still matches. */
166655
+ 304: {
166656
+ headers: {
166657
+ [name: string]: unknown;
166658
+ };
166659
+ content?: never;
166660
+ };
166661
+ 429: components["responses"]["TooManyRequests"];
166662
+ };
166663
+ };
166534
166664
  listCatalogOwnCloudCompute: {
166535
166665
  parameters: {
166536
166666
  query?: {
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.1736",
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>",