samva 0.2.0 → 0.4.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/AGENTS.md +1 -1
- package/README.md +14 -3
- package/dist/client/sdk.gen.d.ts +321 -129
- package/dist/client/types.gen.d.ts +1818 -777
- package/dist/{client-BqkU-sFv.js → client-BmZK_uCt.js} +2699 -1839
- package/dist/client-attribution-BslSOa_8.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +320 -1005
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +292 -314
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +305 -437
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +74 -74
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +233 -265
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +13410 -14526
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +32 -129
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +90 -307
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -180
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +242 -639
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1376 -2033
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +53 -54
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BiIJnycv.js} +6 -15
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-B1knNlxk.js} +83 -38
- package/dist/promises/index.d.ts +13 -21
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-n1opem5V.js} +572 -184
- package/dist/service-map.d.ts +96 -44
- package/package.json +23 -19
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type MessageSendInput, type SendOptions } from "./internal/operation";
|
|
2
2
|
export type { MessageSendInput, SendOptions };
|
|
3
3
|
export declare const list: ((input?: {
|
|
4
|
-
readonly
|
|
5
|
-
readonly conversationId?: string | null | undefined;
|
|
6
|
-
readonly channel?: string | null | undefined;
|
|
4
|
+
readonly page?: string | null | undefined;
|
|
7
5
|
readonly limit?: string | null | undefined;
|
|
6
|
+
readonly channel?: string | null | undefined;
|
|
7
|
+
readonly direction?: string | null | undefined;
|
|
8
8
|
readonly status?: string | null | undefined;
|
|
9
|
-
readonly
|
|
9
|
+
readonly conversationId?: string | null | undefined;
|
|
10
|
+
readonly contactId?: string | null | undefined;
|
|
10
11
|
readonly startDate?: string | null | undefined;
|
|
11
12
|
readonly endDate?: string | null | undefined;
|
|
12
13
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -19,13 +20,13 @@ export declare const list: ((input?: {
|
|
|
19
20
|
readonly actorMetadata: {
|
|
20
21
|
readonly [x: string]: import("./generated").JsonValue;
|
|
21
22
|
} | null;
|
|
22
|
-
readonly channel: "
|
|
23
|
-
readonly direction: "
|
|
23
|
+
readonly channel: "email";
|
|
24
|
+
readonly direction: "inbound" | "outbound";
|
|
24
25
|
readonly content: import("./generated").JsonValue;
|
|
25
26
|
readonly metadata: {
|
|
26
27
|
readonly [x: string]: import("./generated").JsonValue;
|
|
27
28
|
} | null;
|
|
28
|
-
readonly status: "
|
|
29
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
29
30
|
readonly scheduledAt: string | null;
|
|
30
31
|
readonly tags: readonly string[];
|
|
31
32
|
readonly categories: readonly string[];
|
|
@@ -47,7 +48,7 @@ export declare const list: ((input?: {
|
|
|
47
48
|
readonly displayName: string | null;
|
|
48
49
|
readonly type: string;
|
|
49
50
|
readonly identities: readonly {
|
|
50
|
-
readonly channel: "
|
|
51
|
+
readonly channel: "email";
|
|
51
52
|
readonly identifier: string;
|
|
52
53
|
readonly verified: boolean;
|
|
53
54
|
}[];
|
|
@@ -58,7 +59,7 @@ export declare const list: ((input?: {
|
|
|
58
59
|
readonly displayName: string | null;
|
|
59
60
|
readonly type: string;
|
|
60
61
|
readonly identities: readonly {
|
|
61
|
-
readonly channel: "
|
|
62
|
+
readonly channel: "email";
|
|
62
63
|
readonly identifier: string;
|
|
63
64
|
readonly verified: boolean;
|
|
64
65
|
}[];
|
|
@@ -69,9 +70,9 @@ export declare const list: ((input?: {
|
|
|
69
70
|
readonly actorId: string | null;
|
|
70
71
|
readonly contactId: string | null;
|
|
71
72
|
readonly identityId: string | null;
|
|
72
|
-
readonly kind: "
|
|
73
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
73
74
|
readonly address: string;
|
|
74
|
-
readonly status: "
|
|
75
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
75
76
|
readonly createdAt: string;
|
|
76
77
|
readonly updatedAt: string;
|
|
77
78
|
readonly contact: {
|
|
@@ -80,7 +81,7 @@ export declare const list: ((input?: {
|
|
|
80
81
|
readonly displayName: string | null;
|
|
81
82
|
readonly type: string;
|
|
82
83
|
readonly identities: readonly {
|
|
83
|
-
readonly channel: "
|
|
84
|
+
readonly channel: "email";
|
|
84
85
|
readonly identifier: string;
|
|
85
86
|
readonly verified: boolean;
|
|
86
87
|
}[];
|
|
@@ -90,8 +91,8 @@ export declare const list: ((input?: {
|
|
|
90
91
|
readonly id: string;
|
|
91
92
|
readonly messageId: string;
|
|
92
93
|
readonly recipientId: string | null;
|
|
93
|
-
readonly channel: "
|
|
94
|
-
readonly status: "
|
|
94
|
+
readonly channel: "email";
|
|
95
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
95
96
|
readonly attemptCount: number;
|
|
96
97
|
readonly maxAttempts: number;
|
|
97
98
|
readonly queuedAt: string | null;
|
|
@@ -138,7 +139,7 @@ export declare const list: ((input?: {
|
|
|
138
139
|
readonly spfVerdict: string | null;
|
|
139
140
|
readonly dmarcVerdict: string | null;
|
|
140
141
|
readonly isAutoReply: boolean;
|
|
141
|
-
readonly autoReplyReason: "
|
|
142
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
142
143
|
readonly priority: string | null;
|
|
143
144
|
readonly parsingErrors: readonly string[] | null;
|
|
144
145
|
readonly parsingDuration: number | null;
|
|
@@ -147,50 +148,6 @@ export declare const list: ((input?: {
|
|
|
147
148
|
readonly createdAt: string;
|
|
148
149
|
readonly updatedAt: string;
|
|
149
150
|
}[];
|
|
150
|
-
readonly smsDeliveryDetails: readonly {
|
|
151
|
-
readonly deliveryId: string;
|
|
152
|
-
readonly fromNumber: string;
|
|
153
|
-
readonly toNumber: string;
|
|
154
|
-
readonly segmentCount: number;
|
|
155
|
-
readonly encoding: string;
|
|
156
|
-
readonly dltTemplateId: string | null;
|
|
157
|
-
readonly dltEntityId: string | null;
|
|
158
|
-
readonly dltContentId: string | null;
|
|
159
|
-
readonly carrier: string | null;
|
|
160
|
-
readonly numSegmentsReported: number | null;
|
|
161
|
-
readonly createdAt: string;
|
|
162
|
-
readonly updatedAt: string;
|
|
163
|
-
}[];
|
|
164
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
165
|
-
readonly deliveryId: string;
|
|
166
|
-
readonly fromNumber: string;
|
|
167
|
-
readonly toNumber: string;
|
|
168
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
169
|
-
readonly templateName: string | null;
|
|
170
|
-
readonly templateLanguage: string | null;
|
|
171
|
-
readonly templateCategory: string | null;
|
|
172
|
-
readonly templateParams: {
|
|
173
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
174
|
-
} | null;
|
|
175
|
-
readonly mediaUrl: string | null;
|
|
176
|
-
readonly mediaType: string | null;
|
|
177
|
-
readonly mediaS3Key: string | null;
|
|
178
|
-
readonly interactiveType: string | null;
|
|
179
|
-
readonly contextMessageId: string | null;
|
|
180
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
181
|
-
readonly serviceWindowId: string | null;
|
|
182
|
-
readonly freeEntryPointId: string | null;
|
|
183
|
-
readonly isBillable: boolean;
|
|
184
|
-
readonly pricing: {
|
|
185
|
-
readonly messageCost: string;
|
|
186
|
-
readonly reason: string;
|
|
187
|
-
readonly sentInServiceWindow: boolean;
|
|
188
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
189
|
-
} | null;
|
|
190
|
-
readonly recipientId: string | null;
|
|
191
|
-
readonly createdAt: string;
|
|
192
|
-
readonly updatedAt: string;
|
|
193
|
-
}[];
|
|
194
151
|
}[];
|
|
195
152
|
readonly pagination: {
|
|
196
153
|
readonly page: number;
|
|
@@ -198,14 +155,15 @@ export declare const list: ((input?: {
|
|
|
198
155
|
readonly total: number;
|
|
199
156
|
readonly totalPages: number;
|
|
200
157
|
};
|
|
201
|
-
}, import("
|
|
158
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
202
159
|
readonly pages: (input?: {
|
|
203
|
-
readonly
|
|
204
|
-
readonly conversationId?: string | null | undefined;
|
|
205
|
-
readonly channel?: string | null | undefined;
|
|
160
|
+
readonly page?: string | null | undefined;
|
|
206
161
|
readonly limit?: string | null | undefined;
|
|
162
|
+
readonly channel?: string | null | undefined;
|
|
163
|
+
readonly direction?: string | null | undefined;
|
|
207
164
|
readonly status?: string | null | undefined;
|
|
208
|
-
readonly
|
|
165
|
+
readonly conversationId?: string | null | undefined;
|
|
166
|
+
readonly contactId?: string | null | undefined;
|
|
209
167
|
readonly startDate?: string | null | undefined;
|
|
210
168
|
readonly endDate?: string | null | undefined;
|
|
211
169
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -218,13 +176,13 @@ export declare const list: ((input?: {
|
|
|
218
176
|
readonly actorMetadata: {
|
|
219
177
|
readonly [x: string]: import("./generated").JsonValue;
|
|
220
178
|
} | null;
|
|
221
|
-
readonly channel: "
|
|
222
|
-
readonly direction: "
|
|
179
|
+
readonly channel: "email";
|
|
180
|
+
readonly direction: "inbound" | "outbound";
|
|
223
181
|
readonly content: import("./generated").JsonValue;
|
|
224
182
|
readonly metadata: {
|
|
225
183
|
readonly [x: string]: import("./generated").JsonValue;
|
|
226
184
|
} | null;
|
|
227
|
-
readonly status: "
|
|
185
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
228
186
|
readonly scheduledAt: string | null;
|
|
229
187
|
readonly tags: readonly string[];
|
|
230
188
|
readonly categories: readonly string[];
|
|
@@ -246,7 +204,7 @@ export declare const list: ((input?: {
|
|
|
246
204
|
readonly displayName: string | null;
|
|
247
205
|
readonly type: string;
|
|
248
206
|
readonly identities: readonly {
|
|
249
|
-
readonly channel: "
|
|
207
|
+
readonly channel: "email";
|
|
250
208
|
readonly identifier: string;
|
|
251
209
|
readonly verified: boolean;
|
|
252
210
|
}[];
|
|
@@ -257,7 +215,7 @@ export declare const list: ((input?: {
|
|
|
257
215
|
readonly displayName: string | null;
|
|
258
216
|
readonly type: string;
|
|
259
217
|
readonly identities: readonly {
|
|
260
|
-
readonly channel: "
|
|
218
|
+
readonly channel: "email";
|
|
261
219
|
readonly identifier: string;
|
|
262
220
|
readonly verified: boolean;
|
|
263
221
|
}[];
|
|
@@ -268,9 +226,9 @@ export declare const list: ((input?: {
|
|
|
268
226
|
readonly actorId: string | null;
|
|
269
227
|
readonly contactId: string | null;
|
|
270
228
|
readonly identityId: string | null;
|
|
271
|
-
readonly kind: "
|
|
229
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
272
230
|
readonly address: string;
|
|
273
|
-
readonly status: "
|
|
231
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
274
232
|
readonly createdAt: string;
|
|
275
233
|
readonly updatedAt: string;
|
|
276
234
|
readonly contact: {
|
|
@@ -279,7 +237,7 @@ export declare const list: ((input?: {
|
|
|
279
237
|
readonly displayName: string | null;
|
|
280
238
|
readonly type: string;
|
|
281
239
|
readonly identities: readonly {
|
|
282
|
-
readonly channel: "
|
|
240
|
+
readonly channel: "email";
|
|
283
241
|
readonly identifier: string;
|
|
284
242
|
readonly verified: boolean;
|
|
285
243
|
}[];
|
|
@@ -289,8 +247,8 @@ export declare const list: ((input?: {
|
|
|
289
247
|
readonly id: string;
|
|
290
248
|
readonly messageId: string;
|
|
291
249
|
readonly recipientId: string | null;
|
|
292
|
-
readonly channel: "
|
|
293
|
-
readonly status: "
|
|
250
|
+
readonly channel: "email";
|
|
251
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
294
252
|
readonly attemptCount: number;
|
|
295
253
|
readonly maxAttempts: number;
|
|
296
254
|
readonly queuedAt: string | null;
|
|
@@ -337,7 +295,7 @@ export declare const list: ((input?: {
|
|
|
337
295
|
readonly spfVerdict: string | null;
|
|
338
296
|
readonly dmarcVerdict: string | null;
|
|
339
297
|
readonly isAutoReply: boolean;
|
|
340
|
-
readonly autoReplyReason: "
|
|
298
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
341
299
|
readonly priority: string | null;
|
|
342
300
|
readonly parsingErrors: readonly string[] | null;
|
|
343
301
|
readonly parsingDuration: number | null;
|
|
@@ -346,50 +304,6 @@ export declare const list: ((input?: {
|
|
|
346
304
|
readonly createdAt: string;
|
|
347
305
|
readonly updatedAt: string;
|
|
348
306
|
}[];
|
|
349
|
-
readonly smsDeliveryDetails: readonly {
|
|
350
|
-
readonly deliveryId: string;
|
|
351
|
-
readonly fromNumber: string;
|
|
352
|
-
readonly toNumber: string;
|
|
353
|
-
readonly segmentCount: number;
|
|
354
|
-
readonly encoding: string;
|
|
355
|
-
readonly dltTemplateId: string | null;
|
|
356
|
-
readonly dltEntityId: string | null;
|
|
357
|
-
readonly dltContentId: string | null;
|
|
358
|
-
readonly carrier: string | null;
|
|
359
|
-
readonly numSegmentsReported: number | null;
|
|
360
|
-
readonly createdAt: string;
|
|
361
|
-
readonly updatedAt: string;
|
|
362
|
-
}[];
|
|
363
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
364
|
-
readonly deliveryId: string;
|
|
365
|
-
readonly fromNumber: string;
|
|
366
|
-
readonly toNumber: string;
|
|
367
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
368
|
-
readonly templateName: string | null;
|
|
369
|
-
readonly templateLanguage: string | null;
|
|
370
|
-
readonly templateCategory: string | null;
|
|
371
|
-
readonly templateParams: {
|
|
372
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
373
|
-
} | null;
|
|
374
|
-
readonly mediaUrl: string | null;
|
|
375
|
-
readonly mediaType: string | null;
|
|
376
|
-
readonly mediaS3Key: string | null;
|
|
377
|
-
readonly interactiveType: string | null;
|
|
378
|
-
readonly contextMessageId: string | null;
|
|
379
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
380
|
-
readonly serviceWindowId: string | null;
|
|
381
|
-
readonly freeEntryPointId: string | null;
|
|
382
|
-
readonly isBillable: boolean;
|
|
383
|
-
readonly pricing: {
|
|
384
|
-
readonly messageCost: string;
|
|
385
|
-
readonly reason: string;
|
|
386
|
-
readonly sentInServiceWindow: boolean;
|
|
387
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
388
|
-
} | null;
|
|
389
|
-
readonly recipientId: string | null;
|
|
390
|
-
readonly createdAt: string;
|
|
391
|
-
readonly updatedAt: string;
|
|
392
|
-
}[];
|
|
393
307
|
}[];
|
|
394
308
|
readonly pagination: {
|
|
395
309
|
readonly page: number;
|
|
@@ -397,14 +311,15 @@ export declare const list: ((input?: {
|
|
|
397
311
|
readonly total: number;
|
|
398
312
|
readonly totalPages: number;
|
|
399
313
|
};
|
|
400
|
-
}, import("
|
|
314
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
401
315
|
readonly items: (input?: {
|
|
402
|
-
readonly
|
|
403
|
-
readonly conversationId?: string | null | undefined;
|
|
404
|
-
readonly channel?: string | null | undefined;
|
|
316
|
+
readonly page?: string | null | undefined;
|
|
405
317
|
readonly limit?: string | null | undefined;
|
|
318
|
+
readonly channel?: string | null | undefined;
|
|
319
|
+
readonly direction?: string | null | undefined;
|
|
406
320
|
readonly status?: string | null | undefined;
|
|
407
|
-
readonly
|
|
321
|
+
readonly conversationId?: string | null | undefined;
|
|
322
|
+
readonly contactId?: string | null | undefined;
|
|
408
323
|
readonly startDate?: string | null | undefined;
|
|
409
324
|
readonly endDate?: string | null | undefined;
|
|
410
325
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -416,13 +331,13 @@ export declare const list: ((input?: {
|
|
|
416
331
|
readonly actorMetadata: {
|
|
417
332
|
readonly [x: string]: import("./generated").JsonValue;
|
|
418
333
|
} | null;
|
|
419
|
-
readonly channel: "
|
|
420
|
-
readonly direction: "
|
|
334
|
+
readonly channel: "email";
|
|
335
|
+
readonly direction: "inbound" | "outbound";
|
|
421
336
|
readonly content: import("./generated").JsonValue;
|
|
422
337
|
readonly metadata: {
|
|
423
338
|
readonly [x: string]: import("./generated").JsonValue;
|
|
424
339
|
} | null;
|
|
425
|
-
readonly status: "
|
|
340
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
426
341
|
readonly scheduledAt: string | null;
|
|
427
342
|
readonly tags: readonly string[];
|
|
428
343
|
readonly categories: readonly string[];
|
|
@@ -444,7 +359,7 @@ export declare const list: ((input?: {
|
|
|
444
359
|
readonly displayName: string | null;
|
|
445
360
|
readonly type: string;
|
|
446
361
|
readonly identities: readonly {
|
|
447
|
-
readonly channel: "
|
|
362
|
+
readonly channel: "email";
|
|
448
363
|
readonly identifier: string;
|
|
449
364
|
readonly verified: boolean;
|
|
450
365
|
}[];
|
|
@@ -455,7 +370,7 @@ export declare const list: ((input?: {
|
|
|
455
370
|
readonly displayName: string | null;
|
|
456
371
|
readonly type: string;
|
|
457
372
|
readonly identities: readonly {
|
|
458
|
-
readonly channel: "
|
|
373
|
+
readonly channel: "email";
|
|
459
374
|
readonly identifier: string;
|
|
460
375
|
readonly verified: boolean;
|
|
461
376
|
}[];
|
|
@@ -466,9 +381,9 @@ export declare const list: ((input?: {
|
|
|
466
381
|
readonly actorId: string | null;
|
|
467
382
|
readonly contactId: string | null;
|
|
468
383
|
readonly identityId: string | null;
|
|
469
|
-
readonly kind: "
|
|
384
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
470
385
|
readonly address: string;
|
|
471
|
-
readonly status: "
|
|
386
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
472
387
|
readonly createdAt: string;
|
|
473
388
|
readonly updatedAt: string;
|
|
474
389
|
readonly contact: {
|
|
@@ -477,7 +392,7 @@ export declare const list: ((input?: {
|
|
|
477
392
|
readonly displayName: string | null;
|
|
478
393
|
readonly type: string;
|
|
479
394
|
readonly identities: readonly {
|
|
480
|
-
readonly channel: "
|
|
395
|
+
readonly channel: "email";
|
|
481
396
|
readonly identifier: string;
|
|
482
397
|
readonly verified: boolean;
|
|
483
398
|
}[];
|
|
@@ -487,8 +402,8 @@ export declare const list: ((input?: {
|
|
|
487
402
|
readonly id: string;
|
|
488
403
|
readonly messageId: string;
|
|
489
404
|
readonly recipientId: string | null;
|
|
490
|
-
readonly channel: "
|
|
491
|
-
readonly status: "
|
|
405
|
+
readonly channel: "email";
|
|
406
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
492
407
|
readonly attemptCount: number;
|
|
493
408
|
readonly maxAttempts: number;
|
|
494
409
|
readonly queuedAt: string | null;
|
|
@@ -535,7 +450,7 @@ export declare const list: ((input?: {
|
|
|
535
450
|
readonly spfVerdict: string | null;
|
|
536
451
|
readonly dmarcVerdict: string | null;
|
|
537
452
|
readonly isAutoReply: boolean;
|
|
538
|
-
readonly autoReplyReason: "
|
|
453
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
539
454
|
readonly priority: string | null;
|
|
540
455
|
readonly parsingErrors: readonly string[] | null;
|
|
541
456
|
readonly parsingDuration: number | null;
|
|
@@ -544,51 +459,7 @@ export declare const list: ((input?: {
|
|
|
544
459
|
readonly createdAt: string;
|
|
545
460
|
readonly updatedAt: string;
|
|
546
461
|
}[];
|
|
547
|
-
|
|
548
|
-
readonly deliveryId: string;
|
|
549
|
-
readonly fromNumber: string;
|
|
550
|
-
readonly toNumber: string;
|
|
551
|
-
readonly segmentCount: number;
|
|
552
|
-
readonly encoding: string;
|
|
553
|
-
readonly dltTemplateId: string | null;
|
|
554
|
-
readonly dltEntityId: string | null;
|
|
555
|
-
readonly dltContentId: string | null;
|
|
556
|
-
readonly carrier: string | null;
|
|
557
|
-
readonly numSegmentsReported: number | null;
|
|
558
|
-
readonly createdAt: string;
|
|
559
|
-
readonly updatedAt: string;
|
|
560
|
-
}[];
|
|
561
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
562
|
-
readonly deliveryId: string;
|
|
563
|
-
readonly fromNumber: string;
|
|
564
|
-
readonly toNumber: string;
|
|
565
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
566
|
-
readonly templateName: string | null;
|
|
567
|
-
readonly templateLanguage: string | null;
|
|
568
|
-
readonly templateCategory: string | null;
|
|
569
|
-
readonly templateParams: {
|
|
570
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
571
|
-
} | null;
|
|
572
|
-
readonly mediaUrl: string | null;
|
|
573
|
-
readonly mediaType: string | null;
|
|
574
|
-
readonly mediaS3Key: string | null;
|
|
575
|
-
readonly interactiveType: string | null;
|
|
576
|
-
readonly contextMessageId: string | null;
|
|
577
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
578
|
-
readonly serviceWindowId: string | null;
|
|
579
|
-
readonly freeEntryPointId: string | null;
|
|
580
|
-
readonly isBillable: boolean;
|
|
581
|
-
readonly pricing: {
|
|
582
|
-
readonly messageCost: string;
|
|
583
|
-
readonly reason: string;
|
|
584
|
-
readonly sentInServiceWindow: boolean;
|
|
585
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
586
|
-
} | null;
|
|
587
|
-
readonly recipientId: string | null;
|
|
588
|
-
readonly createdAt: string;
|
|
589
|
-
readonly updatedAt: string;
|
|
590
|
-
}[];
|
|
591
|
-
}, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
462
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
592
463
|
};
|
|
593
464
|
export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
|
|
594
465
|
readonly id: string;
|
|
@@ -599,13 +470,13 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
599
470
|
readonly actorMetadata: {
|
|
600
471
|
readonly [x: string]: import("./generated").JsonValue;
|
|
601
472
|
} | null;
|
|
602
|
-
readonly channel: "
|
|
603
|
-
readonly direction: "
|
|
473
|
+
readonly channel: "email";
|
|
474
|
+
readonly direction: "inbound" | "outbound";
|
|
604
475
|
readonly content: import("./generated").JsonValue;
|
|
605
476
|
readonly metadata: {
|
|
606
477
|
readonly [x: string]: import("./generated").JsonValue;
|
|
607
478
|
} | null;
|
|
608
|
-
readonly status: "
|
|
479
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
609
480
|
readonly scheduledAt: string | null;
|
|
610
481
|
readonly tags: readonly string[];
|
|
611
482
|
readonly categories: readonly string[];
|
|
@@ -627,7 +498,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
627
498
|
readonly displayName: string | null;
|
|
628
499
|
readonly type: string;
|
|
629
500
|
readonly identities: readonly {
|
|
630
|
-
readonly channel: "
|
|
501
|
+
readonly channel: "email";
|
|
631
502
|
readonly identifier: string;
|
|
632
503
|
readonly verified: boolean;
|
|
633
504
|
}[];
|
|
@@ -638,7 +509,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
638
509
|
readonly displayName: string | null;
|
|
639
510
|
readonly type: string;
|
|
640
511
|
readonly identities: readonly {
|
|
641
|
-
readonly channel: "
|
|
512
|
+
readonly channel: "email";
|
|
642
513
|
readonly identifier: string;
|
|
643
514
|
readonly verified: boolean;
|
|
644
515
|
}[];
|
|
@@ -649,9 +520,9 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
649
520
|
readonly actorId: string | null;
|
|
650
521
|
readonly contactId: string | null;
|
|
651
522
|
readonly identityId: string | null;
|
|
652
|
-
readonly kind: "
|
|
523
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
653
524
|
readonly address: string;
|
|
654
|
-
readonly status: "
|
|
525
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
655
526
|
readonly createdAt: string;
|
|
656
527
|
readonly updatedAt: string;
|
|
657
528
|
readonly contact: {
|
|
@@ -660,7 +531,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
660
531
|
readonly displayName: string | null;
|
|
661
532
|
readonly type: string;
|
|
662
533
|
readonly identities: readonly {
|
|
663
|
-
readonly channel: "
|
|
534
|
+
readonly channel: "email";
|
|
664
535
|
readonly identifier: string;
|
|
665
536
|
readonly verified: boolean;
|
|
666
537
|
}[];
|
|
@@ -670,8 +541,8 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
670
541
|
readonly id: string;
|
|
671
542
|
readonly messageId: string;
|
|
672
543
|
readonly recipientId: string | null;
|
|
673
|
-
readonly channel: "
|
|
674
|
-
readonly status: "
|
|
544
|
+
readonly channel: "email";
|
|
545
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
675
546
|
readonly attemptCount: number;
|
|
676
547
|
readonly maxAttempts: number;
|
|
677
548
|
readonly queuedAt: string | null;
|
|
@@ -718,7 +589,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
718
589
|
readonly spfVerdict: string | null;
|
|
719
590
|
readonly dmarcVerdict: string | null;
|
|
720
591
|
readonly isAutoReply: boolean;
|
|
721
|
-
readonly autoReplyReason: "
|
|
592
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
722
593
|
readonly priority: string | null;
|
|
723
594
|
readonly parsingErrors: readonly string[] | null;
|
|
724
595
|
readonly parsingDuration: number | null;
|
|
@@ -727,51 +598,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
727
598
|
readonly createdAt: string;
|
|
728
599
|
readonly updatedAt: string;
|
|
729
600
|
}[];
|
|
730
|
-
|
|
731
|
-
readonly deliveryId: string;
|
|
732
|
-
readonly fromNumber: string;
|
|
733
|
-
readonly toNumber: string;
|
|
734
|
-
readonly segmentCount: number;
|
|
735
|
-
readonly encoding: string;
|
|
736
|
-
readonly dltTemplateId: string | null;
|
|
737
|
-
readonly dltEntityId: string | null;
|
|
738
|
-
readonly dltContentId: string | null;
|
|
739
|
-
readonly carrier: string | null;
|
|
740
|
-
readonly numSegmentsReported: number | null;
|
|
741
|
-
readonly createdAt: string;
|
|
742
|
-
readonly updatedAt: string;
|
|
743
|
-
}[];
|
|
744
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
745
|
-
readonly deliveryId: string;
|
|
746
|
-
readonly fromNumber: string;
|
|
747
|
-
readonly toNumber: string;
|
|
748
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
749
|
-
readonly templateName: string | null;
|
|
750
|
-
readonly templateLanguage: string | null;
|
|
751
|
-
readonly templateCategory: string | null;
|
|
752
|
-
readonly templateParams: {
|
|
753
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
754
|
-
} | null;
|
|
755
|
-
readonly mediaUrl: string | null;
|
|
756
|
-
readonly mediaType: string | null;
|
|
757
|
-
readonly mediaS3Key: string | null;
|
|
758
|
-
readonly interactiveType: string | null;
|
|
759
|
-
readonly contextMessageId: string | null;
|
|
760
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
761
|
-
readonly serviceWindowId: string | null;
|
|
762
|
-
readonly freeEntryPointId: string | null;
|
|
763
|
-
readonly isBillable: boolean;
|
|
764
|
-
readonly pricing: {
|
|
765
|
-
readonly messageCost: string;
|
|
766
|
-
readonly reason: string;
|
|
767
|
-
readonly sentInServiceWindow: boolean;
|
|
768
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
769
|
-
} | null;
|
|
770
|
-
readonly recipientId: string | null;
|
|
771
|
-
readonly createdAt: string;
|
|
772
|
-
readonly updatedAt: string;
|
|
773
|
-
}[];
|
|
774
|
-
}, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
601
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError, import("./client").Service>;
|
|
775
602
|
export declare const get: (input: {
|
|
776
603
|
readonly id: string;
|
|
777
604
|
}) => import("effect/Effect").Effect<{
|
|
@@ -783,13 +610,13 @@ export declare const get: (input: {
|
|
|
783
610
|
readonly actorMetadata: {
|
|
784
611
|
readonly [x: string]: import("./generated").JsonValue;
|
|
785
612
|
} | null;
|
|
786
|
-
readonly channel: "
|
|
787
|
-
readonly direction: "
|
|
613
|
+
readonly channel: "email";
|
|
614
|
+
readonly direction: "inbound" | "outbound";
|
|
788
615
|
readonly content: import("./generated").JsonValue;
|
|
789
616
|
readonly metadata: {
|
|
790
617
|
readonly [x: string]: import("./generated").JsonValue;
|
|
791
618
|
} | null;
|
|
792
|
-
readonly status: "
|
|
619
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
793
620
|
readonly scheduledAt: string | null;
|
|
794
621
|
readonly tags: readonly string[];
|
|
795
622
|
readonly categories: readonly string[];
|
|
@@ -811,7 +638,7 @@ export declare const get: (input: {
|
|
|
811
638
|
readonly displayName: string | null;
|
|
812
639
|
readonly type: string;
|
|
813
640
|
readonly identities: readonly {
|
|
814
|
-
readonly channel: "
|
|
641
|
+
readonly channel: "email";
|
|
815
642
|
readonly identifier: string;
|
|
816
643
|
readonly verified: boolean;
|
|
817
644
|
}[];
|
|
@@ -822,7 +649,7 @@ export declare const get: (input: {
|
|
|
822
649
|
readonly displayName: string | null;
|
|
823
650
|
readonly type: string;
|
|
824
651
|
readonly identities: readonly {
|
|
825
|
-
readonly channel: "
|
|
652
|
+
readonly channel: "email";
|
|
826
653
|
readonly identifier: string;
|
|
827
654
|
readonly verified: boolean;
|
|
828
655
|
}[];
|
|
@@ -833,9 +660,9 @@ export declare const get: (input: {
|
|
|
833
660
|
readonly actorId: string | null;
|
|
834
661
|
readonly contactId: string | null;
|
|
835
662
|
readonly identityId: string | null;
|
|
836
|
-
readonly kind: "
|
|
663
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
837
664
|
readonly address: string;
|
|
838
|
-
readonly status: "
|
|
665
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
839
666
|
readonly createdAt: string;
|
|
840
667
|
readonly updatedAt: string;
|
|
841
668
|
readonly contact: {
|
|
@@ -844,7 +671,7 @@ export declare const get: (input: {
|
|
|
844
671
|
readonly displayName: string | null;
|
|
845
672
|
readonly type: string;
|
|
846
673
|
readonly identities: readonly {
|
|
847
|
-
readonly channel: "
|
|
674
|
+
readonly channel: "email";
|
|
848
675
|
readonly identifier: string;
|
|
849
676
|
readonly verified: boolean;
|
|
850
677
|
}[];
|
|
@@ -854,8 +681,8 @@ export declare const get: (input: {
|
|
|
854
681
|
readonly id: string;
|
|
855
682
|
readonly messageId: string;
|
|
856
683
|
readonly recipientId: string | null;
|
|
857
|
-
readonly channel: "
|
|
858
|
-
readonly status: "
|
|
684
|
+
readonly channel: "email";
|
|
685
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
859
686
|
readonly attemptCount: number;
|
|
860
687
|
readonly maxAttempts: number;
|
|
861
688
|
readonly queuedAt: string | null;
|
|
@@ -902,7 +729,7 @@ export declare const get: (input: {
|
|
|
902
729
|
readonly spfVerdict: string | null;
|
|
903
730
|
readonly dmarcVerdict: string | null;
|
|
904
731
|
readonly isAutoReply: boolean;
|
|
905
|
-
readonly autoReplyReason: "
|
|
732
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
906
733
|
readonly priority: string | null;
|
|
907
734
|
readonly parsingErrors: readonly string[] | null;
|
|
908
735
|
readonly parsingDuration: number | null;
|
|
@@ -911,51 +738,7 @@ export declare const get: (input: {
|
|
|
911
738
|
readonly createdAt: string;
|
|
912
739
|
readonly updatedAt: string;
|
|
913
740
|
}[];
|
|
914
|
-
|
|
915
|
-
readonly deliveryId: string;
|
|
916
|
-
readonly fromNumber: string;
|
|
917
|
-
readonly toNumber: string;
|
|
918
|
-
readonly segmentCount: number;
|
|
919
|
-
readonly encoding: string;
|
|
920
|
-
readonly dltTemplateId: string | null;
|
|
921
|
-
readonly dltEntityId: string | null;
|
|
922
|
-
readonly dltContentId: string | null;
|
|
923
|
-
readonly carrier: string | null;
|
|
924
|
-
readonly numSegmentsReported: number | null;
|
|
925
|
-
readonly createdAt: string;
|
|
926
|
-
readonly updatedAt: string;
|
|
927
|
-
}[];
|
|
928
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
929
|
-
readonly deliveryId: string;
|
|
930
|
-
readonly fromNumber: string;
|
|
931
|
-
readonly toNumber: string;
|
|
932
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
933
|
-
readonly templateName: string | null;
|
|
934
|
-
readonly templateLanguage: string | null;
|
|
935
|
-
readonly templateCategory: string | null;
|
|
936
|
-
readonly templateParams: {
|
|
937
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
938
|
-
} | null;
|
|
939
|
-
readonly mediaUrl: string | null;
|
|
940
|
-
readonly mediaType: string | null;
|
|
941
|
-
readonly mediaS3Key: string | null;
|
|
942
|
-
readonly interactiveType: string | null;
|
|
943
|
-
readonly contextMessageId: string | null;
|
|
944
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
945
|
-
readonly serviceWindowId: string | null;
|
|
946
|
-
readonly freeEntryPointId: string | null;
|
|
947
|
-
readonly isBillable: boolean;
|
|
948
|
-
readonly pricing: {
|
|
949
|
-
readonly messageCost: string;
|
|
950
|
-
readonly reason: string;
|
|
951
|
-
readonly sentInServiceWindow: boolean;
|
|
952
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
953
|
-
} | null;
|
|
954
|
-
readonly recipientId: string | null;
|
|
955
|
-
readonly createdAt: string;
|
|
956
|
-
readonly updatedAt: string;
|
|
957
|
-
}[];
|
|
958
|
-
}, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
741
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
959
742
|
export declare const getEmail: (input: {
|
|
960
743
|
readonly id: string;
|
|
961
744
|
readonly includeS3Urls?: string | null | undefined;
|
|
@@ -964,9 +747,9 @@ export declare const getEmail: (input: {
|
|
|
964
747
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
965
748
|
readonly organizationId: string;
|
|
966
749
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
967
|
-
readonly status: "
|
|
968
|
-
readonly channel: "
|
|
969
|
-
readonly direction: "
|
|
750
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
751
|
+
readonly channel: "email";
|
|
752
|
+
readonly direction: "inbound" | "outbound";
|
|
970
753
|
readonly subject: string | null;
|
|
971
754
|
readonly fromEmail: string;
|
|
972
755
|
readonly fromName: string | null;
|
|
@@ -990,14 +773,14 @@ export declare const getEmail: (input: {
|
|
|
990
773
|
readonly newContent: string | null;
|
|
991
774
|
readonly quotedContent: string | null;
|
|
992
775
|
readonly hasQuotedContent: boolean;
|
|
993
|
-
readonly dkimVerdict: "
|
|
994
|
-
readonly spfVerdict: "
|
|
995
|
-
readonly dmarcVerdict: "
|
|
776
|
+
readonly dkimVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
777
|
+
readonly spfVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
778
|
+
readonly dmarcVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
996
779
|
readonly isAutoReply: boolean;
|
|
997
|
-
readonly autoReplyReason: "
|
|
780
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
998
781
|
readonly listUnsubscribeUrl: string | null;
|
|
999
782
|
readonly listUnsubscribeEmail: string | null;
|
|
1000
|
-
readonly priority: "
|
|
783
|
+
readonly priority: "high" | "low" | "normal" | null;
|
|
1001
784
|
readonly parsingErrors: readonly string[] | null;
|
|
1002
785
|
readonly parsingDuration: number | null;
|
|
1003
786
|
readonly hasAttachments: boolean;
|
|
@@ -1019,29 +802,29 @@ export declare const getEmail: (input: {
|
|
|
1019
802
|
readonly createdAt: string;
|
|
1020
803
|
readonly receivedAt: string | null;
|
|
1021
804
|
readonly processedAt: string | null;
|
|
1022
|
-
}, import("
|
|
805
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1023
806
|
export declare const remove: (input: {
|
|
1024
807
|
readonly id: string;
|
|
1025
808
|
}) => import("effect/Effect").Effect<{
|
|
1026
809
|
readonly success: boolean;
|
|
1027
810
|
readonly message: string;
|
|
1028
|
-
}, import("
|
|
811
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1029
812
|
export declare const getStatus: (input: {
|
|
1030
813
|
readonly id: string;
|
|
1031
814
|
}) => import("effect/Effect").Effect<{
|
|
1032
815
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1033
|
-
readonly status: "
|
|
816
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
1034
817
|
readonly updatedAt: string;
|
|
1035
|
-
}, import("
|
|
818
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1036
819
|
export declare const getEvents: (input: {
|
|
1037
820
|
readonly id: string;
|
|
1038
821
|
}) => import("effect/Effect").Effect<readonly {
|
|
1039
822
|
readonly id: string & import("effect/Brand").Brand<"MessageEventId">;
|
|
1040
|
-
readonly status: string;
|
|
1041
823
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1042
|
-
readonly timestamp: string;
|
|
1043
824
|
readonly eventType: string;
|
|
825
|
+
readonly status: string;
|
|
826
|
+
readonly timestamp: string;
|
|
1044
827
|
readonly metadata?: {
|
|
1045
828
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1046
829
|
} | null;
|
|
1047
|
-
}[], import("
|
|
830
|
+
}[], import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|