samva 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +10 -3
- package/dist/client/sdk.gen.d.ts +333 -188
- package/dist/client/types.gen.d.ts +1452 -718
- package/dist/{client-DVALvDUe.js → client-BOghX8fr.js} +1990 -1631
- package/dist/effect/api-keys.d.ts +14 -14
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +233 -861
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +131 -231
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +91 -208
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +11 -11
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +164 -168
- package/dist/effect/email.js +20 -18
- package/dist/effect/generated.d.ts +13753 -14935
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.d.ts +15 -113
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +41 -261
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +10 -10
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +24 -42
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +43 -502
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +312 -1542
- package/dist/effect/templates.js +26 -18
- package/dist/effect/webhooks.d.ts +26 -27
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-UtKNITtG.js → operation-C2Q4cFJL.js} +67 -26
- package/dist/promises/index.d.ts +6 -14
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-QxEfMTho.js → promises-oiy7mOyu.js} +680 -157
- package/dist/service-map.d.ts +92 -40
- package/package.json +19 -14
|
@@ -3,73 +3,13 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly channel?: string | null | undefined;
|
|
4
4
|
readonly limit?: string | null | undefined;
|
|
5
5
|
readonly search?: string | null | undefined;
|
|
6
|
-
readonly status?: string | null | undefined;
|
|
7
6
|
readonly page?: string | null | undefined;
|
|
7
|
+
readonly status?: string | null | undefined;
|
|
8
8
|
readonly category?: string | null | undefined;
|
|
9
9
|
readonly sortBy?: string | null | undefined;
|
|
10
10
|
readonly sortOrder?: string | null | undefined;
|
|
11
11
|
} | undefined) => import("effect/Effect").Effect<{
|
|
12
12
|
readonly items: readonly {
|
|
13
|
-
readonly sms: {
|
|
14
|
-
readonly body: string;
|
|
15
|
-
readonly encoding: string | null;
|
|
16
|
-
readonly estimatedSegments: number | null;
|
|
17
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
18
|
-
} | null;
|
|
19
|
-
readonly whatsapp: {
|
|
20
|
-
readonly name: string;
|
|
21
|
-
readonly language: string;
|
|
22
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
23
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
24
|
-
readonly headerMediaType: string | null;
|
|
25
|
-
readonly headerContent: string | null;
|
|
26
|
-
readonly bodyContent: string;
|
|
27
|
-
readonly footerContent: string | null;
|
|
28
|
-
readonly components: readonly {
|
|
29
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
30
|
-
readonly text?: string | null;
|
|
31
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
32
|
-
readonly example?: {
|
|
33
|
-
readonly header_text?: readonly string[] | null;
|
|
34
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
35
|
-
} | null;
|
|
36
|
-
readonly buttons?: readonly {
|
|
37
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
38
|
-
readonly url?: string | null;
|
|
39
|
-
readonly text?: string | null;
|
|
40
|
-
readonly example?: string | null;
|
|
41
|
-
readonly phone_number?: string | null;
|
|
42
|
-
}[] | null;
|
|
43
|
-
readonly parameters?: readonly {
|
|
44
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
45
|
-
readonly text?: string | null;
|
|
46
|
-
readonly image?: {
|
|
47
|
-
readonly link: string;
|
|
48
|
-
} | null;
|
|
49
|
-
readonly video?: {
|
|
50
|
-
readonly link: string;
|
|
51
|
-
} | null;
|
|
52
|
-
readonly document?: {
|
|
53
|
-
readonly link: string;
|
|
54
|
-
readonly filename?: string | null;
|
|
55
|
-
} | null;
|
|
56
|
-
readonly currency?: {
|
|
57
|
-
readonly fallback_value: string;
|
|
58
|
-
readonly code: string;
|
|
59
|
-
readonly amount_1000: number;
|
|
60
|
-
} | null;
|
|
61
|
-
readonly date_time?: {
|
|
62
|
-
readonly fallback_value: string;
|
|
63
|
-
} | null;
|
|
64
|
-
}[] | null;
|
|
65
|
-
}[] | null;
|
|
66
|
-
readonly buttons: readonly {
|
|
67
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
68
|
-
}[] | null;
|
|
69
|
-
readonly examples: {
|
|
70
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
71
|
-
} | null;
|
|
72
|
-
} | null;
|
|
73
13
|
readonly email: {
|
|
74
14
|
readonly subject: string;
|
|
75
15
|
readonly preheader: string | null;
|
|
@@ -82,18 +22,18 @@ export declare const list: ((input?: {
|
|
|
82
22
|
readonly updatedAt: string;
|
|
83
23
|
readonly usageCount: number;
|
|
84
24
|
readonly lastUsedAt: string | null;
|
|
85
|
-
readonly channel: "
|
|
25
|
+
readonly channel: "email";
|
|
86
26
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
87
27
|
readonly origin: "dashboard" | "tsx";
|
|
88
28
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
89
29
|
readonly description: string | null;
|
|
90
30
|
readonly status: string;
|
|
91
|
-
readonly isDefault: boolean;
|
|
92
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
93
31
|
readonly isActive: boolean;
|
|
94
32
|
readonly category: string | null;
|
|
95
33
|
readonly slug: string;
|
|
96
34
|
readonly version: number;
|
|
35
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
36
|
+
readonly isDefault: boolean;
|
|
97
37
|
readonly variableSchema: readonly {
|
|
98
38
|
readonly name: string;
|
|
99
39
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -110,20 +50,13 @@ export declare const list: ((input?: {
|
|
|
110
50
|
readonly default?: import("./generated").JsonValue;
|
|
111
51
|
readonly description?: string | null;
|
|
112
52
|
}[] | null;
|
|
113
|
-
readonly source: string | null;
|
|
114
53
|
readonly compliance: {
|
|
115
|
-
readonly dltTemplateId?: string | null;
|
|
116
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
117
|
-
readonly dltApprovedAt?: string | null;
|
|
118
|
-
readonly whatsappTemplateId?: string | null;
|
|
119
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
120
|
-
readonly whatsappApprovedAt?: string | null;
|
|
121
54
|
readonly metaStatus?: string | null;
|
|
122
55
|
readonly submittedAt?: string | null;
|
|
123
56
|
readonly qualityScore?: string | null;
|
|
124
57
|
readonly rejectedReason?: string | null;
|
|
125
58
|
readonly lastSyncedAt?: string | null;
|
|
126
|
-
readonly approvalStatus?: "pending" | "
|
|
59
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
127
60
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
128
61
|
readonly approvedAt?: string | null;
|
|
129
62
|
readonly approvalNotes?: string | null;
|
|
@@ -137,11 +70,11 @@ export declare const list: ((input?: {
|
|
|
137
70
|
readonly designOverrides: {
|
|
138
71
|
readonly footer?: {
|
|
139
72
|
readonly address?: {
|
|
140
|
-
readonly
|
|
141
|
-
readonly street1: string;
|
|
73
|
+
readonly country: string;
|
|
142
74
|
readonly city: string;
|
|
75
|
+
readonly street1: string;
|
|
76
|
+
readonly region: string;
|
|
143
77
|
readonly postalCode: string;
|
|
144
|
-
readonly country: string;
|
|
145
78
|
readonly street2?: string | null;
|
|
146
79
|
} | null;
|
|
147
80
|
readonly companyName?: string | null;
|
|
@@ -209,7 +142,6 @@ export declare const list: ((input?: {
|
|
|
209
142
|
readonly opens?: boolean | null;
|
|
210
143
|
readonly clicks?: boolean | null;
|
|
211
144
|
} | null;
|
|
212
|
-
readonly publishedSource?: string | null;
|
|
213
145
|
readonly publishedAt?: string | null;
|
|
214
146
|
readonly publishedBy?: string | null;
|
|
215
147
|
}[];
|
|
@@ -219,78 +151,18 @@ export declare const list: ((input?: {
|
|
|
219
151
|
readonly total: number;
|
|
220
152
|
readonly totalPages: number;
|
|
221
153
|
};
|
|
222
|
-
}, import("
|
|
154
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
|
|
223
155
|
readonly pages: (input?: {
|
|
224
156
|
readonly channel?: string | null | undefined;
|
|
225
157
|
readonly limit?: string | null | undefined;
|
|
226
158
|
readonly search?: string | null | undefined;
|
|
227
|
-
readonly status?: string | null | undefined;
|
|
228
159
|
readonly page?: string | null | undefined;
|
|
160
|
+
readonly status?: string | null | undefined;
|
|
229
161
|
readonly category?: string | null | undefined;
|
|
230
162
|
readonly sortBy?: string | null | undefined;
|
|
231
163
|
readonly sortOrder?: string | null | undefined;
|
|
232
164
|
} | undefined) => import("effect/Stream").Stream<{
|
|
233
165
|
readonly items: readonly {
|
|
234
|
-
readonly sms: {
|
|
235
|
-
readonly body: string;
|
|
236
|
-
readonly encoding: string | null;
|
|
237
|
-
readonly estimatedSegments: number | null;
|
|
238
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
239
|
-
} | null;
|
|
240
|
-
readonly whatsapp: {
|
|
241
|
-
readonly name: string;
|
|
242
|
-
readonly language: string;
|
|
243
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
244
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
245
|
-
readonly headerMediaType: string | null;
|
|
246
|
-
readonly headerContent: string | null;
|
|
247
|
-
readonly bodyContent: string;
|
|
248
|
-
readonly footerContent: string | null;
|
|
249
|
-
readonly components: readonly {
|
|
250
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
251
|
-
readonly text?: string | null;
|
|
252
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
253
|
-
readonly example?: {
|
|
254
|
-
readonly header_text?: readonly string[] | null;
|
|
255
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
256
|
-
} | null;
|
|
257
|
-
readonly buttons?: readonly {
|
|
258
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
259
|
-
readonly url?: string | null;
|
|
260
|
-
readonly text?: string | null;
|
|
261
|
-
readonly example?: string | null;
|
|
262
|
-
readonly phone_number?: string | null;
|
|
263
|
-
}[] | null;
|
|
264
|
-
readonly parameters?: readonly {
|
|
265
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
266
|
-
readonly text?: string | null;
|
|
267
|
-
readonly image?: {
|
|
268
|
-
readonly link: string;
|
|
269
|
-
} | null;
|
|
270
|
-
readonly video?: {
|
|
271
|
-
readonly link: string;
|
|
272
|
-
} | null;
|
|
273
|
-
readonly document?: {
|
|
274
|
-
readonly link: string;
|
|
275
|
-
readonly filename?: string | null;
|
|
276
|
-
} | null;
|
|
277
|
-
readonly currency?: {
|
|
278
|
-
readonly fallback_value: string;
|
|
279
|
-
readonly code: string;
|
|
280
|
-
readonly amount_1000: number;
|
|
281
|
-
} | null;
|
|
282
|
-
readonly date_time?: {
|
|
283
|
-
readonly fallback_value: string;
|
|
284
|
-
} | null;
|
|
285
|
-
}[] | null;
|
|
286
|
-
}[] | null;
|
|
287
|
-
readonly buttons: readonly {
|
|
288
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
289
|
-
}[] | null;
|
|
290
|
-
readonly examples: {
|
|
291
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
292
|
-
} | null;
|
|
293
|
-
} | null;
|
|
294
166
|
readonly email: {
|
|
295
167
|
readonly subject: string;
|
|
296
168
|
readonly preheader: string | null;
|
|
@@ -303,18 +175,18 @@ export declare const list: ((input?: {
|
|
|
303
175
|
readonly updatedAt: string;
|
|
304
176
|
readonly usageCount: number;
|
|
305
177
|
readonly lastUsedAt: string | null;
|
|
306
|
-
readonly channel: "
|
|
178
|
+
readonly channel: "email";
|
|
307
179
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
308
180
|
readonly origin: "dashboard" | "tsx";
|
|
309
181
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
310
182
|
readonly description: string | null;
|
|
311
183
|
readonly status: string;
|
|
312
|
-
readonly isDefault: boolean;
|
|
313
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
314
184
|
readonly isActive: boolean;
|
|
315
185
|
readonly category: string | null;
|
|
316
186
|
readonly slug: string;
|
|
317
187
|
readonly version: number;
|
|
188
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
189
|
+
readonly isDefault: boolean;
|
|
318
190
|
readonly variableSchema: readonly {
|
|
319
191
|
readonly name: string;
|
|
320
192
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -331,20 +203,13 @@ export declare const list: ((input?: {
|
|
|
331
203
|
readonly default?: import("./generated").JsonValue;
|
|
332
204
|
readonly description?: string | null;
|
|
333
205
|
}[] | null;
|
|
334
|
-
readonly source: string | null;
|
|
335
206
|
readonly compliance: {
|
|
336
|
-
readonly dltTemplateId?: string | null;
|
|
337
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
338
|
-
readonly dltApprovedAt?: string | null;
|
|
339
|
-
readonly whatsappTemplateId?: string | null;
|
|
340
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
341
|
-
readonly whatsappApprovedAt?: string | null;
|
|
342
207
|
readonly metaStatus?: string | null;
|
|
343
208
|
readonly submittedAt?: string | null;
|
|
344
209
|
readonly qualityScore?: string | null;
|
|
345
210
|
readonly rejectedReason?: string | null;
|
|
346
211
|
readonly lastSyncedAt?: string | null;
|
|
347
|
-
readonly approvalStatus?: "pending" | "
|
|
212
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
348
213
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
349
214
|
readonly approvedAt?: string | null;
|
|
350
215
|
readonly approvalNotes?: string | null;
|
|
@@ -358,11 +223,11 @@ export declare const list: ((input?: {
|
|
|
358
223
|
readonly designOverrides: {
|
|
359
224
|
readonly footer?: {
|
|
360
225
|
readonly address?: {
|
|
361
|
-
readonly
|
|
362
|
-
readonly street1: string;
|
|
226
|
+
readonly country: string;
|
|
363
227
|
readonly city: string;
|
|
228
|
+
readonly street1: string;
|
|
229
|
+
readonly region: string;
|
|
364
230
|
readonly postalCode: string;
|
|
365
|
-
readonly country: string;
|
|
366
231
|
readonly street2?: string | null;
|
|
367
232
|
} | null;
|
|
368
233
|
readonly companyName?: string | null;
|
|
@@ -430,7 +295,6 @@ export declare const list: ((input?: {
|
|
|
430
295
|
readonly opens?: boolean | null;
|
|
431
296
|
readonly clicks?: boolean | null;
|
|
432
297
|
} | null;
|
|
433
|
-
readonly publishedSource?: string | null;
|
|
434
298
|
readonly publishedAt?: string | null;
|
|
435
299
|
readonly publishedBy?: string | null;
|
|
436
300
|
}[];
|
|
@@ -440,77 +304,17 @@ export declare const list: ((input?: {
|
|
|
440
304
|
readonly total: number;
|
|
441
305
|
readonly totalPages: number;
|
|
442
306
|
};
|
|
443
|
-
}, import("
|
|
307
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
444
308
|
readonly items: (input?: {
|
|
445
309
|
readonly channel?: string | null | undefined;
|
|
446
310
|
readonly limit?: string | null | undefined;
|
|
447
311
|
readonly search?: string | null | undefined;
|
|
448
|
-
readonly status?: string | null | undefined;
|
|
449
312
|
readonly page?: string | null | undefined;
|
|
313
|
+
readonly status?: string | null | undefined;
|
|
450
314
|
readonly category?: string | null | undefined;
|
|
451
315
|
readonly sortBy?: string | null | undefined;
|
|
452
316
|
readonly sortOrder?: string | null | undefined;
|
|
453
317
|
} | undefined) => import("effect/Stream").Stream<{
|
|
454
|
-
readonly sms: {
|
|
455
|
-
readonly body: string;
|
|
456
|
-
readonly encoding: string | null;
|
|
457
|
-
readonly estimatedSegments: number | null;
|
|
458
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
459
|
-
} | null;
|
|
460
|
-
readonly whatsapp: {
|
|
461
|
-
readonly name: string;
|
|
462
|
-
readonly language: string;
|
|
463
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
464
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
465
|
-
readonly headerMediaType: string | null;
|
|
466
|
-
readonly headerContent: string | null;
|
|
467
|
-
readonly bodyContent: string;
|
|
468
|
-
readonly footerContent: string | null;
|
|
469
|
-
readonly components: readonly {
|
|
470
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
471
|
-
readonly text?: string | null;
|
|
472
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
473
|
-
readonly example?: {
|
|
474
|
-
readonly header_text?: readonly string[] | null;
|
|
475
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
476
|
-
} | null;
|
|
477
|
-
readonly buttons?: readonly {
|
|
478
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
479
|
-
readonly url?: string | null;
|
|
480
|
-
readonly text?: string | null;
|
|
481
|
-
readonly example?: string | null;
|
|
482
|
-
readonly phone_number?: string | null;
|
|
483
|
-
}[] | null;
|
|
484
|
-
readonly parameters?: readonly {
|
|
485
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
486
|
-
readonly text?: string | null;
|
|
487
|
-
readonly image?: {
|
|
488
|
-
readonly link: string;
|
|
489
|
-
} | null;
|
|
490
|
-
readonly video?: {
|
|
491
|
-
readonly link: string;
|
|
492
|
-
} | null;
|
|
493
|
-
readonly document?: {
|
|
494
|
-
readonly link: string;
|
|
495
|
-
readonly filename?: string | null;
|
|
496
|
-
} | null;
|
|
497
|
-
readonly currency?: {
|
|
498
|
-
readonly fallback_value: string;
|
|
499
|
-
readonly code: string;
|
|
500
|
-
readonly amount_1000: number;
|
|
501
|
-
} | null;
|
|
502
|
-
readonly date_time?: {
|
|
503
|
-
readonly fallback_value: string;
|
|
504
|
-
} | null;
|
|
505
|
-
}[] | null;
|
|
506
|
-
}[] | null;
|
|
507
|
-
readonly buttons: readonly {
|
|
508
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
509
|
-
}[] | null;
|
|
510
|
-
readonly examples: {
|
|
511
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
512
|
-
} | null;
|
|
513
|
-
} | null;
|
|
514
318
|
readonly email: {
|
|
515
319
|
readonly subject: string;
|
|
516
320
|
readonly preheader: string | null;
|
|
@@ -523,18 +327,18 @@ export declare const list: ((input?: {
|
|
|
523
327
|
readonly updatedAt: string;
|
|
524
328
|
readonly usageCount: number;
|
|
525
329
|
readonly lastUsedAt: string | null;
|
|
526
|
-
readonly channel: "
|
|
330
|
+
readonly channel: "email";
|
|
527
331
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
528
332
|
readonly origin: "dashboard" | "tsx";
|
|
529
333
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
530
334
|
readonly description: string | null;
|
|
531
335
|
readonly status: string;
|
|
532
|
-
readonly isDefault: boolean;
|
|
533
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
534
336
|
readonly isActive: boolean;
|
|
535
337
|
readonly category: string | null;
|
|
536
338
|
readonly slug: string;
|
|
537
339
|
readonly version: number;
|
|
340
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
341
|
+
readonly isDefault: boolean;
|
|
538
342
|
readonly variableSchema: readonly {
|
|
539
343
|
readonly name: string;
|
|
540
344
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -551,20 +355,13 @@ export declare const list: ((input?: {
|
|
|
551
355
|
readonly default?: import("./generated").JsonValue;
|
|
552
356
|
readonly description?: string | null;
|
|
553
357
|
}[] | null;
|
|
554
|
-
readonly source: string | null;
|
|
555
358
|
readonly compliance: {
|
|
556
|
-
readonly dltTemplateId?: string | null;
|
|
557
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
558
|
-
readonly dltApprovedAt?: string | null;
|
|
559
|
-
readonly whatsappTemplateId?: string | null;
|
|
560
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
561
|
-
readonly whatsappApprovedAt?: string | null;
|
|
562
359
|
readonly metaStatus?: string | null;
|
|
563
360
|
readonly submittedAt?: string | null;
|
|
564
361
|
readonly qualityScore?: string | null;
|
|
565
362
|
readonly rejectedReason?: string | null;
|
|
566
363
|
readonly lastSyncedAt?: string | null;
|
|
567
|
-
readonly approvalStatus?: "pending" | "
|
|
364
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
568
365
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
569
366
|
readonly approvedAt?: string | null;
|
|
570
367
|
readonly approvalNotes?: string | null;
|
|
@@ -578,11 +375,11 @@ export declare const list: ((input?: {
|
|
|
578
375
|
readonly designOverrides: {
|
|
579
376
|
readonly footer?: {
|
|
580
377
|
readonly address?: {
|
|
581
|
-
readonly
|
|
582
|
-
readonly street1: string;
|
|
378
|
+
readonly country: string;
|
|
583
379
|
readonly city: string;
|
|
380
|
+
readonly street1: string;
|
|
381
|
+
readonly region: string;
|
|
584
382
|
readonly postalCode: string;
|
|
585
|
-
readonly country: string;
|
|
586
383
|
readonly street2?: string | null;
|
|
587
384
|
} | null;
|
|
588
385
|
readonly companyName?: string | null;
|
|
@@ -650,10 +447,9 @@ export declare const list: ((input?: {
|
|
|
650
447
|
readonly opens?: boolean | null;
|
|
651
448
|
readonly clicks?: boolean | null;
|
|
652
449
|
} | null;
|
|
653
|
-
readonly publishedSource?: string | null;
|
|
654
450
|
readonly publishedAt?: string | null;
|
|
655
451
|
readonly publishedBy?: string | null;
|
|
656
|
-
}, import("
|
|
452
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
657
453
|
};
|
|
658
454
|
export declare const create: (input: {
|
|
659
455
|
readonly name: string;
|
|
@@ -661,14 +457,14 @@ export declare const create: (input: {
|
|
|
661
457
|
readonly headers?: {
|
|
662
458
|
readonly [x: string]: string | undefined;
|
|
663
459
|
} | null | undefined;
|
|
664
|
-
readonly subject?: string | null | undefined;
|
|
665
460
|
readonly origin?: string | null | undefined;
|
|
461
|
+
readonly subject?: string | null | undefined;
|
|
666
462
|
readonly description?: string | null | undefined;
|
|
667
|
-
readonly isDefault?: boolean | null | undefined;
|
|
668
463
|
readonly isActive?: boolean | null | undefined;
|
|
669
464
|
readonly category?: string | null | undefined;
|
|
670
465
|
readonly slug?: string | null | undefined;
|
|
671
466
|
readonly version?: number | null | undefined;
|
|
467
|
+
readonly isDefault?: boolean | null | undefined;
|
|
672
468
|
readonly variableSchema?: readonly {
|
|
673
469
|
readonly name: string;
|
|
674
470
|
readonly type: string;
|
|
@@ -708,12 +504,6 @@ export declare const create: (input: {
|
|
|
708
504
|
readonly description?: string | null | undefined;
|
|
709
505
|
}[] | null | undefined;
|
|
710
506
|
readonly compliance?: {
|
|
711
|
-
readonly dltTemplateId?: string | null | undefined;
|
|
712
|
-
readonly dltStatus?: string | null | undefined;
|
|
713
|
-
readonly dltApprovedAt?: string | null | undefined;
|
|
714
|
-
readonly whatsappTemplateId?: string | null | undefined;
|
|
715
|
-
readonly whatsappStatus?: string | null | undefined;
|
|
716
|
-
readonly whatsappApprovedAt?: string | null | undefined;
|
|
717
507
|
readonly metaStatus?: string | null | undefined;
|
|
718
508
|
readonly submittedAt?: string | null | undefined;
|
|
719
509
|
readonly qualityScore?: string | null | undefined;
|
|
@@ -730,30 +520,14 @@ export declare const create: (input: {
|
|
|
730
520
|
readonly notes?: string | null | undefined;
|
|
731
521
|
}[] | null | undefined;
|
|
732
522
|
} | null | undefined;
|
|
733
|
-
readonly performance?: {
|
|
734
|
-
readonly usageCount?: number | null | undefined;
|
|
735
|
-
readonly lastUsedAt?: string | null | undefined;
|
|
736
|
-
readonly deliveryRate?: number | null | undefined;
|
|
737
|
-
readonly openRate?: number | null | undefined;
|
|
738
|
-
readonly clickRate?: number | null | undefined;
|
|
739
|
-
readonly responseRate?: number | null | undefined;
|
|
740
|
-
readonly conversionRate?: number | null | undefined;
|
|
741
|
-
readonly averageSatisfaction?: number | null | undefined;
|
|
742
|
-
readonly totalSent?: number | null | undefined;
|
|
743
|
-
readonly totalDelivered?: number | null | undefined;
|
|
744
|
-
readonly totalOpened?: number | null | undefined;
|
|
745
|
-
readonly totalClicked?: number | null | undefined;
|
|
746
|
-
readonly totalResponses?: number | null | undefined;
|
|
747
|
-
readonly totalConversions?: number | null | undefined;
|
|
748
|
-
} | null | undefined;
|
|
749
523
|
readonly designOverrides?: {
|
|
750
524
|
readonly footer?: {
|
|
751
525
|
readonly address?: {
|
|
752
|
-
readonly
|
|
753
|
-
readonly street1: string;
|
|
526
|
+
readonly country: string;
|
|
754
527
|
readonly city: string;
|
|
528
|
+
readonly street1: string;
|
|
529
|
+
readonly region: string;
|
|
755
530
|
readonly postalCode: string;
|
|
756
|
-
readonly country: string;
|
|
757
531
|
readonly street2?: string | null | undefined;
|
|
758
532
|
} | null | undefined;
|
|
759
533
|
readonly companyName?: string | null | undefined;
|
|
@@ -812,67 +586,23 @@ export declare const create: (input: {
|
|
|
812
586
|
readonly iconUrl?: string | null | undefined;
|
|
813
587
|
} | null | undefined;
|
|
814
588
|
} | null | undefined;
|
|
589
|
+
readonly performance?: {
|
|
590
|
+
readonly usageCount?: number | null | undefined;
|
|
591
|
+
readonly lastUsedAt?: string | null | undefined;
|
|
592
|
+
readonly deliveryRate?: number | null | undefined;
|
|
593
|
+
readonly openRate?: number | null | undefined;
|
|
594
|
+
readonly clickRate?: number | null | undefined;
|
|
595
|
+
readonly responseRate?: number | null | undefined;
|
|
596
|
+
readonly conversionRate?: number | null | undefined;
|
|
597
|
+
readonly averageSatisfaction?: number | null | undefined;
|
|
598
|
+
readonly totalSent?: number | null | undefined;
|
|
599
|
+
readonly totalDelivered?: number | null | undefined;
|
|
600
|
+
readonly totalOpened?: number | null | undefined;
|
|
601
|
+
readonly totalClicked?: number | null | undefined;
|
|
602
|
+
readonly totalResponses?: number | null | undefined;
|
|
603
|
+
readonly totalConversions?: number | null | undefined;
|
|
604
|
+
} | null | undefined;
|
|
815
605
|
}) => import("effect/Effect").Effect<{
|
|
816
|
-
readonly sms: {
|
|
817
|
-
readonly body: string;
|
|
818
|
-
readonly encoding: string | null;
|
|
819
|
-
readonly estimatedSegments: number | null;
|
|
820
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
821
|
-
} | null;
|
|
822
|
-
readonly whatsapp: {
|
|
823
|
-
readonly name: string;
|
|
824
|
-
readonly language: string;
|
|
825
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
826
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
827
|
-
readonly headerMediaType: string | null;
|
|
828
|
-
readonly headerContent: string | null;
|
|
829
|
-
readonly bodyContent: string;
|
|
830
|
-
readonly footerContent: string | null;
|
|
831
|
-
readonly components: readonly {
|
|
832
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
833
|
-
readonly text?: string | null;
|
|
834
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
835
|
-
readonly example?: {
|
|
836
|
-
readonly header_text?: readonly string[] | null;
|
|
837
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
838
|
-
} | null;
|
|
839
|
-
readonly buttons?: readonly {
|
|
840
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
841
|
-
readonly url?: string | null;
|
|
842
|
-
readonly text?: string | null;
|
|
843
|
-
readonly example?: string | null;
|
|
844
|
-
readonly phone_number?: string | null;
|
|
845
|
-
}[] | null;
|
|
846
|
-
readonly parameters?: readonly {
|
|
847
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
848
|
-
readonly text?: string | null;
|
|
849
|
-
readonly image?: {
|
|
850
|
-
readonly link: string;
|
|
851
|
-
} | null;
|
|
852
|
-
readonly video?: {
|
|
853
|
-
readonly link: string;
|
|
854
|
-
} | null;
|
|
855
|
-
readonly document?: {
|
|
856
|
-
readonly link: string;
|
|
857
|
-
readonly filename?: string | null;
|
|
858
|
-
} | null;
|
|
859
|
-
readonly currency?: {
|
|
860
|
-
readonly fallback_value: string;
|
|
861
|
-
readonly code: string;
|
|
862
|
-
readonly amount_1000: number;
|
|
863
|
-
} | null;
|
|
864
|
-
readonly date_time?: {
|
|
865
|
-
readonly fallback_value: string;
|
|
866
|
-
} | null;
|
|
867
|
-
}[] | null;
|
|
868
|
-
}[] | null;
|
|
869
|
-
readonly buttons: readonly {
|
|
870
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
871
|
-
}[] | null;
|
|
872
|
-
readonly examples: {
|
|
873
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
874
|
-
} | null;
|
|
875
|
-
} | null;
|
|
876
606
|
readonly email: {
|
|
877
607
|
readonly subject: string;
|
|
878
608
|
readonly preheader: string | null;
|
|
@@ -885,18 +615,18 @@ export declare const create: (input: {
|
|
|
885
615
|
readonly updatedAt: string;
|
|
886
616
|
readonly usageCount: number;
|
|
887
617
|
readonly lastUsedAt: string | null;
|
|
888
|
-
readonly channel: "
|
|
618
|
+
readonly channel: "email";
|
|
889
619
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
890
620
|
readonly origin: "dashboard" | "tsx";
|
|
891
621
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
892
622
|
readonly description: string | null;
|
|
893
623
|
readonly status: string;
|
|
894
|
-
readonly isDefault: boolean;
|
|
895
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
896
624
|
readonly isActive: boolean;
|
|
897
625
|
readonly category: string | null;
|
|
898
626
|
readonly slug: string;
|
|
899
627
|
readonly version: number;
|
|
628
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
629
|
+
readonly isDefault: boolean;
|
|
900
630
|
readonly variableSchema: readonly {
|
|
901
631
|
readonly name: string;
|
|
902
632
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -913,20 +643,13 @@ export declare const create: (input: {
|
|
|
913
643
|
readonly default?: import("./generated").JsonValue;
|
|
914
644
|
readonly description?: string | null;
|
|
915
645
|
}[] | null;
|
|
916
|
-
readonly source: string | null;
|
|
917
646
|
readonly compliance: {
|
|
918
|
-
readonly dltTemplateId?: string | null;
|
|
919
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
920
|
-
readonly dltApprovedAt?: string | null;
|
|
921
|
-
readonly whatsappTemplateId?: string | null;
|
|
922
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
923
|
-
readonly whatsappApprovedAt?: string | null;
|
|
924
647
|
readonly metaStatus?: string | null;
|
|
925
648
|
readonly submittedAt?: string | null;
|
|
926
649
|
readonly qualityScore?: string | null;
|
|
927
650
|
readonly rejectedReason?: string | null;
|
|
928
651
|
readonly lastSyncedAt?: string | null;
|
|
929
|
-
readonly approvalStatus?: "pending" | "
|
|
652
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
930
653
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
931
654
|
readonly approvedAt?: string | null;
|
|
932
655
|
readonly approvalNotes?: string | null;
|
|
@@ -940,11 +663,11 @@ export declare const create: (input: {
|
|
|
940
663
|
readonly designOverrides: {
|
|
941
664
|
readonly footer?: {
|
|
942
665
|
readonly address?: {
|
|
943
|
-
readonly
|
|
944
|
-
readonly street1: string;
|
|
666
|
+
readonly country: string;
|
|
945
667
|
readonly city: string;
|
|
668
|
+
readonly street1: string;
|
|
669
|
+
readonly region: string;
|
|
946
670
|
readonly postalCode: string;
|
|
947
|
-
readonly country: string;
|
|
948
671
|
readonly street2?: string | null;
|
|
949
672
|
} | null;
|
|
950
673
|
readonly companyName?: string | null;
|
|
@@ -1012,17 +735,16 @@ export declare const create: (input: {
|
|
|
1012
735
|
readonly opens?: boolean | null;
|
|
1013
736
|
readonly clicks?: boolean | null;
|
|
1014
737
|
} | null;
|
|
1015
|
-
readonly publishedSource?: string | null;
|
|
1016
738
|
readonly publishedAt?: string | null;
|
|
1017
739
|
readonly publishedBy?: string | null;
|
|
1018
|
-
}, import("
|
|
740
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1019
741
|
export declare const listDashboard: ((input: {
|
|
1020
742
|
readonly allowedChannels: string | readonly string[];
|
|
1021
743
|
readonly channel?: string | null | undefined;
|
|
1022
744
|
readonly limit?: string | null | undefined;
|
|
1023
745
|
readonly search?: string | null | undefined;
|
|
1024
|
-
readonly status?: string | null | undefined;
|
|
1025
746
|
readonly page?: string | null | undefined;
|
|
747
|
+
readonly status?: string | null | undefined;
|
|
1026
748
|
readonly category?: string | null | undefined;
|
|
1027
749
|
readonly sortBy?: string | null | undefined;
|
|
1028
750
|
readonly sortOrder?: string | null | undefined;
|
|
@@ -1035,11 +757,11 @@ export declare const listDashboard: ((input: {
|
|
|
1035
757
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1036
758
|
readonly name: string;
|
|
1037
759
|
readonly slug: string;
|
|
1038
|
-
readonly channel: "
|
|
760
|
+
readonly channel: "email";
|
|
1039
761
|
readonly origin: "dashboard" | "tsx";
|
|
1040
762
|
readonly description: string | null;
|
|
1041
|
-
readonly category: "
|
|
1042
|
-
readonly status: "pending" | "
|
|
763
|
+
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
764
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1043
765
|
readonly version: number;
|
|
1044
766
|
readonly usageCount: number;
|
|
1045
767
|
readonly lastUsedAt: string | null;
|
|
@@ -1056,11 +778,11 @@ export declare const listDashboard: ((input: {
|
|
|
1056
778
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1057
779
|
readonly name: string;
|
|
1058
780
|
readonly slug: string;
|
|
1059
|
-
readonly channel: "
|
|
781
|
+
readonly channel: "email";
|
|
1060
782
|
readonly origin: "dashboard" | "tsx";
|
|
1061
783
|
readonly description: string | null;
|
|
1062
|
-
readonly category: "
|
|
1063
|
-
readonly status: "pending" | "
|
|
784
|
+
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
785
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1064
786
|
readonly version: number;
|
|
1065
787
|
readonly usageCount: number;
|
|
1066
788
|
readonly lastUsedAt: string | null;
|
|
@@ -1074,14 +796,14 @@ export declare const listDashboard: ((input: {
|
|
|
1074
796
|
readonly total: number;
|
|
1075
797
|
readonly totalPages: number;
|
|
1076
798
|
};
|
|
1077
|
-
}, import("
|
|
799
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
|
|
1078
800
|
readonly pages: (input: {
|
|
1079
801
|
readonly allowedChannels: string | readonly string[];
|
|
1080
802
|
readonly channel?: string | null | undefined;
|
|
1081
803
|
readonly limit?: string | null | undefined;
|
|
1082
804
|
readonly search?: string | null | undefined;
|
|
1083
|
-
readonly status?: string | null | undefined;
|
|
1084
805
|
readonly page?: string | null | undefined;
|
|
806
|
+
readonly status?: string | null | undefined;
|
|
1085
807
|
readonly category?: string | null | undefined;
|
|
1086
808
|
readonly sortBy?: string | null | undefined;
|
|
1087
809
|
readonly sortOrder?: string | null | undefined;
|
|
@@ -1094,11 +816,11 @@ export declare const listDashboard: ((input: {
|
|
|
1094
816
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1095
817
|
readonly name: string;
|
|
1096
818
|
readonly slug: string;
|
|
1097
|
-
readonly channel: "
|
|
819
|
+
readonly channel: "email";
|
|
1098
820
|
readonly origin: "dashboard" | "tsx";
|
|
1099
821
|
readonly description: string | null;
|
|
1100
|
-
readonly category: "
|
|
1101
|
-
readonly status: "pending" | "
|
|
822
|
+
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
823
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1102
824
|
readonly version: number;
|
|
1103
825
|
readonly usageCount: number;
|
|
1104
826
|
readonly lastUsedAt: string | null;
|
|
@@ -1115,11 +837,11 @@ export declare const listDashboard: ((input: {
|
|
|
1115
837
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1116
838
|
readonly name: string;
|
|
1117
839
|
readonly slug: string;
|
|
1118
|
-
readonly channel: "
|
|
840
|
+
readonly channel: "email";
|
|
1119
841
|
readonly origin: "dashboard" | "tsx";
|
|
1120
842
|
readonly description: string | null;
|
|
1121
|
-
readonly category: "
|
|
1122
|
-
readonly status: "pending" | "
|
|
843
|
+
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
844
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1123
845
|
readonly version: number;
|
|
1124
846
|
readonly usageCount: number;
|
|
1125
847
|
readonly lastUsedAt: string | null;
|
|
@@ -1133,14 +855,14 @@ export declare const listDashboard: ((input: {
|
|
|
1133
855
|
readonly total: number;
|
|
1134
856
|
readonly totalPages: number;
|
|
1135
857
|
};
|
|
1136
|
-
}, import("
|
|
858
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1137
859
|
readonly items: (input: {
|
|
1138
860
|
readonly allowedChannels: string | readonly string[];
|
|
1139
861
|
readonly channel?: string | null | undefined;
|
|
1140
862
|
readonly limit?: string | null | undefined;
|
|
1141
863
|
readonly search?: string | null | undefined;
|
|
1142
|
-
readonly status?: string | null | undefined;
|
|
1143
864
|
readonly page?: string | null | undefined;
|
|
865
|
+
readonly status?: string | null | undefined;
|
|
1144
866
|
readonly category?: string | null | undefined;
|
|
1145
867
|
readonly sortBy?: string | null | undefined;
|
|
1146
868
|
readonly sortOrder?: string | null | undefined;
|
|
@@ -1152,11 +874,11 @@ export declare const listDashboard: ((input: {
|
|
|
1152
874
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1153
875
|
readonly name: string;
|
|
1154
876
|
readonly slug: string;
|
|
1155
|
-
readonly channel: "
|
|
877
|
+
readonly channel: "email";
|
|
1156
878
|
readonly origin: "dashboard" | "tsx";
|
|
1157
879
|
readonly description: string | null;
|
|
1158
|
-
readonly category: "
|
|
1159
|
-
readonly status: "pending" | "
|
|
880
|
+
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
881
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1160
882
|
readonly version: number;
|
|
1161
883
|
readonly usageCount: number;
|
|
1162
884
|
readonly lastUsedAt: string | null;
|
|
@@ -1173,18 +895,18 @@ export declare const listDashboard: ((input: {
|
|
|
1173
895
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1174
896
|
readonly name: string;
|
|
1175
897
|
readonly slug: string;
|
|
1176
|
-
readonly channel: "
|
|
898
|
+
readonly channel: "email";
|
|
1177
899
|
readonly origin: "dashboard" | "tsx";
|
|
1178
900
|
readonly description: string | null;
|
|
1179
|
-
readonly category: "
|
|
1180
|
-
readonly status: "pending" | "
|
|
901
|
+
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
902
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1181
903
|
readonly version: number;
|
|
1182
904
|
readonly usageCount: number;
|
|
1183
905
|
readonly lastUsedAt: string | null;
|
|
1184
906
|
readonly createdAt: string;
|
|
1185
907
|
readonly updatedAt: string;
|
|
1186
908
|
};
|
|
1187
|
-
}, import("
|
|
909
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1188
910
|
};
|
|
1189
911
|
export declare const listFamilies: ((input?: {
|
|
1190
912
|
readonly limit?: string | null | undefined;
|
|
@@ -1198,7 +920,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1198
920
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1199
921
|
readonly name: string;
|
|
1200
922
|
readonly slug: string;
|
|
1201
|
-
readonly channel: "
|
|
923
|
+
readonly channel: "email";
|
|
1202
924
|
readonly variableSchema: readonly {
|
|
1203
925
|
readonly name: string;
|
|
1204
926
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1215,7 +937,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1215
937
|
readonly default?: import("./generated").JsonValue;
|
|
1216
938
|
readonly description?: string | null;
|
|
1217
939
|
}[] | null;
|
|
1218
|
-
readonly status: "pending" | "
|
|
940
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1219
941
|
readonly isActive: boolean;
|
|
1220
942
|
readonly version: number;
|
|
1221
943
|
readonly createdAt: string;
|
|
@@ -1230,7 +952,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1230
952
|
readonly total: number;
|
|
1231
953
|
readonly totalPages: number;
|
|
1232
954
|
};
|
|
1233
|
-
}, import("
|
|
955
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
|
|
1234
956
|
readonly pages: (input?: {
|
|
1235
957
|
readonly limit?: string | null | undefined;
|
|
1236
958
|
readonly page?: string | null | undefined;
|
|
@@ -1243,7 +965,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1243
965
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1244
966
|
readonly name: string;
|
|
1245
967
|
readonly slug: string;
|
|
1246
|
-
readonly channel: "
|
|
968
|
+
readonly channel: "email";
|
|
1247
969
|
readonly variableSchema: readonly {
|
|
1248
970
|
readonly name: string;
|
|
1249
971
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1260,7 +982,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1260
982
|
readonly default?: import("./generated").JsonValue;
|
|
1261
983
|
readonly description?: string | null;
|
|
1262
984
|
}[] | null;
|
|
1263
|
-
readonly status: "pending" | "
|
|
985
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1264
986
|
readonly isActive: boolean;
|
|
1265
987
|
readonly version: number;
|
|
1266
988
|
readonly createdAt: string;
|
|
@@ -1275,7 +997,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1275
997
|
readonly total: number;
|
|
1276
998
|
readonly totalPages: number;
|
|
1277
999
|
};
|
|
1278
|
-
}, import("
|
|
1000
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1279
1001
|
readonly items: (input?: {
|
|
1280
1002
|
readonly limit?: string | null | undefined;
|
|
1281
1003
|
readonly page?: string | null | undefined;
|
|
@@ -1287,7 +1009,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1287
1009
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1288
1010
|
readonly name: string;
|
|
1289
1011
|
readonly slug: string;
|
|
1290
|
-
readonly channel: "
|
|
1012
|
+
readonly channel: "email";
|
|
1291
1013
|
readonly variableSchema: readonly {
|
|
1292
1014
|
readonly name: string;
|
|
1293
1015
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1304,7 +1026,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1304
1026
|
readonly default?: import("./generated").JsonValue;
|
|
1305
1027
|
readonly description?: string | null;
|
|
1306
1028
|
}[] | null;
|
|
1307
|
-
readonly status: "pending" | "
|
|
1029
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1308
1030
|
readonly isActive: boolean;
|
|
1309
1031
|
readonly version: number;
|
|
1310
1032
|
readonly createdAt: string;
|
|
@@ -1312,7 +1034,7 @@ export declare const listFamilies: ((input?: {
|
|
|
1312
1034
|
}[];
|
|
1313
1035
|
readonly createdAt: string;
|
|
1314
1036
|
readonly updatedAt: string;
|
|
1315
|
-
}, import("
|
|
1037
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1316
1038
|
};
|
|
1317
1039
|
export declare const createFamily: (input: {
|
|
1318
1040
|
readonly name: string;
|
|
@@ -1324,7 +1046,7 @@ export declare const createFamily: (input: {
|
|
|
1324
1046
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1325
1047
|
readonly name: string;
|
|
1326
1048
|
readonly slug: string;
|
|
1327
|
-
readonly channel: "
|
|
1049
|
+
readonly channel: "email";
|
|
1328
1050
|
readonly variableSchema: readonly {
|
|
1329
1051
|
readonly name: string;
|
|
1330
1052
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1341,7 +1063,7 @@ export declare const createFamily: (input: {
|
|
|
1341
1063
|
readonly default?: import("./generated").JsonValue;
|
|
1342
1064
|
readonly description?: string | null;
|
|
1343
1065
|
}[] | null;
|
|
1344
|
-
readonly status: "pending" | "
|
|
1066
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1345
1067
|
readonly isActive: boolean;
|
|
1346
1068
|
readonly version: number;
|
|
1347
1069
|
readonly createdAt: string;
|
|
@@ -1349,7 +1071,7 @@ export declare const createFamily: (input: {
|
|
|
1349
1071
|
}[];
|
|
1350
1072
|
readonly createdAt: string;
|
|
1351
1073
|
readonly updatedAt: string;
|
|
1352
|
-
}, import("
|
|
1074
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1353
1075
|
export declare const getFamily: (input: {
|
|
1354
1076
|
readonly familyId: string;
|
|
1355
1077
|
}) => import("effect/Effect").Effect<{
|
|
@@ -1360,7 +1082,7 @@ export declare const getFamily: (input: {
|
|
|
1360
1082
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1361
1083
|
readonly name: string;
|
|
1362
1084
|
readonly slug: string;
|
|
1363
|
-
readonly channel: "
|
|
1085
|
+
readonly channel: "email";
|
|
1364
1086
|
readonly variableSchema: readonly {
|
|
1365
1087
|
readonly name: string;
|
|
1366
1088
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1377,7 +1099,7 @@ export declare const getFamily: (input: {
|
|
|
1377
1099
|
readonly default?: import("./generated").JsonValue;
|
|
1378
1100
|
readonly description?: string | null;
|
|
1379
1101
|
}[] | null;
|
|
1380
|
-
readonly status: "pending" | "
|
|
1102
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1381
1103
|
readonly isActive: boolean;
|
|
1382
1104
|
readonly version: number;
|
|
1383
1105
|
readonly createdAt: string;
|
|
@@ -1385,12 +1107,12 @@ export declare const getFamily: (input: {
|
|
|
1385
1107
|
}[];
|
|
1386
1108
|
readonly createdAt: string;
|
|
1387
1109
|
readonly updatedAt: string;
|
|
1388
|
-
}, import("
|
|
1110
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1389
1111
|
export declare const deleteFamily: (input: {
|
|
1390
1112
|
readonly familyId: string;
|
|
1391
1113
|
}) => import("effect/Effect").Effect<{
|
|
1392
1114
|
readonly success: boolean;
|
|
1393
|
-
}, import("
|
|
1115
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1394
1116
|
export declare const renameFamily: (input: {
|
|
1395
1117
|
readonly familyId: string;
|
|
1396
1118
|
readonly name: string;
|
|
@@ -1402,7 +1124,7 @@ export declare const renameFamily: (input: {
|
|
|
1402
1124
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1403
1125
|
readonly name: string;
|
|
1404
1126
|
readonly slug: string;
|
|
1405
|
-
readonly channel: "
|
|
1127
|
+
readonly channel: "email";
|
|
1406
1128
|
readonly variableSchema: readonly {
|
|
1407
1129
|
readonly name: string;
|
|
1408
1130
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1419,7 +1141,7 @@ export declare const renameFamily: (input: {
|
|
|
1419
1141
|
readonly default?: import("./generated").JsonValue;
|
|
1420
1142
|
readonly description?: string | null;
|
|
1421
1143
|
}[] | null;
|
|
1422
|
-
readonly status: "pending" | "
|
|
1144
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1423
1145
|
readonly isActive: boolean;
|
|
1424
1146
|
readonly version: number;
|
|
1425
1147
|
readonly createdAt: string;
|
|
@@ -1427,7 +1149,7 @@ export declare const renameFamily: (input: {
|
|
|
1427
1149
|
}[];
|
|
1428
1150
|
readonly createdAt: string;
|
|
1429
1151
|
readonly updatedAt: string;
|
|
1430
|
-
}, import("
|
|
1152
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1431
1153
|
export declare const createFamilyFromTemplate: (input: {
|
|
1432
1154
|
readonly templateId: string;
|
|
1433
1155
|
readonly name: string;
|
|
@@ -1439,7 +1161,7 @@ export declare const createFamilyFromTemplate: (input: {
|
|
|
1439
1161
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1440
1162
|
readonly name: string;
|
|
1441
1163
|
readonly slug: string;
|
|
1442
|
-
readonly channel: "
|
|
1164
|
+
readonly channel: "email";
|
|
1443
1165
|
readonly variableSchema: readonly {
|
|
1444
1166
|
readonly name: string;
|
|
1445
1167
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1456,7 +1178,7 @@ export declare const createFamilyFromTemplate: (input: {
|
|
|
1456
1178
|
readonly default?: import("./generated").JsonValue;
|
|
1457
1179
|
readonly description?: string | null;
|
|
1458
1180
|
}[] | null;
|
|
1459
|
-
readonly status: "pending" | "
|
|
1181
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1460
1182
|
readonly isActive: boolean;
|
|
1461
1183
|
readonly version: number;
|
|
1462
1184
|
readonly createdAt: string;
|
|
@@ -1464,7 +1186,7 @@ export declare const createFamilyFromTemplate: (input: {
|
|
|
1464
1186
|
}[];
|
|
1465
1187
|
readonly createdAt: string;
|
|
1466
1188
|
readonly updatedAt: string;
|
|
1467
|
-
}, import("
|
|
1189
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1468
1190
|
export declare const attachFamilyMember: (input: {
|
|
1469
1191
|
readonly familyId: string;
|
|
1470
1192
|
readonly templateId: string;
|
|
@@ -1476,7 +1198,7 @@ export declare const attachFamilyMember: (input: {
|
|
|
1476
1198
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1477
1199
|
readonly name: string;
|
|
1478
1200
|
readonly slug: string;
|
|
1479
|
-
readonly channel: "
|
|
1201
|
+
readonly channel: "email";
|
|
1480
1202
|
readonly variableSchema: readonly {
|
|
1481
1203
|
readonly name: string;
|
|
1482
1204
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1493,7 +1215,7 @@ export declare const attachFamilyMember: (input: {
|
|
|
1493
1215
|
readonly default?: import("./generated").JsonValue;
|
|
1494
1216
|
readonly description?: string | null;
|
|
1495
1217
|
}[] | null;
|
|
1496
|
-
readonly status: "pending" | "
|
|
1218
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1497
1219
|
readonly isActive: boolean;
|
|
1498
1220
|
readonly version: number;
|
|
1499
1221
|
readonly createdAt: string;
|
|
@@ -1501,7 +1223,7 @@ export declare const attachFamilyMember: (input: {
|
|
|
1501
1223
|
}[];
|
|
1502
1224
|
readonly createdAt: string;
|
|
1503
1225
|
readonly updatedAt: string;
|
|
1504
|
-
}, import("
|
|
1226
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1505
1227
|
export declare const detachFamilyMember: (input: {
|
|
1506
1228
|
readonly familyId: string;
|
|
1507
1229
|
readonly templateId: string;
|
|
@@ -1513,7 +1235,7 @@ export declare const detachFamilyMember: (input: {
|
|
|
1513
1235
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1514
1236
|
readonly name: string;
|
|
1515
1237
|
readonly slug: string;
|
|
1516
|
-
readonly channel: "
|
|
1238
|
+
readonly channel: "email";
|
|
1517
1239
|
readonly variableSchema: readonly {
|
|
1518
1240
|
readonly name: string;
|
|
1519
1241
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1530,7 +1252,7 @@ export declare const detachFamilyMember: (input: {
|
|
|
1530
1252
|
readonly default?: import("./generated").JsonValue;
|
|
1531
1253
|
readonly description?: string | null;
|
|
1532
1254
|
}[] | null;
|
|
1533
|
-
readonly status: "pending" | "
|
|
1255
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1534
1256
|
readonly isActive: boolean;
|
|
1535
1257
|
readonly version: number;
|
|
1536
1258
|
readonly createdAt: string;
|
|
@@ -1538,7 +1260,7 @@ export declare const detachFamilyMember: (input: {
|
|
|
1538
1260
|
}[];
|
|
1539
1261
|
readonly createdAt: string;
|
|
1540
1262
|
readonly updatedAt: string;
|
|
1541
|
-
}, import("
|
|
1263
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1542
1264
|
export declare const addFamilyChannel: (input: {
|
|
1543
1265
|
readonly familyId: string;
|
|
1544
1266
|
readonly channel: string;
|
|
@@ -1550,7 +1272,7 @@ export declare const addFamilyChannel: (input: {
|
|
|
1550
1272
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1551
1273
|
readonly name: string;
|
|
1552
1274
|
readonly slug: string;
|
|
1553
|
-
readonly channel: "
|
|
1275
|
+
readonly channel: "email";
|
|
1554
1276
|
readonly variableSchema: readonly {
|
|
1555
1277
|
readonly name: string;
|
|
1556
1278
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1567,7 +1289,7 @@ export declare const addFamilyChannel: (input: {
|
|
|
1567
1289
|
readonly default?: import("./generated").JsonValue;
|
|
1568
1290
|
readonly description?: string | null;
|
|
1569
1291
|
}[] | null;
|
|
1570
|
-
readonly status: "pending" | "
|
|
1292
|
+
readonly status: "pending" | "archived" | "rejected" | "draft" | "approved" | "published";
|
|
1571
1293
|
readonly isActive: boolean;
|
|
1572
1294
|
readonly version: number;
|
|
1573
1295
|
readonly createdAt: string;
|
|
@@ -1575,70 +1297,10 @@ export declare const addFamilyChannel: (input: {
|
|
|
1575
1297
|
}[];
|
|
1576
1298
|
readonly createdAt: string;
|
|
1577
1299
|
readonly updatedAt: string;
|
|
1578
|
-
}, import("
|
|
1300
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1579
1301
|
export declare const getById: (input: {
|
|
1580
1302
|
readonly id: string;
|
|
1581
1303
|
}) => import("effect/Effect").Effect<{
|
|
1582
|
-
readonly sms: {
|
|
1583
|
-
readonly body: string;
|
|
1584
|
-
readonly encoding: string | null;
|
|
1585
|
-
readonly estimatedSegments: number | null;
|
|
1586
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
1587
|
-
} | null;
|
|
1588
|
-
readonly whatsapp: {
|
|
1589
|
-
readonly name: string;
|
|
1590
|
-
readonly language: string;
|
|
1591
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
1592
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
1593
|
-
readonly headerMediaType: string | null;
|
|
1594
|
-
readonly headerContent: string | null;
|
|
1595
|
-
readonly bodyContent: string;
|
|
1596
|
-
readonly footerContent: string | null;
|
|
1597
|
-
readonly components: readonly {
|
|
1598
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
1599
|
-
readonly text?: string | null;
|
|
1600
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
1601
|
-
readonly example?: {
|
|
1602
|
-
readonly header_text?: readonly string[] | null;
|
|
1603
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
1604
|
-
} | null;
|
|
1605
|
-
readonly buttons?: readonly {
|
|
1606
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
1607
|
-
readonly url?: string | null;
|
|
1608
|
-
readonly text?: string | null;
|
|
1609
|
-
readonly example?: string | null;
|
|
1610
|
-
readonly phone_number?: string | null;
|
|
1611
|
-
}[] | null;
|
|
1612
|
-
readonly parameters?: readonly {
|
|
1613
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
1614
|
-
readonly text?: string | null;
|
|
1615
|
-
readonly image?: {
|
|
1616
|
-
readonly link: string;
|
|
1617
|
-
} | null;
|
|
1618
|
-
readonly video?: {
|
|
1619
|
-
readonly link: string;
|
|
1620
|
-
} | null;
|
|
1621
|
-
readonly document?: {
|
|
1622
|
-
readonly link: string;
|
|
1623
|
-
readonly filename?: string | null;
|
|
1624
|
-
} | null;
|
|
1625
|
-
readonly currency?: {
|
|
1626
|
-
readonly fallback_value: string;
|
|
1627
|
-
readonly code: string;
|
|
1628
|
-
readonly amount_1000: number;
|
|
1629
|
-
} | null;
|
|
1630
|
-
readonly date_time?: {
|
|
1631
|
-
readonly fallback_value: string;
|
|
1632
|
-
} | null;
|
|
1633
|
-
}[] | null;
|
|
1634
|
-
}[] | null;
|
|
1635
|
-
readonly buttons: readonly {
|
|
1636
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1637
|
-
}[] | null;
|
|
1638
|
-
readonly examples: {
|
|
1639
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1640
|
-
} | null;
|
|
1641
|
-
} | null;
|
|
1642
1304
|
readonly email: {
|
|
1643
1305
|
readonly subject: string;
|
|
1644
1306
|
readonly preheader: string | null;
|
|
@@ -1651,18 +1313,18 @@ export declare const getById: (input: {
|
|
|
1651
1313
|
readonly updatedAt: string;
|
|
1652
1314
|
readonly usageCount: number;
|
|
1653
1315
|
readonly lastUsedAt: string | null;
|
|
1654
|
-
readonly channel: "
|
|
1316
|
+
readonly channel: "email";
|
|
1655
1317
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1656
1318
|
readonly origin: "dashboard" | "tsx";
|
|
1657
1319
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
1658
1320
|
readonly description: string | null;
|
|
1659
1321
|
readonly status: string;
|
|
1660
|
-
readonly isDefault: boolean;
|
|
1661
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1662
1322
|
readonly isActive: boolean;
|
|
1663
1323
|
readonly category: string | null;
|
|
1664
1324
|
readonly slug: string;
|
|
1665
1325
|
readonly version: number;
|
|
1326
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1327
|
+
readonly isDefault: boolean;
|
|
1666
1328
|
readonly variableSchema: readonly {
|
|
1667
1329
|
readonly name: string;
|
|
1668
1330
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -1679,20 +1341,13 @@ export declare const getById: (input: {
|
|
|
1679
1341
|
readonly default?: import("./generated").JsonValue;
|
|
1680
1342
|
readonly description?: string | null;
|
|
1681
1343
|
}[] | null;
|
|
1682
|
-
readonly source: string | null;
|
|
1683
1344
|
readonly compliance: {
|
|
1684
|
-
readonly dltTemplateId?: string | null;
|
|
1685
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
1686
|
-
readonly dltApprovedAt?: string | null;
|
|
1687
|
-
readonly whatsappTemplateId?: string | null;
|
|
1688
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
1689
|
-
readonly whatsappApprovedAt?: string | null;
|
|
1690
1345
|
readonly metaStatus?: string | null;
|
|
1691
1346
|
readonly submittedAt?: string | null;
|
|
1692
1347
|
readonly qualityScore?: string | null;
|
|
1693
1348
|
readonly rejectedReason?: string | null;
|
|
1694
1349
|
readonly lastSyncedAt?: string | null;
|
|
1695
|
-
readonly approvalStatus?: "pending" | "
|
|
1350
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
1696
1351
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
1697
1352
|
readonly approvedAt?: string | null;
|
|
1698
1353
|
readonly approvalNotes?: string | null;
|
|
@@ -1706,11 +1361,11 @@ export declare const getById: (input: {
|
|
|
1706
1361
|
readonly designOverrides: {
|
|
1707
1362
|
readonly footer?: {
|
|
1708
1363
|
readonly address?: {
|
|
1709
|
-
readonly
|
|
1710
|
-
readonly street1: string;
|
|
1364
|
+
readonly country: string;
|
|
1711
1365
|
readonly city: string;
|
|
1366
|
+
readonly street1: string;
|
|
1367
|
+
readonly region: string;
|
|
1712
1368
|
readonly postalCode: string;
|
|
1713
|
-
readonly country: string;
|
|
1714
1369
|
readonly street2?: string | null;
|
|
1715
1370
|
} | null;
|
|
1716
1371
|
readonly companyName?: string | null;
|
|
@@ -1778,30 +1433,25 @@ export declare const getById: (input: {
|
|
|
1778
1433
|
readonly opens?: boolean | null;
|
|
1779
1434
|
readonly clicks?: boolean | null;
|
|
1780
1435
|
} | null;
|
|
1781
|
-
readonly publishedSource?: string | null;
|
|
1782
1436
|
readonly publishedAt?: string | null;
|
|
1783
1437
|
readonly publishedBy?: string | null;
|
|
1784
|
-
}, import("
|
|
1438
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1785
1439
|
export declare const remove: (input: {
|
|
1786
1440
|
readonly id: string;
|
|
1787
1441
|
}) => import("effect/Effect").Effect<{
|
|
1788
1442
|
readonly success: boolean;
|
|
1789
|
-
}, import("
|
|
1443
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1790
1444
|
export declare const update: (input: {
|
|
1791
1445
|
readonly id: string;
|
|
1792
1446
|
readonly data: {
|
|
1793
|
-
readonly headers?: {
|
|
1794
|
-
readonly [x: string]: string | undefined;
|
|
1795
|
-
} | null | undefined;
|
|
1796
1447
|
readonly name?: string | null | undefined;
|
|
1797
|
-
readonly subject?: string | null | undefined;
|
|
1798
1448
|
readonly origin?: string | null | undefined;
|
|
1799
1449
|
readonly description?: string | null | undefined;
|
|
1800
|
-
readonly isDefault?: boolean | null | undefined;
|
|
1801
1450
|
readonly isActive?: boolean | null | undefined;
|
|
1802
1451
|
readonly category?: string | null | undefined;
|
|
1803
1452
|
readonly slug?: string | null | undefined;
|
|
1804
1453
|
readonly version?: number | null | undefined;
|
|
1454
|
+
readonly isDefault?: boolean | null | undefined;
|
|
1805
1455
|
readonly variableSchema?: readonly {
|
|
1806
1456
|
readonly name: string;
|
|
1807
1457
|
readonly type: string;
|
|
@@ -1840,15 +1490,12 @@ export declare const update: (input: {
|
|
|
1840
1490
|
} | null | undefined;
|
|
1841
1491
|
readonly description?: string | null | undefined;
|
|
1842
1492
|
}[] | null | undefined;
|
|
1843
|
-
readonly source?: string | null | undefined;
|
|
1844
1493
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
1494
|
+
readonly fromDefault?: {
|
|
1495
|
+
readonly email: string;
|
|
1496
|
+
readonly name?: string | null | undefined;
|
|
1497
|
+
} | null | undefined;
|
|
1845
1498
|
readonly compliance?: {
|
|
1846
|
-
readonly dltTemplateId?: string | null | undefined;
|
|
1847
|
-
readonly dltStatus?: string | null | undefined;
|
|
1848
|
-
readonly dltApprovedAt?: string | null | undefined;
|
|
1849
|
-
readonly whatsappTemplateId?: string | null | undefined;
|
|
1850
|
-
readonly whatsappStatus?: string | null | undefined;
|
|
1851
|
-
readonly whatsappApprovedAt?: string | null | undefined;
|
|
1852
1499
|
readonly metaStatus?: string | null | undefined;
|
|
1853
1500
|
readonly submittedAt?: string | null | undefined;
|
|
1854
1501
|
readonly qualityScore?: string | null | undefined;
|
|
@@ -1865,30 +1512,14 @@ export declare const update: (input: {
|
|
|
1865
1512
|
readonly notes?: string | null | undefined;
|
|
1866
1513
|
}[] | null | undefined;
|
|
1867
1514
|
} | null | undefined;
|
|
1868
|
-
readonly performance?: {
|
|
1869
|
-
readonly usageCount?: number | null | undefined;
|
|
1870
|
-
readonly lastUsedAt?: string | null | undefined;
|
|
1871
|
-
readonly deliveryRate?: number | null | undefined;
|
|
1872
|
-
readonly openRate?: number | null | undefined;
|
|
1873
|
-
readonly clickRate?: number | null | undefined;
|
|
1874
|
-
readonly responseRate?: number | null | undefined;
|
|
1875
|
-
readonly conversionRate?: number | null | undefined;
|
|
1876
|
-
readonly averageSatisfaction?: number | null | undefined;
|
|
1877
|
-
readonly totalSent?: number | null | undefined;
|
|
1878
|
-
readonly totalDelivered?: number | null | undefined;
|
|
1879
|
-
readonly totalOpened?: number | null | undefined;
|
|
1880
|
-
readonly totalClicked?: number | null | undefined;
|
|
1881
|
-
readonly totalResponses?: number | null | undefined;
|
|
1882
|
-
readonly totalConversions?: number | null | undefined;
|
|
1883
|
-
} | null | undefined;
|
|
1884
1515
|
readonly designOverrides?: {
|
|
1885
1516
|
readonly footer?: {
|
|
1886
1517
|
readonly address?: {
|
|
1887
|
-
readonly
|
|
1888
|
-
readonly street1: string;
|
|
1518
|
+
readonly country: string;
|
|
1889
1519
|
readonly city: string;
|
|
1520
|
+
readonly street1: string;
|
|
1521
|
+
readonly region: string;
|
|
1890
1522
|
readonly postalCode: string;
|
|
1891
|
-
readonly country: string;
|
|
1892
1523
|
readonly street2?: string | null | undefined;
|
|
1893
1524
|
} | null | undefined;
|
|
1894
1525
|
readonly companyName?: string | null | undefined;
|
|
@@ -1947,72 +1578,24 @@ export declare const update: (input: {
|
|
|
1947
1578
|
readonly iconUrl?: string | null | undefined;
|
|
1948
1579
|
} | null | undefined;
|
|
1949
1580
|
} | null | undefined;
|
|
1950
|
-
readonly
|
|
1951
|
-
readonly
|
|
1952
|
-
readonly
|
|
1581
|
+
readonly performance?: {
|
|
1582
|
+
readonly usageCount?: number | null | undefined;
|
|
1583
|
+
readonly lastUsedAt?: string | null | undefined;
|
|
1584
|
+
readonly deliveryRate?: number | null | undefined;
|
|
1585
|
+
readonly openRate?: number | null | undefined;
|
|
1586
|
+
readonly clickRate?: number | null | undefined;
|
|
1587
|
+
readonly responseRate?: number | null | undefined;
|
|
1588
|
+
readonly conversionRate?: number | null | undefined;
|
|
1589
|
+
readonly averageSatisfaction?: number | null | undefined;
|
|
1590
|
+
readonly totalSent?: number | null | undefined;
|
|
1591
|
+
readonly totalDelivered?: number | null | undefined;
|
|
1592
|
+
readonly totalOpened?: number | null | undefined;
|
|
1593
|
+
readonly totalClicked?: number | null | undefined;
|
|
1594
|
+
readonly totalResponses?: number | null | undefined;
|
|
1595
|
+
readonly totalConversions?: number | null | undefined;
|
|
1953
1596
|
} | null | undefined;
|
|
1954
1597
|
};
|
|
1955
1598
|
}) => import("effect/Effect").Effect<{
|
|
1956
|
-
readonly sms: {
|
|
1957
|
-
readonly body: string;
|
|
1958
|
-
readonly encoding: string | null;
|
|
1959
|
-
readonly estimatedSegments: number | null;
|
|
1960
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
1961
|
-
} | null;
|
|
1962
|
-
readonly whatsapp: {
|
|
1963
|
-
readonly name: string;
|
|
1964
|
-
readonly language: string;
|
|
1965
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
1966
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
1967
|
-
readonly headerMediaType: string | null;
|
|
1968
|
-
readonly headerContent: string | null;
|
|
1969
|
-
readonly bodyContent: string;
|
|
1970
|
-
readonly footerContent: string | null;
|
|
1971
|
-
readonly components: readonly {
|
|
1972
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
1973
|
-
readonly text?: string | null;
|
|
1974
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
1975
|
-
readonly example?: {
|
|
1976
|
-
readonly header_text?: readonly string[] | null;
|
|
1977
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
1978
|
-
} | null;
|
|
1979
|
-
readonly buttons?: readonly {
|
|
1980
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
1981
|
-
readonly url?: string | null;
|
|
1982
|
-
readonly text?: string | null;
|
|
1983
|
-
readonly example?: string | null;
|
|
1984
|
-
readonly phone_number?: string | null;
|
|
1985
|
-
}[] | null;
|
|
1986
|
-
readonly parameters?: readonly {
|
|
1987
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
1988
|
-
readonly text?: string | null;
|
|
1989
|
-
readonly image?: {
|
|
1990
|
-
readonly link: string;
|
|
1991
|
-
} | null;
|
|
1992
|
-
readonly video?: {
|
|
1993
|
-
readonly link: string;
|
|
1994
|
-
} | null;
|
|
1995
|
-
readonly document?: {
|
|
1996
|
-
readonly link: string;
|
|
1997
|
-
readonly filename?: string | null;
|
|
1998
|
-
} | null;
|
|
1999
|
-
readonly currency?: {
|
|
2000
|
-
readonly fallback_value: string;
|
|
2001
|
-
readonly code: string;
|
|
2002
|
-
readonly amount_1000: number;
|
|
2003
|
-
} | null;
|
|
2004
|
-
readonly date_time?: {
|
|
2005
|
-
readonly fallback_value: string;
|
|
2006
|
-
} | null;
|
|
2007
|
-
}[] | null;
|
|
2008
|
-
}[] | null;
|
|
2009
|
-
readonly buttons: readonly {
|
|
2010
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2011
|
-
}[] | null;
|
|
2012
|
-
readonly examples: {
|
|
2013
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2014
|
-
} | null;
|
|
2015
|
-
} | null;
|
|
2016
1599
|
readonly email: {
|
|
2017
1600
|
readonly subject: string;
|
|
2018
1601
|
readonly preheader: string | null;
|
|
@@ -2025,18 +1608,18 @@ export declare const update: (input: {
|
|
|
2025
1608
|
readonly updatedAt: string;
|
|
2026
1609
|
readonly usageCount: number;
|
|
2027
1610
|
readonly lastUsedAt: string | null;
|
|
2028
|
-
readonly channel: "
|
|
1611
|
+
readonly channel: "email";
|
|
2029
1612
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2030
1613
|
readonly origin: "dashboard" | "tsx";
|
|
2031
1614
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
2032
1615
|
readonly description: string | null;
|
|
2033
1616
|
readonly status: string;
|
|
2034
|
-
readonly isDefault: boolean;
|
|
2035
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2036
1617
|
readonly isActive: boolean;
|
|
2037
1618
|
readonly category: string | null;
|
|
2038
1619
|
readonly slug: string;
|
|
2039
1620
|
readonly version: number;
|
|
1621
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1622
|
+
readonly isDefault: boolean;
|
|
2040
1623
|
readonly variableSchema: readonly {
|
|
2041
1624
|
readonly name: string;
|
|
2042
1625
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -2053,20 +1636,13 @@ export declare const update: (input: {
|
|
|
2053
1636
|
readonly default?: import("./generated").JsonValue;
|
|
2054
1637
|
readonly description?: string | null;
|
|
2055
1638
|
}[] | null;
|
|
2056
|
-
readonly source: string | null;
|
|
2057
1639
|
readonly compliance: {
|
|
2058
|
-
readonly dltTemplateId?: string | null;
|
|
2059
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2060
|
-
readonly dltApprovedAt?: string | null;
|
|
2061
|
-
readonly whatsappTemplateId?: string | null;
|
|
2062
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2063
|
-
readonly whatsappApprovedAt?: string | null;
|
|
2064
1640
|
readonly metaStatus?: string | null;
|
|
2065
1641
|
readonly submittedAt?: string | null;
|
|
2066
1642
|
readonly qualityScore?: string | null;
|
|
2067
1643
|
readonly rejectedReason?: string | null;
|
|
2068
1644
|
readonly lastSyncedAt?: string | null;
|
|
2069
|
-
readonly approvalStatus?: "pending" | "
|
|
1645
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
2070
1646
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2071
1647
|
readonly approvedAt?: string | null;
|
|
2072
1648
|
readonly approvalNotes?: string | null;
|
|
@@ -2080,11 +1656,11 @@ export declare const update: (input: {
|
|
|
2080
1656
|
readonly designOverrides: {
|
|
2081
1657
|
readonly footer?: {
|
|
2082
1658
|
readonly address?: {
|
|
2083
|
-
readonly
|
|
2084
|
-
readonly street1: string;
|
|
1659
|
+
readonly country: string;
|
|
2085
1660
|
readonly city: string;
|
|
1661
|
+
readonly street1: string;
|
|
1662
|
+
readonly region: string;
|
|
2086
1663
|
readonly postalCode: string;
|
|
2087
|
-
readonly country: string;
|
|
2088
1664
|
readonly street2?: string | null;
|
|
2089
1665
|
} | null;
|
|
2090
1666
|
readonly companyName?: string | null;
|
|
@@ -2152,76 +1728,15 @@ export declare const update: (input: {
|
|
|
2152
1728
|
readonly opens?: boolean | null;
|
|
2153
1729
|
readonly clicks?: boolean | null;
|
|
2154
1730
|
} | null;
|
|
2155
|
-
readonly publishedSource?: string | null;
|
|
2156
1731
|
readonly publishedAt?: string | null;
|
|
2157
1732
|
readonly publishedBy?: string | null;
|
|
2158
|
-
}, import("
|
|
1733
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
2159
1734
|
export declare const approve: (input: {
|
|
2160
1735
|
readonly id: string;
|
|
2161
1736
|
readonly data: {
|
|
2162
1737
|
readonly notes?: string | null | undefined;
|
|
2163
1738
|
};
|
|
2164
1739
|
}) => import("effect/Effect").Effect<{
|
|
2165
|
-
readonly sms: {
|
|
2166
|
-
readonly body: string;
|
|
2167
|
-
readonly encoding: string | null;
|
|
2168
|
-
readonly estimatedSegments: number | null;
|
|
2169
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
2170
|
-
} | null;
|
|
2171
|
-
readonly whatsapp: {
|
|
2172
|
-
readonly name: string;
|
|
2173
|
-
readonly language: string;
|
|
2174
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
2175
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
2176
|
-
readonly headerMediaType: string | null;
|
|
2177
|
-
readonly headerContent: string | null;
|
|
2178
|
-
readonly bodyContent: string;
|
|
2179
|
-
readonly footerContent: string | null;
|
|
2180
|
-
readonly components: readonly {
|
|
2181
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
2182
|
-
readonly text?: string | null;
|
|
2183
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
2184
|
-
readonly example?: {
|
|
2185
|
-
readonly header_text?: readonly string[] | null;
|
|
2186
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
2187
|
-
} | null;
|
|
2188
|
-
readonly buttons?: readonly {
|
|
2189
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
2190
|
-
readonly url?: string | null;
|
|
2191
|
-
readonly text?: string | null;
|
|
2192
|
-
readonly example?: string | null;
|
|
2193
|
-
readonly phone_number?: string | null;
|
|
2194
|
-
}[] | null;
|
|
2195
|
-
readonly parameters?: readonly {
|
|
2196
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
2197
|
-
readonly text?: string | null;
|
|
2198
|
-
readonly image?: {
|
|
2199
|
-
readonly link: string;
|
|
2200
|
-
} | null;
|
|
2201
|
-
readonly video?: {
|
|
2202
|
-
readonly link: string;
|
|
2203
|
-
} | null;
|
|
2204
|
-
readonly document?: {
|
|
2205
|
-
readonly link: string;
|
|
2206
|
-
readonly filename?: string | null;
|
|
2207
|
-
} | null;
|
|
2208
|
-
readonly currency?: {
|
|
2209
|
-
readonly fallback_value: string;
|
|
2210
|
-
readonly code: string;
|
|
2211
|
-
readonly amount_1000: number;
|
|
2212
|
-
} | null;
|
|
2213
|
-
readonly date_time?: {
|
|
2214
|
-
readonly fallback_value: string;
|
|
2215
|
-
} | null;
|
|
2216
|
-
}[] | null;
|
|
2217
|
-
}[] | null;
|
|
2218
|
-
readonly buttons: readonly {
|
|
2219
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2220
|
-
}[] | null;
|
|
2221
|
-
readonly examples: {
|
|
2222
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2223
|
-
} | null;
|
|
2224
|
-
} | null;
|
|
2225
1740
|
readonly email: {
|
|
2226
1741
|
readonly subject: string;
|
|
2227
1742
|
readonly preheader: string | null;
|
|
@@ -2234,668 +1749,18 @@ export declare const approve: (input: {
|
|
|
2234
1749
|
readonly updatedAt: string;
|
|
2235
1750
|
readonly usageCount: number;
|
|
2236
1751
|
readonly lastUsedAt: string | null;
|
|
2237
|
-
readonly channel: "
|
|
1752
|
+
readonly channel: "email";
|
|
2238
1753
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2239
1754
|
readonly origin: "dashboard" | "tsx";
|
|
2240
1755
|
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
2241
1756
|
readonly description: string | null;
|
|
2242
1757
|
readonly status: string;
|
|
2243
|
-
readonly isDefault: boolean;
|
|
2244
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2245
1758
|
readonly isActive: boolean;
|
|
2246
1759
|
readonly category: string | null;
|
|
2247
1760
|
readonly slug: string;
|
|
2248
1761
|
readonly version: number;
|
|
2249
|
-
readonly variableSchema: readonly {
|
|
2250
|
-
readonly name: string;
|
|
2251
|
-
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
2252
|
-
readonly required: boolean;
|
|
2253
|
-
readonly validation?: {
|
|
2254
|
-
readonly enum?: readonly string[] | null;
|
|
2255
|
-
readonly pattern?: string | null;
|
|
2256
|
-
readonly min?: number | null;
|
|
2257
|
-
readonly max?: number | null;
|
|
2258
|
-
readonly minLength?: number | null;
|
|
2259
|
-
readonly maxLength?: number | null;
|
|
2260
|
-
readonly format?: "url" | "email" | "date" | "date-time" | "uuid" | null;
|
|
2261
|
-
} | null;
|
|
2262
|
-
readonly default?: import("./generated").JsonValue;
|
|
2263
|
-
readonly description?: string | null;
|
|
2264
|
-
}[] | null;
|
|
2265
|
-
readonly source: string | null;
|
|
2266
|
-
readonly compliance: {
|
|
2267
|
-
readonly dltTemplateId?: string | null;
|
|
2268
|
-
readonly dltStatus?: "pending" | "rejected" | "approved" | "expired" | null;
|
|
2269
|
-
readonly dltApprovedAt?: string | null;
|
|
2270
|
-
readonly whatsappTemplateId?: string | null;
|
|
2271
|
-
readonly whatsappStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2272
|
-
readonly whatsappApprovedAt?: string | null;
|
|
2273
|
-
readonly metaStatus?: string | null;
|
|
2274
|
-
readonly submittedAt?: string | null;
|
|
2275
|
-
readonly qualityScore?: string | null;
|
|
2276
|
-
readonly rejectedReason?: string | null;
|
|
2277
|
-
readonly lastSyncedAt?: string | null;
|
|
2278
|
-
readonly approvalStatus?: "pending" | "draft" | "archived" | "rejected" | "approved" | "published" | null;
|
|
2279
|
-
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2280
|
-
readonly approvedAt?: string | null;
|
|
2281
|
-
readonly approvalNotes?: string | null;
|
|
2282
|
-
readonly regulatoryRequirements?: readonly {
|
|
2283
|
-
readonly status: "pending" | "compliant" | "non_compliant";
|
|
2284
|
-
readonly region: string;
|
|
2285
|
-
readonly requirement: string;
|
|
2286
|
-
readonly notes?: string | null;
|
|
2287
|
-
}[] | null;
|
|
2288
|
-
} | null;
|
|
2289
|
-
readonly designOverrides: {
|
|
2290
|
-
readonly footer?: {
|
|
2291
|
-
readonly address?: {
|
|
2292
|
-
readonly region: string;
|
|
2293
|
-
readonly street1: string;
|
|
2294
|
-
readonly city: string;
|
|
2295
|
-
readonly postalCode: string;
|
|
2296
|
-
readonly country: string;
|
|
2297
|
-
readonly street2?: string | null;
|
|
2298
|
-
} | null;
|
|
2299
|
-
readonly companyName?: string | null;
|
|
2300
|
-
readonly socialLinks?: readonly {
|
|
2301
|
-
readonly label: string;
|
|
2302
|
-
readonly url: string;
|
|
2303
|
-
}[] | null;
|
|
2304
|
-
readonly customHtml?: string | null;
|
|
2305
|
-
} | null;
|
|
2306
|
-
readonly theme?: {
|
|
2307
|
-
readonly text?: {
|
|
2308
|
-
readonly [x: string]: {
|
|
2309
|
-
readonly sizePx: number;
|
|
2310
|
-
readonly lineHeightPx: number;
|
|
2311
|
-
};
|
|
2312
|
-
} | null;
|
|
2313
|
-
readonly tracking?: {
|
|
2314
|
-
readonly [x: string]: number;
|
|
2315
|
-
} | null;
|
|
2316
|
-
readonly colors?: {
|
|
2317
|
-
readonly [x: string]: string;
|
|
2318
|
-
} | null;
|
|
2319
|
-
readonly colorsDark?: {
|
|
2320
|
-
readonly [x: string]: string;
|
|
2321
|
-
} | null;
|
|
2322
|
-
readonly radiusPx?: {
|
|
2323
|
-
readonly [x: string]: number;
|
|
2324
|
-
} | null;
|
|
2325
|
-
readonly fontFamilies?: {
|
|
2326
|
-
readonly [x: string]: {
|
|
2327
|
-
readonly family: string;
|
|
2328
|
-
readonly source: "system" | "google" | "custom";
|
|
2329
|
-
readonly fallback: string;
|
|
2330
|
-
readonly faces?: readonly {
|
|
2331
|
-
readonly style: "normal" | "italic";
|
|
2332
|
-
readonly weight: number;
|
|
2333
|
-
readonly src: string;
|
|
2334
|
-
readonly unicodeRange?: string | null;
|
|
2335
|
-
}[] | null;
|
|
2336
|
-
};
|
|
2337
|
-
} | null;
|
|
2338
|
-
readonly fontWeights?: {
|
|
2339
|
-
readonly [x: string]: number;
|
|
2340
|
-
} | null;
|
|
2341
|
-
readonly leading?: {
|
|
2342
|
-
readonly [x: string]: number;
|
|
2343
|
-
} | null;
|
|
2344
|
-
readonly spacingPx?: number | null;
|
|
2345
|
-
readonly containerPx?: {
|
|
2346
|
-
readonly [x: string]: number;
|
|
2347
|
-
} | null;
|
|
2348
|
-
} | null;
|
|
2349
|
-
readonly assets?: {
|
|
2350
|
-
readonly logoUrl?: string | null;
|
|
2351
|
-
readonly logoDarkUrl?: string | null;
|
|
2352
|
-
readonly iconUrl?: string | null;
|
|
2353
|
-
} | null;
|
|
2354
|
-
} | null;
|
|
2355
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
2356
|
-
readonly fromDefault?: {
|
|
2357
|
-
readonly email: string;
|
|
2358
|
-
readonly name?: string | null;
|
|
2359
|
-
} | null;
|
|
2360
|
-
readonly trackingDefault?: {
|
|
2361
|
-
readonly opens?: boolean | null;
|
|
2362
|
-
readonly clicks?: boolean | null;
|
|
2363
|
-
} | null;
|
|
2364
|
-
readonly publishedSource?: string | null;
|
|
2365
|
-
readonly publishedAt?: string | null;
|
|
2366
|
-
readonly publishedBy?: string | null;
|
|
2367
|
-
}, 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 render: (input: {
|
|
2369
|
-
readonly id: string;
|
|
2370
|
-
readonly data: {
|
|
2371
|
-
readonly variables?: {
|
|
2372
|
-
readonly [x: string]: string | undefined;
|
|
2373
|
-
} | null | undefined;
|
|
2374
|
-
};
|
|
2375
|
-
}) => import("effect/Effect").Effect<{
|
|
2376
|
-
readonly channel: "sms" | "whatsapp" | "email";
|
|
2377
|
-
readonly errors: readonly string[];
|
|
2378
|
-
readonly rendered: {
|
|
2379
|
-
readonly text: string;
|
|
2380
|
-
readonly subject?: string | null;
|
|
2381
|
-
readonly html?: string | null;
|
|
2382
|
-
};
|
|
2383
|
-
readonly missingVariables: readonly string[];
|
|
2384
|
-
readonly sms?: {
|
|
2385
|
-
readonly encoding: string | null;
|
|
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;
|
|
2402
|
-
}) => import("effect/Effect").Effect<{
|
|
2403
|
-
readonly sms: {
|
|
2404
|
-
readonly body: string;
|
|
2405
|
-
readonly encoding: string | null;
|
|
2406
|
-
readonly estimatedSegments: number | null;
|
|
2407
|
-
readonly category: "transactional" | "promotional" | "service_implicit" | null;
|
|
2408
|
-
} | null;
|
|
2409
|
-
readonly whatsapp: {
|
|
2410
|
-
readonly name: string;
|
|
2411
|
-
readonly language: string;
|
|
2412
|
-
readonly category: "marketing" | "utility" | "authentication" | "service";
|
|
2413
|
-
readonly headerType: "text" | "image" | "video" | "document" | "none" | null;
|
|
2414
|
-
readonly headerMediaType: string | null;
|
|
2415
|
-
readonly headerContent: string | null;
|
|
2416
|
-
readonly bodyContent: string;
|
|
2417
|
-
readonly footerContent: string | null;
|
|
2418
|
-
readonly components: readonly {
|
|
2419
|
-
readonly type: "body" | "button" | "header" | "footer";
|
|
2420
|
-
readonly text?: string | null;
|
|
2421
|
-
readonly format?: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | null;
|
|
2422
|
-
readonly example?: {
|
|
2423
|
-
readonly header_text?: readonly string[] | null;
|
|
2424
|
-
readonly body_text?: readonly (readonly string[])[] | null;
|
|
2425
|
-
} | null;
|
|
2426
|
-
readonly buttons?: readonly {
|
|
2427
|
-
readonly type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
2428
|
-
readonly url?: string | null;
|
|
2429
|
-
readonly text?: string | null;
|
|
2430
|
-
readonly example?: string | null;
|
|
2431
|
-
readonly phone_number?: string | null;
|
|
2432
|
-
}[] | null;
|
|
2433
|
-
readonly parameters?: readonly {
|
|
2434
|
-
readonly type: "text" | "image" | "video" | "document" | "currency" | "date_time";
|
|
2435
|
-
readonly text?: string | null;
|
|
2436
|
-
readonly image?: {
|
|
2437
|
-
readonly link: string;
|
|
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;
|
|
2471
|
-
readonly createdAt: string;
|
|
2472
|
-
readonly updatedAt: string;
|
|
2473
|
-
readonly usageCount: number;
|
|
2474
|
-
readonly lastUsedAt: string | null;
|
|
2475
|
-
readonly channel: "sms" | "whatsapp" | "email";
|
|
2476
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2477
|
-
readonly origin: "dashboard" | "tsx";
|
|
2478
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
2479
|
-
readonly description: string | null;
|
|
2480
|
-
readonly status: string;
|
|
2481
|
-
readonly isDefault: boolean;
|
|
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
1762
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2895
|
-
readonly
|
|
2896
|
-
readonly category: string | null;
|
|
2897
|
-
readonly slug: string;
|
|
2898
|
-
readonly version: number;
|
|
1763
|
+
readonly isDefault: boolean;
|
|
2899
1764
|
readonly variableSchema: readonly {
|
|
2900
1765
|
readonly name: string;
|
|
2901
1766
|
readonly type: "string" | "number" | "boolean" | "object" | "date" | "array";
|
|
@@ -2912,20 +1777,13 @@ export declare const unpublish: (input: {
|
|
|
2912
1777
|
readonly default?: import("./generated").JsonValue;
|
|
2913
1778
|
readonly description?: string | null;
|
|
2914
1779
|
}[] | null;
|
|
2915
|
-
readonly source: string | null;
|
|
2916
1780
|
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
1781
|
readonly metaStatus?: string | null;
|
|
2924
1782
|
readonly submittedAt?: string | null;
|
|
2925
1783
|
readonly qualityScore?: string | null;
|
|
2926
1784
|
readonly rejectedReason?: string | null;
|
|
2927
1785
|
readonly lastSyncedAt?: string | null;
|
|
2928
|
-
readonly approvalStatus?: "pending" | "
|
|
1786
|
+
readonly approvalStatus?: "pending" | "archived" | "rejected" | "draft" | "approved" | "published" | null;
|
|
2929
1787
|
readonly approvedBy?: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
2930
1788
|
readonly approvedAt?: string | null;
|
|
2931
1789
|
readonly approvalNotes?: string | null;
|
|
@@ -2939,11 +1797,11 @@ export declare const unpublish: (input: {
|
|
|
2939
1797
|
readonly designOverrides: {
|
|
2940
1798
|
readonly footer?: {
|
|
2941
1799
|
readonly address?: {
|
|
2942
|
-
readonly
|
|
2943
|
-
readonly street1: string;
|
|
1800
|
+
readonly country: string;
|
|
2944
1801
|
readonly city: string;
|
|
1802
|
+
readonly street1: string;
|
|
1803
|
+
readonly region: string;
|
|
2945
1804
|
readonly postalCode: string;
|
|
2946
|
-
readonly country: string;
|
|
2947
1805
|
readonly street2?: string | null;
|
|
2948
1806
|
} | null;
|
|
2949
1807
|
readonly companyName?: string | null;
|
|
@@ -3011,235 +1869,87 @@ export declare const unpublish: (input: {
|
|
|
3011
1869
|
readonly opens?: boolean | null;
|
|
3012
1870
|
readonly clicks?: boolean | null;
|
|
3013
1871
|
} | null;
|
|
3014
|
-
readonly publishedSource?: string | null;
|
|
3015
1872
|
readonly publishedAt?: string | null;
|
|
3016
1873
|
readonly publishedBy?: string | null;
|
|
3017
|
-
}, import("
|
|
3018
|
-
export declare const
|
|
3019
|
-
readonly
|
|
1874
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1875
|
+
export declare const openDocument: (input: {
|
|
1876
|
+
readonly templateId: string;
|
|
3020
1877
|
}) => import("effect/Effect").Effect<{
|
|
3021
|
-
readonly
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
readonly
|
|
3031
|
-
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
1878
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1879
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1880
|
+
readonly channel: "email";
|
|
1881
|
+
readonly source: string;
|
|
1882
|
+
readonly revision: string;
|
|
1883
|
+
readonly sourceDigest: string;
|
|
1884
|
+
readonly createdAt: string;
|
|
1885
|
+
readonly updatedAt: string;
|
|
1886
|
+
readonly createdBy: {
|
|
1887
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1888
|
+
readonly via: "agent" | "api" | "mcp";
|
|
1889
|
+
};
|
|
1890
|
+
readonly updatedBy: {
|
|
1891
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1892
|
+
readonly via: "agent" | "api" | "mcp";
|
|
1893
|
+
};
|
|
1894
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1895
|
+
export declare const getDocument: (input: {
|
|
1896
|
+
readonly templateId: string;
|
|
3036
1897
|
}) => import("effect/Effect").Effect<{
|
|
3037
|
-
readonly
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
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;
|
|
1898
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1899
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1900
|
+
readonly channel: "email";
|
|
1901
|
+
readonly source: string;
|
|
1902
|
+
readonly revision: string;
|
|
1903
|
+
readonly sourceDigest: string;
|
|
3105
1904
|
readonly createdAt: string;
|
|
3106
1905
|
readonly updatedAt: string;
|
|
3107
|
-
readonly
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
readonly
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
1906
|
+
readonly createdBy: {
|
|
1907
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1908
|
+
readonly via: "agent" | "api" | "mcp";
|
|
1909
|
+
};
|
|
1910
|
+
readonly updatedBy: {
|
|
1911
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1912
|
+
readonly via: "agent" | "api" | "mcp";
|
|
1913
|
+
};
|
|
1914
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1915
|
+
export declare const replaceDocument: (input: {
|
|
1916
|
+
readonly templateId: string;
|
|
1917
|
+
readonly expectedRevision: string;
|
|
1918
|
+
readonly source: string;
|
|
1919
|
+
}) => import("effect/Effect").Effect<{
|
|
1920
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
3116
1921
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
3117
|
-
readonly
|
|
3118
|
-
readonly
|
|
3119
|
-
readonly
|
|
3120
|
-
readonly
|
|
3121
|
-
readonly
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
readonly
|
|
3125
|
-
readonly
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
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: {
|
|
1922
|
+
readonly channel: "email";
|
|
1923
|
+
readonly source: string;
|
|
1924
|
+
readonly revision: string;
|
|
1925
|
+
readonly sourceDigest: string;
|
|
1926
|
+
readonly createdAt: string;
|
|
1927
|
+
readonly updatedAt: string;
|
|
1928
|
+
readonly createdBy: {
|
|
1929
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1930
|
+
readonly via: "agent" | "api" | "mcp";
|
|
1931
|
+
};
|
|
1932
|
+
readonly updatedBy: {
|
|
1933
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1934
|
+
readonly via: "agent" | "api" | "mcp";
|
|
1935
|
+
};
|
|
1936
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1937
|
+
export declare const saveDocument: (input: {
|
|
3241
1938
|
readonly templateId: string;
|
|
3242
|
-
readonly
|
|
1939
|
+
readonly revision: string;
|
|
1940
|
+
}) => import("effect/Effect").Effect<{
|
|
1941
|
+
readonly id: string;
|
|
1942
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1943
|
+
readonly documentRevision: string;
|
|
1944
|
+
readonly sourceDigest: string;
|
|
1945
|
+
readonly compilerVersion: string;
|
|
1946
|
+
readonly createdAt: string;
|
|
1947
|
+
readonly versionId: string;
|
|
1948
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1949
|
+
export declare const renderDocument: (input: {
|
|
1950
|
+
readonly templateId: string;
|
|
1951
|
+
readonly revision: string;
|
|
1952
|
+
readonly variables?: {
|
|
3243
1953
|
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
1954
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
3245
1955
|
} | null)[] | {
|
|
@@ -3266,13 +1976,17 @@ export declare const spamCheck: (input: {
|
|
|
3266
1976
|
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
1977
|
} | null | undefined;
|
|
3268
1978
|
} | null | undefined;
|
|
3269
|
-
}
|
|
3270
|
-
readonly subject: string;
|
|
3271
|
-
readonly html: string;
|
|
1979
|
+
}) => import("effect/Effect").Effect<{
|
|
3272
1980
|
readonly text: string;
|
|
3273
|
-
|
|
1981
|
+
readonly channel: "email";
|
|
1982
|
+
readonly missingVariables: readonly string[];
|
|
1983
|
+
readonly subject?: string | null;
|
|
1984
|
+
readonly html?: string | null;
|
|
1985
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
1986
|
+
export declare const checkDocumentSpam: (input: {
|
|
3274
1987
|
readonly templateId: string;
|
|
3275
|
-
readonly
|
|
1988
|
+
readonly revision: string;
|
|
1989
|
+
readonly variables?: {
|
|
3276
1990
|
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
1991
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
3278
1992
|
} | null)[] | {
|
|
@@ -3299,15 +2013,22 @@ export declare const spamCheck: (input: {
|
|
|
3299
2013
|
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
2014
|
} | null | undefined;
|
|
3301
2015
|
} | null | undefined;
|
|
3302
|
-
|
|
3303
|
-
readonly
|
|
3304
|
-
readonly
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
2016
|
+
}) => import("effect/Effect").Effect<{
|
|
2017
|
+
readonly score: number;
|
|
2018
|
+
readonly severity: "low" | "medium" | "high";
|
|
2019
|
+
readonly issues: readonly {
|
|
2020
|
+
readonly rule: string;
|
|
2021
|
+
readonly description: string;
|
|
2022
|
+
readonly severity: "low" | "medium" | "high";
|
|
2023
|
+
readonly score: number;
|
|
2024
|
+
}[];
|
|
2025
|
+
readonly recommendations: readonly string[];
|
|
2026
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
2027
|
+
export declare const sendDocumentTest: (input: {
|
|
3309
2028
|
readonly templateId: string;
|
|
3310
|
-
readonly
|
|
2029
|
+
readonly to: string;
|
|
2030
|
+
readonly revision: string;
|
|
2031
|
+
readonly variables?: {
|
|
3311
2032
|
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
2033
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
3313
2034
|
} | null)[] | {
|
|
@@ -3335,13 +2056,62 @@ export declare const spamCheck: (input: {
|
|
|
3335
2056
|
} | null | undefined;
|
|
3336
2057
|
} | null | undefined;
|
|
3337
2058
|
}) => import("effect/Effect").Effect<{
|
|
3338
|
-
readonly
|
|
3339
|
-
readonly
|
|
3340
|
-
readonly
|
|
3341
|
-
readonly
|
|
3342
|
-
readonly
|
|
3343
|
-
readonly
|
|
3344
|
-
readonly
|
|
2059
|
+
readonly messageId: string;
|
|
2060
|
+
readonly status: string;
|
|
2061
|
+
readonly rendered: {
|
|
2062
|
+
readonly text: string;
|
|
2063
|
+
readonly channel: "email";
|
|
2064
|
+
readonly missingVariables: readonly string[];
|
|
2065
|
+
readonly subject?: string | null;
|
|
2066
|
+
readonly html?: string | null;
|
|
2067
|
+
};
|
|
2068
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").RateLimitedError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
2069
|
+
export declare const listDocumentVersions: (input: {
|
|
2070
|
+
readonly templateId: string;
|
|
2071
|
+
}) => import("effect/Effect").Effect<{
|
|
2072
|
+
readonly versions: readonly {
|
|
2073
|
+
readonly versionId: string & import("effect/Brand").Brand<"TemplateSourceVersionId">;
|
|
2074
|
+
readonly version: number;
|
|
2075
|
+
readonly status: string;
|
|
2076
|
+
readonly isCurrent: boolean;
|
|
2077
|
+
readonly materializationId: string;
|
|
2078
|
+
readonly documentRevision: string;
|
|
2079
|
+
readonly sourceDigest: string;
|
|
2080
|
+
readonly compilerVersion: string;
|
|
2081
|
+
readonly publishedAt: string | null;
|
|
2082
|
+
readonly archivedAt: string | null;
|
|
2083
|
+
readonly createdAt: string;
|
|
3345
2084
|
}[];
|
|
3346
|
-
|
|
3347
|
-
|
|
2085
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
2086
|
+
export declare const publishDocument: (input: {
|
|
2087
|
+
readonly templateId: string;
|
|
2088
|
+
}) => import("effect/Effect").Effect<{
|
|
2089
|
+
readonly versionId: string;
|
|
2090
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
2091
|
+
export declare const unpublishDocument: (input: {
|
|
2092
|
+
readonly templateId: string;
|
|
2093
|
+
}) => import("effect/Effect").Effect<{
|
|
2094
|
+
readonly versionId: string;
|
|
2095
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
2096
|
+
export declare const restoreDocument: (input: {
|
|
2097
|
+
readonly templateId: string;
|
|
2098
|
+
readonly versionId: string;
|
|
2099
|
+
readonly expectedRevision: string;
|
|
2100
|
+
}) => import("effect/Effect").Effect<{
|
|
2101
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2102
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
2103
|
+
readonly channel: "email";
|
|
2104
|
+
readonly source: string;
|
|
2105
|
+
readonly revision: string;
|
|
2106
|
+
readonly sourceDigest: string;
|
|
2107
|
+
readonly createdAt: string;
|
|
2108
|
+
readonly updatedAt: string;
|
|
2109
|
+
readonly createdBy: {
|
|
2110
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2111
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2112
|
+
};
|
|
2113
|
+
readonly updatedBy: {
|
|
2114
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
2115
|
+
readonly via: "agent" | "api" | "mcp";
|
|
2116
|
+
};
|
|
2117
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|