agentmail 0.5.2 → 0.5.4
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/agent/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agent/client/Client.js +1 -1
- package/dist/cjs/api/resources/agent/types/AgentSignupRequest.d.ts +12 -0
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/inboxes/client/Client.js +10 -3
- package/dist/cjs/api/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/types/Inbox.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/types/Metadata.d.ts +6 -0
- package/dist/cjs/api/resources/inboxes/types/Metadata.js +3 -0
- package/dist/cjs/api/resources/inboxes/types/MetadataValue.d.ts +4 -0
- package/dist/cjs/api/resources/inboxes/types/MetadataValue.js +3 -0
- package/dist/cjs/api/resources/inboxes/types/UpdateInboxRequest.d.ts +8 -1
- package/dist/cjs/api/resources/inboxes/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/types/index.js +2 -0
- package/dist/cjs/api/resources/lists/types/ListEntryBase.d.ts +2 -0
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +1 -3
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +1 -3
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequest.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/agent/types/AgentSignupRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/agent/types/AgentSignupRequest.js +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/Inbox.js +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/Metadata.d.ts +8 -0
- package/dist/cjs/serialization/resources/inboxes/types/Metadata.js +40 -0
- package/dist/cjs/serialization/resources/inboxes/types/MetadataValue.d.ts +7 -0
- package/dist/cjs/serialization/resources/inboxes/types/MetadataValue.js +43 -0
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.d.ts +3 -1
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.js +3 -1
- package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/index.js +2 -0
- package/dist/cjs/serialization/resources/lists/types/ListEntryBase.d.ts +1 -0
- package/dist/cjs/serialization/resources/lists/types/ListEntryBase.js +1 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhookRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhookRequest.js +2 -0
- 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/agent/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agent/client/Client.mjs +1 -1
- package/dist/esm/api/resources/agent/types/AgentSignupRequest.d.mts +12 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/inboxes/client/Client.mjs +10 -3
- package/dist/esm/api/resources/inboxes/types/CreateInboxRequest.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/types/Inbox.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/types/Metadata.d.mts +6 -0
- package/dist/esm/api/resources/inboxes/types/Metadata.mjs +2 -0
- package/dist/esm/api/resources/inboxes/types/MetadataValue.d.mts +4 -0
- package/dist/esm/api/resources/inboxes/types/MetadataValue.mjs +2 -0
- package/dist/esm/api/resources/inboxes/types/UpdateInboxRequest.d.mts +8 -1
- package/dist/esm/api/resources/inboxes/types/index.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/types/index.mjs +2 -0
- package/dist/esm/api/resources/lists/types/ListEntryBase.d.mts +2 -0
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +1 -3
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +1 -3
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/agent/types/AgentSignupRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/agent/types/AgentSignupRequest.mjs +2 -0
- package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.mjs +2 -0
- package/dist/esm/serialization/resources/inboxes/types/Inbox.d.mts +2 -0
- package/dist/esm/serialization/resources/inboxes/types/Inbox.mjs +2 -0
- package/dist/esm/serialization/resources/inboxes/types/Metadata.d.mts +8 -0
- package/dist/esm/serialization/resources/inboxes/types/Metadata.mjs +4 -0
- package/dist/esm/serialization/resources/inboxes/types/MetadataValue.d.mts +7 -0
- package/dist/esm/serialization/resources/inboxes/types/MetadataValue.mjs +7 -0
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.d.mts +3 -1
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.mjs +3 -1
- package/dist/esm/serialization/resources/inboxes/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/inboxes/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/lists/types/ListEntryBase.d.mts +1 -0
- package/dist/esm/serialization/resources/lists/types/ListEntryBase.mjs +1 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhookRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhookRequest.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +6877 -7046
- package/dist/llms.txt +192 -183
- package/package.json +1 -1
- package/reference.md +6 -7
|
@@ -266,11 +266,10 @@ export class InboxesClient {
|
|
|
266
266
|
* @param {InboxesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
267
267
|
*
|
|
268
268
|
* @throws {@link AgentMail.NotFoundError}
|
|
269
|
+
* @throws {@link AgentMail.ValidationError}
|
|
269
270
|
*
|
|
270
271
|
* @example
|
|
271
|
-
* await client.inboxes.update("inbox_id", {
|
|
272
|
-
* displayName: "display_name"
|
|
273
|
-
* })
|
|
272
|
+
* await client.inboxes.update("inbox_id", {})
|
|
274
273
|
*/
|
|
275
274
|
update(inbox_id, request, requestOptions) {
|
|
276
275
|
return core.HttpResponsePromise.fromPromise(this.__update(inbox_id, request, requestOptions));
|
|
@@ -320,6 +319,14 @@ export class InboxesClient {
|
|
|
320
319
|
skipValidation: true,
|
|
321
320
|
breadcrumbsPrefix: ["response"],
|
|
322
321
|
}), _response.rawResponse);
|
|
322
|
+
case 400:
|
|
323
|
+
throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
324
|
+
unrecognizedObjectKeys: "passthrough",
|
|
325
|
+
allowUnrecognizedUnionMembers: true,
|
|
326
|
+
allowUnrecognizedEnumValues: true,
|
|
327
|
+
skipValidation: true,
|
|
328
|
+
breadcrumbsPrefix: ["response"],
|
|
329
|
+
}), _response.rawResponse);
|
|
323
330
|
default:
|
|
324
331
|
throw new errors.AgentMailError({
|
|
325
332
|
statusCode: _response.error.statusCode,
|
|
@@ -5,6 +5,8 @@ export interface Inbox {
|
|
|
5
5
|
email: AgentMail.inboxes.Email;
|
|
6
6
|
displayName?: AgentMail.inboxes.DisplayName;
|
|
7
7
|
clientId?: AgentMail.inboxes.ClientId;
|
|
8
|
+
/** Custom metadata attached to the inbox. */
|
|
9
|
+
metadata?: AgentMail.inboxes.Metadata;
|
|
8
10
|
/** Time at which inbox was last updated. */
|
|
9
11
|
updatedAt: Date;
|
|
10
12
|
/** Time at which inbox was created. */
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.mjs";
|
|
2
2
|
export interface UpdateInboxRequest {
|
|
3
|
-
displayName
|
|
3
|
+
displayName?: AgentMail.inboxes.DisplayName;
|
|
4
|
+
/**
|
|
5
|
+
* Metadata to merge into the inbox's existing metadata. Keys you include
|
|
6
|
+
* are added or overwritten; keys you omit are left unchanged. To remove a
|
|
7
|
+
* single key, send it with a null value. To clear all metadata, send
|
|
8
|
+
* `metadata` as null. Provide at least one of `display_name` or `metadata`.
|
|
9
|
+
*/
|
|
10
|
+
metadata?: AgentMail.inboxes.Metadata;
|
|
4
11
|
}
|
|
@@ -75,9 +75,7 @@ export declare class InboxesClient {
|
|
|
75
75
|
* @throws {@link AgentMail.NotFoundError}
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.pods.inboxes.update("pod_id", "inbox_id", {
|
|
79
|
-
* displayName: "display_name"
|
|
80
|
-
* })
|
|
78
|
+
* await client.pods.inboxes.update("pod_id", "inbox_id", {})
|
|
81
79
|
*/
|
|
82
80
|
update(pod_id: AgentMail.pods.PodId, inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.inboxes.UpdateInboxRequest, requestOptions?: InboxesClient.RequestOptions): core.HttpResponsePromise<AgentMail.inboxes.Inbox>;
|
|
83
81
|
private __update;
|
|
@@ -250,9 +250,7 @@ export class InboxesClient {
|
|
|
250
250
|
* @throws {@link AgentMail.NotFoundError}
|
|
251
251
|
*
|
|
252
252
|
* @example
|
|
253
|
-
* await client.pods.inboxes.update("pod_id", "inbox_id", {
|
|
254
|
-
* displayName: "display_name"
|
|
255
|
-
* })
|
|
253
|
+
* await client.pods.inboxes.update("pod_id", "inbox_id", {})
|
|
256
254
|
*/
|
|
257
255
|
update(pod_id, inbox_id, request, requestOptions) {
|
|
258
256
|
return core.HttpResponsePromise.fromPromise(this.__update(pod_id, inbox_id, request, requestOptions));
|
|
@@ -60,6 +60,9 @@ export declare class WebhooksClient {
|
|
|
60
60
|
create(request: AgentMail.webhooks.CreateWebhookRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.Webhook>;
|
|
61
61
|
private __create;
|
|
62
62
|
/**
|
|
63
|
+
* Update inbox or pod subscriptions, or replace the webhook's `event_types` in full when you pass a
|
|
64
|
+
* non-empty `event_types` array (see request field docs). Inbox and pod changes use add/remove lists.
|
|
65
|
+
*
|
|
63
66
|
* **CLI:**
|
|
64
67
|
* ```bash
|
|
65
68
|
* agentmail webhooks update --webhook-id <webhook_id> --add-inbox-id <inbox_id>
|
|
@@ -224,6 +224,9 @@ export class WebhooksClient {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
|
+
* Update inbox or pod subscriptions, or replace the webhook's `event_types` in full when you pass a
|
|
228
|
+
* non-empty `event_types` array (see request field docs). Inbox and pod changes use add/remove lists.
|
|
229
|
+
*
|
|
227
230
|
* **CLI:**
|
|
228
231
|
* ```bash
|
|
229
232
|
* agentmail webhooks update --webhook-id <webhook_id> --add-inbox-id <inbox_id>
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.mjs";
|
|
2
2
|
export interface CreateWebhookRequest {
|
|
3
3
|
url: AgentMail.webhooks.Url;
|
|
4
|
+
/**
|
|
5
|
+
* Full list of event types this webhook should receive. At least one type is required. Send every type you
|
|
6
|
+
* want in this array (not incremental). See [Webhooks overview](https://docs.agentmail.to/webhooks-overview)
|
|
7
|
+
* for spam, blocked, and unauthenticated events and required permissions.
|
|
8
|
+
*/
|
|
4
9
|
eventTypes: AgentMail.EventTypes;
|
|
5
10
|
podIds?: AgentMail.PodIds;
|
|
6
11
|
inboxIds?: AgentMail.InboxIds;
|
|
@@ -8,4 +8,13 @@ export interface UpdateWebhookRequest {
|
|
|
8
8
|
addPodIds?: AgentMail.PodIds;
|
|
9
9
|
/** Pod IDs to unsubscribe from the webhook. */
|
|
10
10
|
removePodIds?: AgentMail.PodIds;
|
|
11
|
+
/**
|
|
12
|
+
* When you send a non-empty list, it replaces the webhook's subscribed event types in full (the same
|
|
13
|
+
* "set the list" behavior as create). It is not a merge or diff: include every event type you want after
|
|
14
|
+
* the update. Sending a one-element array means the webhook will only receive that one type afterward.
|
|
15
|
+
* Omit this field or send an empty array to leave event types unchanged. Clearing all types with an empty
|
|
16
|
+
* list is not supported. Subscribing to `message.received.spam`, `message.received.blocked`, or
|
|
17
|
+
* `message.received.unauthenticated` requires the matching label permission on the API key.
|
|
18
|
+
*/
|
|
19
|
+
eventTypes?: AgentMail.EventTypes;
|
|
11
20
|
}
|
|
@@ -3,4 +3,6 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
export const AgentSignupRequest = core.serialization.object({
|
|
4
4
|
humanEmail: core.serialization.property("human_email", core.serialization.string()),
|
|
5
5
|
username: core.serialization.string(),
|
|
6
|
+
source: core.serialization.string().optional(),
|
|
7
|
+
referrer: core.serialization.string().optional(),
|
|
6
8
|
});
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { ClientId } from "./ClientId.mjs";
|
|
5
5
|
import { DisplayName } from "./DisplayName.mjs";
|
|
6
|
+
import { Metadata } from "./Metadata.mjs";
|
|
6
7
|
export declare const CreateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.CreateInboxRequest.Raw, AgentMail.inboxes.CreateInboxRequest>;
|
|
7
8
|
export declare namespace CreateInboxRequest {
|
|
8
9
|
interface Raw {
|
|
@@ -10,5 +11,6 @@ export declare namespace CreateInboxRequest {
|
|
|
10
11
|
domain?: string | null;
|
|
11
12
|
display_name?: DisplayName.Raw | null;
|
|
12
13
|
client_id?: ClientId.Raw | null;
|
|
14
|
+
metadata?: Metadata.Raw | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { ClientId } from "./ClientId.mjs";
|
|
4
4
|
import { DisplayName } from "./DisplayName.mjs";
|
|
5
|
+
import { Metadata } from "./Metadata.mjs";
|
|
5
6
|
export const CreateInboxRequest = core.serialization.object({
|
|
6
7
|
username: core.serialization.string().optional(),
|
|
7
8
|
domain: core.serialization.string().optional(),
|
|
8
9
|
displayName: core.serialization.property("display_name", DisplayName.optional()),
|
|
9
10
|
clientId: core.serialization.property("client_id", ClientId.optional()),
|
|
11
|
+
metadata: Metadata.optional(),
|
|
10
12
|
});
|
|
@@ -6,6 +6,7 @@ import { ClientId } from "./ClientId.mjs";
|
|
|
6
6
|
import { DisplayName } from "./DisplayName.mjs";
|
|
7
7
|
import { Email } from "./Email.mjs";
|
|
8
8
|
import { InboxId } from "./InboxId.mjs";
|
|
9
|
+
import { Metadata } from "./Metadata.mjs";
|
|
9
10
|
export declare const Inbox: core.serialization.ObjectSchema<serializers.inboxes.Inbox.Raw, AgentMail.inboxes.Inbox>;
|
|
10
11
|
export declare namespace Inbox {
|
|
11
12
|
interface Raw {
|
|
@@ -14,6 +15,7 @@ export declare namespace Inbox {
|
|
|
14
15
|
email: Email.Raw;
|
|
15
16
|
display_name?: DisplayName.Raw | null;
|
|
16
17
|
client_id?: ClientId.Raw | null;
|
|
18
|
+
metadata?: Metadata.Raw | null;
|
|
17
19
|
updated_at: string;
|
|
18
20
|
created_at: string;
|
|
19
21
|
}
|
|
@@ -5,12 +5,14 @@ import { ClientId } from "./ClientId.mjs";
|
|
|
5
5
|
import { DisplayName } from "./DisplayName.mjs";
|
|
6
6
|
import { Email } from "./Email.mjs";
|
|
7
7
|
import { InboxId } from "./InboxId.mjs";
|
|
8
|
+
import { Metadata } from "./Metadata.mjs";
|
|
8
9
|
export const Inbox = core.serialization.object({
|
|
9
10
|
podId: core.serialization.property("pod_id", PodId),
|
|
10
11
|
inboxId: core.serialization.property("inbox_id", InboxId),
|
|
11
12
|
email: Email,
|
|
12
13
|
displayName: core.serialization.property("display_name", DisplayName.optional()),
|
|
13
14
|
clientId: core.serialization.property("client_id", ClientId.optional()),
|
|
15
|
+
metadata: Metadata.optional(),
|
|
14
16
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
15
17
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
16
18
|
});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import { MetadataValue } from "./MetadataValue.mjs";
|
|
5
|
+
export declare const Metadata: core.serialization.Schema<serializers.inboxes.Metadata.Raw, AgentMail.inboxes.Metadata>;
|
|
6
|
+
export declare namespace Metadata {
|
|
7
|
+
type Raw = Record<string, MetadataValue.Raw>;
|
|
8
|
+
}
|
|
@@ -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 MetadataValue: core.serialization.Schema<serializers.inboxes.MetadataValue.Raw, AgentMail.inboxes.MetadataValue>;
|
|
5
|
+
export declare namespace MetadataValue {
|
|
6
|
+
type Raw = string | number | boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const MetadataValue = core.serialization.undiscriminatedUnion([
|
|
4
|
+
core.serialization.string(),
|
|
5
|
+
core.serialization.number(),
|
|
6
|
+
core.serialization.boolean(),
|
|
7
|
+
]);
|
|
@@ -2,9 +2,11 @@ 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 { DisplayName } from "./DisplayName.mjs";
|
|
5
|
+
import { Metadata } from "./Metadata.mjs";
|
|
5
6
|
export declare const UpdateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.UpdateInboxRequest.Raw, AgentMail.inboxes.UpdateInboxRequest>;
|
|
6
7
|
export declare namespace UpdateInboxRequest {
|
|
7
8
|
interface Raw {
|
|
8
|
-
display_name
|
|
9
|
+
display_name?: DisplayName.Raw | null;
|
|
10
|
+
metadata?: Metadata.Raw | null;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
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 { DisplayName } from "./DisplayName.mjs";
|
|
4
|
+
import { Metadata } from "./Metadata.mjs";
|
|
4
5
|
export const UpdateInboxRequest = core.serialization.object({
|
|
5
|
-
displayName: core.serialization.property("display_name", DisplayName),
|
|
6
|
+
displayName: core.serialization.property("display_name", DisplayName.optional()),
|
|
7
|
+
metadata: Metadata.optional(),
|
|
6
8
|
});
|
|
@@ -12,4 +12,5 @@ export const ListEntryBase = core.serialization.object({
|
|
|
12
12
|
listType: core.serialization.property("list_type", ListType),
|
|
13
13
|
entryType: core.serialization.property("entry_type", EntryType),
|
|
14
14
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
15
|
+
readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
|
|
15
16
|
});
|
|
@@ -1,6 +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
|
+
import { EventTypes } from "../../events/types/EventTypes.mjs";
|
|
4
5
|
import { InboxIds } from "../../events/types/InboxIds.mjs";
|
|
5
6
|
import { PodIds } from "../../events/types/PodIds.mjs";
|
|
6
7
|
export declare const UpdateWebhookRequest: core.serialization.ObjectSchema<serializers.webhooks.UpdateWebhookRequest.Raw, AgentMail.webhooks.UpdateWebhookRequest>;
|
|
@@ -10,5 +11,6 @@ export declare namespace UpdateWebhookRequest {
|
|
|
10
11
|
remove_inbox_ids?: InboxIds.Raw | null;
|
|
11
12
|
add_pod_ids?: PodIds.Raw | null;
|
|
12
13
|
remove_pod_ids?: PodIds.Raw | null;
|
|
14
|
+
event_types?: EventTypes.Raw | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { EventTypes } from "../../events/types/EventTypes.mjs";
|
|
3
4
|
import { InboxIds } from "../../events/types/InboxIds.mjs";
|
|
4
5
|
import { PodIds } from "../../events/types/PodIds.mjs";
|
|
5
6
|
export const UpdateWebhookRequest = core.serialization.object({
|
|
@@ -7,4 +8,5 @@ export const UpdateWebhookRequest = core.serialization.object({
|
|
|
7
8
|
removeInboxIds: core.serialization.property("remove_inbox_ids", InboxIds.optional()),
|
|
8
9
|
addPodIds: core.serialization.property("add_pod_ids", PodIds.optional()),
|
|
9
10
|
removePodIds: core.serialization.property("remove_pod_ids", PodIds.optional()),
|
|
11
|
+
eventTypes: core.serialization.property("event_types", EventTypes.optional()),
|
|
10
12
|
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.4";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.4";
|