agentmail 0.0.38 → 0.0.39

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.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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.38";
1
+ export declare const SDK_VERSION = "0.0.39";
package/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.39";