samva 0.48.0 → 0.50.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/client/sdk.gen.d.ts +272 -33
- package/dist/client/sdk.gen.js +693 -55
- package/dist/client/types.gen.d.ts +1571 -206
- 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 +11 -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 +73 -13
- package/dist/effect/descriptors/mailboxes.js +85 -13
- 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 +15 -15
- 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 +9 -11
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +1661 -669
- package/dist/effect/generated/mailboxes.js +291 -103
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +199 -21
- package/dist/effect/generated/shared.js +50 -13
- package/dist/effect/generated/template-registrations.d.ts +32 -1
- package/dist/effect/generated/template-registrations.js +8 -5
- package/dist/effect/generated/templates.d.ts +1 -4
- package/dist/effect/generated/templates.js +2 -6
- 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 +138 -18
- package/dist/effect/generated-metadata.js +366 -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 +142 -92
- package/dist/effect/mailboxes.js +20 -8
- 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 +37 -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 +105 -11
- package/package.json +3 -3
|
@@ -7,25 +7,49 @@ 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/
|
|
11
|
-
export declare const
|
|
10
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateImportUpload">;
|
|
11
|
+
export declare const signImportUploadParts: (input: {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly importId: string;
|
|
14
|
+
readonly archiveId: string;
|
|
15
|
+
readonly partNumbers: readonly number[];
|
|
16
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSignImportUploadParts">;
|
|
17
|
+
export declare const completeImportUpload: (input: {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly importId: string;
|
|
20
|
+
readonly archiveId: string;
|
|
21
|
+
readonly parts: readonly {
|
|
22
|
+
readonly partNumber: number;
|
|
23
|
+
readonly etag: string;
|
|
24
|
+
}[];
|
|
25
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCompleteImportUpload">;
|
|
26
|
+
export declare const discardImportUpload: (input: {
|
|
12
27
|
readonly id: string;
|
|
13
28
|
readonly importId: string;
|
|
14
|
-
|
|
29
|
+
readonly archiveId: string;
|
|
30
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDiscardImportUpload">;
|
|
31
|
+
export declare const discardImport: (input: {
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly importId: string;
|
|
34
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDiscardImport">;
|
|
15
35
|
export declare const getImport: (input: {
|
|
16
36
|
readonly id: string;
|
|
17
37
|
readonly importId: string;
|
|
18
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
38
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetImport">;
|
|
39
|
+
export declare const startImport: (input: {
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly importId: string;
|
|
42
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesStartImport">;
|
|
19
43
|
export declare const listImports: (input: {
|
|
20
44
|
readonly id: string;
|
|
21
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
45
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListImports">;
|
|
22
46
|
export declare const list: ((input?: {
|
|
23
47
|
readonly limit?: number | null | undefined;
|
|
24
48
|
readonly cursor?: string | undefined;
|
|
25
49
|
readonly after?: string | undefined;
|
|
26
50
|
readonly before?: string | undefined;
|
|
27
51
|
readonly namespaceId?: string | undefined;
|
|
28
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
52
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesList">) & {
|
|
29
53
|
readonly pages: (input?: {
|
|
30
54
|
readonly limit?: number | null | undefined;
|
|
31
55
|
readonly cursor?: string | undefined;
|
|
@@ -78,52 +102,52 @@ export declare const create: (input: {
|
|
|
78
102
|
readonly metadata?: {
|
|
79
103
|
readonly [x: string]: string | undefined;
|
|
80
104
|
} | null | undefined;
|
|
81
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
105
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreate">;
|
|
82
106
|
export declare const get: (input: {
|
|
83
107
|
readonly id: string;
|
|
84
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
108
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGet">;
|
|
85
109
|
export declare const update: (input: {
|
|
86
110
|
readonly id: string;
|
|
87
111
|
readonly name?: string | null | undefined;
|
|
88
112
|
readonly metadata?: {
|
|
89
113
|
readonly [x: string]: string | null | undefined;
|
|
90
114
|
} | null | undefined;
|
|
91
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
115
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdate">;
|
|
92
116
|
export declare const remove: (input: {
|
|
93
117
|
readonly id: string;
|
|
94
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
118
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRemove">;
|
|
95
119
|
export declare const createEndpoint: (input: {
|
|
96
120
|
readonly id: string;
|
|
97
121
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
98
122
|
readonly address: string;
|
|
99
123
|
readonly displayName?: string | null | undefined;
|
|
100
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
124
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateEndpoint">;
|
|
101
125
|
export declare const updateEndpoint: (input: {
|
|
102
126
|
readonly id: string;
|
|
103
127
|
readonly endpointId: string;
|
|
104
128
|
readonly displayName?: string | null | undefined;
|
|
105
129
|
readonly default?: true | null | undefined;
|
|
106
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
130
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateEndpoint">;
|
|
107
131
|
export declare const removeEndpoint: (input: {
|
|
108
132
|
readonly id: string;
|
|
109
133
|
readonly endpointId: string;
|
|
110
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
134
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRemoveEndpoint">;
|
|
111
135
|
export declare const pause: (input: {
|
|
112
136
|
readonly id: string;
|
|
113
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
137
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesPause">;
|
|
114
138
|
export declare const resume: (input: {
|
|
115
139
|
readonly id: string;
|
|
116
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
140
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesResume">;
|
|
117
141
|
export declare const getAgentActivity: (input: {
|
|
118
142
|
readonly id: string;
|
|
119
143
|
readonly after?: string | undefined;
|
|
120
144
|
readonly before?: string | undefined;
|
|
121
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
145
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetAgentActivity">;
|
|
122
146
|
export declare const listGrants: ((input: {
|
|
123
147
|
readonly id: string;
|
|
124
148
|
readonly limit?: number | null | undefined;
|
|
125
149
|
readonly cursor?: string | undefined;
|
|
126
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
150
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListGrants">) & {
|
|
127
151
|
readonly pages: (input: {
|
|
128
152
|
readonly id: string;
|
|
129
153
|
readonly limit?: number | null | undefined;
|
|
@@ -136,7 +160,7 @@ export declare const listGrants: ((input: {
|
|
|
136
160
|
readonly id: string;
|
|
137
161
|
readonly displayName?: string | null;
|
|
138
162
|
};
|
|
139
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "
|
|
163
|
+
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
164
|
readonly createdAt: string;
|
|
141
165
|
}[];
|
|
142
166
|
readonly nextCursor: string | null;
|
|
@@ -152,7 +176,7 @@ export declare const listGrants: ((input: {
|
|
|
152
176
|
readonly id: string;
|
|
153
177
|
readonly displayName?: string | null;
|
|
154
178
|
};
|
|
155
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "
|
|
179
|
+
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
180
|
readonly createdAt: string;
|
|
157
181
|
}, 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
182
|
};
|
|
@@ -160,42 +184,42 @@ export declare const createGrant: (input: {
|
|
|
160
184
|
readonly id: string;
|
|
161
185
|
readonly userId: string;
|
|
162
186
|
readonly role: "admin" | "collaborator" | "viewer";
|
|
163
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
187
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateGrant">;
|
|
164
188
|
export declare const updateGrant: (input: {
|
|
165
189
|
readonly id: string;
|
|
166
190
|
readonly grantId: string;
|
|
167
191
|
readonly role?: "admin" | "collaborator" | "viewer" | null | undefined;
|
|
168
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
192
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateGrant">;
|
|
169
193
|
export declare const revokeGrant: (input: {
|
|
170
194
|
readonly id: string;
|
|
171
195
|
readonly grantId: string;
|
|
172
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
196
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRevokeGrant">;
|
|
173
197
|
export declare const listFolders: (input: {
|
|
174
198
|
readonly id: string;
|
|
175
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
199
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListFolders">;
|
|
176
200
|
export declare const listLabels: (input: {
|
|
177
201
|
readonly id: string;
|
|
178
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
202
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListLabels">;
|
|
179
203
|
export declare const createLabel: (input: {
|
|
180
204
|
readonly id: string;
|
|
181
205
|
readonly slug: string;
|
|
182
206
|
readonly displayName: string;
|
|
183
207
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
184
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
208
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateLabel">;
|
|
185
209
|
export declare const updateLabel: (input: {
|
|
186
210
|
readonly id: string;
|
|
187
211
|
readonly labelId: string;
|
|
188
212
|
readonly displayName?: string | null | undefined;
|
|
189
213
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
190
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
214
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateLabel">;
|
|
191
215
|
export declare const deleteLabel: (input: {
|
|
192
216
|
readonly id: string;
|
|
193
217
|
readonly labelId: string;
|
|
194
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
218
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteLabel">;
|
|
195
219
|
export declare const getNeedsYou: ((input?: {
|
|
196
220
|
readonly limit?: number | null | undefined;
|
|
197
221
|
readonly cursor?: string | undefined;
|
|
198
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
222
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetNeedsYou">) & {
|
|
199
223
|
readonly pages: (input?: {
|
|
200
224
|
readonly limit?: number | null | undefined;
|
|
201
225
|
readonly cursor?: string | undefined;
|
|
@@ -573,7 +597,7 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
573
597
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
574
598
|
readonly kind?: "personal" | "shared" | undefined;
|
|
575
599
|
readonly threadId?: string | undefined;
|
|
576
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
600
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListOrganizationDrafts">) & {
|
|
577
601
|
readonly pages: (input?: {
|
|
578
602
|
readonly limit?: number | null | undefined;
|
|
579
603
|
readonly cursor?: string | undefined;
|
|
@@ -634,7 +658,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
634
658
|
readonly excludeTrash?: boolean | null | undefined;
|
|
635
659
|
readonly q?: string | undefined;
|
|
636
660
|
readonly state?: "active" | "done" | undefined;
|
|
637
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
661
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
638
662
|
readonly label?: string | undefined;
|
|
639
663
|
readonly unread?: boolean | null | undefined;
|
|
640
664
|
readonly starred?: boolean | null | undefined;
|
|
@@ -642,7 +666,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
642
666
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
643
667
|
readonly kind?: "personal" | "shared" | undefined;
|
|
644
668
|
readonly conversation?: string | undefined;
|
|
645
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
669
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListOrganizationThreads">) & {
|
|
646
670
|
readonly pages: (input?: {
|
|
647
671
|
readonly limit?: number | null | undefined;
|
|
648
672
|
readonly cursor?: string | undefined;
|
|
@@ -653,7 +677,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
653
677
|
readonly excludeTrash?: boolean | null | undefined;
|
|
654
678
|
readonly q?: string | undefined;
|
|
655
679
|
readonly state?: "active" | "done" | undefined;
|
|
656
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
680
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
657
681
|
readonly label?: string | undefined;
|
|
658
682
|
readonly unread?: boolean | null | undefined;
|
|
659
683
|
readonly starred?: boolean | null | undefined;
|
|
@@ -666,6 +690,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
666
690
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
667
691
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
668
692
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
693
|
+
readonly deliveredTo: string | null;
|
|
669
694
|
readonly subject: string | null;
|
|
670
695
|
readonly preview: string | null;
|
|
671
696
|
readonly from: {
|
|
@@ -675,7 +700,11 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
675
700
|
readonly messageCount: number;
|
|
676
701
|
readonly hasAttachments: boolean;
|
|
677
702
|
readonly hasDraft: boolean;
|
|
678
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
703
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
704
|
+
readonly spam?: {
|
|
705
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
706
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
707
|
+
};
|
|
679
708
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
680
709
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
681
710
|
readonly read: boolean;
|
|
@@ -709,7 +738,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
709
738
|
readonly excludeTrash?: boolean | null | undefined;
|
|
710
739
|
readonly q?: string | undefined;
|
|
711
740
|
readonly state?: "active" | "done" | undefined;
|
|
712
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
741
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
713
742
|
readonly label?: string | undefined;
|
|
714
743
|
readonly unread?: boolean | null | undefined;
|
|
715
744
|
readonly starred?: boolean | null | undefined;
|
|
@@ -721,6 +750,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
721
750
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
722
751
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
723
752
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
753
|
+
readonly deliveredTo: string | null;
|
|
724
754
|
readonly subject: string | null;
|
|
725
755
|
readonly preview: string | null;
|
|
726
756
|
readonly from: {
|
|
@@ -730,7 +760,11 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
730
760
|
readonly messageCount: number;
|
|
731
761
|
readonly hasAttachments: boolean;
|
|
732
762
|
readonly hasDraft: boolean;
|
|
733
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
763
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
764
|
+
readonly spam?: {
|
|
765
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
766
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
767
|
+
};
|
|
734
768
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
735
769
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
736
770
|
readonly read: boolean;
|
|
@@ -764,12 +798,12 @@ export declare const listThreads: ((input: {
|
|
|
764
798
|
readonly excludeTrash?: boolean | null | undefined;
|
|
765
799
|
readonly q?: string | undefined;
|
|
766
800
|
readonly state?: "active" | "done" | undefined;
|
|
767
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
801
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
768
802
|
readonly label?: string | undefined;
|
|
769
803
|
readonly unread?: boolean | null | undefined;
|
|
770
804
|
readonly starred?: boolean | null | undefined;
|
|
771
805
|
readonly snoozed?: boolean | null | undefined;
|
|
772
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
806
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreads">) & {
|
|
773
807
|
readonly pages: (input: {
|
|
774
808
|
readonly id: string;
|
|
775
809
|
readonly limit?: number | null | undefined;
|
|
@@ -781,7 +815,7 @@ export declare const listThreads: ((input: {
|
|
|
781
815
|
readonly excludeTrash?: boolean | null | undefined;
|
|
782
816
|
readonly q?: string | undefined;
|
|
783
817
|
readonly state?: "active" | "done" | undefined;
|
|
784
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
818
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
785
819
|
readonly label?: string | undefined;
|
|
786
820
|
readonly unread?: boolean | null | undefined;
|
|
787
821
|
readonly starred?: boolean | null | undefined;
|
|
@@ -791,6 +825,7 @@ export declare const listThreads: ((input: {
|
|
|
791
825
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
792
826
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
793
827
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
828
|
+
readonly deliveredTo: string | null;
|
|
794
829
|
readonly subject: string | null;
|
|
795
830
|
readonly preview: string | null;
|
|
796
831
|
readonly from: {
|
|
@@ -800,7 +835,11 @@ export declare const listThreads: ((input: {
|
|
|
800
835
|
readonly messageCount: number;
|
|
801
836
|
readonly hasAttachments: boolean;
|
|
802
837
|
readonly hasDraft: boolean;
|
|
803
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
838
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
839
|
+
readonly spam?: {
|
|
840
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
841
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
842
|
+
};
|
|
804
843
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
805
844
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
806
845
|
readonly read: boolean;
|
|
@@ -830,7 +869,7 @@ export declare const listThreads: ((input: {
|
|
|
830
869
|
readonly excludeTrash?: boolean | null | undefined;
|
|
831
870
|
readonly q?: string | undefined;
|
|
832
871
|
readonly state?: "active" | "done" | undefined;
|
|
833
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
872
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | undefined;
|
|
834
873
|
readonly label?: string | undefined;
|
|
835
874
|
readonly unread?: boolean | null | undefined;
|
|
836
875
|
readonly starred?: boolean | null | undefined;
|
|
@@ -839,6 +878,7 @@ export declare const listThreads: ((input: {
|
|
|
839
878
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
840
879
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
841
880
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
881
|
+
readonly deliveredTo: string | null;
|
|
842
882
|
readonly subject: string | null;
|
|
843
883
|
readonly preview: string | null;
|
|
844
884
|
readonly from: {
|
|
@@ -848,7 +888,11 @@ export declare const listThreads: ((input: {
|
|
|
848
888
|
readonly messageCount: number;
|
|
849
889
|
readonly hasAttachments: boolean;
|
|
850
890
|
readonly hasDraft: boolean;
|
|
851
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
891
|
+
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash";
|
|
892
|
+
readonly spam?: {
|
|
893
|
+
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned" | null;
|
|
894
|
+
readonly source: "classifier" | "reader" | "receipt";
|
|
895
|
+
};
|
|
852
896
|
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
853
897
|
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
854
898
|
readonly read: boolean;
|
|
@@ -869,11 +913,11 @@ export declare const listThreads: ((input: {
|
|
|
869
913
|
export declare const getThread: (input: {
|
|
870
914
|
readonly id: string;
|
|
871
915
|
readonly threadId: string;
|
|
872
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
916
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetThread">;
|
|
873
917
|
export declare const updateThread: (input: {
|
|
874
918
|
readonly id: string;
|
|
875
919
|
readonly threadId: string;
|
|
876
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | null | undefined;
|
|
920
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "spam" | "trash" | null | undefined;
|
|
877
921
|
readonly priority?: "high" | "low" | "normal" | "urgent" | null | undefined;
|
|
878
922
|
readonly done?: boolean | null | undefined;
|
|
879
923
|
readonly closed?: boolean | null | undefined;
|
|
@@ -882,23 +926,33 @@ export declare const updateThread: (input: {
|
|
|
882
926
|
readonly snoozedUntil?: string | null | undefined;
|
|
883
927
|
readonly ifNoReply?: boolean | undefined;
|
|
884
928
|
readonly reminderInboxAt?: string | null | undefined;
|
|
885
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
929
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateThread">;
|
|
930
|
+
export declare const deleteThread: (input: {
|
|
931
|
+
readonly id: string;
|
|
932
|
+
readonly threadId: string;
|
|
933
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteThread">;
|
|
934
|
+
export declare const emptyTrash: (input: {
|
|
935
|
+
readonly id: string;
|
|
936
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesEmptyTrash">;
|
|
937
|
+
export declare const emptySpam: (input: {
|
|
938
|
+
readonly id: string;
|
|
939
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesEmptySpam">;
|
|
886
940
|
export declare const addThreadLabels: (input: {
|
|
887
941
|
readonly id: string;
|
|
888
942
|
readonly threadId: string;
|
|
889
943
|
readonly labels: readonly string[];
|
|
890
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
944
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesAddThreadLabels">;
|
|
891
945
|
export declare const removeThreadLabels: (input: {
|
|
892
946
|
readonly id: string;
|
|
893
947
|
readonly threadId: string;
|
|
894
948
|
readonly labels: readonly string[];
|
|
895
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
949
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRemoveThreadLabels">;
|
|
896
950
|
export declare const listThreadMessages: ((input: {
|
|
897
951
|
readonly id: string;
|
|
898
952
|
readonly threadId: string;
|
|
899
953
|
readonly limit?: number | null | undefined;
|
|
900
954
|
readonly cursor?: string | undefined;
|
|
901
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
955
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreadMessages">) & {
|
|
902
956
|
readonly pages: (input: {
|
|
903
957
|
readonly id: string;
|
|
904
958
|
readonly threadId: string;
|
|
@@ -964,7 +1018,7 @@ export declare const getThreadContent: ((input: {
|
|
|
964
1018
|
readonly threadId: string;
|
|
965
1019
|
readonly limit?: number | null | undefined;
|
|
966
1020
|
readonly cursor?: string | undefined;
|
|
967
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1021
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetThreadContent">) & {
|
|
968
1022
|
readonly pages: (input: {
|
|
969
1023
|
readonly id: string;
|
|
970
1024
|
readonly threadId: string;
|
|
@@ -1178,7 +1232,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
1178
1232
|
readonly threadId: string;
|
|
1179
1233
|
readonly limit?: number | null | undefined;
|
|
1180
1234
|
readonly cursor?: string | undefined;
|
|
1181
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1235
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreadNotes">) & {
|
|
1182
1236
|
readonly pages: (input: {
|
|
1183
1237
|
readonly id: string;
|
|
1184
1238
|
readonly threadId: string;
|
|
@@ -1225,7 +1279,7 @@ export declare const createNote: (input: {
|
|
|
1225
1279
|
readonly body: string;
|
|
1226
1280
|
readonly color?: string | null | undefined;
|
|
1227
1281
|
readonly pinned?: boolean | null | undefined;
|
|
1228
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1282
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateNote">;
|
|
1229
1283
|
export declare const updateNote: (input: {
|
|
1230
1284
|
readonly id: string;
|
|
1231
1285
|
readonly threadId: string;
|
|
@@ -1233,12 +1287,12 @@ export declare const updateNote: (input: {
|
|
|
1233
1287
|
readonly body?: string | null | undefined;
|
|
1234
1288
|
readonly color?: string | null | undefined;
|
|
1235
1289
|
readonly pinned?: boolean | null | undefined;
|
|
1236
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1290
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateNote">;
|
|
1237
1291
|
export declare const deleteNote: (input: {
|
|
1238
1292
|
readonly id: string;
|
|
1239
1293
|
readonly threadId: string;
|
|
1240
1294
|
readonly noteId: string;
|
|
1241
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1295
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteNote">;
|
|
1242
1296
|
export declare const sendMessage: (input: {
|
|
1243
1297
|
readonly channel?: "email" | null | undefined;
|
|
1244
1298
|
readonly to: readonly string[];
|
|
@@ -1289,25 +1343,25 @@ export declare const sendMessage: (input: {
|
|
|
1289
1343
|
} | null | undefined;
|
|
1290
1344
|
} | null | undefined;
|
|
1291
1345
|
readonly id: string;
|
|
1292
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1346
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSendMessage">;
|
|
1293
1347
|
export declare const getMessage: (input: {
|
|
1294
1348
|
readonly id: string;
|
|
1295
1349
|
readonly messageId: string;
|
|
1296
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1350
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetMessage">;
|
|
1297
1351
|
export declare const getMessageRaw: (input: {
|
|
1298
1352
|
readonly id: string;
|
|
1299
1353
|
readonly messageId: string;
|
|
1300
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1354
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetMessageRaw">;
|
|
1301
1355
|
export declare const getMessageAttachment: (input: {
|
|
1302
1356
|
readonly id: string;
|
|
1303
1357
|
readonly messageId: string;
|
|
1304
1358
|
readonly attachmentId: string;
|
|
1305
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1359
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetMessageAttachment">;
|
|
1306
1360
|
export declare const copyMessageAttachment: (input: {
|
|
1307
1361
|
readonly id: string;
|
|
1308
1362
|
readonly messageId: string;
|
|
1309
1363
|
readonly attachmentId: string;
|
|
1310
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1364
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
1311
1365
|
export declare const reply: (input: {
|
|
1312
1366
|
readonly channel?: "email" | null | undefined;
|
|
1313
1367
|
readonly cc?: readonly string[] | null | undefined;
|
|
@@ -1356,7 +1410,7 @@ export declare const reply: (input: {
|
|
|
1356
1410
|
} | null | undefined;
|
|
1357
1411
|
readonly id: string;
|
|
1358
1412
|
readonly messageId: string;
|
|
1359
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1413
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesReply">;
|
|
1360
1414
|
export declare const replyAll: (input: {
|
|
1361
1415
|
readonly channel?: "email" | null | undefined;
|
|
1362
1416
|
readonly cc?: readonly string[] | null | undefined;
|
|
@@ -1405,7 +1459,7 @@ export declare const replyAll: (input: {
|
|
|
1405
1459
|
} | null | undefined;
|
|
1406
1460
|
readonly id: string;
|
|
1407
1461
|
readonly messageId: string;
|
|
1408
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1462
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesReplyAll">;
|
|
1409
1463
|
export declare const forward: (input: {
|
|
1410
1464
|
readonly id: string;
|
|
1411
1465
|
readonly messageId: string;
|
|
@@ -1421,14 +1475,14 @@ export declare const forward: (input: {
|
|
|
1421
1475
|
readonly contentType: string;
|
|
1422
1476
|
readonly size: number;
|
|
1423
1477
|
}[] | null | undefined;
|
|
1424
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1425
|
-
export declare const
|
|
1478
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesForward">;
|
|
1479
|
+
export declare const listSpamHeld: ((input: {
|
|
1426
1480
|
readonly id: string;
|
|
1427
1481
|
readonly limit?: number | null | undefined;
|
|
1428
1482
|
readonly cursor?: string | undefined;
|
|
1429
1483
|
readonly after?: string | undefined;
|
|
1430
1484
|
readonly before?: string | undefined;
|
|
1431
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1485
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListSpamHeld">) & {
|
|
1432
1486
|
readonly pages: (input: {
|
|
1433
1487
|
readonly id: string;
|
|
1434
1488
|
readonly limit?: number | null | undefined;
|
|
@@ -1477,14 +1531,10 @@ export declare const listQuarantine: ((input: {
|
|
|
1477
1531
|
readonly discardedAt: string | null;
|
|
1478
1532
|
}, 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
1533
|
};
|
|
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: {
|
|
1534
|
+
export declare const discardSpamHeld: (input: {
|
|
1485
1535
|
readonly id: string;
|
|
1486
1536
|
readonly messageId: string;
|
|
1487
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1537
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDiscardSpamHeld">;
|
|
1488
1538
|
export declare const scheduleDraft: (input: {
|
|
1489
1539
|
readonly id: string;
|
|
1490
1540
|
readonly draftId: string;
|
|
@@ -1492,7 +1542,7 @@ export declare const scheduleDraft: (input: {
|
|
|
1492
1542
|
readonly base: string;
|
|
1493
1543
|
readonly draftRevision: number;
|
|
1494
1544
|
readonly sendAt: string;
|
|
1495
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1545
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesScheduleDraft">;
|
|
1496
1546
|
export declare const rescheduleSend: (input: {
|
|
1497
1547
|
readonly id: string;
|
|
1498
1548
|
readonly outboxId: string;
|
|
@@ -1500,26 +1550,26 @@ export declare const rescheduleSend: (input: {
|
|
|
1500
1550
|
readonly base: string;
|
|
1501
1551
|
readonly expectedRevision: number;
|
|
1502
1552
|
readonly sendAt: string;
|
|
1503
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1553
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRescheduleSend">;
|
|
1504
1554
|
export declare const unscheduleSend: (input: {
|
|
1505
1555
|
readonly id: string;
|
|
1506
1556
|
readonly outboxId: string;
|
|
1507
1557
|
readonly idempotencyKey: string;
|
|
1508
1558
|
readonly base: string;
|
|
1509
1559
|
readonly expectedRevision: number;
|
|
1510
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1560
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUnscheduleSend">;
|
|
1511
1561
|
export declare const sendScheduledNow: (input: {
|
|
1512
1562
|
readonly id: string;
|
|
1513
1563
|
readonly outboxId: string;
|
|
1514
1564
|
readonly idempotencyKey: string;
|
|
1515
1565
|
readonly base: string;
|
|
1516
1566
|
readonly expectedRevision: number;
|
|
1517
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1567
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSendScheduledNow">;
|
|
1518
1568
|
export declare const listScheduledSends: ((input: {
|
|
1519
1569
|
readonly id: string;
|
|
1520
1570
|
readonly limit?: number | null | undefined;
|
|
1521
1571
|
readonly cursor?: string | undefined;
|
|
1522
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1572
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListScheduledSends">) & {
|
|
1523
1573
|
readonly pages: (input: {
|
|
1524
1574
|
readonly id: string;
|
|
1525
1575
|
readonly limit?: number | null | undefined;
|
|
@@ -1585,7 +1635,7 @@ export declare const listDrafts: ((input: {
|
|
|
1585
1635
|
readonly limit?: number | null | undefined;
|
|
1586
1636
|
readonly cursor?: string | undefined;
|
|
1587
1637
|
readonly threadId?: string | undefined;
|
|
1588
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1638
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListDrafts">) & {
|
|
1589
1639
|
readonly pages: (input: {
|
|
1590
1640
|
readonly id: string;
|
|
1591
1641
|
readonly limit?: number | null | undefined;
|
|
@@ -1649,11 +1699,11 @@ export declare const createDraft: (input: {
|
|
|
1649
1699
|
readonly text?: string | null | undefined;
|
|
1650
1700
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1651
1701
|
readonly id: string;
|
|
1652
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1702
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateDraft">;
|
|
1653
1703
|
export declare const getDraft: (input: {
|
|
1654
1704
|
readonly id: string;
|
|
1655
1705
|
readonly draftId: string;
|
|
1656
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1706
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetDraft">;
|
|
1657
1707
|
export declare const updateDraft: (input: {
|
|
1658
1708
|
readonly id: string;
|
|
1659
1709
|
readonly draftId: string;
|
|
@@ -1671,15 +1721,15 @@ export declare const updateDraft: (input: {
|
|
|
1671
1721
|
readonly contentType: string;
|
|
1672
1722
|
readonly size: number;
|
|
1673
1723
|
}[] | null | undefined;
|
|
1674
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1724
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateDraft">;
|
|
1675
1725
|
export declare const deleteDraft: (input: {
|
|
1676
1726
|
readonly id: string;
|
|
1677
1727
|
readonly draftId: string;
|
|
1678
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1728
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteDraft">;
|
|
1679
1729
|
export declare const sendDraft: (input: {
|
|
1680
1730
|
readonly id: string;
|
|
1681
1731
|
readonly draftId: string;
|
|
1682
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1732
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesSendDraft">;
|
|
1683
1733
|
export declare const listActions: ((input: {
|
|
1684
1734
|
readonly id: string;
|
|
1685
1735
|
readonly limit?: number | null | undefined;
|
|
@@ -1688,7 +1738,7 @@ export declare const listActions: ((input: {
|
|
|
1688
1738
|
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1689
1739
|
readonly after?: string | undefined;
|
|
1690
1740
|
readonly before?: string | undefined;
|
|
1691
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1741
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListActions">) & {
|
|
1692
1742
|
readonly pages: (input: {
|
|
1693
1743
|
readonly id: string;
|
|
1694
1744
|
readonly limit?: number | null | undefined;
|
|
@@ -2284,15 +2334,15 @@ export declare const listActions: ((input: {
|
|
|
2284
2334
|
export declare const getAction: (input: {
|
|
2285
2335
|
readonly id: string;
|
|
2286
2336
|
readonly actionId: string;
|
|
2287
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2337
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesGetAction">;
|
|
2288
2338
|
export declare const cancelAction: (input: {
|
|
2289
2339
|
readonly id: string;
|
|
2290
2340
|
readonly actionId: string;
|
|
2291
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2341
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCancelAction">;
|
|
2292
2342
|
export declare const retryAction: (input: {
|
|
2293
2343
|
readonly id: string;
|
|
2294
2344
|
readonly actionId: string;
|
|
2295
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2345
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesRetryAction">;
|
|
2296
2346
|
export declare const approveAction: (input: {
|
|
2297
2347
|
readonly id: string;
|
|
2298
2348
|
readonly actionId: string;
|
|
@@ -2302,20 +2352,20 @@ export declare const approveAction: (input: {
|
|
|
2302
2352
|
readonly text?: string | null | undefined;
|
|
2303
2353
|
readonly html?: string | null | undefined;
|
|
2304
2354
|
} | null | undefined;
|
|
2305
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2355
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesApproveAction">;
|
|
2306
2356
|
export declare const denyAction: (input: {
|
|
2307
2357
|
readonly id: string;
|
|
2308
2358
|
readonly actionId: string;
|
|
2309
2359
|
readonly reviewRound: number;
|
|
2310
2360
|
readonly reason: string;
|
|
2311
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2361
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDenyAction">;
|
|
2312
2362
|
export declare const listEvents: ((input: {
|
|
2313
2363
|
readonly id: string;
|
|
2314
2364
|
readonly limit?: number | null | undefined;
|
|
2315
2365
|
readonly cursor?: string | undefined;
|
|
2316
2366
|
readonly after?: string | undefined;
|
|
2317
2367
|
readonly before?: string | undefined;
|
|
2318
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2368
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListEvents">) & {
|
|
2319
2369
|
readonly pages: (input: {
|
|
2320
2370
|
readonly id: string;
|
|
2321
2371
|
readonly limit?: number | null | undefined;
|
|
@@ -2362,8 +2412,8 @@ export declare const listEvents: ((input: {
|
|
|
2362
2412
|
readonly occurredAt: string;
|
|
2363
2413
|
}, 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
2414
|
};
|
|
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/
|
|
2415
|
+
export declare const countSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCountSplits">;
|
|
2416
|
+
export declare const listSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListSplits">;
|
|
2367
2417
|
export declare const createSplit: (input: {
|
|
2368
2418
|
readonly name: string;
|
|
2369
2419
|
readonly filter: {
|
|
@@ -2378,7 +2428,7 @@ export declare const createSplit: (input: {
|
|
|
2378
2428
|
};
|
|
2379
2429
|
readonly mailboxId: string | null;
|
|
2380
2430
|
readonly position: number;
|
|
2381
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2431
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateSplit">;
|
|
2382
2432
|
export declare const updateSplit: (input: {
|
|
2383
2433
|
readonly splitId: string;
|
|
2384
2434
|
readonly name: string;
|
|
@@ -2394,11 +2444,11 @@ export declare const updateSplit: (input: {
|
|
|
2394
2444
|
};
|
|
2395
2445
|
readonly mailboxId: string | null;
|
|
2396
2446
|
readonly position: number;
|
|
2397
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2447
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesUpdateSplit">;
|
|
2398
2448
|
export declare const deleteSplit: (input: {
|
|
2399
2449
|
readonly splitId: string;
|
|
2400
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2450
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesDeleteSplit">;
|
|
2401
2451
|
export declare const listAddresses: (input: {
|
|
2402
2452
|
readonly id: string;
|
|
2403
2453
|
readonly recipient?: string | readonly string[] | undefined;
|
|
2404
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2454
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListAddresses">;
|