samva 0.46.0 → 0.47.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 (276) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +107 -9
  3. package/dist/agent/index.d.ts +56 -0
  4. package/dist/agent/index.js +52 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +74 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +123 -0
  10. package/dist/client/client/client.gen.d.ts +1 -1
  11. package/dist/client/client/index.d.ts +10 -10
  12. package/dist/client/client/types.gen.d.ts +4 -4
  13. package/dist/client/client/utils.gen.d.ts +2 -2
  14. package/dist/client/client.gen.d.ts +2 -2
  15. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  16. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  17. package/dist/client/core/types.gen.d.ts +2 -2
  18. package/dist/client/core/utils.gen.d.ts +1 -1
  19. package/dist/client/sdk.gen.d.ts +41 -161
  20. package/dist/client/sdk.gen.js +1302 -1598
  21. package/dist/client/types.gen.d.ts +377 -966
  22. package/dist/effect/accounts.d.ts +6 -6
  23. package/dist/effect/accounts.js +2 -1
  24. package/dist/effect/agents.d.ts +355 -23
  25. package/dist/effect/agents.js +6 -3
  26. package/dist/effect/analytics.d.ts +6 -6
  27. package/dist/effect/analytics.js +2 -1
  28. package/dist/effect/api-keys.d.ts +13 -13
  29. package/dist/effect/api-keys.js +2 -1
  30. package/dist/effect/approval-requests.d.ts +4 -4
  31. package/dist/effect/approval-requests.js +2 -1
  32. package/dist/effect/attachments.d.ts +4 -4
  33. package/dist/effect/attachments.js +2 -1
  34. package/dist/effect/brands.d.ts +7 -7
  35. package/dist/effect/brands.js +2 -1
  36. package/dist/effect/campaigns.d.ts +205 -205
  37. package/dist/effect/campaigns.js +2 -1
  38. package/dist/effect/categories.d.ts +3 -3
  39. package/dist/effect/client.d.ts +1 -1
  40. package/dist/effect/contact-groups.d.ts +18 -18
  41. package/dist/effect/contact-groups.js +2 -1
  42. package/dist/effect/contacts.d.ts +41 -33
  43. package/dist/effect/contacts.js +8 -3
  44. package/dist/effect/conversations.d.ts +17 -17
  45. package/dist/effect/conversations.js +2 -1
  46. package/dist/effect/custom-fields.d.ts +4 -4
  47. package/dist/effect/custom-fields.js +2 -1
  48. package/dist/effect/descriptors/accounts.d.ts +59 -0
  49. package/dist/effect/descriptors/accounts.js +57 -0
  50. package/dist/effect/descriptors/agents.d.ts +129 -0
  51. package/dist/effect/descriptors/agents.js +127 -0
  52. package/dist/effect/descriptors/analytics.d.ts +56 -0
  53. package/dist/effect/descriptors/analytics.js +48 -0
  54. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  55. package/dist/effect/descriptors/api-keys.js +80 -0
  56. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  57. package/dist/effect/descriptors/approval-requests.js +43 -0
  58. package/dist/effect/descriptors/attachments.d.ts +41 -0
  59. package/dist/effect/descriptors/attachments.js +43 -0
  60. package/dist/effect/descriptors/brands.d.ts +60 -0
  61. package/dist/effect/descriptors/brands.js +60 -0
  62. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  63. package/dist/effect/descriptors/campaigns.js +144 -0
  64. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  65. package/dist/effect/descriptors/contact-groups.js +97 -0
  66. package/dist/effect/descriptors/contacts.d.ts +246 -0
  67. package/dist/effect/descriptors/contacts.js +234 -0
  68. package/dist/effect/descriptors/conversations.d.ts +130 -0
  69. package/dist/effect/descriptors/conversations.js +130 -0
  70. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  71. package/dist/effect/descriptors/custom-fields.js +40 -0
  72. package/dist/effect/descriptors/email.d.ts +607 -0
  73. package/dist/effect/descriptors/email.js +561 -0
  74. package/dist/effect/descriptors/events.d.ts +20 -0
  75. package/dist/effect/descriptors/events.js +20 -0
  76. package/dist/effect/descriptors/feedback.d.ts +11 -0
  77. package/dist/effect/descriptors/feedback.js +11 -0
  78. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  79. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  80. package/dist/effect/descriptors/integrations.d.ts +70 -0
  81. package/dist/effect/descriptors/integrations.js +70 -0
  82. package/dist/effect/descriptors/journeys.d.ts +140 -0
  83. package/dist/effect/descriptors/journeys.js +140 -0
  84. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  85. package/dist/effect/descriptors/mailboxes.js +728 -0
  86. package/dist/effect/descriptors/media.d.ts +51 -0
  87. package/dist/effect/descriptors/media.js +53 -0
  88. package/dist/effect/descriptors/messages.d.ts +99 -0
  89. package/dist/effect/descriptors/messages.js +97 -0
  90. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  91. package/dist/effect/descriptors/namespaces.js +114 -0
  92. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  93. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  94. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  95. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  96. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  97. package/dist/effect/descriptors/newsletters.js +53 -0
  98. package/dist/effect/descriptors/operations.d.ts +31 -0
  99. package/dist/effect/descriptors/operations.js +33 -0
  100. package/dist/effect/descriptors/organizations.d.ts +111 -0
  101. package/dist/effect/descriptors/organizations.js +93 -0
  102. package/dist/effect/descriptors/policies.d.ts +32 -0
  103. package/dist/effect/descriptors/policies.js +36 -0
  104. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  105. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  106. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  107. package/dist/effect/descriptors/subscriptions.js +11 -0
  108. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  109. package/dist/effect/descriptors/template-registrations.js +36 -0
  110. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  111. package/dist/effect/descriptors/template-share-links.js +56 -0
  112. package/dist/effect/descriptors/templates.d.ts +365 -0
  113. package/dist/effect/descriptors/templates.js +355 -0
  114. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  115. package/dist/effect/descriptors/topic-forms.js +56 -0
  116. package/dist/effect/descriptors/topics.d.ts +89 -0
  117. package/dist/effect/descriptors/topics.js +87 -0
  118. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  119. package/dist/effect/descriptors/webhooks.js +110 -0
  120. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  121. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  122. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  123. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  124. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  125. package/dist/effect/descriptors/whats-app.js +108 -0
  126. package/dist/effect/descriptors/whoami.d.ts +11 -0
  127. package/dist/effect/descriptors/whoami.js +11 -0
  128. package/dist/effect/email.d.ts +78 -78
  129. package/dist/effect/email.js +2 -1
  130. package/dist/effect/errors.d.ts +2 -2
  131. package/dist/effect/events.d.ts +3 -3
  132. package/dist/effect/events.js +2 -1
  133. package/dist/effect/feedback.d.ts +2 -2
  134. package/dist/effect/feedback.js +2 -1
  135. package/dist/effect/generated/accounts.d.ts +19 -9
  136. package/dist/effect/generated/accounts.js +1 -0
  137. package/dist/effect/generated/agents.d.ts +2967 -690
  138. package/dist/effect/generated/agents.js +54 -13
  139. package/dist/effect/generated/analytics.d.ts +1 -1
  140. package/dist/effect/generated/api-keys.d.ts +1 -1
  141. package/dist/effect/generated/approval-requests.d.ts +13 -13
  142. package/dist/effect/generated/attachments.d.ts +1 -1
  143. package/dist/effect/generated/brands.d.ts +1 -1
  144. package/dist/effect/generated/campaigns.d.ts +230 -230
  145. package/dist/effect/generated/contact-events.d.ts +4 -4
  146. package/dist/effect/generated/contact-groups.d.ts +1 -1
  147. package/dist/effect/generated/contacts.d.ts +907 -49
  148. package/dist/effect/generated/contacts.js +62 -3
  149. package/dist/effect/generated/conversations.d.ts +1 -1
  150. package/dist/effect/generated/custom-fields.d.ts +1 -1
  151. package/dist/effect/generated/email.d.ts +1 -1
  152. package/dist/effect/generated/events.d.ts +12 -12
  153. package/dist/effect/generated/feedback.d.ts +1 -1
  154. package/dist/effect/generated/index.d.ts +84 -88
  155. package/dist/effect/generated/integrations-catalog.d.ts +3 -3
  156. package/dist/effect/generated/integrations.d.ts +15 -15
  157. package/dist/effect/generated/journeys.d.ts +336 -96
  158. package/dist/effect/generated/journeys.js +3 -1
  159. package/dist/effect/generated/mailboxes.d.ts +93 -95
  160. package/dist/effect/generated/mailboxes.js +21 -25
  161. package/dist/effect/generated/media.d.ts +1 -1
  162. package/dist/effect/generated/messages.d.ts +1 -1
  163. package/dist/effect/generated/namespaces.d.ts +1 -1
  164. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  165. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  166. package/dist/effect/generated/newsletters.d.ts +1 -1
  167. package/dist/effect/generated/operations.d.ts +1 -1
  168. package/dist/effect/generated/organizations.d.ts +1 -1
  169. package/dist/effect/generated/policies.d.ts +1 -1
  170. package/dist/effect/generated/scheduled-messages.d.ts +147 -147
  171. package/dist/effect/generated/shared.d.ts +408 -102
  172. package/dist/effect/generated/shared.js +80 -36
  173. package/dist/effect/generated/subscriptions.d.ts +1 -1
  174. package/dist/effect/generated/template-registrations.d.ts +1 -4
  175. package/dist/effect/generated/template-registrations.js +2 -6
  176. package/dist/effect/generated/template-share-links.d.ts +1 -1
  177. package/dist/effect/generated/templates.d.ts +1 -1
  178. package/dist/effect/generated/topic-forms.d.ts +1 -1
  179. package/dist/effect/generated/topics.d.ts +1 -1
  180. package/dist/effect/generated/webhooks.d.ts +1 -1
  181. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  182. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  183. package/dist/effect/generated/whats-app.d.ts +1 -1
  184. package/dist/effect/generated/whoami.d.ts +1 -1
  185. package/dist/effect/generated-metadata.d.ts +18 -84
  186. package/dist/effect/generated-metadata.js +362 -415
  187. package/dist/effect/index.d.ts +45 -47
  188. package/dist/effect/index.js +1 -3
  189. package/dist/effect/integrations-catalog.d.ts +3 -3
  190. package/dist/effect/integrations-catalog.js +2 -1
  191. package/dist/effect/integrations.d.ts +11 -11
  192. package/dist/effect/integrations.js +2 -1
  193. package/dist/effect/internal/client.d.ts +3 -3
  194. package/dist/effect/internal/client.js +1 -1
  195. package/dist/effect/internal/email-sender.d.ts +4 -4
  196. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  197. package/dist/effect/internal/operation.d.ts +24 -5
  198. package/dist/effect/internal/operation.js +25 -22
  199. package/dist/effect/internal/send.d.ts +4 -4
  200. package/dist/effect/journeys.d.ts +46 -22
  201. package/dist/effect/journeys.js +2 -1
  202. package/dist/effect/mailboxes.d.ts +163 -163
  203. package/dist/effect/mailboxes.js +2 -1
  204. package/dist/effect/media.d.ts +5 -5
  205. package/dist/effect/media.js +2 -1
  206. package/dist/effect/messages.d.ts +17 -17
  207. package/dist/effect/messages.js +2 -1
  208. package/dist/effect/namespaces.d.ts +15 -15
  209. package/dist/effect/namespaces.js +2 -1
  210. package/dist/effect/newsletter-domains.d.ts +6 -6
  211. package/dist/effect/newsletter-domains.js +2 -1
  212. package/dist/effect/newsletter-issues.d.ts +11 -11
  213. package/dist/effect/newsletter-issues.js +2 -1
  214. package/dist/effect/newsletters.d.ts +5 -5
  215. package/dist/effect/newsletters.js +2 -1
  216. package/dist/effect/operations.d.ts +5 -5
  217. package/dist/effect/operations.js +2 -1
  218. package/dist/effect/organizations.d.ts +12 -12
  219. package/dist/effect/organizations.js +2 -1
  220. package/dist/effect/policies.d.ts +3 -3
  221. package/dist/effect/policies.js +2 -1
  222. package/dist/effect/scheduled-messages.d.ts +371 -371
  223. package/dist/effect/scheduled-messages.js +2 -1
  224. package/dist/effect/subscriptions.d.ts +1 -1
  225. package/dist/effect/subscriptions.js +2 -1
  226. package/dist/effect/template-registrations.d.ts +3 -3
  227. package/dist/effect/template-registrations.js +2 -1
  228. package/dist/effect/template-share-links.d.ts +5 -5
  229. package/dist/effect/template-share-links.js +2 -1
  230. package/dist/effect/templates.d.ts +46 -46
  231. package/dist/effect/templates.js +2 -1
  232. package/dist/effect/topic-forms.d.ts +5 -5
  233. package/dist/effect/topic-forms.js +2 -1
  234. package/dist/effect/topics.d.ts +13 -13
  235. package/dist/effect/topics.js +2 -1
  236. package/dist/effect/webhooks.d.ts +16 -16
  237. package/dist/effect/webhooks.js +2 -1
  238. package/dist/effect/whatsapp-flows.d.ts +10 -10
  239. package/dist/effect/whatsapp-flows.js +2 -1
  240. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  241. package/dist/effect/whatsapp-setup-links.js +2 -1
  242. package/dist/effect/whatsapp.d.ts +12 -12
  243. package/dist/effect/whatsapp.js +2 -1
  244. package/dist/effect/whoami.d.ts +1 -1
  245. package/dist/effect/whoami.js +2 -1
  246. package/dist/index.d.ts +1 -1
  247. package/dist/package.js +1 -1
  248. package/dist/promises/client.d.ts +10 -14
  249. package/dist/promises/client.js +3 -7
  250. package/dist/promises/errors.gen.d.ts +1 -1
  251. package/dist/promises/index.d.ts +5 -5
  252. package/dist/promises/request.d.ts +2 -2
  253. package/dist/promises/request.js +1 -1
  254. package/dist/promises/types.gen.d.ts +1 -1
  255. package/dist/request-policy.d.ts +10 -2
  256. package/dist/request-policy.js +3 -5
  257. package/dist/service-map.d.ts +18 -75
  258. package/package.json +17 -29
  259. package/dist/effect/extension-installations.d.ts +0 -132
  260. package/dist/effect/extension-installations.js +0 -28
  261. package/dist/effect/extensions.d.ts +0 -102
  262. package/dist/effect/extensions.js +0 -20
  263. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  264. package/dist/effect/generated/extension-installations.js +0 -405
  265. package/dist/effect/generated/extensions.d.ts +0 -1037
  266. package/dist/effect/generated/extensions.js +0 -214
  267. package/dist/mailbox/dispatch.d.ts +0 -10
  268. package/dist/mailbox/dispatch.js +0 -66
  269. package/dist/mailbox/index.d.ts +0 -17
  270. package/dist/mailbox/index.js +0 -30
  271. package/dist/mailbox/test.d.ts +0 -25
  272. package/dist/mailbox/test.js +0 -181
  273. package/dist/mailbox/types.d.ts +0 -221
  274. package/dist/mailbox/webhook.d.ts +0 -10
  275. package/dist/mailbox/webhook.js +0 -41
  276. package/dist/service-map.js +0 -830
@@ -21,7 +21,8 @@ const JourneyRunId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern
21
21
  const JourneyRunExitReason = /* @__PURE__ */ (() => Schema.Union([
22
22
  Schema.Literal("completed"),
23
23
  Schema.Literal("goal"),
24
- Schema.Literal("archived")
24
+ Schema.Literal("archived"),
25
+ Schema.Literal("merged")
25
26
  ]).annotate({ identifier: "JourneyRunExitReason" }))();
26
27
  const JourneyRunStepOutcome = /* @__PURE__ */ (() => Schema.Union([
27
28
  Schema.Literal("completed"),
@@ -29,6 +30,7 @@ const JourneyRunStepOutcome = /* @__PURE__ */ (() => Schema.Union([
29
30
  Schema.Literal("timed_out"),
30
31
  Schema.Literal("goal"),
31
32
  Schema.Literal("archived"),
33
+ Schema.Literal("merged"),
32
34
  Schema.Literal("failed")
33
35
  ]).annotate({ identifier: "JourneyRunStepOutcome" }))();
34
36
  const JourneyRunCounts = /* @__PURE__ */ (() => Schema.Struct({
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IntegrationId, InternalError, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicySubject, RateLimitedError, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ResourceNotFoundError, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SkippedRecipient, SuccessResponse, TemplateId, UnauthorizedError, UserId, ValidationError, WhatsAppBusinessAccountId, WhatsAppServiceWindowClosedError, __SamvaRuntimeSensitiveString } from "./shared";
4
+ import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IntegrationId, InternalError, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicySubject, RateLimitedError, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ResourceNotFoundError, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SkippedRecipient, SuccessResponse, TemplateChannelVariantId, TemplateId, UnauthorizedError, UserId, ValidationError, WhatsAppBusinessAccountId, WhatsAppServiceWindowClosedError, __SamvaRuntimeSensitiveString } from "./shared.js";
5
5
  export type MailboxKind = "personal" | "shared";
6
6
  export declare const MailboxKind: Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>;
7
7
  export type MailboxStatus = "active" | "paused";
@@ -38,8 +38,6 @@ export declare const MailboxAlwaysAllow: Schema.Struct<{
38
38
  readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
39
39
  readonly allowed: Schema.Boolean;
40
40
  }>;
41
- export type TemplateChannelVariantId = string & EffectBrand.Brand<"TemplateChannelVariantId">;
42
- export declare const TemplateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
43
41
  export type MailboxToolCall = {
44
42
  readonly name: string;
45
43
  readonly argumentsHash: string;
@@ -392,6 +390,16 @@ export declare const MailboxWhatsAppEndpointBinding: Schema.Struct<{
392
390
  readonly channel: Schema.Literal<"whatsapp">;
393
391
  readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
394
392
  }>;
393
+ export type MailboxChatTemplate = {
394
+ readonly templateId: TemplateId;
395
+ readonly templateChannelVariantId: TemplateChannelVariantId;
396
+ readonly templateData: JsonObject | null;
397
+ };
398
+ export declare const MailboxChatTemplate: Schema.Struct<{
399
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
400
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
401
+ readonly templateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
402
+ }>;
395
403
  export type MailboxSummary = {
396
404
  readonly id: MailboxId;
397
405
  readonly kind: MailboxKind;
@@ -472,16 +480,6 @@ export declare const MailboxQuarantinedMessage: Schema.Struct<{
472
480
  readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
473
481
  readonly discardedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
474
482
  }>;
475
- export type MailboxChatTemplate = {
476
- readonly templateId: TemplateId;
477
- readonly templateChannelVariantId: TemplateChannelVariantId;
478
- readonly templateData: JsonObject | null;
479
- };
480
- export declare const MailboxChatTemplate: Schema.Struct<{
481
- readonly templateId: Schema.brand<Schema.String, "TemplateId">;
482
- readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
483
- readonly templateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
484
- }>;
485
483
  export type MailboxDraftSummary = {
486
484
  readonly id: MailboxDraftId;
487
485
  readonly channel: MailboxChannel;
@@ -1397,6 +1395,42 @@ export declare const MailboxEndpoint: Schema.Union<readonly [Schema.Struct<{
1397
1395
  readonly channel: Schema.Literal<"sms">;
1398
1396
  readonly phoneNumberId: Schema.brand<Schema.String, "SmsPhoneNumberId">;
1399
1397
  }>]>;
1398
+ export type MailboxChatSendIntent = {
1399
+ readonly channel: "whatsapp" | "sms";
1400
+ readonly draftRevision: number;
1401
+ readonly endpointId: MailboxEndpointId;
1402
+ readonly sender: MailboxWhatsAppEndpointBinding | MailboxSmsEndpointBinding;
1403
+ readonly from: string;
1404
+ readonly to: string;
1405
+ readonly text: string | null;
1406
+ readonly template: MailboxChatTemplate | null;
1407
+ readonly threadId: MailboxThreadId | null;
1408
+ readonly conversationId: ConversationId | null;
1409
+ readonly inReplyToMessageId: MessageId | null;
1410
+ };
1411
+ export declare const MailboxChatSendIntent: Schema.Struct<{
1412
+ readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
1413
+ readonly draftRevision: Schema.Finite;
1414
+ readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
1415
+ readonly sender: Schema.Union<readonly [Schema.Struct<{
1416
+ readonly channel: Schema.Literal<"whatsapp">;
1417
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1418
+ }>, Schema.Struct<{
1419
+ readonly channel: Schema.Literal<"sms">;
1420
+ readonly phoneNumberId: Schema.brand<Schema.String, "SmsPhoneNumberId">;
1421
+ }>]>;
1422
+ readonly from: Schema.String;
1423
+ readonly to: Schema.String;
1424
+ readonly text: Schema.Union<readonly [Schema.String, Schema.Null]>;
1425
+ readonly template: Schema.Union<readonly [Schema.Struct<{
1426
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1427
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
1428
+ readonly templateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
1429
+ }>, Schema.Null]>;
1430
+ readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
1431
+ readonly conversationId: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
1432
+ readonly inReplyToMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
1433
+ }>;
1400
1434
  export type MailboxQuarantinePage = {
1401
1435
  readonly items: ReadonlyArray<MailboxQuarantinedMessage>;
1402
1436
  readonly nextCursor: string | null;
@@ -1621,42 +1655,6 @@ export declare const MailboxPendingSendReceipt: Schema.Struct<{
1621
1655
  readonly createdAt: Schema.String;
1622
1656
  readonly updatedAt: Schema.String;
1623
1657
  }>;
1624
- export type MailboxChatSendIntent = {
1625
- readonly channel: "whatsapp" | "sms";
1626
- readonly draftRevision: number;
1627
- readonly endpointId: MailboxEndpointId;
1628
- readonly sender: MailboxWhatsAppEndpointBinding | MailboxSmsEndpointBinding;
1629
- readonly from: string;
1630
- readonly to: string;
1631
- readonly text: string | null;
1632
- readonly template: MailboxChatTemplate | null;
1633
- readonly threadId: MailboxThreadId | null;
1634
- readonly conversationId: ConversationId | null;
1635
- readonly inReplyToMessageId: MessageId | null;
1636
- };
1637
- export declare const MailboxChatSendIntent: Schema.Struct<{
1638
- readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
1639
- readonly draftRevision: Schema.Finite;
1640
- readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
1641
- readonly sender: Schema.Union<readonly [Schema.Struct<{
1642
- readonly channel: Schema.Literal<"whatsapp">;
1643
- readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1644
- }>, Schema.Struct<{
1645
- readonly channel: Schema.Literal<"sms">;
1646
- readonly phoneNumberId: Schema.brand<Schema.String, "SmsPhoneNumberId">;
1647
- }>]>;
1648
- readonly from: Schema.String;
1649
- readonly to: Schema.String;
1650
- readonly text: Schema.Union<readonly [Schema.String, Schema.Null]>;
1651
- readonly template: Schema.Union<readonly [Schema.Struct<{
1652
- readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1653
- readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
1654
- readonly templateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
1655
- }>, Schema.Null]>;
1656
- readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
1657
- readonly conversationId: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
1658
- readonly inReplyToMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
1659
- }>;
1660
1658
  export type MailboxDraftPage = {
1661
1659
  readonly items: ReadonlyArray<MailboxDraftSummary>;
1662
1660
  readonly nextCursor: string | null;
@@ -2113,6 +2111,52 @@ export declare const Mailbox: Schema.Struct<{
2113
2111
  }>]>>;
2114
2112
  readonly updatedAt: Schema.String;
2115
2113
  }>;
2114
+ export type MailboxSendSnapshot = MailboxEmailSendSnapshot | MailboxChatSendIntent;
2115
+ export declare const MailboxSendSnapshot: Schema.Union<readonly [Schema.Struct<{
2116
+ readonly channel: Schema.Literal<"email">;
2117
+ readonly draftRevision: Schema.Finite;
2118
+ readonly from: Schema.String;
2119
+ readonly fromName: Schema.Union<readonly [Schema.String, Schema.Null]>;
2120
+ readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
2121
+ readonly cc: Schema.$Array<Schema.String>;
2122
+ readonly bcc: Schema.$Array<Schema.String>;
2123
+ readonly replyTo: Schema.$Array<Schema.String>;
2124
+ readonly subject: Schema.String;
2125
+ readonly text: Schema.Union<readonly [Schema.String, Schema.Null]>;
2126
+ readonly html: Schema.Union<readonly [Schema.String, Schema.Null]>;
2127
+ readonly attachments: Schema.$Array<Schema.Struct<{
2128
+ readonly filename: Schema.String;
2129
+ readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2130
+ readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
2131
+ readonly contentType: Schema.String;
2132
+ readonly size: Schema.Finite;
2133
+ }>>;
2134
+ readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
2135
+ readonly conversationId: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
2136
+ readonly inReplyToMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
2137
+ }>, Schema.Struct<{
2138
+ readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
2139
+ readonly draftRevision: Schema.Finite;
2140
+ readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2141
+ readonly sender: Schema.Union<readonly [Schema.Struct<{
2142
+ readonly channel: Schema.Literal<"whatsapp">;
2143
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
2144
+ }>, Schema.Struct<{
2145
+ readonly channel: Schema.Literal<"sms">;
2146
+ readonly phoneNumberId: Schema.brand<Schema.String, "SmsPhoneNumberId">;
2147
+ }>]>;
2148
+ readonly from: Schema.String;
2149
+ readonly to: Schema.String;
2150
+ readonly text: Schema.Union<readonly [Schema.String, Schema.Null]>;
2151
+ readonly template: Schema.Union<readonly [Schema.Struct<{
2152
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2153
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
2154
+ readonly templateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
2155
+ }>, Schema.Null]>;
2156
+ readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
2157
+ readonly conversationId: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
2158
+ readonly inReplyToMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
2159
+ }>]>;
2116
2160
  export type MailCommandReceipt = {
2117
2161
  readonly idempotencyKey: string;
2118
2162
  readonly type: "thread.patch" | "thread.labels" | "draft.create" | "draft.update" | "draft.delete" | "send" | "outbox.reschedule" | "outbox.sendNow" | "outbox.review" | "outbox.cancel";
@@ -2257,52 +2301,6 @@ export declare const MailCommandReceipt: Schema.Struct<{
2257
2301
  readonly updatedAt: Schema.String;
2258
2302
  }>, Schema.Null]>;
2259
2303
  }>;
2260
- export type MailboxSendSnapshot = MailboxEmailSendSnapshot | MailboxChatSendIntent;
2261
- export declare const MailboxSendSnapshot: Schema.Union<readonly [Schema.Struct<{
2262
- readonly channel: Schema.Literal<"email">;
2263
- readonly draftRevision: Schema.Finite;
2264
- readonly from: Schema.String;
2265
- readonly fromName: Schema.Union<readonly [Schema.String, Schema.Null]>;
2266
- readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
2267
- readonly cc: Schema.$Array<Schema.String>;
2268
- readonly bcc: Schema.$Array<Schema.String>;
2269
- readonly replyTo: Schema.$Array<Schema.String>;
2270
- readonly subject: Schema.String;
2271
- readonly text: Schema.Union<readonly [Schema.String, Schema.Null]>;
2272
- readonly html: Schema.Union<readonly [Schema.String, Schema.Null]>;
2273
- readonly attachments: Schema.$Array<Schema.Struct<{
2274
- readonly filename: Schema.String;
2275
- readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2276
- readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
2277
- readonly contentType: Schema.String;
2278
- readonly size: Schema.Finite;
2279
- }>>;
2280
- readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
2281
- readonly conversationId: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
2282
- readonly inReplyToMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
2283
- }>, Schema.Struct<{
2284
- readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
2285
- readonly draftRevision: Schema.Finite;
2286
- readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2287
- readonly sender: Schema.Union<readonly [Schema.Struct<{
2288
- readonly channel: Schema.Literal<"whatsapp">;
2289
- readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
2290
- }>, Schema.Struct<{
2291
- readonly channel: Schema.Literal<"sms">;
2292
- readonly phoneNumberId: Schema.brand<Schema.String, "SmsPhoneNumberId">;
2293
- }>]>;
2294
- readonly from: Schema.String;
2295
- readonly to: Schema.String;
2296
- readonly text: Schema.Union<readonly [Schema.String, Schema.Null]>;
2297
- readonly template: Schema.Union<readonly [Schema.Struct<{
2298
- readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2299
- readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
2300
- readonly templateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
2301
- }>, Schema.Null]>;
2302
- readonly threadId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>;
2303
- readonly conversationId: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
2304
- readonly inReplyToMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
2305
- }>]>;
2306
2304
  export type MailboxThreadContentPage = {
2307
2305
  readonly items: ReadonlyArray<MailboxMessage>;
2308
2306
  readonly nextCursor: string | null;
@@ -1,5 +1,5 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IntegrationId, InternalError, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicySubject, RateLimitedError, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ResourceNotFoundError, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SkippedRecipient, SuccessResponse, TemplateId, UnauthorizedError, UserId, ValidationError, WhatsAppBusinessAccountId, WhatsAppServiceWindowClosedError } from "./shared.js";
2
+ import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IntegrationId, InternalError, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicySubject, RateLimitedError, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ResourceNotFoundError, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SkippedRecipient, SuccessResponse, TemplateChannelVariantId, TemplateId, UnauthorizedError, UserId, ValidationError, WhatsAppBusinessAccountId, WhatsAppServiceWindowClosedError } from "./shared.js";
3
3
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
4
  import * as Schema from "effect/Schema";
5
5
  // src/effect/generated/mailboxes.ts
@@ -52,10 +52,6 @@ const MailboxAlwaysAllow = /* @__PURE__ */ (() => Schema.Struct({
52
52
  ]).annotate({ description: "Who may approve with Always allow. `owner`: only the organization owner, because it lets an integration tool run without approval for every agent. `admin`: an organization owner or admin, because it adds a rule for one hosted agent or API key. `approver`: anyone who may approve the action." }),
53
53
  allowed: Schema.Boolean.annotate({ description: "Whether the caller is someone `by` names." })
54
54
  }).annotate({ identifier: "MailboxAlwaysAllow" }))();
55
- const TemplateChannelVariantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tvar_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
56
- expected: "a string matching the RegExp ^tvar_[0-9a-hjkmnp-tv-z]{16,24}$",
57
- identifier: "TemplateChannelVariantId"
58
- })).pipe(Schema.brand("TemplateChannelVariantId")))();
59
55
  const MailboxToolCall = /* @__PURE__ */ (() => Schema.Struct({
60
56
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
61
57
  argumentsHash: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[0-9a-f]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[0-9a-f]{64}$" })),
@@ -335,6 +331,11 @@ const MailboxWhatsAppEndpointBinding = /* @__PURE__ */ (() => Schema.Struct({
335
331
  channel: Schema.Literal("whatsapp"),
336
332
  businessAccountId: WhatsAppBusinessAccountId
337
333
  }).annotate({ identifier: "MailboxWhatsAppEndpointBinding" }))();
334
+ const MailboxChatTemplate = /* @__PURE__ */ (() => Schema.Struct({
335
+ templateId: TemplateId,
336
+ templateChannelVariantId: TemplateChannelVariantId,
337
+ templateData: Schema.Union([JsonObject, Schema.Null])
338
+ }).annotate({ identifier: "MailboxChatTemplate" }))();
338
339
  const MailboxSummary = /* @__PURE__ */ (() => Schema.Struct({
339
340
  id: MailboxId,
340
341
  kind: MailboxKind,
@@ -388,11 +389,6 @@ const MailboxQuarantinedMessage = /* @__PURE__ */ (() => Schema.Struct({
388
389
  threadId: Schema.Union([MailboxThreadId, Schema.Null]),
389
390
  discardedAt: Schema.Union([Schema.String, Schema.Null])
390
391
  }).annotate({ identifier: "MailboxQuarantinedMessage" }))();
391
- const MailboxChatTemplate = /* @__PURE__ */ (() => Schema.Struct({
392
- templateId: TemplateId,
393
- templateChannelVariantId: TemplateChannelVariantId,
394
- templateData: Schema.Union([JsonObject, Schema.Null])
395
- }).annotate({ identifier: "MailboxChatTemplate" }))();
396
392
  const MailboxDraftSummary = /* @__PURE__ */ (() => Schema.Struct({
397
393
  id: MailboxDraftId,
398
394
  channel: MailboxChannel,
@@ -898,6 +894,19 @@ const MailboxEndpoint = /* @__PURE__ */ (() => Schema.Union([
898
894
  MailboxWhatsAppEndpoint,
899
895
  MailboxSmsEndpoint
900
896
  ]).annotate({ identifier: "MailboxEndpoint" }))();
897
+ const MailboxChatSendIntent = /* @__PURE__ */ (() => Schema.Struct({
898
+ channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
899
+ draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
900
+ endpointId: MailboxEndpointId,
901
+ sender: Schema.Union([MailboxWhatsAppEndpointBinding, MailboxSmsEndpointBinding]),
902
+ from: Schema.String,
903
+ to: Schema.String,
904
+ text: Schema.Union([Schema.String, Schema.Null]),
905
+ template: Schema.Union([MailboxChatTemplate, Schema.Null]),
906
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
907
+ conversationId: Schema.Union([ConversationId, Schema.Null]),
908
+ inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
909
+ }).annotate({ identifier: "MailboxChatSendIntent" }))();
901
910
  const MailboxQuarantinePage = /* @__PURE__ */ (() => Schema.Struct({
902
911
  items: Schema.Array(MailboxQuarantinedMessage),
903
912
  nextCursor: Schema.Union([Schema.String, Schema.Null])
@@ -993,19 +1002,6 @@ const MailboxPendingSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
993
1002
  createdAt: Schema.String,
994
1003
  updatedAt: Schema.String
995
1004
  }).annotate({ identifier: "MailboxPendingSendReceipt" }))();
996
- const MailboxChatSendIntent = /* @__PURE__ */ (() => Schema.Struct({
997
- channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
998
- draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
999
- endpointId: MailboxEndpointId,
1000
- sender: Schema.Union([MailboxWhatsAppEndpointBinding, MailboxSmsEndpointBinding]),
1001
- from: Schema.String,
1002
- to: Schema.String,
1003
- text: Schema.Union([Schema.String, Schema.Null]),
1004
- template: Schema.Union([MailboxChatTemplate, Schema.Null]),
1005
- threadId: Schema.Union([MailboxThreadId, Schema.Null]),
1006
- conversationId: Schema.Union([ConversationId, Schema.Null]),
1007
- inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
1008
- }).annotate({ identifier: "MailboxChatSendIntent" }))();
1009
1005
  const MailboxDraftPage = /* @__PURE__ */ (() => Schema.Struct({
1010
1006
  items: Schema.Array(MailboxDraftSummary),
1011
1007
  nextCursor: Schema.Union([Schema.String, Schema.Null])
@@ -1066,6 +1062,7 @@ const Mailbox = /* @__PURE__ */ (() => Schema.Struct({
1066
1062
  endpoints: Schema.Array(MailboxEndpoint),
1067
1063
  updatedAt: Schema.String
1068
1064
  }).annotate({ identifier: "Mailbox" }))();
1065
+ const MailboxSendSnapshot = /* @__PURE__ */ (() => Schema.Union([MailboxEmailSendSnapshot, MailboxChatSendIntent]).annotate({ identifier: "MailboxSendSnapshot" }))();
1069
1066
  const MailCommandReceipt = /* @__PURE__ */ (() => Schema.Struct({
1070
1067
  idempotencyKey: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9_-]{8,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9_-]{8,128}$" })),
1071
1068
  type: Schema.Union([
@@ -1097,7 +1094,6 @@ const MailCommandReceipt = /* @__PURE__ */ (() => Schema.Struct({
1097
1094
  outbox: Schema.Union([MailOutboxItem, Schema.Null]),
1098
1095
  send: Schema.Union([MailboxSendReceipt, Schema.Null])
1099
1096
  }).annotate({ identifier: "MailCommandReceipt" }))();
1100
- const MailboxSendSnapshot = /* @__PURE__ */ (() => Schema.Union([MailboxEmailSendSnapshot, MailboxChatSendIntent]).annotate({ identifier: "MailboxSendSnapshot" }))();
1101
1097
  const MailboxThreadContentPage = /* @__PURE__ */ (() => Schema.Struct({
1102
1098
  items: Schema.Array(MailboxMessage),
1103
1099
  nextCursor: Schema.Union([Schema.String, Schema.Null])
@@ -3465,6 +3461,6 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3465
3461
  MailboxesListOrganizationThreads504.pipe(HttpApiSchema.status(504))
3466
3462
  ]
3467
3463
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listOrganizationThreads").annotate(OpenApi.Summary, "List threads across your mailboxes").annotate(OpenApi.Description, "Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes what the caller finished; state=done selects the caller's Done, closed shared threads, and personal-mailbox threads in the archived folder, without duplicates. Other filters and cursor pagination match the per-mailbox list.")).annotate(OpenApi.Description, "Mailboxes: endpoints, threads, messages, drafts, and governed sends") {};
3468
- export { MailCommandConflict, MailCommandReceipt, MailHistoryImportJob, MailOutboxItem, MailOutboxItemId, MailOutboxProblem, MailSyncPosition, Mailbox, MailboxAction, MailboxActionPage, MailboxActionResolution, MailboxAgentActivity, MailboxAlwaysAllow, MailboxChatDraft, MailboxChatMedia, MailboxChatMessage, MailboxChatMessageTemplate, MailboxChatSendIntent, MailboxChatTemplate, MailboxCopiedAttachment, MailboxDownloadUrl, MailboxDraft, MailboxDraftPage, MailboxDraftState, MailboxDraftSummary, MailboxEmailDraft, MailboxEmailEndpoint, MailboxEmailMessage, MailboxEmailSendSnapshot, MailboxEndpoint, MailboxEvent, MailboxEventId, MailboxEventPage, MailboxFolderCount, MailboxFolderCountList, MailboxGrant, MailboxGrantId, MailboxGrantPage, MailboxHandoff, MailboxKind, MailboxLabel, MailboxLabelList, MailboxMessage, MailboxMessageAuthentication, MailboxMessagePage, MailboxMessageRecipient, MailboxMessageSender, MailboxMessageSummary, MailboxNeedsYou, MailboxNeedsYouItem, MailboxNonSendAction, MailboxNote, MailboxNoteId, MailboxNotePage, MailboxPage, MailboxPendingAction, MailboxPendingSendReceipt, MailboxQuarantinePage, MailboxQuarantinedMessage, MailboxScheduledSendPage, MailboxSendAction, MailboxSendSnapshot, MailboxSmsEndpoint, MailboxSmsEndpointBinding, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadMailbox, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadState, MailboxThreadSummary, MailboxToolCall, MailboxWhatsAppEndpoint, MailboxWhatsAppEndpointBinding, MailboxWhatsAppServiceWindow, MailboxesAddThreadLabels200, MailboxesAddThreadLabels400, MailboxesAddThreadLabels401, MailboxesAddThreadLabels403, MailboxesAddThreadLabels404, MailboxesAddThreadLabels422, MailboxesAddThreadLabels500, MailboxesAddThreadLabels504, MailboxesAddThreadLabelsPathParams, MailboxesAddThreadLabelsRequestJson, MailboxesApproveAction200, MailboxesApproveAction202, MailboxesApproveAction400, MailboxesApproveAction401, MailboxesApproveAction402, MailboxesApproveAction403, MailboxesApproveAction404, MailboxesApproveAction409, MailboxesApproveAction422, MailboxesApproveAction429, MailboxesApproveAction500, MailboxesApproveAction502, MailboxesApproveAction503, MailboxesApproveAction504, MailboxesApproveActionPathParams, MailboxesApproveActionRequestJson, MailboxesCancelAction200, MailboxesCancelAction202, MailboxesCancelAction400, MailboxesCancelAction401, MailboxesCancelAction402, MailboxesCancelAction403, MailboxesCancelAction404, MailboxesCancelAction409, MailboxesCancelAction422, MailboxesCancelAction429, MailboxesCancelAction500, MailboxesCancelAction502, MailboxesCancelAction503, MailboxesCancelAction504, MailboxesCancelActionPathParams, MailboxesCopyMessageAttachment201, MailboxesCopyMessageAttachment400, MailboxesCopyMessageAttachment401, MailboxesCopyMessageAttachment403, MailboxesCopyMessageAttachment404, MailboxesCopyMessageAttachment409, MailboxesCopyMessageAttachment422, MailboxesCopyMessageAttachment500, MailboxesCopyMessageAttachment504, MailboxesCopyMessageAttachmentPathParams, MailboxesCountSplits200, MailboxesCountSplits400, MailboxesCountSplits401, MailboxesCountSplits403, MailboxesCountSplits422, MailboxesCountSplits500, MailboxesCountSplits504, MailboxesCreate201, MailboxesCreate400, MailboxesCreate401, MailboxesCreate402, MailboxesCreate403, MailboxesCreate404, MailboxesCreate409, MailboxesCreate422, MailboxesCreate500, MailboxesCreate502, MailboxesCreate504, MailboxesCreateDraft201, MailboxesCreateDraft400, MailboxesCreateDraft401, MailboxesCreateDraft403, MailboxesCreateDraft404, MailboxesCreateDraft422, MailboxesCreateDraft500, MailboxesCreateDraft504, MailboxesCreateDraftPathParams, MailboxesCreateDraftRequestJson, MailboxesCreateEndpoint201, MailboxesCreateEndpoint400, MailboxesCreateEndpoint401, MailboxesCreateEndpoint403, MailboxesCreateEndpoint404, MailboxesCreateEndpoint409, MailboxesCreateEndpoint422, MailboxesCreateEndpoint500, MailboxesCreateEndpoint504, MailboxesCreateEndpointPathParams, MailboxesCreateEndpointRequestJson, MailboxesCreateGrant201, MailboxesCreateGrant400, MailboxesCreateGrant401, MailboxesCreateGrant403, MailboxesCreateGrant404, MailboxesCreateGrant409, MailboxesCreateGrant422, MailboxesCreateGrant500, MailboxesCreateGrant504, MailboxesCreateGrantPathParams, MailboxesCreateGrantRequestJson, MailboxesCreateHeaders, MailboxesCreateImportUpload200, MailboxesCreateImportUpload400, MailboxesCreateImportUpload401, MailboxesCreateImportUpload403, MailboxesCreateImportUpload404, MailboxesCreateImportUpload409, MailboxesCreateImportUpload422, MailboxesCreateImportUpload500, MailboxesCreateImportUpload504, MailboxesCreateImportUploadPathParams, MailboxesCreateImportUploadRequestJson, MailboxesCreateLabel201, MailboxesCreateLabel400, MailboxesCreateLabel401, MailboxesCreateLabel403, MailboxesCreateLabel404, MailboxesCreateLabel409, MailboxesCreateLabel422, MailboxesCreateLabel500, MailboxesCreateLabel504, MailboxesCreateLabelPathParams, MailboxesCreateLabelRequestJson, MailboxesCreateNote201, MailboxesCreateNote400, MailboxesCreateNote401, MailboxesCreateNote403, MailboxesCreateNote404, MailboxesCreateNote422, MailboxesCreateNote500, MailboxesCreateNote504, MailboxesCreateNotePathParams, MailboxesCreateNoteRequestJson, MailboxesCreateRequestJson, MailboxesCreateSplit200, MailboxesCreateSplit400, MailboxesCreateSplit401, MailboxesCreateSplit403, MailboxesCreateSplit404, MailboxesCreateSplit422, MailboxesCreateSplit500, MailboxesCreateSplit504, MailboxesCreateSplitRequestJson, MailboxesDeleteDraft200, MailboxesDeleteDraft400, MailboxesDeleteDraft401, MailboxesDeleteDraft403, MailboxesDeleteDraft404, MailboxesDeleteDraft422, MailboxesDeleteDraft500, MailboxesDeleteDraft504, MailboxesDeleteDraftPathParams, MailboxesDeleteLabel200, MailboxesDeleteLabel400, MailboxesDeleteLabel401, MailboxesDeleteLabel403, MailboxesDeleteLabel404, MailboxesDeleteLabel422, MailboxesDeleteLabel500, MailboxesDeleteLabel504, MailboxesDeleteLabelPathParams, MailboxesDeleteNote200, MailboxesDeleteNote400, MailboxesDeleteNote401, MailboxesDeleteNote403, MailboxesDeleteNote404, MailboxesDeleteNote422, MailboxesDeleteNote500, MailboxesDeleteNote504, MailboxesDeleteNotePathParams, MailboxesDeleteSplit200, MailboxesDeleteSplit400, MailboxesDeleteSplit401, MailboxesDeleteSplit403, MailboxesDeleteSplit404, MailboxesDeleteSplit422, MailboxesDeleteSplit500, MailboxesDeleteSplit504, MailboxesDeleteSplitPathParams, MailboxesDenyAction200, MailboxesDenyAction400, MailboxesDenyAction401, MailboxesDenyAction403, MailboxesDenyAction404, MailboxesDenyAction409, MailboxesDenyAction422, MailboxesDenyAction500, MailboxesDenyAction504, MailboxesDenyActionPathParams, MailboxesDenyActionRequestJson, MailboxesDiscardMessage200, MailboxesDiscardMessage400, MailboxesDiscardMessage401, MailboxesDiscardMessage403, MailboxesDiscardMessage404, MailboxesDiscardMessage409, MailboxesDiscardMessage422, MailboxesDiscardMessage500, MailboxesDiscardMessage502, MailboxesDiscardMessage504, MailboxesDiscardMessagePathParams, MailboxesForward200, MailboxesForward202, MailboxesForward400, MailboxesForward401, MailboxesForward402, MailboxesForward403, MailboxesForward404, MailboxesForward409, MailboxesForward422, MailboxesForward429, MailboxesForward500, MailboxesForward502, MailboxesForward503, MailboxesForward504, MailboxesForwardHeaders, MailboxesForwardPathParams, MailboxesForwardRequestJson, MailboxesGet200, MailboxesGet400, MailboxesGet401, MailboxesGet403, MailboxesGet404, MailboxesGet422, MailboxesGet500, MailboxesGet504, MailboxesGetAction200, MailboxesGetAction400, MailboxesGetAction401, MailboxesGetAction403, MailboxesGetAction404, MailboxesGetAction422, MailboxesGetAction500, MailboxesGetAction504, MailboxesGetActionPathParams, MailboxesGetAgentActivity200, MailboxesGetAgentActivity400, MailboxesGetAgentActivity401, MailboxesGetAgentActivity403, MailboxesGetAgentActivity404, MailboxesGetAgentActivity422, MailboxesGetAgentActivity500, MailboxesGetAgentActivity504, MailboxesGetAgentActivityPathParams, MailboxesGetAgentActivityQuery, MailboxesGetDraft200, MailboxesGetDraft400, MailboxesGetDraft401, MailboxesGetDraft403, MailboxesGetDraft404, MailboxesGetDraft422, MailboxesGetDraft500, MailboxesGetDraft504, MailboxesGetDraftPathParams, MailboxesGetImport200, MailboxesGetImport400, MailboxesGetImport401, MailboxesGetImport403, MailboxesGetImport404, MailboxesGetImport422, MailboxesGetImport500, MailboxesGetImport504, MailboxesGetImportPathParams, MailboxesGetMessage200, MailboxesGetMessage400, MailboxesGetMessage401, MailboxesGetMessage403, MailboxesGetMessage404, MailboxesGetMessage422, MailboxesGetMessage500, MailboxesGetMessage504, MailboxesGetMessageAttachment200, MailboxesGetMessageAttachment400, MailboxesGetMessageAttachment401, MailboxesGetMessageAttachment403, MailboxesGetMessageAttachment404, MailboxesGetMessageAttachment422, MailboxesGetMessageAttachment500, MailboxesGetMessageAttachment504, MailboxesGetMessageAttachmentPathParams, MailboxesGetMessagePathParams, MailboxesGetMessageRaw200, MailboxesGetMessageRaw400, MailboxesGetMessageRaw401, MailboxesGetMessageRaw403, MailboxesGetMessageRaw404, MailboxesGetMessageRaw422, MailboxesGetMessageRaw500, MailboxesGetMessageRaw504, MailboxesGetMessageRawPathParams, MailboxesGetNeedsYou200, MailboxesGetNeedsYou400, MailboxesGetNeedsYou401, MailboxesGetNeedsYou403, MailboxesGetNeedsYou422, MailboxesGetNeedsYou500, MailboxesGetNeedsYou504, MailboxesGetNeedsYouQuery, MailboxesGetPathParams, MailboxesGetThread200, MailboxesGetThread400, MailboxesGetThread401, MailboxesGetThread403, MailboxesGetThread404, MailboxesGetThread422, MailboxesGetThread500, MailboxesGetThread504, MailboxesGetThreadContent200, MailboxesGetThreadContent400, MailboxesGetThreadContent401, MailboxesGetThreadContent403, MailboxesGetThreadContent404, MailboxesGetThreadContent422, MailboxesGetThreadContent500, MailboxesGetThreadContent504, MailboxesGetThreadContentPathParams, MailboxesGetThreadContentQuery, MailboxesGetThreadPathParams, MailboxesGroup, MailboxesList200, MailboxesList400, MailboxesList401, MailboxesList403, MailboxesList422, MailboxesList500, MailboxesList504, MailboxesListActions200, MailboxesListActions400, MailboxesListActions401, MailboxesListActions403, MailboxesListActions404, MailboxesListActions422, MailboxesListActions500, MailboxesListActions504, MailboxesListActionsPathParams, MailboxesListActionsQuery, MailboxesListAddresses200, MailboxesListAddresses400, MailboxesListAddresses401, MailboxesListAddresses403, MailboxesListAddresses404, MailboxesListAddresses422, MailboxesListAddresses500, MailboxesListAddresses504, MailboxesListAddressesPathParams, MailboxesListAddressesQuery, MailboxesListDrafts200, MailboxesListDrafts400, MailboxesListDrafts401, MailboxesListDrafts403, MailboxesListDrafts404, MailboxesListDrafts422, MailboxesListDrafts500, MailboxesListDrafts504, MailboxesListDraftsPathParams, MailboxesListDraftsQuery, MailboxesListEvents200, MailboxesListEvents400, MailboxesListEvents401, MailboxesListEvents403, MailboxesListEvents404, MailboxesListEvents422, MailboxesListEvents500, MailboxesListEvents504, MailboxesListEventsPathParams, MailboxesListEventsQuery, MailboxesListFolders200, MailboxesListFolders400, MailboxesListFolders401, MailboxesListFolders403, MailboxesListFolders404, MailboxesListFolders422, MailboxesListFolders500, MailboxesListFolders504, MailboxesListFoldersPathParams, MailboxesListGrants200, MailboxesListGrants400, MailboxesListGrants401, MailboxesListGrants403, MailboxesListGrants404, MailboxesListGrants422, MailboxesListGrants500, MailboxesListGrants504, MailboxesListGrantsPathParams, MailboxesListGrantsQuery, MailboxesListImports200, MailboxesListImports400, MailboxesListImports401, MailboxesListImports403, MailboxesListImports404, MailboxesListImports422, MailboxesListImports500, MailboxesListImports504, MailboxesListImportsPathParams, MailboxesListLabels200, MailboxesListLabels400, MailboxesListLabels401, MailboxesListLabels403, MailboxesListLabels404, MailboxesListLabels422, MailboxesListLabels500, MailboxesListLabels504, MailboxesListLabelsPathParams, MailboxesListOrganizationDrafts200, MailboxesListOrganizationDrafts400, MailboxesListOrganizationDrafts401, MailboxesListOrganizationDrafts403, MailboxesListOrganizationDrafts404, MailboxesListOrganizationDrafts422, MailboxesListOrganizationDrafts500, MailboxesListOrganizationDrafts504, MailboxesListOrganizationDraftsQuery, MailboxesListOrganizationThreads200, MailboxesListOrganizationThreads400, MailboxesListOrganizationThreads401, MailboxesListOrganizationThreads403, MailboxesListOrganizationThreads404, MailboxesListOrganizationThreads422, MailboxesListOrganizationThreads500, MailboxesListOrganizationThreads504, MailboxesListOrganizationThreadsQuery, MailboxesListQuarantine200, MailboxesListQuarantine400, MailboxesListQuarantine401, MailboxesListQuarantine403, MailboxesListQuarantine404, MailboxesListQuarantine422, MailboxesListQuarantine500, MailboxesListQuarantine504, MailboxesListQuarantinePathParams, MailboxesListQuarantineQuery, MailboxesListQuery, MailboxesListScheduledSends200, MailboxesListScheduledSends400, MailboxesListScheduledSends401, MailboxesListScheduledSends403, MailboxesListScheduledSends404, MailboxesListScheduledSends422, MailboxesListScheduledSends500, MailboxesListScheduledSends504, MailboxesListScheduledSendsPathParams, MailboxesListScheduledSendsQuery, MailboxesListSplits200, MailboxesListSplits400, MailboxesListSplits401, MailboxesListSplits403, MailboxesListSplits422, MailboxesListSplits500, MailboxesListSplits504, MailboxesListThreadMessages200, MailboxesListThreadMessages400, MailboxesListThreadMessages401, MailboxesListThreadMessages403, MailboxesListThreadMessages404, MailboxesListThreadMessages422, MailboxesListThreadMessages500, MailboxesListThreadMessages504, MailboxesListThreadMessagesPathParams, MailboxesListThreadMessagesQuery, MailboxesListThreadNotes200, MailboxesListThreadNotes400, MailboxesListThreadNotes401, MailboxesListThreadNotes403, MailboxesListThreadNotes404, MailboxesListThreadNotes422, MailboxesListThreadNotes500, MailboxesListThreadNotes504, MailboxesListThreadNotesPathParams, MailboxesListThreadNotesQuery, MailboxesListThreads200, MailboxesListThreads400, MailboxesListThreads401, MailboxesListThreads403, MailboxesListThreads404, MailboxesListThreads422, MailboxesListThreads500, MailboxesListThreads504, MailboxesListThreadsPathParams, MailboxesListThreadsQuery, MailboxesPause200, MailboxesPause400, MailboxesPause401, MailboxesPause403, MailboxesPause404, MailboxesPause422, MailboxesPause500, MailboxesPause504, MailboxesPausePathParams, MailboxesReleaseMessage200, MailboxesReleaseMessage400, MailboxesReleaseMessage401, MailboxesReleaseMessage403, MailboxesReleaseMessage404, MailboxesReleaseMessage409, MailboxesReleaseMessage422, MailboxesReleaseMessage500, MailboxesReleaseMessage504, MailboxesReleaseMessagePathParams, MailboxesRemove200, MailboxesRemove400, MailboxesRemove401, MailboxesRemove403, MailboxesRemove404, MailboxesRemove422, MailboxesRemove500, MailboxesRemove502, MailboxesRemove504, MailboxesRemoveEndpoint200, MailboxesRemoveEndpoint400, MailboxesRemoveEndpoint401, MailboxesRemoveEndpoint403, MailboxesRemoveEndpoint404, MailboxesRemoveEndpoint422, MailboxesRemoveEndpoint500, MailboxesRemoveEndpoint504, MailboxesRemoveEndpointPathParams, MailboxesRemovePathParams, MailboxesRemoveThreadLabels200, MailboxesRemoveThreadLabels400, MailboxesRemoveThreadLabels401, MailboxesRemoveThreadLabels403, MailboxesRemoveThreadLabels404, MailboxesRemoveThreadLabels422, MailboxesRemoveThreadLabels500, MailboxesRemoveThreadLabels504, MailboxesRemoveThreadLabelsPathParams, MailboxesRemoveThreadLabelsRequestJson, MailboxesReply200, MailboxesReply202, MailboxesReply400, MailboxesReply401, MailboxesReply402, MailboxesReply403, MailboxesReply404, MailboxesReply409, MailboxesReply422, MailboxesReply429, MailboxesReply500, MailboxesReply502, MailboxesReply503, MailboxesReply504, MailboxesReplyAll200, MailboxesReplyAll202, MailboxesReplyAll400, MailboxesReplyAll401, MailboxesReplyAll402, MailboxesReplyAll403, MailboxesReplyAll404, MailboxesReplyAll409, MailboxesReplyAll422, MailboxesReplyAll429, MailboxesReplyAll500, MailboxesReplyAll502, MailboxesReplyAll503, MailboxesReplyAll504, MailboxesReplyAllHeaders, MailboxesReplyAllPathParams, MailboxesReplyAllRequestJson, MailboxesReplyHeaders, MailboxesReplyPathParams, MailboxesReplyRequestJson, MailboxesRescheduleSend200, MailboxesRescheduleSend400, MailboxesRescheduleSend401, MailboxesRescheduleSend403, MailboxesRescheduleSend404, MailboxesRescheduleSend409, MailboxesRescheduleSend422, MailboxesRescheduleSend429, MailboxesRescheduleSend500, MailboxesRescheduleSend504, MailboxesRescheduleSendPathParams, MailboxesRescheduleSendRequestJson, MailboxesResume200, MailboxesResume400, MailboxesResume401, MailboxesResume403, MailboxesResume404, MailboxesResume422, MailboxesResume500, MailboxesResume504, MailboxesResumePathParams, MailboxesRetryAction200, MailboxesRetryAction202, MailboxesRetryAction400, MailboxesRetryAction401, MailboxesRetryAction402, MailboxesRetryAction403, MailboxesRetryAction404, MailboxesRetryAction409, MailboxesRetryAction422, MailboxesRetryAction429, MailboxesRetryAction500, MailboxesRetryAction502, MailboxesRetryAction503, MailboxesRetryAction504, MailboxesRetryActionPathParams, MailboxesRevokeGrant200, MailboxesRevokeGrant400, MailboxesRevokeGrant401, MailboxesRevokeGrant403, MailboxesRevokeGrant404, MailboxesRevokeGrant409, MailboxesRevokeGrant422, MailboxesRevokeGrant500, MailboxesRevokeGrant504, MailboxesRevokeGrantPathParams, MailboxesScheduleDraft200, MailboxesScheduleDraft400, MailboxesScheduleDraft401, MailboxesScheduleDraft403, MailboxesScheduleDraft404, MailboxesScheduleDraft409, MailboxesScheduleDraft422, MailboxesScheduleDraft429, MailboxesScheduleDraft500, MailboxesScheduleDraft504, MailboxesScheduleDraftPathParams, MailboxesScheduleDraftRequestJson, MailboxesSendDraft200, MailboxesSendDraft202, MailboxesSendDraft400, MailboxesSendDraft401, MailboxesSendDraft402, MailboxesSendDraft403, MailboxesSendDraft404, MailboxesSendDraft409, MailboxesSendDraft422, MailboxesSendDraft429, MailboxesSendDraft500, MailboxesSendDraft502, MailboxesSendDraft503, MailboxesSendDraft504, MailboxesSendDraftHeaders, MailboxesSendDraftPathParams, MailboxesSendMessage200, MailboxesSendMessage202, MailboxesSendMessage400, MailboxesSendMessage401, MailboxesSendMessage402, MailboxesSendMessage403, MailboxesSendMessage404, MailboxesSendMessage409, MailboxesSendMessage422, MailboxesSendMessage429, MailboxesSendMessage500, MailboxesSendMessage502, MailboxesSendMessage503, MailboxesSendMessage504, MailboxesSendMessageHeaders, MailboxesSendMessagePathParams, MailboxesSendMessageRequestJson, MailboxesSendScheduledNow200, MailboxesSendScheduledNow400, MailboxesSendScheduledNow401, MailboxesSendScheduledNow403, MailboxesSendScheduledNow404, MailboxesSendScheduledNow409, MailboxesSendScheduledNow422, MailboxesSendScheduledNow429, MailboxesSendScheduledNow500, MailboxesSendScheduledNow504, MailboxesSendScheduledNowPathParams, MailboxesSendScheduledNowRequestJson, MailboxesStartImport200, MailboxesStartImport400, MailboxesStartImport401, MailboxesStartImport403, MailboxesStartImport404, MailboxesStartImport409, MailboxesStartImport422, MailboxesStartImport500, MailboxesStartImport504, MailboxesStartImportPathParams, MailboxesUnscheduleSend200, MailboxesUnscheduleSend400, MailboxesUnscheduleSend401, MailboxesUnscheduleSend403, MailboxesUnscheduleSend404, MailboxesUnscheduleSend409, MailboxesUnscheduleSend422, MailboxesUnscheduleSend429, MailboxesUnscheduleSend500, MailboxesUnscheduleSend504, MailboxesUnscheduleSendPathParams, MailboxesUnscheduleSendRequestJson, MailboxesUpdate200, MailboxesUpdate400, MailboxesUpdate401, MailboxesUpdate403, MailboxesUpdate404, MailboxesUpdate422, MailboxesUpdate500, MailboxesUpdate504, MailboxesUpdateDraft200, MailboxesUpdateDraft400, MailboxesUpdateDraft401, MailboxesUpdateDraft403, MailboxesUpdateDraft404, MailboxesUpdateDraft409, MailboxesUpdateDraft422, MailboxesUpdateDraft500, MailboxesUpdateDraft504, MailboxesUpdateDraftPathParams, MailboxesUpdateDraftRequestJson, MailboxesUpdateEndpoint200, MailboxesUpdateEndpoint400, MailboxesUpdateEndpoint401, MailboxesUpdateEndpoint403, MailboxesUpdateEndpoint404, MailboxesUpdateEndpoint422, MailboxesUpdateEndpoint500, MailboxesUpdateEndpoint504, MailboxesUpdateEndpointPathParams, MailboxesUpdateEndpointRequestJson, MailboxesUpdateGrant200, MailboxesUpdateGrant400, MailboxesUpdateGrant401, MailboxesUpdateGrant403, MailboxesUpdateGrant404, MailboxesUpdateGrant409, MailboxesUpdateGrant422, MailboxesUpdateGrant500, MailboxesUpdateGrant504, MailboxesUpdateGrantPathParams, MailboxesUpdateGrantRequestJson, MailboxesUpdateLabel200, MailboxesUpdateLabel400, MailboxesUpdateLabel401, MailboxesUpdateLabel403, MailboxesUpdateLabel404, MailboxesUpdateLabel422, MailboxesUpdateLabel500, MailboxesUpdateLabel504, MailboxesUpdateLabelPathParams, MailboxesUpdateLabelRequestJson, MailboxesUpdateNote200, MailboxesUpdateNote400, MailboxesUpdateNote401, MailboxesUpdateNote403, MailboxesUpdateNote404, MailboxesUpdateNote422, MailboxesUpdateNote500, MailboxesUpdateNote504, MailboxesUpdateNotePathParams, MailboxesUpdateNoteRequestJson, MailboxesUpdatePathParams, MailboxesUpdateRequestJson, MailboxesUpdateSplit200, MailboxesUpdateSplit400, MailboxesUpdateSplit401, MailboxesUpdateSplit403, MailboxesUpdateSplit404, MailboxesUpdateSplit422, MailboxesUpdateSplit500, MailboxesUpdateSplit504, MailboxesUpdateSplitPathParams, MailboxesUpdateSplitRequestJson, MailboxesUpdateThread200, MailboxesUpdateThread400, MailboxesUpdateThread401, MailboxesUpdateThread403, MailboxesUpdateThread404, MailboxesUpdateThread422, MailboxesUpdateThread500, MailboxesUpdateThread504, MailboxesUpdateThreadPathParams, MailboxesUpdateThreadRequestJson, OrganizationMailboxDraftPage, OrganizationMailboxDraftSummary, OrganizationMailboxThreadPage, OrganizationMailboxThreadSummary, PolicyAction, PolicyDecision, SmsPhoneNumberId, TemplateChannelVariantId };
3464
+ export { MailCommandConflict, MailCommandReceipt, MailHistoryImportJob, MailOutboxItem, MailOutboxItemId, MailOutboxProblem, MailSyncPosition, Mailbox, MailboxAction, MailboxActionPage, MailboxActionResolution, MailboxAgentActivity, MailboxAlwaysAllow, MailboxChatDraft, MailboxChatMedia, MailboxChatMessage, MailboxChatMessageTemplate, MailboxChatSendIntent, MailboxChatTemplate, MailboxCopiedAttachment, MailboxDownloadUrl, MailboxDraft, MailboxDraftPage, MailboxDraftState, MailboxDraftSummary, MailboxEmailDraft, MailboxEmailEndpoint, MailboxEmailMessage, MailboxEmailSendSnapshot, MailboxEndpoint, MailboxEvent, MailboxEventId, MailboxEventPage, MailboxFolderCount, MailboxFolderCountList, MailboxGrant, MailboxGrantId, MailboxGrantPage, MailboxHandoff, MailboxKind, MailboxLabel, MailboxLabelList, MailboxMessage, MailboxMessageAuthentication, MailboxMessagePage, MailboxMessageRecipient, MailboxMessageSender, MailboxMessageSummary, MailboxNeedsYou, MailboxNeedsYouItem, MailboxNonSendAction, MailboxNote, MailboxNoteId, MailboxNotePage, MailboxPage, MailboxPendingAction, MailboxPendingSendReceipt, MailboxQuarantinePage, MailboxQuarantinedMessage, MailboxScheduledSendPage, MailboxSendAction, MailboxSendSnapshot, MailboxSmsEndpoint, MailboxSmsEndpointBinding, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadMailbox, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadState, MailboxThreadSummary, MailboxToolCall, MailboxWhatsAppEndpoint, MailboxWhatsAppEndpointBinding, MailboxWhatsAppServiceWindow, MailboxesAddThreadLabels200, MailboxesAddThreadLabels400, MailboxesAddThreadLabels401, MailboxesAddThreadLabels403, MailboxesAddThreadLabels404, MailboxesAddThreadLabels422, MailboxesAddThreadLabels500, MailboxesAddThreadLabels504, MailboxesAddThreadLabelsPathParams, MailboxesAddThreadLabelsRequestJson, MailboxesApproveAction200, MailboxesApproveAction202, MailboxesApproveAction400, MailboxesApproveAction401, MailboxesApproveAction402, MailboxesApproveAction403, MailboxesApproveAction404, MailboxesApproveAction409, MailboxesApproveAction422, MailboxesApproveAction429, MailboxesApproveAction500, MailboxesApproveAction502, MailboxesApproveAction503, MailboxesApproveAction504, MailboxesApproveActionPathParams, MailboxesApproveActionRequestJson, MailboxesCancelAction200, MailboxesCancelAction202, MailboxesCancelAction400, MailboxesCancelAction401, MailboxesCancelAction402, MailboxesCancelAction403, MailboxesCancelAction404, MailboxesCancelAction409, MailboxesCancelAction422, MailboxesCancelAction429, MailboxesCancelAction500, MailboxesCancelAction502, MailboxesCancelAction503, MailboxesCancelAction504, MailboxesCancelActionPathParams, MailboxesCopyMessageAttachment201, MailboxesCopyMessageAttachment400, MailboxesCopyMessageAttachment401, MailboxesCopyMessageAttachment403, MailboxesCopyMessageAttachment404, MailboxesCopyMessageAttachment409, MailboxesCopyMessageAttachment422, MailboxesCopyMessageAttachment500, MailboxesCopyMessageAttachment504, MailboxesCopyMessageAttachmentPathParams, MailboxesCountSplits200, MailboxesCountSplits400, MailboxesCountSplits401, MailboxesCountSplits403, MailboxesCountSplits422, MailboxesCountSplits500, MailboxesCountSplits504, MailboxesCreate201, MailboxesCreate400, MailboxesCreate401, MailboxesCreate402, MailboxesCreate403, MailboxesCreate404, MailboxesCreate409, MailboxesCreate422, MailboxesCreate500, MailboxesCreate502, MailboxesCreate504, MailboxesCreateDraft201, MailboxesCreateDraft400, MailboxesCreateDraft401, MailboxesCreateDraft403, MailboxesCreateDraft404, MailboxesCreateDraft422, MailboxesCreateDraft500, MailboxesCreateDraft504, MailboxesCreateDraftPathParams, MailboxesCreateDraftRequestJson, MailboxesCreateEndpoint201, MailboxesCreateEndpoint400, MailboxesCreateEndpoint401, MailboxesCreateEndpoint403, MailboxesCreateEndpoint404, MailboxesCreateEndpoint409, MailboxesCreateEndpoint422, MailboxesCreateEndpoint500, MailboxesCreateEndpoint504, MailboxesCreateEndpointPathParams, MailboxesCreateEndpointRequestJson, MailboxesCreateGrant201, MailboxesCreateGrant400, MailboxesCreateGrant401, MailboxesCreateGrant403, MailboxesCreateGrant404, MailboxesCreateGrant409, MailboxesCreateGrant422, MailboxesCreateGrant500, MailboxesCreateGrant504, MailboxesCreateGrantPathParams, MailboxesCreateGrantRequestJson, MailboxesCreateHeaders, MailboxesCreateImportUpload200, MailboxesCreateImportUpload400, MailboxesCreateImportUpload401, MailboxesCreateImportUpload403, MailboxesCreateImportUpload404, MailboxesCreateImportUpload409, MailboxesCreateImportUpload422, MailboxesCreateImportUpload500, MailboxesCreateImportUpload504, MailboxesCreateImportUploadPathParams, MailboxesCreateImportUploadRequestJson, MailboxesCreateLabel201, MailboxesCreateLabel400, MailboxesCreateLabel401, MailboxesCreateLabel403, MailboxesCreateLabel404, MailboxesCreateLabel409, MailboxesCreateLabel422, MailboxesCreateLabel500, MailboxesCreateLabel504, MailboxesCreateLabelPathParams, MailboxesCreateLabelRequestJson, MailboxesCreateNote201, MailboxesCreateNote400, MailboxesCreateNote401, MailboxesCreateNote403, MailboxesCreateNote404, MailboxesCreateNote422, MailboxesCreateNote500, MailboxesCreateNote504, MailboxesCreateNotePathParams, MailboxesCreateNoteRequestJson, MailboxesCreateRequestJson, MailboxesCreateSplit200, MailboxesCreateSplit400, MailboxesCreateSplit401, MailboxesCreateSplit403, MailboxesCreateSplit404, MailboxesCreateSplit422, MailboxesCreateSplit500, MailboxesCreateSplit504, MailboxesCreateSplitRequestJson, MailboxesDeleteDraft200, MailboxesDeleteDraft400, MailboxesDeleteDraft401, MailboxesDeleteDraft403, MailboxesDeleteDraft404, MailboxesDeleteDraft422, MailboxesDeleteDraft500, MailboxesDeleteDraft504, MailboxesDeleteDraftPathParams, MailboxesDeleteLabel200, MailboxesDeleteLabel400, MailboxesDeleteLabel401, MailboxesDeleteLabel403, MailboxesDeleteLabel404, MailboxesDeleteLabel422, MailboxesDeleteLabel500, MailboxesDeleteLabel504, MailboxesDeleteLabelPathParams, MailboxesDeleteNote200, MailboxesDeleteNote400, MailboxesDeleteNote401, MailboxesDeleteNote403, MailboxesDeleteNote404, MailboxesDeleteNote422, MailboxesDeleteNote500, MailboxesDeleteNote504, MailboxesDeleteNotePathParams, MailboxesDeleteSplit200, MailboxesDeleteSplit400, MailboxesDeleteSplit401, MailboxesDeleteSplit403, MailboxesDeleteSplit404, MailboxesDeleteSplit422, MailboxesDeleteSplit500, MailboxesDeleteSplit504, MailboxesDeleteSplitPathParams, MailboxesDenyAction200, MailboxesDenyAction400, MailboxesDenyAction401, MailboxesDenyAction403, MailboxesDenyAction404, MailboxesDenyAction409, MailboxesDenyAction422, MailboxesDenyAction500, MailboxesDenyAction504, MailboxesDenyActionPathParams, MailboxesDenyActionRequestJson, MailboxesDiscardMessage200, MailboxesDiscardMessage400, MailboxesDiscardMessage401, MailboxesDiscardMessage403, MailboxesDiscardMessage404, MailboxesDiscardMessage409, MailboxesDiscardMessage422, MailboxesDiscardMessage500, MailboxesDiscardMessage502, MailboxesDiscardMessage504, MailboxesDiscardMessagePathParams, MailboxesForward200, MailboxesForward202, MailboxesForward400, MailboxesForward401, MailboxesForward402, MailboxesForward403, MailboxesForward404, MailboxesForward409, MailboxesForward422, MailboxesForward429, MailboxesForward500, MailboxesForward502, MailboxesForward503, MailboxesForward504, MailboxesForwardHeaders, MailboxesForwardPathParams, MailboxesForwardRequestJson, MailboxesGet200, MailboxesGet400, MailboxesGet401, MailboxesGet403, MailboxesGet404, MailboxesGet422, MailboxesGet500, MailboxesGet504, MailboxesGetAction200, MailboxesGetAction400, MailboxesGetAction401, MailboxesGetAction403, MailboxesGetAction404, MailboxesGetAction422, MailboxesGetAction500, MailboxesGetAction504, MailboxesGetActionPathParams, MailboxesGetAgentActivity200, MailboxesGetAgentActivity400, MailboxesGetAgentActivity401, MailboxesGetAgentActivity403, MailboxesGetAgentActivity404, MailboxesGetAgentActivity422, MailboxesGetAgentActivity500, MailboxesGetAgentActivity504, MailboxesGetAgentActivityPathParams, MailboxesGetAgentActivityQuery, MailboxesGetDraft200, MailboxesGetDraft400, MailboxesGetDraft401, MailboxesGetDraft403, MailboxesGetDraft404, MailboxesGetDraft422, MailboxesGetDraft500, MailboxesGetDraft504, MailboxesGetDraftPathParams, MailboxesGetImport200, MailboxesGetImport400, MailboxesGetImport401, MailboxesGetImport403, MailboxesGetImport404, MailboxesGetImport422, MailboxesGetImport500, MailboxesGetImport504, MailboxesGetImportPathParams, MailboxesGetMessage200, MailboxesGetMessage400, MailboxesGetMessage401, MailboxesGetMessage403, MailboxesGetMessage404, MailboxesGetMessage422, MailboxesGetMessage500, MailboxesGetMessage504, MailboxesGetMessageAttachment200, MailboxesGetMessageAttachment400, MailboxesGetMessageAttachment401, MailboxesGetMessageAttachment403, MailboxesGetMessageAttachment404, MailboxesGetMessageAttachment422, MailboxesGetMessageAttachment500, MailboxesGetMessageAttachment504, MailboxesGetMessageAttachmentPathParams, MailboxesGetMessagePathParams, MailboxesGetMessageRaw200, MailboxesGetMessageRaw400, MailboxesGetMessageRaw401, MailboxesGetMessageRaw403, MailboxesGetMessageRaw404, MailboxesGetMessageRaw422, MailboxesGetMessageRaw500, MailboxesGetMessageRaw504, MailboxesGetMessageRawPathParams, MailboxesGetNeedsYou200, MailboxesGetNeedsYou400, MailboxesGetNeedsYou401, MailboxesGetNeedsYou403, MailboxesGetNeedsYou422, MailboxesGetNeedsYou500, MailboxesGetNeedsYou504, MailboxesGetNeedsYouQuery, MailboxesGetPathParams, MailboxesGetThread200, MailboxesGetThread400, MailboxesGetThread401, MailboxesGetThread403, MailboxesGetThread404, MailboxesGetThread422, MailboxesGetThread500, MailboxesGetThread504, MailboxesGetThreadContent200, MailboxesGetThreadContent400, MailboxesGetThreadContent401, MailboxesGetThreadContent403, MailboxesGetThreadContent404, MailboxesGetThreadContent422, MailboxesGetThreadContent500, MailboxesGetThreadContent504, MailboxesGetThreadContentPathParams, MailboxesGetThreadContentQuery, MailboxesGetThreadPathParams, MailboxesGroup, MailboxesList200, MailboxesList400, MailboxesList401, MailboxesList403, MailboxesList422, MailboxesList500, MailboxesList504, MailboxesListActions200, MailboxesListActions400, MailboxesListActions401, MailboxesListActions403, MailboxesListActions404, MailboxesListActions422, MailboxesListActions500, MailboxesListActions504, MailboxesListActionsPathParams, MailboxesListActionsQuery, MailboxesListAddresses200, MailboxesListAddresses400, MailboxesListAddresses401, MailboxesListAddresses403, MailboxesListAddresses404, MailboxesListAddresses422, MailboxesListAddresses500, MailboxesListAddresses504, MailboxesListAddressesPathParams, MailboxesListAddressesQuery, MailboxesListDrafts200, MailboxesListDrafts400, MailboxesListDrafts401, MailboxesListDrafts403, MailboxesListDrafts404, MailboxesListDrafts422, MailboxesListDrafts500, MailboxesListDrafts504, MailboxesListDraftsPathParams, MailboxesListDraftsQuery, MailboxesListEvents200, MailboxesListEvents400, MailboxesListEvents401, MailboxesListEvents403, MailboxesListEvents404, MailboxesListEvents422, MailboxesListEvents500, MailboxesListEvents504, MailboxesListEventsPathParams, MailboxesListEventsQuery, MailboxesListFolders200, MailboxesListFolders400, MailboxesListFolders401, MailboxesListFolders403, MailboxesListFolders404, MailboxesListFolders422, MailboxesListFolders500, MailboxesListFolders504, MailboxesListFoldersPathParams, MailboxesListGrants200, MailboxesListGrants400, MailboxesListGrants401, MailboxesListGrants403, MailboxesListGrants404, MailboxesListGrants422, MailboxesListGrants500, MailboxesListGrants504, MailboxesListGrantsPathParams, MailboxesListGrantsQuery, MailboxesListImports200, MailboxesListImports400, MailboxesListImports401, MailboxesListImports403, MailboxesListImports404, MailboxesListImports422, MailboxesListImports500, MailboxesListImports504, MailboxesListImportsPathParams, MailboxesListLabels200, MailboxesListLabels400, MailboxesListLabels401, MailboxesListLabels403, MailboxesListLabels404, MailboxesListLabels422, MailboxesListLabels500, MailboxesListLabels504, MailboxesListLabelsPathParams, MailboxesListOrganizationDrafts200, MailboxesListOrganizationDrafts400, MailboxesListOrganizationDrafts401, MailboxesListOrganizationDrafts403, MailboxesListOrganizationDrafts404, MailboxesListOrganizationDrafts422, MailboxesListOrganizationDrafts500, MailboxesListOrganizationDrafts504, MailboxesListOrganizationDraftsQuery, MailboxesListOrganizationThreads200, MailboxesListOrganizationThreads400, MailboxesListOrganizationThreads401, MailboxesListOrganizationThreads403, MailboxesListOrganizationThreads404, MailboxesListOrganizationThreads422, MailboxesListOrganizationThreads500, MailboxesListOrganizationThreads504, MailboxesListOrganizationThreadsQuery, MailboxesListQuarantine200, MailboxesListQuarantine400, MailboxesListQuarantine401, MailboxesListQuarantine403, MailboxesListQuarantine404, MailboxesListQuarantine422, MailboxesListQuarantine500, MailboxesListQuarantine504, MailboxesListQuarantinePathParams, MailboxesListQuarantineQuery, MailboxesListQuery, MailboxesListScheduledSends200, MailboxesListScheduledSends400, MailboxesListScheduledSends401, MailboxesListScheduledSends403, MailboxesListScheduledSends404, MailboxesListScheduledSends422, MailboxesListScheduledSends500, MailboxesListScheduledSends504, MailboxesListScheduledSendsPathParams, MailboxesListScheduledSendsQuery, MailboxesListSplits200, MailboxesListSplits400, MailboxesListSplits401, MailboxesListSplits403, MailboxesListSplits422, MailboxesListSplits500, MailboxesListSplits504, MailboxesListThreadMessages200, MailboxesListThreadMessages400, MailboxesListThreadMessages401, MailboxesListThreadMessages403, MailboxesListThreadMessages404, MailboxesListThreadMessages422, MailboxesListThreadMessages500, MailboxesListThreadMessages504, MailboxesListThreadMessagesPathParams, MailboxesListThreadMessagesQuery, MailboxesListThreadNotes200, MailboxesListThreadNotes400, MailboxesListThreadNotes401, MailboxesListThreadNotes403, MailboxesListThreadNotes404, MailboxesListThreadNotes422, MailboxesListThreadNotes500, MailboxesListThreadNotes504, MailboxesListThreadNotesPathParams, MailboxesListThreadNotesQuery, MailboxesListThreads200, MailboxesListThreads400, MailboxesListThreads401, MailboxesListThreads403, MailboxesListThreads404, MailboxesListThreads422, MailboxesListThreads500, MailboxesListThreads504, MailboxesListThreadsPathParams, MailboxesListThreadsQuery, MailboxesPause200, MailboxesPause400, MailboxesPause401, MailboxesPause403, MailboxesPause404, MailboxesPause422, MailboxesPause500, MailboxesPause504, MailboxesPausePathParams, MailboxesReleaseMessage200, MailboxesReleaseMessage400, MailboxesReleaseMessage401, MailboxesReleaseMessage403, MailboxesReleaseMessage404, MailboxesReleaseMessage409, MailboxesReleaseMessage422, MailboxesReleaseMessage500, MailboxesReleaseMessage504, MailboxesReleaseMessagePathParams, MailboxesRemove200, MailboxesRemove400, MailboxesRemove401, MailboxesRemove403, MailboxesRemove404, MailboxesRemove422, MailboxesRemove500, MailboxesRemove502, MailboxesRemove504, MailboxesRemoveEndpoint200, MailboxesRemoveEndpoint400, MailboxesRemoveEndpoint401, MailboxesRemoveEndpoint403, MailboxesRemoveEndpoint404, MailboxesRemoveEndpoint422, MailboxesRemoveEndpoint500, MailboxesRemoveEndpoint504, MailboxesRemoveEndpointPathParams, MailboxesRemovePathParams, MailboxesRemoveThreadLabels200, MailboxesRemoveThreadLabels400, MailboxesRemoveThreadLabels401, MailboxesRemoveThreadLabels403, MailboxesRemoveThreadLabels404, MailboxesRemoveThreadLabels422, MailboxesRemoveThreadLabels500, MailboxesRemoveThreadLabels504, MailboxesRemoveThreadLabelsPathParams, MailboxesRemoveThreadLabelsRequestJson, MailboxesReply200, MailboxesReply202, MailboxesReply400, MailboxesReply401, MailboxesReply402, MailboxesReply403, MailboxesReply404, MailboxesReply409, MailboxesReply422, MailboxesReply429, MailboxesReply500, MailboxesReply502, MailboxesReply503, MailboxesReply504, MailboxesReplyAll200, MailboxesReplyAll202, MailboxesReplyAll400, MailboxesReplyAll401, MailboxesReplyAll402, MailboxesReplyAll403, MailboxesReplyAll404, MailboxesReplyAll409, MailboxesReplyAll422, MailboxesReplyAll429, MailboxesReplyAll500, MailboxesReplyAll502, MailboxesReplyAll503, MailboxesReplyAll504, MailboxesReplyAllHeaders, MailboxesReplyAllPathParams, MailboxesReplyAllRequestJson, MailboxesReplyHeaders, MailboxesReplyPathParams, MailboxesReplyRequestJson, MailboxesRescheduleSend200, MailboxesRescheduleSend400, MailboxesRescheduleSend401, MailboxesRescheduleSend403, MailboxesRescheduleSend404, MailboxesRescheduleSend409, MailboxesRescheduleSend422, MailboxesRescheduleSend429, MailboxesRescheduleSend500, MailboxesRescheduleSend504, MailboxesRescheduleSendPathParams, MailboxesRescheduleSendRequestJson, MailboxesResume200, MailboxesResume400, MailboxesResume401, MailboxesResume403, MailboxesResume404, MailboxesResume422, MailboxesResume500, MailboxesResume504, MailboxesResumePathParams, MailboxesRetryAction200, MailboxesRetryAction202, MailboxesRetryAction400, MailboxesRetryAction401, MailboxesRetryAction402, MailboxesRetryAction403, MailboxesRetryAction404, MailboxesRetryAction409, MailboxesRetryAction422, MailboxesRetryAction429, MailboxesRetryAction500, MailboxesRetryAction502, MailboxesRetryAction503, MailboxesRetryAction504, MailboxesRetryActionPathParams, MailboxesRevokeGrant200, MailboxesRevokeGrant400, MailboxesRevokeGrant401, MailboxesRevokeGrant403, MailboxesRevokeGrant404, MailboxesRevokeGrant409, MailboxesRevokeGrant422, MailboxesRevokeGrant500, MailboxesRevokeGrant504, MailboxesRevokeGrantPathParams, MailboxesScheduleDraft200, MailboxesScheduleDraft400, MailboxesScheduleDraft401, MailboxesScheduleDraft403, MailboxesScheduleDraft404, MailboxesScheduleDraft409, MailboxesScheduleDraft422, MailboxesScheduleDraft429, MailboxesScheduleDraft500, MailboxesScheduleDraft504, MailboxesScheduleDraftPathParams, MailboxesScheduleDraftRequestJson, MailboxesSendDraft200, MailboxesSendDraft202, MailboxesSendDraft400, MailboxesSendDraft401, MailboxesSendDraft402, MailboxesSendDraft403, MailboxesSendDraft404, MailboxesSendDraft409, MailboxesSendDraft422, MailboxesSendDraft429, MailboxesSendDraft500, MailboxesSendDraft502, MailboxesSendDraft503, MailboxesSendDraft504, MailboxesSendDraftHeaders, MailboxesSendDraftPathParams, MailboxesSendMessage200, MailboxesSendMessage202, MailboxesSendMessage400, MailboxesSendMessage401, MailboxesSendMessage402, MailboxesSendMessage403, MailboxesSendMessage404, MailboxesSendMessage409, MailboxesSendMessage422, MailboxesSendMessage429, MailboxesSendMessage500, MailboxesSendMessage502, MailboxesSendMessage503, MailboxesSendMessage504, MailboxesSendMessageHeaders, MailboxesSendMessagePathParams, MailboxesSendMessageRequestJson, MailboxesSendScheduledNow200, MailboxesSendScheduledNow400, MailboxesSendScheduledNow401, MailboxesSendScheduledNow403, MailboxesSendScheduledNow404, MailboxesSendScheduledNow409, MailboxesSendScheduledNow422, MailboxesSendScheduledNow429, MailboxesSendScheduledNow500, MailboxesSendScheduledNow504, MailboxesSendScheduledNowPathParams, MailboxesSendScheduledNowRequestJson, MailboxesStartImport200, MailboxesStartImport400, MailboxesStartImport401, MailboxesStartImport403, MailboxesStartImport404, MailboxesStartImport409, MailboxesStartImport422, MailboxesStartImport500, MailboxesStartImport504, MailboxesStartImportPathParams, MailboxesUnscheduleSend200, MailboxesUnscheduleSend400, MailboxesUnscheduleSend401, MailboxesUnscheduleSend403, MailboxesUnscheduleSend404, MailboxesUnscheduleSend409, MailboxesUnscheduleSend422, MailboxesUnscheduleSend429, MailboxesUnscheduleSend500, MailboxesUnscheduleSend504, MailboxesUnscheduleSendPathParams, MailboxesUnscheduleSendRequestJson, MailboxesUpdate200, MailboxesUpdate400, MailboxesUpdate401, MailboxesUpdate403, MailboxesUpdate404, MailboxesUpdate422, MailboxesUpdate500, MailboxesUpdate504, MailboxesUpdateDraft200, MailboxesUpdateDraft400, MailboxesUpdateDraft401, MailboxesUpdateDraft403, MailboxesUpdateDraft404, MailboxesUpdateDraft409, MailboxesUpdateDraft422, MailboxesUpdateDraft500, MailboxesUpdateDraft504, MailboxesUpdateDraftPathParams, MailboxesUpdateDraftRequestJson, MailboxesUpdateEndpoint200, MailboxesUpdateEndpoint400, MailboxesUpdateEndpoint401, MailboxesUpdateEndpoint403, MailboxesUpdateEndpoint404, MailboxesUpdateEndpoint422, MailboxesUpdateEndpoint500, MailboxesUpdateEndpoint504, MailboxesUpdateEndpointPathParams, MailboxesUpdateEndpointRequestJson, MailboxesUpdateGrant200, MailboxesUpdateGrant400, MailboxesUpdateGrant401, MailboxesUpdateGrant403, MailboxesUpdateGrant404, MailboxesUpdateGrant409, MailboxesUpdateGrant422, MailboxesUpdateGrant500, MailboxesUpdateGrant504, MailboxesUpdateGrantPathParams, MailboxesUpdateGrantRequestJson, MailboxesUpdateLabel200, MailboxesUpdateLabel400, MailboxesUpdateLabel401, MailboxesUpdateLabel403, MailboxesUpdateLabel404, MailboxesUpdateLabel422, MailboxesUpdateLabel500, MailboxesUpdateLabel504, MailboxesUpdateLabelPathParams, MailboxesUpdateLabelRequestJson, MailboxesUpdateNote200, MailboxesUpdateNote400, MailboxesUpdateNote401, MailboxesUpdateNote403, MailboxesUpdateNote404, MailboxesUpdateNote422, MailboxesUpdateNote500, MailboxesUpdateNote504, MailboxesUpdateNotePathParams, MailboxesUpdateNoteRequestJson, MailboxesUpdatePathParams, MailboxesUpdateRequestJson, MailboxesUpdateSplit200, MailboxesUpdateSplit400, MailboxesUpdateSplit401, MailboxesUpdateSplit403, MailboxesUpdateSplit404, MailboxesUpdateSplit422, MailboxesUpdateSplit500, MailboxesUpdateSplit504, MailboxesUpdateSplitPathParams, MailboxesUpdateSplitRequestJson, MailboxesUpdateThread200, MailboxesUpdateThread400, MailboxesUpdateThread401, MailboxesUpdateThread403, MailboxesUpdateThread404, MailboxesUpdateThread422, MailboxesUpdateThread500, MailboxesUpdateThread504, MailboxesUpdateThreadPathParams, MailboxesUpdateThreadRequestJson, OrganizationMailboxDraftPage, OrganizationMailboxDraftSummary, OrganizationMailboxThreadPage, OrganizationMailboxThreadSummary, PolicyAction, PolicyDecision, SmsPhoneNumberId };
3469
3465
 
3470
3466
  //# sourceMappingURL=mailboxes.js.map
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MediaId, OrganizationId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MediaId, OrganizationId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type MediaUploadInstruction = {
5
5
  readonly url: string;
6
6
  readonly method: "PUT";
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppFlowVersionId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared";
4
+ import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppFlowVersionId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared.js";
5
5
  export type MessageSender = {
6
6
  readonly address: string;
7
7
  readonly name: string | null;
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, OrganizationId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, UserId, ValidationError, WhatsAppSetupLinkRedirectUrl, __SamvaRuntimeSensitiveString } from "./shared";
4
+ import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, OrganizationId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, UserId, ValidationError, WhatsAppSetupLinkRedirectUrl, __SamvaRuntimeSensitiveString } from "./shared.js";
5
5
  export type NamespacePortalLinkId = string & EffectBrand.Brand<"NamespacePortalLinkId">;
6
6
  export declare const NamespacePortalLinkId: Schema.brand<Schema.String, "NamespacePortalLinkId">;
7
7
  export type NamespaceSummary = {
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NewsletterId, OrganizationId, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NewsletterId, OrganizationId, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type PublicationDomainPage = {
5
5
  readonly items: ReadonlyArray<{
6
6
  readonly organizationId: OrganizationId;
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, CampaignId, CampaignLatestRun, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NewsletterId, OrganizationId, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, TemplateSourceError, UnauthorizedError, UserId, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, CampaignId, CampaignLatestRun, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NewsletterId, OrganizationId, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, TemplateSourceError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
4
4
  export type NewsletterIssueDocument = {
5
5
  readonly projectId: TemplateProjectId;
6
6
  readonly revision: string;
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, NewsletterId, ResourceNotFoundError, TemplateProjectId, TopicId, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, NewsletterId, ResourceNotFoundError, TemplateProjectId, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type Newsletter = {
5
5
  readonly id: NewsletterId;
6
6
  readonly topicId: TopicId;
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, Operation, OperationAccepted, OperationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, Operation, OperationAccepted, OperationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type OperationPage = {
5
5
  readonly items: ReadonlyArray<Operation>;
6
6
  readonly nextCursor: string | null;
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JsonValue, MailboxId, MalformedRequestError, NamespaceId, OperationAccepted, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JsonValue, MailboxId, MalformedRequestError, NamespaceId, OperationAccepted, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
5
5
  export type PhoneRegion = string;
6
6
  export declare const PhoneRegion: Schema.String;
7
7
  export type InvitationId = string & EffectBrand.Brand<"InvitationId">;
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, PolicyRule, PolicyVersion, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, PolicyRule, PolicyVersion, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type PolicySnapshot = {
5
5
  readonly presets: ReadonlyArray<string>;
6
6
  readonly rules: ReadonlyArray<PolicyRule>;