agentmail 0.5.33 → 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/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 +1 -1
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +5 -5
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +2 -2
- 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/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 +1 -1
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +5 -5
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +7 -7
- package/package.json +1 -1
- package/reference.md +2 -2
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);
|
|
@@ -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
2
|
* Accept the app's disclosure on the agent's behalf, skipping the
|
|
3
|
-
* first-use disclosure page. Requires `
|
|
3
|
+
* first-use disclosure page. Requires `app_share_owner` when owner
|
|
4
4
|
* scopes are involved.
|
|
5
5
|
*/
|
|
6
6
|
export type AcceptDisclosure = boolean;
|
|
@@ -71,17 +71,17 @@ export interface ApiKeyPermissions {
|
|
|
71
71
|
/** Delete API keys. */
|
|
72
72
|
apiKeyDelete?: boolean;
|
|
73
73
|
/**
|
|
74
|
-
* Sign in to
|
|
74
|
+
* Sign in to apps as an inbox: connect an app, authorize an inbox, and mint the
|
|
75
75
|
* sign-in keys. Omitted on a new bearer key means false, whatever else the key holds.
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
appConnect?: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* 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
|
|
80
80
|
* for both values.
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
appShareOwner?: boolean;
|
|
83
83
|
/**
|
|
84
|
-
* 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
|
|
85
85
|
* needs only `inbox_read`.
|
|
86
86
|
*/
|
|
87
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 {
|
|
@@ -38,8 +38,8 @@ export declare namespace ApiKeyPermissions {
|
|
|
38
38
|
api_key_create?: boolean | null;
|
|
39
39
|
api_key_update?: boolean | null;
|
|
40
40
|
api_key_delete?: boolean | null;
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
app_connect?: boolean | null;
|
|
42
|
+
app_share_owner?: boolean | null;
|
|
43
43
|
account_update?: boolean | null;
|
|
44
44
|
pod_read?: boolean | null;
|
|
45
45
|
pod_create?: boolean | null;
|
|
@@ -71,8 +71,8 @@ exports.ApiKeyPermissions = core.serialization.object({
|
|
|
71
71
|
apiKeyCreate: core.serialization.property("api_key_create", core.serialization.boolean().optional()),
|
|
72
72
|
apiKeyUpdate: core.serialization.property("api_key_update", core.serialization.boolean().optional()),
|
|
73
73
|
apiKeyDelete: core.serialization.property("api_key_delete", core.serialization.boolean().optional()),
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
appConnect: core.serialization.property("app_connect", core.serialization.boolean().optional()),
|
|
75
|
+
appShareOwner: core.serialization.property("app_share_owner", core.serialization.boolean().optional()),
|
|
76
76
|
accountUpdate: core.serialization.property("account_update", core.serialization.boolean().optional()),
|
|
77
77
|
podRead: core.serialization.property("pod_read", core.serialization.boolean().optional()),
|
|
78
78
|
podCreate: core.serialization.property("pod_create", core.serialization.boolean().optional()),
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.34";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "agentmail",
|
|
9
|
-
"X-Fern-SDK-Version": "0.5.
|
|
10
|
-
"User-Agent": "agentmail/0.5.
|
|
9
|
+
"X-Fern-SDK-Version": "0.5.34",
|
|
10
|
+
"User-Agent": "agentmail/0.5.34",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -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
|
|
@@ -242,8 +242,8 @@ export class ApiKeysClient {
|
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
244
|
* Renames a credential or changes its permissions. Public keys also resolve
|
|
245
|
-
* by `client_id`; a sign-in key accepts only `
|
|
246
|
-
* `
|
|
245
|
+
* by `client_id`; a sign-in key accepts only `app_connect` and
|
|
246
|
+
* `app_share_owner`.
|
|
247
247
|
*
|
|
248
248
|
* @param {AgentMail.ApiKeyId} api_key_id
|
|
249
249
|
* @param {AgentMail.UpdateApiKeyRequest} request
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Accept the app's disclosure on the agent's behalf, skipping the
|
|
3
|
-
* first-use disclosure page. Requires `
|
|
3
|
+
* first-use disclosure page. Requires `app_share_owner` when owner
|
|
4
4
|
* scopes are involved.
|
|
5
5
|
*/
|
|
6
6
|
export type AcceptDisclosure = boolean;
|
|
@@ -71,17 +71,17 @@ export interface ApiKeyPermissions {
|
|
|
71
71
|
/** Delete API keys. */
|
|
72
72
|
apiKeyDelete?: boolean;
|
|
73
73
|
/**
|
|
74
|
-
* Sign in to
|
|
74
|
+
* Sign in to apps as an inbox: connect an app, authorize an inbox, and mint the
|
|
75
75
|
* sign-in keys. Omitted on a new bearer key means false, whatever else the key holds.
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
appConnect?: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* 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
|
|
80
80
|
* for both values.
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
appShareOwner?: boolean;
|
|
83
83
|
/**
|
|
84
|
-
* 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
|
|
85
85
|
* needs only `inbox_read`.
|
|
86
86
|
*/
|
|
87
87
|
accountUpdate?: boolean;
|
|
@@ -3,8 +3,8 @@ import type * as AgentMail from "../../../index.mjs";
|
|
|
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 {
|
|
@@ -38,8 +38,8 @@ export declare namespace ApiKeyPermissions {
|
|
|
38
38
|
api_key_create?: boolean | null;
|
|
39
39
|
api_key_update?: boolean | null;
|
|
40
40
|
api_key_delete?: boolean | null;
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
app_connect?: boolean | null;
|
|
42
|
+
app_share_owner?: boolean | null;
|
|
43
43
|
account_update?: boolean | null;
|
|
44
44
|
pod_read?: boolean | null;
|
|
45
45
|
pod_create?: boolean | null;
|
|
@@ -35,8 +35,8 @@ export const ApiKeyPermissions = core.serialization.object({
|
|
|
35
35
|
apiKeyCreate: core.serialization.property("api_key_create", core.serialization.boolean().optional()),
|
|
36
36
|
apiKeyUpdate: core.serialization.property("api_key_update", core.serialization.boolean().optional()),
|
|
37
37
|
apiKeyDelete: core.serialization.property("api_key_delete", core.serialization.boolean().optional()),
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
appConnect: core.serialization.property("app_connect", core.serialization.boolean().optional()),
|
|
39
|
+
appShareOwner: core.serialization.property("app_share_owner", core.serialization.boolean().optional()),
|
|
40
40
|
accountUpdate: core.serialization.property("account_update", core.serialization.boolean().optional()),
|
|
41
41
|
podRead: core.serialization.property("pod_read", core.serialization.boolean().optional()),
|
|
42
42
|
podCreate: core.serialization.property("pod_create", core.serialization.boolean().optional()),
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.34";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.34";
|
package/dist/llms.txt
CHANGED
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
- [MPP](https://docs.agentmail.to/integrations/mpp.md): AgentMail's MPP integration for machine-to-machine payments via Stripe
|
|
37
37
|
- [Integrate LiveKit Agents](https://docs.agentmail.to/integrate-livekit-agents.md): A step-by-step guide to integrate with the LiveKit Agents SDK.
|
|
38
38
|
- [Sim.ai](https://docs.agentmail.to/integrations/sim.md): AgentMail's Sim.ai integration
|
|
39
|
-
- [AgentID Sign-In](https://docs.agentmail.to/agentid-sign-in.md): Connect an inbox to
|
|
39
|
+
- [AgentID Sign-In](https://docs.agentmail.to/agentid-sign-in.md): Connect an inbox to an app, authorize a pending AgentID sign-in, and manage sign-in keys with the AgentMail API and CLI.
|
|
40
40
|
- [AgentID Public-Key Authentication](https://docs.agentmail.to/agentid-public-key-authentication.md): Register a public P-256 key, choose its scope and permissions, and manage it through the current AgentMail API Keys endpoints.
|
|
41
|
-
- [AgentID in Claude, ChatGPT, and Cursor](https://docs.agentmail.to/agentid-in-assistants.md): Ask Claude, ChatGPT, Cursor, Claude Code, or Codex to create an account for your agent at
|
|
41
|
+
- [AgentID in Claude, ChatGPT, and Cursor](https://docs.agentmail.to/agentid-in-assistants.md): Ask Claude, ChatGPT, Cursor, Claude Code, or Codex to create an account for your agent at an app such as Firecrawl, get its API key, and see where your agent already has accounts, using AgentMail and AgentID.
|
|
42
42
|
- [Guide: Sending & Receiving Email](https://docs.agentmail.to/sending-receiving-email.md): A step-by-step guide to the practical workflow of sending initial emails and handling replies to have a full conversation.
|
|
43
43
|
- [Reply & Attachment Extraction](https://docs.agentmail.to/reply-extraction.md): AgentMail strips quoted history and boilerplate from every message into extracted_text and extracted_html, and extracts plain text from PDF, Word, Excel, and text attachments. No Talon or reply-parsing library required.
|
|
44
44
|
- [IMAP & SMTP](https://docs.agentmail.to/imap-smtp.md): Configure IMAP and SMTP to access your AgentMail inboxes using email clients or programmatic access.
|
|
@@ -201,11 +201,11 @@
|
|
|
201
201
|
- API Reference > API Keys [Create API Key](https://docs.agentmail.to/api-reference/api-keys/create.md)
|
|
202
202
|
- API Reference > API Keys [Update API Key](https://docs.agentmail.to/api-reference/api-keys/update.md)
|
|
203
203
|
- API Reference > API Keys [Delete API Key](https://docs.agentmail.to/api-reference/api-keys/delete.md)
|
|
204
|
-
- API Reference >
|
|
205
|
-
- API Reference >
|
|
206
|
-
- API Reference >
|
|
207
|
-
- API Reference >
|
|
208
|
-
- API Reference >
|
|
204
|
+
- API Reference > Apps [List Apps](https://docs.agentmail.to/api-reference/apps/list.md)
|
|
205
|
+
- API Reference > Apps [Search Apps](https://docs.agentmail.to/api-reference/apps/search.md)
|
|
206
|
+
- API Reference > Apps [Get App](https://docs.agentmail.to/api-reference/apps/get.md)
|
|
207
|
+
- API Reference > Apps [List App Accounts](https://docs.agentmail.to/api-reference/apps/list-accounts.md)
|
|
208
|
+
- API Reference > Apps [Connect App](https://docs.agentmail.to/api-reference/apps/connect.md)
|
|
209
209
|
- API Reference > Accounts [List Accounts](https://docs.agentmail.to/api-reference/accounts/list.md)
|
|
210
210
|
- API Reference > Accounts [Get Account](https://docs.agentmail.to/api-reference/accounts/get.md)
|
|
211
211
|
- API Reference > Accounts [Update Account](https://docs.agentmail.to/api-reference/accounts/update.md)
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1896,8 +1896,8 @@ await client.apiKeys.create({});
|
|
|
1896
1896
|
<dd>
|
|
1897
1897
|
|
|
1898
1898
|
Renames a credential or changes its permissions. Public keys also resolve
|
|
1899
|
-
by `client_id`; a sign-in key accepts only `
|
|
1900
|
-
`
|
|
1899
|
+
by `client_id`; a sign-in key accepts only `app_connect` and
|
|
1900
|
+
`app_share_owner`.
|
|
1901
1901
|
</dd>
|
|
1902
1902
|
</dl>
|
|
1903
1903
|
</dd>
|