@zinn-digital/sdk 0.1.1760 → 0.1.1762

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.
@@ -34852,6 +34852,26 @@ export interface paths {
34852
34852
  patch: operations["updateEmailMarketingColdReply"];
34853
34853
  trace?: never;
34854
34854
  };
34855
+ "/v1/email-marketing/cold/replies/{reply_id}/answer": {
34856
+ parameters: {
34857
+ query?: never;
34858
+ header?: never;
34859
+ path?: never;
34860
+ cookie?: never;
34861
+ };
34862
+ get?: never;
34863
+ put?: never;
34864
+ /**
34865
+ * Answer a Unibox reply, in-thread, from the mailbox it reached.
34866
+ * @description Gated on `email_marketing.manage`. Queues one plain-text answer to a reply from a person and starts its send on the Cold Outreach worker: it goes from the same mailbox, through that mailbox's own mail server, with `In-Reply-To` and `References` set so it files in the same conversation. One answer per reply: `409` while one is queued or once it was sent; a `failed` answer may be sent again. A bounce, automatic reply or unsubscribe request is refused with `400` (field `kind`); an empty or over-long body with `400` (field `body`). `503` when the send could not be started (nothing was sent; the reply is left `failed` so it can be retried). `404` outside the caller's organisation.
34867
+ */
34868
+ post: operations["answerEmailMarketingColdReply"];
34869
+ delete?: never;
34870
+ options?: never;
34871
+ head?: never;
34872
+ patch?: never;
34873
+ trace?: never;
34874
+ };
34855
34875
  "/v1/email-marketing/cold/sequences": {
34856
34876
  parameters: {
34857
34877
  query?: never;
@@ -58026,6 +58046,26 @@ export interface paths {
58026
58046
  patch?: never;
58027
58047
  trace?: never;
58028
58048
  };
58049
+ "/v1/store-connect/campaigns": {
58050
+ parameters: {
58051
+ query?: never;
58052
+ header?: never;
58053
+ path?: never;
58054
+ cookie?: never;
58055
+ };
58056
+ /**
58057
+ * The Zinn® Campaigns WordPress plugin reads whether its Pro add-on is unlocked.
58058
+ * @description Store token only (`Authorization: Bearer zou_…`). The ENGINE decides Pro, never the plugin (docs/1052 §11.9b). `active` = the org is in good standing and holds a live, active, non-zero-priced plan on the Zinn® Campaigns line (any paid plan, no separate licence). `trial` = no paid plan, the org is active and fewer than 30 days have passed since the org first connected a store (disconnecting and reconnecting never restarts it). `lapsed` = anything else: the add-on keeps every setting and stops its Pro features until a paid plan is live again.
58059
+ */
58060
+ get: operations["getStoreCampaignsPlan"];
58061
+ put?: never;
58062
+ post?: never;
58063
+ delete?: never;
58064
+ options?: never;
58065
+ head?: never;
58066
+ patch?: never;
58067
+ trace?: never;
58068
+ };
58029
58069
  "/v1/store-connect/connection": {
58030
58070
  parameters: {
58031
58071
  query?: never;
@@ -58126,6 +58166,30 @@ export interface paths {
58126
58166
  patch?: never;
58127
58167
  trace?: never;
58128
58168
  };
58169
+ "/v1/store-connect/forms": {
58170
+ parameters: {
58171
+ query?: never;
58172
+ header?: never;
58173
+ path?: never;
58174
+ cookie?: never;
58175
+ };
58176
+ /**
58177
+ * The WordPress plugin lists the store org's enabled sign-up forms for its form picker.
58178
+ * @description Store token only. At most 100, newest first. Only forms of the token's own org.
58179
+ */
58180
+ get: operations["listStoreForms"];
58181
+ put?: never;
58182
+ /**
58183
+ * The WordPress plugin posts one visitor's sign-up from the site's server (double opt-in).
58184
+ * @description Store token only. The plugin sends it only when the visitor ticked the consent box. The same path as the hosted form (F20, docs/1052 §10f): ONE confirmation e-mail goes out and nobody is a contact until they click it. No oracle: a new, pending, confirmed, throttled, suppressed or over-allowance address all answer `ok`; `closed` is a fact about the form (off, Campaigns not open, or the account not in good standing). A form of another org is 404.
58185
+ */
58186
+ post: operations["submitStoreForm"];
58187
+ delete?: never;
58188
+ options?: never;
58189
+ head?: never;
58190
+ patch?: never;
58191
+ trace?: never;
58192
+ };
58129
58193
  "/v1/store-connect/orders/{ref}/messages": {
58130
58194
  parameters: {
58131
58195
  query?: never;
@@ -86367,6 +86431,15 @@ export interface components {
86367
86431
  open: boolean;
86368
86432
  };
86369
86433
  EmailMarketingColdReply: {
86434
+ /** @description Why a `failed` answer failed: `mailbox` (the mailbox cannot send), `unavailable` (it could not be started; nothing was sent), `auth_<code>`, `smtp_<code>` or `network_<error>` from the mailbox's own mail server. Empty otherwise. */
86435
+ answer_detail: string;
86436
+ /**
86437
+ * @description The customer's answer to this reply from the Unibox: empty when none was written, `queued` while it is being sent, `sent`, or `failed` (it may be sent again).
86438
+ * @enum {string}
86439
+ */
86440
+ answer_status: "" | "queued" | "sent" | "failed";
86441
+ /** Format: date-time */
86442
+ answered_at: string | null;
86370
86443
  from_email: string;
86371
86444
  from_name?: string;
86372
86445
  /** Format: uuid */
@@ -86388,6 +86461,10 @@ export interface components {
86388
86461
  snippet?: string;
86389
86462
  subject?: string;
86390
86463
  };
86464
+ EmailMarketingColdReplyAnswer: {
86465
+ /** @description The answer, plain text. Leading and trailing spaces are dropped. */
86466
+ body: string;
86467
+ };
86391
86468
  EmailMarketingColdReplyList: {
86392
86469
  data: components["schemas"]["EmailMarketingColdReply"][];
86393
86470
  next_cursor: string | null;
@@ -178835,6 +178912,41 @@ export interface operations {
178835
178912
  404: components["responses"]["NotFound"];
178836
178913
  };
178837
178914
  };
178915
+ answerEmailMarketingColdReply: {
178916
+ parameters: {
178917
+ query?: {
178918
+ /** @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). */
178919
+ org_id?: components["parameters"]["OrgIdQuery"];
178920
+ };
178921
+ header?: never;
178922
+ path: {
178923
+ reply_id: string;
178924
+ };
178925
+ cookie?: never;
178926
+ };
178927
+ requestBody: {
178928
+ content: {
178929
+ "application/json": components["schemas"]["EmailMarketingColdReplyAnswer"];
178930
+ };
178931
+ };
178932
+ responses: {
178933
+ /** @description The row, with `answer_status` `queued`. */
178934
+ 202: {
178935
+ headers: {
178936
+ [name: string]: unknown;
178937
+ };
178938
+ content: {
178939
+ "application/json": components["schemas"]["EmailMarketingColdReply"];
178940
+ };
178941
+ };
178942
+ 400: components["responses"]["UnprocessableEntity"];
178943
+ 401: components["responses"]["Unauthorized"];
178944
+ 403: components["responses"]["Forbidden"];
178945
+ 404: components["responses"]["NotFound"];
178946
+ 409: components["responses"]["Conflict"];
178947
+ 503: components["responses"]["ServiceUnavailable"];
178948
+ };
178949
+ };
178838
178950
  listEmailMarketingColdSequences: {
178839
178951
  parameters: {
178840
178952
  query?: {
@@ -216233,6 +216345,39 @@ export interface operations {
216233
216345
  422: components["responses"]["UnprocessableEntity"];
216234
216346
  };
216235
216347
  };
216348
+ getStoreCampaignsPlan: {
216349
+ parameters: {
216350
+ query?: never;
216351
+ header?: never;
216352
+ path?: never;
216353
+ cookie?: never;
216354
+ };
216355
+ requestBody?: never;
216356
+ responses: {
216357
+ /** @description The Pro state. */
216358
+ 200: {
216359
+ headers: {
216360
+ [name: string]: unknown;
216361
+ };
216362
+ content: {
216363
+ "application/json": {
216364
+ /** @description The paid plan's code, or empty. */
216365
+ plan_code: string;
216366
+ /** @description A paid Campaigns plan exists (it may be unusable while the account is not in good standing). */
216367
+ plan_paid: boolean;
216368
+ /** @enum {string} */
216369
+ pro: "active" | "trial" | "lapsed";
216370
+ /** @enum {integer} */
216371
+ trial_days: 30;
216372
+ /** Format: date-time */
216373
+ trial_ends_at: string | null;
216374
+ };
216375
+ };
216376
+ };
216377
+ 401: components["responses"]["Unauthorized"];
216378
+ 429: components["responses"]["TooManyRequests"];
216379
+ };
216380
+ };
216236
216381
  disconnectStore: {
216237
216382
  parameters: {
216238
216383
  query?: never;
@@ -216361,6 +216506,79 @@ export interface operations {
216361
216506
  503: components["responses"]["ServiceUnavailable"];
216362
216507
  };
216363
216508
  };
216509
+ listStoreForms: {
216510
+ parameters: {
216511
+ query?: never;
216512
+ header?: never;
216513
+ path?: never;
216514
+ cookie?: never;
216515
+ };
216516
+ requestBody?: never;
216517
+ responses: {
216518
+ /** @description The forms. */
216519
+ 200: {
216520
+ headers: {
216521
+ [name: string]: unknown;
216522
+ };
216523
+ content: {
216524
+ "application/json": {
216525
+ forms: {
216526
+ button_label: string;
216527
+ /** @description The consent sentence the plugin must show beside the required tick box. */
216528
+ consent_text: string;
216529
+ /** @description The form's public id. */
216530
+ id: string;
216531
+ intro: string;
216532
+ list_name: string;
216533
+ locale: string;
216534
+ title: string;
216535
+ }[];
216536
+ };
216537
+ };
216538
+ };
216539
+ 401: components["responses"]["Unauthorized"];
216540
+ 429: components["responses"]["TooManyRequests"];
216541
+ };
216542
+ };
216543
+ submitStoreForm: {
216544
+ parameters: {
216545
+ query?: never;
216546
+ header?: never;
216547
+ path?: never;
216548
+ cookie?: never;
216549
+ };
216550
+ requestBody: {
216551
+ content: {
216552
+ "application/json": {
216553
+ /** @description The visitor's IP as the site saw it, kept as consent evidence; ignored when not an IP address. */
216554
+ client_ip?: string;
216555
+ email: string;
216556
+ form_id: string;
216557
+ /** @description The page the form was on. */
216558
+ source_page?: string;
216559
+ user_agent?: string;
216560
+ };
216561
+ };
216562
+ };
216563
+ responses: {
216564
+ /** @description Recorded. */
216565
+ 202: {
216566
+ headers: {
216567
+ [name: string]: unknown;
216568
+ };
216569
+ content: {
216570
+ "application/json": {
216571
+ /** @enum {string} */
216572
+ result: "ok" | "closed";
216573
+ };
216574
+ };
216575
+ };
216576
+ 401: components["responses"]["Unauthorized"];
216577
+ 404: components["responses"]["NotFound"];
216578
+ 422: components["responses"]["UnprocessableEntity"];
216579
+ 429: components["responses"]["TooManyRequests"];
216580
+ };
216581
+ };
216364
216582
  getStoreOrderMessages: {
216365
216583
  parameters: {
216366
216584
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1760",
3
+ "version": "0.1.1762",
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>",