agentmail 0.5.42 → 0.5.43

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 (208) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/calendar/types/UpdateCalendarEventRequest.d.ts +2 -1
  3. package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.d.ts +21 -21
  4. package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.js +21 -21
  5. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.d.ts +3 -0
  6. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.js +5 -0
  7. package/dist/cjs/api/resources/inboxes/resources/webhooks/exports.d.ts +1 -0
  8. package/dist/cjs/api/resources/inboxes/resources/webhooks/exports.js +1 -0
  9. package/dist/cjs/api/resources/inboxes/resources/webhooks/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/inboxes/resources/webhooks/index.js +1 -0
  11. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/index.js +41 -0
  13. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.ts +89 -0
  14. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.js +351 -0
  15. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/index.js +17 -0
  17. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.d.ts +10 -0
  18. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.js +3 -0
  19. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/exports.d.ts +2 -0
  22. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/exports.js +21 -0
  23. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/index.js +17 -0
  25. package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.d.ts +1 -1
  26. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +3 -0
  27. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +5 -0
  28. package/dist/cjs/api/resources/pods/resources/webhooks/exports.d.ts +1 -0
  29. package/dist/cjs/api/resources/pods/resources/webhooks/exports.js +1 -0
  30. package/dist/cjs/api/resources/pods/resources/webhooks/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/pods/resources/webhooks/index.js +1 -0
  32. package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.js +41 -0
  34. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.ts +89 -0
  35. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.js +351 -0
  36. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.js +17 -0
  38. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.ts +10 -0
  39. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.js +3 -0
  40. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  42. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.d.ts +2 -0
  43. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.js +21 -0
  44. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.js +17 -0
  46. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -0
  47. package/dist/cjs/api/resources/webhooks/client/Client.js +5 -0
  48. package/dist/cjs/api/resources/webhooks/resources/index.d.ts +3 -0
  49. package/dist/cjs/api/resources/webhooks/resources/index.js +4 -1
  50. package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.d.ts +92 -0
  51. package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.js +354 -0
  52. package/dist/cjs/api/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/webhooks/resources/polling/client/index.js +17 -0
  54. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.ts +10 -0
  55. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.js +3 -0
  56. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  58. package/dist/cjs/api/resources/webhooks/resources/polling/exports.d.ts +2 -0
  59. package/dist/cjs/api/resources/webhooks/resources/polling/exports.js +21 -0
  60. package/dist/cjs/api/resources/webhooks/resources/polling/index.d.ts +2 -0
  61. package/dist/cjs/api/resources/webhooks/resources/polling/index.js +18 -0
  62. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +9 -0
  63. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +3 -0
  64. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +9 -0
  65. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +3 -0
  66. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +9 -0
  67. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +3 -0
  68. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +7 -0
  69. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +3 -0
  70. package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +12 -0
  71. package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +3 -0
  72. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.d.ts +7 -0
  73. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.js +3 -0
  74. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.d.ts +8 -0
  75. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.js +3 -0
  76. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +27 -0
  77. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.js +3 -0
  78. package/dist/cjs/api/resources/webhooks/resources/polling/types/index.d.ts +8 -0
  79. package/dist/cjs/api/resources/webhooks/resources/polling/types/index.js +24 -0
  80. package/dist/cjs/serialization/resources/webhooks/resources/index.d.ts +2 -0
  81. package/dist/cjs/serialization/resources/webhooks/resources/index.js +3 -1
  82. package/dist/cjs/serialization/resources/webhooks/resources/polling/index.d.ts +1 -0
  83. package/dist/cjs/serialization/resources/webhooks/resources/polling/index.js +17 -0
  84. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +12 -0
  85. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +44 -0
  86. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +11 -0
  87. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +45 -0
  88. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +11 -0
  89. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +45 -0
  90. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +11 -0
  91. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +45 -0
  92. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +16 -0
  93. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +48 -0
  94. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.ts +8 -0
  95. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.js +6 -0
  96. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.d.ts +7 -0
  97. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.js +39 -0
  98. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +22 -0
  99. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.js +54 -0
  100. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.d.ts +8 -0
  101. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.js +24 -0
  102. package/dist/cjs/version.d.ts +1 -1
  103. package/dist/cjs/version.js +1 -1
  104. package/dist/esm/BaseClient.mjs +2 -2
  105. package/dist/esm/api/resources/calendar/types/UpdateCalendarEventRequest.d.mts +2 -1
  106. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.d.mts +21 -21
  107. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.mjs +21 -21
  108. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +3 -0
  109. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +5 -0
  110. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.d.mts +1 -0
  111. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.mjs +1 -0
  112. package/dist/esm/api/resources/inboxes/resources/webhooks/index.d.mts +1 -0
  113. package/dist/esm/api/resources/inboxes/resources/webhooks/index.mjs +1 -0
  114. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.d.mts +2 -0
  115. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.mjs +2 -0
  116. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
  117. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.mjs +314 -0
  118. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  119. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.mjs +1 -0
  120. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.d.mts +10 -0
  121. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.mjs +2 -0
  122. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  123. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  124. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.d.mts +2 -0
  125. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.mjs +3 -0
  126. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.d.mts +1 -0
  127. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.mjs +1 -0
  128. package/dist/esm/api/resources/messages/types/MessageCalendarEventId.d.mts +1 -1
  129. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +3 -0
  130. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +5 -0
  131. package/dist/esm/api/resources/pods/resources/webhooks/exports.d.mts +1 -0
  132. package/dist/esm/api/resources/pods/resources/webhooks/exports.mjs +1 -0
  133. package/dist/esm/api/resources/pods/resources/webhooks/index.d.mts +1 -0
  134. package/dist/esm/api/resources/pods/resources/webhooks/index.mjs +1 -0
  135. package/dist/esm/api/resources/pods/resources/webhooks/resources/index.d.mts +2 -0
  136. package/dist/esm/api/resources/pods/resources/webhooks/resources/index.mjs +2 -0
  137. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
  138. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.mjs +314 -0
  139. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  140. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.mjs +1 -0
  141. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.mts +10 -0
  142. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.mjs +2 -0
  143. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  144. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  145. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.d.mts +2 -0
  146. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.mjs +3 -0
  147. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.d.mts +1 -0
  148. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.mjs +1 -0
  149. package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -0
  150. package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -0
  151. package/dist/esm/api/resources/webhooks/resources/index.d.mts +3 -0
  152. package/dist/esm/api/resources/webhooks/resources/index.mjs +3 -0
  153. package/dist/esm/api/resources/webhooks/resources/polling/client/Client.d.mts +92 -0
  154. package/dist/esm/api/resources/webhooks/resources/polling/client/Client.mjs +317 -0
  155. package/dist/esm/api/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  156. package/dist/esm/api/resources/webhooks/resources/polling/client/index.mjs +1 -0
  157. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.mts +10 -0
  158. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.mjs +2 -0
  159. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  160. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  161. package/dist/esm/api/resources/webhooks/resources/polling/exports.d.mts +2 -0
  162. package/dist/esm/api/resources/webhooks/resources/polling/exports.mjs +3 -0
  163. package/dist/esm/api/resources/webhooks/resources/polling/index.d.mts +2 -0
  164. package/dist/esm/api/resources/webhooks/resources/polling/index.mjs +2 -0
  165. package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +9 -0
  166. package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +2 -0
  167. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +9 -0
  168. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +2 -0
  169. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +9 -0
  170. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +2 -0
  171. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +7 -0
  172. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +2 -0
  173. package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +12 -0
  174. package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +2 -0
  175. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.d.mts +7 -0
  176. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.mjs +2 -0
  177. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.d.mts +8 -0
  178. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.mjs +2 -0
  179. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +27 -0
  180. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.mjs +2 -0
  181. package/dist/esm/api/resources/webhooks/resources/polling/types/index.d.mts +8 -0
  182. package/dist/esm/api/resources/webhooks/resources/polling/types/index.mjs +8 -0
  183. package/dist/esm/serialization/resources/webhooks/resources/index.d.mts +2 -0
  184. package/dist/esm/serialization/resources/webhooks/resources/index.mjs +2 -0
  185. package/dist/esm/serialization/resources/webhooks/resources/polling/index.d.mts +1 -0
  186. package/dist/esm/serialization/resources/webhooks/resources/polling/index.mjs +1 -0
  187. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +12 -0
  188. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +8 -0
  189. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +11 -0
  190. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +9 -0
  191. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +11 -0
  192. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +9 -0
  193. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +11 -0
  194. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +9 -0
  195. package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +16 -0
  196. package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +12 -0
  197. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.mts +8 -0
  198. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.mjs +3 -0
  199. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.d.mts +7 -0
  200. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.mjs +3 -0
  201. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +22 -0
  202. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.mjs +18 -0
  203. package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.d.mts +8 -0
  204. package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.mjs +8 -0
  205. package/dist/esm/version.d.mts +1 -1
  206. package/dist/esm/version.mjs +1 -1
  207. package/package.json +34 -1
  208. package/reference.md +1462 -575
@@ -17,9 +17,9 @@ export declare class CalendarClient {
17
17
  * created. Its `etag` (also the `ETag` response header) is the value to send in `If-Match` to
18
18
  * make an update conditional.
19
19
  *
20
- * Requires the `calendar_read` permission. Calendar is in private beta in US production
21
- * (`api.agentmail.to`) and is unavailable in EU production (`api.agentmail.eu`).
22
- * Organizations without access receive a `403`.
20
+ * Requires the `calendar_read` permission. Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`)
21
+ * but not yet in EU production (`api.agentmail.eu`). Organizations that have not joined
22
+ * Labs receive a `403`.
23
23
  *
24
24
  * @param {AgentMail.inboxes.InboxId} inbox_id
25
25
  * @param {AgentMail.inboxes.GetCalendarRequest} request
@@ -44,8 +44,8 @@ export declare class CalendarClient {
44
44
  * calendar's current `etag` in `If-Match`: a stale value returns `412`. Without `If-Match` the
45
45
  * update applies to the calendar as it is.
46
46
  *
47
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
48
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
47
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
48
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
49
49
  *
50
50
  * @param {AgentMail.inboxes.InboxId} inbox_id
51
51
  * @param {AgentMail.inboxes.UpdateCalendarRequestWrapper} request
@@ -77,8 +77,8 @@ export declare class CalendarClient {
77
77
  * The list is always read in the region that serves the request, so it can trail a change made
78
78
  * moments earlier by a few seconds. Requires the `calendar_event_read` permission.
79
79
  *
80
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
81
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
80
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
81
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
82
82
  *
83
83
  * @param {AgentMail.inboxes.InboxId} inbox_id
84
84
  * @param {AgentMail.inboxes.ListCalendarEventsRequest} request
@@ -115,8 +115,8 @@ export declare class CalendarClient {
115
115
  * moments earlier by a few seconds. Pass `consistency=primary` to read your own change right
116
116
  * away. Requires the `calendar_event_read` permission.
117
117
  *
118
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
119
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
118
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
119
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
120
120
  *
121
121
  * @param {AgentMail.inboxes.InboxId} inbox_id
122
122
  * @param {AgentMail.inboxes.GetCalendarAgendaRequest} request
@@ -158,8 +158,8 @@ export declare class CalendarClient {
158
158
  * The event's `etag` is the value to send in `If-Match` to make a later update or delete
159
159
  * conditional. Requires the `calendar_event_create` permission.
160
160
  *
161
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
162
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
161
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
162
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
163
163
  *
164
164
  * @param {AgentMail.inboxes.InboxId} inbox_id
165
165
  * @param {AgentMail.CreateCalendarEventRequest} request
@@ -220,8 +220,8 @@ export declare class CalendarClient {
220
220
  * reads back as it ran, even if a later change to the series no longer produces it. Requires
221
221
  * the `calendar_event_read` permission.
222
222
  *
223
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
224
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
223
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
224
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
225
225
  *
226
226
  * @param {AgentMail.inboxes.InboxId} inbox_id
227
227
  * @param {AgentMail.CalendarEventId} event_id
@@ -269,8 +269,8 @@ export declare class CalendarClient {
269
269
  * send limits, charged before the change is saved; an over-limit request returns `429`
270
270
  * `rate_limit_exceeded` and changes nothing.
271
271
  *
272
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
273
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
272
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
273
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
274
274
  *
275
275
  * @param {AgentMail.inboxes.InboxId} inbox_id
276
276
  * @param {AgentMail.CalendarEventId} event_id
@@ -327,8 +327,8 @@ export declare class CalendarClient {
327
327
  * send limits, charged before the delete; an over-limit request returns `429`
328
328
  * `rate_limit_exceeded` and deletes nothing.
329
329
  *
330
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
331
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
330
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
331
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
332
332
  *
333
333
  * @param {AgentMail.inboxes.InboxId} inbox_id
334
334
  * @param {AgentMail.CalendarEventId} event_id
@@ -368,8 +368,8 @@ export declare class CalendarClient {
368
368
  * trail a change made moments earlier by a few seconds; pass `consistency=primary` to read
369
369
  * your own change right away. Requires the `calendar_event_read` permission.
370
370
  *
371
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
372
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
371
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
372
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
373
373
  *
374
374
  * @param {AgentMail.inboxes.InboxId} inbox_id
375
375
  * @param {string} event_id - UUID of the recurring event.
@@ -407,8 +407,8 @@ export declare class CalendarClient {
407
407
  * charged before the response is saved; an over-limit request returns `429`
408
408
  * `rate_limit_exceeded` and changes nothing.
409
409
  *
410
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
411
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
410
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
411
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
412
412
  *
413
413
  * @param {AgentMail.inboxes.InboxId} inbox_id
414
414
  * @param {AgentMail.CalendarEventId} event_id
@@ -38,9 +38,9 @@ export class CalendarClient {
38
38
  * created. Its `etag` (also the `ETag` response header) is the value to send in `If-Match` to
39
39
  * make an update conditional.
40
40
  *
41
- * Requires the `calendar_read` permission. Calendar is in private beta in US production
42
- * (`api.agentmail.to`) and is unavailable in EU production (`api.agentmail.eu`).
43
- * Organizations without access receive a `403`.
41
+ * Requires the `calendar_read` permission. Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`)
42
+ * but not yet in EU production (`api.agentmail.eu`). Organizations that have not joined
43
+ * Labs receive a `403`.
44
44
  *
45
45
  * @param {AgentMail.inboxes.InboxId} inbox_id
46
46
  * @param {AgentMail.inboxes.GetCalendarRequest} request
@@ -141,8 +141,8 @@ export class CalendarClient {
141
141
  * calendar's current `etag` in `If-Match`: a stale value returns `412`. Without `If-Match` the
142
142
  * update applies to the calendar as it is.
143
143
  *
144
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
145
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
144
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
145
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
146
146
  *
147
147
  * @param {AgentMail.inboxes.InboxId} inbox_id
148
148
  * @param {AgentMail.inboxes.UpdateCalendarRequestWrapper} request
@@ -272,8 +272,8 @@ export class CalendarClient {
272
272
  * The list is always read in the region that serves the request, so it can trail a change made
273
273
  * moments earlier by a few seconds. Requires the `calendar_event_read` permission.
274
274
  *
275
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
276
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
275
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
276
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
277
277
  *
278
278
  * @param {AgentMail.inboxes.InboxId} inbox_id
279
279
  * @param {AgentMail.inboxes.ListCalendarEventsRequest} request
@@ -382,8 +382,8 @@ export class CalendarClient {
382
382
  * moments earlier by a few seconds. Pass `consistency=primary` to read your own change right
383
383
  * away. Requires the `calendar_event_read` permission.
384
384
  *
385
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
386
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
385
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
386
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
387
387
  *
388
388
  * @param {AgentMail.inboxes.InboxId} inbox_id
389
389
  * @param {AgentMail.inboxes.GetCalendarAgendaRequest} request
@@ -516,8 +516,8 @@ export class CalendarClient {
516
516
  * The event's `etag` is the value to send in `If-Match` to make a later update or delete
517
517
  * conditional. Requires the `calendar_event_create` permission.
518
518
  *
519
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
520
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
519
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
520
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
521
521
  *
522
522
  * @param {AgentMail.inboxes.InboxId} inbox_id
523
523
  * @param {AgentMail.CreateCalendarEventRequest} request
@@ -675,8 +675,8 @@ export class CalendarClient {
675
675
  * reads back as it ran, even if a later change to the series no longer produces it. Requires
676
676
  * the `calendar_event_read` permission.
677
677
  *
678
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
679
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
678
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
679
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
680
680
  *
681
681
  * @param {AgentMail.inboxes.InboxId} inbox_id
682
682
  * @param {AgentMail.CalendarEventId} event_id
@@ -808,8 +808,8 @@ export class CalendarClient {
808
808
  * send limits, charged before the change is saved; an over-limit request returns `429`
809
809
  * `rate_limit_exceeded` and changes nothing.
810
810
  *
811
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
812
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
811
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
812
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
813
813
  *
814
814
  * @param {AgentMail.inboxes.InboxId} inbox_id
815
815
  * @param {AgentMail.CalendarEventId} event_id
@@ -988,8 +988,8 @@ export class CalendarClient {
988
988
  * send limits, charged before the delete; an over-limit request returns `429`
989
989
  * `rate_limit_exceeded` and deletes nothing.
990
990
  *
991
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
992
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
991
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
992
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
993
993
  *
994
994
  * @param {AgentMail.inboxes.InboxId} inbox_id
995
995
  * @param {AgentMail.CalendarEventId} event_id
@@ -1138,8 +1138,8 @@ export class CalendarClient {
1138
1138
  * trail a change made moments earlier by a few seconds; pass `consistency=primary` to read
1139
1139
  * your own change right away. Requires the `calendar_event_read` permission.
1140
1140
  *
1141
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
1142
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
1141
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
1142
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
1143
1143
  *
1144
1144
  * @param {AgentMail.inboxes.InboxId} inbox_id
1145
1145
  * @param {string} event_id - UUID of the recurring event.
@@ -1276,8 +1276,8 @@ export class CalendarClient {
1276
1276
  * charged before the response is saved; an over-limit request returns `429`
1277
1277
  * `rate_limit_exceeded` and changes nothing.
1278
1278
  *
1279
- * Calendar is in private beta in US production (`api.agentmail.to`). It is unavailable in EU
1280
- * production (`api.agentmail.eu`). Organizations without access receive a `403`.
1279
+ * Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
1280
+ * in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
1281
1281
  *
1282
1282
  * @param {AgentMail.inboxes.InboxId} inbox_id
1283
1283
  * @param {AgentMail.CalendarEventId} event_id
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../core/index.mjs";
4
4
  import * as AgentMail from "../../../../../index.mjs";
5
+ import { PollingClient } from "../resources/polling/client/Client.mjs";
5
6
  export declare namespace WebhooksClient {
6
7
  type Options = BaseClientOptions;
7
8
  interface RequestOptions extends BaseRequestOptions {
@@ -9,7 +10,9 @@ export declare namespace WebhooksClient {
9
10
  }
10
11
  export declare class WebhooksClient {
11
12
  protected readonly _options: NormalizedClientOptionsWithAuth<WebhooksClient.Options>;
13
+ protected _polling: PollingClient | undefined;
12
14
  constructor(options?: WebhooksClient.Options);
15
+ get polling(): PollingClient;
13
16
  /**
14
17
  * **CLI:**
15
18
  * ```bash
@@ -16,10 +16,15 @@ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStat
16
16
  import * as errors from "../../../../../../errors/index.mjs";
17
17
  import * as serializers from "../../../../../../serialization/index.mjs";
18
18
  import * as AgentMail from "../../../../../index.mjs";
19
+ import { PollingClient } from "../resources/polling/client/Client.mjs";
19
20
  export class WebhooksClient {
20
21
  constructor(options = {}) {
21
22
  this._options = normalizeClientOptionsWithAuth(options);
22
23
  }
24
+ get polling() {
25
+ var _a;
26
+ return ((_a = this._polling) !== null && _a !== void 0 ? _a : (this._polling = new PollingClient(this._options)));
27
+ }
23
28
  /**
24
29
  * **CLI:**
25
30
  * ```bash
@@ -1,2 +1,3 @@
1
1
  export { WebhooksClient } from "./client/Client.mjs";
2
2
  export * from "./client/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -1,3 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export { WebhooksClient } from "./client/Client.mjs";
3
3
  export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./polling/client/requests/index.mjs";
2
+ export * as polling from "./polling/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./polling/client/requests/index.mjs";
2
+ export * as polling from "./polling/index.mjs";
@@ -0,0 +1,89 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../../../core/index.mjs";
4
+ import * as AgentMail from "../../../../../../../index.mjs";
5
+ export declare namespace PollingClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class PollingClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<PollingClient.Options>;
12
+ constructor(options?: PollingClient.Options);
13
+ /**
14
+ * Lists the polling webhooks created through this inbox route.
15
+ *
16
+ * **CLI:**
17
+ * ```bash
18
+ * agentmail inboxes webhooks polling list --inbox-id <inbox_id>
19
+ * ```
20
+ *
21
+ * @param {AgentMail.inboxes.InboxId} inbox_id
22
+ * @param {AgentMail.inboxes.webhooks.InboxListPollingWebhooksRequest} request
23
+ * @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @throws {@link AgentMail.ValidationError}
26
+ *
27
+ * @example
28
+ * await client.inboxes.webhooks.polling.list("inbox_id")
29
+ */
30
+ list(inbox_id: AgentMail.inboxes.InboxId, request?: AgentMail.inboxes.webhooks.InboxListPollingWebhooksRequest, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.ListPollingWebhooksResponse>;
31
+ private __list;
32
+ /**
33
+ * **CLI:**
34
+ * ```bash
35
+ * agentmail inboxes webhooks polling get --inbox-id <inbox_id> --webhook-id <webhook_id>
36
+ * ```
37
+ *
38
+ * @param {AgentMail.inboxes.InboxId} inbox_id
39
+ * @param {AgentMail.webhooks.WebhookId} webhook_id
40
+ * @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link AgentMail.NotFoundError}
43
+ *
44
+ * @example
45
+ * await client.inboxes.webhooks.polling.get("inbox_id", "webhook_id")
46
+ */
47
+ get(inbox_id: AgentMail.inboxes.InboxId, webhook_id: AgentMail.webhooks.WebhookId, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.PollingWebhook>;
48
+ private __get;
49
+ /**
50
+ * Create a polling webhook scoped to this inbox and return the `token` that reads it.
51
+ *
52
+ * **CLI:**
53
+ * ```bash
54
+ * agentmail inboxes webhooks polling create --inbox-id <inbox_id> --client-id my-agent --event-types message.received
55
+ * ```
56
+ *
57
+ * @param {AgentMail.inboxes.InboxId} inbox_id
58
+ * @param {AgentMail.webhooks.CreateInboxPollingWebhookRequest} request
59
+ * @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
60
+ *
61
+ * @throws {@link AgentMail.ValidationError}
62
+ * @throws {@link AgentMail.ConflictError}
63
+ *
64
+ * @example
65
+ * await client.inboxes.webhooks.polling.create("inbox_id", {
66
+ * clientId: "client_id",
67
+ * eventTypes: ["message.received", "message.received"]
68
+ * })
69
+ */
70
+ create(inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.webhooks.CreateInboxPollingWebhookRequest, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.CreatePollingWebhookResponse>;
71
+ private __create;
72
+ /**
73
+ * **CLI:**
74
+ * ```bash
75
+ * agentmail inboxes webhooks polling delete --inbox-id <inbox_id> --webhook-id <webhook_id>
76
+ * ```
77
+ *
78
+ * @param {AgentMail.inboxes.InboxId} inbox_id
79
+ * @param {AgentMail.webhooks.WebhookId} webhook_id
80
+ * @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
81
+ *
82
+ * @throws {@link AgentMail.NotFoundError}
83
+ *
84
+ * @example
85
+ * await client.inboxes.webhooks.polling.delete("inbox_id", "webhook_id")
86
+ */
87
+ delete(inbox_id: AgentMail.inboxes.InboxId, webhook_id: AgentMail.webhooks.WebhookId, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<void>;
88
+ private __delete;
89
+ }