agentmail 0.5.41 → 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 (234) 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/Message.d.ts +1 -0
  26. package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.d.ts +8 -0
  27. package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.js +3 -0
  28. package/dist/cjs/api/resources/messages/types/MessageItem.d.ts +1 -0
  29. package/dist/cjs/api/resources/messages/types/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/messages/types/index.js +1 -0
  31. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +3 -0
  32. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +5 -0
  33. package/dist/cjs/api/resources/pods/resources/webhooks/exports.d.ts +1 -0
  34. package/dist/cjs/api/resources/pods/resources/webhooks/exports.js +1 -0
  35. package/dist/cjs/api/resources/pods/resources/webhooks/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/pods/resources/webhooks/index.js +1 -0
  37. package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.js +41 -0
  39. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.ts +89 -0
  40. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.js +351 -0
  41. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.js +17 -0
  43. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.ts +10 -0
  44. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.js +3 -0
  45. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  47. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.d.ts +2 -0
  48. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.js +21 -0
  49. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.js +17 -0
  51. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -0
  52. package/dist/cjs/api/resources/webhooks/client/Client.js +5 -0
  53. package/dist/cjs/api/resources/webhooks/resources/index.d.ts +3 -0
  54. package/dist/cjs/api/resources/webhooks/resources/index.js +4 -1
  55. package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.d.ts +92 -0
  56. package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.js +354 -0
  57. package/dist/cjs/api/resources/webhooks/resources/polling/client/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/webhooks/resources/polling/client/index.js +17 -0
  59. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.ts +10 -0
  60. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.js +3 -0
  61. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.js +2 -0
  63. package/dist/cjs/api/resources/webhooks/resources/polling/exports.d.ts +2 -0
  64. package/dist/cjs/api/resources/webhooks/resources/polling/exports.js +21 -0
  65. package/dist/cjs/api/resources/webhooks/resources/polling/index.d.ts +2 -0
  66. package/dist/cjs/api/resources/webhooks/resources/polling/index.js +18 -0
  67. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +9 -0
  68. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +3 -0
  69. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +9 -0
  70. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +3 -0
  71. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +9 -0
  72. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +3 -0
  73. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +7 -0
  74. package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +3 -0
  75. package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +12 -0
  76. package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +3 -0
  77. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.d.ts +7 -0
  78. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.js +3 -0
  79. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.d.ts +8 -0
  80. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.js +3 -0
  81. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +27 -0
  82. package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.js +3 -0
  83. package/dist/cjs/api/resources/webhooks/resources/polling/types/index.d.ts +8 -0
  84. package/dist/cjs/api/resources/webhooks/resources/polling/types/index.js +24 -0
  85. package/dist/cjs/serialization/resources/messages/types/Message.d.ts +2 -0
  86. package/dist/cjs/serialization/resources/messages/types/Message.js +2 -0
  87. package/dist/cjs/serialization/resources/messages/types/MessageCalendarEventId.d.ts +7 -0
  88. package/dist/cjs/serialization/resources/messages/types/MessageCalendarEventId.js +39 -0
  89. package/dist/cjs/serialization/resources/messages/types/MessageItem.d.ts +2 -0
  90. package/dist/cjs/serialization/resources/messages/types/MessageItem.js +2 -0
  91. package/dist/cjs/serialization/resources/messages/types/index.d.ts +1 -0
  92. package/dist/cjs/serialization/resources/messages/types/index.js +1 -0
  93. package/dist/cjs/serialization/resources/webhooks/resources/index.d.ts +2 -0
  94. package/dist/cjs/serialization/resources/webhooks/resources/index.js +3 -1
  95. package/dist/cjs/serialization/resources/webhooks/resources/polling/index.d.ts +1 -0
  96. package/dist/cjs/serialization/resources/webhooks/resources/polling/index.js +17 -0
  97. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +12 -0
  98. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +44 -0
  99. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +11 -0
  100. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +45 -0
  101. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +11 -0
  102. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +45 -0
  103. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +11 -0
  104. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +45 -0
  105. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +16 -0
  106. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +48 -0
  107. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.ts +8 -0
  108. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.js +6 -0
  109. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.d.ts +7 -0
  110. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.js +39 -0
  111. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +22 -0
  112. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.js +54 -0
  113. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.d.ts +8 -0
  114. package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.js +24 -0
  115. package/dist/cjs/version.d.ts +1 -1
  116. package/dist/cjs/version.js +1 -1
  117. package/dist/esm/BaseClient.mjs +2 -2
  118. package/dist/esm/api/resources/calendar/types/UpdateCalendarEventRequest.d.mts +2 -1
  119. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.d.mts +21 -21
  120. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.mjs +21 -21
  121. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +3 -0
  122. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +5 -0
  123. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.d.mts +1 -0
  124. package/dist/esm/api/resources/inboxes/resources/webhooks/exports.mjs +1 -0
  125. package/dist/esm/api/resources/inboxes/resources/webhooks/index.d.mts +1 -0
  126. package/dist/esm/api/resources/inboxes/resources/webhooks/index.mjs +1 -0
  127. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.d.mts +2 -0
  128. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.mjs +2 -0
  129. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
  130. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.mjs +314 -0
  131. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  132. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.mjs +1 -0
  133. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.d.mts +10 -0
  134. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.mjs +2 -0
  135. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  136. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  137. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.d.mts +2 -0
  138. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.mjs +3 -0
  139. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.d.mts +1 -0
  140. package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.mjs +1 -0
  141. package/dist/esm/api/resources/messages/types/Message.d.mts +1 -0
  142. package/dist/esm/api/resources/messages/types/MessageCalendarEventId.d.mts +8 -0
  143. package/dist/esm/api/resources/messages/types/MessageCalendarEventId.mjs +2 -0
  144. package/dist/esm/api/resources/messages/types/MessageItem.d.mts +1 -0
  145. package/dist/esm/api/resources/messages/types/index.d.mts +1 -0
  146. package/dist/esm/api/resources/messages/types/index.mjs +1 -0
  147. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +3 -0
  148. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +5 -0
  149. package/dist/esm/api/resources/pods/resources/webhooks/exports.d.mts +1 -0
  150. package/dist/esm/api/resources/pods/resources/webhooks/exports.mjs +1 -0
  151. package/dist/esm/api/resources/pods/resources/webhooks/index.d.mts +1 -0
  152. package/dist/esm/api/resources/pods/resources/webhooks/index.mjs +1 -0
  153. package/dist/esm/api/resources/pods/resources/webhooks/resources/index.d.mts +2 -0
  154. package/dist/esm/api/resources/pods/resources/webhooks/resources/index.mjs +2 -0
  155. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
  156. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.mjs +314 -0
  157. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  158. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.mjs +1 -0
  159. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.mts +10 -0
  160. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.mjs +2 -0
  161. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  162. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  163. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.d.mts +2 -0
  164. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.mjs +3 -0
  165. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.d.mts +1 -0
  166. package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.mjs +1 -0
  167. package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -0
  168. package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -0
  169. package/dist/esm/api/resources/webhooks/resources/index.d.mts +3 -0
  170. package/dist/esm/api/resources/webhooks/resources/index.mjs +3 -0
  171. package/dist/esm/api/resources/webhooks/resources/polling/client/Client.d.mts +92 -0
  172. package/dist/esm/api/resources/webhooks/resources/polling/client/Client.mjs +317 -0
  173. package/dist/esm/api/resources/webhooks/resources/polling/client/index.d.mts +1 -0
  174. package/dist/esm/api/resources/webhooks/resources/polling/client/index.mjs +1 -0
  175. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.mts +10 -0
  176. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.mjs +2 -0
  177. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
  178. package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
  179. package/dist/esm/api/resources/webhooks/resources/polling/exports.d.mts +2 -0
  180. package/dist/esm/api/resources/webhooks/resources/polling/exports.mjs +3 -0
  181. package/dist/esm/api/resources/webhooks/resources/polling/index.d.mts +2 -0
  182. package/dist/esm/api/resources/webhooks/resources/polling/index.mjs +2 -0
  183. package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +9 -0
  184. package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +2 -0
  185. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +9 -0
  186. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +2 -0
  187. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +9 -0
  188. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +2 -0
  189. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +7 -0
  190. package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +2 -0
  191. package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +12 -0
  192. package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +2 -0
  193. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.d.mts +7 -0
  194. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.mjs +2 -0
  195. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.d.mts +8 -0
  196. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.mjs +2 -0
  197. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +27 -0
  198. package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.mjs +2 -0
  199. package/dist/esm/api/resources/webhooks/resources/polling/types/index.d.mts +8 -0
  200. package/dist/esm/api/resources/webhooks/resources/polling/types/index.mjs +8 -0
  201. package/dist/esm/serialization/resources/messages/types/Message.d.mts +2 -0
  202. package/dist/esm/serialization/resources/messages/types/Message.mjs +2 -0
  203. package/dist/esm/serialization/resources/messages/types/MessageCalendarEventId.d.mts +7 -0
  204. package/dist/esm/serialization/resources/messages/types/MessageCalendarEventId.mjs +3 -0
  205. package/dist/esm/serialization/resources/messages/types/MessageItem.d.mts +2 -0
  206. package/dist/esm/serialization/resources/messages/types/MessageItem.mjs +2 -0
  207. package/dist/esm/serialization/resources/messages/types/index.d.mts +1 -0
  208. package/dist/esm/serialization/resources/messages/types/index.mjs +1 -0
  209. package/dist/esm/serialization/resources/webhooks/resources/index.d.mts +2 -0
  210. package/dist/esm/serialization/resources/webhooks/resources/index.mjs +2 -0
  211. package/dist/esm/serialization/resources/webhooks/resources/polling/index.d.mts +1 -0
  212. package/dist/esm/serialization/resources/webhooks/resources/polling/index.mjs +1 -0
  213. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +12 -0
  214. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +8 -0
  215. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +11 -0
  216. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +9 -0
  217. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +11 -0
  218. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +9 -0
  219. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +11 -0
  220. package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +9 -0
  221. package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +16 -0
  222. package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +12 -0
  223. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.mts +8 -0
  224. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.mjs +3 -0
  225. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.d.mts +7 -0
  226. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.mjs +3 -0
  227. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +22 -0
  228. package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.mjs +18 -0
  229. package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.d.mts +8 -0
  230. package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.mjs +8 -0
  231. package/dist/esm/version.d.mts +1 -1
  232. package/dist/esm/version.mjs +1 -1
  233. package/package.json +34 -1
  234. package/reference.md +1462 -575
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import type * as AgentMail from "../../../../../index.js";
2
+ /**
3
+ * A subscription the agent polls for events instead of receiving them at a URL. Same event types,
4
+ * channels (pods and inboxes) and permissions as a webhook; no public endpoint is needed.
5
+ */
6
+ export interface PollingWebhook {
7
+ webhookId: AgentMail.webhooks.WebhookId;
8
+ clientId: AgentMail.webhooks.PollingClientId;
9
+ eventTypes: AgentMail.EventTypes;
10
+ podIds?: AgentMail.PodIds;
11
+ inboxIds?: AgentMail.InboxIds;
12
+ /**
13
+ * ID of the pod the subscription belongs to: the pod it was created in, or the pod of the inbox it
14
+ * belongs to. Absent for an organization subscription. This is not the list of pods it receives
15
+ * events for; see `pod_ids`.
16
+ */
17
+ podId?: string;
18
+ /**
19
+ * ID of the inbox the subscription belongs to, if it was created for an inbox. This is not the
20
+ * list of inboxes it receives events for; see `inbox_ids`.
21
+ */
22
+ inboxId?: string;
23
+ /** Time at which the subscription was last updated. */
24
+ updatedAt: Date;
25
+ /** Time at which the subscription was created. */
26
+ createdAt: Date;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,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);
@@ -5,6 +5,7 @@ import { InboxId } from "../../inboxes/types/InboxId.js";
5
5
  import { ThreadId } from "../../threads/types/ThreadId.js";
6
6
  import { MessageAttachments } from "./MessageAttachments.js";
7
7
  import { MessageBcc } from "./MessageBcc.js";
8
+ import { MessageCalendarEventId } from "./MessageCalendarEventId.js";
8
9
  import { MessageCc } from "./MessageCc.js";
9
10
  import { MessageCreatedAt } from "./MessageCreatedAt.js";
10
11
  import { MessageFrom } from "./MessageFrom.js";
@@ -42,6 +43,7 @@ export declare namespace Message {
42
43
  extracted_html?: string | null;
43
44
  attachments?: MessageAttachments.Raw | null;
44
45
  in_reply_to?: MessageInReplyTo.Raw | null;
46
+ calendar_event_id?: MessageCalendarEventId.Raw | null;
45
47
  references?: MessageReferences.Raw | null;
46
48
  headers?: MessageHeaders.Raw | null;
47
49
  size: MessageSize.Raw;
@@ -40,6 +40,7 @@ const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
40
40
  const ThreadId_js_1 = require("../../threads/types/ThreadId.js");
41
41
  const MessageAttachments_js_1 = require("./MessageAttachments.js");
42
42
  const MessageBcc_js_1 = require("./MessageBcc.js");
43
+ const MessageCalendarEventId_js_1 = require("./MessageCalendarEventId.js");
43
44
  const MessageCc_js_1 = require("./MessageCc.js");
44
45
  const MessageCreatedAt_js_1 = require("./MessageCreatedAt.js");
45
46
  const MessageFrom_js_1 = require("./MessageFrom.js");
@@ -75,6 +76,7 @@ exports.Message = core.serialization.object({
75
76
  extractedHtml: core.serialization.property("extracted_html", core.serialization.string().optional()),
76
77
  attachments: MessageAttachments_js_1.MessageAttachments.optional(),
77
78
  inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_js_1.MessageInReplyTo.optional()),
79
+ calendarEventId: core.serialization.property("calendar_event_id", MessageCalendarEventId_js_1.MessageCalendarEventId.optional()),
78
80
  references: MessageReferences_js_1.MessageReferences.optional(),
79
81
  headers: MessageHeaders_js_1.MessageHeaders.optional(),
80
82
  size: MessageSize_js_1.MessageSize,
@@ -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 MessageCalendarEventId: core.serialization.Schema<serializers.MessageCalendarEventId.Raw, AgentMail.MessageCalendarEventId>;
5
+ export declare namespace MessageCalendarEventId {
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.MessageCalendarEventId = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.MessageCalendarEventId = core.serialization.string();
@@ -5,6 +5,7 @@ import { InboxId } from "../../inboxes/types/InboxId.js";
5
5
  import { ThreadId } from "../../threads/types/ThreadId.js";
6
6
  import { MessageAttachments } from "./MessageAttachments.js";
7
7
  import { MessageBcc } from "./MessageBcc.js";
8
+ import { MessageCalendarEventId } from "./MessageCalendarEventId.js";
8
9
  import { MessageCc } from "./MessageCc.js";
9
10
  import { MessageCreatedAt } from "./MessageCreatedAt.js";
10
11
  import { MessageFrom } from "./MessageFrom.js";
@@ -35,6 +36,7 @@ export declare namespace MessageItem {
35
36
  preview?: MessagePreview.Raw | null;
36
37
  attachments?: MessageAttachments.Raw | null;
37
38
  in_reply_to?: MessageInReplyTo.Raw | null;
39
+ calendar_event_id?: MessageCalendarEventId.Raw | null;
38
40
  references?: MessageReferences.Raw | null;
39
41
  headers?: MessageHeaders.Raw | null;
40
42
  size: MessageSize.Raw;
@@ -40,6 +40,7 @@ const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
40
40
  const ThreadId_js_1 = require("../../threads/types/ThreadId.js");
41
41
  const MessageAttachments_js_1 = require("./MessageAttachments.js");
42
42
  const MessageBcc_js_1 = require("./MessageBcc.js");
43
+ const MessageCalendarEventId_js_1 = require("./MessageCalendarEventId.js");
43
44
  const MessageCc_js_1 = require("./MessageCc.js");
44
45
  const MessageCreatedAt_js_1 = require("./MessageCreatedAt.js");
45
46
  const MessageFrom_js_1 = require("./MessageFrom.js");
@@ -68,6 +69,7 @@ exports.MessageItem = core.serialization.object({
68
69
  preview: MessagePreview_js_1.MessagePreview.optional(),
69
70
  attachments: MessageAttachments_js_1.MessageAttachments.optional(),
70
71
  inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_js_1.MessageInReplyTo.optional()),
72
+ calendarEventId: core.serialization.property("calendar_event_id", MessageCalendarEventId_js_1.MessageCalendarEventId.optional()),
71
73
  references: MessageReferences_js_1.MessageReferences.optional(),
72
74
  headers: MessageHeaders_js_1.MessageHeaders.optional(),
73
75
  size: MessageSize_js_1.MessageSize,
@@ -9,6 +9,7 @@ export * from "./ListMessagesResponse.js";
9
9
  export * from "./Message.js";
10
10
  export * from "./MessageAttachments.js";
11
11
  export * from "./MessageBcc.js";
12
+ export * from "./MessageCalendarEventId.js";
12
13
  export * from "./MessageCc.js";
13
14
  export * from "./MessageCreatedAt.js";
14
15
  export * from "./MessageFrom.js";
@@ -25,6 +25,7 @@ __exportStar(require("./ListMessagesResponse.js"), exports);
25
25
  __exportStar(require("./Message.js"), exports);
26
26
  __exportStar(require("./MessageAttachments.js"), exports);
27
27
  __exportStar(require("./MessageBcc.js"), exports);
28
+ __exportStar(require("./MessageCalendarEventId.js"), exports);
28
29
  __exportStar(require("./MessageCc.js"), exports);
29
30
  __exportStar(require("./MessageCreatedAt.js"), exports);
30
31
  __exportStar(require("./MessageFrom.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();