agentmail 0.5.12 → 0.5.14

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 (219) hide show
  1. package/dist/cjs/BaseClient.d.ts +3 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
  4. package/dist/cjs/api/errors/ConflictError.js +54 -0
  5. package/dist/cjs/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/api/errors/index.js +1 -0
  7. package/dist/cjs/api/resources/drafts/types/CreateDraftForwardRequest.d.ts +21 -0
  8. package/dist/cjs/api/resources/drafts/types/CreateDraftForwardRequest.js +3 -0
  9. package/dist/cjs/api/resources/drafts/types/CreateDraftReplyAllRequest.d.ts +17 -0
  10. package/dist/cjs/api/resources/drafts/types/CreateDraftReplyAllRequest.js +3 -0
  11. package/dist/cjs/api/resources/drafts/types/CreateDraftReplyRequest.d.ts +22 -0
  12. package/dist/cjs/api/resources/drafts/types/CreateDraftReplyRequest.js +3 -0
  13. package/dist/cjs/api/resources/drafts/types/Draft.d.ts +1 -0
  14. package/dist/cjs/api/resources/drafts/types/DraftForwardOf.d.ts +4 -0
  15. package/dist/cjs/api/resources/drafts/types/DraftForwardOf.js +3 -0
  16. package/dist/cjs/api/resources/drafts/types/DraftItem.d.ts +1 -0
  17. package/dist/cjs/api/resources/drafts/types/DraftReplyAll.d.ts +4 -0
  18. package/dist/cjs/api/resources/drafts/types/DraftReplyAll.js +3 -0
  19. package/dist/cjs/api/resources/drafts/types/index.d.ts +5 -0
  20. package/dist/cjs/api/resources/drafts/types/index.js +5 -0
  21. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +3 -0
  22. package/dist/cjs/api/resources/inboxes/client/Client.js +5 -0
  23. package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +6 -3
  24. package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +11 -2
  25. package/dist/cjs/api/resources/inboxes/resources/index.d.ts +2 -0
  26. package/dist/cjs/api/resources/inboxes/resources/index.js +3 -1
  27. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +84 -9
  28. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +308 -8
  29. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.d.ts +103 -0
  30. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.js +411 -0
  31. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/index.js +17 -0
  33. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/requests/InboxListWebhooksRequest.d.ts +10 -0
  34. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/requests/InboxListWebhooksRequest.js +3 -0
  35. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/requests/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/requests/index.js +2 -0
  37. package/dist/cjs/api/resources/inboxes/resources/webhooks/exports.d.ts +2 -0
  38. package/dist/cjs/api/resources/inboxes/resources/webhooks/exports.js +21 -0
  39. package/dist/cjs/api/resources/inboxes/resources/webhooks/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/inboxes/resources/webhooks/index.js +17 -0
  41. package/dist/cjs/api/resources/pods/client/Client.d.ts +3 -0
  42. package/dist/cjs/api/resources/pods/client/Client.js +5 -0
  43. package/dist/cjs/api/resources/pods/resources/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/pods/resources/index.js +3 -1
  45. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +103 -0
  46. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +411 -0
  47. package/dist/cjs/api/resources/pods/resources/webhooks/client/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/pods/resources/webhooks/client/index.js +17 -0
  49. package/dist/cjs/api/resources/pods/resources/webhooks/client/requests/PodListWebhooksRequest.d.ts +10 -0
  50. package/dist/cjs/api/resources/pods/resources/webhooks/client/requests/PodListWebhooksRequest.js +3 -0
  51. package/dist/cjs/api/resources/pods/resources/webhooks/client/requests/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/pods/resources/webhooks/client/requests/index.js +2 -0
  53. package/dist/cjs/api/resources/pods/resources/webhooks/exports.d.ts +2 -0
  54. package/dist/cjs/api/resources/pods/resources/webhooks/exports.js +21 -0
  55. package/dist/cjs/api/resources/pods/resources/webhooks/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/pods/resources/webhooks/index.js +17 -0
  57. package/dist/cjs/api/resources/webhooks/types/CreateInboxWebhookRequest.d.ts +10 -0
  58. package/dist/cjs/api/resources/webhooks/types/CreateInboxWebhookRequest.js +3 -0
  59. package/dist/cjs/api/resources/webhooks/types/CreatePodWebhookRequest.d.ts +9 -0
  60. package/dist/cjs/api/resources/webhooks/types/CreatePodWebhookRequest.js +3 -0
  61. package/dist/cjs/api/resources/webhooks/types/CreateWebhookEventTypes.d.ts +7 -0
  62. package/dist/cjs/api/resources/webhooks/types/CreateWebhookEventTypes.js +3 -0
  63. package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequest.d.ts +1 -10
  64. package/dist/cjs/api/resources/webhooks/types/UpdateInboxWebhookRequest.d.ts +7 -0
  65. package/dist/cjs/api/resources/webhooks/types/UpdateInboxWebhookRequest.js +3 -0
  66. package/dist/cjs/api/resources/webhooks/types/UpdatePodWebhookRequest.d.ts +11 -0
  67. package/dist/cjs/api/resources/webhooks/types/UpdatePodWebhookRequest.js +3 -0
  68. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookEventTypes.d.ts +10 -0
  69. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookEventTypes.js +3 -0
  70. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequest.d.ts +1 -14
  71. package/dist/cjs/api/resources/webhooks/types/index.d.ts +6 -0
  72. package/dist/cjs/api/resources/webhooks/types/index.js +6 -0
  73. package/dist/cjs/serialization/resources/drafts/types/CreateDraftForwardRequest.d.ts +30 -0
  74. package/dist/cjs/serialization/resources/drafts/types/CreateDraftForwardRequest.js +62 -0
  75. package/dist/cjs/serialization/resources/drafts/types/CreateDraftReplyAllRequest.d.ts +24 -0
  76. package/dist/cjs/serialization/resources/drafts/types/CreateDraftReplyAllRequest.js +56 -0
  77. package/dist/cjs/serialization/resources/drafts/types/CreateDraftReplyRequest.d.ts +32 -0
  78. package/dist/cjs/serialization/resources/drafts/types/CreateDraftReplyRequest.js +64 -0
  79. package/dist/cjs/serialization/resources/drafts/types/Draft.d.ts +2 -0
  80. package/dist/cjs/serialization/resources/drafts/types/Draft.js +2 -0
  81. package/dist/cjs/serialization/resources/drafts/types/DraftForwardOf.d.ts +7 -0
  82. package/dist/cjs/serialization/resources/drafts/types/DraftForwardOf.js +39 -0
  83. package/dist/cjs/serialization/resources/drafts/types/DraftItem.d.ts +2 -0
  84. package/dist/cjs/serialization/resources/drafts/types/DraftItem.js +2 -0
  85. package/dist/cjs/serialization/resources/drafts/types/DraftReplyAll.d.ts +7 -0
  86. package/dist/cjs/serialization/resources/drafts/types/DraftReplyAll.js +39 -0
  87. package/dist/cjs/serialization/resources/drafts/types/index.d.ts +5 -0
  88. package/dist/cjs/serialization/resources/drafts/types/index.js +5 -0
  89. package/dist/cjs/serialization/resources/webhooks/types/CreateInboxWebhookRequest.d.ts +14 -0
  90. package/dist/cjs/serialization/resources/webhooks/types/CreateInboxWebhookRequest.js +46 -0
  91. package/dist/cjs/serialization/resources/webhooks/types/CreatePodWebhookRequest.d.ts +11 -0
  92. package/dist/cjs/serialization/resources/webhooks/types/CreatePodWebhookRequest.js +45 -0
  93. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhookEventTypes.d.ts +8 -0
  94. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhookEventTypes.js +6 -0
  95. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +2 -9
  96. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhookRequest.js +5 -10
  97. package/dist/cjs/serialization/resources/webhooks/types/UpdateInboxWebhookRequest.d.ts +10 -0
  98. package/dist/cjs/serialization/resources/webhooks/types/UpdateInboxWebhookRequest.js +42 -0
  99. package/dist/cjs/serialization/resources/webhooks/types/UpdatePodWebhookRequest.d.ts +12 -0
  100. package/dist/cjs/serialization/resources/webhooks/types/UpdatePodWebhookRequest.js +46 -0
  101. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhookEventTypes.d.ts +8 -0
  102. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhookEventTypes.js +6 -0
  103. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhookRequest.d.ts +2 -6
  104. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhookRequest.js +5 -7
  105. package/dist/cjs/serialization/resources/webhooks/types/index.d.ts +6 -0
  106. package/dist/cjs/serialization/resources/webhooks/types/index.js +6 -0
  107. package/dist/cjs/version.d.ts +1 -1
  108. package/dist/cjs/version.js +1 -1
  109. package/dist/esm/BaseClient.d.mts +3 -0
  110. package/dist/esm/BaseClient.mjs +2 -2
  111. package/dist/esm/api/errors/ConflictError.d.mts +6 -0
  112. package/dist/esm/api/errors/ConflictError.mjs +17 -0
  113. package/dist/esm/api/errors/index.d.mts +1 -0
  114. package/dist/esm/api/errors/index.mjs +1 -0
  115. package/dist/esm/api/resources/drafts/types/CreateDraftForwardRequest.d.mts +21 -0
  116. package/dist/esm/api/resources/drafts/types/CreateDraftForwardRequest.mjs +2 -0
  117. package/dist/esm/api/resources/drafts/types/CreateDraftReplyAllRequest.d.mts +17 -0
  118. package/dist/esm/api/resources/drafts/types/CreateDraftReplyAllRequest.mjs +2 -0
  119. package/dist/esm/api/resources/drafts/types/CreateDraftReplyRequest.d.mts +22 -0
  120. package/dist/esm/api/resources/drafts/types/CreateDraftReplyRequest.mjs +2 -0
  121. package/dist/esm/api/resources/drafts/types/Draft.d.mts +1 -0
  122. package/dist/esm/api/resources/drafts/types/DraftForwardOf.d.mts +4 -0
  123. package/dist/esm/api/resources/drafts/types/DraftForwardOf.mjs +2 -0
  124. package/dist/esm/api/resources/drafts/types/DraftItem.d.mts +1 -0
  125. package/dist/esm/api/resources/drafts/types/DraftReplyAll.d.mts +4 -0
  126. package/dist/esm/api/resources/drafts/types/DraftReplyAll.mjs +2 -0
  127. package/dist/esm/api/resources/drafts/types/index.d.mts +5 -0
  128. package/dist/esm/api/resources/drafts/types/index.mjs +5 -0
  129. package/dist/esm/api/resources/inboxes/client/Client.d.mts +3 -0
  130. package/dist/esm/api/resources/inboxes/client/Client.mjs +5 -0
  131. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +6 -3
  132. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +12 -3
  133. package/dist/esm/api/resources/inboxes/resources/index.d.mts +2 -0
  134. package/dist/esm/api/resources/inboxes/resources/index.mjs +2 -0
  135. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +84 -9
  136. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +309 -9
  137. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +103 -0
  138. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +374 -0
  139. package/dist/esm/api/resources/inboxes/resources/webhooks/client/index.d.mts +1 -0
  140. package/dist/esm/api/resources/inboxes/resources/webhooks/client/index.mjs +1 -0
  141. package/dist/esm/api/resources/inboxes/resources/webhooks/client/requests/InboxListWebhooksRequest.d.mts +10 -0
  142. package/dist/esm/api/resources/inboxes/resources/webhooks/client/requests/InboxListWebhooksRequest.mjs +2 -0
  143. package/dist/esm/api/resources/inboxes/resources/webhooks/client/requests/index.d.mts +1 -0
  144. package/dist/esm/api/resources/inboxes/resources/webhooks/client/requests/index.mjs +1 -0
  145. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.d.mts +2 -0
  146. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.mjs +3 -0
  147. package/dist/esm/api/resources/inboxes/resources/webhooks/index.d.mts +1 -0
  148. package/dist/esm/api/resources/inboxes/resources/webhooks/index.mjs +1 -0
  149. package/dist/esm/api/resources/pods/client/Client.d.mts +3 -0
  150. package/dist/esm/api/resources/pods/client/Client.mjs +5 -0
  151. package/dist/esm/api/resources/pods/resources/index.d.mts +2 -0
  152. package/dist/esm/api/resources/pods/resources/index.mjs +2 -0
  153. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +103 -0
  154. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +374 -0
  155. package/dist/esm/api/resources/pods/resources/webhooks/client/index.d.mts +1 -0
  156. package/dist/esm/api/resources/pods/resources/webhooks/client/index.mjs +1 -0
  157. package/dist/esm/api/resources/pods/resources/webhooks/client/requests/PodListWebhooksRequest.d.mts +10 -0
  158. package/dist/esm/api/resources/pods/resources/webhooks/client/requests/PodListWebhooksRequest.mjs +2 -0
  159. package/dist/esm/api/resources/pods/resources/webhooks/client/requests/index.d.mts +1 -0
  160. package/dist/esm/api/resources/pods/resources/webhooks/client/requests/index.mjs +1 -0
  161. package/dist/esm/api/resources/pods/resources/webhooks/exports.d.mts +2 -0
  162. package/dist/esm/api/resources/pods/resources/webhooks/exports.mjs +3 -0
  163. package/dist/esm/api/resources/pods/resources/webhooks/index.d.mts +1 -0
  164. package/dist/esm/api/resources/pods/resources/webhooks/index.mjs +1 -0
  165. package/dist/esm/api/resources/webhooks/types/CreateInboxWebhookRequest.d.mts +10 -0
  166. package/dist/esm/api/resources/webhooks/types/CreateInboxWebhookRequest.mjs +2 -0
  167. package/dist/esm/api/resources/webhooks/types/CreatePodWebhookRequest.d.mts +9 -0
  168. package/dist/esm/api/resources/webhooks/types/CreatePodWebhookRequest.mjs +2 -0
  169. package/dist/esm/api/resources/webhooks/types/CreateWebhookEventTypes.d.mts +7 -0
  170. package/dist/esm/api/resources/webhooks/types/CreateWebhookEventTypes.mjs +2 -0
  171. package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.d.mts +1 -10
  172. package/dist/esm/api/resources/webhooks/types/UpdateInboxWebhookRequest.d.mts +7 -0
  173. package/dist/esm/api/resources/webhooks/types/UpdateInboxWebhookRequest.mjs +2 -0
  174. package/dist/esm/api/resources/webhooks/types/UpdatePodWebhookRequest.d.mts +11 -0
  175. package/dist/esm/api/resources/webhooks/types/UpdatePodWebhookRequest.mjs +2 -0
  176. package/dist/esm/api/resources/webhooks/types/UpdateWebhookEventTypes.d.mts +10 -0
  177. package/dist/esm/api/resources/webhooks/types/UpdateWebhookEventTypes.mjs +2 -0
  178. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequest.d.mts +1 -14
  179. package/dist/esm/api/resources/webhooks/types/index.d.mts +6 -0
  180. package/dist/esm/api/resources/webhooks/types/index.mjs +6 -0
  181. package/dist/esm/serialization/resources/drafts/types/CreateDraftForwardRequest.d.mts +30 -0
  182. package/dist/esm/serialization/resources/drafts/types/CreateDraftForwardRequest.mjs +26 -0
  183. package/dist/esm/serialization/resources/drafts/types/CreateDraftReplyAllRequest.d.mts +24 -0
  184. package/dist/esm/serialization/resources/drafts/types/CreateDraftReplyAllRequest.mjs +20 -0
  185. package/dist/esm/serialization/resources/drafts/types/CreateDraftReplyRequest.d.mts +32 -0
  186. package/dist/esm/serialization/resources/drafts/types/CreateDraftReplyRequest.mjs +28 -0
  187. package/dist/esm/serialization/resources/drafts/types/Draft.d.mts +2 -0
  188. package/dist/esm/serialization/resources/drafts/types/Draft.mjs +2 -0
  189. package/dist/esm/serialization/resources/drafts/types/DraftForwardOf.d.mts +7 -0
  190. package/dist/esm/serialization/resources/drafts/types/DraftForwardOf.mjs +3 -0
  191. package/dist/esm/serialization/resources/drafts/types/DraftItem.d.mts +2 -0
  192. package/dist/esm/serialization/resources/drafts/types/DraftItem.mjs +2 -0
  193. package/dist/esm/serialization/resources/drafts/types/DraftReplyAll.d.mts +7 -0
  194. package/dist/esm/serialization/resources/drafts/types/DraftReplyAll.mjs +3 -0
  195. package/dist/esm/serialization/resources/drafts/types/index.d.mts +5 -0
  196. package/dist/esm/serialization/resources/drafts/types/index.mjs +5 -0
  197. package/dist/esm/serialization/resources/webhooks/types/CreateInboxWebhookRequest.d.mts +14 -0
  198. package/dist/esm/serialization/resources/webhooks/types/CreateInboxWebhookRequest.mjs +10 -0
  199. package/dist/esm/serialization/resources/webhooks/types/CreatePodWebhookRequest.d.mts +11 -0
  200. package/dist/esm/serialization/resources/webhooks/types/CreatePodWebhookRequest.mjs +9 -0
  201. package/dist/esm/serialization/resources/webhooks/types/CreateWebhookEventTypes.d.mts +8 -0
  202. package/dist/esm/serialization/resources/webhooks/types/CreateWebhookEventTypes.mjs +3 -0
  203. package/dist/esm/serialization/resources/webhooks/types/CreateWebhookRequest.d.mts +2 -9
  204. package/dist/esm/serialization/resources/webhooks/types/CreateWebhookRequest.mjs +5 -10
  205. package/dist/esm/serialization/resources/webhooks/types/UpdateInboxWebhookRequest.d.mts +10 -0
  206. package/dist/esm/serialization/resources/webhooks/types/UpdateInboxWebhookRequest.mjs +6 -0
  207. package/dist/esm/serialization/resources/webhooks/types/UpdatePodWebhookRequest.d.mts +12 -0
  208. package/dist/esm/serialization/resources/webhooks/types/UpdatePodWebhookRequest.mjs +10 -0
  209. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhookEventTypes.d.mts +8 -0
  210. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhookEventTypes.mjs +3 -0
  211. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhookRequest.d.mts +2 -6
  212. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhookRequest.mjs +5 -7
  213. package/dist/esm/serialization/resources/webhooks/types/index.d.mts +6 -0
  214. package/dist/esm/serialization/resources/webhooks/types/index.mjs +6 -0
  215. package/dist/esm/version.d.mts +1 -1
  216. package/dist/esm/version.mjs +1 -1
  217. package/dist/llms.txt +21 -4
  218. package/package.json +23 -1
  219. package/reference.md +1466 -440
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,4 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
- export interface CreateWebhookRequest {
3
- url: AgentMail.webhooks.Url;
4
- /**
5
- * Full list of event types this webhook should receive. At least one type is required. Send every type you
6
- * want in this array (not incremental). See [Webhooks overview](https://docs.agentmail.to/webhooks-overview)
7
- * for spam, blocked, and unauthenticated events and required permissions.
8
- */
9
- eventTypes: AgentMail.EventTypes;
2
+ export interface CreateWebhookRequest extends AgentMail.webhooks.CreatePodWebhookRequest {
10
3
  podIds?: AgentMail.PodIds;
11
- inboxIds?: AgentMail.InboxIds;
12
- clientId?: AgentMail.webhooks.ClientId;
13
4
  }
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ /**
3
+ * Update an inbox-scoped webhook. It is fixed to its inbox, so only `event_types` can change.
4
+ */
5
+ export interface UpdateInboxWebhookRequest {
6
+ eventTypes?: AgentMail.webhooks.UpdateWebhookEventTypes;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ /**
3
+ * Update a pod-scoped webhook. You can adjust which inboxes within the pod it listens to and replace
4
+ * its `event_types`, but not the pod scope itself.
5
+ */
6
+ export interface UpdatePodWebhookRequest extends AgentMail.webhooks.UpdateInboxWebhookRequest {
7
+ /** Inbox IDs to subscribe to the webhook. */
8
+ addInboxIds?: AgentMail.InboxIds;
9
+ /** Inbox IDs to unsubscribe from the webhook. */
10
+ removeInboxIds?: AgentMail.InboxIds;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ /**
3
+ * When you send a non-empty list, it replaces the webhook's subscribed event types in full (the same
4
+ * "set the list" behavior as create). It is not a merge or diff: include every event type you want after
5
+ * the update. Sending a one-element array means the webhook will only receive that one type afterward.
6
+ * Omit this field or send an empty array to leave event types unchanged. Clearing all types with an empty
7
+ * list is not supported. Subscribing to `message.received.spam`, `message.received.blocked`, or
8
+ * `message.received.unauthenticated` requires the matching label permission on the API key.
9
+ */
10
+ export type UpdateWebhookEventTypes = AgentMail.EventTypes;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +1,7 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
- export interface UpdateWebhookRequest {
3
- /** Inbox IDs to subscribe to the webhook. */
4
- addInboxIds?: AgentMail.InboxIds;
5
- /** Inbox IDs to unsubscribe from the webhook. */
6
- removeInboxIds?: AgentMail.InboxIds;
2
+ export interface UpdateWebhookRequest extends AgentMail.webhooks.UpdatePodWebhookRequest {
7
3
  /** Pod IDs to subscribe to the webhook. */
8
4
  addPodIds?: AgentMail.PodIds;
9
5
  /** Pod IDs to unsubscribe from the webhook. */
10
6
  removePodIds?: AgentMail.PodIds;
11
- /**
12
- * When you send a non-empty list, it replaces the webhook's subscribed event types in full (the same
13
- * "set the list" behavior as create). It is not a merge or diff: include every event type you want after
14
- * the update. Sending a one-element array means the webhook will only receive that one type afterward.
15
- * Omit this field or send an empty array to leave event types unchanged. Clearing all types with an empty
16
- * list is not supported. Subscribing to `message.received.spam`, `message.received.blocked`, or
17
- * `message.received.unauthenticated` requires the matching label permission on the API key.
18
- */
19
- eventTypes?: AgentMail.EventTypes;
20
7
  }
@@ -1,6 +1,12 @@
1
1
  export * from "./ClientId.js";
2
+ export * from "./CreateInboxWebhookRequest.js";
3
+ export * from "./CreatePodWebhookRequest.js";
4
+ export * from "./CreateWebhookEventTypes.js";
2
5
  export * from "./CreateWebhookRequest.js";
3
6
  export * from "./ListWebhooksResponse.js";
7
+ export * from "./UpdateInboxWebhookRequest.js";
8
+ export * from "./UpdatePodWebhookRequest.js";
9
+ export * from "./UpdateWebhookEventTypes.js";
4
10
  export * from "./UpdateWebhookRequest.js";
5
11
  export * from "./Url.js";
6
12
  export * from "./Webhook.js";
@@ -15,8 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ClientId.js"), exports);
18
+ __exportStar(require("./CreateInboxWebhookRequest.js"), exports);
19
+ __exportStar(require("./CreatePodWebhookRequest.js"), exports);
20
+ __exportStar(require("./CreateWebhookEventTypes.js"), exports);
18
21
  __exportStar(require("./CreateWebhookRequest.js"), exports);
19
22
  __exportStar(require("./ListWebhooksResponse.js"), exports);
23
+ __exportStar(require("./UpdateInboxWebhookRequest.js"), exports);
24
+ __exportStar(require("./UpdatePodWebhookRequest.js"), exports);
25
+ __exportStar(require("./UpdateWebhookEventTypes.js"), exports);
20
26
  __exportStar(require("./UpdateWebhookRequest.js"), exports);
21
27
  __exportStar(require("./Url.js"), exports);
22
28
  __exportStar(require("./Webhook.js"), exports);
@@ -0,0 +1,30 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { SendAttachment } from "../../attachments/types/SendAttachment.js";
5
+ import { DraftBcc } from "./DraftBcc.js";
6
+ import { DraftCc } from "./DraftCc.js";
7
+ import { DraftClientId } from "./DraftClientId.js";
8
+ import { DraftHtml } from "./DraftHtml.js";
9
+ import { DraftLabels } from "./DraftLabels.js";
10
+ import { DraftReplyTo } from "./DraftReplyTo.js";
11
+ import { DraftSendAt } from "./DraftSendAt.js";
12
+ import { DraftSubject } from "./DraftSubject.js";
13
+ import { DraftText } from "./DraftText.js";
14
+ import { DraftTo } from "./DraftTo.js";
15
+ export declare const CreateDraftForwardRequest: core.serialization.ObjectSchema<serializers.CreateDraftForwardRequest.Raw, AgentMail.CreateDraftForwardRequest>;
16
+ export declare namespace CreateDraftForwardRequest {
17
+ interface Raw {
18
+ labels?: DraftLabels.Raw | null;
19
+ reply_to?: DraftReplyTo.Raw | null;
20
+ to?: DraftTo.Raw | null;
21
+ cc?: DraftCc.Raw | null;
22
+ bcc?: DraftBcc.Raw | null;
23
+ subject?: DraftSubject.Raw | null;
24
+ text?: DraftText.Raw | null;
25
+ html?: DraftHtml.Raw | null;
26
+ attachments?: SendAttachment.Raw[] | null;
27
+ send_at?: DraftSendAt.Raw | null;
28
+ client_id?: DraftClientId.Raw | null;
29
+ }
30
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CreateDraftForwardRequest = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const SendAttachment_js_1 = require("../../attachments/types/SendAttachment.js");
40
+ const DraftBcc_js_1 = require("./DraftBcc.js");
41
+ const DraftCc_js_1 = require("./DraftCc.js");
42
+ const DraftClientId_js_1 = require("./DraftClientId.js");
43
+ const DraftHtml_js_1 = require("./DraftHtml.js");
44
+ const DraftLabels_js_1 = require("./DraftLabels.js");
45
+ const DraftReplyTo_js_1 = require("./DraftReplyTo.js");
46
+ const DraftSendAt_js_1 = require("./DraftSendAt.js");
47
+ const DraftSubject_js_1 = require("./DraftSubject.js");
48
+ const DraftText_js_1 = require("./DraftText.js");
49
+ const DraftTo_js_1 = require("./DraftTo.js");
50
+ exports.CreateDraftForwardRequest = core.serialization.object({
51
+ labels: DraftLabels_js_1.DraftLabels.optional(),
52
+ replyTo: core.serialization.property("reply_to", DraftReplyTo_js_1.DraftReplyTo.optional()),
53
+ to: DraftTo_js_1.DraftTo.optional(),
54
+ cc: DraftCc_js_1.DraftCc.optional(),
55
+ bcc: DraftBcc_js_1.DraftBcc.optional(),
56
+ subject: DraftSubject_js_1.DraftSubject.optional(),
57
+ text: DraftText_js_1.DraftText.optional(),
58
+ html: DraftHtml_js_1.DraftHtml.optional(),
59
+ attachments: core.serialization.list(SendAttachment_js_1.SendAttachment).optional(),
60
+ sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
61
+ clientId: core.serialization.property("client_id", DraftClientId_js_1.DraftClientId.optional()),
62
+ });
@@ -0,0 +1,24 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { SendAttachment } from "../../attachments/types/SendAttachment.js";
5
+ import { DraftClientId } from "./DraftClientId.js";
6
+ import { DraftHtml } from "./DraftHtml.js";
7
+ import { DraftLabels } from "./DraftLabels.js";
8
+ import { DraftReplyTo } from "./DraftReplyTo.js";
9
+ import { DraftSendAt } from "./DraftSendAt.js";
10
+ import { DraftSubject } from "./DraftSubject.js";
11
+ import { DraftText } from "./DraftText.js";
12
+ export declare const CreateDraftReplyAllRequest: core.serialization.ObjectSchema<serializers.CreateDraftReplyAllRequest.Raw, AgentMail.CreateDraftReplyAllRequest>;
13
+ export declare namespace CreateDraftReplyAllRequest {
14
+ interface Raw {
15
+ labels?: DraftLabels.Raw | null;
16
+ reply_to?: DraftReplyTo.Raw | null;
17
+ subject?: DraftSubject.Raw | null;
18
+ text?: DraftText.Raw | null;
19
+ html?: DraftHtml.Raw | null;
20
+ attachments?: SendAttachment.Raw[] | null;
21
+ send_at?: DraftSendAt.Raw | null;
22
+ client_id?: DraftClientId.Raw | null;
23
+ }
24
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CreateDraftReplyAllRequest = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const SendAttachment_js_1 = require("../../attachments/types/SendAttachment.js");
40
+ const DraftClientId_js_1 = require("./DraftClientId.js");
41
+ const DraftHtml_js_1 = require("./DraftHtml.js");
42
+ const DraftLabels_js_1 = require("./DraftLabels.js");
43
+ const DraftReplyTo_js_1 = require("./DraftReplyTo.js");
44
+ const DraftSendAt_js_1 = require("./DraftSendAt.js");
45
+ const DraftSubject_js_1 = require("./DraftSubject.js");
46
+ const DraftText_js_1 = require("./DraftText.js");
47
+ exports.CreateDraftReplyAllRequest = core.serialization.object({
48
+ labels: DraftLabels_js_1.DraftLabels.optional(),
49
+ replyTo: core.serialization.property("reply_to", DraftReplyTo_js_1.DraftReplyTo.optional()),
50
+ subject: DraftSubject_js_1.DraftSubject.optional(),
51
+ text: DraftText_js_1.DraftText.optional(),
52
+ html: DraftHtml_js_1.DraftHtml.optional(),
53
+ attachments: core.serialization.list(SendAttachment_js_1.SendAttachment).optional(),
54
+ sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
55
+ clientId: core.serialization.property("client_id", DraftClientId_js_1.DraftClientId.optional()),
56
+ });
@@ -0,0 +1,32 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { SendAttachment } from "../../attachments/types/SendAttachment.js";
5
+ import { DraftBcc } from "./DraftBcc.js";
6
+ import { DraftCc } from "./DraftCc.js";
7
+ import { DraftClientId } from "./DraftClientId.js";
8
+ import { DraftHtml } from "./DraftHtml.js";
9
+ import { DraftLabels } from "./DraftLabels.js";
10
+ import { DraftReplyAll } from "./DraftReplyAll.js";
11
+ import { DraftReplyTo } from "./DraftReplyTo.js";
12
+ import { DraftSendAt } from "./DraftSendAt.js";
13
+ import { DraftSubject } from "./DraftSubject.js";
14
+ import { DraftText } from "./DraftText.js";
15
+ import { DraftTo } from "./DraftTo.js";
16
+ export declare const CreateDraftReplyRequest: core.serialization.ObjectSchema<serializers.CreateDraftReplyRequest.Raw, AgentMail.CreateDraftReplyRequest>;
17
+ export declare namespace CreateDraftReplyRequest {
18
+ interface Raw {
19
+ labels?: DraftLabels.Raw | null;
20
+ reply_to?: DraftReplyTo.Raw | null;
21
+ to?: DraftTo.Raw | null;
22
+ cc?: DraftCc.Raw | null;
23
+ bcc?: DraftBcc.Raw | null;
24
+ reply_all?: DraftReplyAll.Raw | null;
25
+ subject?: DraftSubject.Raw | null;
26
+ text?: DraftText.Raw | null;
27
+ html?: DraftHtml.Raw | null;
28
+ attachments?: SendAttachment.Raw[] | null;
29
+ send_at?: DraftSendAt.Raw | null;
30
+ client_id?: DraftClientId.Raw | null;
31
+ }
32
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CreateDraftReplyRequest = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const SendAttachment_js_1 = require("../../attachments/types/SendAttachment.js");
40
+ const DraftBcc_js_1 = require("./DraftBcc.js");
41
+ const DraftCc_js_1 = require("./DraftCc.js");
42
+ const DraftClientId_js_1 = require("./DraftClientId.js");
43
+ const DraftHtml_js_1 = require("./DraftHtml.js");
44
+ const DraftLabels_js_1 = require("./DraftLabels.js");
45
+ const DraftReplyAll_js_1 = require("./DraftReplyAll.js");
46
+ const DraftReplyTo_js_1 = require("./DraftReplyTo.js");
47
+ const DraftSendAt_js_1 = require("./DraftSendAt.js");
48
+ const DraftSubject_js_1 = require("./DraftSubject.js");
49
+ const DraftText_js_1 = require("./DraftText.js");
50
+ const DraftTo_js_1 = require("./DraftTo.js");
51
+ exports.CreateDraftReplyRequest = core.serialization.object({
52
+ labels: DraftLabels_js_1.DraftLabels.optional(),
53
+ replyTo: core.serialization.property("reply_to", DraftReplyTo_js_1.DraftReplyTo.optional()),
54
+ to: DraftTo_js_1.DraftTo.optional(),
55
+ cc: DraftCc_js_1.DraftCc.optional(),
56
+ bcc: DraftBcc_js_1.DraftBcc.optional(),
57
+ replyAll: core.serialization.property("reply_all", DraftReplyAll_js_1.DraftReplyAll.optional()),
58
+ subject: DraftSubject_js_1.DraftSubject.optional(),
59
+ text: DraftText_js_1.DraftText.optional(),
60
+ html: DraftHtml_js_1.DraftHtml.optional(),
61
+ attachments: core.serialization.list(SendAttachment_js_1.SendAttachment).optional(),
62
+ sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
63
+ clientId: core.serialization.property("client_id", DraftClientId_js_1.DraftClientId.optional()),
64
+ });
@@ -6,6 +6,7 @@ import { DraftAttachments } from "./DraftAttachments.js";
6
6
  import { DraftBcc } from "./DraftBcc.js";
7
7
  import { DraftCc } from "./DraftCc.js";
8
8
  import { DraftClientId } from "./DraftClientId.js";
9
+ import { DraftForwardOf } from "./DraftForwardOf.js";
9
10
  import { DraftHtml } from "./DraftHtml.js";
10
11
  import { DraftId } from "./DraftId.js";
11
12
  import { DraftInReplyTo } from "./DraftInReplyTo.js";
@@ -35,6 +36,7 @@ export declare namespace Draft {
35
36
  html?: DraftHtml.Raw | null;
36
37
  attachments?: DraftAttachments.Raw | null;
37
38
  in_reply_to?: DraftInReplyTo.Raw | null;
39
+ forward_of?: DraftForwardOf.Raw | null;
38
40
  references?: string[] | null;
39
41
  send_status?: DraftSendStatus.Raw | null;
40
42
  send_at?: DraftSendAt.Raw | null;
@@ -41,6 +41,7 @@ const DraftAttachments_js_1 = require("./DraftAttachments.js");
41
41
  const DraftBcc_js_1 = require("./DraftBcc.js");
42
42
  const DraftCc_js_1 = require("./DraftCc.js");
43
43
  const DraftClientId_js_1 = require("./DraftClientId.js");
44
+ const DraftForwardOf_js_1 = require("./DraftForwardOf.js");
44
45
  const DraftHtml_js_1 = require("./DraftHtml.js");
45
46
  const DraftId_js_1 = require("./DraftId.js");
46
47
  const DraftInReplyTo_js_1 = require("./DraftInReplyTo.js");
@@ -68,6 +69,7 @@ exports.Draft = core.serialization.object({
68
69
  html: DraftHtml_js_1.DraftHtml.optional(),
69
70
  attachments: DraftAttachments_js_1.DraftAttachments.optional(),
70
71
  inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo_js_1.DraftInReplyTo.optional()),
72
+ forwardOf: core.serialization.property("forward_of", DraftForwardOf_js_1.DraftForwardOf.optional()),
71
73
  references: core.serialization.list(core.serialization.string()).optional(),
72
74
  sendStatus: core.serialization.property("send_status", DraftSendStatus_js_1.DraftSendStatus.optional()),
73
75
  sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const DraftForwardOf: core.serialization.Schema<serializers.DraftForwardOf.Raw, AgentMail.DraftForwardOf>;
5
+ export declare namespace DraftForwardOf {
6
+ type Raw = string;
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.DraftForwardOf = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.DraftForwardOf = core.serialization.string();
@@ -5,6 +5,7 @@ import { InboxId } from "../../inboxes/types/InboxId.js";
5
5
  import { DraftAttachments } from "./DraftAttachments.js";
6
6
  import { DraftBcc } from "./DraftBcc.js";
7
7
  import { DraftCc } from "./DraftCc.js";
8
+ import { DraftForwardOf } from "./DraftForwardOf.js";
8
9
  import { DraftId } from "./DraftId.js";
9
10
  import { DraftInReplyTo } from "./DraftInReplyTo.js";
10
11
  import { DraftLabels } from "./DraftLabels.js";
@@ -27,6 +28,7 @@ export declare namespace DraftItem {
27
28
  preview?: DraftPreview.Raw | null;
28
29
  attachments?: DraftAttachments.Raw | null;
29
30
  in_reply_to?: DraftInReplyTo.Raw | null;
31
+ forward_of?: DraftForwardOf.Raw | null;
30
32
  send_status?: DraftSendStatus.Raw | null;
31
33
  send_at?: DraftSendAt.Raw | null;
32
34
  updated_at: DraftUpdatedAt.Raw;
@@ -40,6 +40,7 @@ const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
40
40
  const DraftAttachments_js_1 = require("./DraftAttachments.js");
41
41
  const DraftBcc_js_1 = require("./DraftBcc.js");
42
42
  const DraftCc_js_1 = require("./DraftCc.js");
43
+ const DraftForwardOf_js_1 = require("./DraftForwardOf.js");
43
44
  const DraftId_js_1 = require("./DraftId.js");
44
45
  const DraftInReplyTo_js_1 = require("./DraftInReplyTo.js");
45
46
  const DraftLabels_js_1 = require("./DraftLabels.js");
@@ -60,6 +61,7 @@ exports.DraftItem = core.serialization.object({
60
61
  preview: DraftPreview_js_1.DraftPreview.optional(),
61
62
  attachments: DraftAttachments_js_1.DraftAttachments.optional(),
62
63
  inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo_js_1.DraftInReplyTo.optional()),
64
+ forwardOf: core.serialization.property("forward_of", DraftForwardOf_js_1.DraftForwardOf.optional()),
63
65
  sendStatus: core.serialization.property("send_status", DraftSendStatus_js_1.DraftSendStatus.optional()),
64
66
  sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
65
67
  updatedAt: core.serialization.property("updated_at", DraftUpdatedAt_js_1.DraftUpdatedAt),
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const DraftReplyAll: core.serialization.Schema<serializers.DraftReplyAll.Raw, AgentMail.DraftReplyAll>;
5
+ export declare namespace DraftReplyAll {
6
+ type Raw = boolean;
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.DraftReplyAll = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.DraftReplyAll = core.serialization.boolean();
@@ -1,15 +1,20 @@
1
+ export * from "./CreateDraftForwardRequest.js";
2
+ export * from "./CreateDraftReplyAllRequest.js";
3
+ export * from "./CreateDraftReplyRequest.js";
1
4
  export * from "./CreateDraftRequest.js";
2
5
  export * from "./Draft.js";
3
6
  export * from "./DraftAttachments.js";
4
7
  export * from "./DraftBcc.js";
5
8
  export * from "./DraftCc.js";
6
9
  export * from "./DraftClientId.js";
10
+ export * from "./DraftForwardOf.js";
7
11
  export * from "./DraftHtml.js";
8
12
  export * from "./DraftId.js";
9
13
  export * from "./DraftInReplyTo.js";
10
14
  export * from "./DraftItem.js";
11
15
  export * from "./DraftLabels.js";
12
16
  export * from "./DraftPreview.js";
17
+ export * from "./DraftReplyAll.js";
13
18
  export * from "./DraftReplyTo.js";
14
19
  export * from "./DraftSendAt.js";
15
20
  export * from "./DraftSendStatus.js";
@@ -14,18 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateDraftForwardRequest.js"), exports);
18
+ __exportStar(require("./CreateDraftReplyAllRequest.js"), exports);
19
+ __exportStar(require("./CreateDraftReplyRequest.js"), exports);
17
20
  __exportStar(require("./CreateDraftRequest.js"), exports);
18
21
  __exportStar(require("./Draft.js"), exports);
19
22
  __exportStar(require("./DraftAttachments.js"), exports);
20
23
  __exportStar(require("./DraftBcc.js"), exports);
21
24
  __exportStar(require("./DraftCc.js"), exports);
22
25
  __exportStar(require("./DraftClientId.js"), exports);
26
+ __exportStar(require("./DraftForwardOf.js"), exports);
23
27
  __exportStar(require("./DraftHtml.js"), exports);
24
28
  __exportStar(require("./DraftId.js"), exports);
25
29
  __exportStar(require("./DraftInReplyTo.js"), exports);
26
30
  __exportStar(require("./DraftItem.js"), exports);
27
31
  __exportStar(require("./DraftLabels.js"), exports);
28
32
  __exportStar(require("./DraftPreview.js"), exports);
33
+ __exportStar(require("./DraftReplyAll.js"), exports);
29
34
  __exportStar(require("./DraftReplyTo.js"), exports);
30
35
  __exportStar(require("./DraftSendAt.js"), exports);
31
36
  __exportStar(require("./DraftSendStatus.js"), exports);
@@ -0,0 +1,14 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { ClientId } from "./ClientId.js";
5
+ import { CreateWebhookEventTypes } from "./CreateWebhookEventTypes.js";
6
+ import { Url } from "./Url.js";
7
+ export declare const CreateInboxWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.CreateInboxWebhookRequest.Raw, AgentMail.webhooks.CreateInboxWebhookRequest>;
8
+ export declare namespace CreateInboxWebhookRequest {
9
+ interface Raw {
10
+ url: Url.Raw;
11
+ event_types: CreateWebhookEventTypes.Raw;
12
+ client_id?: ClientId.Raw | null;
13
+ }
14
+ }