@zinn-digital/sdk 0.1.1641 → 0.1.1644
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 +356 -1
- package/package.json +1 -1
|
@@ -56341,6 +56341,126 @@ export interface paths {
|
|
|
56341
56341
|
patch?: never;
|
|
56342
56342
|
trace?: never;
|
|
56343
56343
|
};
|
|
56344
|
+
"/v1/store-connect/authorize": {
|
|
56345
|
+
parameters: {
|
|
56346
|
+
query?: never;
|
|
56347
|
+
header?: never;
|
|
56348
|
+
path?: never;
|
|
56349
|
+
cookie?: never;
|
|
56350
|
+
};
|
|
56351
|
+
get?: never;
|
|
56352
|
+
put?: never;
|
|
56353
|
+
/**
|
|
56354
|
+
* A member approves a store's Zinn® Order Updates connection (the consent screen's Allow).
|
|
56355
|
+
* @description docs/1297 §5. Needs `email_marketing.manage` in `org_id` (or the only org the member manages). Keeps a single-use grant for ten minutes holding the SHA-256 of a one-time `code` and the plugin's PKCE `code_challenge` (S256 only). ⛔ `return_url` must be the SAME ORIGIN as `site_url`; the dashboard sends the browser to `redirect_to` with `code` and the plugin's `state`. Audit action `store_connect.authorized`.
|
|
56356
|
+
*/
|
|
56357
|
+
post: operations["authorizeStoreConnect"];
|
|
56358
|
+
delete?: never;
|
|
56359
|
+
options?: never;
|
|
56360
|
+
head?: never;
|
|
56361
|
+
patch?: never;
|
|
56362
|
+
trace?: never;
|
|
56363
|
+
};
|
|
56364
|
+
"/v1/store-connect/connection": {
|
|
56365
|
+
parameters: {
|
|
56366
|
+
query?: never;
|
|
56367
|
+
header?: never;
|
|
56368
|
+
path?: never;
|
|
56369
|
+
cookie?: never;
|
|
56370
|
+
};
|
|
56371
|
+
get?: never;
|
|
56372
|
+
put?: never;
|
|
56373
|
+
post?: never;
|
|
56374
|
+
/**
|
|
56375
|
+
* The store plugin's own Disconnect button revokes its token.
|
|
56376
|
+
* @description Store token only. Audit action `store_connect.disconnected` (by `plugin`).
|
|
56377
|
+
*/
|
|
56378
|
+
delete: operations["disconnectStore"];
|
|
56379
|
+
options?: never;
|
|
56380
|
+
head?: never;
|
|
56381
|
+
patch?: never;
|
|
56382
|
+
trace?: never;
|
|
56383
|
+
};
|
|
56384
|
+
"/v1/store-connect/connections": {
|
|
56385
|
+
parameters: {
|
|
56386
|
+
query?: never;
|
|
56387
|
+
header?: never;
|
|
56388
|
+
path?: never;
|
|
56389
|
+
cookie?: never;
|
|
56390
|
+
};
|
|
56391
|
+
/**
|
|
56392
|
+
* Connected stores, newest first (Campaigns, Stores).
|
|
56393
|
+
* @description Needs `email_marketing.view`; only orgs where the member holds it. Keyset paged: follow `next_after` until it is null (a page size, never a cap).
|
|
56394
|
+
*/
|
|
56395
|
+
get: operations["listStoreConnections"];
|
|
56396
|
+
put?: never;
|
|
56397
|
+
post?: never;
|
|
56398
|
+
delete?: never;
|
|
56399
|
+
options?: never;
|
|
56400
|
+
head?: never;
|
|
56401
|
+
patch?: never;
|
|
56402
|
+
trace?: never;
|
|
56403
|
+
};
|
|
56404
|
+
"/v1/store-connect/connections/{connection_id}": {
|
|
56405
|
+
parameters: {
|
|
56406
|
+
query?: never;
|
|
56407
|
+
header?: never;
|
|
56408
|
+
path?: never;
|
|
56409
|
+
cookie?: never;
|
|
56410
|
+
};
|
|
56411
|
+
get?: never;
|
|
56412
|
+
put?: never;
|
|
56413
|
+
post?: never;
|
|
56414
|
+
/**
|
|
56415
|
+
* Disconnect a store from the dashboard.
|
|
56416
|
+
* @description Needs `email_marketing.manage` in the store's org; another org's store is a 404. The store's token stops at once; the plugin shows Reconnect. Audit action `store_connect.disconnected` (by `dashboard`).
|
|
56417
|
+
*/
|
|
56418
|
+
delete: operations["revokeStoreConnection"];
|
|
56419
|
+
options?: never;
|
|
56420
|
+
head?: never;
|
|
56421
|
+
patch?: never;
|
|
56422
|
+
trace?: never;
|
|
56423
|
+
};
|
|
56424
|
+
"/v1/store-connect/status": {
|
|
56425
|
+
parameters: {
|
|
56426
|
+
query?: never;
|
|
56427
|
+
header?: never;
|
|
56428
|
+
path?: never;
|
|
56429
|
+
cookie?: never;
|
|
56430
|
+
};
|
|
56431
|
+
/**
|
|
56432
|
+
* The store plugin reads its connection; doubles as the heartbeat.
|
|
56433
|
+
* @description Store token only (`Authorization: Bearer zou_…`). Records `last_seen_at` and the reported versions and integrations. Missing, wrong and revoked tokens are one answer (401).
|
|
56434
|
+
*/
|
|
56435
|
+
get: operations["getStoreConnectStatus"];
|
|
56436
|
+
put?: never;
|
|
56437
|
+
post?: never;
|
|
56438
|
+
delete?: never;
|
|
56439
|
+
options?: never;
|
|
56440
|
+
head?: never;
|
|
56441
|
+
patch?: never;
|
|
56442
|
+
trace?: never;
|
|
56443
|
+
};
|
|
56444
|
+
"/v1/store-connect/token": {
|
|
56445
|
+
parameters: {
|
|
56446
|
+
query?: never;
|
|
56447
|
+
header?: never;
|
|
56448
|
+
path?: never;
|
|
56449
|
+
cookie?: never;
|
|
56450
|
+
};
|
|
56451
|
+
get?: never;
|
|
56452
|
+
put?: never;
|
|
56453
|
+
/**
|
|
56454
|
+
* The store plugin exchanges the one-time code and its PKCE verifier for a store token.
|
|
56455
|
+
* @description ⛔ **No session**: server to server from the store. The code is claimed with one conditional write before anything else is checked, so it works once; a wrong verifier or another site burns it. Unknown, used, expired and mismatched codes are one answer (422 `codeInvalid`). Re-connecting a store retires its old token in the same step. The `token` (`zou_…`) is returned ONCE; we keep its SHA-256. Audit action `store_connect.connected`.
|
|
56456
|
+
*/
|
|
56457
|
+
post: operations["exchangeStoreConnectCode"];
|
|
56458
|
+
delete?: never;
|
|
56459
|
+
options?: never;
|
|
56460
|
+
head?: never;
|
|
56461
|
+
patch?: never;
|
|
56462
|
+
trace?: never;
|
|
56463
|
+
};
|
|
56344
56464
|
"/v1/streaming/streams": {
|
|
56345
56465
|
parameters: {
|
|
56346
56466
|
query?: never;
|
|
@@ -57371,7 +57491,7 @@ export interface paths {
|
|
|
57371
57491
|
options?: never;
|
|
57372
57492
|
head?: never;
|
|
57373
57493
|
/**
|
|
57374
|
-
* Pause, resume or
|
|
57494
|
+
* Pause, resume, rename or set where a monitored address is checked from.
|
|
57375
57495
|
* @description Gated on `uptime.manage`. ⛔ The **URL cannot be changed**: a monitor's Core Web Vitals readings are joined back to it by that canonical string, so a mutable URL would silently re-point a monitor at another address's history. Change an address by deleting the monitor and adding another. Pausing closes any open incident, so a paused monitor cannot accrue an outage out of us not looking.
|
|
57376
57496
|
*/
|
|
57377
57497
|
patch: operations["updateUptimeMonitor"];
|
|
@@ -111002,6 +111122,43 @@ export interface components {
|
|
|
111002
111122
|
/** @description GB beyond the allowance, or `0` — never negative. */
|
|
111003
111123
|
over_allowance_gb?: number;
|
|
111004
111124
|
};
|
|
111125
|
+
StoreConnectAuthorized: {
|
|
111126
|
+
/** @description zouc_… — single use, ten minutes. */
|
|
111127
|
+
code: string;
|
|
111128
|
+
/** Format: date-time */
|
|
111129
|
+
expires_at: string;
|
|
111130
|
+
/**
|
|
111131
|
+
* Format: uri
|
|
111132
|
+
* @description The plugin's return URL; add `code` and `state`.
|
|
111133
|
+
*/
|
|
111134
|
+
redirect_to: string;
|
|
111135
|
+
site_host: string;
|
|
111136
|
+
};
|
|
111137
|
+
/** @description A store running Zinn® Order Updates, connected to an org (docs/1297 §4.4). Never the token. */
|
|
111138
|
+
StoreConnection: {
|
|
111139
|
+
/** Format: date-time */
|
|
111140
|
+
connected_at: string;
|
|
111141
|
+
connected_by: string;
|
|
111142
|
+
/** Format: uuid */
|
|
111143
|
+
id: string;
|
|
111144
|
+
integrations: string[];
|
|
111145
|
+
/** Format: date-time */
|
|
111146
|
+
last_seen_at: string | null;
|
|
111147
|
+
/** Format: uuid */
|
|
111148
|
+
org_id: string;
|
|
111149
|
+
plugin_version: string;
|
|
111150
|
+
site_host: string;
|
|
111151
|
+
site_url: string;
|
|
111152
|
+
/** @enum {string} */
|
|
111153
|
+
status: "active" | "revoked";
|
|
111154
|
+
/** @description The token's last four characters. */
|
|
111155
|
+
token_hint: string;
|
|
111156
|
+
wp_version: string;
|
|
111157
|
+
};
|
|
111158
|
+
StoreConnectStatus: components["schemas"]["StoreConnection"] & {
|
|
111159
|
+
/** @description Zinn® Campaigns is open for this org. */
|
|
111160
|
+
campaigns_open: boolean;
|
|
111161
|
+
};
|
|
111005
111162
|
StoredVideo: {
|
|
111006
111163
|
/** Format: date-time */
|
|
111007
111164
|
created_at?: string | null;
|
|
@@ -114015,6 +114172,8 @@ export interface components {
|
|
|
114015
114172
|
uptime_percent?: number | null;
|
|
114016
114173
|
};
|
|
114017
114174
|
UptimeMonitor: {
|
|
114175
|
+
/** @description Upper-case ISO alpha-2 country the second-opinion check runs from; null = any of our locations. */
|
|
114176
|
+
check_from?: string | null;
|
|
114018
114177
|
/** Format: date-time */
|
|
114019
114178
|
created_at: string;
|
|
114020
114179
|
/**
|
|
@@ -114047,6 +114206,8 @@ export interface components {
|
|
|
114047
114206
|
url: string;
|
|
114048
114207
|
};
|
|
114049
114208
|
UptimeMonitorCreate: {
|
|
114209
|
+
/** @description ISO 3166-1 alpha-2 country the second-opinion check runs from, for a site that answers only visitors in one country. Empty or null checks from any of our locations. ⛔ A country we cannot check from is refused with 422 naming the countries we can (`check_from_countries` on the list) — never a silent fallback to another country, which would read a geofenced site as down. */
|
|
114210
|
+
check_from?: string | null;
|
|
114050
114211
|
/** @description Text that must appear in the response for the check to pass. ⭐ This is what catches the failure a status code cannot — a site whose database has gone but whose index still answers `200` with an empty page. */
|
|
114051
114212
|
expect_text?: string;
|
|
114052
114213
|
/** @description What to call it on screen. Blank falls back to the host. ⛔ `name`, not `label`: `label` is an attribute of DRF's `Field` and cannot be a serializer field name, and a read key that differs from its write key is worse than renaming both. */
|
|
@@ -114065,10 +114226,14 @@ export interface components {
|
|
|
114065
114226
|
};
|
|
114066
114227
|
UptimeMonitorList: {
|
|
114067
114228
|
allowance: components["schemas"]["UptimeAllowance"];
|
|
114229
|
+
/** @description The countries a monitor's `check_from` may name right now, sorted. Derived from our live check locations, so a country disappears from here the moment we can no longer check from it. */
|
|
114230
|
+
check_from_countries?: string[];
|
|
114068
114231
|
data: components["schemas"]["UptimeMonitor"][];
|
|
114069
114232
|
};
|
|
114070
114233
|
/** @description ⛔ The URL is deliberately absent — see `updateUptimeMonitor`. */
|
|
114071
114234
|
UptimeMonitorUpdate: {
|
|
114235
|
+
/** @description ISO 3166-1 alpha-2 country the second-opinion check runs from, for a site that answers only visitors in one country. Empty or null checks from any of our locations. ⛔ A country we cannot check from is refused with 422 naming the countries we can (`check_from_countries` on the list) — never a silent fallback to another country, which would read a geofenced site as down. */
|
|
114236
|
+
check_from?: string | null;
|
|
114072
114237
|
/** @description Pause or resume. Pausing closes any open incident. */
|
|
114073
114238
|
enabled?: boolean;
|
|
114074
114239
|
name?: string;
|
|
@@ -209291,6 +209456,195 @@ export interface operations {
|
|
|
209291
209456
|
429: components["responses"]["TooManyRequests"];
|
|
209292
209457
|
};
|
|
209293
209458
|
};
|
|
209459
|
+
authorizeStoreConnect: {
|
|
209460
|
+
parameters: {
|
|
209461
|
+
query?: never;
|
|
209462
|
+
header?: never;
|
|
209463
|
+
path?: never;
|
|
209464
|
+
cookie?: never;
|
|
209465
|
+
};
|
|
209466
|
+
requestBody: {
|
|
209467
|
+
content: {
|
|
209468
|
+
"application/json": {
|
|
209469
|
+
code_challenge: string;
|
|
209470
|
+
/**
|
|
209471
|
+
* @default S256
|
|
209472
|
+
* @enum {string}
|
|
209473
|
+
*/
|
|
209474
|
+
code_challenge_method?: "S256";
|
|
209475
|
+
/** Format: uuid */
|
|
209476
|
+
org_id?: string;
|
|
209477
|
+
/**
|
|
209478
|
+
* Format: uri
|
|
209479
|
+
* @description The plugin's admin page
|
|
209480
|
+
*/
|
|
209481
|
+
return_url: string;
|
|
209482
|
+
/**
|
|
209483
|
+
* Format: uri
|
|
209484
|
+
* @description The store's home_url().
|
|
209485
|
+
*/
|
|
209486
|
+
site_url: string;
|
|
209487
|
+
};
|
|
209488
|
+
};
|
|
209489
|
+
};
|
|
209490
|
+
responses: {
|
|
209491
|
+
/** @description Approved. The code is shown once; only its hash is kept. */
|
|
209492
|
+
201: {
|
|
209493
|
+
headers: {
|
|
209494
|
+
[name: string]: unknown;
|
|
209495
|
+
};
|
|
209496
|
+
content: {
|
|
209497
|
+
"application/json": components["schemas"]["StoreConnectAuthorized"];
|
|
209498
|
+
};
|
|
209499
|
+
};
|
|
209500
|
+
401: components["responses"]["Unauthorized"];
|
|
209501
|
+
403: components["responses"]["Forbidden"];
|
|
209502
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
209503
|
+
};
|
|
209504
|
+
};
|
|
209505
|
+
disconnectStore: {
|
|
209506
|
+
parameters: {
|
|
209507
|
+
query?: never;
|
|
209508
|
+
header?: never;
|
|
209509
|
+
path?: never;
|
|
209510
|
+
cookie?: never;
|
|
209511
|
+
};
|
|
209512
|
+
requestBody?: never;
|
|
209513
|
+
responses: {
|
|
209514
|
+
/** @description Disconnected. */
|
|
209515
|
+
204: {
|
|
209516
|
+
headers: {
|
|
209517
|
+
[name: string]: unknown;
|
|
209518
|
+
};
|
|
209519
|
+
content?: never;
|
|
209520
|
+
};
|
|
209521
|
+
401: components["responses"]["Unauthorized"];
|
|
209522
|
+
429: components["responses"]["TooManyRequests"];
|
|
209523
|
+
};
|
|
209524
|
+
};
|
|
209525
|
+
listStoreConnections: {
|
|
209526
|
+
parameters: {
|
|
209527
|
+
query?: {
|
|
209528
|
+
after?: string;
|
|
209529
|
+
limit?: number;
|
|
209530
|
+
org_id?: string;
|
|
209531
|
+
};
|
|
209532
|
+
header?: never;
|
|
209533
|
+
path?: never;
|
|
209534
|
+
cookie?: never;
|
|
209535
|
+
};
|
|
209536
|
+
requestBody?: never;
|
|
209537
|
+
responses: {
|
|
209538
|
+
/** @description One page. */
|
|
209539
|
+
200: {
|
|
209540
|
+
headers: {
|
|
209541
|
+
[name: string]: unknown;
|
|
209542
|
+
};
|
|
209543
|
+
content: {
|
|
209544
|
+
"application/json": {
|
|
209545
|
+
items: components["schemas"]["StoreConnection"][];
|
|
209546
|
+
/** Format: uuid */
|
|
209547
|
+
next_after: string | null;
|
|
209548
|
+
};
|
|
209549
|
+
};
|
|
209550
|
+
};
|
|
209551
|
+
401: components["responses"]["Unauthorized"];
|
|
209552
|
+
403: components["responses"]["Forbidden"];
|
|
209553
|
+
};
|
|
209554
|
+
};
|
|
209555
|
+
revokeStoreConnection: {
|
|
209556
|
+
parameters: {
|
|
209557
|
+
query?: never;
|
|
209558
|
+
header?: never;
|
|
209559
|
+
path: {
|
|
209560
|
+
connection_id: string;
|
|
209561
|
+
};
|
|
209562
|
+
cookie?: never;
|
|
209563
|
+
};
|
|
209564
|
+
requestBody?: never;
|
|
209565
|
+
responses: {
|
|
209566
|
+
/** @description Disconnected. */
|
|
209567
|
+
204: {
|
|
209568
|
+
headers: {
|
|
209569
|
+
[name: string]: unknown;
|
|
209570
|
+
};
|
|
209571
|
+
content?: never;
|
|
209572
|
+
};
|
|
209573
|
+
401: components["responses"]["Unauthorized"];
|
|
209574
|
+
403: components["responses"]["Forbidden"];
|
|
209575
|
+
404: components["responses"]["NotFound"];
|
|
209576
|
+
};
|
|
209577
|
+
};
|
|
209578
|
+
getStoreConnectStatus: {
|
|
209579
|
+
parameters: {
|
|
209580
|
+
query?: {
|
|
209581
|
+
/** @description Comma-separated integration keys. */
|
|
209582
|
+
integrations?: string;
|
|
209583
|
+
plugin_version?: string;
|
|
209584
|
+
wp_version?: string;
|
|
209585
|
+
};
|
|
209586
|
+
header?: never;
|
|
209587
|
+
path?: never;
|
|
209588
|
+
cookie?: never;
|
|
209589
|
+
};
|
|
209590
|
+
requestBody?: never;
|
|
209591
|
+
responses: {
|
|
209592
|
+
/** @description The connection. */
|
|
209593
|
+
200: {
|
|
209594
|
+
headers: {
|
|
209595
|
+
[name: string]: unknown;
|
|
209596
|
+
};
|
|
209597
|
+
content: {
|
|
209598
|
+
"application/json": components["schemas"]["StoreConnectStatus"];
|
|
209599
|
+
};
|
|
209600
|
+
};
|
|
209601
|
+
401: components["responses"]["Unauthorized"];
|
|
209602
|
+
429: components["responses"]["TooManyRequests"];
|
|
209603
|
+
};
|
|
209604
|
+
};
|
|
209605
|
+
exchangeStoreConnectCode: {
|
|
209606
|
+
parameters: {
|
|
209607
|
+
query?: never;
|
|
209608
|
+
header?: never;
|
|
209609
|
+
path?: never;
|
|
209610
|
+
cookie?: never;
|
|
209611
|
+
};
|
|
209612
|
+
requestBody: {
|
|
209613
|
+
content: {
|
|
209614
|
+
"application/json": {
|
|
209615
|
+
code: string;
|
|
209616
|
+
code_verifier: string;
|
|
209617
|
+
integrations?: string[];
|
|
209618
|
+
/** @description Reported facts such as the WooCommerce version; scalars only. */
|
|
209619
|
+
platform?: {
|
|
209620
|
+
[key: string]: unknown;
|
|
209621
|
+
};
|
|
209622
|
+
plugin_version?: string;
|
|
209623
|
+
/** Format: uri */
|
|
209624
|
+
site_url: string;
|
|
209625
|
+
site_uuid?: string;
|
|
209626
|
+
wp_version?: string;
|
|
209627
|
+
};
|
|
209628
|
+
};
|
|
209629
|
+
};
|
|
209630
|
+
responses: {
|
|
209631
|
+
/** @description Connected. */
|
|
209632
|
+
201: {
|
|
209633
|
+
headers: {
|
|
209634
|
+
[name: string]: unknown;
|
|
209635
|
+
};
|
|
209636
|
+
content: {
|
|
209637
|
+
"application/json": {
|
|
209638
|
+
connection: components["schemas"]["StoreConnectStatus"];
|
|
209639
|
+
/** @description zou_… — store it; it is never shown again. */
|
|
209640
|
+
token: string;
|
|
209641
|
+
};
|
|
209642
|
+
};
|
|
209643
|
+
};
|
|
209644
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
209645
|
+
429: components["responses"]["TooManyRequests"];
|
|
209646
|
+
};
|
|
209647
|
+
};
|
|
209294
209648
|
listLiveStreams: {
|
|
209295
209649
|
parameters: {
|
|
209296
209650
|
query?: never;
|
|
@@ -210881,6 +211235,7 @@ export interface operations {
|
|
|
210881
211235
|
401: components["responses"]["Unauthorized"];
|
|
210882
211236
|
403: components["responses"]["Forbidden"];
|
|
210883
211237
|
404: components["responses"]["NotFound"];
|
|
211238
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
210884
211239
|
};
|
|
210885
211240
|
};
|
|
210886
211241
|
listStatusPages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1644",
|
|
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>",
|