agentmail 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/events/types/EventTypes.d.ts +1 -1
- package/dist/cjs/api/resources/events/types/InboxIds.d.ts +4 -0
- package/dist/cjs/api/resources/events/types/PodIds.d.ts +4 -0
- package/dist/cjs/api/resources/events/types/PodIds.js +3 -0
- package/dist/cjs/api/resources/events/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/events/types/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequest.d.ts +2 -1
- package/dist/cjs/api/resources/webhooks/types/Webhook.d.ts +2 -1
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/types/index.js +0 -1
- package/dist/cjs/api/resources/websockets/types/Subscribe.d.ts +2 -4
- package/dist/cjs/api/resources/websockets/types/Subscribed.d.ts +2 -4
- package/dist/cjs/serialization/resources/{webhooks → events}/types/InboxIds.d.ts +1 -1
- package/dist/cjs/serialization/resources/events/types/PodIds.d.ts +7 -0
- package/dist/cjs/serialization/resources/events/types/PodIds.js +39 -0
- package/dist/cjs/serialization/resources/events/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/index.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +3 -1
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhookRequest.js +3 -1
- package/dist/cjs/serialization/resources/webhooks/types/Webhook.d.ts +3 -1
- package/dist/cjs/serialization/resources/webhooks/types/Webhook.js +3 -1
- package/dist/cjs/serialization/resources/webhooks/types/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/webhooks/types/index.js +0 -1
- package/dist/cjs/serialization/resources/websockets/types/Subscribe.d.ts +4 -2
- package/dist/cjs/serialization/resources/websockets/types/Subscribe.js +4 -2
- package/dist/cjs/serialization/resources/websockets/types/Subscribed.d.ts +4 -2
- package/dist/cjs/serialization/resources/websockets/types/Subscribed.js +4 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/events/types/EventTypes.d.mts +1 -1
- package/dist/esm/api/resources/events/types/InboxIds.d.mts +4 -0
- package/dist/esm/api/resources/events/types/PodIds.d.mts +4 -0
- package/dist/esm/api/resources/events/types/PodIds.mjs +2 -0
- package/dist/esm/api/resources/events/types/index.d.mts +2 -0
- package/dist/esm/api/resources/events/types/index.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.d.mts +2 -1
- package/dist/esm/api/resources/webhooks/types/Webhook.d.mts +2 -1
- package/dist/esm/api/resources/webhooks/types/index.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/types/index.mjs +0 -1
- package/dist/esm/api/resources/websockets/types/Subscribe.d.mts +2 -4
- package/dist/esm/api/resources/websockets/types/Subscribed.d.mts +2 -4
- package/dist/esm/serialization/resources/{webhooks → events}/types/InboxIds.d.mts +1 -1
- package/dist/esm/serialization/resources/events/types/PodIds.d.mts +7 -0
- package/dist/esm/serialization/resources/events/types/PodIds.mjs +3 -0
- package/dist/esm/serialization/resources/events/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhookRequest.d.mts +3 -1
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhookRequest.mjs +3 -1
- package/dist/esm/serialization/resources/webhooks/types/Webhook.d.mts +3 -1
- package/dist/esm/serialization/resources/webhooks/types/Webhook.mjs +3 -1
- package/dist/esm/serialization/resources/webhooks/types/index.d.mts +0 -1
- package/dist/esm/serialization/resources/webhooks/types/index.mjs +0 -1
- package/dist/esm/serialization/resources/websockets/types/Subscribe.d.mts +4 -2
- package/dist/esm/serialization/resources/websockets/types/Subscribe.mjs +4 -2
- package/dist/esm/serialization/resources/websockets/types/Subscribed.d.mts +4 -2
- package/dist/esm/serialization/resources/websockets/types/Subscribed.mjs +4 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +142 -150
- package/package.json +1 -1
- package/dist/cjs/api/resources/webhooks/types/InboxIds.d.ts +0 -4
- package/dist/esm/api/resources/webhooks/types/InboxIds.d.mts +0 -4
- /package/dist/cjs/api/resources/{webhooks → events}/types/InboxIds.js +0 -0
- /package/dist/cjs/serialization/resources/{webhooks → events}/types/InboxIds.js +0 -0
- /package/dist/esm/api/resources/{webhooks → events}/types/InboxIds.mjs +0 -0
- /package/dist/esm/serialization/resources/{webhooks → events}/types/InboxIds.mjs +0 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentmail",
|
|
46
|
-
"X-Fern-SDK-Version": "0.1.
|
|
47
|
-
"User-Agent": "agentmail/0.1.
|
|
46
|
+
"X-Fern-SDK-Version": "0.1.14",
|
|
47
|
+
"User-Agent": "agentmail/0.1.14",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -5,12 +5,14 @@ export * from "./DomainVerifiedEvent.js";
|
|
|
5
5
|
export * from "./EventId.js";
|
|
6
6
|
export * from "./EventType.js";
|
|
7
7
|
export * from "./EventTypes.js";
|
|
8
|
+
export * from "./InboxIds.js";
|
|
8
9
|
export * from "./MessageBouncedEvent.js";
|
|
9
10
|
export * from "./MessageComplainedEvent.js";
|
|
10
11
|
export * from "./MessageDeliveredEvent.js";
|
|
11
12
|
export * from "./MessageReceivedEvent.js";
|
|
12
13
|
export * from "./MessageRejectedEvent.js";
|
|
13
14
|
export * from "./MessageSentEvent.js";
|
|
15
|
+
export * from "./PodIds.js";
|
|
14
16
|
export * from "./Recipient.js";
|
|
15
17
|
export * from "./Reject.js";
|
|
16
18
|
export * from "./Send.js";
|
|
@@ -21,12 +21,14 @@ __exportStar(require("./DomainVerifiedEvent.js"), exports);
|
|
|
21
21
|
__exportStar(require("./EventId.js"), exports);
|
|
22
22
|
__exportStar(require("./EventType.js"), exports);
|
|
23
23
|
__exportStar(require("./EventTypes.js"), exports);
|
|
24
|
+
__exportStar(require("./InboxIds.js"), exports);
|
|
24
25
|
__exportStar(require("./MessageBouncedEvent.js"), exports);
|
|
25
26
|
__exportStar(require("./MessageComplainedEvent.js"), exports);
|
|
26
27
|
__exportStar(require("./MessageDeliveredEvent.js"), exports);
|
|
27
28
|
__exportStar(require("./MessageReceivedEvent.js"), exports);
|
|
28
29
|
__exportStar(require("./MessageRejectedEvent.js"), exports);
|
|
29
30
|
__exportStar(require("./MessageSentEvent.js"), exports);
|
|
31
|
+
__exportStar(require("./PodIds.js"), exports);
|
|
30
32
|
__exportStar(require("./Recipient.js"), exports);
|
|
31
33
|
__exportStar(require("./Reject.js"), exports);
|
|
32
34
|
__exportStar(require("./Send.js"), exports);
|
|
@@ -2,6 +2,7 @@ import type * as AgentMail from "../../../index.js";
|
|
|
2
2
|
export interface CreateWebhookRequest {
|
|
3
3
|
url: AgentMail.webhooks.Url;
|
|
4
4
|
eventTypes: AgentMail.EventTypes;
|
|
5
|
-
|
|
5
|
+
podIds?: AgentMail.PodIds;
|
|
6
|
+
inboxIds?: AgentMail.InboxIds;
|
|
6
7
|
clientId?: AgentMail.webhooks.ClientId;
|
|
7
8
|
}
|
|
@@ -3,7 +3,8 @@ export interface Webhook {
|
|
|
3
3
|
webhookId: AgentMail.webhooks.WebhookId;
|
|
4
4
|
url: AgentMail.webhooks.Url;
|
|
5
5
|
eventTypes?: AgentMail.EventTypes;
|
|
6
|
-
|
|
6
|
+
podIds?: AgentMail.PodIds;
|
|
7
|
+
inboxIds?: AgentMail.InboxIds;
|
|
7
8
|
/** Secret for webhook signature verification. */
|
|
8
9
|
secret: string;
|
|
9
10
|
/** Webhook is enabled. */
|
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ClientId.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateWebhookRequest.js"), exports);
|
|
19
|
-
__exportStar(require("./InboxIds.js"), exports);
|
|
20
19
|
__exportStar(require("./ListWebhooksResponse.js"), exports);
|
|
21
20
|
__exportStar(require("./Url.js"), exports);
|
|
22
21
|
__exportStar(require("./Webhook.js"), exports);
|
|
@@ -2,8 +2,6 @@ import type * as AgentMail from "../../../index.js";
|
|
|
2
2
|
export interface Subscribe {
|
|
3
3
|
type: "subscribe";
|
|
4
4
|
eventTypes?: AgentMail.EventTypes;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** IDs of the pods to subscribe to. */
|
|
8
|
-
podIds?: string[];
|
|
5
|
+
inboxIds?: AgentMail.InboxIds;
|
|
6
|
+
podIds?: AgentMail.PodIds;
|
|
9
7
|
}
|
|
@@ -2,8 +2,6 @@ import type * as AgentMail from "../../../index.js";
|
|
|
2
2
|
export interface Subscribed {
|
|
3
3
|
type: "subscribed";
|
|
4
4
|
eventTypes?: AgentMail.EventTypes;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** IDs of the pods that have been subscribed to. */
|
|
8
|
-
podIds?: string[];
|
|
5
|
+
inboxIds?: AgentMail.InboxIds;
|
|
6
|
+
podIds?: AgentMail.PodIds;
|
|
9
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
-
export declare const InboxIds: core.serialization.Schema<serializers.
|
|
4
|
+
export declare const InboxIds: core.serialization.Schema<serializers.InboxIds.Raw, AgentMail.InboxIds>;
|
|
5
5
|
export declare namespace InboxIds {
|
|
6
6
|
type Raw = string[];
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 PodIds: core.serialization.Schema<serializers.PodIds.Raw, AgentMail.PodIds>;
|
|
5
|
+
export declare namespace PodIds {
|
|
6
|
+
type Raw = string[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.PodIds = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.PodIds = core.serialization.list(core.serialization.string());
|
|
@@ -5,12 +5,14 @@ export * from "./DomainVerifiedEvent.js";
|
|
|
5
5
|
export * from "./EventId.js";
|
|
6
6
|
export * from "./EventType.js";
|
|
7
7
|
export * from "./EventTypes.js";
|
|
8
|
+
export * from "./InboxIds.js";
|
|
8
9
|
export * from "./MessageBouncedEvent.js";
|
|
9
10
|
export * from "./MessageComplainedEvent.js";
|
|
10
11
|
export * from "./MessageDeliveredEvent.js";
|
|
11
12
|
export * from "./MessageReceivedEvent.js";
|
|
12
13
|
export * from "./MessageRejectedEvent.js";
|
|
13
14
|
export * from "./MessageSentEvent.js";
|
|
15
|
+
export * from "./PodIds.js";
|
|
14
16
|
export * from "./Recipient.js";
|
|
15
17
|
export * from "./Reject.js";
|
|
16
18
|
export * from "./Send.js";
|
|
@@ -21,12 +21,14 @@ __exportStar(require("./DomainVerifiedEvent.js"), exports);
|
|
|
21
21
|
__exportStar(require("./EventId.js"), exports);
|
|
22
22
|
__exportStar(require("./EventType.js"), exports);
|
|
23
23
|
__exportStar(require("./EventTypes.js"), exports);
|
|
24
|
+
__exportStar(require("./InboxIds.js"), exports);
|
|
24
25
|
__exportStar(require("./MessageBouncedEvent.js"), exports);
|
|
25
26
|
__exportStar(require("./MessageComplainedEvent.js"), exports);
|
|
26
27
|
__exportStar(require("./MessageDeliveredEvent.js"), exports);
|
|
27
28
|
__exportStar(require("./MessageReceivedEvent.js"), exports);
|
|
28
29
|
__exportStar(require("./MessageRejectedEvent.js"), exports);
|
|
29
30
|
__exportStar(require("./MessageSentEvent.js"), exports);
|
|
31
|
+
__exportStar(require("./PodIds.js"), exports);
|
|
30
32
|
__exportStar(require("./Recipient.js"), exports);
|
|
31
33
|
__exportStar(require("./Reject.js"), exports);
|
|
32
34
|
__exportStar(require("./Send.js"), exports);
|
|
@@ -2,14 +2,16 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EventTypes } from "../../events/types/EventTypes.js";
|
|
5
|
+
import { InboxIds } from "../../events/types/InboxIds.js";
|
|
6
|
+
import { PodIds } from "../../events/types/PodIds.js";
|
|
5
7
|
import { ClientId } from "./ClientId.js";
|
|
6
|
-
import { InboxIds } from "./InboxIds.js";
|
|
7
8
|
import { Url } from "./Url.js";
|
|
8
9
|
export declare const CreateWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.CreateWebhookRequest.Raw, AgentMail.webhooks.CreateWebhookRequest>;
|
|
9
10
|
export declare namespace CreateWebhookRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
url: Url.Raw;
|
|
12
13
|
event_types: EventTypes.Raw;
|
|
14
|
+
pod_ids?: PodIds.Raw | null;
|
|
13
15
|
inbox_ids?: InboxIds.Raw | null;
|
|
14
16
|
client_id?: ClientId.Raw | null;
|
|
15
17
|
}
|
|
@@ -37,12 +37,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CreateWebhookRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const EventTypes_js_1 = require("../../events/types/EventTypes.js");
|
|
40
|
+
const InboxIds_js_1 = require("../../events/types/InboxIds.js");
|
|
41
|
+
const PodIds_js_1 = require("../../events/types/PodIds.js");
|
|
40
42
|
const ClientId_js_1 = require("./ClientId.js");
|
|
41
|
-
const InboxIds_js_1 = require("./InboxIds.js");
|
|
42
43
|
const Url_js_1 = require("./Url.js");
|
|
43
44
|
exports.CreateWebhookRequest = core.serialization.object({
|
|
44
45
|
url: Url_js_1.Url,
|
|
45
46
|
eventTypes: core.serialization.property("event_types", EventTypes_js_1.EventTypes),
|
|
47
|
+
podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
|
|
46
48
|
inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
|
|
47
49
|
clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
|
|
48
50
|
});
|
|
@@ -2,8 +2,9 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EventTypes } from "../../events/types/EventTypes.js";
|
|
5
|
+
import { InboxIds } from "../../events/types/InboxIds.js";
|
|
6
|
+
import { PodIds } from "../../events/types/PodIds.js";
|
|
5
7
|
import { ClientId } from "./ClientId.js";
|
|
6
|
-
import { InboxIds } from "./InboxIds.js";
|
|
7
8
|
import { Url } from "./Url.js";
|
|
8
9
|
import { WebhookId } from "./WebhookId.js";
|
|
9
10
|
export declare const Webhook: core.serialization.ObjectSchema<serializers.webhooks.Webhook.Raw, AgentMail.webhooks.Webhook>;
|
|
@@ -12,6 +13,7 @@ export declare namespace Webhook {
|
|
|
12
13
|
webhook_id: WebhookId.Raw;
|
|
13
14
|
url: Url.Raw;
|
|
14
15
|
event_types?: EventTypes.Raw | null;
|
|
16
|
+
pod_ids?: PodIds.Raw | null;
|
|
15
17
|
inbox_ids?: InboxIds.Raw | null;
|
|
16
18
|
secret: string;
|
|
17
19
|
enabled: boolean;
|
|
@@ -37,14 +37,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Webhook = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const EventTypes_js_1 = require("../../events/types/EventTypes.js");
|
|
40
|
+
const InboxIds_js_1 = require("../../events/types/InboxIds.js");
|
|
41
|
+
const PodIds_js_1 = require("../../events/types/PodIds.js");
|
|
40
42
|
const ClientId_js_1 = require("./ClientId.js");
|
|
41
|
-
const InboxIds_js_1 = require("./InboxIds.js");
|
|
42
43
|
const Url_js_1 = require("./Url.js");
|
|
43
44
|
const WebhookId_js_1 = require("./WebhookId.js");
|
|
44
45
|
exports.Webhook = core.serialization.object({
|
|
45
46
|
webhookId: core.serialization.property("webhook_id", WebhookId_js_1.WebhookId),
|
|
46
47
|
url: Url_js_1.Url,
|
|
47
48
|
eventTypes: core.serialization.property("event_types", EventTypes_js_1.EventTypes.optional()),
|
|
49
|
+
podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
|
|
48
50
|
inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
|
|
49
51
|
secret: core.serialization.string(),
|
|
50
52
|
enabled: core.serialization.boolean(),
|
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ClientId.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateWebhookRequest.js"), exports);
|
|
19
|
-
__exportStar(require("./InboxIds.js"), exports);
|
|
20
19
|
__exportStar(require("./ListWebhooksResponse.js"), exports);
|
|
21
20
|
__exportStar(require("./Url.js"), exports);
|
|
22
21
|
__exportStar(require("./Webhook.js"), exports);
|
|
@@ -2,12 +2,14 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EventTypes } from "../../events/types/EventTypes.js";
|
|
5
|
+
import { InboxIds } from "../../events/types/InboxIds.js";
|
|
6
|
+
import { PodIds } from "../../events/types/PodIds.js";
|
|
5
7
|
export declare const Subscribe: core.serialization.ObjectSchema<serializers.Subscribe.Raw, AgentMail.Subscribe>;
|
|
6
8
|
export declare namespace Subscribe {
|
|
7
9
|
interface Raw {
|
|
8
10
|
type: "subscribe";
|
|
9
11
|
event_types?: EventTypes.Raw | null;
|
|
10
|
-
inbox_ids?:
|
|
11
|
-
pod_ids?:
|
|
12
|
+
inbox_ids?: InboxIds.Raw | null;
|
|
13
|
+
pod_ids?: PodIds.Raw | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -37,9 +37,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Subscribe = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const EventTypes_js_1 = require("../../events/types/EventTypes.js");
|
|
40
|
+
const InboxIds_js_1 = require("../../events/types/InboxIds.js");
|
|
41
|
+
const PodIds_js_1 = require("../../events/types/PodIds.js");
|
|
40
42
|
exports.Subscribe = core.serialization.object({
|
|
41
43
|
type: core.serialization.stringLiteral("subscribe"),
|
|
42
44
|
eventTypes: core.serialization.property("event_types", EventTypes_js_1.EventTypes.optional()),
|
|
43
|
-
inboxIds: core.serialization.property("inbox_ids",
|
|
44
|
-
podIds: core.serialization.property("pod_ids",
|
|
45
|
+
inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
|
|
46
|
+
podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
|
|
45
47
|
});
|
|
@@ -2,12 +2,14 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EventTypes } from "../../events/types/EventTypes.js";
|
|
5
|
+
import { InboxIds } from "../../events/types/InboxIds.js";
|
|
6
|
+
import { PodIds } from "../../events/types/PodIds.js";
|
|
5
7
|
export declare const Subscribed: core.serialization.ObjectSchema<serializers.Subscribed.Raw, AgentMail.Subscribed>;
|
|
6
8
|
export declare namespace Subscribed {
|
|
7
9
|
interface Raw {
|
|
8
10
|
type: "subscribed";
|
|
9
11
|
event_types?: EventTypes.Raw | null;
|
|
10
|
-
inbox_ids?:
|
|
11
|
-
pod_ids?:
|
|
12
|
+
inbox_ids?: InboxIds.Raw | null;
|
|
13
|
+
pod_ids?: PodIds.Raw | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -37,9 +37,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Subscribed = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const EventTypes_js_1 = require("../../events/types/EventTypes.js");
|
|
40
|
+
const InboxIds_js_1 = require("../../events/types/InboxIds.js");
|
|
41
|
+
const PodIds_js_1 = require("../../events/types/PodIds.js");
|
|
40
42
|
exports.Subscribed = core.serialization.object({
|
|
41
43
|
type: core.serialization.stringLiteral("subscribed"),
|
|
42
44
|
eventTypes: core.serialization.property("event_types", EventTypes_js_1.EventTypes.optional()),
|
|
43
|
-
inboxIds: core.serialization.property("inbox_ids",
|
|
44
|
-
podIds: core.serialization.property("pod_ids",
|
|
45
|
+
inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
|
|
46
|
+
podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
|
|
45
47
|
});
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.14";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "agentmail",
|
|
9
|
-
"X-Fern-SDK-Version": "0.1.
|
|
10
|
-
"User-Agent": "agentmail/0.1.
|
|
9
|
+
"X-Fern-SDK-Version": "0.1.14",
|
|
10
|
+
"User-Agent": "agentmail/0.1.14",
|
|
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);
|
|
@@ -5,12 +5,14 @@ export * from "./DomainVerifiedEvent.mjs";
|
|
|
5
5
|
export * from "./EventId.mjs";
|
|
6
6
|
export * from "./EventType.mjs";
|
|
7
7
|
export * from "./EventTypes.mjs";
|
|
8
|
+
export * from "./InboxIds.mjs";
|
|
8
9
|
export * from "./MessageBouncedEvent.mjs";
|
|
9
10
|
export * from "./MessageComplainedEvent.mjs";
|
|
10
11
|
export * from "./MessageDeliveredEvent.mjs";
|
|
11
12
|
export * from "./MessageReceivedEvent.mjs";
|
|
12
13
|
export * from "./MessageRejectedEvent.mjs";
|
|
13
14
|
export * from "./MessageSentEvent.mjs";
|
|
15
|
+
export * from "./PodIds.mjs";
|
|
14
16
|
export * from "./Recipient.mjs";
|
|
15
17
|
export * from "./Reject.mjs";
|
|
16
18
|
export * from "./Send.mjs";
|
|
@@ -5,12 +5,14 @@ export * from "./DomainVerifiedEvent.mjs";
|
|
|
5
5
|
export * from "./EventId.mjs";
|
|
6
6
|
export * from "./EventType.mjs";
|
|
7
7
|
export * from "./EventTypes.mjs";
|
|
8
|
+
export * from "./InboxIds.mjs";
|
|
8
9
|
export * from "./MessageBouncedEvent.mjs";
|
|
9
10
|
export * from "./MessageComplainedEvent.mjs";
|
|
10
11
|
export * from "./MessageDeliveredEvent.mjs";
|
|
11
12
|
export * from "./MessageReceivedEvent.mjs";
|
|
12
13
|
export * from "./MessageRejectedEvent.mjs";
|
|
13
14
|
export * from "./MessageSentEvent.mjs";
|
|
15
|
+
export * from "./PodIds.mjs";
|
|
14
16
|
export * from "./Recipient.mjs";
|
|
15
17
|
export * from "./Reject.mjs";
|
|
16
18
|
export * from "./Send.mjs";
|
|
@@ -2,6 +2,7 @@ import type * as AgentMail from "../../../index.mjs";
|
|
|
2
2
|
export interface CreateWebhookRequest {
|
|
3
3
|
url: AgentMail.webhooks.Url;
|
|
4
4
|
eventTypes: AgentMail.EventTypes;
|
|
5
|
-
|
|
5
|
+
podIds?: AgentMail.PodIds;
|
|
6
|
+
inboxIds?: AgentMail.InboxIds;
|
|
6
7
|
clientId?: AgentMail.webhooks.ClientId;
|
|
7
8
|
}
|
|
@@ -3,7 +3,8 @@ export interface Webhook {
|
|
|
3
3
|
webhookId: AgentMail.webhooks.WebhookId;
|
|
4
4
|
url: AgentMail.webhooks.Url;
|
|
5
5
|
eventTypes?: AgentMail.EventTypes;
|
|
6
|
-
|
|
6
|
+
podIds?: AgentMail.PodIds;
|
|
7
|
+
inboxIds?: AgentMail.InboxIds;
|
|
7
8
|
/** Secret for webhook signature verification. */
|
|
8
9
|
secret: string;
|
|
9
10
|
/** Webhook is enabled. */
|
|
@@ -2,8 +2,6 @@ import type * as AgentMail from "../../../index.mjs";
|
|
|
2
2
|
export interface Subscribe {
|
|
3
3
|
type: "subscribe";
|
|
4
4
|
eventTypes?: AgentMail.EventTypes;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** IDs of the pods to subscribe to. */
|
|
8
|
-
podIds?: string[];
|
|
5
|
+
inboxIds?: AgentMail.InboxIds;
|
|
6
|
+
podIds?: AgentMail.PodIds;
|
|
9
7
|
}
|
|
@@ -2,8 +2,6 @@ import type * as AgentMail from "../../../index.mjs";
|
|
|
2
2
|
export interface Subscribed {
|
|
3
3
|
type: "subscribed";
|
|
4
4
|
eventTypes?: AgentMail.EventTypes;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** IDs of the pods that have been subscribed to. */
|
|
8
|
-
podIds?: string[];
|
|
5
|
+
inboxIds?: AgentMail.InboxIds;
|
|
6
|
+
podIds?: AgentMail.PodIds;
|
|
9
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
|
-
export declare const InboxIds: core.serialization.Schema<serializers.
|
|
4
|
+
export declare const InboxIds: core.serialization.Schema<serializers.InboxIds.Raw, AgentMail.InboxIds>;
|
|
5
5
|
export declare namespace InboxIds {
|
|
6
6
|
type Raw = string[];
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const PodIds: core.serialization.Schema<serializers.PodIds.Raw, AgentMail.PodIds>;
|
|
5
|
+
export declare namespace PodIds {
|
|
6
|
+
type Raw = string[];
|
|
7
|
+
}
|
|
@@ -5,12 +5,14 @@ export * from "./DomainVerifiedEvent.mjs";
|
|
|
5
5
|
export * from "./EventId.mjs";
|
|
6
6
|
export * from "./EventType.mjs";
|
|
7
7
|
export * from "./EventTypes.mjs";
|
|
8
|
+
export * from "./InboxIds.mjs";
|
|
8
9
|
export * from "./MessageBouncedEvent.mjs";
|
|
9
10
|
export * from "./MessageComplainedEvent.mjs";
|
|
10
11
|
export * from "./MessageDeliveredEvent.mjs";
|
|
11
12
|
export * from "./MessageReceivedEvent.mjs";
|
|
12
13
|
export * from "./MessageRejectedEvent.mjs";
|
|
13
14
|
export * from "./MessageSentEvent.mjs";
|
|
15
|
+
export * from "./PodIds.mjs";
|
|
14
16
|
export * from "./Recipient.mjs";
|
|
15
17
|
export * from "./Reject.mjs";
|
|
16
18
|
export * from "./Send.mjs";
|
|
@@ -5,12 +5,14 @@ export * from "./DomainVerifiedEvent.mjs";
|
|
|
5
5
|
export * from "./EventId.mjs";
|
|
6
6
|
export * from "./EventType.mjs";
|
|
7
7
|
export * from "./EventTypes.mjs";
|
|
8
|
+
export * from "./InboxIds.mjs";
|
|
8
9
|
export * from "./MessageBouncedEvent.mjs";
|
|
9
10
|
export * from "./MessageComplainedEvent.mjs";
|
|
10
11
|
export * from "./MessageDeliveredEvent.mjs";
|
|
11
12
|
export * from "./MessageReceivedEvent.mjs";
|
|
12
13
|
export * from "./MessageRejectedEvent.mjs";
|
|
13
14
|
export * from "./MessageSentEvent.mjs";
|
|
15
|
+
export * from "./PodIds.mjs";
|
|
14
16
|
export * from "./Recipient.mjs";
|
|
15
17
|
export * from "./Reject.mjs";
|
|
16
18
|
export * from "./Send.mjs";
|
|
@@ -2,14 +2,16 @@ import type * as AgentMail from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { EventTypes } from "../../events/types/EventTypes.mjs";
|
|
5
|
+
import { InboxIds } from "../../events/types/InboxIds.mjs";
|
|
6
|
+
import { PodIds } from "../../events/types/PodIds.mjs";
|
|
5
7
|
import { ClientId } from "./ClientId.mjs";
|
|
6
|
-
import { InboxIds } from "./InboxIds.mjs";
|
|
7
8
|
import { Url } from "./Url.mjs";
|
|
8
9
|
export declare const CreateWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.CreateWebhookRequest.Raw, AgentMail.webhooks.CreateWebhookRequest>;
|
|
9
10
|
export declare namespace CreateWebhookRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
url: Url.Raw;
|
|
12
13
|
event_types: EventTypes.Raw;
|
|
14
|
+
pod_ids?: PodIds.Raw | null;
|
|
13
15
|
inbox_ids?: InboxIds.Raw | null;
|
|
14
16
|
client_id?: ClientId.Raw | null;
|
|
15
17
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { EventTypes } from "../../events/types/EventTypes.mjs";
|
|
4
|
+
import { InboxIds } from "../../events/types/InboxIds.mjs";
|
|
5
|
+
import { PodIds } from "../../events/types/PodIds.mjs";
|
|
4
6
|
import { ClientId } from "./ClientId.mjs";
|
|
5
|
-
import { InboxIds } from "./InboxIds.mjs";
|
|
6
7
|
import { Url } from "./Url.mjs";
|
|
7
8
|
export const CreateWebhookRequest = core.serialization.object({
|
|
8
9
|
url: Url,
|
|
9
10
|
eventTypes: core.serialization.property("event_types", EventTypes),
|
|
11
|
+
podIds: core.serialization.property("pod_ids", PodIds.optional()),
|
|
10
12
|
inboxIds: core.serialization.property("inbox_ids", InboxIds.optional()),
|
|
11
13
|
clientId: core.serialization.property("client_id", ClientId.optional()),
|
|
12
14
|
});
|