agentmail 0.0.38 → 0.0.40

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 (115) hide show
  1. package/README.md +1 -0
  2. package/api/resources/contexts/client/Client.js +4 -4
  3. package/api/resources/drafts/client/Client.js +2 -2
  4. package/api/resources/drafts/types/CreateDraftRequest.d.ts +1 -0
  5. package/api/resources/drafts/types/Draft.d.ts +1 -0
  6. package/api/resources/drafts/types/DraftReplyTo.d.ts +7 -0
  7. package/api/resources/drafts/types/DraftReplyTo.js +5 -0
  8. package/api/resources/drafts/types/index.d.ts +1 -0
  9. package/api/resources/drafts/types/index.js +1 -0
  10. package/api/resources/inboxes/client/Client.d.ts +2 -1
  11. package/api/resources/inboxes/client/Client.js +5 -4
  12. package/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -0
  13. package/api/resources/inboxes/resources/drafts/client/Client.js +5 -4
  14. package/api/resources/inboxes/resources/messages/client/Client.js +6 -6
  15. package/api/resources/inboxes/resources/threads/client/Client.js +3 -3
  16. package/api/resources/inboxes/types/ClientId.d.ts +7 -0
  17. package/api/resources/inboxes/types/ClientId.js +5 -0
  18. package/api/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
  19. package/api/resources/inboxes/types/Inbox.d.ts +1 -0
  20. package/api/resources/inboxes/types/index.d.ts +1 -0
  21. package/api/resources/inboxes/types/index.js +1 -0
  22. package/api/resources/messages/types/Message.d.ts +1 -1
  23. package/api/resources/threads/client/Client.js +3 -3
  24. package/api/resources/webhooks/client/Client.d.ts +2 -1
  25. package/api/resources/webhooks/client/Client.js +6 -5
  26. package/api/resources/webhooks/types/ClientId.d.ts +7 -0
  27. package/api/resources/webhooks/types/ClientId.js +5 -0
  28. package/api/resources/webhooks/types/CreateWebhookRequest.d.ts +1 -0
  29. package/api/resources/webhooks/types/Webhook.d.ts +1 -0
  30. package/api/resources/webhooks/types/index.d.ts +1 -0
  31. package/api/resources/webhooks/types/index.js +1 -0
  32. package/dist/api/resources/contexts/client/Client.js +4 -4
  33. package/dist/api/resources/drafts/client/Client.js +2 -2
  34. package/dist/api/resources/drafts/types/CreateDraftRequest.d.ts +1 -0
  35. package/dist/api/resources/drafts/types/Draft.d.ts +1 -0
  36. package/dist/api/resources/drafts/types/DraftReplyTo.d.ts +7 -0
  37. package/dist/api/resources/drafts/types/DraftReplyTo.js +5 -0
  38. package/dist/api/resources/drafts/types/index.d.ts +1 -0
  39. package/dist/api/resources/drafts/types/index.js +1 -0
  40. package/dist/api/resources/inboxes/client/Client.d.ts +2 -1
  41. package/dist/api/resources/inboxes/client/Client.js +5 -4
  42. package/dist/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -0
  43. package/dist/api/resources/inboxes/resources/drafts/client/Client.js +5 -4
  44. package/dist/api/resources/inboxes/resources/messages/client/Client.js +6 -6
  45. package/dist/api/resources/inboxes/resources/threads/client/Client.js +3 -3
  46. package/dist/api/resources/inboxes/types/ClientId.d.ts +7 -0
  47. package/dist/api/resources/inboxes/types/ClientId.js +5 -0
  48. package/dist/api/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
  49. package/dist/api/resources/inboxes/types/Inbox.d.ts +1 -0
  50. package/dist/api/resources/inboxes/types/index.d.ts +1 -0
  51. package/dist/api/resources/inboxes/types/index.js +1 -0
  52. package/dist/api/resources/messages/types/Message.d.ts +1 -1
  53. package/dist/api/resources/threads/client/Client.js +3 -3
  54. package/dist/api/resources/webhooks/client/Client.d.ts +2 -1
  55. package/dist/api/resources/webhooks/client/Client.js +6 -5
  56. package/dist/api/resources/webhooks/types/ClientId.d.ts +7 -0
  57. package/dist/api/resources/webhooks/types/ClientId.js +5 -0
  58. package/dist/api/resources/webhooks/types/CreateWebhookRequest.d.ts +1 -0
  59. package/dist/api/resources/webhooks/types/Webhook.d.ts +1 -0
  60. package/dist/api/resources/webhooks/types/index.d.ts +1 -0
  61. package/dist/api/resources/webhooks/types/index.js +1 -0
  62. package/dist/serialization/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
  63. package/dist/serialization/resources/drafts/types/CreateDraftRequest.js +2 -0
  64. package/dist/serialization/resources/drafts/types/Draft.d.ts +2 -0
  65. package/dist/serialization/resources/drafts/types/Draft.js +2 -0
  66. package/dist/serialization/resources/drafts/types/DraftReplyTo.d.ts +10 -0
  67. package/dist/serialization/resources/drafts/types/DraftReplyTo.js +41 -0
  68. package/dist/serialization/resources/drafts/types/index.d.ts +1 -0
  69. package/dist/serialization/resources/drafts/types/index.js +1 -0
  70. package/dist/serialization/resources/inboxes/types/ClientId.d.ts +10 -0
  71. package/dist/serialization/resources/inboxes/types/ClientId.js +41 -0
  72. package/dist/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
  73. package/dist/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
  74. package/dist/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
  75. package/dist/serialization/resources/inboxes/types/Inbox.js +2 -0
  76. package/dist/serialization/resources/inboxes/types/index.d.ts +1 -0
  77. package/dist/serialization/resources/inboxes/types/index.js +1 -0
  78. package/dist/serialization/resources/webhooks/types/ClientId.d.ts +10 -0
  79. package/dist/serialization/resources/webhooks/types/ClientId.js +41 -0
  80. package/dist/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +2 -0
  81. package/dist/serialization/resources/webhooks/types/CreateWebhookRequest.js +2 -0
  82. package/dist/serialization/resources/webhooks/types/Webhook.d.ts +2 -0
  83. package/dist/serialization/resources/webhooks/types/Webhook.js +2 -0
  84. package/dist/serialization/resources/webhooks/types/index.d.ts +1 -0
  85. package/dist/serialization/resources/webhooks/types/index.js +1 -0
  86. package/dist/version.d.ts +1 -1
  87. package/dist/version.js +1 -1
  88. package/package.json +1 -1
  89. package/reference.md +3 -0
  90. package/serialization/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
  91. package/serialization/resources/drafts/types/CreateDraftRequest.js +2 -0
  92. package/serialization/resources/drafts/types/Draft.d.ts +2 -0
  93. package/serialization/resources/drafts/types/Draft.js +2 -0
  94. package/serialization/resources/drafts/types/DraftReplyTo.d.ts +10 -0
  95. package/serialization/resources/drafts/types/DraftReplyTo.js +41 -0
  96. package/serialization/resources/drafts/types/index.d.ts +1 -0
  97. package/serialization/resources/drafts/types/index.js +1 -0
  98. package/serialization/resources/inboxes/types/ClientId.d.ts +10 -0
  99. package/serialization/resources/inboxes/types/ClientId.js +41 -0
  100. package/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
  101. package/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
  102. package/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
  103. package/serialization/resources/inboxes/types/Inbox.js +2 -0
  104. package/serialization/resources/inboxes/types/index.d.ts +1 -0
  105. package/serialization/resources/inboxes/types/index.js +1 -0
  106. package/serialization/resources/webhooks/types/ClientId.d.ts +10 -0
  107. package/serialization/resources/webhooks/types/ClientId.js +41 -0
  108. package/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +2 -0
  109. package/serialization/resources/webhooks/types/CreateWebhookRequest.js +2 -0
  110. package/serialization/resources/webhooks/types/Webhook.d.ts +2 -0
  111. package/serialization/resources/webhooks/types/Webhook.js +2 -0
  112. package/serialization/resources/webhooks/types/index.d.ts +1 -0
  113. package/serialization/resources/webhooks/types/index.js +1 -0
  114. package/version.d.ts +1 -1
  115. package/version.js +1 -1
@@ -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.DraftReplyTo = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftReplyTo = core.serialization.list(core.serialization.string());
@@ -1,5 +1,6 @@
1
1
  export * from "./DraftId";
2
2
  export * from "./DraftLabels";
3
+ export * from "./DraftReplyTo";
3
4
  export * from "./DraftTo";
4
5
  export * from "./DraftCc";
5
6
  export * from "./DraftBcc";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DraftId"), exports);
18
18
  __exportStar(require("./DraftLabels"), exports);
19
+ __exportStar(require("./DraftReplyTo"), exports);
19
20
  __exportStar(require("./DraftTo"), exports);
20
21
  __exportStar(require("./DraftCc"), exports);
21
22
  __exportStar(require("./DraftBcc"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ClientId: core.serialization.Schema<serializers.inboxes.ClientId.Raw, AgentMail.inboxes.ClientId>;
8
+ export declare namespace ClientId {
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.ClientId = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.ClientId = core.serialization.string();
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ClientId } from "./ClientId";
7
8
  export declare const CreateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.CreateInboxRequest.Raw, AgentMail.inboxes.CreateInboxRequest>;
8
9
  export declare namespace CreateInboxRequest {
9
10
  interface Raw {
10
11
  username?: string | null;
11
12
  domain?: string | null;
12
13
  display_name?: string | null;
14
+ client_id?: ClientId.Raw | null;
13
15
  }
14
16
  }
@@ -38,8 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateInboxRequest = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
+ const ClientId_1 = require("./ClientId");
41
42
  exports.CreateInboxRequest = core.serialization.object({
42
43
  username: core.serialization.string().optional(),
43
44
  domain: core.serialization.string().optional(),
44
45
  displayName: core.serialization.property("display_name", core.serialization.string().optional()),
46
+ clientId: core.serialization.property("client_id", ClientId_1.ClientId.optional()),
45
47
  });
@@ -5,6 +5,7 @@ import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { InboxId } from "./InboxId";
8
+ import { ClientId } from "./ClientId";
8
9
  export declare const Inbox: core.serialization.ObjectSchema<serializers.inboxes.Inbox.Raw, AgentMail.inboxes.Inbox>;
9
10
  export declare namespace Inbox {
10
11
  interface Raw {
@@ -12,5 +13,6 @@ export declare namespace Inbox {
12
13
  display_name: string;
13
14
  updated_at: string;
14
15
  created_at: string;
16
+ client_id?: ClientId.Raw | null;
15
17
  }
16
18
  }
@@ -39,9 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Inbox = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const InboxId_1 = require("./InboxId");
42
+ const ClientId_1 = require("./ClientId");
42
43
  exports.Inbox = core.serialization.object({
43
44
  inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
44
45
  displayName: core.serialization.property("display_name", core.serialization.string()),
45
46
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
46
47
  createdAt: core.serialization.property("created_at", core.serialization.date()),
48
+ clientId: core.serialization.property("client_id", ClientId_1.ClientId.optional()),
47
49
  });
@@ -1,4 +1,5 @@
1
1
  export * from "./InboxId";
2
+ export * from "./ClientId";
2
3
  export * from "./Inbox";
3
4
  export * from "./ListInboxesResponse";
4
5
  export * from "./CreateInboxRequest";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InboxId"), exports);
18
+ __exportStar(require("./ClientId"), exports);
18
19
  __exportStar(require("./Inbox"), exports);
19
20
  __exportStar(require("./ListInboxesResponse"), exports);
20
21
  __exportStar(require("./CreateInboxRequest"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ClientId: core.serialization.Schema<serializers.ClientId.Raw, AgentMail.ClientId>;
8
+ export declare namespace ClientId {
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.ClientId = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.ClientId = core.serialization.string();
@@ -7,11 +7,13 @@ import * as core from "../../../../core";
7
7
  import { Url } from "./Url";
8
8
  import { EventTypes } from "./EventTypes";
9
9
  import { InboxIds } from "./InboxIds";
10
+ import { ClientId } from "./ClientId";
10
11
  export declare const CreateWebhookRequest: core.serialization.ObjectSchema<serializers.CreateWebhookRequest.Raw, AgentMail.CreateWebhookRequest>;
11
12
  export declare namespace CreateWebhookRequest {
12
13
  interface Raw {
13
14
  url: Url.Raw;
14
15
  event_types: EventTypes.Raw;
15
16
  inbox_ids?: InboxIds.Raw | null;
17
+ client_id?: ClientId.Raw | null;
16
18
  }
17
19
  }
@@ -41,8 +41,10 @@ const core = __importStar(require("../../../../core"));
41
41
  const Url_1 = require("./Url");
42
42
  const EventTypes_1 = require("./EventTypes");
43
43
  const InboxIds_1 = require("./InboxIds");
44
+ const ClientId_1 = require("./ClientId");
44
45
  exports.CreateWebhookRequest = core.serialization.object({
45
46
  url: Url_1.Url,
46
47
  eventTypes: core.serialization.property("event_types", EventTypes_1.EventTypes),
47
48
  inboxIds: core.serialization.property("inbox_ids", InboxIds_1.InboxIds.optional()),
49
+ clientId: core.serialization.property("client_id", ClientId_1.ClientId.optional()),
48
50
  });
@@ -8,6 +8,7 @@ import { WebhookId } from "./WebhookId";
8
8
  import { Url } from "./Url";
9
9
  import { EventTypes } from "./EventTypes";
10
10
  import { InboxIds } from "./InboxIds";
11
+ import { ClientId } from "./ClientId";
11
12
  export declare const Webhook: core.serialization.ObjectSchema<serializers.Webhook.Raw, AgentMail.Webhook>;
12
13
  export declare namespace Webhook {
13
14
  interface Raw {
@@ -19,5 +20,6 @@ export declare namespace Webhook {
19
20
  enabled: boolean;
20
21
  updated_at: string;
21
22
  created_at: string;
23
+ client_id?: ClientId.Raw | null;
22
24
  }
23
25
  }
@@ -42,6 +42,7 @@ const WebhookId_1 = require("./WebhookId");
42
42
  const Url_1 = require("./Url");
43
43
  const EventTypes_1 = require("./EventTypes");
44
44
  const InboxIds_1 = require("./InboxIds");
45
+ const ClientId_1 = require("./ClientId");
45
46
  exports.Webhook = core.serialization.object({
46
47
  webhookId: core.serialization.property("webhook_id", WebhookId_1.WebhookId),
47
48
  url: Url_1.Url,
@@ -51,4 +52,5 @@ exports.Webhook = core.serialization.object({
51
52
  enabled: core.serialization.boolean(),
52
53
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
53
54
  createdAt: core.serialization.property("created_at", core.serialization.date()),
55
+ clientId: core.serialization.property("client_id", ClientId_1.ClientId.optional()),
54
56
  });
@@ -1,4 +1,5 @@
1
1
  export * from "./WebhookId";
2
+ export * from "./ClientId";
2
3
  export * from "./Url";
3
4
  export * from "./EventType";
4
5
  export * from "./EventTypes";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./WebhookId"), exports);
18
+ __exportStar(require("./ClientId"), exports);
18
19
  __exportStar(require("./Url"), exports);
19
20
  __exportStar(require("./EventType"), exports);
20
21
  __exportStar(require("./EventTypes"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.38";
1
+ export declare const SDK_VERSION = "0.0.40";
package/dist/version.js CHANGED
@@ -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.0.38";
4
+ exports.SDK_VERSION = "0.0.40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "private": false,
5
5
  "repository": "https://github.com/agentmail-to/agentmail-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -115,6 +115,7 @@ await client.inboxes.create({
115
115
  username: undefined,
116
116
  domain: undefined,
117
117
  displayName: undefined,
118
+ clientId: undefined,
118
119
  });
119
120
  ```
120
121
 
@@ -580,6 +581,7 @@ await client.inboxes.drafts.get("inbox_id", "draft_id");
580
581
  ```typescript
581
582
  await client.inboxes.drafts.create("inbox_id", {
582
583
  labels: undefined,
584
+ replyTo: undefined,
583
585
  to: undefined,
584
586
  cc: undefined,
585
587
  bcc: undefined,
@@ -1343,6 +1345,7 @@ await client.webhooks.create({
1343
1345
  url: "url",
1344
1346
  eventTypes: ["message.received", "message.received"],
1345
1347
  inboxIds: undefined,
1348
+ clientId: undefined,
1346
1349
  });
1347
1350
  ```
1348
1351
 
@@ -5,6 +5,7 @@ import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { DraftLabels } from "./DraftLabels";
8
+ import { DraftReplyTo } from "./DraftReplyTo";
8
9
  import { DraftTo } from "./DraftTo";
9
10
  import { DraftCc } from "./DraftCc";
10
11
  import { DraftBcc } from "./DraftBcc";
@@ -15,6 +16,7 @@ export declare const CreateDraftRequest: core.serialization.ObjectSchema<seriali
15
16
  export declare namespace CreateDraftRequest {
16
17
  interface Raw {
17
18
  labels?: DraftLabels.Raw | null;
19
+ reply_to?: DraftReplyTo.Raw | null;
18
20
  to?: DraftTo.Raw | null;
19
21
  cc?: DraftCc.Raw | null;
20
22
  bcc?: DraftBcc.Raw | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateDraftRequest = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const DraftLabels_1 = require("./DraftLabels");
42
+ const DraftReplyTo_1 = require("./DraftReplyTo");
42
43
  const DraftTo_1 = require("./DraftTo");
43
44
  const DraftCc_1 = require("./DraftCc");
44
45
  const DraftBcc_1 = require("./DraftBcc");
@@ -47,6 +48,7 @@ const DraftText_1 = require("./DraftText");
47
48
  const DraftHtml_1 = require("./DraftHtml");
48
49
  exports.CreateDraftRequest = core.serialization.object({
49
50
  labels: DraftLabels_1.DraftLabels.optional(),
51
+ replyTo: core.serialization.property("reply_to", DraftReplyTo_1.DraftReplyTo.optional()),
50
52
  to: DraftTo_1.DraftTo.optional(),
51
53
  cc: DraftCc_1.DraftCc.optional(),
52
54
  bcc: DraftBcc_1.DraftBcc.optional(),
@@ -8,6 +8,7 @@ import { InboxId } from "../../inboxes/types/InboxId";
8
8
  import { ThreadId } from "../../threads/types/ThreadId";
9
9
  import { DraftId } from "./DraftId";
10
10
  import { DraftLabels } from "./DraftLabels";
11
+ import { DraftReplyTo } from "./DraftReplyTo";
11
12
  import { DraftTo } from "./DraftTo";
12
13
  import { DraftCc } from "./DraftCc";
13
14
  import { DraftBcc } from "./DraftBcc";
@@ -24,6 +25,7 @@ export declare namespace Draft {
24
25
  thread_id: ThreadId.Raw;
25
26
  draft_id: DraftId.Raw;
26
27
  labels: DraftLabels.Raw;
28
+ reply_to?: DraftReplyTo.Raw | null;
27
29
  to?: DraftTo.Raw | null;
28
30
  cc?: DraftCc.Raw | null;
29
31
  bcc?: DraftBcc.Raw | null;
@@ -42,6 +42,7 @@ const InboxId_1 = require("../../inboxes/types/InboxId");
42
42
  const ThreadId_1 = require("../../threads/types/ThreadId");
43
43
  const DraftId_1 = require("./DraftId");
44
44
  const DraftLabels_1 = require("./DraftLabels");
45
+ const DraftReplyTo_1 = require("./DraftReplyTo");
45
46
  const DraftTo_1 = require("./DraftTo");
46
47
  const DraftCc_1 = require("./DraftCc");
47
48
  const DraftBcc_1 = require("./DraftBcc");
@@ -56,6 +57,7 @@ exports.Draft = core.serialization.object({
56
57
  threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
57
58
  draftId: core.serialization.property("draft_id", DraftId_1.DraftId),
58
59
  labels: DraftLabels_1.DraftLabels,
60
+ replyTo: core.serialization.property("reply_to", DraftReplyTo_1.DraftReplyTo.optional()),
59
61
  to: DraftTo_1.DraftTo.optional(),
60
62
  cc: DraftCc_1.DraftCc.optional(),
61
63
  bcc: DraftBcc_1.DraftBcc.optional(),
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DraftReplyTo: core.serialization.Schema<serializers.DraftReplyTo.Raw, AgentMail.DraftReplyTo>;
8
+ export declare namespace DraftReplyTo {
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.DraftReplyTo = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftReplyTo = core.serialization.list(core.serialization.string());
@@ -1,5 +1,6 @@
1
1
  export * from "./DraftId";
2
2
  export * from "./DraftLabels";
3
+ export * from "./DraftReplyTo";
3
4
  export * from "./DraftTo";
4
5
  export * from "./DraftCc";
5
6
  export * from "./DraftBcc";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DraftId"), exports);
18
18
  __exportStar(require("./DraftLabels"), exports);
19
+ __exportStar(require("./DraftReplyTo"), exports);
19
20
  __exportStar(require("./DraftTo"), exports);
20
21
  __exportStar(require("./DraftCc"), exports);
21
22
  __exportStar(require("./DraftBcc"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ClientId: core.serialization.Schema<serializers.inboxes.ClientId.Raw, AgentMail.inboxes.ClientId>;
8
+ export declare namespace ClientId {
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.ClientId = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.ClientId = core.serialization.string();
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ClientId } from "./ClientId";
7
8
  export declare const CreateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.CreateInboxRequest.Raw, AgentMail.inboxes.CreateInboxRequest>;
8
9
  export declare namespace CreateInboxRequest {
9
10
  interface Raw {
10
11
  username?: string | null;
11
12
  domain?: string | null;
12
13
  display_name?: string | null;
14
+ client_id?: ClientId.Raw | null;
13
15
  }
14
16
  }
@@ -38,8 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateInboxRequest = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
+ const ClientId_1 = require("./ClientId");
41
42
  exports.CreateInboxRequest = core.serialization.object({
42
43
  username: core.serialization.string().optional(),
43
44
  domain: core.serialization.string().optional(),
44
45
  displayName: core.serialization.property("display_name", core.serialization.string().optional()),
46
+ clientId: core.serialization.property("client_id", ClientId_1.ClientId.optional()),
45
47
  });
@@ -5,6 +5,7 @@ import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { InboxId } from "./InboxId";
8
+ import { ClientId } from "./ClientId";
8
9
  export declare const Inbox: core.serialization.ObjectSchema<serializers.inboxes.Inbox.Raw, AgentMail.inboxes.Inbox>;
9
10
  export declare namespace Inbox {
10
11
  interface Raw {
@@ -12,5 +13,6 @@ export declare namespace Inbox {
12
13
  display_name: string;
13
14
  updated_at: string;
14
15
  created_at: string;
16
+ client_id?: ClientId.Raw | null;
15
17
  }
16
18
  }
@@ -39,9 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Inbox = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const InboxId_1 = require("./InboxId");
42
+ const ClientId_1 = require("./ClientId");
42
43
  exports.Inbox = core.serialization.object({
43
44
  inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
44
45
  displayName: core.serialization.property("display_name", core.serialization.string()),
45
46
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
46
47
  createdAt: core.serialization.property("created_at", core.serialization.date()),
48
+ clientId: core.serialization.property("client_id", ClientId_1.ClientId.optional()),
47
49
  });
@@ -1,4 +1,5 @@
1
1
  export * from "./InboxId";
2
+ export * from "./ClientId";
2
3
  export * from "./Inbox";
3
4
  export * from "./ListInboxesResponse";
4
5
  export * from "./CreateInboxRequest";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InboxId"), exports);
18
+ __exportStar(require("./ClientId"), exports);
18
19
  __exportStar(require("./Inbox"), exports);
19
20
  __exportStar(require("./ListInboxesResponse"), exports);
20
21
  __exportStar(require("./CreateInboxRequest"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ClientId: core.serialization.Schema<serializers.ClientId.Raw, AgentMail.ClientId>;
8
+ export declare namespace ClientId {
9
+ type Raw = string;
10
+ }