agentmail 0.0.69 → 0.0.71
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +17 -12
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +292 -0
- package/dist/cjs/api/resources/apiKeys/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/client/index.js +17 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListApiKeysRequest.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListApiKeysRequest.js +5 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/apiKeys/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/index.js +18 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKey.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKey.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyId.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyId.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyRequest.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyRequest.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyResponse.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyResponse.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/CreatedAt.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/CreatedAt.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/ListApiKeysResponse.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/types/ListApiKeysResponse.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/Name.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/Name.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/Prefix.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/Prefix.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/apiKeys/types/index.js +24 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/apiKeys/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/apiKeys/index.js +17 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKey.d.ts +20 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKey.js +51 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyId.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyId.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyRequest.d.ts +13 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyRequest.js +44 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResponse.d.ts +20 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResponse.js +51 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatedAt.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatedAt.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListApiKeysResponse.d.ts +17 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListApiKeysResponse.js +48 -0
- package/dist/cjs/serialization/resources/apiKeys/types/Name.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/Name.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/Prefix.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/Prefix.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +8 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +24 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/llms-full.txt +478 -157
- package/dist/llms.txt +5 -2
- package/package.json +1 -1
- package/reference.md +157 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./ApiKeyId.js";
|
|
2
|
+
export * from "./Prefix.js";
|
|
3
|
+
export * from "./Name.js";
|
|
4
|
+
export * from "./CreatedAt.js";
|
|
5
|
+
export * from "./ApiKey.js";
|
|
6
|
+
export * from "./CreateApiKeyResponse.js";
|
|
7
|
+
export * from "./ListApiKeysResponse.js";
|
|
8
|
+
export * from "./CreateApiKeyRequest.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApiKeyId.js"), exports);
|
|
18
|
+
__exportStar(require("./Prefix.js"), exports);
|
|
19
|
+
__exportStar(require("./Name.js"), exports);
|
|
20
|
+
__exportStar(require("./CreatedAt.js"), exports);
|
|
21
|
+
__exportStar(require("./ApiKey.js"), exports);
|
|
22
|
+
__exportStar(require("./CreateApiKeyResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./ListApiKeysResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./CreateApiKeyRequest.js"), exports);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * as inboxes from "./inboxes/index.js";
|
|
2
2
|
export * as webhooks from "./webhooks/index.js";
|
|
3
|
+
export * as apiKeys from "./apiKeys/index.js";
|
|
4
|
+
export * from "./apiKeys/types/index.js";
|
|
3
5
|
export * as attachments from "./attachments/index.js";
|
|
4
6
|
export * from "./attachments/types/index.js";
|
|
5
7
|
export * as domains from "./domains/index.js";
|
|
@@ -17,6 +19,7 @@ export * from "./threads/types/index.js";
|
|
|
17
19
|
export * as websockets from "./websockets/index.js";
|
|
18
20
|
export * from "./websockets/types/index.js";
|
|
19
21
|
export * from "./messages/errors/index.js";
|
|
22
|
+
export * from "./apiKeys/client/requests/index.js";
|
|
20
23
|
export * from "./domains/client/requests/index.js";
|
|
21
24
|
export * from "./drafts/client/requests/index.js";
|
|
22
25
|
export * from "./metrics/client/requests/index.js";
|
|
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.websockets = exports.threads = exports.metrics = exports.messages = exports.events = exports.drafts = exports.domains = exports.attachments = exports.webhooks = exports.inboxes = void 0;
|
|
39
|
+
exports.websockets = exports.threads = exports.metrics = exports.messages = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = exports.webhooks = exports.inboxes = void 0;
|
|
40
40
|
exports.inboxes = __importStar(require("./inboxes/index.js"));
|
|
41
41
|
exports.webhooks = __importStar(require("./webhooks/index.js"));
|
|
42
|
+
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
43
|
+
__exportStar(require("./apiKeys/types/index.js"), exports);
|
|
42
44
|
exports.attachments = __importStar(require("./attachments/index.js"));
|
|
43
45
|
__exportStar(require("./attachments/types/index.js"), exports);
|
|
44
46
|
exports.domains = __importStar(require("./domains/index.js"));
|
|
@@ -56,6 +58,7 @@ __exportStar(require("./threads/types/index.js"), exports);
|
|
|
56
58
|
exports.websockets = __importStar(require("./websockets/index.js"));
|
|
57
59
|
__exportStar(require("./websockets/types/index.js"), exports);
|
|
58
60
|
__exportStar(require("./messages/errors/index.js"), exports);
|
|
61
|
+
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
59
62
|
__exportStar(require("./domains/client/requests/index.js"), exports);
|
|
60
63
|
__exportStar(require("./drafts/client/requests/index.js"), exports);
|
|
61
64
|
__exportStar(require("./metrics/client/requests/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
import { ApiKeyId } from "./ApiKeyId.js";
|
|
8
|
+
import { Prefix } from "./Prefix.js";
|
|
9
|
+
import { Name } from "./Name.js";
|
|
10
|
+
import { CreatedAt } from "./CreatedAt.js";
|
|
11
|
+
export declare const ApiKey: core.serialization.ObjectSchema<serializers.ApiKey.Raw, AgentMail.ApiKey>;
|
|
12
|
+
export declare namespace ApiKey {
|
|
13
|
+
interface Raw {
|
|
14
|
+
api_key_id: ApiKeyId.Raw;
|
|
15
|
+
prefix: Prefix.Raw;
|
|
16
|
+
name: Name.Raw;
|
|
17
|
+
used_at?: string | null;
|
|
18
|
+
created_at: CreatedAt.Raw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ApiKey = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const ApiKeyId_js_1 = require("./ApiKeyId.js");
|
|
42
|
+
const Prefix_js_1 = require("./Prefix.js");
|
|
43
|
+
const Name_js_1 = require("./Name.js");
|
|
44
|
+
const CreatedAt_js_1 = require("./CreatedAt.js");
|
|
45
|
+
exports.ApiKey = core.serialization.object({
|
|
46
|
+
apiKeyId: core.serialization.property("api_key_id", ApiKeyId_js_1.ApiKeyId),
|
|
47
|
+
prefix: Prefix_js_1.Prefix,
|
|
48
|
+
name: Name_js_1.Name,
|
|
49
|
+
usedAt: core.serialization.property("used_at", core.serialization.date().optional()),
|
|
50
|
+
createdAt: core.serialization.property("created_at", CreatedAt_js_1.CreatedAt),
|
|
51
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
export declare const ApiKeyId: core.serialization.Schema<serializers.ApiKeyId.Raw, AgentMail.ApiKeyId>;
|
|
8
|
+
export declare namespace ApiKeyId {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ApiKeyId = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
exports.ApiKeyId = core.serialization.string();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
import { Name } from "./Name.js";
|
|
8
|
+
export declare const CreateApiKeyRequest: core.serialization.ObjectSchema<serializers.CreateApiKeyRequest.Raw, AgentMail.CreateApiKeyRequest>;
|
|
9
|
+
export declare namespace CreateApiKeyRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: Name.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreateApiKeyRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const Name_js_1 = require("./Name.js");
|
|
42
|
+
exports.CreateApiKeyRequest = core.serialization.object({
|
|
43
|
+
name: Name_js_1.Name,
|
|
44
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
import { ApiKeyId } from "./ApiKeyId.js";
|
|
8
|
+
import { Prefix } from "./Prefix.js";
|
|
9
|
+
import { Name } from "./Name.js";
|
|
10
|
+
import { CreatedAt } from "./CreatedAt.js";
|
|
11
|
+
export declare const CreateApiKeyResponse: core.serialization.ObjectSchema<serializers.CreateApiKeyResponse.Raw, AgentMail.CreateApiKeyResponse>;
|
|
12
|
+
export declare namespace CreateApiKeyResponse {
|
|
13
|
+
interface Raw {
|
|
14
|
+
api_key_id: ApiKeyId.Raw;
|
|
15
|
+
api_key: string;
|
|
16
|
+
prefix: Prefix.Raw;
|
|
17
|
+
name: Name.Raw;
|
|
18
|
+
created_at: CreatedAt.Raw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreateApiKeyResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const ApiKeyId_js_1 = require("./ApiKeyId.js");
|
|
42
|
+
const Prefix_js_1 = require("./Prefix.js");
|
|
43
|
+
const Name_js_1 = require("./Name.js");
|
|
44
|
+
const CreatedAt_js_1 = require("./CreatedAt.js");
|
|
45
|
+
exports.CreateApiKeyResponse = core.serialization.object({
|
|
46
|
+
apiKeyId: core.serialization.property("api_key_id", ApiKeyId_js_1.ApiKeyId),
|
|
47
|
+
apiKey: core.serialization.property("api_key", core.serialization.string()),
|
|
48
|
+
prefix: Prefix_js_1.Prefix,
|
|
49
|
+
name: Name_js_1.Name,
|
|
50
|
+
createdAt: core.serialization.property("created_at", CreatedAt_js_1.CreatedAt),
|
|
51
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
export declare const CreatedAt: core.serialization.Schema<serializers.CreatedAt.Raw, AgentMail.CreatedAt>;
|
|
8
|
+
export declare namespace CreatedAt {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreatedAt = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
exports.CreatedAt = core.serialization.date();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
import { Count } from "../../../types/Count.js";
|
|
8
|
+
import { PageToken } from "../../../types/PageToken.js";
|
|
9
|
+
import { ApiKey } from "./ApiKey.js";
|
|
10
|
+
export declare const ListApiKeysResponse: core.serialization.ObjectSchema<serializers.ListApiKeysResponse.Raw, AgentMail.ListApiKeysResponse>;
|
|
11
|
+
export declare namespace ListApiKeysResponse {
|
|
12
|
+
interface Raw {
|
|
13
|
+
count: Count.Raw;
|
|
14
|
+
next_page_token?: PageToken.Raw | null;
|
|
15
|
+
api_keys: ApiKey.Raw[];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ListApiKeysResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const Count_js_1 = require("../../../types/Count.js");
|
|
42
|
+
const PageToken_js_1 = require("../../../types/PageToken.js");
|
|
43
|
+
const ApiKey_js_1 = require("./ApiKey.js");
|
|
44
|
+
exports.ListApiKeysResponse = core.serialization.object({
|
|
45
|
+
count: Count_js_1.Count,
|
|
46
|
+
nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
|
|
47
|
+
apiKeys: core.serialization.property("api_keys", core.serialization.list(ApiKey_js_1.ApiKey)),
|
|
48
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
export declare const Name: core.serialization.Schema<serializers.Name.Raw, AgentMail.Name>;
|
|
8
|
+
export declare namespace Name {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Name = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
exports.Name = core.serialization.string();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.js";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
export declare const Prefix: core.serialization.Schema<serializers.Prefix.Raw, AgentMail.Prefix>;
|
|
8
|
+
export declare namespace Prefix {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Prefix = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
exports.Prefix = core.serialization.string();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./ApiKeyId.js";
|
|
2
|
+
export * from "./Prefix.js";
|
|
3
|
+
export * from "./Name.js";
|
|
4
|
+
export * from "./CreatedAt.js";
|
|
5
|
+
export * from "./ApiKey.js";
|
|
6
|
+
export * from "./CreateApiKeyResponse.js";
|
|
7
|
+
export * from "./ListApiKeysResponse.js";
|
|
8
|
+
export * from "./CreateApiKeyRequest.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApiKeyId.js"), exports);
|
|
18
|
+
__exportStar(require("./Prefix.js"), exports);
|
|
19
|
+
__exportStar(require("./Name.js"), exports);
|
|
20
|
+
__exportStar(require("./CreatedAt.js"), exports);
|
|
21
|
+
__exportStar(require("./ApiKey.js"), exports);
|
|
22
|
+
__exportStar(require("./CreateApiKeyResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./ListApiKeysResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./CreateApiKeyRequest.js"), exports);
|
|
@@ -2,6 +2,8 @@ export * as websockets from "./websockets/index.js";
|
|
|
2
2
|
export * from "./websockets/client/socket/index.js";
|
|
3
3
|
export * as inboxes from "./inboxes/index.js";
|
|
4
4
|
export * as webhooks from "./webhooks/index.js";
|
|
5
|
+
export * as apiKeys from "./apiKeys/index.js";
|
|
6
|
+
export * from "./apiKeys/types/index.js";
|
|
5
7
|
export * as attachments from "./attachments/index.js";
|
|
6
8
|
export * from "./attachments/types/index.js";
|
|
7
9
|
export * as domains from "./domains/index.js";
|