@zinn-digital/sdk 0.1.1788 → 0.1.1790
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 +175 -5
- package/package.json +1 -1
|
@@ -35726,6 +35726,34 @@ export interface paths {
|
|
|
35726
35726
|
patch?: never;
|
|
35727
35727
|
trace?: never;
|
|
35728
35728
|
};
|
|
35729
|
+
"/v1/email-marketing/zerobounce": {
|
|
35730
|
+
parameters: {
|
|
35731
|
+
query?: never;
|
|
35732
|
+
header?: never;
|
|
35733
|
+
path?: never;
|
|
35734
|
+
cookie?: never;
|
|
35735
|
+
};
|
|
35736
|
+
/**
|
|
35737
|
+
* Whether this organisation's own ZeroBounce key is connected (F41).
|
|
35738
|
+
* @description Gated on `email_marketing.view`. No network and no Vault read: the answer comes from the organisation's settings row. The key itself is never returned; `key_hint` is its last four characters. `modes` are the values a campaign's `zerobounce_mode` takes.
|
|
35739
|
+
*/
|
|
35740
|
+
get: operations["getEmailMarketingZeroBounce"];
|
|
35741
|
+
/**
|
|
35742
|
+
* Connect (or replace) this organisation's own ZeroBounce API key.
|
|
35743
|
+
* @description Gated on `email_marketing.manage`. The key is checked first with ZeroBounce's free credit-balance call, then stored in Vault; nothing is stored when the check fails. A key ZeroBounce does not accept is refused with `400` (`refusal.campaigns.zerobounceKeyInvalid`); ZeroBounce not answering is `503` (`refusal.campaigns.zerobounceUnavailable`), and our secret store not answering is `503` (`refusal.campaigns.vaultUnavailable`). Campaigns that were paused waiting for a key (`zerobounce_key`) carry on by themselves. Audited as `email_marketing.zerobounce.connect` with the credit balance (never the key).
|
|
35744
|
+
*/
|
|
35745
|
+
put: operations["connectEmailMarketingZeroBounce"];
|
|
35746
|
+
post?: never;
|
|
35747
|
+
/**
|
|
35748
|
+
* Disconnect this organisation's ZeroBounce key.
|
|
35749
|
+
* @description Gated on `email_marketing.manage`. The key is deleted from Vault. A campaign whose `zerobounce_mode` is not `off` is then refused at send (`zerobounce_key`) until a key is connected again or the check is turned off. Audited as `email_marketing.zerobounce.disconnect`.
|
|
35750
|
+
*/
|
|
35751
|
+
delete: operations["disconnectEmailMarketingZeroBounce"];
|
|
35752
|
+
options?: never;
|
|
35753
|
+
head?: never;
|
|
35754
|
+
patch?: never;
|
|
35755
|
+
trace?: never;
|
|
35756
|
+
};
|
|
35729
35757
|
"/v1/entitlements": {
|
|
35730
35758
|
parameters: {
|
|
35731
35759
|
query?: never;
|
|
@@ -58379,7 +58407,7 @@ export interface paths {
|
|
|
58379
58407
|
put?: never;
|
|
58380
58408
|
/**
|
|
58381
58409
|
* The store plugin posts order events; each new one sends the shopper an update in their language.
|
|
58382
|
-
* @description Store token only (`Authorization: Bearer zou_…`). A batch of 1-100 events (docs/1297 §4.4). `id` is the plugin's idempotency key (`<site_uuid>:<integration>:<order>:<kind>:<seq>`): a known key inserts nothing and never sends twice (`duplicates`). Each new event starts one durable send that picks the language (the shopper's `locale`, then the store's first language, then English), checks the shopper's order-updates consent and every Campaigns guard (line and channel switches, good standing, STOP opt-out, spike pause, own sender, prepaid credit), and records its outcome on the event. A kind with no template is stored and skipped. 503 when the workflow service is down: the rows are kept and a retry of the same batch starts them.
|
|
58410
|
+
* @description Store token only (`Authorization: Bearer zou_…`). A batch of 1-100 events (docs/1297 §4.4). `id` is the plugin's idempotency key (`<site_uuid>:<integration>:<order>:<kind>:<seq>`): a known key inserts nothing and never sends twice (`duplicates`). Each new event starts one durable send that picks the language (the shopper's `locale`, then the store's first language, then English), checks the shopper's order-updates consent and every Campaigns guard (line and channel switches, good standing, STOP opt-out, spike pause, own sender, prepaid credit), and records its outcome on the event. A kind with no template is stored and skipped. 503 when the workflow service is down: the rows are kept and a retry of the same batch starts them. Zinn® Campaigns flows (docs/1052 §11.9a): `cart_abandoned`, `product_viewed` and `payment_confirmed` enrol the org's active flows of trigger `cart_abandoned`, `product_viewed` and `post_purchase` when `marketing_consent` was ticked for e-mail at or before `occurred_at` (or the contact already holds an e-mail consent by then); `cart_recovered` ends an open cart flow; `order_placed` and `payment_confirmed` end open cart and browse flows. The shopper's `customer.email` finds the contact and is not kept on the event. A suppressed or unsubscribed shopper is never enrolled.
|
|
58383
58411
|
*/
|
|
58384
58412
|
post: operations["ingestStoreEvents"];
|
|
58385
58413
|
delete?: never;
|
|
@@ -86375,7 +86403,7 @@ export interface components {
|
|
|
86375
86403
|
preheader: string;
|
|
86376
86404
|
recipients_total: number;
|
|
86377
86405
|
/** @enum {string|null} */
|
|
86378
|
-
refusal_code: "not_open" | "account_on_hold" | "not_included" | "incomplete" | "pool_warming" | "sender_unverified" | "domain_auth" | "paused" | "quota" | "review" | "empty" | null;
|
|
86406
|
+
refusal_code: "not_open" | "account_on_hold" | "not_included" | "incomplete" | "pool_warming" | "sender_unverified" | "domain_auth" | "paused" | "quota" | "review" | "empty" | "zerobounce_key" | "zerobounce_outage" | null;
|
|
86379
86407
|
refusal_message: string | null;
|
|
86380
86408
|
reply_to: string;
|
|
86381
86409
|
/** @enum {string} */
|
|
@@ -86394,6 +86422,8 @@ export interface components {
|
|
|
86394
86422
|
text: string;
|
|
86395
86423
|
/** Format: date-time */
|
|
86396
86424
|
updated_at: string;
|
|
86425
|
+
/** @enum {string} */
|
|
86426
|
+
zerobounce_mode: "off" | "invalid" | "risky";
|
|
86397
86427
|
};
|
|
86398
86428
|
/** @description One F32 designer block. `heading` (text, level 1-3), `text` (text; a blank line starts a paragraph), `button` (label, url https or mailto, color #rrggbb or blank for the brand colour), `image` (src https, alt, url, width 40-552), `divider`, `spacer` (size). `align` is `start` (follows the language direction) or `center`. */
|
|
86399
86429
|
EmailMarketingCampaignBlock: {
|
|
@@ -86440,6 +86470,8 @@ export interface components {
|
|
|
86440
86470
|
/** @enum {string} */
|
|
86441
86471
|
status: "draft" | "sending" | "paused" | "sent" | "refused";
|
|
86442
86472
|
unsubscribed: number;
|
|
86473
|
+
/** @description F41: what the ZeroBounce check did for this campaign. */
|
|
86474
|
+
verification?: components["schemas"]["EmailMarketingZeroBounceVerification"];
|
|
86443
86475
|
};
|
|
86444
86476
|
EmailMarketingCampaignTranslateResult: components["schemas"]["EmailMarketingCampaignTranslations"] & {
|
|
86445
86477
|
started: boolean;
|
|
@@ -86497,6 +86529,11 @@ export interface components {
|
|
|
86497
86529
|
*/
|
|
86498
86530
|
template?: "basic" | "raw" | "blocks";
|
|
86499
86531
|
text?: string;
|
|
86532
|
+
/**
|
|
86533
|
+
* @description F41: check the list with the organisation's own ZeroBounce key before sending. `invalid` skips invalid, spamtrap, abuse and do_not_mail; `risky` also skips catch-all and unknown. Needs a connected key (`/v1/email-marketing/zerobounce`). Default off.
|
|
86534
|
+
* @enum {string}
|
|
86535
|
+
*/
|
|
86536
|
+
zerobounce_mode?: "off" | "invalid" | "risky";
|
|
86500
86537
|
};
|
|
86501
86538
|
EmailMarketingColdCountry: {
|
|
86502
86539
|
/** Format: date-time */
|
|
@@ -86883,7 +86920,7 @@ export interface components {
|
|
|
86883
86920
|
status: "draft" | "active" | "paused";
|
|
86884
86921
|
steps?: components["schemas"]["EmailMarketingFlowStep"][];
|
|
86885
86922
|
/** @enum {string} */
|
|
86886
|
-
trigger: "list_join" | "date";
|
|
86923
|
+
trigger: "list_join" | "date" | "cart_abandoned" | "product_viewed" | "post_purchase";
|
|
86887
86924
|
};
|
|
86888
86925
|
EmailMarketingFlowPage: {
|
|
86889
86926
|
data: components["schemas"]["EmailMarketingFlow"][];
|
|
@@ -86934,7 +86971,7 @@ export interface components {
|
|
|
86934
86971
|
sender_id?: string | null;
|
|
86935
86972
|
steps?: components["schemas"]["EmailMarketingFlowStepWrite"][];
|
|
86936
86973
|
/** @enum {string} */
|
|
86937
|
-
trigger?: "list_join" | "date";
|
|
86974
|
+
trigger?: "list_join" | "date" | "cart_abandoned" | "product_viewed" | "post_purchase";
|
|
86938
86975
|
};
|
|
86939
86976
|
EmailMarketingForm: {
|
|
86940
86977
|
button_label: string;
|
|
@@ -87404,6 +87441,34 @@ export interface components {
|
|
|
87404
87441
|
usecases: string[];
|
|
87405
87442
|
verticals: string[];
|
|
87406
87443
|
};
|
|
87444
|
+
EmailMarketingZeroBounce: {
|
|
87445
|
+
connected: boolean;
|
|
87446
|
+
/** Format: date-time */
|
|
87447
|
+
connected_at: string | null;
|
|
87448
|
+
/** @description Only on `PUT`: the credit balance ZeroBounce reported for the key. */
|
|
87449
|
+
credits?: number;
|
|
87450
|
+
/** @description The key's last four characters; null when none is connected. */
|
|
87451
|
+
key_hint: string | null;
|
|
87452
|
+
modes: ("off" | "invalid" | "risky")[];
|
|
87453
|
+
};
|
|
87454
|
+
EmailMarketingZeroBounceConnect: {
|
|
87455
|
+
/** @description The API key from the organisation's own ZeroBounce account. Write-only. */
|
|
87456
|
+
api_key: string;
|
|
87457
|
+
};
|
|
87458
|
+
EmailMarketingZeroBounceVerification: {
|
|
87459
|
+
/** @description Addresses sent to ZeroBounce for this campaign (one credit each */
|
|
87460
|
+
checked: number;
|
|
87461
|
+
/** @enum {string} */
|
|
87462
|
+
mode: "off" | "invalid" | "risky";
|
|
87463
|
+
/** @description Addresses whose verdict from the last 90 days was reused: no credit spent. */
|
|
87464
|
+
reused: number;
|
|
87465
|
+
/** @description Recipients not sent to because of their verdict. */
|
|
87466
|
+
skipped: number;
|
|
87467
|
+
/** @description Skipped recipients per ZeroBounce status (invalid, spamtrap, abuse, do_not_mail, catch-all, unknown). */
|
|
87468
|
+
skipped_by_verdict: {
|
|
87469
|
+
[key: string]: number;
|
|
87470
|
+
};
|
|
87471
|
+
};
|
|
87407
87472
|
/**
|
|
87408
87473
|
* @description `drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
|
|
87409
87474
|
* @example forward
|
|
@@ -114998,7 +115063,13 @@ export interface components {
|
|
|
114998
115063
|
events: components["schemas"]["StoreEventInput"][];
|
|
114999
115064
|
};
|
|
115000
115065
|
StoreEventInput: {
|
|
115066
|
+
/** @description The store's cart reference (cart_abandoned */
|
|
115067
|
+
cart_key?: string;
|
|
115068
|
+
/** @description The shopper's restore-cart link. Kept as the contact's {{cart_url}} only when it is https on the store's own host. */
|
|
115069
|
+
cart_url?: string;
|
|
115001
115070
|
customer?: {
|
|
115071
|
+
/** @description The shopper's address, for the flow kinds only; used to find the contact, never kept. */
|
|
115072
|
+
email?: string;
|
|
115002
115073
|
first_name?: string;
|
|
115003
115074
|
/** @description E.164. */
|
|
115004
115075
|
phone?: string;
|
|
@@ -115006,10 +115077,20 @@ export interface components {
|
|
|
115006
115077
|
/** @description The idempotency key. */
|
|
115007
115078
|
id: string;
|
|
115008
115079
|
integration?: string;
|
|
115009
|
-
/** @description order_received, payment_confirmed, on_hold, shipped, completed, ready_for_pickup, payment_failed, cancelled or refunded; any other kind is stored and skipped. */
|
|
115080
|
+
/** @description order_received, payment_confirmed, on_hold, shipped, completed, ready_for_pickup, payment_failed, cancelled or refunded; the Campaigns flow kinds cart_abandoned, cart_recovered, order_placed and product_viewed; any other kind is stored and skipped. */
|
|
115010
115081
|
kind: string;
|
|
115011
115082
|
/** @description The shopper's language (BCP 47), e.g. ar. */
|
|
115012
115083
|
locale?: string;
|
|
115084
|
+
/** @description The shopper's marketing tick, as the store captured it. A flow enrols only when `ticked` is true, `channel` is email and `captured_at` is at or before `occurred_at`. */
|
|
115085
|
+
marketing_consent?: {
|
|
115086
|
+
/** Format: date-time */
|
|
115087
|
+
captured_at?: string;
|
|
115088
|
+
channel?: string;
|
|
115089
|
+
ticked?: boolean;
|
|
115090
|
+
/** @description The words beside the box the shopper saw. */
|
|
115091
|
+
wording?: string;
|
|
115092
|
+
wording_version?: string;
|
|
115093
|
+
};
|
|
115013
115094
|
/** Format: date-time */
|
|
115014
115095
|
occurred_at: string;
|
|
115015
115096
|
order_number?: string;
|
|
@@ -115017,6 +115098,11 @@ export interface components {
|
|
|
115017
115098
|
order_url?: string;
|
|
115018
115099
|
/** @description The payment_failed pay-again link, in the shopper's language. */
|
|
115019
115100
|
pay_url?: string;
|
|
115101
|
+
/** @description The product viewed (product_viewed). */
|
|
115102
|
+
product?: {
|
|
115103
|
+
name?: string;
|
|
115104
|
+
url?: string;
|
|
115105
|
+
};
|
|
115020
115106
|
ref?: string;
|
|
115021
115107
|
refund?: {
|
|
115022
115108
|
currency: string;
|
|
@@ -181300,6 +181386,90 @@ export interface operations {
|
|
|
181300
181386
|
403: components["responses"]["Forbidden"];
|
|
181301
181387
|
};
|
|
181302
181388
|
};
|
|
181389
|
+
getEmailMarketingZeroBounce: {
|
|
181390
|
+
parameters: {
|
|
181391
|
+
query?: {
|
|
181392
|
+
/** @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). */
|
|
181393
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
181394
|
+
};
|
|
181395
|
+
header?: never;
|
|
181396
|
+
path?: never;
|
|
181397
|
+
cookie?: never;
|
|
181398
|
+
};
|
|
181399
|
+
requestBody?: never;
|
|
181400
|
+
responses: {
|
|
181401
|
+
/** @description The connection. */
|
|
181402
|
+
200: {
|
|
181403
|
+
headers: {
|
|
181404
|
+
[name: string]: unknown;
|
|
181405
|
+
};
|
|
181406
|
+
content: {
|
|
181407
|
+
"application/json": components["schemas"]["EmailMarketingZeroBounce"];
|
|
181408
|
+
};
|
|
181409
|
+
};
|
|
181410
|
+
401: components["responses"]["Unauthorized"];
|
|
181411
|
+
403: components["responses"]["Forbidden"];
|
|
181412
|
+
404: components["responses"]["NotFound"];
|
|
181413
|
+
};
|
|
181414
|
+
};
|
|
181415
|
+
connectEmailMarketingZeroBounce: {
|
|
181416
|
+
parameters: {
|
|
181417
|
+
query?: {
|
|
181418
|
+
/** @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). */
|
|
181419
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
181420
|
+
};
|
|
181421
|
+
header?: never;
|
|
181422
|
+
path?: never;
|
|
181423
|
+
cookie?: never;
|
|
181424
|
+
};
|
|
181425
|
+
requestBody: {
|
|
181426
|
+
content: {
|
|
181427
|
+
"application/json": components["schemas"]["EmailMarketingZeroBounceConnect"];
|
|
181428
|
+
};
|
|
181429
|
+
};
|
|
181430
|
+
responses: {
|
|
181431
|
+
/** @description The connection after the change, with the credit balance ZeroBounce reported. */
|
|
181432
|
+
200: {
|
|
181433
|
+
headers: {
|
|
181434
|
+
[name: string]: unknown;
|
|
181435
|
+
};
|
|
181436
|
+
content: {
|
|
181437
|
+
"application/json": components["schemas"]["EmailMarketingZeroBounce"];
|
|
181438
|
+
};
|
|
181439
|
+
};
|
|
181440
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
181441
|
+
401: components["responses"]["Unauthorized"];
|
|
181442
|
+
403: components["responses"]["Forbidden"];
|
|
181443
|
+
404: components["responses"]["NotFound"];
|
|
181444
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
181445
|
+
};
|
|
181446
|
+
};
|
|
181447
|
+
disconnectEmailMarketingZeroBounce: {
|
|
181448
|
+
parameters: {
|
|
181449
|
+
query?: {
|
|
181450
|
+
/** @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). */
|
|
181451
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
181452
|
+
};
|
|
181453
|
+
header?: never;
|
|
181454
|
+
path?: never;
|
|
181455
|
+
cookie?: never;
|
|
181456
|
+
};
|
|
181457
|
+
requestBody?: never;
|
|
181458
|
+
responses: {
|
|
181459
|
+
/** @description The connection after the change. */
|
|
181460
|
+
200: {
|
|
181461
|
+
headers: {
|
|
181462
|
+
[name: string]: unknown;
|
|
181463
|
+
};
|
|
181464
|
+
content: {
|
|
181465
|
+
"application/json": components["schemas"]["EmailMarketingZeroBounce"];
|
|
181466
|
+
};
|
|
181467
|
+
};
|
|
181468
|
+
401: components["responses"]["Unauthorized"];
|
|
181469
|
+
403: components["responses"]["Forbidden"];
|
|
181470
|
+
404: components["responses"]["NotFound"];
|
|
181471
|
+
};
|
|
181472
|
+
};
|
|
181303
181473
|
getEntitlementUsage: {
|
|
181304
181474
|
parameters: {
|
|
181305
181475
|
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.1790",
|
|
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>",
|