@zinn-digital/sdk 0.1.1909 → 0.1.1914

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.
@@ -16795,6 +16795,26 @@ export interface paths {
16795
16795
  patch?: never;
16796
16796
  trace?: never;
16797
16797
  };
16798
+ "/v1/admin/zinn-campaigns/ses-hold/lift": {
16799
+ parameters: {
16800
+ query?: never;
16801
+ header?: never;
16802
+ path?: never;
16803
+ cookie?: never;
16804
+ };
16805
+ get?: never;
16806
+ put?: never;
16807
+ /**
16808
+ * Lift the account-wide hold on managed Amazon SES sending (staff).
16809
+ * @description Closes the open hold the send gate opened when our SES account's bounce-rate or complaint-rate alarm fired; held campaigns then carry on by themselves (only still-queued recipients are sent). Audited (`email_marketing.managed_hold.lift`) with the note. If a rate alarm is still firing, the next send re-opens the hold. Requires `abuse.manage`.
16810
+ */
16811
+ post: operations["liftZinnCampaignsSesHold"];
16812
+ delete?: never;
16813
+ options?: never;
16814
+ head?: never;
16815
+ patch?: never;
16816
+ trace?: never;
16817
+ };
16798
16818
  "/v1/ads/analytics/breakdown": {
16799
16819
  parameters: {
16800
16820
  query?: never;
@@ -43543,7 +43563,7 @@ export interface paths {
43543
43563
  };
43544
43564
  /**
43545
43565
  * Poll what happened to your customers' orders and domains.
43546
- * @description Oldest first by the time each event was written, strictly after `after` (the `next_cursor` of your previous page; omit it to start from the beginning). Event ids are NOT time-ordered, so never compare them yourself: the cursor is the only position. An `after` that is not an event this feed served you is a `422`. Only customers whose link is `active` are included; order events cover only orders you placed; domain events cover every domain in a linked organization. Events are released 30 seconds after they are written so a slow transaction cannot land behind your cursor — delivery is at least once, so de-duplicate on `id`. A type added to this feed is served only from the moment it joined: older events of that type are never returned (`domain.transferred_in`, `domain.transfer_failed`, `partner.domain_transfer_failed` from 2026-11-18T16:00Z). A page can be shorter than `limit` and still have `has_more: true`. Webhooks ARE offered — see `/v1/partner/webhooks` — and this feed remains the authoritative catch-up behind them. Requires `partner.domains`.
43566
+ * @description Oldest first by the time each event was written, strictly after `after` (the `next_cursor` of your previous page; omit it to start from the beginning). Event ids are NOT time-ordered, so never compare them yourself: the cursor is the only position. An `after` that is not an event this feed served you is a `422`. Only customers whose link is `active` are included; order events cover only orders you placed; domain events cover every domain in a linked organization. Events are released 30 seconds after they are written so a slow transaction cannot land behind your cursor — delivery is at least once, so de-duplicate on `id`. A type added to this feed is served only from the moment it joined: older events of that type are never returned (`domain.transferred_in`, `domain.transfer_failed`, `partner.domain_transfer_failed` from 2026-11-18T16:00Z; `domain.transfer_awaiting_approval` from 2026-11-18T18:00Z). A page can be shorter than `limit` and still have `has_more: true`. Webhooks ARE offered — see `/v1/partner/webhooks` — and this feed remains the authoritative catch-up behind them. Requires `partner.domains`.
43547
43567
  */
43548
43568
  get: operations["listPartnerEvents"];
43549
43569
  put?: never;
@@ -61433,6 +61453,26 @@ export interface paths {
61433
61453
  patch?: never;
61434
61454
  trace?: never;
61435
61455
  };
61456
+ "/v1/webhooks/email-marketing/ses-managed": {
61457
+ parameters: {
61458
+ query?: never;
61459
+ header?: never;
61460
+ path?: never;
61461
+ cookie?: never;
61462
+ };
61463
+ get?: never;
61464
+ put?: never;
61465
+ /**
61466
+ * Amazon SNS events of the managed SES (EU) delivery account.
61467
+ * @description **Unauthenticated by design**: the Amazon SNS message signature is the authentication (SignatureVersion 2, SHA256withRSA, only; version 1 (SHA1) is refused with `401`; verified over the canonical string against the signing certificate, which is fetched only from an `https://sns.<region>.amazonaws.com/*.pem` URL). `401` when it does not verify, `403` when the `TopicArn` is not the platform's own events topic (a subscription confirmation is followed only for that topic). A `Notification` carries the SES event of one managed send; the org and recipient come from the signed `zinn_fb` message tag, never from the address, and a permanent bounce or a complaint suppresses the address in that org at once. Redelivery or replay of the same SNS message is a no-op (keyed by the SNS `MessageId`).
61468
+ */
61469
+ post: operations["receiveEmailMarketingManagedSesEvents"];
61470
+ delete?: never;
61471
+ options?: never;
61472
+ head?: never;
61473
+ patch?: never;
61474
+ trace?: never;
61475
+ };
61436
61476
  "/v1/webhooks/git/{provider}/{repoId}": {
61437
61477
  parameters: {
61438
61478
  query?: never;
@@ -99104,7 +99144,7 @@ export interface components {
99104
99144
  id: string;
99105
99145
  /** Format: date-time */
99106
99146
  occurred_at: string;
99107
- /** @description An `order.*` (`placed`, `paid`, `payment_failed`, `fulfilled`, `partially_fulfilled`, `canceled`, `refunded`) or `domain.*` (`registered`, `registration_failed`, `nameservers_changed`, `expiring`, `expired`, `renewed`, `entered_redemption`, `restored`, `suspended`, `transferred_out`, `deleted`, `transferred_in`, `transfer_failed`) event. */
99147
+ /** @description An `order.*` (`placed`, `paid`, `payment_failed`, `fulfilled`, `partially_fulfilled`, `canceled`, `refunded`) or `domain.*` (`registered`, `registration_failed`, `nameservers_changed`, `expiring`, `expired`, `renewed`, `entered_redemption`, `restored`, `suspended`, `transferred_out`, `deleted`, `transferred_in`, `transfer_failed`, `transfer_awaiting_approval`) event. */
99108
99148
  type: string;
99109
99149
  };
99110
99150
  PartnerEventPage: {
@@ -121853,6 +121893,8 @@ export interface components {
121853
121893
  };
121854
121894
  ZinnCampaignsChannels: {
121855
121895
  pauses: components["schemas"]["ZinnCampaignsChannelPause"][];
121896
+ /** @description The OPEN account-wide hold on managed Amazon SES sending, or null. Opened by the send gate when our SES account's bounce-rate or complaint-rate alarm fires; while open, every organisation's managed SES sends wait queued (nothing claimed or charged) until staff lift it (`liftZinnCampaignsSesHold`). */
121897
+ ses_hold: components["schemas"]["ZinnCampaignsSesHold"] | null;
121856
121898
  settings: components["schemas"]["ZinnCampaignsChannelSettings"];
121857
121899
  };
121858
121900
  ZinnCampaignsChannelSettings: {
@@ -121953,6 +121995,27 @@ export interface components {
121953
121995
  vendor_identity_status: string;
121954
121996
  vendor_reason: string;
121955
121997
  };
121998
+ ZinnCampaignsSesHold: {
121999
+ /**
122000
+ * @description The rate alarms as Prometheus reports them now: `firing`, `clear`, or `unreadable` when Prometheus could not be read (never shown as `clear`). Lifting while one fires re-opens the hold at the next send.
122001
+ * @enum {string}
122002
+ */
122003
+ alarm_state: "firing" | "clear" | "unreadable";
122004
+ detail: {
122005
+ [key: string]: unknown;
122006
+ };
122007
+ /** Format: date-time */
122008
+ held_at: string;
122009
+ /** Format: uuid */
122010
+ id: string;
122011
+ /** @enum {string} */
122012
+ provider: "ses";
122013
+ /**
122014
+ * @description The alarm that opened the hold.
122015
+ * @enum {string}
122016
+ */
122017
+ reason: "ZinnSesManagedBounceRateHigh" | "ZinnSesManagedComplaintRateHigh";
122018
+ };
121956
122019
  ZinnCdnPrice: {
121957
122020
  /** @enum {string} */
121958
122021
  currency: "USD";
@@ -148951,6 +149014,39 @@ export interface operations {
148951
149014
  422: components["responses"]["UnprocessableEntity"];
148952
149015
  };
148953
149016
  };
149017
+ liftZinnCampaignsSesHold: {
149018
+ parameters: {
149019
+ query?: never;
149020
+ header?: never;
149021
+ path?: never;
149022
+ cookie?: never;
149023
+ };
149024
+ requestBody: {
149025
+ content: {
149026
+ "application/json": {
149027
+ /** @description Why it is safe to send again. */
149028
+ note: string;
149029
+ };
149030
+ };
149031
+ };
149032
+ responses: {
149033
+ /** @description The hold was lifted (or none was open). */
149034
+ 200: {
149035
+ headers: {
149036
+ [name: string]: unknown;
149037
+ };
149038
+ content: {
149039
+ "application/json": {
149040
+ lifted: number;
149041
+ };
149042
+ };
149043
+ };
149044
+ 401: components["responses"]["Unauthorized"];
149045
+ 403: components["responses"]["Forbidden"];
149046
+ 422: components["responses"]["UnprocessableEntity"];
149047
+ 429: components["responses"]["TooManyRequests"];
149048
+ };
149049
+ };
148954
149050
  getAdsAnalyticsBreakdown: {
148955
149051
  parameters: {
148956
149052
  query?: {
@@ -223938,6 +224034,65 @@ export interface operations {
223938
224034
  };
223939
224035
  };
223940
224036
  };
224037
+ receiveEmailMarketingManagedSesEvents: {
224038
+ parameters: {
224039
+ query?: never;
224040
+ header?: never;
224041
+ path?: never;
224042
+ cookie?: never;
224043
+ };
224044
+ requestBody: {
224045
+ content: {
224046
+ "application/json": {
224047
+ [key: string]: unknown;
224048
+ };
224049
+ "text/plain": string;
224050
+ };
224051
+ };
224052
+ responses: {
224053
+ /** @description Accepted (applied, a duplicate, or ignored). */
224054
+ 200: {
224055
+ headers: {
224056
+ [name: string]: unknown;
224057
+ };
224058
+ content: {
224059
+ "application/json": {
224060
+ ok: boolean;
224061
+ /** @enum {string} */
224062
+ outcome: "applied" | "duplicate_or_none" | "subscribed" | "unsubscribe_noted" | "unreadable_event" | "no_tenant_tag" | "unknown_recipient";
224063
+ };
224064
+ };
224065
+ };
224066
+ /** @description Not an SNS message. */
224067
+ 400: {
224068
+ headers: {
224069
+ [name: string]: unknown;
224070
+ };
224071
+ content?: never;
224072
+ };
224073
+ /** @description The SNS signature did not verify. */
224074
+ 401: {
224075
+ headers: {
224076
+ [name: string]: unknown;
224077
+ };
224078
+ content?: never;
224079
+ };
224080
+ /** @description The message is not from the platform's own events topic. */
224081
+ 403: {
224082
+ headers: {
224083
+ [name: string]: unknown;
224084
+ };
224085
+ content?: never;
224086
+ };
224087
+ /** @description The subscription confirmation could not reach Amazon SNS; SNS re-sends it. */
224088
+ 502: {
224089
+ headers: {
224090
+ [name: string]: unknown;
224091
+ };
224092
+ content?: never;
224093
+ };
224094
+ };
224095
+ };
223941
224096
  receiveGitPushWebhook: {
223942
224097
  parameters: {
223943
224098
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1909",
3
+ "version": "0.1.1914",
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>",