agentmail 0.5.32 → 0.5.34
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 -3
- package/dist/cjs/Client.js +21 -21
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/accounts/client/Client.js +6 -6
- package/dist/cjs/api/resources/accounts/types/Account.d.ts +7 -7
- package/dist/cjs/api/resources/accounts/types/UpdateAccountStatus.d.ts +1 -1
- package/dist/cjs/api/resources/accounts/types/UpdateAccountStatus.js +1 -1
- package/dist/cjs/api/resources/accounts/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/accounts/types/index.js +0 -1
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.js +2 -2
- package/dist/cjs/api/resources/apiKeys/types/AcceptDisclosure.d.ts +2 -2
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +7 -5
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.d.ts +2 -2
- package/dist/cjs/api/resources/apps/client/Client.d.ts +92 -0
- package/dist/cjs/api/resources/{providers → apps}/client/Client.js +67 -51
- package/dist/cjs/api/resources/{providers/client/requests/ListProviderAccountsRequest.d.ts → apps/client/requests/ListAppAccountsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{providers/client/requests/ListProvidersRequest.d.ts → apps/client/requests/ListAppsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{providers/client/requests/SearchProvidersRequest.d.ts → apps/client/requests/SearchAppsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/apps/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/apps/errors/AppSignupLimitError.d.ts +6 -0
- package/dist/cjs/api/resources/apps/errors/AppSignupLimitError.js +54 -0
- package/dist/cjs/api/resources/apps/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/apps/errors/index.js +17 -0
- package/dist/cjs/api/resources/apps/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{providers → apps}/exports.js +2 -2
- package/dist/cjs/{serialization/resources/providers → api/resources/apps}/index.d.ts +1 -0
- package/dist/cjs/{serialization/resources/providers → api/resources/apps}/index.js +1 -0
- package/dist/cjs/api/resources/apps/types/App.d.ts +16 -0
- package/dist/cjs/api/resources/apps/types/AppId.d.ts +4 -0
- package/dist/cjs/api/resources/{providers/types/ConnectProviderBody.d.ts → apps/types/ConnectAppBody.d.ts} +1 -1
- package/dist/cjs/api/resources/{providers/types/ListProviderAccountsResponse.d.ts → apps/types/ListAppAccountsResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/{providers/types/ListProvidersResponse.d.ts → apps/types/ListAppsResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/{providers/types/SearchProvidersResponse.d.ts → apps/types/SearchAppsResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/apps/types/index.d.ts +9 -0
- package/dist/cjs/{serialization/resources/providers → api/resources/apps}/types/index.js +6 -5
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/inboxes/client/Client.js +11 -1
- package/dist/cjs/api/resources/inboxes/resources/accounts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/accounts/client/Client.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +4 -3
- package/dist/cjs/api/resources/index.js +5 -4
- package/dist/cjs/api/resources/pods/resources/accounts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/accounts/client/Client.js +1 -1
- package/dist/cjs/serialization/resources/accounts/types/Account.d.ts +3 -3
- package/dist/cjs/serialization/resources/accounts/types/Account.js +3 -3
- package/dist/cjs/serialization/resources/accounts/types/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/accounts/types/index.js +0 -1
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +3 -2
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +3 -2
- package/dist/cjs/serialization/resources/{providers → apps}/client/connect.d.ts +3 -3
- package/dist/cjs/serialization/resources/{providers → apps}/client/connect.js +2 -2
- package/dist/cjs/serialization/resources/{providers/types/Provider.d.ts → apps/types/App.d.ts} +4 -4
- package/dist/cjs/serialization/resources/{providers/types/Provider.js → apps/types/App.js} +4 -4
- package/dist/cjs/serialization/resources/{accounts/types/ProviderId.d.ts → apps/types/AppId.d.ts} +2 -2
- package/dist/cjs/serialization/resources/{accounts/types/ProviderId.js → apps/types/AppId.js} +2 -2
- package/dist/cjs/serialization/resources/{providers/types/ConnectProviderBody.d.ts → apps/types/ConnectAppBody.d.ts} +2 -2
- package/dist/cjs/serialization/resources/{providers/types/ConnectProviderBody.js → apps/types/ConnectAppBody.js} +2 -2
- package/dist/cjs/serialization/resources/{providers/types/ListProviderAccountsResponse.d.ts → apps/types/ListAppAccountsResponse.d.ts} +4 -4
- package/dist/cjs/serialization/resources/{providers/types/ListProviderAccountsResponse.js → apps/types/ListAppAccountsResponse.js} +4 -4
- package/dist/cjs/serialization/resources/{providers/types/ListProvidersResponse.d.ts → apps/types/ListAppsResponse.d.ts} +4 -4
- package/dist/cjs/serialization/resources/{providers/types/ListProvidersResponse.js → apps/types/ListAppsResponse.js} +4 -4
- package/dist/cjs/serialization/resources/{providers/types/SearchProvidersResponse.d.ts → apps/types/SearchAppsResponse.d.ts} +4 -4
- package/dist/cjs/serialization/resources/{providers/types/SearchProvidersResponse.js → apps/types/SearchAppsResponse.js} +4 -4
- package/dist/cjs/serialization/resources/apps/types/index.d.ts +9 -0
- package/dist/cjs/{api/resources/providers → serialization/resources/apps}/types/index.js +6 -5
- package/dist/cjs/serialization/resources/index.d.ts +2 -2
- package/dist/cjs/serialization/resources/index.js +3 -3
- 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 -3
- package/dist/esm/Client.mjs +5 -5
- package/dist/esm/api/resources/accounts/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/accounts/client/Client.mjs +6 -6
- package/dist/esm/api/resources/accounts/types/Account.d.mts +7 -7
- package/dist/esm/api/resources/accounts/types/UpdateAccountStatus.d.mts +1 -1
- package/dist/esm/api/resources/accounts/types/UpdateAccountStatus.mjs +1 -1
- package/dist/esm/api/resources/accounts/types/index.d.mts +0 -1
- package/dist/esm/api/resources/accounts/types/index.mjs +0 -1
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/types/AcceptDisclosure.d.mts +2 -2
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +7 -5
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.d.mts +2 -2
- package/dist/esm/api/resources/apps/client/Client.d.mts +92 -0
- package/dist/esm/api/resources/{providers → apps}/client/Client.mjs +65 -49
- package/dist/esm/api/resources/{providers/client/requests/ListProviderAccountsRequest.d.mts → apps/client/requests/ListAppAccountsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{providers/client/requests/ListProvidersRequest.d.mts → apps/client/requests/ListAppsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{providers/client/requests/SearchProvidersRequest.d.mts → apps/client/requests/SearchAppsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/apps/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/apps/errors/AppSignupLimitError.d.mts +6 -0
- package/dist/esm/api/resources/apps/errors/AppSignupLimitError.mjs +17 -0
- package/dist/esm/api/resources/apps/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/apps/errors/index.mjs +1 -0
- package/dist/esm/api/resources/apps/exports.d.mts +2 -0
- package/dist/esm/api/resources/{providers → apps}/exports.mjs +1 -1
- package/dist/esm/{serialization/resources/providers → api/resources/apps}/index.d.mts +1 -0
- package/dist/esm/{serialization/resources/providers → api/resources/apps}/index.mjs +1 -0
- package/dist/esm/api/resources/apps/types/App.d.mts +16 -0
- package/dist/esm/api/resources/apps/types/AppId.d.mts +4 -0
- package/dist/esm/api/resources/{providers/types/ConnectProviderBody.d.mts → apps/types/ConnectAppBody.d.mts} +1 -1
- package/dist/esm/api/resources/{providers/types/ListProviderAccountsResponse.d.mts → apps/types/ListAppAccountsResponse.d.mts} +2 -2
- package/dist/esm/api/resources/{providers/types/ListProvidersResponse.d.mts → apps/types/ListAppsResponse.d.mts} +2 -2
- package/dist/esm/api/resources/{providers/types/SearchProvidersResponse.d.mts → apps/types/SearchAppsResponse.d.mts} +2 -2
- package/dist/esm/api/resources/apps/types/index.d.mts +9 -0
- package/dist/esm/api/resources/apps/types/index.mjs +9 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/inboxes/client/Client.mjs +11 -1
- package/dist/esm/api/resources/inboxes/resources/accounts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/accounts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +4 -3
- package/dist/esm/api/resources/index.mjs +4 -3
- package/dist/esm/api/resources/pods/resources/accounts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/accounts/client/Client.mjs +1 -1
- package/dist/esm/serialization/resources/accounts/types/Account.d.mts +3 -3
- package/dist/esm/serialization/resources/accounts/types/Account.mjs +3 -3
- package/dist/esm/serialization/resources/accounts/types/index.d.mts +0 -1
- package/dist/esm/serialization/resources/accounts/types/index.mjs +0 -1
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +3 -2
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +3 -2
- package/dist/esm/serialization/resources/{providers → apps}/client/connect.d.mts +3 -3
- package/dist/esm/serialization/resources/apps/client/connect.mjs +3 -0
- package/dist/esm/serialization/resources/{providers/types/Provider.d.mts → apps/types/App.d.mts} +4 -4
- package/dist/esm/serialization/resources/{providers/types/Provider.mjs → apps/types/App.mjs} +3 -3
- package/dist/esm/serialization/resources/{accounts/types/ProviderId.d.mts → apps/types/AppId.d.mts} +2 -2
- package/dist/esm/serialization/resources/{accounts/types/ProviderId.mjs → apps/types/AppId.mjs} +1 -1
- package/dist/esm/serialization/resources/{providers/types/ConnectProviderBody.d.mts → apps/types/ConnectAppBody.d.mts} +2 -2
- package/dist/esm/serialization/resources/{providers/types/ConnectProviderBody.mjs → apps/types/ConnectAppBody.mjs} +1 -1
- package/dist/esm/serialization/resources/{providers/types/ListProviderAccountsResponse.d.mts → apps/types/ListAppAccountsResponse.d.mts} +4 -4
- package/dist/esm/serialization/resources/{providers/types/ListProviderAccountsResponse.mjs → apps/types/ListAppAccountsResponse.mjs} +3 -3
- package/dist/esm/serialization/resources/{providers/types/ListProvidersResponse.d.mts → apps/types/ListAppsResponse.d.mts} +4 -4
- package/dist/esm/serialization/resources/{providers/types/ListProvidersResponse.mjs → apps/types/ListAppsResponse.mjs} +3 -3
- package/dist/esm/serialization/resources/{providers/types/SearchProvidersResponse.d.mts → apps/types/SearchAppsResponse.d.mts} +4 -4
- package/dist/esm/serialization/resources/{providers/types/SearchProvidersResponse.mjs → apps/types/SearchAppsResponse.mjs} +3 -3
- package/dist/esm/serialization/resources/apps/types/index.d.mts +9 -0
- package/dist/esm/serialization/resources/apps/types/index.mjs +9 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -2
- package/dist/esm/serialization/resources/index.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +8 -7
- package/package.json +12 -12
- package/reference.md +1229 -1209
- package/dist/cjs/api/resources/accounts/types/ProviderId.d.ts +0 -4
- package/dist/cjs/api/resources/providers/client/Client.d.ts +0 -84
- package/dist/cjs/api/resources/providers/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/providers/exports.d.ts +0 -2
- package/dist/cjs/api/resources/providers/types/Provider.d.ts +0 -16
- package/dist/cjs/api/resources/providers/types/index.d.ts +0 -8
- package/dist/cjs/serialization/resources/providers/types/index.d.ts +0 -8
- package/dist/esm/api/resources/accounts/types/ProviderId.d.mts +0 -4
- package/dist/esm/api/resources/providers/client/Client.d.mts +0 -84
- package/dist/esm/api/resources/providers/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/providers/exports.d.mts +0 -2
- package/dist/esm/api/resources/providers/types/Provider.d.mts +0 -16
- package/dist/esm/api/resources/providers/types/index.d.mts +0 -8
- package/dist/esm/api/resources/providers/types/index.mjs +0 -8
- package/dist/esm/serialization/resources/providers/client/connect.mjs +0 -3
- package/dist/esm/serialization/resources/providers/types/index.d.mts +0 -8
- package/dist/esm/serialization/resources/providers/types/index.mjs +0 -8
- /package/dist/cjs/api/resources/{providers → apps}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{providers → apps}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{accounts/types/ProviderId.js → apps/client/requests/ListAppAccountsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{providers/client/requests/ListProviderAccountsRequest.js → apps/client/requests/ListAppsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{providers/client/requests/ListProvidersRequest.js → apps/client/requests/SearchAppsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{providers → apps}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{providers/client/requests/SearchProvidersRequest.js → apps/types/App.js} +0 -0
- /package/dist/cjs/api/resources/{providers/types/ConnectAccepted.js → apps/types/AppId.js} +0 -0
- /package/dist/cjs/api/resources/{providers → apps}/types/ConnectAccepted.d.ts +0 -0
- /package/dist/cjs/api/resources/{providers/types/ConnectInboxId.js → apps/types/ConnectAccepted.js} +0 -0
- /package/dist/cjs/api/resources/{providers/types/ConnectProviderBody.js → apps/types/ConnectAppBody.js} +0 -0
- /package/dist/cjs/api/resources/{providers → apps}/types/ConnectInboxId.d.ts +0 -0
- /package/dist/cjs/api/resources/{providers/types/ListProviderAccountsResponse.js → apps/types/ConnectInboxId.js} +0 -0
- /package/dist/cjs/api/resources/{providers/types/ListProvidersResponse.js → apps/types/ListAppAccountsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{providers/types/MagicUrl.js → apps/types/ListAppsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{providers → apps}/types/MagicUrl.d.ts +0 -0
- /package/dist/cjs/api/resources/{providers/types/Provider.js → apps/types/MagicUrl.js} +0 -0
- /package/dist/cjs/api/resources/{providers/types/SearchProvidersResponse.js → apps/types/SearchAppsResponse.js} +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/client/index.js +0 -0
- /package/dist/cjs/{api/resources/providers → serialization/resources/apps}/index.d.ts +0 -0
- /package/dist/cjs/{api/resources/providers → serialization/resources/apps}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectAccepted.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectAccepted.js +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectInboxId.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/types/ConnectInboxId.js +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/types/MagicUrl.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{providers → apps}/types/MagicUrl.js +0 -0
- /package/dist/esm/api/resources/{providers → apps}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{providers → apps}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{accounts/types/ProviderId.mjs → apps/client/requests/ListAppAccountsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/client/requests/ListProviderAccountsRequest.mjs → apps/client/requests/ListAppsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/client/requests/ListProvidersRequest.mjs → apps/client/requests/SearchAppsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{providers → apps}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{providers/client/requests/SearchProvidersRequest.mjs → apps/types/App.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/types/ConnectAccepted.mjs → apps/types/AppId.mjs} +0 -0
- /package/dist/esm/api/resources/{providers → apps}/types/ConnectAccepted.d.mts +0 -0
- /package/dist/esm/api/resources/{providers/types/ConnectInboxId.mjs → apps/types/ConnectAccepted.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/types/ConnectProviderBody.mjs → apps/types/ConnectAppBody.mjs} +0 -0
- /package/dist/esm/api/resources/{providers → apps}/types/ConnectInboxId.d.mts +0 -0
- /package/dist/esm/api/resources/{providers/types/ListProviderAccountsResponse.mjs → apps/types/ConnectInboxId.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/types/ListProvidersResponse.mjs → apps/types/ListAppAccountsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/types/MagicUrl.mjs → apps/types/ListAppsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{providers → apps}/types/MagicUrl.d.mts +0 -0
- /package/dist/esm/api/resources/{providers/types/Provider.mjs → apps/types/MagicUrl.mjs} +0 -0
- /package/dist/esm/api/resources/{providers/types/SearchProvidersResponse.mjs → apps/types/SearchAppsResponse.mjs} +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/client/index.mjs +0 -0
- /package/dist/esm/{api/resources/providers → serialization/resources/apps}/index.d.mts +0 -0
- /package/dist/esm/{api/resources/providers → serialization/resources/apps}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectAccepted.d.mts +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectAccepted.mjs +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectInboxId.d.mts +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/types/ConnectInboxId.mjs +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/types/MagicUrl.d.mts +0 -0
- /package/dist/esm/serialization/resources/{providers → apps}/types/MagicUrl.mjs +0 -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.34",
|
|
47
|
+
"User-Agent": "agentmail/0.5.34",
|
|
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,6 +1,7 @@
|
|
|
1
1
|
import { AccountsClient } from "./api/resources/accounts/client/Client.js";
|
|
2
2
|
import { AgentClient } from "./api/resources/agent/client/Client.js";
|
|
3
3
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
|
|
4
|
+
import { AppsClient } from "./api/resources/apps/client/Client.js";
|
|
4
5
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
5
6
|
import { DomainsClient } from "./api/resources/domains/client/Client.js";
|
|
6
7
|
import { DraftsClient } from "./api/resources/drafts/client/Client.js";
|
|
@@ -9,7 +10,6 @@ import { ListsClient } from "./api/resources/lists/client/Client.js";
|
|
|
9
10
|
import { MetricsClient } from "./api/resources/metrics/client/Client.js";
|
|
10
11
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
|
|
11
12
|
import { PodsClient } from "./api/resources/pods/client/Client.js";
|
|
12
|
-
import { ProvidersClient } from "./api/resources/providers/client/Client.js";
|
|
13
13
|
import { ThreadsClient } from "./api/resources/threads/client/Client.js";
|
|
14
14
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
|
|
15
15
|
import { WebsocketsClient } from "./api/resources/websockets/client/Client.js";
|
|
@@ -29,13 +29,13 @@ export declare class AgentMailClient {
|
|
|
29
29
|
protected _accounts: AccountsClient | undefined;
|
|
30
30
|
protected _agent: AgentClient | undefined;
|
|
31
31
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
32
|
+
protected _apps: AppsClient | undefined;
|
|
32
33
|
protected _auth: AuthClient | undefined;
|
|
33
34
|
protected _domains: DomainsClient | undefined;
|
|
34
35
|
protected _drafts: DraftsClient | undefined;
|
|
35
36
|
protected _lists: ListsClient | undefined;
|
|
36
37
|
protected _metrics: MetricsClient | undefined;
|
|
37
38
|
protected _organizations: OrganizationsClient | undefined;
|
|
38
|
-
protected _providers: ProvidersClient | undefined;
|
|
39
39
|
protected _threads: ThreadsClient | undefined;
|
|
40
40
|
protected _websockets: WebsocketsClient | undefined;
|
|
41
41
|
constructor(options?: AgentMailClient.Options);
|
|
@@ -45,13 +45,13 @@ export declare class AgentMailClient {
|
|
|
45
45
|
get accounts(): AccountsClient;
|
|
46
46
|
get agent(): AgentClient;
|
|
47
47
|
get apiKeys(): ApiKeysClient;
|
|
48
|
+
get apps(): AppsClient;
|
|
48
49
|
get auth(): AuthClient;
|
|
49
50
|
get domains(): DomainsClient;
|
|
50
51
|
get drafts(): DraftsClient;
|
|
51
52
|
get lists(): ListsClient;
|
|
52
53
|
get metrics(): MetricsClient;
|
|
53
54
|
get organizations(): OrganizationsClient;
|
|
54
|
-
get providers(): ProvidersClient;
|
|
55
55
|
get threads(): ThreadsClient;
|
|
56
56
|
get websockets(): WebsocketsClient;
|
|
57
57
|
/**
|
package/dist/cjs/Client.js
CHANGED
|
@@ -47,15 +47,15 @@ exports.AgentMailClient = void 0;
|
|
|
47
47
|
const Client_js_1 = require("./api/resources/accounts/client/Client.js");
|
|
48
48
|
const Client_js_2 = require("./api/resources/agent/client/Client.js");
|
|
49
49
|
const Client_js_3 = require("./api/resources/apiKeys/client/Client.js");
|
|
50
|
-
const Client_js_4 = require("./api/resources/
|
|
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/
|
|
50
|
+
const Client_js_4 = require("./api/resources/apps/client/Client.js");
|
|
51
|
+
const Client_js_5 = require("./api/resources/auth/client/Client.js");
|
|
52
|
+
const Client_js_6 = require("./api/resources/domains/client/Client.js");
|
|
53
|
+
const Client_js_7 = require("./api/resources/drafts/client/Client.js");
|
|
54
|
+
const Client_js_8 = require("./api/resources/inboxes/client/Client.js");
|
|
55
|
+
const Client_js_9 = require("./api/resources/lists/client/Client.js");
|
|
56
|
+
const Client_js_10 = require("./api/resources/metrics/client/Client.js");
|
|
57
|
+
const Client_js_11 = require("./api/resources/organizations/client/Client.js");
|
|
58
|
+
const Client_js_12 = require("./api/resources/pods/client/Client.js");
|
|
59
59
|
const Client_js_13 = require("./api/resources/threads/client/Client.js");
|
|
60
60
|
const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
|
|
61
61
|
const Client_js_15 = require("./api/resources/websockets/client/Client.js");
|
|
@@ -68,11 +68,11 @@ class AgentMailClient {
|
|
|
68
68
|
}
|
|
69
69
|
get inboxes() {
|
|
70
70
|
var _a;
|
|
71
|
-
return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new
|
|
71
|
+
return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_8.InboxesClient(this._options)));
|
|
72
72
|
}
|
|
73
73
|
get pods() {
|
|
74
74
|
var _a;
|
|
75
|
-
return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new
|
|
75
|
+
return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_12.PodsClient(this._options)));
|
|
76
76
|
}
|
|
77
77
|
get webhooks() {
|
|
78
78
|
var _a;
|
|
@@ -90,33 +90,33 @@ class AgentMailClient {
|
|
|
90
90
|
var _a;
|
|
91
91
|
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_3.ApiKeysClient(this._options)));
|
|
92
92
|
}
|
|
93
|
+
get apps() {
|
|
94
|
+
var _a;
|
|
95
|
+
return ((_a = this._apps) !== null && _a !== void 0 ? _a : (this._apps = new Client_js_4.AppsClient(this._options)));
|
|
96
|
+
}
|
|
93
97
|
get auth() {
|
|
94
98
|
var _a;
|
|
95
|
-
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new
|
|
99
|
+
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_5.AuthClient(this._options)));
|
|
96
100
|
}
|
|
97
101
|
get domains() {
|
|
98
102
|
var _a;
|
|
99
|
-
return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new
|
|
103
|
+
return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_6.DomainsClient(this._options)));
|
|
100
104
|
}
|
|
101
105
|
get drafts() {
|
|
102
106
|
var _a;
|
|
103
|
-
return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new
|
|
107
|
+
return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_7.DraftsClient(this._options)));
|
|
104
108
|
}
|
|
105
109
|
get lists() {
|
|
106
110
|
var _a;
|
|
107
|
-
return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new
|
|
111
|
+
return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_9.ListsClient(this._options)));
|
|
108
112
|
}
|
|
109
113
|
get metrics() {
|
|
110
114
|
var _a;
|
|
111
|
-
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new
|
|
115
|
+
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_10.MetricsClient(this._options)));
|
|
112
116
|
}
|
|
113
117
|
get organizations() {
|
|
114
118
|
var _a;
|
|
115
|
-
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new
|
|
116
|
-
}
|
|
117
|
-
get providers() {
|
|
118
|
-
var _a;
|
|
119
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_js_12.ProvidersClient(this._options)));
|
|
119
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_11.OrganizationsClient(this._options)));
|
|
120
120
|
}
|
|
121
121
|
get threads() {
|
|
122
122
|
var _a;
|
|
@@ -11,7 +11,7 @@ export declare class AccountsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AccountsClient.Options>;
|
|
12
12
|
constructor(options?: AccountsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Lists accounts across all
|
|
14
|
+
* Lists accounts across all apps, scoped to the API key: an
|
|
15
15
|
* organization key sees every account, a pod key its pod's, an inbox key
|
|
16
16
|
* its inbox's. Requires `inbox_read`.
|
|
17
17
|
*
|
|
@@ -41,16 +41,16 @@ export declare class AccountsClient {
|
|
|
41
41
|
private __get;
|
|
42
42
|
/**
|
|
43
43
|
* Updates one account. Set `status` to `disabled` to stop the inbox from
|
|
44
|
-
* signing in at the
|
|
44
|
+
* signing in at the app again, or to `enabled` to re-enable it.
|
|
45
45
|
* Idempotent: disabling an already disabled account keeps its original
|
|
46
46
|
* `disabled_at`, and enabling an enabled account is a no-op.
|
|
47
47
|
*
|
|
48
48
|
* Find the `account_id` with List Accounts. An account exists only after an
|
|
49
|
-
* inbox's first sign-in at
|
|
50
|
-
* A disable applies to that inbox at that
|
|
51
|
-
* used: the
|
|
49
|
+
* inbox's first sign-in at an app, so it cannot be disabled in advance.
|
|
50
|
+
* A disable applies to that inbox at that app whichever sign-in key is
|
|
51
|
+
* used: the app's next authorization ends in `access_denied`, and a code
|
|
52
52
|
* issued earlier is refused with `invalid_grant`. Access tokens already
|
|
53
|
-
* issued stay valid until they expire, and the
|
|
53
|
+
* issued stay valid until they expire, and the app's own session is
|
|
54
54
|
* unaffected.
|
|
55
55
|
*
|
|
56
56
|
* Requires `account_update`, which sign-in keys (`type: public_key`) cannot
|
|
@@ -57,7 +57,7 @@ class AccountsClient {
|
|
|
57
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Lists accounts across all
|
|
60
|
+
* Lists accounts across all apps, scoped to the API key: an
|
|
61
61
|
* organization key sees every account, a pod key its pod's, an inbox key
|
|
62
62
|
* its inbox's. Requires `inbox_read`.
|
|
63
63
|
*
|
|
@@ -195,16 +195,16 @@ class AccountsClient {
|
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
197
|
* Updates one account. Set `status` to `disabled` to stop the inbox from
|
|
198
|
-
* signing in at the
|
|
198
|
+
* signing in at the app again, or to `enabled` to re-enable it.
|
|
199
199
|
* Idempotent: disabling an already disabled account keeps its original
|
|
200
200
|
* `disabled_at`, and enabling an enabled account is a no-op.
|
|
201
201
|
*
|
|
202
202
|
* Find the `account_id` with List Accounts. An account exists only after an
|
|
203
|
-
* inbox's first sign-in at
|
|
204
|
-
* A disable applies to that inbox at that
|
|
205
|
-
* used: the
|
|
203
|
+
* inbox's first sign-in at an app, so it cannot be disabled in advance.
|
|
204
|
+
* A disable applies to that inbox at that app whichever sign-in key is
|
|
205
|
+
* used: the app's next authorization ends in `access_denied`, and a code
|
|
206
206
|
* issued earlier is refused with `invalid_grant`. Access tokens already
|
|
207
|
-
* issued stay valid until they expire, and the
|
|
207
|
+
* issued stay valid until they expire, and the app's own session is
|
|
208
208
|
* unaffected.
|
|
209
209
|
*
|
|
210
210
|
* Requires `account_update`, which sign-in keys (`type: public_key`) cannot
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* One inbox signed in at one
|
|
3
|
+
* One inbox signed in at one app.
|
|
4
4
|
*/
|
|
5
5
|
export interface Account {
|
|
6
6
|
accountId: AgentMail.AccountId;
|
|
7
|
-
|
|
8
|
-
/** Display name of
|
|
9
|
-
|
|
7
|
+
appId: AgentMail.AppId;
|
|
8
|
+
/** Display name of app. */
|
|
9
|
+
appName?: string;
|
|
10
10
|
inboxId: AgentMail.inboxes.InboxId;
|
|
11
11
|
podId: AgentMail.pods.PodId;
|
|
12
12
|
organizationId: AgentMail.OrganizationId;
|
|
13
|
-
/** Time of first sign-in at
|
|
13
|
+
/** Time of first sign-in at app. */
|
|
14
14
|
firstSignedInAt: Date;
|
|
15
|
-
/** Time of most recent sign-in at
|
|
15
|
+
/** Time of most recent sign-in at app. */
|
|
16
16
|
lastSignedInAt: Date;
|
|
17
|
-
/** Number of sign-ins at
|
|
17
|
+
/** Number of sign-ins at app. */
|
|
18
18
|
signInCount: number;
|
|
19
19
|
/** Present only while the account is disabled. Absent means the inbox may sign in. */
|
|
20
20
|
status?: AgentMail.AccountStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Status to set. `disabled` stops the inbox from signing in at the
|
|
3
|
-
*
|
|
3
|
+
* app; `enabled` re-enables it. An enabled account reads back with no
|
|
4
4
|
* `status`.
|
|
5
5
|
*/
|
|
6
6
|
export declare const UpdateAccountStatus: {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.UpdateAccountStatus = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* Status to set. `disabled` stops the inbox from signing in at the
|
|
7
|
-
*
|
|
7
|
+
* app; `enabled` re-enables it. An enabled account reads back with no
|
|
8
8
|
* `status`.
|
|
9
9
|
*/
|
|
10
10
|
exports.UpdateAccountStatus = {
|
|
@@ -18,6 +18,5 @@ __exportStar(require("./Account.js"), exports);
|
|
|
18
18
|
__exportStar(require("./AccountId.js"), exports);
|
|
19
19
|
__exportStar(require("./AccountStatus.js"), exports);
|
|
20
20
|
__exportStar(require("./ListAccountsResponse.js"), exports);
|
|
21
|
-
__exportStar(require("./ProviderId.js"), exports);
|
|
22
21
|
__exportStar(require("./UpdateAccountRequest.js"), exports);
|
|
23
22
|
__exportStar(require("./UpdateAccountStatus.js"), exports);
|
|
@@ -64,8 +64,8 @@ export declare class ApiKeysClient {
|
|
|
64
64
|
private __create;
|
|
65
65
|
/**
|
|
66
66
|
* Renames a credential or changes its permissions. Public keys also resolve
|
|
67
|
-
* by `client_id`; a sign-in key accepts only `
|
|
68
|
-
* `
|
|
67
|
+
* by `client_id`; a sign-in key accepts only `app_connect` and
|
|
68
|
+
* `app_share_owner`.
|
|
69
69
|
*
|
|
70
70
|
* @param {AgentMail.ApiKeyId} api_key_id
|
|
71
71
|
* @param {AgentMail.UpdateApiKeyRequest} request
|
|
@@ -278,8 +278,8 @@ class ApiKeysClient {
|
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
280
|
* Renames a credential or changes its permissions. Public keys also resolve
|
|
281
|
-
* by `client_id`; a sign-in key accepts only `
|
|
282
|
-
* `
|
|
281
|
+
* by `client_id`; a sign-in key accepts only `app_connect` and
|
|
282
|
+
* `app_share_owner`.
|
|
283
283
|
*
|
|
284
284
|
* @param {AgentMail.ApiKeyId} api_key_id
|
|
285
285
|
* @param {AgentMail.UpdateApiKeyRequest} request
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Accept the
|
|
3
|
-
* first-use disclosure page. Requires `
|
|
2
|
+
* Accept the app's disclosure on the agent's behalf, skipping the
|
|
3
|
+
* first-use disclosure page. Requires `app_share_owner` when owner
|
|
4
4
|
* scopes are involved.
|
|
5
5
|
*/
|
|
6
6
|
export type AcceptDisclosure = boolean;
|
|
@@ -12,6 +12,8 @@ export interface ApiKeyPermissions {
|
|
|
12
12
|
inboxDelete?: boolean;
|
|
13
13
|
/** Read messages. Also required to read threads. */
|
|
14
14
|
messageRead?: boolean;
|
|
15
|
+
/** Reply and reply-all when the request is signed with a registered public key. Bearer keys reply with `message_send`. */
|
|
16
|
+
messageReply?: boolean;
|
|
15
17
|
/** Send messages. */
|
|
16
18
|
messageSend?: boolean;
|
|
17
19
|
/** Update message labels. Also required to update threads. */
|
|
@@ -69,17 +71,17 @@ export interface ApiKeyPermissions {
|
|
|
69
71
|
/** Delete API keys. */
|
|
70
72
|
apiKeyDelete?: boolean;
|
|
71
73
|
/**
|
|
72
|
-
* Sign in to
|
|
74
|
+
* Sign in to apps as an inbox: connect an app, authorize an inbox, and mint the
|
|
73
75
|
* sign-in keys. Omitted on a new bearer key means false, whatever else the key holds.
|
|
74
76
|
*/
|
|
75
|
-
|
|
77
|
+
appConnect?: boolean;
|
|
76
78
|
/**
|
|
77
|
-
* Share the organization owner's name and email with
|
|
79
|
+
* Share the organization owner's name and email with apps at sign-in. One permission
|
|
78
80
|
* for both values.
|
|
79
81
|
*/
|
|
80
|
-
|
|
82
|
+
appShareOwner?: boolean;
|
|
81
83
|
/**
|
|
82
|
-
* Update accounts: disable or re-enable an inbox's sign-in at
|
|
84
|
+
* Update accounts: disable or re-enable an inbox's sign-in at an app. Reading accounts
|
|
83
85
|
* needs only `inbox_read`.
|
|
84
86
|
*/
|
|
85
87
|
accountUpdate?: boolean;
|
|
@@ -3,8 +3,8 @@ import type * as AgentMail from "../../../index.js";
|
|
|
3
3
|
* An AgentID sign-in credential, scoped like a bearer key; `api_key_id` is
|
|
4
4
|
* the JWS `kid`. A sign-in key carries `status`, gains `public_key` once
|
|
5
5
|
* the client has proved it, expires 30 days after
|
|
6
|
-
* activation, and carries exactly `
|
|
7
|
-
* `
|
|
6
|
+
* activation, and carries exactly `app_connect` and
|
|
7
|
+
* `app_share_owner`, snapshotted from the bearer key that created it
|
|
8
8
|
* and enforced from the key itself.
|
|
9
9
|
*/
|
|
10
10
|
export interface PublicKeyCredential {
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as AgentMail from "../../../index.js";
|
|
5
|
+
export declare namespace AppsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AppsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AppsClient.Options>;
|
|
12
|
+
constructor(options?: AppsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Lists apps, most popular first.
|
|
15
|
+
*
|
|
16
|
+
* @param {AgentMail.ListAppsRequest} request
|
|
17
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link AgentMail.ValidationError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.apps.list()
|
|
23
|
+
*/
|
|
24
|
+
list(request?: AgentMail.ListAppsRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListAppsResponse>;
|
|
25
|
+
private __list;
|
|
26
|
+
/**
|
|
27
|
+
* Searches apps by name prefix.
|
|
28
|
+
*
|
|
29
|
+
* @param {AgentMail.SearchAppsRequest} request
|
|
30
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link AgentMail.ValidationError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.apps.search({
|
|
36
|
+
* q: "q"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
search(request: AgentMail.SearchAppsRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.SearchAppsResponse>;
|
|
40
|
+
private __search;
|
|
41
|
+
/**
|
|
42
|
+
* Gets one app by ID. An app in the catalog returns its full entry.
|
|
43
|
+
* A registered app that the catalog does not list returns its ID and
|
|
44
|
+
* name only, without `updated_at`, so anyone holding its ID can still look
|
|
45
|
+
* it up. List Apps and Search Apps show catalog entries only.
|
|
46
|
+
*
|
|
47
|
+
* @param {AgentMail.AppId} app_id
|
|
48
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await client.apps.get("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
54
|
+
*/
|
|
55
|
+
get(app_id: AgentMail.AppId, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.App>;
|
|
56
|
+
private __get;
|
|
57
|
+
/**
|
|
58
|
+
* Lists accounts at one app, most recent sign-in first.
|
|
59
|
+
*
|
|
60
|
+
* @param {AgentMail.AppId} app_id
|
|
61
|
+
* @param {AgentMail.ListAppAccountsRequest} request
|
|
62
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AgentMail.ValidationError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.apps.listAccounts("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
68
|
+
*/
|
|
69
|
+
listAccounts(app_id: AgentMail.AppId, request?: AgentMail.ListAppAccountsRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListAppAccountsResponse>;
|
|
70
|
+
private __listAccounts;
|
|
71
|
+
/**
|
|
72
|
+
* Starts signing an inbox in to an app. Returns a single-use `magic_url`,
|
|
73
|
+
* valid for five minutes, to open in the client that will hold the sign-in;
|
|
74
|
+
* the client enrolls as the inbox and continues to the app.
|
|
75
|
+
* A `404` names the missing resource: `App` or `Inbox`.
|
|
76
|
+
* A `403` `AppSignupLimitError` means the app accepts no more sign-ups from
|
|
77
|
+
* your organization; sign in with an inbox that already has an account there.
|
|
78
|
+
*
|
|
79
|
+
* @param {AgentMail.AppId} app_id
|
|
80
|
+
* @param {AgentMail.ConnectAppBody} request
|
|
81
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AgentMail.ValidationError}
|
|
84
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
85
|
+
* @throws {@link AgentMail.AppSignupLimitError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.apps.connect("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", undefined)
|
|
89
|
+
*/
|
|
90
|
+
connect(app_id: AgentMail.AppId, request?: AgentMail.ConnectAppBody, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ConnectAccepted>;
|
|
91
|
+
private __connect;
|
|
92
|
+
}
|