@zinn-digital/sdk 0.1.1756 → 0.1.1759
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 +286 -1
- 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;
|
|
@@ -60404,6 +60451,30 @@ export interface paths {
|
|
|
60404
60451
|
patch?: never;
|
|
60405
60452
|
trace?: never;
|
|
60406
60453
|
};
|
|
60454
|
+
"/v1/webhooks/campaigns/whatsapp": {
|
|
60455
|
+
parameters: {
|
|
60456
|
+
query?: never;
|
|
60457
|
+
header?: never;
|
|
60458
|
+
path?: never;
|
|
60459
|
+
cookie?: never;
|
|
60460
|
+
};
|
|
60461
|
+
/**
|
|
60462
|
+
* Meta's webhook verify-token handshake for WhatsApp.
|
|
60463
|
+
* @description **Unauthenticated by design.** With `hub.mode=subscribe` and `hub.verify_token` equal to the token we gave Meta when the app was subscribed, answers `hub.challenge` as plain text; anything else is `403`, and `503` while no token is configured.
|
|
60464
|
+
*/
|
|
60465
|
+
get: operations["verifyCampaignsWhatsappWebhook"];
|
|
60466
|
+
put?: never;
|
|
60467
|
+
/**
|
|
60468
|
+
* WhatsApp delivery receipts and STOP replies from Meta.
|
|
60469
|
+
* @description **Unauthenticated by design**: `X-Hub-Signature-256` (`sha256=` + the HMAC-SHA256 of the raw body under the secret of one of our Meta apps) is the authentication — `401` when it is missing or does not verify, `503` while no app secret is configured (never accepted unverified). A verified body is queued for a background run and acknowledged at once; `503` when it cannot be queued (Meta retries). The run records each `statuses[]` entry on the paid WhatsApp message with that id (`delivered` or `read`, both recorded as delivered, or `failed` with Meta's error code; the first receipt stands, so a redelivery is a no-op); a `failed` with code `131050` (the person stopped marketing messages in WhatsApp) opts the number out. A `messages[]` entry whose whole text or quick-reply button is a STOP word (STOP, UNSUBSCRIBE, "Stop promotions", ...) opts the number out of WhatsApp for the account whose connected number it reached (for our own number, every account holding it as a contact); START removes a reply opt-out. Every later WhatsApp send to that number is refused as `suppressed`.
|
|
60470
|
+
*/
|
|
60471
|
+
post: operations["receiveCampaignsWhatsappWebhook"];
|
|
60472
|
+
delete?: never;
|
|
60473
|
+
options?: never;
|
|
60474
|
+
head?: never;
|
|
60475
|
+
patch?: never;
|
|
60476
|
+
trace?: never;
|
|
60477
|
+
};
|
|
60407
60478
|
"/v1/webhooks/demo-budget": {
|
|
60408
60479
|
parameters: {
|
|
60409
60480
|
query?: never;
|
|
@@ -96924,6 +96995,25 @@ export interface components {
|
|
|
96924
96995
|
chosen: boolean;
|
|
96925
96996
|
shortcuts: components["schemas"]["OverviewShortcutIds"];
|
|
96926
96997
|
};
|
|
96998
|
+
OwnDnsPreflight: {
|
|
96999
|
+
/** @enum {string} */
|
|
97000
|
+
code: "ok" | "no_account" | "provider_error" | "zone_missing" | "cannot_edit" | "unchecked" | "ns_mismatch" | "ns_unknown";
|
|
97001
|
+
domain: string;
|
|
97002
|
+
expected_nameservers?: string[];
|
|
97003
|
+
/** @description The refusal catalogue key */
|
|
97004
|
+
key?: string | null;
|
|
97005
|
+
live_nameservers?: string[];
|
|
97006
|
+
/** @description The fix */
|
|
97007
|
+
message?: string;
|
|
97008
|
+
/** @description True only when `code` is `ok`. */
|
|
97009
|
+
ok: boolean;
|
|
97010
|
+
params?: {
|
|
97011
|
+
[key: string]: unknown;
|
|
97012
|
+
};
|
|
97013
|
+
permission?: string;
|
|
97014
|
+
provider?: string;
|
|
97015
|
+
zone?: string;
|
|
97016
|
+
};
|
|
96927
97017
|
/**
|
|
96928
97018
|
* @description One product line an organization has, or has had, something on.
|
|
96929
97019
|
*
|
|
@@ -107962,7 +108052,7 @@ export interface components {
|
|
|
107962
108052
|
*/
|
|
107963
108053
|
theme?: string;
|
|
107964
108054
|
/**
|
|
107965
|
-
* @description Serve this site's DNS from **your own connected DNS account** rather than Zinn®'s pool (W20-G).
|
|
108055
|
+
* @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
108056
|
*
|
|
107967
108057
|
* ⛔ 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
108058
|
*
|
|
@@ -108337,6 +108427,14 @@ export interface components {
|
|
|
108337
108427
|
*/
|
|
108338
108428
|
paired_with_cdn: string;
|
|
108339
108429
|
};
|
|
108430
|
+
SiteDnsPublish: {
|
|
108431
|
+
/** @description Present on a PUT to `own`; null otherwise. */
|
|
108432
|
+
preflight?: components["schemas"]["OwnDnsPreflight"] | null;
|
|
108433
|
+
/** @enum {string} */
|
|
108434
|
+
publish_on: "zinn" | "own";
|
|
108435
|
+
/** Format: uuid */
|
|
108436
|
+
site_id: string;
|
|
108437
|
+
};
|
|
108340
108438
|
/** @description Where a site's domain actually sends traffic, as measured (docs/823). */
|
|
108341
108439
|
SiteDomainPointing: {
|
|
108342
108440
|
diagnosis?: components["schemas"]["SiteOwnDomainDiagnosis"];
|
|
@@ -208249,6 +208347,68 @@ export interface operations {
|
|
|
208249
208347
|
422: components["responses"]["UnprocessableEntity"];
|
|
208250
208348
|
};
|
|
208251
208349
|
};
|
|
208350
|
+
getSiteDnsPublish: {
|
|
208351
|
+
parameters: {
|
|
208352
|
+
query?: never;
|
|
208353
|
+
header?: never;
|
|
208354
|
+
path: {
|
|
208355
|
+
/** @description Site ID (UUIDv7). */
|
|
208356
|
+
siteId: components["parameters"]["SiteId"];
|
|
208357
|
+
};
|
|
208358
|
+
cookie?: never;
|
|
208359
|
+
};
|
|
208360
|
+
requestBody?: never;
|
|
208361
|
+
responses: {
|
|
208362
|
+
/** @description The site's DNS-publish choice. */
|
|
208363
|
+
200: {
|
|
208364
|
+
headers: {
|
|
208365
|
+
[name: string]: unknown;
|
|
208366
|
+
};
|
|
208367
|
+
content: {
|
|
208368
|
+
"application/json": components["schemas"]["SiteDnsPublish"];
|
|
208369
|
+
};
|
|
208370
|
+
};
|
|
208371
|
+
401: components["responses"]["Unauthorized"];
|
|
208372
|
+
403: components["responses"]["Forbidden"];
|
|
208373
|
+
404: components["responses"]["NotFound"];
|
|
208374
|
+
429: components["responses"]["TooManyRequests"];
|
|
208375
|
+
};
|
|
208376
|
+
};
|
|
208377
|
+
setSiteDnsPublish: {
|
|
208378
|
+
parameters: {
|
|
208379
|
+
query?: never;
|
|
208380
|
+
header?: never;
|
|
208381
|
+
path: {
|
|
208382
|
+
/** @description Site ID (UUIDv7). */
|
|
208383
|
+
siteId: components["parameters"]["SiteId"];
|
|
208384
|
+
};
|
|
208385
|
+
cookie?: never;
|
|
208386
|
+
};
|
|
208387
|
+
requestBody: {
|
|
208388
|
+
content: {
|
|
208389
|
+
"application/json": {
|
|
208390
|
+
/** @enum {string} */
|
|
208391
|
+
publish_on: "zinn" | "own";
|
|
208392
|
+
};
|
|
208393
|
+
};
|
|
208394
|
+
};
|
|
208395
|
+
responses: {
|
|
208396
|
+
/** @description The site's DNS-publish choice after the change. */
|
|
208397
|
+
200: {
|
|
208398
|
+
headers: {
|
|
208399
|
+
[name: string]: unknown;
|
|
208400
|
+
};
|
|
208401
|
+
content: {
|
|
208402
|
+
"application/json": components["schemas"]["SiteDnsPublish"];
|
|
208403
|
+
};
|
|
208404
|
+
};
|
|
208405
|
+
401: components["responses"]["Unauthorized"];
|
|
208406
|
+
403: components["responses"]["Forbidden"];
|
|
208407
|
+
404: components["responses"]["NotFound"];
|
|
208408
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
208409
|
+
429: components["responses"]["TooManyRequests"];
|
|
208410
|
+
};
|
|
208411
|
+
};
|
|
208252
208412
|
getSiteDomainPointing: {
|
|
208253
208413
|
parameters: {
|
|
208254
208414
|
query?: never;
|
|
@@ -215594,6 +215754,40 @@ export interface operations {
|
|
|
215594
215754
|
403: components["responses"]["Forbidden"];
|
|
215595
215755
|
};
|
|
215596
215756
|
};
|
|
215757
|
+
preflightOwnDns: {
|
|
215758
|
+
parameters: {
|
|
215759
|
+
query?: never;
|
|
215760
|
+
header?: never;
|
|
215761
|
+
path?: never;
|
|
215762
|
+
cookie?: never;
|
|
215763
|
+
};
|
|
215764
|
+
requestBody: {
|
|
215765
|
+
content: {
|
|
215766
|
+
"application/json": {
|
|
215767
|
+
/** @example example.com */
|
|
215768
|
+
domain: string;
|
|
215769
|
+
/** Format: uuid */
|
|
215770
|
+
org_id?: string;
|
|
215771
|
+
};
|
|
215772
|
+
};
|
|
215773
|
+
};
|
|
215774
|
+
responses: {
|
|
215775
|
+
/** @description The pre-flight verdict. */
|
|
215776
|
+
200: {
|
|
215777
|
+
headers: {
|
|
215778
|
+
[name: string]: unknown;
|
|
215779
|
+
};
|
|
215780
|
+
content: {
|
|
215781
|
+
"application/json": components["schemas"]["OwnDnsPreflight"];
|
|
215782
|
+
};
|
|
215783
|
+
};
|
|
215784
|
+
401: components["responses"]["Unauthorized"];
|
|
215785
|
+
403: components["responses"]["Forbidden"];
|
|
215786
|
+
404: components["responses"]["NotFound"];
|
|
215787
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
215788
|
+
429: components["responses"]["TooManyRequests"];
|
|
215789
|
+
};
|
|
215790
|
+
};
|
|
215597
215791
|
getSiteProviderOptions: {
|
|
215598
215792
|
parameters: {
|
|
215599
215793
|
query?: {
|
|
@@ -219951,6 +220145,97 @@ export interface operations {
|
|
|
219951
220145
|
};
|
|
219952
220146
|
};
|
|
219953
220147
|
};
|
|
220148
|
+
verifyCampaignsWhatsappWebhook: {
|
|
220149
|
+
parameters: {
|
|
220150
|
+
query?: {
|
|
220151
|
+
"hub.challenge"?: string;
|
|
220152
|
+
"hub.mode"?: string;
|
|
220153
|
+
"hub.verify_token"?: string;
|
|
220154
|
+
};
|
|
220155
|
+
header?: never;
|
|
220156
|
+
path?: never;
|
|
220157
|
+
cookie?: never;
|
|
220158
|
+
};
|
|
220159
|
+
requestBody?: never;
|
|
220160
|
+
responses: {
|
|
220161
|
+
/** @description The challenge, echoed. */
|
|
220162
|
+
200: {
|
|
220163
|
+
headers: {
|
|
220164
|
+
[name: string]: unknown;
|
|
220165
|
+
};
|
|
220166
|
+
content: {
|
|
220167
|
+
"text/plain": string;
|
|
220168
|
+
};
|
|
220169
|
+
};
|
|
220170
|
+
/** @description Not our handshake. */
|
|
220171
|
+
403: {
|
|
220172
|
+
headers: {
|
|
220173
|
+
[name: string]: unknown;
|
|
220174
|
+
};
|
|
220175
|
+
content?: never;
|
|
220176
|
+
};
|
|
220177
|
+
/** @description No verify token is configured. */
|
|
220178
|
+
503: {
|
|
220179
|
+
headers: {
|
|
220180
|
+
[name: string]: unknown;
|
|
220181
|
+
};
|
|
220182
|
+
content?: never;
|
|
220183
|
+
};
|
|
220184
|
+
};
|
|
220185
|
+
};
|
|
220186
|
+
receiveCampaignsWhatsappWebhook: {
|
|
220187
|
+
parameters: {
|
|
220188
|
+
query?: never;
|
|
220189
|
+
header?: {
|
|
220190
|
+
"X-Hub-Signature-256"?: string;
|
|
220191
|
+
};
|
|
220192
|
+
path?: never;
|
|
220193
|
+
cookie?: never;
|
|
220194
|
+
};
|
|
220195
|
+
requestBody: {
|
|
220196
|
+
content: {
|
|
220197
|
+
"application/json": {
|
|
220198
|
+
[key: string]: unknown;
|
|
220199
|
+
};
|
|
220200
|
+
};
|
|
220201
|
+
};
|
|
220202
|
+
responses: {
|
|
220203
|
+
/** @description Verified and queued. */
|
|
220204
|
+
200: {
|
|
220205
|
+
headers: {
|
|
220206
|
+
[name: string]: unknown;
|
|
220207
|
+
};
|
|
220208
|
+
content: {
|
|
220209
|
+
"application/json": {
|
|
220210
|
+
ok: boolean;
|
|
220211
|
+
/** @description The background run handling this body. */
|
|
220212
|
+
queued: string;
|
|
220213
|
+
};
|
|
220214
|
+
};
|
|
220215
|
+
};
|
|
220216
|
+
/** @description Not a JSON object. */
|
|
220217
|
+
400: {
|
|
220218
|
+
headers: {
|
|
220219
|
+
[name: string]: unknown;
|
|
220220
|
+
};
|
|
220221
|
+
content?: never;
|
|
220222
|
+
};
|
|
220223
|
+
/** @description The signature is missing or did not verify. */
|
|
220224
|
+
401: {
|
|
220225
|
+
headers: {
|
|
220226
|
+
[name: string]: unknown;
|
|
220227
|
+
};
|
|
220228
|
+
content?: never;
|
|
220229
|
+
};
|
|
220230
|
+
/** @description No app secret is configured, or the event could not be queued. */
|
|
220231
|
+
503: {
|
|
220232
|
+
headers: {
|
|
220233
|
+
[name: string]: unknown;
|
|
220234
|
+
};
|
|
220235
|
+
content?: never;
|
|
220236
|
+
};
|
|
220237
|
+
};
|
|
220238
|
+
};
|
|
219954
220239
|
reportDemoBudgetExhausted: {
|
|
219955
220240
|
parameters: {
|
|
219956
220241
|
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.1759",
|
|
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>",
|