@zinn-digital/sdk 0.1.1989 → 0.1.1993
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 +595 -0
- package/package.json +1 -1
|
@@ -31730,6 +31730,33 @@ export interface paths {
|
|
|
31730
31730
|
patch?: never;
|
|
31731
31731
|
trace?: never;
|
|
31732
31732
|
};
|
|
31733
|
+
"/v1/compute/servers/{serverId}/panel": {
|
|
31734
|
+
parameters: {
|
|
31735
|
+
query?: never;
|
|
31736
|
+
header?: never;
|
|
31737
|
+
path: {
|
|
31738
|
+
/** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
|
|
31739
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
31740
|
+
};
|
|
31741
|
+
cookie?: never;
|
|
31742
|
+
};
|
|
31743
|
+
/**
|
|
31744
|
+
* Whether the Zinn® panel can be added to this server now, and why not.
|
|
31745
|
+
* @description P3-008 (cloud panel lane D). `available` is true when the panel can go on this machine now. Otherwise `reason` names why, one of `not_active`, `suspended`, `cluster`, `already` (the panel is on it or being added), `failed` (an earlier attempt failed: a support case, not offered again here), `standing` (the account is not in good standing), `not_offered`, `windows`, `range`, `small` (under 2 GB of memory), `starter` (a Docker or Kubernetes starter), `other_panel` (a Plesk licence), `cloudlinux` or `image` (an operating system the panel is not proven on yet). `panel_state` and `panel_message` are the server's own (`ComputeServer`). Requires `sites.view`.
|
|
31746
|
+
*/
|
|
31747
|
+
get: operations["getComputeServerAddPanel"];
|
|
31748
|
+
put?: never;
|
|
31749
|
+
/**
|
|
31750
|
+
* Add the Zinn® panel to a bare server.
|
|
31751
|
+
* @description Installs our panel stack (web server, PHP, database) on a server the customer already has, through the same enrol workflow an order with the panel starts; the answer is the server with `panel_state: enrolling`, which becomes `managed` (or `failed` with `panel_message`). The panel has no price, so nothing is charged. ⛔ It takes over the machine's web ports, so `confirm` must equal the server's `name` exactly (checked server-side) and the caller needs `sites.view` and `sites.delete`, like a rebuild. The request is audit-logged before anything starts. `422` when the panel cannot be added (the `GET` says why) or the name does not match; `503` when the start could not be made (nothing changed; try again).
|
|
31752
|
+
*/
|
|
31753
|
+
post: operations["addComputeServerPanel"];
|
|
31754
|
+
delete?: never;
|
|
31755
|
+
options?: never;
|
|
31756
|
+
head?: never;
|
|
31757
|
+
patch?: never;
|
|
31758
|
+
trace?: never;
|
|
31759
|
+
};
|
|
31733
31760
|
"/v1/compute/servers/{serverId}/plan": {
|
|
31734
31761
|
parameters: {
|
|
31735
31762
|
query?: never;
|
|
@@ -36497,6 +36524,114 @@ export interface paths {
|
|
|
36497
36524
|
patch?: never;
|
|
36498
36525
|
trace?: never;
|
|
36499
36526
|
};
|
|
36527
|
+
"/v1/email-marketing/site-sources": {
|
|
36528
|
+
parameters: {
|
|
36529
|
+
query?: never;
|
|
36530
|
+
header?: never;
|
|
36531
|
+
path?: never;
|
|
36532
|
+
cookie?: never;
|
|
36533
|
+
};
|
|
36534
|
+
/**
|
|
36535
|
+
* The organisation's site contact sources (a hosted site's table feeding a list).
|
|
36536
|
+
* @description Gated on `email_marketing.view`. One keyset page; pass `next_after` as `after`. `site_id` narrows to one site. docs/1052 §14.
|
|
36537
|
+
*/
|
|
36538
|
+
get: operations["listCampaignSiteSources"];
|
|
36539
|
+
put?: never;
|
|
36540
|
+
/**
|
|
36541
|
+
* Connect one table of a site you host to a contact list; the first sync starts at once.
|
|
36542
|
+
* @description Gated on `email_marketing.manage`; audit-logged (`email_marketing.site_source.create`). The site must be the organisation's own; every table and column in the mapping is checked against the site's real schema. The import runs as a Temporal workflow, then every 6 hours.
|
|
36543
|
+
*/
|
|
36544
|
+
post: operations["createCampaignSiteSource"];
|
|
36545
|
+
delete?: never;
|
|
36546
|
+
options?: never;
|
|
36547
|
+
head?: never;
|
|
36548
|
+
patch?: never;
|
|
36549
|
+
trace?: never;
|
|
36550
|
+
};
|
|
36551
|
+
"/v1/email-marketing/site-sources/{source_id}": {
|
|
36552
|
+
parameters: {
|
|
36553
|
+
query?: never;
|
|
36554
|
+
header?: never;
|
|
36555
|
+
path?: never;
|
|
36556
|
+
cookie?: never;
|
|
36557
|
+
};
|
|
36558
|
+
get?: never;
|
|
36559
|
+
put?: never;
|
|
36560
|
+
post?: never;
|
|
36561
|
+
/**
|
|
36562
|
+
* Disconnect a site source. The contacts it brought in and their consent records stay.
|
|
36563
|
+
* @description Gated on `email_marketing.manage`; audit-logged (`email_marketing.site_source.delete`).
|
|
36564
|
+
*/
|
|
36565
|
+
delete: operations["deleteCampaignSiteSource"];
|
|
36566
|
+
options?: never;
|
|
36567
|
+
head?: never;
|
|
36568
|
+
/**
|
|
36569
|
+
* Pause, resume, re-map or re-list one site source.
|
|
36570
|
+
* @description Gated on `email_marketing.manage`; audit-logged (`email_marketing.site_source.update`). A new mapping reads the table again from the start; resuming makes it due at the next sweep.
|
|
36571
|
+
*/
|
|
36572
|
+
patch: operations["updateCampaignSiteSource"];
|
|
36573
|
+
trace?: never;
|
|
36574
|
+
};
|
|
36575
|
+
"/v1/email-marketing/site-sources/{source_id}/sync": {
|
|
36576
|
+
parameters: {
|
|
36577
|
+
query?: never;
|
|
36578
|
+
header?: never;
|
|
36579
|
+
path?: never;
|
|
36580
|
+
cookie?: never;
|
|
36581
|
+
};
|
|
36582
|
+
get?: never;
|
|
36583
|
+
put?: never;
|
|
36584
|
+
/**
|
|
36585
|
+
* Sync a site source now (starts the import workflow; a running one is left alone).
|
|
36586
|
+
* @description Gated on `email_marketing.manage`; audit-logged (`email_marketing.site_source.sync`). Refused while paused.
|
|
36587
|
+
*/
|
|
36588
|
+
post: operations["syncCampaignSiteSource"];
|
|
36589
|
+
delete?: never;
|
|
36590
|
+
options?: never;
|
|
36591
|
+
head?: never;
|
|
36592
|
+
patch?: never;
|
|
36593
|
+
trace?: never;
|
|
36594
|
+
};
|
|
36595
|
+
"/v1/email-marketing/site-sources/discover": {
|
|
36596
|
+
parameters: {
|
|
36597
|
+
query?: never;
|
|
36598
|
+
header?: never;
|
|
36599
|
+
path?: never;
|
|
36600
|
+
cookie?: never;
|
|
36601
|
+
};
|
|
36602
|
+
get?: never;
|
|
36603
|
+
put?: never;
|
|
36604
|
+
/**
|
|
36605
|
+
* Rank a hosted site's tables as contact sources, with optional Ask AI.
|
|
36606
|
+
* @description Gated on `email_marketing.manage`. Reads the site's schema only (no rows). With `ai: true` the tables are also ranked by Zinn® AI, metered as `campaigns_site_ai` against the organisation's AI allowance and audit-logged (`email_marketing.site_source.ai_ranked`).
|
|
36607
|
+
*/
|
|
36608
|
+
post: operations["discoverCampaignSiteSources"];
|
|
36609
|
+
delete?: never;
|
|
36610
|
+
options?: never;
|
|
36611
|
+
head?: never;
|
|
36612
|
+
patch?: never;
|
|
36613
|
+
trace?: never;
|
|
36614
|
+
};
|
|
36615
|
+
"/v1/email-marketing/site-sources/preview": {
|
|
36616
|
+
parameters: {
|
|
36617
|
+
query?: never;
|
|
36618
|
+
header?: never;
|
|
36619
|
+
path?: never;
|
|
36620
|
+
cookie?: never;
|
|
36621
|
+
};
|
|
36622
|
+
get?: never;
|
|
36623
|
+
put?: never;
|
|
36624
|
+
/**
|
|
36625
|
+
* The first rows of a site table as the import would read them under a mapping.
|
|
36626
|
+
* @description Gated on `email_marketing.manage`. Reads at most 20 rows; nothing is saved.
|
|
36627
|
+
*/
|
|
36628
|
+
post: operations["previewCampaignSiteSource"];
|
|
36629
|
+
delete?: never;
|
|
36630
|
+
options?: never;
|
|
36631
|
+
head?: never;
|
|
36632
|
+
patch?: never;
|
|
36633
|
+
trace?: never;
|
|
36634
|
+
};
|
|
36500
36635
|
"/v1/email-marketing/sms": {
|
|
36501
36636
|
parameters: {
|
|
36502
36637
|
query?: never;
|
|
@@ -59667,6 +59802,26 @@ export interface paths {
|
|
|
59667
59802
|
patch?: never;
|
|
59668
59803
|
trace?: never;
|
|
59669
59804
|
};
|
|
59805
|
+
"/v1/store-connect/campaigns/opt-outs": {
|
|
59806
|
+
parameters: {
|
|
59807
|
+
query?: never;
|
|
59808
|
+
header?: never;
|
|
59809
|
+
path?: never;
|
|
59810
|
+
cookie?: never;
|
|
59811
|
+
};
|
|
59812
|
+
/**
|
|
59813
|
+
* The Zinn® Campaigns WordPress plugin pulls the opt-outs of every list fed from its site.
|
|
59814
|
+
* @description Store token only (`Authorization: Bearer zou_…`). Opt-outs flow back by the site PULLING them: the read-only database login a site source uses never writes (docs/1052 §14). Only site sources of the token's own org whose site's primary domain is the store's host are read; a paused source still answers (pausing stops the import, never consent). One page per source: an unsubscribed member of the source's list, or a contact suppressed everywhere (unsubscribed, bounced, complained). Keep calling, passing each source's `cursor` back, while any source returns a non-null `next`; nothing is capped. A cursor that cannot be read restarts that source from the beginning.
|
|
59815
|
+
*/
|
|
59816
|
+
get: operations["listStoreCampaignOptOuts"];
|
|
59817
|
+
put?: never;
|
|
59818
|
+
post?: never;
|
|
59819
|
+
delete?: never;
|
|
59820
|
+
options?: never;
|
|
59821
|
+
head?: never;
|
|
59822
|
+
patch?: never;
|
|
59823
|
+
trace?: never;
|
|
59824
|
+
};
|
|
59670
59825
|
"/v1/store-connect/connection": {
|
|
59671
59826
|
parameters: {
|
|
59672
59827
|
query?: never;
|
|
@@ -81736,6 +81891,76 @@ export interface components {
|
|
|
81736
81891
|
description?: string;
|
|
81737
81892
|
name: string;
|
|
81738
81893
|
};
|
|
81894
|
+
CampaignSiteSource: {
|
|
81895
|
+
consented: number;
|
|
81896
|
+
/** Format: uuid */
|
|
81897
|
+
contact_list_id: string;
|
|
81898
|
+
contacts_created: number;
|
|
81899
|
+
/** Format: date-time */
|
|
81900
|
+
created_at: string;
|
|
81901
|
+
/** Format: uuid */
|
|
81902
|
+
id: string;
|
|
81903
|
+
/** @enum {string} */
|
|
81904
|
+
kind: "wp_users" | "woo_customers" | "form" | "custom_table";
|
|
81905
|
+
last_error: string;
|
|
81906
|
+
/** Format: date-time */
|
|
81907
|
+
last_synced_at: string | null;
|
|
81908
|
+
mapping: components["schemas"]["CampaignSiteSourceMapping"];
|
|
81909
|
+
/** Format: date-time */
|
|
81910
|
+
next_sync_at: string | null;
|
|
81911
|
+
rows_seen: number;
|
|
81912
|
+
/** Format: uuid */
|
|
81913
|
+
site_id: string;
|
|
81914
|
+
/** @enum {string} */
|
|
81915
|
+
status: "active" | "paused" | "failing";
|
|
81916
|
+
sync_started?: boolean;
|
|
81917
|
+
syncing: boolean;
|
|
81918
|
+
table: string;
|
|
81919
|
+
withdrawn: number;
|
|
81920
|
+
};
|
|
81921
|
+
CampaignSiteSourceCandidate: {
|
|
81922
|
+
/** @description Suggested by Ask AI (suggestions only). */
|
|
81923
|
+
ai?: boolean;
|
|
81924
|
+
columns: string[];
|
|
81925
|
+
/** @enum {string} */
|
|
81926
|
+
kind: "wp_users" | "woo_customers" | "form" | "custom_table";
|
|
81927
|
+
/** @description A table we recognise (WordPress, WooCommerce, a form plugin). */
|
|
81928
|
+
known: boolean;
|
|
81929
|
+
label: string;
|
|
81930
|
+
mapping: components["schemas"]["CampaignSiteSourceMapping"];
|
|
81931
|
+
rows: number;
|
|
81932
|
+
score: number;
|
|
81933
|
+
table: string;
|
|
81934
|
+
};
|
|
81935
|
+
/** @description Which table and columns of the site hold the people. `id` and either `email` or `json` are required; `json_*` name keys inside the JSON column; `eav` joins a key/value table (Gravity Forms). Every identifier is checked against the site's real schema. */
|
|
81936
|
+
CampaignSiteSourceMapping: {
|
|
81937
|
+
consent?: string;
|
|
81938
|
+
consent_yes?: string[];
|
|
81939
|
+
eav?: {
|
|
81940
|
+
fk?: string;
|
|
81941
|
+
key?: string;
|
|
81942
|
+
table?: string;
|
|
81943
|
+
value?: string;
|
|
81944
|
+
};
|
|
81945
|
+
email?: string;
|
|
81946
|
+
first_name?: string;
|
|
81947
|
+
id?: string;
|
|
81948
|
+
json?: string;
|
|
81949
|
+
json_consent?: string;
|
|
81950
|
+
json_email?: string;
|
|
81951
|
+
json_first_name?: string;
|
|
81952
|
+
json_last_name?: string;
|
|
81953
|
+
last_name?: string;
|
|
81954
|
+
name?: string;
|
|
81955
|
+
skip_col?: string;
|
|
81956
|
+
skip_values?: string[];
|
|
81957
|
+
table: string;
|
|
81958
|
+
};
|
|
81959
|
+
CampaignSiteSourcePage: {
|
|
81960
|
+
data: components["schemas"]["CampaignSiteSource"][];
|
|
81961
|
+
/** Format: uuid */
|
|
81962
|
+
next_after: string | null;
|
|
81963
|
+
};
|
|
81739
81964
|
/** @description ⛔ Every skip counted separately and never silent, and **every one is present even when it is zero**. "4,127 recipients, 312 skipped — not in good standing" is rendered from these, never recomputed by the client: a total with no breakdown is indistinguishable from an audience nobody could see, and a counter that disappears at zero is indistinguishable from a fence that never ran. */
|
|
81740
81965
|
CampaignSkipCounts: {
|
|
81741
81966
|
channel_muted: number;
|
|
@@ -84157,6 +84382,18 @@ export interface components {
|
|
|
84157
84382
|
/** @description The offer to buy, from `getComputeServerPlan`'s `available` or `getVpsAddonOptions`. ⛔ There is deliberately no price field: a price sent by a client is not read, and the charge is always the catalogue's. */
|
|
84158
84383
|
offer_id: components["schemas"]["Uuid"];
|
|
84159
84384
|
};
|
|
84385
|
+
/** @description P3-008. `confirm` must be the server's exact name (checked server-side). */
|
|
84386
|
+
ComputeAddPanelRequest: {
|
|
84387
|
+
confirm: string;
|
|
84388
|
+
};
|
|
84389
|
+
ComputeAddPanelStatus: {
|
|
84390
|
+
available: boolean;
|
|
84391
|
+
panel_message: string;
|
|
84392
|
+
/** @enum {string} */
|
|
84393
|
+
panel_state: "" | "enrolling" | "managed" | "failed";
|
|
84394
|
+
/** @enum {string|null} */
|
|
84395
|
+
reason: "not_active" | "suspended" | "cluster" | "already" | "failed" | "standing" | "not_offered" | "windows" | "range" | "small" | "starter" | "other_panel" | "cloudlinux" | "image" | null;
|
|
84396
|
+
};
|
|
84160
84397
|
/**
|
|
84161
84398
|
* @description Take an existing provider machine into an organisation.
|
|
84162
84399
|
*
|
|
@@ -177486,6 +177723,64 @@ export interface operations {
|
|
|
177486
177723
|
429: components["responses"]["TooManyRequests"];
|
|
177487
177724
|
};
|
|
177488
177725
|
};
|
|
177726
|
+
getComputeServerAddPanel: {
|
|
177727
|
+
parameters: {
|
|
177728
|
+
query?: never;
|
|
177729
|
+
header?: never;
|
|
177730
|
+
path: {
|
|
177731
|
+
/** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
|
|
177732
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
177733
|
+
};
|
|
177734
|
+
cookie?: never;
|
|
177735
|
+
};
|
|
177736
|
+
requestBody?: never;
|
|
177737
|
+
responses: {
|
|
177738
|
+
/** @description The answer for this server. */
|
|
177739
|
+
200: {
|
|
177740
|
+
headers: {
|
|
177741
|
+
[name: string]: unknown;
|
|
177742
|
+
};
|
|
177743
|
+
content: {
|
|
177744
|
+
"application/json": components["schemas"]["ComputeAddPanelStatus"];
|
|
177745
|
+
};
|
|
177746
|
+
};
|
|
177747
|
+
401: components["responses"]["Unauthorized"];
|
|
177748
|
+
403: components["responses"]["Forbidden"];
|
|
177749
|
+
404: components["responses"]["NotFound"];
|
|
177750
|
+
};
|
|
177751
|
+
};
|
|
177752
|
+
addComputeServerPanel: {
|
|
177753
|
+
parameters: {
|
|
177754
|
+
query?: never;
|
|
177755
|
+
header?: never;
|
|
177756
|
+
path: {
|
|
177757
|
+
/** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
|
|
177758
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
177759
|
+
};
|
|
177760
|
+
cookie?: never;
|
|
177761
|
+
};
|
|
177762
|
+
requestBody: {
|
|
177763
|
+
content: {
|
|
177764
|
+
"application/json": components["schemas"]["ComputeAddPanelRequest"];
|
|
177765
|
+
};
|
|
177766
|
+
};
|
|
177767
|
+
responses: {
|
|
177768
|
+
/** @description The server, with the panel being added. */
|
|
177769
|
+
200: {
|
|
177770
|
+
headers: {
|
|
177771
|
+
[name: string]: unknown;
|
|
177772
|
+
};
|
|
177773
|
+
content: {
|
|
177774
|
+
"application/json": components["schemas"]["ComputeServer"];
|
|
177775
|
+
};
|
|
177776
|
+
};
|
|
177777
|
+
401: components["responses"]["Unauthorized"];
|
|
177778
|
+
403: components["responses"]["Forbidden"];
|
|
177779
|
+
404: components["responses"]["NotFound"];
|
|
177780
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
177781
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
177782
|
+
};
|
|
177783
|
+
};
|
|
177489
177784
|
getComputeServerPlan: {
|
|
177490
177785
|
parameters: {
|
|
177491
177786
|
query?: never;
|
|
@@ -185412,6 +185707,266 @@ export interface operations {
|
|
|
185412
185707
|
404: components["responses"]["NotFound"];
|
|
185413
185708
|
};
|
|
185414
185709
|
};
|
|
185710
|
+
listCampaignSiteSources: {
|
|
185711
|
+
parameters: {
|
|
185712
|
+
query?: {
|
|
185713
|
+
after?: string;
|
|
185714
|
+
limit?: number;
|
|
185715
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185716
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185717
|
+
site_id?: string;
|
|
185718
|
+
};
|
|
185719
|
+
header?: never;
|
|
185720
|
+
path?: never;
|
|
185721
|
+
cookie?: never;
|
|
185722
|
+
};
|
|
185723
|
+
requestBody?: never;
|
|
185724
|
+
responses: {
|
|
185725
|
+
/** @description One page of site sources. */
|
|
185726
|
+
200: {
|
|
185727
|
+
headers: {
|
|
185728
|
+
[name: string]: unknown;
|
|
185729
|
+
};
|
|
185730
|
+
content: {
|
|
185731
|
+
"application/json": components["schemas"]["CampaignSiteSourcePage"];
|
|
185732
|
+
};
|
|
185733
|
+
};
|
|
185734
|
+
401: components["responses"]["Unauthorized"];
|
|
185735
|
+
403: components["responses"]["Forbidden"];
|
|
185736
|
+
};
|
|
185737
|
+
};
|
|
185738
|
+
createCampaignSiteSource: {
|
|
185739
|
+
parameters: {
|
|
185740
|
+
query?: {
|
|
185741
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185742
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185743
|
+
};
|
|
185744
|
+
header?: never;
|
|
185745
|
+
path?: never;
|
|
185746
|
+
cookie?: never;
|
|
185747
|
+
};
|
|
185748
|
+
requestBody: {
|
|
185749
|
+
content: {
|
|
185750
|
+
"application/json": {
|
|
185751
|
+
/** Format: uuid */
|
|
185752
|
+
contact_list_id: string;
|
|
185753
|
+
/** @enum {string} */
|
|
185754
|
+
kind?: "wp_users" | "woo_customers" | "form" | "custom_table";
|
|
185755
|
+
mapping: components["schemas"]["CampaignSiteSourceMapping"];
|
|
185756
|
+
/** Format: uuid */
|
|
185757
|
+
site_id: string;
|
|
185758
|
+
};
|
|
185759
|
+
};
|
|
185760
|
+
};
|
|
185761
|
+
responses: {
|
|
185762
|
+
/** @description Connected. */
|
|
185763
|
+
201: {
|
|
185764
|
+
headers: {
|
|
185765
|
+
[name: string]: unknown;
|
|
185766
|
+
};
|
|
185767
|
+
content: {
|
|
185768
|
+
"application/json": components["schemas"]["CampaignSiteSource"];
|
|
185769
|
+
};
|
|
185770
|
+
};
|
|
185771
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
185772
|
+
401: components["responses"]["Unauthorized"];
|
|
185773
|
+
403: components["responses"]["Forbidden"];
|
|
185774
|
+
404: components["responses"]["NotFound"];
|
|
185775
|
+
409: components["responses"]["Conflict"];
|
|
185776
|
+
502: components["responses"]["ServiceUnavailable"];
|
|
185777
|
+
};
|
|
185778
|
+
};
|
|
185779
|
+
deleteCampaignSiteSource: {
|
|
185780
|
+
parameters: {
|
|
185781
|
+
query?: {
|
|
185782
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185783
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185784
|
+
};
|
|
185785
|
+
header?: never;
|
|
185786
|
+
path: {
|
|
185787
|
+
source_id: string;
|
|
185788
|
+
};
|
|
185789
|
+
cookie?: never;
|
|
185790
|
+
};
|
|
185791
|
+
requestBody?: never;
|
|
185792
|
+
responses: {
|
|
185793
|
+
/** @description Disconnected. */
|
|
185794
|
+
204: {
|
|
185795
|
+
headers: {
|
|
185796
|
+
[name: string]: unknown;
|
|
185797
|
+
};
|
|
185798
|
+
content?: never;
|
|
185799
|
+
};
|
|
185800
|
+
401: components["responses"]["Unauthorized"];
|
|
185801
|
+
403: components["responses"]["Forbidden"];
|
|
185802
|
+
404: components["responses"]["NotFound"];
|
|
185803
|
+
};
|
|
185804
|
+
};
|
|
185805
|
+
updateCampaignSiteSource: {
|
|
185806
|
+
parameters: {
|
|
185807
|
+
query?: {
|
|
185808
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185809
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185810
|
+
};
|
|
185811
|
+
header?: never;
|
|
185812
|
+
path: {
|
|
185813
|
+
source_id: string;
|
|
185814
|
+
};
|
|
185815
|
+
cookie?: never;
|
|
185816
|
+
};
|
|
185817
|
+
requestBody: {
|
|
185818
|
+
content: {
|
|
185819
|
+
"application/json": {
|
|
185820
|
+
/** Format: uuid */
|
|
185821
|
+
contact_list_id?: string;
|
|
185822
|
+
mapping?: components["schemas"]["CampaignSiteSourceMapping"];
|
|
185823
|
+
/** @enum {string} */
|
|
185824
|
+
status?: "active" | "paused";
|
|
185825
|
+
};
|
|
185826
|
+
};
|
|
185827
|
+
};
|
|
185828
|
+
responses: {
|
|
185829
|
+
/** @description The source. */
|
|
185830
|
+
200: {
|
|
185831
|
+
headers: {
|
|
185832
|
+
[name: string]: unknown;
|
|
185833
|
+
};
|
|
185834
|
+
content: {
|
|
185835
|
+
"application/json": components["schemas"]["CampaignSiteSource"];
|
|
185836
|
+
};
|
|
185837
|
+
};
|
|
185838
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
185839
|
+
401: components["responses"]["Unauthorized"];
|
|
185840
|
+
403: components["responses"]["Forbidden"];
|
|
185841
|
+
404: components["responses"]["NotFound"];
|
|
185842
|
+
409: components["responses"]["Conflict"];
|
|
185843
|
+
502: components["responses"]["ServiceUnavailable"];
|
|
185844
|
+
};
|
|
185845
|
+
};
|
|
185846
|
+
syncCampaignSiteSource: {
|
|
185847
|
+
parameters: {
|
|
185848
|
+
query?: {
|
|
185849
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185850
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185851
|
+
};
|
|
185852
|
+
header?: never;
|
|
185853
|
+
path: {
|
|
185854
|
+
source_id: string;
|
|
185855
|
+
};
|
|
185856
|
+
cookie?: never;
|
|
185857
|
+
};
|
|
185858
|
+
requestBody?: never;
|
|
185859
|
+
responses: {
|
|
185860
|
+
/** @description Started (or the 15-minute sweep will pick it up when `sync_started` is false). */
|
|
185861
|
+
202: {
|
|
185862
|
+
headers: {
|
|
185863
|
+
[name: string]: unknown;
|
|
185864
|
+
};
|
|
185865
|
+
content: {
|
|
185866
|
+
"application/json": components["schemas"]["CampaignSiteSource"];
|
|
185867
|
+
};
|
|
185868
|
+
};
|
|
185869
|
+
401: components["responses"]["Unauthorized"];
|
|
185870
|
+
403: components["responses"]["Forbidden"];
|
|
185871
|
+
404: components["responses"]["NotFound"];
|
|
185872
|
+
409: components["responses"]["Conflict"];
|
|
185873
|
+
};
|
|
185874
|
+
};
|
|
185875
|
+
discoverCampaignSiteSources: {
|
|
185876
|
+
parameters: {
|
|
185877
|
+
query?: {
|
|
185878
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185879
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185880
|
+
};
|
|
185881
|
+
header?: never;
|
|
185882
|
+
path?: never;
|
|
185883
|
+
cookie?: never;
|
|
185884
|
+
};
|
|
185885
|
+
requestBody: {
|
|
185886
|
+
content: {
|
|
185887
|
+
"application/json": {
|
|
185888
|
+
/** @default false */
|
|
185889
|
+
ai?: boolean;
|
|
185890
|
+
/** @description What the customer calls the people (e.g. 'members'). */
|
|
185891
|
+
hint?: string;
|
|
185892
|
+
/** Format: uuid */
|
|
185893
|
+
site_id: string;
|
|
185894
|
+
};
|
|
185895
|
+
};
|
|
185896
|
+
};
|
|
185897
|
+
responses: {
|
|
185898
|
+
/** @description The ranked candidates. */
|
|
185899
|
+
200: {
|
|
185900
|
+
headers: {
|
|
185901
|
+
[name: string]: unknown;
|
|
185902
|
+
};
|
|
185903
|
+
content: {
|
|
185904
|
+
"application/json": {
|
|
185905
|
+
ai_calls?: number;
|
|
185906
|
+
candidates: components["schemas"]["CampaignSiteSourceCandidate"][];
|
|
185907
|
+
suggestions: components["schemas"]["CampaignSiteSourceCandidate"][];
|
|
185908
|
+
tables: number;
|
|
185909
|
+
};
|
|
185910
|
+
};
|
|
185911
|
+
};
|
|
185912
|
+
401: components["responses"]["Unauthorized"];
|
|
185913
|
+
402: components["responses"]["Forbidden"];
|
|
185914
|
+
403: components["responses"]["Forbidden"];
|
|
185915
|
+
404: components["responses"]["NotFound"];
|
|
185916
|
+
409: components["responses"]["Conflict"];
|
|
185917
|
+
502: components["responses"]["ServiceUnavailable"];
|
|
185918
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
185919
|
+
};
|
|
185920
|
+
};
|
|
185921
|
+
previewCampaignSiteSource: {
|
|
185922
|
+
parameters: {
|
|
185923
|
+
query?: {
|
|
185924
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
185925
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
185926
|
+
};
|
|
185927
|
+
header?: never;
|
|
185928
|
+
path?: never;
|
|
185929
|
+
cookie?: never;
|
|
185930
|
+
};
|
|
185931
|
+
requestBody: {
|
|
185932
|
+
content: {
|
|
185933
|
+
"application/json": {
|
|
185934
|
+
mapping: components["schemas"]["CampaignSiteSourceMapping"];
|
|
185935
|
+
/** Format: uuid */
|
|
185936
|
+
site_id: string;
|
|
185937
|
+
};
|
|
185938
|
+
};
|
|
185939
|
+
};
|
|
185940
|
+
responses: {
|
|
185941
|
+
/** @description The preview rows and the JSON keys seen. */
|
|
185942
|
+
200: {
|
|
185943
|
+
headers: {
|
|
185944
|
+
[name: string]: unknown;
|
|
185945
|
+
};
|
|
185946
|
+
content: {
|
|
185947
|
+
"application/json": {
|
|
185948
|
+
json_keys: string[];
|
|
185949
|
+
mapping: components["schemas"]["CampaignSiteSourceMapping"];
|
|
185950
|
+
rows: {
|
|
185951
|
+
/** @enum {string} */
|
|
185952
|
+
consent: "consented" | "declined" | "unknown";
|
|
185953
|
+
consent_value: string;
|
|
185954
|
+
email: string;
|
|
185955
|
+
first_name: string;
|
|
185956
|
+
last_name: string;
|
|
185957
|
+
skipped: boolean;
|
|
185958
|
+
}[];
|
|
185959
|
+
};
|
|
185960
|
+
};
|
|
185961
|
+
};
|
|
185962
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
185963
|
+
401: components["responses"]["Unauthorized"];
|
|
185964
|
+
403: components["responses"]["Forbidden"];
|
|
185965
|
+
404: components["responses"]["NotFound"];
|
|
185966
|
+
409: components["responses"]["Conflict"];
|
|
185967
|
+
502: components["responses"]["ServiceUnavailable"];
|
|
185968
|
+
};
|
|
185969
|
+
};
|
|
185415
185970
|
getEmailMarketingSms: {
|
|
185416
185971
|
parameters: {
|
|
185417
185972
|
query?: {
|
|
@@ -222700,6 +223255,46 @@ export interface operations {
|
|
|
222700
223255
|
429: components["responses"]["TooManyRequests"];
|
|
222701
223256
|
};
|
|
222702
223257
|
};
|
|
223258
|
+
listStoreCampaignOptOuts: {
|
|
223259
|
+
parameters: {
|
|
223260
|
+
query?: {
|
|
223261
|
+
/** @description Repeatable, at most 50: `<source id>~<cursor>`, the `cursor` the last answer gave that source. */
|
|
223262
|
+
after?: string[];
|
|
223263
|
+
};
|
|
223264
|
+
header?: never;
|
|
223265
|
+
path?: never;
|
|
223266
|
+
cookie?: never;
|
|
223267
|
+
};
|
|
223268
|
+
requestBody?: never;
|
|
223269
|
+
responses: {
|
|
223270
|
+
/** @description One page of opt-outs per source. */
|
|
223271
|
+
200: {
|
|
223272
|
+
headers: {
|
|
223273
|
+
[name: string]: unknown;
|
|
223274
|
+
};
|
|
223275
|
+
content: {
|
|
223276
|
+
"application/json": {
|
|
223277
|
+
sources: {
|
|
223278
|
+
/** @description Keep it; pass it back to pull only what changed since. */
|
|
223279
|
+
cursor: string;
|
|
223280
|
+
/** Format: uuid */
|
|
223281
|
+
id: string;
|
|
223282
|
+
/** @description Non-null when this source has more: call again with it. */
|
|
223283
|
+
next: string | null;
|
|
223284
|
+
opt_outs: {
|
|
223285
|
+
/** Format: email */
|
|
223286
|
+
email: string;
|
|
223287
|
+
/** @enum {string} */
|
|
223288
|
+
reason: "unsubscribed" | "bounced" | "complained";
|
|
223289
|
+
}[];
|
|
223290
|
+
}[];
|
|
223291
|
+
};
|
|
223292
|
+
};
|
|
223293
|
+
};
|
|
223294
|
+
401: components["responses"]["Unauthorized"];
|
|
223295
|
+
429: components["responses"]["TooManyRequests"];
|
|
223296
|
+
};
|
|
223297
|
+
};
|
|
222703
223298
|
disconnectStore: {
|
|
222704
223299
|
parameters: {
|
|
222705
223300
|
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.1993",
|
|
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>",
|