@zinn-digital/sdk 0.1.1788 → 0.1.1789

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.
@@ -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;
@@ -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 */
@@ -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
@@ -181300,6 +181365,90 @@ export interface operations {
181300
181365
  403: components["responses"]["Forbidden"];
181301
181366
  };
181302
181367
  };
181368
+ getEmailMarketingZeroBounce: {
181369
+ parameters: {
181370
+ query?: {
181371
+ /** @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). */
181372
+ org_id?: components["parameters"]["OrgIdQuery"];
181373
+ };
181374
+ header?: never;
181375
+ path?: never;
181376
+ cookie?: never;
181377
+ };
181378
+ requestBody?: never;
181379
+ responses: {
181380
+ /** @description The connection. */
181381
+ 200: {
181382
+ headers: {
181383
+ [name: string]: unknown;
181384
+ };
181385
+ content: {
181386
+ "application/json": components["schemas"]["EmailMarketingZeroBounce"];
181387
+ };
181388
+ };
181389
+ 401: components["responses"]["Unauthorized"];
181390
+ 403: components["responses"]["Forbidden"];
181391
+ 404: components["responses"]["NotFound"];
181392
+ };
181393
+ };
181394
+ connectEmailMarketingZeroBounce: {
181395
+ parameters: {
181396
+ query?: {
181397
+ /** @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). */
181398
+ org_id?: components["parameters"]["OrgIdQuery"];
181399
+ };
181400
+ header?: never;
181401
+ path?: never;
181402
+ cookie?: never;
181403
+ };
181404
+ requestBody: {
181405
+ content: {
181406
+ "application/json": components["schemas"]["EmailMarketingZeroBounceConnect"];
181407
+ };
181408
+ };
181409
+ responses: {
181410
+ /** @description The connection after the change, with the credit balance ZeroBounce reported. */
181411
+ 200: {
181412
+ headers: {
181413
+ [name: string]: unknown;
181414
+ };
181415
+ content: {
181416
+ "application/json": components["schemas"]["EmailMarketingZeroBounce"];
181417
+ };
181418
+ };
181419
+ 400: components["responses"]["UnprocessableEntity"];
181420
+ 401: components["responses"]["Unauthorized"];
181421
+ 403: components["responses"]["Forbidden"];
181422
+ 404: components["responses"]["NotFound"];
181423
+ 503: components["responses"]["ServiceUnavailable"];
181424
+ };
181425
+ };
181426
+ disconnectEmailMarketingZeroBounce: {
181427
+ parameters: {
181428
+ query?: {
181429
+ /** @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). */
181430
+ org_id?: components["parameters"]["OrgIdQuery"];
181431
+ };
181432
+ header?: never;
181433
+ path?: never;
181434
+ cookie?: never;
181435
+ };
181436
+ requestBody?: never;
181437
+ responses: {
181438
+ /** @description The connection after the change. */
181439
+ 200: {
181440
+ headers: {
181441
+ [name: string]: unknown;
181442
+ };
181443
+ content: {
181444
+ "application/json": components["schemas"]["EmailMarketingZeroBounce"];
181445
+ };
181446
+ };
181447
+ 401: components["responses"]["Unauthorized"];
181448
+ 403: components["responses"]["Forbidden"];
181449
+ 404: components["responses"]["NotFound"];
181450
+ };
181451
+ };
181303
181452
  getEntitlementUsage: {
181304
181453
  parameters: {
181305
181454
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1788",
3
+ "version": "0.1.1789",
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>",