@zinn-digital/sdk 0.1.1682 → 0.1.1687

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.
@@ -6415,7 +6415,7 @@ export interface paths {
6415
6415
  put?: never;
6416
6416
  /**
6417
6417
  * Do what an audit finding proposes in the Google Ads account (audited).
6418
- * @description A wasteful search term is added as an exact negative to its shared list (or, for a search served by two campaigns — `detail.why = "cannibal"` — to the one campaign it does not belong in); a poor keyword is paused; a converting or growing search term (`good_term`, `new_keyword`) is added as a PHRASE keyword to the ad group it was searched in. Every change is first replayed against 30 days of search terms and every keyword (the collision simulator). One write to the account, then the finding is closed as `applied`. 422 for a finding that is closed or has nothing to apply (including a keyword proposal that failed a safety check, `detail.one_click = false`), `refusal.googleAds.wouldBlockKeyword` for a negative that is one of our own keywords (owner decision 133: never) and `refusal.googleAds.wouldCollide` when the change would stop a main, converting or growing search or take one from another ad group (the reasons are saved on `detail.collision`); 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses it (nothing is sent; ZA332); 503 `refusal.googleAds.googleRefused` only when Google refuses (the finding stays open). za-260 (WAVEBUILD): approving a wave's budget twice at once builds it once (the budget and plan rows are locked and re-read); the enable of a wave whose read-back set is no longer what was built is refused with `refusal.googleAds.waveEnableRefused`, the row stays open with the reasons on `detail.enable_refused` (each `market`, `campaign`, `code` — `not_paused`, `bidding`, `target_cpa`, `budget`, `country`, `negatives` with the missing `negatives`, or `set` — and `detail.enable_refused_at`) and the error's `details` carry the same reasons (`field` `campaigns.<market>`, `code`, English `message`). Audit action `google_ads.finding_applied`. Requires `campaigns.manage`. BUDGETMV1 (za-186): a budget-limited finding's body may name `option` — `move` (default, total unchanged) or `increase` (the campaign alone raised, refused with 422 when the monthly ceiling no longer has that room today).
6418
+ * @description A wasteful search term is added as an exact negative to its shared list (or, for a search served by two campaigns — `detail.why = "cannibal"` — to the one campaign it does not belong in); a poor keyword is paused; a converting or growing search term (`good_term`, `new_keyword`) is added as a PHRASE keyword to the ad group it was searched in. Every change is first replayed against 30 days of search terms and every keyword (the collision simulator). One write to the account, then the finding is closed as `applied`. 422 for a finding that is closed or has nothing to apply (including a keyword proposal that failed a safety check, `detail.one_click = false`), `refusal.googleAds.wouldBlockKeyword` for a negative that is one of our own keywords (owner decision 133: never) and `refusal.googleAds.wouldCollide` when the change would stop a main, converting or growing search or take one from another ad group (the reasons are saved on `detail.collision`); 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses it (nothing is sent; ZA332). HOUSE-OWNER-CLICK (owner answer 2026-11-08): the platform owner's own interactive click is his approval for exactly ONE change on the house account (one request of one operation; the house modes stay `off`); a second change, the same change again or a batch in it is refused, and anyone else's click (staff, an API key, an MCP token, an impersonation session) is refused as before. FIX r3: the finding must be ONE request, decided before anything is sent (a two-request budget `move` is refused whole, never half-applied); the owner's token must be issued to the admin console client (`azp` `zinn-admin`) and come from a sign-in within 5 minutes WITH a second factor (`auth_time` and `amr`), otherwise 403 `STEP_UP_REQUIRED` (the console signs him in again with `prompt=login`, `max_age=0`) and nothing is sent; a change a hold would queue is refused, never left waiting in an `off` class. Every attempt is audited with its MFA state (`google_ads.house_owner_click_sent` only once Google accepted the change, `google_ads.house_owner_click_refused` otherwise); 503 `refusal.googleAds.googleRefused` only when Google refuses (the finding stays open). FIX r4: when the owner's request left and Google's reply was lost (a read timeout), it is audited `google_ads.house_owner_click_outcome_unknown` (never refused) and the answer is 503 `refusal.googleAds.outcomeUnknown` ("Google did not confirm; we are checking"); nothing is sent again on its own, a later read of the account (the house audit run, or his next click) writes the final `sent` or `refused` row (`metadata.settles`). His next click on it is 409 `refusal.googleAds.outcomeChecking` while it is unsettled (first minute) or 409 `refusal.googleAds.alreadyApplied` once the account shows it made. A 200 carrying `partialFailureError` is audited refused, never sent. FIX r5/r6: a second owner click on the same finding while one is in flight is 409 `refusal.googleAds.clickInProgress`; a click whose finding was closed by another click meanwhile (re-read inside the lock) is 409 `refusal.googleAds.findingClosed`; neither sends anything. za-260 (WAVEBUILD): approving a wave's budget twice at once builds it once (the budget and plan rows are locked and re-read); the enable of a wave whose read-back set is no longer what was built is refused with `refusal.googleAds.waveEnableRefused`, the row stays open with the reasons on `detail.enable_refused` (each `market`, `campaign`, `code` — `not_paused`, `bidding`, `target_cpa`, `budget`, `country`, `negatives` with the missing `negatives`, or `set` — and `detail.enable_refused_at`) and the error's `details` carry the same reasons (`field` `campaigns.<market>`, `code`, English `message`). Audit action `google_ads.finding_applied`. Requires `campaigns.manage`. BUDGETMV1 (za-186): a budget-limited finding's body may name `option` — `move` (default, total unchanged) or `increase` (the campaign alone raised, refused with 422 when the monthly ceiling no longer has that room today).
6419
6419
  */
6420
6420
  post: operations["applyAdminGoogleAdsFinding"];
6421
6421
  delete?: never;
@@ -6437,7 +6437,7 @@ export interface paths {
6437
6437
  put?: never;
6438
6438
  /**
6439
6439
  * Close an audit finding without acting on it (audited).
6440
- * @description A dismissed finding stays dismissed: the daily audit does not raise it again. A Google recommendation is dismissed at Google too: 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses that (nothing is sent, the finding stays open; ZA332), 503 `refusal.googleAds.googleRefused` when Google refuses it. Audit action `google_ads.finding_dismissed`. Requires `campaigns.manage`.
6440
+ * @description A dismissed finding stays dismissed: the daily audit does not raise it again. A Google recommendation is dismissed at Google too: 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses that (nothing is sent, the finding stays open; ZA332; only the platform owner's own click sends that one dismissal, HOUSE-OWNER-CLICK as on apply), 503 `refusal.googleAds.googleRefused` when Google refuses it. Audit action `google_ads.finding_dismissed`. Requires `campaigns.manage`. FIX r4: a lost reply is 503 `refusal.googleAds.outcomeUnknown` and the next click 409 as on apply.
6441
6441
  */
6442
6442
  post: operations["dismissAdminGoogleAdsFinding"];
6443
6443
  delete?: never;
@@ -34187,6 +34187,26 @@ export interface paths {
34187
34187
  patch?: never;
34188
34188
  trace?: never;
34189
34189
  };
34190
+ "/v1/email-marketing/sender-providers": {
34191
+ parameters: {
34192
+ query?: never;
34193
+ header?: never;
34194
+ path?: never;
34195
+ cookie?: never;
34196
+ };
34197
+ /**
34198
+ * The providers a campaign sender can connect (the connect picker).
34199
+ * @description Gated on `email_marketing.view`. Every enabled catalogue row that sends newsletters, in display order: API sending services and SMTP mailboxes, with the fields each needs.
34200
+ */
34201
+ get: operations["listEmailMarketingSenderProviders"];
34202
+ put?: never;
34203
+ post?: never;
34204
+ delete?: never;
34205
+ options?: never;
34206
+ head?: never;
34207
+ patch?: never;
34208
+ trace?: never;
34209
+ };
34190
34210
  "/v1/email-marketing/senders": {
34191
34211
  parameters: {
34192
34212
  query?: never;
@@ -34201,8 +34221,8 @@ export interface paths {
34201
34221
  get: operations["listEmailMarketingSenders"];
34202
34222
  put?: never;
34203
34223
  /**
34204
- * Connect a campaign sender (Zinn® sending, or the customer's own SMTP server).
34205
- * @description Gated on `email_marketing.manage`. `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. `pool` is refused (`refusal.campaigns.poolWhiteLabel`) for a white-labelled organisation, which sends through its own server only. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
34224
+ * Connect a campaign sender (Zinn® sending, a sending service, a mailbox, or your own SMTP).
34225
+ * @description Gated on `email_marketing.manage`. Pick a `provider` from `listEmailMarketingSenderProviders` (SendGrid, Postmark, SES, Gmail, Microsoft 365 …) and send the fields it lists; API keys are kept in the secret store, never returned. Otherwise `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. `pool` is refused (`refusal.campaigns.poolWhiteLabel`) for a white-labelled organisation, which sends through its own server only. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
34206
34226
  */
34207
34227
  post: operations["createEmailMarketingSender"];
34208
34228
  delete?: never;
@@ -34231,6 +34251,54 @@ export interface paths {
34231
34251
  patch?: never;
34232
34252
  trace?: never;
34233
34253
  };
34254
+ "/v1/email-marketing/senders/{sender_id}/dns": {
34255
+ parameters: {
34256
+ query?: never;
34257
+ header?: never;
34258
+ path?: never;
34259
+ cookie?: never;
34260
+ };
34261
+ /**
34262
+ * Preview the sending records we would add to your DNS (when we host it).
34263
+ * @description Gated on `email_marketing.view`. When the sending domain's DNS is served by us, lists exactly what `applyEmailMarketingSenderDns` would write: the provider's SPF `include:` merged into the SPF already there (your mechanisms and `all` are kept; two SPF records become one), a DMARC record only when none exists, and, for Zinn® sending, its DKIM key. An ESP's DKIM key lives at the ESP and is never written. A zone we do not serve (or one managed by an external app) answers `writable: false` with the reason in `refusal`.
34264
+ */
34265
+ get: operations["previewEmailMarketingSenderDns"];
34266
+ put?: never;
34267
+ /**
34268
+ * Add the previewed sending records to your DNS, with your consent.
34269
+ * @description Gated on `email_marketing.manage`. `consent` must be `true` (`refusal.campaigns.dnsConsent` otherwise). The plan is computed again at this moment, never taken from an earlier preview, then written, audit-logged (`email_marketing.sender.dns_write`) and the domain checked again, so `health` is the reading the internet gives now. A zone we do not serve is refused (`refusal.campaigns.dnsNotOurs`) and nothing is written.
34270
+ */
34271
+ post: operations["applyEmailMarketingSenderDns"];
34272
+ delete?: never;
34273
+ options?: never;
34274
+ head?: never;
34275
+ patch?: never;
34276
+ trace?: never;
34277
+ };
34278
+ "/v1/email-marketing/senders/{sender_id}/health": {
34279
+ parameters: {
34280
+ query?: never;
34281
+ header?: never;
34282
+ path?: never;
34283
+ cookie?: never;
34284
+ };
34285
+ /**
34286
+ * The sending domain's DNS + reputation readings, newest first.
34287
+ * @description Gated on `email_marketing.view`. The newest 30 readings of the connection's sending domain.
34288
+ */
34289
+ get: operations["listEmailMarketingSenderHealth"];
34290
+ put?: never;
34291
+ /**
34292
+ * Re-check the sending domain's DNS + reputation now.
34293
+ * @description Gated on `email_marketing.manage`. Runs the check in the request (it is interactive) and answers the reading; a reading under a minute old is returned as it is instead of asking again. A pool connection is refused (`refusal.campaigns.healthPool`): its DNS is ours.
34294
+ */
34295
+ post: operations["checkEmailMarketingSenderHealth"];
34296
+ delete?: never;
34297
+ options?: never;
34298
+ head?: never;
34299
+ patch?: never;
34300
+ trace?: never;
34301
+ };
34234
34302
  "/v1/email-marketing/senders/{sender_id}/verify": {
34235
34303
  parameters: {
34236
34304
  query?: never;
@@ -34260,8 +34328,8 @@ export interface paths {
34260
34328
  };
34261
34329
  get?: never;
34262
34330
  /**
34263
- * Store your e-mail provider's webhook signing secret for this connection.
34264
- * @description Gated on `email_marketing.manage`. The secret (Svix format, `whsec_…`, as Resend issues it) is kept in the secret store and never returned. Point the provider's delivered, bounced and complained events at the returned `webhook_url`.
34331
+ * Set up delivery events from your e-mail provider for this connection.
34332
+ * @description Gated on `email_marketing.manage`. The connection's provider decides the `scheme`: `svix` (Resend, `whsec_…` signing secret) and `mailgun_hmac` (Mailgun HTTP webhook signing key) need `signing_secret`, kept in the secret store and never returned; `url_token` and `sns` (Amazon SES through SNS, which the endpoint confirms itself) need nothing: a token is minted and returned once, inside `webhook_url` as `?t=`, and calling this again replaces it. Point the provider's delivered, bounced and complained events at the returned `webhook_url`. A mailbox connection or a provider with no event webhook is refused (`refusal.campaigns.webhookNone`); a missing or malformed secret is `refusal.campaigns.webhookSecret` (`refusal.campaigns.webhookKey` for Mailgun).
34265
34333
  */
34266
34334
  put: operations["setEmailMarketingSenderWebhook"];
34267
34335
  post?: never;
@@ -58968,7 +59036,7 @@ export interface paths {
58968
59036
  put?: never;
58969
59037
  /**
58970
59038
  * A customer's own e-mail provider's delivery events for one sending connection.
58971
- * @description **Unauthenticated by design**: the Svix signature over the raw body, checked with the secret stored for THIS connection, is the authentication (`401` when it does not match or is older than five minutes). `email.delivered`, `email.bounced` (permanent only) and `email.complained` are matched to the latest send to that address through this connection in the last 14 days; a bounce or complaint suppresses the address at once. Anything else is acknowledged with `200` and ignored. Redelivery is a no-op.
59039
+ * @description **Unauthenticated by design**: the connection's provider scheme is the authentication, checked with the secret stored for THIS connection: `svix` (signature over the raw body, at most five minutes old), `mailgun_hmac` (the signed timestamp + token, at most five minutes old), `url_token` and `sns` (the `t` query token minted by `setEmailMarketingSenderWebhook`; an SNS subscription confirmation is followed only to an Amazon SNS host and answers `subscribed`). `401` when it does not verify. Each of the catalogue's ESPs is parsed; only delivered, permanent bounce and complaint events count, matched to the latest send to that address through this connection in the last 14 days; a bounce or complaint suppresses the address at once. Anything else is acknowledged with `200` and ignored. Redelivery is a no-op.
58972
59040
  */
58973
59041
  post: operations["receiveEmailMarketingProviderWebhook"];
58974
59042
  delete?: never;
@@ -62164,6 +62232,10 @@ export interface components {
62164
62232
  keywords: components["schemas"]["AdminGoogleAdsFiguresPage"];
62165
62233
  /** @description The only things the owner decides (at most 50). */
62166
62234
  needs_you: components["schemas"]["AdminGoogleAdsFinding"][];
62235
+ /** @description HOUSE-OWNER-CLICK (owner answer 2026-11-08): true only when the caller is the platform owner (`ZINN_PLATFORM_OWNER_USER_ID`) signed in interactively on the admin console client (not an API key, an MCP token, an impersonation session or another client's token). Only his own Apply / Dismiss sends a change to the house account, exactly one change per click; the console shows the Approve button to him alone. True even when his sign-in is not fresh: the click then answers 403 `STEP_UP_REQUIRED` and he signs in again with his second factor. */
62236
+ owner_can_approve: boolean;
62237
+ /** @description HOUSE-OWNER-CLICK FIX r5: ids of the findings whose owner click got no reply from Google (outcome unknown) and is not yet settled by a read of the account. The console shows staff a "still checking" note on each; the owner's click on one answers 409 `refusal.googleAds.outcomeChecking` and sends nothing, with no time limit, until a read (his next click or the house audit) settles it. Never re-sent on its own. */
62238
+ owner_click_checking?: string[];
62167
62239
  /** @description The owner's own budgets (L72, docs/1003 §9.4d), newest first, at most 20. While one is `active` or `awaiting` no autopilot step changes that campaign's budget (ceiling trim, auto-scale, shift, re-balances, a push test's steering or end-of-test revert). A dated `test` does not drop by itself; on its end date it becomes `awaiting` with a verdict and stays until the owner answers. */
62168
62240
  owner_decisions?: {
62169
62241
  /**
@@ -84443,13 +84515,21 @@ export interface components {
84443
84515
  value: string;
84444
84516
  } | null;
84445
84517
  from_address: string;
84518
+ /** @description The sending domain's latest DNS + reputation reading; null for pool and before the first check. */
84519
+ health: components["schemas"]["EmailMarketingSenderHealth"] | null;
84446
84520
  host: string;
84447
84521
  /** Format: uuid */
84448
84522
  id: string;
84449
84523
  /** @enum {string} */
84450
- kind: "pool" | "smtp" | "ses" | "resend" | "mailgun";
84524
+ kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
84451
84525
  name: string;
84452
84526
  port: number;
84527
+ /** @description The catalogue slug; empty for a connection made before the catalogue. */
84528
+ provider: string;
84529
+ /** @description The provider's non-secret settings (`region`, `domain`, `message_stream`); never a secret. */
84530
+ settings: {
84531
+ [key: string]: string;
84532
+ };
84453
84533
  /** @enum {string} */
84454
84534
  status: "unverified" | "verifying" | "verified" | "failing";
84455
84535
  status_detail: string;
@@ -84467,12 +84547,17 @@ export interface components {
84467
84547
  /** Format: date-time */
84468
84548
  verified_at: string | null;
84469
84549
  };
84470
- /** @description `host`, `username` and `password` are required for `smtp` and ignored for `pool`. */
84550
+ /** @description Send `provider` (a `sender-providers` slug) and the fields its catalogue row lists in `fields`; the row decides `kind`, and a mailbox provider's SMTP host, port and TLS come from the row. Without `provider`, `kind` is `pool` (name and from address only) or `smtp` (`host`, `username` and `password` required). A missing or malformed field for the chosen provider is refused by name (`refusal.campaigns.providerField`). Every secret (`password`, `api_key`, `api_secret`, `access_key_id`, `secret_access_key`) goes to the secret store and is never returned; `region`, `domain` and `message_stream` are kept as the connection's `settings`. */
84471
84551
  EmailMarketingSenderCreate: {
84552
+ access_key_id?: string;
84553
+ api_key?: string;
84554
+ api_secret?: string;
84555
+ domain?: string;
84472
84556
  from_address: string;
84473
84557
  host?: string;
84474
84558
  /** @enum {string} */
84475
- kind: "pool" | "smtp";
84559
+ kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
84560
+ message_stream?: string;
84476
84561
  name: string;
84477
84562
  password?: string;
84478
84563
  /**
@@ -84480,15 +84565,93 @@ export interface components {
84480
84565
  * @enum {integer}
84481
84566
  */
84482
84567
  port: 25 | 465 | 587 | 2525;
84568
+ /** @description A slug from GET /v1/email-marketing/sender-providers. */
84569
+ provider?: string;
84570
+ region?: string;
84571
+ secret_access_key?: string;
84483
84572
  /** @enum {string} */
84484
84573
  tls?: "starttls" | "implicit";
84485
84574
  username?: string;
84486
84575
  };
84576
+ EmailMarketingSenderDnsChange: {
84577
+ /** @enum {string} */
84578
+ action: "create" | "replace";
84579
+ /** @description What a `replace` overwrites. */
84580
+ current: string[];
84581
+ /** @description The fully qualified record name. */
84582
+ name: string;
84583
+ /** @enum {string} */
84584
+ type: "TXT";
84585
+ value: string;
84586
+ };
84587
+ EmailMarketingSenderDnsPlan: {
84588
+ changes: components["schemas"]["EmailMarketingSenderDnsChange"][];
84589
+ domain: string;
84590
+ /** @description Why it is not writable, as a catalogue key the dashboard renders. */
84591
+ refusal: {
84592
+ /** @example refusal.campaigns.dnsNotOurs */
84593
+ key: string;
84594
+ params: {
84595
+ [key: string]: string;
84596
+ };
84597
+ } | null;
84598
+ /** @description Whether we serve this zone's DNS and can write it. */
84599
+ writable: boolean;
84600
+ zone: string;
84601
+ };
84602
+ /** @description One DNS + reputation check of a sending domain (SPF, DKIM, DMARC, MX, PTR, BIMI, MTA-STS, TLS-RPT, DNS blocklists; docs/1052 §3.2c). `blind` means we could not ask and is never read as healthy. */
84603
+ EmailMarketingSenderHealth: {
84604
+ blocklisted_on: string[];
84605
+ /** Format: date-time */
84606
+ checked_at: string | null;
84607
+ domain: string;
84608
+ findings: {
84609
+ code: string;
84610
+ expected?: string;
84611
+ found?: string;
84612
+ name?: string;
84613
+ /** @enum {string} */
84614
+ record: "SPF" | "DKIM" | "DMARC" | "MX" | "PTR" | "BIMI" | "MTA-STS" | "TLS-RPT" | "DNSBL";
84615
+ /** @enum {string} */
84616
+ severity: "fail" | "warn" | "info";
84617
+ }[];
84618
+ provider: string;
84619
+ /** @enum {string} */
84620
+ status: "ok" | "warn" | "fail" | "blind";
84621
+ };
84487
84622
  EmailMarketingSenderList: {
84488
84623
  data: components["schemas"]["EmailMarketingSender"][];
84489
84624
  /** @description Whether `kind: pool` (Zinn® sending) may be connected. `false` for a white-labelled organisation (a reseller and its clients), which sends through its own server only, because a pool message names our relay in its headers. */
84490
84625
  pool_offered?: boolean;
84491
84626
  };
84627
+ /** @description One sender catalogue row (docs/1052 §3.2b). */
84628
+ EmailMarketingSenderProvider: {
84629
+ auth: string[];
84630
+ brand_color?: string;
84631
+ /** @description Whether an adapter exists for at least one of its auth methods. */
84632
+ connectable: boolean;
84633
+ daily_limit?: number | null;
84634
+ dkim_selectors?: string[];
84635
+ /** @enum {string} */
84636
+ family: "esp_api" | "mailbox";
84637
+ /** @description The create fields this provider needs. */
84638
+ fields: string[];
84639
+ imap?: {
84640
+ [key: string]: unknown;
84641
+ } | null;
84642
+ modes: string[];
84643
+ name: string;
84644
+ regions: string[];
84645
+ setup_url?: string;
84646
+ slug: string;
84647
+ smtp?: {
84648
+ [key: string]: unknown;
84649
+ } | null;
84650
+ spf_include?: string;
84651
+ /** @description How delivery events arrive: `svix`, `mailgun_hmac`, `url_token` or `sns` (a webhook endpoint), `imap` (a mailbox, read for bounces), or `none`. */
84652
+ webhook_scheme: string;
84653
+ website?: string;
84654
+ };
84492
84655
  /** @description A request to register this organisation's own SMS sender name in a country that needs one (`docs/1052` §3.5d). `pending` until our team has the carrier's answer, which can take a few days; `approved` opens the country for this organisation alone. */
84493
84656
  EmailMarketingSenderRequest: {
84494
84657
  country: string;
@@ -127618,6 +127781,7 @@ export interface operations {
127618
127781
  401: components["responses"]["Unauthorized"];
127619
127782
  403: components["responses"]["Forbidden"];
127620
127783
  404: components["responses"]["NotFound"];
127784
+ 409: components["responses"]["Conflict"];
127621
127785
  422: components["responses"]["UnprocessableEntity"];
127622
127786
  429: components["responses"]["TooManyRequests"];
127623
127787
  503: components["responses"]["ServiceUnavailable"];
@@ -127648,6 +127812,7 @@ export interface operations {
127648
127812
  401: components["responses"]["Unauthorized"];
127649
127813
  403: components["responses"]["Forbidden"];
127650
127814
  404: components["responses"]["NotFound"];
127815
+ 409: components["responses"]["Conflict"];
127651
127816
  422: components["responses"]["UnprocessableEntity"];
127652
127817
  429: components["responses"]["TooManyRequests"];
127653
127818
  503: components["responses"]["ServiceUnavailable"];
@@ -174869,6 +175034,33 @@ export interface operations {
174869
175034
  403: components["responses"]["Forbidden"];
174870
175035
  };
174871
175036
  };
175037
+ listEmailMarketingSenderProviders: {
175038
+ parameters: {
175039
+ query?: {
175040
+ /** @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). */
175041
+ org_id?: components["parameters"]["OrgIdQuery"];
175042
+ };
175043
+ header?: never;
175044
+ path?: never;
175045
+ cookie?: never;
175046
+ };
175047
+ requestBody?: never;
175048
+ responses: {
175049
+ /** @description The catalogue. */
175050
+ 200: {
175051
+ headers: {
175052
+ [name: string]: unknown;
175053
+ };
175054
+ content: {
175055
+ "application/json": {
175056
+ data: components["schemas"]["EmailMarketingSenderProvider"][];
175057
+ };
175058
+ };
175059
+ };
175060
+ 401: components["responses"]["Unauthorized"];
175061
+ 403: components["responses"]["Forbidden"];
175062
+ };
175063
+ };
174872
175064
  listEmailMarketingSenders: {
174873
175065
  parameters: {
174874
175066
  query?: {
@@ -174954,6 +175146,135 @@ export interface operations {
174954
175146
  409: components["responses"]["Conflict"];
174955
175147
  };
174956
175148
  };
175149
+ previewEmailMarketingSenderDns: {
175150
+ parameters: {
175151
+ query?: {
175152
+ /** @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). */
175153
+ org_id?: components["parameters"]["OrgIdQuery"];
175154
+ };
175155
+ header?: never;
175156
+ path: {
175157
+ sender_id: string;
175158
+ };
175159
+ cookie?: never;
175160
+ };
175161
+ requestBody?: never;
175162
+ responses: {
175163
+ /** @description The preview. */
175164
+ 200: {
175165
+ headers: {
175166
+ [name: string]: unknown;
175167
+ };
175168
+ content: {
175169
+ "application/json": components["schemas"]["EmailMarketingSenderDnsPlan"];
175170
+ };
175171
+ };
175172
+ 401: components["responses"]["Unauthorized"];
175173
+ 403: components["responses"]["Forbidden"];
175174
+ 404: components["responses"]["NotFound"];
175175
+ };
175176
+ };
175177
+ applyEmailMarketingSenderDns: {
175178
+ parameters: {
175179
+ query?: {
175180
+ /** @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). */
175181
+ org_id?: components["parameters"]["OrgIdQuery"];
175182
+ };
175183
+ header?: never;
175184
+ path: {
175185
+ sender_id: string;
175186
+ };
175187
+ cookie?: never;
175188
+ };
175189
+ requestBody: {
175190
+ content: {
175191
+ "application/json": {
175192
+ /** @description The customer confirmed the preview. */
175193
+ consent: boolean;
175194
+ };
175195
+ };
175196
+ };
175197
+ responses: {
175198
+ /** @description Written. */
175199
+ 200: {
175200
+ headers: {
175201
+ [name: string]: unknown;
175202
+ };
175203
+ content: {
175204
+ "application/json": {
175205
+ changes: components["schemas"]["EmailMarketingSenderDnsChange"][];
175206
+ domain: string;
175207
+ health: components["schemas"]["EmailMarketingSenderHealth"] | null;
175208
+ written: number;
175209
+ zone: string;
175210
+ };
175211
+ };
175212
+ };
175213
+ 400: components["responses"]["UnprocessableEntity"];
175214
+ 401: components["responses"]["Unauthorized"];
175215
+ 403: components["responses"]["Forbidden"];
175216
+ 404: components["responses"]["NotFound"];
175217
+ };
175218
+ };
175219
+ listEmailMarketingSenderHealth: {
175220
+ parameters: {
175221
+ query?: {
175222
+ /** @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). */
175223
+ org_id?: components["parameters"]["OrgIdQuery"];
175224
+ };
175225
+ header?: never;
175226
+ path: {
175227
+ sender_id: string;
175228
+ };
175229
+ cookie?: never;
175230
+ };
175231
+ requestBody?: never;
175232
+ responses: {
175233
+ /** @description The readings. */
175234
+ 200: {
175235
+ headers: {
175236
+ [name: string]: unknown;
175237
+ };
175238
+ content: {
175239
+ "application/json": {
175240
+ data: components["schemas"]["EmailMarketingSenderHealth"][];
175241
+ };
175242
+ };
175243
+ };
175244
+ 401: components["responses"]["Unauthorized"];
175245
+ 403: components["responses"]["Forbidden"];
175246
+ 404: components["responses"]["NotFound"];
175247
+ };
175248
+ };
175249
+ checkEmailMarketingSenderHealth: {
175250
+ parameters: {
175251
+ query?: {
175252
+ /** @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). */
175253
+ org_id?: components["parameters"]["OrgIdQuery"];
175254
+ };
175255
+ header?: never;
175256
+ path: {
175257
+ sender_id: string;
175258
+ };
175259
+ cookie?: never;
175260
+ };
175261
+ requestBody?: never;
175262
+ responses: {
175263
+ /** @description The current reading. */
175264
+ 200: {
175265
+ headers: {
175266
+ [name: string]: unknown;
175267
+ };
175268
+ content: {
175269
+ "application/json": components["schemas"]["EmailMarketingSenderHealth"];
175270
+ };
175271
+ };
175272
+ 400: components["responses"]["UnprocessableEntity"];
175273
+ 401: components["responses"]["Unauthorized"];
175274
+ 403: components["responses"]["Forbidden"];
175275
+ 404: components["responses"]["NotFound"];
175276
+ };
175277
+ };
174957
175278
  verifyEmailMarketingSender: {
174958
175279
  parameters: {
174959
175280
  query?: {
@@ -174998,7 +175319,7 @@ export interface operations {
174998
175319
  requestBody: {
174999
175320
  content: {
175000
175321
  "application/json": {
175001
- signing_secret: string;
175322
+ signing_secret?: string;
175002
175323
  };
175003
175324
  };
175004
175325
  };
@@ -175010,7 +175331,12 @@ export interface operations {
175010
175331
  };
175011
175332
  content: {
175012
175333
  "application/json": {
175013
- /** Format: uri */
175334
+ /** @enum {string} */
175335
+ scheme: "svix" | "mailgun_hmac" | "url_token" | "sns";
175336
+ /**
175337
+ * Format: uri
175338
+ * @description For `url_token` and `sns` this carries the minted token (`?t=`); it is shown on this response only.
175339
+ */
175014
175340
  webhook_url: string;
175015
175341
  };
175016
175342
  };
@@ -214585,7 +214911,10 @@ export interface operations {
214585
214911
  };
214586
214912
  receiveEmailMarketingProviderWebhook: {
214587
214913
  parameters: {
214588
- query?: never;
214914
+ query?: {
214915
+ /** @description The minted token, for the `url_token` and `sns` schemes. */
214916
+ t?: string;
214917
+ };
214589
214918
  header?: never;
214590
214919
  path: {
214591
214920
  connection_id: string;
@@ -214609,7 +214938,7 @@ export interface operations {
214609
214938
  "application/json": {
214610
214939
  ok: boolean;
214611
214940
  /** @enum {string} */
214612
- outcome?: "recorded" | "duplicate" | "ignored";
214941
+ outcome?: "recorded" | "duplicate" | "ignored" | "subscribed";
214613
214942
  };
214614
214943
  };
214615
214944
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1682",
3
+ "version": "0.1.1687",
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>",