@zinn-digital/sdk 0.1.1615 → 0.1.1617

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.
@@ -34019,7 +34019,7 @@ export interface paths {
34019
34019
  put?: never;
34020
34020
  /**
34021
34021
  * Connect a campaign sender (Zinn® sending, or the customer's own SMTP server).
34022
- * @description Gated on `email_marketing.manage`. `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
34022
+ * @description Gated on `email_marketing.manage`. `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. `pool` is refused (`refusal.campaigns.poolWhiteLabel`) for a white-labelled organisation, which sends through its own server only. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
34023
34023
  */
34024
34024
  post: operations["createEmailMarketingSender"];
34025
34025
  delete?: never;
@@ -49948,6 +49948,31 @@ export interface paths {
49948
49948
  patch?: never;
49949
49949
  trace?: never;
49950
49950
  };
49951
+ "/v1/sites/{siteId}/cdn/swap/check": {
49952
+ parameters: {
49953
+ query?: never;
49954
+ header?: never;
49955
+ path: {
49956
+ /** @description Site ID (UUIDv7). */
49957
+ siteId: components["parameters"]["SiteId"];
49958
+ };
49959
+ cookie?: never;
49960
+ };
49961
+ get?: never;
49962
+ put?: never;
49963
+ /**
49964
+ * Check now whether the domain uses the nameservers a CDN move is waiting for.
49965
+ * @description "Check now" for a move in `awaiting_delegation`. Reads the domain's nameservers as the public internet sees them RIGHT NOW (`live_nameservers`; `null` when the public resolver did not answer, which is "we could not see", never "nothing is set") against the ones the move needs (`nameservers`). When they match, `delegated` is true and the move carries on at once instead of at its next ten-minute check.
49966
+ *
49967
+ * When the site has no move waiting on its nameservers (it finished, or never waited), the answer is `waiting: false` and the screen should re-read the move. Requires `hosting.cdn.manage`.
49968
+ */
49969
+ post: operations["checkSiteCdnSwapNameservers"];
49970
+ delete?: never;
49971
+ options?: never;
49972
+ head?: never;
49973
+ patch?: never;
49974
+ trace?: never;
49975
+ };
49951
49976
  "/v1/sites/{siteId}/cdn/switch": {
49952
49977
  parameters: {
49953
49978
  query?: never;
@@ -77337,6 +77362,8 @@ export interface components {
77337
77362
  records_source_read: boolean;
77338
77363
  /** Format: uuid */
77339
77364
  site_id: string;
77365
+ /** @description True when this is the automatic move of a site whose CDN suspended it and the episode is still open: the old edge refuses the site, so it is offline until the move completes (for a domain registered elsewhere, until its nameservers are changed). False for a move the customer chose, where both edges serve meanwhile. */
77366
+ site_offline: boolean;
77340
77367
  /**
77341
77368
  * @description ⭐ `awaiting_delegation` is the state to render carefully: the move is complete on our side, **both edges are serving the site**, and it is waiting on your registrar. ⛔ `rolled_back` and `failed` are different: the first means the site is back where it started and nobody need do anything; the second means a step of the rollback could not complete and somebody must look.
77342
77369
  * @enum {string}
@@ -77347,6 +77374,17 @@ export interface components {
77347
77374
  to_kind: string;
77348
77375
  to_label: string;
77349
77376
  };
77377
+ /** @description "Check now" for a CDN move waiting on the domain's nameservers (CDNMOVE): what the domain uses right now against what the move needs. */
77378
+ CdnSwapCheck: {
77379
+ /** @description The domain already answers with the nameservers the move needs. */
77380
+ delegated: boolean;
77381
+ /** @description The domain's nameservers right now; `null` if the lookup did not answer. */
77382
+ live_nameservers: string[] | null;
77383
+ /** @description The nameservers to set at the domain's registrar. */
77384
+ nameservers: string[];
77385
+ /** @description A move on this site is waiting on its nameservers. */
77386
+ waiting: boolean;
77387
+ };
77350
77388
  /**
77351
77389
  * @description Where to move this site's CDN.
77352
77390
  *
@@ -83423,6 +83461,8 @@ export interface components {
83423
83461
  };
83424
83462
  EmailMarketingSenderList: {
83425
83463
  data: components["schemas"]["EmailMarketingSender"][];
83464
+ /** @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. */
83465
+ pool_offered?: boolean;
83426
83466
  };
83427
83467
  EmailMarketingSms: {
83428
83468
  credit_balance_usd_micros: number;
@@ -199047,6 +199087,35 @@ export interface operations {
199047
199087
  429: components["responses"]["TooManyRequests"];
199048
199088
  };
199049
199089
  };
199090
+ checkSiteCdnSwapNameservers: {
199091
+ parameters: {
199092
+ query?: never;
199093
+ header?: never;
199094
+ path: {
199095
+ /** @description Site ID (UUIDv7). */
199096
+ siteId: components["parameters"]["SiteId"];
199097
+ };
199098
+ cookie?: never;
199099
+ };
199100
+ requestBody?: never;
199101
+ responses: {
199102
+ /** @description The live delegation against the nameservers the move needs. */
199103
+ 200: {
199104
+ headers: {
199105
+ [name: string]: unknown;
199106
+ };
199107
+ content: {
199108
+ "application/json": {
199109
+ data: components["schemas"]["CdnSwapCheck"];
199110
+ };
199111
+ };
199112
+ };
199113
+ 401: components["responses"]["Unauthorized"];
199114
+ 403: components["responses"]["Forbidden"];
199115
+ 404: components["responses"]["NotFound"];
199116
+ 429: components["responses"]["TooManyRequests"];
199117
+ };
199118
+ };
199050
199119
  switchSiteCdn: {
199051
199120
  parameters: {
199052
199121
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1615",
3
+ "version": "0.1.1617",
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>",