agentmail 0.5.16 → 0.5.17
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 +94 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +372 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListPublicKeysRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +21 -0
- package/dist/cjs/api/resources/apiKeys/types/CreatePublicKeyRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwk.d.ts +13 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwk.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwkCoordinate.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwkCoordinate.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.d.ts +22 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyMaterial.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyMaterial.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.d.ts +16 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +8 -0
- package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/types/index.js +12 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +1 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +1 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.js +46 -0
- package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.ts +14 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.js +46 -0
- package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwk.d.ts +13 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwk.js +45 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwkCoordinate.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwkCoordinate.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.d.ts +20 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.js +52 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyMaterial.d.ts +11 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyMaterial.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.d.ts +19 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.js +51 -0
- package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +12 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +12 -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/api/resources/apiKeys/client/Client.d.mts +94 -0
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +373 -1
- package/dist/esm/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListPublicKeysRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +21 -0
- package/dist/esm/api/resources/apiKeys/types/CreatePublicKeyRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwk.d.mts +13 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwk.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwkCoordinate.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwkCoordinate.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.d.mts +22 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyMaterial.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyMaterial.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.d.mts +16 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +8 -0
- package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +12 -0
- package/dist/esm/api/resources/apiKeys/types/index.mjs +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +1 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +1 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.mjs +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.mts +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.mjs +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwk.d.mts +13 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwk.mjs +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwkCoordinate.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwkCoordinate.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.d.mts +20 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.mjs +16 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyMaterial.d.mts +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyMaterial.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.d.mts +19 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.mjs +15 -0
- package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +350 -0
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PublicKeyMaterial = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const PublicJwk_js_1 = require("./PublicJwk.js");
|
|
40
|
+
exports.PublicKeyMaterial = core.serialization.object({
|
|
41
|
+
jwk: PublicJwk_js_1.PublicJwk,
|
|
42
|
+
fingerprint: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { InboxPublicKeyScope } from "./InboxPublicKeyScope.js";
|
|
5
|
+
import { OrganizationPublicKeyScope } from "./OrganizationPublicKeyScope.js";
|
|
6
|
+
import { PodPublicKeyScope } from "./PodPublicKeyScope.js";
|
|
7
|
+
export declare const PublicKeyScope: core.serialization.Schema<serializers.PublicKeyScope.Raw, AgentMail.PublicKeyScope>;
|
|
8
|
+
export declare namespace PublicKeyScope {
|
|
9
|
+
type Raw = PublicKeyScope.Organization | PublicKeyScope.Pod | PublicKeyScope.Inbox;
|
|
10
|
+
interface Organization extends OrganizationPublicKeyScope.Raw {
|
|
11
|
+
type: "organization";
|
|
12
|
+
}
|
|
13
|
+
interface Pod extends PodPublicKeyScope.Raw {
|
|
14
|
+
type: "pod";
|
|
15
|
+
}
|
|
16
|
+
interface Inbox extends InboxPublicKeyScope.Raw {
|
|
17
|
+
type: "inbox";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PublicKeyScope = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const InboxPublicKeyScope_js_1 = require("./InboxPublicKeyScope.js");
|
|
40
|
+
const OrganizationPublicKeyScope_js_1 = require("./OrganizationPublicKeyScope.js");
|
|
41
|
+
const PodPublicKeyScope_js_1 = require("./PodPublicKeyScope.js");
|
|
42
|
+
exports.PublicKeyScope = core.serialization
|
|
43
|
+
.union("type", {
|
|
44
|
+
organization: OrganizationPublicKeyScope_js_1.OrganizationPublicKeyScope,
|
|
45
|
+
pod: PodPublicKeyScope_js_1.PodPublicKeyScope,
|
|
46
|
+
inbox: InboxPublicKeyScope_js_1.InboxPublicKeyScope,
|
|
47
|
+
})
|
|
48
|
+
.transform({
|
|
49
|
+
transform: (value) => value,
|
|
50
|
+
untransform: (value) => value,
|
|
51
|
+
});
|
package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const RevokeAllAgentIdSignInKeysResponse: core.serialization.ObjectSchema<serializers.RevokeAllAgentIdSignInKeysResponse.Raw, AgentMail.RevokeAllAgentIdSignInKeysResponse>;
|
|
5
|
+
export declare namespace RevokeAllAgentIdSignInKeysResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
previous_generation: number;
|
|
8
|
+
current_generation: number;
|
|
9
|
+
revoked_at: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.RevokeAllAgentIdSignInKeysResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.RevokeAllAgentIdSignInKeysResponse = core.serialization.object({
|
|
40
|
+
previousGeneration: core.serialization.property("previous_generation", core.serialization.number()),
|
|
41
|
+
currentGeneration: core.serialization.property("current_generation", core.serialization.number()),
|
|
42
|
+
revokedAt: core.serialization.property("revoked_at", core.serialization.date()),
|
|
43
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const UpdatePublicKeyNameRequest: core.serialization.ObjectSchema<serializers.UpdatePublicKeyNameRequest.Raw, AgentMail.UpdatePublicKeyNameRequest>;
|
|
5
|
+
export declare namespace UpdatePublicKeyNameRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UpdatePublicKeyNameRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.UpdatePublicKeyNameRequest = core.serialization.object({
|
|
40
|
+
name: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -4,6 +4,18 @@ export * from "./ApiKeyPermissions.js";
|
|
|
4
4
|
export * from "./CreateApiKeyRequest.js";
|
|
5
5
|
export * from "./CreateApiKeyResponse.js";
|
|
6
6
|
export * from "./CreatedAt.js";
|
|
7
|
+
export * from "./CreatePublicKeyRequest.js";
|
|
8
|
+
export * from "./InboxPublicKeyScope.js";
|
|
7
9
|
export * from "./ListApiKeysResponse.js";
|
|
10
|
+
export * from "./ListPublicKeysResponse.js";
|
|
8
11
|
export * from "./Name.js";
|
|
12
|
+
export * from "./OrganizationPublicKeyScope.js";
|
|
13
|
+
export * from "./PodPublicKeyScope.js";
|
|
9
14
|
export * from "./Prefix.js";
|
|
15
|
+
export * from "./PublicJwk.js";
|
|
16
|
+
export * from "./PublicJwkCoordinate.js";
|
|
17
|
+
export * from "./PublicKeyCredential.js";
|
|
18
|
+
export * from "./PublicKeyMaterial.js";
|
|
19
|
+
export * from "./PublicKeyScope.js";
|
|
20
|
+
export * from "./RevokeAllAgentIdSignInKeysResponse.js";
|
|
21
|
+
export * from "./UpdatePublicKeyNameRequest.js";
|
|
@@ -20,6 +20,18 @@ __exportStar(require("./ApiKeyPermissions.js"), exports);
|
|
|
20
20
|
__exportStar(require("./CreateApiKeyRequest.js"), exports);
|
|
21
21
|
__exportStar(require("./CreateApiKeyResponse.js"), exports);
|
|
22
22
|
__exportStar(require("./CreatedAt.js"), exports);
|
|
23
|
+
__exportStar(require("./CreatePublicKeyRequest.js"), exports);
|
|
24
|
+
__exportStar(require("./InboxPublicKeyScope.js"), exports);
|
|
23
25
|
__exportStar(require("./ListApiKeysResponse.js"), exports);
|
|
26
|
+
__exportStar(require("./ListPublicKeysResponse.js"), exports);
|
|
24
27
|
__exportStar(require("./Name.js"), exports);
|
|
28
|
+
__exportStar(require("./OrganizationPublicKeyScope.js"), exports);
|
|
29
|
+
__exportStar(require("./PodPublicKeyScope.js"), exports);
|
|
25
30
|
__exportStar(require("./Prefix.js"), exports);
|
|
31
|
+
__exportStar(require("./PublicJwk.js"), exports);
|
|
32
|
+
__exportStar(require("./PublicJwkCoordinate.js"), exports);
|
|
33
|
+
__exportStar(require("./PublicKeyCredential.js"), exports);
|
|
34
|
+
__exportStar(require("./PublicKeyMaterial.js"), exports);
|
|
35
|
+
__exportStar(require("./PublicKeyScope.js"), exports);
|
|
36
|
+
__exportStar(require("./RevokeAllAgentIdSignInKeysResponse.js"), exports);
|
|
37
|
+
__exportStar(require("./UpdatePublicKeyNameRequest.js"), exports);
|
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.17";
|
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.17",
|
|
10
|
+
"User-Agent": "agentmail/0.5.17",
|
|
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);
|
|
@@ -56,4 +56,98 @@ export declare class ApiKeysClient {
|
|
|
56
56
|
*/
|
|
57
57
|
delete(api_key_id: AgentMail.ApiKeyId, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
58
58
|
private __delete;
|
|
59
|
+
/**
|
|
60
|
+
* List only public-key credentials visible to the bearer caller's scope.
|
|
61
|
+
* Bearer credentials are never returned, even though both credential types
|
|
62
|
+
* share storage and pagination indexes. Requires `api_key_read`.
|
|
63
|
+
*
|
|
64
|
+
* @param {AgentMail.ListPublicKeysRequest} request
|
|
65
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.apiKeys.listPublicKeys()
|
|
69
|
+
*/
|
|
70
|
+
listPublicKeys(request?: AgentMail.ListPublicKeysRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListPublicKeysResponse>;
|
|
71
|
+
private __listPublicKeys;
|
|
72
|
+
/**
|
|
73
|
+
* Register a public P-256 JWK using an existing AgentMail bearer API key
|
|
74
|
+
* with `api_key_create`. Re-registering the same JWK creates a new
|
|
75
|
+
* credential ID; it does not replace or recover an earlier credential.
|
|
76
|
+
* The private key must never be sent to AgentMail.
|
|
77
|
+
*
|
|
78
|
+
* @param {AgentMail.CreatePublicKeyRequest} request
|
|
79
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link AgentMail.ValidationError}
|
|
82
|
+
* @throws {@link AgentMail.ConflictError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.apiKeys.createPublicKey({
|
|
86
|
+
* publicKey: {
|
|
87
|
+
* kty: "EC",
|
|
88
|
+
* crv: "P-256",
|
|
89
|
+
* x: "blackcurrant...............................",
|
|
90
|
+
* y: "blackcurrant..............................."
|
|
91
|
+
* }
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
createPublicKey(request: AgentMail.CreatePublicKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<AgentMail.PublicKeyCredential>;
|
|
95
|
+
private __createPublicKey;
|
|
96
|
+
/**
|
|
97
|
+
* Rename the credential. All security-relevant fields are immutable.
|
|
98
|
+
* Requires `api_key_update`.
|
|
99
|
+
*
|
|
100
|
+
* @param {string} api_key_id - Public-key credential ID returned by registration.
|
|
101
|
+
* @param {AgentMail.UpdatePublicKeyNameRequest} request
|
|
102
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link AgentMail.ValidationError}
|
|
105
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* await client.apiKeys.updatePublicKeyName("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", {
|
|
109
|
+
* name: "x"
|
|
110
|
+
* })
|
|
111
|
+
*/
|
|
112
|
+
updatePublicKeyName(api_key_id: string, request: AgentMail.UpdatePublicKeyNameRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<AgentMail.PublicKeyCredential>;
|
|
113
|
+
private __updatePublicKeyName;
|
|
114
|
+
/**
|
|
115
|
+
* Permanently revoke one public-key credential. This hard-deletes the
|
|
116
|
+
* credential; repeating the request returns not found. Requires
|
|
117
|
+
* `api_key_delete`.
|
|
118
|
+
*
|
|
119
|
+
* @param {string} api_key_id - Public-key credential ID returned by registration.
|
|
120
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* await client.apiKeys.revokePublicKey("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
126
|
+
*/
|
|
127
|
+
revokePublicKey(api_key_id: string, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
128
|
+
private __revokePublicKey;
|
|
129
|
+
/**
|
|
130
|
+
* Invalidate every current public-key credential in the caller's
|
|
131
|
+
* organization by advancing its AgentID key generation. The caller must be
|
|
132
|
+
* organization-scoped and either have `api_key_delete` or, for a verified
|
|
133
|
+
* self-serve agent organization, use an unrestricted unmanaged bearer
|
|
134
|
+
* credential. No request body is accepted.
|
|
135
|
+
*
|
|
136
|
+
* `Idempotency-Key` is required and must be a UUID. Reusing the same UUID
|
|
137
|
+
* returns the original permanent receipt without advancing the generation
|
|
138
|
+
* again. A new UUID performs a new generation advance.
|
|
139
|
+
*
|
|
140
|
+
* @param {AgentMail.RevokeAllAgentIdSignInKeysRequest} request
|
|
141
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link AgentMail.ValidationError}
|
|
144
|
+
* @throws {@link AgentMail.ConflictError}
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* await client.apiKeys.revokeAllAgentIdSignInKeys({
|
|
148
|
+
* idempotencyKey: "Idempotency-Key"
|
|
149
|
+
* })
|
|
150
|
+
*/
|
|
151
|
+
revokeAllAgentIdSignInKeys(request: AgentMail.RevokeAllAgentIdSignInKeysRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<AgentMail.RevokeAllAgentIdSignInKeysResponse>;
|
|
152
|
+
private __revokeAllAgentIdSignInKeys;
|
|
59
153
|
}
|