agentmail 0.5.42 → 0.5.44

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 (245) 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/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/index.js +1 -0
  27. package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.d.ts +1 -1
  28. package/dist/cjs/api/resources/organizations/client/Client.d.ts +41 -1
  29. package/dist/cjs/api/resources/organizations/client/Client.js +159 -0
  30. package/dist/cjs/api/resources/organizations/errors/OrganizationForbiddenError.d.ts +6 -0
  31. package/dist/cjs/api/resources/organizations/errors/OrganizationForbiddenError.js +54 -0
  32. package/dist/cjs/api/resources/organizations/errors/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/organizations/errors/index.js +17 -0
  34. package/dist/cjs/api/resources/organizations/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/organizations/index.js +1 -0
  36. package/dist/cjs/api/resources/organizations/types/OrganizationLabs.d.ts +11 -0
  37. package/dist/cjs/api/resources/organizations/types/OrganizationLabs.js +3 -0
  38. package/dist/cjs/api/resources/organizations/types/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/organizations/types/index.js +1 -0
  40. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +3 -0
  41. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +5 -0
  42. package/dist/cjs/api/resources/pods/resources/webhooks/exports.d.ts +1 -0
  43. package/dist/cjs/api/resources/pods/resources/webhooks/exports.js +1 -0
  44. package/dist/cjs/api/resources/pods/resources/webhooks/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/pods/resources/webhooks/index.js +1 -0
  46. package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.js +41 -0
  48. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.ts +89 -0
  49. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.js +351 -0
  50. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.js +17 -0
  52. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.ts +10 -0
  53. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.js +3 -0
  54. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  56. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.d.ts +2 -0
  57. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.js +21 -0
  58. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.d.ts +1 -0
  59. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.js +17 -0
  60. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -0
  61. package/dist/cjs/api/resources/webhooks/client/Client.js +5 -0
  62. package/dist/cjs/api/resources/webhooks/resources/index.d.ts +3 -0
  63. package/dist/cjs/api/resources/webhooks/resources/index.js +4 -1
  64. package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.d.ts +92 -0
  65. package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.js +354 -0
  66. package/dist/cjs/api/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  67. package/dist/cjs/api/resources/webhooks/resources/polling/client/index.js +17 -0
  68. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.ts +10 -0
  69. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.js +3 -0
  70. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  71. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  72. package/dist/cjs/api/resources/webhooks/resources/polling/exports.d.ts +2 -0
  73. package/dist/cjs/api/resources/webhooks/resources/polling/exports.js +21 -0
  74. package/dist/cjs/api/resources/webhooks/resources/polling/index.d.ts +2 -0
  75. package/dist/cjs/api/resources/webhooks/resources/polling/index.js +18 -0
  76. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +9 -0
  77. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +3 -0
  78. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +9 -0
  79. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +3 -0
  80. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +9 -0
  81. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +3 -0
  82. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +7 -0
  83. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +3 -0
  84. package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +12 -0
  85. package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +3 -0
  86. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.d.ts +7 -0
  87. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.js +3 -0
  88. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.d.ts +8 -0
  89. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.js +3 -0
  90. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +27 -0
  91. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.js +3 -0
  92. package/dist/cjs/api/resources/webhooks/resources/polling/types/index.d.ts +8 -0
  93. package/dist/cjs/api/resources/webhooks/resources/polling/types/index.js +24 -0
  94. package/dist/cjs/serialization/resources/organizations/types/OrganizationLabs.d.ts +11 -0
  95. package/dist/cjs/serialization/resources/organizations/types/OrganizationLabs.js +43 -0
  96. package/dist/cjs/serialization/resources/organizations/types/index.d.ts +1 -0
  97. package/dist/cjs/serialization/resources/organizations/types/index.js +1 -0
  98. package/dist/cjs/serialization/resources/webhooks/resources/index.d.ts +2 -0
  99. package/dist/cjs/serialization/resources/webhooks/resources/index.js +3 -1
  100. package/dist/cjs/serialization/resources/webhooks/resources/polling/index.d.ts +1 -0
  101. package/dist/cjs/serialization/resources/webhooks/resources/polling/index.js +17 -0
  102. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +12 -0
  103. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +44 -0
  104. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +11 -0
  105. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +45 -0
  106. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +11 -0
  107. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +45 -0
  108. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +11 -0
  109. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +45 -0
  110. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +16 -0
  111. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +48 -0
  112. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.ts +8 -0
  113. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.js +6 -0
  114. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.d.ts +7 -0
  115. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.js +39 -0
  116. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +22 -0
  117. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.js +54 -0
  118. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.d.ts +8 -0
  119. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.js +24 -0
  120. package/dist/cjs/version.d.ts +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/esm/BaseClient.mjs +2 -2
  123. package/dist/esm/api/resources/calendar/types/UpdateCalendarEventRequest.d.mts +2 -1
  124. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.d.mts +21 -21
  125. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.mjs +21 -21
  126. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +3 -0
  127. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +5 -0
  128. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.d.mts +1 -0
  129. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.mjs +1 -0
  130. package/dist/esm/api/resources/inboxes/resources/webhooks/index.d.mts +1 -0
  131. package/dist/esm/api/resources/inboxes/resources/webhooks/index.mjs +1 -0
  132. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.d.mts +2 -0
  133. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.mjs +2 -0
  134. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
  135. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.mjs +314 -0
  136. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  137. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.mjs +1 -0
  138. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.d.mts +10 -0
  139. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.mjs +2 -0
  140. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  141. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  142. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.d.mts +2 -0
  143. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.mjs +3 -0
  144. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.d.mts +1 -0
  145. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.mjs +1 -0
  146. package/dist/esm/api/resources/index.d.mts +1 -0
  147. package/dist/esm/api/resources/index.mjs +1 -0
  148. package/dist/esm/api/resources/messages/types/MessageCalendarEventId.d.mts +1 -1
  149. package/dist/esm/api/resources/organizations/client/Client.d.mts +41 -1
  150. package/dist/esm/api/resources/organizations/client/Client.mjs +159 -0
  151. package/dist/esm/api/resources/organizations/errors/OrganizationForbiddenError.d.mts +6 -0
  152. package/dist/esm/api/resources/organizations/errors/OrganizationForbiddenError.mjs +17 -0
  153. package/dist/esm/api/resources/organizations/errors/index.d.mts +1 -0
  154. package/dist/esm/api/resources/organizations/errors/index.mjs +1 -0
  155. package/dist/esm/api/resources/organizations/index.d.mts +1 -0
  156. package/dist/esm/api/resources/organizations/index.mjs +1 -0
  157. package/dist/esm/api/resources/organizations/types/OrganizationLabs.d.mts +11 -0
  158. package/dist/esm/api/resources/organizations/types/OrganizationLabs.mjs +2 -0
  159. package/dist/esm/api/resources/organizations/types/index.d.mts +1 -0
  160. package/dist/esm/api/resources/organizations/types/index.mjs +1 -0
  161. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +3 -0
  162. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +5 -0
  163. package/dist/esm/api/resources/pods/resources/webhooks/exports.d.mts +1 -0
  164. package/dist/esm/api/resources/pods/resources/webhooks/exports.mjs +1 -0
  165. package/dist/esm/api/resources/pods/resources/webhooks/index.d.mts +1 -0
  166. package/dist/esm/api/resources/pods/resources/webhooks/index.mjs +1 -0
  167. package/dist/esm/api/resources/pods/resources/webhooks/resources/index.d.mts +2 -0
  168. package/dist/esm/api/resources/pods/resources/webhooks/resources/index.mjs +2 -0
  169. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
  170. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.mjs +314 -0
  171. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  172. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.mjs +1 -0
  173. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.mts +10 -0
  174. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.mjs +2 -0
  175. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  176. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  177. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.d.mts +2 -0
  178. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.mjs +3 -0
  179. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.d.mts +1 -0
  180. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.mjs +1 -0
  181. package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -0
  182. package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -0
  183. package/dist/esm/api/resources/webhooks/resources/index.d.mts +3 -0
  184. package/dist/esm/api/resources/webhooks/resources/index.mjs +3 -0
  185. package/dist/esm/api/resources/webhooks/resources/polling/client/Client.d.mts +92 -0
  186. package/dist/esm/api/resources/webhooks/resources/polling/client/Client.mjs +317 -0
  187. package/dist/esm/api/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  188. package/dist/esm/api/resources/webhooks/resources/polling/client/index.mjs +1 -0
  189. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.mts +10 -0
  190. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.mjs +2 -0
  191. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  192. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  193. package/dist/esm/api/resources/webhooks/resources/polling/exports.d.mts +2 -0
  194. package/dist/esm/api/resources/webhooks/resources/polling/exports.mjs +3 -0
  195. package/dist/esm/api/resources/webhooks/resources/polling/index.d.mts +2 -0
  196. package/dist/esm/api/resources/webhooks/resources/polling/index.mjs +2 -0
  197. package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +9 -0
  198. package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +2 -0
  199. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +9 -0
  200. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +2 -0
  201. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +9 -0
  202. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +2 -0
  203. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +7 -0
  204. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +2 -0
  205. package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +12 -0
  206. package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +2 -0
  207. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.d.mts +7 -0
  208. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.mjs +2 -0
  209. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.d.mts +8 -0
  210. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.mjs +2 -0
  211. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +27 -0
  212. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.mjs +2 -0
  213. package/dist/esm/api/resources/webhooks/resources/polling/types/index.d.mts +8 -0
  214. package/dist/esm/api/resources/webhooks/resources/polling/types/index.mjs +8 -0
  215. package/dist/esm/serialization/resources/organizations/types/OrganizationLabs.d.mts +11 -0
  216. package/dist/esm/serialization/resources/organizations/types/OrganizationLabs.mjs +7 -0
  217. package/dist/esm/serialization/resources/organizations/types/index.d.mts +1 -0
  218. package/dist/esm/serialization/resources/organizations/types/index.mjs +1 -0
  219. package/dist/esm/serialization/resources/webhooks/resources/index.d.mts +2 -0
  220. package/dist/esm/serialization/resources/webhooks/resources/index.mjs +2 -0
  221. package/dist/esm/serialization/resources/webhooks/resources/polling/index.d.mts +1 -0
  222. package/dist/esm/serialization/resources/webhooks/resources/polling/index.mjs +1 -0
  223. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +12 -0
  224. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +8 -0
  225. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +11 -0
  226. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +9 -0
  227. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +11 -0
  228. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +9 -0
  229. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +11 -0
  230. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +9 -0
  231. package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +16 -0
  232. package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +12 -0
  233. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.mts +8 -0
  234. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.mjs +3 -0
  235. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.d.mts +7 -0
  236. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.mjs +3 -0
  237. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +22 -0
  238. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.mjs +18 -0
  239. package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.d.mts +8 -0
  240. package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.mjs +8 -0
  241. package/dist/esm/version.d.mts +1 -1
  242. package/dist/esm/version.mjs +1 -1
  243. package/dist/llms.txt +14 -0
  244. package/package.json +34 -1
  245. package/reference.md +1586 -575
@@ -0,0 +1,43 @@
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.OrganizationLabs = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.OrganizationLabs = core.serialization.object({
40
+ enabled: core.serialization.boolean(),
41
+ enabledAt: core.serialization.property("enabled_at", core.serialization.date().nullable()),
42
+ available: core.serialization.boolean(),
43
+ });
@@ -1 +1,2 @@
1
1
  export * from "./Organization.js";
2
+ export * from "./OrganizationLabs.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Organization.js"), exports);
18
+ __exportStar(require("./OrganizationLabs.js"), exports);
@@ -1,2 +1,4 @@
1
1
  export * as events from "./events/index.js";
2
2
  export * from "./events/types/index.js";
3
+ export * as polling from "./polling/index.js";
4
+ export * from "./polling/types/index.js";
@@ -36,6 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.events = void 0;
39
+ exports.polling = exports.events = void 0;
40
40
  exports.events = __importStar(require("./events/index.js"));
41
41
  __exportStar(require("./events/types/index.js"), exports);
42
+ exports.polling = __importStar(require("./polling/index.js"));
43
+ __exportStar(require("./polling/types/index.js"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,12 @@
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 { CreateWebhookEventTypes } from "../../../types/CreateWebhookEventTypes.js";
5
+ import { PollingClientId } from "./PollingClientId.js";
6
+ export declare const CreateInboxPollingWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.CreateInboxPollingWebhookRequest.Raw, AgentMail.webhooks.CreateInboxPollingWebhookRequest>;
7
+ export declare namespace CreateInboxPollingWebhookRequest {
8
+ interface Raw {
9
+ client_id: PollingClientId.Raw;
10
+ event_types: CreateWebhookEventTypes.Raw;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
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.CreateInboxPollingWebhookRequest = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ const CreateWebhookEventTypes_js_1 = require("../../../types/CreateWebhookEventTypes.js");
40
+ const PollingClientId_js_1 = require("./PollingClientId.js");
41
+ exports.CreateInboxPollingWebhookRequest = core.serialization.object({
42
+ clientId: core.serialization.property("client_id", PollingClientId_js_1.PollingClientId),
43
+ eventTypes: core.serialization.property("event_types", CreateWebhookEventTypes_js_1.CreateWebhookEventTypes),
44
+ });
@@ -0,0 +1,11 @@
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 { InboxIds } from "../../../../events/types/InboxIds.js";
5
+ import { CreateInboxPollingWebhookRequest } from "./CreateInboxPollingWebhookRequest.js";
6
+ export declare const CreatePodPollingWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.CreatePodPollingWebhookRequest.Raw, AgentMail.webhooks.CreatePodPollingWebhookRequest>;
7
+ export declare namespace CreatePodPollingWebhookRequest {
8
+ interface Raw extends CreateInboxPollingWebhookRequest.Raw {
9
+ inbox_ids?: InboxIds.Raw | null;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
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.CreatePodPollingWebhookRequest = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ const InboxIds_js_1 = require("../../../../events/types/InboxIds.js");
40
+ const CreateInboxPollingWebhookRequest_js_1 = require("./CreateInboxPollingWebhookRequest.js");
41
+ exports.CreatePodPollingWebhookRequest = core.serialization
42
+ .object({
43
+ inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
44
+ })
45
+ .extend(CreateInboxPollingWebhookRequest_js_1.CreateInboxPollingWebhookRequest);
@@ -0,0 +1,11 @@
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 { PodIds } from "../../../../events/types/PodIds.js";
5
+ import { CreatePodPollingWebhookRequest } from "./CreatePodPollingWebhookRequest.js";
6
+ export declare const CreatePollingWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.CreatePollingWebhookRequest.Raw, AgentMail.webhooks.CreatePollingWebhookRequest>;
7
+ export declare namespace CreatePollingWebhookRequest {
8
+ interface Raw extends CreatePodPollingWebhookRequest.Raw {
9
+ pod_ids?: PodIds.Raw | null;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
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.CreatePollingWebhookRequest = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ const PodIds_js_1 = require("../../../../events/types/PodIds.js");
40
+ const CreatePodPollingWebhookRequest_js_1 = require("./CreatePodPollingWebhookRequest.js");
41
+ exports.CreatePollingWebhookRequest = core.serialization
42
+ .object({
43
+ podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
44
+ })
45
+ .extend(CreatePodPollingWebhookRequest_js_1.CreatePodPollingWebhookRequest);
@@ -0,0 +1,11 @@
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 { PollingToken } from "./PollingToken.js";
5
+ import { PollingWebhook } from "./PollingWebhook.js";
6
+ export declare const CreatePollingWebhookResponse: core.serialization.ObjectSchema<serializers.webhooks.CreatePollingWebhookResponse.Raw, AgentMail.webhooks.CreatePollingWebhookResponse>;
7
+ export declare namespace CreatePollingWebhookResponse {
8
+ interface Raw extends PollingWebhook.Raw {
9
+ token: PollingToken.Raw;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
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.CreatePollingWebhookResponse = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ const PollingToken_js_1 = require("./PollingToken.js");
40
+ const PollingWebhook_js_1 = require("./PollingWebhook.js");
41
+ exports.CreatePollingWebhookResponse = core.serialization
42
+ .object({
43
+ token: PollingToken_js_1.PollingToken,
44
+ })
45
+ .extend(PollingWebhook_js_1.PollingWebhook);
@@ -0,0 +1,16 @@
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 { Count } from "../../../../../types/Count.js";
5
+ import { Limit } from "../../../../../types/Limit.js";
6
+ import { PageToken } from "../../../../../types/PageToken.js";
7
+ import { PollingWebhook } from "./PollingWebhook.js";
8
+ export declare const ListPollingWebhooksResponse: core.serialization.ObjectSchema<serializers.webhooks.ListPollingWebhooksResponse.Raw, AgentMail.webhooks.ListPollingWebhooksResponse>;
9
+ export declare namespace ListPollingWebhooksResponse {
10
+ interface Raw {
11
+ count: Count.Raw;
12
+ limit?: Limit.Raw | null;
13
+ next_page_token?: PageToken.Raw | null;
14
+ polling_webhooks: PollingWebhook.Raw[];
15
+ }
16
+ }
@@ -0,0 +1,48 @@
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.ListPollingWebhooksResponse = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ const Count_js_1 = require("../../../../../types/Count.js");
40
+ const Limit_js_1 = require("../../../../../types/Limit.js");
41
+ const PageToken_js_1 = require("../../../../../types/PageToken.js");
42
+ const PollingWebhook_js_1 = require("./PollingWebhook.js");
43
+ exports.ListPollingWebhooksResponse = core.serialization.object({
44
+ count: Count_js_1.Count,
45
+ limit: Limit_js_1.Limit.optional(),
46
+ nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
47
+ pollingWebhooks: core.serialization.property("polling_webhooks", core.serialization.list(PollingWebhook_js_1.PollingWebhook)),
48
+ });
@@ -0,0 +1,8 @@
1
+ import type * as AgentMail from "../../../../../../api/index.js";
2
+ import type * as core from "../../../../../../core/index.js";
3
+ import type * as serializers from "../../../../../index.js";
4
+ import { ClientId } from "../../../types/ClientId.js";
5
+ export declare const PollingClientId: core.serialization.Schema<serializers.webhooks.PollingClientId.Raw, AgentMail.webhooks.PollingClientId>;
6
+ export declare namespace PollingClientId {
7
+ type Raw = ClientId.Raw;
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PollingClientId = void 0;
5
+ const ClientId_js_1 = require("../../../types/ClientId.js");
6
+ exports.PollingClientId = ClientId_js_1.ClientId;
@@ -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 PollingToken: core.serialization.Schema<serializers.webhooks.PollingToken.Raw, AgentMail.webhooks.PollingToken>;
5
+ export declare namespace PollingToken {
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.PollingToken = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ exports.PollingToken = core.serialization.string();
@@ -0,0 +1,22 @@
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 { EventTypes } from "../../../../events/types/EventTypes.js";
5
+ import { InboxIds } from "../../../../events/types/InboxIds.js";
6
+ import { PodIds } from "../../../../events/types/PodIds.js";
7
+ import { WebhookId } from "../../../types/WebhookId.js";
8
+ import { PollingClientId } from "./PollingClientId.js";
9
+ export declare const PollingWebhook: core.serialization.ObjectSchema<serializers.webhooks.PollingWebhook.Raw, AgentMail.webhooks.PollingWebhook>;
10
+ export declare namespace PollingWebhook {
11
+ interface Raw {
12
+ webhook_id: WebhookId.Raw;
13
+ client_id: PollingClientId.Raw;
14
+ event_types: EventTypes.Raw;
15
+ pod_ids?: PodIds.Raw | null;
16
+ inbox_ids?: InboxIds.Raw | null;
17
+ pod_id?: string | null;
18
+ inbox_id?: string | null;
19
+ updated_at: string;
20
+ created_at: string;
21
+ }
22
+ }
@@ -0,0 +1,54 @@
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.PollingWebhook = void 0;
38
+ const core = __importStar(require("../../../../../../core/index.js"));
39
+ const EventTypes_js_1 = require("../../../../events/types/EventTypes.js");
40
+ const InboxIds_js_1 = require("../../../../events/types/InboxIds.js");
41
+ const PodIds_js_1 = require("../../../../events/types/PodIds.js");
42
+ const WebhookId_js_1 = require("../../../types/WebhookId.js");
43
+ const PollingClientId_js_1 = require("./PollingClientId.js");
44
+ exports.PollingWebhook = core.serialization.object({
45
+ webhookId: core.serialization.property("webhook_id", WebhookId_js_1.WebhookId),
46
+ clientId: core.serialization.property("client_id", PollingClientId_js_1.PollingClientId),
47
+ eventTypes: core.serialization.property("event_types", EventTypes_js_1.EventTypes),
48
+ podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
49
+ inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
50
+ podId: core.serialization.property("pod_id", core.serialization.string().optional()),
51
+ inboxId: core.serialization.property("inbox_id", core.serialization.string().optional()),
52
+ updatedAt: core.serialization.property("updated_at", core.serialization.date()),
53
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
54
+ });
@@ -0,0 +1,8 @@
1
+ export * from "./CreateInboxPollingWebhookRequest.js";
2
+ export * from "./CreatePodPollingWebhookRequest.js";
3
+ export * from "./CreatePollingWebhookRequest.js";
4
+ export * from "./CreatePollingWebhookResponse.js";
5
+ export * from "./ListPollingWebhooksResponse.js";
6
+ export * from "./PollingClientId.js";
7
+ export * from "./PollingToken.js";
8
+ export * from "./PollingWebhook.js";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateInboxPollingWebhookRequest.js"), exports);
18
+ __exportStar(require("./CreatePodPollingWebhookRequest.js"), exports);
19
+ __exportStar(require("./CreatePollingWebhookRequest.js"), exports);
20
+ __exportStar(require("./CreatePollingWebhookResponse.js"), exports);
21
+ __exportStar(require("./ListPollingWebhooksResponse.js"), exports);
22
+ __exportStar(require("./PollingClientId.js"), exports);
23
+ __exportStar(require("./PollingToken.js"), exports);
24
+ __exportStar(require("./PollingWebhook.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.42";
1
+ export declare const SDK_VERSION = "0.5.44";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.5.42";
4
+ exports.SDK_VERSION = "0.5.44";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "agentmail",
9
- "X-Fern-SDK-Version": "0.5.42",
10
- "User-Agent": "agentmail/0.5.42",
9
+ "X-Fern-SDK-Version": "0.5.44",
10
+ "User-Agent": "agentmail/0.5.44",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -24,7 +24,8 @@ export interface UpdateCalendarEventRequest {
24
24
  durationMode?: AgentMail.DurationMode;
25
25
  /**
26
26
  * Replaces the recurrence. Set to `null` to turn a series into a one-off event (only when no
27
- * date of it has been edited). Not accepted for dated event IDs.
27
+ * date of it has been edited). Not accepted for dated event IDs. A series ended with a
28
+ * `mode=future` delete stays ended: the new rule keeps its `truncate_before`.
28
29
  */
29
30
  recurrence?: AgentMail.RecurrenceInput | null;
30
31
  /** Replaces the attendee list. */