@zinn-digital/sdk 0.1.1755 → 0.1.1757
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 +172 -2
- package/package.json +1 -1
|
@@ -52859,6 +52859,33 @@ export interface paths {
|
|
|
52859
52859
|
patch?: never;
|
|
52860
52860
|
trace?: never;
|
|
52861
52861
|
};
|
|
52862
|
+
"/v1/sites/{siteId}/dns-publish": {
|
|
52863
|
+
parameters: {
|
|
52864
|
+
query?: never;
|
|
52865
|
+
header?: never;
|
|
52866
|
+
path: {
|
|
52867
|
+
/** @description Site ID (UUIDv7). */
|
|
52868
|
+
siteId: components["parameters"]["SiteId"];
|
|
52869
|
+
};
|
|
52870
|
+
cookie?: never;
|
|
52871
|
+
};
|
|
52872
|
+
/**
|
|
52873
|
+
* Where this site's DNS is published, on Zinn®'s servers or your own DNS account.
|
|
52874
|
+
* @description Read-only. Requires `sites.view`.
|
|
52875
|
+
*/
|
|
52876
|
+
get: operations["getSiteDnsPublish"];
|
|
52877
|
+
/**
|
|
52878
|
+
* Change where this site's DNS is published.
|
|
52879
|
+
* @description `own` runs the same read-only pre-flight as `preflightOwnDns` first; when it fails the answer is 422 naming the fix and nothing changes. `zinn` always succeeds. The choice decides where the NEXT DNS publish goes; records already published are not moved. Audit-logged. Requires `hosting.deploy.manage`.
|
|
52880
|
+
*/
|
|
52881
|
+
put: operations["setSiteDnsPublish"];
|
|
52882
|
+
post?: never;
|
|
52883
|
+
delete?: never;
|
|
52884
|
+
options?: never;
|
|
52885
|
+
head?: never;
|
|
52886
|
+
patch?: never;
|
|
52887
|
+
trace?: never;
|
|
52888
|
+
};
|
|
52862
52889
|
"/v1/sites/{siteId}/domain-pointing": {
|
|
52863
52890
|
parameters: {
|
|
52864
52891
|
query?: never;
|
|
@@ -57740,6 +57767,26 @@ export interface paths {
|
|
|
57740
57767
|
patch?: never;
|
|
57741
57768
|
trace?: never;
|
|
57742
57769
|
};
|
|
57770
|
+
"/v1/sites/own-dns-preflight": {
|
|
57771
|
+
parameters: {
|
|
57772
|
+
query?: never;
|
|
57773
|
+
header?: never;
|
|
57774
|
+
path?: never;
|
|
57775
|
+
cookie?: never;
|
|
57776
|
+
};
|
|
57777
|
+
get?: never;
|
|
57778
|
+
put?: never;
|
|
57779
|
+
/**
|
|
57780
|
+
* Check, read-only, whether a domain's DNS can be published on your own DNS account.
|
|
57781
|
+
* @description The create wizard's check for *publish DNS on my own Cloudflare/DNS account*, run before anything is provisioned. Three reads, nothing written to the account: the organization has an active DNS connection; its key lists the zone the domain lives in and its last permission report shows record edit passing; and the domain's public nameservers are the ones that account assigned. `ok` is the only passing verdict; every other `code` names the fix in `message`. The organization is the body `org_id` or the `X-Zinn-Org` header. Requires `sites.create`.
|
|
57782
|
+
*/
|
|
57783
|
+
post: operations["preflightOwnDns"];
|
|
57784
|
+
delete?: never;
|
|
57785
|
+
options?: never;
|
|
57786
|
+
head?: never;
|
|
57787
|
+
patch?: never;
|
|
57788
|
+
trace?: never;
|
|
57789
|
+
};
|
|
57743
57790
|
"/v1/sites/provider-options": {
|
|
57744
57791
|
parameters: {
|
|
57745
57792
|
query?: never;
|
|
@@ -93779,7 +93826,7 @@ export interface components {
|
|
|
93779
93826
|
MarketplacePayoutReadiness: {
|
|
93780
93827
|
permitted: boolean;
|
|
93781
93828
|
/** @description Every reason at once, not the first — a seller told one problem at a time makes one round trip per problem. */
|
|
93782
|
-
reasons: ("no_verification" | "verification_not_approved" | "document_expired" | "document_missing" | "subject_not_approved" | "sanctions_not_screened" | "sanctions_not_clear" | "document_request_holds_payouts" | "vendor_not_approved" | "no_destination" | "destination_cooling_off" | "dac7_data_incomplete")[];
|
|
93829
|
+
reasons: ("no_verification" | "verification_not_approved" | "document_expired" | "document_missing" | "subject_not_approved" | "sanctions_not_screened" | "sanctions_not_clear" | "document_request_holds_payouts" | "vendor_not_approved" | "no_destination" | "destination_cooling_off" | "dac7_data_incomplete" | "identity_unverified")[];
|
|
93783
93830
|
};
|
|
93784
93831
|
MarketplacePayoutSchedule: {
|
|
93785
93832
|
currency: components["schemas"]["CurrencyCode"];
|
|
@@ -96924,6 +96971,25 @@ export interface components {
|
|
|
96924
96971
|
chosen: boolean;
|
|
96925
96972
|
shortcuts: components["schemas"]["OverviewShortcutIds"];
|
|
96926
96973
|
};
|
|
96974
|
+
OwnDnsPreflight: {
|
|
96975
|
+
/** @enum {string} */
|
|
96976
|
+
code: "ok" | "no_account" | "provider_error" | "zone_missing" | "cannot_edit" | "unchecked" | "ns_mismatch" | "ns_unknown";
|
|
96977
|
+
domain: string;
|
|
96978
|
+
expected_nameservers?: string[];
|
|
96979
|
+
/** @description The refusal catalogue key */
|
|
96980
|
+
key?: string | null;
|
|
96981
|
+
live_nameservers?: string[];
|
|
96982
|
+
/** @description The fix */
|
|
96983
|
+
message?: string;
|
|
96984
|
+
/** @description True only when `code` is `ok`. */
|
|
96985
|
+
ok: boolean;
|
|
96986
|
+
params?: {
|
|
96987
|
+
[key: string]: unknown;
|
|
96988
|
+
};
|
|
96989
|
+
permission?: string;
|
|
96990
|
+
provider?: string;
|
|
96991
|
+
zone?: string;
|
|
96992
|
+
};
|
|
96927
96993
|
/**
|
|
96928
96994
|
* @description One product line an organization has, or has had, something on.
|
|
96929
96995
|
*
|
|
@@ -107962,7 +108028,7 @@ export interface components {
|
|
|
107962
108028
|
*/
|
|
107963
108029
|
theme?: string;
|
|
107964
108030
|
/**
|
|
107965
|
-
* @description Serve this site's DNS from **your own connected DNS account** rather than Zinn®'s pool (W20-G).
|
|
108031
|
+
* @description Serve this site's DNS from **your own connected DNS account** rather than Zinn®'s pool (W20-G). Checked before anything is provisioned: when `true`, the read-only pre-flight (`preflightOwnDns`) must pass or the create is refused with 422 naming the fix.
|
|
107966
108032
|
*
|
|
107967
108033
|
* ⛔ This is a different question from `dns_vendor`, and the two must not be confused: `dns_vendor` picks **which provider** inside our pool, this picks **whose account**. An organization can legitimately want Bunny from our pool, or Cloudflare from their own account, and only one of those is expressible as a vendor name.
|
|
107968
108034
|
*
|
|
@@ -108337,6 +108403,14 @@ export interface components {
|
|
|
108337
108403
|
*/
|
|
108338
108404
|
paired_with_cdn: string;
|
|
108339
108405
|
};
|
|
108406
|
+
SiteDnsPublish: {
|
|
108407
|
+
/** @description Present on a PUT to `own`; null otherwise. */
|
|
108408
|
+
preflight?: components["schemas"]["OwnDnsPreflight"] | null;
|
|
108409
|
+
/** @enum {string} */
|
|
108410
|
+
publish_on: "zinn" | "own";
|
|
108411
|
+
/** Format: uuid */
|
|
108412
|
+
site_id: string;
|
|
108413
|
+
};
|
|
108340
108414
|
/** @description Where a site's domain actually sends traffic, as measured (docs/823). */
|
|
108341
108415
|
SiteDomainPointing: {
|
|
108342
108416
|
diagnosis?: components["schemas"]["SiteOwnDomainDiagnosis"];
|
|
@@ -208249,6 +208323,68 @@ export interface operations {
|
|
|
208249
208323
|
422: components["responses"]["UnprocessableEntity"];
|
|
208250
208324
|
};
|
|
208251
208325
|
};
|
|
208326
|
+
getSiteDnsPublish: {
|
|
208327
|
+
parameters: {
|
|
208328
|
+
query?: never;
|
|
208329
|
+
header?: never;
|
|
208330
|
+
path: {
|
|
208331
|
+
/** @description Site ID (UUIDv7). */
|
|
208332
|
+
siteId: components["parameters"]["SiteId"];
|
|
208333
|
+
};
|
|
208334
|
+
cookie?: never;
|
|
208335
|
+
};
|
|
208336
|
+
requestBody?: never;
|
|
208337
|
+
responses: {
|
|
208338
|
+
/** @description The site's DNS-publish choice. */
|
|
208339
|
+
200: {
|
|
208340
|
+
headers: {
|
|
208341
|
+
[name: string]: unknown;
|
|
208342
|
+
};
|
|
208343
|
+
content: {
|
|
208344
|
+
"application/json": components["schemas"]["SiteDnsPublish"];
|
|
208345
|
+
};
|
|
208346
|
+
};
|
|
208347
|
+
401: components["responses"]["Unauthorized"];
|
|
208348
|
+
403: components["responses"]["Forbidden"];
|
|
208349
|
+
404: components["responses"]["NotFound"];
|
|
208350
|
+
429: components["responses"]["TooManyRequests"];
|
|
208351
|
+
};
|
|
208352
|
+
};
|
|
208353
|
+
setSiteDnsPublish: {
|
|
208354
|
+
parameters: {
|
|
208355
|
+
query?: never;
|
|
208356
|
+
header?: never;
|
|
208357
|
+
path: {
|
|
208358
|
+
/** @description Site ID (UUIDv7). */
|
|
208359
|
+
siteId: components["parameters"]["SiteId"];
|
|
208360
|
+
};
|
|
208361
|
+
cookie?: never;
|
|
208362
|
+
};
|
|
208363
|
+
requestBody: {
|
|
208364
|
+
content: {
|
|
208365
|
+
"application/json": {
|
|
208366
|
+
/** @enum {string} */
|
|
208367
|
+
publish_on: "zinn" | "own";
|
|
208368
|
+
};
|
|
208369
|
+
};
|
|
208370
|
+
};
|
|
208371
|
+
responses: {
|
|
208372
|
+
/** @description The site's DNS-publish choice after the change. */
|
|
208373
|
+
200: {
|
|
208374
|
+
headers: {
|
|
208375
|
+
[name: string]: unknown;
|
|
208376
|
+
};
|
|
208377
|
+
content: {
|
|
208378
|
+
"application/json": components["schemas"]["SiteDnsPublish"];
|
|
208379
|
+
};
|
|
208380
|
+
};
|
|
208381
|
+
401: components["responses"]["Unauthorized"];
|
|
208382
|
+
403: components["responses"]["Forbidden"];
|
|
208383
|
+
404: components["responses"]["NotFound"];
|
|
208384
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
208385
|
+
429: components["responses"]["TooManyRequests"];
|
|
208386
|
+
};
|
|
208387
|
+
};
|
|
208252
208388
|
getSiteDomainPointing: {
|
|
208253
208389
|
parameters: {
|
|
208254
208390
|
query?: never;
|
|
@@ -215594,6 +215730,40 @@ export interface operations {
|
|
|
215594
215730
|
403: components["responses"]["Forbidden"];
|
|
215595
215731
|
};
|
|
215596
215732
|
};
|
|
215733
|
+
preflightOwnDns: {
|
|
215734
|
+
parameters: {
|
|
215735
|
+
query?: never;
|
|
215736
|
+
header?: never;
|
|
215737
|
+
path?: never;
|
|
215738
|
+
cookie?: never;
|
|
215739
|
+
};
|
|
215740
|
+
requestBody: {
|
|
215741
|
+
content: {
|
|
215742
|
+
"application/json": {
|
|
215743
|
+
/** @example example.com */
|
|
215744
|
+
domain: string;
|
|
215745
|
+
/** Format: uuid */
|
|
215746
|
+
org_id?: string;
|
|
215747
|
+
};
|
|
215748
|
+
};
|
|
215749
|
+
};
|
|
215750
|
+
responses: {
|
|
215751
|
+
/** @description The pre-flight verdict. */
|
|
215752
|
+
200: {
|
|
215753
|
+
headers: {
|
|
215754
|
+
[name: string]: unknown;
|
|
215755
|
+
};
|
|
215756
|
+
content: {
|
|
215757
|
+
"application/json": components["schemas"]["OwnDnsPreflight"];
|
|
215758
|
+
};
|
|
215759
|
+
};
|
|
215760
|
+
401: components["responses"]["Unauthorized"];
|
|
215761
|
+
403: components["responses"]["Forbidden"];
|
|
215762
|
+
404: components["responses"]["NotFound"];
|
|
215763
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
215764
|
+
429: components["responses"]["TooManyRequests"];
|
|
215765
|
+
};
|
|
215766
|
+
};
|
|
215597
215767
|
getSiteProviderOptions: {
|
|
215598
215768
|
parameters: {
|
|
215599
215769
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1757",
|
|
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>",
|