@zinn-digital/sdk 0.1.1991 → 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 +498 -0
- package/package.json +1 -1
|
@@ -36524,6 +36524,114 @@ export interface paths {
|
|
|
36524
36524
|
patch?: never;
|
|
36525
36525
|
trace?: never;
|
|
36526
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
|
+
};
|
|
36527
36635
|
"/v1/email-marketing/sms": {
|
|
36528
36636
|
parameters: {
|
|
36529
36637
|
query?: never;
|
|
@@ -59694,6 +59802,26 @@ export interface paths {
|
|
|
59694
59802
|
patch?: never;
|
|
59695
59803
|
trace?: never;
|
|
59696
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
|
+
};
|
|
59697
59825
|
"/v1/store-connect/connection": {
|
|
59698
59826
|
parameters: {
|
|
59699
59827
|
query?: never;
|
|
@@ -81763,6 +81891,76 @@ export interface components {
|
|
|
81763
81891
|
description?: string;
|
|
81764
81892
|
name: string;
|
|
81765
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
|
+
};
|
|
81766
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. */
|
|
81767
81965
|
CampaignSkipCounts: {
|
|
81768
81966
|
channel_muted: number;
|
|
@@ -185509,6 +185707,266 @@ export interface operations {
|
|
|
185509
185707
|
404: components["responses"]["NotFound"];
|
|
185510
185708
|
};
|
|
185511
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
|
+
};
|
|
185512
185970
|
getEmailMarketingSms: {
|
|
185513
185971
|
parameters: {
|
|
185514
185972
|
query?: {
|
|
@@ -222797,6 +223255,46 @@ export interface operations {
|
|
|
222797
223255
|
429: components["responses"]["TooManyRequests"];
|
|
222798
223256
|
};
|
|
222799
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
|
+
};
|
|
222800
223298
|
disconnectStore: {
|
|
222801
223299
|
parameters: {
|
|
222802
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>",
|