samva 0.47.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +2 -1
- package/dist/agent/runtime.js +26 -5
- package/dist/agent/types.d.ts +27 -0
- package/dist/client/sdk.gen.d.ts +234 -34
- package/dist/client/sdk.gen.js +574 -60
- package/dist/client/types.gen.d.ts +1363 -164
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/agents.d.ts +13 -13
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/api-keys.d.ts +13 -11
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/campaigns.d.ts +15 -15
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contacts.d.ts +25 -25
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
- package/dist/effect/descriptors/integrations-catalog.js +122 -0
- package/dist/effect/descriptors/mailboxes.d.ts +32 -12
- package/dist/effect/descriptors/mailboxes.js +32 -12
- package/dist/effect/email.d.ts +61 -61
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/generated/accounts.d.ts +1 -3
- package/dist/effect/generated/accounts.js +2 -7
- package/dist/effect/generated/api-keys.d.ts +30 -15
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
- package/dist/effect/generated/integrations-catalog.js +578 -3
- package/dist/effect/generated/journeys.d.ts +105 -107
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +752 -463
- package/dist/effect/generated/mailboxes.js +163 -98
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +255 -59
- package/dist/effect/generated/shared.js +64 -18
- package/dist/effect/generated/template-registrations.d.ts +53 -4
- package/dist/effect/generated/template-registrations.js +13 -5
- package/dist/effect/generated/templates.d.ts +77 -15
- package/dist/effect/generated/templates.js +26 -17
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -8
- package/dist/effect/generated/whoami.d.ts +4 -4
- package/dist/effect/generated-metadata.d.ts +114 -18
- package/dist/effect/generated-metadata.js +362 -340
- package/dist/effect/integrations-catalog.d.ts +228 -3
- package/dist/effect/integrations-catalog.js +29 -1
- package/dist/effect/integrations.d.ts +7 -7
- package/dist/effect/internal/client.d.ts +7 -3
- package/dist/effect/internal/operation.d.ts +10 -6
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/mailboxes.d.ts +117 -91
- package/dist/effect/mailboxes.js +11 -7
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/namespaces.d.ts +11 -11
- package/dist/effect/newsletter-domains.d.ts +4 -4
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +5 -5
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/template-registrations.d.ts +9 -3
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/templates.d.ts +46 -37
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topics.d.ts +9 -9
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-setup-links.d.ts +4 -4
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/inline-attachments.d.ts +0 -5
- package/dist/mailbox-events.d.ts +1 -5
- package/dist/mailbox-events.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -4
- package/dist/promises/client.js +8 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +83 -9
- package/package.json +2 -2
|
@@ -7,25 +7,25 @@ export declare const createImportUpload: (input: {
|
|
|
7
7
|
readonly sizeBytes: number;
|
|
8
8
|
readonly format: "apple" | "gmail" | "mbox";
|
|
9
9
|
readonly mailboxPath?: string | null | undefined;
|
|
10
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
10
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateImportUpload">;
|
|
11
11
|
export declare const startImport: (input: {
|
|
12
12
|
readonly id: string;
|
|
13
13
|
readonly importId: string;
|
|
14
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
14
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesStartImport">;
|
|
15
15
|
export declare const getImport: (input: {
|
|
16
16
|
readonly id: string;
|
|
17
17
|
readonly importId: string;
|
|
18
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
18
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetImport">;
|
|
19
19
|
export declare const listImports: (input: {
|
|
20
20
|
readonly id: string;
|
|
21
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListImports">;
|
|
22
22
|
export declare const list: ((input?: {
|
|
23
23
|
readonly limit?: number | null | undefined;
|
|
24
24
|
readonly cursor?: string | undefined;
|
|
25
25
|
readonly after?: string | undefined;
|
|
26
26
|
readonly before?: string | undefined;
|
|
27
27
|
readonly namespaceId?: string | undefined;
|
|
28
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
28
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesList">) & {
|
|
29
29
|
readonly pages: (input?: {
|
|
30
30
|
readonly limit?: number | null | undefined;
|
|
31
31
|
readonly cursor?: string | undefined;
|
|
@@ -78,52 +78,52 @@ export declare const create: (input: {
|
|
|
78
78
|
readonly metadata?: {
|
|
79
79
|
readonly [x: string]: string | undefined;
|
|
80
80
|
} | null | undefined;
|
|
81
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
81
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreate">;
|
|
82
82
|
export declare const get: (input: {
|
|
83
83
|
readonly id: string;
|
|
84
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
84
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGet">;
|
|
85
85
|
export declare const update: (input: {
|
|
86
86
|
readonly id: string;
|
|
87
87
|
readonly name?: string | null | undefined;
|
|
88
88
|
readonly metadata?: {
|
|
89
89
|
readonly [x: string]: string | null | undefined;
|
|
90
90
|
} | null | undefined;
|
|
91
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
91
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdate">;
|
|
92
92
|
export declare const remove: (input: {
|
|
93
93
|
readonly id: string;
|
|
94
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
94
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRemove">;
|
|
95
95
|
export declare const createEndpoint: (input: {
|
|
96
96
|
readonly id: string;
|
|
97
97
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
98
98
|
readonly address: string;
|
|
99
99
|
readonly displayName?: string | null | undefined;
|
|
100
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
100
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateEndpoint">;
|
|
101
101
|
export declare const updateEndpoint: (input: {
|
|
102
102
|
readonly id: string;
|
|
103
103
|
readonly endpointId: string;
|
|
104
104
|
readonly displayName?: string | null | undefined;
|
|
105
105
|
readonly default?: true | null | undefined;
|
|
106
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
106
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateEndpoint">;
|
|
107
107
|
export declare const removeEndpoint: (input: {
|
|
108
108
|
readonly id: string;
|
|
109
109
|
readonly endpointId: string;
|
|
110
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
110
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRemoveEndpoint">;
|
|
111
111
|
export declare const pause: (input: {
|
|
112
112
|
readonly id: string;
|
|
113
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
113
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesPause">;
|
|
114
114
|
export declare const resume: (input: {
|
|
115
115
|
readonly id: string;
|
|
116
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
116
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesResume">;
|
|
117
117
|
export declare const getAgentActivity: (input: {
|
|
118
118
|
readonly id: string;
|
|
119
119
|
readonly after?: string | undefined;
|
|
120
120
|
readonly before?: string | undefined;
|
|
121
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
121
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetAgentActivity">;
|
|
122
122
|
export declare const listGrants: ((input: {
|
|
123
123
|
readonly id: string;
|
|
124
124
|
readonly limit?: number | null | undefined;
|
|
125
125
|
readonly cursor?: string | undefined;
|
|
126
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
126
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListGrants">) & {
|
|
127
127
|
readonly pages: (input: {
|
|
128
128
|
readonly id: string;
|
|
129
129
|
readonly limit?: number | null | undefined;
|
|
@@ -136,7 +136,7 @@ export declare const listGrants: ((input: {
|
|
|
136
136
|
readonly id: string;
|
|
137
137
|
readonly displayName?: string | null;
|
|
138
138
|
};
|
|
139
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "
|
|
139
|
+
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "spam:discard" | "spam:read" | "thread:read" | "thread:write")[];
|
|
140
140
|
readonly createdAt: string;
|
|
141
141
|
}[];
|
|
142
142
|
readonly nextCursor: string | null;
|
|
@@ -152,7 +152,7 @@ export declare const listGrants: ((input: {
|
|
|
152
152
|
readonly id: string;
|
|
153
153
|
readonly displayName?: string | null;
|
|
154
154
|
};
|
|
155
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "
|
|
155
|
+
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "spam:discard" | "spam:read" | "thread:read" | "thread:write")[];
|
|
156
156
|
readonly createdAt: string;
|
|
157
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>;
|
|
158
158
|
};
|
|
@@ -160,42 +160,42 @@ export declare const createGrant: (input: {
|
|
|
160
160
|
readonly id: string;
|
|
161
161
|
readonly userId: string;
|
|
162
162
|
readonly role: "admin" | "collaborator" | "viewer";
|
|
163
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
163
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateGrant">;
|
|
164
164
|
export declare const updateGrant: (input: {
|
|
165
165
|
readonly id: string;
|
|
166
166
|
readonly grantId: string;
|
|
167
167
|
readonly role?: "admin" | "collaborator" | "viewer" | null | undefined;
|
|
168
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
168
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateGrant">;
|
|
169
169
|
export declare const revokeGrant: (input: {
|
|
170
170
|
readonly id: string;
|
|
171
171
|
readonly grantId: string;
|
|
172
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
172
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRevokeGrant">;
|
|
173
173
|
export declare const listFolders: (input: {
|
|
174
174
|
readonly id: string;
|
|
175
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
175
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListFolders">;
|
|
176
176
|
export declare const listLabels: (input: {
|
|
177
177
|
readonly id: string;
|
|
178
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
178
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListLabels">;
|
|
179
179
|
export declare const createLabel: (input: {
|
|
180
180
|
readonly id: string;
|
|
181
181
|
readonly slug: string;
|
|
182
182
|
readonly displayName: string;
|
|
183
183
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
184
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
184
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateLabel">;
|
|
185
185
|
export declare const updateLabel: (input: {
|
|
186
186
|
readonly id: string;
|
|
187
187
|
readonly labelId: string;
|
|
188
188
|
readonly displayName?: string | null | undefined;
|
|
189
189
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
190
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
190
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateLabel">;
|
|
191
191
|
export declare const deleteLabel: (input: {
|
|
192
192
|
readonly id: string;
|
|
193
193
|
readonly labelId: string;
|
|
194
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
194
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteLabel">;
|
|
195
195
|
export declare const getNeedsYou: ((input?: {
|
|
196
196
|
readonly limit?: number | null | undefined;
|
|
197
197
|
readonly cursor?: string | undefined;
|
|
198
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
198
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetNeedsYou">) & {
|
|
199
199
|
readonly pages: (input?: {
|
|
200
200
|
readonly limit?: number | null | undefined;
|
|
201
201
|
readonly cursor?: string | undefined;
|
|
@@ -573,7 +573,7 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
573
573
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
574
574
|
readonly kind?: "personal" | "shared" | undefined;
|
|
575
575
|
readonly threadId?: string | undefined;
|
|
576
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
576
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListOrganizationDrafts">) & {
|
|
577
577
|
readonly pages: (input?: {
|
|
578
578
|
readonly limit?: number | null | undefined;
|
|
579
579
|
readonly cursor?: string | undefined;
|
|
@@ -634,7 +634,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
634
634
|
readonly excludeTrash?: boolean | null | undefined;
|
|
635
635
|
readonly q?: string | undefined;
|
|
636
636
|
readonly state?: "active" | "done" | undefined;
|
|
637
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
637
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
638
638
|
readonly label?: string | undefined;
|
|
639
639
|
readonly unread?: boolean | null | undefined;
|
|
640
640
|
readonly starred?: boolean | null | undefined;
|
|
@@ -642,7 +642,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
642
642
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
643
643
|
readonly kind?: "personal" | "shared" | undefined;
|
|
644
644
|
readonly conversation?: string | undefined;
|
|
645
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
645
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListOrganizationThreads">) & {
|
|
646
646
|
readonly pages: (input?: {
|
|
647
647
|
readonly limit?: number | null | undefined;
|
|
648
648
|
readonly cursor?: string | undefined;
|
|
@@ -653,7 +653,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
653
653
|
readonly excludeTrash?: boolean | null | undefined;
|
|
654
654
|
readonly q?: string | undefined;
|
|
655
655
|
readonly state?: "active" | "done" | undefined;
|
|
656
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
656
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
657
657
|
readonly label?: string | undefined;
|
|
658
658
|
readonly unread?: boolean | null | undefined;
|
|
659
659
|
readonly starred?: boolean | null | undefined;
|
|
@@ -666,6 +666,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
666
666
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
667
667
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
668
668
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
669
|
+
readonly deliveredTo: string | null;
|
|
669
670
|
readonly subject: string | null;
|
|
670
671
|
readonly preview: string | null;
|
|
671
672
|
readonly from: {
|
|
@@ -675,7 +676,11 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
675
676
|
readonly messageCount: number;
|
|
676
677
|
readonly hasAttachments: boolean;
|
|
677
678
|
readonly hasDraft: boolean;
|
|
678
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
679
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
680
|
+
readonly spam?: {
|
|
681
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
682
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
683
|
+
};
|
|
679
684
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
680
685
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
681
686
|
readonly read: boolean;
|
|
@@ -709,7 +714,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
709
714
|
readonly excludeTrash?: boolean | null | undefined;
|
|
710
715
|
readonly q?: string | undefined;
|
|
711
716
|
readonly state?: "active" | "done" | undefined;
|
|
712
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
717
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
713
718
|
readonly label?: string | undefined;
|
|
714
719
|
readonly unread?: boolean | null | undefined;
|
|
715
720
|
readonly starred?: boolean | null | undefined;
|
|
@@ -721,6 +726,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
721
726
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
722
727
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
723
728
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
729
|
+
readonly deliveredTo: string | null;
|
|
724
730
|
readonly subject: string | null;
|
|
725
731
|
readonly preview: string | null;
|
|
726
732
|
readonly from: {
|
|
@@ -730,7 +736,11 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
730
736
|
readonly messageCount: number;
|
|
731
737
|
readonly hasAttachments: boolean;
|
|
732
738
|
readonly hasDraft: boolean;
|
|
733
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
739
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
740
|
+
readonly spam?: {
|
|
741
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
742
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
743
|
+
};
|
|
734
744
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
735
745
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
736
746
|
readonly read: boolean;
|
|
@@ -764,12 +774,12 @@ export declare const listThreads: ((input: {
|
|
|
764
774
|
readonly excludeTrash?: boolean | null | undefined;
|
|
765
775
|
readonly q?: string | undefined;
|
|
766
776
|
readonly state?: "active" | "done" | undefined;
|
|
767
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
777
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
768
778
|
readonly label?: string | undefined;
|
|
769
779
|
readonly unread?: boolean | null | undefined;
|
|
770
780
|
readonly starred?: boolean | null | undefined;
|
|
771
781
|
readonly snoozed?: boolean | null | undefined;
|
|
772
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
782
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreads">) & {
|
|
773
783
|
readonly pages: (input: {
|
|
774
784
|
readonly id: string;
|
|
775
785
|
readonly limit?: number | null | undefined;
|
|
@@ -781,7 +791,7 @@ export declare const listThreads: ((input: {
|
|
|
781
791
|
readonly excludeTrash?: boolean | null | undefined;
|
|
782
792
|
readonly q?: string | undefined;
|
|
783
793
|
readonly state?: "active" | "done" | undefined;
|
|
784
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
794
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
785
795
|
readonly label?: string | undefined;
|
|
786
796
|
readonly unread?: boolean | null | undefined;
|
|
787
797
|
readonly starred?: boolean | null | undefined;
|
|
@@ -791,6 +801,7 @@ export declare const listThreads: ((input: {
|
|
|
791
801
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
792
802
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
793
803
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
804
|
+
readonly deliveredTo: string | null;
|
|
794
805
|
readonly subject: string | null;
|
|
795
806
|
readonly preview: string | null;
|
|
796
807
|
readonly from: {
|
|
@@ -800,7 +811,11 @@ export declare const listThreads: ((input: {
|
|
|
800
811
|
readonly messageCount: number;
|
|
801
812
|
readonly hasAttachments: boolean;
|
|
802
813
|
readonly hasDraft: boolean;
|
|
803
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
814
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
815
|
+
readonly spam?: {
|
|
816
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
817
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
818
|
+
};
|
|
804
819
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
805
820
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
806
821
|
readonly read: boolean;
|
|
@@ -830,7 +845,7 @@ export declare const listThreads: ((input: {
|
|
|
830
845
|
readonly excludeTrash?: boolean | null | undefined;
|
|
831
846
|
readonly q?: string | undefined;
|
|
832
847
|
readonly state?: "active" | "done" | undefined;
|
|
833
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
848
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
834
849
|
readonly label?: string | undefined;
|
|
835
850
|
readonly unread?: boolean | null | undefined;
|
|
836
851
|
readonly starred?: boolean | null | undefined;
|
|
@@ -839,6 +854,7 @@ export declare const listThreads: ((input: {
|
|
|
839
854
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
840
855
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
841
856
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
857
|
+
readonly deliveredTo: string | null;
|
|
842
858
|
readonly subject: string | null;
|
|
843
859
|
readonly preview: string | null;
|
|
844
860
|
readonly from: {
|
|
@@ -848,7 +864,11 @@ export declare const listThreads: ((input: {
|
|
|
848
864
|
readonly messageCount: number;
|
|
849
865
|
readonly hasAttachments: boolean;
|
|
850
866
|
readonly hasDraft: boolean;
|
|
851
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
867
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
868
|
+
readonly spam?: {
|
|
869
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
870
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
871
|
+
};
|
|
852
872
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
853
873
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
854
874
|
readonly read: boolean;
|
|
@@ -869,11 +889,11 @@ export declare const listThreads: ((input: {
|
|
|
869
889
|
export declare const getThread: (input: {
|
|
870
890
|
readonly id: string;
|
|
871
891
|
readonly threadId: string;
|
|
872
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
892
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetThread">;
|
|
873
893
|
export declare const updateThread: (input: {
|
|
874
894
|
readonly id: string;
|
|
875
895
|
readonly threadId: string;
|
|
876
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | null | undefined;
|
|
896
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | null | undefined;
|
|
877
897
|
readonly priority?: "high" | "low" | "normal" | "urgent" | null | undefined;
|
|
878
898
|
readonly done?: boolean | null | undefined;
|
|
879
899
|
readonly closed?: boolean | null | undefined;
|
|
@@ -882,23 +902,33 @@ export declare const updateThread: (input: {
|
|
|
882
902
|
readonly snoozedUntil?: string | null | undefined;
|
|
883
903
|
readonly ifNoReply?: boolean | undefined;
|
|
884
904
|
readonly reminderInboxAt?: string | null | undefined;
|
|
885
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
905
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateThread">;
|
|
906
|
+
export declare const deleteThread: (input: {
|
|
907
|
+
readonly id: string;
|
|
908
|
+
readonly threadId: string;
|
|
909
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteThread">;
|
|
910
|
+
export declare const emptyTrash: (input: {
|
|
911
|
+
readonly id: string;
|
|
912
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesEmptyTrash">;
|
|
913
|
+
export declare const emptySpam: (input: {
|
|
914
|
+
readonly id: string;
|
|
915
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesEmptySpam">;
|
|
886
916
|
export declare const addThreadLabels: (input: {
|
|
887
917
|
readonly id: string;
|
|
888
918
|
readonly threadId: string;
|
|
889
919
|
readonly labels: readonly string[];
|
|
890
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
920
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesAddThreadLabels">;
|
|
891
921
|
export declare const removeThreadLabels: (input: {
|
|
892
922
|
readonly id: string;
|
|
893
923
|
readonly threadId: string;
|
|
894
924
|
readonly labels: readonly string[];
|
|
895
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
925
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRemoveThreadLabels">;
|
|
896
926
|
export declare const listThreadMessages: ((input: {
|
|
897
927
|
readonly id: string;
|
|
898
928
|
readonly threadId: string;
|
|
899
929
|
readonly limit?: number | null | undefined;
|
|
900
930
|
readonly cursor?: string | undefined;
|
|
901
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
931
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreadMessages">) & {
|
|
902
932
|
readonly pages: (input: {
|
|
903
933
|
readonly id: string;
|
|
904
934
|
readonly threadId: string;
|
|
@@ -964,7 +994,7 @@ export declare const getThreadContent: ((input: {
|
|
|
964
994
|
readonly threadId: string;
|
|
965
995
|
readonly limit?: number | null | undefined;
|
|
966
996
|
readonly cursor?: string | undefined;
|
|
967
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
997
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetThreadContent">) & {
|
|
968
998
|
readonly pages: (input: {
|
|
969
999
|
readonly id: string;
|
|
970
1000
|
readonly threadId: string;
|
|
@@ -1178,7 +1208,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
1178
1208
|
readonly threadId: string;
|
|
1179
1209
|
readonly limit?: number | null | undefined;
|
|
1180
1210
|
readonly cursor?: string | undefined;
|
|
1181
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1211
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreadNotes">) & {
|
|
1182
1212
|
readonly pages: (input: {
|
|
1183
1213
|
readonly id: string;
|
|
1184
1214
|
readonly threadId: string;
|
|
@@ -1225,7 +1255,7 @@ export declare const createNote: (input: {
|
|
|
1225
1255
|
readonly body: string;
|
|
1226
1256
|
readonly color?: string | null | undefined;
|
|
1227
1257
|
readonly pinned?: boolean | null | undefined;
|
|
1228
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1258
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateNote">;
|
|
1229
1259
|
export declare const updateNote: (input: {
|
|
1230
1260
|
readonly id: string;
|
|
1231
1261
|
readonly threadId: string;
|
|
@@ -1233,12 +1263,12 @@ export declare const updateNote: (input: {
|
|
|
1233
1263
|
readonly body?: string | null | undefined;
|
|
1234
1264
|
readonly color?: string | null | undefined;
|
|
1235
1265
|
readonly pinned?: boolean | null | undefined;
|
|
1236
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1266
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateNote">;
|
|
1237
1267
|
export declare const deleteNote: (input: {
|
|
1238
1268
|
readonly id: string;
|
|
1239
1269
|
readonly threadId: string;
|
|
1240
1270
|
readonly noteId: string;
|
|
1241
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1271
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteNote">;
|
|
1242
1272
|
export declare const sendMessage: (input: {
|
|
1243
1273
|
readonly channel?: "email" | null | undefined;
|
|
1244
1274
|
readonly to: readonly string[];
|
|
@@ -1289,25 +1319,25 @@ export declare const sendMessage: (input: {
|
|
|
1289
1319
|
} | null | undefined;
|
|
1290
1320
|
} | null | undefined;
|
|
1291
1321
|
readonly id: string;
|
|
1292
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1322
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSendMessage">;
|
|
1293
1323
|
export declare const getMessage: (input: {
|
|
1294
1324
|
readonly id: string;
|
|
1295
1325
|
readonly messageId: string;
|
|
1296
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1326
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetMessage">;
|
|
1297
1327
|
export declare const getMessageRaw: (input: {
|
|
1298
1328
|
readonly id: string;
|
|
1299
1329
|
readonly messageId: string;
|
|
1300
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1330
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetMessageRaw">;
|
|
1301
1331
|
export declare const getMessageAttachment: (input: {
|
|
1302
1332
|
readonly id: string;
|
|
1303
1333
|
readonly messageId: string;
|
|
1304
1334
|
readonly attachmentId: string;
|
|
1305
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1335
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetMessageAttachment">;
|
|
1306
1336
|
export declare const copyMessageAttachment: (input: {
|
|
1307
1337
|
readonly id: string;
|
|
1308
1338
|
readonly messageId: string;
|
|
1309
1339
|
readonly attachmentId: string;
|
|
1310
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1340
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
1311
1341
|
export declare const reply: (input: {
|
|
1312
1342
|
readonly channel?: "email" | null | undefined;
|
|
1313
1343
|
readonly cc?: readonly string[] | null | undefined;
|
|
@@ -1356,7 +1386,7 @@ export declare const reply: (input: {
|
|
|
1356
1386
|
} | null | undefined;
|
|
1357
1387
|
readonly id: string;
|
|
1358
1388
|
readonly messageId: string;
|
|
1359
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1389
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesReply">;
|
|
1360
1390
|
export declare const replyAll: (input: {
|
|
1361
1391
|
readonly channel?: "email" | null | undefined;
|
|
1362
1392
|
readonly cc?: readonly string[] | null | undefined;
|
|
@@ -1405,7 +1435,7 @@ export declare const replyAll: (input: {
|
|
|
1405
1435
|
} | null | undefined;
|
|
1406
1436
|
readonly id: string;
|
|
1407
1437
|
readonly messageId: string;
|
|
1408
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1438
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesReplyAll">;
|
|
1409
1439
|
export declare const forward: (input: {
|
|
1410
1440
|
readonly id: string;
|
|
1411
1441
|
readonly messageId: string;
|
|
@@ -1421,14 +1451,14 @@ export declare const forward: (input: {
|
|
|
1421
1451
|
readonly contentType: string;
|
|
1422
1452
|
readonly size: number;
|
|
1423
1453
|
}[] | null | undefined;
|
|
1424
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1425
|
-
export declare const
|
|
1454
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesForward">;
|
|
1455
|
+
export declare const listSpamHeld: ((input: {
|
|
1426
1456
|
readonly id: string;
|
|
1427
1457
|
readonly limit?: number | null | undefined;
|
|
1428
1458
|
readonly cursor?: string | undefined;
|
|
1429
1459
|
readonly after?: string | undefined;
|
|
1430
1460
|
readonly before?: string | undefined;
|
|
1431
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1461
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListSpamHeld">) & {
|
|
1432
1462
|
readonly pages: (input: {
|
|
1433
1463
|
readonly id: string;
|
|
1434
1464
|
readonly limit?: number | null | undefined;
|
|
@@ -1477,14 +1507,10 @@ export declare const listQuarantine: ((input: {
|
|
|
1477
1507
|
readonly discardedAt: string | null;
|
|
1478
1508
|
}, 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>;
|
|
1479
1509
|
};
|
|
1480
|
-
export declare const
|
|
1481
|
-
readonly id: string;
|
|
1482
|
-
readonly messageId: string;
|
|
1483
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesReleaseMessage">;
|
|
1484
|
-
export declare const discardMessage: (input: {
|
|
1510
|
+
export declare const discardSpamHeld: (input: {
|
|
1485
1511
|
readonly id: string;
|
|
1486
1512
|
readonly messageId: string;
|
|
1487
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1513
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDiscardSpamHeld">;
|
|
1488
1514
|
export declare const scheduleDraft: (input: {
|
|
1489
1515
|
readonly id: string;
|
|
1490
1516
|
readonly draftId: string;
|
|
@@ -1492,7 +1518,7 @@ export declare const scheduleDraft: (input: {
|
|
|
1492
1518
|
readonly base: string;
|
|
1493
1519
|
readonly draftRevision: number;
|
|
1494
1520
|
readonly sendAt: string;
|
|
1495
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1521
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesScheduleDraft">;
|
|
1496
1522
|
export declare const rescheduleSend: (input: {
|
|
1497
1523
|
readonly id: string;
|
|
1498
1524
|
readonly outboxId: string;
|
|
@@ -1500,26 +1526,26 @@ export declare const rescheduleSend: (input: {
|
|
|
1500
1526
|
readonly base: string;
|
|
1501
1527
|
readonly expectedRevision: number;
|
|
1502
1528
|
readonly sendAt: string;
|
|
1503
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1529
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRescheduleSend">;
|
|
1504
1530
|
export declare const unscheduleSend: (input: {
|
|
1505
1531
|
readonly id: string;
|
|
1506
1532
|
readonly outboxId: string;
|
|
1507
1533
|
readonly idempotencyKey: string;
|
|
1508
1534
|
readonly base: string;
|
|
1509
1535
|
readonly expectedRevision: number;
|
|
1510
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1536
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUnscheduleSend">;
|
|
1511
1537
|
export declare const sendScheduledNow: (input: {
|
|
1512
1538
|
readonly id: string;
|
|
1513
1539
|
readonly outboxId: string;
|
|
1514
1540
|
readonly idempotencyKey: string;
|
|
1515
1541
|
readonly base: string;
|
|
1516
1542
|
readonly expectedRevision: number;
|
|
1517
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1543
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSendScheduledNow">;
|
|
1518
1544
|
export declare const listScheduledSends: ((input: {
|
|
1519
1545
|
readonly id: string;
|
|
1520
1546
|
readonly limit?: number | null | undefined;
|
|
1521
1547
|
readonly cursor?: string | undefined;
|
|
1522
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1548
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListScheduledSends">) & {
|
|
1523
1549
|
readonly pages: (input: {
|
|
1524
1550
|
readonly id: string;
|
|
1525
1551
|
readonly limit?: number | null | undefined;
|
|
@@ -1585,7 +1611,7 @@ export declare const listDrafts: ((input: {
|
|
|
1585
1611
|
readonly limit?: number | null | undefined;
|
|
1586
1612
|
readonly cursor?: string | undefined;
|
|
1587
1613
|
readonly threadId?: string | undefined;
|
|
1588
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1614
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListDrafts">) & {
|
|
1589
1615
|
readonly pages: (input: {
|
|
1590
1616
|
readonly id: string;
|
|
1591
1617
|
readonly limit?: number | null | undefined;
|
|
@@ -1649,11 +1675,11 @@ export declare const createDraft: (input: {
|
|
|
1649
1675
|
readonly text?: string | null | undefined;
|
|
1650
1676
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1651
1677
|
readonly id: string;
|
|
1652
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1678
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateDraft">;
|
|
1653
1679
|
export declare const getDraft: (input: {
|
|
1654
1680
|
readonly id: string;
|
|
1655
1681
|
readonly draftId: string;
|
|
1656
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1682
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetDraft">;
|
|
1657
1683
|
export declare const updateDraft: (input: {
|
|
1658
1684
|
readonly id: string;
|
|
1659
1685
|
readonly draftId: string;
|
|
@@ -1671,15 +1697,15 @@ export declare const updateDraft: (input: {
|
|
|
1671
1697
|
readonly contentType: string;
|
|
1672
1698
|
readonly size: number;
|
|
1673
1699
|
}[] | null | undefined;
|
|
1674
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1700
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateDraft">;
|
|
1675
1701
|
export declare const deleteDraft: (input: {
|
|
1676
1702
|
readonly id: string;
|
|
1677
1703
|
readonly draftId: string;
|
|
1678
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1704
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteDraft">;
|
|
1679
1705
|
export declare const sendDraft: (input: {
|
|
1680
1706
|
readonly id: string;
|
|
1681
1707
|
readonly draftId: string;
|
|
1682
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1708
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSendDraft">;
|
|
1683
1709
|
export declare const listActions: ((input: {
|
|
1684
1710
|
readonly id: string;
|
|
1685
1711
|
readonly limit?: number | null | undefined;
|
|
@@ -1688,7 +1714,7 @@ export declare const listActions: ((input: {
|
|
|
1688
1714
|
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1689
1715
|
readonly after?: string | undefined;
|
|
1690
1716
|
readonly before?: string | undefined;
|
|
1691
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1717
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListActions">) & {
|
|
1692
1718
|
readonly pages: (input: {
|
|
1693
1719
|
readonly id: string;
|
|
1694
1720
|
readonly limit?: number | null | undefined;
|
|
@@ -2284,15 +2310,15 @@ export declare const listActions: ((input: {
|
|
|
2284
2310
|
export declare const getAction: (input: {
|
|
2285
2311
|
readonly id: string;
|
|
2286
2312
|
readonly actionId: string;
|
|
2287
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2313
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetAction">;
|
|
2288
2314
|
export declare const cancelAction: (input: {
|
|
2289
2315
|
readonly id: string;
|
|
2290
2316
|
readonly actionId: string;
|
|
2291
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2317
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCancelAction">;
|
|
2292
2318
|
export declare const retryAction: (input: {
|
|
2293
2319
|
readonly id: string;
|
|
2294
2320
|
readonly actionId: string;
|
|
2295
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2321
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRetryAction">;
|
|
2296
2322
|
export declare const approveAction: (input: {
|
|
2297
2323
|
readonly id: string;
|
|
2298
2324
|
readonly actionId: string;
|
|
@@ -2302,20 +2328,20 @@ export declare const approveAction: (input: {
|
|
|
2302
2328
|
readonly text?: string | null | undefined;
|
|
2303
2329
|
readonly html?: string | null | undefined;
|
|
2304
2330
|
} | null | undefined;
|
|
2305
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2331
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesApproveAction">;
|
|
2306
2332
|
export declare const denyAction: (input: {
|
|
2307
2333
|
readonly id: string;
|
|
2308
2334
|
readonly actionId: string;
|
|
2309
2335
|
readonly reviewRound: number;
|
|
2310
2336
|
readonly reason: string;
|
|
2311
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2337
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDenyAction">;
|
|
2312
2338
|
export declare const listEvents: ((input: {
|
|
2313
2339
|
readonly id: string;
|
|
2314
2340
|
readonly limit?: number | null | undefined;
|
|
2315
2341
|
readonly cursor?: string | undefined;
|
|
2316
2342
|
readonly after?: string | undefined;
|
|
2317
2343
|
readonly before?: string | undefined;
|
|
2318
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2344
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListEvents">) & {
|
|
2319
2345
|
readonly pages: (input: {
|
|
2320
2346
|
readonly id: string;
|
|
2321
2347
|
readonly limit?: number | null | undefined;
|
|
@@ -2362,8 +2388,8 @@ export declare const listEvents: ((input: {
|
|
|
2362
2388
|
readonly occurredAt: string;
|
|
2363
2389
|
}, 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>;
|
|
2364
2390
|
};
|
|
2365
|
-
export declare const countSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2366
|
-
export declare const listSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2391
|
+
export declare const countSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCountSplits">;
|
|
2392
|
+
export declare const listSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListSplits">;
|
|
2367
2393
|
export declare const createSplit: (input: {
|
|
2368
2394
|
readonly name: string;
|
|
2369
2395
|
readonly filter: {
|
|
@@ -2378,7 +2404,7 @@ export declare const createSplit: (input: {
|
|
|
2378
2404
|
};
|
|
2379
2405
|
readonly mailboxId: string | null;
|
|
2380
2406
|
readonly position: number;
|
|
2381
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2407
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateSplit">;
|
|
2382
2408
|
export declare const updateSplit: (input: {
|
|
2383
2409
|
readonly splitId: string;
|
|
2384
2410
|
readonly name: string;
|
|
@@ -2394,11 +2420,11 @@ export declare const updateSplit: (input: {
|
|
|
2394
2420
|
};
|
|
2395
2421
|
readonly mailboxId: string | null;
|
|
2396
2422
|
readonly position: number;
|
|
2397
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2423
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateSplit">;
|
|
2398
2424
|
export declare const deleteSplit: (input: {
|
|
2399
2425
|
readonly splitId: string;
|
|
2400
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2426
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteSplit">;
|
|
2401
2427
|
export declare const listAddresses: (input: {
|
|
2402
2428
|
readonly id: string;
|
|
2403
2429
|
readonly recipient?: string | readonly string[] | undefined;
|
|
2404
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2430
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListAddresses">;
|