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,12 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface BrowserEnrollmentLifecycleEvent {
3
+ type: AgentMail.BrowserEnrollmentLifecycleEventType;
4
+ traceId: string;
5
+ eventId: string;
6
+ occurredAt: Date;
7
+ organizationId: string;
8
+ podId: string;
9
+ actor: AgentMail.BrowserLifecycleActor;
10
+ enrollmentId: string;
11
+ credentialId: string;
12
+ }
@@ -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,7 @@
1
+ export declare const BrowserEnrollmentLifecycleEventType: {
2
+ readonly BrowserEnrollmentIntentCreated: "browser_enrollment_intent_created";
3
+ readonly BrowserCredentialActivated: "browser_credential_activated";
4
+ readonly BrowserEnrollmentCancelled: "browser_enrollment_cancelled";
5
+ readonly BrowserCredentialDeleted: "browser_credential_deleted";
6
+ };
7
+ export type BrowserEnrollmentLifecycleEventType = (typeof BrowserEnrollmentLifecycleEventType)[keyof typeof BrowserEnrollmentLifecycleEventType];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BrowserEnrollmentLifecycleEventType = void 0;
5
+ exports.BrowserEnrollmentLifecycleEventType = {
6
+ BrowserEnrollmentIntentCreated: "browser_enrollment_intent_created",
7
+ BrowserCredentialActivated: "browser_credential_activated",
8
+ BrowserEnrollmentCancelled: "browser_enrollment_cancelled",
9
+ BrowserCredentialDeleted: "browser_credential_deleted",
10
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Transaction identifier read from an enrollment action on exactly `https://auth.agentid.com`.
3
+ */
4
+ export type BrowserEnrollmentTransactionJti = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export type BrowserLifecycleActor = AgentMail.BrowserLifecycleActor.ApiKey | AgentMail.BrowserLifecycleActor.BrowserCredential;
3
+ export declare namespace BrowserLifecycleActor {
4
+ interface ApiKey extends AgentMail.BrowserLifecycleApiKeyActor {
5
+ type: "api_key";
6
+ }
7
+ interface BrowserCredential extends AgentMail.BrowserLifecycleCredentialActor {
8
+ type: "browser_credential";
9
+ }
10
+ }
@@ -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,3 @@
1
+ export interface BrowserLifecycleApiKeyActor {
2
+ apiKeyId: string;
3
+ }
@@ -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,4 @@
1
+ export interface BrowserLifecycleCredentialActor {
2
+ credentialId: string;
3
+ authorizingApiKeyId: string;
4
+ }
@@ -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,2 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export type BrowserLifecycleEvent = AgentMail.BrowserEnrollmentLifecycleEvent | AgentMail.BrowserConsentLifecycleEvent;
@@ -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,9 @@
1
+ import type * as AgentMail from "../../../index.js";
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,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,7 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface ListBrowserConsentsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.BrowserAuthorizationListLimit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ consents: AgentMail.BrowserConsent[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface ListBrowserCredentialsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.BrowserAuthorizationListLimit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ credentials: AgentMail.BrowserCredential[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface ListBrowserLifecycleEventsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.BrowserAuthorizationListLimit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ events: AgentMail.BrowserLifecycleEvent[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,30 @@
1
1
  export * from "./ApiKey.js";
2
2
  export * from "./ApiKeyId.js";
3
3
  export * from "./ApiKeyPermissions.js";
4
+ export * from "./BrowserAuthorizationListLimit.js";
5
+ export * from "./BrowserConsent.js";
6
+ export * from "./BrowserConsentLifecycleEvent.js";
7
+ export * from "./BrowserConsentLifecycleEventType.js";
8
+ export * from "./BrowserCredential.js";
9
+ export * from "./BrowserCredentialCreator.js";
10
+ export * from "./BrowserEnrollmentAccepted.js";
11
+ export * from "./BrowserEnrollmentLifecycleEvent.js";
12
+ export * from "./BrowserEnrollmentLifecycleEventType.js";
13
+ export * from "./BrowserEnrollmentTransactionJti.js";
14
+ export * from "./BrowserLifecycleActor.js";
15
+ export * from "./BrowserLifecycleApiKeyActor.js";
16
+ export * from "./BrowserLifecycleCredentialActor.js";
17
+ export * from "./BrowserLifecycleEvent.js";
4
18
  export * from "./CreateApiKeyRequest.js";
5
19
  export * from "./CreateApiKeyResponse.js";
20
+ export * from "./CreateBrowserEnrollmentRequest.js";
6
21
  export * from "./CreatedAt.js";
7
22
  export * from "./CreatePublicKeyRequest.js";
8
23
  export * from "./InboxPublicKeyScope.js";
9
24
  export * from "./ListApiKeysResponse.js";
25
+ export * from "./ListBrowserConsentsResponse.js";
26
+ export * from "./ListBrowserCredentialsResponse.js";
27
+ export * from "./ListBrowserLifecycleEventsResponse.js";
10
28
  export * from "./ListPublicKeysResponse.js";
11
29
  export * from "./Name.js";
12
30
  export * from "./OrganizationPublicKeyScope.js";
@@ -17,12 +17,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiKey.js"), exports);
18
18
  __exportStar(require("./ApiKeyId.js"), exports);
19
19
  __exportStar(require("./ApiKeyPermissions.js"), exports);
20
+ __exportStar(require("./BrowserAuthorizationListLimit.js"), exports);
21
+ __exportStar(require("./BrowserConsent.js"), exports);
22
+ __exportStar(require("./BrowserConsentLifecycleEvent.js"), exports);
23
+ __exportStar(require("./BrowserConsentLifecycleEventType.js"), exports);
24
+ __exportStar(require("./BrowserCredential.js"), exports);
25
+ __exportStar(require("./BrowserCredentialCreator.js"), exports);
26
+ __exportStar(require("./BrowserEnrollmentAccepted.js"), exports);
27
+ __exportStar(require("./BrowserEnrollmentLifecycleEvent.js"), exports);
28
+ __exportStar(require("./BrowserEnrollmentLifecycleEventType.js"), exports);
29
+ __exportStar(require("./BrowserEnrollmentTransactionJti.js"), exports);
30
+ __exportStar(require("./BrowserLifecycleActor.js"), exports);
31
+ __exportStar(require("./BrowserLifecycleApiKeyActor.js"), exports);
32
+ __exportStar(require("./BrowserLifecycleCredentialActor.js"), exports);
33
+ __exportStar(require("./BrowserLifecycleEvent.js"), exports);
20
34
  __exportStar(require("./CreateApiKeyRequest.js"), exports);
21
35
  __exportStar(require("./CreateApiKeyResponse.js"), exports);
36
+ __exportStar(require("./CreateBrowserEnrollmentRequest.js"), exports);
22
37
  __exportStar(require("./CreatedAt.js"), exports);
23
38
  __exportStar(require("./CreatePublicKeyRequest.js"), exports);
24
39
  __exportStar(require("./InboxPublicKeyScope.js"), exports);
25
40
  __exportStar(require("./ListApiKeysResponse.js"), exports);
41
+ __exportStar(require("./ListBrowserConsentsResponse.js"), exports);
42
+ __exportStar(require("./ListBrowserCredentialsResponse.js"), exports);
43
+ __exportStar(require("./ListBrowserLifecycleEventsResponse.js"), exports);
26
44
  __exportStar(require("./ListPublicKeysResponse.js"), exports);
27
45
  __exportStar(require("./Name.js"), exports);
28
46
  __exportStar(require("./OrganizationPublicKeyScope.js"), exports);
@@ -1,11 +1,18 @@
1
1
  import type * as AgentMail from "../../../index.js";
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
  }
@@ -453,6 +453,8 @@ class DomainsClient {
453
453
  * @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
454
454
  *
455
455
  * @throws {@link AgentMail.NotFoundError}
456
+ * @throws {@link AgentMail.ConflictError}
457
+ * @throws {@link AgentMail.UnprocessableError}
456
458
  *
457
459
  * @example
458
460
  * await client.domains.verify("domain_id")
@@ -490,6 +492,22 @@ class DomainsClient {
490
492
  skipValidation: true,
491
493
  breadcrumbsPrefix: ["response"],
492
494
  }), _response.rawResponse);
495
+ case 409:
496
+ throw new AgentMail.ConflictError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
497
+ unrecognizedObjectKeys: "passthrough",
498
+ allowUnrecognizedUnionMembers: true,
499
+ allowUnrecognizedEnumValues: true,
500
+ skipValidation: true,
501
+ breadcrumbsPrefix: ["response"],
502
+ }), _response.rawResponse);
503
+ case 422:
504
+ throw new AgentMail.UnprocessableError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
505
+ unrecognizedObjectKeys: "passthrough",
506
+ allowUnrecognizedUnionMembers: true,
507
+ allowUnrecognizedEnumValues: true,
508
+ skipValidation: true,
509
+ breadcrumbsPrefix: ["response"],
510
+ }), _response.rawResponse);
493
511
  default:
494
512
  throw new errors.AgentMailError({
495
513
  statusCode: _response.error.statusCode,
@@ -501,5 +519,87 @@ class DomainsClient {
501
519
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v0/domains/{domain_id}/verify");
502
520
  });
503
521
  }
522
+ /**
523
+ * 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.
524
+ *
525
+ * @param {AgentMail.DomainId} domain_id
526
+ * @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
527
+ *
528
+ * @throws {@link AgentMail.NotFoundError}
529
+ * @throws {@link AgentMail.ConflictError}
530
+ * @throws {@link AgentMail.UnprocessableError}
531
+ *
532
+ * @example
533
+ * await client.domains.getSetupLink("domain_id")
534
+ */
535
+ getSetupLink(domain_id, requestOptions) {
536
+ return core.HttpResponsePromise.fromPromise(this.__getSetupLink(domain_id, requestOptions));
537
+ }
538
+ __getSetupLink(domain_id, requestOptions) {
539
+ return __awaiter(this, void 0, void 0, function* () {
540
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
541
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
542
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
543
+ const _response = yield core.fetcher({
544
+ 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)
545
+ .http, `/v0/domains/${core.url.encodePathParam(serializers.DomainId.jsonOrThrow(domain_id, { omitUndefined: true }))}/setup-link`),
546
+ method: "GET",
547
+ headers: _headers,
548
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
549
+ 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,
550
+ 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,
551
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
552
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
553
+ logging: this._options.logging,
554
+ });
555
+ if (_response.ok) {
556
+ return {
557
+ data: serializers.GetSetupLinkResponse.parseOrThrow(_response.body, {
558
+ unrecognizedObjectKeys: "passthrough",
559
+ allowUnrecognizedUnionMembers: true,
560
+ allowUnrecognizedEnumValues: true,
561
+ skipValidation: true,
562
+ breadcrumbsPrefix: ["response"],
563
+ }),
564
+ rawResponse: _response.rawResponse,
565
+ };
566
+ }
567
+ if (_response.error.reason === "status-code") {
568
+ switch (_response.error.statusCode) {
569
+ case 404:
570
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
571
+ unrecognizedObjectKeys: "passthrough",
572
+ allowUnrecognizedUnionMembers: true,
573
+ allowUnrecognizedEnumValues: true,
574
+ skipValidation: true,
575
+ breadcrumbsPrefix: ["response"],
576
+ }), _response.rawResponse);
577
+ case 409:
578
+ throw new AgentMail.ConflictError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
579
+ unrecognizedObjectKeys: "passthrough",
580
+ allowUnrecognizedUnionMembers: true,
581
+ allowUnrecognizedEnumValues: true,
582
+ skipValidation: true,
583
+ breadcrumbsPrefix: ["response"],
584
+ }), _response.rawResponse);
585
+ case 422:
586
+ throw new AgentMail.UnprocessableError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
587
+ unrecognizedObjectKeys: "passthrough",
588
+ allowUnrecognizedUnionMembers: true,
589
+ allowUnrecognizedEnumValues: true,
590
+ skipValidation: true,
591
+ breadcrumbsPrefix: ["response"],
592
+ }), _response.rawResponse);
593
+ default:
594
+ throw new errors.AgentMailError({
595
+ statusCode: _response.error.statusCode,
596
+ body: _response.error.body,
597
+ rawResponse: _response.rawResponse,
598
+ });
599
+ }
600
+ }
601
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/domains/{domain_id}/setup-link");
602
+ });
603
+ }
504
604
  }
505
605
  exports.DomainsClient = DomainsClient;
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.js";
5
5
  export * from "./DomainItem.js";
6
6
  export * from "./DomainName.js";
7
7
  export * from "./FeedbackEnabled.js";
8
+ export * from "./GetSetupLinkResponse.js";
8
9
  export * from "./ListDomainsResponse.js";
9
10
  export * from "./RecordStatus.js";
10
11
  export * from "./RecordType.js";
@@ -21,6 +21,7 @@ __exportStar(require("./DomainId.js"), exports);
21
21
  __exportStar(require("./DomainItem.js"), exports);
22
22
  __exportStar(require("./DomainName.js"), exports);
23
23
  __exportStar(require("./FeedbackEnabled.js"), exports);
24
+ __exportStar(require("./GetSetupLinkResponse.js"), exports);
24
25
  __exportStar(require("./ListDomainsResponse.js"), exports);
25
26
  __exportStar(require("./RecordStatus.js"), exports);
26
27
  __exportStar(require("./RecordType.js"), exports);
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
3
3
  import * as core from "../../../../core/index.js";
4
4
  import * as AgentMail from "../../../index.js";
5
5
  import { ApiKeysClient } from "../resources/apiKeys/client/Client.js";
6
+ import { BrowserCredentialsClient } from "../resources/browserCredentials/client/Client.js";
6
7
  import { DraftsClient } from "../resources/drafts/client/Client.js";
7
8
  import { EventsClient } from "../resources/events/client/Client.js";
8
9
  import { ListsClient } from "../resources/lists/client/Client.js";
@@ -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;
@@ -53,44 +53,49 @@ const errors = __importStar(require("../../../../errors/index.js"));
53
53
  const serializers = __importStar(require("../../../../serialization/index.js"));
54
54
  const AgentMail = __importStar(require("../../../index.js"));
55
55
  const Client_js_1 = require("../resources/apiKeys/client/Client.js");
56
- const Client_js_2 = require("../resources/drafts/client/Client.js");
57
- const Client_js_3 = require("../resources/events/client/Client.js");
58
- const Client_js_4 = require("../resources/lists/client/Client.js");
59
- const Client_js_5 = require("../resources/messages/client/Client.js");
60
- const Client_js_6 = require("../resources/metrics/client/Client.js");
61
- const Client_js_7 = require("../resources/threads/client/Client.js");
62
- const Client_js_8 = require("../resources/webhooks/client/Client.js");
56
+ const Client_js_2 = require("../resources/browserCredentials/client/Client.js");
57
+ const Client_js_3 = require("../resources/drafts/client/Client.js");
58
+ const Client_js_4 = require("../resources/events/client/Client.js");
59
+ const Client_js_5 = require("../resources/lists/client/Client.js");
60
+ const Client_js_6 = require("../resources/messages/client/Client.js");
61
+ const Client_js_7 = require("../resources/metrics/client/Client.js");
62
+ const Client_js_8 = require("../resources/threads/client/Client.js");
63
+ const Client_js_9 = require("../resources/webhooks/client/Client.js");
63
64
  class InboxesClient {
64
65
  constructor(options = {}) {
65
66
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
66
67
  }
67
68
  get threads() {
68
69
  var _a;
69
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_7.ThreadsClient(this._options)));
70
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_8.ThreadsClient(this._options)));
70
71
  }
71
72
  get messages() {
72
73
  var _a;
73
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_5.MessagesClient(this._options)));
74
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_6.MessagesClient(this._options)));
74
75
  }
75
76
  get drafts() {
76
77
  var _a;
77
- return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_2.DraftsClient(this._options)));
78
+ return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_3.DraftsClient(this._options)));
79
+ }
80
+ get browserCredentials() {
81
+ var _a;
82
+ return ((_a = this._browserCredentials) !== null && _a !== void 0 ? _a : (this._browserCredentials = new Client_js_2.BrowserCredentialsClient(this._options)));
78
83
  }
79
84
  get webhooks() {
80
85
  var _a;
81
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_8.WebhooksClient(this._options)));
86
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_9.WebhooksClient(this._options)));
82
87
  }
83
88
  get lists() {
84
89
  var _a;
85
- return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_4.ListsClient(this._options)));
90
+ return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_5.ListsClient(this._options)));
86
91
  }
87
92
  get metrics() {
88
93
  var _a;
89
- return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_6.MetricsClient(this._options)));
94
+ return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_7.MetricsClient(this._options)));
90
95
  }
91
96
  get events() {
92
97
  var _a;
93
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_js_3.EventsClient(this._options)));
98
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_js_4.EventsClient(this._options)));
94
99
  }
95
100
  get apiKeys() {
96
101
  var _a;
@@ -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
@@ -59,7 +59,7 @@ class ApiKeysClient {
59
59
  /**
60
60
  * **CLI:**
61
61
  * ```bash
62
- * agentmail inboxes:api-keys list --inbox-id <inbox_id>
62
+ * agentmail inboxes api-keys list --inbox-id <inbox_id>
63
63
  * ```
64
64
  *
65
65
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -132,7 +132,7 @@ class ApiKeysClient {
132
132
  /**
133
133
  * **CLI:**
134
134
  * ```bash
135
- * agentmail inboxes:api-keys create --inbox-id <inbox_id> --name "My Key"
135
+ * agentmail inboxes api-keys create --inbox-id <inbox_id> --name "My Key"
136
136
  * ```
137
137
  *
138
138
  * @param {AgentMail.inboxes.InboxId} inbox_id
@@ -215,7 +215,7 @@ class ApiKeysClient {
215
215
  /**
216
216
  * **CLI:**
217
217
  * ```bash
218
- * agentmail inboxes:api-keys delete --inbox-id <inbox_id> --api-key-id <api_key_id>
218
+ * agentmail inboxes api-keys delete --inbox-id <inbox_id> --api-key-id <api_key_id>
219
219
  * ```
220
220
  *
221
221
  * @param {AgentMail.inboxes.InboxId} inbox_id