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.
- package/README.md +1 -0
- package/api/resources/contexts/client/Client.js +4 -4
- package/api/resources/drafts/client/Client.js +2 -2
- package/api/resources/drafts/types/CreateDraftRequest.d.ts +1 -0
- package/api/resources/drafts/types/Draft.d.ts +1 -0
- package/api/resources/drafts/types/DraftReplyTo.d.ts +7 -0
- package/api/resources/drafts/types/DraftReplyTo.js +5 -0
- package/api/resources/drafts/types/index.d.ts +1 -0
- package/api/resources/drafts/types/index.js +1 -0
- package/api/resources/inboxes/client/Client.d.ts +2 -1
- package/api/resources/inboxes/client/Client.js +5 -4
- package/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -0
- package/api/resources/inboxes/resources/drafts/client/Client.js +5 -4
- package/api/resources/inboxes/resources/messages/client/Client.js +6 -6
- package/api/resources/inboxes/resources/threads/client/Client.js +3 -3
- package/api/resources/inboxes/types/ClientId.d.ts +7 -0
- package/api/resources/inboxes/types/ClientId.js +5 -0
- package/api/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/api/resources/inboxes/types/Inbox.d.ts +1 -0
- package/api/resources/inboxes/types/index.d.ts +1 -0
- package/api/resources/inboxes/types/index.js +1 -0
- package/api/resources/messages/types/Message.d.ts +1 -1
- package/api/resources/threads/client/Client.js +3 -3
- package/api/resources/webhooks/client/Client.d.ts +2 -1
- package/api/resources/webhooks/client/Client.js +6 -5
- package/api/resources/webhooks/types/ClientId.d.ts +7 -0
- package/api/resources/webhooks/types/ClientId.js +5 -0
- package/api/resources/webhooks/types/CreateWebhookRequest.d.ts +1 -0
- package/api/resources/webhooks/types/Webhook.d.ts +1 -0
- package/api/resources/webhooks/types/index.d.ts +1 -0
- package/api/resources/webhooks/types/index.js +1 -0
- package/dist/api/resources/contexts/client/Client.js +4 -4
- package/dist/api/resources/drafts/client/Client.js +2 -2
- package/dist/api/resources/drafts/types/CreateDraftRequest.d.ts +1 -0
- package/dist/api/resources/drafts/types/Draft.d.ts +1 -0
- package/dist/api/resources/drafts/types/DraftReplyTo.d.ts +7 -0
- package/dist/api/resources/drafts/types/DraftReplyTo.js +5 -0
- package/dist/api/resources/drafts/types/index.d.ts +1 -0
- package/dist/api/resources/drafts/types/index.js +1 -0
- package/dist/api/resources/inboxes/client/Client.d.ts +2 -1
- package/dist/api/resources/inboxes/client/Client.js +5 -4
- package/dist/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -0
- package/dist/api/resources/inboxes/resources/drafts/client/Client.js +5 -4
- package/dist/api/resources/inboxes/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/inboxes/resources/threads/client/Client.js +3 -3
- package/dist/api/resources/inboxes/types/ClientId.d.ts +7 -0
- package/dist/api/resources/inboxes/types/ClientId.js +5 -0
- package/dist/api/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/dist/api/resources/inboxes/types/Inbox.d.ts +1 -0
- package/dist/api/resources/inboxes/types/index.d.ts +1 -0
- package/dist/api/resources/inboxes/types/index.js +1 -0
- package/dist/api/resources/messages/types/Message.d.ts +1 -1
- package/dist/api/resources/threads/client/Client.js +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +2 -1
- package/dist/api/resources/webhooks/client/Client.js +6 -5
- package/dist/api/resources/webhooks/types/ClientId.d.ts +7 -0
- package/dist/api/resources/webhooks/types/ClientId.js +5 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/types/Webhook.d.ts +1 -0
- package/dist/api/resources/webhooks/types/index.d.ts +1 -0
- package/dist/api/resources/webhooks/types/index.js +1 -0
- package/dist/serialization/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
- package/dist/serialization/resources/drafts/types/CreateDraftRequest.js +2 -0
- package/dist/serialization/resources/drafts/types/Draft.d.ts +2 -0
- package/dist/serialization/resources/drafts/types/Draft.js +2 -0
- package/dist/serialization/resources/drafts/types/DraftReplyTo.d.ts +10 -0
- package/dist/serialization/resources/drafts/types/DraftReplyTo.js +41 -0
- package/dist/serialization/resources/drafts/types/index.d.ts +1 -0
- package/dist/serialization/resources/drafts/types/index.js +1 -0
- package/dist/serialization/resources/inboxes/types/ClientId.d.ts +10 -0
- package/dist/serialization/resources/inboxes/types/ClientId.js +41 -0
- package/dist/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/dist/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
- package/dist/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
- package/dist/serialization/resources/inboxes/types/Inbox.js +2 -0
- package/dist/serialization/resources/inboxes/types/index.d.ts +1 -0
- package/dist/serialization/resources/inboxes/types/index.js +1 -0
- package/dist/serialization/resources/webhooks/types/ClientId.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/ClientId.js +41 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +2 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequest.js +2 -0
- package/dist/serialization/resources/webhooks/types/Webhook.d.ts +2 -0
- package/dist/serialization/resources/webhooks/types/Webhook.js +2 -0
- package/dist/serialization/resources/webhooks/types/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -0
- package/serialization/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
- package/serialization/resources/drafts/types/CreateDraftRequest.js +2 -0
- package/serialization/resources/drafts/types/Draft.d.ts +2 -0
- package/serialization/resources/drafts/types/Draft.js +2 -0
- package/serialization/resources/drafts/types/DraftReplyTo.d.ts +10 -0
- package/serialization/resources/drafts/types/DraftReplyTo.js +41 -0
- package/serialization/resources/drafts/types/index.d.ts +1 -0
- package/serialization/resources/drafts/types/index.js +1 -0
- package/serialization/resources/inboxes/types/ClientId.d.ts +10 -0
- package/serialization/resources/inboxes/types/ClientId.js +41 -0
- package/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
- package/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
- package/serialization/resources/inboxes/types/Inbox.js +2 -0
- package/serialization/resources/inboxes/types/index.d.ts +1 -0
- package/serialization/resources/inboxes/types/index.js +1 -0
- package/serialization/resources/webhooks/types/ClientId.d.ts +10 -0
- package/serialization/resources/webhooks/types/ClientId.js +41 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +2 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequest.js +2 -0
- package/serialization/resources/webhooks/types/Webhook.d.ts +2 -0
- package/serialization/resources/webhooks/types/Webhook.js +2 -0
- package/serialization/resources/webhooks/types/index.d.ts +1 -0
- package/serialization/resources/webhooks/types/index.js +1 -0
- package/version.d.ts +1 -1
- 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
|
});
|
|
@@ -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.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.39";
|
package/version.js
CHANGED