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.
Files changed (84) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +27 -22
  4. package/dist/cjs/api/resources/agent/client/Client.d.ts +50 -0
  5. package/dist/cjs/api/resources/agent/client/Client.js +199 -0
  6. package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/agent/client/index.js +2 -0
  8. package/dist/cjs/api/resources/agent/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/agent/index.js +18 -0
  10. package/dist/cjs/api/resources/agent/types/AgentSignupRequest.d.ts +9 -0
  11. package/dist/cjs/api/resources/agent/types/AgentSignupRequest.js +3 -0
  12. package/dist/cjs/api/resources/agent/types/AgentSignupResponse.d.ts +11 -0
  13. package/dist/cjs/api/resources/agent/types/AgentSignupResponse.js +3 -0
  14. package/dist/cjs/api/resources/agent/types/AgentVerifyRequest.d.ts +7 -0
  15. package/dist/cjs/api/resources/agent/types/AgentVerifyRequest.js +3 -0
  16. package/dist/cjs/api/resources/agent/types/AgentVerifyResponse.d.ts +7 -0
  17. package/dist/cjs/api/resources/agent/types/AgentVerifyResponse.js +3 -0
  18. package/dist/cjs/api/resources/agent/types/index.d.ts +4 -0
  19. package/dist/cjs/api/resources/agent/types/index.js +20 -0
  20. package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +35 -35
  21. package/dist/cjs/api/resources/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/index.js +6 -4
  23. package/dist/cjs/serialization/resources/agent/index.d.ts +1 -0
  24. package/dist/cjs/serialization/resources/agent/index.js +17 -0
  25. package/dist/cjs/serialization/resources/agent/types/AgentSignupRequest.d.ts +10 -0
  26. package/dist/cjs/serialization/resources/agent/types/AgentSignupRequest.js +42 -0
  27. package/dist/cjs/serialization/resources/agent/types/AgentSignupResponse.d.ts +11 -0
  28. package/dist/cjs/serialization/resources/agent/types/AgentSignupResponse.js +43 -0
  29. package/dist/cjs/serialization/resources/agent/types/AgentVerifyRequest.d.ts +9 -0
  30. package/dist/cjs/serialization/resources/agent/types/AgentVerifyRequest.js +41 -0
  31. package/dist/cjs/serialization/resources/agent/types/AgentVerifyResponse.d.ts +9 -0
  32. package/dist/cjs/serialization/resources/agent/types/AgentVerifyResponse.js +41 -0
  33. package/dist/cjs/serialization/resources/agent/types/index.d.ts +4 -0
  34. package/dist/cjs/serialization/resources/agent/types/index.js +20 -0
  35. package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +35 -35
  36. package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +35 -35
  37. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  38. package/dist/cjs/serialization/resources/index.js +3 -1
  39. package/dist/cjs/version.d.ts +1 -1
  40. package/dist/cjs/version.js +1 -1
  41. package/dist/esm/BaseClient.mjs +2 -2
  42. package/dist/esm/Client.d.mts +3 -0
  43. package/dist/esm/Client.mjs +5 -0
  44. package/dist/esm/api/resources/agent/client/Client.d.mts +50 -0
  45. package/dist/esm/api/resources/agent/client/Client.mjs +162 -0
  46. package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
  47. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  48. package/dist/esm/api/resources/agent/index.d.mts +2 -0
  49. package/dist/esm/api/resources/agent/index.mjs +2 -0
  50. package/dist/esm/api/resources/agent/types/AgentSignupRequest.d.mts +9 -0
  51. package/dist/esm/api/resources/agent/types/AgentSignupRequest.mjs +2 -0
  52. package/dist/esm/api/resources/agent/types/AgentSignupResponse.d.mts +11 -0
  53. package/dist/esm/api/resources/agent/types/AgentSignupResponse.mjs +2 -0
  54. package/dist/esm/api/resources/agent/types/AgentVerifyRequest.d.mts +7 -0
  55. package/dist/esm/api/resources/agent/types/AgentVerifyRequest.mjs +2 -0
  56. package/dist/esm/api/resources/agent/types/AgentVerifyResponse.d.mts +7 -0
  57. package/dist/esm/api/resources/agent/types/AgentVerifyResponse.mjs +2 -0
  58. package/dist/esm/api/resources/agent/types/index.d.mts +4 -0
  59. package/dist/esm/api/resources/agent/types/index.mjs +4 -0
  60. package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +35 -35
  61. package/dist/esm/api/resources/index.d.mts +2 -0
  62. package/dist/esm/api/resources/index.mjs +2 -0
  63. package/dist/esm/serialization/resources/agent/index.d.mts +1 -0
  64. package/dist/esm/serialization/resources/agent/index.mjs +1 -0
  65. package/dist/esm/serialization/resources/agent/types/AgentSignupRequest.d.mts +10 -0
  66. package/dist/esm/serialization/resources/agent/types/AgentSignupRequest.mjs +6 -0
  67. package/dist/esm/serialization/resources/agent/types/AgentSignupResponse.d.mts +11 -0
  68. package/dist/esm/serialization/resources/agent/types/AgentSignupResponse.mjs +7 -0
  69. package/dist/esm/serialization/resources/agent/types/AgentVerifyRequest.d.mts +9 -0
  70. package/dist/esm/serialization/resources/agent/types/AgentVerifyRequest.mjs +5 -0
  71. package/dist/esm/serialization/resources/agent/types/AgentVerifyResponse.d.mts +9 -0
  72. package/dist/esm/serialization/resources/agent/types/AgentVerifyResponse.mjs +5 -0
  73. package/dist/esm/serialization/resources/agent/types/index.d.mts +4 -0
  74. package/dist/esm/serialization/resources/agent/types/index.mjs +4 -0
  75. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +35 -35
  76. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +35 -35
  77. package/dist/esm/serialization/resources/index.d.mts +2 -0
  78. package/dist/esm/serialization/resources/index.mjs +2 -0
  79. package/dist/esm/version.d.mts +1 -1
  80. package/dist/esm/version.mjs +1 -1
  81. package/dist/llms-full.txt +1793 -10
  82. package/dist/llms.txt +4 -0
  83. package/package.json +1 -1
  84. 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,4 @@
1
+ export * from "./AgentSignupRequest.js";
2
+ export * from "./AgentSignupResponse.js";
3
+ export * from "./AgentVerifyRequest.js";
4
+ export * from "./AgentVerifyResponse.js";
@@ -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
- read_inbox?: boolean | null;
8
- create_inbox?: boolean | null;
9
- update_inbox?: boolean | null;
10
- delete_inbox?: boolean | null;
11
- read_thread?: boolean | null;
12
- delete_thread?: boolean | null;
13
- read_message?: boolean | null;
14
- send_message?: boolean | null;
15
- update_message?: boolean | null;
16
- read_spam?: boolean | null;
17
- read_blocked?: boolean | null;
18
- read_trash?: boolean | null;
19
- read_draft?: boolean | null;
20
- create_draft?: boolean | null;
21
- update_draft?: boolean | null;
22
- delete_draft?: boolean | null;
23
- send_draft?: boolean | null;
24
- read_webhook?: boolean | null;
25
- create_webhook?: boolean | null;
26
- update_webhook?: boolean | null;
27
- delete_webhook?: boolean | null;
28
- read_domain?: boolean | null;
29
- create_domain?: boolean | null;
30
- update_domain?: boolean | null;
31
- delete_domain?: boolean | null;
32
- read_list_entry?: boolean | null;
33
- create_list_entry?: boolean | null;
34
- delete_list_entry?: boolean | null;
35
- read_metrics?: boolean | null;
36
- read_api_key?: boolean | null;
37
- create_api_key?: boolean | null;
38
- delete_api_key?: boolean | null;
39
- read_pod?: boolean | null;
40
- create_pod?: boolean | null;
41
- delete_pod?: boolean | null;
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
- readInbox: core.serialization.property("read_inbox", core.serialization.boolean().optional()),
41
- createInbox: core.serialization.property("create_inbox", core.serialization.boolean().optional()),
42
- updateInbox: core.serialization.property("update_inbox", core.serialization.boolean().optional()),
43
- deleteInbox: core.serialization.property("delete_inbox", core.serialization.boolean().optional()),
44
- readThread: core.serialization.property("read_thread", core.serialization.boolean().optional()),
45
- deleteThread: core.serialization.property("delete_thread", core.serialization.boolean().optional()),
46
- readMessage: core.serialization.property("read_message", core.serialization.boolean().optional()),
47
- sendMessage: core.serialization.property("send_message", core.serialization.boolean().optional()),
48
- updateMessage: core.serialization.property("update_message", core.serialization.boolean().optional()),
49
- readSpam: core.serialization.property("read_spam", core.serialization.boolean().optional()),
50
- readBlocked: core.serialization.property("read_blocked", core.serialization.boolean().optional()),
51
- readTrash: core.serialization.property("read_trash", core.serialization.boolean().optional()),
52
- readDraft: core.serialization.property("read_draft", core.serialization.boolean().optional()),
53
- createDraft: core.serialization.property("create_draft", core.serialization.boolean().optional()),
54
- updateDraft: core.serialization.property("update_draft", core.serialization.boolean().optional()),
55
- deleteDraft: core.serialization.property("delete_draft", core.serialization.boolean().optional()),
56
- sendDraft: core.serialization.property("send_draft", core.serialization.boolean().optional()),
57
- readWebhook: core.serialization.property("read_webhook", core.serialization.boolean().optional()),
58
- createWebhook: core.serialization.property("create_webhook", core.serialization.boolean().optional()),
59
- updateWebhook: core.serialization.property("update_webhook", core.serialization.boolean().optional()),
60
- deleteWebhook: core.serialization.property("delete_webhook", core.serialization.boolean().optional()),
61
- readDomain: core.serialization.property("read_domain", core.serialization.boolean().optional()),
62
- createDomain: core.serialization.property("create_domain", core.serialization.boolean().optional()),
63
- updateDomain: core.serialization.property("update_domain", core.serialization.boolean().optional()),
64
- deleteDomain: core.serialization.property("delete_domain", core.serialization.boolean().optional()),
65
- readListEntry: core.serialization.property("read_list_entry", core.serialization.boolean().optional()),
66
- createListEntry: core.serialization.property("create_list_entry", core.serialization.boolean().optional()),
67
- deleteListEntry: core.serialization.property("delete_list_entry", core.serialization.boolean().optional()),
68
- readMetrics: core.serialization.property("read_metrics", core.serialization.boolean().optional()),
69
- readApiKey: core.serialization.property("read_api_key", core.serialization.boolean().optional()),
70
- createApiKey: core.serialization.property("create_api_key", core.serialization.boolean().optional()),
71
- deleteApiKey: core.serialization.property("delete_api_key", core.serialization.boolean().optional()),
72
- readPod: core.serialization.property("read_pod", core.serialization.boolean().optional()),
73
- createPod: core.serialization.property("create_pod", core.serialization.boolean().optional()),
74
- deletePod: core.serialization.property("delete_pod", core.serialization.boolean().optional()),
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
  });
@@ -1,3 +1,5 @@
1
+ export * as agent from "./agent/index.js";
2
+ export * from "./agent/types/index.js";
1
3
  export * as apiKeys from "./apiKeys/index.js";
2
4
  export * from "./apiKeys/types/index.js";
3
5
  export * as attachments from "./attachments/index.js";
@@ -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"));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.11";
1
+ export declare const SDK_VERSION = "0.4.13";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.4.11";
4
+ exports.SDK_VERSION = "0.4.13";
@@ -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.11",
10
- "User-Agent": "agentmail/0.4.11",
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);
@@ -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;
@@ -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
+ }