samva 0.34.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -2,15 +2,15 @@ export { events } from "./internal/mailbox-events";
|
|
|
2
2
|
export { type MailboxEvent, MailboxEventStreamError, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventType, } from "../mailbox-events";
|
|
3
3
|
export declare const list: ((input?: {
|
|
4
4
|
readonly limit?: number | null | undefined;
|
|
5
|
-
readonly cursor?: string |
|
|
6
|
-
readonly after?: string |
|
|
7
|
-
readonly before?: string |
|
|
5
|
+
readonly cursor?: string | undefined;
|
|
6
|
+
readonly after?: string | undefined;
|
|
7
|
+
readonly before?: string | undefined;
|
|
8
8
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesList">) & {
|
|
9
9
|
readonly pages: (input?: {
|
|
10
10
|
readonly limit?: number | null | undefined;
|
|
11
|
-
readonly cursor?: string |
|
|
12
|
-
readonly after?: string |
|
|
13
|
-
readonly before?: string |
|
|
11
|
+
readonly cursor?: string | undefined;
|
|
12
|
+
readonly after?: string | undefined;
|
|
13
|
+
readonly before?: string | undefined;
|
|
14
14
|
} | undefined) => import("effect/Stream").Stream<{
|
|
15
15
|
readonly items: readonly {
|
|
16
16
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -24,12 +24,12 @@ export declare const list: ((input?: {
|
|
|
24
24
|
readonly createdAt: string;
|
|
25
25
|
}[];
|
|
26
26
|
readonly nextCursor: string | null;
|
|
27
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
27
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
28
28
|
readonly items: (input?: {
|
|
29
29
|
readonly limit?: number | null | undefined;
|
|
30
|
-
readonly cursor?: string |
|
|
31
|
-
readonly after?: string |
|
|
32
|
-
readonly before?: string |
|
|
30
|
+
readonly cursor?: string | undefined;
|
|
31
|
+
readonly after?: string | undefined;
|
|
32
|
+
readonly before?: string | undefined;
|
|
33
33
|
} | undefined) => import("effect/Stream").Stream<{
|
|
34
34
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
35
35
|
readonly kind: "personal" | "shared";
|
|
@@ -40,12 +40,12 @@ export declare const list: ((input?: {
|
|
|
40
40
|
readonly status: "active" | "paused";
|
|
41
41
|
readonly primaryAddress: string | null;
|
|
42
42
|
readonly createdAt: string;
|
|
43
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
43
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
44
44
|
};
|
|
45
45
|
export declare const create: (input: {
|
|
46
46
|
readonly namespaceId?: string | null | undefined;
|
|
47
47
|
readonly endpoint: {
|
|
48
|
-
readonly channel: "email";
|
|
48
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
49
49
|
readonly address: string;
|
|
50
50
|
readonly displayName?: string | null | undefined;
|
|
51
51
|
};
|
|
@@ -70,7 +70,7 @@ export declare const remove: (input: {
|
|
|
70
70
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRemove">;
|
|
71
71
|
export declare const createEndpoint: (input: {
|
|
72
72
|
readonly id: string;
|
|
73
|
-
readonly channel: "email";
|
|
73
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
74
74
|
readonly address: string;
|
|
75
75
|
readonly displayName?: string | null | undefined;
|
|
76
76
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateEndpoint">;
|
|
@@ -92,18 +92,18 @@ export declare const resume: (input: {
|
|
|
92
92
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesResume">;
|
|
93
93
|
export declare const getAgentActivity: (input: {
|
|
94
94
|
readonly id: string;
|
|
95
|
-
readonly after?: string |
|
|
96
|
-
readonly before?: string |
|
|
95
|
+
readonly after?: string | undefined;
|
|
96
|
+
readonly before?: string | undefined;
|
|
97
97
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetAgentActivity">;
|
|
98
98
|
export declare const listGrants: ((input: {
|
|
99
99
|
readonly id: string;
|
|
100
100
|
readonly limit?: number | null | undefined;
|
|
101
|
-
readonly cursor?: string |
|
|
101
|
+
readonly cursor?: string | undefined;
|
|
102
102
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListGrants">) & {
|
|
103
103
|
readonly pages: (input: {
|
|
104
104
|
readonly id: string;
|
|
105
105
|
readonly limit?: number | null | undefined;
|
|
106
|
-
readonly cursor?: string |
|
|
106
|
+
readonly cursor?: string | undefined;
|
|
107
107
|
}) => import("effect/Stream").Stream<{
|
|
108
108
|
readonly items: readonly {
|
|
109
109
|
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
@@ -117,11 +117,11 @@ export declare const listGrants: ((input: {
|
|
|
117
117
|
readonly createdAt: string;
|
|
118
118
|
}[];
|
|
119
119
|
readonly nextCursor: string | null;
|
|
120
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
120
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
121
121
|
readonly items: (input: {
|
|
122
122
|
readonly id: string;
|
|
123
123
|
readonly limit?: number | null | undefined;
|
|
124
|
-
readonly cursor?: string |
|
|
124
|
+
readonly cursor?: string | undefined;
|
|
125
125
|
}) => import("effect/Stream").Stream<{
|
|
126
126
|
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
127
127
|
readonly actor: {
|
|
@@ -132,7 +132,7 @@ export declare const listGrants: ((input: {
|
|
|
132
132
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
133
133
|
readonly sendMode: "approval" | "send";
|
|
134
134
|
readonly createdAt: string;
|
|
135
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
135
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
136
136
|
};
|
|
137
137
|
export declare const createGrant: (input: {
|
|
138
138
|
readonly id: string;
|
|
@@ -201,13 +201,13 @@ export declare const deleteLabel: (input: {
|
|
|
201
201
|
export declare const listThreads: ((input: {
|
|
202
202
|
readonly id: string;
|
|
203
203
|
readonly limit?: number | null | undefined;
|
|
204
|
-
readonly cursor?: string |
|
|
205
|
-
readonly after?: string |
|
|
206
|
-
readonly before?: string |
|
|
207
|
-
readonly q?: string |
|
|
208
|
-
readonly state?: "active" | "done" |
|
|
209
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
210
|
-
readonly label?: string |
|
|
204
|
+
readonly cursor?: string | undefined;
|
|
205
|
+
readonly after?: string | undefined;
|
|
206
|
+
readonly before?: string | undefined;
|
|
207
|
+
readonly q?: string | undefined;
|
|
208
|
+
readonly state?: "active" | "done" | undefined;
|
|
209
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
210
|
+
readonly label?: string | undefined;
|
|
211
211
|
readonly unread?: boolean | null | undefined;
|
|
212
212
|
readonly starred?: boolean | null | undefined;
|
|
213
213
|
readonly snoozed?: boolean | null | undefined;
|
|
@@ -215,20 +215,20 @@ export declare const listThreads: ((input: {
|
|
|
215
215
|
readonly pages: (input: {
|
|
216
216
|
readonly id: string;
|
|
217
217
|
readonly limit?: number | null | undefined;
|
|
218
|
-
readonly cursor?: string |
|
|
219
|
-
readonly after?: string |
|
|
220
|
-
readonly before?: string |
|
|
221
|
-
readonly q?: string |
|
|
222
|
-
readonly state?: "active" | "done" |
|
|
223
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
224
|
-
readonly label?: string |
|
|
218
|
+
readonly cursor?: string | undefined;
|
|
219
|
+
readonly after?: string | undefined;
|
|
220
|
+
readonly before?: string | undefined;
|
|
221
|
+
readonly q?: string | undefined;
|
|
222
|
+
readonly state?: "active" | "done" | undefined;
|
|
223
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
224
|
+
readonly label?: string | undefined;
|
|
225
225
|
readonly unread?: boolean | null | undefined;
|
|
226
226
|
readonly starred?: boolean | null | undefined;
|
|
227
227
|
readonly snoozed?: boolean | null | undefined;
|
|
228
228
|
}) => import("effect/Stream").Stream<{
|
|
229
229
|
readonly items: readonly {
|
|
230
230
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
231
|
-
readonly channel: "email";
|
|
231
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
232
232
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
233
233
|
readonly subject: string | null;
|
|
234
234
|
readonly preview: string | null;
|
|
@@ -255,23 +255,23 @@ export declare const listThreads: ((input: {
|
|
|
255
255
|
readonly lastActivityAt: string;
|
|
256
256
|
}[];
|
|
257
257
|
readonly nextCursor: string | null;
|
|
258
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
258
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
259
259
|
readonly items: (input: {
|
|
260
260
|
readonly id: string;
|
|
261
261
|
readonly limit?: number | null | undefined;
|
|
262
|
-
readonly cursor?: string |
|
|
263
|
-
readonly after?: string |
|
|
264
|
-
readonly before?: string |
|
|
265
|
-
readonly q?: string |
|
|
266
|
-
readonly state?: "active" | "done" |
|
|
267
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
268
|
-
readonly label?: string |
|
|
262
|
+
readonly cursor?: string | undefined;
|
|
263
|
+
readonly after?: string | undefined;
|
|
264
|
+
readonly before?: string | undefined;
|
|
265
|
+
readonly q?: string | undefined;
|
|
266
|
+
readonly state?: "active" | "done" | undefined;
|
|
267
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
268
|
+
readonly label?: string | undefined;
|
|
269
269
|
readonly unread?: boolean | null | undefined;
|
|
270
270
|
readonly starred?: boolean | null | undefined;
|
|
271
271
|
readonly snoozed?: boolean | null | undefined;
|
|
272
272
|
}) => import("effect/Stream").Stream<{
|
|
273
273
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
274
|
-
readonly channel: "email";
|
|
274
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
275
275
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
276
276
|
readonly subject: string | null;
|
|
277
277
|
readonly preview: string | null;
|
|
@@ -296,43 +296,43 @@ export declare const listThreads: ((input: {
|
|
|
296
296
|
readonly displayName?: string | null;
|
|
297
297
|
} | null;
|
|
298
298
|
readonly lastActivityAt: string;
|
|
299
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
299
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
300
300
|
};
|
|
301
301
|
export declare const listOrganizationThreads: ((input?: {
|
|
302
302
|
readonly limit?: number | null | undefined;
|
|
303
|
-
readonly cursor?: string |
|
|
304
|
-
readonly after?: string |
|
|
305
|
-
readonly before?: string |
|
|
306
|
-
readonly q?: string |
|
|
307
|
-
readonly state?: "active" | "done" |
|
|
308
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
309
|
-
readonly label?: string |
|
|
303
|
+
readonly cursor?: string | undefined;
|
|
304
|
+
readonly after?: string | undefined;
|
|
305
|
+
readonly before?: string | undefined;
|
|
306
|
+
readonly q?: string | undefined;
|
|
307
|
+
readonly state?: "active" | "done" | undefined;
|
|
308
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
309
|
+
readonly label?: string | undefined;
|
|
310
310
|
readonly unread?: boolean | null | undefined;
|
|
311
311
|
readonly starred?: boolean | null | undefined;
|
|
312
312
|
readonly snoozed?: boolean | null | undefined;
|
|
313
|
-
readonly mailboxId?: string | readonly string[] |
|
|
314
|
-
readonly kind?: "personal" | "shared" |
|
|
315
|
-
readonly conversation?: string |
|
|
313
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
314
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
315
|
+
readonly conversation?: string | undefined;
|
|
316
316
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListOrganizationThreads">) & {
|
|
317
317
|
readonly pages: (input?: {
|
|
318
318
|
readonly limit?: number | null | undefined;
|
|
319
|
-
readonly cursor?: string |
|
|
320
|
-
readonly after?: string |
|
|
321
|
-
readonly before?: string |
|
|
322
|
-
readonly q?: string |
|
|
323
|
-
readonly state?: "active" | "done" |
|
|
324
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
325
|
-
readonly label?: string |
|
|
319
|
+
readonly cursor?: string | undefined;
|
|
320
|
+
readonly after?: string | undefined;
|
|
321
|
+
readonly before?: string | undefined;
|
|
322
|
+
readonly q?: string | undefined;
|
|
323
|
+
readonly state?: "active" | "done" | undefined;
|
|
324
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
325
|
+
readonly label?: string | undefined;
|
|
326
326
|
readonly unread?: boolean | null | undefined;
|
|
327
327
|
readonly starred?: boolean | null | undefined;
|
|
328
328
|
readonly snoozed?: boolean | null | undefined;
|
|
329
|
-
readonly mailboxId?: string | readonly string[] |
|
|
330
|
-
readonly kind?: "personal" | "shared" |
|
|
331
|
-
readonly conversation?: string |
|
|
329
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
330
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
331
|
+
readonly conversation?: string | undefined;
|
|
332
332
|
} | undefined) => import("effect/Stream").Stream<{
|
|
333
333
|
readonly items: readonly {
|
|
334
334
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
335
|
-
readonly channel: "email";
|
|
335
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
336
336
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
337
337
|
readonly subject: string | null;
|
|
338
338
|
readonly preview: string | null;
|
|
@@ -364,25 +364,25 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
364
364
|
};
|
|
365
365
|
}[];
|
|
366
366
|
readonly nextCursor: string | null;
|
|
367
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
367
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
368
368
|
readonly items: (input?: {
|
|
369
369
|
readonly limit?: number | null | undefined;
|
|
370
|
-
readonly cursor?: string |
|
|
371
|
-
readonly after?: string |
|
|
372
|
-
readonly before?: string |
|
|
373
|
-
readonly q?: string |
|
|
374
|
-
readonly state?: "active" | "done" |
|
|
375
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
376
|
-
readonly label?: string |
|
|
370
|
+
readonly cursor?: string | undefined;
|
|
371
|
+
readonly after?: string | undefined;
|
|
372
|
+
readonly before?: string | undefined;
|
|
373
|
+
readonly q?: string | undefined;
|
|
374
|
+
readonly state?: "active" | "done" | undefined;
|
|
375
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
376
|
+
readonly label?: string | undefined;
|
|
377
377
|
readonly unread?: boolean | null | undefined;
|
|
378
378
|
readonly starred?: boolean | null | undefined;
|
|
379
379
|
readonly snoozed?: boolean | null | undefined;
|
|
380
|
-
readonly mailboxId?: string | readonly string[] |
|
|
381
|
-
readonly kind?: "personal" | "shared" |
|
|
382
|
-
readonly conversation?: string |
|
|
380
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
381
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
382
|
+
readonly conversation?: string | undefined;
|
|
383
383
|
} | undefined) => import("effect/Stream").Stream<{
|
|
384
384
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
385
|
-
readonly channel: "email";
|
|
385
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
386
386
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
387
387
|
readonly subject: string | null;
|
|
388
388
|
readonly preview: string | null;
|
|
@@ -412,15 +412,15 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
412
412
|
readonly address: string | null;
|
|
413
413
|
readonly kind: "personal" | "shared";
|
|
414
414
|
};
|
|
415
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
415
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
416
416
|
};
|
|
417
417
|
export declare const getNeedsYou: ((input?: {
|
|
418
418
|
readonly limit?: number | null | undefined;
|
|
419
|
-
readonly cursor?: string |
|
|
419
|
+
readonly cursor?: string | undefined;
|
|
420
420
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetNeedsYou">) & {
|
|
421
421
|
readonly pages: (input?: {
|
|
422
422
|
readonly limit?: number | null | undefined;
|
|
423
|
-
readonly cursor?: string |
|
|
423
|
+
readonly cursor?: string | undefined;
|
|
424
424
|
} | undefined) => import("effect/Stream").Stream<{
|
|
425
425
|
readonly items: readonly ({
|
|
426
426
|
readonly type: "heldSend";
|
|
@@ -457,10 +457,10 @@ export declare const getNeedsYou: ((input?: {
|
|
|
457
457
|
readonly quarantinedMessages: number;
|
|
458
458
|
readonly total: number;
|
|
459
459
|
};
|
|
460
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
460
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
461
461
|
readonly items: (input?: {
|
|
462
462
|
readonly limit?: number | null | undefined;
|
|
463
|
-
readonly cursor?: string |
|
|
463
|
+
readonly cursor?: string | undefined;
|
|
464
464
|
} | undefined) => import("effect/Stream").Stream<{
|
|
465
465
|
readonly type: "heldSend";
|
|
466
466
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
@@ -489,7 +489,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
489
489
|
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "virus" | "virus_unscanned";
|
|
490
490
|
readonly source: "classifier" | "receipt";
|
|
491
491
|
readonly heldAt: string;
|
|
492
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
492
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
493
493
|
};
|
|
494
494
|
export declare const getThread: (input: {
|
|
495
495
|
readonly id: string;
|
|
@@ -520,13 +520,13 @@ export declare const listThreadMessages: ((input: {
|
|
|
520
520
|
readonly id: string;
|
|
521
521
|
readonly threadId: string;
|
|
522
522
|
readonly limit?: number | null | undefined;
|
|
523
|
-
readonly cursor?: string |
|
|
523
|
+
readonly cursor?: string | undefined;
|
|
524
524
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreadMessages">) & {
|
|
525
525
|
readonly pages: (input: {
|
|
526
526
|
readonly id: string;
|
|
527
527
|
readonly threadId: string;
|
|
528
528
|
readonly limit?: number | null | undefined;
|
|
529
|
-
readonly cursor?: string |
|
|
529
|
+
readonly cursor?: string | undefined;
|
|
530
530
|
}) => import("effect/Stream").Stream<{
|
|
531
531
|
readonly items: readonly {
|
|
532
532
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -534,7 +534,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
534
534
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
535
535
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
536
536
|
} | null;
|
|
537
|
-
readonly channel: "email";
|
|
537
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
538
538
|
readonly direction: "inbound" | "outbound";
|
|
539
539
|
readonly from: {
|
|
540
540
|
readonly actor?: {
|
|
@@ -552,19 +552,19 @@ export declare const listThreadMessages: ((input: {
|
|
|
552
552
|
readonly occurredAt: string;
|
|
553
553
|
}[];
|
|
554
554
|
readonly nextCursor: string | null;
|
|
555
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
555
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
556
556
|
readonly items: (input: {
|
|
557
557
|
readonly id: string;
|
|
558
558
|
readonly threadId: string;
|
|
559
559
|
readonly limit?: number | null | undefined;
|
|
560
|
-
readonly cursor?: string |
|
|
560
|
+
readonly cursor?: string | undefined;
|
|
561
561
|
}) => import("effect/Stream").Stream<{
|
|
562
562
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
563
563
|
readonly campaign?: {
|
|
564
564
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
565
565
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
566
566
|
} | null;
|
|
567
|
-
readonly channel: "email";
|
|
567
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
568
568
|
readonly direction: "inbound" | "outbound";
|
|
569
569
|
readonly from: {
|
|
570
570
|
readonly actor?: {
|
|
@@ -580,21 +580,21 @@ export declare const listThreadMessages: ((input: {
|
|
|
580
580
|
readonly preview: string | null;
|
|
581
581
|
readonly hasAttachments: boolean;
|
|
582
582
|
readonly occurredAt: string;
|
|
583
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
583
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
584
584
|
};
|
|
585
585
|
export declare const getThreadContent: ((input: {
|
|
586
586
|
readonly id: string;
|
|
587
587
|
readonly threadId: string;
|
|
588
588
|
readonly limit?: number | null | undefined;
|
|
589
|
-
readonly cursor?: string |
|
|
589
|
+
readonly cursor?: string | undefined;
|
|
590
590
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetThreadContent">) & {
|
|
591
591
|
readonly pages: (input: {
|
|
592
592
|
readonly id: string;
|
|
593
593
|
readonly threadId: string;
|
|
594
594
|
readonly limit?: number | null | undefined;
|
|
595
|
-
readonly cursor?: string |
|
|
595
|
+
readonly cursor?: string | undefined;
|
|
596
596
|
}) => import("effect/Stream").Stream<{
|
|
597
|
-
readonly items: readonly {
|
|
597
|
+
readonly items: readonly ({
|
|
598
598
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
599
599
|
readonly campaign?: {
|
|
600
600
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
@@ -651,14 +651,53 @@ export declare const getThreadContent: ((input: {
|
|
|
651
651
|
readonly size: number;
|
|
652
652
|
readonly isInline: boolean;
|
|
653
653
|
}[];
|
|
654
|
-
}
|
|
654
|
+
} | {
|
|
655
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
656
|
+
readonly campaign?: {
|
|
657
|
+
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
658
|
+
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
659
|
+
} | null;
|
|
660
|
+
readonly threadId: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
661
|
+
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
662
|
+
readonly direction: "inbound" | "outbound";
|
|
663
|
+
readonly from: {
|
|
664
|
+
readonly actor?: {
|
|
665
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
666
|
+
readonly id: string;
|
|
667
|
+
readonly displayName?: string | null;
|
|
668
|
+
} | null;
|
|
669
|
+
readonly displayName?: string | null;
|
|
670
|
+
readonly address: string;
|
|
671
|
+
};
|
|
672
|
+
readonly sentBy?: {
|
|
673
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
674
|
+
readonly id: string;
|
|
675
|
+
readonly displayName?: string | null;
|
|
676
|
+
} | null;
|
|
677
|
+
readonly occurredAt: string;
|
|
678
|
+
readonly channel: "sms" | "whatsapp";
|
|
679
|
+
readonly to: readonly string[];
|
|
680
|
+
readonly text: string | null;
|
|
681
|
+
readonly media: readonly {
|
|
682
|
+
readonly type: string;
|
|
683
|
+
readonly contentType: string | null;
|
|
684
|
+
readonly filename: string | null;
|
|
685
|
+
readonly caption: string | null;
|
|
686
|
+
}[];
|
|
687
|
+
readonly template: {
|
|
688
|
+
readonly name: string;
|
|
689
|
+
readonly language: string;
|
|
690
|
+
} | null;
|
|
691
|
+
readonly summary: string | null;
|
|
692
|
+
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
693
|
+
})[];
|
|
655
694
|
readonly nextCursor: string | null;
|
|
656
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
695
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
657
696
|
readonly items: (input: {
|
|
658
697
|
readonly id: string;
|
|
659
698
|
readonly threadId: string;
|
|
660
699
|
readonly limit?: number | null | undefined;
|
|
661
|
-
readonly cursor?: string |
|
|
700
|
+
readonly cursor?: string | undefined;
|
|
662
701
|
}) => import("effect/Stream").Stream<{
|
|
663
702
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
664
703
|
readonly campaign?: {
|
|
@@ -716,19 +755,58 @@ export declare const getThreadContent: ((input: {
|
|
|
716
755
|
readonly size: number;
|
|
717
756
|
readonly isInline: boolean;
|
|
718
757
|
}[];
|
|
719
|
-
}
|
|
758
|
+
} | {
|
|
759
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
760
|
+
readonly campaign?: {
|
|
761
|
+
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
762
|
+
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
763
|
+
} | null;
|
|
764
|
+
readonly threadId: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
765
|
+
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
766
|
+
readonly direction: "inbound" | "outbound";
|
|
767
|
+
readonly from: {
|
|
768
|
+
readonly actor?: {
|
|
769
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
770
|
+
readonly id: string;
|
|
771
|
+
readonly displayName?: string | null;
|
|
772
|
+
} | null;
|
|
773
|
+
readonly displayName?: string | null;
|
|
774
|
+
readonly address: string;
|
|
775
|
+
};
|
|
776
|
+
readonly sentBy?: {
|
|
777
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
778
|
+
readonly id: string;
|
|
779
|
+
readonly displayName?: string | null;
|
|
780
|
+
} | null;
|
|
781
|
+
readonly occurredAt: string;
|
|
782
|
+
readonly channel: "sms" | "whatsapp";
|
|
783
|
+
readonly to: readonly string[];
|
|
784
|
+
readonly text: string | null;
|
|
785
|
+
readonly media: readonly {
|
|
786
|
+
readonly type: string;
|
|
787
|
+
readonly contentType: string | null;
|
|
788
|
+
readonly filename: string | null;
|
|
789
|
+
readonly caption: string | null;
|
|
790
|
+
}[];
|
|
791
|
+
readonly template: {
|
|
792
|
+
readonly name: string;
|
|
793
|
+
readonly language: string;
|
|
794
|
+
} | null;
|
|
795
|
+
readonly summary: string | null;
|
|
796
|
+
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
797
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
720
798
|
};
|
|
721
799
|
export declare const listThreadNotes: ((input: {
|
|
722
800
|
readonly id: string;
|
|
723
801
|
readonly threadId: string;
|
|
724
802
|
readonly limit?: number | null | undefined;
|
|
725
|
-
readonly cursor?: string |
|
|
803
|
+
readonly cursor?: string | undefined;
|
|
726
804
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreadNotes">) & {
|
|
727
805
|
readonly pages: (input: {
|
|
728
806
|
readonly id: string;
|
|
729
807
|
readonly threadId: string;
|
|
730
808
|
readonly limit?: number | null | undefined;
|
|
731
|
-
readonly cursor?: string |
|
|
809
|
+
readonly cursor?: string | undefined;
|
|
732
810
|
}) => import("effect/Stream").Stream<{
|
|
733
811
|
readonly items: readonly {
|
|
734
812
|
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
@@ -744,12 +822,12 @@ export declare const listThreadNotes: ((input: {
|
|
|
744
822
|
readonly updatedAt: string;
|
|
745
823
|
}[];
|
|
746
824
|
readonly nextCursor: string | null;
|
|
747
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
825
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
748
826
|
readonly items: (input: {
|
|
749
827
|
readonly id: string;
|
|
750
828
|
readonly threadId: string;
|
|
751
829
|
readonly limit?: number | null | undefined;
|
|
752
|
-
readonly cursor?: string |
|
|
830
|
+
readonly cursor?: string | undefined;
|
|
753
831
|
}) => import("effect/Stream").Stream<{
|
|
754
832
|
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
755
833
|
readonly author: {
|
|
@@ -762,7 +840,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
762
840
|
readonly pinned: boolean;
|
|
763
841
|
readonly createdAt: string;
|
|
764
842
|
readonly updatedAt: string;
|
|
765
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
843
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
766
844
|
};
|
|
767
845
|
export declare const createNote: (input: {
|
|
768
846
|
readonly id: string;
|
|
@@ -785,7 +863,6 @@ export declare const deleteNote: (input: {
|
|
|
785
863
|
readonly noteId: string;
|
|
786
864
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeleteNote">;
|
|
787
865
|
export declare const sendMessage: (input: {
|
|
788
|
-
readonly id: string;
|
|
789
866
|
readonly channel?: "email" | null | undefined;
|
|
790
867
|
readonly to: readonly string[];
|
|
791
868
|
readonly cc?: readonly string[] | null | undefined;
|
|
@@ -801,6 +878,40 @@ export declare const sendMessage: (input: {
|
|
|
801
878
|
readonly contentType: string;
|
|
802
879
|
readonly size: number;
|
|
803
880
|
}[] | null | undefined;
|
|
881
|
+
readonly id: string;
|
|
882
|
+
} | {
|
|
883
|
+
readonly channel: "sms" | "whatsapp";
|
|
884
|
+
readonly to: string;
|
|
885
|
+
readonly text?: string | null | undefined;
|
|
886
|
+
readonly templateId?: string | null | undefined;
|
|
887
|
+
readonly templateData?: {
|
|
888
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
889
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
890
|
+
} | null)[] | {
|
|
891
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
892
|
+
} | null)[] | {
|
|
893
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
894
|
+
} | null)[] | {
|
|
895
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
896
|
+
} | null)[] | {
|
|
897
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
898
|
+
} | null)[] | {
|
|
899
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
900
|
+
} | null)[] | {
|
|
901
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
902
|
+
} | null)[] | {
|
|
903
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
904
|
+
} | null)[] | {
|
|
905
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
906
|
+
} | null)[] | {
|
|
907
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
908
|
+
} | null)[] | {
|
|
909
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
910
|
+
} | null)[] | {
|
|
911
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
912
|
+
} | null | undefined;
|
|
913
|
+
} | null | undefined;
|
|
914
|
+
readonly id: string;
|
|
804
915
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesSendMessage">;
|
|
805
916
|
export declare const getMessage: (input: {
|
|
806
917
|
readonly id: string;
|
|
@@ -821,8 +932,6 @@ export declare const copyMessageAttachment: (input: {
|
|
|
821
932
|
readonly attachmentId: string;
|
|
822
933
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
823
934
|
export declare const reply: (input: {
|
|
824
|
-
readonly id: string;
|
|
825
|
-
readonly messageId: string;
|
|
826
935
|
readonly channel?: "email" | null | undefined;
|
|
827
936
|
readonly cc?: readonly string[] | null | undefined;
|
|
828
937
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -835,10 +944,43 @@ export declare const reply: (input: {
|
|
|
835
944
|
readonly contentType: string;
|
|
836
945
|
readonly size: number;
|
|
837
946
|
}[] | null | undefined;
|
|
838
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReply">;
|
|
839
|
-
export declare const replyAll: (input: {
|
|
840
947
|
readonly id: string;
|
|
841
948
|
readonly messageId: string;
|
|
949
|
+
} | {
|
|
950
|
+
readonly channel: "sms" | "whatsapp";
|
|
951
|
+
readonly text?: string | null | undefined;
|
|
952
|
+
readonly templateId?: string | null | undefined;
|
|
953
|
+
readonly templateData?: {
|
|
954
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
955
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
956
|
+
} | null)[] | {
|
|
957
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
958
|
+
} | null)[] | {
|
|
959
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
960
|
+
} | null)[] | {
|
|
961
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
962
|
+
} | null)[] | {
|
|
963
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
964
|
+
} | null)[] | {
|
|
965
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
966
|
+
} | null)[] | {
|
|
967
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
968
|
+
} | null)[] | {
|
|
969
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
970
|
+
} | null)[] | {
|
|
971
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
972
|
+
} | null)[] | {
|
|
973
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
974
|
+
} | null)[] | {
|
|
975
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
976
|
+
} | null)[] | {
|
|
977
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
978
|
+
} | null | undefined;
|
|
979
|
+
} | null | undefined;
|
|
980
|
+
readonly id: string;
|
|
981
|
+
readonly messageId: string;
|
|
982
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReply">;
|
|
983
|
+
export declare const replyAll: (input: {
|
|
842
984
|
readonly channel?: "email" | null | undefined;
|
|
843
985
|
readonly cc?: readonly string[] | null | undefined;
|
|
844
986
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -851,6 +993,41 @@ export declare const replyAll: (input: {
|
|
|
851
993
|
readonly contentType: string;
|
|
852
994
|
readonly size: number;
|
|
853
995
|
}[] | null | undefined;
|
|
996
|
+
readonly id: string;
|
|
997
|
+
readonly messageId: string;
|
|
998
|
+
} | {
|
|
999
|
+
readonly channel: "sms" | "whatsapp";
|
|
1000
|
+
readonly text?: string | null | undefined;
|
|
1001
|
+
readonly templateId?: string | null | undefined;
|
|
1002
|
+
readonly templateData?: {
|
|
1003
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
1004
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1005
|
+
} | null)[] | {
|
|
1006
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1007
|
+
} | null)[] | {
|
|
1008
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1009
|
+
} | null)[] | {
|
|
1010
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1011
|
+
} | null)[] | {
|
|
1012
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1013
|
+
} | null)[] | {
|
|
1014
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1015
|
+
} | null)[] | {
|
|
1016
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1017
|
+
} | null)[] | {
|
|
1018
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1019
|
+
} | null)[] | {
|
|
1020
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1021
|
+
} | null)[] | {
|
|
1022
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1023
|
+
} | null)[] | {
|
|
1024
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1025
|
+
} | null)[] | {
|
|
1026
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1027
|
+
} | null | undefined;
|
|
1028
|
+
} | null | undefined;
|
|
1029
|
+
readonly id: string;
|
|
1030
|
+
readonly messageId: string;
|
|
854
1031
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReplyAll">;
|
|
855
1032
|
export declare const forward: (input: {
|
|
856
1033
|
readonly id: string;
|
|
@@ -871,16 +1048,16 @@ export declare const forward: (input: {
|
|
|
871
1048
|
export declare const listQuarantine: ((input: {
|
|
872
1049
|
readonly id: string;
|
|
873
1050
|
readonly limit?: number | null | undefined;
|
|
874
|
-
readonly cursor?: string |
|
|
875
|
-
readonly after?: string |
|
|
876
|
-
readonly before?: string |
|
|
1051
|
+
readonly cursor?: string | undefined;
|
|
1052
|
+
readonly after?: string | undefined;
|
|
1053
|
+
readonly before?: string | undefined;
|
|
877
1054
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListQuarantine">) & {
|
|
878
1055
|
readonly pages: (input: {
|
|
879
1056
|
readonly id: string;
|
|
880
1057
|
readonly limit?: number | null | undefined;
|
|
881
|
-
readonly cursor?: string |
|
|
882
|
-
readonly after?: string |
|
|
883
|
-
readonly before?: string |
|
|
1058
|
+
readonly cursor?: string | undefined;
|
|
1059
|
+
readonly after?: string | undefined;
|
|
1060
|
+
readonly before?: string | undefined;
|
|
884
1061
|
}) => import("effect/Stream").Stream<{
|
|
885
1062
|
readonly items: readonly {
|
|
886
1063
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -899,13 +1076,13 @@ export declare const listQuarantine: ((input: {
|
|
|
899
1076
|
readonly discardedAt: string | null;
|
|
900
1077
|
}[];
|
|
901
1078
|
readonly nextCursor: string | null;
|
|
902
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1079
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
903
1080
|
readonly items: (input: {
|
|
904
1081
|
readonly id: string;
|
|
905
1082
|
readonly limit?: number | null | undefined;
|
|
906
|
-
readonly cursor?: string |
|
|
907
|
-
readonly after?: string |
|
|
908
|
-
readonly before?: string |
|
|
1083
|
+
readonly cursor?: string | undefined;
|
|
1084
|
+
readonly after?: string | undefined;
|
|
1085
|
+
readonly before?: string | undefined;
|
|
909
1086
|
}) => import("effect/Stream").Stream<{
|
|
910
1087
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
911
1088
|
readonly disposition: "isolated" | "quarantined";
|
|
@@ -921,7 +1098,7 @@ export declare const listQuarantine: ((input: {
|
|
|
921
1098
|
readonly releasedAt: string | null;
|
|
922
1099
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
923
1100
|
readonly discardedAt: string | null;
|
|
924
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1101
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
925
1102
|
};
|
|
926
1103
|
export declare const releaseMessage: (input: {
|
|
927
1104
|
readonly id: string;
|
|
@@ -933,21 +1110,21 @@ export declare const discardMessage: (input: {
|
|
|
933
1110
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDiscardMessage">;
|
|
934
1111
|
export declare const listOrganizationDrafts: ((input?: {
|
|
935
1112
|
readonly limit?: number | null | undefined;
|
|
936
|
-
readonly cursor?: string |
|
|
937
|
-
readonly mailboxId?: string | readonly string[] |
|
|
938
|
-
readonly kind?: "personal" | "shared" |
|
|
939
|
-
readonly threadId?: string |
|
|
1113
|
+
readonly cursor?: string | undefined;
|
|
1114
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
1115
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
1116
|
+
readonly threadId?: string | undefined;
|
|
940
1117
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListOrganizationDrafts">) & {
|
|
941
1118
|
readonly pages: (input?: {
|
|
942
1119
|
readonly limit?: number | null | undefined;
|
|
943
|
-
readonly cursor?: string |
|
|
944
|
-
readonly mailboxId?: string | readonly string[] |
|
|
945
|
-
readonly kind?: "personal" | "shared" |
|
|
946
|
-
readonly threadId?: string |
|
|
1120
|
+
readonly cursor?: string | undefined;
|
|
1121
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
1122
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
1123
|
+
readonly threadId?: string | undefined;
|
|
947
1124
|
} | undefined) => import("effect/Stream").Stream<{
|
|
948
1125
|
readonly items: readonly {
|
|
949
1126
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
950
|
-
readonly channel: "email";
|
|
1127
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
951
1128
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
952
1129
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
953
1130
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -963,16 +1140,16 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
963
1140
|
};
|
|
964
1141
|
}[];
|
|
965
1142
|
readonly nextCursor: string | null;
|
|
966
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1143
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
967
1144
|
readonly items: (input?: {
|
|
968
1145
|
readonly limit?: number | null | undefined;
|
|
969
|
-
readonly cursor?: string |
|
|
970
|
-
readonly mailboxId?: string | readonly string[] |
|
|
971
|
-
readonly kind?: "personal" | "shared" |
|
|
972
|
-
readonly threadId?: string |
|
|
1146
|
+
readonly cursor?: string | undefined;
|
|
1147
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
1148
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
1149
|
+
readonly threadId?: string | undefined;
|
|
973
1150
|
} | undefined) => import("effect/Stream").Stream<{
|
|
974
1151
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
975
|
-
readonly channel: "email";
|
|
1152
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
976
1153
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
977
1154
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
978
1155
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -986,23 +1163,23 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
986
1163
|
readonly address: string | null;
|
|
987
1164
|
readonly kind: "personal" | "shared";
|
|
988
1165
|
};
|
|
989
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1166
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
990
1167
|
};
|
|
991
1168
|
export declare const listDrafts: ((input: {
|
|
992
1169
|
readonly id: string;
|
|
993
1170
|
readonly limit?: number | null | undefined;
|
|
994
|
-
readonly cursor?: string |
|
|
995
|
-
readonly threadId?: string |
|
|
1171
|
+
readonly cursor?: string | undefined;
|
|
1172
|
+
readonly threadId?: string | undefined;
|
|
996
1173
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListDrafts">) & {
|
|
997
1174
|
readonly pages: (input: {
|
|
998
1175
|
readonly id: string;
|
|
999
1176
|
readonly limit?: number | null | undefined;
|
|
1000
|
-
readonly cursor?: string |
|
|
1001
|
-
readonly threadId?: string |
|
|
1177
|
+
readonly cursor?: string | undefined;
|
|
1178
|
+
readonly threadId?: string | undefined;
|
|
1002
1179
|
}) => import("effect/Stream").Stream<{
|
|
1003
1180
|
readonly items: readonly {
|
|
1004
1181
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1005
|
-
readonly channel: "email";
|
|
1182
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
1006
1183
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1007
1184
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1008
1185
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1013,15 +1190,15 @@ export declare const listDrafts: ((input: {
|
|
|
1013
1190
|
readonly updatedAt: string;
|
|
1014
1191
|
}[];
|
|
1015
1192
|
readonly nextCursor: string | null;
|
|
1016
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1193
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1017
1194
|
readonly items: (input: {
|
|
1018
1195
|
readonly id: string;
|
|
1019
1196
|
readonly limit?: number | null | undefined;
|
|
1020
|
-
readonly cursor?: string |
|
|
1021
|
-
readonly threadId?: string |
|
|
1197
|
+
readonly cursor?: string | undefined;
|
|
1198
|
+
readonly threadId?: string | undefined;
|
|
1022
1199
|
}) => import("effect/Stream").Stream<{
|
|
1023
1200
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1024
|
-
readonly channel: "email";
|
|
1201
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
1025
1202
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1026
1203
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1027
1204
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1030,10 +1207,9 @@ export declare const listDrafts: ((input: {
|
|
|
1030
1207
|
readonly subject: string | null;
|
|
1031
1208
|
readonly createdAt: string;
|
|
1032
1209
|
readonly updatedAt: string;
|
|
1033
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1210
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1034
1211
|
};
|
|
1035
1212
|
export declare const createDraft: (input: {
|
|
1036
|
-
readonly id: string;
|
|
1037
1213
|
readonly channel?: "email" | null | undefined;
|
|
1038
1214
|
readonly endpointId?: string | null | undefined;
|
|
1039
1215
|
readonly to?: readonly string[] | null | undefined;
|
|
@@ -1051,6 +1227,13 @@ export declare const createDraft: (input: {
|
|
|
1051
1227
|
readonly size: number;
|
|
1052
1228
|
}[] | null | undefined;
|
|
1053
1229
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1230
|
+
readonly id: string;
|
|
1231
|
+
} | {
|
|
1232
|
+
readonly channel: "sms" | "whatsapp";
|
|
1233
|
+
readonly to?: string | null | undefined;
|
|
1234
|
+
readonly text?: string | null | undefined;
|
|
1235
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
1236
|
+
readonly id: string;
|
|
1054
1237
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateDraft">;
|
|
1055
1238
|
export declare const getDraft: (input: {
|
|
1056
1239
|
readonly id: string;
|
|
@@ -1085,20 +1268,20 @@ export declare const sendDraft: (input: {
|
|
|
1085
1268
|
export declare const listActions: ((input: {
|
|
1086
1269
|
readonly id: string;
|
|
1087
1270
|
readonly limit?: number | null | undefined;
|
|
1088
|
-
readonly cursor?: string |
|
|
1089
|
-
readonly threadId?: string |
|
|
1090
|
-
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" |
|
|
1091
|
-
readonly after?: string |
|
|
1092
|
-
readonly before?: string |
|
|
1271
|
+
readonly cursor?: string | undefined;
|
|
1272
|
+
readonly threadId?: string | undefined;
|
|
1273
|
+
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1274
|
+
readonly after?: string | undefined;
|
|
1275
|
+
readonly before?: string | undefined;
|
|
1093
1276
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListActions">) & {
|
|
1094
1277
|
readonly pages: (input: {
|
|
1095
1278
|
readonly id: string;
|
|
1096
1279
|
readonly limit?: number | null | undefined;
|
|
1097
|
-
readonly cursor?: string |
|
|
1098
|
-
readonly threadId?: string |
|
|
1099
|
-
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" |
|
|
1100
|
-
readonly after?: string |
|
|
1101
|
-
readonly before?: string |
|
|
1280
|
+
readonly cursor?: string | undefined;
|
|
1281
|
+
readonly threadId?: string | undefined;
|
|
1282
|
+
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1283
|
+
readonly after?: string | undefined;
|
|
1284
|
+
readonly before?: string | undefined;
|
|
1102
1285
|
}) => import("effect/Stream").Stream<{
|
|
1103
1286
|
readonly items: readonly ({
|
|
1104
1287
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
@@ -1223,6 +1406,30 @@ export declare const listActions: ((input: {
|
|
|
1223
1406
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1224
1407
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1225
1408
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1409
|
+
} | {
|
|
1410
|
+
readonly channel: "sms" | "whatsapp";
|
|
1411
|
+
readonly draftRevision: number;
|
|
1412
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
1413
|
+
readonly sender: {
|
|
1414
|
+
readonly channel: "whatsapp";
|
|
1415
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
1416
|
+
} | {
|
|
1417
|
+
readonly channel: "sms";
|
|
1418
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
1419
|
+
};
|
|
1420
|
+
readonly from: string;
|
|
1421
|
+
readonly to: string;
|
|
1422
|
+
readonly text: string | null;
|
|
1423
|
+
readonly template: {
|
|
1424
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1425
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
1426
|
+
readonly templateData: {
|
|
1427
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1428
|
+
} | null;
|
|
1429
|
+
} | null;
|
|
1430
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1431
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1432
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1226
1433
|
} | null;
|
|
1227
1434
|
} | {
|
|
1228
1435
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
@@ -1265,15 +1472,15 @@ export declare const listActions: ((input: {
|
|
|
1265
1472
|
} | null;
|
|
1266
1473
|
})[];
|
|
1267
1474
|
readonly nextCursor: string | null;
|
|
1268
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1475
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1269
1476
|
readonly items: (input: {
|
|
1270
1477
|
readonly id: string;
|
|
1271
1478
|
readonly limit?: number | null | undefined;
|
|
1272
|
-
readonly cursor?: string |
|
|
1273
|
-
readonly threadId?: string |
|
|
1274
|
-
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" |
|
|
1275
|
-
readonly after?: string |
|
|
1276
|
-
readonly before?: string |
|
|
1479
|
+
readonly cursor?: string | undefined;
|
|
1480
|
+
readonly threadId?: string | undefined;
|
|
1481
|
+
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1482
|
+
readonly after?: string | undefined;
|
|
1483
|
+
readonly before?: string | undefined;
|
|
1277
1484
|
}) => import("effect/Stream").Stream<{
|
|
1278
1485
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1279
1486
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
@@ -1397,6 +1604,30 @@ export declare const listActions: ((input: {
|
|
|
1397
1604
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1398
1605
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1399
1606
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1607
|
+
} | {
|
|
1608
|
+
readonly channel: "sms" | "whatsapp";
|
|
1609
|
+
readonly draftRevision: number;
|
|
1610
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
1611
|
+
readonly sender: {
|
|
1612
|
+
readonly channel: "whatsapp";
|
|
1613
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
1614
|
+
} | {
|
|
1615
|
+
readonly channel: "sms";
|
|
1616
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
1617
|
+
};
|
|
1618
|
+
readonly from: string;
|
|
1619
|
+
readonly to: string;
|
|
1620
|
+
readonly text: string | null;
|
|
1621
|
+
readonly template: {
|
|
1622
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1623
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
1624
|
+
readonly templateData: {
|
|
1625
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1626
|
+
} | null;
|
|
1627
|
+
} | null;
|
|
1628
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1629
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1630
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1400
1631
|
} | null;
|
|
1401
1632
|
} | {
|
|
1402
1633
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
@@ -1437,7 +1668,7 @@ export declare const listActions: ((input: {
|
|
|
1437
1668
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1438
1669
|
};
|
|
1439
1670
|
} | null;
|
|
1440
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1671
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1441
1672
|
};
|
|
1442
1673
|
export declare const getAction: (input: {
|
|
1443
1674
|
readonly id: string;
|
|
@@ -1463,16 +1694,16 @@ export declare const denyAction: (input: {
|
|
|
1463
1694
|
export declare const listEvents: ((input: {
|
|
1464
1695
|
readonly id: string;
|
|
1465
1696
|
readonly limit?: number | null | undefined;
|
|
1466
|
-
readonly cursor?: string |
|
|
1467
|
-
readonly after?: string |
|
|
1468
|
-
readonly before?: string |
|
|
1697
|
+
readonly cursor?: string | undefined;
|
|
1698
|
+
readonly after?: string | undefined;
|
|
1699
|
+
readonly before?: string | undefined;
|
|
1469
1700
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListEvents">) & {
|
|
1470
1701
|
readonly pages: (input: {
|
|
1471
1702
|
readonly id: string;
|
|
1472
1703
|
readonly limit?: number | null | undefined;
|
|
1473
|
-
readonly cursor?: string |
|
|
1474
|
-
readonly after?: string |
|
|
1475
|
-
readonly before?: string |
|
|
1704
|
+
readonly cursor?: string | undefined;
|
|
1705
|
+
readonly after?: string | undefined;
|
|
1706
|
+
readonly before?: string | undefined;
|
|
1476
1707
|
}) => import("effect/Stream").Stream<{
|
|
1477
1708
|
readonly items: readonly {
|
|
1478
1709
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
@@ -1490,13 +1721,13 @@ export declare const listEvents: ((input: {
|
|
|
1490
1721
|
readonly occurredAt: string;
|
|
1491
1722
|
}[];
|
|
1492
1723
|
readonly nextCursor: string | null;
|
|
1493
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1724
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1494
1725
|
readonly items: (input: {
|
|
1495
1726
|
readonly id: string;
|
|
1496
1727
|
readonly limit?: number | null | undefined;
|
|
1497
|
-
readonly cursor?: string |
|
|
1498
|
-
readonly after?: string |
|
|
1499
|
-
readonly before?: string |
|
|
1728
|
+
readonly cursor?: string | undefined;
|
|
1729
|
+
readonly after?: string | undefined;
|
|
1730
|
+
readonly before?: string | undefined;
|
|
1500
1731
|
}) => import("effect/Stream").Stream<{
|
|
1501
1732
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
1502
1733
|
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "endpoint.attached" | "endpoint.detached" | "mailbox.created" | "message.received" | "message.released" | "message.sent" | "thread.created";
|
|
@@ -1511,5 +1742,5 @@ export declare const listEvents: ((input: {
|
|
|
1511
1742
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1512
1743
|
};
|
|
1513
1744
|
readonly occurredAt: string;
|
|
1514
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1745
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1515
1746
|
};
|