samva 0.45.1 → 0.46.1
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/AGENTS.md +7 -0
- package/README.md +25 -1
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +439 -6
- package/dist/client/sdk.gen.js +1544 -229
- package/dist/client/types.gen.d.ts +8120 -5616
- package/dist/effect/accounts.d.ts +50 -0
- package/dist/effect/accounts.js +23 -0
- package/dist/effect/agents.d.ts +25 -16
- package/dist/effect/agents.js +3 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +42 -0
- package/dist/effect/approval-requests.js +19 -0
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +205 -205
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +33 -33
- package/dist/effect/contacts.js +3 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +119 -0
- package/dist/effect/descriptors/agents.js +117 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +226 -0
- package/dist/effect/descriptors/contacts.js +214 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/extension-installations.d.ts +90 -0
- package/dist/effect/descriptors/extension-installations.js +90 -0
- package/dist/effect/descriptors/extensions.d.ts +50 -0
- package/dist/effect/descriptors/extensions.js +50 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +2 -1
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +1002 -0
- package/dist/effect/generated/accounts.js +198 -0
- package/dist/effect/generated/agents.d.ts +85 -1
- package/dist/effect/generated/agents.js +1 -0
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +777 -0
- package/dist/effect/generated/approval-requests.js +135 -0
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +245 -245
- package/dist/effect/generated/campaigns.js +6 -6
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +49 -49
- package/dist/effect/generated/conversations.d.ts +21 -21
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/extension-installations.d.ts +1 -1
- package/dist/effect/generated/extensions.d.ts +1 -1
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +88 -78
- package/dist/effect/generated/integrations-catalog.d.ts +671 -0
- package/dist/effect/generated/integrations-catalog.js +217 -0
- package/dist/effect/generated/integrations.d.ts +1401 -0
- package/dist/effect/generated/integrations.js +246 -0
- package/dist/effect/generated/journeys.d.ts +81 -81
- package/dist/effect/generated/mailboxes.d.ts +8157 -4241
- package/dist/effect/generated/mailboxes.js +677 -52
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +9 -9
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +193 -193
- package/dist/effect/generated/scheduled-messages.js +17 -17
- package/dist/effect/generated/shared.d.ts +662 -512
- package/dist/effect/generated/shared.js +212 -179
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -1
- package/dist/effect/generated/template-share-links.d.ts +733 -0
- package/dist/effect/generated/template-share-links.js +165 -0
- package/dist/effect/generated/templates.d.ts +39 -22
- package/dist/effect/generated/templates.js +19 -16
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/generated-metadata.d.ts +248 -0
- package/dist/effect/generated-metadata.js +705 -555
- package/dist/effect/index.d.ts +47 -42
- package/dist/effect/index.js +6 -1
- package/dist/effect/integrations-catalog.d.ts +38 -0
- package/dist/effect/integrations-catalog.js +17 -0
- package/dist/effect/integrations.d.ts +165 -0
- package/dist/effect/integrations.js +25 -0
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +21 -21
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +20 -20
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +476 -294
- package/dist/effect/mailboxes.js +33 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +372 -372
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +18 -0
- package/dist/effect/template-share-links.js +21 -0
- package/dist/effect/templates.d.ts +49 -48
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/mailbox/dispatch.d.ts +2 -2
- package/dist/mailbox/index.d.ts +4 -4
- package/dist/mailbox/test.d.ts +2 -2
- package/dist/mailbox/types.d.ts +2 -2
- package/dist/mailbox/webhook.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +20 -10
- package/dist/promises/client.js +13 -3
- package/dist/promises/errors.gen.d.ts +23 -3
- package/dist/promises/errors.gen.js +54 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/dist/service-map.d.ts +203 -0
- package/package.json +29 -9
- package/dist/service-map.js +0 -727
|
@@ -1,12 +1,31 @@
|
|
|
1
|
-
export { events } from "./internal/mailbox-events";
|
|
2
|
-
export { type MailboxEvent, MailboxEventStreamError, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventType, } from "../mailbox-events";
|
|
1
|
+
export { events } from "./internal/mailbox-events.js";
|
|
2
|
+
export { type MailboxEvent, MailboxEventStreamError, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventType, } from "../mailbox-events.js";
|
|
3
|
+
export declare const createImportUpload: (input: {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly importId?: string | null | undefined;
|
|
6
|
+
readonly filename: string;
|
|
7
|
+
readonly sizeBytes: number;
|
|
8
|
+
readonly format: "apple" | "gmail" | "mbox";
|
|
9
|
+
readonly mailboxPath?: string | null | undefined;
|
|
10
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateImportUpload">;
|
|
11
|
+
export declare const startImport: (input: {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly importId: string;
|
|
14
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesStartImport">;
|
|
15
|
+
export declare const getImport: (input: {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly importId: string;
|
|
18
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetImport">;
|
|
19
|
+
export declare const listImports: (input: {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListImports">;
|
|
3
22
|
export declare const list: ((input?: {
|
|
4
23
|
readonly limit?: number | null | undefined;
|
|
5
24
|
readonly cursor?: string | undefined;
|
|
6
25
|
readonly after?: string | undefined;
|
|
7
26
|
readonly before?: string | undefined;
|
|
8
27
|
readonly namespaceId?: string | undefined;
|
|
9
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesList">) & {
|
|
28
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesList">) & {
|
|
10
29
|
readonly pages: (input?: {
|
|
11
30
|
readonly limit?: number | null | undefined;
|
|
12
31
|
readonly cursor?: string | undefined;
|
|
@@ -27,7 +46,7 @@ export declare const list: ((input?: {
|
|
|
27
46
|
readonly createdAt: string;
|
|
28
47
|
}[];
|
|
29
48
|
readonly nextCursor: string | null;
|
|
30
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
49
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
31
50
|
readonly items: (input?: {
|
|
32
51
|
readonly limit?: number | null | undefined;
|
|
33
52
|
readonly cursor?: string | undefined;
|
|
@@ -45,7 +64,7 @@ export declare const list: ((input?: {
|
|
|
45
64
|
readonly primaryAddress: string | null;
|
|
46
65
|
readonly sendingStatus: "failed" | "pending" | "ready" | null;
|
|
47
66
|
readonly createdAt: string;
|
|
48
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
67
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
49
68
|
};
|
|
50
69
|
export declare const create: (input: {
|
|
51
70
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -59,52 +78,52 @@ export declare const create: (input: {
|
|
|
59
78
|
readonly metadata?: {
|
|
60
79
|
readonly [x: string]: string | undefined;
|
|
61
80
|
} | null | undefined;
|
|
62
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreate">;
|
|
81
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreate">;
|
|
63
82
|
export declare const get: (input: {
|
|
64
83
|
readonly id: string;
|
|
65
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGet">;
|
|
84
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGet">;
|
|
66
85
|
export declare const update: (input: {
|
|
67
86
|
readonly id: string;
|
|
68
87
|
readonly name?: string | null | undefined;
|
|
69
88
|
readonly metadata?: {
|
|
70
89
|
readonly [x: string]: string | null | undefined;
|
|
71
90
|
} | null | undefined;
|
|
72
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdate">;
|
|
91
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdate">;
|
|
73
92
|
export declare const remove: (input: {
|
|
74
93
|
readonly id: string;
|
|
75
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRemove">;
|
|
94
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesRemove">;
|
|
76
95
|
export declare const createEndpoint: (input: {
|
|
77
96
|
readonly id: string;
|
|
78
97
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
79
98
|
readonly address: string;
|
|
80
99
|
readonly displayName?: string | null | undefined;
|
|
81
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateEndpoint">;
|
|
100
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateEndpoint">;
|
|
82
101
|
export declare const updateEndpoint: (input: {
|
|
83
102
|
readonly id: string;
|
|
84
103
|
readonly endpointId: string;
|
|
85
104
|
readonly displayName?: string | null | undefined;
|
|
86
105
|
readonly default?: true | null | undefined;
|
|
87
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateEndpoint">;
|
|
106
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateEndpoint">;
|
|
88
107
|
export declare const removeEndpoint: (input: {
|
|
89
108
|
readonly id: string;
|
|
90
109
|
readonly endpointId: string;
|
|
91
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRemoveEndpoint">;
|
|
110
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesRemoveEndpoint">;
|
|
92
111
|
export declare const pause: (input: {
|
|
93
112
|
readonly id: string;
|
|
94
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesPause">;
|
|
113
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesPause">;
|
|
95
114
|
export declare const resume: (input: {
|
|
96
115
|
readonly id: string;
|
|
97
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesResume">;
|
|
116
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesResume">;
|
|
98
117
|
export declare const getAgentActivity: (input: {
|
|
99
118
|
readonly id: string;
|
|
100
119
|
readonly after?: string | undefined;
|
|
101
120
|
readonly before?: string | undefined;
|
|
102
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetAgentActivity">;
|
|
121
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetAgentActivity">;
|
|
103
122
|
export declare const listGrants: ((input: {
|
|
104
123
|
readonly id: string;
|
|
105
124
|
readonly limit?: number | null | undefined;
|
|
106
125
|
readonly cursor?: string | undefined;
|
|
107
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListGrants">) & {
|
|
126
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListGrants">) & {
|
|
108
127
|
readonly pages: (input: {
|
|
109
128
|
readonly id: string;
|
|
110
129
|
readonly limit?: number | null | undefined;
|
|
@@ -121,7 +140,7 @@ export declare const listGrants: ((input: {
|
|
|
121
140
|
readonly createdAt: string;
|
|
122
141
|
}[];
|
|
123
142
|
readonly nextCursor: string | null;
|
|
124
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
143
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
125
144
|
readonly items: (input: {
|
|
126
145
|
readonly id: string;
|
|
127
146
|
readonly limit?: number | null | undefined;
|
|
@@ -135,48 +154,48 @@ export declare const listGrants: ((input: {
|
|
|
135
154
|
};
|
|
136
155
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
137
156
|
readonly createdAt: string;
|
|
138
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
157
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
139
158
|
};
|
|
140
159
|
export declare const createGrant: (input: {
|
|
141
160
|
readonly id: string;
|
|
142
161
|
readonly userId: string;
|
|
143
162
|
readonly role: "admin" | "collaborator" | "viewer";
|
|
144
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateGrant">;
|
|
163
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateGrant">;
|
|
145
164
|
export declare const updateGrant: (input: {
|
|
146
165
|
readonly id: string;
|
|
147
166
|
readonly grantId: string;
|
|
148
167
|
readonly role?: "admin" | "collaborator" | "viewer" | null | undefined;
|
|
149
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateGrant">;
|
|
168
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateGrant">;
|
|
150
169
|
export declare const revokeGrant: (input: {
|
|
151
170
|
readonly id: string;
|
|
152
171
|
readonly grantId: string;
|
|
153
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRevokeGrant">;
|
|
172
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesRevokeGrant">;
|
|
154
173
|
export declare const listFolders: (input: {
|
|
155
174
|
readonly id: string;
|
|
156
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListFolders">;
|
|
175
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListFolders">;
|
|
157
176
|
export declare const listLabels: (input: {
|
|
158
177
|
readonly id: string;
|
|
159
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListLabels">;
|
|
178
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListLabels">;
|
|
160
179
|
export declare const createLabel: (input: {
|
|
161
180
|
readonly id: string;
|
|
162
181
|
readonly slug: string;
|
|
163
182
|
readonly displayName: string;
|
|
164
183
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
165
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateLabel">;
|
|
184
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateLabel">;
|
|
166
185
|
export declare const updateLabel: (input: {
|
|
167
186
|
readonly id: string;
|
|
168
187
|
readonly labelId: string;
|
|
169
188
|
readonly displayName?: string | null | undefined;
|
|
170
189
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
171
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateLabel">;
|
|
190
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateLabel">;
|
|
172
191
|
export declare const deleteLabel: (input: {
|
|
173
192
|
readonly id: string;
|
|
174
193
|
readonly labelId: string;
|
|
175
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeleteLabel">;
|
|
194
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDeleteLabel">;
|
|
176
195
|
export declare const getNeedsYou: ((input?: {
|
|
177
196
|
readonly limit?: number | null | undefined;
|
|
178
197
|
readonly cursor?: string | undefined;
|
|
179
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetNeedsYou">) & {
|
|
198
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetNeedsYou">) & {
|
|
180
199
|
readonly pages: (input?: {
|
|
181
200
|
readonly limit?: number | null | undefined;
|
|
182
201
|
readonly cursor?: string | undefined;
|
|
@@ -227,10 +246,10 @@ export declare const getNeedsYou: ((input?: {
|
|
|
227
246
|
readonly tool?: string | null;
|
|
228
247
|
};
|
|
229
248
|
readonly facts: {
|
|
230
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
249
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
231
250
|
};
|
|
232
251
|
readonly kind: "reply" | "send" | "toolCall";
|
|
233
|
-
readonly args: import("./generated").JsonValue;
|
|
252
|
+
readonly args: import("./generated/index.js").JsonValue;
|
|
234
253
|
} | {
|
|
235
254
|
readonly effect: "final" | "read" | "write";
|
|
236
255
|
readonly resource: {
|
|
@@ -241,12 +260,12 @@ export declare const getNeedsYou: ((input?: {
|
|
|
241
260
|
readonly tool?: string | null;
|
|
242
261
|
};
|
|
243
262
|
readonly facts: {
|
|
244
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
263
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
245
264
|
};
|
|
246
265
|
readonly kind: "handoff";
|
|
247
266
|
readonly args: {
|
|
248
267
|
readonly reason: string;
|
|
249
|
-
readonly draft?: import("./generated").JsonValue;
|
|
268
|
+
readonly draft?: import("./generated/index.js").JsonValue;
|
|
250
269
|
};
|
|
251
270
|
};
|
|
252
271
|
readonly judge?: {
|
|
@@ -255,7 +274,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
255
274
|
readonly instructionHash?: string | null;
|
|
256
275
|
readonly ms: number;
|
|
257
276
|
readonly usage: {
|
|
258
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
277
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
259
278
|
};
|
|
260
279
|
} | null;
|
|
261
280
|
readonly resolution?: {
|
|
@@ -278,7 +297,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
278
297
|
readonly name: string;
|
|
279
298
|
readonly argumentsHash: string;
|
|
280
299
|
readonly arguments: {
|
|
281
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
300
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
282
301
|
};
|
|
283
302
|
} | null;
|
|
284
303
|
readonly intent: {
|
|
@@ -321,7 +340,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
321
340
|
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
322
341
|
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
323
342
|
readonly templateData: {
|
|
324
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
343
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
325
344
|
} | null;
|
|
326
345
|
} | null;
|
|
327
346
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
@@ -365,7 +384,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
365
384
|
readonly quarantinedMessages: number;
|
|
366
385
|
readonly total: number;
|
|
367
386
|
};
|
|
368
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
387
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
369
388
|
readonly items: (input?: {
|
|
370
389
|
readonly limit?: number | null | undefined;
|
|
371
390
|
readonly cursor?: string | undefined;
|
|
@@ -415,10 +434,10 @@ export declare const getNeedsYou: ((input?: {
|
|
|
415
434
|
readonly tool?: string | null;
|
|
416
435
|
};
|
|
417
436
|
readonly facts: {
|
|
418
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
437
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
419
438
|
};
|
|
420
439
|
readonly kind: "reply" | "send" | "toolCall";
|
|
421
|
-
readonly args: import("./generated").JsonValue;
|
|
440
|
+
readonly args: import("./generated/index.js").JsonValue;
|
|
422
441
|
} | {
|
|
423
442
|
readonly effect: "final" | "read" | "write";
|
|
424
443
|
readonly resource: {
|
|
@@ -429,12 +448,12 @@ export declare const getNeedsYou: ((input?: {
|
|
|
429
448
|
readonly tool?: string | null;
|
|
430
449
|
};
|
|
431
450
|
readonly facts: {
|
|
432
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
451
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
433
452
|
};
|
|
434
453
|
readonly kind: "handoff";
|
|
435
454
|
readonly args: {
|
|
436
455
|
readonly reason: string;
|
|
437
|
-
readonly draft?: import("./generated").JsonValue;
|
|
456
|
+
readonly draft?: import("./generated/index.js").JsonValue;
|
|
438
457
|
};
|
|
439
458
|
};
|
|
440
459
|
readonly judge?: {
|
|
@@ -443,7 +462,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
443
462
|
readonly instructionHash?: string | null;
|
|
444
463
|
readonly ms: number;
|
|
445
464
|
readonly usage: {
|
|
446
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
465
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
447
466
|
};
|
|
448
467
|
} | null;
|
|
449
468
|
readonly resolution?: {
|
|
@@ -466,7 +485,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
466
485
|
readonly name: string;
|
|
467
486
|
readonly argumentsHash: string;
|
|
468
487
|
readonly arguments: {
|
|
469
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
488
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
470
489
|
};
|
|
471
490
|
} | null;
|
|
472
491
|
readonly intent: {
|
|
@@ -509,7 +528,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
509
528
|
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
510
529
|
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
511
530
|
readonly templateData: {
|
|
512
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
531
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
513
532
|
} | null;
|
|
514
533
|
} | null;
|
|
515
534
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
@@ -546,7 +565,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
546
565
|
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned";
|
|
547
566
|
readonly source: "classifier" | "receipt";
|
|
548
567
|
readonly heldAt: string;
|
|
549
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
568
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
550
569
|
};
|
|
551
570
|
export declare const listOrganizationDrafts: ((input?: {
|
|
552
571
|
readonly limit?: number | null | undefined;
|
|
@@ -554,7 +573,7 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
554
573
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
555
574
|
readonly kind?: "personal" | "shared" | undefined;
|
|
556
575
|
readonly threadId?: string | undefined;
|
|
557
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListOrganizationDrafts">) & {
|
|
576
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListOrganizationDrafts">) & {
|
|
558
577
|
readonly pages: (input?: {
|
|
559
578
|
readonly limit?: number | null | undefined;
|
|
560
579
|
readonly cursor?: string | undefined;
|
|
@@ -580,7 +599,7 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
580
599
|
};
|
|
581
600
|
}[];
|
|
582
601
|
readonly nextCursor: string | null;
|
|
583
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
602
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
584
603
|
readonly items: (input?: {
|
|
585
604
|
readonly limit?: number | null | undefined;
|
|
586
605
|
readonly cursor?: string | undefined;
|
|
@@ -603,13 +622,16 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
603
622
|
readonly address: string | null;
|
|
604
623
|
readonly kind: "personal" | "shared";
|
|
605
624
|
};
|
|
606
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
625
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
607
626
|
};
|
|
608
627
|
export declare const listOrganizationThreads: ((input?: {
|
|
609
628
|
readonly limit?: number | null | undefined;
|
|
610
629
|
readonly cursor?: string | undefined;
|
|
611
630
|
readonly after?: string | undefined;
|
|
612
631
|
readonly before?: string | undefined;
|
|
632
|
+
readonly recipient?: string | undefined;
|
|
633
|
+
readonly senders?: string | readonly string[] | undefined;
|
|
634
|
+
readonly excludeTrash?: boolean | null | undefined;
|
|
613
635
|
readonly q?: string | undefined;
|
|
614
636
|
readonly state?: "active" | "done" | undefined;
|
|
615
637
|
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
@@ -620,12 +642,15 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
620
642
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
621
643
|
readonly kind?: "personal" | "shared" | undefined;
|
|
622
644
|
readonly conversation?: string | undefined;
|
|
623
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListOrganizationThreads">) & {
|
|
645
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListOrganizationThreads">) & {
|
|
624
646
|
readonly pages: (input?: {
|
|
625
647
|
readonly limit?: number | null | undefined;
|
|
626
648
|
readonly cursor?: string | undefined;
|
|
627
649
|
readonly after?: string | undefined;
|
|
628
650
|
readonly before?: string | undefined;
|
|
651
|
+
readonly recipient?: string | undefined;
|
|
652
|
+
readonly senders?: string | readonly string[] | undefined;
|
|
653
|
+
readonly excludeTrash?: boolean | null | undefined;
|
|
629
654
|
readonly q?: string | undefined;
|
|
630
655
|
readonly state?: "active" | "done" | undefined;
|
|
631
656
|
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
@@ -656,6 +681,8 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
656
681
|
readonly read: boolean;
|
|
657
682
|
readonly starred: boolean;
|
|
658
683
|
readonly snoozedUntil: string | null;
|
|
684
|
+
readonly reminderSetAt?: string | null;
|
|
685
|
+
readonly reminderInboxAt?: string | null;
|
|
659
686
|
readonly doneAt: string | null;
|
|
660
687
|
readonly closedAt: string | null;
|
|
661
688
|
readonly closedBy: {
|
|
@@ -671,12 +698,15 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
671
698
|
};
|
|
672
699
|
}[];
|
|
673
700
|
readonly nextCursor: string | null;
|
|
674
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
701
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
675
702
|
readonly items: (input?: {
|
|
676
703
|
readonly limit?: number | null | undefined;
|
|
677
704
|
readonly cursor?: string | undefined;
|
|
678
705
|
readonly after?: string | undefined;
|
|
679
706
|
readonly before?: string | undefined;
|
|
707
|
+
readonly recipient?: string | undefined;
|
|
708
|
+
readonly senders?: string | readonly string[] | undefined;
|
|
709
|
+
readonly excludeTrash?: boolean | null | undefined;
|
|
680
710
|
readonly q?: string | undefined;
|
|
681
711
|
readonly state?: "active" | "done" | undefined;
|
|
682
712
|
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
@@ -706,6 +736,8 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
706
736
|
readonly read: boolean;
|
|
707
737
|
readonly starred: boolean;
|
|
708
738
|
readonly snoozedUntil: string | null;
|
|
739
|
+
readonly reminderSetAt?: string | null;
|
|
740
|
+
readonly reminderInboxAt?: string | null;
|
|
709
741
|
readonly doneAt: string | null;
|
|
710
742
|
readonly closedAt: string | null;
|
|
711
743
|
readonly closedBy: {
|
|
@@ -719,7 +751,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
719
751
|
readonly address: string | null;
|
|
720
752
|
readonly kind: "personal" | "shared";
|
|
721
753
|
};
|
|
722
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
754
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
723
755
|
};
|
|
724
756
|
export declare const listThreads: ((input: {
|
|
725
757
|
readonly id: string;
|
|
@@ -727,6 +759,9 @@ export declare const listThreads: ((input: {
|
|
|
727
759
|
readonly cursor?: string | undefined;
|
|
728
760
|
readonly after?: string | undefined;
|
|
729
761
|
readonly before?: string | undefined;
|
|
762
|
+
readonly recipient?: string | undefined;
|
|
763
|
+
readonly senders?: string | readonly string[] | undefined;
|
|
764
|
+
readonly excludeTrash?: boolean | null | undefined;
|
|
730
765
|
readonly q?: string | undefined;
|
|
731
766
|
readonly state?: "active" | "done" | undefined;
|
|
732
767
|
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
@@ -734,13 +769,16 @@ export declare const listThreads: ((input: {
|
|
|
734
769
|
readonly unread?: boolean | null | undefined;
|
|
735
770
|
readonly starred?: boolean | null | undefined;
|
|
736
771
|
readonly snoozed?: boolean | null | undefined;
|
|
737
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreads">) & {
|
|
772
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListThreads">) & {
|
|
738
773
|
readonly pages: (input: {
|
|
739
774
|
readonly id: string;
|
|
740
775
|
readonly limit?: number | null | undefined;
|
|
741
776
|
readonly cursor?: string | undefined;
|
|
742
777
|
readonly after?: string | undefined;
|
|
743
778
|
readonly before?: string | undefined;
|
|
779
|
+
readonly recipient?: string | undefined;
|
|
780
|
+
readonly senders?: string | readonly string[] | undefined;
|
|
781
|
+
readonly excludeTrash?: boolean | null | undefined;
|
|
744
782
|
readonly q?: string | undefined;
|
|
745
783
|
readonly state?: "active" | "done" | undefined;
|
|
746
784
|
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
@@ -768,6 +806,8 @@ export declare const listThreads: ((input: {
|
|
|
768
806
|
readonly read: boolean;
|
|
769
807
|
readonly starred: boolean;
|
|
770
808
|
readonly snoozedUntil: string | null;
|
|
809
|
+
readonly reminderSetAt?: string | null;
|
|
810
|
+
readonly reminderInboxAt?: string | null;
|
|
771
811
|
readonly doneAt: string | null;
|
|
772
812
|
readonly closedAt: string | null;
|
|
773
813
|
readonly closedBy: {
|
|
@@ -778,13 +818,16 @@ export declare const listThreads: ((input: {
|
|
|
778
818
|
readonly lastActivityAt: string;
|
|
779
819
|
}[];
|
|
780
820
|
readonly nextCursor: string | null;
|
|
781
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
821
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
782
822
|
readonly items: (input: {
|
|
783
823
|
readonly id: string;
|
|
784
824
|
readonly limit?: number | null | undefined;
|
|
785
825
|
readonly cursor?: string | undefined;
|
|
786
826
|
readonly after?: string | undefined;
|
|
787
827
|
readonly before?: string | undefined;
|
|
828
|
+
readonly recipient?: string | undefined;
|
|
829
|
+
readonly senders?: string | readonly string[] | undefined;
|
|
830
|
+
readonly excludeTrash?: boolean | null | undefined;
|
|
788
831
|
readonly q?: string | undefined;
|
|
789
832
|
readonly state?: "active" | "done" | undefined;
|
|
790
833
|
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
@@ -811,6 +854,8 @@ export declare const listThreads: ((input: {
|
|
|
811
854
|
readonly read: boolean;
|
|
812
855
|
readonly starred: boolean;
|
|
813
856
|
readonly snoozedUntil: string | null;
|
|
857
|
+
readonly reminderSetAt?: string | null;
|
|
858
|
+
readonly reminderInboxAt?: string | null;
|
|
814
859
|
readonly doneAt: string | null;
|
|
815
860
|
readonly closedAt: string | null;
|
|
816
861
|
readonly closedBy: {
|
|
@@ -819,12 +864,12 @@ export declare const listThreads: ((input: {
|
|
|
819
864
|
readonly displayName?: string | null;
|
|
820
865
|
} | null;
|
|
821
866
|
readonly lastActivityAt: string;
|
|
822
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
867
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
823
868
|
};
|
|
824
869
|
export declare const getThread: (input: {
|
|
825
870
|
readonly id: string;
|
|
826
871
|
readonly threadId: string;
|
|
827
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetThread">;
|
|
872
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetThread">;
|
|
828
873
|
export declare const updateThread: (input: {
|
|
829
874
|
readonly id: string;
|
|
830
875
|
readonly threadId: string;
|
|
@@ -835,23 +880,25 @@ export declare const updateThread: (input: {
|
|
|
835
880
|
readonly read?: boolean | null | undefined;
|
|
836
881
|
readonly starred?: boolean | null | undefined;
|
|
837
882
|
readonly snoozedUntil?: string | null | undefined;
|
|
838
|
-
|
|
883
|
+
readonly ifNoReply?: boolean | undefined;
|
|
884
|
+
readonly reminderInboxAt?: string | null | undefined;
|
|
885
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateThread">;
|
|
839
886
|
export declare const addThreadLabels: (input: {
|
|
840
887
|
readonly id: string;
|
|
841
888
|
readonly threadId: string;
|
|
842
889
|
readonly labels: readonly string[];
|
|
843
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesAddThreadLabels">;
|
|
890
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesAddThreadLabels">;
|
|
844
891
|
export declare const removeThreadLabels: (input: {
|
|
845
892
|
readonly id: string;
|
|
846
893
|
readonly threadId: string;
|
|
847
894
|
readonly labels: readonly string[];
|
|
848
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRemoveThreadLabels">;
|
|
895
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesRemoveThreadLabels">;
|
|
849
896
|
export declare const listThreadMessages: ((input: {
|
|
850
897
|
readonly id: string;
|
|
851
898
|
readonly threadId: string;
|
|
852
899
|
readonly limit?: number | null | undefined;
|
|
853
900
|
readonly cursor?: string | undefined;
|
|
854
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreadMessages">) & {
|
|
901
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListThreadMessages">) & {
|
|
855
902
|
readonly pages: (input: {
|
|
856
903
|
readonly id: string;
|
|
857
904
|
readonly threadId: string;
|
|
@@ -882,7 +929,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
882
929
|
readonly occurredAt: string;
|
|
883
930
|
}[];
|
|
884
931
|
readonly nextCursor: string | null;
|
|
885
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
932
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
886
933
|
readonly items: (input: {
|
|
887
934
|
readonly id: string;
|
|
888
935
|
readonly threadId: string;
|
|
@@ -910,14 +957,14 @@ export declare const listThreadMessages: ((input: {
|
|
|
910
957
|
readonly preview: string | null;
|
|
911
958
|
readonly hasAttachments: boolean;
|
|
912
959
|
readonly occurredAt: string;
|
|
913
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
960
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
914
961
|
};
|
|
915
962
|
export declare const getThreadContent: ((input: {
|
|
916
963
|
readonly id: string;
|
|
917
964
|
readonly threadId: string;
|
|
918
965
|
readonly limit?: number | null | undefined;
|
|
919
966
|
readonly cursor?: string | undefined;
|
|
920
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetThreadContent">) & {
|
|
967
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetThreadContent">) & {
|
|
921
968
|
readonly pages: (input: {
|
|
922
969
|
readonly id: string;
|
|
923
970
|
readonly threadId: string;
|
|
@@ -1022,7 +1069,7 @@ export declare const getThreadContent: ((input: {
|
|
|
1022
1069
|
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1023
1070
|
})[];
|
|
1024
1071
|
readonly nextCursor: string | null;
|
|
1025
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1072
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1026
1073
|
readonly items: (input: {
|
|
1027
1074
|
readonly id: string;
|
|
1028
1075
|
readonly threadId: string;
|
|
@@ -1124,14 +1171,14 @@ export declare const getThreadContent: ((input: {
|
|
|
1124
1171
|
} | null;
|
|
1125
1172
|
readonly summary: string | null;
|
|
1126
1173
|
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1127
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1174
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1128
1175
|
};
|
|
1129
1176
|
export declare const listThreadNotes: ((input: {
|
|
1130
1177
|
readonly id: string;
|
|
1131
1178
|
readonly threadId: string;
|
|
1132
1179
|
readonly limit?: number | null | undefined;
|
|
1133
1180
|
readonly cursor?: string | undefined;
|
|
1134
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreadNotes">) & {
|
|
1181
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListThreadNotes">) & {
|
|
1135
1182
|
readonly pages: (input: {
|
|
1136
1183
|
readonly id: string;
|
|
1137
1184
|
readonly threadId: string;
|
|
@@ -1152,7 +1199,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
1152
1199
|
readonly updatedAt: string;
|
|
1153
1200
|
}[];
|
|
1154
1201
|
readonly nextCursor: string | null;
|
|
1155
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1202
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1156
1203
|
readonly items: (input: {
|
|
1157
1204
|
readonly id: string;
|
|
1158
1205
|
readonly threadId: string;
|
|
@@ -1170,7 +1217,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
1170
1217
|
readonly pinned: boolean;
|
|
1171
1218
|
readonly createdAt: string;
|
|
1172
1219
|
readonly updatedAt: string;
|
|
1173
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1220
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1174
1221
|
};
|
|
1175
1222
|
export declare const createNote: (input: {
|
|
1176
1223
|
readonly id: string;
|
|
@@ -1178,7 +1225,7 @@ export declare const createNote: (input: {
|
|
|
1178
1225
|
readonly body: string;
|
|
1179
1226
|
readonly color?: string | null | undefined;
|
|
1180
1227
|
readonly pinned?: boolean | null | undefined;
|
|
1181
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateNote">;
|
|
1228
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateNote">;
|
|
1182
1229
|
export declare const updateNote: (input: {
|
|
1183
1230
|
readonly id: string;
|
|
1184
1231
|
readonly threadId: string;
|
|
@@ -1186,30 +1233,13 @@ export declare const updateNote: (input: {
|
|
|
1186
1233
|
readonly body?: string | null | undefined;
|
|
1187
1234
|
readonly color?: string | null | undefined;
|
|
1188
1235
|
readonly pinned?: boolean | null | undefined;
|
|
1189
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateNote">;
|
|
1236
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateNote">;
|
|
1190
1237
|
export declare const deleteNote: (input: {
|
|
1191
1238
|
readonly id: string;
|
|
1192
1239
|
readonly threadId: string;
|
|
1193
1240
|
readonly noteId: string;
|
|
1194
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeleteNote">;
|
|
1241
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDeleteNote">;
|
|
1195
1242
|
export declare const sendMessage: (input: {
|
|
1196
|
-
readonly channel?: "email" | null | undefined;
|
|
1197
|
-
readonly to: readonly string[];
|
|
1198
|
-
readonly cc?: readonly string[] | null | undefined;
|
|
1199
|
-
readonly bcc?: readonly string[] | null | undefined;
|
|
1200
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
1201
|
-
readonly subject: string;
|
|
1202
|
-
readonly text?: string | null | undefined;
|
|
1203
|
-
readonly html?: string | null | undefined;
|
|
1204
|
-
readonly attachments?: readonly {
|
|
1205
|
-
readonly filename: string;
|
|
1206
|
-
readonly content?: string | null | undefined;
|
|
1207
|
-
readonly mediaId?: string | null | undefined;
|
|
1208
|
-
readonly contentType: string;
|
|
1209
|
-
readonly size: number;
|
|
1210
|
-
}[] | null | undefined;
|
|
1211
|
-
readonly id: string;
|
|
1212
|
-
} | {
|
|
1213
1243
|
readonly channel: "sms" | "whatsapp";
|
|
1214
1244
|
readonly to: string;
|
|
1215
1245
|
readonly text?: string | null | undefined;
|
|
@@ -1242,41 +1272,43 @@ export declare const sendMessage: (input: {
|
|
|
1242
1272
|
} | null | undefined;
|
|
1243
1273
|
} | null | undefined;
|
|
1244
1274
|
readonly id: string;
|
|
1245
|
-
}
|
|
1275
|
+
} | {
|
|
1276
|
+
readonly channel?: "email" | null | undefined;
|
|
1277
|
+
readonly to: readonly string[];
|
|
1278
|
+
readonly cc?: readonly string[] | null | undefined;
|
|
1279
|
+
readonly bcc?: readonly string[] | null | undefined;
|
|
1280
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
1281
|
+
readonly subject: string;
|
|
1282
|
+
readonly text?: string | null | undefined;
|
|
1283
|
+
readonly html?: string | null | undefined;
|
|
1284
|
+
readonly attachments?: readonly {
|
|
1285
|
+
readonly filename: string;
|
|
1286
|
+
readonly content?: string | null | undefined;
|
|
1287
|
+
readonly mediaId?: string | null | undefined;
|
|
1288
|
+
readonly contentType: string;
|
|
1289
|
+
readonly size: number;
|
|
1290
|
+
}[] | null | undefined;
|
|
1291
|
+
readonly id: string;
|
|
1292
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesSendMessage">;
|
|
1246
1293
|
export declare const getMessage: (input: {
|
|
1247
1294
|
readonly id: string;
|
|
1248
1295
|
readonly messageId: string;
|
|
1249
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetMessage">;
|
|
1296
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetMessage">;
|
|
1250
1297
|
export declare const getMessageRaw: (input: {
|
|
1251
1298
|
readonly id: string;
|
|
1252
1299
|
readonly messageId: string;
|
|
1253
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetMessageRaw">;
|
|
1300
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetMessageRaw">;
|
|
1254
1301
|
export declare const getMessageAttachment: (input: {
|
|
1255
1302
|
readonly id: string;
|
|
1256
1303
|
readonly messageId: string;
|
|
1257
1304
|
readonly attachmentId: string;
|
|
1258
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetMessageAttachment">;
|
|
1305
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetMessageAttachment">;
|
|
1259
1306
|
export declare const copyMessageAttachment: (input: {
|
|
1260
1307
|
readonly id: string;
|
|
1261
1308
|
readonly messageId: string;
|
|
1262
1309
|
readonly attachmentId: string;
|
|
1263
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
1310
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
1264
1311
|
export declare const reply: (input: {
|
|
1265
|
-
readonly channel?: "email" | null | undefined;
|
|
1266
|
-
readonly cc?: readonly string[] | null | undefined;
|
|
1267
|
-
readonly bcc?: readonly string[] | null | undefined;
|
|
1268
|
-
readonly text?: string | null | undefined;
|
|
1269
|
-
readonly html?: string | null | undefined;
|
|
1270
|
-
readonly attachments?: readonly {
|
|
1271
|
-
readonly filename: string;
|
|
1272
|
-
readonly content?: string | null | undefined;
|
|
1273
|
-
readonly mediaId?: string | null | undefined;
|
|
1274
|
-
readonly contentType: string;
|
|
1275
|
-
readonly size: number;
|
|
1276
|
-
}[] | null | undefined;
|
|
1277
|
-
readonly id: string;
|
|
1278
|
-
readonly messageId: string;
|
|
1279
|
-
} | {
|
|
1280
1312
|
readonly channel: "sms" | "whatsapp";
|
|
1281
1313
|
readonly text?: string | null | undefined;
|
|
1282
1314
|
readonly templateId?: string | null | undefined;
|
|
@@ -1309,8 +1341,7 @@ export declare const reply: (input: {
|
|
|
1309
1341
|
} | null | undefined;
|
|
1310
1342
|
readonly id: string;
|
|
1311
1343
|
readonly messageId: string;
|
|
1312
|
-
}
|
|
1313
|
-
export declare const replyAll: (input: {
|
|
1344
|
+
} | {
|
|
1314
1345
|
readonly channel?: "email" | null | undefined;
|
|
1315
1346
|
readonly cc?: readonly string[] | null | undefined;
|
|
1316
1347
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -1325,7 +1356,8 @@ export declare const replyAll: (input: {
|
|
|
1325
1356
|
}[] | null | undefined;
|
|
1326
1357
|
readonly id: string;
|
|
1327
1358
|
readonly messageId: string;
|
|
1328
|
-
}
|
|
1359
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesReply">;
|
|
1360
|
+
export declare const replyAll: (input: {
|
|
1329
1361
|
readonly channel: "sms" | "whatsapp";
|
|
1330
1362
|
readonly text?: string | null | undefined;
|
|
1331
1363
|
readonly templateId?: string | null | undefined;
|
|
@@ -1358,7 +1390,22 @@ export declare const replyAll: (input: {
|
|
|
1358
1390
|
} | null | undefined;
|
|
1359
1391
|
readonly id: string;
|
|
1360
1392
|
readonly messageId: string;
|
|
1361
|
-
}
|
|
1393
|
+
} | {
|
|
1394
|
+
readonly channel?: "email" | null | undefined;
|
|
1395
|
+
readonly cc?: readonly string[] | null | undefined;
|
|
1396
|
+
readonly bcc?: readonly string[] | null | undefined;
|
|
1397
|
+
readonly text?: string | null | undefined;
|
|
1398
|
+
readonly html?: string | null | undefined;
|
|
1399
|
+
readonly attachments?: readonly {
|
|
1400
|
+
readonly filename: string;
|
|
1401
|
+
readonly content?: string | null | undefined;
|
|
1402
|
+
readonly mediaId?: string | null | undefined;
|
|
1403
|
+
readonly contentType: string;
|
|
1404
|
+
readonly size: number;
|
|
1405
|
+
}[] | null | undefined;
|
|
1406
|
+
readonly id: string;
|
|
1407
|
+
readonly messageId: string;
|
|
1408
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesReplyAll">;
|
|
1362
1409
|
export declare const forward: (input: {
|
|
1363
1410
|
readonly id: string;
|
|
1364
1411
|
readonly messageId: string;
|
|
@@ -1374,14 +1421,14 @@ export declare const forward: (input: {
|
|
|
1374
1421
|
readonly contentType: string;
|
|
1375
1422
|
readonly size: number;
|
|
1376
1423
|
}[] | null | undefined;
|
|
1377
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesForward">;
|
|
1424
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesForward">;
|
|
1378
1425
|
export declare const listQuarantine: ((input: {
|
|
1379
1426
|
readonly id: string;
|
|
1380
1427
|
readonly limit?: number | null | undefined;
|
|
1381
1428
|
readonly cursor?: string | undefined;
|
|
1382
1429
|
readonly after?: string | undefined;
|
|
1383
1430
|
readonly before?: string | undefined;
|
|
1384
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListQuarantine">) & {
|
|
1431
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListQuarantine">) & {
|
|
1385
1432
|
readonly pages: (input: {
|
|
1386
1433
|
readonly id: string;
|
|
1387
1434
|
readonly limit?: number | null | undefined;
|
|
@@ -1406,7 +1453,7 @@ export declare const listQuarantine: ((input: {
|
|
|
1406
1453
|
readonly discardedAt: string | null;
|
|
1407
1454
|
}[];
|
|
1408
1455
|
readonly nextCursor: string | null;
|
|
1409
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1456
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1410
1457
|
readonly items: (input: {
|
|
1411
1458
|
readonly id: string;
|
|
1412
1459
|
readonly limit?: number | null | undefined;
|
|
@@ -1428,22 +1475,117 @@ export declare const listQuarantine: ((input: {
|
|
|
1428
1475
|
readonly releasedAt: string | null;
|
|
1429
1476
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1430
1477
|
readonly discardedAt: string | null;
|
|
1431
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1478
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1432
1479
|
};
|
|
1433
1480
|
export declare const releaseMessage: (input: {
|
|
1434
1481
|
readonly id: string;
|
|
1435
1482
|
readonly messageId: string;
|
|
1436
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReleaseMessage">;
|
|
1483
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesReleaseMessage">;
|
|
1437
1484
|
export declare const discardMessage: (input: {
|
|
1438
1485
|
readonly id: string;
|
|
1439
1486
|
readonly messageId: string;
|
|
1440
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDiscardMessage">;
|
|
1487
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDiscardMessage">;
|
|
1488
|
+
export declare const scheduleDraft: (input: {
|
|
1489
|
+
readonly id: string;
|
|
1490
|
+
readonly draftId: string;
|
|
1491
|
+
readonly idempotencyKey: string;
|
|
1492
|
+
readonly base: string;
|
|
1493
|
+
readonly draftRevision: number;
|
|
1494
|
+
readonly sendAt: string;
|
|
1495
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesScheduleDraft">;
|
|
1496
|
+
export declare const rescheduleSend: (input: {
|
|
1497
|
+
readonly id: string;
|
|
1498
|
+
readonly outboxId: string;
|
|
1499
|
+
readonly idempotencyKey: string;
|
|
1500
|
+
readonly base: string;
|
|
1501
|
+
readonly expectedRevision: number;
|
|
1502
|
+
readonly sendAt: string;
|
|
1503
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesRescheduleSend">;
|
|
1504
|
+
export declare const unscheduleSend: (input: {
|
|
1505
|
+
readonly id: string;
|
|
1506
|
+
readonly outboxId: string;
|
|
1507
|
+
readonly idempotencyKey: string;
|
|
1508
|
+
readonly base: string;
|
|
1509
|
+
readonly expectedRevision: number;
|
|
1510
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUnscheduleSend">;
|
|
1511
|
+
export declare const sendScheduledNow: (input: {
|
|
1512
|
+
readonly id: string;
|
|
1513
|
+
readonly outboxId: string;
|
|
1514
|
+
readonly idempotencyKey: string;
|
|
1515
|
+
readonly base: string;
|
|
1516
|
+
readonly expectedRevision: number;
|
|
1517
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesSendScheduledNow">;
|
|
1518
|
+
export declare const listScheduledSends: ((input: {
|
|
1519
|
+
readonly id: string;
|
|
1520
|
+
readonly limit?: number | null | undefined;
|
|
1521
|
+
readonly cursor?: string | undefined;
|
|
1522
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListScheduledSends">) & {
|
|
1523
|
+
readonly pages: (input: {
|
|
1524
|
+
readonly id: string;
|
|
1525
|
+
readonly limit?: number | null | undefined;
|
|
1526
|
+
readonly cursor?: string | undefined;
|
|
1527
|
+
}) => import("effect/Stream").Stream<{
|
|
1528
|
+
readonly items: readonly {
|
|
1529
|
+
readonly id: string & import("effect/Brand").Brand<"MailOutboxItemId">;
|
|
1530
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
1531
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1532
|
+
readonly draftId: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1533
|
+
readonly draftRevision: number;
|
|
1534
|
+
readonly draftSummary?: {
|
|
1535
|
+
readonly to: readonly string[];
|
|
1536
|
+
readonly subject: string;
|
|
1537
|
+
};
|
|
1538
|
+
readonly status: "cancelled" | "dispatched" | "failed" | "held" | "queued";
|
|
1539
|
+
readonly scheduledFor?: string | null;
|
|
1540
|
+
readonly holdReason: "threadChanged" | null;
|
|
1541
|
+
readonly revision: number;
|
|
1542
|
+
readonly baseSeq: number;
|
|
1543
|
+
readonly heldAtSeq: number | null;
|
|
1544
|
+
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
1545
|
+
readonly problem: {
|
|
1546
|
+
readonly code: string;
|
|
1547
|
+
readonly message: string;
|
|
1548
|
+
} | null;
|
|
1549
|
+
readonly createdAt: string;
|
|
1550
|
+
readonly updatedAt: string;
|
|
1551
|
+
}[];
|
|
1552
|
+
readonly nextCursor: string | null;
|
|
1553
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1554
|
+
readonly items: (input: {
|
|
1555
|
+
readonly id: string;
|
|
1556
|
+
readonly limit?: number | null | undefined;
|
|
1557
|
+
readonly cursor?: string | undefined;
|
|
1558
|
+
}) => import("effect/Stream").Stream<{
|
|
1559
|
+
readonly id: string & import("effect/Brand").Brand<"MailOutboxItemId">;
|
|
1560
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
1561
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1562
|
+
readonly draftId: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1563
|
+
readonly draftRevision: number;
|
|
1564
|
+
readonly draftSummary?: {
|
|
1565
|
+
readonly to: readonly string[];
|
|
1566
|
+
readonly subject: string;
|
|
1567
|
+
};
|
|
1568
|
+
readonly status: "cancelled" | "dispatched" | "failed" | "held" | "queued";
|
|
1569
|
+
readonly scheduledFor?: string | null;
|
|
1570
|
+
readonly holdReason: "threadChanged" | null;
|
|
1571
|
+
readonly revision: number;
|
|
1572
|
+
readonly baseSeq: number;
|
|
1573
|
+
readonly heldAtSeq: number | null;
|
|
1574
|
+
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
1575
|
+
readonly problem: {
|
|
1576
|
+
readonly code: string;
|
|
1577
|
+
readonly message: string;
|
|
1578
|
+
} | null;
|
|
1579
|
+
readonly createdAt: string;
|
|
1580
|
+
readonly updatedAt: string;
|
|
1581
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1582
|
+
};
|
|
1441
1583
|
export declare const listDrafts: ((input: {
|
|
1442
1584
|
readonly id: string;
|
|
1443
1585
|
readonly limit?: number | null | undefined;
|
|
1444
1586
|
readonly cursor?: string | undefined;
|
|
1445
1587
|
readonly threadId?: string | undefined;
|
|
1446
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListDrafts">) & {
|
|
1588
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListDrafts">) & {
|
|
1447
1589
|
readonly pages: (input: {
|
|
1448
1590
|
readonly id: string;
|
|
1449
1591
|
readonly limit?: number | null | undefined;
|
|
@@ -1463,7 +1605,7 @@ export declare const listDrafts: ((input: {
|
|
|
1463
1605
|
readonly updatedAt: string;
|
|
1464
1606
|
}[];
|
|
1465
1607
|
readonly nextCursor: string | null;
|
|
1466
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1608
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1467
1609
|
readonly items: (input: {
|
|
1468
1610
|
readonly id: string;
|
|
1469
1611
|
readonly limit?: number | null | undefined;
|
|
@@ -1480,9 +1622,15 @@ export declare const listDrafts: ((input: {
|
|
|
1480
1622
|
readonly subject: string | null;
|
|
1481
1623
|
readonly createdAt: string;
|
|
1482
1624
|
readonly updatedAt: string;
|
|
1483
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1625
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1484
1626
|
};
|
|
1485
1627
|
export declare const createDraft: (input: {
|
|
1628
|
+
readonly channel: "sms" | "whatsapp";
|
|
1629
|
+
readonly to?: string | null | undefined;
|
|
1630
|
+
readonly text?: string | null | undefined;
|
|
1631
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
1632
|
+
readonly id: string;
|
|
1633
|
+
} | {
|
|
1486
1634
|
readonly channel?: "email" | null | undefined;
|
|
1487
1635
|
readonly endpointId?: string | null | undefined;
|
|
1488
1636
|
readonly to?: readonly string[] | null | undefined;
|
|
@@ -1501,17 +1649,11 @@ export declare const createDraft: (input: {
|
|
|
1501
1649
|
}[] | null | undefined;
|
|
1502
1650
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1503
1651
|
readonly id: string;
|
|
1504
|
-
}
|
|
1505
|
-
readonly channel: "sms" | "whatsapp";
|
|
1506
|
-
readonly to?: string | null | undefined;
|
|
1507
|
-
readonly text?: string | null | undefined;
|
|
1508
|
-
readonly inReplyToMessageId?: string | null | undefined;
|
|
1509
|
-
readonly id: string;
|
|
1510
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateDraft">;
|
|
1652
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateDraft">;
|
|
1511
1653
|
export declare const getDraft: (input: {
|
|
1512
1654
|
readonly id: string;
|
|
1513
1655
|
readonly draftId: string;
|
|
1514
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetDraft">;
|
|
1656
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetDraft">;
|
|
1515
1657
|
export declare const updateDraft: (input: {
|
|
1516
1658
|
readonly id: string;
|
|
1517
1659
|
readonly draftId: string;
|
|
@@ -1529,15 +1671,15 @@ export declare const updateDraft: (input: {
|
|
|
1529
1671
|
readonly contentType: string;
|
|
1530
1672
|
readonly size: number;
|
|
1531
1673
|
}[] | null | undefined;
|
|
1532
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateDraft">;
|
|
1674
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateDraft">;
|
|
1533
1675
|
export declare const deleteDraft: (input: {
|
|
1534
1676
|
readonly id: string;
|
|
1535
1677
|
readonly draftId: string;
|
|
1536
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeleteDraft">;
|
|
1678
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDeleteDraft">;
|
|
1537
1679
|
export declare const sendDraft: (input: {
|
|
1538
1680
|
readonly id: string;
|
|
1539
1681
|
readonly draftId: string;
|
|
1540
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesSendDraft">;
|
|
1682
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesSendDraft">;
|
|
1541
1683
|
export declare const listActions: ((input: {
|
|
1542
1684
|
readonly id: string;
|
|
1543
1685
|
readonly limit?: number | null | undefined;
|
|
@@ -1546,7 +1688,7 @@ export declare const listActions: ((input: {
|
|
|
1546
1688
|
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1547
1689
|
readonly after?: string | undefined;
|
|
1548
1690
|
readonly before?: string | undefined;
|
|
1549
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListActions">) & {
|
|
1691
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListActions">) & {
|
|
1550
1692
|
readonly pages: (input: {
|
|
1551
1693
|
readonly id: string;
|
|
1552
1694
|
readonly limit?: number | null | undefined;
|
|
@@ -1557,81 +1699,6 @@ export declare const listActions: ((input: {
|
|
|
1557
1699
|
readonly before?: string | undefined;
|
|
1558
1700
|
}) => import("effect/Stream").Stream<{
|
|
1559
1701
|
readonly items: readonly ({
|
|
1560
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1561
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1562
|
-
readonly proposedBy: {
|
|
1563
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1564
|
-
readonly id: string;
|
|
1565
|
-
readonly displayName?: string | null;
|
|
1566
|
-
};
|
|
1567
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1568
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1569
|
-
readonly decision: {
|
|
1570
|
-
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1571
|
-
readonly reviewRound: number;
|
|
1572
|
-
readonly requirement: "model" | "never" | "person" | "run";
|
|
1573
|
-
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1574
|
-
readonly outcome: "allow" | "hold" | "refuse";
|
|
1575
|
-
readonly reason: string;
|
|
1576
|
-
readonly scopes: readonly {
|
|
1577
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1578
|
-
readonly id: string;
|
|
1579
|
-
}[];
|
|
1580
|
-
readonly rule?: {
|
|
1581
|
-
readonly scope: {
|
|
1582
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1583
|
-
readonly id: string;
|
|
1584
|
-
};
|
|
1585
|
-
readonly index: number;
|
|
1586
|
-
} | null;
|
|
1587
|
-
readonly guard?: string | null;
|
|
1588
|
-
readonly guardReason?: string | null;
|
|
1589
|
-
readonly resolution?: {
|
|
1590
|
-
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1591
|
-
readonly at: string;
|
|
1592
|
-
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1593
|
-
readonly diff?: {
|
|
1594
|
-
readonly text?: {
|
|
1595
|
-
readonly before: string | null;
|
|
1596
|
-
readonly after: string | null;
|
|
1597
|
-
} | null;
|
|
1598
|
-
readonly html?: {
|
|
1599
|
-
readonly before: string | null;
|
|
1600
|
-
readonly after: string | null;
|
|
1601
|
-
} | null;
|
|
1602
|
-
} | null;
|
|
1603
|
-
} | null;
|
|
1604
|
-
} | null;
|
|
1605
|
-
readonly resolution: {
|
|
1606
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1607
|
-
readonly actor: {
|
|
1608
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1609
|
-
readonly id: string;
|
|
1610
|
-
readonly displayName?: string | null;
|
|
1611
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1612
|
-
};
|
|
1613
|
-
readonly resolvedAt: string;
|
|
1614
|
-
readonly reason: string | null;
|
|
1615
|
-
} | null;
|
|
1616
|
-
readonly alwaysAllow: {
|
|
1617
|
-
readonly by: "admin" | "approver" | "owner";
|
|
1618
|
-
readonly allowed: boolean;
|
|
1619
|
-
} | null;
|
|
1620
|
-
readonly createdAt: string;
|
|
1621
|
-
readonly updatedAt: string;
|
|
1622
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1623
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1624
|
-
readonly tool: {
|
|
1625
|
-
readonly name: string;
|
|
1626
|
-
readonly argumentsHash: string;
|
|
1627
|
-
readonly arguments: {
|
|
1628
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1629
|
-
};
|
|
1630
|
-
} | null;
|
|
1631
|
-
readonly handoff: {
|
|
1632
|
-
readonly reason: string;
|
|
1633
|
-
} | null;
|
|
1634
|
-
} | {
|
|
1635
1702
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1636
1703
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1637
1704
|
readonly proposedBy: {
|
|
@@ -1834,16 +1901,91 @@ export declare const listActions: ((input: {
|
|
|
1834
1901
|
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1835
1902
|
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
1836
1903
|
readonly templateData: {
|
|
1837
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1904
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1838
1905
|
} | null;
|
|
1839
1906
|
} | null;
|
|
1840
1907
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1841
1908
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1842
1909
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1843
1910
|
} | null;
|
|
1911
|
+
} | {
|
|
1912
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1913
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1914
|
+
readonly proposedBy: {
|
|
1915
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1916
|
+
readonly id: string;
|
|
1917
|
+
readonly displayName?: string | null;
|
|
1918
|
+
};
|
|
1919
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1920
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1921
|
+
readonly decision: {
|
|
1922
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1923
|
+
readonly reviewRound: number;
|
|
1924
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1925
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1926
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1927
|
+
readonly reason: string;
|
|
1928
|
+
readonly scopes: readonly {
|
|
1929
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1930
|
+
readonly id: string;
|
|
1931
|
+
}[];
|
|
1932
|
+
readonly rule?: {
|
|
1933
|
+
readonly scope: {
|
|
1934
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1935
|
+
readonly id: string;
|
|
1936
|
+
};
|
|
1937
|
+
readonly index: number;
|
|
1938
|
+
} | null;
|
|
1939
|
+
readonly guard?: string | null;
|
|
1940
|
+
readonly guardReason?: string | null;
|
|
1941
|
+
readonly resolution?: {
|
|
1942
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1943
|
+
readonly at: string;
|
|
1944
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1945
|
+
readonly diff?: {
|
|
1946
|
+
readonly text?: {
|
|
1947
|
+
readonly before: string | null;
|
|
1948
|
+
readonly after: string | null;
|
|
1949
|
+
} | null;
|
|
1950
|
+
readonly html?: {
|
|
1951
|
+
readonly before: string | null;
|
|
1952
|
+
readonly after: string | null;
|
|
1953
|
+
} | null;
|
|
1954
|
+
} | null;
|
|
1955
|
+
} | null;
|
|
1956
|
+
} | null;
|
|
1957
|
+
readonly resolution: {
|
|
1958
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1959
|
+
readonly actor: {
|
|
1960
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1961
|
+
readonly id: string;
|
|
1962
|
+
readonly displayName?: string | null;
|
|
1963
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1964
|
+
};
|
|
1965
|
+
readonly resolvedAt: string;
|
|
1966
|
+
readonly reason: string | null;
|
|
1967
|
+
} | null;
|
|
1968
|
+
readonly alwaysAllow: {
|
|
1969
|
+
readonly by: "admin" | "approver" | "owner";
|
|
1970
|
+
readonly allowed: boolean;
|
|
1971
|
+
} | null;
|
|
1972
|
+
readonly createdAt: string;
|
|
1973
|
+
readonly updatedAt: string;
|
|
1974
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1975
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1976
|
+
readonly tool: {
|
|
1977
|
+
readonly name: string;
|
|
1978
|
+
readonly argumentsHash: string;
|
|
1979
|
+
readonly arguments: {
|
|
1980
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1981
|
+
};
|
|
1982
|
+
} | null;
|
|
1983
|
+
readonly handoff: {
|
|
1984
|
+
readonly reason: string;
|
|
1985
|
+
} | null;
|
|
1844
1986
|
})[];
|
|
1845
1987
|
readonly nextCursor: string | null;
|
|
1846
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1988
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1847
1989
|
readonly items: (input: {
|
|
1848
1990
|
readonly id: string;
|
|
1849
1991
|
readonly limit?: number | null | undefined;
|
|
@@ -1853,81 +1995,6 @@ export declare const listActions: ((input: {
|
|
|
1853
1995
|
readonly after?: string | undefined;
|
|
1854
1996
|
readonly before?: string | undefined;
|
|
1855
1997
|
}) => import("effect/Stream").Stream<{
|
|
1856
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1857
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1858
|
-
readonly proposedBy: {
|
|
1859
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1860
|
-
readonly id: string;
|
|
1861
|
-
readonly displayName?: string | null;
|
|
1862
|
-
};
|
|
1863
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1864
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1865
|
-
readonly decision: {
|
|
1866
|
-
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1867
|
-
readonly reviewRound: number;
|
|
1868
|
-
readonly requirement: "model" | "never" | "person" | "run";
|
|
1869
|
-
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1870
|
-
readonly outcome: "allow" | "hold" | "refuse";
|
|
1871
|
-
readonly reason: string;
|
|
1872
|
-
readonly scopes: readonly {
|
|
1873
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1874
|
-
readonly id: string;
|
|
1875
|
-
}[];
|
|
1876
|
-
readonly rule?: {
|
|
1877
|
-
readonly scope: {
|
|
1878
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1879
|
-
readonly id: string;
|
|
1880
|
-
};
|
|
1881
|
-
readonly index: number;
|
|
1882
|
-
} | null;
|
|
1883
|
-
readonly guard?: string | null;
|
|
1884
|
-
readonly guardReason?: string | null;
|
|
1885
|
-
readonly resolution?: {
|
|
1886
|
-
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1887
|
-
readonly at: string;
|
|
1888
|
-
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1889
|
-
readonly diff?: {
|
|
1890
|
-
readonly text?: {
|
|
1891
|
-
readonly before: string | null;
|
|
1892
|
-
readonly after: string | null;
|
|
1893
|
-
} | null;
|
|
1894
|
-
readonly html?: {
|
|
1895
|
-
readonly before: string | null;
|
|
1896
|
-
readonly after: string | null;
|
|
1897
|
-
} | null;
|
|
1898
|
-
} | null;
|
|
1899
|
-
} | null;
|
|
1900
|
-
} | null;
|
|
1901
|
-
readonly resolution: {
|
|
1902
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1903
|
-
readonly actor: {
|
|
1904
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1905
|
-
readonly id: string;
|
|
1906
|
-
readonly displayName?: string | null;
|
|
1907
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1908
|
-
};
|
|
1909
|
-
readonly resolvedAt: string;
|
|
1910
|
-
readonly reason: string | null;
|
|
1911
|
-
} | null;
|
|
1912
|
-
readonly alwaysAllow: {
|
|
1913
|
-
readonly by: "admin" | "approver" | "owner";
|
|
1914
|
-
readonly allowed: boolean;
|
|
1915
|
-
} | null;
|
|
1916
|
-
readonly createdAt: string;
|
|
1917
|
-
readonly updatedAt: string;
|
|
1918
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1919
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1920
|
-
readonly tool: {
|
|
1921
|
-
readonly name: string;
|
|
1922
|
-
readonly argumentsHash: string;
|
|
1923
|
-
readonly arguments: {
|
|
1924
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1925
|
-
};
|
|
1926
|
-
} | null;
|
|
1927
|
-
readonly handoff: {
|
|
1928
|
-
readonly reason: string;
|
|
1929
|
-
} | null;
|
|
1930
|
-
} | {
|
|
1931
1998
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1932
1999
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1933
2000
|
readonly proposedBy: {
|
|
@@ -2130,27 +2197,102 @@ export declare const listActions: ((input: {
|
|
|
2130
2197
|
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2131
2198
|
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
2132
2199
|
readonly templateData: {
|
|
2133
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2200
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2134
2201
|
} | null;
|
|
2135
2202
|
} | null;
|
|
2136
2203
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2137
2204
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2138
2205
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2139
2206
|
} | null;
|
|
2140
|
-
}
|
|
2207
|
+
} | {
|
|
2208
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2209
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2210
|
+
readonly proposedBy: {
|
|
2211
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2212
|
+
readonly id: string;
|
|
2213
|
+
readonly displayName?: string | null;
|
|
2214
|
+
};
|
|
2215
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2216
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2217
|
+
readonly decision: {
|
|
2218
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
2219
|
+
readonly reviewRound: number;
|
|
2220
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
2221
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
2222
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
2223
|
+
readonly reason: string;
|
|
2224
|
+
readonly scopes: readonly {
|
|
2225
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
2226
|
+
readonly id: string;
|
|
2227
|
+
}[];
|
|
2228
|
+
readonly rule?: {
|
|
2229
|
+
readonly scope: {
|
|
2230
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
2231
|
+
readonly id: string;
|
|
2232
|
+
};
|
|
2233
|
+
readonly index: number;
|
|
2234
|
+
} | null;
|
|
2235
|
+
readonly guard?: string | null;
|
|
2236
|
+
readonly guardReason?: string | null;
|
|
2237
|
+
readonly resolution?: {
|
|
2238
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
2239
|
+
readonly at: string;
|
|
2240
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
2241
|
+
readonly diff?: {
|
|
2242
|
+
readonly text?: {
|
|
2243
|
+
readonly before: string | null;
|
|
2244
|
+
readonly after: string | null;
|
|
2245
|
+
} | null;
|
|
2246
|
+
readonly html?: {
|
|
2247
|
+
readonly before: string | null;
|
|
2248
|
+
readonly after: string | null;
|
|
2249
|
+
} | null;
|
|
2250
|
+
} | null;
|
|
2251
|
+
} | null;
|
|
2252
|
+
} | null;
|
|
2253
|
+
readonly resolution: {
|
|
2254
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2255
|
+
readonly actor: {
|
|
2256
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2257
|
+
readonly id: string;
|
|
2258
|
+
readonly displayName?: string | null;
|
|
2259
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2260
|
+
};
|
|
2261
|
+
readonly resolvedAt: string;
|
|
2262
|
+
readonly reason: string | null;
|
|
2263
|
+
} | null;
|
|
2264
|
+
readonly alwaysAllow: {
|
|
2265
|
+
readonly by: "admin" | "approver" | "owner";
|
|
2266
|
+
readonly allowed: boolean;
|
|
2267
|
+
} | null;
|
|
2268
|
+
readonly createdAt: string;
|
|
2269
|
+
readonly updatedAt: string;
|
|
2270
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
2271
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2272
|
+
readonly tool: {
|
|
2273
|
+
readonly name: string;
|
|
2274
|
+
readonly argumentsHash: string;
|
|
2275
|
+
readonly arguments: {
|
|
2276
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2277
|
+
};
|
|
2278
|
+
} | null;
|
|
2279
|
+
readonly handoff: {
|
|
2280
|
+
readonly reason: string;
|
|
2281
|
+
} | null;
|
|
2282
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2141
2283
|
};
|
|
2142
2284
|
export declare const getAction: (input: {
|
|
2143
2285
|
readonly id: string;
|
|
2144
2286
|
readonly actionId: string;
|
|
2145
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetAction">;
|
|
2287
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesGetAction">;
|
|
2146
2288
|
export declare const cancelAction: (input: {
|
|
2147
2289
|
readonly id: string;
|
|
2148
2290
|
readonly actionId: string;
|
|
2149
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCancelAction">;
|
|
2291
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCancelAction">;
|
|
2150
2292
|
export declare const retryAction: (input: {
|
|
2151
2293
|
readonly id: string;
|
|
2152
2294
|
readonly actionId: string;
|
|
2153
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRetryAction">;
|
|
2295
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesRetryAction">;
|
|
2154
2296
|
export declare const approveAction: (input: {
|
|
2155
2297
|
readonly id: string;
|
|
2156
2298
|
readonly actionId: string;
|
|
@@ -2160,20 +2302,20 @@ export declare const approveAction: (input: {
|
|
|
2160
2302
|
readonly text?: string | null | undefined;
|
|
2161
2303
|
readonly html?: string | null | undefined;
|
|
2162
2304
|
} | null | undefined;
|
|
2163
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesApproveAction">;
|
|
2305
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesApproveAction">;
|
|
2164
2306
|
export declare const denyAction: (input: {
|
|
2165
2307
|
readonly id: string;
|
|
2166
2308
|
readonly actionId: string;
|
|
2167
2309
|
readonly reviewRound: number;
|
|
2168
2310
|
readonly reason: string;
|
|
2169
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDenyAction">;
|
|
2311
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDenyAction">;
|
|
2170
2312
|
export declare const listEvents: ((input: {
|
|
2171
2313
|
readonly id: string;
|
|
2172
2314
|
readonly limit?: number | null | undefined;
|
|
2173
2315
|
readonly cursor?: string | undefined;
|
|
2174
2316
|
readonly after?: string | undefined;
|
|
2175
2317
|
readonly before?: string | undefined;
|
|
2176
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListEvents">) & {
|
|
2318
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListEvents">) & {
|
|
2177
2319
|
readonly pages: (input: {
|
|
2178
2320
|
readonly id: string;
|
|
2179
2321
|
readonly limit?: number | null | undefined;
|
|
@@ -2192,12 +2334,12 @@ export declare const listEvents: ((input: {
|
|
|
2192
2334
|
readonly displayName?: string | null;
|
|
2193
2335
|
};
|
|
2194
2336
|
readonly payload: {
|
|
2195
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2337
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2196
2338
|
};
|
|
2197
2339
|
readonly occurredAt: string;
|
|
2198
2340
|
}[];
|
|
2199
2341
|
readonly nextCursor: string | null;
|
|
2200
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
2342
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2201
2343
|
readonly items: (input: {
|
|
2202
2344
|
readonly id: string;
|
|
2203
2345
|
readonly limit?: number | null | undefined;
|
|
@@ -2215,8 +2357,48 @@ export declare const listEvents: ((input: {
|
|
|
2215
2357
|
readonly displayName?: string | null;
|
|
2216
2358
|
};
|
|
2217
2359
|
readonly payload: {
|
|
2218
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2360
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2219
2361
|
};
|
|
2220
2362
|
readonly occurredAt: string;
|
|
2221
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
2363
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2222
2364
|
};
|
|
2365
|
+
export declare const countSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCountSplits">;
|
|
2366
|
+
export declare const listSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListSplits">;
|
|
2367
|
+
export declare const createSplit: (input: {
|
|
2368
|
+
readonly name: string;
|
|
2369
|
+
readonly filter: {
|
|
2370
|
+
readonly kind: "query";
|
|
2371
|
+
readonly query: string;
|
|
2372
|
+
} | {
|
|
2373
|
+
readonly kind: "address";
|
|
2374
|
+
readonly address: string;
|
|
2375
|
+
} | {
|
|
2376
|
+
readonly kind: "vip";
|
|
2377
|
+
readonly senders: readonly string[];
|
|
2378
|
+
};
|
|
2379
|
+
readonly mailboxId: string | null;
|
|
2380
|
+
readonly position: number;
|
|
2381
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateSplit">;
|
|
2382
|
+
export declare const updateSplit: (input: {
|
|
2383
|
+
readonly splitId: string;
|
|
2384
|
+
readonly name: string;
|
|
2385
|
+
readonly filter: {
|
|
2386
|
+
readonly kind: "query";
|
|
2387
|
+
readonly query: string;
|
|
2388
|
+
} | {
|
|
2389
|
+
readonly kind: "address";
|
|
2390
|
+
readonly address: string;
|
|
2391
|
+
} | {
|
|
2392
|
+
readonly kind: "vip";
|
|
2393
|
+
readonly senders: readonly string[];
|
|
2394
|
+
};
|
|
2395
|
+
readonly mailboxId: string | null;
|
|
2396
|
+
readonly position: number;
|
|
2397
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesUpdateSplit">;
|
|
2398
|
+
export declare const deleteSplit: (input: {
|
|
2399
|
+
readonly splitId: string;
|
|
2400
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDeleteSplit">;
|
|
2401
|
+
export declare const listAddresses: (input: {
|
|
2402
|
+
readonly id: string;
|
|
2403
|
+
readonly recipient?: string | readonly string[] | undefined;
|
|
2404
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesListAddresses">;
|