@zinn-digital/sdk 0.1.1616 → 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.
- package/dist/generated/schema.d.ts +67 -0
- package/package.json +1 -1
|
@@ -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
|
*
|
|
@@ -199049,6 +199087,35 @@ export interface operations {
|
|
|
199049
199087
|
429: components["responses"]["TooManyRequests"];
|
|
199050
199088
|
};
|
|
199051
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
|
+
};
|
|
199052
199119
|
switchSiteCdn: {
|
|
199053
199120
|
parameters: {
|
|
199054
199121
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
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>",
|