samva 0.56.0 → 0.56.1

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 (226) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +9 -8
  3. package/dist/effect/accounts.js +9 -10
  4. package/dist/effect/agents.js +16 -17
  5. package/dist/effect/analytics.js +9 -10
  6. package/dist/effect/api-keys.js +11 -12
  7. package/dist/effect/approval-requests.js +7 -8
  8. package/dist/effect/attachments.js +7 -8
  9. package/dist/effect/brands.js +9 -10
  10. package/dist/effect/campaigns.js +18 -19
  11. package/dist/effect/contact-groups.js +13 -14
  12. package/dist/effect/contacts.js +29 -30
  13. package/dist/effect/conversations.js +16 -17
  14. package/dist/effect/custom-fields.js +7 -8
  15. package/dist/effect/descriptors/accounts.d.ts +50 -52
  16. package/dist/effect/descriptors/accounts.js +50 -52
  17. package/dist/effect/descriptors/agents.d.ts +113 -115
  18. package/dist/effect/descriptors/agents.js +120 -122
  19. package/dist/effect/descriptors/analytics.d.ts +47 -49
  20. package/dist/effect/descriptors/analytics.js +42 -44
  21. package/dist/effect/descriptors/api-keys.d.ts +69 -71
  22. package/dist/effect/descriptors/api-keys.js +73 -75
  23. package/dist/effect/descriptors/approval-requests.d.ts +34 -36
  24. package/dist/effect/descriptors/approval-requests.js +36 -38
  25. package/dist/effect/descriptors/attachments.d.ts +34 -36
  26. package/dist/effect/descriptors/attachments.js +36 -38
  27. package/dist/effect/descriptors/brands.d.ts +51 -53
  28. package/dist/effect/descriptors/brands.js +53 -55
  29. package/dist/effect/descriptors/campaigns.d.ts +130 -132
  30. package/dist/effect/descriptors/campaigns.js +137 -139
  31. package/dist/effect/descriptors/contact-groups.d.ts +86 -88
  32. package/dist/effect/descriptors/contact-groups.js +90 -92
  33. package/dist/effect/descriptors/contacts.d.ts +242 -244
  34. package/dist/effect/descriptors/contacts.js +227 -229
  35. package/dist/effect/descriptors/conversations.d.ts +114 -116
  36. package/dist/effect/descriptors/conversations.js +123 -125
  37. package/dist/effect/descriptors/custom-fields.d.ts +33 -35
  38. package/dist/effect/descriptors/custom-fields.js +33 -35
  39. package/dist/effect/descriptors/email.d.ts +623 -625
  40. package/dist/effect/descriptors/email.js +562 -578
  41. package/dist/effect/descriptors/events.d.ts +15 -17
  42. package/dist/effect/descriptors/events.js +14 -16
  43. package/dist/effect/descriptors/feedback.d.ts +7 -9
  44. package/dist/effect/descriptors/feedback.js +3 -3
  45. package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
  46. package/dist/effect/descriptors/integrations-catalog.js +142 -144
  47. package/dist/effect/descriptors/integrations.d.ts +60 -62
  48. package/dist/effect/descriptors/integrations.js +63 -65
  49. package/dist/effect/descriptors/journeys.d.ts +123 -125
  50. package/dist/effect/descriptors/journeys.js +133 -135
  51. package/dist/effect/descriptors/logs.d.ts +16 -18
  52. package/dist/effect/descriptors/logs.js +16 -18
  53. package/dist/effect/descriptors/mailboxes.d.ts +780 -782
  54. package/dist/effect/descriptors/mailboxes.js +795 -797
  55. package/dist/effect/descriptors/media.d.ts +43 -45
  56. package/dist/effect/descriptors/media.js +46 -48
  57. package/dist/effect/descriptors/messages.d.ts +86 -88
  58. package/dist/effect/descriptors/messages.js +83 -92
  59. package/dist/effect/descriptors/namespaces.d.ts +96 -98
  60. package/dist/effect/descriptors/namespaces.js +107 -109
  61. package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
  62. package/dist/effect/descriptors/newsletter-domains.js +39 -41
  63. package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
  64. package/dist/effect/descriptors/newsletter-issues.js +109 -111
  65. package/dist/effect/descriptors/newsletters.d.ts +43 -45
  66. package/dist/effect/descriptors/newsletters.js +46 -48
  67. package/dist/effect/descriptors/operations.d.ts +25 -27
  68. package/dist/effect/descriptors/operations.js +26 -28
  69. package/dist/effect/descriptors/organizations.d.ts +96 -98
  70. package/dist/effect/descriptors/organizations.js +86 -88
  71. package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
  72. package/dist/effect/descriptors/phone-numbers.js +40 -42
  73. package/dist/effect/descriptors/policies.d.ts +26 -28
  74. package/dist/effect/descriptors/policies.js +29 -31
  75. package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
  76. package/dist/effect/descriptors/scheduled-messages.js +43 -45
  77. package/dist/effect/descriptors/subscriptions.d.ts +7 -9
  78. package/dist/effect/descriptors/subscriptions.js +3 -3
  79. package/dist/effect/descriptors/template-registrations.d.ts +26 -28
  80. package/dist/effect/descriptors/template-registrations.js +29 -31
  81. package/dist/effect/descriptors/template-share-links.d.ts +44 -46
  82. package/dist/effect/descriptors/template-share-links.js +49 -51
  83. package/dist/effect/descriptors/templates.d.ts +361 -363
  84. package/dist/effect/descriptors/templates.js +348 -350
  85. package/dist/effect/descriptors/topic-forms.d.ts +44 -46
  86. package/dist/effect/descriptors/topic-forms.js +49 -51
  87. package/dist/effect/descriptors/topics.d.ts +77 -79
  88. package/dist/effect/descriptors/topics.js +80 -82
  89. package/dist/effect/descriptors/webhooks.d.ts +96 -98
  90. package/dist/effect/descriptors/webhooks.js +103 -105
  91. package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
  92. package/dist/effect/descriptors/whats-app-flows.js +90 -92
  93. package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
  94. package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
  95. package/dist/effect/descriptors/whats-app.d.ts +110 -112
  96. package/dist/effect/descriptors/whats-app.js +111 -113
  97. package/dist/effect/descriptors/whoami.d.ts +7 -9
  98. package/dist/effect/descriptors/whoami.js +3 -3
  99. package/dist/effect/email.js +66 -67
  100. package/dist/effect/events.js +5 -6
  101. package/dist/effect/feedback.js +4 -4
  102. package/dist/effect/generated/accounts.d.ts +144 -142
  103. package/dist/effect/generated/accounts.js +14 -9
  104. package/dist/effect/generated/agents.d.ts +1502 -1493
  105. package/dist/effect/generated/agents.js +28 -16
  106. package/dist/effect/generated/analytics.d.ts +55 -53
  107. package/dist/effect/generated/analytics.js +14 -9
  108. package/dist/effect/generated/api-keys.d.ts +216 -212
  109. package/dist/effect/generated/api-keys.js +18 -11
  110. package/dist/effect/generated/approval-requests.d.ts +60 -60
  111. package/dist/effect/generated/approval-requests.js +10 -7
  112. package/dist/effect/generated/attachments.d.ts +32 -32
  113. package/dist/effect/generated/attachments.js +10 -7
  114. package/dist/effect/generated/brands.d.ts +179 -177
  115. package/dist/effect/generated/brands.js +14 -9
  116. package/dist/effect/generated/campaigns.d.ts +1083 -1072
  117. package/dist/effect/generated/campaigns.js +32 -18
  118. package/dist/effect/generated/contact-events.d.ts +3 -6
  119. package/dist/effect/generated/contact-events.js +4 -4
  120. package/dist/effect/generated/contact-groups.d.ts +186 -180
  121. package/dist/effect/generated/contact-groups.js +22 -13
  122. package/dist/effect/generated/contacts.d.ts +1565 -1545
  123. package/dist/effect/generated/contacts.js +50 -27
  124. package/dist/effect/generated/conversations.d.ts +340 -331
  125. package/dist/effect/generated/conversations.js +28 -16
  126. package/dist/effect/generated/custom-fields.d.ts +63 -63
  127. package/dist/effect/generated/custom-fields.js +10 -7
  128. package/dist/effect/generated/email.d.ts +2731 -2671
  129. package/dist/effect/generated/email.js +130 -67
  130. package/dist/effect/generated/events.d.ts +160 -162
  131. package/dist/effect/generated/events.js +6 -5
  132. package/dist/effect/generated/feedback.d.ts +3 -6
  133. package/dist/effect/generated/feedback.js +4 -4
  134. package/dist/effect/generated/index.d.ts +174 -45
  135. package/dist/effect/generated/integrations-catalog.d.ts +459 -446
  136. package/dist/effect/generated/integrations-catalog.js +36 -20
  137. package/dist/effect/generated/integrations.d.ts +155 -152
  138. package/dist/effect/generated/integrations.js +16 -10
  139. package/dist/effect/generated/journeys.d.ts +864 -854
  140. package/dist/effect/generated/journeys.js +30 -17
  141. package/dist/effect/generated/logs.d.ts +147 -149
  142. package/dist/effect/generated/logs.js +6 -5
  143. package/dist/effect/generated/mailboxes.d.ts +7271 -7196
  144. package/dist/effect/generated/mailboxes.js +160 -82
  145. package/dist/effect/generated/media.d.ts +77 -76
  146. package/dist/effect/generated/media.js +12 -8
  147. package/dist/effect/generated/messages.d.ts +1092 -1086
  148. package/dist/effect/generated/messages.js +22 -13
  149. package/dist/effect/generated/namespaces.d.ts +184 -177
  150. package/dist/effect/generated/namespaces.js +24 -14
  151. package/dist/effect/generated/newsletter-domains.d.ts +57 -57
  152. package/dist/effect/generated/newsletter-domains.js +10 -7
  153. package/dist/effect/generated/newsletter-issues.d.ts +225 -218
  154. package/dist/effect/generated/newsletter-issues.js +24 -14
  155. package/dist/effect/generated/newsletters.d.ts +46 -45
  156. package/dist/effect/generated/newsletters.js +12 -8
  157. package/dist/effect/generated/operations.d.ts +79 -80
  158. package/dist/effect/generated/operations.js +8 -6
  159. package/dist/effect/generated/organizations.d.ts +438 -430
  160. package/dist/effect/generated/organizations.js +26 -15
  161. package/dist/effect/generated/phone-numbers.d.ts +87 -86
  162. package/dist/effect/generated/phone-numbers.js +12 -8
  163. package/dist/effect/generated/policies.d.ts +64 -65
  164. package/dist/effect/generated/policies.js +8 -6
  165. package/dist/effect/generated/scheduled-messages.d.ts +66 -65
  166. package/dist/effect/generated/scheduled-messages.js +12 -8
  167. package/dist/effect/generated/shared.d.ts +33 -33
  168. package/dist/effect/generated/shared.js +61 -61
  169. package/dist/effect/generated/subscriptions.d.ts +3 -6
  170. package/dist/effect/generated/subscriptions.js +4 -4
  171. package/dist/effect/generated/template-registrations.d.ts +135 -136
  172. package/dist/effect/generated/template-registrations.js +8 -6
  173. package/dist/effect/generated/template-share-links.d.ts +25 -24
  174. package/dist/effect/generated/template-share-links.js +12 -8
  175. package/dist/effect/generated/templates.d.ts +2678 -2645
  176. package/dist/effect/generated/templates.js +76 -40
  177. package/dist/effect/generated/topic-forms.d.ts +47 -46
  178. package/dist/effect/generated/topic-forms.js +12 -8
  179. package/dist/effect/generated/topics.d.ts +204 -199
  180. package/dist/effect/generated/topics.js +20 -12
  181. package/dist/effect/generated/webhooks.d.ts +268 -261
  182. package/dist/effect/generated/webhooks.js +24 -14
  183. package/dist/effect/generated/whats-app-flows.d.ts +250 -244
  184. package/dist/effect/generated/whats-app-flows.js +22 -13
  185. package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
  186. package/dist/effect/generated/whats-app-setup-links.js +10 -7
  187. package/dist/effect/generated/whats-app.d.ts +439 -430
  188. package/dist/effect/generated/whats-app.js +28 -16
  189. package/dist/effect/generated/whoami.d.ts +3 -6
  190. package/dist/effect/generated/whoami.js +4 -4
  191. package/dist/effect/integrations-catalog.js +20 -21
  192. package/dist/effect/integrations.js +10 -11
  193. package/dist/effect/internal/client.d.ts +2 -1
  194. package/dist/effect/internal/client.js +3 -3
  195. package/dist/effect/internal/email-sender.js +5 -4
  196. package/dist/effect/internal/operation.d.ts +11 -7
  197. package/dist/effect/internal/operation.js +17 -12
  198. package/dist/effect/internal/send.js +11 -8
  199. package/dist/effect/journeys.js +17 -18
  200. package/dist/effect/logs.js +5 -6
  201. package/dist/effect/mailboxes.js +82 -83
  202. package/dist/effect/media.js +8 -9
  203. package/dist/effect/messages.js +12 -13
  204. package/dist/effect/namespaces.js +14 -15
  205. package/dist/effect/newsletter-domains.js +7 -8
  206. package/dist/effect/newsletter-issues.js +14 -15
  207. package/dist/effect/newsletters.js +8 -9
  208. package/dist/effect/operations.js +6 -7
  209. package/dist/effect/organizations.js +15 -16
  210. package/dist/effect/phone-numbers.js +8 -9
  211. package/dist/effect/policies.js +6 -7
  212. package/dist/effect/runtime.js +3 -3
  213. package/dist/effect/scheduled-messages.js +8 -9
  214. package/dist/effect/subscriptions.js +4 -4
  215. package/dist/effect/template-registrations.js +6 -7
  216. package/dist/effect/template-share-links.js +8 -9
  217. package/dist/effect/templates.js +40 -41
  218. package/dist/effect/topic-forms.js +8 -9
  219. package/dist/effect/topics.js +12 -13
  220. package/dist/effect/webhooks.js +14 -15
  221. package/dist/effect/whatsapp-flows.js +13 -14
  222. package/dist/effect/whatsapp-setup-links.js +7 -8
  223. package/dist/effect/whatsapp.js +16 -17
  224. package/dist/effect/whoami.js +4 -4
  225. package/dist/package.json.js +1 -1
  226. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
2
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
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, SmsPhoneNumberId, SuccessResponse, TemplateChannelVariantId, TemplateId, UnauthorizedError, UserId, ValidationError, WhatsAppBusinessAccountId, WhatsAppServiceWindowClosedError } from "./shared.js";
5
5
  // src/effect/generated/mailboxes.ts
@@ -2589,7 +2589,7 @@ const MailboxesListOrganizationThreads404 = ResourceNotFoundError;
2589
2589
  const MailboxesListOrganizationThreads422 = ValidationError;
2590
2590
  const MailboxesListOrganizationThreads500 = InternalError;
2591
2591
  const MailboxesListOrganizationThreads504 = GatewayTimeoutError;
2592
- var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEndpoint.get("mailboxesList", "/v1/mailboxes", {
2592
+ const MailboxesListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesList", "/v1/mailboxes", {
2593
2593
  query: MailboxesListQuery,
2594
2594
  success: MailboxesList200,
2595
2595
  error: [
@@ -2600,7 +2600,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2600
2600
  MailboxesList500,
2601
2601
  MailboxesList504.pipe(HttpApiSchema.status(504))
2602
2602
  ]
2603
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.list").annotate(OpenApi.Summary, "List mailboxes").annotate(OpenApi.Description, "Returns summaries of the mailboxes the caller can read, newest first, filterable by namespace (`namespaceId`) and creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`."), HttpApiEndpoint.post("mailboxesCreate", "/v1/mailboxes", {
2603
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.list").annotate(OpenApi.Summary, "List mailboxes").annotate(OpenApi.Description, "Returns summaries of the mailboxes the caller can read, newest first, filterable by namespace (`namespaceId`) and creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`."))();
2604
+ const MailboxesCreateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreate", "/v1/mailboxes", {
2604
2605
  headers: MailboxesCreateHeaders,
2605
2606
  payload: MailboxesCreateRequestJson,
2606
2607
  success: MailboxesCreate201.pipe(HttpApiSchema.status(201)),
@@ -2616,7 +2617,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2616
2617
  MailboxesCreate502.pipe(HttpApiSchema.status(502)),
2617
2618
  MailboxesCreate504.pipe(HttpApiSchema.status(504))
2618
2619
  ]
2619
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.create").annotate(OpenApi.Summary, "Create a mailbox").annotate(OpenApi.Description, "Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it once its sendingStatus is ready. Hosted addresses return pending while sending setup completes. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Pass Idempotency-Key to retry safely: the same key and body return the original mailbox in its current state; a changed body returns 409. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance."), HttpApiEndpoint.get("mailboxesGet", "/v1/mailboxes/:id", {
2620
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.create").annotate(OpenApi.Summary, "Create a mailbox").annotate(OpenApi.Description, "Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it once its sendingStatus is ready. Hosted addresses return pending while sending setup completes. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Pass Idempotency-Key to retry safely: the same key and body return the original mailbox in its current state; a changed body returns 409. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance."))();
2621
+ const MailboxesGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGet", "/v1/mailboxes/:id", {
2620
2622
  params: MailboxesGetPathParams,
2621
2623
  success: MailboxesGet200,
2622
2624
  error: [
@@ -2628,7 +2630,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2628
2630
  MailboxesGet500,
2629
2631
  MailboxesGet504.pipe(HttpApiSchema.status(504))
2630
2632
  ]
2631
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.get").annotate(OpenApi.Summary, "Get a mailbox").annotate(OpenApi.Description, "Returns a mailbox with its endpoints and metadata; each endpoint says whether it is the mailbox's default on its channel. Its grants are `GET /v1/mailboxes/{id}/grants` and its send policies `GET /v1/mailboxes/{id}/policies`."), HttpApiEndpoint.delete("mailboxesRemove", "/v1/mailboxes/:id", {
2633
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.get").annotate(OpenApi.Summary, "Get a mailbox").annotate(OpenApi.Description, "Returns a mailbox with its endpoints and metadata; each endpoint says whether it is the mailbox's default on its channel. Its grants are `GET /v1/mailboxes/{id}/grants` and its send policies `GET /v1/mailboxes/{id}/policies`."))();
2634
+ const MailboxesRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesRemove", "/v1/mailboxes/:id", {
2632
2635
  params: MailboxesRemovePathParams,
2633
2636
  success: MailboxesRemove200,
2634
2637
  error: [
@@ -2641,7 +2644,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2641
2644
  MailboxesRemove502.pipe(HttpApiSchema.status(502)),
2642
2645
  MailboxesRemove504.pipe(HttpApiSchema.status(504))
2643
2646
  ]
2644
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.remove").annotate(OpenApi.Summary, "Delete a mailbox").annotate(OpenApi.Description, "Deletes a mailbox with its endpoints, threads, drafts, and history. The messages it received retain their privacy. The mailbox leaves every API key scope and webhook endpoint filter that named it; a key or endpoint left with no mailbox is disabled. A signed-in organization owner may delete a former member's personal mailbox without reading it."), HttpApiEndpoint.patch("mailboxesUpdate", "/v1/mailboxes/:id", {
2647
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.remove").annotate(OpenApi.Summary, "Delete a mailbox").annotate(OpenApi.Description, "Deletes a mailbox with its endpoints, threads, drafts, and history. The messages it received retain their privacy. The mailbox leaves every API key scope and webhook endpoint filter that named it; a key or endpoint left with no mailbox is disabled. A signed-in organization owner may delete a former member's personal mailbox without reading it."))();
2648
+ const MailboxesUpdateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdate", "/v1/mailboxes/:id", {
2645
2649
  params: MailboxesUpdatePathParams,
2646
2650
  payload: MailboxesUpdateRequestJson,
2647
2651
  success: MailboxesUpdate200,
@@ -2654,7 +2658,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2654
2658
  MailboxesUpdate500,
2655
2659
  MailboxesUpdate504.pipe(HttpApiSchema.status(504))
2656
2660
  ]
2657
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.update").annotate(OpenApi.Summary, "Update a mailbox").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key. Change an endpoint's sender name or default with `PATCH /v1/mailboxes/{id}/endpoints/{endpointId}`."), HttpApiEndpoint.get("mailboxesListActions", "/v1/mailboxes/:id/actions", {
2661
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.update").annotate(OpenApi.Summary, "Update a mailbox").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key. Change an endpoint's sender name or default with `PATCH /v1/mailboxes/{id}/endpoints/{endpointId}`."))();
2662
+ const MailboxesListActionsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListActions", "/v1/mailboxes/:id/actions", {
2658
2663
  params: MailboxesListActionsPathParams,
2659
2664
  query: MailboxesListActionsQuery,
2660
2665
  success: MailboxesListActions200,
@@ -2667,7 +2672,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2667
2672
  MailboxesListActions500,
2668
2673
  MailboxesListActions504.pipe(HttpApiSchema.status(504))
2669
2674
  ]
2670
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listActions").annotate(OpenApi.Summary, "List mailbox actions").annotate(OpenApi.Description, "Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the actions waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("mailboxesGetAction", "/v1/mailboxes/:id/actions/:actionId", {
2675
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listActions").annotate(OpenApi.Summary, "List mailbox actions").annotate(OpenApi.Description, "Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the actions waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
2676
+ const MailboxesGetActionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetAction", "/v1/mailboxes/:id/actions/:actionId", {
2671
2677
  params: MailboxesGetActionPathParams,
2672
2678
  success: MailboxesGetAction200,
2673
2679
  error: [
@@ -2679,7 +2685,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2679
2685
  MailboxesGetAction500,
2680
2686
  MailboxesGetAction504.pipe(HttpApiSchema.status(504))
2681
2687
  ]
2682
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getAction").annotate(OpenApi.Summary, "Get a mailbox action").annotate(OpenApi.Description, "Returns one action with its current progress. Send actions expose their immutable approved content, deadline, problem, and accepted receipt. A caller with mailbox read access may inspect actions; send-only callers may inspect only their own proposals. Acceptance and mailbox completion do not mean recipient delivery."), HttpApiEndpoint.post("mailboxesApproveAction", "/v1/mailboxes/:id/actions/:actionId/approve", {
2688
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getAction").annotate(OpenApi.Summary, "Get a mailbox action").annotate(OpenApi.Description, "Returns one action with its current progress. Send actions expose their immutable approved content, deadline, problem, and accepted receipt. A caller with mailbox read access may inspect actions; send-only callers may inspect only their own proposals. Acceptance and mailbox completion do not mean recipient delivery."))();
2689
+ const MailboxesApproveActionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesApproveAction", "/v1/mailboxes/:id/actions/:actionId/approve", {
2683
2690
  params: MailboxesApproveActionPathParams,
2684
2691
  payload: MailboxesApproveActionRequestJson,
2685
2692
  success: [MailboxesApproveAction200, MailboxesApproveAction202.pipe(HttpApiSchema.status(202))],
@@ -2697,7 +2704,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2697
2704
  MailboxesApproveAction503.pipe(HttpApiSchema.status(503)),
2698
2705
  MailboxesApproveAction504.pipe(HttpApiSchema.status(504))
2699
2706
  ]
2700
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer; an API key is rejected with `403`. Non-send approvals execute synchronously and return 200 with their own execution states. Set `always: true` to add an actor-specific rule allowing matching future actions, subject to policy floors and guards. Remembering an allowance for a hosted agent or API key requires an organization owner or admin; for a hosted agent's integration tool call it lets that tool run without approval for every agent, which only the organization owner may do. A held action's `alwaysAllow` says who may and whether the caller can. A hand-off cannot be always allowed. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
2707
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer; an API key is rejected with `403`. Non-send approvals execute synchronously and return 200 with their own execution states. Set `always: true` to add an actor-specific rule allowing matching future actions, subject to policy floors and guards. Remembering an allowance for a hosted agent or API key requires an organization owner or admin; for a hosted agent's integration tool call it lets that tool run without approval for every agent, which only the organization owner may do. A held action's `alwaysAllow` says who may and whether the caller can. A hand-off cannot be always allowed. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event."))();
2708
+ const MailboxesCancelActionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
2701
2709
  params: MailboxesCancelActionPathParams,
2702
2710
  success: [MailboxesCancelAction200, MailboxesCancelAction202.pipe(HttpApiSchema.status(202))],
2703
2711
  error: [
@@ -2714,7 +2722,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2714
2722
  MailboxesCancelAction503.pipe(HttpApiSchema.status(503)),
2715
2723
  MailboxesCancelAction504.pipe(HttpApiSchema.status(504))
2716
2724
  ]
2717
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel; an API key is rejected with `403`, even one with full access. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent. Cancelling a send held for approval records `resolution.outcome: cancelled` and publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
2725
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel; an API key is rejected with `403`, even one with full access. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent. Cancelling a send held for approval records `resolution.outcome: cancelled` and publishes one `mailbox.action.resolved` event."))();
2726
+ const MailboxesDenyActionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
2718
2727
  params: MailboxesDenyActionPathParams,
2719
2728
  payload: MailboxesDenyActionRequestJson,
2720
2729
  success: MailboxesDenyAction200,
@@ -2728,7 +2737,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2728
2737
  MailboxesDenyAction500,
2729
2738
  MailboxesDenyAction504.pipe(HttpApiSchema.status(504))
2730
2739
  ]
2731
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it; an API key is rejected with `403`. The action's `resolution` records the denier and reason; denying a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesRetryAction", "/v1/mailboxes/:id/actions/:actionId/retry", {
2740
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it; an API key is rejected with `403`. The action's `resolution` records the denier and reason; denying a held send publishes one `mailbox.action.resolved` event."))();
2741
+ const MailboxesRetryActionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesRetryAction", "/v1/mailboxes/:id/actions/:actionId/retry", {
2732
2742
  params: MailboxesRetryActionPathParams,
2733
2743
  success: [MailboxesRetryAction200, MailboxesRetryAction202.pipe(HttpApiSchema.status(202))],
2734
2744
  error: [
@@ -2745,7 +2755,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2745
2755
  MailboxesRetryAction503.pipe(HttpApiSchema.status(503)),
2746
2756
  MailboxesRetryAction504.pipe(HttpApiSchema.status(504))
2747
2757
  ]
2748
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same eligible action while preserving its content, message identity, existing retry delays and original deadline. A queued action can resume while cleanup from an ended send attempt waits. A send attempt that is still running or whose status is unknown cannot be retried. Only an authorized person who proposed the send or can approve actions may retry; an API key is rejected with `403`, even one with full access. Automatic waits need no manual Retry. This does not grant new approval or resubmit an accepted or uncertain send."), HttpApiEndpoint.get("mailboxesListAddresses", "/v1/mailboxes/:id/addresses", {
2758
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same eligible action while preserving its content, message identity, existing retry delays and original deadline. A queued action can resume while cleanup from an ended send attempt waits. A send attempt that is still running or whose status is unknown cannot be retried. Only an authorized person who proposed the send or can approve actions may retry; an API key is rejected with `403`, even one with full access. Automatic waits need no manual Retry. This does not grant new approval or resubmit an accepted or uncertain send."))();
2759
+ const MailboxesListAddressesEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListAddresses", "/v1/mailboxes/:id/addresses", {
2749
2760
  params: MailboxesListAddressesPathParams,
2750
2761
  query: MailboxesListAddressesQuery,
2751
2762
  success: MailboxesListAddresses200,
@@ -2758,7 +2769,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2758
2769
  MailboxesListAddresses500,
2759
2770
  MailboxesListAddresses504.pipe(HttpApiSchema.status(504))
2760
2771
  ]
2761
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listAddresses").annotate(OpenApi.Summary, "List mailbox addresses").annotate(OpenApi.Description, "Lists up to 1000 distinct registered and observed email addresses in sorted order, retaining registered endpoints first when the bound applies. With recipient query parameters, resolves only those candidates as this mailbox’s own addresses, including plus fallback but excluding literal tagged endpoints owned by another mailbox. Use this candidate read for reply addressing."), HttpApiEndpoint.get("mailboxesGetAgentActivity", "/v1/mailboxes/:id/agent-activity", {
2772
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listAddresses").annotate(OpenApi.Summary, "List mailbox addresses").annotate(OpenApi.Description, "Lists up to 1000 distinct registered and observed email addresses in sorted order, retaining registered endpoints first when the bound applies. With recipient query parameters, resolves only those candidates as this mailbox’s own addresses, including plus fallback but excluding literal tagged endpoints owned by another mailbox. Use this candidate read for reply addressing."))();
2773
+ const MailboxesGetAgentActivityEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetAgentActivity", "/v1/mailboxes/:id/agent-activity", {
2762
2774
  params: MailboxesGetAgentActivityPathParams,
2763
2775
  query: MailboxesGetAgentActivityQuery,
2764
2776
  success: MailboxesGetAgentActivity200,
@@ -2771,7 +2783,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2771
2783
  MailboxesGetAgentActivity500,
2772
2784
  MailboxesGetAgentActivity504.pipe(HttpApiSchema.status(504))
2773
2785
  ]
2774
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getAgentActivity").annotate(OpenApi.Summary, "Get mailbox activity").annotate(OpenApi.Description, "Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the actions waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`."), HttpApiEndpoint.get("mailboxesListDrafts", "/v1/mailboxes/:id/drafts", {
2786
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getAgentActivity").annotate(OpenApi.Summary, "Get mailbox activity").annotate(OpenApi.Description, "Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the actions waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`."))();
2787
+ const MailboxesListDraftsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListDrafts", "/v1/mailboxes/:id/drafts", {
2775
2788
  params: MailboxesListDraftsPathParams,
2776
2789
  query: MailboxesListDraftsQuery,
2777
2790
  success: MailboxesListDrafts200,
@@ -2784,7 +2797,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2784
2797
  MailboxesListDrafts500,
2785
2798
  MailboxesListDrafts504.pipe(HttpApiSchema.status(504))
2786
2799
  ]
2787
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listDrafts").annotate(OpenApi.Summary, "List drafts").annotate(OpenApi.Description, "Returns summaries of the caller's unsent drafts in the mailbox, newest first, optionally for one thread. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a draft's body with `GET /v1/mailboxes/{id}/drafts/{draftId}`."), HttpApiEndpoint.post("mailboxesCreateDraft", "/v1/mailboxes/:id/drafts", {
2800
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listDrafts").annotate(OpenApi.Summary, "List drafts").annotate(OpenApi.Description, "Returns summaries of the caller's unsent drafts in the mailbox, newest first, optionally for one thread. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a draft's body with `GET /v1/mailboxes/{id}/drafts/{draftId}`."))();
2801
+ const MailboxesCreateDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateDraft", "/v1/mailboxes/:id/drafts", {
2788
2802
  params: MailboxesCreateDraftPathParams,
2789
2803
  payload: MailboxesCreateDraftRequestJson,
2790
2804
  success: MailboxesCreateDraft201.pipe(HttpApiSchema.status(201)),
@@ -2797,7 +2811,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2797
2811
  MailboxesCreateDraft500,
2798
2812
  MailboxesCreateDraft504.pipe(HttpApiSchema.status(504))
2799
2813
  ]
2800
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createDraft").annotate(OpenApi.Summary, "Create a draft").annotate(OpenApi.Description, "Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`."), HttpApiEndpoint.get("mailboxesGetDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2814
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createDraft").annotate(OpenApi.Summary, "Create a draft").annotate(OpenApi.Description, "Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`."))();
2815
+ const MailboxesGetDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2801
2816
  params: MailboxesGetDraftPathParams,
2802
2817
  success: MailboxesGetDraft200,
2803
2818
  error: [
@@ -2809,7 +2824,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2809
2824
  MailboxesGetDraft500,
2810
2825
  MailboxesGetDraft504.pipe(HttpApiSchema.status(504))
2811
2826
  ]
2812
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getDraft").annotate(OpenApi.Summary, "Get a draft").annotate(OpenApi.Description, "Returns one of the caller's drafts, or the draft of a send waiting for approval when the caller may approve it."), HttpApiEndpoint.delete("mailboxesDeleteDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2827
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getDraft").annotate(OpenApi.Summary, "Get a draft").annotate(OpenApi.Description, "Returns one of the caller's drafts, or the draft of a send waiting for approval when the caller may approve it."))();
2828
+ const MailboxesDeleteDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDeleteDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2813
2829
  params: MailboxesDeleteDraftPathParams,
2814
2830
  success: MailboxesDeleteDraft200,
2815
2831
  error: [
@@ -2821,7 +2837,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2821
2837
  MailboxesDeleteDraft500,
2822
2838
  MailboxesDeleteDraft504.pipe(HttpApiSchema.status(504))
2823
2839
  ]
2824
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteDraft").annotate(OpenApi.Summary, "Delete a draft").annotate(OpenApi.Description, "Discards an unsent draft."), HttpApiEndpoint.patch("mailboxesUpdateDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2840
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteDraft").annotate(OpenApi.Summary, "Delete a draft").annotate(OpenApi.Description, "Discards an unsent draft."))();
2841
+ const MailboxesUpdateDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdateDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2825
2842
  params: MailboxesUpdateDraftPathParams,
2826
2843
  payload: MailboxesUpdateDraftRequestJson,
2827
2844
  success: MailboxesUpdateDraft200,
@@ -2835,7 +2852,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2835
2852
  MailboxesUpdateDraft500,
2836
2853
  MailboxesUpdateDraft504.pipe(HttpApiSchema.status(504))
2837
2854
  ]
2838
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateDraft").annotate(OpenApi.Summary, "Update a draft").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest; `null` clears an optional field. A draft whose send waits for approval cannot change and conflicts."), HttpApiEndpoint.post("mailboxesScheduleDraft", "/v1/mailboxes/:id/drafts/:draftId/schedule", {
2855
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateDraft").annotate(OpenApi.Summary, "Update a draft").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest; `null` clears an optional field. A draft whose send waits for approval cannot change and conflicts."))();
2856
+ const MailboxesScheduleDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesScheduleDraft", "/v1/mailboxes/:id/drafts/:draftId/schedule", {
2839
2857
  params: MailboxesScheduleDraftPathParams,
2840
2858
  payload: MailboxesScheduleDraftRequestJson,
2841
2859
  success: MailboxesScheduleDraft200,
@@ -2850,7 +2868,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2850
2868
  MailboxesScheduleDraft500,
2851
2869
  MailboxesScheduleDraft504.pipe(HttpApiSchema.status(504))
2852
2870
  ]
2853
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.scheduleDraft").annotate(OpenApi.Summary, "Schedule a mailbox draft").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."), HttpApiEndpoint.post("mailboxesSendDraft", "/v1/mailboxes/:id/drafts/:draftId/send", {
2871
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.scheduleDraft").annotate(OpenApi.Summary, "Schedule a mailbox draft").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."))();
2872
+ const MailboxesSendDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesSendDraft", "/v1/mailboxes/:id/drafts/:draftId/send", {
2854
2873
  params: MailboxesSendDraftPathParams,
2855
2874
  headers: MailboxesSendDraftHeaders,
2856
2875
  success: [MailboxesSendDraft200, MailboxesSendDraft202.pipe(HttpApiSchema.status(202))],
@@ -2868,7 +2887,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2868
2887
  MailboxesSendDraft503.pipe(HttpApiSchema.status(503)),
2869
2888
  MailboxesSendDraft504.pipe(HttpApiSchema.status(504))
2870
2889
  ]
2871
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendDraft").annotate(OpenApi.Summary, "Send a draft").annotate(OpenApi.Description, "Sends one of the caller's drafts: a reply draft in its thread, any other draft as a new conversation. A draft needs recipients, a subject, and a body."), HttpApiEndpoint.post("mailboxesCreateEndpoint", "/v1/mailboxes/:id/endpoints", {
2890
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendDraft").annotate(OpenApi.Summary, "Send a draft").annotate(OpenApi.Description, "Sends one of the caller's drafts: a reply draft in its thread, any other draft as a new conversation. A draft needs recipients, a subject, and a body."))();
2891
+ const MailboxesCreateEndpointEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateEndpoint", "/v1/mailboxes/:id/endpoints", {
2872
2892
  params: MailboxesCreateEndpointPathParams,
2873
2893
  payload: MailboxesCreateEndpointRequestJson,
2874
2894
  success: MailboxesCreateEndpoint201.pipe(HttpApiSchema.status(201)),
@@ -2882,7 +2902,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2882
2902
  MailboxesCreateEndpoint500,
2883
2903
  MailboxesCreateEndpoint504.pipe(HttpApiSchema.status(504))
2884
2904
  ]
2885
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createEndpoint").annotate(OpenApi.Summary, "Add an endpoint to a mailbox").annotate(OpenApi.Description, "Adds an endpoint to a mailbox and returns the mailbox with status 201. It follows the same rules as the endpoint of a new mailbox: an email address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, a phone number must be one the organization connected on that channel, and no mailbox may already hold it (409). Messages sent to it reach the mailbox from now on. It becomes the default on its channel only when the mailbox has no endpoint there yet."), HttpApiEndpoint.delete("mailboxesRemoveEndpoint", "/v1/mailboxes/:id/endpoints/:endpointId", {
2905
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createEndpoint").annotate(OpenApi.Summary, "Add an endpoint to a mailbox").annotate(OpenApi.Description, "Adds an endpoint to a mailbox and returns the mailbox with status 201. It follows the same rules as the endpoint of a new mailbox: an email address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, a phone number must be one the organization connected on that channel, and no mailbox may already hold it (409). Messages sent to it reach the mailbox from now on. It becomes the default on its channel only when the mailbox has no endpoint there yet."))();
2906
+ const MailboxesRemoveEndpointEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesRemoveEndpoint", "/v1/mailboxes/:id/endpoints/:endpointId", {
2886
2907
  params: MailboxesRemoveEndpointPathParams,
2887
2908
  success: MailboxesRemoveEndpoint200,
2888
2909
  error: [
@@ -2894,7 +2915,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2894
2915
  MailboxesRemoveEndpoint500,
2895
2916
  MailboxesRemoveEndpoint504.pipe(HttpApiSchema.status(504))
2896
2917
  ]
2897
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeEndpoint").annotate(OpenApi.Summary, "Remove an endpoint from a mailbox").annotate(OpenApi.Description, "Removes an endpoint from a mailbox and returns the mailbox. Messages sent to it stop reaching the mailbox; its existing threads and messages stay, and replies in them leave from the mailbox's default endpoint on their channel. A mailbox keeps at least one endpoint, so removing the last one is refused (422). When the removed endpoint was the default on its channel, the oldest remaining endpoint there becomes the default."), HttpApiEndpoint.patch("mailboxesUpdateEndpoint", "/v1/mailboxes/:id/endpoints/:endpointId", {
2918
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeEndpoint").annotate(OpenApi.Summary, "Remove an endpoint from a mailbox").annotate(OpenApi.Description, "Removes an endpoint from a mailbox and returns the mailbox. Messages sent to it stop reaching the mailbox; its existing threads and messages stay, and replies in them leave from the mailbox's default endpoint on their channel. A mailbox keeps at least one endpoint, so removing the last one is refused (422). When the removed endpoint was the default on its channel, the oldest remaining endpoint there becomes the default."))();
2919
+ const MailboxesUpdateEndpointEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdateEndpoint", "/v1/mailboxes/:id/endpoints/:endpointId", {
2898
2920
  params: MailboxesUpdateEndpointPathParams,
2899
2921
  payload: MailboxesUpdateEndpointRequestJson,
2900
2922
  success: MailboxesUpdateEndpoint200,
@@ -2907,7 +2929,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2907
2929
  MailboxesUpdateEndpoint500,
2908
2930
  MailboxesUpdateEndpoint504.pipe(HttpApiSchema.status(504))
2909
2931
  ]
2910
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateEndpoint").annotate(OpenApi.Summary, "Update a mailbox endpoint").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest, and returns the mailbox. `displayName` is the name messages sent from the endpoint carry; null falls back to the mailbox's name. `default: true` makes the endpoint the one the mailbox starts new conversations from on its channel; replies always leave from the endpoint of their thread."), HttpApiEndpoint.get("mailboxesListEvents", "/v1/mailboxes/:id/events", {
2932
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateEndpoint").annotate(OpenApi.Summary, "Update a mailbox endpoint").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest, and returns the mailbox. `displayName` is the name messages sent from the endpoint carry; null falls back to the mailbox's name. `default: true` makes the endpoint the one the mailbox starts new conversations from on its channel; replies always leave from the endpoint of their thread."))();
2933
+ const MailboxesListEventsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListEvents", "/v1/mailboxes/:id/events", {
2911
2934
  params: MailboxesListEventsPathParams,
2912
2935
  query: MailboxesListEventsQuery,
2913
2936
  success: MailboxesListEvents200,
@@ -2920,7 +2943,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2920
2943
  MailboxesListEvents500,
2921
2944
  MailboxesListEvents504.pipe(HttpApiSchema.status(504))
2922
2945
  ]
2923
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listEvents").annotate(OpenApi.Summary, "List mailbox events").annotate(OpenApi.Description, "Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `endpoint.attached`, `endpoint.detached`, `message.received`, `message.released`, `message.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("mailboxesListFolders", "/v1/mailboxes/:id/folders", {
2946
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listEvents").annotate(OpenApi.Summary, "List mailbox events").annotate(OpenApi.Description, "Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `endpoint.attached`, `endpoint.detached`, `message.received`, `message.released`, `message.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
2947
+ const MailboxesListFoldersEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListFolders", "/v1/mailboxes/:id/folders", {
2924
2948
  params: MailboxesListFoldersPathParams,
2925
2949
  success: MailboxesListFolders200,
2926
2950
  error: [
@@ -2932,7 +2956,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2932
2956
  MailboxesListFolders500,
2933
2957
  MailboxesListFolders504.pipe(HttpApiSchema.status(504))
2934
2958
  ]
2935
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listFolders").annotate(OpenApi.Summary, "List mailbox folders").annotate(OpenApi.Description, "Returns each folder that holds a thread with its thread count and the caller's unread count. The folder set is fixed, so the list is never paged."), HttpApiEndpoint.get("mailboxesListGrants", "/v1/mailboxes/:id/grants", {
2959
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listFolders").annotate(OpenApi.Summary, "List mailbox folders").annotate(OpenApi.Description, "Returns each folder that holds a thread with its thread count and the caller's unread count. The folder set is fixed, so the list is never paged."))();
2960
+ const MailboxesListGrantsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListGrants", "/v1/mailboxes/:id/grants", {
2936
2961
  params: MailboxesListGrantsPathParams,
2937
2962
  query: MailboxesListGrantsQuery,
2938
2963
  success: MailboxesListGrants200,
@@ -2945,7 +2970,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2945
2970
  MailboxesListGrants500,
2946
2971
  MailboxesListGrants504.pipe(HttpApiSchema.status(504))
2947
2972
  ]
2948
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listGrants").annotate(OpenApi.Summary, "List mailbox grants").annotate(OpenApi.Description, "Returns who can use the mailbox, what each grant allows, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("mailboxesCreateGrant", "/v1/mailboxes/:id/grants", {
2973
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listGrants").annotate(OpenApi.Summary, "List mailbox grants").annotate(OpenApi.Description, "Returns who can use the mailbox, what each grant allows, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
2974
+ const MailboxesCreateGrantEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateGrant", "/v1/mailboxes/:id/grants", {
2949
2975
  params: MailboxesCreateGrantPathParams,
2950
2976
  payload: MailboxesCreateGrantRequestJson,
2951
2977
  success: MailboxesCreateGrant201.pipe(HttpApiSchema.status(201)),
@@ -2959,7 +2985,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2959
2985
  MailboxesCreateGrant500,
2960
2986
  MailboxesCreateGrant504.pipe(HttpApiSchema.status(504))
2961
2987
  ]
2962
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createGrant").annotate(OpenApi.Summary, "Grant a member access to a mailbox").annotate(OpenApi.Description, "Shares a mailbox with an organization member and returns the grant with status 201. The member must already belong to the organization. A member who already holds a grant conflicts rather than being rewritten: change an existing grant with `PATCH /v1/mailboxes/{id}/grants/{grantId}`, so a grant is never widened as a side effect of granting. List the current grants with `GET /v1/mailboxes/{id}/grants`."), HttpApiEndpoint.delete("mailboxesRevokeGrant", "/v1/mailboxes/:id/grants/:grantId", {
2988
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createGrant").annotate(OpenApi.Summary, "Grant a member access to a mailbox").annotate(OpenApi.Description, "Shares a mailbox with an organization member and returns the grant with status 201. The member must already belong to the organization. A member who already holds a grant conflicts rather than being rewritten: change an existing grant with `PATCH /v1/mailboxes/{id}/grants/{grantId}`, so a grant is never widened as a side effect of granting. List the current grants with `GET /v1/mailboxes/{id}/grants`."))();
2989
+ const MailboxesRevokeGrantEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesRevokeGrant", "/v1/mailboxes/:id/grants/:grantId", {
2963
2990
  params: MailboxesRevokeGrantPathParams,
2964
2991
  success: MailboxesRevokeGrant200,
2965
2992
  error: [
@@ -2972,7 +2999,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2972
2999
  MailboxesRevokeGrant500,
2973
3000
  MailboxesRevokeGrant504.pipe(HttpApiSchema.status(504))
2974
3001
  ]
2975
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.revokeGrant").annotate(OpenApi.Summary, "Revoke a mailbox grant").annotate(OpenApi.Description, "Removes a member's access to a mailbox. The last grant that can configure the mailbox cannot be revoked, so a mailbox is never left with nobody able to administer it: grant a teammate the admin role before removing your own."), HttpApiEndpoint.patch("mailboxesUpdateGrant", "/v1/mailboxes/:id/grants/:grantId", {
3002
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.revokeGrant").annotate(OpenApi.Summary, "Revoke a mailbox grant").annotate(OpenApi.Description, "Removes a member's access to a mailbox. The last grant that can configure the mailbox cannot be revoked, so a mailbox is never left with nobody able to administer it: grant a teammate the admin role before removing your own."))();
3003
+ const MailboxesUpdateGrantEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdateGrant", "/v1/mailboxes/:id/grants/:grantId", {
2976
3004
  params: MailboxesUpdateGrantPathParams,
2977
3005
  payload: MailboxesUpdateGrantRequestJson,
2978
3006
  success: MailboxesUpdateGrant200,
@@ -2986,7 +3014,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2986
3014
  MailboxesUpdateGrant500,
2987
3015
  MailboxesUpdateGrant504.pipe(HttpApiSchema.status(504))
2988
3016
  ]
2989
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateGrant").annotate(OpenApi.Summary, "Update a mailbox grant").annotate(OpenApi.Description, "Changes a member's role on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface."), HttpApiEndpoint.get("mailboxesListImports", "/v1/mailboxes/:id/imports", {
3017
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateGrant").annotate(OpenApi.Summary, "Update a mailbox grant").annotate(OpenApi.Description, "Changes a member's role on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface."))();
3018
+ const MailboxesListImportsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListImports", "/v1/mailboxes/:id/imports", {
2990
3019
  params: MailboxesListImportsPathParams,
2991
3020
  success: MailboxesListImports200,
2992
3021
  error: [
@@ -2998,7 +3027,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2998
3027
  MailboxesListImports500,
2999
3028
  MailboxesListImports504.pipe(HttpApiSchema.status(504))
3000
3029
  ]
3001
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listImports").annotate(OpenApi.Summary, "List mail history imports").annotate(OpenApi.Description, "Lists the most recent history imports for a mailbox."), HttpApiEndpoint.get("mailboxesGetImport", "/v1/mailboxes/:id/imports/:importId", {
3030
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listImports").annotate(OpenApi.Summary, "List mail history imports").annotate(OpenApi.Description, "Lists the most recent history imports for a mailbox."))();
3031
+ const MailboxesGetImportEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetImport", "/v1/mailboxes/:id/imports/:importId", {
3002
3032
  params: MailboxesGetImportPathParams,
3003
3033
  success: MailboxesGetImport200,
3004
3034
  error: [
@@ -3010,7 +3040,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3010
3040
  MailboxesGetImport500,
3011
3041
  MailboxesGetImport504.pipe(HttpApiSchema.status(504))
3012
3042
  ]
3013
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getImport").annotate(OpenApi.Summary, "Read mail history import progress").annotate(OpenApi.Description, "Returns import status, counts, and bounded failure reasons."), HttpApiEndpoint.delete("mailboxesDiscardImport", "/v1/mailboxes/:id/imports/:importId", {
3043
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getImport").annotate(OpenApi.Summary, "Read mail history import progress").annotate(OpenApi.Description, "Returns import status, counts, and bounded failure reasons."))();
3044
+ const MailboxesDiscardImportEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDiscardImport", "/v1/mailboxes/:id/imports/:importId", {
3014
3045
  params: MailboxesDiscardImportPathParams,
3015
3046
  success: MailboxesDiscardImport200,
3016
3047
  error: [
@@ -3023,7 +3054,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3023
3054
  MailboxesDiscardImport500,
3024
3055
  MailboxesDiscardImport504.pipe(HttpApiSchema.status(504))
3025
3056
  ]
3026
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardImport").annotate(OpenApi.Summary, "Discard a queued mail history import").annotate(OpenApi.Description, "Discards a queued import and releases all its archive uploads."), HttpApiEndpoint.post("mailboxesStartImport", "/v1/mailboxes/:id/imports/:importId/start", {
3057
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardImport").annotate(OpenApi.Summary, "Discard a queued mail history import").annotate(OpenApi.Description, "Discards a queued import and releases all its archive uploads."))();
3058
+ const MailboxesStartImportEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesStartImport", "/v1/mailboxes/:id/imports/:importId/start", {
3027
3059
  params: MailboxesStartImportPathParams,
3028
3060
  success: MailboxesStartImport200,
3029
3061
  error: [
@@ -3036,7 +3068,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3036
3068
  MailboxesStartImport500,
3037
3069
  MailboxesStartImport504.pipe(HttpApiSchema.status(504))
3038
3070
  ]
3039
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.startImport").annotate(OpenApi.Summary, "Start or resume a mail history import").annotate(OpenApi.Description, "Starts all archives uploaded to the job, or resumes a failed job at its committed byte cursor across those archives. History emits no inbound events or agent triggers."), HttpApiEndpoint.delete("mailboxesDiscardImportUpload", "/v1/mailboxes/:id/imports/:importId/uploads/:archiveId", {
3071
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.startImport").annotate(OpenApi.Summary, "Start or resume a mail history import").annotate(OpenApi.Description, "Starts all archives uploaded to the job, or resumes a failed job at its committed byte cursor across those archives. History emits no inbound events or agent triggers."))();
3072
+ const MailboxesDiscardImportUploadEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDiscardImportUpload", "/v1/mailboxes/:id/imports/:importId/uploads/:archiveId", {
3040
3073
  params: MailboxesDiscardImportUploadPathParams,
3041
3074
  success: MailboxesDiscardImportUpload200,
3042
3075
  error: [
@@ -3049,7 +3082,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3049
3082
  MailboxesDiscardImportUpload500,
3050
3083
  MailboxesDiscardImportUpload504.pipe(HttpApiSchema.status(504))
3051
3084
  ]
3052
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardImportUpload").annotate(OpenApi.Summary, "Discard a mail history upload").annotate(OpenApi.Description, "Removes an archive from a queued import and releases its upload."), HttpApiEndpoint.post("mailboxesCompleteImportUpload", "/v1/mailboxes/:id/imports/:importId/uploads/:archiveId/complete", {
3085
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardImportUpload").annotate(OpenApi.Summary, "Discard a mail history upload").annotate(OpenApi.Description, "Removes an archive from a queued import and releases its upload."))();
3086
+ const MailboxesCompleteImportUploadEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCompleteImportUpload", "/v1/mailboxes/:id/imports/:importId/uploads/:archiveId/complete", {
3053
3087
  params: MailboxesCompleteImportUploadPathParams,
3054
3088
  payload: MailboxesCompleteImportUploadRequestJson,
3055
3089
  success: MailboxesCompleteImportUpload200,
@@ -3063,7 +3097,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3063
3097
  MailboxesCompleteImportUpload500,
3064
3098
  MailboxesCompleteImportUpload504.pipe(HttpApiSchema.status(504))
3065
3099
  ]
3066
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.completeImportUpload").annotate(OpenApi.Summary, "Complete a mail history upload").annotate(OpenApi.Description, "Assembles the archive using every part number and its ETag as returned by storage. A successful completion can be retried. Complete every archive before starting the import."), HttpApiEndpoint.post("mailboxesSignImportUploadParts", "/v1/mailboxes/:id/imports/:importId/uploads/:archiveId/parts", {
3100
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.completeImportUpload").annotate(OpenApi.Summary, "Complete a mail history upload").annotate(OpenApi.Description, "Assembles the archive using every part number and its ETag as returned by storage. A successful completion can be retried. Complete every archive before starting the import."))();
3101
+ const MailboxesSignImportUploadPartsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesSignImportUploadParts", "/v1/mailboxes/:id/imports/:importId/uploads/:archiveId/parts", {
3067
3102
  params: MailboxesSignImportUploadPartsPathParams,
3068
3103
  payload: MailboxesSignImportUploadPartsRequestJson,
3069
3104
  success: MailboxesSignImportUploadParts200,
@@ -3077,7 +3112,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3077
3112
  MailboxesSignImportUploadParts500,
3078
3113
  MailboxesSignImportUploadParts504.pipe(HttpApiSchema.status(504))
3079
3114
  ]
3080
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.signImportUploadParts").annotate(OpenApi.Summary, "Sign mail history upload parts").annotate(OpenApi.Description, "Returns ten-minute presigned PUT URLs for up to 16 distinct, one-based part numbers. Send each contiguous part with the returned sizeBytes as Content-Length and keep its ETag response header. Request fresh URLs as needed."), HttpApiEndpoint.post("mailboxesCreateImportUpload", "/v1/mailboxes/:id/imports/uploads", {
3115
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.signImportUploadParts").annotate(OpenApi.Summary, "Sign mail history upload parts").annotate(OpenApi.Description, "Returns ten-minute presigned PUT URLs for up to 16 distinct, one-based part numbers. Send each contiguous part with the returned sizeBytes as Content-Length and keep its ETag response header. Request fresh URLs as needed."))();
3116
+ const MailboxesCreateImportUploadEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateImportUpload", "/v1/mailboxes/:id/imports/uploads", {
3081
3117
  params: MailboxesCreateImportUploadPathParams,
3082
3118
  payload: MailboxesCreateImportUploadRequestJson,
3083
3119
  success: MailboxesCreateImportUpload200,
@@ -3093,7 +3129,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3093
3129
  MailboxesCreateImportUpload502.pipe(HttpApiSchema.status(502)),
3094
3130
  MailboxesCreateImportUpload504.pipe(HttpApiSchema.status(504))
3095
3131
  ]
3096
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createImportUpload").annotate(OpenApi.Summary, "Create a mail history upload").annotate(OpenApi.Description, "Registers an mbox archive and returns the import ID, archive ID, and part size. Pass importId to append to a queued import. Request presigned URLs for the parts, upload them, then complete every archive before starting the import. Returns 402 when the import's archives total more than twice the organization's remaining mailbox storage."), HttpApiEndpoint.get("mailboxesListLabels", "/v1/mailboxes/:id/labels", {
3132
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createImportUpload").annotate(OpenApi.Summary, "Create a mail history upload").annotate(OpenApi.Description, "Registers an mbox archive and returns the import ID, archive ID, and part size. Pass importId to append to a queued import. Request presigned URLs for the parts, upload them, then complete every archive before starting the import. Returns 402 when the import's archives total more than twice the organization's remaining mailbox storage."))();
3133
+ const MailboxesListLabelsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListLabels", "/v1/mailboxes/:id/labels", {
3097
3134
  params: MailboxesListLabelsPathParams,
3098
3135
  success: MailboxesListLabels200,
3099
3136
  error: [
@@ -3105,7 +3142,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3105
3142
  MailboxesListLabels500,
3106
3143
  MailboxesListLabels504.pipe(HttpApiSchema.status(504))
3107
3144
  ]
3108
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listLabels").annotate(OpenApi.Summary, "List mailbox labels").annotate(OpenApi.Description, "Returns every label defined on a mailbox, ordered by name. A mailbox holds at most 100 labels, so the list is never paged."), HttpApiEndpoint.post("mailboxesCreateLabel", "/v1/mailboxes/:id/labels", {
3145
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listLabels").annotate(OpenApi.Summary, "List mailbox labels").annotate(OpenApi.Description, "Returns every label defined on a mailbox, ordered by name. A mailbox holds at most 100 labels, so the list is never paged."))();
3146
+ const MailboxesCreateLabelEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateLabel", "/v1/mailboxes/:id/labels", {
3109
3147
  params: MailboxesCreateLabelPathParams,
3110
3148
  payload: MailboxesCreateLabelRequestJson,
3111
3149
  success: MailboxesCreateLabel201.pipe(HttpApiSchema.status(201)),
@@ -3119,7 +3157,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3119
3157
  MailboxesCreateLabel500,
3120
3158
  MailboxesCreateLabel504.pipe(HttpApiSchema.status(504))
3121
3159
  ]
3122
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createLabel").annotate(OpenApi.Summary, "Create a mailbox label").annotate(OpenApi.Description, "Creates a label on a mailbox and returns it with status 201. Slugs are unique within the mailbox, and a mailbox holds at most 100 labels; either limit conflicts."), HttpApiEndpoint.delete("mailboxesDeleteLabel", "/v1/mailboxes/:id/labels/:labelId", {
3160
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createLabel").annotate(OpenApi.Summary, "Create a mailbox label").annotate(OpenApi.Description, "Creates a label on a mailbox and returns it with status 201. Slugs are unique within the mailbox, and a mailbox holds at most 100 labels; either limit conflicts."))();
3161
+ const MailboxesDeleteLabelEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDeleteLabel", "/v1/mailboxes/:id/labels/:labelId", {
3123
3162
  params: MailboxesDeleteLabelPathParams,
3124
3163
  success: MailboxesDeleteLabel200,
3125
3164
  error: [
@@ -3131,7 +3170,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3131
3170
  MailboxesDeleteLabel500,
3132
3171
  MailboxesDeleteLabel504.pipe(HttpApiSchema.status(504))
3133
3172
  ]
3134
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteLabel").annotate(OpenApi.Summary, "Delete a mailbox label").annotate(OpenApi.Description, "Deletes a label and removes it from every thread that carries it."), HttpApiEndpoint.patch("mailboxesUpdateLabel", "/v1/mailboxes/:id/labels/:labelId", {
3173
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteLabel").annotate(OpenApi.Summary, "Delete a mailbox label").annotate(OpenApi.Description, "Deletes a label and removes it from every thread that carries it."))();
3174
+ const MailboxesUpdateLabelEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdateLabel", "/v1/mailboxes/:id/labels/:labelId", {
3135
3175
  params: MailboxesUpdateLabelPathParams,
3136
3176
  payload: MailboxesUpdateLabelRequestJson,
3137
3177
  success: MailboxesUpdateLabel200,
@@ -3144,7 +3184,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3144
3184
  MailboxesUpdateLabel500,
3145
3185
  MailboxesUpdateLabel504.pipe(HttpApiSchema.status(504))
3146
3186
  ]
3147
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateLabel").annotate(OpenApi.Summary, "Update a mailbox label").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest."), HttpApiEndpoint.post("mailboxesSendMessage", "/v1/mailboxes/:id/messages", {
3187
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateLabel").annotate(OpenApi.Summary, "Update a mailbox label").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest."))();
3188
+ const MailboxesSendMessageEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesSendMessage", "/v1/mailboxes/:id/messages", {
3148
3189
  params: MailboxesSendMessagePathParams,
3149
3190
  headers: MailboxesSendMessageHeaders,
3150
3191
  payload: MailboxesSendMessageRequestJson,
@@ -3163,7 +3204,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3163
3204
  MailboxesSendMessage503.pipe(HttpApiSchema.status(503)),
3164
3205
  MailboxesSendMessage504.pipe(HttpApiSchema.status(504))
3165
3206
  ]
3166
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendMessage").annotate(OpenApi.Summary, "Send a new message").annotate(OpenApi.Description, "Starts a new conversation from the mailbox's default endpoint on the channel the body names (email when omitted); a mailbox with no endpoint on that channel is refused (422). A message to a number joins the mailbox's thread with that number when it has one. Records a send action and returns 202 with its current receipt and a Location for action status. An installation, grant, or policy may require approval; otherwise the send is queued. Observe the same action through acceptance and mailbox completion. A policy refusal returns 403 with the recorded receipt."), HttpApiEndpoint.get("mailboxesGetMessage", "/v1/mailboxes/:id/messages/:messageId", {
3207
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendMessage").annotate(OpenApi.Summary, "Send a new message").annotate(OpenApi.Description, "Starts a new conversation from the mailbox's default endpoint on the channel the body names (email when omitted); a mailbox with no endpoint on that channel is refused (422). A message to a number joins the mailbox's thread with that number when it has one. Records a send action and returns 202 with its current receipt and a Location for action status. An installation, grant, or policy may require approval; otherwise the send is queued. Observe the same action through acceptance and mailbox completion. A policy refusal returns 403 with the recorded receipt."))();
3208
+ const MailboxesGetMessageEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetMessage", "/v1/mailboxes/:id/messages/:messageId", {
3167
3209
  params: MailboxesGetMessagePathParams,
3168
3210
  success: MailboxesGetMessage200,
3169
3211
  error: [
@@ -3175,7 +3217,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3175
3217
  MailboxesGetMessage500,
3176
3218
  MailboxesGetMessage504.pipe(HttpApiSchema.status(504))
3177
3219
  ]
3178
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessage").annotate(OpenApi.Summary, "Get a mailbox message").annotate(OpenApi.Description, "Returns a message in the mailbox, discriminated by `channel`. An email has its text, sanitized HTML, `replyText` (what the sender wrote, without quoted history), authentication verdicts, and attachments."), HttpApiEndpoint.get("mailboxesGetMessageAttachment", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId", {
3220
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessage").annotate(OpenApi.Summary, "Get a mailbox message").annotate(OpenApi.Description, "Returns a message in the mailbox, discriminated by `channel`. An email has its text, sanitized HTML, `replyText` (what the sender wrote, without quoted history), authentication verdicts, and attachments."))();
3221
+ const MailboxesGetMessageAttachmentEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetMessageAttachment", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId", {
3179
3222
  params: MailboxesGetMessageAttachmentPathParams,
3180
3223
  success: MailboxesGetMessageAttachment200,
3181
3224
  error: [
@@ -3187,7 +3230,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3187
3230
  MailboxesGetMessageAttachment500,
3188
3231
  MailboxesGetMessageAttachment504.pipe(HttpApiSchema.status(504))
3189
3232
  ]
3190
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessageAttachment").annotate(OpenApi.Summary, "Get a message attachment").annotate(OpenApi.Description, "Returns a short-lived download URL for one of the message's attachments. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`)."), HttpApiEndpoint.post("mailboxesCopyMessageAttachment", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId/copy", {
3233
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessageAttachment").annotate(OpenApi.Summary, "Get a message attachment").annotate(OpenApi.Description, "Returns a short-lived download URL for one of the message's attachments. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`)."))();
3234
+ const MailboxesCopyMessageAttachmentEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCopyMessageAttachment", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId/copy", {
3191
3235
  params: MailboxesCopyMessageAttachmentPathParams,
3192
3236
  success: MailboxesCopyMessageAttachment201.pipe(HttpApiSchema.status(201)),
3193
3237
  error: [
@@ -3200,7 +3244,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3200
3244
  MailboxesCopyMessageAttachment500,
3201
3245
  MailboxesCopyMessageAttachment504.pipe(HttpApiSchema.status(504))
3202
3246
  ]
3203
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.copyMessageAttachment").annotate(OpenApi.Summary, "Copy a message attachment").annotate(OpenApi.Description, "Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it. A draft that forwards a message saves each original attachment this way. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`)."), HttpApiEndpoint.post("mailboxesForward", "/v1/mailboxes/:id/messages/:messageId/forward", {
3247
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.copyMessageAttachment").annotate(OpenApi.Summary, "Copy a message attachment").annotate(OpenApi.Description, "Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it. A draft that forwards a message saves each original attachment this way. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`)."))();
3248
+ const MailboxesForwardEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesForward", "/v1/mailboxes/:id/messages/:messageId/forward", {
3204
3249
  params: MailboxesForwardPathParams,
3205
3250
  headers: MailboxesForwardHeaders,
3206
3251
  payload: MailboxesForwardRequestJson,
@@ -3219,7 +3264,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3219
3264
  MailboxesForward503.pipe(HttpApiSchema.status(503)),
3220
3265
  MailboxesForward504.pipe(HttpApiSchema.status(504))
3221
3266
  ]
3222
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.forward").annotate(OpenApi.Summary, "Forward a message").annotate(OpenApi.Description, "Forwards an email to new recipients as a new conversation from the thread's endpoint, with the original quoted below the caller's text and its attachments attached ahead of any the caller adds. The combined attachments must fit the email attachment limits. Forwarding an inbound email with attachments and without a passing malware scan returns 404 (`ResourceNotFoundError`)."), HttpApiEndpoint.get("mailboxesGetMessageRaw", "/v1/mailboxes/:id/messages/:messageId/raw", {
3267
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.forward").annotate(OpenApi.Summary, "Forward a message").annotate(OpenApi.Description, "Forwards an email to new recipients as a new conversation from the thread's endpoint, with the original quoted below the caller's text and its attachments attached ahead of any the caller adds. The combined attachments must fit the email attachment limits. Forwarding an inbound email with attachments and without a passing malware scan returns 404 (`ResourceNotFoundError`)."))();
3268
+ const MailboxesGetMessageRawEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetMessageRaw", "/v1/mailboxes/:id/messages/:messageId/raw", {
3223
3269
  params: MailboxesGetMessageRawPathParams,
3224
3270
  success: MailboxesGetMessageRaw200,
3225
3271
  error: [
@@ -3231,7 +3277,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3231
3277
  MailboxesGetMessageRaw500,
3232
3278
  MailboxesGetMessageRaw504.pipe(HttpApiSchema.status(504))
3233
3279
  ]
3234
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessageRaw").annotate(OpenApi.Summary, "Get a message's raw MIME").annotate(OpenApi.Description, "Returns a short-lived URL for the message exactly as it was received (`message/rfc822`). Sent messages have no stored MIME. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`)."), HttpApiEndpoint.post("mailboxesReply", "/v1/mailboxes/:id/messages/:messageId/reply", {
3280
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessageRaw").annotate(OpenApi.Summary, "Get a message's raw MIME").annotate(OpenApi.Description, "Returns a short-lived URL for the message exactly as it was received (`message/rfc822`). Sent messages have no stored MIME. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`)."))();
3281
+ const MailboxesReplyEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesReply", "/v1/mailboxes/:id/messages/:messageId/reply", {
3235
3282
  params: MailboxesReplyPathParams,
3236
3283
  headers: MailboxesReplyHeaders,
3237
3284
  payload: MailboxesReplyRequestJson,
@@ -3250,7 +3297,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3250
3297
  MailboxesReply503.pipe(HttpApiSchema.status(503)),
3251
3298
  MailboxesReply504.pipe(HttpApiSchema.status(504))
3252
3299
  ]
3253
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.reply").annotate(OpenApi.Summary, "Reply to a message").annotate(OpenApi.Description, "Replies to the message's Reply-To address, or its sender, in the same thread and from the thread's endpoint. The server sets the recipients, subject, and threading headers. The body's `channel` must match the thread's. On a phone channel the reply goes to the number on the other side of the thread. On WhatsApp, free-form `text` needs the customer's 24-hour service window to be open, and a closed window is refused (422, `WhatsAppServiceWindowClosedError`) rather than converted; send an approved template with `templateId` instead."), HttpApiEndpoint.post("mailboxesReplyAll", "/v1/mailboxes/:id/messages/:messageId/reply-all", {
3300
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.reply").annotate(OpenApi.Summary, "Reply to a message").annotate(OpenApi.Description, "Replies to the message's Reply-To address, or its sender, in the same thread and from the thread's endpoint. The server sets the recipients, subject, and threading headers. The body's `channel` must match the thread's. On a phone channel the reply goes to the number on the other side of the thread. On WhatsApp, free-form `text` needs the customer's 24-hour service window to be open, and a closed window is refused (422, `WhatsAppServiceWindowClosedError`) rather than converted; send an approved template with `templateId` instead."))();
3301
+ const MailboxesReplyAllEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesReplyAll", "/v1/mailboxes/:id/messages/:messageId/reply-all", {
3254
3302
  params: MailboxesReplyAllPathParams,
3255
3303
  headers: MailboxesReplyAllHeaders,
3256
3304
  payload: MailboxesReplyAllRequestJson,
@@ -3269,7 +3317,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3269
3317
  MailboxesReplyAll503.pipe(HttpApiSchema.status(503)),
3270
3318
  MailboxesReplyAll504.pipe(HttpApiSchema.status(504))
3271
3319
  ]
3272
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.replyAll").annotate(OpenApi.Summary, "Reply to all recipients of a message").annotate(OpenApi.Description, "Replies to the sender and every other recipient of the message except the mailbox itself, in the same thread and from the thread's endpoint. A phone thread has one other side, so it answers like a reply."), HttpApiEndpoint.post("mailboxesPause", "/v1/mailboxes/:id/pause", {
3320
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.replyAll").annotate(OpenApi.Summary, "Reply to all recipients of a message").annotate(OpenApi.Description, "Replies to the sender and every other recipient of the message except the mailbox itself, in the same thread and from the thread's endpoint. A phone thread has one other side, so it answers like a reply."))();
3321
+ const MailboxesPauseEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesPause", "/v1/mailboxes/:id/pause", {
3273
3322
  params: MailboxesPausePathParams,
3274
3323
  success: MailboxesPause200,
3275
3324
  error: [
@@ -3281,7 +3330,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3281
3330
  MailboxesPause500,
3282
3331
  MailboxesPause504.pipe(HttpApiSchema.status(504))
3283
3332
  ]
3284
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.pause").annotate(OpenApi.Summary, "Pause a mailbox").annotate(OpenApi.Description, "Stops the mailbox sending and stops new inbound mail reaching it. Mail that arrives while it is paused is not added when it resumes. Resume it with `POST /v1/mailboxes/{id}/resume`."), HttpApiEndpoint.post("mailboxesResume", "/v1/mailboxes/:id/resume", {
3333
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.pause").annotate(OpenApi.Summary, "Pause a mailbox").annotate(OpenApi.Description, "Stops the mailbox sending and stops new inbound mail reaching it. Mail that arrives while it is paused is not added when it resumes. Resume it with `POST /v1/mailboxes/{id}/resume`."))();
3334
+ const MailboxesResumeEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesResume", "/v1/mailboxes/:id/resume", {
3285
3335
  params: MailboxesResumePathParams,
3286
3336
  success: MailboxesResume200,
3287
3337
  error: [
@@ -3293,7 +3343,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3293
3343
  MailboxesResume500,
3294
3344
  MailboxesResume504.pipe(HttpApiSchema.status(504))
3295
3345
  ]
3296
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.resume").annotate(OpenApi.Summary, "Resume a mailbox").annotate(OpenApi.Description, "Lets a paused mailbox send and receive again."), HttpApiEndpoint.get("mailboxesListScheduledSends", "/v1/mailboxes/:id/scheduled", {
3346
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.resume").annotate(OpenApi.Summary, "Resume a mailbox").annotate(OpenApi.Description, "Lets a paused mailbox send and receive again."))();
3347
+ const MailboxesListScheduledSendsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListScheduledSends", "/v1/mailboxes/:id/scheduled", {
3297
3348
  params: MailboxesListScheduledSendsPathParams,
3298
3349
  query: MailboxesListScheduledSendsQuery,
3299
3350
  success: MailboxesListScheduledSends200,
@@ -3306,7 +3357,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3306
3357
  MailboxesListScheduledSends500,
3307
3358
  MailboxesListScheduledSends504.pipe(HttpApiSchema.status(504))
3308
3359
  ]
3309
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listScheduledSends").annotate(OpenApi.Summary, "List scheduled mailbox sends").annotate(OpenApi.Description, "Lists the caller's private scheduled sends in this mailbox. Items leave this list when sent, held, failed, or returned to Drafts."), HttpApiEndpoint.delete("mailboxesUnscheduleSend", "/v1/mailboxes/:id/scheduled/:outboxId", {
3360
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listScheduledSends").annotate(OpenApi.Summary, "List scheduled mailbox sends").annotate(OpenApi.Description, "Lists the caller's private scheduled sends in this mailbox. Items leave this list when sent, held, failed, or returned to Drafts."))();
3361
+ const MailboxesUnscheduleSendEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesUnscheduleSend", "/v1/mailboxes/:id/scheduled/:outboxId", {
3310
3362
  params: MailboxesUnscheduleSendPathParams,
3311
3363
  payload: MailboxesUnscheduleSendRequestJson,
3312
3364
  success: MailboxesUnscheduleSend200,
@@ -3321,7 +3373,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3321
3373
  MailboxesUnscheduleSend500,
3322
3374
  MailboxesUnscheduleSend504.pipe(HttpApiSchema.status(504))
3323
3375
  ]
3324
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.unscheduleSend").annotate(OpenApi.Summary, "Return a scheduled send to Drafts").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."), HttpApiEndpoint.patch("mailboxesRescheduleSend", "/v1/mailboxes/:id/scheduled/:outboxId", {
3376
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.unscheduleSend").annotate(OpenApi.Summary, "Return a scheduled send to Drafts").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."))();
3377
+ const MailboxesRescheduleSendEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesRescheduleSend", "/v1/mailboxes/:id/scheduled/:outboxId", {
3325
3378
  params: MailboxesRescheduleSendPathParams,
3326
3379
  payload: MailboxesRescheduleSendRequestJson,
3327
3380
  success: MailboxesRescheduleSend200,
@@ -3336,7 +3389,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3336
3389
  MailboxesRescheduleSend500,
3337
3390
  MailboxesRescheduleSend504.pipe(HttpApiSchema.status(504))
3338
3391
  ]
3339
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.rescheduleSend").annotate(OpenApi.Summary, "Reschedule a mailbox send").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."), HttpApiEndpoint.post("mailboxesSendScheduledNow", "/v1/mailboxes/:id/scheduled/:outboxId/send", {
3392
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.rescheduleSend").annotate(OpenApi.Summary, "Reschedule a mailbox send").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."))();
3393
+ const MailboxesSendScheduledNowEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesSendScheduledNow", "/v1/mailboxes/:id/scheduled/:outboxId/send", {
3340
3394
  params: MailboxesSendScheduledNowPathParams,
3341
3395
  payload: MailboxesSendScheduledNowRequestJson,
3342
3396
  success: MailboxesSendScheduledNow200,
@@ -3351,7 +3405,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3351
3405
  MailboxesSendScheduledNow500,
3352
3406
  MailboxesSendScheduledNow504.pipe(HttpApiSchema.status(504))
3353
3407
  ]
3354
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendScheduledNow").annotate(OpenApi.Summary, "Send a scheduled message now").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."), HttpApiEndpoint.post("mailboxesEmptySpam", "/v1/mailboxes/:id/spam/empty", {
3408
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendScheduledNow").annotate(OpenApi.Summary, "Send a scheduled message now").annotate(OpenApi.Description, "Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies."))();
3409
+ const MailboxesEmptySpamEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesEmptySpam", "/v1/mailboxes/:id/spam/empty", {
3355
3410
  params: MailboxesEmptySpamPathParams,
3356
3411
  success: MailboxesEmptySpam202.pipe(HttpApiSchema.status(202)),
3357
3412
  error: [
@@ -3363,7 +3418,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3363
3418
  MailboxesEmptySpam500,
3364
3419
  MailboxesEmptySpam504.pipe(HttpApiSchema.status(504))
3365
3420
  ]
3366
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.emptySpam").annotate(OpenApi.Summary, "Empty a mailbox's Spam").annotate(OpenApi.Description, "Queues permanent deletion of the threads currently in Spam and returns their count. Requires thread:write. A thread restored before processing is skipped."), HttpApiEndpoint.get("mailboxesListSpamHeld", "/v1/mailboxes/:id/spam/held", {
3421
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.emptySpam").annotate(OpenApi.Summary, "Empty a mailbox's Spam").annotate(OpenApi.Description, "Queues permanent deletion of the threads currently in Spam and returns their count. Requires thread:write. A thread restored before processing is skipped."))();
3422
+ const MailboxesListSpamHeldEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListSpamHeld", "/v1/mailboxes/:id/spam/held", {
3367
3423
  params: MailboxesListSpamHeldPathParams,
3368
3424
  query: MailboxesListSpamHeldQuery,
3369
3425
  success: MailboxesListSpamHeld200,
@@ -3376,7 +3432,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3376
3432
  MailboxesListSpamHeld500,
3377
3433
  MailboxesListSpamHeld504.pipe(HttpApiSchema.status(504))
3378
3434
  ]
3379
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listSpamHeld").annotate(OpenApi.Summary, "List malware held outside Spam threads").annotate(OpenApi.Description, "Lists isolated messages, newest first. Only metadata is stored. Use the thread list with folder=spam to read Spam. The after and before filters apply to when the message was held."), HttpApiEndpoint.post("mailboxesDiscardSpamHeld", "/v1/mailboxes/:id/spam/held/:messageId/discard", {
3435
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listSpamHeld").annotate(OpenApi.Summary, "List malware held outside Spam threads").annotate(OpenApi.Description, "Lists isolated messages, newest first. Only metadata is stored. Use the thread list with folder=spam to read Spam. The after and before filters apply to when the message was held."))();
3436
+ const MailboxesDiscardSpamHeldEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesDiscardSpamHeld", "/v1/mailboxes/:id/spam/held/:messageId/discard", {
3380
3437
  params: MailboxesDiscardSpamHeldPathParams,
3381
3438
  success: MailboxesDiscardSpamHeld200,
3382
3439
  error: [
@@ -3389,7 +3446,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3389
3446
  MailboxesDiscardSpamHeld502.pipe(HttpApiSchema.status(502)),
3390
3447
  MailboxesDiscardSpamHeld504.pipe(HttpApiSchema.status(504))
3391
3448
  ]
3392
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardSpamHeld").annotate(OpenApi.Summary, "Discard held malware").annotate(OpenApi.Description, "Permanently removes isolated malware from the mailbox's held list. Publishes one `mailbox.message.discarded` event. Retrying returns the same result and publishes nothing. Delete readable Spam through the thread delete endpoint. Only a person signed in to Samva with `spam.discard` can discard held mail; an API key is rejected with `403`."), HttpApiEndpoint.get("mailboxesListThreads", "/v1/mailboxes/:id/threads", {
3449
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardSpamHeld").annotate(OpenApi.Summary, "Discard held malware").annotate(OpenApi.Description, "Permanently removes isolated malware from the mailbox's held list. Publishes one `mailbox.message.discarded` event. Retrying returns the same result and publishes nothing. Delete readable Spam through the thread delete endpoint. Only a person signed in to Samva with `spam.discard` can discard held mail; an API key is rejected with `403`."))();
3450
+ const MailboxesListThreadsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListThreads", "/v1/mailboxes/:id/threads", {
3393
3451
  params: MailboxesListThreadsPathParams,
3394
3452
  query: MailboxesListThreadsQuery,
3395
3453
  success: MailboxesListThreads200,
@@ -3402,7 +3460,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3402
3460
  MailboxesListThreads500,
3403
3461
  MailboxesListThreads504.pipe(HttpApiSchema.status(504))
3404
3462
  ]
3405
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first. Use `snoozed=true&order=wake` for earliest wake first, with ascending thread ID for ties. The `after` and `before` filters always use last activity. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In an activity-ordered list, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once. Omit `folder` to list every folder. A thread's folder is set when it is created and does not move on later replies: a thread a send started stays in `sent`, so find replies with `unread: true` and no `folder`."), HttpApiEndpoint.get("mailboxesGetThread", "/v1/mailboxes/:id/threads/:threadId", {
3463
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first. Use `snoozed=true&order=wake` for earliest wake first, with ascending thread ID for ties. The `after` and `before` filters always use last activity. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In an activity-ordered list, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once. Omit `folder` to list every folder. A thread's folder is set when it is created and does not move on later replies: a thread a send started stays in `sent`, so find replies with `unread: true` and no `folder`."))();
3464
+ const MailboxesGetThreadEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetThread", "/v1/mailboxes/:id/threads/:threadId", {
3406
3465
  params: MailboxesGetThreadPathParams,
3407
3466
  success: MailboxesGetThread200,
3408
3467
  error: [
@@ -3414,7 +3473,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3414
3473
  MailboxesGetThread500,
3415
3474
  MailboxesGetThread504.pipe(HttpApiSchema.status(504))
3416
3475
  ]
3417
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getThread").annotate(OpenApi.Summary, "Get a mailbox thread").annotate(OpenApi.Description, "Returns a thread with its participants and where it stands. Read its messages with `GET .../threads/{threadId}/messages` and their bodies with `GET .../threads/{threadId}/content`."), HttpApiEndpoint.delete("mailboxesDeleteThread", "/v1/mailboxes/:id/threads/:threadId", {
3476
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getThread").annotate(OpenApi.Summary, "Get a mailbox thread").annotate(OpenApi.Description, "Returns a thread with its participants and where it stands. Read its messages with `GET .../threads/{threadId}/messages` and their bodies with `GET .../threads/{threadId}/content`."))();
3477
+ const MailboxesDeleteThreadEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDeleteThread", "/v1/mailboxes/:id/threads/:threadId", {
3418
3478
  params: MailboxesDeleteThreadPathParams,
3419
3479
  success: MailboxesDeleteThread200,
3420
3480
  error: [
@@ -3427,7 +3487,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3427
3487
  MailboxesDeleteThread500,
3428
3488
  MailboxesDeleteThread504.pipe(HttpApiSchema.status(504))
3429
3489
  ]
3430
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteThread").annotate(OpenApi.Summary, "Permanently delete a mailbox thread").annotate(OpenApi.Description, "Deletes a thread from Trash or Spam. Requires thread:write. Returns 409 if the thread is outside those folders. Publishes mailbox.thread.deleted. Cleanup of stored files runs after the deletion commits."), HttpApiEndpoint.patch("mailboxesUpdateThread", "/v1/mailboxes/:id/threads/:threadId", {
3490
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteThread").annotate(OpenApi.Summary, "Permanently delete a mailbox thread").annotate(OpenApi.Description, "Deletes a thread from Trash or Spam. Requires thread:write. Returns 409 if the thread is outside those folders. Publishes mailbox.thread.deleted. Cleanup of stored files runs after the deletion commits."))();
3491
+ const MailboxesUpdateThreadEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdateThread", "/v1/mailboxes/:id/threads/:threadId", {
3431
3492
  params: MailboxesUpdateThreadPathParams,
3432
3493
  payload: MailboxesUpdateThreadRequestJson,
3433
3494
  success: MailboxesUpdateThread200,
@@ -3440,7 +3501,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3440
3501
  MailboxesUpdateThread500,
3441
3502
  MailboxesUpdateThread504.pipe(HttpApiSchema.status(504))
3442
3503
  ]
3443
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateThread").annotate(OpenApi.Summary, "Update a mailbox thread").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `folder`, `priority`, and `closed` are shared with everyone on the mailbox; `done`, `read`, `starred`, and `snoozedUntil` are the caller's own. The Done list includes the caller's Done and shared closed conversations; changing `done` does not reopen Close. Personal mailboxes refuse `closed`; archive them with `folder: archived`. Neither Done nor Close publishes webhook or event-stream events. A new live message clears Done for all readers and reopens Close. Labels are not updated here: use `POST` and `DELETE` on `/v1/mailboxes/{id}/threads/{threadId}/labels`. Returns where the thread stands, not its messages: read those with `GET .../threads/{threadId}`."), HttpApiEndpoint.get("mailboxesGetThreadContent", "/v1/mailboxes/:id/threads/:threadId/content", {
3504
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateThread").annotate(OpenApi.Summary, "Update a mailbox thread").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `folder`, `priority`, and `closed` are shared with everyone on the mailbox; `done`, `read`, `starred`, and `snoozedUntil` are the caller's own. The Done list includes the caller's Done and shared closed conversations; changing `done` does not reopen Close. Personal mailboxes refuse `closed`; archive them with `folder: archived`. Neither Done nor Close publishes webhook or event-stream events. A new live message clears Done for all readers and reopens Close. Labels are not updated here: use `POST` and `DELETE` on `/v1/mailboxes/{id}/threads/{threadId}/labels`. Returns where the thread stands, not its messages: read those with `GET .../threads/{threadId}`."))();
3505
+ const MailboxesGetThreadContentEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetThreadContent", "/v1/mailboxes/:id/threads/:threadId/content", {
3444
3506
  params: MailboxesGetThreadContentPathParams,
3445
3507
  query: MailboxesGetThreadContentQuery,
3446
3508
  success: MailboxesGetThreadContent200,
@@ -3453,7 +3515,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3453
3515
  MailboxesGetThreadContent500,
3454
3516
  MailboxesGetThreadContent504.pipe(HttpApiSchema.status(504))
3455
3517
  ]
3456
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getThreadContent").annotate(OpenApi.Summary, "Read a mailbox thread").annotate(OpenApi.Description, "Returns the thread's messages with their text, sanitized HTML, `replyText` (what each sender wrote, without quoted history), authentication verdicts, and attachments, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("mailboxesAddThreadLabels", "/v1/mailboxes/:id/threads/:threadId/labels", {
3518
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getThreadContent").annotate(OpenApi.Summary, "Read a mailbox thread").annotate(OpenApi.Description, "Returns the thread's messages with their text, sanitized HTML, `replyText` (what each sender wrote, without quoted history), authentication verdicts, and attachments, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
3519
+ const MailboxesAddThreadLabelsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesAddThreadLabels", "/v1/mailboxes/:id/threads/:threadId/labels", {
3457
3520
  params: MailboxesAddThreadLabelsPathParams,
3458
3521
  payload: MailboxesAddThreadLabelsRequestJson,
3459
3522
  success: MailboxesAddThreadLabels200,
@@ -3466,7 +3529,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3466
3529
  MailboxesAddThreadLabels500,
3467
3530
  MailboxesAddThreadLabels504.pipe(HttpApiSchema.status(504))
3468
3531
  ]
3469
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.addThreadLabels").annotate(OpenApi.Summary, "Add thread labels").annotate(OpenApi.Description, "Adds the given mailbox labels to the thread, keeping the labels it already has, and returns where the thread stands. Every id must be one of the mailbox's labels."), HttpApiEndpoint.delete("mailboxesRemoveThreadLabels", "/v1/mailboxes/:id/threads/:threadId/labels", {
3532
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.addThreadLabels").annotate(OpenApi.Summary, "Add thread labels").annotate(OpenApi.Description, "Adds the given mailbox labels to the thread, keeping the labels it already has, and returns where the thread stands. Every id must be one of the mailbox's labels."))();
3533
+ const MailboxesRemoveThreadLabelsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesRemoveThreadLabels", "/v1/mailboxes/:id/threads/:threadId/labels", {
3470
3534
  params: MailboxesRemoveThreadLabelsPathParams,
3471
3535
  payload: MailboxesRemoveThreadLabelsRequestJson,
3472
3536
  success: MailboxesRemoveThreadLabels200,
@@ -3479,7 +3543,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3479
3543
  MailboxesRemoveThreadLabels500,
3480
3544
  MailboxesRemoveThreadLabels504.pipe(HttpApiSchema.status(504))
3481
3545
  ]
3482
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeThreadLabels").annotate(OpenApi.Summary, "Remove thread labels").annotate(OpenApi.Description, "Removes the given labels from the thread and returns where the thread stands. A label the thread does not carry is ignored."), HttpApiEndpoint.get("mailboxesListThreadMessages", "/v1/mailboxes/:id/threads/:threadId/messages", {
3546
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeThreadLabels").annotate(OpenApi.Summary, "Remove thread labels").annotate(OpenApi.Description, "Removes the given labels from the thread and returns where the thread stands. A label the thread does not carry is ignored."))();
3547
+ const MailboxesListThreadMessagesEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListThreadMessages", "/v1/mailboxes/:id/threads/:threadId/messages", {
3483
3548
  params: MailboxesListThreadMessagesPathParams,
3484
3549
  query: MailboxesListThreadMessagesQuery,
3485
3550
  success: MailboxesListThreadMessages200,
@@ -3492,7 +3557,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3492
3557
  MailboxesListThreadMessages500,
3493
3558
  MailboxesListThreadMessages504.pipe(HttpApiSchema.status(504))
3494
3559
  ]
3495
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreadMessages").annotate(OpenApi.Summary, "List messages in a mailbox thread").annotate(OpenApi.Description, "Returns the thread's message summaries, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read the bodies with `GET .../threads/{threadId}/content` or one message with `GET /v1/mailboxes/{id}/messages/{messageId}`."), HttpApiEndpoint.get("mailboxesListThreadNotes", "/v1/mailboxes/:id/threads/:threadId/notes", {
3560
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreadMessages").annotate(OpenApi.Summary, "List messages in a mailbox thread").annotate(OpenApi.Description, "Returns the thread's message summaries, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read the bodies with `GET .../threads/{threadId}/content` or one message with `GET /v1/mailboxes/{id}/messages/{messageId}`."))();
3561
+ const MailboxesListThreadNotesEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListThreadNotes", "/v1/mailboxes/:id/threads/:threadId/notes", {
3496
3562
  params: MailboxesListThreadNotesPathParams,
3497
3563
  query: MailboxesListThreadNotesQuery,
3498
3564
  success: MailboxesListThreadNotes200,
@@ -3505,7 +3571,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3505
3571
  MailboxesListThreadNotes500,
3506
3572
  MailboxesListThreadNotes504.pipe(HttpApiSchema.status(504))
3507
3573
  ]
3508
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreadNotes").annotate(OpenApi.Summary, "List notes in a mailbox thread").annotate(OpenApi.Description, "Returns the internal notes on a thread with their bodies, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("mailboxesCreateNote", "/v1/mailboxes/:id/threads/:threadId/notes", {
3574
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreadNotes").annotate(OpenApi.Summary, "List notes in a mailbox thread").annotate(OpenApi.Description, "Returns the internal notes on a thread with their bodies, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
3575
+ const MailboxesCreateNoteEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateNote", "/v1/mailboxes/:id/threads/:threadId/notes", {
3509
3576
  params: MailboxesCreateNotePathParams,
3510
3577
  payload: MailboxesCreateNoteRequestJson,
3511
3578
  success: MailboxesCreateNote201.pipe(HttpApiSchema.status(201)),
@@ -3518,7 +3585,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3518
3585
  MailboxesCreateNote500,
3519
3586
  MailboxesCreateNote504.pipe(HttpApiSchema.status(504))
3520
3587
  ]
3521
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createNote").annotate(OpenApi.Summary, "Create a mailbox note").annotate(OpenApi.Description, "Adds an internal note to a thread and returns it with status 201. Notes are visible to everyone on the mailbox and never sent."), HttpApiEndpoint.delete("mailboxesDeleteNote", "/v1/mailboxes/:id/threads/:threadId/notes/:noteId", {
3588
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createNote").annotate(OpenApi.Summary, "Create a mailbox note").annotate(OpenApi.Description, "Adds an internal note to a thread and returns it with status 201. Notes are visible to everyone on the mailbox and never sent."))();
3589
+ const MailboxesDeleteNoteEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDeleteNote", "/v1/mailboxes/:id/threads/:threadId/notes/:noteId", {
3522
3590
  params: MailboxesDeleteNotePathParams,
3523
3591
  success: MailboxesDeleteNote200,
3524
3592
  error: [
@@ -3530,7 +3598,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3530
3598
  MailboxesDeleteNote500,
3531
3599
  MailboxesDeleteNote504.pipe(HttpApiSchema.status(504))
3532
3600
  ]
3533
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteNote").annotate(OpenApi.Summary, "Delete a mailbox note").annotate(OpenApi.Description, "Deletes a note. Only the note's author may."), HttpApiEndpoint.patch("mailboxesUpdateNote", "/v1/mailboxes/:id/threads/:threadId/notes/:noteId", {
3601
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteNote").annotate(OpenApi.Summary, "Delete a mailbox note").annotate(OpenApi.Description, "Deletes a note. Only the note's author may."))();
3602
+ const MailboxesUpdateNoteEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("mailboxesUpdateNote", "/v1/mailboxes/:id/threads/:threadId/notes/:noteId", {
3534
3603
  params: MailboxesUpdateNotePathParams,
3535
3604
  payload: MailboxesUpdateNoteRequestJson,
3536
3605
  success: MailboxesUpdateNote200,
@@ -3543,7 +3612,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3543
3612
  MailboxesUpdateNote500,
3544
3613
  MailboxesUpdateNote504.pipe(HttpApiSchema.status(504))
3545
3614
  ]
3546
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateNote").annotate(OpenApi.Summary, "Update a mailbox note").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. Only the note's author may."), HttpApiEndpoint.post("mailboxesEmptyTrash", "/v1/mailboxes/:id/trash/empty", {
3615
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateNote").annotate(OpenApi.Summary, "Update a mailbox note").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. Only the note's author may."))();
3616
+ const MailboxesEmptyTrashEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesEmptyTrash", "/v1/mailboxes/:id/trash/empty", {
3547
3617
  params: MailboxesEmptyTrashPathParams,
3548
3618
  success: MailboxesEmptyTrash202.pipe(HttpApiSchema.status(202)),
3549
3619
  error: [
@@ -3555,7 +3625,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3555
3625
  MailboxesEmptyTrash500,
3556
3626
  MailboxesEmptyTrash504.pipe(HttpApiSchema.status(504))
3557
3627
  ]
3558
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.emptyTrash").annotate(OpenApi.Summary, "Empty a mailbox's Trash").annotate(OpenApi.Description, "Queues permanent deletion of the threads currently in Trash and returns their count. Requires thread:write. A thread restored before processing is skipped."), HttpApiEndpoint.get("mailboxesListOrganizationDrafts", "/v1/mailboxes/drafts", {
3628
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.emptyTrash").annotate(OpenApi.Summary, "Empty a mailbox's Trash").annotate(OpenApi.Description, "Queues permanent deletion of the threads currently in Trash and returns their count. Requires thread:write. A thread restored before processing is skipped."))();
3629
+ const MailboxesListOrganizationDraftsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListOrganizationDrafts", "/v1/mailboxes/drafts", {
3559
3630
  query: MailboxesListOrganizationDraftsQuery,
3560
3631
  success: MailboxesListOrganizationDrafts200,
3561
3632
  error: [
@@ -3567,7 +3638,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3567
3638
  MailboxesListOrganizationDrafts500,
3568
3639
  MailboxesListOrganizationDrafts504.pipe(HttpApiSchema.status(504))
3569
3640
  ]
3570
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listOrganizationDrafts").annotate(OpenApi.Summary, "List your drafts across mailboxes").annotate(OpenApi.Description, "Lists only the caller's own unsent drafts in mailboxes where they may write drafts, newest first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes and threadId narrows to one thread. Each row carries its mailbox identity. Teammates' and agents' drafts are excluded. Pass nextCursor as cursor for the next page."), HttpApiEndpoint.get("mailboxesGetNeedsYou", "/v1/mailboxes/needs-you", {
3641
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listOrganizationDrafts").annotate(OpenApi.Summary, "List your drafts across mailboxes").annotate(OpenApi.Description, "Lists only the caller's own unsent drafts in mailboxes where they may write drafts, newest first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes and threadId narrows to one thread. Each row carries its mailbox identity. Teammates' and agents' drafts are excluded. Pass nextCursor as cursor for the next page."))();
3642
+ const MailboxesGetNeedsYouEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetNeedsYou", "/v1/mailboxes/needs-you", {
3571
3643
  query: MailboxesGetNeedsYouQuery,
3572
3644
  success: MailboxesGetNeedsYou200,
3573
3645
  error: [
@@ -3578,7 +3650,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3578
3650
  MailboxesGetNeedsYou500,
3579
3651
  MailboxesGetNeedsYou504.pipe(HttpApiSchema.status(504))
3580
3652
  ]
3581
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getNeedsYou").annotate(OpenApi.Summary, "List mailbox decisions awaiting you").annotate(OpenApi.Description, "Returns held actions this caller can approve across their visible mailboxes. Counts cover all actionable items across pages. The queue excludes the caller’s own proposals. Read Spam through the thread list and use the held-mail endpoint for malware metadata."), HttpApiEndpoint.get("mailboxesListSplits", "/v1/mailboxes/splits", {
3653
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getNeedsYou").annotate(OpenApi.Summary, "List mailbox decisions awaiting you").annotate(OpenApi.Description, "Returns held actions this caller can approve across their visible mailboxes. Counts cover all actionable items across pages. The queue excludes the caller’s own proposals. Read Spam through the thread list and use the held-mail endpoint for malware metadata."))();
3654
+ const MailboxesListSplitsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListSplits", "/v1/mailboxes/splits", {
3582
3655
  success: MailboxesListSplits200,
3583
3656
  error: [
3584
3657
  MailboxesListSplits400.pipe(HttpApiSchema.status(400)),
@@ -3588,7 +3661,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3588
3661
  MailboxesListSplits500,
3589
3662
  MailboxesListSplits504.pipe(HttpApiSchema.status(504))
3590
3663
  ]
3591
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listSplits").annotate(OpenApi.Summary, "List Mail splits").annotate(OpenApi.Description, "Returns the signed-in reader’s saved filters in sidebar order. Splits are private to this user and organization. Requires a person signed in through Mail or the CLI."), HttpApiEndpoint.post("mailboxesCreateSplit", "/v1/mailboxes/splits", {
3664
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listSplits").annotate(OpenApi.Summary, "List Mail splits").annotate(OpenApi.Description, "Returns the signed-in reader’s saved filters in sidebar order. Splits are private to this user and organization. Requires a person signed in through Mail or the CLI."))();
3665
+ const MailboxesCreateSplitEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("mailboxesCreateSplit", "/v1/mailboxes/splits", {
3592
3666
  payload: MailboxesCreateSplitRequestJson,
3593
3667
  success: MailboxesCreateSplit200,
3594
3668
  error: [
@@ -3600,7 +3674,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3600
3674
  MailboxesCreateSplit500,
3601
3675
  MailboxesCreateSplit504.pipe(HttpApiSchema.status(504))
3602
3676
  ]
3603
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createSplit").annotate(OpenApi.Summary, "Create a Mail split").annotate(OpenApi.Description, "Saves a named query, recipient address, or VIP sender list for the signed-in reader. Requires a person signed in through Mail or the CLI."), HttpApiEndpoint.put("mailboxesUpdateSplit", "/v1/mailboxes/splits/:splitId", {
3677
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createSplit").annotate(OpenApi.Summary, "Create a Mail split").annotate(OpenApi.Description, "Saves a named query, recipient address, or VIP sender list for the signed-in reader. Requires a person signed in through Mail or the CLI."))();
3678
+ const MailboxesUpdateSplitEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.put("mailboxesUpdateSplit", "/v1/mailboxes/splits/:splitId", {
3604
3679
  params: MailboxesUpdateSplitPathParams,
3605
3680
  payload: MailboxesUpdateSplitRequestJson,
3606
3681
  success: MailboxesUpdateSplit200,
@@ -3613,7 +3688,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3613
3688
  MailboxesUpdateSplit500,
3614
3689
  MailboxesUpdateSplit504.pipe(HttpApiSchema.status(504))
3615
3690
  ]
3616
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateSplit").annotate(OpenApi.Summary, "Update a Mail split").annotate(OpenApi.Description, "Replaces the name, filter, mailbox scope and sidebar position of a split owned by the signed-in reader. Requires a person signed in through Mail or the CLI."), HttpApiEndpoint.delete("mailboxesDeleteSplit", "/v1/mailboxes/splits/:splitId", {
3691
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateSplit").annotate(OpenApi.Summary, "Update a Mail split").annotate(OpenApi.Description, "Replaces the name, filter, mailbox scope and sidebar position of a split owned by the signed-in reader. Requires a person signed in through Mail or the CLI."))();
3692
+ const MailboxesDeleteSplitEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("mailboxesDeleteSplit", "/v1/mailboxes/splits/:splitId", {
3617
3693
  params: MailboxesDeleteSplitPathParams,
3618
3694
  success: MailboxesDeleteSplit200,
3619
3695
  error: [
@@ -3625,7 +3701,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3625
3701
  MailboxesDeleteSplit500,
3626
3702
  MailboxesDeleteSplit504.pipe(HttpApiSchema.status(504))
3627
3703
  ]
3628
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteSplit").annotate(OpenApi.Summary, "Delete a Mail split").annotate(OpenApi.Description, "Deletes the signed-in reader’s saved split and returns it. Requires a person signed in through Mail or the CLI."), HttpApiEndpoint.get("mailboxesCountSplits", "/v1/mailboxes/splits/counts", {
3704
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteSplit").annotate(OpenApi.Summary, "Delete a Mail split").annotate(OpenApi.Description, "Deletes the signed-in reader’s saved split and returns it. Requires a person signed in through Mail or the CLI."))();
3705
+ const MailboxesCountSplitsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesCountSplits", "/v1/mailboxes/splits/counts", {
3629
3706
  success: MailboxesCountSplits200,
3630
3707
  error: [
3631
3708
  MailboxesCountSplits400.pipe(HttpApiSchema.status(400)),
@@ -3635,7 +3712,8 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3635
3712
  MailboxesCountSplits500,
3636
3713
  MailboxesCountSplits504.pipe(HttpApiSchema.status(504))
3637
3714
  ]
3638
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.countSplits").annotate(OpenApi.Summary, "Count unread Mail split threads").annotate(OpenApi.Description, "Returns each saved split’s unread actionable Inbox threads: not Done, not snoozed, and not Closed in shared mailboxes. Query splits use bounded search results; capped is true when search reaches its candidate limit, so unread is a lower bound. Requires a person signed in through Mail or the CLI."), HttpApiEndpoint.get("mailboxesListOrganizationThreads", "/v1/mailboxes/threads", {
3715
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.countSplits").annotate(OpenApi.Summary, "Count unread Mail split threads").annotate(OpenApi.Description, "Returns each saved split’s unread actionable Inbox threads: not Done, not snoozed, and not Closed in shared mailboxes. Query splits use bounded search results; capped is true when search reaches its candidate limit, so unread is a lower bound. Requires a person signed in through Mail or the CLI."))();
3716
+ const MailboxesListOrganizationThreadsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesListOrganizationThreads", "/v1/mailboxes/threads", {
3639
3717
  query: MailboxesListOrganizationThreadsQuery,
3640
3718
  success: MailboxesListOrganizationThreads200,
3641
3719
  error: [
@@ -3647,7 +3725,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
3647
3725
  MailboxesListOrganizationThreads500,
3648
3726
  MailboxesListOrganizationThreads504.pipe(HttpApiSchema.status(504))
3649
3727
  ]
3650
- }).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. Use `snoozed=true&order=wake` for earliest wake first, with ascending thread ID for ties. 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") {};
3651
- 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, MailboxEmptySpamAccepted, MailboxEmptyTrashAccepted, 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, MailboxScheduledSendPage, MailboxSendAction, MailboxSendSnapshot, MailboxSmsEndpoint, MailboxSmsEndpointBinding, MailboxSpamHeldMessage, MailboxSpamHeldPage, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadMailbox, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadSpam, 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, MailboxesCompleteImportUpload200, MailboxesCompleteImportUpload400, MailboxesCompleteImportUpload401, MailboxesCompleteImportUpload403, MailboxesCompleteImportUpload404, MailboxesCompleteImportUpload409, MailboxesCompleteImportUpload422, MailboxesCompleteImportUpload500, MailboxesCompleteImportUpload504, MailboxesCompleteImportUploadPathParams, MailboxesCompleteImportUploadRequestJson, 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, MailboxesCreateImportUpload402, MailboxesCreateImportUpload403, MailboxesCreateImportUpload404, MailboxesCreateImportUpload409, MailboxesCreateImportUpload422, MailboxesCreateImportUpload500, MailboxesCreateImportUpload502, 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, MailboxesDeleteThread200, MailboxesDeleteThread400, MailboxesDeleteThread401, MailboxesDeleteThread403, MailboxesDeleteThread404, MailboxesDeleteThread409, MailboxesDeleteThread422, MailboxesDeleteThread500, MailboxesDeleteThread504, MailboxesDeleteThreadPathParams, MailboxesDenyAction200, MailboxesDenyAction400, MailboxesDenyAction401, MailboxesDenyAction403, MailboxesDenyAction404, MailboxesDenyAction409, MailboxesDenyAction422, MailboxesDenyAction500, MailboxesDenyAction504, MailboxesDenyActionPathParams, MailboxesDenyActionRequestJson, MailboxesDiscardImport200, MailboxesDiscardImport400, MailboxesDiscardImport401, MailboxesDiscardImport403, MailboxesDiscardImport404, MailboxesDiscardImport409, MailboxesDiscardImport422, MailboxesDiscardImport500, MailboxesDiscardImport504, MailboxesDiscardImportPathParams, MailboxesDiscardImportUpload200, MailboxesDiscardImportUpload400, MailboxesDiscardImportUpload401, MailboxesDiscardImportUpload403, MailboxesDiscardImportUpload404, MailboxesDiscardImportUpload409, MailboxesDiscardImportUpload422, MailboxesDiscardImportUpload500, MailboxesDiscardImportUpload504, MailboxesDiscardImportUploadPathParams, MailboxesDiscardSpamHeld200, MailboxesDiscardSpamHeld400, MailboxesDiscardSpamHeld401, MailboxesDiscardSpamHeld403, MailboxesDiscardSpamHeld404, MailboxesDiscardSpamHeld422, MailboxesDiscardSpamHeld500, MailboxesDiscardSpamHeld502, MailboxesDiscardSpamHeld504, MailboxesDiscardSpamHeldPathParams, MailboxesEmptySpam202, MailboxesEmptySpam400, MailboxesEmptySpam401, MailboxesEmptySpam403, MailboxesEmptySpam404, MailboxesEmptySpam422, MailboxesEmptySpam500, MailboxesEmptySpam504, MailboxesEmptySpamPathParams, MailboxesEmptyTrash202, MailboxesEmptyTrash400, MailboxesEmptyTrash401, MailboxesEmptyTrash403, MailboxesEmptyTrash404, MailboxesEmptyTrash422, MailboxesEmptyTrash500, MailboxesEmptyTrash504, MailboxesEmptyTrashPathParams, 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, MailboxesListQuery, MailboxesListScheduledSends200, MailboxesListScheduledSends400, MailboxesListScheduledSends401, MailboxesListScheduledSends403, MailboxesListScheduledSends404, MailboxesListScheduledSends422, MailboxesListScheduledSends500, MailboxesListScheduledSends504, MailboxesListScheduledSendsPathParams, MailboxesListScheduledSendsQuery, MailboxesListSpamHeld200, MailboxesListSpamHeld400, MailboxesListSpamHeld401, MailboxesListSpamHeld403, MailboxesListSpamHeld404, MailboxesListSpamHeld422, MailboxesListSpamHeld500, MailboxesListSpamHeld504, MailboxesListSpamHeldPathParams, MailboxesListSpamHeldQuery, 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, 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, MailboxesSignImportUploadParts200, MailboxesSignImportUploadParts400, MailboxesSignImportUploadParts401, MailboxesSignImportUploadParts403, MailboxesSignImportUploadParts404, MailboxesSignImportUploadParts409, MailboxesSignImportUploadParts422, MailboxesSignImportUploadParts500, MailboxesSignImportUploadParts504, MailboxesSignImportUploadPartsPathParams, MailboxesSignImportUploadPartsRequestJson, 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 };
3728
+ }).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. Use `snoozed=true&order=wake` for earliest wake first, with ascending thread ID for ties. 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."))();
3729
+ 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, MailboxEmptySpamAccepted, MailboxEmptyTrashAccepted, 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, MailboxScheduledSendPage, MailboxSendAction, MailboxSendSnapshot, MailboxSmsEndpoint, MailboxSmsEndpointBinding, MailboxSpamHeldMessage, MailboxSpamHeldPage, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadMailbox, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadSpam, MailboxThreadState, MailboxThreadSummary, MailboxToolCall, MailboxWhatsAppEndpoint, MailboxWhatsAppEndpointBinding, MailboxWhatsAppServiceWindow, MailboxesAddThreadLabels200, MailboxesAddThreadLabels400, MailboxesAddThreadLabels401, MailboxesAddThreadLabels403, MailboxesAddThreadLabels404, MailboxesAddThreadLabels422, MailboxesAddThreadLabels500, MailboxesAddThreadLabels504, MailboxesAddThreadLabelsEndpoint, MailboxesAddThreadLabelsPathParams, MailboxesAddThreadLabelsRequestJson, MailboxesApproveAction200, MailboxesApproveAction202, MailboxesApproveAction400, MailboxesApproveAction401, MailboxesApproveAction402, MailboxesApproveAction403, MailboxesApproveAction404, MailboxesApproveAction409, MailboxesApproveAction422, MailboxesApproveAction429, MailboxesApproveAction500, MailboxesApproveAction502, MailboxesApproveAction503, MailboxesApproveAction504, MailboxesApproveActionEndpoint, MailboxesApproveActionPathParams, MailboxesApproveActionRequestJson, MailboxesCancelAction200, MailboxesCancelAction202, MailboxesCancelAction400, MailboxesCancelAction401, MailboxesCancelAction402, MailboxesCancelAction403, MailboxesCancelAction404, MailboxesCancelAction409, MailboxesCancelAction422, MailboxesCancelAction429, MailboxesCancelAction500, MailboxesCancelAction502, MailboxesCancelAction503, MailboxesCancelAction504, MailboxesCancelActionEndpoint, MailboxesCancelActionPathParams, MailboxesCompleteImportUpload200, MailboxesCompleteImportUpload400, MailboxesCompleteImportUpload401, MailboxesCompleteImportUpload403, MailboxesCompleteImportUpload404, MailboxesCompleteImportUpload409, MailboxesCompleteImportUpload422, MailboxesCompleteImportUpload500, MailboxesCompleteImportUpload504, MailboxesCompleteImportUploadEndpoint, MailboxesCompleteImportUploadPathParams, MailboxesCompleteImportUploadRequestJson, MailboxesCopyMessageAttachment201, MailboxesCopyMessageAttachment400, MailboxesCopyMessageAttachment401, MailboxesCopyMessageAttachment403, MailboxesCopyMessageAttachment404, MailboxesCopyMessageAttachment409, MailboxesCopyMessageAttachment422, MailboxesCopyMessageAttachment500, MailboxesCopyMessageAttachment504, MailboxesCopyMessageAttachmentEndpoint, MailboxesCopyMessageAttachmentPathParams, MailboxesCountSplits200, MailboxesCountSplits400, MailboxesCountSplits401, MailboxesCountSplits403, MailboxesCountSplits422, MailboxesCountSplits500, MailboxesCountSplits504, MailboxesCountSplitsEndpoint, MailboxesCreate201, MailboxesCreate400, MailboxesCreate401, MailboxesCreate402, MailboxesCreate403, MailboxesCreate404, MailboxesCreate409, MailboxesCreate422, MailboxesCreate500, MailboxesCreate502, MailboxesCreate504, MailboxesCreateDraft201, MailboxesCreateDraft400, MailboxesCreateDraft401, MailboxesCreateDraft403, MailboxesCreateDraft404, MailboxesCreateDraft422, MailboxesCreateDraft500, MailboxesCreateDraft504, MailboxesCreateDraftEndpoint, MailboxesCreateDraftPathParams, MailboxesCreateDraftRequestJson, MailboxesCreateEndpoint, MailboxesCreateEndpoint201, MailboxesCreateEndpoint400, MailboxesCreateEndpoint401, MailboxesCreateEndpoint403, MailboxesCreateEndpoint404, MailboxesCreateEndpoint409, MailboxesCreateEndpoint422, MailboxesCreateEndpoint500, MailboxesCreateEndpoint504, MailboxesCreateEndpointEndpoint, MailboxesCreateEndpointPathParams, MailboxesCreateEndpointRequestJson, MailboxesCreateGrant201, MailboxesCreateGrant400, MailboxesCreateGrant401, MailboxesCreateGrant403, MailboxesCreateGrant404, MailboxesCreateGrant409, MailboxesCreateGrant422, MailboxesCreateGrant500, MailboxesCreateGrant504, MailboxesCreateGrantEndpoint, MailboxesCreateGrantPathParams, MailboxesCreateGrantRequestJson, MailboxesCreateHeaders, MailboxesCreateImportUpload200, MailboxesCreateImportUpload400, MailboxesCreateImportUpload401, MailboxesCreateImportUpload402, MailboxesCreateImportUpload403, MailboxesCreateImportUpload404, MailboxesCreateImportUpload409, MailboxesCreateImportUpload422, MailboxesCreateImportUpload500, MailboxesCreateImportUpload502, MailboxesCreateImportUpload504, MailboxesCreateImportUploadEndpoint, MailboxesCreateImportUploadPathParams, MailboxesCreateImportUploadRequestJson, MailboxesCreateLabel201, MailboxesCreateLabel400, MailboxesCreateLabel401, MailboxesCreateLabel403, MailboxesCreateLabel404, MailboxesCreateLabel409, MailboxesCreateLabel422, MailboxesCreateLabel500, MailboxesCreateLabel504, MailboxesCreateLabelEndpoint, MailboxesCreateLabelPathParams, MailboxesCreateLabelRequestJson, MailboxesCreateNote201, MailboxesCreateNote400, MailboxesCreateNote401, MailboxesCreateNote403, MailboxesCreateNote404, MailboxesCreateNote422, MailboxesCreateNote500, MailboxesCreateNote504, MailboxesCreateNoteEndpoint, MailboxesCreateNotePathParams, MailboxesCreateNoteRequestJson, MailboxesCreateRequestJson, MailboxesCreateSplit200, MailboxesCreateSplit400, MailboxesCreateSplit401, MailboxesCreateSplit403, MailboxesCreateSplit404, MailboxesCreateSplit422, MailboxesCreateSplit500, MailboxesCreateSplit504, MailboxesCreateSplitEndpoint, MailboxesCreateSplitRequestJson, MailboxesDeleteDraft200, MailboxesDeleteDraft400, MailboxesDeleteDraft401, MailboxesDeleteDraft403, MailboxesDeleteDraft404, MailboxesDeleteDraft422, MailboxesDeleteDraft500, MailboxesDeleteDraft504, MailboxesDeleteDraftEndpoint, MailboxesDeleteDraftPathParams, MailboxesDeleteLabel200, MailboxesDeleteLabel400, MailboxesDeleteLabel401, MailboxesDeleteLabel403, MailboxesDeleteLabel404, MailboxesDeleteLabel422, MailboxesDeleteLabel500, MailboxesDeleteLabel504, MailboxesDeleteLabelEndpoint, MailboxesDeleteLabelPathParams, MailboxesDeleteNote200, MailboxesDeleteNote400, MailboxesDeleteNote401, MailboxesDeleteNote403, MailboxesDeleteNote404, MailboxesDeleteNote422, MailboxesDeleteNote500, MailboxesDeleteNote504, MailboxesDeleteNoteEndpoint, MailboxesDeleteNotePathParams, MailboxesDeleteSplit200, MailboxesDeleteSplit400, MailboxesDeleteSplit401, MailboxesDeleteSplit403, MailboxesDeleteSplit404, MailboxesDeleteSplit422, MailboxesDeleteSplit500, MailboxesDeleteSplit504, MailboxesDeleteSplitEndpoint, MailboxesDeleteSplitPathParams, MailboxesDeleteThread200, MailboxesDeleteThread400, MailboxesDeleteThread401, MailboxesDeleteThread403, MailboxesDeleteThread404, MailboxesDeleteThread409, MailboxesDeleteThread422, MailboxesDeleteThread500, MailboxesDeleteThread504, MailboxesDeleteThreadEndpoint, MailboxesDeleteThreadPathParams, MailboxesDenyAction200, MailboxesDenyAction400, MailboxesDenyAction401, MailboxesDenyAction403, MailboxesDenyAction404, MailboxesDenyAction409, MailboxesDenyAction422, MailboxesDenyAction500, MailboxesDenyAction504, MailboxesDenyActionEndpoint, MailboxesDenyActionPathParams, MailboxesDenyActionRequestJson, MailboxesDiscardImport200, MailboxesDiscardImport400, MailboxesDiscardImport401, MailboxesDiscardImport403, MailboxesDiscardImport404, MailboxesDiscardImport409, MailboxesDiscardImport422, MailboxesDiscardImport500, MailboxesDiscardImport504, MailboxesDiscardImportEndpoint, MailboxesDiscardImportPathParams, MailboxesDiscardImportUpload200, MailboxesDiscardImportUpload400, MailboxesDiscardImportUpload401, MailboxesDiscardImportUpload403, MailboxesDiscardImportUpload404, MailboxesDiscardImportUpload409, MailboxesDiscardImportUpload422, MailboxesDiscardImportUpload500, MailboxesDiscardImportUpload504, MailboxesDiscardImportUploadEndpoint, MailboxesDiscardImportUploadPathParams, MailboxesDiscardSpamHeld200, MailboxesDiscardSpamHeld400, MailboxesDiscardSpamHeld401, MailboxesDiscardSpamHeld403, MailboxesDiscardSpamHeld404, MailboxesDiscardSpamHeld422, MailboxesDiscardSpamHeld500, MailboxesDiscardSpamHeld502, MailboxesDiscardSpamHeld504, MailboxesDiscardSpamHeldEndpoint, MailboxesDiscardSpamHeldPathParams, MailboxesEmptySpam202, MailboxesEmptySpam400, MailboxesEmptySpam401, MailboxesEmptySpam403, MailboxesEmptySpam404, MailboxesEmptySpam422, MailboxesEmptySpam500, MailboxesEmptySpam504, MailboxesEmptySpamEndpoint, MailboxesEmptySpamPathParams, MailboxesEmptyTrash202, MailboxesEmptyTrash400, MailboxesEmptyTrash401, MailboxesEmptyTrash403, MailboxesEmptyTrash404, MailboxesEmptyTrash422, MailboxesEmptyTrash500, MailboxesEmptyTrash504, MailboxesEmptyTrashEndpoint, MailboxesEmptyTrashPathParams, MailboxesForward200, MailboxesForward202, MailboxesForward400, MailboxesForward401, MailboxesForward402, MailboxesForward403, MailboxesForward404, MailboxesForward409, MailboxesForward422, MailboxesForward429, MailboxesForward500, MailboxesForward502, MailboxesForward503, MailboxesForward504, MailboxesForwardEndpoint, MailboxesForwardHeaders, MailboxesForwardPathParams, MailboxesForwardRequestJson, MailboxesGet200, MailboxesGet400, MailboxesGet401, MailboxesGet403, MailboxesGet404, MailboxesGet422, MailboxesGet500, MailboxesGet504, MailboxesGetAction200, MailboxesGetAction400, MailboxesGetAction401, MailboxesGetAction403, MailboxesGetAction404, MailboxesGetAction422, MailboxesGetAction500, MailboxesGetAction504, MailboxesGetActionEndpoint, MailboxesGetActionPathParams, MailboxesGetAgentActivity200, MailboxesGetAgentActivity400, MailboxesGetAgentActivity401, MailboxesGetAgentActivity403, MailboxesGetAgentActivity404, MailboxesGetAgentActivity422, MailboxesGetAgentActivity500, MailboxesGetAgentActivity504, MailboxesGetAgentActivityEndpoint, MailboxesGetAgentActivityPathParams, MailboxesGetAgentActivityQuery, MailboxesGetDraft200, MailboxesGetDraft400, MailboxesGetDraft401, MailboxesGetDraft403, MailboxesGetDraft404, MailboxesGetDraft422, MailboxesGetDraft500, MailboxesGetDraft504, MailboxesGetDraftEndpoint, MailboxesGetDraftPathParams, MailboxesGetEndpoint, MailboxesGetImport200, MailboxesGetImport400, MailboxesGetImport401, MailboxesGetImport403, MailboxesGetImport404, MailboxesGetImport422, MailboxesGetImport500, MailboxesGetImport504, MailboxesGetImportEndpoint, MailboxesGetImportPathParams, MailboxesGetMessage200, MailboxesGetMessage400, MailboxesGetMessage401, MailboxesGetMessage403, MailboxesGetMessage404, MailboxesGetMessage422, MailboxesGetMessage500, MailboxesGetMessage504, MailboxesGetMessageAttachment200, MailboxesGetMessageAttachment400, MailboxesGetMessageAttachment401, MailboxesGetMessageAttachment403, MailboxesGetMessageAttachment404, MailboxesGetMessageAttachment422, MailboxesGetMessageAttachment500, MailboxesGetMessageAttachment504, MailboxesGetMessageAttachmentEndpoint, MailboxesGetMessageAttachmentPathParams, MailboxesGetMessageEndpoint, MailboxesGetMessagePathParams, MailboxesGetMessageRaw200, MailboxesGetMessageRaw400, MailboxesGetMessageRaw401, MailboxesGetMessageRaw403, MailboxesGetMessageRaw404, MailboxesGetMessageRaw422, MailboxesGetMessageRaw500, MailboxesGetMessageRaw504, MailboxesGetMessageRawEndpoint, MailboxesGetMessageRawPathParams, MailboxesGetNeedsYou200, MailboxesGetNeedsYou400, MailboxesGetNeedsYou401, MailboxesGetNeedsYou403, MailboxesGetNeedsYou422, MailboxesGetNeedsYou500, MailboxesGetNeedsYou504, MailboxesGetNeedsYouEndpoint, MailboxesGetNeedsYouQuery, MailboxesGetPathParams, MailboxesGetThread200, MailboxesGetThread400, MailboxesGetThread401, MailboxesGetThread403, MailboxesGetThread404, MailboxesGetThread422, MailboxesGetThread500, MailboxesGetThread504, MailboxesGetThreadContent200, MailboxesGetThreadContent400, MailboxesGetThreadContent401, MailboxesGetThreadContent403, MailboxesGetThreadContent404, MailboxesGetThreadContent422, MailboxesGetThreadContent500, MailboxesGetThreadContent504, MailboxesGetThreadContentEndpoint, MailboxesGetThreadContentPathParams, MailboxesGetThreadContentQuery, MailboxesGetThreadEndpoint, MailboxesGetThreadPathParams, MailboxesList200, MailboxesList400, MailboxesList401, MailboxesList403, MailboxesList422, MailboxesList500, MailboxesList504, MailboxesListActions200, MailboxesListActions400, MailboxesListActions401, MailboxesListActions403, MailboxesListActions404, MailboxesListActions422, MailboxesListActions500, MailboxesListActions504, MailboxesListActionsEndpoint, MailboxesListActionsPathParams, MailboxesListActionsQuery, MailboxesListAddresses200, MailboxesListAddresses400, MailboxesListAddresses401, MailboxesListAddresses403, MailboxesListAddresses404, MailboxesListAddresses422, MailboxesListAddresses500, MailboxesListAddresses504, MailboxesListAddressesEndpoint, MailboxesListAddressesPathParams, MailboxesListAddressesQuery, MailboxesListDrafts200, MailboxesListDrafts400, MailboxesListDrafts401, MailboxesListDrafts403, MailboxesListDrafts404, MailboxesListDrafts422, MailboxesListDrafts500, MailboxesListDrafts504, MailboxesListDraftsEndpoint, MailboxesListDraftsPathParams, MailboxesListDraftsQuery, MailboxesListEndpoint, MailboxesListEvents200, MailboxesListEvents400, MailboxesListEvents401, MailboxesListEvents403, MailboxesListEvents404, MailboxesListEvents422, MailboxesListEvents500, MailboxesListEvents504, MailboxesListEventsEndpoint, MailboxesListEventsPathParams, MailboxesListEventsQuery, MailboxesListFolders200, MailboxesListFolders400, MailboxesListFolders401, MailboxesListFolders403, MailboxesListFolders404, MailboxesListFolders422, MailboxesListFolders500, MailboxesListFolders504, MailboxesListFoldersEndpoint, MailboxesListFoldersPathParams, MailboxesListGrants200, MailboxesListGrants400, MailboxesListGrants401, MailboxesListGrants403, MailboxesListGrants404, MailboxesListGrants422, MailboxesListGrants500, MailboxesListGrants504, MailboxesListGrantsEndpoint, MailboxesListGrantsPathParams, MailboxesListGrantsQuery, MailboxesListImports200, MailboxesListImports400, MailboxesListImports401, MailboxesListImports403, MailboxesListImports404, MailboxesListImports422, MailboxesListImports500, MailboxesListImports504, MailboxesListImportsEndpoint, MailboxesListImportsPathParams, MailboxesListLabels200, MailboxesListLabels400, MailboxesListLabels401, MailboxesListLabels403, MailboxesListLabels404, MailboxesListLabels422, MailboxesListLabels500, MailboxesListLabels504, MailboxesListLabelsEndpoint, MailboxesListLabelsPathParams, MailboxesListOrganizationDrafts200, MailboxesListOrganizationDrafts400, MailboxesListOrganizationDrafts401, MailboxesListOrganizationDrafts403, MailboxesListOrganizationDrafts404, MailboxesListOrganizationDrafts422, MailboxesListOrganizationDrafts500, MailboxesListOrganizationDrafts504, MailboxesListOrganizationDraftsEndpoint, MailboxesListOrganizationDraftsQuery, MailboxesListOrganizationThreads200, MailboxesListOrganizationThreads400, MailboxesListOrganizationThreads401, MailboxesListOrganizationThreads403, MailboxesListOrganizationThreads404, MailboxesListOrganizationThreads422, MailboxesListOrganizationThreads500, MailboxesListOrganizationThreads504, MailboxesListOrganizationThreadsEndpoint, MailboxesListOrganizationThreadsQuery, MailboxesListQuery, MailboxesListScheduledSends200, MailboxesListScheduledSends400, MailboxesListScheduledSends401, MailboxesListScheduledSends403, MailboxesListScheduledSends404, MailboxesListScheduledSends422, MailboxesListScheduledSends500, MailboxesListScheduledSends504, MailboxesListScheduledSendsEndpoint, MailboxesListScheduledSendsPathParams, MailboxesListScheduledSendsQuery, MailboxesListSpamHeld200, MailboxesListSpamHeld400, MailboxesListSpamHeld401, MailboxesListSpamHeld403, MailboxesListSpamHeld404, MailboxesListSpamHeld422, MailboxesListSpamHeld500, MailboxesListSpamHeld504, MailboxesListSpamHeldEndpoint, MailboxesListSpamHeldPathParams, MailboxesListSpamHeldQuery, MailboxesListSplits200, MailboxesListSplits400, MailboxesListSplits401, MailboxesListSplits403, MailboxesListSplits422, MailboxesListSplits500, MailboxesListSplits504, MailboxesListSplitsEndpoint, MailboxesListThreadMessages200, MailboxesListThreadMessages400, MailboxesListThreadMessages401, MailboxesListThreadMessages403, MailboxesListThreadMessages404, MailboxesListThreadMessages422, MailboxesListThreadMessages500, MailboxesListThreadMessages504, MailboxesListThreadMessagesEndpoint, MailboxesListThreadMessagesPathParams, MailboxesListThreadMessagesQuery, MailboxesListThreadNotes200, MailboxesListThreadNotes400, MailboxesListThreadNotes401, MailboxesListThreadNotes403, MailboxesListThreadNotes404, MailboxesListThreadNotes422, MailboxesListThreadNotes500, MailboxesListThreadNotes504, MailboxesListThreadNotesEndpoint, MailboxesListThreadNotesPathParams, MailboxesListThreadNotesQuery, MailboxesListThreads200, MailboxesListThreads400, MailboxesListThreads401, MailboxesListThreads403, MailboxesListThreads404, MailboxesListThreads422, MailboxesListThreads500, MailboxesListThreads504, MailboxesListThreadsEndpoint, MailboxesListThreadsPathParams, MailboxesListThreadsQuery, MailboxesPause200, MailboxesPause400, MailboxesPause401, MailboxesPause403, MailboxesPause404, MailboxesPause422, MailboxesPause500, MailboxesPause504, MailboxesPauseEndpoint, MailboxesPausePathParams, MailboxesRemove200, MailboxesRemove400, MailboxesRemove401, MailboxesRemove403, MailboxesRemove404, MailboxesRemove422, MailboxesRemove500, MailboxesRemove502, MailboxesRemove504, MailboxesRemoveEndpoint, MailboxesRemoveEndpoint200, MailboxesRemoveEndpoint400, MailboxesRemoveEndpoint401, MailboxesRemoveEndpoint403, MailboxesRemoveEndpoint404, MailboxesRemoveEndpoint422, MailboxesRemoveEndpoint500, MailboxesRemoveEndpoint504, MailboxesRemoveEndpointEndpoint, MailboxesRemoveEndpointPathParams, MailboxesRemovePathParams, MailboxesRemoveThreadLabels200, MailboxesRemoveThreadLabels400, MailboxesRemoveThreadLabels401, MailboxesRemoveThreadLabels403, MailboxesRemoveThreadLabels404, MailboxesRemoveThreadLabels422, MailboxesRemoveThreadLabels500, MailboxesRemoveThreadLabels504, MailboxesRemoveThreadLabelsEndpoint, 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, MailboxesReplyAllEndpoint, MailboxesReplyAllHeaders, MailboxesReplyAllPathParams, MailboxesReplyAllRequestJson, MailboxesReplyEndpoint, MailboxesReplyHeaders, MailboxesReplyPathParams, MailboxesReplyRequestJson, MailboxesRescheduleSend200, MailboxesRescheduleSend400, MailboxesRescheduleSend401, MailboxesRescheduleSend403, MailboxesRescheduleSend404, MailboxesRescheduleSend409, MailboxesRescheduleSend422, MailboxesRescheduleSend429, MailboxesRescheduleSend500, MailboxesRescheduleSend504, MailboxesRescheduleSendEndpoint, MailboxesRescheduleSendPathParams, MailboxesRescheduleSendRequestJson, MailboxesResume200, MailboxesResume400, MailboxesResume401, MailboxesResume403, MailboxesResume404, MailboxesResume422, MailboxesResume500, MailboxesResume504, MailboxesResumeEndpoint, MailboxesResumePathParams, MailboxesRetryAction200, MailboxesRetryAction202, MailboxesRetryAction400, MailboxesRetryAction401, MailboxesRetryAction402, MailboxesRetryAction403, MailboxesRetryAction404, MailboxesRetryAction409, MailboxesRetryAction422, MailboxesRetryAction429, MailboxesRetryAction500, MailboxesRetryAction502, MailboxesRetryAction503, MailboxesRetryAction504, MailboxesRetryActionEndpoint, MailboxesRetryActionPathParams, MailboxesRevokeGrant200, MailboxesRevokeGrant400, MailboxesRevokeGrant401, MailboxesRevokeGrant403, MailboxesRevokeGrant404, MailboxesRevokeGrant409, MailboxesRevokeGrant422, MailboxesRevokeGrant500, MailboxesRevokeGrant504, MailboxesRevokeGrantEndpoint, MailboxesRevokeGrantPathParams, MailboxesScheduleDraft200, MailboxesScheduleDraft400, MailboxesScheduleDraft401, MailboxesScheduleDraft403, MailboxesScheduleDraft404, MailboxesScheduleDraft409, MailboxesScheduleDraft422, MailboxesScheduleDraft429, MailboxesScheduleDraft500, MailboxesScheduleDraft504, MailboxesScheduleDraftEndpoint, MailboxesScheduleDraftPathParams, MailboxesScheduleDraftRequestJson, MailboxesSendDraft200, MailboxesSendDraft202, MailboxesSendDraft400, MailboxesSendDraft401, MailboxesSendDraft402, MailboxesSendDraft403, MailboxesSendDraft404, MailboxesSendDraft409, MailboxesSendDraft422, MailboxesSendDraft429, MailboxesSendDraft500, MailboxesSendDraft502, MailboxesSendDraft503, MailboxesSendDraft504, MailboxesSendDraftEndpoint, MailboxesSendDraftHeaders, MailboxesSendDraftPathParams, MailboxesSendMessage200, MailboxesSendMessage202, MailboxesSendMessage400, MailboxesSendMessage401, MailboxesSendMessage402, MailboxesSendMessage403, MailboxesSendMessage404, MailboxesSendMessage409, MailboxesSendMessage422, MailboxesSendMessage429, MailboxesSendMessage500, MailboxesSendMessage502, MailboxesSendMessage503, MailboxesSendMessage504, MailboxesSendMessageEndpoint, MailboxesSendMessageHeaders, MailboxesSendMessagePathParams, MailboxesSendMessageRequestJson, MailboxesSendScheduledNow200, MailboxesSendScheduledNow400, MailboxesSendScheduledNow401, MailboxesSendScheduledNow403, MailboxesSendScheduledNow404, MailboxesSendScheduledNow409, MailboxesSendScheduledNow422, MailboxesSendScheduledNow429, MailboxesSendScheduledNow500, MailboxesSendScheduledNow504, MailboxesSendScheduledNowEndpoint, MailboxesSendScheduledNowPathParams, MailboxesSendScheduledNowRequestJson, MailboxesSignImportUploadParts200, MailboxesSignImportUploadParts400, MailboxesSignImportUploadParts401, MailboxesSignImportUploadParts403, MailboxesSignImportUploadParts404, MailboxesSignImportUploadParts409, MailboxesSignImportUploadParts422, MailboxesSignImportUploadParts500, MailboxesSignImportUploadParts504, MailboxesSignImportUploadPartsEndpoint, MailboxesSignImportUploadPartsPathParams, MailboxesSignImportUploadPartsRequestJson, MailboxesStartImport200, MailboxesStartImport400, MailboxesStartImport401, MailboxesStartImport403, MailboxesStartImport404, MailboxesStartImport409, MailboxesStartImport422, MailboxesStartImport500, MailboxesStartImport504, MailboxesStartImportEndpoint, MailboxesStartImportPathParams, MailboxesUnscheduleSend200, MailboxesUnscheduleSend400, MailboxesUnscheduleSend401, MailboxesUnscheduleSend403, MailboxesUnscheduleSend404, MailboxesUnscheduleSend409, MailboxesUnscheduleSend422, MailboxesUnscheduleSend429, MailboxesUnscheduleSend500, MailboxesUnscheduleSend504, MailboxesUnscheduleSendEndpoint, MailboxesUnscheduleSendPathParams, MailboxesUnscheduleSendRequestJson, MailboxesUpdate200, MailboxesUpdate400, MailboxesUpdate401, MailboxesUpdate403, MailboxesUpdate404, MailboxesUpdate422, MailboxesUpdate500, MailboxesUpdate504, MailboxesUpdateDraft200, MailboxesUpdateDraft400, MailboxesUpdateDraft401, MailboxesUpdateDraft403, MailboxesUpdateDraft404, MailboxesUpdateDraft409, MailboxesUpdateDraft422, MailboxesUpdateDraft500, MailboxesUpdateDraft504, MailboxesUpdateDraftEndpoint, MailboxesUpdateDraftPathParams, MailboxesUpdateDraftRequestJson, MailboxesUpdateEndpoint, MailboxesUpdateEndpoint200, MailboxesUpdateEndpoint400, MailboxesUpdateEndpoint401, MailboxesUpdateEndpoint403, MailboxesUpdateEndpoint404, MailboxesUpdateEndpoint422, MailboxesUpdateEndpoint500, MailboxesUpdateEndpoint504, MailboxesUpdateEndpointEndpoint, MailboxesUpdateEndpointPathParams, MailboxesUpdateEndpointRequestJson, MailboxesUpdateGrant200, MailboxesUpdateGrant400, MailboxesUpdateGrant401, MailboxesUpdateGrant403, MailboxesUpdateGrant404, MailboxesUpdateGrant409, MailboxesUpdateGrant422, MailboxesUpdateGrant500, MailboxesUpdateGrant504, MailboxesUpdateGrantEndpoint, MailboxesUpdateGrantPathParams, MailboxesUpdateGrantRequestJson, MailboxesUpdateLabel200, MailboxesUpdateLabel400, MailboxesUpdateLabel401, MailboxesUpdateLabel403, MailboxesUpdateLabel404, MailboxesUpdateLabel422, MailboxesUpdateLabel500, MailboxesUpdateLabel504, MailboxesUpdateLabelEndpoint, MailboxesUpdateLabelPathParams, MailboxesUpdateLabelRequestJson, MailboxesUpdateNote200, MailboxesUpdateNote400, MailboxesUpdateNote401, MailboxesUpdateNote403, MailboxesUpdateNote404, MailboxesUpdateNote422, MailboxesUpdateNote500, MailboxesUpdateNote504, MailboxesUpdateNoteEndpoint, MailboxesUpdateNotePathParams, MailboxesUpdateNoteRequestJson, MailboxesUpdatePathParams, MailboxesUpdateRequestJson, MailboxesUpdateSplit200, MailboxesUpdateSplit400, MailboxesUpdateSplit401, MailboxesUpdateSplit403, MailboxesUpdateSplit404, MailboxesUpdateSplit422, MailboxesUpdateSplit500, MailboxesUpdateSplit504, MailboxesUpdateSplitEndpoint, MailboxesUpdateSplitPathParams, MailboxesUpdateSplitRequestJson, MailboxesUpdateThread200, MailboxesUpdateThread400, MailboxesUpdateThread401, MailboxesUpdateThread403, MailboxesUpdateThread404, MailboxesUpdateThread422, MailboxesUpdateThread500, MailboxesUpdateThread504, MailboxesUpdateThreadEndpoint, MailboxesUpdateThreadPathParams, MailboxesUpdateThreadRequestJson, OrganizationMailboxDraftPage, OrganizationMailboxDraftSummary, OrganizationMailboxThreadPage, OrganizationMailboxThreadSummary, PolicyAction, PolicyDecision };
3652
3730
 
3653
3731
  //# sourceMappingURL=mailboxes.js.map