samva 0.50.0 → 0.51.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 +44 -3
- package/README.md +136 -7
- package/dist/client/sdk.gen.d.ts +12 -11
- package/dist/client/sdk.gen.js +1399 -940
- package/dist/client/types.gen.d.ts +21 -10
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +166 -174
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +0 -62
- package/dist/effect/generated/campaigns.js +3 -9
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +3 -2
- package/dist/effect/generated/mailboxes.js +6 -6
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +1 -3
- package/dist/effect/generated/shared.d.ts +1 -0
- package/dist/effect/generated/shared.js +2 -1
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations.d.ts +2 -2
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +10 -2
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +152 -152
- package/dist/effect/mailboxes.d.ts +28 -28
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +5 -0
- package/dist/promises/client.js +12 -8
- package/dist/promises/errors.gen.d.ts +12 -1
- package/dist/promises/errors.gen.js +21 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/package.json +2 -2
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
export declare const preview: (input: {
|
|
2
2
|
readonly content: {
|
|
3
|
-
readonly channel: "
|
|
4
|
-
readonly
|
|
3
|
+
readonly channel: "email";
|
|
4
|
+
readonly email: {
|
|
5
|
+
readonly subject?: string | null | undefined;
|
|
6
|
+
readonly html?: string | null | undefined;
|
|
5
7
|
readonly text?: string | null | undefined;
|
|
8
|
+
readonly attachments?: readonly {
|
|
9
|
+
readonly filename: string;
|
|
10
|
+
readonly content?: string | null | undefined;
|
|
11
|
+
readonly mediaId?: string | null | undefined;
|
|
12
|
+
readonly contentType: string;
|
|
13
|
+
readonly size: number;
|
|
14
|
+
}[] | null | undefined;
|
|
15
|
+
readonly publicationId?: string | undefined;
|
|
16
|
+
readonly inputContractId?: string | undefined;
|
|
6
17
|
readonly templateId?: string | null | undefined;
|
|
7
18
|
readonly templateSlug?: string | null | undefined;
|
|
8
19
|
readonly templateData?: {
|
|
@@ -32,7 +43,32 @@ export declare const preview: (input: {
|
|
|
32
43
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
33
44
|
} | null | undefined;
|
|
34
45
|
} | null | undefined;
|
|
46
|
+
readonly locale?: string | undefined;
|
|
47
|
+
readonly timeZone?: string | undefined;
|
|
48
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
49
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
50
|
+
readonly topicId?: string | null | undefined;
|
|
51
|
+
readonly tracking?: {
|
|
52
|
+
readonly opens?: boolean | undefined;
|
|
53
|
+
readonly clicks?: boolean | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
readonly footer?: {
|
|
56
|
+
readonly enabled?: boolean | null | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
readonly headers?: {
|
|
59
|
+
readonly [x: string]: string | undefined;
|
|
60
|
+
} | null | undefined;
|
|
61
|
+
readonly preheader?: string | null | undefined;
|
|
35
62
|
};
|
|
63
|
+
readonly issue?: {
|
|
64
|
+
readonly path: string;
|
|
65
|
+
readonly commit: string;
|
|
66
|
+
} | null | undefined;
|
|
67
|
+
readonly from?: {
|
|
68
|
+
readonly email: string;
|
|
69
|
+
readonly name?: string | null | undefined;
|
|
70
|
+
} | null | undefined;
|
|
71
|
+
readonly replyMailboxId?: string | null | undefined;
|
|
36
72
|
readonly conversationId?: string | null | undefined;
|
|
37
73
|
readonly metadata?: {
|
|
38
74
|
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 | any | {
|
|
@@ -62,20 +98,9 @@ export declare const preview: (input: {
|
|
|
62
98
|
} | null | undefined;
|
|
63
99
|
} | null | undefined;
|
|
64
100
|
} | {
|
|
65
|
-
readonly channel: "
|
|
66
|
-
readonly
|
|
67
|
-
readonly subject?: string | null | undefined;
|
|
68
|
-
readonly html?: string | null | undefined;
|
|
101
|
+
readonly channel: "sms";
|
|
102
|
+
readonly sms: {
|
|
69
103
|
readonly text?: string | null | undefined;
|
|
70
|
-
readonly attachments?: readonly {
|
|
71
|
-
readonly filename: string;
|
|
72
|
-
readonly content?: string | null | undefined;
|
|
73
|
-
readonly mediaId?: string | null | undefined;
|
|
74
|
-
readonly contentType: string;
|
|
75
|
-
readonly size: number;
|
|
76
|
-
}[] | null | undefined;
|
|
77
|
-
readonly publicationId?: string | undefined;
|
|
78
|
-
readonly inputContractId?: string | undefined;
|
|
79
104
|
readonly templateId?: string | null | undefined;
|
|
80
105
|
readonly templateSlug?: string | null | undefined;
|
|
81
106
|
readonly templateData?: {
|
|
@@ -105,32 +130,7 @@ export declare const preview: (input: {
|
|
|
105
130
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
106
131
|
} | null | undefined;
|
|
107
132
|
} | null | undefined;
|
|
108
|
-
readonly locale?: string | undefined;
|
|
109
|
-
readonly timeZone?: string | undefined;
|
|
110
|
-
readonly inReplyToMessageId?: string | null | undefined;
|
|
111
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
112
|
-
readonly topicId?: string | null | undefined;
|
|
113
|
-
readonly tracking?: {
|
|
114
|
-
readonly opens?: boolean | undefined;
|
|
115
|
-
readonly clicks?: boolean | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
readonly footer?: {
|
|
118
|
-
readonly enabled?: boolean | null | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
readonly headers?: {
|
|
121
|
-
readonly [x: string]: string | undefined;
|
|
122
|
-
} | null | undefined;
|
|
123
|
-
readonly preheader?: string | null | undefined;
|
|
124
133
|
};
|
|
125
|
-
readonly issue?: {
|
|
126
|
-
readonly path: string;
|
|
127
|
-
readonly commit: string;
|
|
128
|
-
} | null | undefined;
|
|
129
|
-
readonly from?: {
|
|
130
|
-
readonly email: string;
|
|
131
|
-
readonly name?: string | null | undefined;
|
|
132
|
-
} | null | undefined;
|
|
133
|
-
readonly replyMailboxId?: string | null | undefined;
|
|
134
134
|
readonly conversationId?: string | null | undefined;
|
|
135
135
|
readonly metadata?: {
|
|
136
136
|
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 | any | {
|
|
@@ -239,9 +239,20 @@ export declare const preview: (input: {
|
|
|
239
239
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsPreview">;
|
|
240
240
|
export declare const sendTest: (input: {
|
|
241
241
|
readonly content: {
|
|
242
|
-
readonly channel: "
|
|
243
|
-
readonly
|
|
242
|
+
readonly channel: "email";
|
|
243
|
+
readonly email: {
|
|
244
|
+
readonly subject?: string | null | undefined;
|
|
245
|
+
readonly html?: string | null | undefined;
|
|
244
246
|
readonly text?: string | null | undefined;
|
|
247
|
+
readonly attachments?: readonly {
|
|
248
|
+
readonly filename: string;
|
|
249
|
+
readonly content?: string | null | undefined;
|
|
250
|
+
readonly mediaId?: string | null | undefined;
|
|
251
|
+
readonly contentType: string;
|
|
252
|
+
readonly size: number;
|
|
253
|
+
}[] | null | undefined;
|
|
254
|
+
readonly publicationId?: string | undefined;
|
|
255
|
+
readonly inputContractId?: string | undefined;
|
|
245
256
|
readonly templateId?: string | null | undefined;
|
|
246
257
|
readonly templateSlug?: string | null | undefined;
|
|
247
258
|
readonly templateData?: {
|
|
@@ -271,7 +282,32 @@ export declare const sendTest: (input: {
|
|
|
271
282
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
272
283
|
} | null | undefined;
|
|
273
284
|
} | null | undefined;
|
|
285
|
+
readonly locale?: string | undefined;
|
|
286
|
+
readonly timeZone?: string | undefined;
|
|
287
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
288
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
289
|
+
readonly topicId?: string | null | undefined;
|
|
290
|
+
readonly tracking?: {
|
|
291
|
+
readonly opens?: boolean | undefined;
|
|
292
|
+
readonly clicks?: boolean | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
readonly footer?: {
|
|
295
|
+
readonly enabled?: boolean | null | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
readonly headers?: {
|
|
298
|
+
readonly [x: string]: string | undefined;
|
|
299
|
+
} | null | undefined;
|
|
300
|
+
readonly preheader?: string | null | undefined;
|
|
274
301
|
};
|
|
302
|
+
readonly issue?: {
|
|
303
|
+
readonly path: string;
|
|
304
|
+
readonly commit: string;
|
|
305
|
+
} | null | undefined;
|
|
306
|
+
readonly from?: {
|
|
307
|
+
readonly email: string;
|
|
308
|
+
readonly name?: string | null | undefined;
|
|
309
|
+
} | null | undefined;
|
|
310
|
+
readonly replyMailboxId?: string | null | undefined;
|
|
275
311
|
readonly conversationId?: string | null | undefined;
|
|
276
312
|
readonly metadata?: {
|
|
277
313
|
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 | any | {
|
|
@@ -301,20 +337,9 @@ export declare const sendTest: (input: {
|
|
|
301
337
|
} | null | undefined;
|
|
302
338
|
} | null | undefined;
|
|
303
339
|
} | {
|
|
304
|
-
readonly channel: "
|
|
305
|
-
readonly
|
|
306
|
-
readonly subject?: string | null | undefined;
|
|
307
|
-
readonly html?: string | null | undefined;
|
|
340
|
+
readonly channel: "sms";
|
|
341
|
+
readonly sms: {
|
|
308
342
|
readonly text?: string | null | undefined;
|
|
309
|
-
readonly attachments?: readonly {
|
|
310
|
-
readonly filename: string;
|
|
311
|
-
readonly content?: string | null | undefined;
|
|
312
|
-
readonly mediaId?: string | null | undefined;
|
|
313
|
-
readonly contentType: string;
|
|
314
|
-
readonly size: number;
|
|
315
|
-
}[] | null | undefined;
|
|
316
|
-
readonly publicationId?: string | undefined;
|
|
317
|
-
readonly inputContractId?: string | undefined;
|
|
318
343
|
readonly templateId?: string | null | undefined;
|
|
319
344
|
readonly templateSlug?: string | null | undefined;
|
|
320
345
|
readonly templateData?: {
|
|
@@ -344,32 +369,7 @@ export declare const sendTest: (input: {
|
|
|
344
369
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
345
370
|
} | null | undefined;
|
|
346
371
|
} | null | undefined;
|
|
347
|
-
readonly locale?: string | undefined;
|
|
348
|
-
readonly timeZone?: string | undefined;
|
|
349
|
-
readonly inReplyToMessageId?: string | null | undefined;
|
|
350
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
351
|
-
readonly topicId?: string | null | undefined;
|
|
352
|
-
readonly tracking?: {
|
|
353
|
-
readonly opens?: boolean | undefined;
|
|
354
|
-
readonly clicks?: boolean | undefined;
|
|
355
|
-
} | undefined;
|
|
356
|
-
readonly footer?: {
|
|
357
|
-
readonly enabled?: boolean | null | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
readonly headers?: {
|
|
360
|
-
readonly [x: string]: string | undefined;
|
|
361
|
-
} | null | undefined;
|
|
362
|
-
readonly preheader?: string | null | undefined;
|
|
363
372
|
};
|
|
364
|
-
readonly issue?: {
|
|
365
|
-
readonly path: string;
|
|
366
|
-
readonly commit: string;
|
|
367
|
-
} | null | undefined;
|
|
368
|
-
readonly from?: {
|
|
369
|
-
readonly email: string;
|
|
370
|
-
readonly name?: string | null | undefined;
|
|
371
|
-
} | null | undefined;
|
|
372
|
-
readonly replyMailboxId?: string | null | undefined;
|
|
373
373
|
readonly conversationId?: string | null | undefined;
|
|
374
374
|
readonly metadata?: {
|
|
375
375
|
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 | any | {
|
|
@@ -480,9 +480,20 @@ export declare const create: (input: {
|
|
|
480
480
|
readonly name: string;
|
|
481
481
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
482
482
|
readonly content: {
|
|
483
|
-
readonly channel: "
|
|
484
|
-
readonly
|
|
483
|
+
readonly channel: "email";
|
|
484
|
+
readonly email: {
|
|
485
|
+
readonly subject?: string | null | undefined;
|
|
486
|
+
readonly html?: string | null | undefined;
|
|
485
487
|
readonly text?: string | null | undefined;
|
|
488
|
+
readonly attachments?: readonly {
|
|
489
|
+
readonly filename: string;
|
|
490
|
+
readonly content?: string | null | undefined;
|
|
491
|
+
readonly mediaId?: string | null | undefined;
|
|
492
|
+
readonly contentType: string;
|
|
493
|
+
readonly size: number;
|
|
494
|
+
}[] | null | undefined;
|
|
495
|
+
readonly publicationId?: string | undefined;
|
|
496
|
+
readonly inputContractId?: string | undefined;
|
|
486
497
|
readonly templateId?: string | null | undefined;
|
|
487
498
|
readonly templateSlug?: string | null | undefined;
|
|
488
499
|
readonly templateData?: {
|
|
@@ -512,7 +523,32 @@ export declare const create: (input: {
|
|
|
512
523
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
513
524
|
} | null | undefined;
|
|
514
525
|
} | null | undefined;
|
|
526
|
+
readonly locale?: string | undefined;
|
|
527
|
+
readonly timeZone?: string | undefined;
|
|
528
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
529
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
530
|
+
readonly topicId?: string | null | undefined;
|
|
531
|
+
readonly tracking?: {
|
|
532
|
+
readonly opens?: boolean | undefined;
|
|
533
|
+
readonly clicks?: boolean | undefined;
|
|
534
|
+
} | undefined;
|
|
535
|
+
readonly footer?: {
|
|
536
|
+
readonly enabled?: boolean | null | undefined;
|
|
537
|
+
} | undefined;
|
|
538
|
+
readonly headers?: {
|
|
539
|
+
readonly [x: string]: string | undefined;
|
|
540
|
+
} | null | undefined;
|
|
541
|
+
readonly preheader?: string | null | undefined;
|
|
515
542
|
};
|
|
543
|
+
readonly issue?: {
|
|
544
|
+
readonly path: string;
|
|
545
|
+
readonly commit: string;
|
|
546
|
+
} | null | undefined;
|
|
547
|
+
readonly from?: {
|
|
548
|
+
readonly email: string;
|
|
549
|
+
readonly name?: string | null | undefined;
|
|
550
|
+
} | null | undefined;
|
|
551
|
+
readonly replyMailboxId?: string | null | undefined;
|
|
516
552
|
readonly conversationId?: string | null | undefined;
|
|
517
553
|
readonly metadata?: {
|
|
518
554
|
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 | any | {
|
|
@@ -542,20 +578,9 @@ export declare const create: (input: {
|
|
|
542
578
|
} | null | undefined;
|
|
543
579
|
} | null | undefined;
|
|
544
580
|
} | {
|
|
545
|
-
readonly channel: "
|
|
546
|
-
readonly
|
|
547
|
-
readonly subject?: string | null | undefined;
|
|
548
|
-
readonly html?: string | null | undefined;
|
|
581
|
+
readonly channel: "sms";
|
|
582
|
+
readonly sms: {
|
|
549
583
|
readonly text?: string | null | undefined;
|
|
550
|
-
readonly attachments?: readonly {
|
|
551
|
-
readonly filename: string;
|
|
552
|
-
readonly content?: string | null | undefined;
|
|
553
|
-
readonly mediaId?: string | null | undefined;
|
|
554
|
-
readonly contentType: string;
|
|
555
|
-
readonly size: number;
|
|
556
|
-
}[] | null | undefined;
|
|
557
|
-
readonly publicationId?: string | undefined;
|
|
558
|
-
readonly inputContractId?: string | undefined;
|
|
559
584
|
readonly templateId?: string | null | undefined;
|
|
560
585
|
readonly templateSlug?: string | null | undefined;
|
|
561
586
|
readonly templateData?: {
|
|
@@ -585,32 +610,7 @@ export declare const create: (input: {
|
|
|
585
610
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
586
611
|
} | null | undefined;
|
|
587
612
|
} | null | undefined;
|
|
588
|
-
readonly locale?: string | undefined;
|
|
589
|
-
readonly timeZone?: string | undefined;
|
|
590
|
-
readonly inReplyToMessageId?: string | null | undefined;
|
|
591
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
592
|
-
readonly topicId?: string | null | undefined;
|
|
593
|
-
readonly tracking?: {
|
|
594
|
-
readonly opens?: boolean | undefined;
|
|
595
|
-
readonly clicks?: boolean | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
readonly footer?: {
|
|
598
|
-
readonly enabled?: boolean | null | undefined;
|
|
599
|
-
} | undefined;
|
|
600
|
-
readonly headers?: {
|
|
601
|
-
readonly [x: string]: string | undefined;
|
|
602
|
-
} | null | undefined;
|
|
603
|
-
readonly preheader?: string | null | undefined;
|
|
604
613
|
};
|
|
605
|
-
readonly issue?: {
|
|
606
|
-
readonly path: string;
|
|
607
|
-
readonly commit: string;
|
|
608
|
-
} | null | undefined;
|
|
609
|
-
readonly from?: {
|
|
610
|
-
readonly email: string;
|
|
611
|
-
readonly name?: string | null | undefined;
|
|
612
|
-
} | null | undefined;
|
|
613
|
-
readonly replyMailboxId?: string | null | undefined;
|
|
614
614
|
readonly conversationId?: string | null | undefined;
|
|
615
615
|
readonly metadata?: {
|
|
616
616
|
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 | any | {
|
|
@@ -845,14 +845,12 @@ export declare const list: ((input?: {
|
|
|
845
845
|
readonly estimatedCompletionAt: string | null;
|
|
846
846
|
} | null;
|
|
847
847
|
readonly createdBy: string | null;
|
|
848
|
-
readonly actorEmail: string;
|
|
849
|
-
readonly memberRole: string;
|
|
850
848
|
readonly createdAt: string;
|
|
851
849
|
readonly updatedAt: string;
|
|
852
850
|
readonly series: readonly number[];
|
|
853
851
|
}[];
|
|
854
852
|
readonly nextCursor: string | null;
|
|
855
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
853
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
856
854
|
readonly items: (input?: {
|
|
857
855
|
readonly status?: "archived" | "draft" | undefined;
|
|
858
856
|
readonly limit?: number | null | undefined;
|
|
@@ -973,12 +971,10 @@ export declare const list: ((input?: {
|
|
|
973
971
|
readonly estimatedCompletionAt: string | null;
|
|
974
972
|
} | null;
|
|
975
973
|
readonly createdBy: string | null;
|
|
976
|
-
readonly actorEmail: string;
|
|
977
|
-
readonly memberRole: string;
|
|
978
974
|
readonly createdAt: string;
|
|
979
975
|
readonly updatedAt: string;
|
|
980
976
|
readonly series: readonly number[];
|
|
981
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
977
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
982
978
|
};
|
|
983
979
|
export declare const get: (input: {
|
|
984
980
|
readonly id: string;
|
|
@@ -987,9 +983,20 @@ export declare const update: (input: {
|
|
|
987
983
|
readonly id: string;
|
|
988
984
|
readonly name?: string | null | undefined;
|
|
989
985
|
readonly content?: {
|
|
990
|
-
readonly channel: "
|
|
991
|
-
readonly
|
|
986
|
+
readonly channel: "email";
|
|
987
|
+
readonly email: {
|
|
988
|
+
readonly subject?: string | null | undefined;
|
|
989
|
+
readonly html?: string | null | undefined;
|
|
992
990
|
readonly text?: string | null | undefined;
|
|
991
|
+
readonly attachments?: readonly {
|
|
992
|
+
readonly filename: string;
|
|
993
|
+
readonly content?: string | null | undefined;
|
|
994
|
+
readonly mediaId?: string | null | undefined;
|
|
995
|
+
readonly contentType: string;
|
|
996
|
+
readonly size: number;
|
|
997
|
+
}[] | null | undefined;
|
|
998
|
+
readonly publicationId?: string | undefined;
|
|
999
|
+
readonly inputContractId?: string | undefined;
|
|
993
1000
|
readonly templateId?: string | null | undefined;
|
|
994
1001
|
readonly templateSlug?: string | null | undefined;
|
|
995
1002
|
readonly templateData?: {
|
|
@@ -1019,7 +1026,32 @@ export declare const update: (input: {
|
|
|
1019
1026
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1020
1027
|
} | null | undefined;
|
|
1021
1028
|
} | null | undefined;
|
|
1029
|
+
readonly locale?: string | undefined;
|
|
1030
|
+
readonly timeZone?: string | undefined;
|
|
1031
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
1032
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
1033
|
+
readonly topicId?: string | null | undefined;
|
|
1034
|
+
readonly tracking?: {
|
|
1035
|
+
readonly opens?: boolean | undefined;
|
|
1036
|
+
readonly clicks?: boolean | undefined;
|
|
1037
|
+
} | undefined;
|
|
1038
|
+
readonly footer?: {
|
|
1039
|
+
readonly enabled?: boolean | null | undefined;
|
|
1040
|
+
} | undefined;
|
|
1041
|
+
readonly headers?: {
|
|
1042
|
+
readonly [x: string]: string | undefined;
|
|
1043
|
+
} | null | undefined;
|
|
1044
|
+
readonly preheader?: string | null | undefined;
|
|
1022
1045
|
};
|
|
1046
|
+
readonly issue?: {
|
|
1047
|
+
readonly path: string;
|
|
1048
|
+
readonly commit: string;
|
|
1049
|
+
} | null | undefined;
|
|
1050
|
+
readonly from?: {
|
|
1051
|
+
readonly email: string;
|
|
1052
|
+
readonly name?: string | null | undefined;
|
|
1053
|
+
} | null | undefined;
|
|
1054
|
+
readonly replyMailboxId?: string | null | undefined;
|
|
1023
1055
|
readonly conversationId?: string | null | undefined;
|
|
1024
1056
|
readonly metadata?: {
|
|
1025
1057
|
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 | any | {
|
|
@@ -1049,20 +1081,9 @@ export declare const update: (input: {
|
|
|
1049
1081
|
} | null | undefined;
|
|
1050
1082
|
} | null | undefined;
|
|
1051
1083
|
} | {
|
|
1052
|
-
readonly channel: "
|
|
1053
|
-
readonly
|
|
1054
|
-
readonly subject?: string | null | undefined;
|
|
1055
|
-
readonly html?: string | null | undefined;
|
|
1084
|
+
readonly channel: "sms";
|
|
1085
|
+
readonly sms: {
|
|
1056
1086
|
readonly text?: string | null | undefined;
|
|
1057
|
-
readonly attachments?: readonly {
|
|
1058
|
-
readonly filename: string;
|
|
1059
|
-
readonly content?: string | null | undefined;
|
|
1060
|
-
readonly mediaId?: string | null | undefined;
|
|
1061
|
-
readonly contentType: string;
|
|
1062
|
-
readonly size: number;
|
|
1063
|
-
}[] | null | undefined;
|
|
1064
|
-
readonly publicationId?: string | undefined;
|
|
1065
|
-
readonly inputContractId?: string | undefined;
|
|
1066
1087
|
readonly templateId?: string | null | undefined;
|
|
1067
1088
|
readonly templateSlug?: string | null | undefined;
|
|
1068
1089
|
readonly templateData?: {
|
|
@@ -1092,32 +1113,7 @@ export declare const update: (input: {
|
|
|
1092
1113
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1093
1114
|
} | null | undefined;
|
|
1094
1115
|
} | null | undefined;
|
|
1095
|
-
readonly locale?: string | undefined;
|
|
1096
|
-
readonly timeZone?: string | undefined;
|
|
1097
|
-
readonly inReplyToMessageId?: string | null | undefined;
|
|
1098
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
1099
|
-
readonly topicId?: string | null | undefined;
|
|
1100
|
-
readonly tracking?: {
|
|
1101
|
-
readonly opens?: boolean | undefined;
|
|
1102
|
-
readonly clicks?: boolean | undefined;
|
|
1103
|
-
} | undefined;
|
|
1104
|
-
readonly footer?: {
|
|
1105
|
-
readonly enabled?: boolean | null | undefined;
|
|
1106
|
-
} | undefined;
|
|
1107
|
-
readonly headers?: {
|
|
1108
|
-
readonly [x: string]: string | undefined;
|
|
1109
|
-
} | null | undefined;
|
|
1110
|
-
readonly preheader?: string | null | undefined;
|
|
1111
1116
|
};
|
|
1112
|
-
readonly issue?: {
|
|
1113
|
-
readonly path: string;
|
|
1114
|
-
readonly commit: string;
|
|
1115
|
-
} | null | undefined;
|
|
1116
|
-
readonly from?: {
|
|
1117
|
-
readonly email: string;
|
|
1118
|
-
readonly name?: string | null | undefined;
|
|
1119
|
-
} | null | undefined;
|
|
1120
|
-
readonly replyMailboxId?: string | null | undefined;
|
|
1121
1117
|
readonly conversationId?: string | null | undefined;
|
|
1122
1118
|
readonly metadata?: {
|
|
1123
1119
|
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 | any | {
|
|
@@ -1365,13 +1361,11 @@ export declare const listRuns: ((input: {
|
|
|
1365
1361
|
readonly capacityWarning: string | null;
|
|
1366
1362
|
readonly lastContactId: string | null;
|
|
1367
1363
|
readonly createdBy: string | null;
|
|
1368
|
-
readonly actorEmail: string;
|
|
1369
|
-
readonly memberRole: string;
|
|
1370
1364
|
readonly createdAt: string;
|
|
1371
1365
|
readonly updatedAt: string;
|
|
1372
1366
|
}[];
|
|
1373
1367
|
readonly nextCursor: string | null;
|
|
1374
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1368
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1375
1369
|
readonly items: (input: {
|
|
1376
1370
|
readonly id: string;
|
|
1377
1371
|
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
|
|
@@ -1497,11 +1491,9 @@ export declare const listRuns: ((input: {
|
|
|
1497
1491
|
readonly capacityWarning: string | null;
|
|
1498
1492
|
readonly lastContactId: string | null;
|
|
1499
1493
|
readonly createdBy: string | null;
|
|
1500
|
-
readonly actorEmail: string;
|
|
1501
|
-
readonly memberRole: string;
|
|
1502
1494
|
readonly createdAt: string;
|
|
1503
1495
|
readonly updatedAt: string;
|
|
1504
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1496
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1505
1497
|
};
|
|
1506
1498
|
export declare const getRun: (input: {
|
|
1507
1499
|
readonly id: string;
|
|
@@ -1549,7 +1541,7 @@ export declare const listRecipients: ((input: {
|
|
|
1549
1541
|
readonly updatedAt: string;
|
|
1550
1542
|
}[];
|
|
1551
1543
|
readonly nextCursor: string | null;
|
|
1552
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1544
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1553
1545
|
readonly items: (input: {
|
|
1554
1546
|
readonly id: string;
|
|
1555
1547
|
readonly runId: string;
|
|
@@ -1566,5 +1558,5 @@ export declare const listRecipients: ((input: {
|
|
|
1566
1558
|
readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1567
1559
|
readonly createdAt: string;
|
|
1568
1560
|
readonly updatedAt: string;
|
|
1569
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1561
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1570
1562
|
};
|
|
@@ -57,9 +57,9 @@ export declare const isNotFoundError: (error: unknown) => error is ResourceNotFo
|
|
|
57
57
|
export declare const isConflictError: (error: unknown) => error is ConflictError;
|
|
58
58
|
export declare const isThrottlingError: (error: unknown) => error is CategoryHandlerError<"throttling">;
|
|
59
59
|
export declare const isBillingError: (error: unknown) => error is PaymentRequiredError;
|
|
60
|
-
/** True for transient failures, including raw request-transport errors. */
|
|
60
|
+
/** True for transient failures, including raw request-transport errors and attempt timeouts. */
|
|
61
61
|
export declare const isTransient: (error: unknown) => boolean;
|
|
62
|
-
/** True when an error is declared safe to retry (throttling / transient / transport). */
|
|
62
|
+
/** True when an error is declared safe to retry (throttling / transient / transport / timeout). */
|
|
63
63
|
export declare const isRetryable: (error: unknown) => boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Catch every error in `category`. The handler receives the category's error
|
|
@@ -50,10 +50,12 @@ const isRequestTransportError = (error) => {
|
|
|
50
50
|
const reason = error.reason;
|
|
51
51
|
return Predicate$1.isObject(reason) && Predicate$1.isTagged(reason, "TransportError");
|
|
52
52
|
};
|
|
53
|
-
/**
|
|
54
|
-
const
|
|
55
|
-
/** True
|
|
56
|
-
const
|
|
53
|
+
/** A request attempt that outlasted its `timeoutMs`; it fails like a lost response. */
|
|
54
|
+
const isAttemptTimeout = (error) => Predicate$1.isTagged(error, "SamvaTimeoutError");
|
|
55
|
+
/** True for transient failures, including raw request-transport errors and attempt timeouts. */
|
|
56
|
+
const isTransient = (error) => hasCategory(error, "transient") || isRequestTransportError(error) || isAttemptTimeout(error);
|
|
57
|
+
/** True when an error is declared safe to retry (throttling / transient / transport / timeout). */
|
|
58
|
+
const isRetryable = (error) => isRetryableError(error) || isRequestTransportError(error) || isAttemptTimeout(error);
|
|
57
59
|
/**
|
|
58
60
|
* Catch every error in `category`. The handler receives the category's error
|
|
59
61
|
* union — including reason- and retryability-based errors where their fields place them in the
|
|
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly updatedAt: string;
|
|
30
30
|
}[];
|
|
31
31
|
readonly nextCursor: string | null;
|
|
32
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
32
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
33
33
|
readonly items: (input?: {
|
|
34
34
|
readonly limit?: number | null | undefined;
|
|
35
35
|
readonly cursor?: string | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const list: ((input?: {
|
|
|
52
52
|
readonly isActive: boolean;
|
|
53
53
|
readonly createdAt: string;
|
|
54
54
|
readonly updatedAt: string;
|
|
55
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
55
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
56
56
|
};
|
|
57
57
|
export declare const create: (input: {
|
|
58
58
|
readonly name: string;
|
|
@@ -187,7 +187,7 @@ export declare const getMembers: ((input: {
|
|
|
187
187
|
} | null;
|
|
188
188
|
}[];
|
|
189
189
|
readonly nextCursor: string | null;
|
|
190
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
190
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
191
191
|
readonly items: (input: {
|
|
192
192
|
readonly id: string;
|
|
193
193
|
readonly limit?: number | null | undefined;
|
|
@@ -225,7 +225,7 @@ export declare const getMembers: ((input: {
|
|
|
225
225
|
}[];
|
|
226
226
|
}[] | null;
|
|
227
227
|
} | null;
|
|
228
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
228
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
229
229
|
};
|
|
230
230
|
export declare const evaluateDynamic: (input: {
|
|
231
231
|
readonly id: string;
|