evo360-types 1.3.578 → 1.3.583
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/evo-chat/channel/zod-schemas.d.ts +273 -0
- package/dist/apps/evo-chat/channel/zod-schemas.js +17 -1
- package/dist/apps/evo-chat/channel/zod-schemas.ts +19 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.d.ts +24 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.js +2 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.ts +2 -0
- package/dist/apps/evo-chat/waba-template/zod-schemas.d.ts +6 -0
- package/dist/apps/evo-chat/waba-template/zod-schemas.js +2 -0
- package/dist/apps/evo-chat/waba-template/zod-schemas.ts +2 -0
- package/dist/apps/evo-med/calendar/zod-schemas.d.ts +3996 -1572
- package/dist/apps/evo-med/calendar/zod-schemas.js +9 -0
- package/dist/apps/evo-med/calendar/zod-schemas.ts +9 -0
- package/dist/apps/evo-notifications/zod-schemas.d.ts +110 -0
- package/dist/apps/evo-notifications/zod-schemas.js +8 -1
- package/dist/apps/evo-notifications/zod-schemas.ts +9 -0
- package/dist/apps/evo-telemedicine/zod-schemas.d.ts +30 -4
- package/dist/apps/evo-telemedicine/zod-schemas.js +25 -2
- package/dist/apps/evo-telemedicine/zod-schemas.ts +25 -0
- package/dist/apps/hub-automation/zod-schemas.d.ts +29 -5
- package/dist/apps/hub-automation/zod-schemas.js +28 -2
- package/dist/apps/hub-automation/zod-schemas.ts +31 -5
- package/dist/types/evo-chat/channel/index.d.ts +19 -0
- package/dist/types/evo-chat/channel/index.ts +24 -0
- package/dist/types/evo-chat/thread-message/index.d.ts +4 -0
- package/dist/types/evo-chat/thread-message/index.ts +4 -0
- package/dist/types/evo-chat/waba-template/index.d.ts +6 -0
- package/dist/types/evo-chat/waba-template/index.js +3 -1
- package/dist/types/evo-chat/waba-template/index.ts +7 -0
- package/dist/types/evo-med/calendar/index.d.ts +26 -1
- package/dist/types/evo-med/calendar/index.ts +27 -1
- package/dist/types/evo-notifications/index.d.ts +11 -0
- package/dist/types/evo-notifications/index.ts +13 -0
- package/dist/types/evo-telemedicine/index.d.ts +168 -0
- package/dist/types/evo-telemedicine/index.js +43 -1
- package/dist/types/evo-telemedicine/index.ts +196 -1
- package/dist/types/hub-automation/index.d.ts +9 -1
- package/dist/types/hub-automation/index.js +8 -1
- package/dist/types/hub-automation/index.ts +15 -0
- package/package.json +1 -1
|
@@ -39,6 +39,87 @@ export declare const zChannelProviderRefSchema: z.ZodObject<{
|
|
|
39
39
|
conversions_dataset_id: z.ZodOptional<z.ZodString>;
|
|
40
40
|
conversions_dataset_source: z.ZodOptional<z.ZodEnum<["manual", "auto"]>>;
|
|
41
41
|
}, z.ZodTypeAny, "passthrough">>;
|
|
42
|
+
export declare const zWabaDirectSendCategorySchema: z.ZodEnum<["utility", "authentication"]>;
|
|
43
|
+
export declare const zChannelDirectSendRestrictionSchema: z.ZodObject<{
|
|
44
|
+
violation_type: z.ZodString;
|
|
45
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
47
|
+
received_at: z.ZodDate;
|
|
48
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
49
|
+
violation_type: z.ZodString;
|
|
50
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
52
|
+
received_at: z.ZodDate;
|
|
53
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
54
|
+
violation_type: z.ZodString;
|
|
55
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
57
|
+
received_at: z.ZodDate;
|
|
58
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
59
|
+
export declare const zChannelDirectSendConfigSchema: z.ZodObject<{
|
|
60
|
+
enabled: z.ZodBoolean;
|
|
61
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
62
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
64
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
violation_type: z.ZodString;
|
|
66
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
68
|
+
received_at: z.ZodDate;
|
|
69
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
70
|
+
violation_type: z.ZodString;
|
|
71
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
73
|
+
received_at: z.ZodDate;
|
|
74
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
75
|
+
violation_type: z.ZodString;
|
|
76
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
78
|
+
received_at: z.ZodDate;
|
|
79
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
80
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
81
|
+
enabled: z.ZodBoolean;
|
|
82
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
83
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
84
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
85
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
86
|
+
violation_type: z.ZodString;
|
|
87
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
89
|
+
received_at: z.ZodDate;
|
|
90
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
91
|
+
violation_type: z.ZodString;
|
|
92
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
94
|
+
received_at: z.ZodDate;
|
|
95
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
96
|
+
violation_type: z.ZodString;
|
|
97
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
99
|
+
received_at: z.ZodDate;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
101
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
102
|
+
enabled: z.ZodBoolean;
|
|
103
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
104
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
105
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
106
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
107
|
+
violation_type: z.ZodString;
|
|
108
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
110
|
+
received_at: z.ZodDate;
|
|
111
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
112
|
+
violation_type: z.ZodString;
|
|
113
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
115
|
+
received_at: z.ZodDate;
|
|
116
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
117
|
+
violation_type: z.ZodString;
|
|
118
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
120
|
+
received_at: z.ZodDate;
|
|
121
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
122
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
42
123
|
export declare const zChannelSchema: z.ZodObject<{
|
|
43
124
|
id: z.ZodString;
|
|
44
125
|
ref: z.ZodAny;
|
|
@@ -96,6 +177,70 @@ export declare const zChannelSchema: z.ZodObject<{
|
|
|
96
177
|
conversions_dataset_source: z.ZodOptional<z.ZodEnum<["manual", "auto"]>>;
|
|
97
178
|
}, z.ZodTypeAny, "passthrough">>;
|
|
98
179
|
hub_ia: z.ZodOptional<z.ZodAny>;
|
|
180
|
+
direct_send: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
enabled: z.ZodBoolean;
|
|
182
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
183
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
184
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
185
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
186
|
+
violation_type: z.ZodString;
|
|
187
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
189
|
+
received_at: z.ZodDate;
|
|
190
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
191
|
+
violation_type: z.ZodString;
|
|
192
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
194
|
+
received_at: z.ZodDate;
|
|
195
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
196
|
+
violation_type: z.ZodString;
|
|
197
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
199
|
+
received_at: z.ZodDate;
|
|
200
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
201
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
202
|
+
enabled: z.ZodBoolean;
|
|
203
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
204
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
205
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
206
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
207
|
+
violation_type: z.ZodString;
|
|
208
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
210
|
+
received_at: z.ZodDate;
|
|
211
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
212
|
+
violation_type: z.ZodString;
|
|
213
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
215
|
+
received_at: z.ZodDate;
|
|
216
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
217
|
+
violation_type: z.ZodString;
|
|
218
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
220
|
+
received_at: z.ZodDate;
|
|
221
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
222
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
223
|
+
enabled: z.ZodBoolean;
|
|
224
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
225
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
226
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
227
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
228
|
+
violation_type: z.ZodString;
|
|
229
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
231
|
+
received_at: z.ZodDate;
|
|
232
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
233
|
+
violation_type: z.ZodString;
|
|
234
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
236
|
+
received_at: z.ZodDate;
|
|
237
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
238
|
+
violation_type: z.ZodString;
|
|
239
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
241
|
+
received_at: z.ZodDate;
|
|
242
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
243
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
99
244
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
100
245
|
id: z.ZodString;
|
|
101
246
|
ref: z.ZodAny;
|
|
@@ -153,6 +298,70 @@ export declare const zChannelSchema: z.ZodObject<{
|
|
|
153
298
|
conversions_dataset_source: z.ZodOptional<z.ZodEnum<["manual", "auto"]>>;
|
|
154
299
|
}, z.ZodTypeAny, "passthrough">>;
|
|
155
300
|
hub_ia: z.ZodOptional<z.ZodAny>;
|
|
301
|
+
direct_send: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
enabled: z.ZodBoolean;
|
|
303
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
304
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
305
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
306
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
307
|
+
violation_type: z.ZodString;
|
|
308
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
310
|
+
received_at: z.ZodDate;
|
|
311
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
312
|
+
violation_type: z.ZodString;
|
|
313
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
315
|
+
received_at: z.ZodDate;
|
|
316
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
317
|
+
violation_type: z.ZodString;
|
|
318
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
320
|
+
received_at: z.ZodDate;
|
|
321
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
322
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
323
|
+
enabled: z.ZodBoolean;
|
|
324
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
325
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
326
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
327
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
328
|
+
violation_type: z.ZodString;
|
|
329
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
331
|
+
received_at: z.ZodDate;
|
|
332
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
333
|
+
violation_type: z.ZodString;
|
|
334
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
336
|
+
received_at: z.ZodDate;
|
|
337
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
338
|
+
violation_type: z.ZodString;
|
|
339
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
341
|
+
received_at: z.ZodDate;
|
|
342
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
343
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
344
|
+
enabled: z.ZodBoolean;
|
|
345
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
346
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
347
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
348
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
349
|
+
violation_type: z.ZodString;
|
|
350
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
352
|
+
received_at: z.ZodDate;
|
|
353
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
354
|
+
violation_type: z.ZodString;
|
|
355
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
357
|
+
received_at: z.ZodDate;
|
|
358
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
359
|
+
violation_type: z.ZodString;
|
|
360
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
362
|
+
received_at: z.ZodDate;
|
|
363
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
364
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
156
365
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
157
366
|
id: z.ZodString;
|
|
158
367
|
ref: z.ZodAny;
|
|
@@ -210,4 +419,68 @@ export declare const zChannelSchema: z.ZodObject<{
|
|
|
210
419
|
conversions_dataset_source: z.ZodOptional<z.ZodEnum<["manual", "auto"]>>;
|
|
211
420
|
}, z.ZodTypeAny, "passthrough">>;
|
|
212
421
|
hub_ia: z.ZodOptional<z.ZodAny>;
|
|
422
|
+
direct_send: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
enabled: z.ZodBoolean;
|
|
424
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
425
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
426
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
427
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
428
|
+
violation_type: z.ZodString;
|
|
429
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
431
|
+
received_at: z.ZodDate;
|
|
432
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
433
|
+
violation_type: z.ZodString;
|
|
434
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
436
|
+
received_at: z.ZodDate;
|
|
437
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
438
|
+
violation_type: z.ZodString;
|
|
439
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
441
|
+
received_at: z.ZodDate;
|
|
442
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
443
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
444
|
+
enabled: z.ZodBoolean;
|
|
445
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
446
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
447
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
448
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
449
|
+
violation_type: z.ZodString;
|
|
450
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
451
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
452
|
+
received_at: z.ZodDate;
|
|
453
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
454
|
+
violation_type: z.ZodString;
|
|
455
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
456
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
457
|
+
received_at: z.ZodDate;
|
|
458
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
459
|
+
violation_type: z.ZodString;
|
|
460
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
462
|
+
received_at: z.ZodDate;
|
|
463
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
464
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
465
|
+
enabled: z.ZodBoolean;
|
|
466
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["utility", "authentication"]>, "many">>;
|
|
467
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
468
|
+
restricted_until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
469
|
+
restriction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
|
+
violation_type: z.ZodString;
|
|
471
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
473
|
+
received_at: z.ZodDate;
|
|
474
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
475
|
+
violation_type: z.ZodString;
|
|
476
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
477
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
478
|
+
received_at: z.ZodDate;
|
|
479
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
480
|
+
violation_type: z.ZodString;
|
|
481
|
+
restriction_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
482
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
483
|
+
received_at: z.ZodDate;
|
|
484
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
485
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
213
486
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zChannelSchema = exports.zChannelProviderRefSchema = void 0;
|
|
3
|
+
exports.zChannelSchema = exports.zChannelDirectSendConfigSchema = exports.zChannelDirectSendRestrictionSchema = exports.zWabaDirectSendCategorySchema = exports.zChannelProviderRefSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
6
|
exports.zChannelProviderRefSchema = zod_1.z.object({
|
|
@@ -19,6 +19,21 @@ exports.zChannelProviderRefSchema = zod_1.z.object({
|
|
|
19
19
|
conversions_dataset_id: zod_1.z.string().optional(),
|
|
20
20
|
conversions_dataset_source: zod_1.z.enum(['manual', 'auto']).optional(),
|
|
21
21
|
}).passthrough();
|
|
22
|
+
// feat-165 — Meta Direct Send (beta)
|
|
23
|
+
exports.zWabaDirectSendCategorySchema = zod_1.z.enum(['utility', 'authentication']);
|
|
24
|
+
exports.zChannelDirectSendRestrictionSchema = zod_1.z.object({
|
|
25
|
+
violation_type: zod_1.z.string(),
|
|
26
|
+
restriction_type: zod_1.z.string().nullable().optional(),
|
|
27
|
+
expiration: zod_1.z.coerce.date().nullable().optional(),
|
|
28
|
+
received_at: zod_1.z.coerce.date(),
|
|
29
|
+
}).passthrough();
|
|
30
|
+
exports.zChannelDirectSendConfigSchema = zod_1.z.object({
|
|
31
|
+
enabled: zod_1.z.boolean(),
|
|
32
|
+
categories: zod_1.z.array(exports.zWabaDirectSendCategorySchema).optional(),
|
|
33
|
+
default_ttl_seconds: zod_1.z.number().int().min(30).nullable().optional(),
|
|
34
|
+
restricted_until: zod_1.z.coerce.date().nullable().optional(),
|
|
35
|
+
restriction: exports.zChannelDirectSendRestrictionSchema.nullable().optional(),
|
|
36
|
+
}).passthrough();
|
|
22
37
|
exports.zChannelSchema = zod_schemas_1.zFireDocSchema
|
|
23
38
|
.extend({
|
|
24
39
|
model_ver: zod_1.z.number().default(1),
|
|
@@ -31,5 +46,6 @@ exports.zChannelSchema = zod_schemas_1.zFireDocSchema
|
|
|
31
46
|
status: zod_1.z.enum(['active', 'paused', 'disabled', 'pending']),
|
|
32
47
|
provider_ref: exports.zChannelProviderRefSchema,
|
|
33
48
|
hub_ia: zod_1.z.any().optional(),
|
|
49
|
+
direct_send: exports.zChannelDirectSendConfigSchema.optional(),
|
|
34
50
|
})
|
|
35
51
|
.passthrough();
|
|
@@ -18,6 +18,24 @@ export const zChannelProviderRefSchema = z.object({
|
|
|
18
18
|
conversions_dataset_source: z.enum(['manual', 'auto']).optional(),
|
|
19
19
|
}).passthrough();
|
|
20
20
|
|
|
21
|
+
// feat-165 — Meta Direct Send (beta)
|
|
22
|
+
export const zWabaDirectSendCategorySchema = z.enum(['utility', 'authentication']);
|
|
23
|
+
|
|
24
|
+
export const zChannelDirectSendRestrictionSchema = z.object({
|
|
25
|
+
violation_type: z.string(),
|
|
26
|
+
restriction_type: z.string().nullable().optional(),
|
|
27
|
+
expiration: z.coerce.date().nullable().optional(),
|
|
28
|
+
received_at: z.coerce.date(),
|
|
29
|
+
}).passthrough();
|
|
30
|
+
|
|
31
|
+
export const zChannelDirectSendConfigSchema = z.object({
|
|
32
|
+
enabled: z.boolean(),
|
|
33
|
+
categories: z.array(zWabaDirectSendCategorySchema).optional(),
|
|
34
|
+
default_ttl_seconds: z.number().int().min(30).nullable().optional(),
|
|
35
|
+
restricted_until: z.coerce.date().nullable().optional(),
|
|
36
|
+
restriction: zChannelDirectSendRestrictionSchema.nullable().optional(),
|
|
37
|
+
}).passthrough();
|
|
38
|
+
|
|
21
39
|
export const zChannelSchema = zFireDocSchema
|
|
22
40
|
.extend({
|
|
23
41
|
model_ver: z.number().default(1),
|
|
@@ -30,5 +48,6 @@ export const zChannelSchema = zFireDocSchema
|
|
|
30
48
|
status: z.enum(['active', 'paused', 'disabled', 'pending']),
|
|
31
49
|
provider_ref: zChannelProviderRefSchema,
|
|
32
50
|
hub_ia: z.any().optional(),
|
|
51
|
+
direct_send: zChannelDirectSendConfigSchema.optional(),
|
|
33
52
|
})
|
|
34
53
|
.passthrough();
|
|
@@ -16,6 +16,7 @@ export declare const zMessageStatusSchema: z.ZodObject<{
|
|
|
16
16
|
}>, "many">>;
|
|
17
17
|
error_code: z.ZodOptional<z.ZodString>;
|
|
18
18
|
error_message: z.ZodOptional<z.ZodString>;
|
|
19
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
20
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
20
21
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
21
22
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -33,6 +34,7 @@ export declare const zMessageStatusSchema: z.ZodObject<{
|
|
|
33
34
|
}>, "many">>;
|
|
34
35
|
error_code: z.ZodOptional<z.ZodString>;
|
|
35
36
|
error_message: z.ZodOptional<z.ZodString>;
|
|
37
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
38
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
37
39
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
38
40
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -50,6 +52,7 @@ export declare const zMessageStatusSchema: z.ZodObject<{
|
|
|
50
52
|
}>, "many">>;
|
|
51
53
|
error_code: z.ZodOptional<z.ZodString>;
|
|
52
54
|
error_message: z.ZodOptional<z.ZodString>;
|
|
55
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
56
|
}, z.ZodTypeAny, "passthrough">>;
|
|
54
57
|
export declare const zMessageMediaSchema: z.ZodObject<{
|
|
55
58
|
gcs_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -95,12 +98,15 @@ export declare const zMessageCreatedBySchema: z.ZodObject<{
|
|
|
95
98
|
export declare const zMessagePricingSchema: z.ZodObject<{
|
|
96
99
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
97
100
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
102
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
99
103
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
100
104
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
106
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
102
107
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
103
108
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
110
|
}, z.ZodTypeAny, "passthrough">>;
|
|
105
111
|
export declare const zThreadMessageSchema: z.ZodObject<{
|
|
106
112
|
id: z.ZodString;
|
|
@@ -222,6 +228,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
222
228
|
}>, "many">>;
|
|
223
229
|
error_code: z.ZodOptional<z.ZodString>;
|
|
224
230
|
error_message: z.ZodOptional<z.ZodString>;
|
|
231
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
232
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
226
233
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
227
234
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -239,6 +246,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
239
246
|
}>, "many">>;
|
|
240
247
|
error_code: z.ZodOptional<z.ZodString>;
|
|
241
248
|
error_message: z.ZodOptional<z.ZodString>;
|
|
249
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
250
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
243
251
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
244
252
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -256,6 +264,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
256
264
|
}>, "many">>;
|
|
257
265
|
error_code: z.ZodOptional<z.ZodString>;
|
|
258
266
|
error_message: z.ZodOptional<z.ZodString>;
|
|
267
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
268
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
260
269
|
reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
261
270
|
created_by: z.ZodOptional<z.ZodObject<{
|
|
@@ -274,12 +283,15 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
274
283
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
275
284
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
276
285
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
287
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
278
288
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
279
289
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
291
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
281
292
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
282
293
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
295
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
284
296
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
285
297
|
id: z.ZodString;
|
|
@@ -401,6 +413,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
401
413
|
}>, "many">>;
|
|
402
414
|
error_code: z.ZodOptional<z.ZodString>;
|
|
403
415
|
error_message: z.ZodOptional<z.ZodString>;
|
|
416
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
417
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
405
418
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
406
419
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -418,6 +431,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
418
431
|
}>, "many">>;
|
|
419
432
|
error_code: z.ZodOptional<z.ZodString>;
|
|
420
433
|
error_message: z.ZodOptional<z.ZodString>;
|
|
434
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
435
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
422
436
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
423
437
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -435,6 +449,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
435
449
|
}>, "many">>;
|
|
436
450
|
error_code: z.ZodOptional<z.ZodString>;
|
|
437
451
|
error_message: z.ZodOptional<z.ZodString>;
|
|
452
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
453
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
439
454
|
reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
440
455
|
created_by: z.ZodOptional<z.ZodObject<{
|
|
@@ -453,12 +468,15 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
453
468
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
454
469
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
455
470
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
456
472
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
457
473
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
458
474
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
475
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
476
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
460
477
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
461
478
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
479
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
480
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
463
481
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
464
482
|
id: z.ZodString;
|
|
@@ -580,6 +598,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
580
598
|
}>, "many">>;
|
|
581
599
|
error_code: z.ZodOptional<z.ZodString>;
|
|
582
600
|
error_message: z.ZodOptional<z.ZodString>;
|
|
601
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
583
602
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
584
603
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
585
604
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -597,6 +616,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
597
616
|
}>, "many">>;
|
|
598
617
|
error_code: z.ZodOptional<z.ZodString>;
|
|
599
618
|
error_message: z.ZodOptional<z.ZodString>;
|
|
619
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
600
620
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
601
621
|
sent_at: z.ZodOptional<z.ZodDate>;
|
|
602
622
|
delivered_at: z.ZodOptional<z.ZodDate>;
|
|
@@ -614,6 +634,7 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
614
634
|
}>, "many">>;
|
|
615
635
|
error_code: z.ZodOptional<z.ZodString>;
|
|
616
636
|
error_message: z.ZodOptional<z.ZodString>;
|
|
637
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
617
638
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
618
639
|
reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
619
640
|
created_by: z.ZodOptional<z.ZodObject<{
|
|
@@ -632,11 +653,14 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
632
653
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
633
654
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
634
655
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
635
657
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
636
658
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
637
659
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
660
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
661
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
639
662
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
640
663
|
billable: z.ZodOptional<z.ZodBoolean>;
|
|
664
|
+
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
665
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
642
666
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -11,6 +11,7 @@ exports.zMessageStatusSchema = zod_1.z.object({
|
|
|
11
11
|
errors: zod_1.z.array(zod_1.z.object({ code: zod_1.z.number(), title: zod_1.z.string() })).optional(),
|
|
12
12
|
error_code: zod_1.z.string().optional(),
|
|
13
13
|
error_message: zod_1.z.string().optional(),
|
|
14
|
+
template_id: zod_1.z.string().nullable().optional(),
|
|
14
15
|
}).passthrough();
|
|
15
16
|
exports.zMessageMediaSchema = zod_1.z.object({
|
|
16
17
|
gcs_uri: zod_1.z.string().optional(),
|
|
@@ -30,6 +31,7 @@ exports.zMessageCreatedBySchema = zod_1.z.object({
|
|
|
30
31
|
exports.zMessagePricingSchema = zod_1.z.object({
|
|
31
32
|
category: zod_1.z.enum(['service', 'utility', 'authentication', 'marketing']).optional(),
|
|
32
33
|
billable: zod_1.z.boolean().optional(),
|
|
34
|
+
pricing_model: zod_1.z.string().nullable().optional(),
|
|
33
35
|
}).passthrough();
|
|
34
36
|
exports.zThreadMessageSchema = zod_schemas_1.zFireDocSchema
|
|
35
37
|
.extend({
|
|
@@ -9,6 +9,7 @@ export const zMessageStatusSchema = z.object({
|
|
|
9
9
|
errors: z.array(z.object({ code: z.number(), title: z.string() })).optional(),
|
|
10
10
|
error_code: z.string().optional(),
|
|
11
11
|
error_message: z.string().optional(),
|
|
12
|
+
template_id: z.string().nullable().optional(),
|
|
12
13
|
}).passthrough();
|
|
13
14
|
|
|
14
15
|
export const zMessageMediaSchema = z.object({
|
|
@@ -31,6 +32,7 @@ export const zMessageCreatedBySchema = z.object({
|
|
|
31
32
|
export const zMessagePricingSchema = z.object({
|
|
32
33
|
category: z.enum(['service', 'utility', 'authentication', 'marketing']).optional(),
|
|
33
34
|
billable: z.boolean().optional(),
|
|
35
|
+
pricing_model: z.string().nullable().optional(),
|
|
34
36
|
}).passthrough();
|
|
35
37
|
|
|
36
38
|
export const zThreadMessageSchema = zFireDocSchema
|
|
@@ -465,6 +465,8 @@ export declare const zWabaTemplateSchema: z.ZodObject<{
|
|
|
465
465
|
meta_id: z.ZodString;
|
|
466
466
|
name: z.ZodString;
|
|
467
467
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
468
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
correct_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
468
470
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
469
471
|
id: z.ZodString;
|
|
470
472
|
ref: z.ZodAny;
|
|
@@ -703,6 +705,8 @@ export declare const zWabaTemplateSchema: z.ZodObject<{
|
|
|
703
705
|
meta_id: z.ZodString;
|
|
704
706
|
name: z.ZodString;
|
|
705
707
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
708
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
709
|
+
correct_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
706
710
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
707
711
|
id: z.ZodString;
|
|
708
712
|
ref: z.ZodAny;
|
|
@@ -941,6 +945,8 @@ export declare const zWabaTemplateSchema: z.ZodObject<{
|
|
|
941
945
|
meta_id: z.ZodString;
|
|
942
946
|
name: z.ZodString;
|
|
943
947
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
948
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
|
+
correct_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
944
950
|
}, z.ZodTypeAny, "passthrough">>;
|
|
945
951
|
export declare const zWabaTemplateCreateRequestSchema: z.ZodObject<{
|
|
946
952
|
name: z.ZodString;
|
|
@@ -44,6 +44,8 @@ exports.zWabaTemplateSchema = zod_schemas_1.zFireDocSchema
|
|
|
44
44
|
synced_at: zod_1.z.coerce.date().nullable().optional(),
|
|
45
45
|
is_draft: zod_1.z.boolean(),
|
|
46
46
|
draft_source: exports.zWabaTemplateDraftSourceSchema.optional(),
|
|
47
|
+
source: zod_1.z.string().nullable().optional(),
|
|
48
|
+
correct_category: zod_1.z.string().nullable().optional(),
|
|
47
49
|
})
|
|
48
50
|
.passthrough();
|
|
49
51
|
exports.zWabaTemplateCreateRequestSchema = zod_1.z.object({
|
|
@@ -45,6 +45,8 @@ export const zWabaTemplateSchema = zFireDocSchema
|
|
|
45
45
|
synced_at: z.coerce.date().nullable().optional(),
|
|
46
46
|
is_draft: z.boolean(),
|
|
47
47
|
draft_source: zWabaTemplateDraftSourceSchema.optional(),
|
|
48
|
+
source: z.string().nullable().optional(),
|
|
49
|
+
correct_category: z.string().nullable().optional(),
|
|
48
50
|
})
|
|
49
51
|
.passthrough();
|
|
50
52
|
|