@zinn-digital/sdk 0.1.1761 → 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;
@@ -86411,6 +86431,15 @@ export interface components {
86411
86431
  open: boolean;
86412
86432
  };
86413
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;
86414
86443
  from_email: string;
86415
86444
  from_name?: string;
86416
86445
  /** Format: uuid */
@@ -86432,6 +86461,10 @@ export interface components {
86432
86461
  snippet?: string;
86433
86462
  subject?: string;
86434
86463
  };
86464
+ EmailMarketingColdReplyAnswer: {
86465
+ /** @description The answer, plain text. Leading and trailing spaces are dropped. */
86466
+ body: string;
86467
+ };
86435
86468
  EmailMarketingColdReplyList: {
86436
86469
  data: components["schemas"]["EmailMarketingColdReply"][];
86437
86470
  next_cursor: string | null;
@@ -178879,6 +178912,41 @@ export interface operations {
178879
178912
  404: components["responses"]["NotFound"];
178880
178913
  };
178881
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
+ };
178882
178950
  listEmailMarketingColdSequences: {
178883
178951
  parameters: {
178884
178952
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1761",
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>",