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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +21 -16
- package/dist/cjs/api/resources/forwarding/client/Client.d.ts +127 -0
- package/dist/cjs/api/resources/forwarding/client/Client.js +503 -0
- package/dist/cjs/api/resources/forwarding/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/forwarding/client/index.js +2 -0
- package/dist/cjs/api/resources/forwarding/errors/ForwardingForbiddenError.d.ts +6 -0
- package/dist/cjs/api/resources/forwarding/errors/ForwardingForbiddenError.js +54 -0
- package/dist/cjs/api/resources/forwarding/errors/ForwardingRateLimitError.d.ts +6 -0
- package/dist/cjs/api/resources/forwarding/errors/ForwardingRateLimitError.js +54 -0
- package/dist/cjs/api/resources/forwarding/errors/index.d.ts +2 -0
- package/dist/cjs/api/resources/forwarding/errors/index.js +18 -0
- package/dist/cjs/api/resources/forwarding/exports.d.ts +2 -0
- package/dist/cjs/api/resources/forwarding/exports.js +21 -0
- package/dist/cjs/api/resources/forwarding/index.d.ts +3 -0
- package/dist/cjs/api/resources/forwarding/index.js +19 -0
- package/dist/cjs/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.ts +10 -0
- package/dist/cjs/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/Forwarding.d.ts +15 -0
- package/dist/cjs/api/resources/forwarding/types/Forwarding.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/ForwardingDestination.d.ts +5 -0
- package/dist/cjs/api/resources/forwarding/types/ForwardingDestination.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationConfirmed.d.ts +4 -0
- package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationConfirmed.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationStarted.d.ts +4 -0
- package/dist/cjs/api/resources/forwarding/types/ForwardingVerificationStarted.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/StartForwardingVerificationRequest.d.ts +5 -0
- package/dist/cjs/api/resources/forwarding/types/StartForwardingVerificationRequest.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/UpdateForwardingRequest.d.ts +9 -0
- package/dist/cjs/api/resources/forwarding/types/UpdateForwardingRequest.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/UpdateForwardingResponse.d.ts +8 -0
- package/dist/cjs/api/resources/forwarding/types/UpdateForwardingResponse.js +3 -0
- package/dist/cjs/api/resources/forwarding/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/forwarding/types/index.js +24 -0
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +7 -1
- package/dist/cjs/api/resources/inboxes/client/Client.js +27 -11
- package/dist/cjs/api/resources/inboxes/resources/forwarding/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/client/Client.js +317 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/client/index.js +2 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/exports.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/exports.js +21 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/forwarding/index.js +17 -0
- package/dist/cjs/api/resources/inboxes/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/index.js +2 -1
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/messages/types/Message.d.ts +2 -0
- package/dist/cjs/api/resources/messages/types/MessageItem.d.ts +2 -0
- package/dist/cjs/api/resources/messages/types/MessageOpenedAt.d.ts +6 -0
- package/dist/cjs/api/resources/messages/types/MessageOpenedAt.js +3 -0
- package/dist/cjs/api/resources/messages/types/MessageTrackOpens.d.ts +5 -0
- package/dist/cjs/api/resources/messages/types/MessageTrackOpens.js +3 -0
- package/dist/cjs/api/resources/messages/types/TrackOpens.d.ts +4 -3
- package/dist/cjs/api/resources/messages/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/types/index.js +2 -0
- package/dist/cjs/api/resources/pods/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/pods/client/Client.js +15 -10
- package/dist/cjs/api/resources/pods/resources/forwarding/client/Client.d.ts +80 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/client/Client.js +318 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/client/index.js +2 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/exports.d.ts +2 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/exports.js +21 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/forwarding/index.js +17 -0
- package/dist/cjs/api/resources/pods/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/index.js +2 -1
- package/dist/cjs/serialization/resources/forwarding/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/forwarding/index.js +17 -0
- package/dist/cjs/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.js +43 -0
- package/dist/cjs/serialization/resources/forwarding/types/Forwarding.d.ts +11 -0
- package/dist/cjs/serialization/resources/forwarding/types/Forwarding.js +43 -0
- package/dist/cjs/serialization/resources/forwarding/types/ForwardingDestination.d.ts +7 -0
- package/dist/cjs/serialization/resources/forwarding/types/ForwardingDestination.js +39 -0
- package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.d.ts +9 -0
- package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.js +41 -0
- package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationStarted.d.ts +9 -0
- package/dist/cjs/serialization/resources/forwarding/types/ForwardingVerificationStarted.js +41 -0
- package/dist/cjs/serialization/resources/forwarding/types/StartForwardingVerificationRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/forwarding/types/StartForwardingVerificationRequest.js +42 -0
- package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingRequest.js +42 -0
- package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/forwarding/types/UpdateForwardingResponse.js +42 -0
- package/dist/cjs/serialization/resources/forwarding/types/index.d.ts +8 -0
- package/dist/cjs/serialization/resources/forwarding/types/index.js +24 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/messages/types/Message.d.ts +4 -0
- package/dist/cjs/serialization/resources/messages/types/Message.js +4 -0
- package/dist/cjs/serialization/resources/messages/types/MessageItem.d.ts +4 -0
- package/dist/cjs/serialization/resources/messages/types/MessageItem.js +4 -0
- package/dist/cjs/serialization/resources/messages/types/MessageOpenedAt.d.ts +7 -0
- package/dist/cjs/serialization/resources/messages/types/MessageOpenedAt.js +39 -0
- package/dist/cjs/serialization/resources/messages/types/MessageTrackOpens.d.ts +7 -0
- package/dist/cjs/serialization/resources/messages/types/MessageTrackOpens.js +39 -0
- package/dist/cjs/serialization/resources/messages/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/messages/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/forwarding/client/Client.d.mts +127 -0
- package/dist/esm/api/resources/forwarding/client/Client.mjs +466 -0
- package/dist/esm/api/resources/forwarding/client/index.d.mts +1 -0
- package/dist/esm/api/resources/forwarding/client/index.mjs +1 -0
- package/dist/esm/api/resources/forwarding/errors/ForwardingForbiddenError.d.mts +6 -0
- package/dist/esm/api/resources/forwarding/errors/ForwardingForbiddenError.mjs +17 -0
- package/dist/esm/api/resources/forwarding/errors/ForwardingRateLimitError.d.mts +6 -0
- package/dist/esm/api/resources/forwarding/errors/ForwardingRateLimitError.mjs +17 -0
- package/dist/esm/api/resources/forwarding/errors/index.d.mts +2 -0
- package/dist/esm/api/resources/forwarding/errors/index.mjs +2 -0
- package/dist/esm/api/resources/forwarding/exports.d.mts +2 -0
- package/dist/esm/api/resources/forwarding/exports.mjs +3 -0
- package/dist/esm/api/resources/forwarding/index.d.mts +3 -0
- package/dist/esm/api/resources/forwarding/index.mjs +3 -0
- package/dist/esm/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.mts +10 -0
- package/dist/esm/api/resources/forwarding/types/ConfirmForwardingVerificationRequest.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/Forwarding.d.mts +15 -0
- package/dist/esm/api/resources/forwarding/types/Forwarding.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/ForwardingDestination.d.mts +5 -0
- package/dist/esm/api/resources/forwarding/types/ForwardingDestination.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/ForwardingVerificationConfirmed.d.mts +4 -0
- package/dist/esm/api/resources/forwarding/types/ForwardingVerificationConfirmed.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/ForwardingVerificationStarted.d.mts +4 -0
- package/dist/esm/api/resources/forwarding/types/ForwardingVerificationStarted.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/StartForwardingVerificationRequest.d.mts +5 -0
- package/dist/esm/api/resources/forwarding/types/StartForwardingVerificationRequest.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/UpdateForwardingRequest.d.mts +9 -0
- package/dist/esm/api/resources/forwarding/types/UpdateForwardingRequest.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/UpdateForwardingResponse.d.mts +8 -0
- package/dist/esm/api/resources/forwarding/types/UpdateForwardingResponse.mjs +2 -0
- package/dist/esm/api/resources/forwarding/types/index.d.mts +8 -0
- package/dist/esm/api/resources/forwarding/types/index.mjs +8 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +7 -1
- package/dist/esm/api/resources/inboxes/client/Client.mjs +17 -1
- package/dist/esm/api/resources/inboxes/resources/forwarding/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/client/Client.mjs +280 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/client/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/client/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/exports.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/exports.mjs +3 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/forwarding/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/messages/types/Message.d.mts +2 -0
- package/dist/esm/api/resources/messages/types/MessageItem.d.mts +2 -0
- package/dist/esm/api/resources/messages/types/MessageOpenedAt.d.mts +6 -0
- package/dist/esm/api/resources/messages/types/MessageOpenedAt.mjs +2 -0
- package/dist/esm/api/resources/messages/types/MessageTrackOpens.d.mts +5 -0
- package/dist/esm/api/resources/messages/types/MessageTrackOpens.mjs +2 -0
- package/dist/esm/api/resources/messages/types/TrackOpens.d.mts +4 -3
- package/dist/esm/api/resources/messages/types/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/types/index.mjs +2 -0
- package/dist/esm/api/resources/pods/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/pods/client/Client.mjs +5 -0
- package/dist/esm/api/resources/pods/resources/forwarding/client/Client.d.mts +80 -0
- package/dist/esm/api/resources/pods/resources/forwarding/client/Client.mjs +281 -0
- package/dist/esm/api/resources/pods/resources/forwarding/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/forwarding/client/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/forwarding/exports.d.mts +2 -0
- package/dist/esm/api/resources/pods/resources/forwarding/exports.mjs +3 -0
- package/dist/esm/api/resources/pods/resources/forwarding/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/forwarding/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/index.mjs +1 -0
- package/dist/esm/serialization/resources/forwarding/index.d.mts +1 -0
- package/dist/esm/serialization/resources/forwarding/index.mjs +1 -0
- package/dist/esm/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/forwarding/types/ConfirmForwardingVerificationRequest.mjs +7 -0
- package/dist/esm/serialization/resources/forwarding/types/Forwarding.d.mts +11 -0
- package/dist/esm/serialization/resources/forwarding/types/Forwarding.mjs +7 -0
- package/dist/esm/serialization/resources/forwarding/types/ForwardingDestination.d.mts +7 -0
- package/dist/esm/serialization/resources/forwarding/types/ForwardingDestination.mjs +3 -0
- package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.d.mts +9 -0
- package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationConfirmed.mjs +5 -0
- package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationStarted.d.mts +9 -0
- package/dist/esm/serialization/resources/forwarding/types/ForwardingVerificationStarted.mjs +5 -0
- package/dist/esm/serialization/resources/forwarding/types/StartForwardingVerificationRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/forwarding/types/StartForwardingVerificationRequest.mjs +6 -0
- package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingRequest.mjs +6 -0
- package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/forwarding/types/UpdateForwardingResponse.mjs +6 -0
- package/dist/esm/serialization/resources/forwarding/types/index.d.mts +8 -0
- package/dist/esm/serialization/resources/forwarding/types/index.mjs +8 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/messages/types/Message.d.mts +4 -0
- package/dist/esm/serialization/resources/messages/types/Message.mjs +4 -0
- package/dist/esm/serialization/resources/messages/types/MessageItem.d.mts +4 -0
- package/dist/esm/serialization/resources/messages/types/MessageItem.mjs +4 -0
- package/dist/esm/serialization/resources/messages/types/MessageOpenedAt.d.mts +7 -0
- package/dist/esm/serialization/resources/messages/types/MessageOpenedAt.mjs +3 -0
- package/dist/esm/serialization/resources/messages/types/MessageTrackOpens.d.mts +7 -0
- package/dist/esm/serialization/resources/messages/types/MessageTrackOpens.mjs +3 -0
- package/dist/esm/serialization/resources/messages/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/messages/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +3 -1
- package/package.json +34 -1
- package/reference.md +1026 -239
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "agentmail/0.5.
|
|
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);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -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;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -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/
|
|
55
|
-
const Client_js_9 = require("./api/resources/
|
|
56
|
-
const Client_js_10 = require("./api/resources/
|
|
57
|
-
const Client_js_11 = require("./api/resources/
|
|
58
|
-
const Client_js_12 = require("./api/resources/
|
|
59
|
-
const Client_js_13 = require("./api/resources/
|
|
60
|
-
const Client_js_14 = require("./api/resources/
|
|
61
|
-
const Client_js_15 = require("./api/resources/
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
+
}
|