agentmail 0.5.21 → 0.5.22
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 +6 -0
- package/dist/cjs/Client.js +36 -26
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +37 -0
- package/dist/cjs/api/resources/accounts/client/Client.js +192 -0
- package/dist/cjs/api/resources/accounts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/client/index.js +17 -0
- package/dist/cjs/api/resources/accounts/client/requests/ListAccountsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/accounts/client/requests/ListAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/accounts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/exports.js +21 -0
- package/dist/cjs/api/resources/accounts/index.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/index.js +18 -0
- package/dist/cjs/api/resources/accounts/types/Account.d.ts +19 -0
- package/dist/cjs/api/resources/accounts/types/Account.js +3 -0
- package/dist/cjs/api/resources/accounts/types/AccountId.d.ts +4 -0
- package/dist/cjs/api/resources/accounts/types/AccountId.js +3 -0
- package/dist/cjs/api/resources/accounts/types/ListAccountsResponse.d.ts +7 -0
- package/dist/cjs/api/resources/accounts/types/ListAccountsResponse.js +3 -0
- package/dist/cjs/api/resources/accounts/types/ProviderId.d.ts +4 -0
- package/dist/cjs/api/resources/accounts/types/ProviderId.js +3 -0
- package/dist/cjs/api/resources/accounts/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/accounts/types/index.js +20 -0
- package/dist/cjs/api/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/index.js +10 -4
- package/dist/cjs/api/resources/providers/client/Client.d.ts +86 -0
- package/dist/cjs/api/resources/providers/client/Client.js +423 -0
- package/dist/cjs/api/resources/providers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/providers/client/index.js +17 -0
- package/dist/cjs/api/resources/providers/client/requests/ListProviderAccountsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/providers/client/requests/ListProviderAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/providers/client/requests/ListProvidersRequest.d.ts +9 -0
- package/dist/cjs/api/resources/providers/client/requests/ListProvidersRequest.js +3 -0
- package/dist/cjs/api/resources/providers/client/requests/SearchProvidersRequest.d.ts +12 -0
- package/dist/cjs/api/resources/providers/client/requests/SearchProvidersRequest.js +3 -0
- package/dist/cjs/api/resources/providers/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/providers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/providers/exports.d.ts +2 -0
- package/dist/cjs/api/resources/providers/exports.js +21 -0
- package/dist/cjs/api/resources/providers/index.d.ts +2 -0
- package/dist/cjs/api/resources/providers/index.js +18 -0
- package/dist/cjs/api/resources/providers/types/ConnectProviderAccepted.d.ts +8 -0
- package/dist/cjs/api/resources/providers/types/ConnectProviderAccepted.js +3 -0
- package/dist/cjs/api/resources/providers/types/ConnectProviderBody.d.ts +7 -0
- package/dist/cjs/api/resources/providers/types/ConnectProviderBody.js +3 -0
- package/dist/cjs/api/resources/providers/types/ListProviderAccountsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/providers/types/ListProviderAccountsResponse.js +3 -0
- package/dist/cjs/api/resources/providers/types/ListProvidersResponse.d.ts +7 -0
- package/dist/cjs/api/resources/providers/types/ListProvidersResponse.js +3 -0
- package/dist/cjs/api/resources/providers/types/Provider.d.ts +14 -0
- package/dist/cjs/api/resources/providers/types/Provider.js +3 -0
- package/dist/cjs/api/resources/providers/types/SearchProvidersResponse.d.ts +6 -0
- package/dist/cjs/api/resources/providers/types/SearchProvidersResponse.js +3 -0
- package/dist/cjs/api/resources/providers/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/providers/types/index.js +22 -0
- package/dist/cjs/serialization/resources/accounts/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/accounts/index.js +17 -0
- package/dist/cjs/serialization/resources/accounts/types/Account.d.ts +22 -0
- package/dist/cjs/serialization/resources/accounts/types/Account.js +54 -0
- package/dist/cjs/serialization/resources/accounts/types/AccountId.d.ts +7 -0
- package/dist/cjs/serialization/resources/accounts/types/AccountId.js +39 -0
- package/dist/cjs/serialization/resources/accounts/types/ListAccountsResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/accounts/types/ListAccountsResponse.js +48 -0
- package/dist/cjs/serialization/resources/accounts/types/ProviderId.d.ts +7 -0
- package/dist/cjs/serialization/resources/accounts/types/ProviderId.js +39 -0
- package/dist/cjs/serialization/resources/accounts/types/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/accounts/types/index.js +20 -0
- package/dist/cjs/serialization/resources/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/index.js +5 -1
- package/dist/cjs/serialization/resources/providers/client/connect.d.ts +8 -0
- package/dist/cjs/serialization/resources/providers/client/connect.js +6 -0
- package/dist/cjs/serialization/resources/providers/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/providers/client/index.js +37 -0
- package/dist/cjs/serialization/resources/providers/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/providers/index.js +18 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderAccepted.d.ts +11 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderAccepted.js +43 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderBody.d.ts +11 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderBody.js +43 -0
- package/dist/cjs/serialization/resources/providers/types/ListProviderAccountsResponse.d.ts +18 -0
- package/dist/cjs/serialization/resources/providers/types/ListProviderAccountsResponse.js +50 -0
- package/dist/cjs/serialization/resources/providers/types/ListProvidersResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/providers/types/ListProvidersResponse.js +48 -0
- package/dist/cjs/serialization/resources/providers/types/Provider.d.ts +16 -0
- package/dist/cjs/serialization/resources/providers/types/Provider.js +48 -0
- package/dist/cjs/serialization/resources/providers/types/SearchProvidersResponse.d.ts +14 -0
- package/dist/cjs/serialization/resources/providers/types/SearchProvidersResponse.js +46 -0
- package/dist/cjs/serialization/resources/providers/types/index.d.ts +6 -0
- package/dist/cjs/serialization/resources/providers/types/index.js +22 -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 +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/accounts/client/Client.d.mts +37 -0
- package/dist/esm/api/resources/accounts/client/Client.mjs +155 -0
- package/dist/esm/api/resources/accounts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/client/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/client/requests/ListAccountsRequest.d.mts +10 -0
- package/dist/esm/api/resources/accounts/client/requests/ListAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/exports.d.mts +2 -0
- package/dist/esm/api/resources/accounts/exports.mjs +3 -0
- package/dist/esm/api/resources/accounts/index.d.mts +2 -0
- package/dist/esm/api/resources/accounts/index.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/Account.d.mts +19 -0
- package/dist/esm/api/resources/accounts/types/Account.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/AccountId.d.mts +4 -0
- package/dist/esm/api/resources/accounts/types/AccountId.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/ListAccountsResponse.d.mts +7 -0
- package/dist/esm/api/resources/accounts/types/ListAccountsResponse.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/ProviderId.d.mts +4 -0
- package/dist/esm/api/resources/accounts/types/ProviderId.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/index.d.mts +4 -0
- package/dist/esm/api/resources/accounts/types/index.mjs +4 -0
- package/dist/esm/api/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/index.mjs +6 -0
- package/dist/esm/api/resources/providers/client/Client.d.mts +86 -0
- package/dist/esm/api/resources/providers/client/Client.mjs +386 -0
- package/dist/esm/api/resources/providers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/providers/client/index.mjs +1 -0
- package/dist/esm/api/resources/providers/client/requests/ListProviderAccountsRequest.d.mts +9 -0
- package/dist/esm/api/resources/providers/client/requests/ListProviderAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/providers/client/requests/ListProvidersRequest.d.mts +9 -0
- package/dist/esm/api/resources/providers/client/requests/ListProvidersRequest.mjs +2 -0
- package/dist/esm/api/resources/providers/client/requests/SearchProvidersRequest.d.mts +12 -0
- package/dist/esm/api/resources/providers/client/requests/SearchProvidersRequest.mjs +2 -0
- package/dist/esm/api/resources/providers/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/providers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/providers/exports.d.mts +2 -0
- package/dist/esm/api/resources/providers/exports.mjs +3 -0
- package/dist/esm/api/resources/providers/index.d.mts +2 -0
- package/dist/esm/api/resources/providers/index.mjs +2 -0
- package/dist/esm/api/resources/providers/types/ConnectProviderAccepted.d.mts +8 -0
- package/dist/esm/api/resources/providers/types/ConnectProviderAccepted.mjs +2 -0
- package/dist/esm/api/resources/providers/types/ConnectProviderBody.d.mts +7 -0
- package/dist/esm/api/resources/providers/types/ConnectProviderBody.mjs +2 -0
- package/dist/esm/api/resources/providers/types/ListProviderAccountsResponse.d.mts +8 -0
- package/dist/esm/api/resources/providers/types/ListProviderAccountsResponse.mjs +2 -0
- package/dist/esm/api/resources/providers/types/ListProvidersResponse.d.mts +7 -0
- package/dist/esm/api/resources/providers/types/ListProvidersResponse.mjs +2 -0
- package/dist/esm/api/resources/providers/types/Provider.d.mts +14 -0
- package/dist/esm/api/resources/providers/types/Provider.mjs +2 -0
- package/dist/esm/api/resources/providers/types/SearchProvidersResponse.d.mts +6 -0
- package/dist/esm/api/resources/providers/types/SearchProvidersResponse.mjs +2 -0
- package/dist/esm/api/resources/providers/types/index.d.mts +6 -0
- package/dist/esm/api/resources/providers/types/index.mjs +6 -0
- package/dist/esm/serialization/resources/accounts/index.d.mts +1 -0
- package/dist/esm/serialization/resources/accounts/index.mjs +1 -0
- package/dist/esm/serialization/resources/accounts/types/Account.d.mts +22 -0
- package/dist/esm/serialization/resources/accounts/types/Account.mjs +18 -0
- package/dist/esm/serialization/resources/accounts/types/AccountId.d.mts +7 -0
- package/dist/esm/serialization/resources/accounts/types/AccountId.mjs +3 -0
- package/dist/esm/serialization/resources/accounts/types/ListAccountsResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/accounts/types/ListAccountsResponse.mjs +12 -0
- package/dist/esm/serialization/resources/accounts/types/ProviderId.d.mts +7 -0
- package/dist/esm/serialization/resources/accounts/types/ProviderId.mjs +3 -0
- package/dist/esm/serialization/resources/accounts/types/index.d.mts +4 -0
- package/dist/esm/serialization/resources/accounts/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/index.d.mts +4 -0
- package/dist/esm/serialization/resources/index.mjs +4 -0
- package/dist/esm/serialization/resources/providers/client/connect.d.mts +8 -0
- package/dist/esm/serialization/resources/providers/client/connect.mjs +3 -0
- package/dist/esm/serialization/resources/providers/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/providers/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/providers/index.d.mts +2 -0
- package/dist/esm/serialization/resources/providers/index.mjs +2 -0
- package/dist/esm/serialization/resources/providers/types/ConnectProviderAccepted.d.mts +11 -0
- package/dist/esm/serialization/resources/providers/types/ConnectProviderAccepted.mjs +7 -0
- package/dist/esm/serialization/resources/providers/types/ConnectProviderBody.d.mts +11 -0
- package/dist/esm/serialization/resources/providers/types/ConnectProviderBody.mjs +7 -0
- package/dist/esm/serialization/resources/providers/types/ListProviderAccountsResponse.d.mts +18 -0
- package/dist/esm/serialization/resources/providers/types/ListProviderAccountsResponse.mjs +14 -0
- package/dist/esm/serialization/resources/providers/types/ListProvidersResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/providers/types/ListProvidersResponse.mjs +12 -0
- package/dist/esm/serialization/resources/providers/types/Provider.d.mts +16 -0
- package/dist/esm/serialization/resources/providers/types/Provider.mjs +12 -0
- package/dist/esm/serialization/resources/providers/types/SearchProvidersResponse.d.mts +14 -0
- package/dist/esm/serialization/resources/providers/types/SearchProvidersResponse.mjs +10 -0
- package/dist/esm/serialization/resources/providers/types/index.d.mts +6 -0
- package/dist/esm/serialization/resources/providers/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +1 -0
- package/package.json +23 -1
- package/reference.md +435 -0
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.22",
|
|
47
|
+
"User-Agent": "agentmail/0.5.22",
|
|
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
|
@@ -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
|
/**
|
package/dist/cjs/Client.js
CHANGED
|
@@ -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/
|
|
48
|
-
const Client_js_2 = require("./api/resources/
|
|
49
|
-
const Client_js_3 = require("./api/resources/
|
|
50
|
-
const Client_js_4 = require("./api/resources/
|
|
51
|
-
const Client_js_5 = require("./api/resources/
|
|
52
|
-
const Client_js_6 = require("./api/resources/
|
|
53
|
-
const Client_js_7 = require("./api/resources/
|
|
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/
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 @@
|
|
|
1
|
+
export type { ListAccountsRequest } from "./ListAccountsRequest.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,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,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);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./accounts/client/requests/index.js";
|
|
2
|
+
export * as accounts from "./accounts/index.js";
|
|
3
|
+
export * from "./accounts/types/index.js";
|
|
1
4
|
export * as agent from "./agent/index.js";
|
|
2
5
|
export * from "./agent/types/index.js";
|
|
3
6
|
export * from "./apiKeys/client/requests/index.js";
|
|
@@ -30,6 +33,9 @@ export * from "./metrics/types/index.js";
|
|
|
30
33
|
export * as organizations from "./organizations/index.js";
|
|
31
34
|
export * from "./organizations/types/index.js";
|
|
32
35
|
export * as pods from "./pods/index.js";
|
|
36
|
+
export * from "./providers/client/requests/index.js";
|
|
37
|
+
export * as providers from "./providers/index.js";
|
|
38
|
+
export * from "./providers/types/index.js";
|
|
33
39
|
export * from "./threads/client/requests/index.js";
|
|
34
40
|
export * as threads from "./threads/index.js";
|
|
35
41
|
export * from "./threads/types/index.js";
|