samva 0.48.0 → 0.50.0

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.
Files changed (85) hide show
  1. package/dist/client/sdk.gen.d.ts +272 -33
  2. package/dist/client/sdk.gen.js +693 -55
  3. package/dist/client/types.gen.d.ts +1571 -206
  4. package/dist/effect/accounts.d.ts +6 -6
  5. package/dist/effect/agents.d.ts +13 -13
  6. package/dist/effect/analytics.d.ts +6 -6
  7. package/dist/effect/api-keys.d.ts +11 -11
  8. package/dist/effect/approval-requests.d.ts +4 -4
  9. package/dist/effect/attachments.d.ts +4 -4
  10. package/dist/effect/brands.d.ts +6 -6
  11. package/dist/effect/campaigns.d.ts +15 -15
  12. package/dist/effect/contact-groups.d.ts +10 -10
  13. package/dist/effect/contacts.d.ts +25 -25
  14. package/dist/effect/conversations.d.ts +13 -13
  15. package/dist/effect/custom-fields.d.ts +4 -4
  16. package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
  17. package/dist/effect/descriptors/integrations-catalog.js +122 -0
  18. package/dist/effect/descriptors/mailboxes.d.ts +73 -13
  19. package/dist/effect/descriptors/mailboxes.js +85 -13
  20. package/dist/effect/email.d.ts +61 -61
  21. package/dist/effect/events.d.ts +2 -2
  22. package/dist/effect/feedback.d.ts +1 -1
  23. package/dist/effect/generated/accounts.d.ts +1 -3
  24. package/dist/effect/generated/accounts.js +2 -7
  25. package/dist/effect/generated/api-keys.d.ts +15 -15
  26. package/dist/effect/generated/attachments.js +1 -1
  27. package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
  28. package/dist/effect/generated/integrations-catalog.js +578 -3
  29. package/dist/effect/generated/journeys.d.ts +9 -11
  30. package/dist/effect/generated/journeys.js +6 -12
  31. package/dist/effect/generated/mailboxes.d.ts +1661 -669
  32. package/dist/effect/generated/mailboxes.js +291 -103
  33. package/dist/effect/generated/messages.d.ts +109 -4
  34. package/dist/effect/generated/messages.js +41 -8
  35. package/dist/effect/generated/shared.d.ts +199 -21
  36. package/dist/effect/generated/shared.js +50 -13
  37. package/dist/effect/generated/template-registrations.d.ts +32 -1
  38. package/dist/effect/generated/template-registrations.js +8 -5
  39. package/dist/effect/generated/templates.d.ts +1 -4
  40. package/dist/effect/generated/templates.js +2 -6
  41. package/dist/effect/generated/webhooks.d.ts +19 -19
  42. package/dist/effect/generated/webhooks.js +8 -8
  43. package/dist/effect/generated/whoami.d.ts +4 -4
  44. package/dist/effect/generated-metadata.d.ts +138 -18
  45. package/dist/effect/generated-metadata.js +366 -340
  46. package/dist/effect/integrations-catalog.d.ts +228 -3
  47. package/dist/effect/integrations-catalog.js +29 -1
  48. package/dist/effect/integrations.d.ts +7 -7
  49. package/dist/effect/internal/client.d.ts +7 -3
  50. package/dist/effect/internal/operation.d.ts +10 -6
  51. package/dist/effect/internal/operation.js +3 -3
  52. package/dist/effect/journeys.d.ts +14 -14
  53. package/dist/effect/mailboxes.d.ts +142 -92
  54. package/dist/effect/mailboxes.js +20 -8
  55. package/dist/effect/media.d.ts +5 -5
  56. package/dist/effect/messages.d.ts +9 -9
  57. package/dist/effect/namespaces.d.ts +11 -11
  58. package/dist/effect/newsletter-domains.d.ts +4 -4
  59. package/dist/effect/newsletter-issues.d.ts +11 -11
  60. package/dist/effect/newsletters.d.ts +5 -5
  61. package/dist/effect/operations.d.ts +3 -3
  62. package/dist/effect/organizations.d.ts +12 -12
  63. package/dist/effect/policies.d.ts +3 -3
  64. package/dist/effect/retry.js +1 -1
  65. package/dist/effect/scheduled-messages.d.ts +5 -5
  66. package/dist/effect/subscriptions.d.ts +1 -1
  67. package/dist/effect/template-registrations.d.ts +9 -3
  68. package/dist/effect/template-share-links.d.ts +5 -5
  69. package/dist/effect/templates.d.ts +37 -37
  70. package/dist/effect/topic-forms.d.ts +5 -5
  71. package/dist/effect/topics.d.ts +9 -9
  72. package/dist/effect/webhooks.d.ts +15 -15
  73. package/dist/effect/whatsapp-flows.d.ts +10 -10
  74. package/dist/effect/whatsapp-setup-links.d.ts +4 -4
  75. package/dist/effect/whatsapp.d.ts +12 -12
  76. package/dist/effect/whoami.d.ts +1 -1
  77. package/dist/inline-attachments.d.ts +0 -5
  78. package/dist/mailbox-events.d.ts +1 -5
  79. package/dist/mailbox-events.js +2 -2
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +4 -4
  82. package/dist/promises/client.js +8 -4
  83. package/dist/promises/types.gen.d.ts +1 -1
  84. package/dist/service-map.d.ts +105 -11
  85. package/package.json +3 -3
@@ -85,6 +85,11 @@ export type TemplateRegistrationId = string;
85
85
  export type TemplateRegistrationList = {
86
86
  data: Array<TemplateRegistration>;
87
87
  };
88
+ export type ServiceUnavailableError = {
89
+ _tag: "ServiceUnavailableError";
90
+ message: string;
91
+ retryAfterSeconds: number;
92
+ };
88
93
  export type CredentialsError = {
89
94
  _tag: "CredentialsError";
90
95
  message: string;
@@ -104,9 +109,28 @@ export type ConflictError = {
104
109
  resource: string;
105
110
  id?: string | null | undefined;
106
111
  };
112
+ /**
113
+ * For an immediate submission, `businessAccountId` is the connected number to register on and defaults to the number for the template's scope.
114
+ */
107
115
  export type SubmitTemplateRegistrationPayload = {
108
116
  provider: "whatsapp";
109
117
  businessAccountId?: WhatsAppBusinessAccountId | undefined;
118
+ approval?: TemplateRegistrationApproval | undefined;
119
+ };
120
+ /**
121
+ * For a reviewed submission, the exact publication, workspace revision, number and Meta business account. Omit the separate businessAccountId when supplying approval.
122
+ */
123
+ export type TemplateRegistrationApproval = {
124
+ publicationId: TemplatePublicationId;
125
+ businessAccountId: WhatsAppBusinessAccountId;
126
+ /**
127
+ * The Meta business account ID shown for the selected number before approval.
128
+ */
129
+ expectedWabaId: string;
130
+ /**
131
+ * The workspace revision reviewed for this submission.
132
+ */
133
+ expectedWorkspaceRevision: string;
110
134
  };
111
135
  export type WhatsAppBusinessAccountId = string;
112
136
  export type WhatsAppSetupLinkUnavailableError = {
@@ -245,11 +269,6 @@ export type WhatsAppFlowVersion = {
245
269
  dataExchange: boolean;
246
270
  createdAt: string;
247
271
  };
248
- export type ServiceUnavailableError = {
249
- _tag: "ServiceUnavailableError";
250
- message: string;
251
- retryAfterSeconds: number;
252
- };
253
272
  export type RecordWhatsAppFlowVersionPayload = {
254
273
  commitSha: string;
255
274
  expectedWorkspaceRevision: string;
@@ -992,7 +1011,7 @@ export type ScheduleMailboxDraft = {
992
1011
  draftRevision: number;
993
1012
  sendAt: string;
994
1013
  };
995
- export type MailboxQuarantinedMessage = {
1014
+ export type MailboxSpamHeldMessage = {
996
1015
  id: MessageId;
997
1016
  disposition: "quarantined" | "isolated";
998
1017
  reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "verdict_missing" | "phishing" | "fraud" | "prompt_injection";
@@ -1008,8 +1027,8 @@ export type MailboxQuarantinedMessage = {
1008
1027
  threadId: MailboxThreadId | null;
1009
1028
  discardedAt: string | null;
1010
1029
  };
1011
- export type MailboxQuarantinePage = {
1012
- items: Array<MailboxQuarantinedMessage>;
1030
+ export type MailboxSpamHeldPage = {
1031
+ items: Array<MailboxSpamHeldMessage>;
1013
1032
  nextCursor: string | null;
1014
1033
  };
1015
1034
  export type ForwardMailboxMessagePayload = {
@@ -1234,10 +1253,16 @@ export type MailboxThreadState = {
1234
1253
  };
1235
1254
  export type MailboxLabelId = string;
1236
1255
  export type MailboxThreadPriority = "low" | "normal" | "high" | "urgent";
1237
- export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash";
1256
+ export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash" | "spam";
1238
1257
  export type MailboxThreadLabels = {
1239
1258
  labels: [MailboxLabelId, ...Array<MailboxLabelId>];
1240
1259
  };
1260
+ export type MailboxEmptySpamAccepted = {
1261
+ count: number;
1262
+ };
1263
+ export type MailboxEmptyTrashAccepted = {
1264
+ count: number;
1265
+ };
1241
1266
  export type UpdateMailboxThreadPayload = {
1242
1267
  folder?: MailboxThreadFolder | null | undefined;
1243
1268
  priority?: MailboxThreadPriority | null | undefined;
@@ -1253,6 +1278,10 @@ export type MailboxThread = {
1253
1278
  id: MailboxThreadId;
1254
1279
  channel: MailboxChannel;
1255
1280
  endpointId: MailboxEndpointId | null;
1281
+ /**
1282
+ * The mailbox address that received the thread's first inbound email, including any plus tag. Null when no receiving address is known.
1283
+ */
1284
+ deliveredTo: string | null;
1256
1285
  subject: string | null;
1257
1286
  preview: string | null;
1258
1287
  from: MailboxThreadSender | null;
@@ -1260,6 +1289,7 @@ export type MailboxThread = {
1260
1289
  hasAttachments: boolean;
1261
1290
  hasDraft: boolean;
1262
1291
  folder: MailboxThreadFolder;
1292
+ spam?: MailboxThreadSpam | undefined;
1263
1293
  priority: MailboxThreadPriority;
1264
1294
  labels: Array<MailboxLabelId>;
1265
1295
  read: boolean;
@@ -1293,6 +1323,10 @@ export type MailboxThreadParticipant = {
1293
1323
  role: "recipient" | "sender" | "assignee" | "observer";
1294
1324
  address?: string | null | undefined;
1295
1325
  };
1326
+ export type MailboxThreadSpam = {
1327
+ reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "verdict_missing" | "phishing" | "fraud" | "prompt_injection" | null;
1328
+ source: "receipt" | "classifier" | "reader";
1329
+ };
1296
1330
  export type MailboxThreadSender = {
1297
1331
  address: string | null;
1298
1332
  displayName: string | null;
@@ -1305,6 +1339,10 @@ export type MailboxThreadSummary = {
1305
1339
  id: MailboxThreadId;
1306
1340
  channel: MailboxChannel;
1307
1341
  endpointId: MailboxEndpointId | null;
1342
+ /**
1343
+ * The mailbox address that received the thread's first inbound email, including any plus tag. Null when no receiving address is known.
1344
+ */
1345
+ deliveredTo: string | null;
1308
1346
  subject: string | null;
1309
1347
  preview: string | null;
1310
1348
  from: MailboxThreadSender | null;
@@ -1312,6 +1350,7 @@ export type MailboxThreadSummary = {
1312
1350
  hasAttachments: boolean;
1313
1351
  hasDraft: boolean;
1314
1352
  folder: MailboxThreadFolder;
1353
+ spam?: MailboxThreadSpam | undefined;
1315
1354
  priority: MailboxThreadPriority;
1316
1355
  labels: Array<MailboxLabelId>;
1317
1356
  read: boolean;
@@ -1336,6 +1375,10 @@ export type OrganizationMailboxThreadSummary = {
1336
1375
  id: MailboxThreadId;
1337
1376
  channel: MailboxChannel;
1338
1377
  endpointId: MailboxEndpointId | null;
1378
+ /**
1379
+ * The mailbox address that received the thread's first inbound email, including any plus tag. Null when no receiving address is known.
1380
+ */
1381
+ deliveredTo: string | null;
1339
1382
  subject: string | null;
1340
1383
  preview: string | null;
1341
1384
  from: MailboxThreadSender | null;
@@ -1343,6 +1386,7 @@ export type OrganizationMailboxThreadSummary = {
1343
1386
  hasAttachments: boolean;
1344
1387
  hasDraft: boolean;
1345
1388
  folder: MailboxThreadFolder;
1389
+ spam?: MailboxThreadSpam | undefined;
1346
1390
  priority: MailboxThreadPriority;
1347
1391
  labels: Array<MailboxLabelId>;
1348
1392
  read: boolean;
@@ -1530,7 +1574,7 @@ export type MailboxGrant = {
1530
1574
  id: string;
1531
1575
  displayName?: string | null | undefined;
1532
1576
  };
1533
- permissions: Array<"mailbox:read" | "mailbox:configure" | "thread:read" | "thread:write" | "label:write" | "draft:write" | "note:write" | "action:propose" | "action:approve" | "policy:read" | "quarantine:read" | "quarantine:release">;
1577
+ permissions: Array<"mailbox:read" | "mailbox:configure" | "thread:read" | "thread:write" | "label:write" | "draft:write" | "note:write" | "action:propose" | "action:approve" | "policy:read" | "spam:read" | "spam:discard">;
1534
1578
  createdAt: string;
1535
1579
  };
1536
1580
  export type UpdateMailboxGrantPayload = {
@@ -1714,11 +1758,11 @@ export type ApiKeyAccess = {
1714
1758
  };
1715
1759
  export type ApiKeyMailboxAccess = {
1716
1760
  /**
1717
- * `read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `quarantine.read` reads quarantined mail.
1761
+ * `read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `spam.read` reads quarantined mail.
1718
1762
  */
1719
1763
  permissions: [
1720
- "read" | "update" | "send" | "quarantine.read",
1721
- ...Array<"read" | "update" | "send" | "quarantine.read">
1764
+ "read" | "update" | "send" | "spam.read",
1765
+ ...Array<"read" | "update" | "send" | "spam.read">
1722
1766
  ];
1723
1767
  /**
1724
1768
  * The mailboxes the key may act on. Omit to reach every mailbox the owner can.
@@ -1964,7 +2008,7 @@ export type WebhookEndpoint = {
1964
2008
  id: WebhookEndpointId;
1965
2009
  name: string;
1966
2010
  url: string;
1967
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
2011
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
1968
2012
  channels: Array<"sms" | "whatsapp" | "email"> | null;
1969
2013
  mailboxIds: Array<MailboxId> | null;
1970
2014
  namespaceId: NamespaceId | null;
@@ -1978,7 +2022,7 @@ export type WebhookEndpoint = {
1978
2022
  export type UpdateWebhookPayload = {
1979
2023
  name?: string | null | undefined;
1980
2024
  url?: string | null | undefined;
1981
- eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
2025
+ eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
1982
2026
  channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
1983
2027
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
1984
2028
  namespaceId?: NamespaceId | null | undefined;
@@ -1995,7 +2039,7 @@ export type WebhookEndpointListItem = {
1995
2039
  id: WebhookEndpointId;
1996
2040
  name: string;
1997
2041
  url: string;
1998
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
2042
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
1999
2043
  channels: Array<"sms" | "whatsapp" | "email"> | null;
2000
2044
  mailboxIds: Array<MailboxId> | null;
2001
2045
  namespaceId: NamespaceId | null;
@@ -2017,7 +2061,7 @@ export type WebhookDeliveryCounts = {
2017
2061
  export type CreateWebhookPayload = {
2018
2062
  name: string;
2019
2063
  url: string;
2020
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
2064
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
2021
2065
  channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2022
2066
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2023
2067
  namespaceId?: NamespaceId | null | undefined;
@@ -3061,6 +3105,231 @@ export type IntegrationCatalogSearchEntry = {
3061
3105
  connectState: "ready" | "checkedAtConnect" | "unavailable";
3062
3106
  reason: string | null;
3063
3107
  };
3108
+ export type RecipeReadinessResponse = {
3109
+ ready: boolean;
3110
+ channel: "email" | "whatsapp";
3111
+ availability: {
3112
+ shopify: boolean;
3113
+ journeys: boolean;
3114
+ whatsapp: boolean;
3115
+ plan: "granted" | "denied" | "unreachable" | "disabled" | null;
3116
+ };
3117
+ shopify: {
3118
+ id: IntegrationAccountId;
3119
+ status: AccountStatus;
3120
+ shop: string;
3121
+ } | null;
3122
+ publication: {
3123
+ id: TemplatePublicationId;
3124
+ templateId: TemplateId;
3125
+ /**
3126
+ * Top-level inputs of the selected email publication or approved WhatsApp registration.
3127
+ */
3128
+ parameters?: Array<{
3129
+ name: string;
3130
+ required: boolean;
3131
+ }> | undefined;
3132
+ /**
3133
+ * Email input diagnostics and guidance when the journey cannot fill this publication.
3134
+ */
3135
+ inputIssues?: Array<string> | undefined;
3136
+ } | null;
3137
+ email: {
3138
+ senderId: EmailSenderId | null;
3139
+ domainId: EmailDomainId | null;
3140
+ address: string;
3141
+ status: "ready" | "unverified" | "inactive";
3142
+ } | null;
3143
+ whatsapp: {
3144
+ accountId: WhatsAppBusinessAccountId;
3145
+ address: string;
3146
+ status: "ready" | "reconnect" | "unverified" | "inactive";
3147
+ registration: {
3148
+ id: TemplateRegistrationId;
3149
+ status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
3150
+ } | null;
3151
+ } | null;
3152
+ reply: {
3153
+ endpointId: MailboxEndpointId;
3154
+ mailboxId: MailboxId;
3155
+ address: string;
3156
+ status: "ready" | "inactive" | "different_account";
3157
+ } | null;
3158
+ };
3159
+ export type EmailDomainId = string;
3160
+ export type AccountStatus = "pending" | "connected" | "needsReconnect";
3161
+ export type RecipeCatalogResponse = {
3162
+ recipes: Array<{
3163
+ id: "post-delivery-check-in";
3164
+ title: string;
3165
+ trigger: "shopify.order_created" | "shopify.order_fulfilled" | "shopify.order_delivered" | "shopify.refund_created" | "shopify.checkout_started";
3166
+ stopEvent: "shopify.order_created" | "shopify.order_fulfilled" | "shopify.order_delivered" | "shopify.refund_created" | "shopify.checkout_started";
3167
+ waitDays: number;
3168
+ channels: Array<"email" | "whatsapp">;
3169
+ }>;
3170
+ events: Array<{
3171
+ event: "shopify.order_created" | "shopify.order_fulfilled" | "shopify.order_delivered" | "shopify.refund_created" | "shopify.checkout_started";
3172
+ version: number;
3173
+ producer: string;
3174
+ schema: JsonObject;
3175
+ paths: Array<{
3176
+ path: string;
3177
+ mayBeEmpty: boolean;
3178
+ }>;
3179
+ samples: Array<{
3180
+ fixture: string;
3181
+ label: string;
3182
+ properties: JsonObject;
3183
+ }>;
3184
+ }>;
3185
+ };
3186
+ export type RecipeTestReceipt = {
3187
+ messageId: MessageId;
3188
+ state: "queued" | "unresolved" | "rejected";
3189
+ };
3190
+ export type RecipeTestResponse = {
3191
+ messageId: MessageId;
3192
+ };
3193
+ export type RecipeTestPayload = {
3194
+ templateId: TemplateId;
3195
+ publicationId: TemplatePublicationId;
3196
+ fixture?: string | undefined;
3197
+ templateData?: JsonObject | undefined;
3198
+ channel: "email";
3199
+ requestId: string;
3200
+ mailboxEndpointId: MailboxEndpointId;
3201
+ topicId?: TopicId | undefined;
3202
+ senderId?: EmailSenderId | undefined;
3203
+ } | {
3204
+ templateId: TemplateId;
3205
+ publicationId: TemplatePublicationId;
3206
+ fixture?: string | undefined;
3207
+ templateData?: JsonObject | undefined;
3208
+ channel: "whatsapp";
3209
+ eventBindings?: {
3210
+ [key: string]: string;
3211
+ } | undefined;
3212
+ requestId: string;
3213
+ mailboxEndpointId: MailboxEndpointId;
3214
+ topicId?: TopicId | undefined;
3215
+ businessAccountId: WhatsAppBusinessAccountId;
3216
+ registrationId: TemplateRegistrationId;
3217
+ challengeId: string;
3218
+ };
3219
+ export type RecipeChallengeStatus = {
3220
+ id: string;
3221
+ expiresAt: string;
3222
+ observedPhone: string | null;
3223
+ confirmedAt: string | null;
3224
+ };
3225
+ export type RecipeChallengeStarted = {
3226
+ id: string;
3227
+ expiresAt: string;
3228
+ address: string;
3229
+ message: string;
3230
+ };
3231
+ export type RecipePreviewResponse = {
3232
+ fixture: string;
3233
+ publicationId: TemplatePublicationId;
3234
+ channel: "email";
3235
+ content: {
3236
+ subject: string;
3237
+ preheader?: string | undefined;
3238
+ html: string;
3239
+ text: string;
3240
+ };
3241
+ } | {
3242
+ fixture: string;
3243
+ publicationId: TemplatePublicationId;
3244
+ channel: "whatsapp";
3245
+ content: JsonObject;
3246
+ };
3247
+ export type RecipePreviewPayload = {
3248
+ templateId: TemplateId;
3249
+ publicationId: TemplatePublicationId;
3250
+ fixture?: string | undefined;
3251
+ templateData?: JsonObject | undefined;
3252
+ channel: "email";
3253
+ } | {
3254
+ templateId: TemplateId;
3255
+ publicationId: TemplatePublicationId;
3256
+ fixture?: string | undefined;
3257
+ templateData?: JsonObject | undefined;
3258
+ channel: "whatsapp";
3259
+ eventBindings?: {
3260
+ [key: string]: string;
3261
+ } | undefined;
3262
+ };
3263
+ export type ActivatedRecipeSetup = {
3264
+ setup: RecipeSetup;
3265
+ journey: {
3266
+ id: JourneyId;
3267
+ status: JourneyStatus;
3268
+ publishedVersion: number;
3269
+ };
3270
+ };
3271
+ export type JourneyStatus = "draft" | "active" | "paused" | "archived";
3272
+ export type RecipeSetup = {
3273
+ id: string;
3274
+ revision: string;
3275
+ references: RecipeSetupReferences;
3276
+ updatedAt: string;
3277
+ };
3278
+ export type RecipeSetupReferences = {
3279
+ channel: "email" | "whatsapp";
3280
+ templateFamilyId?: TemplateFamilyId | undefined;
3281
+ integrationAccountId?: IntegrationAccountId | undefined;
3282
+ publicationId?: TemplatePublicationId | undefined;
3283
+ senderId?: EmailSenderId | undefined;
3284
+ whatsappAccountId?: WhatsAppBusinessAccountId | undefined;
3285
+ registrationId?: TemplateRegistrationId | undefined;
3286
+ mailboxEndpointId?: MailboxEndpointId | undefined;
3287
+ journeyId?: JourneyId | undefined;
3288
+ eventBindings?: {
3289
+ [key: string]: string;
3290
+ } | undefined;
3291
+ };
3292
+ export type RecipeSetupReferencesWritable = {
3293
+ channel: "email" | "whatsapp";
3294
+ templateFamilyId?: TemplateFamilyId | undefined;
3295
+ integrationAccountId?: IntegrationAccountId | undefined;
3296
+ publicationId?: TemplatePublicationId | undefined;
3297
+ senderId?: EmailSenderId | undefined;
3298
+ whatsappAccountId?: WhatsAppBusinessAccountId | undefined;
3299
+ registrationId?: TemplateRegistrationId | undefined;
3300
+ mailboxEndpointId?: MailboxEndpointId | undefined;
3301
+ journeyId?: JourneyId | undefined;
3302
+ eventBindings?: {
3303
+ [key: string]: string | undefined;
3304
+ } | undefined;
3305
+ };
3306
+ export type ActivateRecipeSetup = {
3307
+ revision: string;
3308
+ selection: {
3309
+ channel: "email";
3310
+ publicationId: TemplatePublicationId;
3311
+ senderId?: EmailSenderId | undefined;
3312
+ } | {
3313
+ channel: "whatsapp";
3314
+ whatsappAccountId: WhatsAppBusinessAccountId;
3315
+ registrationId: TemplateRegistrationId;
3316
+ eventBindings: {
3317
+ [key: string]: string;
3318
+ };
3319
+ };
3320
+ };
3321
+ export type ReplaceRecipeSetup = {
3322
+ references: RecipeSetupReferences;
3323
+ revision: string | null;
3324
+ };
3325
+ export type RecipeSetups = {
3326
+ items: Array<RecipeSetup>;
3327
+ };
3328
+ export type RecipeHandoff = {
3329
+ url: string;
3330
+ organizationSlug: string;
3331
+ setupId: string | null;
3332
+ };
3064
3333
  export type DeleteAccountResponse = {
3065
3334
  id: IntegrationAccountId;
3066
3335
  deleted: true;
@@ -3117,7 +3386,6 @@ export type AccountInfo = {
3117
3386
  verifiedEmail?: string | undefined;
3118
3387
  timeZone?: string | undefined;
3119
3388
  };
3120
- export type AccountStatus = "pending" | "connected" | "needsReconnect";
3121
3389
  export type IntegrationAccountList = {
3122
3390
  items: Array<IntegrationAccount>;
3123
3391
  };
@@ -3701,7 +3969,6 @@ export type Journey = {
3701
3969
  createdAt: string;
3702
3970
  updatedAt: string;
3703
3971
  };
3704
- export type JourneyStatus = "draft" | "active" | "paused" | "archived";
3705
3972
  export type PublishJourneyPayload = {
3706
3973
  revision: string;
3707
3974
  };
@@ -4263,7 +4530,6 @@ export type DomainWarmingDomainRef = {
4263
4530
  id: EmailDomainId;
4264
4531
  domain: string;
4265
4532
  };
4266
- export type EmailDomainId = string;
4267
4533
  export type DomainWarmingNotePayload = {
4268
4534
  note?: string | null | undefined;
4269
4535
  };
@@ -5825,9 +6091,28 @@ export type SmsMessageContent = {
5825
6091
  parts?: number | null | undefined;
5826
6092
  };
5827
6093
  export type MessageDeliveryList = {
5828
- items: Array<MessageDelivery>;
6094
+ id: MessageId;
6095
+ status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
6096
+ skippedRecipients: Array<SkippedRecipient>;
6097
+ items: Array<MessageDeliveryObservation>;
6098
+ reply: MessageReplyObservation;
6099
+ };
6100
+ export type MessageReplyObservation = {
6101
+ endpoints: Array<{
6102
+ mailboxId: MailboxId;
6103
+ endpointId: MailboxEndpointId;
6104
+ address: string;
6105
+ }>;
6106
+ received: {
6107
+ messageId: MessageId;
6108
+ receivedAt: string;
6109
+ thread: {
6110
+ mailboxId: MailboxId;
6111
+ threadId: MailboxThreadId;
6112
+ } | null;
6113
+ } | null;
5829
6114
  };
5830
- export type MessageDelivery = {
6115
+ export type MessageDeliveryObservation = {
5831
6116
  id: MessageDeliveryId;
5832
6117
  recipient: string | null;
5833
6118
  status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
@@ -5842,6 +6127,7 @@ export type MessageDelivery = {
5842
6127
  estimatedProviderCost: EstimatedProviderCost | null;
5843
6128
  createdAt: string;
5844
6129
  updatedAt: string;
6130
+ queuedAt: string | null;
5845
6131
  };
5846
6132
  export type EstimatedProviderCost = {
5847
6133
  amount: string;
@@ -15556,16 +15842,19 @@ export type AccountsConnectResponses = {
15556
15842
  201: ConnectAccountResponse;
15557
15843
  };
15558
15844
  export type AccountsConnectResponse = AccountsConnectResponses[keyof AccountsConnectResponses];
15559
- export type IntegrationCatalogPrepareData = {
15560
- body: {
15561
- provider: IntegrationKey;
15562
- input?: JsonObjectWritable | undefined;
15845
+ export type IntegrationCatalogRecipeConnectionHandoffData = {
15846
+ body?: never;
15847
+ path: {
15848
+ provider: "shopify" | "whatsapp";
15563
15849
  };
15564
- path?: never;
15565
- query?: never;
15566
- url: "/v1/integrations/catalog/prepare";
15850
+ query?: {
15851
+ integrationAccountId?: IntegrationAccountId | undefined;
15852
+ whatsappAccountId?: WhatsAppBusinessAccountId | undefined;
15853
+ setupId?: string | undefined;
15854
+ };
15855
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/connections/{provider}";
15567
15856
  };
15568
- export type IntegrationCatalogPrepareErrors = {
15857
+ export type IntegrationCatalogRecipeConnectionHandoffErrors = {
15569
15858
  /**
15570
15859
  * MalformedRequestError
15571
15860
  */
@@ -15575,9 +15864,13 @@ export type IntegrationCatalogPrepareErrors = {
15575
15864
  */
15576
15865
  401: UnauthorizedError;
15577
15866
  /**
15578
- * ForbiddenError
15867
+ * ForbiddenError | FlagDisabledError
15579
15868
  */
15580
- 403: ForbiddenError;
15869
+ 403: ForbiddenError | FlagDisabledError;
15870
+ /**
15871
+ * ResourceNotFoundError
15872
+ */
15873
+ 404: ResourceNotFoundError;
15581
15874
  /**
15582
15875
  * ValidationError
15583
15876
  */
@@ -15591,51 +15884,30 @@ export type IntegrationCatalogPrepareErrors = {
15591
15884
  */
15592
15885
  504: GatewayTimeoutError;
15593
15886
  };
15594
- export type IntegrationCatalogPrepareError = IntegrationCatalogPrepareErrors[keyof IntegrationCatalogPrepareErrors];
15595
- export type IntegrationCatalogPrepareResponses = {
15887
+ export type IntegrationCatalogRecipeConnectionHandoffError = IntegrationCatalogRecipeConnectionHandoffErrors[keyof IntegrationCatalogRecipeConnectionHandoffErrors];
15888
+ export type IntegrationCatalogRecipeConnectionHandoffResponses = {
15596
15889
  /**
15597
- * Success
15890
+ * RecipeHandoff
15598
15891
  */
15599
- 200: {
15600
- connectSpec: {
15601
- provider: IntegrationKey;
15602
- auth: "discover" | "oauth" | "none" | "apiKey";
15603
- inputs: {
15604
- [key: string]: {
15605
- label: string;
15606
- description: string;
15607
- pattern: string;
15608
- maxLength: number;
15609
- example: string;
15610
- default?: string | undefined;
15611
- kind?: "hostnameLabel" | "httpsUrl" | undefined;
15612
- };
15613
- };
15614
- credentials: {
15615
- [key: string]: {
15616
- label: string;
15617
- };
15618
- };
15619
- };
15620
- hosts: Array<string>;
15621
- connectState: "ready" | "checkedAtConnect" | "unavailable";
15622
- reason: string | null;
15623
- };
15892
+ 200: RecipeHandoff;
15624
15893
  };
15625
- export type IntegrationCatalogPrepareResponse = IntegrationCatalogPrepareResponses[keyof IntegrationCatalogPrepareResponses];
15626
- export type IntegrationCatalogSearchData = {
15894
+ export type IntegrationCatalogRecipeConnectionHandoffResponse = IntegrationCatalogRecipeConnectionHandoffResponses[keyof IntegrationCatalogRecipeConnectionHandoffResponses];
15895
+ export type IntegrationCatalogRecipeTestHandoffData = {
15627
15896
  body?: never;
15628
15897
  path?: never;
15629
- query?: {
15630
- key?: IntegrationKey | undefined;
15631
- query?: string | undefined;
15632
- category?: "commerce" | "payments" | "shipping" | "calendar" | "crm" | "helpdesk" | "knowledge" | "forms" | "accounting" | "reviews" | "productivity" | "dns" | "channel" | "other" | undefined;
15633
- offset?: number | undefined;
15634
- limit?: number | undefined;
15898
+ query: {
15899
+ channel: "email" | "whatsapp";
15900
+ templateId: TemplateId;
15901
+ publicationId: TemplatePublicationId;
15902
+ mailboxEndpointId: MailboxEndpointId;
15903
+ fixture?: string | undefined;
15904
+ senderId?: EmailSenderId | undefined;
15905
+ businessAccountId?: WhatsAppBusinessAccountId | undefined;
15906
+ registrationId?: TemplateRegistrationId | undefined;
15635
15907
  };
15636
- url: "/v1/integrations/catalog/search";
15908
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/handoff";
15637
15909
  };
15638
- export type IntegrationCatalogSearchErrors = {
15910
+ export type IntegrationCatalogRecipeTestHandoffErrors = {
15639
15911
  /**
15640
15912
  * MalformedRequestError
15641
15913
  */
@@ -15648,6 +15920,10 @@ export type IntegrationCatalogSearchErrors = {
15648
15920
  * ForbiddenError
15649
15921
  */
15650
15922
  403: ForbiddenError;
15923
+ /**
15924
+ * ResourceNotFoundError
15925
+ */
15926
+ 404: ResourceNotFoundError;
15651
15927
  /**
15652
15928
  * ValidationError
15653
15929
  */
@@ -15661,21 +15937,21 @@ export type IntegrationCatalogSearchErrors = {
15661
15937
  */
15662
15938
  504: GatewayTimeoutError;
15663
15939
  };
15664
- export type IntegrationCatalogSearchError = IntegrationCatalogSearchErrors[keyof IntegrationCatalogSearchErrors];
15665
- export type IntegrationCatalogSearchResponses = {
15940
+ export type IntegrationCatalogRecipeTestHandoffError = IntegrationCatalogRecipeTestHandoffErrors[keyof IntegrationCatalogRecipeTestHandoffErrors];
15941
+ export type IntegrationCatalogRecipeTestHandoffResponses = {
15666
15942
  /**
15667
- * IntegrationCatalogSearchPage
15943
+ * RecipeHandoff
15668
15944
  */
15669
- 200: IntegrationCatalogSearchPage;
15945
+ 200: RecipeHandoff;
15670
15946
  };
15671
- export type IntegrationCatalogSearchResponse = IntegrationCatalogSearchResponses[keyof IntegrationCatalogSearchResponses];
15672
- export type IntegrationCatalogListData = {
15947
+ export type IntegrationCatalogRecipeTestHandoffResponse = IntegrationCatalogRecipeTestHandoffResponses[keyof IntegrationCatalogRecipeTestHandoffResponses];
15948
+ export type IntegrationCatalogRecipeSetupsListData = {
15673
15949
  body?: never;
15674
15950
  path?: never;
15675
15951
  query?: never;
15676
- url: "/v1/integrations/catalog";
15952
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups";
15677
15953
  };
15678
- export type IntegrationCatalogListErrors = {
15954
+ export type IntegrationCatalogRecipeSetupsListErrors = {
15679
15955
  /**
15680
15956
  * MalformedRequestError
15681
15957
  */
@@ -15701,20 +15977,784 @@ export type IntegrationCatalogListErrors = {
15701
15977
  */
15702
15978
  504: GatewayTimeoutError;
15703
15979
  };
15704
- export type IntegrationCatalogListError = IntegrationCatalogListErrors[keyof IntegrationCatalogListErrors];
15705
- export type IntegrationCatalogListResponses = {
15980
+ export type IntegrationCatalogRecipeSetupsListError = IntegrationCatalogRecipeSetupsListErrors[keyof IntegrationCatalogRecipeSetupsListErrors];
15981
+ export type IntegrationCatalogRecipeSetupsListResponses = {
15706
15982
  /**
15707
- * IntegrationCatalogResponse
15983
+ * RecipeSetups
15708
15984
  */
15709
- 200: IntegrationCatalogResponse;
15985
+ 200: RecipeSetups;
15710
15986
  };
15711
- export type IntegrationCatalogListResponse = IntegrationCatalogListResponses[keyof IntegrationCatalogListResponses];
15712
- export type IntegrationsListData = {
15987
+ export type IntegrationCatalogRecipeSetupsListResponse = IntegrationCatalogRecipeSetupsListResponses[keyof IntegrationCatalogRecipeSetupsListResponses];
15988
+ export type IntegrationCatalogRecipeSetupGetData = {
15713
15989
  body?: never;
15714
- path?: never;
15715
- query?: {
15716
- limit?: number | null | undefined;
15717
- cursor?: string | undefined;
15990
+ path: {
15991
+ id: string;
15992
+ };
15993
+ query?: never;
15994
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/{id}";
15995
+ };
15996
+ export type IntegrationCatalogRecipeSetupGetErrors = {
15997
+ /**
15998
+ * MalformedRequestError
15999
+ */
16000
+ 400: MalformedRequestError;
16001
+ /**
16002
+ * UnauthorizedError
16003
+ */
16004
+ 401: UnauthorizedError;
16005
+ /**
16006
+ * ForbiddenError
16007
+ */
16008
+ 403: ForbiddenError;
16009
+ /**
16010
+ * ResourceNotFoundError
16011
+ */
16012
+ 404: ResourceNotFoundError;
16013
+ /**
16014
+ * ValidationError
16015
+ */
16016
+ 422: ValidationError;
16017
+ /**
16018
+ * InternalError
16019
+ */
16020
+ 500: InternalError;
16021
+ /**
16022
+ * GatewayTimeoutError
16023
+ */
16024
+ 504: GatewayTimeoutError;
16025
+ };
16026
+ export type IntegrationCatalogRecipeSetupGetError = IntegrationCatalogRecipeSetupGetErrors[keyof IntegrationCatalogRecipeSetupGetErrors];
16027
+ export type IntegrationCatalogRecipeSetupGetResponses = {
16028
+ /**
16029
+ * RecipeSetup
16030
+ */
16031
+ 200: RecipeSetup;
16032
+ };
16033
+ export type IntegrationCatalogRecipeSetupGetResponse = IntegrationCatalogRecipeSetupGetResponses[keyof IntegrationCatalogRecipeSetupGetResponses];
16034
+ export type IntegrationCatalogRecipeSetupReplaceData = {
16035
+ body: {
16036
+ references: RecipeSetupReferencesWritable;
16037
+ revision: string | null;
16038
+ };
16039
+ path: {
16040
+ id: string;
16041
+ };
16042
+ query?: never;
16043
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/{id}";
16044
+ };
16045
+ export type IntegrationCatalogRecipeSetupReplaceErrors = {
16046
+ /**
16047
+ * MalformedRequestError
16048
+ */
16049
+ 400: MalformedRequestError;
16050
+ /**
16051
+ * UnauthorizedError
16052
+ */
16053
+ 401: UnauthorizedError;
16054
+ /**
16055
+ * ForbiddenError
16056
+ */
16057
+ 403: ForbiddenError;
16058
+ /**
16059
+ * ResourceNotFoundError
16060
+ */
16061
+ 404: ResourceNotFoundError;
16062
+ /**
16063
+ * ConflictError
16064
+ */
16065
+ 409: ConflictError;
16066
+ /**
16067
+ * ValidationError
16068
+ */
16069
+ 422: ValidationError;
16070
+ /**
16071
+ * InternalError
16072
+ */
16073
+ 500: InternalError;
16074
+ /**
16075
+ * GatewayTimeoutError
16076
+ */
16077
+ 504: GatewayTimeoutError;
16078
+ };
16079
+ export type IntegrationCatalogRecipeSetupReplaceError = IntegrationCatalogRecipeSetupReplaceErrors[keyof IntegrationCatalogRecipeSetupReplaceErrors];
16080
+ export type IntegrationCatalogRecipeSetupReplaceResponses = {
16081
+ /**
16082
+ * RecipeSetup
16083
+ */
16084
+ 200: RecipeSetup;
16085
+ };
16086
+ export type IntegrationCatalogRecipeSetupReplaceResponse = IntegrationCatalogRecipeSetupReplaceResponses[keyof IntegrationCatalogRecipeSetupReplaceResponses];
16087
+ export type IntegrationCatalogRecipeSetupActivateData = {
16088
+ body: {
16089
+ revision: string;
16090
+ selection: {
16091
+ channel: "email";
16092
+ publicationId: TemplatePublicationId;
16093
+ senderId?: EmailSenderId | undefined;
16094
+ } | {
16095
+ channel: "whatsapp";
16096
+ whatsappAccountId: WhatsAppBusinessAccountId;
16097
+ registrationId: TemplateRegistrationId;
16098
+ eventBindings: {
16099
+ [key: string]: string | undefined;
16100
+ };
16101
+ };
16102
+ };
16103
+ path: {
16104
+ id: string;
16105
+ };
16106
+ query?: never;
16107
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/{id}/activate";
16108
+ };
16109
+ export type IntegrationCatalogRecipeSetupActivateErrors = {
16110
+ /**
16111
+ * MalformedRequestError
16112
+ */
16113
+ 400: MalformedRequestError;
16114
+ /**
16115
+ * UnauthorizedError
16116
+ */
16117
+ 401: UnauthorizedError;
16118
+ /**
16119
+ * PaymentRequiredError
16120
+ */
16121
+ 402: PaymentRequiredError;
16122
+ /**
16123
+ * ForbiddenError | FlagDisabledError
16124
+ */
16125
+ 403: ForbiddenError | FlagDisabledError;
16126
+ /**
16127
+ * ResourceNotFoundError
16128
+ */
16129
+ 404: ResourceNotFoundError;
16130
+ /**
16131
+ * ConflictError
16132
+ */
16133
+ 409: ConflictError;
16134
+ /**
16135
+ * ValidationError
16136
+ */
16137
+ 422: ValidationError;
16138
+ /**
16139
+ * InternalError
16140
+ */
16141
+ 500: InternalError;
16142
+ /**
16143
+ * BillingProviderError
16144
+ */
16145
+ 502: BillingProviderError;
16146
+ /**
16147
+ * GatewayTimeoutError
16148
+ */
16149
+ 504: GatewayTimeoutError;
16150
+ };
16151
+ export type IntegrationCatalogRecipeSetupActivateError = IntegrationCatalogRecipeSetupActivateErrors[keyof IntegrationCatalogRecipeSetupActivateErrors];
16152
+ export type IntegrationCatalogRecipeSetupActivateResponses = {
16153
+ /**
16154
+ * ActivatedRecipeSetup
16155
+ */
16156
+ 200: ActivatedRecipeSetup;
16157
+ };
16158
+ export type IntegrationCatalogRecipeSetupActivateResponse = IntegrationCatalogRecipeSetupActivateResponses[keyof IntegrationCatalogRecipeSetupActivateResponses];
16159
+ export type IntegrationCatalogRecipePreviewData = {
16160
+ body: {
16161
+ templateId: TemplateId;
16162
+ publicationId: TemplatePublicationId;
16163
+ fixture?: string | undefined;
16164
+ templateData?: JsonObjectWritable | undefined;
16165
+ channel: "email";
16166
+ } | {
16167
+ templateId: TemplateId;
16168
+ publicationId: TemplatePublicationId;
16169
+ fixture?: string | undefined;
16170
+ templateData?: JsonObjectWritable | undefined;
16171
+ channel: "whatsapp";
16172
+ eventBindings?: {
16173
+ [key: string]: string | undefined;
16174
+ } | undefined;
16175
+ };
16176
+ path?: never;
16177
+ query?: never;
16178
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/preview";
16179
+ };
16180
+ export type IntegrationCatalogRecipePreviewErrors = {
16181
+ /**
16182
+ * MalformedRequestError
16183
+ */
16184
+ 400: MalformedRequestError;
16185
+ /**
16186
+ * UnauthorizedError
16187
+ */
16188
+ 401: UnauthorizedError;
16189
+ /**
16190
+ * ForbiddenError
16191
+ */
16192
+ 403: ForbiddenError;
16193
+ /**
16194
+ * ResourceNotFoundError
16195
+ */
16196
+ 404: ResourceNotFoundError;
16197
+ /**
16198
+ * ValidationError
16199
+ */
16200
+ 422: ValidationError;
16201
+ /**
16202
+ * InternalError
16203
+ */
16204
+ 500: InternalError;
16205
+ /**
16206
+ * GatewayTimeoutError
16207
+ */
16208
+ 504: GatewayTimeoutError;
16209
+ };
16210
+ export type IntegrationCatalogRecipePreviewError = IntegrationCatalogRecipePreviewErrors[keyof IntegrationCatalogRecipePreviewErrors];
16211
+ export type IntegrationCatalogRecipePreviewResponses = {
16212
+ /**
16213
+ * RecipePreviewResponse
16214
+ */
16215
+ 200: RecipePreviewResponse;
16216
+ };
16217
+ export type IntegrationCatalogRecipePreviewResponse = IntegrationCatalogRecipePreviewResponses[keyof IntegrationCatalogRecipePreviewResponses];
16218
+ export type IntegrationCatalogRecipeWhatsAppChallengeBeginData = {
16219
+ body?: never;
16220
+ path: {
16221
+ accountId: WhatsAppBusinessAccountId;
16222
+ };
16223
+ query?: never;
16224
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/{accountId}/challenges";
16225
+ };
16226
+ export type IntegrationCatalogRecipeWhatsAppChallengeBeginErrors = {
16227
+ /**
16228
+ * MalformedRequestError
16229
+ */
16230
+ 400: MalformedRequestError;
16231
+ /**
16232
+ * UnauthorizedError
16233
+ */
16234
+ 401: UnauthorizedError;
16235
+ /**
16236
+ * ForbiddenError | FlagDisabledError
16237
+ */
16238
+ 403: ForbiddenError | FlagDisabledError;
16239
+ /**
16240
+ * ResourceNotFoundError
16241
+ */
16242
+ 404: ResourceNotFoundError;
16243
+ /**
16244
+ * ConflictError
16245
+ */
16246
+ 409: ConflictError;
16247
+ /**
16248
+ * ValidationError
16249
+ */
16250
+ 422: ValidationError;
16251
+ /**
16252
+ * InternalError
16253
+ */
16254
+ 500: InternalError;
16255
+ /**
16256
+ * GatewayTimeoutError
16257
+ */
16258
+ 504: GatewayTimeoutError;
16259
+ };
16260
+ export type IntegrationCatalogRecipeWhatsAppChallengeBeginError = IntegrationCatalogRecipeWhatsAppChallengeBeginErrors[keyof IntegrationCatalogRecipeWhatsAppChallengeBeginErrors];
16261
+ export type IntegrationCatalogRecipeWhatsAppChallengeBeginResponses = {
16262
+ /**
16263
+ * RecipeChallengeStarted
16264
+ */
16265
+ 200: RecipeChallengeStarted;
16266
+ };
16267
+ export type IntegrationCatalogRecipeWhatsAppChallengeBeginResponse = IntegrationCatalogRecipeWhatsAppChallengeBeginResponses[keyof IntegrationCatalogRecipeWhatsAppChallengeBeginResponses];
16268
+ export type IntegrationCatalogRecipeWhatsAppChallengeGetData = {
16269
+ body?: never;
16270
+ path: {
16271
+ accountId: WhatsAppBusinessAccountId;
16272
+ id: string;
16273
+ };
16274
+ query?: never;
16275
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/{accountId}/challenges/{id}";
16276
+ };
16277
+ export type IntegrationCatalogRecipeWhatsAppChallengeGetErrors = {
16278
+ /**
16279
+ * MalformedRequestError
16280
+ */
16281
+ 400: MalformedRequestError;
16282
+ /**
16283
+ * UnauthorizedError
16284
+ */
16285
+ 401: UnauthorizedError;
16286
+ /**
16287
+ * ForbiddenError | FlagDisabledError
16288
+ */
16289
+ 403: ForbiddenError | FlagDisabledError;
16290
+ /**
16291
+ * ResourceNotFoundError
16292
+ */
16293
+ 404: ResourceNotFoundError;
16294
+ /**
16295
+ * ConflictError
16296
+ */
16297
+ 409: ConflictError;
16298
+ /**
16299
+ * ValidationError
16300
+ */
16301
+ 422: ValidationError;
16302
+ /**
16303
+ * InternalError
16304
+ */
16305
+ 500: InternalError;
16306
+ /**
16307
+ * GatewayTimeoutError
16308
+ */
16309
+ 504: GatewayTimeoutError;
16310
+ };
16311
+ export type IntegrationCatalogRecipeWhatsAppChallengeGetError = IntegrationCatalogRecipeWhatsAppChallengeGetErrors[keyof IntegrationCatalogRecipeWhatsAppChallengeGetErrors];
16312
+ export type IntegrationCatalogRecipeWhatsAppChallengeGetResponses = {
16313
+ /**
16314
+ * RecipeChallengeStatus
16315
+ */
16316
+ 200: RecipeChallengeStatus;
16317
+ };
16318
+ export type IntegrationCatalogRecipeWhatsAppChallengeGetResponse = IntegrationCatalogRecipeWhatsAppChallengeGetResponses[keyof IntegrationCatalogRecipeWhatsAppChallengeGetResponses];
16319
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmData = {
16320
+ body: {
16321
+ observedPhone: string;
16322
+ };
16323
+ path: {
16324
+ accountId: WhatsAppBusinessAccountId;
16325
+ id: string;
16326
+ };
16327
+ query?: never;
16328
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/{accountId}/challenges/{id}/confirm";
16329
+ };
16330
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmErrors = {
16331
+ /**
16332
+ * MalformedRequestError
16333
+ */
16334
+ 400: MalformedRequestError;
16335
+ /**
16336
+ * UnauthorizedError
16337
+ */
16338
+ 401: UnauthorizedError;
16339
+ /**
16340
+ * ForbiddenError | FlagDisabledError
16341
+ */
16342
+ 403: ForbiddenError | FlagDisabledError;
16343
+ /**
16344
+ * ResourceNotFoundError
16345
+ */
16346
+ 404: ResourceNotFoundError;
16347
+ /**
16348
+ * ConflictError
16349
+ */
16350
+ 409: ConflictError;
16351
+ /**
16352
+ * ValidationError
16353
+ */
16354
+ 422: ValidationError;
16355
+ /**
16356
+ * InternalError
16357
+ */
16358
+ 500: InternalError;
16359
+ /**
16360
+ * GatewayTimeoutError
16361
+ */
16362
+ 504: GatewayTimeoutError;
16363
+ };
16364
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmError = IntegrationCatalogRecipeWhatsAppChallengeConfirmErrors[keyof IntegrationCatalogRecipeWhatsAppChallengeConfirmErrors];
16365
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmResponses = {
16366
+ /**
16367
+ * RecipeChallengeStatus
16368
+ */
16369
+ 200: RecipeChallengeStatus;
16370
+ };
16371
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmResponse = IntegrationCatalogRecipeWhatsAppChallengeConfirmResponses[keyof IntegrationCatalogRecipeWhatsAppChallengeConfirmResponses];
16372
+ export type IntegrationCatalogRecipeTestData = {
16373
+ body: {
16374
+ templateId: TemplateId;
16375
+ publicationId: TemplatePublicationId;
16376
+ fixture?: string | undefined;
16377
+ templateData?: JsonObjectWritable | undefined;
16378
+ channel: "email";
16379
+ requestId: string;
16380
+ mailboxEndpointId: MailboxEndpointId;
16381
+ topicId?: TopicId | undefined;
16382
+ senderId?: EmailSenderId | undefined;
16383
+ } | {
16384
+ templateId: TemplateId;
16385
+ publicationId: TemplatePublicationId;
16386
+ fixture?: string | undefined;
16387
+ templateData?: JsonObjectWritable | undefined;
16388
+ channel: "whatsapp";
16389
+ eventBindings?: {
16390
+ [key: string]: string | undefined;
16391
+ } | undefined;
16392
+ requestId: string;
16393
+ mailboxEndpointId: MailboxEndpointId;
16394
+ topicId?: TopicId | undefined;
16395
+ businessAccountId: WhatsAppBusinessAccountId;
16396
+ registrationId: TemplateRegistrationId;
16397
+ challengeId: string;
16398
+ };
16399
+ path?: never;
16400
+ query?: never;
16401
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test";
16402
+ };
16403
+ export type IntegrationCatalogRecipeTestErrors = {
16404
+ /**
16405
+ * MalformedRequestError
16406
+ */
16407
+ 400: MalformedRequestError;
16408
+ /**
16409
+ * UnauthorizedError
16410
+ */
16411
+ 401: UnauthorizedError;
16412
+ /**
16413
+ * PaymentRequiredError
16414
+ */
16415
+ 402: PaymentRequiredError;
16416
+ /**
16417
+ * ForbiddenError | FlagDisabledError | OnboardingReviewRequiredError
16418
+ */
16419
+ 403: ForbiddenError | FlagDisabledError | OnboardingReviewRequiredError;
16420
+ /**
16421
+ * ResourceNotFoundError
16422
+ */
16423
+ 404: ResourceNotFoundError;
16424
+ /**
16425
+ * ConflictError
16426
+ */
16427
+ 409: ConflictError;
16428
+ /**
16429
+ * ValidationError | FromAddressRequiredError | BrandAddressRequiredError | CampaignFooterRequiredError
16430
+ */
16431
+ 422: ValidationError | FromAddressRequiredError | BrandAddressRequiredError | CampaignFooterRequiredError;
16432
+ /**
16433
+ * RateLimitedError
16434
+ */
16435
+ 429: RateLimitedError;
16436
+ /**
16437
+ * InternalError
16438
+ */
16439
+ 500: InternalError;
16440
+ /**
16441
+ * BillingProviderError | ExternalServiceError
16442
+ */
16443
+ 502: BillingProviderError | ExternalServiceError;
16444
+ /**
16445
+ * SenderNotReadyError | DeliveryUnavailableError
16446
+ */
16447
+ 503: SenderNotReadyError | DeliveryUnavailableError;
16448
+ /**
16449
+ * GatewayTimeoutError
16450
+ */
16451
+ 504: GatewayTimeoutError;
16452
+ };
16453
+ export type IntegrationCatalogRecipeTestError = IntegrationCatalogRecipeTestErrors[keyof IntegrationCatalogRecipeTestErrors];
16454
+ export type IntegrationCatalogRecipeTestResponses = {
16455
+ /**
16456
+ * RecipeTestResponse
16457
+ */
16458
+ 200: RecipeTestResponse;
16459
+ };
16460
+ export type IntegrationCatalogRecipeTestResponse = IntegrationCatalogRecipeTestResponses[keyof IntegrationCatalogRecipeTestResponses];
16461
+ export type IntegrationCatalogRecipeTestReceiptData = {
16462
+ body?: never;
16463
+ path: {
16464
+ requestId: string;
16465
+ };
16466
+ query?: never;
16467
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/{requestId}";
16468
+ };
16469
+ export type IntegrationCatalogRecipeTestReceiptErrors = {
16470
+ /**
16471
+ * MalformedRequestError
16472
+ */
16473
+ 400: MalformedRequestError;
16474
+ /**
16475
+ * UnauthorizedError
16476
+ */
16477
+ 401: UnauthorizedError;
16478
+ /**
16479
+ * ForbiddenError
16480
+ */
16481
+ 403: ForbiddenError;
16482
+ /**
16483
+ * ResourceNotFoundError
16484
+ */
16485
+ 404: ResourceNotFoundError;
16486
+ /**
16487
+ * ValidationError
16488
+ */
16489
+ 422: ValidationError;
16490
+ /**
16491
+ * InternalError
16492
+ */
16493
+ 500: InternalError;
16494
+ /**
16495
+ * GatewayTimeoutError
16496
+ */
16497
+ 504: GatewayTimeoutError;
16498
+ };
16499
+ export type IntegrationCatalogRecipeTestReceiptError = IntegrationCatalogRecipeTestReceiptErrors[keyof IntegrationCatalogRecipeTestReceiptErrors];
16500
+ export type IntegrationCatalogRecipeTestReceiptResponses = {
16501
+ /**
16502
+ * Success
16503
+ */
16504
+ 200: RecipeTestReceipt | null;
16505
+ };
16506
+ export type IntegrationCatalogRecipeTestReceiptResponse = IntegrationCatalogRecipeTestReceiptResponses[keyof IntegrationCatalogRecipeTestReceiptResponses];
16507
+ export type IntegrationCatalogRecipeCatalogData = {
16508
+ body?: never;
16509
+ path?: never;
16510
+ query?: never;
16511
+ url: "/v1/integrations/catalog/recipes";
16512
+ };
16513
+ export type IntegrationCatalogRecipeCatalogErrors = {
16514
+ /**
16515
+ * MalformedRequestError
16516
+ */
16517
+ 400: MalformedRequestError;
16518
+ /**
16519
+ * UnauthorizedError
16520
+ */
16521
+ 401: UnauthorizedError;
16522
+ /**
16523
+ * ForbiddenError
16524
+ */
16525
+ 403: ForbiddenError;
16526
+ /**
16527
+ * ValidationError
16528
+ */
16529
+ 422: ValidationError;
16530
+ /**
16531
+ * InternalError
16532
+ */
16533
+ 500: InternalError;
16534
+ /**
16535
+ * GatewayTimeoutError
16536
+ */
16537
+ 504: GatewayTimeoutError;
16538
+ };
16539
+ export type IntegrationCatalogRecipeCatalogError = IntegrationCatalogRecipeCatalogErrors[keyof IntegrationCatalogRecipeCatalogErrors];
16540
+ export type IntegrationCatalogRecipeCatalogResponses = {
16541
+ /**
16542
+ * RecipeCatalogResponse
16543
+ */
16544
+ 200: RecipeCatalogResponse;
16545
+ };
16546
+ export type IntegrationCatalogRecipeCatalogResponse = IntegrationCatalogRecipeCatalogResponses[keyof IntegrationCatalogRecipeCatalogResponses];
16547
+ export type IntegrationCatalogRecipeReadinessData = {
16548
+ body?: never;
16549
+ path?: never;
16550
+ query: {
16551
+ channel: "email" | "whatsapp";
16552
+ integrationAccountId?: IntegrationAccountId | undefined;
16553
+ publicationId?: TemplatePublicationId | undefined;
16554
+ senderId?: EmailSenderId | undefined;
16555
+ whatsappAccountId?: WhatsAppBusinessAccountId | undefined;
16556
+ registrationId?: TemplateRegistrationId | undefined;
16557
+ mailboxEndpointId?: MailboxEndpointId | undefined;
16558
+ };
16559
+ url: "/v1/integrations/catalog/recipes/post-delivery-check-in/readiness";
16560
+ };
16561
+ export type IntegrationCatalogRecipeReadinessErrors = {
16562
+ /**
16563
+ * MalformedRequestError
16564
+ */
16565
+ 400: MalformedRequestError;
16566
+ /**
16567
+ * UnauthorizedError
16568
+ */
16569
+ 401: UnauthorizedError;
16570
+ /**
16571
+ * ForbiddenError
16572
+ */
16573
+ 403: ForbiddenError;
16574
+ /**
16575
+ * ValidationError
16576
+ */
16577
+ 422: ValidationError;
16578
+ /**
16579
+ * InternalError
16580
+ */
16581
+ 500: InternalError;
16582
+ /**
16583
+ * BillingProviderError
16584
+ */
16585
+ 502: BillingProviderError;
16586
+ /**
16587
+ * GatewayTimeoutError
16588
+ */
16589
+ 504: GatewayTimeoutError;
16590
+ };
16591
+ export type IntegrationCatalogRecipeReadinessError = IntegrationCatalogRecipeReadinessErrors[keyof IntegrationCatalogRecipeReadinessErrors];
16592
+ export type IntegrationCatalogRecipeReadinessResponses = {
16593
+ /**
16594
+ * RecipeReadinessResponse
16595
+ */
16596
+ 200: RecipeReadinessResponse;
16597
+ };
16598
+ export type IntegrationCatalogRecipeReadinessResponse = IntegrationCatalogRecipeReadinessResponses[keyof IntegrationCatalogRecipeReadinessResponses];
16599
+ export type IntegrationCatalogPrepareData = {
16600
+ body: {
16601
+ provider: IntegrationKey;
16602
+ input?: JsonObjectWritable | undefined;
16603
+ };
16604
+ path?: never;
16605
+ query?: never;
16606
+ url: "/v1/integrations/catalog/prepare";
16607
+ };
16608
+ export type IntegrationCatalogPrepareErrors = {
16609
+ /**
16610
+ * MalformedRequestError
16611
+ */
16612
+ 400: MalformedRequestError;
16613
+ /**
16614
+ * UnauthorizedError
16615
+ */
16616
+ 401: UnauthorizedError;
16617
+ /**
16618
+ * ForbiddenError
16619
+ */
16620
+ 403: ForbiddenError;
16621
+ /**
16622
+ * ValidationError
16623
+ */
16624
+ 422: ValidationError;
16625
+ /**
16626
+ * InternalError
16627
+ */
16628
+ 500: InternalError;
16629
+ /**
16630
+ * GatewayTimeoutError
16631
+ */
16632
+ 504: GatewayTimeoutError;
16633
+ };
16634
+ export type IntegrationCatalogPrepareError = IntegrationCatalogPrepareErrors[keyof IntegrationCatalogPrepareErrors];
16635
+ export type IntegrationCatalogPrepareResponses = {
16636
+ /**
16637
+ * Success
16638
+ */
16639
+ 200: {
16640
+ connectSpec: {
16641
+ provider: IntegrationKey;
16642
+ auth: "discover" | "oauth" | "none" | "apiKey";
16643
+ inputs: {
16644
+ [key: string]: {
16645
+ label: string;
16646
+ description: string;
16647
+ pattern: string;
16648
+ maxLength: number;
16649
+ example: string;
16650
+ default?: string | undefined;
16651
+ kind?: "hostnameLabel" | "httpsUrl" | undefined;
16652
+ };
16653
+ };
16654
+ credentials: {
16655
+ [key: string]: {
16656
+ label: string;
16657
+ };
16658
+ };
16659
+ };
16660
+ hosts: Array<string>;
16661
+ connectState: "ready" | "checkedAtConnect" | "unavailable";
16662
+ reason: string | null;
16663
+ };
16664
+ };
16665
+ export type IntegrationCatalogPrepareResponse = IntegrationCatalogPrepareResponses[keyof IntegrationCatalogPrepareResponses];
16666
+ export type IntegrationCatalogSearchData = {
16667
+ body?: never;
16668
+ path?: never;
16669
+ query?: {
16670
+ key?: IntegrationKey | undefined;
16671
+ query?: string | undefined;
16672
+ category?: "commerce" | "payments" | "shipping" | "calendar" | "crm" | "helpdesk" | "knowledge" | "forms" | "accounting" | "reviews" | "productivity" | "dns" | "channel" | "other" | undefined;
16673
+ offset?: number | undefined;
16674
+ limit?: number | undefined;
16675
+ };
16676
+ url: "/v1/integrations/catalog/search";
16677
+ };
16678
+ export type IntegrationCatalogSearchErrors = {
16679
+ /**
16680
+ * MalformedRequestError
16681
+ */
16682
+ 400: MalformedRequestError;
16683
+ /**
16684
+ * UnauthorizedError
16685
+ */
16686
+ 401: UnauthorizedError;
16687
+ /**
16688
+ * ForbiddenError
16689
+ */
16690
+ 403: ForbiddenError;
16691
+ /**
16692
+ * ValidationError
16693
+ */
16694
+ 422: ValidationError;
16695
+ /**
16696
+ * InternalError
16697
+ */
16698
+ 500: InternalError;
16699
+ /**
16700
+ * GatewayTimeoutError
16701
+ */
16702
+ 504: GatewayTimeoutError;
16703
+ };
16704
+ export type IntegrationCatalogSearchError = IntegrationCatalogSearchErrors[keyof IntegrationCatalogSearchErrors];
16705
+ export type IntegrationCatalogSearchResponses = {
16706
+ /**
16707
+ * IntegrationCatalogSearchPage
16708
+ */
16709
+ 200: IntegrationCatalogSearchPage;
16710
+ };
16711
+ export type IntegrationCatalogSearchResponse = IntegrationCatalogSearchResponses[keyof IntegrationCatalogSearchResponses];
16712
+ export type IntegrationCatalogListData = {
16713
+ body?: never;
16714
+ path?: never;
16715
+ query?: never;
16716
+ url: "/v1/integrations/catalog";
16717
+ };
16718
+ export type IntegrationCatalogListErrors = {
16719
+ /**
16720
+ * MalformedRequestError
16721
+ */
16722
+ 400: MalformedRequestError;
16723
+ /**
16724
+ * UnauthorizedError
16725
+ */
16726
+ 401: UnauthorizedError;
16727
+ /**
16728
+ * ForbiddenError
16729
+ */
16730
+ 403: ForbiddenError;
16731
+ /**
16732
+ * ValidationError
16733
+ */
16734
+ 422: ValidationError;
16735
+ /**
16736
+ * InternalError
16737
+ */
16738
+ 500: InternalError;
16739
+ /**
16740
+ * GatewayTimeoutError
16741
+ */
16742
+ 504: GatewayTimeoutError;
16743
+ };
16744
+ export type IntegrationCatalogListError = IntegrationCatalogListErrors[keyof IntegrationCatalogListErrors];
16745
+ export type IntegrationCatalogListResponses = {
16746
+ /**
16747
+ * IntegrationCatalogResponse
16748
+ */
16749
+ 200: IntegrationCatalogResponse;
16750
+ };
16751
+ export type IntegrationCatalogListResponse = IntegrationCatalogListResponses[keyof IntegrationCatalogListResponses];
16752
+ export type IntegrationsListData = {
16753
+ body?: never;
16754
+ path?: never;
16755
+ query?: {
16756
+ limit?: number | null | undefined;
16757
+ cursor?: string | undefined;
15718
16758
  };
15719
16759
  url: "/v1/integrations";
15720
16760
  };
@@ -23801,7 +24841,7 @@ export type WebhooksCreateData = {
23801
24841
  body: {
23802
24842
  name: string;
23803
24843
  url: string;
23804
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
24844
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
23805
24845
  channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
23806
24846
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
23807
24847
  namespaceId?: NamespaceId | null | undefined;
@@ -23967,7 +25007,7 @@ export type WebhooksUpdateData = {
23967
25007
  body: {
23968
25008
  name?: string | null | undefined;
23969
25009
  url?: string | null | undefined;
23970
- eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
25010
+ eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
23971
25011
  channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
23972
25012
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
23973
25013
  namespaceId?: NamespaceId | null | undefined;
@@ -25449,16 +26489,245 @@ export type FeedbackSendResponses = {
25449
26489
  /**
25450
26490
  * FeedbackReceipt
25451
26491
  */
25452
- 201: FeedbackReceipt;
26492
+ 201: FeedbackReceipt;
26493
+ };
26494
+ export type FeedbackSendResponse = FeedbackSendResponses[keyof FeedbackSendResponses];
26495
+ export type WhoamiGetData = {
26496
+ body?: never;
26497
+ path?: never;
26498
+ query?: never;
26499
+ url: "/v1/whoami";
26500
+ };
26501
+ export type WhoamiGetErrors = {
26502
+ /**
26503
+ * MalformedRequestError
26504
+ */
26505
+ 400: MalformedRequestError;
26506
+ /**
26507
+ * UnauthorizedError
26508
+ */
26509
+ 401: UnauthorizedError;
26510
+ /**
26511
+ * ForbiddenError
26512
+ */
26513
+ 403: ForbiddenError;
26514
+ /**
26515
+ * ValidationError
26516
+ */
26517
+ 422: ValidationError;
26518
+ /**
26519
+ * InternalError
26520
+ */
26521
+ 500: InternalError;
26522
+ /**
26523
+ * GatewayTimeoutError
26524
+ */
26525
+ 504: GatewayTimeoutError;
26526
+ };
26527
+ export type WhoamiGetError = WhoamiGetErrors[keyof WhoamiGetErrors];
26528
+ export type WhoamiGetResponses = {
26529
+ /**
26530
+ * Whoami
26531
+ */
26532
+ 200: Whoami;
26533
+ };
26534
+ export type WhoamiGetResponse = WhoamiGetResponses[keyof WhoamiGetResponses];
26535
+ export type MailboxesCreateImportUploadData = {
26536
+ body: {
26537
+ importId?: string | null | undefined;
26538
+ filename: string;
26539
+ sizeBytes: number;
26540
+ format: "gmail" | "apple" | "mbox";
26541
+ mailboxPath?: string | null | undefined;
26542
+ };
26543
+ path: {
26544
+ id: MailboxId;
26545
+ };
26546
+ query?: never;
26547
+ url: "/v1/mailboxes/{id}/imports/uploads";
26548
+ };
26549
+ export type MailboxesCreateImportUploadErrors = {
26550
+ /**
26551
+ * MalformedRequestError
26552
+ */
26553
+ 400: MalformedRequestError;
26554
+ /**
26555
+ * UnauthorizedError
26556
+ */
26557
+ 401: UnauthorizedError;
26558
+ /**
26559
+ * PaymentRequiredError
26560
+ */
26561
+ 402: PaymentRequiredError;
26562
+ /**
26563
+ * ForbiddenError
26564
+ */
26565
+ 403: ForbiddenError;
26566
+ /**
26567
+ * ResourceNotFoundError
26568
+ */
26569
+ 404: ResourceNotFoundError;
26570
+ /**
26571
+ * ConflictError
26572
+ */
26573
+ 409: ConflictError;
26574
+ /**
26575
+ * ValidationError
26576
+ */
26577
+ 422: ValidationError;
26578
+ /**
26579
+ * InternalError
26580
+ */
26581
+ 500: InternalError;
26582
+ /**
26583
+ * BillingProviderError
26584
+ */
26585
+ 502: BillingProviderError;
26586
+ /**
26587
+ * GatewayTimeoutError
26588
+ */
26589
+ 504: GatewayTimeoutError;
26590
+ };
26591
+ export type MailboxesCreateImportUploadError = MailboxesCreateImportUploadErrors[keyof MailboxesCreateImportUploadErrors];
26592
+ export type MailboxesCreateImportUploadResponses = {
26593
+ /**
26594
+ * Success
26595
+ */
26596
+ 200: {
26597
+ id: string;
26598
+ archiveId: string;
26599
+ partSizeBytes: number;
26600
+ };
26601
+ };
26602
+ export type MailboxesCreateImportUploadResponse = MailboxesCreateImportUploadResponses[keyof MailboxesCreateImportUploadResponses];
26603
+ export type MailboxesSignImportUploadPartsData = {
26604
+ body: {
26605
+ partNumbers: Array<number>;
26606
+ };
26607
+ path: {
26608
+ id: MailboxId;
26609
+ importId: string;
26610
+ archiveId: string;
26611
+ };
26612
+ query?: never;
26613
+ url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}/parts";
26614
+ };
26615
+ export type MailboxesSignImportUploadPartsErrors = {
26616
+ /**
26617
+ * MalformedRequestError
26618
+ */
26619
+ 400: MalformedRequestError;
26620
+ /**
26621
+ * UnauthorizedError
26622
+ */
26623
+ 401: UnauthorizedError;
26624
+ /**
26625
+ * ForbiddenError
26626
+ */
26627
+ 403: ForbiddenError;
26628
+ /**
26629
+ * ResourceNotFoundError
26630
+ */
26631
+ 404: ResourceNotFoundError;
26632
+ /**
26633
+ * ConflictError
26634
+ */
26635
+ 409: ConflictError;
26636
+ /**
26637
+ * ValidationError
26638
+ */
26639
+ 422: ValidationError;
26640
+ /**
26641
+ * InternalError
26642
+ */
26643
+ 500: InternalError;
26644
+ /**
26645
+ * GatewayTimeoutError
26646
+ */
26647
+ 504: GatewayTimeoutError;
26648
+ };
26649
+ export type MailboxesSignImportUploadPartsError = MailboxesSignImportUploadPartsErrors[keyof MailboxesSignImportUploadPartsErrors];
26650
+ export type MailboxesSignImportUploadPartsResponses = {
26651
+ /**
26652
+ * Success
26653
+ */
26654
+ 200: {
26655
+ parts: Array<{
26656
+ partNumber: number;
26657
+ sizeBytes: number;
26658
+ uploadUrl: string;
26659
+ }>;
26660
+ };
26661
+ };
26662
+ export type MailboxesSignImportUploadPartsResponse = MailboxesSignImportUploadPartsResponses[keyof MailboxesSignImportUploadPartsResponses];
26663
+ export type MailboxesCompleteImportUploadData = {
26664
+ body: {
26665
+ parts: Array<{
26666
+ partNumber: number;
26667
+ etag: string;
26668
+ }>;
26669
+ };
26670
+ path: {
26671
+ id: MailboxId;
26672
+ importId: string;
26673
+ archiveId: string;
26674
+ };
26675
+ query?: never;
26676
+ url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}/complete";
26677
+ };
26678
+ export type MailboxesCompleteImportUploadErrors = {
26679
+ /**
26680
+ * MalformedRequestError
26681
+ */
26682
+ 400: MalformedRequestError;
26683
+ /**
26684
+ * UnauthorizedError
26685
+ */
26686
+ 401: UnauthorizedError;
26687
+ /**
26688
+ * ForbiddenError
26689
+ */
26690
+ 403: ForbiddenError;
26691
+ /**
26692
+ * ResourceNotFoundError
26693
+ */
26694
+ 404: ResourceNotFoundError;
26695
+ /**
26696
+ * ConflictError
26697
+ */
26698
+ 409: ConflictError;
26699
+ /**
26700
+ * ValidationError
26701
+ */
26702
+ 422: ValidationError;
26703
+ /**
26704
+ * InternalError
26705
+ */
26706
+ 500: InternalError;
26707
+ /**
26708
+ * GatewayTimeoutError
26709
+ */
26710
+ 504: GatewayTimeoutError;
26711
+ };
26712
+ export type MailboxesCompleteImportUploadError = MailboxesCompleteImportUploadErrors[keyof MailboxesCompleteImportUploadErrors];
26713
+ export type MailboxesCompleteImportUploadResponses = {
26714
+ /**
26715
+ * SuccessResponse
26716
+ */
26717
+ 200: SuccessResponse;
25453
26718
  };
25454
- export type FeedbackSendResponse = FeedbackSendResponses[keyof FeedbackSendResponses];
25455
- export type WhoamiGetData = {
26719
+ export type MailboxesCompleteImportUploadResponse = MailboxesCompleteImportUploadResponses[keyof MailboxesCompleteImportUploadResponses];
26720
+ export type MailboxesDiscardImportUploadData = {
25456
26721
  body?: never;
25457
- path?: never;
26722
+ path: {
26723
+ id: MailboxId;
26724
+ importId: string;
26725
+ archiveId: string;
26726
+ };
25458
26727
  query?: never;
25459
- url: "/v1/whoami";
26728
+ url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}";
25460
26729
  };
25461
- export type WhoamiGetErrors = {
26730
+ export type MailboxesDiscardImportUploadErrors = {
25462
26731
  /**
25463
26732
  * MalformedRequestError
25464
26733
  */
@@ -25471,6 +26740,14 @@ export type WhoamiGetErrors = {
25471
26740
  * ForbiddenError
25472
26741
  */
25473
26742
  403: ForbiddenError;
26743
+ /**
26744
+ * ResourceNotFoundError
26745
+ */
26746
+ 404: ResourceNotFoundError;
26747
+ /**
26748
+ * ConflictError
26749
+ */
26750
+ 409: ConflictError;
25474
26751
  /**
25475
26752
  * ValidationError
25476
26753
  */
@@ -25484,29 +26761,24 @@ export type WhoamiGetErrors = {
25484
26761
  */
25485
26762
  504: GatewayTimeoutError;
25486
26763
  };
25487
- export type WhoamiGetError = WhoamiGetErrors[keyof WhoamiGetErrors];
25488
- export type WhoamiGetResponses = {
26764
+ export type MailboxesDiscardImportUploadError = MailboxesDiscardImportUploadErrors[keyof MailboxesDiscardImportUploadErrors];
26765
+ export type MailboxesDiscardImportUploadResponses = {
25489
26766
  /**
25490
- * Whoami
26767
+ * SuccessResponse
25491
26768
  */
25492
- 200: Whoami;
26769
+ 200: SuccessResponse;
25493
26770
  };
25494
- export type WhoamiGetResponse = WhoamiGetResponses[keyof WhoamiGetResponses];
25495
- export type MailboxesCreateImportUploadData = {
25496
- body: {
25497
- importId?: string | null | undefined;
25498
- filename: string;
25499
- sizeBytes: number;
25500
- format: "gmail" | "apple" | "mbox";
25501
- mailboxPath?: string | null | undefined;
25502
- };
26771
+ export type MailboxesDiscardImportUploadResponse = MailboxesDiscardImportUploadResponses[keyof MailboxesDiscardImportUploadResponses];
26772
+ export type MailboxesDiscardImportData = {
26773
+ body?: never;
25503
26774
  path: {
25504
26775
  id: MailboxId;
26776
+ importId: string;
25505
26777
  };
25506
26778
  query?: never;
25507
- url: "/v1/mailboxes/{id}/imports/uploads";
26779
+ url: "/v1/mailboxes/{id}/imports/{importId}";
25508
26780
  };
25509
- export type MailboxesCreateImportUploadErrors = {
26781
+ export type MailboxesDiscardImportErrors = {
25510
26782
  /**
25511
26783
  * MalformedRequestError
25512
26784
  */
@@ -25540,27 +26812,24 @@ export type MailboxesCreateImportUploadErrors = {
25540
26812
  */
25541
26813
  504: GatewayTimeoutError;
25542
26814
  };
25543
- export type MailboxesCreateImportUploadError = MailboxesCreateImportUploadErrors[keyof MailboxesCreateImportUploadErrors];
25544
- export type MailboxesCreateImportUploadResponses = {
26815
+ export type MailboxesDiscardImportError = MailboxesDiscardImportErrors[keyof MailboxesDiscardImportErrors];
26816
+ export type MailboxesDiscardImportResponses = {
25545
26817
  /**
25546
- * Success
26818
+ * SuccessResponse
25547
26819
  */
25548
- 200: {
25549
- id: string;
25550
- uploadUrl: string;
25551
- };
26820
+ 200: SuccessResponse;
25552
26821
  };
25553
- export type MailboxesCreateImportUploadResponse = MailboxesCreateImportUploadResponses[keyof MailboxesCreateImportUploadResponses];
25554
- export type MailboxesStartImportData = {
26822
+ export type MailboxesDiscardImportResponse = MailboxesDiscardImportResponses[keyof MailboxesDiscardImportResponses];
26823
+ export type MailboxesGetImportData = {
25555
26824
  body?: never;
25556
26825
  path: {
25557
26826
  id: MailboxId;
25558
26827
  importId: string;
25559
26828
  };
25560
26829
  query?: never;
25561
- url: "/v1/mailboxes/{id}/imports/{importId}/start";
26830
+ url: "/v1/mailboxes/{id}/imports/{importId}";
25562
26831
  };
25563
- export type MailboxesStartImportErrors = {
26832
+ export type MailboxesGetImportErrors = {
25564
26833
  /**
25565
26834
  * MalformedRequestError
25566
26835
  */
@@ -25577,10 +26846,6 @@ export type MailboxesStartImportErrors = {
25577
26846
  * ResourceNotFoundError
25578
26847
  */
25579
26848
  404: ResourceNotFoundError;
25580
- /**
25581
- * ConflictError
25582
- */
25583
- 409: ConflictError;
25584
26849
  /**
25585
26850
  * ValidationError
25586
26851
  */
@@ -25594,24 +26859,24 @@ export type MailboxesStartImportErrors = {
25594
26859
  */
25595
26860
  504: GatewayTimeoutError;
25596
26861
  };
25597
- export type MailboxesStartImportError = MailboxesStartImportErrors[keyof MailboxesStartImportErrors];
25598
- export type MailboxesStartImportResponses = {
26862
+ export type MailboxesGetImportError = MailboxesGetImportErrors[keyof MailboxesGetImportErrors];
26863
+ export type MailboxesGetImportResponses = {
25599
26864
  /**
25600
26865
  * MailHistoryImportJob
25601
26866
  */
25602
26867
  200: MailHistoryImportJob;
25603
26868
  };
25604
- export type MailboxesStartImportResponse = MailboxesStartImportResponses[keyof MailboxesStartImportResponses];
25605
- export type MailboxesGetImportData = {
26869
+ export type MailboxesGetImportResponse = MailboxesGetImportResponses[keyof MailboxesGetImportResponses];
26870
+ export type MailboxesStartImportData = {
25606
26871
  body?: never;
25607
26872
  path: {
25608
26873
  id: MailboxId;
25609
26874
  importId: string;
25610
26875
  };
25611
26876
  query?: never;
25612
- url: "/v1/mailboxes/{id}/imports/{importId}";
26877
+ url: "/v1/mailboxes/{id}/imports/{importId}/start";
25613
26878
  };
25614
- export type MailboxesGetImportErrors = {
26879
+ export type MailboxesStartImportErrors = {
25615
26880
  /**
25616
26881
  * MalformedRequestError
25617
26882
  */
@@ -25628,6 +26893,10 @@ export type MailboxesGetImportErrors = {
25628
26893
  * ResourceNotFoundError
25629
26894
  */
25630
26895
  404: ResourceNotFoundError;
26896
+ /**
26897
+ * ConflictError
26898
+ */
26899
+ 409: ConflictError;
25631
26900
  /**
25632
26901
  * ValidationError
25633
26902
  */
@@ -25641,14 +26910,14 @@ export type MailboxesGetImportErrors = {
25641
26910
  */
25642
26911
  504: GatewayTimeoutError;
25643
26912
  };
25644
- export type MailboxesGetImportError = MailboxesGetImportErrors[keyof MailboxesGetImportErrors];
25645
- export type MailboxesGetImportResponses = {
26913
+ export type MailboxesStartImportError = MailboxesStartImportErrors[keyof MailboxesStartImportErrors];
26914
+ export type MailboxesStartImportResponses = {
25646
26915
  /**
25647
26916
  * MailHistoryImportJob
25648
26917
  */
25649
26918
  200: MailHistoryImportJob;
25650
26919
  };
25651
- export type MailboxesGetImportResponse = MailboxesGetImportResponses[keyof MailboxesGetImportResponses];
26920
+ export type MailboxesStartImportResponse = MailboxesStartImportResponses[keyof MailboxesStartImportResponses];
25652
26921
  export type MailboxesListImportsData = {
25653
26922
  body?: never;
25654
26923
  path: {
@@ -26919,6 +28188,57 @@ export type MailboxesListThreadsResponses = {
26919
28188
  200: MailboxThreadPage;
26920
28189
  };
26921
28190
  export type MailboxesListThreadsResponse = MailboxesListThreadsResponses[keyof MailboxesListThreadsResponses];
28191
+ export type MailboxesDeleteThreadData = {
28192
+ body?: never;
28193
+ path: {
28194
+ id: MailboxId;
28195
+ threadId: MailboxThreadId;
28196
+ };
28197
+ query?: never;
28198
+ url: "/v1/mailboxes/{id}/threads/{threadId}";
28199
+ };
28200
+ export type MailboxesDeleteThreadErrors = {
28201
+ /**
28202
+ * MalformedRequestError
28203
+ */
28204
+ 400: MalformedRequestError;
28205
+ /**
28206
+ * UnauthorizedError
28207
+ */
28208
+ 401: UnauthorizedError;
28209
+ /**
28210
+ * ForbiddenError
28211
+ */
28212
+ 403: ForbiddenError;
28213
+ /**
28214
+ * ResourceNotFoundError
28215
+ */
28216
+ 404: ResourceNotFoundError;
28217
+ /**
28218
+ * ConflictError
28219
+ */
28220
+ 409: ConflictError;
28221
+ /**
28222
+ * ValidationError
28223
+ */
28224
+ 422: ValidationError;
28225
+ /**
28226
+ * InternalError
28227
+ */
28228
+ 500: InternalError;
28229
+ /**
28230
+ * GatewayTimeoutError
28231
+ */
28232
+ 504: GatewayTimeoutError;
28233
+ };
28234
+ export type MailboxesDeleteThreadError = MailboxesDeleteThreadErrors[keyof MailboxesDeleteThreadErrors];
28235
+ export type MailboxesDeleteThreadResponses = {
28236
+ /**
28237
+ * SuccessResponse
28238
+ */
28239
+ 200: SuccessResponse;
28240
+ };
28241
+ export type MailboxesDeleteThreadResponse = MailboxesDeleteThreadResponses[keyof MailboxesDeleteThreadResponses];
26922
28242
  export type MailboxesGetThreadData = {
26923
28243
  body?: never;
26924
28244
  path: {
@@ -27023,6 +28343,98 @@ export type MailboxesUpdateThreadResponses = {
27023
28343
  200: MailboxThreadState;
27024
28344
  };
27025
28345
  export type MailboxesUpdateThreadResponse = MailboxesUpdateThreadResponses[keyof MailboxesUpdateThreadResponses];
28346
+ export type MailboxesEmptyTrashData = {
28347
+ body?: never;
28348
+ path: {
28349
+ id: MailboxId;
28350
+ };
28351
+ query?: never;
28352
+ url: "/v1/mailboxes/{id}/trash/empty";
28353
+ };
28354
+ export type MailboxesEmptyTrashErrors = {
28355
+ /**
28356
+ * MalformedRequestError
28357
+ */
28358
+ 400: MalformedRequestError;
28359
+ /**
28360
+ * UnauthorizedError
28361
+ */
28362
+ 401: UnauthorizedError;
28363
+ /**
28364
+ * ForbiddenError
28365
+ */
28366
+ 403: ForbiddenError;
28367
+ /**
28368
+ * ResourceNotFoundError
28369
+ */
28370
+ 404: ResourceNotFoundError;
28371
+ /**
28372
+ * ValidationError
28373
+ */
28374
+ 422: ValidationError;
28375
+ /**
28376
+ * InternalError
28377
+ */
28378
+ 500: InternalError;
28379
+ /**
28380
+ * GatewayTimeoutError
28381
+ */
28382
+ 504: GatewayTimeoutError;
28383
+ };
28384
+ export type MailboxesEmptyTrashError = MailboxesEmptyTrashErrors[keyof MailboxesEmptyTrashErrors];
28385
+ export type MailboxesEmptyTrashResponses = {
28386
+ /**
28387
+ * MailboxEmptyTrashAccepted
28388
+ */
28389
+ 202: MailboxEmptyTrashAccepted;
28390
+ };
28391
+ export type MailboxesEmptyTrashResponse = MailboxesEmptyTrashResponses[keyof MailboxesEmptyTrashResponses];
28392
+ export type MailboxesEmptySpamData = {
28393
+ body?: never;
28394
+ path: {
28395
+ id: MailboxId;
28396
+ };
28397
+ query?: never;
28398
+ url: "/v1/mailboxes/{id}/spam/empty";
28399
+ };
28400
+ export type MailboxesEmptySpamErrors = {
28401
+ /**
28402
+ * MalformedRequestError
28403
+ */
28404
+ 400: MalformedRequestError;
28405
+ /**
28406
+ * UnauthorizedError
28407
+ */
28408
+ 401: UnauthorizedError;
28409
+ /**
28410
+ * ForbiddenError
28411
+ */
28412
+ 403: ForbiddenError;
28413
+ /**
28414
+ * ResourceNotFoundError
28415
+ */
28416
+ 404: ResourceNotFoundError;
28417
+ /**
28418
+ * ValidationError
28419
+ */
28420
+ 422: ValidationError;
28421
+ /**
28422
+ * InternalError
28423
+ */
28424
+ 500: InternalError;
28425
+ /**
28426
+ * GatewayTimeoutError
28427
+ */
28428
+ 504: GatewayTimeoutError;
28429
+ };
28430
+ export type MailboxesEmptySpamError = MailboxesEmptySpamErrors[keyof MailboxesEmptySpamErrors];
28431
+ export type MailboxesEmptySpamResponses = {
28432
+ /**
28433
+ * MailboxEmptySpamAccepted
28434
+ */
28435
+ 202: MailboxEmptySpamAccepted;
28436
+ };
28437
+ export type MailboxesEmptySpamResponse = MailboxesEmptySpamResponses[keyof MailboxesEmptySpamResponses];
27026
28438
  export type MailboxesRemoveThreadLabelsData = {
27027
28439
  body: {
27028
28440
  labels: [MailboxLabelId, ...Array<MailboxLabelId>];
@@ -27930,7 +29342,7 @@ export type MailboxesForwardResponses = {
27930
29342
  202: MailboxPendingSendReceipt;
27931
29343
  };
27932
29344
  export type MailboxesForwardResponse = MailboxesForwardResponses[keyof MailboxesForwardResponses];
27933
- export type MailboxesListQuarantineData = {
29345
+ export type MailboxesListSpamHeldData = {
27934
29346
  body?: never;
27935
29347
  path: {
27936
29348
  id: MailboxId;
@@ -27941,56 +29353,9 @@ export type MailboxesListQuarantineData = {
27941
29353
  after?: string | undefined;
27942
29354
  before?: string | undefined;
27943
29355
  };
27944
- url: "/v1/mailboxes/{id}/quarantine";
27945
- };
27946
- export type MailboxesListQuarantineErrors = {
27947
- /**
27948
- * MalformedRequestError
27949
- */
27950
- 400: MalformedRequestError;
27951
- /**
27952
- * UnauthorizedError
27953
- */
27954
- 401: UnauthorizedError;
27955
- /**
27956
- * ForbiddenError
27957
- */
27958
- 403: ForbiddenError;
27959
- /**
27960
- * ResourceNotFoundError
27961
- */
27962
- 404: ResourceNotFoundError;
27963
- /**
27964
- * ValidationError
27965
- */
27966
- 422: ValidationError;
27967
- /**
27968
- * InternalError
27969
- */
27970
- 500: InternalError;
27971
- /**
27972
- * GatewayTimeoutError
27973
- */
27974
- 504: GatewayTimeoutError;
27975
- };
27976
- export type MailboxesListQuarantineError = MailboxesListQuarantineErrors[keyof MailboxesListQuarantineErrors];
27977
- export type MailboxesListQuarantineResponses = {
27978
- /**
27979
- * MailboxQuarantinePage
27980
- */
27981
- 200: MailboxQuarantinePage;
27982
- };
27983
- export type MailboxesListQuarantineResponse = MailboxesListQuarantineResponses[keyof MailboxesListQuarantineResponses];
27984
- export type MailboxesReleaseMessageData = {
27985
- body?: never;
27986
- path: {
27987
- id: MailboxId;
27988
- messageId: MessageId;
27989
- };
27990
- query?: never;
27991
- url: "/v1/mailboxes/{id}/messages/{messageId}/release";
29356
+ url: "/v1/mailboxes/{id}/spam/held";
27992
29357
  };
27993
- export type MailboxesReleaseMessageErrors = {
29358
+ export type MailboxesListSpamHeldErrors = {
27994
29359
  /**
27995
29360
  * MalformedRequestError
27996
29361
  */
@@ -28007,10 +29372,6 @@ export type MailboxesReleaseMessageErrors = {
28007
29372
  * ResourceNotFoundError
28008
29373
  */
28009
29374
  404: ResourceNotFoundError;
28010
- /**
28011
- * ConflictError
28012
- */
28013
- 409: ConflictError;
28014
29375
  /**
28015
29376
  * ValidationError
28016
29377
  */
@@ -28024,24 +29385,24 @@ export type MailboxesReleaseMessageErrors = {
28024
29385
  */
28025
29386
  504: GatewayTimeoutError;
28026
29387
  };
28027
- export type MailboxesReleaseMessageError = MailboxesReleaseMessageErrors[keyof MailboxesReleaseMessageErrors];
28028
- export type MailboxesReleaseMessageResponses = {
29388
+ export type MailboxesListSpamHeldError = MailboxesListSpamHeldErrors[keyof MailboxesListSpamHeldErrors];
29389
+ export type MailboxesListSpamHeldResponses = {
28029
29390
  /**
28030
- * MailboxQuarantinedMessage
29391
+ * MailboxSpamHeldPage
28031
29392
  */
28032
- 200: MailboxQuarantinedMessage;
29393
+ 200: MailboxSpamHeldPage;
28033
29394
  };
28034
- export type MailboxesReleaseMessageResponse = MailboxesReleaseMessageResponses[keyof MailboxesReleaseMessageResponses];
28035
- export type MailboxesDiscardMessageData = {
29395
+ export type MailboxesListSpamHeldResponse = MailboxesListSpamHeldResponses[keyof MailboxesListSpamHeldResponses];
29396
+ export type MailboxesDiscardSpamHeldData = {
28036
29397
  body?: never;
28037
29398
  path: {
28038
29399
  id: MailboxId;
28039
29400
  messageId: MessageId;
28040
29401
  };
28041
29402
  query?: never;
28042
- url: "/v1/mailboxes/{id}/messages/{messageId}/discard";
29403
+ url: "/v1/mailboxes/{id}/spam/held/{messageId}/discard";
28043
29404
  };
28044
- export type MailboxesDiscardMessageErrors = {
29405
+ export type MailboxesDiscardSpamHeldErrors = {
28045
29406
  /**
28046
29407
  * MalformedRequestError
28047
29408
  */
@@ -28058,10 +29419,6 @@ export type MailboxesDiscardMessageErrors = {
28058
29419
  * ResourceNotFoundError
28059
29420
  */
28060
29421
  404: ResourceNotFoundError;
28061
- /**
28062
- * ConflictError
28063
- */
28064
- 409: ConflictError;
28065
29422
  /**
28066
29423
  * ValidationError
28067
29424
  */
@@ -28079,14 +29436,14 @@ export type MailboxesDiscardMessageErrors = {
28079
29436
  */
28080
29437
  504: GatewayTimeoutError;
28081
29438
  };
28082
- export type MailboxesDiscardMessageError = MailboxesDiscardMessageErrors[keyof MailboxesDiscardMessageErrors];
28083
- export type MailboxesDiscardMessageResponses = {
29439
+ export type MailboxesDiscardSpamHeldError = MailboxesDiscardSpamHeldErrors[keyof MailboxesDiscardSpamHeldErrors];
29440
+ export type MailboxesDiscardSpamHeldResponses = {
28084
29441
  /**
28085
- * MailboxQuarantinedMessage
29442
+ * MailboxSpamHeldMessage
28086
29443
  */
28087
- 200: MailboxQuarantinedMessage;
29444
+ 200: MailboxSpamHeldMessage;
28088
29445
  };
28089
- export type MailboxesDiscardMessageResponse = MailboxesDiscardMessageResponses[keyof MailboxesDiscardMessageResponses];
29446
+ export type MailboxesDiscardSpamHeldResponse = MailboxesDiscardSpamHeldResponses[keyof MailboxesDiscardSpamHeldResponses];
28090
29447
  export type MailboxesScheduleDraftData = {
28091
29448
  body: {
28092
29449
  idempotencyKey: string;
@@ -31657,9 +33014,13 @@ export type TemplateRegistrationsListResponses = {
31657
33014
  };
31658
33015
  export type TemplateRegistrationsListResponse = TemplateRegistrationsListResponses[keyof TemplateRegistrationsListResponses];
31659
33016
  export type TemplateRegistrationsSubmitData = {
33017
+ /**
33018
+ * For an immediate submission, `businessAccountId` is the connected number to register on and defaults to the number for the template's scope.
33019
+ */
31660
33020
  body: {
31661
33021
  provider: "whatsapp";
31662
33022
  businessAccountId?: WhatsAppBusinessAccountId | undefined;
33023
+ approval?: TemplateRegistrationApproval | undefined;
31663
33024
  };
31664
33025
  path: {
31665
33026
  id: TemplateId;
@@ -31700,6 +33061,10 @@ export type TemplateRegistrationsSubmitErrors = {
31700
33061
  * WhatsAppChannelError
31701
33062
  */
31702
33063
  502: WhatsAppChannelError;
33064
+ /**
33065
+ * ServiceUnavailableError
33066
+ */
33067
+ 503: ServiceUnavailableError;
31703
33068
  /**
31704
33069
  * GatewayTimeoutError
31705
33070
  */