@zinn-digital/sdk 0.1.1664 → 0.1.1666
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 +125 -0
- package/package.json +1 -1
|
@@ -49936,6 +49936,37 @@ export interface paths {
|
|
|
49936
49936
|
patch?: never;
|
|
49937
49937
|
trace?: never;
|
|
49938
49938
|
};
|
|
49939
|
+
"/v1/sites/{siteId}/cdn/move-offer": {
|
|
49940
|
+
parameters: {
|
|
49941
|
+
query?: never;
|
|
49942
|
+
header?: never;
|
|
49943
|
+
path: {
|
|
49944
|
+
/** @description Site ID (UUIDv7). */
|
|
49945
|
+
siteId: components["parameters"]["SiteId"];
|
|
49946
|
+
};
|
|
49947
|
+
cookie?: never;
|
|
49948
|
+
};
|
|
49949
|
+
/**
|
|
49950
|
+
* The open "Move it now" offer for a site suspended on your own CDN account.
|
|
49951
|
+
* @description When a site is suspended on a CDN account of your own and you have connected another one, we offer to move it there and move nothing until you say so ("Ask first", owner ruling 2026-11-09). This answers the open offer, or `null` when there is none.
|
|
49952
|
+
*
|
|
49953
|
+
* `available` is re-asked on every read: it turns false (with `reason`) once the offered account has also been suspended or can no longer be used. The offer closes after seven days and once it has been accepted. Requires `hosting.cdn.manage`.
|
|
49954
|
+
*/
|
|
49955
|
+
get: operations["getSiteCdnMoveOffer"];
|
|
49956
|
+
put?: never;
|
|
49957
|
+
/**
|
|
49958
|
+
* Move it now — accept the offer and start the move onto your other account.
|
|
49959
|
+
* @description The click. Opening the e-mailed link moves nothing; this call does, and only for a signed-in member with `hosting.cdn.manage`. `token` is the one from the e-mailed link (`?move_offer=`); the banner's own button sends none.
|
|
49960
|
+
*
|
|
49961
|
+
* The offer is single-use and expires after seven days. A `422` names why in `details[0].code`: `offer_closed` (used, expired or never made), `link_invalid` (a forged token, or one for another site), `target_suspended` (the account we offered is suspended too) or `move_refused` (the move itself would not start). `503` with `unavailable` when the move could not be started right now. Accepted and refused clicks are both audit-logged. Poll `getSiteCdnSwap` for the move.
|
|
49962
|
+
*/
|
|
49963
|
+
post: operations["acceptSiteCdnMoveOffer"];
|
|
49964
|
+
delete?: never;
|
|
49965
|
+
options?: never;
|
|
49966
|
+
head?: never;
|
|
49967
|
+
patch?: never;
|
|
49968
|
+
trace?: never;
|
|
49969
|
+
};
|
|
49939
49970
|
"/v1/sites/{siteId}/cdn/offers": {
|
|
49940
49971
|
parameters: {
|
|
49941
49972
|
query?: never;
|
|
@@ -78007,6 +78038,34 @@ export interface components {
|
|
|
78007
78038
|
* @enum {string}
|
|
78008
78039
|
*/
|
|
78009
78040
|
CdnMinTlsVersion: "1.0" | "1.1" | "1.2" | "1.3";
|
|
78041
|
+
/** @description An open "Move it now" offer (CDNMOVE-ASK): the site is suspended on your own CDN account and we will move it to your other one when you click. */
|
|
78042
|
+
CdnMoveOffer: {
|
|
78043
|
+
/** @description The account we offer to move the site onto. */
|
|
78044
|
+
account_id: string;
|
|
78045
|
+
/** @description Your own name for that account, as you typed it. */
|
|
78046
|
+
account_label: string;
|
|
78047
|
+
/** @description The offer can be accepted right now. */
|
|
78048
|
+
available: boolean;
|
|
78049
|
+
/** @description The move needs the domain's nameservers changed at its registrar. */
|
|
78050
|
+
changes_nameservers: boolean;
|
|
78051
|
+
/** Format: date-time */
|
|
78052
|
+
expires_at: string;
|
|
78053
|
+
/** @description The suspension episode the offer belongs to. */
|
|
78054
|
+
id: string;
|
|
78055
|
+
/** @description A Footprint-Free site: moving onto one account of your own links it to every other site on that account. */
|
|
78056
|
+
needs_footprint_ack: boolean;
|
|
78057
|
+
/**
|
|
78058
|
+
* @description Why `available` is false; empty when it is true.
|
|
78059
|
+
* @enum {string}
|
|
78060
|
+
*/
|
|
78061
|
+
reason: "" | "target_suspended";
|
|
78062
|
+
/** @description The CDN that account is with. */
|
|
78063
|
+
vendor: string;
|
|
78064
|
+
};
|
|
78065
|
+
CdnMoveOfferAccept: {
|
|
78066
|
+
/** @description The token from the e-mailed link; omit it from the banner's button. */
|
|
78067
|
+
token?: string;
|
|
78068
|
+
};
|
|
78010
78069
|
/** @description One legacy URL-pattern page rule. */
|
|
78011
78070
|
CdnPageRule: {
|
|
78012
78071
|
/**
|
|
@@ -111420,6 +111479,8 @@ export interface components {
|
|
|
111420
111479
|
/** Format: uuid */
|
|
111421
111480
|
id: string;
|
|
111422
111481
|
integrations: string[];
|
|
111482
|
+
/** @description The languages the store sells in, default first (docs/1297 §12.2): the template languages on offer. */
|
|
111483
|
+
languages: string[];
|
|
111423
111484
|
/** Format: date-time */
|
|
111424
111485
|
last_seen_at: string | null;
|
|
111425
111486
|
/** Format: uuid */
|
|
@@ -200138,6 +200199,68 @@ export interface operations {
|
|
|
200138
200199
|
503: components["responses"]["ProviderNotConfigured"];
|
|
200139
200200
|
};
|
|
200140
200201
|
};
|
|
200202
|
+
getSiteCdnMoveOffer: {
|
|
200203
|
+
parameters: {
|
|
200204
|
+
query?: never;
|
|
200205
|
+
header?: never;
|
|
200206
|
+
path: {
|
|
200207
|
+
/** @description Site ID (UUIDv7). */
|
|
200208
|
+
siteId: components["parameters"]["SiteId"];
|
|
200209
|
+
};
|
|
200210
|
+
cookie?: never;
|
|
200211
|
+
};
|
|
200212
|
+
requestBody?: never;
|
|
200213
|
+
responses: {
|
|
200214
|
+
/** @description The open offer, or `null`. */
|
|
200215
|
+
200: {
|
|
200216
|
+
headers: {
|
|
200217
|
+
[name: string]: unknown;
|
|
200218
|
+
};
|
|
200219
|
+
content: {
|
|
200220
|
+
"application/json": {
|
|
200221
|
+
data: components["schemas"]["CdnMoveOffer"] | null;
|
|
200222
|
+
};
|
|
200223
|
+
};
|
|
200224
|
+
};
|
|
200225
|
+
401: components["responses"]["Unauthorized"];
|
|
200226
|
+
403: components["responses"]["Forbidden"];
|
|
200227
|
+
404: components["responses"]["NotFound"];
|
|
200228
|
+
429: components["responses"]["TooManyRequests"];
|
|
200229
|
+
};
|
|
200230
|
+
};
|
|
200231
|
+
acceptSiteCdnMoveOffer: {
|
|
200232
|
+
parameters: {
|
|
200233
|
+
query?: never;
|
|
200234
|
+
header?: never;
|
|
200235
|
+
path: {
|
|
200236
|
+
/** @description Site ID (UUIDv7). */
|
|
200237
|
+
siteId: components["parameters"]["SiteId"];
|
|
200238
|
+
};
|
|
200239
|
+
cookie?: never;
|
|
200240
|
+
};
|
|
200241
|
+
requestBody?: {
|
|
200242
|
+
content: {
|
|
200243
|
+
"application/json": components["schemas"]["CdnMoveOfferAccept"];
|
|
200244
|
+
};
|
|
200245
|
+
};
|
|
200246
|
+
responses: {
|
|
200247
|
+
/** @description The move has started. */
|
|
200248
|
+
202: {
|
|
200249
|
+
headers: {
|
|
200250
|
+
[name: string]: unknown;
|
|
200251
|
+
};
|
|
200252
|
+
content: {
|
|
200253
|
+
"application/json": components["schemas"]["CdnSwap"];
|
|
200254
|
+
};
|
|
200255
|
+
};
|
|
200256
|
+
401: components["responses"]["Unauthorized"];
|
|
200257
|
+
403: components["responses"]["Forbidden"];
|
|
200258
|
+
404: components["responses"]["NotFound"];
|
|
200259
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
200260
|
+
429: components["responses"]["TooManyRequests"];
|
|
200261
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
200262
|
+
};
|
|
200263
|
+
};
|
|
200141
200264
|
listSiteCdnOffers: {
|
|
200142
200265
|
parameters: {
|
|
200143
200266
|
query?: never;
|
|
@@ -210136,6 +210259,8 @@ export interface operations {
|
|
|
210136
210259
|
query?: {
|
|
210137
210260
|
/** @description Comma-separated integration keys. */
|
|
210138
210261
|
integrations?: string;
|
|
210262
|
+
/** @description Comma-separated language codes the store sells in, default first (Tranzly, else WPML, else Polylang, else the site language). Omitted = unchanged. */
|
|
210263
|
+
languages?: string;
|
|
210139
210264
|
plugin_version?: string;
|
|
210140
210265
|
wp_version?: string;
|
|
210141
210266
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1666",
|
|
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>",
|