agentmail 0.5.49 → 0.5.51

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 (211) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +21 -16
  4. package/dist/cjs/api/resources/forwarding/client/Client.d.ts +127 -0
  5. package/dist/cjs/api/resources/forwarding/client/Client.js +503 -0
  6. package/dist/cjs/api/resources/forwarding/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/forwarding/client/index.js +2 -0
  8. package/dist/cjs/api/resources/forwarding/errors/ForwardingForbiddenError.d.ts +6 -0
  9. package/dist/cjs/api/resources/forwarding/errors/ForwardingForbiddenError.js +54 -0
  10. package/dist/cjs/api/resources/forwarding/errors/ForwardingRateLimitError.d.ts +6 -0
  11. package/dist/cjs/api/resources/forwarding/errors/ForwardingRateLimitError.js +54 -0
  12. package/dist/cjs/api/resources/forwarding/errors/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/forwarding/errors/index.js +18 -0
  14. package/dist/cjs/api/resources/forwarding/exports.d.ts +2 -0
  15. package/dist/cjs/api/resources/forwarding/exports.js +21 -0
  16. package/dist/cjs/api/resources/forwarding/index.d.ts +3 -0
  17. package/dist/cjs/api/resources/forwarding/index.js +19 -0
  18. package/dist/cjs/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.js +3 -0
  20. package/dist/cjs/api/resources/forwarding/types/Forwarding.d.ts +15 -0
  21. package/dist/cjs/api/resources/forwarding/types/Forwarding.js +3 -0
  22. package/dist/cjs/api/resources/forwarding/types/ForwardingDestination.d.ts +5 -0
  23. package/dist/cjs/api/resources/forwarding/types/ForwardingDestination.js +3 -0
  24. package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationConfirmed.d.ts +4 -0
  25. package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationConfirmed.js +3 -0
  26. package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationStarted.d.ts +4 -0
  27. package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationStarted.js +3 -0
  28. package/dist/cjs/api/resources/forwarding/types/StartForwardingVerificationRequest.d.ts +5 -0
  29. package/dist/cjs/api/resources/forwarding/types/StartForwardingVerificationRequest.js +3 -0
  30. package/dist/cjs/api/resources/forwarding/types/UpdateForwardingRequest.d.ts +9 -0
  31. package/dist/cjs/api/resources/forwarding/types/UpdateForwardingRequest.js +3 -0
  32. package/dist/cjs/api/resources/forwarding/types/UpdateForwardingResponse.d.ts +8 -0
  33. package/dist/cjs/api/resources/forwarding/types/UpdateForwardingResponse.js +3 -0
  34. package/dist/cjs/api/resources/forwarding/types/index.d.ts +8 -0
  35. package/dist/cjs/api/resources/forwarding/types/index.js +24 -0
  36. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +7 -1
  37. package/dist/cjs/api/resources/inboxes/client/Client.js +27 -11
  38. package/dist/cjs/api/resources/inboxes/resources/forwarding/client/Client.d.ts +79 -0
  39. package/dist/cjs/api/resources/inboxes/resources/forwarding/client/Client.js +317 -0
  40. package/dist/cjs/api/resources/inboxes/resources/forwarding/client/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/inboxes/resources/forwarding/client/index.js +2 -0
  42. package/dist/cjs/api/resources/inboxes/resources/forwarding/exports.d.ts +2 -0
  43. package/dist/cjs/api/resources/inboxes/resources/forwarding/exports.js +21 -0
  44. package/dist/cjs/api/resources/inboxes/resources/forwarding/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/inboxes/resources/forwarding/index.js +17 -0
  46. package/dist/cjs/api/resources/inboxes/resources/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/inboxes/resources/index.js +2 -1
  48. package/dist/cjs/api/resources/index.d.ts +3 -0
  49. package/dist/cjs/api/resources/index.js +4 -1
  50. package/dist/cjs/api/resources/messages/types/Message.d.ts +2 -0
  51. package/dist/cjs/api/resources/messages/types/MessageItem.d.ts +2 -0
  52. package/dist/cjs/api/resources/messages/types/MessageOpenedAt.d.ts +6 -0
  53. package/dist/cjs/api/resources/messages/types/MessageOpenedAt.js +3 -0
  54. package/dist/cjs/api/resources/messages/types/MessageTrackOpens.d.ts +5 -0
  55. package/dist/cjs/api/resources/messages/types/MessageTrackOpens.js +3 -0
  56. package/dist/cjs/api/resources/messages/types/TrackOpens.d.ts +4 -3
  57. package/dist/cjs/api/resources/messages/types/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/messages/types/index.js +2 -0
  59. package/dist/cjs/api/resources/pods/client/Client.d.ts +3 -0
  60. package/dist/cjs/api/resources/pods/client/Client.js +15 -10
  61. package/dist/cjs/api/resources/pods/resources/forwarding/client/Client.d.ts +80 -0
  62. package/dist/cjs/api/resources/pods/resources/forwarding/client/Client.js +318 -0
  63. package/dist/cjs/api/resources/pods/resources/forwarding/client/index.d.ts +1 -0
  64. package/dist/cjs/api/resources/pods/resources/forwarding/client/index.js +2 -0
  65. package/dist/cjs/api/resources/pods/resources/forwarding/exports.d.ts +2 -0
  66. package/dist/cjs/api/resources/pods/resources/forwarding/exports.js +21 -0
  67. package/dist/cjs/api/resources/pods/resources/forwarding/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/pods/resources/forwarding/index.js +17 -0
  69. package/dist/cjs/api/resources/pods/resources/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/pods/resources/index.js +2 -1
  71. package/dist/cjs/serialization/resources/forwarding/index.d.ts +1 -0
  72. package/dist/cjs/serialization/resources/forwarding/index.js +17 -0
  73. package/dist/cjs/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.ts +11 -0
  74. package/dist/cjs/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.js +43 -0
  75. package/dist/cjs/serialization/resources/forwarding/types/Forwarding.d.ts +11 -0
  76. package/dist/cjs/serialization/resources/forwarding/types/Forwarding.js +43 -0
  77. package/dist/cjs/serialization/resources/forwarding/types/ForwardingDestination.d.ts +7 -0
  78. package/dist/cjs/serialization/resources/forwarding/types/ForwardingDestination.js +39 -0
  79. package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.d.ts +9 -0
  80. package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.js +41 -0
  81. package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationStarted.d.ts +9 -0
  82. package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationStarted.js +41 -0
  83. package/dist/cjs/serialization/resources/forwarding/types/StartForwardingVerificationRequest.d.ts +10 -0
  84. package/dist/cjs/serialization/resources/forwarding/types/StartForwardingVerificationRequest.js +42 -0
  85. package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingRequest.d.ts +10 -0
  86. package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingRequest.js +42 -0
  87. package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingResponse.d.ts +10 -0
  88. package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingResponse.js +42 -0
  89. package/dist/cjs/serialization/resources/forwarding/types/index.d.ts +8 -0
  90. package/dist/cjs/serialization/resources/forwarding/types/index.js +24 -0
  91. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  92. package/dist/cjs/serialization/resources/index.js +3 -1
  93. package/dist/cjs/serialization/resources/messages/types/Message.d.ts +4 -0
  94. package/dist/cjs/serialization/resources/messages/types/Message.js +4 -0
  95. package/dist/cjs/serialization/resources/messages/types/MessageItem.d.ts +4 -0
  96. package/dist/cjs/serialization/resources/messages/types/MessageItem.js +4 -0
  97. package/dist/cjs/serialization/resources/messages/types/MessageOpenedAt.d.ts +7 -0
  98. package/dist/cjs/serialization/resources/messages/types/MessageOpenedAt.js +39 -0
  99. package/dist/cjs/serialization/resources/messages/types/MessageTrackOpens.d.ts +7 -0
  100. package/dist/cjs/serialization/resources/messages/types/MessageTrackOpens.js +39 -0
  101. package/dist/cjs/serialization/resources/messages/types/index.d.ts +2 -0
  102. package/dist/cjs/serialization/resources/messages/types/index.js +2 -0
  103. package/dist/cjs/version.d.ts +1 -1
  104. package/dist/cjs/version.js +1 -1
  105. package/dist/esm/BaseClient.mjs +2 -2
  106. package/dist/esm/Client.d.mts +3 -0
  107. package/dist/esm/Client.mjs +5 -0
  108. package/dist/esm/api/resources/forwarding/client/Client.d.mts +127 -0
  109. package/dist/esm/api/resources/forwarding/client/Client.mjs +466 -0
  110. package/dist/esm/api/resources/forwarding/client/index.d.mts +1 -0
  111. package/dist/esm/api/resources/forwarding/client/index.mjs +1 -0
  112. package/dist/esm/api/resources/forwarding/errors/ForwardingForbiddenError.d.mts +6 -0
  113. package/dist/esm/api/resources/forwarding/errors/ForwardingForbiddenError.mjs +17 -0
  114. package/dist/esm/api/resources/forwarding/errors/ForwardingRateLimitError.d.mts +6 -0
  115. package/dist/esm/api/resources/forwarding/errors/ForwardingRateLimitError.mjs +17 -0
  116. package/dist/esm/api/resources/forwarding/errors/index.d.mts +2 -0
  117. package/dist/esm/api/resources/forwarding/errors/index.mjs +2 -0
  118. package/dist/esm/api/resources/forwarding/exports.d.mts +2 -0
  119. package/dist/esm/api/resources/forwarding/exports.mjs +3 -0
  120. package/dist/esm/api/resources/forwarding/index.d.mts +3 -0
  121. package/dist/esm/api/resources/forwarding/index.mjs +3 -0
  122. package/dist/esm/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.mts +10 -0
  123. package/dist/esm/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.mjs +2 -0
  124. package/dist/esm/api/resources/forwarding/types/Forwarding.d.mts +15 -0
  125. package/dist/esm/api/resources/forwarding/types/Forwarding.mjs +2 -0
  126. package/dist/esm/api/resources/forwarding/types/ForwardingDestination.d.mts +5 -0
  127. package/dist/esm/api/resources/forwarding/types/ForwardingDestination.mjs +2 -0
  128. package/dist/esm/api/resources/forwarding/types/ForwardingVerificationConfirmed.d.mts +4 -0
  129. package/dist/esm/api/resources/forwarding/types/ForwardingVerificationConfirmed.mjs +2 -0
  130. package/dist/esm/api/resources/forwarding/types/ForwardingVerificationStarted.d.mts +4 -0
  131. package/dist/esm/api/resources/forwarding/types/ForwardingVerificationStarted.mjs +2 -0
  132. package/dist/esm/api/resources/forwarding/types/StartForwardingVerificationRequest.d.mts +5 -0
  133. package/dist/esm/api/resources/forwarding/types/StartForwardingVerificationRequest.mjs +2 -0
  134. package/dist/esm/api/resources/forwarding/types/UpdateForwardingRequest.d.mts +9 -0
  135. package/dist/esm/api/resources/forwarding/types/UpdateForwardingRequest.mjs +2 -0
  136. package/dist/esm/api/resources/forwarding/types/UpdateForwardingResponse.d.mts +8 -0
  137. package/dist/esm/api/resources/forwarding/types/UpdateForwardingResponse.mjs +2 -0
  138. package/dist/esm/api/resources/forwarding/types/index.d.mts +8 -0
  139. package/dist/esm/api/resources/forwarding/types/index.mjs +8 -0
  140. package/dist/esm/api/resources/inboxes/client/Client.d.mts +7 -1
  141. package/dist/esm/api/resources/inboxes/client/Client.mjs +17 -1
  142. package/dist/esm/api/resources/inboxes/resources/forwarding/client/Client.d.mts +79 -0
  143. package/dist/esm/api/resources/inboxes/resources/forwarding/client/Client.mjs +280 -0
  144. package/dist/esm/api/resources/inboxes/resources/forwarding/client/index.d.mts +1 -0
  145. package/dist/esm/api/resources/inboxes/resources/forwarding/client/index.mjs +1 -0
  146. package/dist/esm/api/resources/inboxes/resources/forwarding/exports.d.mts +2 -0
  147. package/dist/esm/api/resources/inboxes/resources/forwarding/exports.mjs +3 -0
  148. package/dist/esm/api/resources/inboxes/resources/forwarding/index.d.mts +1 -0
  149. package/dist/esm/api/resources/inboxes/resources/forwarding/index.mjs +1 -0
  150. package/dist/esm/api/resources/inboxes/resources/index.d.mts +1 -0
  151. package/dist/esm/api/resources/inboxes/resources/index.mjs +1 -0
  152. package/dist/esm/api/resources/index.d.mts +3 -0
  153. package/dist/esm/api/resources/index.mjs +3 -0
  154. package/dist/esm/api/resources/messages/types/Message.d.mts +2 -0
  155. package/dist/esm/api/resources/messages/types/MessageItem.d.mts +2 -0
  156. package/dist/esm/api/resources/messages/types/MessageOpenedAt.d.mts +6 -0
  157. package/dist/esm/api/resources/messages/types/MessageOpenedAt.mjs +2 -0
  158. package/dist/esm/api/resources/messages/types/MessageTrackOpens.d.mts +5 -0
  159. package/dist/esm/api/resources/messages/types/MessageTrackOpens.mjs +2 -0
  160. package/dist/esm/api/resources/messages/types/TrackOpens.d.mts +4 -3
  161. package/dist/esm/api/resources/messages/types/index.d.mts +2 -0
  162. package/dist/esm/api/resources/messages/types/index.mjs +2 -0
  163. package/dist/esm/api/resources/pods/client/Client.d.mts +3 -0
  164. package/dist/esm/api/resources/pods/client/Client.mjs +5 -0
  165. package/dist/esm/api/resources/pods/resources/forwarding/client/Client.d.mts +80 -0
  166. package/dist/esm/api/resources/pods/resources/forwarding/client/Client.mjs +281 -0
  167. package/dist/esm/api/resources/pods/resources/forwarding/client/index.d.mts +1 -0
  168. package/dist/esm/api/resources/pods/resources/forwarding/client/index.mjs +1 -0
  169. package/dist/esm/api/resources/pods/resources/forwarding/exports.d.mts +2 -0
  170. package/dist/esm/api/resources/pods/resources/forwarding/exports.mjs +3 -0
  171. package/dist/esm/api/resources/pods/resources/forwarding/index.d.mts +1 -0
  172. package/dist/esm/api/resources/pods/resources/forwarding/index.mjs +1 -0
  173. package/dist/esm/api/resources/pods/resources/index.d.mts +1 -0
  174. package/dist/esm/api/resources/pods/resources/index.mjs +1 -0
  175. package/dist/esm/serialization/resources/forwarding/index.d.mts +1 -0
  176. package/dist/esm/serialization/resources/forwarding/index.mjs +1 -0
  177. package/dist/esm/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.mts +11 -0
  178. package/dist/esm/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.mjs +7 -0
  179. package/dist/esm/serialization/resources/forwarding/types/Forwarding.d.mts +11 -0
  180. package/dist/esm/serialization/resources/forwarding/types/Forwarding.mjs +7 -0
  181. package/dist/esm/serialization/resources/forwarding/types/ForwardingDestination.d.mts +7 -0
  182. package/dist/esm/serialization/resources/forwarding/types/ForwardingDestination.mjs +3 -0
  183. package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.d.mts +9 -0
  184. package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.mjs +5 -0
  185. package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationStarted.d.mts +9 -0
  186. package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationStarted.mjs +5 -0
  187. package/dist/esm/serialization/resources/forwarding/types/StartForwardingVerificationRequest.d.mts +10 -0
  188. package/dist/esm/serialization/resources/forwarding/types/StartForwardingVerificationRequest.mjs +6 -0
  189. package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingRequest.d.mts +10 -0
  190. package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingRequest.mjs +6 -0
  191. package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingResponse.d.mts +10 -0
  192. package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingResponse.mjs +6 -0
  193. package/dist/esm/serialization/resources/forwarding/types/index.d.mts +8 -0
  194. package/dist/esm/serialization/resources/forwarding/types/index.mjs +8 -0
  195. package/dist/esm/serialization/resources/index.d.mts +2 -0
  196. package/dist/esm/serialization/resources/index.mjs +2 -0
  197. package/dist/esm/serialization/resources/messages/types/Message.d.mts +4 -0
  198. package/dist/esm/serialization/resources/messages/types/Message.mjs +4 -0
  199. package/dist/esm/serialization/resources/messages/types/MessageItem.d.mts +4 -0
  200. package/dist/esm/serialization/resources/messages/types/MessageItem.mjs +4 -0
  201. package/dist/esm/serialization/resources/messages/types/MessageOpenedAt.d.mts +7 -0
  202. package/dist/esm/serialization/resources/messages/types/MessageOpenedAt.mjs +3 -0
  203. package/dist/esm/serialization/resources/messages/types/MessageTrackOpens.d.mts +7 -0
  204. package/dist/esm/serialization/resources/messages/types/MessageTrackOpens.mjs +3 -0
  205. package/dist/esm/serialization/resources/messages/types/index.d.mts +2 -0
  206. package/dist/esm/serialization/resources/messages/types/index.mjs +2 -0
  207. package/dist/esm/version.d.mts +1 -1
  208. package/dist/esm/version.mjs +1 -1
  209. package/dist/llms.txt +3 -1
  210. package/package.json +34 -1
  211. package/reference.md +1026 -239
@@ -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.49",
47
- "User-Agent": "agentmail/0.5.49",
46
+ "X-Fern-SDK-Version": "0.5.51",
47
+ "User-Agent": "agentmail/0.5.51",
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);
@@ -5,6 +5,7 @@ import { AppsClient } from "./api/resources/apps/client/Client.js";
5
5
  import { AuthClient } from "./api/resources/auth/client/Client.js";
6
6
  import { DomainsClient } from "./api/resources/domains/client/Client.js";
7
7
  import { DraftsClient } from "./api/resources/drafts/client/Client.js";
8
+ import { ForwardingClient } from "./api/resources/forwarding/client/Client.js";
8
9
  import { InboxesClient } from "./api/resources/inboxes/client/Client.js";
9
10
  import { ListsClient } from "./api/resources/lists/client/Client.js";
10
11
  import { MetricsClient } from "./api/resources/metrics/client/Client.js";
@@ -33,6 +34,7 @@ export declare class AgentMailClient {
33
34
  protected _auth: AuthClient | undefined;
34
35
  protected _domains: DomainsClient | undefined;
35
36
  protected _drafts: DraftsClient | undefined;
37
+ protected _forwarding: ForwardingClient | undefined;
36
38
  protected _lists: ListsClient | undefined;
37
39
  protected _metrics: MetricsClient | undefined;
38
40
  protected _organizations: OrganizationsClient | undefined;
@@ -49,6 +51,7 @@ export declare class AgentMailClient {
49
51
  get auth(): AuthClient;
50
52
  get domains(): DomainsClient;
51
53
  get drafts(): DraftsClient;
54
+ get forwarding(): ForwardingClient;
52
55
  get lists(): ListsClient;
53
56
  get metrics(): MetricsClient;
54
57
  get organizations(): OrganizationsClient;
@@ -51,14 +51,15 @@ const Client_js_4 = require("./api/resources/apps/client/Client.js");
51
51
  const Client_js_5 = require("./api/resources/auth/client/Client.js");
52
52
  const Client_js_6 = require("./api/resources/domains/client/Client.js");
53
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
- 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");
54
+ const Client_js_8 = require("./api/resources/forwarding/client/Client.js");
55
+ const Client_js_9 = require("./api/resources/inboxes/client/Client.js");
56
+ const Client_js_10 = require("./api/resources/lists/client/Client.js");
57
+ const Client_js_11 = require("./api/resources/metrics/client/Client.js");
58
+ const Client_js_12 = require("./api/resources/organizations/client/Client.js");
59
+ const Client_js_13 = require("./api/resources/pods/client/Client.js");
60
+ const Client_js_14 = require("./api/resources/threads/client/Client.js");
61
+ const Client_js_15 = require("./api/resources/webhooks/client/Client.js");
62
+ const Client_js_16 = require("./api/resources/websockets/client/Client.js");
62
63
  const BaseClient_js_1 = require("./BaseClient.js");
63
64
  const core = __importStar(require("./core/index.js"));
64
65
  const environments = __importStar(require("./environments.js"));
@@ -68,15 +69,15 @@ class AgentMailClient {
68
69
  }
69
70
  get inboxes() {
70
71
  var _a;
71
- return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_8.InboxesClient(this._options)));
72
+ return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_9.InboxesClient(this._options)));
72
73
  }
73
74
  get pods() {
74
75
  var _a;
75
- return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_12.PodsClient(this._options)));
76
+ return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_13.PodsClient(this._options)));
76
77
  }
77
78
  get webhooks() {
78
79
  var _a;
79
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_14.WebhooksClient(this._options)));
80
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_15.WebhooksClient(this._options)));
80
81
  }
81
82
  get accounts() {
82
83
  var _a;
@@ -106,25 +107,29 @@ class AgentMailClient {
106
107
  var _a;
107
108
  return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_7.DraftsClient(this._options)));
108
109
  }
110
+ get forwarding() {
111
+ var _a;
112
+ return ((_a = this._forwarding) !== null && _a !== void 0 ? _a : (this._forwarding = new Client_js_8.ForwardingClient(this._options)));
113
+ }
109
114
  get lists() {
110
115
  var _a;
111
- return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_9.ListsClient(this._options)));
116
+ return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_10.ListsClient(this._options)));
112
117
  }
113
118
  get metrics() {
114
119
  var _a;
115
- return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_10.MetricsClient(this._options)));
120
+ return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_11.MetricsClient(this._options)));
116
121
  }
117
122
  get organizations() {
118
123
  var _a;
119
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_11.OrganizationsClient(this._options)));
124
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_12.OrganizationsClient(this._options)));
120
125
  }
121
126
  get threads() {
122
127
  var _a;
123
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_13.ThreadsClient(this._options)));
128
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_14.ThreadsClient(this._options)));
124
129
  }
125
130
  get websockets() {
126
131
  var _a;
127
- return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new Client_js_15.WebsocketsClient(this._options)));
132
+ return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new Client_js_16.WebsocketsClient(this._options)));
128
133
  }
129
134
  /**
130
135
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -0,0 +1,127 @@
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 ForwardingClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ForwardingClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ForwardingClient.Options>;
12
+ constructor(options?: ForwardingClient.Options);
13
+ /**
14
+ * Get the forwarding the organization sets. Pods and inboxes that set no forwarding of their own
15
+ * use this list. Needs an organization-scoped API key.
16
+ *
17
+ * **CLI:**
18
+ * ```bash
19
+ * agentmail forwarding get
20
+ * ```
21
+ *
22
+ * @param {ForwardingClient.RequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link AgentMail.ForwardingForbiddenError}
25
+ *
26
+ * @example
27
+ * await client.forwarding.get()
28
+ */
29
+ get(requestOptions?: ForwardingClient.RequestOptions): core.HttpResponsePromise<AgentMail.Forwarding>;
30
+ private __get;
31
+ /**
32
+ * Set the addresses the organization forwards to. The list replaces the current one. An address
33
+ * that is not verified is saved but receives nothing until it is verified. Needs an
34
+ * organization-scoped API key in an organization that has completed agent verification.
35
+ *
36
+ * **CLI:**
37
+ * ```bash
38
+ * agentmail forwarding update --destinations ops@example.com --destinations archive@example.com
39
+ * ```
40
+ *
41
+ * @param {AgentMail.UpdateForwardingRequest} request
42
+ * @param {ForwardingClient.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link AgentMail.ValidationError}
45
+ * @throws {@link AgentMail.ForwardingForbiddenError}
46
+ *
47
+ * @example
48
+ * await client.forwarding.update({
49
+ * destinations: ["destinations", "destinations"]
50
+ * })
51
+ */
52
+ update(request: AgentMail.UpdateForwardingRequest, requestOptions?: ForwardingClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateForwardingResponse>;
53
+ private __update;
54
+ /**
55
+ * Remove the organization's forwarding, so its inboxes stop forwarding unless their pod or the
56
+ * inbox sets its own. Verified addresses stay verified, so adding one again needs no new code.
57
+ * Returns `not_found` when the organization sets no forwarding.
58
+ *
59
+ * **CLI:**
60
+ * ```bash
61
+ * agentmail forwarding delete
62
+ * ```
63
+ *
64
+ * @param {ForwardingClient.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @throws {@link AgentMail.NotFoundError}
67
+ * @throws {@link AgentMail.ForwardingForbiddenError}
68
+ *
69
+ * @example
70
+ * await client.forwarding.delete()
71
+ */
72
+ delete(requestOptions?: ForwardingClient.RequestOptions): core.HttpResponsePromise<AgentMail.Forwarding>;
73
+ private __delete;
74
+ /**
75
+ * Email a confirmation code to an address, so it can receive forwarded mail once confirmed.
76
+ * Verification belongs to the organization: once verified, the address can be used at the
77
+ * organization, any pod and any inbox. Starting again replaces any code already sent to the
78
+ * address. Needs an organization- or pod-scoped API key in an organization that has completed
79
+ * agent verification.
80
+ *
81
+ * **CLI:**
82
+ * ```bash
83
+ * agentmail forwarding start-verification --destination ops@example.com
84
+ * ```
85
+ *
86
+ * @param {AgentMail.StartForwardingVerificationRequest} request
87
+ * @param {ForwardingClient.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link AgentMail.ValidationError}
90
+ * @throws {@link AgentMail.ForwardingForbiddenError}
91
+ * @throws {@link AgentMail.UnprocessableError}
92
+ * @throws {@link AgentMail.ForwardingRateLimitError}
93
+ *
94
+ * @example
95
+ * await client.forwarding.startVerification({
96
+ * destination: "destination"
97
+ * })
98
+ */
99
+ startVerification(request: AgentMail.StartForwardingVerificationRequest, requestOptions?: ForwardingClient.RequestOptions): core.HttpResponsePromise<AgentMail.ForwardingVerificationStarted>;
100
+ private __startVerification;
101
+ /**
102
+ * Submit the code emailed by Start Verification to verify the address. A code allows 10 wrong
103
+ * attempts, then stops working even with the right code, and Start Verification sends a new one.
104
+ * Needs an organization- or pod-scoped API key in an organization that has completed agent
105
+ * verification.
106
+ *
107
+ * **CLI:**
108
+ * ```bash
109
+ * agentmail forwarding confirm-verification --destination ops@example.com --code 7KQ2M-XW9PD
110
+ * ```
111
+ *
112
+ * @param {AgentMail.ConfirmForwardingVerificationRequest} request
113
+ * @param {ForwardingClient.RequestOptions} requestOptions - Request-specific configuration.
114
+ *
115
+ * @throws {@link AgentMail.ValidationError}
116
+ * @throws {@link AgentMail.ForwardingForbiddenError}
117
+ * @throws {@link AgentMail.ConflictError}
118
+ *
119
+ * @example
120
+ * await client.forwarding.confirmVerification({
121
+ * destination: "destination",
122
+ * code: "code"
123
+ * })
124
+ */
125
+ confirmVerification(request: AgentMail.ConfirmForwardingVerificationRequest, requestOptions?: ForwardingClient.RequestOptions): core.HttpResponsePromise<AgentMail.ForwardingVerificationConfirmed>;
126
+ private __confirmVerification;
127
+ }