@zinn-digital/sdk 0.1.1665 → 0.1.1667
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 +162 -1
- package/package.json +1 -1
|
@@ -49259,7 +49259,11 @@ export interface paths {
|
|
|
49259
49259
|
delete: operations["deleteSite"];
|
|
49260
49260
|
options?: never;
|
|
49261
49261
|
head?: never;
|
|
49262
|
-
|
|
49262
|
+
/**
|
|
49263
|
+
* Rename a site.
|
|
49264
|
+
* @description Changes the site's display name, the label the dashboard lists it as. Requires `sites.create` on the site's organization, the same authority that created it; a site the caller cannot reach is a `404`. The name is trimmed and must be 1 to 200 characters. Nothing else is writable here: the primary domain is a separate, multi-step operation (`renameSiteDomain`) because it re-points DNS, the CDN and TLS. Every rename writes a `site.name_changed` audit row with the old and new name.
|
|
49265
|
+
*/
|
|
49266
|
+
patch: operations["updateSite"];
|
|
49263
49267
|
trace?: never;
|
|
49264
49268
|
};
|
|
49265
49269
|
"/v1/sites/{siteId}/apm": {
|
|
@@ -49936,6 +49940,37 @@ export interface paths {
|
|
|
49936
49940
|
patch?: never;
|
|
49937
49941
|
trace?: never;
|
|
49938
49942
|
};
|
|
49943
|
+
"/v1/sites/{siteId}/cdn/move-offer": {
|
|
49944
|
+
parameters: {
|
|
49945
|
+
query?: never;
|
|
49946
|
+
header?: never;
|
|
49947
|
+
path: {
|
|
49948
|
+
/** @description Site ID (UUIDv7). */
|
|
49949
|
+
siteId: components["parameters"]["SiteId"];
|
|
49950
|
+
};
|
|
49951
|
+
cookie?: never;
|
|
49952
|
+
};
|
|
49953
|
+
/**
|
|
49954
|
+
* The open "Move it now" offer for a site suspended on your own CDN account.
|
|
49955
|
+
* @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.
|
|
49956
|
+
*
|
|
49957
|
+
* `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`.
|
|
49958
|
+
*/
|
|
49959
|
+
get: operations["getSiteCdnMoveOffer"];
|
|
49960
|
+
put?: never;
|
|
49961
|
+
/**
|
|
49962
|
+
* Move it now — accept the offer and start the move onto your other account.
|
|
49963
|
+
* @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.
|
|
49964
|
+
*
|
|
49965
|
+
* 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.
|
|
49966
|
+
*/
|
|
49967
|
+
post: operations["acceptSiteCdnMoveOffer"];
|
|
49968
|
+
delete?: never;
|
|
49969
|
+
options?: never;
|
|
49970
|
+
head?: never;
|
|
49971
|
+
patch?: never;
|
|
49972
|
+
trace?: never;
|
|
49973
|
+
};
|
|
49939
49974
|
"/v1/sites/{siteId}/cdn/offers": {
|
|
49940
49975
|
parameters: {
|
|
49941
49976
|
query?: never;
|
|
@@ -78007,6 +78042,34 @@ export interface components {
|
|
|
78007
78042
|
* @enum {string}
|
|
78008
78043
|
*/
|
|
78009
78044
|
CdnMinTlsVersion: "1.0" | "1.1" | "1.2" | "1.3";
|
|
78045
|
+
/** @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. */
|
|
78046
|
+
CdnMoveOffer: {
|
|
78047
|
+
/** @description The account we offer to move the site onto. */
|
|
78048
|
+
account_id: string;
|
|
78049
|
+
/** @description Your own name for that account, as you typed it. */
|
|
78050
|
+
account_label: string;
|
|
78051
|
+
/** @description The offer can be accepted right now. */
|
|
78052
|
+
available: boolean;
|
|
78053
|
+
/** @description The move needs the domain's nameservers changed at its registrar. */
|
|
78054
|
+
changes_nameservers: boolean;
|
|
78055
|
+
/** Format: date-time */
|
|
78056
|
+
expires_at: string;
|
|
78057
|
+
/** @description The suspension episode the offer belongs to. */
|
|
78058
|
+
id: string;
|
|
78059
|
+
/** @description A Footprint-Free site: moving onto one account of your own links it to every other site on that account. */
|
|
78060
|
+
needs_footprint_ack: boolean;
|
|
78061
|
+
/**
|
|
78062
|
+
* @description Why `available` is false; empty when it is true.
|
|
78063
|
+
* @enum {string}
|
|
78064
|
+
*/
|
|
78065
|
+
reason: "" | "target_suspended";
|
|
78066
|
+
/** @description The CDN that account is with. */
|
|
78067
|
+
vendor: string;
|
|
78068
|
+
};
|
|
78069
|
+
CdnMoveOfferAccept: {
|
|
78070
|
+
/** @description The token from the e-mailed link; omit it from the banner's button. */
|
|
78071
|
+
token?: string;
|
|
78072
|
+
};
|
|
78010
78073
|
/** @description One legacy URL-pattern page rule. */
|
|
78011
78074
|
CdnPageRule: {
|
|
78012
78075
|
/**
|
|
@@ -108334,6 +108397,10 @@ export interface components {
|
|
|
108334
108397
|
SiteRecoveryStartRequest: components["schemas"]["StaffRecoveryReason"] & {
|
|
108335
108398
|
action: components["schemas"]["SiteRecoveryAction"];
|
|
108336
108399
|
};
|
|
108400
|
+
SiteRename: {
|
|
108401
|
+
/** @description The site's display name, trimmed. The only editable field. */
|
|
108402
|
+
name: string;
|
|
108403
|
+
};
|
|
108337
108404
|
SiteRenameFailure: {
|
|
108338
108405
|
/** @description The domain the failed change was moving to, or null when unknown. */
|
|
108339
108406
|
domain: components["schemas"]["Hostname"] | null;
|
|
@@ -199106,6 +199173,38 @@ export interface operations {
|
|
|
199106
199173
|
503: components["responses"]["ServiceUnavailable"];
|
|
199107
199174
|
};
|
|
199108
199175
|
};
|
|
199176
|
+
updateSite: {
|
|
199177
|
+
parameters: {
|
|
199178
|
+
query?: never;
|
|
199179
|
+
header?: never;
|
|
199180
|
+
path: {
|
|
199181
|
+
/** @description Site ID (UUIDv7). */
|
|
199182
|
+
siteId: components["parameters"]["SiteId"];
|
|
199183
|
+
};
|
|
199184
|
+
cookie?: never;
|
|
199185
|
+
};
|
|
199186
|
+
requestBody: {
|
|
199187
|
+
content: {
|
|
199188
|
+
"application/json": components["schemas"]["SiteRename"];
|
|
199189
|
+
};
|
|
199190
|
+
};
|
|
199191
|
+
responses: {
|
|
199192
|
+
/** @description The renamed site. */
|
|
199193
|
+
200: {
|
|
199194
|
+
headers: {
|
|
199195
|
+
[name: string]: unknown;
|
|
199196
|
+
};
|
|
199197
|
+
content: {
|
|
199198
|
+
"application/json": components["schemas"]["Site"];
|
|
199199
|
+
};
|
|
199200
|
+
};
|
|
199201
|
+
401: components["responses"]["Unauthorized"];
|
|
199202
|
+
403: components["responses"]["Forbidden"];
|
|
199203
|
+
404: components["responses"]["NotFound"];
|
|
199204
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
199205
|
+
429: components["responses"]["TooManyRequests"];
|
|
199206
|
+
};
|
|
199207
|
+
};
|
|
199109
199208
|
getSiteApm: {
|
|
199110
199209
|
parameters: {
|
|
199111
199210
|
query?: {
|
|
@@ -200140,6 +200239,68 @@ export interface operations {
|
|
|
200140
200239
|
503: components["responses"]["ProviderNotConfigured"];
|
|
200141
200240
|
};
|
|
200142
200241
|
};
|
|
200242
|
+
getSiteCdnMoveOffer: {
|
|
200243
|
+
parameters: {
|
|
200244
|
+
query?: never;
|
|
200245
|
+
header?: never;
|
|
200246
|
+
path: {
|
|
200247
|
+
/** @description Site ID (UUIDv7). */
|
|
200248
|
+
siteId: components["parameters"]["SiteId"];
|
|
200249
|
+
};
|
|
200250
|
+
cookie?: never;
|
|
200251
|
+
};
|
|
200252
|
+
requestBody?: never;
|
|
200253
|
+
responses: {
|
|
200254
|
+
/** @description The open offer, or `null`. */
|
|
200255
|
+
200: {
|
|
200256
|
+
headers: {
|
|
200257
|
+
[name: string]: unknown;
|
|
200258
|
+
};
|
|
200259
|
+
content: {
|
|
200260
|
+
"application/json": {
|
|
200261
|
+
data: components["schemas"]["CdnMoveOffer"] | null;
|
|
200262
|
+
};
|
|
200263
|
+
};
|
|
200264
|
+
};
|
|
200265
|
+
401: components["responses"]["Unauthorized"];
|
|
200266
|
+
403: components["responses"]["Forbidden"];
|
|
200267
|
+
404: components["responses"]["NotFound"];
|
|
200268
|
+
429: components["responses"]["TooManyRequests"];
|
|
200269
|
+
};
|
|
200270
|
+
};
|
|
200271
|
+
acceptSiteCdnMoveOffer: {
|
|
200272
|
+
parameters: {
|
|
200273
|
+
query?: never;
|
|
200274
|
+
header?: never;
|
|
200275
|
+
path: {
|
|
200276
|
+
/** @description Site ID (UUIDv7). */
|
|
200277
|
+
siteId: components["parameters"]["SiteId"];
|
|
200278
|
+
};
|
|
200279
|
+
cookie?: never;
|
|
200280
|
+
};
|
|
200281
|
+
requestBody?: {
|
|
200282
|
+
content: {
|
|
200283
|
+
"application/json": components["schemas"]["CdnMoveOfferAccept"];
|
|
200284
|
+
};
|
|
200285
|
+
};
|
|
200286
|
+
responses: {
|
|
200287
|
+
/** @description The move has started. */
|
|
200288
|
+
202: {
|
|
200289
|
+
headers: {
|
|
200290
|
+
[name: string]: unknown;
|
|
200291
|
+
};
|
|
200292
|
+
content: {
|
|
200293
|
+
"application/json": components["schemas"]["CdnSwap"];
|
|
200294
|
+
};
|
|
200295
|
+
};
|
|
200296
|
+
401: components["responses"]["Unauthorized"];
|
|
200297
|
+
403: components["responses"]["Forbidden"];
|
|
200298
|
+
404: components["responses"]["NotFound"];
|
|
200299
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
200300
|
+
429: components["responses"]["TooManyRequests"];
|
|
200301
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
200302
|
+
};
|
|
200303
|
+
};
|
|
200143
200304
|
listSiteCdnOffers: {
|
|
200144
200305
|
parameters: {
|
|
200145
200306
|
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.1667",
|
|
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>",
|