@zinn-digital/sdk 0.1.1612 → 0.1.1615

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.
@@ -4498,6 +4498,7 @@ export interface paths {
4498
4498
  * ⛔⛔ A sampled limit has **three** outcomes, not two. Where no reading exists, the newest is older than 26 hours, or the vendor would not answer, the limit is reported as **un-checked** rather than as satisfied: `error.message` carries a trailing *"Not every limit could be checked"* clause naming what was missed, and the `billing.tariff.assign` audit row records it as `limits_unchecked` on **every** call, including successful ones. An un-checked limit never refuses — a refusal the caller cannot satisfy by any action is not a control — but it is never silently counted as "within limits" either.
4499
4499
  *
4500
4500
  * `override_over_limit: true` applies the plan anyway. It is the staff override, not a retry flag: the breach list is recorded on the `billing.tariff.assign` audit row alongside it, so the decision is answerable months later once the mailboxes it was about have been deleted. No separate permission — it stays on `billing.entitlement.manage`. ⛔ There is deliberately **no equivalent on the customer path**: a customer overriding their own quota check is not an override, it is no check.
4501
+ * ⚖️ **Sites over the limit are FROZEN, the same as a customer's (row 1107#13, owner 2026-11-08: "Freeze, same as customers").** When `max_sites` is breached the `409` also carries a `details` entry with `field` `sites_to_freeze`, `code` `SITES_TO_FREEZE` and the count in `message`, so the console warns staff how many sites the override will freeze before they save. Applied with the override, the newest extra sites on the plan's line are marked over-slot and put on `restricted` (served, no writes) at once, with the customer's frozen-site notice; nothing is deleted. Raising the limit (a bigger plan, an added slot, a deleted site) lifts the freeze on the next quota pass, oldest first.
4501
4502
  */
4502
4503
  post: operations["assignTariff"];
4503
4504
  delete?: never;
@@ -33775,6 +33776,98 @@ export interface paths {
33775
33776
  patch?: never;
33776
33777
  trace?: never;
33777
33778
  };
33779
+ "/v1/email-marketing/flows": {
33780
+ parameters: {
33781
+ query?: never;
33782
+ header?: never;
33783
+ path?: never;
33784
+ cookie?: never;
33785
+ };
33786
+ /**
33787
+ * E-mail flows (welcome, drip, a yearly date), one keyset page.
33788
+ * @description Gated on `email_marketing.view`. A flow is a list, a trigger and a sequence of steps; it sends nothing itself: every 15 minutes each due step becomes an ordinary campaign run, which is checked like any campaign (line open, account in good standing, quota, a verified sender) and is listed under the flow, never among the campaigns.
33789
+ */
33790
+ get: operations["listEmailMarketingFlows"];
33791
+ put?: never;
33792
+ /**
33793
+ * Create a flow (it starts as a draft).
33794
+ * @description Gated on `email_marketing.manage`. `name` and `list_id` are required; `steps` (at most 20) each need a subject. A `date` flow names a contact attribute holding `YYYY-MM-DD`.
33795
+ */
33796
+ post: operations["createEmailMarketingFlow"];
33797
+ delete?: never;
33798
+ options?: never;
33799
+ head?: never;
33800
+ patch?: never;
33801
+ trace?: never;
33802
+ };
33803
+ "/v1/email-marketing/flows/{flow_id}": {
33804
+ parameters: {
33805
+ query?: never;
33806
+ header?: never;
33807
+ path?: never;
33808
+ cookie?: never;
33809
+ };
33810
+ /**
33811
+ * One flow with its steps and its report (enrolled, in progress, runs and recipients per step).
33812
+ * @description Gated on `email_marketing.view`.
33813
+ */
33814
+ get: operations["getEmailMarketingFlow"];
33815
+ put?: never;
33816
+ post?: never;
33817
+ /**
33818
+ * Delete a flow and its enrolments (its sent runs stay, as campaigns).
33819
+ * @description Gated on `email_marketing.manage`.
33820
+ */
33821
+ delete: operations["deleteEmailMarketingFlow"];
33822
+ options?: never;
33823
+ head?: never;
33824
+ /**
33825
+ * Change a flow; `steps`, when given, replaces the whole sequence.
33826
+ * @description Gated on `email_marketing.manage`. Contacts already in the flow continue at their next step number.
33827
+ */
33828
+ patch: operations["updateEmailMarketingFlow"];
33829
+ trace?: never;
33830
+ };
33831
+ "/v1/email-marketing/flows/{flow_id}/activate": {
33832
+ parameters: {
33833
+ query?: never;
33834
+ header?: never;
33835
+ path?: never;
33836
+ cookie?: never;
33837
+ };
33838
+ get?: never;
33839
+ put?: never;
33840
+ /**
33841
+ * Switch a flow on; only people who join the list from now on are enrolled.
33842
+ * @description Gated on `email_marketing.manage`. Refused (400) without at least one step, a postal address, or a body on every step. A paused flow resumes: its waiting steps are sent.
33843
+ */
33844
+ post: operations["activateEmailMarketingFlow"];
33845
+ delete?: never;
33846
+ options?: never;
33847
+ head?: never;
33848
+ patch?: never;
33849
+ trace?: never;
33850
+ };
33851
+ "/v1/email-marketing/flows/{flow_id}/pause": {
33852
+ parameters: {
33853
+ query?: never;
33854
+ header?: never;
33855
+ path?: never;
33856
+ cookie?: never;
33857
+ };
33858
+ get?: never;
33859
+ put?: never;
33860
+ /**
33861
+ * Pause a flow; due steps wait and nobody new is mailed until it is switched back on.
33862
+ * @description Gated on `email_marketing.manage`.
33863
+ */
33864
+ post: operations["pauseEmailMarketingFlow"];
33865
+ delete?: never;
33866
+ options?: never;
33867
+ head?: never;
33868
+ patch?: never;
33869
+ trace?: never;
33870
+ };
33778
33871
  "/v1/email-marketing/forms": {
33779
33872
  parameters: {
33780
33873
  query?: never;
@@ -83050,6 +83143,84 @@ export interface components {
83050
83143
  /** Format: uuid */
83051
83144
  next_after: string | null;
83052
83145
  };
83146
+ EmailMarketingFlow: {
83147
+ /** Format: date-time */
83148
+ activated_at: string | null;
83149
+ /** Format: date-time */
83150
+ created_at: string | null;
83151
+ date_field: string;
83152
+ from_name: string;
83153
+ /** Format: uuid */
83154
+ id: string;
83155
+ /** @description Why the last due step was not sent (it is retried hourly); null while sending normally. */
83156
+ last_refusal_code: string | null;
83157
+ /** @description The refusal catalogue key behind last_refusal_code, to render in the reader's language. */
83158
+ last_refusal_key: string | null;
83159
+ /** Format: uuid */
83160
+ list_id: string;
83161
+ name: string;
83162
+ postal_address: string;
83163
+ reply_to: string;
83164
+ report?: components["schemas"]["EmailMarketingFlowReport"];
83165
+ /** Format: uuid */
83166
+ sender_id: string | null;
83167
+ /** @enum {string} */
83168
+ status: "draft" | "active" | "paused";
83169
+ steps?: components["schemas"]["EmailMarketingFlowStep"][];
83170
+ /** @enum {string} */
83171
+ trigger: "list_join" | "date";
83172
+ };
83173
+ EmailMarketingFlowPage: {
83174
+ data: components["schemas"]["EmailMarketingFlow"][];
83175
+ /** Format: uuid */
83176
+ next_after: string | null;
83177
+ };
83178
+ EmailMarketingFlowReport: {
83179
+ enrolled: number;
83180
+ in_progress: number;
83181
+ steps: {
83182
+ position: number;
83183
+ /** @description Recipients by status. */
83184
+ recipients: {
83185
+ [key: string]: number;
83186
+ };
83187
+ runs: number;
83188
+ }[];
83189
+ };
83190
+ EmailMarketingFlowStep: {
83191
+ /** @description Minutes after the previous step (after the trigger for the first). */
83192
+ delay_minutes: number;
83193
+ html: string;
83194
+ position: number;
83195
+ preheader: string;
83196
+ subject: string;
83197
+ /** @enum {string} */
83198
+ template: "basic" | "raw";
83199
+ text: string;
83200
+ };
83201
+ EmailMarketingFlowStepWrite: {
83202
+ delay_minutes?: number;
83203
+ html?: string;
83204
+ preheader?: string;
83205
+ subject: string;
83206
+ /** @enum {string} */
83207
+ template?: "basic" | "raw";
83208
+ text?: string;
83209
+ };
83210
+ EmailMarketingFlowWrite: {
83211
+ date_field?: string;
83212
+ from_name?: string;
83213
+ /** Format: uuid */
83214
+ list_id?: string;
83215
+ name?: string;
83216
+ postal_address?: string;
83217
+ reply_to?: string;
83218
+ /** Format: uuid */
83219
+ sender_id?: string | null;
83220
+ steps?: components["schemas"]["EmailMarketingFlowStepWrite"][];
83221
+ /** @enum {string} */
83222
+ trigger?: "list_join" | "date";
83223
+ };
83053
83224
  EmailMarketingForm: {
83054
83225
  button_label: string;
83055
83226
  confirmed: number;
@@ -172359,6 +172530,208 @@ export interface operations {
172359
172530
  503: components["responses"]["ServiceUnavailable"];
172360
172531
  };
172361
172532
  };
172533
+ listEmailMarketingFlows: {
172534
+ parameters: {
172535
+ query?: {
172536
+ after?: string;
172537
+ limit?: number;
172538
+ /** @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). */
172539
+ org_id?: components["parameters"]["OrgIdQuery"];
172540
+ };
172541
+ header?: never;
172542
+ path?: never;
172543
+ cookie?: never;
172544
+ };
172545
+ requestBody?: never;
172546
+ responses: {
172547
+ /** @description One page of flows. */
172548
+ 200: {
172549
+ headers: {
172550
+ [name: string]: unknown;
172551
+ };
172552
+ content: {
172553
+ "application/json": components["schemas"]["EmailMarketingFlowPage"];
172554
+ };
172555
+ };
172556
+ 401: components["responses"]["Unauthorized"];
172557
+ 403: components["responses"]["Forbidden"];
172558
+ };
172559
+ };
172560
+ createEmailMarketingFlow: {
172561
+ parameters: {
172562
+ query?: {
172563
+ /** @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). */
172564
+ org_id?: components["parameters"]["OrgIdQuery"];
172565
+ };
172566
+ header?: never;
172567
+ path?: never;
172568
+ cookie?: never;
172569
+ };
172570
+ requestBody: {
172571
+ content: {
172572
+ "application/json": components["schemas"]["EmailMarketingFlowWrite"];
172573
+ };
172574
+ };
172575
+ responses: {
172576
+ /** @description The flow, with its steps and per-step report. */
172577
+ 201: {
172578
+ headers: {
172579
+ [name: string]: unknown;
172580
+ };
172581
+ content: {
172582
+ "application/json": components["schemas"]["EmailMarketingFlow"];
172583
+ };
172584
+ };
172585
+ 400: components["responses"]["UnprocessableEntity"];
172586
+ 401: components["responses"]["Unauthorized"];
172587
+ 403: components["responses"]["Forbidden"];
172588
+ 404: components["responses"]["NotFound"];
172589
+ };
172590
+ };
172591
+ getEmailMarketingFlow: {
172592
+ parameters: {
172593
+ query?: {
172594
+ /** @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). */
172595
+ org_id?: components["parameters"]["OrgIdQuery"];
172596
+ };
172597
+ header?: never;
172598
+ path: {
172599
+ flow_id: string;
172600
+ };
172601
+ cookie?: never;
172602
+ };
172603
+ requestBody?: never;
172604
+ responses: {
172605
+ /** @description The flow, with its steps and per-step report. */
172606
+ 200: {
172607
+ headers: {
172608
+ [name: string]: unknown;
172609
+ };
172610
+ content: {
172611
+ "application/json": components["schemas"]["EmailMarketingFlow"];
172612
+ };
172613
+ };
172614
+ 401: components["responses"]["Unauthorized"];
172615
+ 403: components["responses"]["Forbidden"];
172616
+ 404: components["responses"]["NotFound"];
172617
+ };
172618
+ };
172619
+ deleteEmailMarketingFlow: {
172620
+ parameters: {
172621
+ query?: {
172622
+ /** @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). */
172623
+ org_id?: components["parameters"]["OrgIdQuery"];
172624
+ };
172625
+ header?: never;
172626
+ path: {
172627
+ flow_id: string;
172628
+ };
172629
+ cookie?: never;
172630
+ };
172631
+ requestBody?: never;
172632
+ responses: {
172633
+ /** @description Deleted. */
172634
+ 204: {
172635
+ headers: {
172636
+ [name: string]: unknown;
172637
+ };
172638
+ content?: never;
172639
+ };
172640
+ 401: components["responses"]["Unauthorized"];
172641
+ 403: components["responses"]["Forbidden"];
172642
+ 404: components["responses"]["NotFound"];
172643
+ };
172644
+ };
172645
+ updateEmailMarketingFlow: {
172646
+ parameters: {
172647
+ query?: {
172648
+ /** @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). */
172649
+ org_id?: components["parameters"]["OrgIdQuery"];
172650
+ };
172651
+ header?: never;
172652
+ path: {
172653
+ flow_id: string;
172654
+ };
172655
+ cookie?: never;
172656
+ };
172657
+ requestBody: {
172658
+ content: {
172659
+ "application/json": components["schemas"]["EmailMarketingFlowWrite"];
172660
+ };
172661
+ };
172662
+ responses: {
172663
+ /** @description The flow, with its steps and per-step report. */
172664
+ 200: {
172665
+ headers: {
172666
+ [name: string]: unknown;
172667
+ };
172668
+ content: {
172669
+ "application/json": components["schemas"]["EmailMarketingFlow"];
172670
+ };
172671
+ };
172672
+ 400: components["responses"]["UnprocessableEntity"];
172673
+ 401: components["responses"]["Unauthorized"];
172674
+ 403: components["responses"]["Forbidden"];
172675
+ 404: components["responses"]["NotFound"];
172676
+ };
172677
+ };
172678
+ activateEmailMarketingFlow: {
172679
+ parameters: {
172680
+ query?: {
172681
+ /** @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). */
172682
+ org_id?: components["parameters"]["OrgIdQuery"];
172683
+ };
172684
+ header?: never;
172685
+ path: {
172686
+ flow_id: string;
172687
+ };
172688
+ cookie?: never;
172689
+ };
172690
+ requestBody?: never;
172691
+ responses: {
172692
+ /** @description The flow, with its steps and per-step report. */
172693
+ 200: {
172694
+ headers: {
172695
+ [name: string]: unknown;
172696
+ };
172697
+ content: {
172698
+ "application/json": components["schemas"]["EmailMarketingFlow"];
172699
+ };
172700
+ };
172701
+ 400: components["responses"]["UnprocessableEntity"];
172702
+ 401: components["responses"]["Unauthorized"];
172703
+ 403: components["responses"]["Forbidden"];
172704
+ 404: components["responses"]["NotFound"];
172705
+ };
172706
+ };
172707
+ pauseEmailMarketingFlow: {
172708
+ parameters: {
172709
+ query?: {
172710
+ /** @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). */
172711
+ org_id?: components["parameters"]["OrgIdQuery"];
172712
+ };
172713
+ header?: never;
172714
+ path: {
172715
+ flow_id: string;
172716
+ };
172717
+ cookie?: never;
172718
+ };
172719
+ requestBody?: never;
172720
+ responses: {
172721
+ /** @description The flow, with its steps and per-step report. */
172722
+ 200: {
172723
+ headers: {
172724
+ [name: string]: unknown;
172725
+ };
172726
+ content: {
172727
+ "application/json": components["schemas"]["EmailMarketingFlow"];
172728
+ };
172729
+ };
172730
+ 401: components["responses"]["Unauthorized"];
172731
+ 403: components["responses"]["Forbidden"];
172732
+ 404: components["responses"]["NotFound"];
172733
+ };
172734
+ };
172362
172735
  listEmailMarketingForms: {
172363
172736
  parameters: {
172364
172737
  query?: {
@@ -189856,6 +190229,8 @@ export interface operations {
189856
190229
  query?: {
189857
190230
  /** @description ISO-4217 code to price this response in — the same assertion `X-Zinn-Currency` makes, in a form a caller that cannot send custom headers can use. The public funnel is exactly that caller: its transport forbids them outright, because `X-Zinn-Currency` once shipped on an SPA without its engine CORS entry and took production down with every deploy green. An unknown or unoffered code falls back silently rather than raising — a bad value must never break a pricing page. */
189858
190231
  currency?: string;
190232
+ /** @description The interface language the page renders in (`de`, `pt-BR`, …). The add-ons' names and descriptions come back in it, the seeded English where a string has no translation yet. Missing or unsupported keeps the English. Never read from `Accept-Language`: the value comes from the page the copy sits in (1108#14). */
190233
+ locale?: string;
189859
190234
  };
189860
190235
  header?: never;
189861
190236
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1612",
3
+ "version": "0.1.1615",
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>",