agentmail 0.5.21 → 0.5.23

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 (225) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +6 -0
  3. package/dist/cjs/Client.js +36 -26
  4. package/dist/cjs/api/resources/accounts/client/Client.d.ts +37 -0
  5. package/dist/cjs/api/resources/accounts/client/Client.js +192 -0
  6. package/dist/cjs/api/resources/accounts/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/accounts/client/index.js +17 -0
  8. package/dist/cjs/api/resources/accounts/client/requests/ListAccountsRequest.d.ts +10 -0
  9. package/dist/cjs/api/resources/accounts/client/requests/ListAccountsRequest.js +3 -0
  10. package/dist/cjs/api/resources/accounts/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/accounts/client/requests/index.js +2 -0
  12. package/dist/cjs/api/resources/accounts/exports.d.ts +2 -0
  13. package/dist/cjs/api/resources/accounts/exports.js +21 -0
  14. package/dist/cjs/api/resources/accounts/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/accounts/index.js +18 -0
  16. package/dist/cjs/api/resources/accounts/types/Account.d.ts +19 -0
  17. package/dist/cjs/api/resources/accounts/types/Account.js +3 -0
  18. package/dist/cjs/api/resources/accounts/types/AccountId.d.ts +4 -0
  19. package/dist/cjs/api/resources/accounts/types/AccountId.js +3 -0
  20. package/dist/cjs/api/resources/accounts/types/ListAccountsResponse.d.ts +7 -0
  21. package/dist/cjs/api/resources/accounts/types/ListAccountsResponse.js +3 -0
  22. package/dist/cjs/api/resources/accounts/types/ProviderId.d.ts +4 -0
  23. package/dist/cjs/api/resources/accounts/types/ProviderId.js +3 -0
  24. package/dist/cjs/api/resources/accounts/types/index.d.ts +4 -0
  25. package/dist/cjs/api/resources/accounts/types/index.js +20 -0
  26. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +20 -0
  27. package/dist/cjs/api/resources/inboxes/client/Client.js +77 -0
  28. package/dist/cjs/api/resources/inboxes/client/requests/SearchInboxesRequest.d.ts +13 -0
  29. package/dist/cjs/api/resources/inboxes/client/requests/SearchInboxesRequest.js +3 -0
  30. package/dist/cjs/api/resources/inboxes/client/requests/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/inboxes/types/SearchInboxesResponse.d.ts +8 -0
  32. package/dist/cjs/api/resources/inboxes/types/SearchInboxesResponse.js +3 -0
  33. package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
  35. package/dist/cjs/api/resources/index.d.ts +6 -0
  36. package/dist/cjs/api/resources/index.js +10 -4
  37. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +22 -0
  38. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +87 -0
  39. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.d.ts +13 -0
  40. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.js +3 -0
  41. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/providers/client/Client.d.ts +86 -0
  43. package/dist/cjs/api/resources/providers/client/Client.js +423 -0
  44. package/dist/cjs/api/resources/providers/client/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/providers/client/index.js +17 -0
  46. package/dist/cjs/api/resources/providers/client/requests/ListProviderAccountsRequest.d.ts +9 -0
  47. package/dist/cjs/api/resources/providers/client/requests/ListProviderAccountsRequest.js +3 -0
  48. package/dist/cjs/api/resources/providers/client/requests/ListProvidersRequest.d.ts +9 -0
  49. package/dist/cjs/api/resources/providers/client/requests/ListProvidersRequest.js +3 -0
  50. package/dist/cjs/api/resources/providers/client/requests/SearchProvidersRequest.d.ts +12 -0
  51. package/dist/cjs/api/resources/providers/client/requests/SearchProvidersRequest.js +3 -0
  52. package/dist/cjs/api/resources/providers/client/requests/index.d.ts +3 -0
  53. package/dist/cjs/api/resources/providers/client/requests/index.js +2 -0
  54. package/dist/cjs/api/resources/providers/exports.d.ts +2 -0
  55. package/dist/cjs/api/resources/providers/exports.js +21 -0
  56. package/dist/cjs/api/resources/providers/index.d.ts +2 -0
  57. package/dist/cjs/api/resources/providers/index.js +18 -0
  58. package/dist/cjs/api/resources/providers/types/ConnectProviderAccepted.d.ts +8 -0
  59. package/dist/cjs/api/resources/providers/types/ConnectProviderAccepted.js +3 -0
  60. package/dist/cjs/api/resources/providers/types/ConnectProviderBody.d.ts +7 -0
  61. package/dist/cjs/api/resources/providers/types/ConnectProviderBody.js +3 -0
  62. package/dist/cjs/api/resources/providers/types/ListProviderAccountsResponse.d.ts +8 -0
  63. package/dist/cjs/api/resources/providers/types/ListProviderAccountsResponse.js +3 -0
  64. package/dist/cjs/api/resources/providers/types/ListProvidersResponse.d.ts +7 -0
  65. package/dist/cjs/api/resources/providers/types/ListProvidersResponse.js +3 -0
  66. package/dist/cjs/api/resources/providers/types/Provider.d.ts +14 -0
  67. package/dist/cjs/api/resources/providers/types/Provider.js +3 -0
  68. package/dist/cjs/api/resources/providers/types/SearchProvidersResponse.d.ts +6 -0
  69. package/dist/cjs/api/resources/providers/types/SearchProvidersResponse.js +3 -0
  70. package/dist/cjs/api/resources/providers/types/index.d.ts +6 -0
  71. package/dist/cjs/api/resources/providers/types/index.js +22 -0
  72. package/dist/cjs/serialization/resources/accounts/index.d.ts +1 -0
  73. package/dist/cjs/serialization/resources/accounts/index.js +17 -0
  74. package/dist/cjs/serialization/resources/accounts/types/Account.d.ts +22 -0
  75. package/dist/cjs/serialization/resources/accounts/types/Account.js +54 -0
  76. package/dist/cjs/serialization/resources/accounts/types/AccountId.d.ts +7 -0
  77. package/dist/cjs/serialization/resources/accounts/types/AccountId.js +39 -0
  78. package/dist/cjs/serialization/resources/accounts/types/ListAccountsResponse.d.ts +16 -0
  79. package/dist/cjs/serialization/resources/accounts/types/ListAccountsResponse.js +48 -0
  80. package/dist/cjs/serialization/resources/accounts/types/ProviderId.d.ts +7 -0
  81. package/dist/cjs/serialization/resources/accounts/types/ProviderId.js +39 -0
  82. package/dist/cjs/serialization/resources/accounts/types/index.d.ts +4 -0
  83. package/dist/cjs/serialization/resources/accounts/types/index.js +20 -0
  84. package/dist/cjs/serialization/resources/inboxes/types/SearchInboxesResponse.d.ts +16 -0
  85. package/dist/cjs/serialization/resources/inboxes/types/SearchInboxesResponse.js +48 -0
  86. package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
  87. package/dist/cjs/serialization/resources/inboxes/types/index.js +1 -0
  88. package/dist/cjs/serialization/resources/index.d.ts +4 -0
  89. package/dist/cjs/serialization/resources/index.js +5 -1
  90. package/dist/cjs/serialization/resources/providers/client/connect.d.ts +8 -0
  91. package/dist/cjs/serialization/resources/providers/client/connect.js +6 -0
  92. package/dist/cjs/serialization/resources/providers/client/index.d.ts +1 -0
  93. package/dist/cjs/serialization/resources/providers/client/index.js +37 -0
  94. package/dist/cjs/serialization/resources/providers/index.d.ts +2 -0
  95. package/dist/cjs/serialization/resources/providers/index.js +18 -0
  96. package/dist/cjs/serialization/resources/providers/types/ConnectProviderAccepted.d.ts +11 -0
  97. package/dist/cjs/serialization/resources/providers/types/ConnectProviderAccepted.js +43 -0
  98. package/dist/cjs/serialization/resources/providers/types/ConnectProviderBody.d.ts +11 -0
  99. package/dist/cjs/serialization/resources/providers/types/ConnectProviderBody.js +43 -0
  100. package/dist/cjs/serialization/resources/providers/types/ListProviderAccountsResponse.d.ts +18 -0
  101. package/dist/cjs/serialization/resources/providers/types/ListProviderAccountsResponse.js +50 -0
  102. package/dist/cjs/serialization/resources/providers/types/ListProvidersResponse.d.ts +16 -0
  103. package/dist/cjs/serialization/resources/providers/types/ListProvidersResponse.js +48 -0
  104. package/dist/cjs/serialization/resources/providers/types/Provider.d.ts +16 -0
  105. package/dist/cjs/serialization/resources/providers/types/Provider.js +48 -0
  106. package/dist/cjs/serialization/resources/providers/types/SearchProvidersResponse.d.ts +14 -0
  107. package/dist/cjs/serialization/resources/providers/types/SearchProvidersResponse.js +46 -0
  108. package/dist/cjs/serialization/resources/providers/types/index.d.ts +6 -0
  109. package/dist/cjs/serialization/resources/providers/types/index.js +22 -0
  110. package/dist/cjs/version.d.ts +1 -1
  111. package/dist/cjs/version.js +1 -1
  112. package/dist/esm/BaseClient.mjs +2 -2
  113. package/dist/esm/Client.d.mts +6 -0
  114. package/dist/esm/Client.mjs +10 -0
  115. package/dist/esm/api/resources/accounts/client/Client.d.mts +37 -0
  116. package/dist/esm/api/resources/accounts/client/Client.mjs +155 -0
  117. package/dist/esm/api/resources/accounts/client/index.d.mts +1 -0
  118. package/dist/esm/api/resources/accounts/client/index.mjs +1 -0
  119. package/dist/esm/api/resources/accounts/client/requests/ListAccountsRequest.d.mts +10 -0
  120. package/dist/esm/api/resources/accounts/client/requests/ListAccountsRequest.mjs +2 -0
  121. package/dist/esm/api/resources/accounts/client/requests/index.d.mts +1 -0
  122. package/dist/esm/api/resources/accounts/client/requests/index.mjs +1 -0
  123. package/dist/esm/api/resources/accounts/exports.d.mts +2 -0
  124. package/dist/esm/api/resources/accounts/exports.mjs +3 -0
  125. package/dist/esm/api/resources/accounts/index.d.mts +2 -0
  126. package/dist/esm/api/resources/accounts/index.mjs +2 -0
  127. package/dist/esm/api/resources/accounts/types/Account.d.mts +19 -0
  128. package/dist/esm/api/resources/accounts/types/Account.mjs +2 -0
  129. package/dist/esm/api/resources/accounts/types/AccountId.d.mts +4 -0
  130. package/dist/esm/api/resources/accounts/types/AccountId.mjs +2 -0
  131. package/dist/esm/api/resources/accounts/types/ListAccountsResponse.d.mts +7 -0
  132. package/dist/esm/api/resources/accounts/types/ListAccountsResponse.mjs +2 -0
  133. package/dist/esm/api/resources/accounts/types/ProviderId.d.mts +4 -0
  134. package/dist/esm/api/resources/accounts/types/ProviderId.mjs +2 -0
  135. package/dist/esm/api/resources/accounts/types/index.d.mts +4 -0
  136. package/dist/esm/api/resources/accounts/types/index.mjs +4 -0
  137. package/dist/esm/api/resources/inboxes/client/Client.d.mts +20 -0
  138. package/dist/esm/api/resources/inboxes/client/Client.mjs +77 -0
  139. package/dist/esm/api/resources/inboxes/client/requests/SearchInboxesRequest.d.mts +13 -0
  140. package/dist/esm/api/resources/inboxes/client/requests/SearchInboxesRequest.mjs +2 -0
  141. package/dist/esm/api/resources/inboxes/client/requests/index.d.mts +1 -0
  142. package/dist/esm/api/resources/inboxes/types/SearchInboxesResponse.d.mts +8 -0
  143. package/dist/esm/api/resources/inboxes/types/SearchInboxesResponse.mjs +2 -0
  144. package/dist/esm/api/resources/inboxes/types/index.d.mts +1 -0
  145. package/dist/esm/api/resources/inboxes/types/index.mjs +1 -0
  146. package/dist/esm/api/resources/index.d.mts +6 -0
  147. package/dist/esm/api/resources/index.mjs +6 -0
  148. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +22 -0
  149. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +87 -0
  150. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.d.mts +13 -0
  151. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.mjs +2 -0
  152. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/index.d.mts +1 -0
  153. package/dist/esm/api/resources/providers/client/Client.d.mts +86 -0
  154. package/dist/esm/api/resources/providers/client/Client.mjs +386 -0
  155. package/dist/esm/api/resources/providers/client/index.d.mts +1 -0
  156. package/dist/esm/api/resources/providers/client/index.mjs +1 -0
  157. package/dist/esm/api/resources/providers/client/requests/ListProviderAccountsRequest.d.mts +9 -0
  158. package/dist/esm/api/resources/providers/client/requests/ListProviderAccountsRequest.mjs +2 -0
  159. package/dist/esm/api/resources/providers/client/requests/ListProvidersRequest.d.mts +9 -0
  160. package/dist/esm/api/resources/providers/client/requests/ListProvidersRequest.mjs +2 -0
  161. package/dist/esm/api/resources/providers/client/requests/SearchProvidersRequest.d.mts +12 -0
  162. package/dist/esm/api/resources/providers/client/requests/SearchProvidersRequest.mjs +2 -0
  163. package/dist/esm/api/resources/providers/client/requests/index.d.mts +3 -0
  164. package/dist/esm/api/resources/providers/client/requests/index.mjs +1 -0
  165. package/dist/esm/api/resources/providers/exports.d.mts +2 -0
  166. package/dist/esm/api/resources/providers/exports.mjs +3 -0
  167. package/dist/esm/api/resources/providers/index.d.mts +2 -0
  168. package/dist/esm/api/resources/providers/index.mjs +2 -0
  169. package/dist/esm/api/resources/providers/types/ConnectProviderAccepted.d.mts +8 -0
  170. package/dist/esm/api/resources/providers/types/ConnectProviderAccepted.mjs +2 -0
  171. package/dist/esm/api/resources/providers/types/ConnectProviderBody.d.mts +7 -0
  172. package/dist/esm/api/resources/providers/types/ConnectProviderBody.mjs +2 -0
  173. package/dist/esm/api/resources/providers/types/ListProviderAccountsResponse.d.mts +8 -0
  174. package/dist/esm/api/resources/providers/types/ListProviderAccountsResponse.mjs +2 -0
  175. package/dist/esm/api/resources/providers/types/ListProvidersResponse.d.mts +7 -0
  176. package/dist/esm/api/resources/providers/types/ListProvidersResponse.mjs +2 -0
  177. package/dist/esm/api/resources/providers/types/Provider.d.mts +14 -0
  178. package/dist/esm/api/resources/providers/types/Provider.mjs +2 -0
  179. package/dist/esm/api/resources/providers/types/SearchProvidersResponse.d.mts +6 -0
  180. package/dist/esm/api/resources/providers/types/SearchProvidersResponse.mjs +2 -0
  181. package/dist/esm/api/resources/providers/types/index.d.mts +6 -0
  182. package/dist/esm/api/resources/providers/types/index.mjs +6 -0
  183. package/dist/esm/serialization/resources/accounts/index.d.mts +1 -0
  184. package/dist/esm/serialization/resources/accounts/index.mjs +1 -0
  185. package/dist/esm/serialization/resources/accounts/types/Account.d.mts +22 -0
  186. package/dist/esm/serialization/resources/accounts/types/Account.mjs +18 -0
  187. package/dist/esm/serialization/resources/accounts/types/AccountId.d.mts +7 -0
  188. package/dist/esm/serialization/resources/accounts/types/AccountId.mjs +3 -0
  189. package/dist/esm/serialization/resources/accounts/types/ListAccountsResponse.d.mts +16 -0
  190. package/dist/esm/serialization/resources/accounts/types/ListAccountsResponse.mjs +12 -0
  191. package/dist/esm/serialization/resources/accounts/types/ProviderId.d.mts +7 -0
  192. package/dist/esm/serialization/resources/accounts/types/ProviderId.mjs +3 -0
  193. package/dist/esm/serialization/resources/accounts/types/index.d.mts +4 -0
  194. package/dist/esm/serialization/resources/accounts/types/index.mjs +4 -0
  195. package/dist/esm/serialization/resources/inboxes/types/SearchInboxesResponse.d.mts +16 -0
  196. package/dist/esm/serialization/resources/inboxes/types/SearchInboxesResponse.mjs +12 -0
  197. package/dist/esm/serialization/resources/inboxes/types/index.d.mts +1 -0
  198. package/dist/esm/serialization/resources/inboxes/types/index.mjs +1 -0
  199. package/dist/esm/serialization/resources/index.d.mts +4 -0
  200. package/dist/esm/serialization/resources/index.mjs +4 -0
  201. package/dist/esm/serialization/resources/providers/client/connect.d.mts +8 -0
  202. package/dist/esm/serialization/resources/providers/client/connect.mjs +3 -0
  203. package/dist/esm/serialization/resources/providers/client/index.d.mts +1 -0
  204. package/dist/esm/serialization/resources/providers/client/index.mjs +1 -0
  205. package/dist/esm/serialization/resources/providers/index.d.mts +2 -0
  206. package/dist/esm/serialization/resources/providers/index.mjs +2 -0
  207. package/dist/esm/serialization/resources/providers/types/ConnectProviderAccepted.d.mts +11 -0
  208. package/dist/esm/serialization/resources/providers/types/ConnectProviderAccepted.mjs +7 -0
  209. package/dist/esm/serialization/resources/providers/types/ConnectProviderBody.d.mts +11 -0
  210. package/dist/esm/serialization/resources/providers/types/ConnectProviderBody.mjs +7 -0
  211. package/dist/esm/serialization/resources/providers/types/ListProviderAccountsResponse.d.mts +18 -0
  212. package/dist/esm/serialization/resources/providers/types/ListProviderAccountsResponse.mjs +14 -0
  213. package/dist/esm/serialization/resources/providers/types/ListProvidersResponse.d.mts +16 -0
  214. package/dist/esm/serialization/resources/providers/types/ListProvidersResponse.mjs +12 -0
  215. package/dist/esm/serialization/resources/providers/types/Provider.d.mts +16 -0
  216. package/dist/esm/serialization/resources/providers/types/Provider.mjs +12 -0
  217. package/dist/esm/serialization/resources/providers/types/SearchProvidersResponse.d.mts +14 -0
  218. package/dist/esm/serialization/resources/providers/types/SearchProvidersResponse.mjs +10 -0
  219. package/dist/esm/serialization/resources/providers/types/index.d.mts +6 -0
  220. package/dist/esm/serialization/resources/providers/types/index.mjs +6 -0
  221. package/dist/esm/version.d.mts +1 -1
  222. package/dist/esm/version.mjs +1 -1
  223. package/dist/llms.txt +1 -0
  224. package/package.json +23 -1
  225. package/reference.md +583 -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.21",
47
- "User-Agent": "agentmail/0.5.21",
46
+ "X-Fern-SDK-Version": "0.5.23",
47
+ "User-Agent": "agentmail/0.5.23",
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,3 +1,4 @@
1
+ import { AccountsClient } from "./api/resources/accounts/client/Client.js";
1
2
  import { AgentClient } from "./api/resources/agent/client/Client.js";
2
3
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
3
4
  import { AuthClient } from "./api/resources/auth/client/Client.js";
@@ -8,6 +9,7 @@ import { ListsClient } from "./api/resources/lists/client/Client.js";
8
9
  import { MetricsClient } from "./api/resources/metrics/client/Client.js";
9
10
  import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
10
11
  import { PodsClient } from "./api/resources/pods/client/Client.js";
12
+ import { ProvidersClient } from "./api/resources/providers/client/Client.js";
11
13
  import { ThreadsClient } from "./api/resources/threads/client/Client.js";
12
14
  import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
13
15
  import { WebsocketsClient } from "./api/resources/websockets/client/Client.js";
@@ -24,6 +26,7 @@ export declare class AgentMailClient {
24
26
  protected _inboxes: InboxesClient | undefined;
25
27
  protected _pods: PodsClient | undefined;
26
28
  protected _webhooks: WebhooksClient | undefined;
29
+ protected _accounts: AccountsClient | undefined;
27
30
  protected _agent: AgentClient | undefined;
28
31
  protected _apiKeys: ApiKeysClient | undefined;
29
32
  protected _auth: AuthClient | undefined;
@@ -32,12 +35,14 @@ export declare class AgentMailClient {
32
35
  protected _lists: ListsClient | undefined;
33
36
  protected _metrics: MetricsClient | undefined;
34
37
  protected _organizations: OrganizationsClient | undefined;
38
+ protected _providers: ProvidersClient | undefined;
35
39
  protected _threads: ThreadsClient | undefined;
36
40
  protected _websockets: WebsocketsClient | undefined;
37
41
  constructor(options?: AgentMailClient.Options);
38
42
  get inboxes(): InboxesClient;
39
43
  get pods(): PodsClient;
40
44
  get webhooks(): WebhooksClient;
45
+ get accounts(): AccountsClient;
41
46
  get agent(): AgentClient;
42
47
  get apiKeys(): ApiKeysClient;
43
48
  get auth(): AuthClient;
@@ -46,6 +51,7 @@ export declare class AgentMailClient {
46
51
  get lists(): ListsClient;
47
52
  get metrics(): MetricsClient;
48
53
  get organizations(): OrganizationsClient;
54
+ get providers(): ProvidersClient;
49
55
  get threads(): ThreadsClient;
50
56
  get websockets(): WebsocketsClient;
51
57
  /**
@@ -44,19 +44,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.AgentMailClient = void 0;
47
- const Client_js_1 = require("./api/resources/agent/client/Client.js");
48
- const Client_js_2 = require("./api/resources/apiKeys/client/Client.js");
49
- const Client_js_3 = require("./api/resources/auth/client/Client.js");
50
- const Client_js_4 = require("./api/resources/domains/client/Client.js");
51
- const Client_js_5 = require("./api/resources/drafts/client/Client.js");
52
- const Client_js_6 = require("./api/resources/inboxes/client/Client.js");
53
- const Client_js_7 = require("./api/resources/lists/client/Client.js");
54
- const Client_js_8 = require("./api/resources/metrics/client/Client.js");
55
- const Client_js_9 = require("./api/resources/organizations/client/Client.js");
56
- const Client_js_10 = require("./api/resources/pods/client/Client.js");
57
- const Client_js_11 = require("./api/resources/threads/client/Client.js");
58
- const Client_js_12 = require("./api/resources/webhooks/client/Client.js");
59
- const Client_js_13 = require("./api/resources/websockets/client/Client.js");
47
+ const Client_js_1 = require("./api/resources/accounts/client/Client.js");
48
+ const Client_js_2 = require("./api/resources/agent/client/Client.js");
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");
59
+ const Client_js_13 = require("./api/resources/threads/client/Client.js");
60
+ const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
61
+ const Client_js_15 = require("./api/resources/websockets/client/Client.js");
60
62
  const BaseClient_js_1 = require("./BaseClient.js");
61
63
  const core = __importStar(require("./core/index.js"));
62
64
  const environments = __importStar(require("./environments.js"));
@@ -66,55 +68,63 @@ class AgentMailClient {
66
68
  }
67
69
  get inboxes() {
68
70
  var _a;
69
- return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_6.InboxesClient(this._options)));
71
+ return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_7.InboxesClient(this._options)));
70
72
  }
71
73
  get pods() {
72
74
  var _a;
73
- return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_10.PodsClient(this._options)));
75
+ return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_11.PodsClient(this._options)));
74
76
  }
75
77
  get webhooks() {
76
78
  var _a;
77
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_12.WebhooksClient(this._options)));
79
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_14.WebhooksClient(this._options)));
80
+ }
81
+ get accounts() {
82
+ var _a;
83
+ return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Client_js_1.AccountsClient(this._options)));
78
84
  }
79
85
  get agent() {
80
86
  var _a;
81
- return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_1.AgentClient(this._options)));
87
+ return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_2.AgentClient(this._options)));
82
88
  }
83
89
  get apiKeys() {
84
90
  var _a;
85
- return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_2.ApiKeysClient(this._options)));
91
+ return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_3.ApiKeysClient(this._options)));
86
92
  }
87
93
  get auth() {
88
94
  var _a;
89
- return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_3.AuthClient(this._options)));
95
+ return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_4.AuthClient(this._options)));
90
96
  }
91
97
  get domains() {
92
98
  var _a;
93
- return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_4.DomainsClient(this._options)));
99
+ return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_5.DomainsClient(this._options)));
94
100
  }
95
101
  get drafts() {
96
102
  var _a;
97
- return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_5.DraftsClient(this._options)));
103
+ return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_6.DraftsClient(this._options)));
98
104
  }
99
105
  get lists() {
100
106
  var _a;
101
- return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_7.ListsClient(this._options)));
107
+ return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_8.ListsClient(this._options)));
102
108
  }
103
109
  get metrics() {
104
110
  var _a;
105
- return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_8.MetricsClient(this._options)));
111
+ return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_9.MetricsClient(this._options)));
106
112
  }
107
113
  get organizations() {
108
114
  var _a;
109
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_9.OrganizationsClient(this._options)));
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)));
110
120
  }
111
121
  get threads() {
112
122
  var _a;
113
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_11.ThreadsClient(this._options)));
123
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_13.ThreadsClient(this._options)));
114
124
  }
115
125
  get websockets() {
116
126
  var _a;
117
- return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new Client_js_13.WebsocketsClient(this._options)));
127
+ return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new Client_js_15.WebsocketsClient(this._options)));
118
128
  }
119
129
  /**
120
130
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -0,0 +1,37 @@
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 AccountsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class AccountsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<AccountsClient.Options>;
12
+ constructor(options?: AccountsClient.Options);
13
+ /**
14
+ * Lists accounts across all providers.
15
+ *
16
+ * @param {AgentMail.ListAccountsRequest} request
17
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link AgentMail.ValidationError}
20
+ *
21
+ * @example
22
+ * await client.accounts.list()
23
+ */
24
+ list(request?: AgentMail.ListAccountsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListAccountsResponse>;
25
+ private __list;
26
+ /**
27
+ * @param {AgentMail.AccountId} account_id
28
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @throws {@link AgentMail.NotFoundError}
31
+ *
32
+ * @example
33
+ * await client.accounts.get("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
34
+ */
35
+ get(account_id: AgentMail.AccountId, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Account>;
36
+ private __get;
37
+ }
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.AccountsClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../errors/index.js"));
53
+ const serializers = __importStar(require("../../../../serialization/index.js"));
54
+ const AgentMail = __importStar(require("../../../index.js"));
55
+ class AccountsClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
+ }
59
+ /**
60
+ * Lists accounts across all providers.
61
+ *
62
+ * @param {AgentMail.ListAccountsRequest} request
63
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link AgentMail.ValidationError}
66
+ *
67
+ * @example
68
+ * await client.accounts.list()
69
+ */
70
+ list(request = {}, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
72
+ }
73
+ __list() {
74
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
76
+ const { limit, pageToken, ascending } = request;
77
+ const _queryParams = {
78
+ limit,
79
+ page_token: pageToken,
80
+ ascending,
81
+ };
82
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
83
+ 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);
84
+ const _response = yield core.fetcher({
85
+ 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)
86
+ .http, "/v0/accounts"),
87
+ method: "GET",
88
+ headers: _headers,
89
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
90
+ 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,
91
+ 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,
92
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
93
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
94
+ logging: this._options.logging,
95
+ });
96
+ if (_response.ok) {
97
+ return {
98
+ data: serializers.ListAccountsResponse.parseOrThrow(_response.body, {
99
+ unrecognizedObjectKeys: "passthrough",
100
+ allowUnrecognizedUnionMembers: true,
101
+ allowUnrecognizedEnumValues: true,
102
+ skipValidation: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ }),
105
+ rawResponse: _response.rawResponse,
106
+ };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 400:
111
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
112
+ unrecognizedObjectKeys: "passthrough",
113
+ allowUnrecognizedUnionMembers: true,
114
+ allowUnrecognizedEnumValues: true,
115
+ skipValidation: true,
116
+ breadcrumbsPrefix: ["response"],
117
+ }), _response.rawResponse);
118
+ default:
119
+ throw new errors.AgentMailError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ rawResponse: _response.rawResponse,
123
+ });
124
+ }
125
+ }
126
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/accounts");
127
+ });
128
+ }
129
+ /**
130
+ * @param {AgentMail.AccountId} account_id
131
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link AgentMail.NotFoundError}
134
+ *
135
+ * @example
136
+ * await client.accounts.get("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
137
+ */
138
+ get(account_id, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__get(account_id, requestOptions));
140
+ }
141
+ __get(account_id, requestOptions) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
144
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
145
+ 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);
146
+ const _response = yield core.fetcher({
147
+ 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)
148
+ .http, `/v0/accounts/${core.url.encodePathParam(serializers.AccountId.jsonOrThrow(account_id, { omitUndefined: true }))}`),
149
+ method: "GET",
150
+ headers: _headers,
151
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
152
+ 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,
153
+ 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,
154
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
156
+ logging: this._options.logging,
157
+ });
158
+ if (_response.ok) {
159
+ return {
160
+ data: serializers.Account.parseOrThrow(_response.body, {
161
+ unrecognizedObjectKeys: "passthrough",
162
+ allowUnrecognizedUnionMembers: true,
163
+ allowUnrecognizedEnumValues: true,
164
+ skipValidation: true,
165
+ breadcrumbsPrefix: ["response"],
166
+ }),
167
+ rawResponse: _response.rawResponse,
168
+ };
169
+ }
170
+ if (_response.error.reason === "status-code") {
171
+ switch (_response.error.statusCode) {
172
+ case 404:
173
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
174
+ unrecognizedObjectKeys: "passthrough",
175
+ allowUnrecognizedUnionMembers: true,
176
+ allowUnrecognizedEnumValues: true,
177
+ skipValidation: true,
178
+ breadcrumbsPrefix: ["response"],
179
+ }), _response.rawResponse);
180
+ default:
181
+ throw new errors.AgentMailError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.body,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ }
187
+ }
188
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/accounts/{account_id}");
189
+ });
190
+ }
191
+ }
192
+ exports.AccountsClient = AccountsClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ import type * as AgentMail from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface ListAccountsRequest {
7
+ limit?: AgentMail.Limit;
8
+ pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
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 @@
1
+ export type { ListAccountsRequest } from "./ListAccountsRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { AccountsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AccountsClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "AccountsClient", { enumerable: true, get: function () { return Client_js_1.AccountsClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,19 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ /**
3
+ * One inbox signed in at one provider.
4
+ */
5
+ export interface Account {
6
+ accountId: AgentMail.AccountId;
7
+ providerId: AgentMail.ProviderId;
8
+ /** Display name of provider. */
9
+ providerName?: string;
10
+ inboxId: AgentMail.inboxes.InboxId;
11
+ podId: AgentMail.pods.PodId;
12
+ organizationId: AgentMail.OrganizationId;
13
+ /** Time of first sign-in at provider. */
14
+ firstSignedInAt: Date;
15
+ /** Time of most recent sign-in at provider. */
16
+ lastSignedInAt: Date;
17
+ /** Number of sign-ins at provider. */
18
+ signInCount: number;
19
+ }
@@ -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
+ /**
2
+ * ID of account.
3
+ */
4
+ export type AccountId = 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,7 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface ListAccountsResponse {
3
+ count: AgentMail.Count;
4
+ limit: AgentMail.Limit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ accounts: AgentMail.Account[];
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,4 @@
1
+ /**
2
+ * ID of provider.
3
+ */
4
+ export type ProviderId = 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,4 @@
1
+ export * from "./Account.js";
2
+ export * from "./AccountId.js";
3
+ export * from "./ListAccountsResponse.js";
4
+ export * from "./ProviderId.js";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Account.js"), exports);
18
+ __exportStar(require("./AccountId.js"), exports);
19
+ __exportStar(require("./ListAccountsResponse.js"), exports);
20
+ __exportStar(require("./ProviderId.js"), exports);
@@ -51,6 +51,26 @@ export declare class InboxesClient {
51
51
  */
52
52
  list(request?: AgentMail.inboxes.ListInboxesRequest, requestOptions?: InboxesClient.RequestOptions): core.HttpResponsePromise<AgentMail.inboxes.ListInboxesResponse>;
53
53
  private __list;
54
+ /**
55
+ * Searches inboxes in the organization by address or display name, ranked
56
+ * by relevance. Each word in the query matches the start of a word in the
57
+ * address or display name, so `sup` matches `support@example.com` but
58
+ * `port` does not. An exact address match always ranks first. `limit`
59
+ * cannot exceed 100. A page can be empty and still carry a
60
+ * `next_page_token`; keep paging until the token is absent.
61
+ *
62
+ * @param {AgentMail.inboxes.SearchInboxesRequest} request
63
+ * @param {InboxesClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link AgentMail.ValidationError}
66
+ *
67
+ * @example
68
+ * await client.inboxes.search({
69
+ * q: "q"
70
+ * })
71
+ */
72
+ search(request: AgentMail.inboxes.SearchInboxesRequest, requestOptions?: InboxesClient.RequestOptions): core.HttpResponsePromise<AgentMail.inboxes.SearchInboxesResponse>;
73
+ private __search;
54
74
  /**
55
75
  * **CLI:**
56
76
  * ```bash