agentmail 0.5.20 → 0.5.21

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 (309) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +78 -0
  3. package/dist/cjs/api/resources/apiKeys/client/Client.js +362 -0
  4. package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.d.ts +12 -0
  5. package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.js +3 -0
  6. package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.d.ts +9 -0
  7. package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.js +3 -0
  8. package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.d.ts +9 -0
  9. package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.js +3 -0
  10. package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  11. package/dist/cjs/api/resources/apiKeys/types/BrowserAuthorizationListLimit.d.ts +1 -0
  12. package/dist/cjs/api/resources/apiKeys/types/BrowserAuthorizationListLimit.js +3 -0
  13. package/dist/cjs/api/resources/apiKeys/types/BrowserConsent.d.ts +16 -0
  14. package/dist/cjs/api/resources/apiKeys/types/BrowserConsent.js +3 -0
  15. package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.ts +13 -0
  16. package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.js +3 -0
  17. package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.ts +7 -0
  18. package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.js +10 -0
  19. package/dist/cjs/api/resources/apiKeys/types/BrowserCredential.d.ts +14 -0
  20. package/dist/cjs/api/resources/apiKeys/types/BrowserCredential.js +3 -0
  21. package/dist/cjs/api/resources/apiKeys/types/BrowserCredentialCreator.d.ts +7 -0
  22. package/dist/cjs/api/resources/apiKeys/types/BrowserCredentialCreator.js +3 -0
  23. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentAccepted.d.ts +11 -0
  24. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentAccepted.js +3 -0
  25. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.ts +12 -0
  26. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.js +3 -0
  27. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.ts +7 -0
  28. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.js +10 -0
  29. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.ts +4 -0
  30. package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.js +3 -0
  31. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleActor.d.ts +10 -0
  32. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleActor.js +3 -0
  33. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.ts +3 -0
  34. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.js +3 -0
  35. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.ts +4 -0
  36. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.js +3 -0
  37. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleEvent.d.ts +2 -0
  38. package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleEvent.js +3 -0
  39. package/dist/cjs/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.ts +9 -0
  40. package/dist/cjs/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.js +3 -0
  41. package/dist/cjs/api/resources/apiKeys/types/ListBrowserConsentsResponse.d.ts +7 -0
  42. package/dist/cjs/api/resources/apiKeys/types/ListBrowserConsentsResponse.js +3 -0
  43. package/dist/cjs/api/resources/apiKeys/types/ListBrowserCredentialsResponse.d.ts +7 -0
  44. package/dist/cjs/api/resources/apiKeys/types/ListBrowserCredentialsResponse.js +3 -0
  45. package/dist/cjs/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.ts +7 -0
  46. package/dist/cjs/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.js +3 -0
  47. package/dist/cjs/api/resources/apiKeys/types/index.d.ts +18 -0
  48. package/dist/cjs/api/resources/apiKeys/types/index.js +18 -0
  49. package/dist/cjs/api/resources/attachments/types/SendAttachment.d.ts +9 -2
  50. package/dist/cjs/api/resources/domains/client/Client.d.ts +17 -0
  51. package/dist/cjs/api/resources/domains/client/Client.js +100 -0
  52. package/dist/cjs/api/resources/domains/types/Domain.d.ts +2 -0
  53. package/dist/cjs/api/resources/domains/types/GetSetupLinkResponse.d.ts +16 -0
  54. package/dist/cjs/api/resources/domains/types/GetSetupLinkResponse.js +3 -0
  55. package/dist/cjs/api/resources/domains/types/VerificationRecord.d.ts +2 -0
  56. package/dist/cjs/api/resources/domains/types/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/domains/types/index.js +1 -0
  58. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +3 -0
  59. package/dist/cjs/api/resources/inboxes/client/Client.js +19 -14
  60. package/dist/cjs/api/resources/inboxes/resources/apiKeys/client/Client.d.ts +3 -3
  61. package/dist/cjs/api/resources/inboxes/resources/apiKeys/client/Client.js +3 -3
  62. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/Client.d.ts +55 -0
  63. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/Client.js +175 -0
  64. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/index.js +2 -0
  66. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/exports.d.ts +2 -0
  67. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/exports.js +21 -0
  68. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/index.d.ts +1 -0
  69. package/dist/cjs/api/resources/inboxes/resources/browserCredentials/index.js +17 -0
  70. package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +7 -7
  71. package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +7 -7
  72. package/dist/cjs/api/resources/inboxes/resources/events/client/Client.d.ts +1 -1
  73. package/dist/cjs/api/resources/inboxes/resources/events/client/Client.js +1 -1
  74. package/dist/cjs/api/resources/inboxes/resources/index.d.ts +1 -0
  75. package/dist/cjs/api/resources/inboxes/resources/index.js +2 -1
  76. package/dist/cjs/api/resources/inboxes/resources/lists/client/Client.d.ts +4 -4
  77. package/dist/cjs/api/resources/inboxes/resources/lists/client/Client.js +4 -4
  78. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +12 -12
  79. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +12 -12
  80. package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.d.ts +1 -1
  81. package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.js +1 -1
  82. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +4 -4
  83. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +4 -4
  84. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.d.ts +5 -5
  85. package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.js +5 -5
  86. package/dist/cjs/api/resources/metrics/client/Client.d.ts +1 -1
  87. package/dist/cjs/api/resources/metrics/client/Client.js +1 -1
  88. package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.d.ts +3 -3
  89. package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.js +3 -3
  90. package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +7 -7
  91. package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +7 -7
  92. package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +3 -3
  93. package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +3 -3
  94. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +5 -5
  95. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +5 -5
  96. package/dist/cjs/api/resources/pods/resources/lists/client/Client.d.ts +4 -4
  97. package/dist/cjs/api/resources/pods/resources/lists/client/Client.js +4 -4
  98. package/dist/cjs/api/resources/pods/resources/metrics/client/Client.d.ts +1 -1
  99. package/dist/cjs/api/resources/pods/resources/metrics/client/Client.js +1 -1
  100. package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +4 -4
  101. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +4 -4
  102. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +5 -5
  103. package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +5 -5
  104. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -2
  105. package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
  106. package/dist/cjs/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.d.ts +7 -0
  107. package/dist/cjs/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.js +39 -0
  108. package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsent.d.ts +17 -0
  109. package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsent.js +49 -0
  110. package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.ts +20 -0
  111. package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.js +52 -0
  112. package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.ts +7 -0
  113. package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.js +44 -0
  114. package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredential.d.ts +17 -0
  115. package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredential.js +49 -0
  116. package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredentialCreator.d.ts +11 -0
  117. package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredentialCreator.js +43 -0
  118. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.d.ts +11 -0
  119. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.js +43 -0
  120. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.ts +19 -0
  121. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.js +51 -0
  122. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.ts +7 -0
  123. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.js +44 -0
  124. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.ts +7 -0
  125. package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.js +39 -0
  126. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleActor.d.ts +15 -0
  127. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleActor.js +49 -0
  128. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.ts +9 -0
  129. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.js +41 -0
  130. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.ts +10 -0
  131. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.js +42 -0
  132. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleEvent.d.ts +9 -0
  133. package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleEvent.js +41 -0
  134. package/dist/cjs/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.ts +10 -0
  135. package/dist/cjs/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.js +42 -0
  136. package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.d.ts +16 -0
  137. package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.js +48 -0
  138. package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.d.ts +16 -0
  139. package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.js +48 -0
  140. package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.ts +16 -0
  141. package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.js +48 -0
  142. package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +18 -0
  143. package/dist/cjs/serialization/resources/apiKeys/types/index.js +18 -0
  144. package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +1 -0
  145. package/dist/cjs/serialization/resources/domains/types/Domain.js +1 -0
  146. package/dist/cjs/serialization/resources/domains/types/GetSetupLinkResponse.d.ts +15 -0
  147. package/dist/cjs/serialization/resources/domains/types/GetSetupLinkResponse.js +47 -0
  148. package/dist/cjs/serialization/resources/domains/types/VerificationRecord.d.ts +1 -0
  149. package/dist/cjs/serialization/resources/domains/types/VerificationRecord.js +1 -0
  150. package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -0
  151. package/dist/cjs/serialization/resources/domains/types/index.js +1 -0
  152. package/dist/cjs/version.d.ts +1 -1
  153. package/dist/cjs/version.js +1 -1
  154. package/dist/esm/BaseClient.mjs +2 -2
  155. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +78 -0
  156. package/dist/esm/api/resources/apiKeys/client/Client.mjs +362 -0
  157. package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.d.mts +12 -0
  158. package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.mjs +2 -0
  159. package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.d.mts +9 -0
  160. package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.mjs +2 -0
  161. package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.d.mts +9 -0
  162. package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.mjs +2 -0
  163. package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +3 -0
  164. package/dist/esm/api/resources/apiKeys/types/BrowserAuthorizationListLimit.d.mts +1 -0
  165. package/dist/esm/api/resources/apiKeys/types/BrowserAuthorizationListLimit.mjs +2 -0
  166. package/dist/esm/api/resources/apiKeys/types/BrowserConsent.d.mts +16 -0
  167. package/dist/esm/api/resources/apiKeys/types/BrowserConsent.mjs +2 -0
  168. package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.mts +13 -0
  169. package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.mjs +2 -0
  170. package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.mts +7 -0
  171. package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.mjs +7 -0
  172. package/dist/esm/api/resources/apiKeys/types/BrowserCredential.d.mts +14 -0
  173. package/dist/esm/api/resources/apiKeys/types/BrowserCredential.mjs +2 -0
  174. package/dist/esm/api/resources/apiKeys/types/BrowserCredentialCreator.d.mts +7 -0
  175. package/dist/esm/api/resources/apiKeys/types/BrowserCredentialCreator.mjs +2 -0
  176. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentAccepted.d.mts +11 -0
  177. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentAccepted.mjs +2 -0
  178. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.mts +12 -0
  179. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.mjs +2 -0
  180. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.mts +7 -0
  181. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.mjs +7 -0
  182. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.mts +4 -0
  183. package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.mjs +2 -0
  184. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleActor.d.mts +10 -0
  185. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleActor.mjs +2 -0
  186. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.mts +3 -0
  187. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.mjs +2 -0
  188. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.mts +4 -0
  189. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.mjs +2 -0
  190. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleEvent.d.mts +2 -0
  191. package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleEvent.mjs +2 -0
  192. package/dist/esm/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.mts +9 -0
  193. package/dist/esm/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.mjs +2 -0
  194. package/dist/esm/api/resources/apiKeys/types/ListBrowserConsentsResponse.d.mts +7 -0
  195. package/dist/esm/api/resources/apiKeys/types/ListBrowserConsentsResponse.mjs +2 -0
  196. package/dist/esm/api/resources/apiKeys/types/ListBrowserCredentialsResponse.d.mts +7 -0
  197. package/dist/esm/api/resources/apiKeys/types/ListBrowserCredentialsResponse.mjs +2 -0
  198. package/dist/esm/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.mts +7 -0
  199. package/dist/esm/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.mjs +2 -0
  200. package/dist/esm/api/resources/apiKeys/types/index.d.mts +18 -0
  201. package/dist/esm/api/resources/apiKeys/types/index.mjs +18 -0
  202. package/dist/esm/api/resources/attachments/types/SendAttachment.d.mts +9 -2
  203. package/dist/esm/api/resources/domains/client/Client.d.mts +17 -0
  204. package/dist/esm/api/resources/domains/client/Client.mjs +100 -0
  205. package/dist/esm/api/resources/domains/types/Domain.d.mts +2 -0
  206. package/dist/esm/api/resources/domains/types/GetSetupLinkResponse.d.mts +16 -0
  207. package/dist/esm/api/resources/domains/types/GetSetupLinkResponse.mjs +2 -0
  208. package/dist/esm/api/resources/domains/types/VerificationRecord.d.mts +2 -0
  209. package/dist/esm/api/resources/domains/types/index.d.mts +1 -0
  210. package/dist/esm/api/resources/domains/types/index.mjs +1 -0
  211. package/dist/esm/api/resources/inboxes/client/Client.d.mts +3 -0
  212. package/dist/esm/api/resources/inboxes/client/Client.mjs +5 -0
  213. package/dist/esm/api/resources/inboxes/resources/apiKeys/client/Client.d.mts +3 -3
  214. package/dist/esm/api/resources/inboxes/resources/apiKeys/client/Client.mjs +3 -3
  215. package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/Client.d.mts +55 -0
  216. package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/Client.mjs +138 -0
  217. package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/index.d.mts +1 -0
  218. package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/index.mjs +1 -0
  219. package/dist/esm/api/resources/inboxes/resources/browserCredentials/exports.d.mts +2 -0
  220. package/dist/esm/api/resources/inboxes/resources/browserCredentials/exports.mjs +3 -0
  221. package/dist/esm/api/resources/inboxes/resources/browserCredentials/index.d.mts +1 -0
  222. package/dist/esm/api/resources/inboxes/resources/browserCredentials/index.mjs +1 -0
  223. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +7 -7
  224. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +7 -7
  225. package/dist/esm/api/resources/inboxes/resources/events/client/Client.d.mts +1 -1
  226. package/dist/esm/api/resources/inboxes/resources/events/client/Client.mjs +1 -1
  227. package/dist/esm/api/resources/inboxes/resources/index.d.mts +1 -0
  228. package/dist/esm/api/resources/inboxes/resources/index.mjs +1 -0
  229. package/dist/esm/api/resources/inboxes/resources/lists/client/Client.d.mts +4 -4
  230. package/dist/esm/api/resources/inboxes/resources/lists/client/Client.mjs +4 -4
  231. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +12 -12
  232. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +12 -12
  233. package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.d.mts +1 -1
  234. package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +1 -1
  235. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +4 -4
  236. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +4 -4
  237. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +5 -5
  238. package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +5 -5
  239. package/dist/esm/api/resources/metrics/client/Client.d.mts +1 -1
  240. package/dist/esm/api/resources/metrics/client/Client.mjs +1 -1
  241. package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.d.mts +3 -3
  242. package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.mjs +3 -3
  243. package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +7 -7
  244. package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +7 -7
  245. package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +3 -3
  246. package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +3 -3
  247. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +5 -5
  248. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +5 -5
  249. package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +4 -4
  250. package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +4 -4
  251. package/dist/esm/api/resources/pods/resources/metrics/client/Client.d.mts +1 -1
  252. package/dist/esm/api/resources/pods/resources/metrics/client/Client.mjs +1 -1
  253. package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +4 -4
  254. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +4 -4
  255. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +5 -5
  256. package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +5 -5
  257. package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -2
  258. package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -2
  259. package/dist/esm/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.d.mts +7 -0
  260. package/dist/esm/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.mjs +3 -0
  261. package/dist/esm/serialization/resources/apiKeys/types/BrowserConsent.d.mts +17 -0
  262. package/dist/esm/serialization/resources/apiKeys/types/BrowserConsent.mjs +13 -0
  263. package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.mts +20 -0
  264. package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.mjs +16 -0
  265. package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.mts +7 -0
  266. package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.mjs +8 -0
  267. package/dist/esm/serialization/resources/apiKeys/types/BrowserCredential.d.mts +17 -0
  268. package/dist/esm/serialization/resources/apiKeys/types/BrowserCredential.mjs +13 -0
  269. package/dist/esm/serialization/resources/apiKeys/types/BrowserCredentialCreator.d.mts +11 -0
  270. package/dist/esm/serialization/resources/apiKeys/types/BrowserCredentialCreator.mjs +7 -0
  271. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.d.mts +11 -0
  272. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.mjs +7 -0
  273. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.mts +19 -0
  274. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.mjs +15 -0
  275. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.mts +7 -0
  276. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.mjs +8 -0
  277. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.mts +7 -0
  278. package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.mjs +3 -0
  279. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleActor.d.mts +15 -0
  280. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleActor.mjs +13 -0
  281. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.mts +9 -0
  282. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.mjs +5 -0
  283. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.mts +10 -0
  284. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.mjs +6 -0
  285. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleEvent.d.mts +9 -0
  286. package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleEvent.mjs +5 -0
  287. package/dist/esm/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.mts +10 -0
  288. package/dist/esm/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.mjs +6 -0
  289. package/dist/esm/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.d.mts +16 -0
  290. package/dist/esm/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.mjs +12 -0
  291. package/dist/esm/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.d.mts +16 -0
  292. package/dist/esm/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.mjs +12 -0
  293. package/dist/esm/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.mts +16 -0
  294. package/dist/esm/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.mjs +12 -0
  295. package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +18 -0
  296. package/dist/esm/serialization/resources/apiKeys/types/index.mjs +18 -0
  297. package/dist/esm/serialization/resources/domains/types/Domain.d.mts +1 -0
  298. package/dist/esm/serialization/resources/domains/types/Domain.mjs +1 -0
  299. package/dist/esm/serialization/resources/domains/types/GetSetupLinkResponse.d.mts +15 -0
  300. package/dist/esm/serialization/resources/domains/types/GetSetupLinkResponse.mjs +11 -0
  301. package/dist/esm/serialization/resources/domains/types/VerificationRecord.d.mts +1 -0
  302. package/dist/esm/serialization/resources/domains/types/VerificationRecord.mjs +1 -0
  303. package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -0
  304. package/dist/esm/serialization/resources/domains/types/index.mjs +1 -0
  305. package/dist/esm/version.d.mts +1 -1
  306. package/dist/esm/version.mjs +1 -1
  307. package/dist/llms.txt +11 -1
  308. package/package.json +20 -2
  309. package/reference.md +613 -72
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../index.mjs";
2
+ /**
3
+ * Attach a browser enrollment intent to one pending AgentID authorization
4
+ * transaction. The inbox is selected by the trusted path parameter, not an
5
+ * AgentID `login_hint`.
6
+ */
7
+ export interface CreateBrowserEnrollmentRequest {
8
+ transactionJti: AgentMail.BrowserEnrollmentTransactionJti;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../index.mjs";
2
+ export interface ListBrowserConsentsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.BrowserAuthorizationListLimit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ consents: AgentMail.BrowserConsent[];
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../index.mjs";
2
+ export interface ListBrowserCredentialsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.BrowserAuthorizationListLimit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ credentials: AgentMail.BrowserCredential[];
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../index.mjs";
2
+ export interface ListBrowserLifecycleEventsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.BrowserAuthorizationListLimit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ events: AgentMail.BrowserLifecycleEvent[];
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,12 +1,30 @@
1
1
  export * from "./ApiKey.mjs";
2
2
  export * from "./ApiKeyId.mjs";
3
3
  export * from "./ApiKeyPermissions.mjs";
4
+ export * from "./BrowserAuthorizationListLimit.mjs";
5
+ export * from "./BrowserConsent.mjs";
6
+ export * from "./BrowserConsentLifecycleEvent.mjs";
7
+ export * from "./BrowserConsentLifecycleEventType.mjs";
8
+ export * from "./BrowserCredential.mjs";
9
+ export * from "./BrowserCredentialCreator.mjs";
10
+ export * from "./BrowserEnrollmentAccepted.mjs";
11
+ export * from "./BrowserEnrollmentLifecycleEvent.mjs";
12
+ export * from "./BrowserEnrollmentLifecycleEventType.mjs";
13
+ export * from "./BrowserEnrollmentTransactionJti.mjs";
14
+ export * from "./BrowserLifecycleActor.mjs";
15
+ export * from "./BrowserLifecycleApiKeyActor.mjs";
16
+ export * from "./BrowserLifecycleCredentialActor.mjs";
17
+ export * from "./BrowserLifecycleEvent.mjs";
4
18
  export * from "./CreateApiKeyRequest.mjs";
5
19
  export * from "./CreateApiKeyResponse.mjs";
20
+ export * from "./CreateBrowserEnrollmentRequest.mjs";
6
21
  export * from "./CreatedAt.mjs";
7
22
  export * from "./CreatePublicKeyRequest.mjs";
8
23
  export * from "./InboxPublicKeyScope.mjs";
9
24
  export * from "./ListApiKeysResponse.mjs";
25
+ export * from "./ListBrowserConsentsResponse.mjs";
26
+ export * from "./ListBrowserCredentialsResponse.mjs";
27
+ export * from "./ListBrowserLifecycleEventsResponse.mjs";
10
28
  export * from "./ListPublicKeysResponse.mjs";
11
29
  export * from "./Name.mjs";
12
30
  export * from "./OrganizationPublicKeyScope.mjs";
@@ -1,12 +1,30 @@
1
1
  export * from "./ApiKey.mjs";
2
2
  export * from "./ApiKeyId.mjs";
3
3
  export * from "./ApiKeyPermissions.mjs";
4
+ export * from "./BrowserAuthorizationListLimit.mjs";
5
+ export * from "./BrowserConsent.mjs";
6
+ export * from "./BrowserConsentLifecycleEvent.mjs";
7
+ export * from "./BrowserConsentLifecycleEventType.mjs";
8
+ export * from "./BrowserCredential.mjs";
9
+ export * from "./BrowserCredentialCreator.mjs";
10
+ export * from "./BrowserEnrollmentAccepted.mjs";
11
+ export * from "./BrowserEnrollmentLifecycleEvent.mjs";
12
+ export * from "./BrowserEnrollmentLifecycleEventType.mjs";
13
+ export * from "./BrowserEnrollmentTransactionJti.mjs";
14
+ export * from "./BrowserLifecycleActor.mjs";
15
+ export * from "./BrowserLifecycleApiKeyActor.mjs";
16
+ export * from "./BrowserLifecycleCredentialActor.mjs";
17
+ export * from "./BrowserLifecycleEvent.mjs";
4
18
  export * from "./CreateApiKeyRequest.mjs";
5
19
  export * from "./CreateApiKeyResponse.mjs";
20
+ export * from "./CreateBrowserEnrollmentRequest.mjs";
6
21
  export * from "./CreatedAt.mjs";
7
22
  export * from "./CreatePublicKeyRequest.mjs";
8
23
  export * from "./InboxPublicKeyScope.mjs";
9
24
  export * from "./ListApiKeysResponse.mjs";
25
+ export * from "./ListBrowserConsentsResponse.mjs";
26
+ export * from "./ListBrowserCredentialsResponse.mjs";
27
+ export * from "./ListBrowserLifecycleEventsResponse.mjs";
10
28
  export * from "./ListPublicKeysResponse.mjs";
11
29
  export * from "./Name.mjs";
12
30
  export * from "./OrganizationPublicKeyScope.mjs";
@@ -1,11 +1,18 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
+ /**
3
+ * Provide either `content` or `url` for each attachment.
4
+ */
2
5
  export interface SendAttachment {
3
6
  filename?: AgentMail.AttachmentFilename;
4
7
  contentType?: AgentMail.AttachmentContentType;
5
8
  contentDisposition?: AgentMail.AttachmentContentDisposition;
6
9
  contentId?: AgentMail.AttachmentContentId;
7
- /** Base64 encoded content of attachment. */
10
+ /** Base64 encoded content of the attachment. The entire request, including the message body and all attachments, is limited to 6 MB. */
8
11
  content?: string;
9
- /** URL to the attachment. */
12
+ /**
13
+ * URL that AgentMail can download without custom authentication headers or cookies.
14
+ * Redirects and pre-signed URLs are supported, and the final response must be a
15
+ * successful 2xx response. Keep URL-backed attachments around 30 MB total per message.
16
+ */
10
17
  url?: string;
11
18
  }
@@ -111,10 +111,27 @@ export declare class DomainsClient {
111
111
  * @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
112
112
  *
113
113
  * @throws {@link AgentMail.NotFoundError}
114
+ * @throws {@link AgentMail.ConflictError}
115
+ * @throws {@link AgentMail.UnprocessableError}
114
116
  *
115
117
  * @example
116
118
  * await client.domains.verify("domain_id")
117
119
  */
118
120
  verify(domain_id: AgentMail.DomainId, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<void>;
119
121
  private __verify;
122
+ /**
123
+ * Build a one-click DNS setup link for the domain via the Domain Connect standard. When the domain's DNS provider supports Domain Connect and carries the AgentMail template, the response contains a signed URL: opening it lets the domain owner approve the required DNS records at their provider, which writes them automatically — no copy-paste. When the provider does not support it, `supported` is `false` and the domain's `records` should be added manually instead.
124
+ *
125
+ * @param {AgentMail.DomainId} domain_id
126
+ * @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @throws {@link AgentMail.NotFoundError}
129
+ * @throws {@link AgentMail.ConflictError}
130
+ * @throws {@link AgentMail.UnprocessableError}
131
+ *
132
+ * @example
133
+ * await client.domains.getSetupLink("domain_id")
134
+ */
135
+ getSetupLink(domain_id: AgentMail.DomainId, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<AgentMail.GetSetupLinkResponse>;
136
+ private __getSetupLink;
120
137
  }
@@ -417,6 +417,8 @@ export class DomainsClient {
417
417
  * @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
418
418
  *
419
419
  * @throws {@link AgentMail.NotFoundError}
420
+ * @throws {@link AgentMail.ConflictError}
421
+ * @throws {@link AgentMail.UnprocessableError}
420
422
  *
421
423
  * @example
422
424
  * await client.domains.verify("domain_id")
@@ -454,6 +456,22 @@ export class DomainsClient {
454
456
  skipValidation: true,
455
457
  breadcrumbsPrefix: ["response"],
456
458
  }), _response.rawResponse);
459
+ case 409:
460
+ throw new AgentMail.ConflictError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
461
+ unrecognizedObjectKeys: "passthrough",
462
+ allowUnrecognizedUnionMembers: true,
463
+ allowUnrecognizedEnumValues: true,
464
+ skipValidation: true,
465
+ breadcrumbsPrefix: ["response"],
466
+ }), _response.rawResponse);
467
+ case 422:
468
+ throw new AgentMail.UnprocessableError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
469
+ unrecognizedObjectKeys: "passthrough",
470
+ allowUnrecognizedUnionMembers: true,
471
+ allowUnrecognizedEnumValues: true,
472
+ skipValidation: true,
473
+ breadcrumbsPrefix: ["response"],
474
+ }), _response.rawResponse);
457
475
  default:
458
476
  throw new errors.AgentMailError({
459
477
  statusCode: _response.error.statusCode,
@@ -465,4 +483,86 @@ export class DomainsClient {
465
483
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v0/domains/{domain_id}/verify");
466
484
  });
467
485
  }
486
+ /**
487
+ * Build a one-click DNS setup link for the domain via the Domain Connect standard. When the domain's DNS provider supports Domain Connect and carries the AgentMail template, the response contains a signed URL: opening it lets the domain owner approve the required DNS records at their provider, which writes them automatically — no copy-paste. When the provider does not support it, `supported` is `false` and the domain's `records` should be added manually instead.
488
+ *
489
+ * @param {AgentMail.DomainId} domain_id
490
+ * @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
491
+ *
492
+ * @throws {@link AgentMail.NotFoundError}
493
+ * @throws {@link AgentMail.ConflictError}
494
+ * @throws {@link AgentMail.UnprocessableError}
495
+ *
496
+ * @example
497
+ * await client.domains.getSetupLink("domain_id")
498
+ */
499
+ getSetupLink(domain_id, requestOptions) {
500
+ return core.HttpResponsePromise.fromPromise(this.__getSetupLink(domain_id, requestOptions));
501
+ }
502
+ __getSetupLink(domain_id, requestOptions) {
503
+ return __awaiter(this, void 0, void 0, function* () {
504
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
505
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
506
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
507
+ const _response = yield core.fetcher({
508
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
509
+ .http, `/v0/domains/${core.url.encodePathParam(serializers.DomainId.jsonOrThrow(domain_id, { omitUndefined: true }))}/setup-link`),
510
+ method: "GET",
511
+ headers: _headers,
512
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
513
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
514
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
515
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
516
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
517
+ logging: this._options.logging,
518
+ });
519
+ if (_response.ok) {
520
+ return {
521
+ data: serializers.GetSetupLinkResponse.parseOrThrow(_response.body, {
522
+ unrecognizedObjectKeys: "passthrough",
523
+ allowUnrecognizedUnionMembers: true,
524
+ allowUnrecognizedEnumValues: true,
525
+ skipValidation: true,
526
+ breadcrumbsPrefix: ["response"],
527
+ }),
528
+ rawResponse: _response.rawResponse,
529
+ };
530
+ }
531
+ if (_response.error.reason === "status-code") {
532
+ switch (_response.error.statusCode) {
533
+ case 404:
534
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
535
+ unrecognizedObjectKeys: "passthrough",
536
+ allowUnrecognizedUnionMembers: true,
537
+ allowUnrecognizedEnumValues: true,
538
+ skipValidation: true,
539
+ breadcrumbsPrefix: ["response"],
540
+ }), _response.rawResponse);
541
+ case 409:
542
+ throw new AgentMail.ConflictError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
543
+ unrecognizedObjectKeys: "passthrough",
544
+ allowUnrecognizedUnionMembers: true,
545
+ allowUnrecognizedEnumValues: true,
546
+ skipValidation: true,
547
+ breadcrumbsPrefix: ["response"],
548
+ }), _response.rawResponse);
549
+ case 422:
550
+ throw new AgentMail.UnprocessableError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
551
+ unrecognizedObjectKeys: "passthrough",
552
+ allowUnrecognizedUnionMembers: true,
553
+ allowUnrecognizedEnumValues: true,
554
+ skipValidation: true,
555
+ breadcrumbsPrefix: ["response"],
556
+ }), _response.rawResponse);
557
+ default:
558
+ throw new errors.AgentMailError({
559
+ statusCode: _response.error.statusCode,
560
+ body: _response.error.body,
561
+ rawResponse: _response.rawResponse,
562
+ });
563
+ }
564
+ }
565
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/domains/{domain_id}/setup-link");
566
+ });
567
+ }
468
568
  }
@@ -4,6 +4,8 @@ export interface Domain {
4
4
  domainId: AgentMail.DomainId;
5
5
  domain: AgentMail.DomainName;
6
6
  status: AgentMail.Status;
7
+ /** Why the domain is not (yet) VERIFIED, when known. `dns_records_missing` / `dns_records_invalid` point at the DNS records. The `ses_*` values mean the records look right and sending-infrastructure validation has not converged: `ses_dkim_pending` / `ses_mail_from_pending` (still checking), `ses_dkim_temporary_failure` / `ses_mail_from_temporary_failure` (a transient error the infrastructure keeps retrying on its own — usually resolves without changes), `ses_dkim_failed` / `ses_mail_from_failed` (a terminal verdict; re-verify after fixing), `ses_dkim_not_started` / `ses_mail_from_not_started` (the attribute was never configured on the identity — re-verify to push it), and `ses_not_verified_for_sending`. Absent when VERIFIED. */
8
+ reason?: string;
7
9
  feedbackEnabled: AgentMail.FeedbackEnabled;
8
10
  subdomainsEnabled: AgentMail.SubdomainsEnabled;
9
11
  trackingEnabled: AgentMail.TrackingEnabled;
@@ -0,0 +1,16 @@
1
+ export interface GetSetupLinkResponse {
2
+ /** Whether one-click setup is available for this domain. `false` means the domain's DNS provider does not support Domain Connect (or does not carry the AgentMail template yet) — add the domain's `records` manually instead. */
3
+ supported: boolean;
4
+ /** Display name of the domain's DNS provider, for the setup button label. */
5
+ providerName?: string;
6
+ /** The signed Domain Connect apply URL. Open it in a browser: the domain owner signs in at their DNS provider, reviews the records, and approves — the provider writes them. */
7
+ url?: string;
8
+ /** Suggested popup width from the provider, in pixels. */
9
+ width?: number;
10
+ /** Suggested popup height from the provider, in pixels. */
11
+ height?: number;
12
+ /** Opaque value echoed back on the provider's redirect. Store it before opening the URL and compare on return to tie the redirect to this request. */
13
+ state?: string;
14
+ /** Set when the domain currently has another email provider's MX records (for example Google Workspace). Applying the template would replace them — warn before proceeding. */
15
+ conflictingProvider?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -10,4 +10,6 @@ export interface VerificationRecord {
10
10
  status: AgentMail.RecordStatus;
11
11
  /** The priority of the MX record. */
12
12
  priority?: number;
13
+ /** Why the record is INVALID, when known. `duplicate_records` means the expected value is present but extra records coexist at the same name; `value_mismatch` means a record exists but does not match the expected value. */
14
+ reason?: string;
13
15
  }
@@ -5,6 +5,7 @@ export * from "./DomainId.mjs";
5
5
  export * from "./DomainItem.mjs";
6
6
  export * from "./DomainName.mjs";
7
7
  export * from "./FeedbackEnabled.mjs";
8
+ export * from "./GetSetupLinkResponse.mjs";
8
9
  export * from "./ListDomainsResponse.mjs";
9
10
  export * from "./RecordStatus.mjs";
10
11
  export * from "./RecordType.mjs";
@@ -5,6 +5,7 @@ export * from "./DomainId.mjs";
5
5
  export * from "./DomainItem.mjs";
6
6
  export * from "./DomainName.mjs";
7
7
  export * from "./FeedbackEnabled.mjs";
8
+ export * from "./GetSetupLinkResponse.mjs";
8
9
  export * from "./ListDomainsResponse.mjs";
9
10
  export * from "./RecordStatus.mjs";
10
11
  export * from "./RecordType.mjs";
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as AgentMail from "../../../index.mjs";
5
5
  import { ApiKeysClient } from "../resources/apiKeys/client/Client.mjs";
6
+ import { BrowserCredentialsClient } from "../resources/browserCredentials/client/Client.mjs";
6
7
  import { DraftsClient } from "../resources/drafts/client/Client.mjs";
7
8
  import { EventsClient } from "../resources/events/client/Client.mjs";
8
9
  import { ListsClient } from "../resources/lists/client/Client.mjs";
@@ -20,6 +21,7 @@ export declare class InboxesClient {
20
21
  protected _threads: ThreadsClient | undefined;
21
22
  protected _messages: MessagesClient | undefined;
22
23
  protected _drafts: DraftsClient | undefined;
24
+ protected _browserCredentials: BrowserCredentialsClient | undefined;
23
25
  protected _webhooks: WebhooksClient | undefined;
24
26
  protected _lists: ListsClient | undefined;
25
27
  protected _metrics: MetricsClient | undefined;
@@ -29,6 +31,7 @@ export declare class InboxesClient {
29
31
  get threads(): ThreadsClient;
30
32
  get messages(): MessagesClient;
31
33
  get drafts(): DraftsClient;
34
+ get browserCredentials(): BrowserCredentialsClient;
32
35
  get webhooks(): WebhooksClient;
33
36
  get lists(): ListsClient;
34
37
  get metrics(): MetricsClient;
@@ -17,6 +17,7 @@ import * as errors from "../../../../errors/index.mjs";
17
17
  import * as serializers from "../../../../serialization/index.mjs";
18
18
  import * as AgentMail from "../../../index.mjs";
19
19
  import { ApiKeysClient } from "../resources/apiKeys/client/Client.mjs";
20
+ import { BrowserCredentialsClient } from "../resources/browserCredentials/client/Client.mjs";
20
21
  import { DraftsClient } from "../resources/drafts/client/Client.mjs";
21
22
  import { EventsClient } from "../resources/events/client/Client.mjs";
22
23
  import { ListsClient } from "../resources/lists/client/Client.mjs";
@@ -40,6 +41,10 @@ export class InboxesClient {
40
41
  var _a;
41
42
  return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new DraftsClient(this._options)));
42
43
  }
44
+ get browserCredentials() {
45
+ var _a;
46
+ return ((_a = this._browserCredentials) !== null && _a !== void 0 ? _a : (this._browserCredentials = new BrowserCredentialsClient(this._options)));
47
+ }
43
48
  get webhooks() {
44
49
  var _a;
45
50
  return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new WebhooksClient(this._options)));
@@ -13,7 +13,7 @@ export declare class ApiKeysClient {
13
13
  /**
14
14
  * **CLI:**
15
15
  * ```bash
16
- * agentmail inboxes:api-keys list --inbox-id <inbox_id>
16
+ * agentmail inboxes api-keys list --inbox-id <inbox_id>
17
17
  * ```
18
18
  *
19
19
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -30,7 +30,7 @@ export declare class ApiKeysClient {
30
30
  /**
31
31
  * **CLI:**
32
32
  * ```bash
33
- * agentmail inboxes:api-keys create --inbox-id <inbox_id> --name "My Key"
33
+ * agentmail inboxes api-keys create --inbox-id <inbox_id> --name "My Key"
34
34
  * ```
35
35
  *
36
36
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -48,7 +48,7 @@ export declare class ApiKeysClient {
48
48
  /**
49
49
  * **CLI:**
50
50
  * ```bash
51
- * agentmail inboxes:api-keys delete --inbox-id <inbox_id> --api-key-id <api_key_id>
51
+ * agentmail inboxes api-keys delete --inbox-id <inbox_id> --api-key-id <api_key_id>
52
52
  * ```
53
53
  *
54
54
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -23,7 +23,7 @@ export class ApiKeysClient {
23
23
  /**
24
24
  * **CLI:**
25
25
  * ```bash
26
- * agentmail inboxes:api-keys list --inbox-id <inbox_id>
26
+ * agentmail inboxes api-keys list --inbox-id <inbox_id>
27
27
  * ```
28
28
  *
29
29
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -96,7 +96,7 @@ export class ApiKeysClient {
96
96
  /**
97
97
  * **CLI:**
98
98
  * ```bash
99
- * agentmail inboxes:api-keys create --inbox-id <inbox_id> --name "My Key"
99
+ * agentmail inboxes api-keys create --inbox-id <inbox_id> --name "My Key"
100
100
  * ```
101
101
  *
102
102
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -179,7 +179,7 @@ export class ApiKeysClient {
179
179
  /**
180
180
  * **CLI:**
181
181
  * ```bash
182
- * agentmail inboxes:api-keys delete --inbox-id <inbox_id> --api-key-id <api_key_id>
182
+ * agentmail inboxes api-keys delete --inbox-id <inbox_id> --api-key-id <api_key_id>
183
183
  * ```
184
184
  *
185
185
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -0,0 +1,55 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as AgentMail from "../../../../../index.mjs";
5
+ export declare namespace BrowserCredentialsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class BrowserCredentialsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<BrowserCredentialsClient.Options>;
12
+ constructor(options?: BrowserCredentialsClient.Options);
13
+ /**
14
+ * Attach a browser enrollment intent to the inbox. Requires
15
+ * `api_key_create`. Before submitting `transaction_jti`, independently
16
+ * verify that the browser page's final origin is exactly
17
+ * `https://auth.agentid.com`.
18
+ *
19
+ * This endpoint is available to every organization using US production.
20
+ * It is not available in EU production.
21
+ *
22
+ * Select `inbox_id` from trusted AgentMail configuration. An AgentID
23
+ * `login_hint` is not authoritative for selecting the inbox; when the
24
+ * transaction includes one, it must match the path inbox.
25
+ *
26
+ * **AgentMail API keys are sent only to `https://api.agentmail.to`; AgentID never requests them.**
27
+ *
28
+ * A new intent returns `202`; an idempotent retry for the same pending
29
+ * transaction, inbox, and bearer key returns `200` with the same receipt.
30
+ * An intent lasts at most five minutes. An activated credential lasts at
31
+ * most 30 days and cannot outlive its authorizing bearer API key.
32
+ *
33
+ * Creation is limited to 20 intents per bearer API key per hour, 100 per
34
+ * organization per hour, and five live unused intents per bearer API key.
35
+ * Browser activation is separately limited to 20 activations per
36
+ * authorizing bearer API key per UTC day. Either kind of limit can return
37
+ * `429`; honor the `Retry-After` header. Cancelling an enrollment releases
38
+ * its live-intent slot but does not reset the daily activation counter.
39
+ *
40
+ * @param {AgentMail.inboxes.InboxId} inbox_id
41
+ * @param {AgentMail.CreateBrowserEnrollmentRequest} request
42
+ * @param {BrowserCredentialsClient.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link AgentMail.ValidationError}
45
+ * @throws {@link AgentMail.NotFoundError}
46
+ * @throws {@link AgentMail.ConflictError}
47
+ *
48
+ * @example
49
+ * await client.inboxes.browserCredentials.createEnrollment("inbox_id", {
50
+ * transactionJti: "blackcurrant.........."
51
+ * })
52
+ */
53
+ createEnrollment(inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.CreateBrowserEnrollmentRequest, requestOptions?: BrowserCredentialsClient.RequestOptions): core.HttpResponsePromise<AgentMail.BrowserEnrollmentAccepted>;
54
+ private __createEnrollment;
55
+ }
@@ -0,0 +1,138 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as serializers from "../../../../../../serialization/index.mjs";
18
+ import * as AgentMail from "../../../../../index.mjs";
19
+ export class BrowserCredentialsClient {
20
+ constructor(options = {}) {
21
+ this._options = normalizeClientOptionsWithAuth(options);
22
+ }
23
+ /**
24
+ * Attach a browser enrollment intent to the inbox. Requires
25
+ * `api_key_create`. Before submitting `transaction_jti`, independently
26
+ * verify that the browser page's final origin is exactly
27
+ * `https://auth.agentid.com`.
28
+ *
29
+ * This endpoint is available to every organization using US production.
30
+ * It is not available in EU production.
31
+ *
32
+ * Select `inbox_id` from trusted AgentMail configuration. An AgentID
33
+ * `login_hint` is not authoritative for selecting the inbox; when the
34
+ * transaction includes one, it must match the path inbox.
35
+ *
36
+ * **AgentMail API keys are sent only to `https://api.agentmail.to`; AgentID never requests them.**
37
+ *
38
+ * A new intent returns `202`; an idempotent retry for the same pending
39
+ * transaction, inbox, and bearer key returns `200` with the same receipt.
40
+ * An intent lasts at most five minutes. An activated credential lasts at
41
+ * most 30 days and cannot outlive its authorizing bearer API key.
42
+ *
43
+ * Creation is limited to 20 intents per bearer API key per hour, 100 per
44
+ * organization per hour, and five live unused intents per bearer API key.
45
+ * Browser activation is separately limited to 20 activations per
46
+ * authorizing bearer API key per UTC day. Either kind of limit can return
47
+ * `429`; honor the `Retry-After` header. Cancelling an enrollment releases
48
+ * its live-intent slot but does not reset the daily activation counter.
49
+ *
50
+ * @param {AgentMail.inboxes.InboxId} inbox_id
51
+ * @param {AgentMail.CreateBrowserEnrollmentRequest} request
52
+ * @param {BrowserCredentialsClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link AgentMail.ValidationError}
55
+ * @throws {@link AgentMail.NotFoundError}
56
+ * @throws {@link AgentMail.ConflictError}
57
+ *
58
+ * @example
59
+ * await client.inboxes.browserCredentials.createEnrollment("inbox_id", {
60
+ * transactionJti: "blackcurrant.........."
61
+ * })
62
+ */
63
+ createEnrollment(inbox_id, request, requestOptions) {
64
+ return core.HttpResponsePromise.fromPromise(this.__createEnrollment(inbox_id, request, requestOptions));
65
+ }
66
+ __createEnrollment(inbox_id, request, requestOptions) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
69
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
70
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
71
+ const _response = yield core.fetcher({
72
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
73
+ .http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/browser-credentials/enrollments`),
74
+ method: "POST",
75
+ headers: _headers,
76
+ contentType: "application/json",
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
78
+ requestType: "json",
79
+ body: serializers.CreateBrowserEnrollmentRequest.jsonOrThrow(request, {
80
+ unrecognizedObjectKeys: "strip",
81
+ omitUndefined: true,
82
+ }),
83
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
84
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
87
+ logging: this._options.logging,
88
+ });
89
+ if (_response.ok) {
90
+ return {
91
+ data: serializers.BrowserEnrollmentAccepted.parseOrThrow(_response.body, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ skipValidation: true,
96
+ breadcrumbsPrefix: ["response"],
97
+ }),
98
+ rawResponse: _response.rawResponse,
99
+ };
100
+ }
101
+ if (_response.error.reason === "status-code") {
102
+ switch (_response.error.statusCode) {
103
+ case 400:
104
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
105
+ unrecognizedObjectKeys: "passthrough",
106
+ allowUnrecognizedUnionMembers: true,
107
+ allowUnrecognizedEnumValues: true,
108
+ skipValidation: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ }), _response.rawResponse);
111
+ case 404:
112
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
113
+ unrecognizedObjectKeys: "passthrough",
114
+ allowUnrecognizedUnionMembers: true,
115
+ allowUnrecognizedEnumValues: true,
116
+ skipValidation: true,
117
+ breadcrumbsPrefix: ["response"],
118
+ }), _response.rawResponse);
119
+ case 409:
120
+ throw new AgentMail.ConflictError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
121
+ unrecognizedObjectKeys: "passthrough",
122
+ allowUnrecognizedUnionMembers: true,
123
+ allowUnrecognizedEnumValues: true,
124
+ skipValidation: true,
125
+ breadcrumbsPrefix: ["response"],
126
+ }), _response.rawResponse);
127
+ default:
128
+ throw new errors.AgentMailError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.body,
131
+ rawResponse: _response.rawResponse,
132
+ });
133
+ }
134
+ }
135
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v0/inboxes/{inbox_id}/browser-credentials/enrollments");
136
+ });
137
+ }
138
+ }