agentmail 0.5.31 → 0.5.32
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/types/CreateApiKeyResponse.d.ts +1 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateBearerApiKeyRequest.d.ts +8 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResponse.js +2 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.js +6 -1
- 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/types/CreateApiKeyResponse.d.mts +1 -0
- package/dist/esm/api/resources/apiKeys/types/CreateBearerApiKeyRequest.d.mts +8 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResponse.d.mts +2 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResponse.mjs +2 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.mjs +6 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +1 -1
- package/package.json +2 -2
- package/dist/llms-full.txt +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.32",
|
|
47
|
+
"User-Agent": "agentmail/0.5.32",
|
|
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);
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* `expires_at` must be in the future and is immutable once the key exists.
|
|
4
|
+
* Omitted, the new key inherits the authenticating key's expiry, and never
|
|
5
|
+
* expires only when that key never does. A key cannot create one that
|
|
6
|
+
* outlives it: an `expires_at` later than the authenticating key's own
|
|
7
|
+
* returns `403`.
|
|
8
|
+
*/
|
|
2
9
|
export interface CreateBearerApiKeyRequest extends AgentMail.ApiKeyMutableFields {
|
|
10
|
+
expiresAt?: AgentMail.ExpiresAt;
|
|
3
11
|
}
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { ApiKeyId } from "./ApiKeyId.js";
|
|
5
5
|
import { ApiKeyPermissions } from "./ApiKeyPermissions.js";
|
|
6
6
|
import { CreatedAt } from "./CreatedAt.js";
|
|
7
|
+
import { ExpiresAt } from "./ExpiresAt.js";
|
|
7
8
|
import { InboxScopeId } from "./InboxScopeId.js";
|
|
8
9
|
import { Name } from "./Name.js";
|
|
9
10
|
import { PodScopeId } from "./PodScopeId.js";
|
|
@@ -19,5 +20,6 @@ export declare namespace CreateApiKeyResponse {
|
|
|
19
20
|
inbox_id?: InboxScopeId.Raw | null;
|
|
20
21
|
permissions?: ApiKeyPermissions.Raw | null;
|
|
21
22
|
created_at: CreatedAt.Raw;
|
|
23
|
+
expires_at?: ExpiresAt.Raw | null;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
39
39
|
const ApiKeyId_js_1 = require("./ApiKeyId.js");
|
|
40
40
|
const ApiKeyPermissions_js_1 = require("./ApiKeyPermissions.js");
|
|
41
41
|
const CreatedAt_js_1 = require("./CreatedAt.js");
|
|
42
|
+
const ExpiresAt_js_1 = require("./ExpiresAt.js");
|
|
42
43
|
const InboxScopeId_js_1 = require("./InboxScopeId.js");
|
|
43
44
|
const Name_js_1 = require("./Name.js");
|
|
44
45
|
const PodScopeId_js_1 = require("./PodScopeId.js");
|
|
@@ -52,4 +53,5 @@ exports.CreateApiKeyResponse = core.serialization.object({
|
|
|
52
53
|
inboxId: core.serialization.property("inbox_id", InboxScopeId_js_1.InboxScopeId.optional()),
|
|
53
54
|
permissions: ApiKeyPermissions_js_1.ApiKeyPermissions.optional(),
|
|
54
55
|
createdAt: core.serialization.property("created_at", CreatedAt_js_1.CreatedAt),
|
|
56
|
+
expiresAt: core.serialization.property("expires_at", ExpiresAt_js_1.ExpiresAt.optional()),
|
|
55
57
|
});
|
|
@@ -2,8 +2,10 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { ApiKeyMutableFields } from "./ApiKeyMutableFields.js";
|
|
5
|
+
import { ExpiresAt } from "./ExpiresAt.js";
|
|
5
6
|
export declare const CreateBearerApiKeyRequest: core.serialization.ObjectSchema<serializers.CreateBearerApiKeyRequest.Raw, AgentMail.CreateBearerApiKeyRequest>;
|
|
6
7
|
export declare namespace CreateBearerApiKeyRequest {
|
|
7
8
|
interface Raw extends ApiKeyMutableFields.Raw {
|
|
9
|
+
expires_at?: ExpiresAt.Raw | null;
|
|
8
10
|
}
|
|
9
11
|
}
|
|
@@ -37,4 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CreateBearerApiKeyRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const ApiKeyMutableFields_js_1 = require("./ApiKeyMutableFields.js");
|
|
40
|
-
|
|
40
|
+
const ExpiresAt_js_1 = require("./ExpiresAt.js");
|
|
41
|
+
exports.CreateBearerApiKeyRequest = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
expiresAt: core.serialization.property("expires_at", ExpiresAt_js_1.ExpiresAt.optional()),
|
|
44
|
+
})
|
|
45
|
+
.extend(ApiKeyMutableFields_js_1.ApiKeyMutableFields);
|
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.32";
|
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.32",
|
|
10
|
+
"User-Agent": "agentmail/0.5.32",
|
|
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);
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* `expires_at` must be in the future and is immutable once the key exists.
|
|
4
|
+
* Omitted, the new key inherits the authenticating key's expiry, and never
|
|
5
|
+
* expires only when that key never does. A key cannot create one that
|
|
6
|
+
* outlives it: an `expires_at` later than the authenticating key's own
|
|
7
|
+
* returns `403`.
|
|
8
|
+
*/
|
|
2
9
|
export interface CreateBearerApiKeyRequest extends AgentMail.ApiKeyMutableFields {
|
|
10
|
+
expiresAt?: AgentMail.ExpiresAt;
|
|
3
11
|
}
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.mjs";
|
|
|
4
4
|
import { ApiKeyId } from "./ApiKeyId.mjs";
|
|
5
5
|
import { ApiKeyPermissions } from "./ApiKeyPermissions.mjs";
|
|
6
6
|
import { CreatedAt } from "./CreatedAt.mjs";
|
|
7
|
+
import { ExpiresAt } from "./ExpiresAt.mjs";
|
|
7
8
|
import { InboxScopeId } from "./InboxScopeId.mjs";
|
|
8
9
|
import { Name } from "./Name.mjs";
|
|
9
10
|
import { PodScopeId } from "./PodScopeId.mjs";
|
|
@@ -19,5 +20,6 @@ export declare namespace CreateApiKeyResponse {
|
|
|
19
20
|
inbox_id?: InboxScopeId.Raw | null;
|
|
20
21
|
permissions?: ApiKeyPermissions.Raw | null;
|
|
21
22
|
created_at: CreatedAt.Raw;
|
|
23
|
+
expires_at?: ExpiresAt.Raw | null;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import { ApiKeyId } from "./ApiKeyId.mjs";
|
|
4
4
|
import { ApiKeyPermissions } from "./ApiKeyPermissions.mjs";
|
|
5
5
|
import { CreatedAt } from "./CreatedAt.mjs";
|
|
6
|
+
import { ExpiresAt } from "./ExpiresAt.mjs";
|
|
6
7
|
import { InboxScopeId } from "./InboxScopeId.mjs";
|
|
7
8
|
import { Name } from "./Name.mjs";
|
|
8
9
|
import { PodScopeId } from "./PodScopeId.mjs";
|
|
@@ -16,4 +17,5 @@ export const CreateApiKeyResponse = core.serialization.object({
|
|
|
16
17
|
inboxId: core.serialization.property("inbox_id", InboxScopeId.optional()),
|
|
17
18
|
permissions: ApiKeyPermissions.optional(),
|
|
18
19
|
createdAt: core.serialization.property("created_at", CreatedAt),
|
|
20
|
+
expiresAt: core.serialization.property("expires_at", ExpiresAt.optional()),
|
|
19
21
|
});
|
|
@@ -2,8 +2,10 @@ import type * as AgentMail from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { ApiKeyMutableFields } from "./ApiKeyMutableFields.mjs";
|
|
5
|
+
import { ExpiresAt } from "./ExpiresAt.mjs";
|
|
5
6
|
export declare const CreateBearerApiKeyRequest: core.serialization.ObjectSchema<serializers.CreateBearerApiKeyRequest.Raw, AgentMail.CreateBearerApiKeyRequest>;
|
|
6
7
|
export declare namespace CreateBearerApiKeyRequest {
|
|
7
8
|
interface Raw extends ApiKeyMutableFields.Raw {
|
|
9
|
+
expires_at?: ExpiresAt.Raw | null;
|
|
8
10
|
}
|
|
9
11
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { ApiKeyMutableFields } from "./ApiKeyMutableFields.mjs";
|
|
4
|
-
|
|
4
|
+
import { ExpiresAt } from "./ExpiresAt.mjs";
|
|
5
|
+
export const CreateBearerApiKeyRequest = core.serialization
|
|
6
|
+
.object({
|
|
7
|
+
expiresAt: core.serialization.property("expires_at", ExpiresAt.optional()),
|
|
8
|
+
})
|
|
9
|
+
.extend(ApiKeyMutableFields);
|
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.32";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.32";
|
package/dist/llms.txt
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
- [OpenClaw](https://docs.agentmail.to/integrations/openclaw.md): Install AgentMail as an official OpenClaw plugin with one command. Your agent gets its own inbox plus an allowlisted email channel it can be reached at.
|
|
32
32
|
- [Grok Bot](https://docs.agentmail.to/integrations/grokbot.md): AgentMail's Grok Bot, Grok Build, and Grok API integration
|
|
33
33
|
- [Replit](https://docs.agentmail.to/integrations/replit.md): AgentMail's Replit integration
|
|
34
|
-
- [Vercel](https://docs.agentmail.to/integrations/vercel.md): Provision AgentMail from the Vercel Marketplace and authenticate your Vercel functions with
|
|
34
|
+
- [Vercel](https://docs.agentmail.to/integrations/vercel.md): Provision AgentMail from the Vercel Marketplace and authenticate your Vercel functions with the provisioned API key
|
|
35
35
|
- [x402](https://docs.agentmail.to/integrations/x402.md): AgentMail's x402 integration for HTTP-native payments
|
|
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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentmail",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
413
413
|
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
414
414
|
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
415
|
-
"build": "npm run build:cjs && npm run build:esm && node -e \"const https=require('https'),fs=require('fs');const download=(f)=>new Promise((res,rej)=>https.get('https://docs.agentmail.to/'+f,r=>r.pipe(fs.createWriteStream('dist/'+f)).on('finish',res).on('error',rej)));Promise.all(['llms.txt'
|
|
415
|
+
"build": "npm run build:cjs && npm run build:esm && node -e \"const https=require('https'),fs=require('fs');const download=(f)=>new Promise((res,rej)=>https.get('https://docs.agentmail.to/'+f,r=>r.statusCode===200?r.pipe(fs.createWriteStream('dist/'+f)).on('finish',res).on('error',rej):rej(new Error(f+': HTTP '+r.statusCode))).on('error',rej));Promise.all(['llms.txt'].map(download)).catch(e=>{console.error(e);process.exit(1)});\"",
|
|
416
416
|
"build:cjs": "tsc --project ./tsconfig.cjs.json",
|
|
417
417
|
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
|
|
418
418
|
"test": "vitest",
|
package/dist/llms-full.txt
DELETED
|
File without changes
|