samva 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/sdk.gen.d.ts +120 -184
- package/dist/client/types.gen.d.ts +811 -418
- package/dist/{client-DVALvDUe.js → client-BqkU-sFv.js} +937 -576
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +98 -7
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +16 -94
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +65 -50
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +107 -67
- package/dist/effect/email.js +20 -18
- package/dist/effect/generated.d.ts +11823 -11603
- package/dist/effect/index.js +1 -1
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +0 -48
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +262 -1018
- package/dist/effect/templates.js +26 -18
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{operation-UtKNITtG.js → operation-Ccqh_yxb.js} +48 -25
- package/dist/promises/index.d.ts +3 -1
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-QxEfMTho.js → promises-Dgv8UmCC.js} +319 -153
- package/dist/service-map.d.ts +66 -40
- package/package.json +4 -4
|
@@ -110,20 +110,19 @@ export declare const list: ((input?: {
|
|
|
110
110
|
readonly default?: import("./generated").JsonValue;
|
|
111
111
|
readonly description?: string | null;
|
|
112
112
|
}[] | null;
|
|
113
|
-
readonly source: string | null;
|
|
114
113
|
readonly compliance: {
|
|
115
114
|
readonly dltTemplateId?: string | null;
|
|
116
115
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
117
116
|
readonly dltApprovedAt?: string | null;
|
|
118
117
|
readonly whatsappTemplateId?: string | null;
|
|
119
|
-
readonly whatsappStatus?: "pending" | "
|
|
118
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
120
119
|
readonly whatsappApprovedAt?: string | null;
|
|
121
120
|
readonly metaStatus?: string | null;
|
|
122
121
|
readonly submittedAt?: string | null;
|
|
123
122
|
readonly qualityScore?: string | null;
|
|
124
123
|
readonly rejectedReason?: string | null;
|
|
125
124
|
readonly lastSyncedAt?: string | null;
|
|
126
|
-
readonly approvalStatus?: "pending" | "
|
|
125
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
127
126
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
128
127
|
readonly approvedAt?: string | null;
|
|
129
128
|
readonly approvalNotes?: string | null;
|
|
@@ -209,7 +208,6 @@ export declare const list: ((input?: {
|
|
|
209
208
|
readonly opens?: boolean | null;
|
|
210
209
|
readonly clicks?: boolean | null;
|
|
211
210
|
} | null;
|
|
212
|
-
readonly publishedSource?: string | null;
|
|
213
211
|
readonly publishedAt?: string | null;
|
|
214
212
|
readonly publishedBy?: string | null;
|
|
215
213
|
}[];
|
|
@@ -331,20 +329,19 @@ export declare const list: ((input?: {
|
|
|
331
329
|
readonly default?: import("./generated").JsonValue;
|
|
332
330
|
readonly description?: string | null;
|
|
333
331
|
}[] | null;
|
|
334
|
-
readonly source: string | null;
|
|
335
332
|
readonly compliance: {
|
|
336
333
|
readonly dltTemplateId?: string | null;
|
|
337
334
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
338
335
|
readonly dltApprovedAt?: string | null;
|
|
339
336
|
readonly whatsappTemplateId?: string | null;
|
|
340
|
-
readonly whatsappStatus?: "pending" | "
|
|
337
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
341
338
|
readonly whatsappApprovedAt?: string | null;
|
|
342
339
|
readonly metaStatus?: string | null;
|
|
343
340
|
readonly submittedAt?: string | null;
|
|
344
341
|
readonly qualityScore?: string | null;
|
|
345
342
|
readonly rejectedReason?: string | null;
|
|
346
343
|
readonly lastSyncedAt?: string | null;
|
|
347
|
-
readonly approvalStatus?: "pending" | "
|
|
344
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
348
345
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
349
346
|
readonly approvedAt?: string | null;
|
|
350
347
|
readonly approvalNotes?: string | null;
|
|
@@ -430,7 +427,6 @@ export declare const list: ((input?: {
|
|
|
430
427
|
readonly opens?: boolean | null;
|
|
431
428
|
readonly clicks?: boolean | null;
|
|
432
429
|
} | null;
|
|
433
|
-
readonly publishedSource?: string | null;
|
|
434
430
|
readonly publishedAt?: string | null;
|
|
435
431
|
readonly publishedBy?: string | null;
|
|
436
432
|
}[];
|
|
@@ -551,20 +547,19 @@ export declare const list: ((input?: {
|
|
|
551
547
|
readonly default?: import("./generated").JsonValue;
|
|
552
548
|
readonly description?: string | null;
|
|
553
549
|
}[] | null;
|
|
554
|
-
readonly source: string | null;
|
|
555
550
|
readonly compliance: {
|
|
556
551
|
readonly dltTemplateId?: string | null;
|
|
557
552
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
558
553
|
readonly dltApprovedAt?: string | null;
|
|
559
554
|
readonly whatsappTemplateId?: string | null;
|
|
560
|
-
readonly whatsappStatus?: "pending" | "
|
|
555
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
561
556
|
readonly whatsappApprovedAt?: string | null;
|
|
562
557
|
readonly metaStatus?: string | null;
|
|
563
558
|
readonly submittedAt?: string | null;
|
|
564
559
|
readonly qualityScore?: string | null;
|
|
565
560
|
readonly rejectedReason?: string | null;
|
|
566
561
|
readonly lastSyncedAt?: string | null;
|
|
567
|
-
readonly approvalStatus?: "pending" | "
|
|
562
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
568
563
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
569
564
|
readonly approvedAt?: string | null;
|
|
570
565
|
readonly approvalNotes?: string | null;
|
|
@@ -650,7 +645,6 @@ export declare const list: ((input?: {
|
|
|
650
645
|
readonly opens?: boolean | null;
|
|
651
646
|
readonly clicks?: boolean | null;
|
|
652
647
|
} | null;
|
|
653
|
-
readonly publishedSource?: string | null;
|
|
654
648
|
readonly publishedAt?: string | null;
|
|
655
649
|
readonly publishedBy?: string | null;
|
|
656
650
|
}, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
@@ -661,8 +655,8 @@ export declare const create: (input: {
|
|
|
661
655
|
readonly headers?: {
|
|
662
656
|
readonly [x: string]: string | undefined;
|
|
663
657
|
} | null | undefined;
|
|
664
|
-
readonly subject?: string | null | undefined;
|
|
665
658
|
readonly origin?: string | null | undefined;
|
|
659
|
+
readonly subject?: string | null | undefined;
|
|
666
660
|
readonly description?: string | null | undefined;
|
|
667
661
|
readonly isDefault?: boolean | null | undefined;
|
|
668
662
|
readonly isActive?: boolean | null | undefined;
|
|
@@ -913,20 +907,19 @@ export declare const create: (input: {
|
|
|
913
907
|
readonly default?: import("./generated").JsonValue;
|
|
914
908
|
readonly description?: string | null;
|
|
915
909
|
}[] | null;
|
|
916
|
-
readonly source: string | null;
|
|
917
910
|
readonly compliance: {
|
|
918
911
|
readonly dltTemplateId?: string | null;
|
|
919
912
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
920
913
|
readonly dltApprovedAt?: string | null;
|
|
921
914
|
readonly whatsappTemplateId?: string | null;
|
|
922
|
-
readonly whatsappStatus?: "pending" | "
|
|
915
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
923
916
|
readonly whatsappApprovedAt?: string | null;
|
|
924
917
|
readonly metaStatus?: string | null;
|
|
925
918
|
readonly submittedAt?: string | null;
|
|
926
919
|
readonly qualityScore?: string | null;
|
|
927
920
|
readonly rejectedReason?: string | null;
|
|
928
921
|
readonly lastSyncedAt?: string | null;
|
|
929
|
-
readonly approvalStatus?: "pending" | "
|
|
922
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
930
923
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
931
924
|
readonly approvedAt?: string | null;
|
|
932
925
|
readonly approvalNotes?: string | null;
|
|
@@ -1012,7 +1005,6 @@ export declare const create: (input: {
|
|
|
1012
1005
|
readonly opens?: boolean | null;
|
|
1013
1006
|
readonly clicks?: boolean | null;
|
|
1014
1007
|
} | null;
|
|
1015
|
-
readonly publishedSource?: string | null;
|
|
1016
1008
|
readonly publishedAt?: string | null;
|
|
1017
1009
|
readonly publishedBy?: string | null;
|
|
1018
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>;
|
|
@@ -1039,7 +1031,7 @@ export declare const listDashboard: ((input: {
|
|
|
1039
1031
|
readonly origin: "dashboard" | "tsx";
|
|
1040
1032
|
readonly description: string | null;
|
|
1041
1033
|
readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1042
|
-
readonly status: "pending" | "
|
|
1034
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1043
1035
|
readonly version: number;
|
|
1044
1036
|
readonly usageCount: number;
|
|
1045
1037
|
readonly lastUsedAt: string | null;
|
|
@@ -1060,7 +1052,7 @@ export declare const listDashboard: ((input: {
|
|
|
1060
1052
|
readonly origin: "dashboard" | "tsx";
|
|
1061
1053
|
readonly description: string | null;
|
|
1062
1054
|
readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1063
|
-
readonly status: "pending" | "
|
|
1055
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1064
1056
|
readonly version: number;
|
|
1065
1057
|
readonly usageCount: number;
|
|
1066
1058
|
readonly lastUsedAt: string | null;
|
|
@@ -1098,7 +1090,7 @@ export declare const listDashboard: ((input: {
|
|
|
1098
1090
|
readonly origin: "dashboard" | "tsx";
|
|
1099
1091
|
readonly description: string | null;
|
|
1100
1092
|
readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1101
|
-
readonly status: "pending" | "
|
|
1093
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1102
1094
|
readonly version: number;
|
|
1103
1095
|
readonly usageCount: number;
|
|
1104
1096
|
readonly lastUsedAt: string | null;
|
|
@@ -1119,7 +1111,7 @@ export declare const listDashboard: ((input: {
|
|
|
1119
1111
|
readonly origin: "dashboard" | "tsx";
|
|
1120
1112
|
readonly description: string | null;
|
|
1121
1113
|
readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1122
|
-
readonly status: "pending" | "
|
|
1114
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1123
1115
|
readonly version: number;
|
|
1124
1116
|
readonly usageCount: number;
|
|
1125
1117
|
readonly lastUsedAt: string | null;
|
|
@@ -1156,7 +1148,7 @@ export declare const listDashboard: ((input: {
|
|
|
1156
1148
|
readonly origin: "dashboard" | "tsx";
|
|
1157
1149
|
readonly description: string | null;
|
|
1158
1150
|
readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1159
|
-
readonly status: "pending" | "
|
|
1151
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1160
1152
|
readonly version: number;
|
|
1161
1153
|
readonly usageCount: number;
|
|
1162
1154
|
readonly lastUsedAt: string | null;
|
|
@@ -1177,7 +1169,7 @@ export declare const listDashboard: ((input: {
|
|
|
1177
1169
|
readonly origin: "dashboard" | "tsx";
|
|
1178
1170
|
readonly description: string | null;
|
|
1179
1171
|
readonly category: "marketing" | "transactional" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1180
|
-
readonly status: "pending" | "
|
|
1172
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1181
1173
|
readonly version: number;
|
|
1182
1174
|
readonly usageCount: number;
|
|
1183
1175
|
readonly lastUsedAt: string | null;
|
|
@@ -1215,7 +1207,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1215
1207
|
readonly default?: import("./generated").JsonValue;
|
|
1216
1208
|
readonly description?: string | null;
|
|
1217
1209
|
}[] | null;
|
|
1218
|
-
readonly status: "pending" | "
|
|
1210
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1219
1211
|
readonly isActive: boolean;
|
|
1220
1212
|
readonly version: number;
|
|
1221
1213
|
readonly createdAt: string;
|
|
@@ -1260,7 +1252,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1260
1252
|
readonly default?: import("./generated").JsonValue;
|
|
1261
1253
|
readonly description?: string | null;
|
|
1262
1254
|
}[] | null;
|
|
1263
|
-
readonly status: "pending" | "
|
|
1255
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1264
1256
|
readonly isActive: boolean;
|
|
1265
1257
|
readonly version: number;
|
|
1266
1258
|
readonly createdAt: string;
|
|
@@ -1304,7 +1296,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1304
1296
|
readonly default?: import("./generated").JsonValue;
|
|
1305
1297
|
readonly description?: string | null;
|
|
1306
1298
|
}[] | null;
|
|
1307
|
-
readonly status: "pending" | "
|
|
1299
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1308
1300
|
readonly isActive: boolean;
|
|
1309
1301
|
readonly version: number;
|
|
1310
1302
|
readonly createdAt: string;
|
|
@@ -1341,7 +1333,7 @@ export declare const createFamily: (input: {
|
|
|
1341
1333
|
readonly default?: import("./generated").JsonValue;
|
|
1342
1334
|
readonly description?: string | null;
|
|
1343
1335
|
}[] | null;
|
|
1344
|
-
readonly status: "pending" | "
|
|
1336
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1345
1337
|
readonly isActive: boolean;
|
|
1346
1338
|
readonly version: number;
|
|
1347
1339
|
readonly createdAt: string;
|
|
@@ -1377,7 +1369,7 @@ export declare const getFamily: (input: {
|
|
|
1377
1369
|
readonly default?: import("./generated").JsonValue;
|
|
1378
1370
|
readonly description?: string | null;
|
|
1379
1371
|
}[] | null;
|
|
1380
|
-
readonly status: "pending" | "
|
|
1372
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1381
1373
|
readonly isActive: boolean;
|
|
1382
1374
|
readonly version: number;
|
|
1383
1375
|
readonly createdAt: string;
|
|
@@ -1419,7 +1411,7 @@ export declare const renameFamily: (input: {
|
|
|
1419
1411
|
readonly default?: import("./generated").JsonValue;
|
|
1420
1412
|
readonly description?: string | null;
|
|
1421
1413
|
}[] | null;
|
|
1422
|
-
readonly status: "pending" | "
|
|
1414
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1423
1415
|
readonly isActive: boolean;
|
|
1424
1416
|
readonly version: number;
|
|
1425
1417
|
readonly createdAt: string;
|
|
@@ -1456,7 +1448,7 @@ export declare const createFamilyFromTemplate: (input: {
|
|
|
1456
1448
|
readonly default?: import("./generated").JsonValue;
|
|
1457
1449
|
readonly description?: string | null;
|
|
1458
1450
|
}[] | null;
|
|
1459
|
-
readonly status: "pending" | "
|
|
1451
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1460
1452
|
readonly isActive: boolean;
|
|
1461
1453
|
readonly version: number;
|
|
1462
1454
|
readonly createdAt: string;
|
|
@@ -1493,7 +1485,7 @@ export declare const attachFamilyMember: (input: {
|
|
|
1493
1485
|
readonly default?: import("./generated").JsonValue;
|
|
1494
1486
|
readonly description?: string | null;
|
|
1495
1487
|
}[] | null;
|
|
1496
|
-
readonly status: "pending" | "
|
|
1488
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1497
1489
|
readonly isActive: boolean;
|
|
1498
1490
|
readonly version: number;
|
|
1499
1491
|
readonly createdAt: string;
|
|
@@ -1530,7 +1522,7 @@ export declare const detachFamilyMember: (input: {
|
|
|
1530
1522
|
readonly default?: import("./generated").JsonValue;
|
|
1531
1523
|
readonly description?: string | null;
|
|
1532
1524
|
}[] | null;
|
|
1533
|
-
readonly status: "pending" | "
|
|
1525
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1534
1526
|
readonly isActive: boolean;
|
|
1535
1527
|
readonly version: number;
|
|
1536
1528
|
readonly createdAt: string;
|
|
@@ -1567,7 +1559,7 @@ export declare const addFamilyChannel: (input: {
|
|
|
1567
1559
|
readonly default?: import("./generated").JsonValue;
|
|
1568
1560
|
readonly description?: string | null;
|
|
1569
1561
|
}[] | null;
|
|
1570
|
-
readonly status: "pending" | "
|
|
1562
|
+
readonly status: "pending" | "archived" | "rejected" | "approved" | "draft" | "published";
|
|
1571
1563
|
readonly isActive: boolean;
|
|
1572
1564
|
readonly version: number;
|
|
1573
1565
|
readonly createdAt: string;
|
|
@@ -1679,20 +1671,19 @@ export declare const getById: (input: {
|
|
|
1679
1671
|
readonly default?: import("./generated").JsonValue;
|
|
1680
1672
|
readonly description?: string | null;
|
|
1681
1673
|
}[] | null;
|
|
1682
|
-
readonly source: string | null;
|
|
1683
1674
|
readonly compliance: {
|
|
1684
1675
|
readonly dltTemplateId?: string | null;
|
|
1685
1676
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
1686
1677
|
readonly dltApprovedAt?: string | null;
|
|
1687
1678
|
readonly whatsappTemplateId?: string | null;
|
|
1688
|
-
readonly whatsappStatus?: "pending" | "
|
|
1679
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
1689
1680
|
readonly whatsappApprovedAt?: string | null;
|
|
1690
1681
|
readonly metaStatus?: string | null;
|
|
1691
1682
|
readonly submittedAt?: string | null;
|
|
1692
1683
|
readonly qualityScore?: string | null;
|
|
1693
1684
|
readonly rejectedReason?: string | null;
|
|
1694
1685
|
readonly lastSyncedAt?: string | null;
|
|
1695
|
-
readonly approvalStatus?: "pending" | "
|
|
1686
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
1696
1687
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
1697
1688
|
readonly approvedAt?: string | null;
|
|
1698
1689
|
readonly approvalNotes?: string | null;
|
|
@@ -1778,7 +1769,6 @@ export declare const getById: (input: {
|
|
|
1778
1769
|
readonly opens?: boolean | null;
|
|
1779
1770
|
readonly clicks?: boolean | null;
|
|
1780
1771
|
} | null;
|
|
1781
|
-
readonly publishedSource?: string | null;
|
|
1782
1772
|
readonly publishedAt?: string | null;
|
|
1783
1773
|
readonly publishedBy?: string | null;
|
|
1784
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>;
|
|
@@ -1790,11 +1780,7 @@ export declare const remove: (input: {
|
|
|
1790
1780
|
export declare const update: (input: {
|
|
1791
1781
|
readonly id: string;
|
|
1792
1782
|
readonly data: {
|
|
1793
|
-
readonly headers?: {
|
|
1794
|
-
readonly [x: string]: string | undefined;
|
|
1795
|
-
} | null | undefined;
|
|
1796
1783
|
readonly name?: string | null | undefined;
|
|
1797
|
-
readonly subject?: string | null | undefined;
|
|
1798
1784
|
readonly origin?: string | null | undefined;
|
|
1799
1785
|
readonly description?: string | null | undefined;
|
|
1800
1786
|
readonly isDefault?: boolean | null | undefined;
|
|
@@ -1840,7 +1826,6 @@ export declare const update: (input: {
|
|
|
1840
1826
|
} | null | undefined;
|
|
1841
1827
|
readonly description?: string | null | undefined;
|
|
1842
1828
|
}[] | null | undefined;
|
|
1843
|
-
readonly source?: string | null | undefined;
|
|
1844
1829
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
1845
1830
|
readonly compliance?: {
|
|
1846
1831
|
readonly dltTemplateId?: string | null | undefined;
|
|
@@ -2053,20 +2038,19 @@ export declare const update: (input: {
|
|
|
2053
2038
|
readonly default?: import("./generated").JsonValue;
|
|
2054
2039
|
readonly description?: string | null;
|
|
2055
2040
|
}[] | null;
|
|
2056
|
-
readonly source: string | null;
|
|
2057
2041
|
readonly compliance: {
|
|
2058
2042
|
readonly dltTemplateId?: string | null;
|
|
2059
2043
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2060
2044
|
readonly dltApprovedAt?: string | null;
|
|
2061
2045
|
readonly whatsappTemplateId?: string | null;
|
|
2062
|
-
readonly whatsappStatus?: "pending" | "
|
|
2046
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
2063
2047
|
readonly whatsappApprovedAt?: string | null;
|
|
2064
2048
|
readonly metaStatus?: string | null;
|
|
2065
2049
|
readonly submittedAt?: string | null;
|
|
2066
2050
|
readonly qualityScore?: string | null;
|
|
2067
2051
|
readonly rejectedReason?: string | null;
|
|
2068
2052
|
readonly lastSyncedAt?: string | null;
|
|
2069
|
-
readonly approvalStatus?: "pending" | "
|
|
2053
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
2070
2054
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2071
2055
|
readonly approvedAt?: string | null;
|
|
2072
2056
|
readonly approvalNotes?: string | null;
|
|
@@ -2152,7 +2136,6 @@ export declare const update: (input: {
|
|
|
2152
2136
|
readonly opens?: boolean | null;
|
|
2153
2137
|
readonly clicks?: boolean | null;
|
|
2154
2138
|
} | null;
|
|
2155
|
-
readonly publishedSource?: string | null;
|
|
2156
2139
|
readonly publishedAt?: string | null;
|
|
2157
2140
|
readonly publishedBy?: string | null;
|
|
2158
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>;
|
|
@@ -2262,20 +2245,19 @@ export declare const approve: (input: {
|
|
|
2262
2245
|
readonly default?: import("./generated").JsonValue;
|
|
2263
2246
|
readonly description?: string | null;
|
|
2264
2247
|
}[] | null;
|
|
2265
|
-
readonly source: string | null;
|
|
2266
2248
|
readonly compliance: {
|
|
2267
2249
|
readonly dltTemplateId?: string | null;
|
|
2268
2250
|
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2269
2251
|
readonly dltApprovedAt?: string | null;
|
|
2270
2252
|
readonly whatsappTemplateId?: string | null;
|
|
2271
|
-
readonly whatsappStatus?: "pending" | "
|
|
2253
|
+
readonly whatsappStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
2272
2254
|
readonly whatsappApprovedAt?: string | null;
|
|
2273
2255
|
readonly metaStatus?: string | null;
|
|
2274
2256
|
readonly submittedAt?: string | null;
|
|
2275
2257
|
readonly qualityScore?: string | null;
|
|
2276
2258
|
readonly rejectedReason?: string | null;
|
|
2277
2259
|
readonly lastSyncedAt?: string | null;
|
|
2278
|
-
readonly approvalStatus?: "pending" | "
|
|
2260
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "approved" | "draft" | "published" | null;
|
|
2279
2261
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2280
2262
|
readonly approvedAt?: string | null;
|
|
2281
2263
|
readonly approvalNotes?: string | null;
|
|
@@ -2361,987 +2343,249 @@ export declare const approve: (input: {
|
|
|
2361
2343
|
readonly opens?: boolean | null;
|
|
2362
2344
|
readonly clicks?: boolean | null;
|
|
2363
2345
|
} | null;
|
|
2364
|
-
readonly publishedSource?: string | null;
|
|
2365
2346
|
readonly publishedAt?: string | null;
|
|
2366
2347
|
readonly publishedBy?: string | null;
|
|
2367
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>;
|
|
2368
|
-
export declare const
|
|
2349
|
+
export declare const openDocument: (input: {
|
|
2350
|
+
readonly templateId: string;
|
|
2351
|
+
}) => import("effect/Effect").Effect<{
|
|
2352
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2353
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2354
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
2355
|
+
readonly source: string;
|
|
2356
|
+
readonly revision: string;
|
|
2357
|
+
readonly sourceDigest: string;
|
|
2358
|
+
readonly createdAt: string;
|
|
2359
|
+
readonly updatedAt: string;
|
|
2360
|
+
readonly createdBy: {
|
|
2361
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2362
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2363
|
+
};
|
|
2364
|
+
readonly updatedBy: {
|
|
2365
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2366
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2367
|
+
};
|
|
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>;
|
|
2369
|
+
export declare const getDocument: (input: {
|
|
2370
|
+
readonly templateId: string;
|
|
2371
|
+
}) => import("effect/Effect").Effect<{
|
|
2372
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2373
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2374
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
2375
|
+
readonly source: string;
|
|
2376
|
+
readonly revision: string;
|
|
2377
|
+
readonly sourceDigest: string;
|
|
2378
|
+
readonly createdAt: string;
|
|
2379
|
+
readonly updatedAt: string;
|
|
2380
|
+
readonly createdBy: {
|
|
2381
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2382
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2383
|
+
};
|
|
2384
|
+
readonly updatedBy: {
|
|
2385
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2386
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2387
|
+
};
|
|
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>;
|
|
2389
|
+
export declare const replaceDocument: (input: {
|
|
2390
|
+
readonly templateId: string;
|
|
2391
|
+
readonly expectedRevision: string;
|
|
2392
|
+
readonly source: string;
|
|
2393
|
+
}) => import("effect/Effect").Effect<{
|
|
2394
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2395
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2396
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
2397
|
+
readonly source: string;
|
|
2398
|
+
readonly revision: string;
|
|
2399
|
+
readonly sourceDigest: string;
|
|
2400
|
+
readonly createdAt: string;
|
|
2401
|
+
readonly updatedAt: string;
|
|
2402
|
+
readonly createdBy: {
|
|
2403
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2404
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2405
|
+
};
|
|
2406
|
+
readonly updatedBy: {
|
|
2407
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2408
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2409
|
+
};
|
|
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>;
|
|
2411
|
+
export declare const saveDocument: (input: {
|
|
2412
|
+
readonly templateId: string;
|
|
2413
|
+
readonly revision: string;
|
|
2414
|
+
}) => import("effect/Effect").Effect<{
|
|
2369
2415
|
readonly id: string;
|
|
2370
|
-
readonly
|
|
2371
|
-
|
|
2372
|
-
|
|
2416
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2417
|
+
readonly documentRevision: string;
|
|
2418
|
+
readonly sourceDigest: string;
|
|
2419
|
+
readonly compilerVersion: string;
|
|
2420
|
+
readonly createdAt: string;
|
|
2421
|
+
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>;
|
|
2423
|
+
export declare const renderDocument: (input: {
|
|
2424
|
+
readonly templateId: string;
|
|
2425
|
+
readonly revision: string;
|
|
2426
|
+
readonly variables?: {
|
|
2427
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
2428
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
2429
|
+
} | null)[] | {
|
|
2430
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2431
|
+
} | null)[] | {
|
|
2432
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2433
|
+
} | null)[] | {
|
|
2434
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2435
|
+
} | null)[] | {
|
|
2436
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2437
|
+
} | null)[] | {
|
|
2438
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2439
|
+
} | null)[] | {
|
|
2440
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2441
|
+
} | null)[] | {
|
|
2442
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2443
|
+
} | null)[] | {
|
|
2444
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2445
|
+
} | null)[] | {
|
|
2446
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2447
|
+
} | null)[] | {
|
|
2448
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2449
|
+
} | null)[] | {
|
|
2450
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2373
2451
|
} | null | undefined;
|
|
2374
|
-
};
|
|
2452
|
+
} | null | undefined;
|
|
2375
2453
|
}) => import("effect/Effect").Effect<{
|
|
2454
|
+
readonly text: string;
|
|
2376
2455
|
readonly channel: "sms" | "whatsapp" | "email";
|
|
2377
|
-
readonly
|
|
2456
|
+
readonly missingVariables: readonly string[];
|
|
2457
|
+
readonly subject?: string | null;
|
|
2458
|
+
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>;
|
|
2460
|
+
export declare const checkDocumentSpam: (input: {
|
|
2461
|
+
readonly templateId: string;
|
|
2462
|
+
readonly revision: string;
|
|
2463
|
+
readonly variables?: {
|
|
2464
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
2465
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
2466
|
+
} | null)[] | {
|
|
2467
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2468
|
+
} | null)[] | {
|
|
2469
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2470
|
+
} | null)[] | {
|
|
2471
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2472
|
+
} | null)[] | {
|
|
2473
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2474
|
+
} | null)[] | {
|
|
2475
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2476
|
+
} | null)[] | {
|
|
2477
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2478
|
+
} | null)[] | {
|
|
2479
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2480
|
+
} | null)[] | {
|
|
2481
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2482
|
+
} | null)[] | {
|
|
2483
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2484
|
+
} | null)[] | {
|
|
2485
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2486
|
+
} | null)[] | {
|
|
2487
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2488
|
+
} | null | undefined;
|
|
2489
|
+
} | null | undefined;
|
|
2490
|
+
}) => import("effect/Effect").Effect<{
|
|
2491
|
+
readonly score: number;
|
|
2492
|
+
readonly severity: "low" | "medium" | "high";
|
|
2493
|
+
readonly issues: readonly {
|
|
2494
|
+
readonly rule: string;
|
|
2495
|
+
readonly description: string;
|
|
2496
|
+
readonly severity: "low" | "medium" | "high";
|
|
2497
|
+
readonly score: number;
|
|
2498
|
+
}[];
|
|
2499
|
+
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>;
|
|
2501
|
+
export declare const sendDocumentTest: (input: {
|
|
2502
|
+
readonly templateId: string;
|
|
2503
|
+
readonly to: string;
|
|
2504
|
+
readonly revision: string;
|
|
2505
|
+
readonly variables?: {
|
|
2506
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
2507
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
2508
|
+
} | null)[] | {
|
|
2509
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2510
|
+
} | null)[] | {
|
|
2511
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2512
|
+
} | null)[] | {
|
|
2513
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2514
|
+
} | null)[] | {
|
|
2515
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2516
|
+
} | null)[] | {
|
|
2517
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2518
|
+
} | null)[] | {
|
|
2519
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2520
|
+
} | null)[] | {
|
|
2521
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2522
|
+
} | null)[] | {
|
|
2523
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2524
|
+
} | null)[] | {
|
|
2525
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2526
|
+
} | null)[] | {
|
|
2527
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2528
|
+
} | null)[] | {
|
|
2529
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
2530
|
+
} | null | undefined;
|
|
2531
|
+
} | null | undefined;
|
|
2532
|
+
}) => import("effect/Effect").Effect<{
|
|
2533
|
+
readonly messageId: string;
|
|
2534
|
+
readonly status: string;
|
|
2378
2535
|
readonly rendered: {
|
|
2379
2536
|
readonly text: string;
|
|
2537
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
2538
|
+
readonly missingVariables: readonly string[];
|
|
2380
2539
|
readonly subject?: string | null;
|
|
2381
2540
|
readonly html?: string | null;
|
|
2382
2541
|
};
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
readonly estimatedSegments: number | null;
|
|
2387
|
-
} | null;
|
|
2388
|
-
readonly whatsapp?: {
|
|
2389
|
-
readonly name: string;
|
|
2390
|
-
readonly language: string;
|
|
2391
|
-
readonly category: string;
|
|
2392
|
-
readonly buttons: readonly {
|
|
2393
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2394
|
-
}[];
|
|
2395
|
-
readonly bodyContent: string;
|
|
2396
|
-
readonly headerContent?: string | null;
|
|
2397
|
-
readonly footerContent?: string | null;
|
|
2398
|
-
} | null;
|
|
2399
|
-
}, 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>;
|
|
2400
|
-
export declare const duplicate: (input: {
|
|
2401
|
-
readonly id: string;
|
|
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>;
|
|
2543
|
+
export declare const listDocumentVersions: (input: {
|
|
2544
|
+
readonly templateId: string;
|
|
2402
2545
|
}) => import("effect/Effect").Effect<{
|
|
2403
|
-
readonly
|
|
2404
|
-
readonly
|
|
2405
|
-
readonly
|
|
2406
|
-
readonly
|
|
2407
|
-
readonly
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
readonly
|
|
2411
|
-
readonly
|
|
2412
|
-
readonly
|
|
2413
|
-
readonly
|
|
2414
|
-
readonly
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
} | null;
|
|
2439
|
-
readonly video?: {
|
|
2440
|
-
readonly link: string;
|
|
2441
|
-
} | null;
|
|
2442
|
-
readonly document?: {
|
|
2443
|
-
readonly link: string;
|
|
2444
|
-
readonly filename?: string | null;
|
|
2445
|
-
} | null;
|
|
2446
|
-
readonly currency?: {
|
|
2447
|
-
readonly fallback_value: string;
|
|
2448
|
-
readonly code: string;
|
|
2449
|
-
readonly amount_1000: number;
|
|
2450
|
-
} | null;
|
|
2451
|
-
readonly date_time?: {
|
|
2452
|
-
readonly fallback_value: string;
|
|
2453
|
-
} | null;
|
|
2454
|
-
}[] | null;
|
|
2455
|
-
}[] | null;
|
|
2456
|
-
readonly buttons: readonly {
|
|
2457
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2458
|
-
}[] | null;
|
|
2459
|
-
readonly examples: {
|
|
2460
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2461
|
-
} | null;
|
|
2462
|
-
} | null;
|
|
2463
|
-
readonly email: {
|
|
2464
|
-
readonly subject: string;
|
|
2465
|
-
readonly preheader: string | null;
|
|
2466
|
-
readonly headers: {
|
|
2467
|
-
readonly [x: string]: string;
|
|
2468
|
-
} | null;
|
|
2469
|
-
} | null;
|
|
2470
|
-
readonly name: string;
|
|
2546
|
+
readonly versions: readonly {
|
|
2547
|
+
readonly versionId: string & import("effect/Brand").Brand<"TemplateSourceVersionId">;
|
|
2548
|
+
readonly version: number;
|
|
2549
|
+
readonly status: string;
|
|
2550
|
+
readonly isCurrent: boolean;
|
|
2551
|
+
readonly materializationId: string;
|
|
2552
|
+
readonly documentRevision: string;
|
|
2553
|
+
readonly sourceDigest: string;
|
|
2554
|
+
readonly compilerVersion: string;
|
|
2555
|
+
readonly publishedAt: string | null;
|
|
2556
|
+
readonly archivedAt: string | null;
|
|
2557
|
+
readonly createdAt: string;
|
|
2558
|
+
}[];
|
|
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>;
|
|
2560
|
+
export declare const publishDocument: (input: {
|
|
2561
|
+
readonly templateId: string;
|
|
2562
|
+
}) => import("effect/Effect").Effect<{
|
|
2563
|
+
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>;
|
|
2565
|
+
export declare const unpublishDocument: (input: {
|
|
2566
|
+
readonly templateId: string;
|
|
2567
|
+
}) => import("effect/Effect").Effect<{
|
|
2568
|
+
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>;
|
|
2570
|
+
export declare const restoreDocument: (input: {
|
|
2571
|
+
readonly templateId: string;
|
|
2572
|
+
readonly versionId: string;
|
|
2573
|
+
readonly expectedRevision: string;
|
|
2574
|
+
}) => import("effect/Effect").Effect<{
|
|
2575
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2576
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2577
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
2578
|
+
readonly source: string;
|
|
2579
|
+
readonly revision: string;
|
|
2580
|
+
readonly sourceDigest: string;
|
|
2471
2581
|
readonly createdAt: string;
|
|
2472
2582
|
readonly updatedAt: string;
|
|
2473
|
-
readonly
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
readonly
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2483
|
-
readonly isActive: boolean;
|
|
2484
|
-
readonly category: string | null;
|
|
2485
|
-
readonly slug: string;
|
|
2486
|
-
readonly version: number;
|
|
2487
|
-
readonly variableSchema: readonly {
|
|
2488
|
-
readonly name: string;
|
|
2489
|
-
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
2490
|
-
readonly required: boolean;
|
|
2491
|
-
readonly validation?: {
|
|
2492
|
-
readonly enum?: readonly string[] | null;
|
|
2493
|
-
readonly pattern?: string | null;
|
|
2494
|
-
readonly min?: number | null;
|
|
2495
|
-
readonly max?: number | null;
|
|
2496
|
-
readonly minLength?: number | null;
|
|
2497
|
-
readonly maxLength?: number | null;
|
|
2498
|
-
readonly format?: "url" | "email" | "date" | "date-time" | "uuid" | null;
|
|
2499
|
-
} | null;
|
|
2500
|
-
readonly default?: import("./generated").JsonValue;
|
|
2501
|
-
readonly description?: string | null;
|
|
2502
|
-
}[] | null;
|
|
2503
|
-
readonly source: string | null;
|
|
2504
|
-
readonly compliance: {
|
|
2505
|
-
readonly dltTemplateId?: string | null;
|
|
2506
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2507
|
-
readonly dltApprovedAt?: string | null;
|
|
2508
|
-
readonly whatsappTemplateId?: string | null;
|
|
2509
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2510
|
-
readonly whatsappApprovedAt?: string | null;
|
|
2511
|
-
readonly metaStatus?: string | null;
|
|
2512
|
-
readonly submittedAt?: string | null;
|
|
2513
|
-
readonly qualityScore?: string | null;
|
|
2514
|
-
readonly rejectedReason?: string | null;
|
|
2515
|
-
readonly lastSyncedAt?: string | null;
|
|
2516
|
-
readonly approvalStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2517
|
-
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2518
|
-
readonly approvedAt?: string | null;
|
|
2519
|
-
readonly approvalNotes?: string | null;
|
|
2520
|
-
readonly regulatoryRequirements?: readonly {
|
|
2521
|
-
readonly status: "pending" | "compliant" | "non_compliant";
|
|
2522
|
-
readonly region: string;
|
|
2523
|
-
readonly requirement: string;
|
|
2524
|
-
readonly notes?: string | null;
|
|
2525
|
-
}[] | null;
|
|
2526
|
-
} | null;
|
|
2527
|
-
readonly designOverrides: {
|
|
2528
|
-
readonly footer?: {
|
|
2529
|
-
readonly address?: {
|
|
2530
|
-
readonly region: string;
|
|
2531
|
-
readonly street1: string;
|
|
2532
|
-
readonly city: string;
|
|
2533
|
-
readonly postalCode: string;
|
|
2534
|
-
readonly country: string;
|
|
2535
|
-
readonly street2?: string | null;
|
|
2536
|
-
} | null;
|
|
2537
|
-
readonly companyName?: string | null;
|
|
2538
|
-
readonly socialLinks?: readonly {
|
|
2539
|
-
readonly label: string;
|
|
2540
|
-
readonly url: string;
|
|
2541
|
-
}[] | null;
|
|
2542
|
-
readonly customHtml?: string | null;
|
|
2543
|
-
} | null;
|
|
2544
|
-
readonly theme?: {
|
|
2545
|
-
readonly text?: {
|
|
2546
|
-
readonly [x: string]: {
|
|
2547
|
-
readonly sizePx: number;
|
|
2548
|
-
readonly lineHeightPx: number;
|
|
2549
|
-
};
|
|
2550
|
-
} | null;
|
|
2551
|
-
readonly tracking?: {
|
|
2552
|
-
readonly [x: string]: number;
|
|
2553
|
-
} | null;
|
|
2554
|
-
readonly colors?: {
|
|
2555
|
-
readonly [x: string]: string;
|
|
2556
|
-
} | null;
|
|
2557
|
-
readonly colorsDark?: {
|
|
2558
|
-
readonly [x: string]: string;
|
|
2559
|
-
} | null;
|
|
2560
|
-
readonly radiusPx?: {
|
|
2561
|
-
readonly [x: string]: number;
|
|
2562
|
-
} | null;
|
|
2563
|
-
readonly fontFamilies?: {
|
|
2564
|
-
readonly [x: string]: {
|
|
2565
|
-
readonly family: string;
|
|
2566
|
-
readonly source: "system" | "google" | "custom";
|
|
2567
|
-
readonly fallback: string;
|
|
2568
|
-
readonly faces?: readonly {
|
|
2569
|
-
readonly style: "normal" | "italic";
|
|
2570
|
-
readonly weight: number;
|
|
2571
|
-
readonly src: string;
|
|
2572
|
-
readonly unicodeRange?: string | null;
|
|
2573
|
-
}[] | null;
|
|
2574
|
-
};
|
|
2575
|
-
} | null;
|
|
2576
|
-
readonly fontWeights?: {
|
|
2577
|
-
readonly [x: string]: number;
|
|
2578
|
-
} | null;
|
|
2579
|
-
readonly leading?: {
|
|
2580
|
-
readonly [x: string]: number;
|
|
2581
|
-
} | null;
|
|
2582
|
-
readonly spacingPx?: number | null;
|
|
2583
|
-
readonly containerPx?: {
|
|
2584
|
-
readonly [x: string]: number;
|
|
2585
|
-
} | null;
|
|
2586
|
-
} | null;
|
|
2587
|
-
readonly assets?: {
|
|
2588
|
-
readonly logoUrl?: string | null;
|
|
2589
|
-
readonly logoDarkUrl?: string | null;
|
|
2590
|
-
readonly iconUrl?: string | null;
|
|
2591
|
-
} | null;
|
|
2592
|
-
} | null;
|
|
2593
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
2594
|
-
readonly fromDefault?: {
|
|
2595
|
-
readonly email: string;
|
|
2596
|
-
readonly name?: string | null;
|
|
2597
|
-
} | null;
|
|
2598
|
-
readonly trackingDefault?: {
|
|
2599
|
-
readonly opens?: boolean | null;
|
|
2600
|
-
readonly clicks?: boolean | null;
|
|
2601
|
-
} | null;
|
|
2602
|
-
readonly publishedSource?: string | null;
|
|
2603
|
-
readonly publishedAt?: string | null;
|
|
2604
|
-
readonly publishedBy?: string | null;
|
|
2605
|
-
}, 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>;
|
|
2606
|
-
export declare const publish: (input: {
|
|
2607
|
-
readonly id: string;
|
|
2608
|
-
}) => import("effect/Effect").Effect<{
|
|
2609
|
-
readonly sms: {
|
|
2610
|
-
readonly body: string;
|
|
2611
|
-
readonly encoding: string | null;
|
|
2612
|
-
readonly estimatedSegments: number | null;
|
|
2613
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
2614
|
-
} | null;
|
|
2615
|
-
readonly whatsapp: {
|
|
2616
|
-
readonly name: string;
|
|
2617
|
-
readonly language: string;
|
|
2618
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
2619
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
2620
|
-
readonly headerMediaType: string | null;
|
|
2621
|
-
readonly headerContent: string | null;
|
|
2622
|
-
readonly bodyContent: string;
|
|
2623
|
-
readonly footerContent: string | null;
|
|
2624
|
-
readonly components: readonly {
|
|
2625
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
2626
|
-
readonly text?: string | null;
|
|
2627
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
2628
|
-
readonly example?: {
|
|
2629
|
-
readonly header_text?: readonly string[] | null;
|
|
2630
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
2631
|
-
} | null;
|
|
2632
|
-
readonly buttons?: readonly {
|
|
2633
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
2634
|
-
readonly url?: string | null;
|
|
2635
|
-
readonly text?: string | null;
|
|
2636
|
-
readonly example?: string | null;
|
|
2637
|
-
readonly phone_number?: string | null;
|
|
2638
|
-
}[] | null;
|
|
2639
|
-
readonly parameters?: readonly {
|
|
2640
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
2641
|
-
readonly text?: string | null;
|
|
2642
|
-
readonly image?: {
|
|
2643
|
-
readonly link: string;
|
|
2644
|
-
} | null;
|
|
2645
|
-
readonly video?: {
|
|
2646
|
-
readonly link: string;
|
|
2647
|
-
} | null;
|
|
2648
|
-
readonly document?: {
|
|
2649
|
-
readonly link: string;
|
|
2650
|
-
readonly filename?: string | null;
|
|
2651
|
-
} | null;
|
|
2652
|
-
readonly currency?: {
|
|
2653
|
-
readonly fallback_value: string;
|
|
2654
|
-
readonly code: string;
|
|
2655
|
-
readonly amount_1000: number;
|
|
2656
|
-
} | null;
|
|
2657
|
-
readonly date_time?: {
|
|
2658
|
-
readonly fallback_value: string;
|
|
2659
|
-
} | null;
|
|
2660
|
-
}[] | null;
|
|
2661
|
-
}[] | null;
|
|
2662
|
-
readonly buttons: readonly {
|
|
2663
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2664
|
-
}[] | null;
|
|
2665
|
-
readonly examples: {
|
|
2666
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2667
|
-
} | null;
|
|
2668
|
-
} | null;
|
|
2669
|
-
readonly email: {
|
|
2670
|
-
readonly subject: string;
|
|
2671
|
-
readonly preheader: string | null;
|
|
2672
|
-
readonly headers: {
|
|
2673
|
-
readonly [x: string]: string;
|
|
2674
|
-
} | null;
|
|
2675
|
-
} | null;
|
|
2676
|
-
readonly name: string;
|
|
2677
|
-
readonly createdAt: string;
|
|
2678
|
-
readonly updatedAt: string;
|
|
2679
|
-
readonly usageCount: number;
|
|
2680
|
-
readonly lastUsedAt: string | null;
|
|
2681
|
-
readonly channel: "sms" | "whatsapp" | "email";
|
|
2682
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2683
|
-
readonly origin: "dashboard" | "tsx";
|
|
2684
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
2685
|
-
readonly description: string | null;
|
|
2686
|
-
readonly status: string;
|
|
2687
|
-
readonly isDefault: boolean;
|
|
2688
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2689
|
-
readonly isActive: boolean;
|
|
2690
|
-
readonly category: string | null;
|
|
2691
|
-
readonly slug: string;
|
|
2692
|
-
readonly version: number;
|
|
2693
|
-
readonly variableSchema: readonly {
|
|
2694
|
-
readonly name: string;
|
|
2695
|
-
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
2696
|
-
readonly required: boolean;
|
|
2697
|
-
readonly validation?: {
|
|
2698
|
-
readonly enum?: readonly string[] | null;
|
|
2699
|
-
readonly pattern?: string | null;
|
|
2700
|
-
readonly min?: number | null;
|
|
2701
|
-
readonly max?: number | null;
|
|
2702
|
-
readonly minLength?: number | null;
|
|
2703
|
-
readonly maxLength?: number | null;
|
|
2704
|
-
readonly format?: "url" | "email" | "date" | "date-time" | "uuid" | null;
|
|
2705
|
-
} | null;
|
|
2706
|
-
readonly default?: import("./generated").JsonValue;
|
|
2707
|
-
readonly description?: string | null;
|
|
2708
|
-
}[] | null;
|
|
2709
|
-
readonly source: string | null;
|
|
2710
|
-
readonly compliance: {
|
|
2711
|
-
readonly dltTemplateId?: string | null;
|
|
2712
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2713
|
-
readonly dltApprovedAt?: string | null;
|
|
2714
|
-
readonly whatsappTemplateId?: string | null;
|
|
2715
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2716
|
-
readonly whatsappApprovedAt?: string | null;
|
|
2717
|
-
readonly metaStatus?: string | null;
|
|
2718
|
-
readonly submittedAt?: string | null;
|
|
2719
|
-
readonly qualityScore?: string | null;
|
|
2720
|
-
readonly rejectedReason?: string | null;
|
|
2721
|
-
readonly lastSyncedAt?: string | null;
|
|
2722
|
-
readonly approvalStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2723
|
-
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2724
|
-
readonly approvedAt?: string | null;
|
|
2725
|
-
readonly approvalNotes?: string | null;
|
|
2726
|
-
readonly regulatoryRequirements?: readonly {
|
|
2727
|
-
readonly status: "pending" | "compliant" | "non_compliant";
|
|
2728
|
-
readonly region: string;
|
|
2729
|
-
readonly requirement: string;
|
|
2730
|
-
readonly notes?: string | null;
|
|
2731
|
-
}[] | null;
|
|
2732
|
-
} | null;
|
|
2733
|
-
readonly designOverrides: {
|
|
2734
|
-
readonly footer?: {
|
|
2735
|
-
readonly address?: {
|
|
2736
|
-
readonly region: string;
|
|
2737
|
-
readonly street1: string;
|
|
2738
|
-
readonly city: string;
|
|
2739
|
-
readonly postalCode: string;
|
|
2740
|
-
readonly country: string;
|
|
2741
|
-
readonly street2?: string | null;
|
|
2742
|
-
} | null;
|
|
2743
|
-
readonly companyName?: string | null;
|
|
2744
|
-
readonly socialLinks?: readonly {
|
|
2745
|
-
readonly label: string;
|
|
2746
|
-
readonly url: string;
|
|
2747
|
-
}[] | null;
|
|
2748
|
-
readonly customHtml?: string | null;
|
|
2749
|
-
} | null;
|
|
2750
|
-
readonly theme?: {
|
|
2751
|
-
readonly text?: {
|
|
2752
|
-
readonly [x: string]: {
|
|
2753
|
-
readonly sizePx: number;
|
|
2754
|
-
readonly lineHeightPx: number;
|
|
2755
|
-
};
|
|
2756
|
-
} | null;
|
|
2757
|
-
readonly tracking?: {
|
|
2758
|
-
readonly [x: string]: number;
|
|
2759
|
-
} | null;
|
|
2760
|
-
readonly colors?: {
|
|
2761
|
-
readonly [x: string]: string;
|
|
2762
|
-
} | null;
|
|
2763
|
-
readonly colorsDark?: {
|
|
2764
|
-
readonly [x: string]: string;
|
|
2765
|
-
} | null;
|
|
2766
|
-
readonly radiusPx?: {
|
|
2767
|
-
readonly [x: string]: number;
|
|
2768
|
-
} | null;
|
|
2769
|
-
readonly fontFamilies?: {
|
|
2770
|
-
readonly [x: string]: {
|
|
2771
|
-
readonly family: string;
|
|
2772
|
-
readonly source: "system" | "google" | "custom";
|
|
2773
|
-
readonly fallback: string;
|
|
2774
|
-
readonly faces?: readonly {
|
|
2775
|
-
readonly style: "normal" | "italic";
|
|
2776
|
-
readonly weight: number;
|
|
2777
|
-
readonly src: string;
|
|
2778
|
-
readonly unicodeRange?: string | null;
|
|
2779
|
-
}[] | null;
|
|
2780
|
-
};
|
|
2781
|
-
} | null;
|
|
2782
|
-
readonly fontWeights?: {
|
|
2783
|
-
readonly [x: string]: number;
|
|
2784
|
-
} | null;
|
|
2785
|
-
readonly leading?: {
|
|
2786
|
-
readonly [x: string]: number;
|
|
2787
|
-
} | null;
|
|
2788
|
-
readonly spacingPx?: number | null;
|
|
2789
|
-
readonly containerPx?: {
|
|
2790
|
-
readonly [x: string]: number;
|
|
2791
|
-
} | null;
|
|
2792
|
-
} | null;
|
|
2793
|
-
readonly assets?: {
|
|
2794
|
-
readonly logoUrl?: string | null;
|
|
2795
|
-
readonly logoDarkUrl?: string | null;
|
|
2796
|
-
readonly iconUrl?: string | null;
|
|
2797
|
-
} | null;
|
|
2798
|
-
} | null;
|
|
2799
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
2800
|
-
readonly fromDefault?: {
|
|
2801
|
-
readonly email: string;
|
|
2802
|
-
readonly name?: string | null;
|
|
2803
|
-
} | null;
|
|
2804
|
-
readonly trackingDefault?: {
|
|
2805
|
-
readonly opens?: boolean | null;
|
|
2806
|
-
readonly clicks?: boolean | null;
|
|
2807
|
-
} | null;
|
|
2808
|
-
readonly publishedSource?: string | null;
|
|
2809
|
-
readonly publishedAt?: string | null;
|
|
2810
|
-
readonly publishedBy?: string | null;
|
|
2811
|
-
}, 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>;
|
|
2812
|
-
export declare const unpublish: (input: {
|
|
2813
|
-
readonly id: string;
|
|
2814
|
-
}) => import("effect/Effect").Effect<{
|
|
2815
|
-
readonly sms: {
|
|
2816
|
-
readonly body: string;
|
|
2817
|
-
readonly encoding: string | null;
|
|
2818
|
-
readonly estimatedSegments: number | null;
|
|
2819
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
2820
|
-
} | null;
|
|
2821
|
-
readonly whatsapp: {
|
|
2822
|
-
readonly name: string;
|
|
2823
|
-
readonly language: string;
|
|
2824
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
2825
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
2826
|
-
readonly headerMediaType: string | null;
|
|
2827
|
-
readonly headerContent: string | null;
|
|
2828
|
-
readonly bodyContent: string;
|
|
2829
|
-
readonly footerContent: string | null;
|
|
2830
|
-
readonly components: readonly {
|
|
2831
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
2832
|
-
readonly text?: string | null;
|
|
2833
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
2834
|
-
readonly example?: {
|
|
2835
|
-
readonly header_text?: readonly string[] | null;
|
|
2836
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
2837
|
-
} | null;
|
|
2838
|
-
readonly buttons?: readonly {
|
|
2839
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
2840
|
-
readonly url?: string | null;
|
|
2841
|
-
readonly text?: string | null;
|
|
2842
|
-
readonly example?: string | null;
|
|
2843
|
-
readonly phone_number?: string | null;
|
|
2844
|
-
}[] | null;
|
|
2845
|
-
readonly parameters?: readonly {
|
|
2846
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
2847
|
-
readonly text?: string | null;
|
|
2848
|
-
readonly image?: {
|
|
2849
|
-
readonly link: string;
|
|
2850
|
-
} | null;
|
|
2851
|
-
readonly video?: {
|
|
2852
|
-
readonly link: string;
|
|
2853
|
-
} | null;
|
|
2854
|
-
readonly document?: {
|
|
2855
|
-
readonly link: string;
|
|
2856
|
-
readonly filename?: string | null;
|
|
2857
|
-
} | null;
|
|
2858
|
-
readonly currency?: {
|
|
2859
|
-
readonly fallback_value: string;
|
|
2860
|
-
readonly code: string;
|
|
2861
|
-
readonly amount_1000: number;
|
|
2862
|
-
} | null;
|
|
2863
|
-
readonly date_time?: {
|
|
2864
|
-
readonly fallback_value: string;
|
|
2865
|
-
} | null;
|
|
2866
|
-
}[] | null;
|
|
2867
|
-
}[] | null;
|
|
2868
|
-
readonly buttons: readonly {
|
|
2869
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2870
|
-
}[] | null;
|
|
2871
|
-
readonly examples: {
|
|
2872
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2873
|
-
} | null;
|
|
2874
|
-
} | null;
|
|
2875
|
-
readonly email: {
|
|
2876
|
-
readonly subject: string;
|
|
2877
|
-
readonly preheader: string | null;
|
|
2878
|
-
readonly headers: {
|
|
2879
|
-
readonly [x: string]: string;
|
|
2880
|
-
} | null;
|
|
2881
|
-
} | null;
|
|
2882
|
-
readonly name: string;
|
|
2883
|
-
readonly createdAt: string;
|
|
2884
|
-
readonly updatedAt: string;
|
|
2885
|
-
readonly usageCount: number;
|
|
2886
|
-
readonly lastUsedAt: string | null;
|
|
2887
|
-
readonly channel: "sms" | "whatsapp" | "email";
|
|
2888
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2889
|
-
readonly origin: "dashboard" | "tsx";
|
|
2890
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
2891
|
-
readonly description: string | null;
|
|
2892
|
-
readonly status: string;
|
|
2893
|
-
readonly isDefault: boolean;
|
|
2894
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2895
|
-
readonly isActive: boolean;
|
|
2896
|
-
readonly category: string | null;
|
|
2897
|
-
readonly slug: string;
|
|
2898
|
-
readonly version: number;
|
|
2899
|
-
readonly variableSchema: readonly {
|
|
2900
|
-
readonly name: string;
|
|
2901
|
-
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
2902
|
-
readonly required: boolean;
|
|
2903
|
-
readonly validation?: {
|
|
2904
|
-
readonly enum?: readonly string[] | null;
|
|
2905
|
-
readonly pattern?: string | null;
|
|
2906
|
-
readonly min?: number | null;
|
|
2907
|
-
readonly max?: number | null;
|
|
2908
|
-
readonly minLength?: number | null;
|
|
2909
|
-
readonly maxLength?: number | null;
|
|
2910
|
-
readonly format?: "url" | "email" | "date" | "date-time" | "uuid" | null;
|
|
2911
|
-
} | null;
|
|
2912
|
-
readonly default?: import("./generated").JsonValue;
|
|
2913
|
-
readonly description?: string | null;
|
|
2914
|
-
}[] | null;
|
|
2915
|
-
readonly source: string | null;
|
|
2916
|
-
readonly compliance: {
|
|
2917
|
-
readonly dltTemplateId?: string | null;
|
|
2918
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2919
|
-
readonly dltApprovedAt?: string | null;
|
|
2920
|
-
readonly whatsappTemplateId?: string | null;
|
|
2921
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2922
|
-
readonly whatsappApprovedAt?: string | null;
|
|
2923
|
-
readonly metaStatus?: string | null;
|
|
2924
|
-
readonly submittedAt?: string | null;
|
|
2925
|
-
readonly qualityScore?: string | null;
|
|
2926
|
-
readonly rejectedReason?: string | null;
|
|
2927
|
-
readonly lastSyncedAt?: string | null;
|
|
2928
|
-
readonly approvalStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2929
|
-
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2930
|
-
readonly approvedAt?: string | null;
|
|
2931
|
-
readonly approvalNotes?: string | null;
|
|
2932
|
-
readonly regulatoryRequirements?: readonly {
|
|
2933
|
-
readonly status: "pending" | "compliant" | "non_compliant";
|
|
2934
|
-
readonly region: string;
|
|
2935
|
-
readonly requirement: string;
|
|
2936
|
-
readonly notes?: string | null;
|
|
2937
|
-
}[] | null;
|
|
2938
|
-
} | null;
|
|
2939
|
-
readonly designOverrides: {
|
|
2940
|
-
readonly footer?: {
|
|
2941
|
-
readonly address?: {
|
|
2942
|
-
readonly region: string;
|
|
2943
|
-
readonly street1: string;
|
|
2944
|
-
readonly city: string;
|
|
2945
|
-
readonly postalCode: string;
|
|
2946
|
-
readonly country: string;
|
|
2947
|
-
readonly street2?: string | null;
|
|
2948
|
-
} | null;
|
|
2949
|
-
readonly companyName?: string | null;
|
|
2950
|
-
readonly socialLinks?: readonly {
|
|
2951
|
-
readonly label: string;
|
|
2952
|
-
readonly url: string;
|
|
2953
|
-
}[] | null;
|
|
2954
|
-
readonly customHtml?: string | null;
|
|
2955
|
-
} | null;
|
|
2956
|
-
readonly theme?: {
|
|
2957
|
-
readonly text?: {
|
|
2958
|
-
readonly [x: string]: {
|
|
2959
|
-
readonly sizePx: number;
|
|
2960
|
-
readonly lineHeightPx: number;
|
|
2961
|
-
};
|
|
2962
|
-
} | null;
|
|
2963
|
-
readonly tracking?: {
|
|
2964
|
-
readonly [x: string]: number;
|
|
2965
|
-
} | null;
|
|
2966
|
-
readonly colors?: {
|
|
2967
|
-
readonly [x: string]: string;
|
|
2968
|
-
} | null;
|
|
2969
|
-
readonly colorsDark?: {
|
|
2970
|
-
readonly [x: string]: string;
|
|
2971
|
-
} | null;
|
|
2972
|
-
readonly radiusPx?: {
|
|
2973
|
-
readonly [x: string]: number;
|
|
2974
|
-
} | null;
|
|
2975
|
-
readonly fontFamilies?: {
|
|
2976
|
-
readonly [x: string]: {
|
|
2977
|
-
readonly family: string;
|
|
2978
|
-
readonly source: "system" | "google" | "custom";
|
|
2979
|
-
readonly fallback: string;
|
|
2980
|
-
readonly faces?: readonly {
|
|
2981
|
-
readonly style: "normal" | "italic";
|
|
2982
|
-
readonly weight: number;
|
|
2983
|
-
readonly src: string;
|
|
2984
|
-
readonly unicodeRange?: string | null;
|
|
2985
|
-
}[] | null;
|
|
2986
|
-
};
|
|
2987
|
-
} | null;
|
|
2988
|
-
readonly fontWeights?: {
|
|
2989
|
-
readonly [x: string]: number;
|
|
2990
|
-
} | null;
|
|
2991
|
-
readonly leading?: {
|
|
2992
|
-
readonly [x: string]: number;
|
|
2993
|
-
} | null;
|
|
2994
|
-
readonly spacingPx?: number | null;
|
|
2995
|
-
readonly containerPx?: {
|
|
2996
|
-
readonly [x: string]: number;
|
|
2997
|
-
} | null;
|
|
2998
|
-
} | null;
|
|
2999
|
-
readonly assets?: {
|
|
3000
|
-
readonly logoUrl?: string | null;
|
|
3001
|
-
readonly logoDarkUrl?: string | null;
|
|
3002
|
-
readonly iconUrl?: string | null;
|
|
3003
|
-
} | null;
|
|
3004
|
-
} | null;
|
|
3005
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
3006
|
-
readonly fromDefault?: {
|
|
3007
|
-
readonly email: string;
|
|
3008
|
-
readonly name?: string | null;
|
|
3009
|
-
} | null;
|
|
3010
|
-
readonly trackingDefault?: {
|
|
3011
|
-
readonly opens?: boolean | null;
|
|
3012
|
-
readonly clicks?: boolean | null;
|
|
3013
|
-
} | null;
|
|
3014
|
-
readonly publishedSource?: string | null;
|
|
3015
|
-
readonly publishedAt?: string | null;
|
|
3016
|
-
readonly publishedBy?: string | null;
|
|
3017
|
-
}, 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>;
|
|
3018
|
-
export declare const versionHistory: (input: {
|
|
3019
|
-
readonly id: string;
|
|
3020
|
-
}) => import("effect/Effect").Effect<{
|
|
3021
|
-
readonly versions: readonly {
|
|
3022
|
-
readonly id: string;
|
|
3023
|
-
readonly version: number;
|
|
3024
|
-
readonly status: string;
|
|
3025
|
-
readonly isCurrent: boolean;
|
|
3026
|
-
readonly source: string | null;
|
|
3027
|
-
readonly publishedAt: string | null;
|
|
3028
|
-
readonly publishedBy: string | null;
|
|
3029
|
-
readonly createdAt: string;
|
|
3030
|
-
readonly updatedAt: string;
|
|
3031
|
-
}[];
|
|
3032
|
-
}, 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>;
|
|
3033
|
-
export declare const restoreVersion: (input: {
|
|
3034
|
-
readonly id: string;
|
|
3035
|
-
readonly versionId: string;
|
|
3036
|
-
}) => import("effect/Effect").Effect<{
|
|
3037
|
-
readonly sms: {
|
|
3038
|
-
readonly body: string;
|
|
3039
|
-
readonly encoding: string | null;
|
|
3040
|
-
readonly estimatedSegments: number | null;
|
|
3041
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
3042
|
-
} | null;
|
|
3043
|
-
readonly whatsapp: {
|
|
3044
|
-
readonly name: string;
|
|
3045
|
-
readonly language: string;
|
|
3046
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
3047
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
3048
|
-
readonly headerMediaType: string | null;
|
|
3049
|
-
readonly headerContent: string | null;
|
|
3050
|
-
readonly bodyContent: string;
|
|
3051
|
-
readonly footerContent: string | null;
|
|
3052
|
-
readonly components: readonly {
|
|
3053
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
3054
|
-
readonly text?: string | null;
|
|
3055
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
3056
|
-
readonly example?: {
|
|
3057
|
-
readonly header_text?: readonly string[] | null;
|
|
3058
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
3059
|
-
} | null;
|
|
3060
|
-
readonly buttons?: readonly {
|
|
3061
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
3062
|
-
readonly url?: string | null;
|
|
3063
|
-
readonly text?: string | null;
|
|
3064
|
-
readonly example?: string | null;
|
|
3065
|
-
readonly phone_number?: string | null;
|
|
3066
|
-
}[] | null;
|
|
3067
|
-
readonly parameters?: readonly {
|
|
3068
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
3069
|
-
readonly text?: string | null;
|
|
3070
|
-
readonly image?: {
|
|
3071
|
-
readonly link: string;
|
|
3072
|
-
} | null;
|
|
3073
|
-
readonly video?: {
|
|
3074
|
-
readonly link: string;
|
|
3075
|
-
} | null;
|
|
3076
|
-
readonly document?: {
|
|
3077
|
-
readonly link: string;
|
|
3078
|
-
readonly filename?: string | null;
|
|
3079
|
-
} | null;
|
|
3080
|
-
readonly currency?: {
|
|
3081
|
-
readonly fallback_value: string;
|
|
3082
|
-
readonly code: string;
|
|
3083
|
-
readonly amount_1000: number;
|
|
3084
|
-
} | null;
|
|
3085
|
-
readonly date_time?: {
|
|
3086
|
-
readonly fallback_value: string;
|
|
3087
|
-
} | null;
|
|
3088
|
-
}[] | null;
|
|
3089
|
-
}[] | null;
|
|
3090
|
-
readonly buttons: readonly {
|
|
3091
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
3092
|
-
}[] | null;
|
|
3093
|
-
readonly examples: {
|
|
3094
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
3095
|
-
} | null;
|
|
3096
|
-
} | null;
|
|
3097
|
-
readonly email: {
|
|
3098
|
-
readonly subject: string;
|
|
3099
|
-
readonly preheader: string | null;
|
|
3100
|
-
readonly headers: {
|
|
3101
|
-
readonly [x: string]: string;
|
|
3102
|
-
} | null;
|
|
3103
|
-
} | null;
|
|
3104
|
-
readonly name: string;
|
|
3105
|
-
readonly createdAt: string;
|
|
3106
|
-
readonly updatedAt: string;
|
|
3107
|
-
readonly usageCount: number;
|
|
3108
|
-
readonly lastUsedAt: string | null;
|
|
3109
|
-
readonly channel: "sms" | "whatsapp" | "email";
|
|
3110
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
3111
|
-
readonly origin: "dashboard" | "tsx";
|
|
3112
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
3113
|
-
readonly description: string | null;
|
|
3114
|
-
readonly status: string;
|
|
3115
|
-
readonly isDefault: boolean;
|
|
3116
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
3117
|
-
readonly isActive: boolean;
|
|
3118
|
-
readonly category: string | null;
|
|
3119
|
-
readonly slug: string;
|
|
3120
|
-
readonly version: number;
|
|
3121
|
-
readonly variableSchema: readonly {
|
|
3122
|
-
readonly name: string;
|
|
3123
|
-
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
3124
|
-
readonly required: boolean;
|
|
3125
|
-
readonly validation?: {
|
|
3126
|
-
readonly enum?: readonly string[] | null;
|
|
3127
|
-
readonly pattern?: string | null;
|
|
3128
|
-
readonly min?: number | null;
|
|
3129
|
-
readonly max?: number | null;
|
|
3130
|
-
readonly minLength?: number | null;
|
|
3131
|
-
readonly maxLength?: number | null;
|
|
3132
|
-
readonly format?: "url" | "email" | "date" | "date-time" | "uuid" | null;
|
|
3133
|
-
} | null;
|
|
3134
|
-
readonly default?: import("./generated").JsonValue;
|
|
3135
|
-
readonly description?: string | null;
|
|
3136
|
-
}[] | null;
|
|
3137
|
-
readonly source: string | null;
|
|
3138
|
-
readonly compliance: {
|
|
3139
|
-
readonly dltTemplateId?: string | null;
|
|
3140
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
3141
|
-
readonly dltApprovedAt?: string | null;
|
|
3142
|
-
readonly whatsappTemplateId?: string | null;
|
|
3143
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
3144
|
-
readonly whatsappApprovedAt?: string | null;
|
|
3145
|
-
readonly metaStatus?: string | null;
|
|
3146
|
-
readonly submittedAt?: string | null;
|
|
3147
|
-
readonly qualityScore?: string | null;
|
|
3148
|
-
readonly rejectedReason?: string | null;
|
|
3149
|
-
readonly lastSyncedAt?: string | null;
|
|
3150
|
-
readonly approvalStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
3151
|
-
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
3152
|
-
readonly approvedAt?: string | null;
|
|
3153
|
-
readonly approvalNotes?: string | null;
|
|
3154
|
-
readonly regulatoryRequirements?: readonly {
|
|
3155
|
-
readonly status: "pending" | "compliant" | "non_compliant";
|
|
3156
|
-
readonly region: string;
|
|
3157
|
-
readonly requirement: string;
|
|
3158
|
-
readonly notes?: string | null;
|
|
3159
|
-
}[] | null;
|
|
3160
|
-
} | null;
|
|
3161
|
-
readonly designOverrides: {
|
|
3162
|
-
readonly footer?: {
|
|
3163
|
-
readonly address?: {
|
|
3164
|
-
readonly region: string;
|
|
3165
|
-
readonly street1: string;
|
|
3166
|
-
readonly city: string;
|
|
3167
|
-
readonly postalCode: string;
|
|
3168
|
-
readonly country: string;
|
|
3169
|
-
readonly street2?: string | null;
|
|
3170
|
-
} | null;
|
|
3171
|
-
readonly companyName?: string | null;
|
|
3172
|
-
readonly socialLinks?: readonly {
|
|
3173
|
-
readonly label: string;
|
|
3174
|
-
readonly url: string;
|
|
3175
|
-
}[] | null;
|
|
3176
|
-
readonly customHtml?: string | null;
|
|
3177
|
-
} | null;
|
|
3178
|
-
readonly theme?: {
|
|
3179
|
-
readonly text?: {
|
|
3180
|
-
readonly [x: string]: {
|
|
3181
|
-
readonly sizePx: number;
|
|
3182
|
-
readonly lineHeightPx: number;
|
|
3183
|
-
};
|
|
3184
|
-
} | null;
|
|
3185
|
-
readonly tracking?: {
|
|
3186
|
-
readonly [x: string]: number;
|
|
3187
|
-
} | null;
|
|
3188
|
-
readonly colors?: {
|
|
3189
|
-
readonly [x: string]: string;
|
|
3190
|
-
} | null;
|
|
3191
|
-
readonly colorsDark?: {
|
|
3192
|
-
readonly [x: string]: string;
|
|
3193
|
-
} | null;
|
|
3194
|
-
readonly radiusPx?: {
|
|
3195
|
-
readonly [x: string]: number;
|
|
3196
|
-
} | null;
|
|
3197
|
-
readonly fontFamilies?: {
|
|
3198
|
-
readonly [x: string]: {
|
|
3199
|
-
readonly family: string;
|
|
3200
|
-
readonly source: "system" | "google" | "custom";
|
|
3201
|
-
readonly fallback: string;
|
|
3202
|
-
readonly faces?: readonly {
|
|
3203
|
-
readonly style: "normal" | "italic";
|
|
3204
|
-
readonly weight: number;
|
|
3205
|
-
readonly src: string;
|
|
3206
|
-
readonly unicodeRange?: string | null;
|
|
3207
|
-
}[] | null;
|
|
3208
|
-
};
|
|
3209
|
-
} | null;
|
|
3210
|
-
readonly fontWeights?: {
|
|
3211
|
-
readonly [x: string]: number;
|
|
3212
|
-
} | null;
|
|
3213
|
-
readonly leading?: {
|
|
3214
|
-
readonly [x: string]: number;
|
|
3215
|
-
} | null;
|
|
3216
|
-
readonly spacingPx?: number | null;
|
|
3217
|
-
readonly containerPx?: {
|
|
3218
|
-
readonly [x: string]: number;
|
|
3219
|
-
} | null;
|
|
3220
|
-
} | null;
|
|
3221
|
-
readonly assets?: {
|
|
3222
|
-
readonly logoUrl?: string | null;
|
|
3223
|
-
readonly logoDarkUrl?: string | null;
|
|
3224
|
-
readonly iconUrl?: string | null;
|
|
3225
|
-
} | null;
|
|
3226
|
-
} | null;
|
|
3227
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
3228
|
-
readonly fromDefault?: {
|
|
3229
|
-
readonly email: string;
|
|
3230
|
-
readonly name?: string | null;
|
|
3231
|
-
} | null;
|
|
3232
|
-
readonly trackingDefault?: {
|
|
3233
|
-
readonly opens?: boolean | null;
|
|
3234
|
-
readonly clicks?: boolean | null;
|
|
3235
|
-
} | null;
|
|
3236
|
-
readonly publishedSource?: string | null;
|
|
3237
|
-
readonly publishedAt?: string | null;
|
|
3238
|
-
readonly publishedBy?: string | null;
|
|
3239
|
-
}, 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>;
|
|
3240
|
-
export declare const spamCheck: (input: {
|
|
3241
|
-
readonly templateId: string;
|
|
3242
|
-
readonly inputs?: {
|
|
3243
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
3244
|
-
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
3245
|
-
} | null)[] | {
|
|
3246
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3247
|
-
} | null)[] | {
|
|
3248
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3249
|
-
} | null)[] | {
|
|
3250
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3251
|
-
} | null)[] | {
|
|
3252
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3253
|
-
} | null)[] | {
|
|
3254
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3255
|
-
} | null)[] | {
|
|
3256
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3257
|
-
} | null)[] | {
|
|
3258
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3259
|
-
} | null)[] | {
|
|
3260
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3261
|
-
} | null)[] | {
|
|
3262
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3263
|
-
} | null)[] | {
|
|
3264
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3265
|
-
} | null)[] | {
|
|
3266
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3267
|
-
} | null | undefined;
|
|
3268
|
-
} | null | undefined;
|
|
3269
|
-
} | {
|
|
3270
|
-
readonly subject: string;
|
|
3271
|
-
readonly html: string;
|
|
3272
|
-
readonly text: string;
|
|
3273
|
-
} | {
|
|
3274
|
-
readonly templateId: string;
|
|
3275
|
-
readonly inputs?: {
|
|
3276
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
3277
|
-
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
3278
|
-
} | null)[] | {
|
|
3279
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3280
|
-
} | null)[] | {
|
|
3281
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3282
|
-
} | null)[] | {
|
|
3283
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3284
|
-
} | null)[] | {
|
|
3285
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3286
|
-
} | null)[] | {
|
|
3287
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3288
|
-
} | null)[] | {
|
|
3289
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3290
|
-
} | null)[] | {
|
|
3291
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3292
|
-
} | null)[] | {
|
|
3293
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3294
|
-
} | null)[] | {
|
|
3295
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3296
|
-
} | null)[] | {
|
|
3297
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3298
|
-
} | null)[] | {
|
|
3299
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3300
|
-
} | null | undefined;
|
|
3301
|
-
} | null | undefined;
|
|
3302
|
-
readonly subject: string;
|
|
3303
|
-
readonly html: string;
|
|
3304
|
-
readonly text: string;
|
|
3305
|
-
} | {
|
|
3306
|
-
readonly subject: string;
|
|
3307
|
-
readonly html: string;
|
|
3308
|
-
readonly text: string;
|
|
3309
|
-
readonly templateId: string;
|
|
3310
|
-
readonly inputs?: {
|
|
3311
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
3312
|
-
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
3313
|
-
} | null)[] | {
|
|
3314
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3315
|
-
} | null)[] | {
|
|
3316
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3317
|
-
} | null)[] | {
|
|
3318
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3319
|
-
} | null)[] | {
|
|
3320
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3321
|
-
} | null)[] | {
|
|
3322
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3323
|
-
} | null)[] | {
|
|
3324
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3325
|
-
} | null)[] | {
|
|
3326
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3327
|
-
} | null)[] | {
|
|
3328
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3329
|
-
} | null)[] | {
|
|
3330
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3331
|
-
} | null)[] | {
|
|
3332
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3333
|
-
} | null)[] | {
|
|
3334
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
3335
|
-
} | null | undefined;
|
|
3336
|
-
} | null | undefined;
|
|
3337
|
-
}) => import("effect/Effect").Effect<{
|
|
3338
|
-
readonly score: number;
|
|
3339
|
-
readonly severity: "low" | "medium" | "high";
|
|
3340
|
-
readonly issues: readonly {
|
|
3341
|
-
readonly rule: string;
|
|
3342
|
-
readonly description: string;
|
|
3343
|
-
readonly severity: "low" | "medium" | "high";
|
|
3344
|
-
readonly score: number;
|
|
3345
|
-
}[];
|
|
3346
|
-
readonly recommendations: readonly string[];
|
|
3347
|
-
}, 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>;
|
|
2583
|
+
readonly createdBy: {
|
|
2584
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2585
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2586
|
+
};
|
|
2587
|
+
readonly updatedBy: {
|
|
2588
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2589
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2590
|
+
};
|
|
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>;
|