agentmail 0.5.32 → 0.5.33

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 (212) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -3
  3. package/dist/cjs/Client.js +21 -21
  4. package/dist/cjs/api/resources/accounts/client/Client.d.ts +6 -6
  5. package/dist/cjs/api/resources/accounts/client/Client.js +6 -6
  6. package/dist/cjs/api/resources/accounts/types/Account.d.ts +7 -7
  7. package/dist/cjs/api/resources/accounts/types/UpdateAccountStatus.d.ts +1 -1
  8. package/dist/cjs/api/resources/accounts/types/UpdateAccountStatus.js +1 -1
  9. package/dist/cjs/api/resources/accounts/types/index.d.ts +0 -1
  10. package/dist/cjs/api/resources/accounts/types/index.js +0 -1
  11. package/dist/cjs/api/resources/apiKeys/types/AcceptDisclosure.d.ts +1 -1
  12. package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +2 -0
  13. package/dist/cjs/api/resources/apps/client/Client.d.ts +92 -0
  14. package/dist/cjs/api/resources/{providers → apps}/client/Client.js +67 -51
  15. package/dist/cjs/api/resources/{providers/client/requests/ListProviderAccountsRequest.d.ts → apps/client/requests/ListAppAccountsRequest.d.ts} +1 -1
  16. package/dist/cjs/api/resources/{providers/client/requests/ListProvidersRequest.d.ts → apps/client/requests/ListAppsRequest.d.ts} +1 -1
  17. package/dist/cjs/api/resources/{providers/client/requests/SearchProvidersRequest.d.ts → apps/client/requests/SearchAppsRequest.d.ts} +1 -1
  18. package/dist/cjs/api/resources/apps/client/requests/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/apps/errors/AppSignupLimitError.d.ts +6 -0
  20. package/dist/cjs/api/resources/apps/errors/AppSignupLimitError.js +54 -0
  21. package/dist/cjs/api/resources/apps/errors/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/apps/errors/index.js +17 -0
  23. package/dist/cjs/api/resources/apps/exports.d.ts +2 -0
  24. package/dist/cjs/api/resources/{providers → apps}/exports.js +2 -2
  25. package/dist/cjs/{serialization/resources/providers → api/resources/apps}/index.d.ts +1 -0
  26. package/dist/cjs/{serialization/resources/providers → api/resources/apps}/index.js +1 -0
  27. package/dist/cjs/api/resources/apps/types/App.d.ts +16 -0
  28. package/dist/cjs/api/resources/apps/types/AppId.d.ts +4 -0
  29. package/dist/cjs/api/resources/{providers/types/ConnectProviderBody.d.ts → apps/types/ConnectAppBody.d.ts} +1 -1
  30. package/dist/cjs/api/resources/{providers/types/ListProviderAccountsResponse.d.ts → apps/types/ListAppAccountsResponse.d.ts} +2 -2
  31. package/dist/cjs/api/resources/{providers/types/ListProvidersResponse.d.ts → apps/types/ListAppsResponse.d.ts} +2 -2
  32. package/dist/cjs/api/resources/{providers/types/SearchProvidersResponse.d.ts → apps/types/SearchAppsResponse.d.ts} +2 -2
  33. package/dist/cjs/api/resources/apps/types/index.d.ts +9 -0
  34. package/dist/cjs/{serialization/resources/providers → api/resources/apps}/types/index.js +6 -5
  35. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +3 -1
  36. package/dist/cjs/api/resources/inboxes/client/Client.js +11 -1
  37. package/dist/cjs/api/resources/inboxes/resources/accounts/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/inboxes/resources/accounts/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/index.d.ts +4 -3
  40. package/dist/cjs/api/resources/index.js +5 -4
  41. package/dist/cjs/api/resources/pods/resources/accounts/client/Client.d.ts +1 -1
  42. package/dist/cjs/api/resources/pods/resources/accounts/client/Client.js +1 -1
  43. package/dist/cjs/serialization/resources/accounts/types/Account.d.ts +3 -3
  44. package/dist/cjs/serialization/resources/accounts/types/Account.js +3 -3
  45. package/dist/cjs/serialization/resources/accounts/types/index.d.ts +0 -1
  46. package/dist/cjs/serialization/resources/accounts/types/index.js +0 -1
  47. package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +1 -0
  48. package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +1 -0
  49. package/dist/cjs/serialization/resources/{providers → apps}/client/connect.d.ts +3 -3
  50. package/dist/cjs/serialization/resources/{providers → apps}/client/connect.js +2 -2
  51. package/dist/cjs/serialization/resources/{providers/types/Provider.d.ts → apps/types/App.d.ts} +4 -4
  52. package/dist/cjs/serialization/resources/{providers/types/Provider.js → apps/types/App.js} +4 -4
  53. package/dist/cjs/serialization/resources/{accounts/types/ProviderId.d.ts → apps/types/AppId.d.ts} +2 -2
  54. package/dist/cjs/serialization/resources/{accounts/types/ProviderId.js → apps/types/AppId.js} +2 -2
  55. package/dist/cjs/serialization/resources/{providers/types/ConnectProviderBody.d.ts → apps/types/ConnectAppBody.d.ts} +2 -2
  56. package/dist/cjs/serialization/resources/{providers/types/ConnectProviderBody.js → apps/types/ConnectAppBody.js} +2 -2
  57. package/dist/cjs/serialization/resources/{providers/types/ListProviderAccountsResponse.d.ts → apps/types/ListAppAccountsResponse.d.ts} +4 -4
  58. package/dist/cjs/serialization/resources/{providers/types/ListProviderAccountsResponse.js → apps/types/ListAppAccountsResponse.js} +4 -4
  59. package/dist/cjs/serialization/resources/{providers/types/ListProvidersResponse.d.ts → apps/types/ListAppsResponse.d.ts} +4 -4
  60. package/dist/cjs/serialization/resources/{providers/types/ListProvidersResponse.js → apps/types/ListAppsResponse.js} +4 -4
  61. package/dist/cjs/serialization/resources/{providers/types/SearchProvidersResponse.d.ts → apps/types/SearchAppsResponse.d.ts} +4 -4
  62. package/dist/cjs/serialization/resources/{providers/types/SearchProvidersResponse.js → apps/types/SearchAppsResponse.js} +4 -4
  63. package/dist/cjs/serialization/resources/apps/types/index.d.ts +9 -0
  64. package/dist/cjs/{api/resources/providers → serialization/resources/apps}/types/index.js +6 -5
  65. package/dist/cjs/serialization/resources/index.d.ts +2 -2
  66. package/dist/cjs/serialization/resources/index.js +3 -3
  67. package/dist/cjs/version.d.ts +1 -1
  68. package/dist/cjs/version.js +1 -1
  69. package/dist/esm/BaseClient.mjs +2 -2
  70. package/dist/esm/Client.d.mts +3 -3
  71. package/dist/esm/Client.mjs +5 -5
  72. package/dist/esm/api/resources/accounts/client/Client.d.mts +6 -6
  73. package/dist/esm/api/resources/accounts/client/Client.mjs +6 -6
  74. package/dist/esm/api/resources/accounts/types/Account.d.mts +7 -7
  75. package/dist/esm/api/resources/accounts/types/UpdateAccountStatus.d.mts +1 -1
  76. package/dist/esm/api/resources/accounts/types/UpdateAccountStatus.mjs +1 -1
  77. package/dist/esm/api/resources/accounts/types/index.d.mts +0 -1
  78. package/dist/esm/api/resources/accounts/types/index.mjs +0 -1
  79. package/dist/esm/api/resources/apiKeys/types/AcceptDisclosure.d.mts +1 -1
  80. package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +2 -0
  81. package/dist/esm/api/resources/apps/client/Client.d.mts +92 -0
  82. package/dist/esm/api/resources/{providers → apps}/client/Client.mjs +65 -49
  83. package/dist/esm/api/resources/{providers/client/requests/ListProviderAccountsRequest.d.mts → apps/client/requests/ListAppAccountsRequest.d.mts} +1 -1
  84. package/dist/esm/api/resources/{providers/client/requests/ListProvidersRequest.d.mts → apps/client/requests/ListAppsRequest.d.mts} +1 -1
  85. package/dist/esm/api/resources/{providers/client/requests/SearchProvidersRequest.d.mts → apps/client/requests/SearchAppsRequest.d.mts} +1 -1
  86. package/dist/esm/api/resources/apps/client/requests/index.d.mts +3 -0
  87. package/dist/esm/api/resources/apps/errors/AppSignupLimitError.d.mts +6 -0
  88. package/dist/esm/api/resources/apps/errors/AppSignupLimitError.mjs +17 -0
  89. package/dist/esm/api/resources/apps/errors/index.d.mts +1 -0
  90. package/dist/esm/api/resources/apps/errors/index.mjs +1 -0
  91. package/dist/esm/api/resources/apps/exports.d.mts +2 -0
  92. package/dist/esm/api/resources/{providers → apps}/exports.mjs +1 -1
  93. package/dist/esm/{serialization/resources/providers → api/resources/apps}/index.d.mts +1 -0
  94. package/dist/esm/{serialization/resources/providers → api/resources/apps}/index.mjs +1 -0
  95. package/dist/esm/api/resources/apps/types/App.d.mts +16 -0
  96. package/dist/esm/api/resources/apps/types/AppId.d.mts +4 -0
  97. package/dist/esm/api/resources/{providers/types/ConnectProviderBody.d.mts → apps/types/ConnectAppBody.d.mts} +1 -1
  98. package/dist/esm/api/resources/{providers/types/ListProviderAccountsResponse.d.mts → apps/types/ListAppAccountsResponse.d.mts} +2 -2
  99. package/dist/esm/api/resources/{providers/types/ListProvidersResponse.d.mts → apps/types/ListAppsResponse.d.mts} +2 -2
  100. package/dist/esm/api/resources/{providers/types/SearchProvidersResponse.d.mts → apps/types/SearchAppsResponse.d.mts} +2 -2
  101. package/dist/esm/api/resources/apps/types/index.d.mts +9 -0
  102. package/dist/esm/api/resources/apps/types/index.mjs +9 -0
  103. package/dist/esm/api/resources/inboxes/client/Client.d.mts +3 -1
  104. package/dist/esm/api/resources/inboxes/client/Client.mjs +11 -1
  105. package/dist/esm/api/resources/inboxes/resources/accounts/client/Client.d.mts +1 -1
  106. package/dist/esm/api/resources/inboxes/resources/accounts/client/Client.mjs +1 -1
  107. package/dist/esm/api/resources/index.d.mts +4 -3
  108. package/dist/esm/api/resources/index.mjs +4 -3
  109. package/dist/esm/api/resources/pods/resources/accounts/client/Client.d.mts +1 -1
  110. package/dist/esm/api/resources/pods/resources/accounts/client/Client.mjs +1 -1
  111. package/dist/esm/serialization/resources/accounts/types/Account.d.mts +3 -3
  112. package/dist/esm/serialization/resources/accounts/types/Account.mjs +3 -3
  113. package/dist/esm/serialization/resources/accounts/types/index.d.mts +0 -1
  114. package/dist/esm/serialization/resources/accounts/types/index.mjs +0 -1
  115. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +1 -0
  116. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +1 -0
  117. package/dist/esm/serialization/resources/{providers → apps}/client/connect.d.mts +3 -3
  118. package/dist/esm/serialization/resources/apps/client/connect.mjs +3 -0
  119. package/dist/esm/serialization/resources/{providers/types/Provider.d.mts → apps/types/App.d.mts} +4 -4
  120. package/dist/esm/serialization/resources/{providers/types/Provider.mjs → apps/types/App.mjs} +3 -3
  121. package/dist/esm/serialization/resources/{accounts/types/ProviderId.d.mts → apps/types/AppId.d.mts} +2 -2
  122. package/dist/esm/serialization/resources/{accounts/types/ProviderId.mjs → apps/types/AppId.mjs} +1 -1
  123. package/dist/esm/serialization/resources/{providers/types/ConnectProviderBody.d.mts → apps/types/ConnectAppBody.d.mts} +2 -2
  124. package/dist/esm/serialization/resources/{providers/types/ConnectProviderBody.mjs → apps/types/ConnectAppBody.mjs} +1 -1
  125. package/dist/esm/serialization/resources/{providers/types/ListProviderAccountsResponse.d.mts → apps/types/ListAppAccountsResponse.d.mts} +4 -4
  126. package/dist/esm/serialization/resources/{providers/types/ListProviderAccountsResponse.mjs → apps/types/ListAppAccountsResponse.mjs} +3 -3
  127. package/dist/esm/serialization/resources/{providers/types/ListProvidersResponse.d.mts → apps/types/ListAppsResponse.d.mts} +4 -4
  128. package/dist/esm/serialization/resources/{providers/types/ListProvidersResponse.mjs → apps/types/ListAppsResponse.mjs} +3 -3
  129. package/dist/esm/serialization/resources/{providers/types/SearchProvidersResponse.d.mts → apps/types/SearchAppsResponse.d.mts} +4 -4
  130. package/dist/esm/serialization/resources/{providers/types/SearchProvidersResponse.mjs → apps/types/SearchAppsResponse.mjs} +3 -3
  131. package/dist/esm/serialization/resources/apps/types/index.d.mts +9 -0
  132. package/dist/esm/serialization/resources/apps/types/index.mjs +9 -0
  133. package/dist/esm/serialization/resources/index.d.mts +2 -2
  134. package/dist/esm/serialization/resources/index.mjs +2 -2
  135. package/dist/esm/version.d.mts +1 -1
  136. package/dist/esm/version.mjs +1 -1
  137. package/dist/llms.txt +2 -1
  138. package/package.json +12 -12
  139. package/reference.md +1227 -1207
  140. package/dist/cjs/api/resources/accounts/types/ProviderId.d.ts +0 -4
  141. package/dist/cjs/api/resources/providers/client/Client.d.ts +0 -84
  142. package/dist/cjs/api/resources/providers/client/requests/index.d.ts +0 -3
  143. package/dist/cjs/api/resources/providers/exports.d.ts +0 -2
  144. package/dist/cjs/api/resources/providers/types/Provider.d.ts +0 -16
  145. package/dist/cjs/api/resources/providers/types/index.d.ts +0 -8
  146. package/dist/cjs/serialization/resources/providers/types/index.d.ts +0 -8
  147. package/dist/esm/api/resources/accounts/types/ProviderId.d.mts +0 -4
  148. package/dist/esm/api/resources/providers/client/Client.d.mts +0 -84
  149. package/dist/esm/api/resources/providers/client/requests/index.d.mts +0 -3
  150. package/dist/esm/api/resources/providers/exports.d.mts +0 -2
  151. package/dist/esm/api/resources/providers/types/Provider.d.mts +0 -16
  152. package/dist/esm/api/resources/providers/types/index.d.mts +0 -8
  153. package/dist/esm/api/resources/providers/types/index.mjs +0 -8
  154. package/dist/esm/serialization/resources/providers/client/connect.mjs +0 -3
  155. package/dist/esm/serialization/resources/providers/types/index.d.mts +0 -8
  156. package/dist/esm/serialization/resources/providers/types/index.mjs +0 -8
  157. /package/dist/cjs/api/resources/{providers → apps}/client/index.d.ts +0 -0
  158. /package/dist/cjs/api/resources/{providers → apps}/client/index.js +0 -0
  159. /package/dist/cjs/api/resources/{accounts/types/ProviderId.js → apps/client/requests/ListAppAccountsRequest.js} +0 -0
  160. /package/dist/cjs/api/resources/{providers/client/requests/ListProviderAccountsRequest.js → apps/client/requests/ListAppsRequest.js} +0 -0
  161. /package/dist/cjs/api/resources/{providers/client/requests/ListProvidersRequest.js → apps/client/requests/SearchAppsRequest.js} +0 -0
  162. /package/dist/cjs/api/resources/{providers → apps}/client/requests/index.js +0 -0
  163. /package/dist/cjs/api/resources/{providers/client/requests/SearchProvidersRequest.js → apps/types/App.js} +0 -0
  164. /package/dist/cjs/api/resources/{providers/types/ConnectAccepted.js → apps/types/AppId.js} +0 -0
  165. /package/dist/cjs/api/resources/{providers → apps}/types/ConnectAccepted.d.ts +0 -0
  166. /package/dist/cjs/api/resources/{providers/types/ConnectInboxId.js → apps/types/ConnectAccepted.js} +0 -0
  167. /package/dist/cjs/api/resources/{providers/types/ConnectProviderBody.js → apps/types/ConnectAppBody.js} +0 -0
  168. /package/dist/cjs/api/resources/{providers → apps}/types/ConnectInboxId.d.ts +0 -0
  169. /package/dist/cjs/api/resources/{providers/types/ListProviderAccountsResponse.js → apps/types/ConnectInboxId.js} +0 -0
  170. /package/dist/cjs/api/resources/{providers/types/ListProvidersResponse.js → apps/types/ListAppAccountsResponse.js} +0 -0
  171. /package/dist/cjs/api/resources/{providers/types/MagicUrl.js → apps/types/ListAppsResponse.js} +0 -0
  172. /package/dist/cjs/api/resources/{providers → apps}/types/MagicUrl.d.ts +0 -0
  173. /package/dist/cjs/api/resources/{providers/types/Provider.js → apps/types/MagicUrl.js} +0 -0
  174. /package/dist/cjs/api/resources/{providers/types/SearchProvidersResponse.js → apps/types/SearchAppsResponse.js} +0 -0
  175. /package/dist/cjs/serialization/resources/{providers → apps}/client/index.d.ts +0 -0
  176. /package/dist/cjs/serialization/resources/{providers → apps}/client/index.js +0 -0
  177. /package/dist/cjs/{api/resources/providers → serialization/resources/apps}/index.d.ts +0 -0
  178. /package/dist/cjs/{api/resources/providers → serialization/resources/apps}/index.js +0 -0
  179. /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectAccepted.d.ts +0 -0
  180. /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectAccepted.js +0 -0
  181. /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectInboxId.d.ts +0 -0
  182. /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectInboxId.js +0 -0
  183. /package/dist/cjs/serialization/resources/{providers → apps}/types/MagicUrl.d.ts +0 -0
  184. /package/dist/cjs/serialization/resources/{providers → apps}/types/MagicUrl.js +0 -0
  185. /package/dist/esm/api/resources/{providers → apps}/client/index.d.mts +0 -0
  186. /package/dist/esm/api/resources/{providers → apps}/client/index.mjs +0 -0
  187. /package/dist/esm/api/resources/{accounts/types/ProviderId.mjs → apps/client/requests/ListAppAccountsRequest.mjs} +0 -0
  188. /package/dist/esm/api/resources/{providers/client/requests/ListProviderAccountsRequest.mjs → apps/client/requests/ListAppsRequest.mjs} +0 -0
  189. /package/dist/esm/api/resources/{providers/client/requests/ListProvidersRequest.mjs → apps/client/requests/SearchAppsRequest.mjs} +0 -0
  190. /package/dist/esm/api/resources/{providers → apps}/client/requests/index.mjs +0 -0
  191. /package/dist/esm/api/resources/{providers/client/requests/SearchProvidersRequest.mjs → apps/types/App.mjs} +0 -0
  192. /package/dist/esm/api/resources/{providers/types/ConnectAccepted.mjs → apps/types/AppId.mjs} +0 -0
  193. /package/dist/esm/api/resources/{providers → apps}/types/ConnectAccepted.d.mts +0 -0
  194. /package/dist/esm/api/resources/{providers/types/ConnectInboxId.mjs → apps/types/ConnectAccepted.mjs} +0 -0
  195. /package/dist/esm/api/resources/{providers/types/ConnectProviderBody.mjs → apps/types/ConnectAppBody.mjs} +0 -0
  196. /package/dist/esm/api/resources/{providers → apps}/types/ConnectInboxId.d.mts +0 -0
  197. /package/dist/esm/api/resources/{providers/types/ListProviderAccountsResponse.mjs → apps/types/ConnectInboxId.mjs} +0 -0
  198. /package/dist/esm/api/resources/{providers/types/ListProvidersResponse.mjs → apps/types/ListAppAccountsResponse.mjs} +0 -0
  199. /package/dist/esm/api/resources/{providers/types/MagicUrl.mjs → apps/types/ListAppsResponse.mjs} +0 -0
  200. /package/dist/esm/api/resources/{providers → apps}/types/MagicUrl.d.mts +0 -0
  201. /package/dist/esm/api/resources/{providers/types/Provider.mjs → apps/types/MagicUrl.mjs} +0 -0
  202. /package/dist/esm/api/resources/{providers/types/SearchProvidersResponse.mjs → apps/types/SearchAppsResponse.mjs} +0 -0
  203. /package/dist/esm/serialization/resources/{providers → apps}/client/index.d.mts +0 -0
  204. /package/dist/esm/serialization/resources/{providers → apps}/client/index.mjs +0 -0
  205. /package/dist/esm/{api/resources/providers → serialization/resources/apps}/index.d.mts +0 -0
  206. /package/dist/esm/{api/resources/providers → serialization/resources/apps}/index.mjs +0 -0
  207. /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectAccepted.d.mts +0 -0
  208. /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectAccepted.mjs +0 -0
  209. /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectInboxId.d.mts +0 -0
  210. /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectInboxId.mjs +0 -0
  211. /package/dist/esm/serialization/resources/{providers → apps}/types/MagicUrl.d.mts +0 -0
  212. /package/dist/esm/serialization/resources/{providers → apps}/types/MagicUrl.mjs +0 -0
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentmail",
46
- "X-Fern-SDK-Version": "0.5.32",
47
- "User-Agent": "agentmail/0.5.32",
46
+ "X-Fern-SDK-Version": "0.5.33",
47
+ "User-Agent": "agentmail/0.5.33",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,6 +1,7 @@
1
1
  import { AccountsClient } from "./api/resources/accounts/client/Client.js";
2
2
  import { AgentClient } from "./api/resources/agent/client/Client.js";
3
3
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
4
+ import { AppsClient } from "./api/resources/apps/client/Client.js";
4
5
  import { AuthClient } from "./api/resources/auth/client/Client.js";
5
6
  import { DomainsClient } from "./api/resources/domains/client/Client.js";
6
7
  import { DraftsClient } from "./api/resources/drafts/client/Client.js";
@@ -9,7 +10,6 @@ import { ListsClient } from "./api/resources/lists/client/Client.js";
9
10
  import { MetricsClient } from "./api/resources/metrics/client/Client.js";
10
11
  import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
11
12
  import { PodsClient } from "./api/resources/pods/client/Client.js";
12
- import { ProvidersClient } from "./api/resources/providers/client/Client.js";
13
13
  import { ThreadsClient } from "./api/resources/threads/client/Client.js";
14
14
  import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
15
15
  import { WebsocketsClient } from "./api/resources/websockets/client/Client.js";
@@ -29,13 +29,13 @@ export declare class AgentMailClient {
29
29
  protected _accounts: AccountsClient | undefined;
30
30
  protected _agent: AgentClient | undefined;
31
31
  protected _apiKeys: ApiKeysClient | undefined;
32
+ protected _apps: AppsClient | undefined;
32
33
  protected _auth: AuthClient | undefined;
33
34
  protected _domains: DomainsClient | undefined;
34
35
  protected _drafts: DraftsClient | undefined;
35
36
  protected _lists: ListsClient | undefined;
36
37
  protected _metrics: MetricsClient | undefined;
37
38
  protected _organizations: OrganizationsClient | undefined;
38
- protected _providers: ProvidersClient | undefined;
39
39
  protected _threads: ThreadsClient | undefined;
40
40
  protected _websockets: WebsocketsClient | undefined;
41
41
  constructor(options?: AgentMailClient.Options);
@@ -45,13 +45,13 @@ export declare class AgentMailClient {
45
45
  get accounts(): AccountsClient;
46
46
  get agent(): AgentClient;
47
47
  get apiKeys(): ApiKeysClient;
48
+ get apps(): AppsClient;
48
49
  get auth(): AuthClient;
49
50
  get domains(): DomainsClient;
50
51
  get drafts(): DraftsClient;
51
52
  get lists(): ListsClient;
52
53
  get metrics(): MetricsClient;
53
54
  get organizations(): OrganizationsClient;
54
- get providers(): ProvidersClient;
55
55
  get threads(): ThreadsClient;
56
56
  get websockets(): WebsocketsClient;
57
57
  /**
@@ -47,15 +47,15 @@ exports.AgentMailClient = void 0;
47
47
  const Client_js_1 = require("./api/resources/accounts/client/Client.js");
48
48
  const Client_js_2 = require("./api/resources/agent/client/Client.js");
49
49
  const Client_js_3 = require("./api/resources/apiKeys/client/Client.js");
50
- const Client_js_4 = require("./api/resources/auth/client/Client.js");
51
- const Client_js_5 = require("./api/resources/domains/client/Client.js");
52
- const Client_js_6 = require("./api/resources/drafts/client/Client.js");
53
- const Client_js_7 = require("./api/resources/inboxes/client/Client.js");
54
- const Client_js_8 = require("./api/resources/lists/client/Client.js");
55
- const Client_js_9 = require("./api/resources/metrics/client/Client.js");
56
- const Client_js_10 = require("./api/resources/organizations/client/Client.js");
57
- const Client_js_11 = require("./api/resources/pods/client/Client.js");
58
- const Client_js_12 = require("./api/resources/providers/client/Client.js");
50
+ const Client_js_4 = require("./api/resources/apps/client/Client.js");
51
+ const Client_js_5 = require("./api/resources/auth/client/Client.js");
52
+ const Client_js_6 = require("./api/resources/domains/client/Client.js");
53
+ const Client_js_7 = require("./api/resources/drafts/client/Client.js");
54
+ const Client_js_8 = require("./api/resources/inboxes/client/Client.js");
55
+ const Client_js_9 = require("./api/resources/lists/client/Client.js");
56
+ const Client_js_10 = require("./api/resources/metrics/client/Client.js");
57
+ const Client_js_11 = require("./api/resources/organizations/client/Client.js");
58
+ const Client_js_12 = require("./api/resources/pods/client/Client.js");
59
59
  const Client_js_13 = require("./api/resources/threads/client/Client.js");
60
60
  const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
61
61
  const Client_js_15 = require("./api/resources/websockets/client/Client.js");
@@ -68,11 +68,11 @@ class AgentMailClient {
68
68
  }
69
69
  get inboxes() {
70
70
  var _a;
71
- return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_7.InboxesClient(this._options)));
71
+ return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_8.InboxesClient(this._options)));
72
72
  }
73
73
  get pods() {
74
74
  var _a;
75
- return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_11.PodsClient(this._options)));
75
+ return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_12.PodsClient(this._options)));
76
76
  }
77
77
  get webhooks() {
78
78
  var _a;
@@ -90,33 +90,33 @@ class AgentMailClient {
90
90
  var _a;
91
91
  return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_3.ApiKeysClient(this._options)));
92
92
  }
93
+ get apps() {
94
+ var _a;
95
+ return ((_a = this._apps) !== null && _a !== void 0 ? _a : (this._apps = new Client_js_4.AppsClient(this._options)));
96
+ }
93
97
  get auth() {
94
98
  var _a;
95
- return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_4.AuthClient(this._options)));
99
+ return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_5.AuthClient(this._options)));
96
100
  }
97
101
  get domains() {
98
102
  var _a;
99
- return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_5.DomainsClient(this._options)));
103
+ return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_6.DomainsClient(this._options)));
100
104
  }
101
105
  get drafts() {
102
106
  var _a;
103
- return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_6.DraftsClient(this._options)));
107
+ return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_7.DraftsClient(this._options)));
104
108
  }
105
109
  get lists() {
106
110
  var _a;
107
- return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_8.ListsClient(this._options)));
111
+ return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_9.ListsClient(this._options)));
108
112
  }
109
113
  get metrics() {
110
114
  var _a;
111
- return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_9.MetricsClient(this._options)));
115
+ return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_10.MetricsClient(this._options)));
112
116
  }
113
117
  get organizations() {
114
118
  var _a;
115
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_10.OrganizationsClient(this._options)));
116
- }
117
- get providers() {
118
- var _a;
119
- return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_js_12.ProvidersClient(this._options)));
119
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_11.OrganizationsClient(this._options)));
120
120
  }
121
121
  get threads() {
122
122
  var _a;
@@ -11,7 +11,7 @@ export declare class AccountsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AccountsClient.Options>;
12
12
  constructor(options?: AccountsClient.Options);
13
13
  /**
14
- * Lists accounts across all providers, scoped to the API key: an
14
+ * Lists accounts across all apps, scoped to the API key: an
15
15
  * organization key sees every account, a pod key its pod's, an inbox key
16
16
  * its inbox's. Requires `inbox_read`.
17
17
  *
@@ -41,16 +41,16 @@ export declare class AccountsClient {
41
41
  private __get;
42
42
  /**
43
43
  * Updates one account. Set `status` to `disabled` to stop the inbox from
44
- * signing in at the provider again, or to `enabled` to re-enable it.
44
+ * signing in at the app again, or to `enabled` to re-enable it.
45
45
  * Idempotent: disabling an already disabled account keeps its original
46
46
  * `disabled_at`, and enabling an enabled account is a no-op.
47
47
  *
48
48
  * Find the `account_id` with List Accounts. An account exists only after an
49
- * inbox's first sign-in at a provider, so it cannot be disabled in advance.
50
- * A disable applies to that inbox at that provider whichever sign-in key is
51
- * used: the provider's next authorization ends in `access_denied`, and a code
49
+ * inbox's first sign-in at an app, so it cannot be disabled in advance.
50
+ * A disable applies to that inbox at that app whichever sign-in key is
51
+ * used: the app's next authorization ends in `access_denied`, and a code
52
52
  * issued earlier is refused with `invalid_grant`. Access tokens already
53
- * issued stay valid until they expire, and the provider's own session is
53
+ * issued stay valid until they expire, and the app's own session is
54
54
  * unaffected.
55
55
  *
56
56
  * Requires `account_update`, which sign-in keys (`type: public_key`) cannot
@@ -57,7 +57,7 @@ class AccountsClient {
57
57
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
- * Lists accounts across all providers, scoped to the API key: an
60
+ * Lists accounts across all apps, scoped to the API key: an
61
61
  * organization key sees every account, a pod key its pod's, an inbox key
62
62
  * its inbox's. Requires `inbox_read`.
63
63
  *
@@ -195,16 +195,16 @@ class AccountsClient {
195
195
  }
196
196
  /**
197
197
  * Updates one account. Set `status` to `disabled` to stop the inbox from
198
- * signing in at the provider again, or to `enabled` to re-enable it.
198
+ * signing in at the app again, or to `enabled` to re-enable it.
199
199
  * Idempotent: disabling an already disabled account keeps its original
200
200
  * `disabled_at`, and enabling an enabled account is a no-op.
201
201
  *
202
202
  * Find the `account_id` with List Accounts. An account exists only after an
203
- * inbox's first sign-in at a provider, so it cannot be disabled in advance.
204
- * A disable applies to that inbox at that provider whichever sign-in key is
205
- * used: the provider's next authorization ends in `access_denied`, and a code
203
+ * inbox's first sign-in at an app, so it cannot be disabled in advance.
204
+ * A disable applies to that inbox at that app whichever sign-in key is
205
+ * used: the app's next authorization ends in `access_denied`, and a code
206
206
  * issued earlier is refused with `invalid_grant`. Access tokens already
207
- * issued stay valid until they expire, and the provider's own session is
207
+ * issued stay valid until they expire, and the app's own session is
208
208
  * unaffected.
209
209
  *
210
210
  * Requires `account_update`, which sign-in keys (`type: public_key`) cannot
@@ -1,20 +1,20 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  /**
3
- * One inbox signed in at one provider.
3
+ * One inbox signed in at one app.
4
4
  */
5
5
  export interface Account {
6
6
  accountId: AgentMail.AccountId;
7
- providerId: AgentMail.ProviderId;
8
- /** Display name of provider. */
9
- providerName?: string;
7
+ appId: AgentMail.AppId;
8
+ /** Display name of app. */
9
+ appName?: string;
10
10
  inboxId: AgentMail.inboxes.InboxId;
11
11
  podId: AgentMail.pods.PodId;
12
12
  organizationId: AgentMail.OrganizationId;
13
- /** Time of first sign-in at provider. */
13
+ /** Time of first sign-in at app. */
14
14
  firstSignedInAt: Date;
15
- /** Time of most recent sign-in at provider. */
15
+ /** Time of most recent sign-in at app. */
16
16
  lastSignedInAt: Date;
17
- /** Number of sign-ins at provider. */
17
+ /** Number of sign-ins at app. */
18
18
  signInCount: number;
19
19
  /** Present only while the account is disabled. Absent means the inbox may sign in. */
20
20
  status?: AgentMail.AccountStatus;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Status to set. `disabled` stops the inbox from signing in at the
3
- * provider; `enabled` re-enables it. An enabled account reads back with no
3
+ * app; `enabled` re-enables it. An enabled account reads back with no
4
4
  * `status`.
5
5
  */
6
6
  export declare const UpdateAccountStatus: {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateAccountStatus = void 0;
5
5
  /**
6
6
  * Status to set. `disabled` stops the inbox from signing in at the
7
- * provider; `enabled` re-enables it. An enabled account reads back with no
7
+ * app; `enabled` re-enables it. An enabled account reads back with no
8
8
  * `status`.
9
9
  */
10
10
  exports.UpdateAccountStatus = {
@@ -2,6 +2,5 @@ export * from "./Account.js";
2
2
  export * from "./AccountId.js";
3
3
  export * from "./AccountStatus.js";
4
4
  export * from "./ListAccountsResponse.js";
5
- export * from "./ProviderId.js";
6
5
  export * from "./UpdateAccountRequest.js";
7
6
  export * from "./UpdateAccountStatus.js";
@@ -18,6 +18,5 @@ __exportStar(require("./Account.js"), exports);
18
18
  __exportStar(require("./AccountId.js"), exports);
19
19
  __exportStar(require("./AccountStatus.js"), exports);
20
20
  __exportStar(require("./ListAccountsResponse.js"), exports);
21
- __exportStar(require("./ProviderId.js"), exports);
22
21
  __exportStar(require("./UpdateAccountRequest.js"), exports);
23
22
  __exportStar(require("./UpdateAccountStatus.js"), exports);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Accept the provider's disclosure on the agent's behalf, skipping the
2
+ * Accept the app's disclosure on the agent's behalf, skipping the
3
3
  * first-use disclosure page. Requires `provider_share_owner` when owner
4
4
  * scopes are involved.
5
5
  */
@@ -12,6 +12,8 @@ export interface ApiKeyPermissions {
12
12
  inboxDelete?: boolean;
13
13
  /** Read messages. Also required to read threads. */
14
14
  messageRead?: boolean;
15
+ /** Reply and reply-all when the request is signed with a registered public key. Bearer keys reply with `message_send`. */
16
+ messageReply?: boolean;
15
17
  /** Send messages. */
16
18
  messageSend?: boolean;
17
19
  /** Update message labels. Also required to update threads. */
@@ -0,0 +1,92 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as AgentMail from "../../../index.js";
5
+ export declare namespace AppsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class AppsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<AppsClient.Options>;
12
+ constructor(options?: AppsClient.Options);
13
+ /**
14
+ * Lists apps, most popular first.
15
+ *
16
+ * @param {AgentMail.ListAppsRequest} request
17
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link AgentMail.ValidationError}
20
+ *
21
+ * @example
22
+ * await client.apps.list()
23
+ */
24
+ list(request?: AgentMail.ListAppsRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListAppsResponse>;
25
+ private __list;
26
+ /**
27
+ * Searches apps by name prefix.
28
+ *
29
+ * @param {AgentMail.SearchAppsRequest} request
30
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @throws {@link AgentMail.ValidationError}
33
+ *
34
+ * @example
35
+ * await client.apps.search({
36
+ * q: "q"
37
+ * })
38
+ */
39
+ search(request: AgentMail.SearchAppsRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.SearchAppsResponse>;
40
+ private __search;
41
+ /**
42
+ * Gets one app by ID. An app in the catalog returns its full entry.
43
+ * A registered app that the catalog does not list returns its ID and
44
+ * name only, without `updated_at`, so anyone holding its ID can still look
45
+ * it up. List Apps and Search Apps show catalog entries only.
46
+ *
47
+ * @param {AgentMail.AppId} app_id
48
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
49
+ *
50
+ * @throws {@link AgentMail.NotFoundError}
51
+ *
52
+ * @example
53
+ * await client.apps.get("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
54
+ */
55
+ get(app_id: AgentMail.AppId, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.App>;
56
+ private __get;
57
+ /**
58
+ * Lists accounts at one app, most recent sign-in first.
59
+ *
60
+ * @param {AgentMail.AppId} app_id
61
+ * @param {AgentMail.ListAppAccountsRequest} request
62
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link AgentMail.ValidationError}
65
+ *
66
+ * @example
67
+ * await client.apps.listAccounts("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
68
+ */
69
+ listAccounts(app_id: AgentMail.AppId, request?: AgentMail.ListAppAccountsRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListAppAccountsResponse>;
70
+ private __listAccounts;
71
+ /**
72
+ * Starts signing an inbox in to an app. Returns a single-use `magic_url`,
73
+ * valid for five minutes, to open in the client that will hold the sign-in;
74
+ * the client enrolls as the inbox and continues to the app.
75
+ * A `404` names the missing resource: `App` or `Inbox`.
76
+ * A `403` `AppSignupLimitError` means the app accepts no more sign-ups from
77
+ * your organization; sign in with an inbox that already has an account there.
78
+ *
79
+ * @param {AgentMail.AppId} app_id
80
+ * @param {AgentMail.ConnectAppBody} request
81
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
82
+ *
83
+ * @throws {@link AgentMail.ValidationError}
84
+ * @throws {@link AgentMail.NotFoundError}
85
+ * @throws {@link AgentMail.AppSignupLimitError}
86
+ *
87
+ * @example
88
+ * await client.apps.connect("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", undefined)
89
+ */
90
+ connect(app_id: AgentMail.AppId, request?: AgentMail.ConnectAppBody, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ConnectAccepted>;
91
+ private __connect;
92
+ }