agentmail 0.1.13 → 0.1.15
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/domains/types/RecordStatus.d.ts +2 -1
- package/dist/cjs/api/resources/domains/types/RecordStatus.js +2 -1
- package/dist/cjs/api/resources/domains/types/VerificationStatus.d.ts +4 -1
- package/dist/cjs/api/resources/domains/types/VerificationStatus.js +4 -1
- 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/domains/types/RecordStatus.d.ts +1 -1
- package/dist/cjs/serialization/resources/domains/types/RecordStatus.js +1 -1
- package/dist/cjs/serialization/resources/domains/types/VerificationStatus.d.ts +1 -1
- package/dist/cjs/serialization/resources/domains/types/VerificationStatus.js +1 -1
- 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/domains/types/RecordStatus.d.mts +2 -1
- package/dist/esm/api/resources/domains/types/RecordStatus.mjs +2 -1
- package/dist/esm/api/resources/domains/types/VerificationStatus.d.mts +4 -1
- package/dist/esm/api/resources/domains/types/VerificationStatus.mjs +4 -1
- 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/domains/types/RecordStatus.d.mts +1 -1
- package/dist/esm/serialization/resources/domains/types/RecordStatus.mjs +1 -1
- package/dist/esm/serialization/resources/domains/types/VerificationStatus.d.mts +1 -1
- package/dist/esm/serialization/resources/domains/types/VerificationStatus.mjs +1 -1
- 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 +181 -173
- 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
|
@@ -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
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const RecordStatus: core.serialization.Schema<serializers.RecordStatus.Raw, AgentMail.RecordStatus>;
|
|
5
5
|
export declare namespace RecordStatus {
|
|
6
|
-
type Raw = "MISSING" | "
|
|
6
|
+
type Raw = "MISSING" | "INVALID" | "VALID";
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
-
export const RecordStatus = core.serialization.enum_(["MISSING", "
|
|
3
|
+
export const RecordStatus = core.serialization.enum_(["MISSING", "INVALID", "VALID"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const VerificationStatus: core.serialization.Schema<serializers.VerificationStatus.Raw, AgentMail.VerificationStatus>;
|
|
5
5
|
export declare namespace VerificationStatus {
|
|
6
|
-
type Raw = "PENDING" | "VERIFYING" | "
|
|
6
|
+
type Raw = "NOT_STARTED" | "PENDING" | "INVALID" | "FAILED" | "VERIFYING" | "VERIFIED";
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
-
export const VerificationStatus = core.serialization.enum_(["PENDING", "VERIFYING", "
|
|
3
|
+
export const VerificationStatus = core.serialization.enum_(["NOT_STARTED", "PENDING", "INVALID", "FAILED", "VERIFYING", "VERIFIED"]);
|
|
@@ -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
|
});
|
|
@@ -2,8 +2,9 @@ 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
|
import { WebhookId } from "./WebhookId.mjs";
|
|
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;
|
|
@@ -1,14 +1,16 @@
|
|
|
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
|
import { WebhookId } from "./WebhookId.mjs";
|
|
8
9
|
export const Webhook = core.serialization.object({
|
|
9
10
|
webhookId: core.serialization.property("webhook_id", WebhookId),
|
|
10
11
|
url: Url,
|
|
11
12
|
eventTypes: core.serialization.property("event_types", EventTypes.optional()),
|
|
13
|
+
podIds: core.serialization.property("pod_ids", PodIds.optional()),
|
|
12
14
|
inboxIds: core.serialization.property("inbox_ids", InboxIds.optional()),
|
|
13
15
|
secret: core.serialization.string(),
|
|
14
16
|
enabled: core.serialization.boolean(),
|
|
@@ -2,12 +2,14 @@ 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
|
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
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
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
|
export const Subscribe = core.serialization.object({
|
|
5
7
|
type: core.serialization.stringLiteral("subscribe"),
|
|
6
8
|
eventTypes: core.serialization.property("event_types", EventTypes.optional()),
|
|
7
|
-
inboxIds: core.serialization.property("inbox_ids",
|
|
8
|
-
podIds: core.serialization.property("pod_ids",
|
|
9
|
+
inboxIds: core.serialization.property("inbox_ids", InboxIds.optional()),
|
|
10
|
+
podIds: core.serialization.property("pod_ids", PodIds.optional()),
|
|
9
11
|
});
|
|
@@ -2,12 +2,14 @@ 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
|
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
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
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
|
export const Subscribed = core.serialization.object({
|
|
5
7
|
type: core.serialization.stringLiteral("subscribed"),
|
|
6
8
|
eventTypes: core.serialization.property("event_types", EventTypes.optional()),
|
|
7
|
-
inboxIds: core.serialization.property("inbox_ids",
|
|
8
|
-
podIds: core.serialization.property("pod_ids",
|
|
9
|
+
inboxIds: core.serialization.property("inbox_ids", InboxIds.optional()),
|
|
10
|
+
podIds: core.serialization.property("pod_ids", PodIds.optional()),
|
|
9
11
|
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.15";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
1
|
+
export const SDK_VERSION = "0.1.15";
|