samva 0.2.0 → 0.3.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.
Files changed (47) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +10 -3
  3. package/dist/client/sdk.gen.d.ts +232 -23
  4. package/dist/client/types.gen.d.ts +693 -352
  5. package/dist/{client-BqkU-sFv.js → client-BOghX8fr.js} +1530 -1532
  6. package/dist/effect/api-keys.d.ts +14 -14
  7. package/dist/effect/api-keys.js +1 -1
  8. package/dist/effect/campaigns.d.ts +134 -853
  9. package/dist/effect/campaigns.js +1 -1
  10. package/dist/effect/categories.d.ts +1 -1
  11. package/dist/effect/client.js +1 -1
  12. package/dist/effect/contacts.d.ts +123 -145
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +128 -260
  15. package/dist/effect/conversations.js +1 -1
  16. package/dist/effect/design.d.ts +11 -11
  17. package/dist/effect/design.js +1 -1
  18. package/dist/effect/email.d.ts +64 -108
  19. package/dist/effect/email.js +2 -2
  20. package/dist/effect/generated.d.ts +7346 -8748
  21. package/dist/effect/index.d.ts +1 -0
  22. package/dist/effect/index.js +3 -2
  23. package/dist/effect/internal/operation.d.ts +15 -113
  24. package/dist/effect/media.d.ts +80 -0
  25. package/dist/effect/media.js +19 -0
  26. package/dist/effect/messages.d.ts +41 -261
  27. package/dist/effect/messages.js +1 -1
  28. package/dist/effect/operations.d.ts +7 -7
  29. package/dist/effect/operations.js +1 -1
  30. package/dist/effect/organizations.d.ts +23 -41
  31. package/dist/effect/organizations.js +1 -1
  32. package/dist/effect/scheduled-messages.d.ts +43 -454
  33. package/dist/effect/scheduled-messages.js +1 -1
  34. package/dist/effect/templates.d.ts +175 -649
  35. package/dist/effect/templates.js +2 -2
  36. package/dist/effect/webhooks.d.ts +20 -21
  37. package/dist/effect/webhooks.js +2 -2
  38. package/dist/index.js +1 -1
  39. package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
  40. package/dist/normalize.d.ts +3 -33
  41. package/dist/{operation-Ccqh_yxb.js → operation-C2Q4cFJL.js} +21 -3
  42. package/dist/promises/index.d.ts +4 -14
  43. package/dist/promises/index.js +1 -1
  44. package/dist/promises/types.gen.d.ts +1 -1
  45. package/dist/{promises-Dgv8UmCC.js → promises-oiy7mOyu.js} +386 -29
  46. package/dist/service-map.d.ts +26 -0
  47. package/package.json +17 -12
@@ -3,73 +3,13 @@ export declare const list: ((input?: {
3
3
  readonly channel?: string | null | undefined;
4
4
  readonly limit?: string | null | undefined;
5
5
  readonly search?: string | null | undefined;
6
- readonly status?: string | null | undefined;
7
6
  readonly page?: string | null | undefined;
7
+ readonly status?: string | null | undefined;
8
8
  readonly category?: string | null | undefined;
9
9
  readonly sortBy?: string | null | undefined;
10
10
  readonly sortOrder?: string | null | undefined;
11
11
  } | undefined) => import("effect/Effect").Effect<{
12
12
  readonly items: readonly {
13
- readonly sms: {
14
- readonly body: string;
15
- readonly encoding: string | null;
16
- readonly estimatedSegments: number | null;
17
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
18
- } | null;
19
- readonly whatsapp: {
20
- readonly name: string;
21
- readonly language: string;
22
- readonly category: "marketing" | "utility" | "authentication" | "service";
23
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
24
- readonly headerMediaType: string | null;
25
- readonly headerContent: string | null;
26
- readonly bodyContent: string;
27
- readonly footerContent: string | null;
28
- readonly components: readonly {
29
- readonly type: "body" | "button" | "header" | "footer";
30
- readonly text?: string | null;
31
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
32
- readonly example?: {
33
- readonly header_text?: readonly string[] | null;
34
- readonly body_text?: readonly (readonly string[])[] | null;
35
- } | null;
36
- readonly buttons?: readonly {
37
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
38
- readonly url?: string | null;
39
- readonly text?: string | null;
40
- readonly example?: string | null;
41
- readonly phone_number?: string | null;
42
- }[] | null;
43
- readonly parameters?: readonly {
44
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
45
- readonly text?: string | null;
46
- readonly image?: {
47
- readonly link: string;
48
- } | null;
49
- readonly video?: {
50
- readonly link: string;
51
- } | null;
52
- readonly document?: {
53
- readonly link: string;
54
- readonly filename?: string | null;
55
- } | null;
56
- readonly currency?: {
57
- readonly fallback_value: string;
58
- readonly code: string;
59
- readonly amount_1000: number;
60
- } | null;
61
- readonly date_time?: {
62
- readonly fallback_value: string;
63
- } | null;
64
- }[] | null;
65
- }[] | null;
66
- readonly buttons: readonly {
67
- readonly [x: string]: import("./generated").JsonValue;
68
- }[] | null;
69
- readonly examples: {
70
- readonly [x: string]: import("./generated").JsonValue;
71
- } | null;
72
- } | null;
73
13
  readonly email: {
74
14
  readonly subject: string;
75
15
  readonly preheader: string | null;
@@ -82,18 +22,18 @@ export declare const list: ((input?: {
82
22
  readonly updatedAt: string;
83
23
  readonly usageCount: number;
84
24
  readonly lastUsedAt: string | null;
85
- readonly channel: "sms" | "whatsapp" | "email";
25
+ readonly channel: "email";
86
26
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
87
27
  readonly origin: "dashboard" | "tsx";
88
28
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
89
29
  readonly description: string | null;
90
30
  readonly status: string;
91
- readonly isDefault: boolean;
92
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
93
31
  readonly isActive: boolean;
94
32
  readonly category: string | null;
95
33
  readonly slug: string;
96
34
  readonly version: number;
35
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
36
+ readonly isDefault: boolean;
97
37
  readonly variableSchema: readonly {
98
38
  readonly name: string;
99
39
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -111,18 +51,12 @@ export declare const list: ((input?: {
111
51
  readonly description?: string | null;
112
52
  }[] | null;
113
53
  readonly compliance: {
114
- readonly dltTemplateId?: string | null;
115
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
116
- readonly dltApprovedAt?: string | null;
117
- readonly whatsappTemplateId?: string | null;
118
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
119
- readonly whatsappApprovedAt?: string | null;
120
54
  readonly metaStatus?: string | null;
121
55
  readonly submittedAt?: string | null;
122
56
  readonly qualityScore?: string | null;
123
57
  readonly rejectedReason?: string | null;
124
58
  readonly lastSyncedAt?: string | null;
125
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
59
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
126
60
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
127
61
  readonly approvedAt?: string | null;
128
62
  readonly approvalNotes?: string | null;
@@ -136,11 +70,11 @@ export declare const list: ((input?: {
136
70
  readonly designOverrides: {
137
71
  readonly footer?: {
138
72
  readonly address?: {
139
- readonly region: string;
140
- readonly street1: string;
73
+ readonly country: string;
141
74
  readonly city: string;
75
+ readonly street1: string;
76
+ readonly region: string;
142
77
  readonly postalCode: string;
143
- readonly country: string;
144
78
  readonly street2?: string | null;
145
79
  } | null;
146
80
  readonly companyName?: string | null;
@@ -217,78 +151,18 @@ export declare const list: ((input?: {
217
151
  readonly total: number;
218
152
  readonly totalPages: number;
219
153
  };
220
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
154
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
221
155
  readonly pages: (input?: {
222
156
  readonly channel?: string | null | undefined;
223
157
  readonly limit?: string | null | undefined;
224
158
  readonly search?: string | null | undefined;
225
- readonly status?: string | null | undefined;
226
159
  readonly page?: string | null | undefined;
160
+ readonly status?: string | null | undefined;
227
161
  readonly category?: string | null | undefined;
228
162
  readonly sortBy?: string | null | undefined;
229
163
  readonly sortOrder?: string | null | undefined;
230
164
  } | undefined) => import("effect/Stream").Stream<{
231
165
  readonly items: readonly {
232
- readonly sms: {
233
- readonly body: string;
234
- readonly encoding: string | null;
235
- readonly estimatedSegments: number | null;
236
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
237
- } | null;
238
- readonly whatsapp: {
239
- readonly name: string;
240
- readonly language: string;
241
- readonly category: "marketing" | "utility" | "authentication" | "service";
242
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
243
- readonly headerMediaType: string | null;
244
- readonly headerContent: string | null;
245
- readonly bodyContent: string;
246
- readonly footerContent: string | null;
247
- readonly components: readonly {
248
- readonly type: "body" | "button" | "header" | "footer";
249
- readonly text?: string | null;
250
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
251
- readonly example?: {
252
- readonly header_text?: readonly string[] | null;
253
- readonly body_text?: readonly (readonly string[])[] | null;
254
- } | null;
255
- readonly buttons?: readonly {
256
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
257
- readonly url?: string | null;
258
- readonly text?: string | null;
259
- readonly example?: string | null;
260
- readonly phone_number?: string | null;
261
- }[] | null;
262
- readonly parameters?: readonly {
263
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
264
- readonly text?: string | null;
265
- readonly image?: {
266
- readonly link: string;
267
- } | null;
268
- readonly video?: {
269
- readonly link: string;
270
- } | null;
271
- readonly document?: {
272
- readonly link: string;
273
- readonly filename?: string | null;
274
- } | null;
275
- readonly currency?: {
276
- readonly fallback_value: string;
277
- readonly code: string;
278
- readonly amount_1000: number;
279
- } | null;
280
- readonly date_time?: {
281
- readonly fallback_value: string;
282
- } | null;
283
- }[] | null;
284
- }[] | null;
285
- readonly buttons: readonly {
286
- readonly [x: string]: import("./generated").JsonValue;
287
- }[] | null;
288
- readonly examples: {
289
- readonly [x: string]: import("./generated").JsonValue;
290
- } | null;
291
- } | null;
292
166
  readonly email: {
293
167
  readonly subject: string;
294
168
  readonly preheader: string | null;
@@ -301,18 +175,18 @@ export declare const list: ((input?: {
301
175
  readonly updatedAt: string;
302
176
  readonly usageCount: number;
303
177
  readonly lastUsedAt: string | null;
304
- readonly channel: "sms" | "whatsapp" | "email";
178
+ readonly channel: "email";
305
179
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
306
180
  readonly origin: "dashboard" | "tsx";
307
181
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
308
182
  readonly description: string | null;
309
183
  readonly status: string;
310
- readonly isDefault: boolean;
311
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
312
184
  readonly isActive: boolean;
313
185
  readonly category: string | null;
314
186
  readonly slug: string;
315
187
  readonly version: number;
188
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
189
+ readonly isDefault: boolean;
316
190
  readonly variableSchema: readonly {
317
191
  readonly name: string;
318
192
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -330,18 +204,12 @@ export declare const list: ((input?: {
330
204
  readonly description?: string | null;
331
205
  }[] | null;
332
206
  readonly compliance: {
333
- readonly dltTemplateId?: string | null;
334
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
335
- readonly dltApprovedAt?: string | null;
336
- readonly whatsappTemplateId?: string | null;
337
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
338
- readonly whatsappApprovedAt?: string | null;
339
207
  readonly metaStatus?: string | null;
340
208
  readonly submittedAt?: string | null;
341
209
  readonly qualityScore?: string | null;
342
210
  readonly rejectedReason?: string | null;
343
211
  readonly lastSyncedAt?: string | null;
344
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
212
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
345
213
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
346
214
  readonly approvedAt?: string | null;
347
215
  readonly approvalNotes?: string | null;
@@ -355,11 +223,11 @@ export declare const list: ((input?: {
355
223
  readonly designOverrides: {
356
224
  readonly footer?: {
357
225
  readonly address?: {
358
- readonly region: string;
359
- readonly street1: string;
226
+ readonly country: string;
360
227
  readonly city: string;
228
+ readonly street1: string;
229
+ readonly region: string;
361
230
  readonly postalCode: string;
362
- readonly country: string;
363
231
  readonly street2?: string | null;
364
232
  } | null;
365
233
  readonly companyName?: string | null;
@@ -436,77 +304,17 @@ export declare const list: ((input?: {
436
304
  readonly total: number;
437
305
  readonly totalPages: number;
438
306
  };
439
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
307
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
440
308
  readonly items: (input?: {
441
309
  readonly channel?: string | null | undefined;
442
310
  readonly limit?: string | null | undefined;
443
311
  readonly search?: string | null | undefined;
444
- readonly status?: string | null | undefined;
445
312
  readonly page?: string | null | undefined;
313
+ readonly status?: string | null | undefined;
446
314
  readonly category?: string | null | undefined;
447
315
  readonly sortBy?: string | null | undefined;
448
316
  readonly sortOrder?: string | null | undefined;
449
317
  } | undefined) => import("effect/Stream").Stream<{
450
- readonly sms: {
451
- readonly body: string;
452
- readonly encoding: string | null;
453
- readonly estimatedSegments: number | null;
454
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
455
- } | null;
456
- readonly whatsapp: {
457
- readonly name: string;
458
- readonly language: string;
459
- readonly category: "marketing" | "utility" | "authentication" | "service";
460
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
461
- readonly headerMediaType: string | null;
462
- readonly headerContent: string | null;
463
- readonly bodyContent: string;
464
- readonly footerContent: string | null;
465
- readonly components: readonly {
466
- readonly type: "body" | "button" | "header" | "footer";
467
- readonly text?: string | null;
468
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
469
- readonly example?: {
470
- readonly header_text?: readonly string[] | null;
471
- readonly body_text?: readonly (readonly string[])[] | null;
472
- } | null;
473
- readonly buttons?: readonly {
474
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
475
- readonly url?: string | null;
476
- readonly text?: string | null;
477
- readonly example?: string | null;
478
- readonly phone_number?: string | null;
479
- }[] | null;
480
- readonly parameters?: readonly {
481
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
482
- readonly text?: string | null;
483
- readonly image?: {
484
- readonly link: string;
485
- } | null;
486
- readonly video?: {
487
- readonly link: string;
488
- } | null;
489
- readonly document?: {
490
- readonly link: string;
491
- readonly filename?: string | null;
492
- } | null;
493
- readonly currency?: {
494
- readonly fallback_value: string;
495
- readonly code: string;
496
- readonly amount_1000: number;
497
- } | null;
498
- readonly date_time?: {
499
- readonly fallback_value: string;
500
- } | null;
501
- }[] | null;
502
- }[] | null;
503
- readonly buttons: readonly {
504
- readonly [x: string]: import("./generated").JsonValue;
505
- }[] | null;
506
- readonly examples: {
507
- readonly [x: string]: import("./generated").JsonValue;
508
- } | null;
509
- } | null;
510
318
  readonly email: {
511
319
  readonly subject: string;
512
320
  readonly preheader: string | null;
@@ -519,18 +327,18 @@ export declare const list: ((input?: {
519
327
  readonly updatedAt: string;
520
328
  readonly usageCount: number;
521
329
  readonly lastUsedAt: string | null;
522
- readonly channel: "sms" | "whatsapp" | "email";
330
+ readonly channel: "email";
523
331
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
524
332
  readonly origin: "dashboard" | "tsx";
525
333
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
526
334
  readonly description: string | null;
527
335
  readonly status: string;
528
- readonly isDefault: boolean;
529
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
530
336
  readonly isActive: boolean;
531
337
  readonly category: string | null;
532
338
  readonly slug: string;
533
339
  readonly version: number;
340
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
341
+ readonly isDefault: boolean;
534
342
  readonly variableSchema: readonly {
535
343
  readonly name: string;
536
344
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -548,18 +356,12 @@ export declare const list: ((input?: {
548
356
  readonly description?: string | null;
549
357
  }[] | null;
550
358
  readonly compliance: {
551
- readonly dltTemplateId?: string | null;
552
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
553
- readonly dltApprovedAt?: string | null;
554
- readonly whatsappTemplateId?: string | null;
555
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
556
- readonly whatsappApprovedAt?: string | null;
557
359
  readonly metaStatus?: string | null;
558
360
  readonly submittedAt?: string | null;
559
361
  readonly qualityScore?: string | null;
560
362
  readonly rejectedReason?: string | null;
561
363
  readonly lastSyncedAt?: string | null;
562
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
364
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
563
365
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
564
366
  readonly approvedAt?: string | null;
565
367
  readonly approvalNotes?: string | null;
@@ -573,11 +375,11 @@ export declare const list: ((input?: {
573
375
  readonly designOverrides: {
574
376
  readonly footer?: {
575
377
  readonly address?: {
576
- readonly region: string;
577
- readonly street1: string;
378
+ readonly country: string;
578
379
  readonly city: string;
380
+ readonly street1: string;
381
+ readonly region: string;
579
382
  readonly postalCode: string;
580
- readonly country: string;
581
383
  readonly street2?: string | null;
582
384
  } | null;
583
385
  readonly companyName?: string | null;
@@ -647,7 +449,7 @@ export declare const list: ((input?: {
647
449
  } | null;
648
450
  readonly publishedAt?: string | null;
649
451
  readonly publishedBy?: string | null;
650
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
452
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
651
453
  };
652
454
  export declare const create: (input: {
653
455
  readonly name: string;
@@ -658,11 +460,11 @@ export declare const create: (input: {
658
460
  readonly origin?: string | null | undefined;
659
461
  readonly subject?: string | null | undefined;
660
462
  readonly description?: string | null | undefined;
661
- readonly isDefault?: boolean | null | undefined;
662
463
  readonly isActive?: boolean | null | undefined;
663
464
  readonly category?: string | null | undefined;
664
465
  readonly slug?: string | null | undefined;
665
466
  readonly version?: number | null | undefined;
467
+ readonly isDefault?: boolean | null | undefined;
666
468
  readonly variableSchema?: readonly {
667
469
  readonly name: string;
668
470
  readonly type: string;
@@ -702,12 +504,6 @@ export declare const create: (input: {
702
504
  readonly description?: string | null | undefined;
703
505
  }[] | null | undefined;
704
506
  readonly compliance?: {
705
- readonly dltTemplateId?: string | null | undefined;
706
- readonly dltStatus?: string | null | undefined;
707
- readonly dltApprovedAt?: string | null | undefined;
708
- readonly whatsappTemplateId?: string | null | undefined;
709
- readonly whatsappStatus?: string | null | undefined;
710
- readonly whatsappApprovedAt?: string | null | undefined;
711
507
  readonly metaStatus?: string | null | undefined;
712
508
  readonly submittedAt?: string | null | undefined;
713
509
  readonly qualityScore?: string | null | undefined;
@@ -724,30 +520,14 @@ export declare const create: (input: {
724
520
  readonly notes?: string | null | undefined;
725
521
  }[] | null | undefined;
726
522
  } | null | undefined;
727
- readonly performance?: {
728
- readonly usageCount?: number | null | undefined;
729
- readonly lastUsedAt?: string | null | undefined;
730
- readonly deliveryRate?: number | null | undefined;
731
- readonly openRate?: number | null | undefined;
732
- readonly clickRate?: number | null | undefined;
733
- readonly responseRate?: number | null | undefined;
734
- readonly conversionRate?: number | null | undefined;
735
- readonly averageSatisfaction?: number | null | undefined;
736
- readonly totalSent?: number | null | undefined;
737
- readonly totalDelivered?: number | null | undefined;
738
- readonly totalOpened?: number | null | undefined;
739
- readonly totalClicked?: number | null | undefined;
740
- readonly totalResponses?: number | null | undefined;
741
- readonly totalConversions?: number | null | undefined;
742
- } | null | undefined;
743
523
  readonly designOverrides?: {
744
524
  readonly footer?: {
745
525
  readonly address?: {
746
- readonly region: string;
747
- readonly street1: string;
526
+ readonly country: string;
748
527
  readonly city: string;
528
+ readonly street1: string;
529
+ readonly region: string;
749
530
  readonly postalCode: string;
750
- readonly country: string;
751
531
  readonly street2?: string | null | undefined;
752
532
  } | null | undefined;
753
533
  readonly companyName?: string | null | undefined;
@@ -806,67 +586,23 @@ export declare const create: (input: {
806
586
  readonly iconUrl?: string | null | undefined;
807
587
  } | null | undefined;
808
588
  } | null | undefined;
589
+ readonly performance?: {
590
+ readonly usageCount?: number | null | undefined;
591
+ readonly lastUsedAt?: string | null | undefined;
592
+ readonly deliveryRate?: number | null | undefined;
593
+ readonly openRate?: number | null | undefined;
594
+ readonly clickRate?: number | null | undefined;
595
+ readonly responseRate?: number | null | undefined;
596
+ readonly conversionRate?: number | null | undefined;
597
+ readonly averageSatisfaction?: number | null | undefined;
598
+ readonly totalSent?: number | null | undefined;
599
+ readonly totalDelivered?: number | null | undefined;
600
+ readonly totalOpened?: number | null | undefined;
601
+ readonly totalClicked?: number | null | undefined;
602
+ readonly totalResponses?: number | null | undefined;
603
+ readonly totalConversions?: number | null | undefined;
604
+ } | null | undefined;
809
605
  }) => import("effect/Effect").Effect<{
810
- readonly sms: {
811
- readonly body: string;
812
- readonly encoding: string | null;
813
- readonly estimatedSegments: number | null;
814
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
815
- } | null;
816
- readonly whatsapp: {
817
- readonly name: string;
818
- readonly language: string;
819
- readonly category: "marketing" | "utility" | "authentication" | "service";
820
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
821
- readonly headerMediaType: string | null;
822
- readonly headerContent: string | null;
823
- readonly bodyContent: string;
824
- readonly footerContent: string | null;
825
- readonly components: readonly {
826
- readonly type: "body" | "button" | "header" | "footer";
827
- readonly text?: string | null;
828
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
829
- readonly example?: {
830
- readonly header_text?: readonly string[] | null;
831
- readonly body_text?: readonly (readonly string[])[] | null;
832
- } | null;
833
- readonly buttons?: readonly {
834
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
835
- readonly url?: string | null;
836
- readonly text?: string | null;
837
- readonly example?: string | null;
838
- readonly phone_number?: string | null;
839
- }[] | null;
840
- readonly parameters?: readonly {
841
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
842
- readonly text?: string | null;
843
- readonly image?: {
844
- readonly link: string;
845
- } | null;
846
- readonly video?: {
847
- readonly link: string;
848
- } | null;
849
- readonly document?: {
850
- readonly link: string;
851
- readonly filename?: string | null;
852
- } | null;
853
- readonly currency?: {
854
- readonly fallback_value: string;
855
- readonly code: string;
856
- readonly amount_1000: number;
857
- } | null;
858
- readonly date_time?: {
859
- readonly fallback_value: string;
860
- } | null;
861
- }[] | null;
862
- }[] | null;
863
- readonly buttons: readonly {
864
- readonly [x: string]: import("./generated").JsonValue;
865
- }[] | null;
866
- readonly examples: {
867
- readonly [x: string]: import("./generated").JsonValue;
868
- } | null;
869
- } | null;
870
606
  readonly email: {
871
607
  readonly subject: string;
872
608
  readonly preheader: string | null;
@@ -879,18 +615,18 @@ export declare const create: (input: {
879
615
  readonly updatedAt: string;
880
616
  readonly usageCount: number;
881
617
  readonly lastUsedAt: string | null;
882
- readonly channel: "sms" | "whatsapp" | "email";
618
+ readonly channel: "email";
883
619
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
884
620
  readonly origin: "dashboard" | "tsx";
885
621
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
886
622
  readonly description: string | null;
887
623
  readonly status: string;
888
- readonly isDefault: boolean;
889
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
890
624
  readonly isActive: boolean;
891
625
  readonly category: string | null;
892
626
  readonly slug: string;
893
627
  readonly version: number;
628
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
629
+ readonly isDefault: boolean;
894
630
  readonly variableSchema: readonly {
895
631
  readonly name: string;
896
632
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -908,18 +644,12 @@ export declare const create: (input: {
908
644
  readonly description?: string | null;
909
645
  }[] | null;
910
646
  readonly compliance: {
911
- readonly dltTemplateId?: string | null;
912
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
913
- readonly dltApprovedAt?: string | null;
914
- readonly whatsappTemplateId?: string | null;
915
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
916
- readonly whatsappApprovedAt?: string | null;
917
647
  readonly metaStatus?: string | null;
918
648
  readonly submittedAt?: string | null;
919
649
  readonly qualityScore?: string | null;
920
650
  readonly rejectedReason?: string | null;
921
651
  readonly lastSyncedAt?: string | null;
922
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
652
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
923
653
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
924
654
  readonly approvedAt?: string | null;
925
655
  readonly approvalNotes?: string | null;
@@ -933,11 +663,11 @@ export declare const create: (input: {
933
663
  readonly designOverrides: {
934
664
  readonly footer?: {
935
665
  readonly address?: {
936
- readonly region: string;
937
- readonly street1: string;
666
+ readonly country: string;
938
667
  readonly city: string;
668
+ readonly street1: string;
669
+ readonly region: string;
939
670
  readonly postalCode: string;
940
- readonly country: string;
941
671
  readonly street2?: string | null;
942
672
  } | null;
943
673
  readonly companyName?: string | null;
@@ -1007,14 +737,14 @@ export declare const create: (input: {
1007
737
  } | null;
1008
738
  readonly publishedAt?: string | null;
1009
739
  readonly publishedBy?: string | null;
1010
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
740
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1011
741
  export declare const listDashboard: ((input: {
1012
742
  readonly allowedChannels: string | readonly string[];
1013
743
  readonly channel?: string | null | undefined;
1014
744
  readonly limit?: string | null | undefined;
1015
745
  readonly search?: string | null | undefined;
1016
- readonly status?: string | null | undefined;
1017
746
  readonly page?: string | null | undefined;
747
+ readonly status?: string | null | undefined;
1018
748
  readonly category?: string | null | undefined;
1019
749
  readonly sortBy?: string | null | undefined;
1020
750
  readonly sortOrder?: string | null | undefined;
@@ -1027,11 +757,11 @@ export declare const listDashboard: ((input: {
1027
757
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1028
758
  readonly name: string;
1029
759
  readonly slug: string;
1030
- readonly channel: "sms" | "whatsapp" | "email";
760
+ readonly channel: "email";
1031
761
  readonly origin: "dashboard" | "tsx";
1032
762
  readonly description: string | null;
1033
- readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
1034
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
763
+ readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
764
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1035
765
  readonly version: number;
1036
766
  readonly usageCount: number;
1037
767
  readonly lastUsedAt: string | null;
@@ -1048,11 +778,11 @@ export declare const listDashboard: ((input: {
1048
778
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1049
779
  readonly name: string;
1050
780
  readonly slug: string;
1051
- readonly channel: "sms" | "whatsapp" | "email";
781
+ readonly channel: "email";
1052
782
  readonly origin: "dashboard" | "tsx";
1053
783
  readonly description: string | null;
1054
- readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
1055
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
784
+ readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
785
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1056
786
  readonly version: number;
1057
787
  readonly usageCount: number;
1058
788
  readonly lastUsedAt: string | null;
@@ -1066,14 +796,14 @@ export declare const listDashboard: ((input: {
1066
796
  readonly total: number;
1067
797
  readonly totalPages: number;
1068
798
  };
1069
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
799
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
1070
800
  readonly pages: (input: {
1071
801
  readonly allowedChannels: string | readonly string[];
1072
802
  readonly channel?: string | null | undefined;
1073
803
  readonly limit?: string | null | undefined;
1074
804
  readonly search?: string | null | undefined;
1075
- readonly status?: string | null | undefined;
1076
805
  readonly page?: string | null | undefined;
806
+ readonly status?: string | null | undefined;
1077
807
  readonly category?: string | null | undefined;
1078
808
  readonly sortBy?: string | null | undefined;
1079
809
  readonly sortOrder?: string | null | undefined;
@@ -1086,11 +816,11 @@ export declare const listDashboard: ((input: {
1086
816
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1087
817
  readonly name: string;
1088
818
  readonly slug: string;
1089
- readonly channel: "sms" | "whatsapp" | "email";
819
+ readonly channel: "email";
1090
820
  readonly origin: "dashboard" | "tsx";
1091
821
  readonly description: string | null;
1092
- readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
1093
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
822
+ readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
823
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1094
824
  readonly version: number;
1095
825
  readonly usageCount: number;
1096
826
  readonly lastUsedAt: string | null;
@@ -1107,11 +837,11 @@ export declare const listDashboard: ((input: {
1107
837
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1108
838
  readonly name: string;
1109
839
  readonly slug: string;
1110
- readonly channel: "sms" | "whatsapp" | "email";
840
+ readonly channel: "email";
1111
841
  readonly origin: "dashboard" | "tsx";
1112
842
  readonly description: string | null;
1113
- readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
1114
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
843
+ readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
844
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1115
845
  readonly version: number;
1116
846
  readonly usageCount: number;
1117
847
  readonly lastUsedAt: string | null;
@@ -1125,14 +855,14 @@ export declare const listDashboard: ((input: {
1125
855
  readonly total: number;
1126
856
  readonly totalPages: number;
1127
857
  };
1128
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
858
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1129
859
  readonly items: (input: {
1130
860
  readonly allowedChannels: string | readonly string[];
1131
861
  readonly channel?: string | null | undefined;
1132
862
  readonly limit?: string | null | undefined;
1133
863
  readonly search?: string | null | undefined;
1134
- readonly status?: string | null | undefined;
1135
864
  readonly page?: string | null | undefined;
865
+ readonly status?: string | null | undefined;
1136
866
  readonly category?: string | null | undefined;
1137
867
  readonly sortBy?: string | null | undefined;
1138
868
  readonly sortOrder?: string | null | undefined;
@@ -1144,11 +874,11 @@ export declare const listDashboard: ((input: {
1144
874
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1145
875
  readonly name: string;
1146
876
  readonly slug: string;
1147
- readonly channel: "sms" | "whatsapp" | "email";
877
+ readonly channel: "email";
1148
878
  readonly origin: "dashboard" | "tsx";
1149
879
  readonly description: string | null;
1150
- readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
1151
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
880
+ readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
881
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1152
882
  readonly version: number;
1153
883
  readonly usageCount: number;
1154
884
  readonly lastUsedAt: string | null;
@@ -1165,18 +895,18 @@ export declare const listDashboard: ((input: {
1165
895
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1166
896
  readonly name: string;
1167
897
  readonly slug: string;
1168
- readonly channel: "sms" | "whatsapp" | "email";
898
+ readonly channel: "email";
1169
899
  readonly origin: "dashboard" | "tsx";
1170
900
  readonly description: string | null;
1171
- readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
1172
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
901
+ readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
902
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1173
903
  readonly version: number;
1174
904
  readonly usageCount: number;
1175
905
  readonly lastUsedAt: string | null;
1176
906
  readonly createdAt: string;
1177
907
  readonly updatedAt: string;
1178
908
  };
1179
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
909
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1180
910
  };
1181
911
  export declare const listFamilies: ((input?: {
1182
912
  readonly limit?: string | null | undefined;
@@ -1190,7 +920,7 @@ export declare const listFamilies: ((input?: {
1190
920
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1191
921
  readonly name: string;
1192
922
  readonly slug: string;
1193
- readonly channel: "sms" | "whatsapp" | "email";
923
+ readonly channel: "email";
1194
924
  readonly variableSchema: readonly {
1195
925
  readonly name: string;
1196
926
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1207,7 +937,7 @@ export declare const listFamilies: ((input?: {
1207
937
  readonly default?: import("./generated").JsonValue;
1208
938
  readonly description?: string | null;
1209
939
  }[] | null;
1210
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
940
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1211
941
  readonly isActive: boolean;
1212
942
  readonly version: number;
1213
943
  readonly createdAt: string;
@@ -1222,7 +952,7 @@ export declare const listFamilies: ((input?: {
1222
952
  readonly total: number;
1223
953
  readonly totalPages: number;
1224
954
  };
1225
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
955
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
1226
956
  readonly pages: (input?: {
1227
957
  readonly limit?: string | null | undefined;
1228
958
  readonly page?: string | null | undefined;
@@ -1235,7 +965,7 @@ export declare const listFamilies: ((input?: {
1235
965
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1236
966
  readonly name: string;
1237
967
  readonly slug: string;
1238
- readonly channel: "sms" | "whatsapp" | "email";
968
+ readonly channel: "email";
1239
969
  readonly variableSchema: readonly {
1240
970
  readonly name: string;
1241
971
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1252,7 +982,7 @@ export declare const listFamilies: ((input?: {
1252
982
  readonly default?: import("./generated").JsonValue;
1253
983
  readonly description?: string | null;
1254
984
  }[] | null;
1255
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
985
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1256
986
  readonly isActive: boolean;
1257
987
  readonly version: number;
1258
988
  readonly createdAt: string;
@@ -1267,7 +997,7 @@ export declare const listFamilies: ((input?: {
1267
997
  readonly total: number;
1268
998
  readonly totalPages: number;
1269
999
  };
1270
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1000
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1271
1001
  readonly items: (input?: {
1272
1002
  readonly limit?: string | null | undefined;
1273
1003
  readonly page?: string | null | undefined;
@@ -1279,7 +1009,7 @@ export declare const listFamilies: ((input?: {
1279
1009
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1280
1010
  readonly name: string;
1281
1011
  readonly slug: string;
1282
- readonly channel: "sms" | "whatsapp" | "email";
1012
+ readonly channel: "email";
1283
1013
  readonly variableSchema: readonly {
1284
1014
  readonly name: string;
1285
1015
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1296,7 +1026,7 @@ export declare const listFamilies: ((input?: {
1296
1026
  readonly default?: import("./generated").JsonValue;
1297
1027
  readonly description?: string | null;
1298
1028
  }[] | null;
1299
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1029
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1300
1030
  readonly isActive: boolean;
1301
1031
  readonly version: number;
1302
1032
  readonly createdAt: string;
@@ -1304,7 +1034,7 @@ export declare const listFamilies: ((input?: {
1304
1034
  }[];
1305
1035
  readonly createdAt: string;
1306
1036
  readonly updatedAt: string;
1307
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1037
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1308
1038
  };
1309
1039
  export declare const createFamily: (input: {
1310
1040
  readonly name: string;
@@ -1316,7 +1046,7 @@ export declare const createFamily: (input: {
1316
1046
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1317
1047
  readonly name: string;
1318
1048
  readonly slug: string;
1319
- readonly channel: "sms" | "whatsapp" | "email";
1049
+ readonly channel: "email";
1320
1050
  readonly variableSchema: readonly {
1321
1051
  readonly name: string;
1322
1052
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1333,7 +1063,7 @@ export declare const createFamily: (input: {
1333
1063
  readonly default?: import("./generated").JsonValue;
1334
1064
  readonly description?: string | null;
1335
1065
  }[] | null;
1336
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1066
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1337
1067
  readonly isActive: boolean;
1338
1068
  readonly version: number;
1339
1069
  readonly createdAt: string;
@@ -1341,7 +1071,7 @@ export declare const createFamily: (input: {
1341
1071
  }[];
1342
1072
  readonly createdAt: string;
1343
1073
  readonly updatedAt: string;
1344
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1074
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1345
1075
  export declare const getFamily: (input: {
1346
1076
  readonly familyId: string;
1347
1077
  }) => import("effect/Effect").Effect<{
@@ -1352,7 +1082,7 @@ export declare const getFamily: (input: {
1352
1082
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1353
1083
  readonly name: string;
1354
1084
  readonly slug: string;
1355
- readonly channel: "sms" | "whatsapp" | "email";
1085
+ readonly channel: "email";
1356
1086
  readonly variableSchema: readonly {
1357
1087
  readonly name: string;
1358
1088
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1369,7 +1099,7 @@ export declare const getFamily: (input: {
1369
1099
  readonly default?: import("./generated").JsonValue;
1370
1100
  readonly description?: string | null;
1371
1101
  }[] | null;
1372
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1102
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1373
1103
  readonly isActive: boolean;
1374
1104
  readonly version: number;
1375
1105
  readonly createdAt: string;
@@ -1377,12 +1107,12 @@ export declare const getFamily: (input: {
1377
1107
  }[];
1378
1108
  readonly createdAt: string;
1379
1109
  readonly updatedAt: string;
1380
- }, 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>;
1110
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1381
1111
  export declare const deleteFamily: (input: {
1382
1112
  readonly familyId: string;
1383
1113
  }) => import("effect/Effect").Effect<{
1384
1114
  readonly success: boolean;
1385
- }, 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>;
1115
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1386
1116
  export declare const renameFamily: (input: {
1387
1117
  readonly familyId: string;
1388
1118
  readonly name: string;
@@ -1394,7 +1124,7 @@ export declare const renameFamily: (input: {
1394
1124
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1395
1125
  readonly name: string;
1396
1126
  readonly slug: string;
1397
- readonly channel: "sms" | "whatsapp" | "email";
1127
+ readonly channel: "email";
1398
1128
  readonly variableSchema: readonly {
1399
1129
  readonly name: string;
1400
1130
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1411,7 +1141,7 @@ export declare const renameFamily: (input: {
1411
1141
  readonly default?: import("./generated").JsonValue;
1412
1142
  readonly description?: string | null;
1413
1143
  }[] | null;
1414
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1144
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1415
1145
  readonly isActive: boolean;
1416
1146
  readonly version: number;
1417
1147
  readonly createdAt: string;
@@ -1419,7 +1149,7 @@ export declare const renameFamily: (input: {
1419
1149
  }[];
1420
1150
  readonly createdAt: string;
1421
1151
  readonly updatedAt: string;
1422
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1152
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1423
1153
  export declare const createFamilyFromTemplate: (input: {
1424
1154
  readonly templateId: string;
1425
1155
  readonly name: string;
@@ -1431,7 +1161,7 @@ export declare const createFamilyFromTemplate: (input: {
1431
1161
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1432
1162
  readonly name: string;
1433
1163
  readonly slug: string;
1434
- readonly channel: "sms" | "whatsapp" | "email";
1164
+ readonly channel: "email";
1435
1165
  readonly variableSchema: readonly {
1436
1166
  readonly name: string;
1437
1167
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1448,7 +1178,7 @@ export declare const createFamilyFromTemplate: (input: {
1448
1178
  readonly default?: import("./generated").JsonValue;
1449
1179
  readonly description?: string | null;
1450
1180
  }[] | null;
1451
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1181
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1452
1182
  readonly isActive: boolean;
1453
1183
  readonly version: number;
1454
1184
  readonly createdAt: string;
@@ -1456,7 +1186,7 @@ export declare const createFamilyFromTemplate: (input: {
1456
1186
  }[];
1457
1187
  readonly createdAt: string;
1458
1188
  readonly updatedAt: string;
1459
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1189
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1460
1190
  export declare const attachFamilyMember: (input: {
1461
1191
  readonly familyId: string;
1462
1192
  readonly templateId: string;
@@ -1468,7 +1198,7 @@ export declare const attachFamilyMember: (input: {
1468
1198
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1469
1199
  readonly name: string;
1470
1200
  readonly slug: string;
1471
- readonly channel: "sms" | "whatsapp" | "email";
1201
+ readonly channel: "email";
1472
1202
  readonly variableSchema: readonly {
1473
1203
  readonly name: string;
1474
1204
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1485,7 +1215,7 @@ export declare const attachFamilyMember: (input: {
1485
1215
  readonly default?: import("./generated").JsonValue;
1486
1216
  readonly description?: string | null;
1487
1217
  }[] | null;
1488
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1218
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1489
1219
  readonly isActive: boolean;
1490
1220
  readonly version: number;
1491
1221
  readonly createdAt: string;
@@ -1493,7 +1223,7 @@ export declare const attachFamilyMember: (input: {
1493
1223
  }[];
1494
1224
  readonly createdAt: string;
1495
1225
  readonly updatedAt: string;
1496
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1226
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1497
1227
  export declare const detachFamilyMember: (input: {
1498
1228
  readonly familyId: string;
1499
1229
  readonly templateId: string;
@@ -1505,7 +1235,7 @@ export declare const detachFamilyMember: (input: {
1505
1235
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1506
1236
  readonly name: string;
1507
1237
  readonly slug: string;
1508
- readonly channel: "sms" | "whatsapp" | "email";
1238
+ readonly channel: "email";
1509
1239
  readonly variableSchema: readonly {
1510
1240
  readonly name: string;
1511
1241
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1522,7 +1252,7 @@ export declare const detachFamilyMember: (input: {
1522
1252
  readonly default?: import("./generated").JsonValue;
1523
1253
  readonly description?: string | null;
1524
1254
  }[] | null;
1525
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1255
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1526
1256
  readonly isActive: boolean;
1527
1257
  readonly version: number;
1528
1258
  readonly createdAt: string;
@@ -1530,7 +1260,7 @@ export declare const detachFamilyMember: (input: {
1530
1260
  }[];
1531
1261
  readonly createdAt: string;
1532
1262
  readonly updatedAt: string;
1533
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1263
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1534
1264
  export declare const addFamilyChannel: (input: {
1535
1265
  readonly familyId: string;
1536
1266
  readonly channel: string;
@@ -1542,7 +1272,7 @@ export declare const addFamilyChannel: (input: {
1542
1272
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1543
1273
  readonly name: string;
1544
1274
  readonly slug: string;
1545
- readonly channel: "sms" | "whatsapp" | "email";
1275
+ readonly channel: "email";
1546
1276
  readonly variableSchema: readonly {
1547
1277
  readonly name: string;
1548
1278
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1559,7 +1289,7 @@ export declare const addFamilyChannel: (input: {
1559
1289
  readonly default?: import("./generated").JsonValue;
1560
1290
  readonly description?: string | null;
1561
1291
  }[] | null;
1562
- readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
1292
+ readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
1563
1293
  readonly isActive: boolean;
1564
1294
  readonly version: number;
1565
1295
  readonly createdAt: string;
@@ -1567,70 +1297,10 @@ export declare const addFamilyChannel: (input: {
1567
1297
  }[];
1568
1298
  readonly createdAt: string;
1569
1299
  readonly updatedAt: string;
1570
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1300
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1571
1301
  export declare const getById: (input: {
1572
1302
  readonly id: string;
1573
1303
  }) => import("effect/Effect").Effect<{
1574
- readonly sms: {
1575
- readonly body: string;
1576
- readonly encoding: string | null;
1577
- readonly estimatedSegments: number | null;
1578
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
1579
- } | null;
1580
- readonly whatsapp: {
1581
- readonly name: string;
1582
- readonly language: string;
1583
- readonly category: "marketing" | "utility" | "authentication" | "service";
1584
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
1585
- readonly headerMediaType: string | null;
1586
- readonly headerContent: string | null;
1587
- readonly bodyContent: string;
1588
- readonly footerContent: string | null;
1589
- readonly components: readonly {
1590
- readonly type: "body" | "button" | "header" | "footer";
1591
- readonly text?: string | null;
1592
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
1593
- readonly example?: {
1594
- readonly header_text?: readonly string[] | null;
1595
- readonly body_text?: readonly (readonly string[])[] | null;
1596
- } | null;
1597
- readonly buttons?: readonly {
1598
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
1599
- readonly url?: string | null;
1600
- readonly text?: string | null;
1601
- readonly example?: string | null;
1602
- readonly phone_number?: string | null;
1603
- }[] | null;
1604
- readonly parameters?: readonly {
1605
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
1606
- readonly text?: string | null;
1607
- readonly image?: {
1608
- readonly link: string;
1609
- } | null;
1610
- readonly video?: {
1611
- readonly link: string;
1612
- } | null;
1613
- readonly document?: {
1614
- readonly link: string;
1615
- readonly filename?: string | null;
1616
- } | null;
1617
- readonly currency?: {
1618
- readonly fallback_value: string;
1619
- readonly code: string;
1620
- readonly amount_1000: number;
1621
- } | null;
1622
- readonly date_time?: {
1623
- readonly fallback_value: string;
1624
- } | null;
1625
- }[] | null;
1626
- }[] | null;
1627
- readonly buttons: readonly {
1628
- readonly [x: string]: import("./generated").JsonValue;
1629
- }[] | null;
1630
- readonly examples: {
1631
- readonly [x: string]: import("./generated").JsonValue;
1632
- } | null;
1633
- } | null;
1634
1304
  readonly email: {
1635
1305
  readonly subject: string;
1636
1306
  readonly preheader: string | null;
@@ -1643,18 +1313,18 @@ export declare const getById: (input: {
1643
1313
  readonly updatedAt: string;
1644
1314
  readonly usageCount: number;
1645
1315
  readonly lastUsedAt: string | null;
1646
- readonly channel: "sms" | "whatsapp" | "email";
1316
+ readonly channel: "email";
1647
1317
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
1648
1318
  readonly origin: "dashboard" | "tsx";
1649
1319
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
1650
1320
  readonly description: string | null;
1651
1321
  readonly status: string;
1652
- readonly isDefault: boolean;
1653
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
1654
1322
  readonly isActive: boolean;
1655
1323
  readonly category: string | null;
1656
1324
  readonly slug: string;
1657
1325
  readonly version: number;
1326
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
1327
+ readonly isDefault: boolean;
1658
1328
  readonly variableSchema: readonly {
1659
1329
  readonly name: string;
1660
1330
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -1672,18 +1342,12 @@ export declare const getById: (input: {
1672
1342
  readonly description?: string | null;
1673
1343
  }[] | null;
1674
1344
  readonly compliance: {
1675
- readonly dltTemplateId?: string | null;
1676
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
1677
- readonly dltApprovedAt?: string | null;
1678
- readonly whatsappTemplateId?: string | null;
1679
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
1680
- readonly whatsappApprovedAt?: string | null;
1681
1345
  readonly metaStatus?: string | null;
1682
1346
  readonly submittedAt?: string | null;
1683
1347
  readonly qualityScore?: string | null;
1684
1348
  readonly rejectedReason?: string | null;
1685
1349
  readonly lastSyncedAt?: string | null;
1686
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
1350
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
1687
1351
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
1688
1352
  readonly approvedAt?: string | null;
1689
1353
  readonly approvalNotes?: string | null;
@@ -1697,11 +1361,11 @@ export declare const getById: (input: {
1697
1361
  readonly designOverrides: {
1698
1362
  readonly footer?: {
1699
1363
  readonly address?: {
1700
- readonly region: string;
1701
- readonly street1: string;
1364
+ readonly country: string;
1702
1365
  readonly city: string;
1366
+ readonly street1: string;
1367
+ readonly region: string;
1703
1368
  readonly postalCode: string;
1704
- readonly country: string;
1705
1369
  readonly street2?: string | null;
1706
1370
  } | null;
1707
1371
  readonly companyName?: string | null;
@@ -1771,23 +1435,23 @@ export declare const getById: (input: {
1771
1435
  } | null;
1772
1436
  readonly publishedAt?: string | null;
1773
1437
  readonly publishedBy?: string | null;
1774
- }, 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>;
1438
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1775
1439
  export declare const remove: (input: {
1776
1440
  readonly id: string;
1777
1441
  }) => import("effect/Effect").Effect<{
1778
1442
  readonly success: boolean;
1779
- }, 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>;
1443
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1780
1444
  export declare const update: (input: {
1781
1445
  readonly id: string;
1782
1446
  readonly data: {
1783
1447
  readonly name?: string | null | undefined;
1784
1448
  readonly origin?: string | null | undefined;
1785
1449
  readonly description?: string | null | undefined;
1786
- readonly isDefault?: boolean | null | undefined;
1787
1450
  readonly isActive?: boolean | null | undefined;
1788
1451
  readonly category?: string | null | undefined;
1789
1452
  readonly slug?: string | null | undefined;
1790
1453
  readonly version?: number | null | undefined;
1454
+ readonly isDefault?: boolean | null | undefined;
1791
1455
  readonly variableSchema?: readonly {
1792
1456
  readonly name: string;
1793
1457
  readonly type: string;
@@ -1827,13 +1491,11 @@ export declare const update: (input: {
1827
1491
  readonly description?: string | null | undefined;
1828
1492
  }[] | null | undefined;
1829
1493
  readonly replyToDefault?: readonly string[] | null | undefined;
1494
+ readonly fromDefault?: {
1495
+ readonly email: string;
1496
+ readonly name?: string | null | undefined;
1497
+ } | null | undefined;
1830
1498
  readonly compliance?: {
1831
- readonly dltTemplateId?: string | null | undefined;
1832
- readonly dltStatus?: string | null | undefined;
1833
- readonly dltApprovedAt?: string | null | undefined;
1834
- readonly whatsappTemplateId?: string | null | undefined;
1835
- readonly whatsappStatus?: string | null | undefined;
1836
- readonly whatsappApprovedAt?: string | null | undefined;
1837
1499
  readonly metaStatus?: string | null | undefined;
1838
1500
  readonly submittedAt?: string | null | undefined;
1839
1501
  readonly qualityScore?: string | null | undefined;
@@ -1850,30 +1512,14 @@ export declare const update: (input: {
1850
1512
  readonly notes?: string | null | undefined;
1851
1513
  }[] | null | undefined;
1852
1514
  } | null | undefined;
1853
- readonly performance?: {
1854
- readonly usageCount?: number | null | undefined;
1855
- readonly lastUsedAt?: string | null | undefined;
1856
- readonly deliveryRate?: number | null | undefined;
1857
- readonly openRate?: number | null | undefined;
1858
- readonly clickRate?: number | null | undefined;
1859
- readonly responseRate?: number | null | undefined;
1860
- readonly conversionRate?: number | null | undefined;
1861
- readonly averageSatisfaction?: number | null | undefined;
1862
- readonly totalSent?: number | null | undefined;
1863
- readonly totalDelivered?: number | null | undefined;
1864
- readonly totalOpened?: number | null | undefined;
1865
- readonly totalClicked?: number | null | undefined;
1866
- readonly totalResponses?: number | null | undefined;
1867
- readonly totalConversions?: number | null | undefined;
1868
- } | null | undefined;
1869
1515
  readonly designOverrides?: {
1870
1516
  readonly footer?: {
1871
1517
  readonly address?: {
1872
- readonly region: string;
1873
- readonly street1: string;
1518
+ readonly country: string;
1874
1519
  readonly city: string;
1520
+ readonly street1: string;
1521
+ readonly region: string;
1875
1522
  readonly postalCode: string;
1876
- readonly country: string;
1877
1523
  readonly street2?: string | null | undefined;
1878
1524
  } | null | undefined;
1879
1525
  readonly companyName?: string | null | undefined;
@@ -1932,72 +1578,24 @@ export declare const update: (input: {
1932
1578
  readonly iconUrl?: string | null | undefined;
1933
1579
  } | null | undefined;
1934
1580
  } | null | undefined;
1935
- readonly fromDefault?: {
1936
- readonly email: string;
1937
- readonly name?: string | null | undefined;
1581
+ readonly performance?: {
1582
+ readonly usageCount?: number | null | undefined;
1583
+ readonly lastUsedAt?: string | null | undefined;
1584
+ readonly deliveryRate?: number | null | undefined;
1585
+ readonly openRate?: number | null | undefined;
1586
+ readonly clickRate?: number | null | undefined;
1587
+ readonly responseRate?: number | null | undefined;
1588
+ readonly conversionRate?: number | null | undefined;
1589
+ readonly averageSatisfaction?: number | null | undefined;
1590
+ readonly totalSent?: number | null | undefined;
1591
+ readonly totalDelivered?: number | null | undefined;
1592
+ readonly totalOpened?: number | null | undefined;
1593
+ readonly totalClicked?: number | null | undefined;
1594
+ readonly totalResponses?: number | null | undefined;
1595
+ readonly totalConversions?: number | null | undefined;
1938
1596
  } | null | undefined;
1939
1597
  };
1940
1598
  }) => import("effect/Effect").Effect<{
1941
- readonly sms: {
1942
- readonly body: string;
1943
- readonly encoding: string | null;
1944
- readonly estimatedSegments: number | null;
1945
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
1946
- } | null;
1947
- readonly whatsapp: {
1948
- readonly name: string;
1949
- readonly language: string;
1950
- readonly category: "marketing" | "utility" | "authentication" | "service";
1951
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
1952
- readonly headerMediaType: string | null;
1953
- readonly headerContent: string | null;
1954
- readonly bodyContent: string;
1955
- readonly footerContent: string | null;
1956
- readonly components: readonly {
1957
- readonly type: "body" | "button" | "header" | "footer";
1958
- readonly text?: string | null;
1959
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
1960
- readonly example?: {
1961
- readonly header_text?: readonly string[] | null;
1962
- readonly body_text?: readonly (readonly string[])[] | null;
1963
- } | null;
1964
- readonly buttons?: readonly {
1965
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
1966
- readonly url?: string | null;
1967
- readonly text?: string | null;
1968
- readonly example?: string | null;
1969
- readonly phone_number?: string | null;
1970
- }[] | null;
1971
- readonly parameters?: readonly {
1972
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
1973
- readonly text?: string | null;
1974
- readonly image?: {
1975
- readonly link: string;
1976
- } | null;
1977
- readonly video?: {
1978
- readonly link: string;
1979
- } | null;
1980
- readonly document?: {
1981
- readonly link: string;
1982
- readonly filename?: string | null;
1983
- } | null;
1984
- readonly currency?: {
1985
- readonly fallback_value: string;
1986
- readonly code: string;
1987
- readonly amount_1000: number;
1988
- } | null;
1989
- readonly date_time?: {
1990
- readonly fallback_value: string;
1991
- } | null;
1992
- }[] | null;
1993
- }[] | null;
1994
- readonly buttons: readonly {
1995
- readonly [x: string]: import("./generated").JsonValue;
1996
- }[] | null;
1997
- readonly examples: {
1998
- readonly [x: string]: import("./generated").JsonValue;
1999
- } | null;
2000
- } | null;
2001
1599
  readonly email: {
2002
1600
  readonly subject: string;
2003
1601
  readonly preheader: string | null;
@@ -2010,18 +1608,18 @@ export declare const update: (input: {
2010
1608
  readonly updatedAt: string;
2011
1609
  readonly usageCount: number;
2012
1610
  readonly lastUsedAt: string | null;
2013
- readonly channel: "sms" | "whatsapp" | "email";
1611
+ readonly channel: "email";
2014
1612
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
2015
1613
  readonly origin: "dashboard" | "tsx";
2016
1614
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
2017
1615
  readonly description: string | null;
2018
1616
  readonly status: string;
2019
- readonly isDefault: boolean;
2020
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
2021
1617
  readonly isActive: boolean;
2022
1618
  readonly category: string | null;
2023
1619
  readonly slug: string;
2024
1620
  readonly version: number;
1621
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
1622
+ readonly isDefault: boolean;
2025
1623
  readonly variableSchema: readonly {
2026
1624
  readonly name: string;
2027
1625
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -2039,18 +1637,12 @@ export declare const update: (input: {
2039
1637
  readonly description?: string | null;
2040
1638
  }[] | null;
2041
1639
  readonly compliance: {
2042
- readonly dltTemplateId?: string | null;
2043
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
2044
- readonly dltApprovedAt?: string | null;
2045
- readonly whatsappTemplateId?: string | null;
2046
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
2047
- readonly whatsappApprovedAt?: string | null;
2048
1640
  readonly metaStatus?: string | null;
2049
1641
  readonly submittedAt?: string | null;
2050
1642
  readonly qualityScore?: string | null;
2051
1643
  readonly rejectedReason?: string | null;
2052
1644
  readonly lastSyncedAt?: string | null;
2053
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
1645
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
2054
1646
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
2055
1647
  readonly approvedAt?: string | null;
2056
1648
  readonly approvalNotes?: string | null;
@@ -2064,11 +1656,11 @@ export declare const update: (input: {
2064
1656
  readonly designOverrides: {
2065
1657
  readonly footer?: {
2066
1658
  readonly address?: {
2067
- readonly region: string;
2068
- readonly street1: string;
1659
+ readonly country: string;
2069
1660
  readonly city: string;
1661
+ readonly street1: string;
1662
+ readonly region: string;
2070
1663
  readonly postalCode: string;
2071
- readonly country: string;
2072
1664
  readonly street2?: string | null;
2073
1665
  } | null;
2074
1666
  readonly companyName?: string | null;
@@ -2138,73 +1730,13 @@ export declare const update: (input: {
2138
1730
  } | null;
2139
1731
  readonly publishedAt?: string | null;
2140
1732
  readonly publishedBy?: string | null;
2141
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1733
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2142
1734
  export declare const approve: (input: {
2143
1735
  readonly id: string;
2144
1736
  readonly data: {
2145
1737
  readonly notes?: string | null | undefined;
2146
1738
  };
2147
1739
  }) => import("effect/Effect").Effect<{
2148
- readonly sms: {
2149
- readonly body: string;
2150
- readonly encoding: string | null;
2151
- readonly estimatedSegments: number | null;
2152
- readonly category: "transactional" | "promotional" | "service_implicit" | null;
2153
- } | null;
2154
- readonly whatsapp: {
2155
- readonly name: string;
2156
- readonly language: string;
2157
- readonly category: "marketing" | "utility" | "authentication" | "service";
2158
- readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
2159
- readonly headerMediaType: string | null;
2160
- readonly headerContent: string | null;
2161
- readonly bodyContent: string;
2162
- readonly footerContent: string | null;
2163
- readonly components: readonly {
2164
- readonly type: "body" | "button" | "header" | "footer";
2165
- readonly text?: string | null;
2166
- readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
2167
- readonly example?: {
2168
- readonly header_text?: readonly string[] | null;
2169
- readonly body_text?: readonly (readonly string[])[] | null;
2170
- } | null;
2171
- readonly buttons?: readonly {
2172
- readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
2173
- readonly url?: string | null;
2174
- readonly text?: string | null;
2175
- readonly example?: string | null;
2176
- readonly phone_number?: string | null;
2177
- }[] | null;
2178
- readonly parameters?: readonly {
2179
- readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
2180
- readonly text?: string | null;
2181
- readonly image?: {
2182
- readonly link: string;
2183
- } | null;
2184
- readonly video?: {
2185
- readonly link: string;
2186
- } | null;
2187
- readonly document?: {
2188
- readonly link: string;
2189
- readonly filename?: string | null;
2190
- } | null;
2191
- readonly currency?: {
2192
- readonly fallback_value: string;
2193
- readonly code: string;
2194
- readonly amount_1000: number;
2195
- } | null;
2196
- readonly date_time?: {
2197
- readonly fallback_value: string;
2198
- } | null;
2199
- }[] | null;
2200
- }[] | null;
2201
- readonly buttons: readonly {
2202
- readonly [x: string]: import("./generated").JsonValue;
2203
- }[] | null;
2204
- readonly examples: {
2205
- readonly [x: string]: import("./generated").JsonValue;
2206
- } | null;
2207
- } | null;
2208
1740
  readonly email: {
2209
1741
  readonly subject: string;
2210
1742
  readonly preheader: string | null;
@@ -2217,18 +1749,18 @@ export declare const approve: (input: {
2217
1749
  readonly updatedAt: string;
2218
1750
  readonly usageCount: number;
2219
1751
  readonly lastUsedAt: string | null;
2220
- readonly channel: "sms" | "whatsapp" | "email";
1752
+ readonly channel: "email";
2221
1753
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
2222
1754
  readonly origin: "dashboard" | "tsx";
2223
1755
  readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
2224
1756
  readonly description: string | null;
2225
1757
  readonly status: string;
2226
- readonly isDefault: boolean;
2227
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
2228
1758
  readonly isActive: boolean;
2229
1759
  readonly category: string | null;
2230
1760
  readonly slug: string;
2231
1761
  readonly version: number;
1762
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
1763
+ readonly isDefault: boolean;
2232
1764
  readonly variableSchema: readonly {
2233
1765
  readonly name: string;
2234
1766
  readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
@@ -2246,18 +1778,12 @@ export declare const approve: (input: {
2246
1778
  readonly description?: string | null;
2247
1779
  }[] | null;
2248
1780
  readonly compliance: {
2249
- readonly dltTemplateId?: string | null;
2250
- readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
2251
- readonly dltApprovedAt?: string | null;
2252
- readonly whatsappTemplateId?: string | null;
2253
- readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
2254
- readonly whatsappApprovedAt?: string | null;
2255
1781
  readonly metaStatus?: string | null;
2256
1782
  readonly submittedAt?: string | null;
2257
1783
  readonly qualityScore?: string | null;
2258
1784
  readonly rejectedReason?: string | null;
2259
1785
  readonly lastSyncedAt?: string | null;
2260
- readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
1786
+ readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
2261
1787
  readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
2262
1788
  readonly approvedAt?: string | null;
2263
1789
  readonly approvalNotes?: string | null;
@@ -2271,11 +1797,11 @@ export declare const approve: (input: {
2271
1797
  readonly designOverrides: {
2272
1798
  readonly footer?: {
2273
1799
  readonly address?: {
2274
- readonly region: string;
2275
- readonly street1: string;
1800
+ readonly country: string;
2276
1801
  readonly city: string;
1802
+ readonly street1: string;
1803
+ readonly region: string;
2277
1804
  readonly postalCode: string;
2278
- readonly country: string;
2279
1805
  readonly street2?: string | null;
2280
1806
  } | null;
2281
1807
  readonly companyName?: string | null;
@@ -2345,13 +1871,13 @@ export declare const approve: (input: {
2345
1871
  } | null;
2346
1872
  readonly publishedAt?: string | null;
2347
1873
  readonly publishedBy?: string | null;
2348
- }, 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>;
1874
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2349
1875
  export declare const openDocument: (input: {
2350
1876
  readonly templateId: string;
2351
1877
  }) => import("effect/Effect").Effect<{
2352
1878
  readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
2353
1879
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
2354
- readonly channel: "sms" | "whatsapp" | "email";
1880
+ readonly channel: "email";
2355
1881
  readonly source: string;
2356
1882
  readonly revision: string;
2357
1883
  readonly sourceDigest: string;
@@ -2365,13 +1891,13 @@ export declare const openDocument: (input: {
2365
1891
  readonly userId: string & import("effect/Brand").Brand<"UserId">;
2366
1892
  readonly via: "agent" | "api" | "mcp";
2367
1893
  };
2368
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1894
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2369
1895
  export declare const getDocument: (input: {
2370
1896
  readonly templateId: string;
2371
1897
  }) => import("effect/Effect").Effect<{
2372
1898
  readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
2373
1899
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
2374
- readonly channel: "sms" | "whatsapp" | "email";
1900
+ readonly channel: "email";
2375
1901
  readonly source: string;
2376
1902
  readonly revision: string;
2377
1903
  readonly sourceDigest: string;
@@ -2385,7 +1911,7 @@ export declare const getDocument: (input: {
2385
1911
  readonly userId: string & import("effect/Brand").Brand<"UserId">;
2386
1912
  readonly via: "agent" | "api" | "mcp";
2387
1913
  };
2388
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1914
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2389
1915
  export declare const replaceDocument: (input: {
2390
1916
  readonly templateId: string;
2391
1917
  readonly expectedRevision: string;
@@ -2393,7 +1919,7 @@ export declare const replaceDocument: (input: {
2393
1919
  }) => import("effect/Effect").Effect<{
2394
1920
  readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
2395
1921
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
2396
- readonly channel: "sms" | "whatsapp" | "email";
1922
+ readonly channel: "email";
2397
1923
  readonly source: string;
2398
1924
  readonly revision: string;
2399
1925
  readonly sourceDigest: string;
@@ -2407,7 +1933,7 @@ export declare const replaceDocument: (input: {
2407
1933
  readonly userId: string & import("effect/Brand").Brand<"UserId">;
2408
1934
  readonly via: "agent" | "api" | "mcp";
2409
1935
  };
2410
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1936
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2411
1937
  export declare const saveDocument: (input: {
2412
1938
  readonly templateId: string;
2413
1939
  readonly revision: string;
@@ -2419,7 +1945,7 @@ export declare const saveDocument: (input: {
2419
1945
  readonly compilerVersion: string;
2420
1946
  readonly createdAt: string;
2421
1947
  readonly versionId: string;
2422
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1948
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2423
1949
  export declare const renderDocument: (input: {
2424
1950
  readonly templateId: string;
2425
1951
  readonly revision: string;
@@ -2452,11 +1978,11 @@ export declare const renderDocument: (input: {
2452
1978
  } | null | undefined;
2453
1979
  }) => import("effect/Effect").Effect<{
2454
1980
  readonly text: string;
2455
- readonly channel: "sms" | "whatsapp" | "email";
1981
+ readonly channel: "email";
2456
1982
  readonly missingVariables: readonly string[];
2457
1983
  readonly subject?: string | null;
2458
1984
  readonly html?: string | null;
2459
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1985
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2460
1986
  export declare const checkDocumentSpam: (input: {
2461
1987
  readonly templateId: string;
2462
1988
  readonly revision: string;
@@ -2497,7 +2023,7 @@ export declare const checkDocumentSpam: (input: {
2497
2023
  readonly score: number;
2498
2024
  }[];
2499
2025
  readonly recommendations: readonly string[];
2500
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
2026
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2501
2027
  export declare const sendDocumentTest: (input: {
2502
2028
  readonly templateId: string;
2503
2029
  readonly to: string;
@@ -2534,12 +2060,12 @@ export declare const sendDocumentTest: (input: {
2534
2060
  readonly status: string;
2535
2061
  readonly rendered: {
2536
2062
  readonly text: string;
2537
- readonly channel: "sms" | "whatsapp" | "email";
2063
+ readonly channel: "email";
2538
2064
  readonly missingVariables: readonly string[];
2539
2065
  readonly subject?: string | null;
2540
2066
  readonly html?: string | null;
2541
2067
  };
2542
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
2068
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").RateLimitedError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2543
2069
  export declare const listDocumentVersions: (input: {
2544
2070
  readonly templateId: string;
2545
2071
  }) => import("effect/Effect").Effect<{
@@ -2556,17 +2082,17 @@ export declare const listDocumentVersions: (input: {
2556
2082
  readonly archivedAt: string | null;
2557
2083
  readonly createdAt: string;
2558
2084
  }[];
2559
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
2085
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2560
2086
  export declare const publishDocument: (input: {
2561
2087
  readonly templateId: string;
2562
2088
  }) => import("effect/Effect").Effect<{
2563
2089
  readonly versionId: string;
2564
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
2090
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2565
2091
  export declare const unpublishDocument: (input: {
2566
2092
  readonly templateId: string;
2567
2093
  }) => import("effect/Effect").Effect<{
2568
2094
  readonly versionId: string;
2569
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
2095
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
2570
2096
  export declare const restoreDocument: (input: {
2571
2097
  readonly templateId: string;
2572
2098
  readonly versionId: string;
@@ -2574,7 +2100,7 @@ export declare const restoreDocument: (input: {
2574
2100
  }) => import("effect/Effect").Effect<{
2575
2101
  readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
2576
2102
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
2577
- readonly channel: "sms" | "whatsapp" | "email";
2103
+ readonly channel: "email";
2578
2104
  readonly source: string;
2579
2105
  readonly revision: string;
2580
2106
  readonly sourceDigest: string;
@@ -2588,4 +2114,4 @@ export declare const restoreDocument: (input: {
2588
2114
  readonly userId: string & import("effect/Brand").Brand<"UserId">;
2589
2115
  readonly via: "agent" | "api" | "mcp";
2590
2116
  };
2591
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
2117
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;