agentmail 0.4.11 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +27 -22
- package/dist/cjs/api/resources/agent/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/agent/client/Client.js +199 -0
- package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/client/index.js +2 -0
- package/dist/cjs/api/resources/agent/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/index.js +18 -0
- package/dist/cjs/api/resources/agent/types/AgentSignupRequest.d.ts +9 -0
- package/dist/cjs/api/resources/agent/types/AgentSignupRequest.js +3 -0
- package/dist/cjs/api/resources/agent/types/AgentSignupResponse.d.ts +11 -0
- package/dist/cjs/api/resources/agent/types/AgentSignupResponse.js +3 -0
- package/dist/cjs/api/resources/agent/types/AgentVerifyRequest.d.ts +7 -0
- package/dist/cjs/api/resources/agent/types/AgentVerifyRequest.js +3 -0
- package/dist/cjs/api/resources/agent/types/AgentVerifyResponse.d.ts +7 -0
- package/dist/cjs/api/resources/agent/types/AgentVerifyResponse.js +3 -0
- package/dist/cjs/api/resources/agent/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/agent/types/index.js +20 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +35 -35
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +6 -4
- package/dist/cjs/serialization/resources/agent/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agent/index.js +17 -0
- package/dist/cjs/serialization/resources/agent/types/AgentSignupRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/agent/types/AgentSignupRequest.js +42 -0
- package/dist/cjs/serialization/resources/agent/types/AgentSignupResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/agent/types/AgentSignupResponse.js +43 -0
- package/dist/cjs/serialization/resources/agent/types/AgentVerifyRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/agent/types/AgentVerifyRequest.js +41 -0
- package/dist/cjs/serialization/resources/agent/types/AgentVerifyResponse.d.ts +9 -0
- package/dist/cjs/serialization/resources/agent/types/AgentVerifyResponse.js +41 -0
- package/dist/cjs/serialization/resources/agent/types/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/agent/types/index.js +20 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +35 -35
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +35 -35
- 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/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/agent/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/agent/client/Client.mjs +162 -0
- package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/index.mjs +2 -0
- package/dist/esm/api/resources/agent/types/AgentSignupRequest.d.mts +9 -0
- package/dist/esm/api/resources/agent/types/AgentSignupRequest.mjs +2 -0
- package/dist/esm/api/resources/agent/types/AgentSignupResponse.d.mts +11 -0
- package/dist/esm/api/resources/agent/types/AgentSignupResponse.mjs +2 -0
- package/dist/esm/api/resources/agent/types/AgentVerifyRequest.d.mts +7 -0
- package/dist/esm/api/resources/agent/types/AgentVerifyRequest.mjs +2 -0
- package/dist/esm/api/resources/agent/types/AgentVerifyResponse.d.mts +7 -0
- package/dist/esm/api/resources/agent/types/AgentVerifyResponse.mjs +2 -0
- package/dist/esm/api/resources/agent/types/index.d.mts +4 -0
- package/dist/esm/api/resources/agent/types/index.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +35 -35
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/agent/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agent/index.mjs +1 -0
- package/dist/esm/serialization/resources/agent/types/AgentSignupRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/agent/types/AgentSignupRequest.mjs +6 -0
- package/dist/esm/serialization/resources/agent/types/AgentSignupResponse.d.mts +11 -0
- package/dist/esm/serialization/resources/agent/types/AgentSignupResponse.mjs +7 -0
- package/dist/esm/serialization/resources/agent/types/AgentVerifyRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/agent/types/AgentVerifyRequest.mjs +5 -0
- package/dist/esm/serialization/resources/agent/types/AgentVerifyResponse.d.mts +9 -0
- package/dist/esm/serialization/resources/agent/types/AgentVerifyResponse.mjs +5 -0
- package/dist/esm/serialization/resources/agent/types/index.d.mts +4 -0
- package/dist/esm/serialization/resources/agent/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +35 -35
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +35 -35
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +1793 -10
- package/dist/llms.txt +4 -0
- package/package.json +1 -1
- package/reference.md +140 -0
|
@@ -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,10 @@
|
|
|
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 AgentSignupRequest: core.serialization.ObjectSchema<serializers.AgentSignupRequest.Raw, AgentMail.AgentSignupRequest>;
|
|
5
|
+
export declare namespace AgentSignupRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
human_email: string;
|
|
8
|
+
username: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.AgentSignupRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.AgentSignupRequest = core.serialization.object({
|
|
40
|
+
humanEmail: core.serialization.property("human_email", core.serialization.string()),
|
|
41
|
+
username: core.serialization.string(),
|
|
42
|
+
});
|
|
@@ -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 AgentSignupResponse: core.serialization.ObjectSchema<serializers.AgentSignupResponse.Raw, AgentMail.AgentSignupResponse>;
|
|
5
|
+
export declare namespace AgentSignupResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
organization_id: string;
|
|
8
|
+
inbox_id: string;
|
|
9
|
+
api_key: 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.AgentSignupResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.AgentSignupResponse = core.serialization.object({
|
|
40
|
+
organizationId: core.serialization.property("organization_id", core.serialization.string()),
|
|
41
|
+
inboxId: core.serialization.property("inbox_id", core.serialization.string()),
|
|
42
|
+
apiKey: core.serialization.property("api_key", core.serialization.string()),
|
|
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 AgentVerifyRequest: core.serialization.ObjectSchema<serializers.AgentVerifyRequest.Raw, AgentMail.AgentVerifyRequest>;
|
|
5
|
+
export declare namespace AgentVerifyRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
otp_code: 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.AgentVerifyRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.AgentVerifyRequest = core.serialization.object({
|
|
40
|
+
otpCode: core.serialization.property("otp_code", core.serialization.string()),
|
|
41
|
+
});
|
|
@@ -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 AgentVerifyResponse: core.serialization.ObjectSchema<serializers.AgentVerifyResponse.Raw, AgentMail.AgentVerifyResponse>;
|
|
5
|
+
export declare namespace AgentVerifyResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
verified: boolean;
|
|
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.AgentVerifyResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.AgentVerifyResponse = core.serialization.object({
|
|
40
|
+
verified: core.serialization.boolean(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./AgentSignupRequest.js"), exports);
|
|
18
|
+
__exportStar(require("./AgentSignupResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./AgentVerifyRequest.js"), exports);
|
|
20
|
+
__exportStar(require("./AgentVerifyResponse.js"), exports);
|
|
@@ -4,40 +4,40 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
export declare const ApiKeyPermissions: core.serialization.ObjectSchema<serializers.ApiKeyPermissions.Raw, AgentMail.ApiKeyPermissions>;
|
|
5
5
|
export declare namespace ApiKeyPermissions {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
7
|
+
inbox_read?: boolean | null;
|
|
8
|
+
inbox_create?: boolean | null;
|
|
9
|
+
inbox_update?: boolean | null;
|
|
10
|
+
inbox_delete?: boolean | null;
|
|
11
|
+
thread_read?: boolean | null;
|
|
12
|
+
thread_delete?: boolean | null;
|
|
13
|
+
message_read?: boolean | null;
|
|
14
|
+
message_send?: boolean | null;
|
|
15
|
+
message_update?: boolean | null;
|
|
16
|
+
label_spam_read?: boolean | null;
|
|
17
|
+
label_blocked_read?: boolean | null;
|
|
18
|
+
label_trash_read?: boolean | null;
|
|
19
|
+
draft_read?: boolean | null;
|
|
20
|
+
draft_create?: boolean | null;
|
|
21
|
+
draft_update?: boolean | null;
|
|
22
|
+
draft_delete?: boolean | null;
|
|
23
|
+
draft_send?: boolean | null;
|
|
24
|
+
webhook_read?: boolean | null;
|
|
25
|
+
webhook_create?: boolean | null;
|
|
26
|
+
webhook_update?: boolean | null;
|
|
27
|
+
webhook_delete?: boolean | null;
|
|
28
|
+
domain_read?: boolean | null;
|
|
29
|
+
domain_create?: boolean | null;
|
|
30
|
+
domain_update?: boolean | null;
|
|
31
|
+
domain_delete?: boolean | null;
|
|
32
|
+
list_entry_read?: boolean | null;
|
|
33
|
+
list_entry_create?: boolean | null;
|
|
34
|
+
list_entry_delete?: boolean | null;
|
|
35
|
+
metrics_read?: boolean | null;
|
|
36
|
+
api_key_read?: boolean | null;
|
|
37
|
+
api_key_create?: boolean | null;
|
|
38
|
+
api_key_delete?: boolean | null;
|
|
39
|
+
pod_read?: boolean | null;
|
|
40
|
+
pod_create?: boolean | null;
|
|
41
|
+
pod_delete?: boolean | null;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -37,39 +37,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.ApiKeyPermissions = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
exports.ApiKeyPermissions = core.serialization.object({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
40
|
+
inboxRead: core.serialization.property("inbox_read", core.serialization.boolean().optional()),
|
|
41
|
+
inboxCreate: core.serialization.property("inbox_create", core.serialization.boolean().optional()),
|
|
42
|
+
inboxUpdate: core.serialization.property("inbox_update", core.serialization.boolean().optional()),
|
|
43
|
+
inboxDelete: core.serialization.property("inbox_delete", core.serialization.boolean().optional()),
|
|
44
|
+
threadRead: core.serialization.property("thread_read", core.serialization.boolean().optional()),
|
|
45
|
+
threadDelete: core.serialization.property("thread_delete", core.serialization.boolean().optional()),
|
|
46
|
+
messageRead: core.serialization.property("message_read", core.serialization.boolean().optional()),
|
|
47
|
+
messageSend: core.serialization.property("message_send", core.serialization.boolean().optional()),
|
|
48
|
+
messageUpdate: core.serialization.property("message_update", core.serialization.boolean().optional()),
|
|
49
|
+
labelSpamRead: core.serialization.property("label_spam_read", core.serialization.boolean().optional()),
|
|
50
|
+
labelBlockedRead: core.serialization.property("label_blocked_read", core.serialization.boolean().optional()),
|
|
51
|
+
labelTrashRead: core.serialization.property("label_trash_read", core.serialization.boolean().optional()),
|
|
52
|
+
draftRead: core.serialization.property("draft_read", core.serialization.boolean().optional()),
|
|
53
|
+
draftCreate: core.serialization.property("draft_create", core.serialization.boolean().optional()),
|
|
54
|
+
draftUpdate: core.serialization.property("draft_update", core.serialization.boolean().optional()),
|
|
55
|
+
draftDelete: core.serialization.property("draft_delete", core.serialization.boolean().optional()),
|
|
56
|
+
draftSend: core.serialization.property("draft_send", core.serialization.boolean().optional()),
|
|
57
|
+
webhookRead: core.serialization.property("webhook_read", core.serialization.boolean().optional()),
|
|
58
|
+
webhookCreate: core.serialization.property("webhook_create", core.serialization.boolean().optional()),
|
|
59
|
+
webhookUpdate: core.serialization.property("webhook_update", core.serialization.boolean().optional()),
|
|
60
|
+
webhookDelete: core.serialization.property("webhook_delete", core.serialization.boolean().optional()),
|
|
61
|
+
domainRead: core.serialization.property("domain_read", core.serialization.boolean().optional()),
|
|
62
|
+
domainCreate: core.serialization.property("domain_create", core.serialization.boolean().optional()),
|
|
63
|
+
domainUpdate: core.serialization.property("domain_update", core.serialization.boolean().optional()),
|
|
64
|
+
domainDelete: core.serialization.property("domain_delete", core.serialization.boolean().optional()),
|
|
65
|
+
listEntryRead: core.serialization.property("list_entry_read", core.serialization.boolean().optional()),
|
|
66
|
+
listEntryCreate: core.serialization.property("list_entry_create", core.serialization.boolean().optional()),
|
|
67
|
+
listEntryDelete: core.serialization.property("list_entry_delete", core.serialization.boolean().optional()),
|
|
68
|
+
metricsRead: core.serialization.property("metrics_read", core.serialization.boolean().optional()),
|
|
69
|
+
apiKeyRead: core.serialization.property("api_key_read", core.serialization.boolean().optional()),
|
|
70
|
+
apiKeyCreate: core.serialization.property("api_key_create", core.serialization.boolean().optional()),
|
|
71
|
+
apiKeyDelete: core.serialization.property("api_key_delete", core.serialization.boolean().optional()),
|
|
72
|
+
podRead: core.serialization.property("pod_read", core.serialization.boolean().optional()),
|
|
73
|
+
podCreate: core.serialization.property("pod_create", core.serialization.boolean().optional()),
|
|
74
|
+
podDelete: core.serialization.property("pod_delete", core.serialization.boolean().optional()),
|
|
75
75
|
});
|
|
@@ -36,7 +36,9 @@ 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.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.lists = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
|
|
39
|
+
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.lists = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = exports.agent = void 0;
|
|
40
|
+
exports.agent = __importStar(require("./agent/index.js"));
|
|
41
|
+
__exportStar(require("./agent/types/index.js"), exports);
|
|
40
42
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
41
43
|
__exportStar(require("./apiKeys/types/index.js"), exports);
|
|
42
44
|
exports.attachments = __importStar(require("./attachments/index.js"));
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.13";
|
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.4.
|
|
10
|
-
"User-Agent": "agentmail/0.4.
|
|
9
|
+
"X-Fern-SDK-Version": "0.4.13",
|
|
10
|
+
"User-Agent": "agentmail/0.4.13",
|
|
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);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AgentClient } from "./api/resources/agent/client/Client.mjs";
|
|
1
2
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
2
3
|
import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
|
|
3
4
|
import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
|
|
@@ -21,6 +22,7 @@ export declare class AgentMailClient {
|
|
|
21
22
|
protected _inboxes: InboxesClient | undefined;
|
|
22
23
|
protected _pods: PodsClient | undefined;
|
|
23
24
|
protected _webhooks: WebhooksClient | undefined;
|
|
25
|
+
protected _agent: AgentClient | undefined;
|
|
24
26
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
25
27
|
protected _domains: DomainsClient | undefined;
|
|
26
28
|
protected _drafts: DraftsClient | undefined;
|
|
@@ -33,6 +35,7 @@ export declare class AgentMailClient {
|
|
|
33
35
|
get inboxes(): InboxesClient;
|
|
34
36
|
get pods(): PodsClient;
|
|
35
37
|
get webhooks(): WebhooksClient;
|
|
38
|
+
get agent(): AgentClient;
|
|
36
39
|
get apiKeys(): ApiKeysClient;
|
|
37
40
|
get domains(): DomainsClient;
|
|
38
41
|
get drafts(): DraftsClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { AgentClient } from "./api/resources/agent/client/Client.mjs";
|
|
2
3
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
3
4
|
import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
|
|
4
5
|
import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
|
|
@@ -27,6 +28,10 @@ export class AgentMailClient {
|
|
|
27
28
|
var _a;
|
|
28
29
|
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new WebhooksClient(this._options)));
|
|
29
30
|
}
|
|
31
|
+
get agent() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new AgentClient(this._options)));
|
|
34
|
+
}
|
|
30
35
|
get apiKeys() {
|
|
31
36
|
var _a;
|
|
32
37
|
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export declare namespace AgentClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AgentClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AgentClient.Options>;
|
|
12
|
+
constructor(options?: AgentClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Create a new agent organization with an inbox and API key. A 6-digit OTP is sent to the human's email for verification.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint is idempotent. Calling it again with the same `human_email` will rotate the API key and resend the OTP if expired.
|
|
17
|
+
*
|
|
18
|
+
* The returned API key has limited permissions until the organization is verified via the verify endpoint.
|
|
19
|
+
*
|
|
20
|
+
* @param {AgentMail.AgentSignupRequest} request
|
|
21
|
+
* @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
|
+
*
|
|
23
|
+
* @throws {@link AgentMail.ValidationError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.agent.signUp({
|
|
27
|
+
* humanEmail: "human_email",
|
|
28
|
+
* username: "username"
|
|
29
|
+
* })
|
|
30
|
+
*/
|
|
31
|
+
signUp(request: AgentMail.AgentSignupRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<AgentMail.AgentSignupResponse>;
|
|
32
|
+
private __signUp;
|
|
33
|
+
/**
|
|
34
|
+
* Verify an agent organization using the 6-digit OTP sent to the human's email during sign-up.
|
|
35
|
+
*
|
|
36
|
+
* On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and free plan entitlements are applied.
|
|
37
|
+
*
|
|
38
|
+
* The OTP expires after 24 hours and allows a maximum of 10 attempts.
|
|
39
|
+
*
|
|
40
|
+
* @param {AgentMail.AgentVerifyRequest} request
|
|
41
|
+
* @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.agent.verify({
|
|
45
|
+
* otpCode: "otp_code"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
verify(request: AgentMail.AgentVerifyRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<AgentMail.AgentVerifyResponse>;
|
|
49
|
+
private __verify;
|
|
50
|
+
}
|