shred-api-client 2.3.5-rc.4 → 2.3.5-rc.6
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/index.d.ts +1548 -126
- package/dist/index.js +4287 -252
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
2
|
|
|
3
3
|
type Environment = "prod" | "staging" | "local";
|
|
4
4
|
|
|
@@ -6,9 +6,21 @@ declare const ScriptSchema: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
title: z.ZodString;
|
|
8
8
|
content: z.ZodString;
|
|
9
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
10
|
userId: z.ZodOptional<z.ZodString>;
|
|
11
|
-
}, z.
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
content: string;
|
|
15
|
+
userId?: string | undefined;
|
|
16
|
+
tags?: string[] | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
content: string;
|
|
21
|
+
userId?: string | undefined;
|
|
22
|
+
tags?: string[] | undefined;
|
|
23
|
+
}>;
|
|
12
24
|
declare const CategorySchema: z.ZodObject<{
|
|
13
25
|
id: z.ZodString;
|
|
14
26
|
title: z.ZodString;
|
|
@@ -19,10 +31,48 @@ declare const CategorySchema: z.ZodObject<{
|
|
|
19
31
|
id: z.ZodString;
|
|
20
32
|
title: z.ZodString;
|
|
21
33
|
content: z.ZodString;
|
|
22
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23
35
|
userId: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.
|
|
25
|
-
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
id: string;
|
|
38
|
+
title: string;
|
|
39
|
+
content: string;
|
|
40
|
+
userId?: string | undefined;
|
|
41
|
+
tags?: string[] | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
content: string;
|
|
46
|
+
userId?: string | undefined;
|
|
47
|
+
tags?: string[] | undefined;
|
|
48
|
+
}>, "many">;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
active: boolean;
|
|
51
|
+
id: string;
|
|
52
|
+
title: string;
|
|
53
|
+
pictureUrl: string;
|
|
54
|
+
backgroundColor: string;
|
|
55
|
+
scripts: {
|
|
56
|
+
id: string;
|
|
57
|
+
title: string;
|
|
58
|
+
content: string;
|
|
59
|
+
userId?: string | undefined;
|
|
60
|
+
tags?: string[] | undefined;
|
|
61
|
+
}[];
|
|
62
|
+
}, {
|
|
63
|
+
active: boolean;
|
|
64
|
+
id: string;
|
|
65
|
+
title: string;
|
|
66
|
+
pictureUrl: string;
|
|
67
|
+
backgroundColor: string;
|
|
68
|
+
scripts: {
|
|
69
|
+
id: string;
|
|
70
|
+
title: string;
|
|
71
|
+
content: string;
|
|
72
|
+
userId?: string | undefined;
|
|
73
|
+
tags?: string[] | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
}>;
|
|
26
76
|
declare const PromptSchema: z.ZodObject<{
|
|
27
77
|
id: z.ZodString;
|
|
28
78
|
tenantId: z.ZodString;
|
|
@@ -36,11 +86,83 @@ declare const PromptSchema: z.ZodObject<{
|
|
|
36
86
|
id: z.ZodString;
|
|
37
87
|
title: z.ZodString;
|
|
38
88
|
content: z.ZodString;
|
|
39
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40
90
|
userId: z.ZodOptional<z.ZodString>;
|
|
41
|
-
}, z.
|
|
42
|
-
|
|
43
|
-
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
id: string;
|
|
93
|
+
title: string;
|
|
94
|
+
content: string;
|
|
95
|
+
userId?: string | undefined;
|
|
96
|
+
tags?: string[] | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
id: string;
|
|
99
|
+
title: string;
|
|
100
|
+
content: string;
|
|
101
|
+
userId?: string | undefined;
|
|
102
|
+
tags?: string[] | undefined;
|
|
103
|
+
}>, "many">;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
active: boolean;
|
|
106
|
+
id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
pictureUrl: string;
|
|
109
|
+
backgroundColor: string;
|
|
110
|
+
scripts: {
|
|
111
|
+
id: string;
|
|
112
|
+
title: string;
|
|
113
|
+
content: string;
|
|
114
|
+
userId?: string | undefined;
|
|
115
|
+
tags?: string[] | undefined;
|
|
116
|
+
}[];
|
|
117
|
+
}, {
|
|
118
|
+
active: boolean;
|
|
119
|
+
id: string;
|
|
120
|
+
title: string;
|
|
121
|
+
pictureUrl: string;
|
|
122
|
+
backgroundColor: string;
|
|
123
|
+
scripts: {
|
|
124
|
+
id: string;
|
|
125
|
+
title: string;
|
|
126
|
+
content: string;
|
|
127
|
+
userId?: string | undefined;
|
|
128
|
+
tags?: string[] | undefined;
|
|
129
|
+
}[];
|
|
130
|
+
}>, "many">;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
id: string;
|
|
133
|
+
tenantId: string;
|
|
134
|
+
categories: {
|
|
135
|
+
active: boolean;
|
|
136
|
+
id: string;
|
|
137
|
+
title: string;
|
|
138
|
+
pictureUrl: string;
|
|
139
|
+
backgroundColor: string;
|
|
140
|
+
scripts: {
|
|
141
|
+
id: string;
|
|
142
|
+
title: string;
|
|
143
|
+
content: string;
|
|
144
|
+
userId?: string | undefined;
|
|
145
|
+
tags?: string[] | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
}[];
|
|
148
|
+
}, {
|
|
149
|
+
id: string;
|
|
150
|
+
tenantId: string;
|
|
151
|
+
categories: {
|
|
152
|
+
active: boolean;
|
|
153
|
+
id: string;
|
|
154
|
+
title: string;
|
|
155
|
+
pictureUrl: string;
|
|
156
|
+
backgroundColor: string;
|
|
157
|
+
scripts: {
|
|
158
|
+
id: string;
|
|
159
|
+
title: string;
|
|
160
|
+
content: string;
|
|
161
|
+
userId?: string | undefined;
|
|
162
|
+
tags?: string[] | undefined;
|
|
163
|
+
}[];
|
|
164
|
+
}[];
|
|
165
|
+
}>;
|
|
44
166
|
type Script = z.infer<typeof ScriptSchema>;
|
|
45
167
|
type Category = z.infer<typeof CategorySchema>;
|
|
46
168
|
type Prompt = z.infer<typeof PromptSchema>;
|
|
@@ -93,7 +215,7 @@ declare enum Type {
|
|
|
93
215
|
CUSTOMER_SUBSCRIPTION = 0,
|
|
94
216
|
TENANT_SUBSCRIPTION = 1
|
|
95
217
|
}
|
|
96
|
-
declare const SubscriptionTypeSchema: z.
|
|
218
|
+
declare const SubscriptionTypeSchema: z.ZodNativeEnum<typeof Type>;
|
|
97
219
|
declare const PlanSchema: z.ZodObject<{
|
|
98
220
|
id: z.ZodString;
|
|
99
221
|
currency: z.ZodString;
|
|
@@ -101,14 +223,34 @@ declare const PlanSchema: z.ZodObject<{
|
|
|
101
223
|
interval: z.ZodString;
|
|
102
224
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
103
225
|
subscriptionItemId: z.ZodString;
|
|
104
|
-
}, z.
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
id: string;
|
|
228
|
+
metadata: Record<string, string>;
|
|
229
|
+
interval: string;
|
|
230
|
+
price: number;
|
|
231
|
+
currency: string;
|
|
232
|
+
subscriptionItemId: string;
|
|
233
|
+
}, {
|
|
234
|
+
id: string;
|
|
235
|
+
metadata: Record<string, string>;
|
|
236
|
+
interval: string;
|
|
237
|
+
price: number;
|
|
238
|
+
currency: string;
|
|
239
|
+
subscriptionItemId: string;
|
|
240
|
+
}>;
|
|
105
241
|
declare const ProductSchema: z.ZodObject<{
|
|
106
242
|
id: z.ZodString;
|
|
107
243
|
name: z.ZodString;
|
|
108
244
|
descriptions: z.ZodArray<z.ZodObject<{
|
|
109
245
|
description: z.ZodString;
|
|
110
246
|
subtitle: z.ZodString;
|
|
111
|
-
}, z.
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
description: string;
|
|
249
|
+
subtitle: string;
|
|
250
|
+
}, {
|
|
251
|
+
description: string;
|
|
252
|
+
subtitle: string;
|
|
253
|
+
}>, "many">;
|
|
112
254
|
metadata: z.ZodAny;
|
|
113
255
|
plans: z.ZodArray<z.ZodObject<{
|
|
114
256
|
id: z.ZodString;
|
|
@@ -117,9 +259,57 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
117
259
|
interval: z.ZodString;
|
|
118
260
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
119
261
|
subscriptionItemId: z.ZodString;
|
|
120
|
-
}, z.
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
id: string;
|
|
264
|
+
metadata: Record<string, string>;
|
|
265
|
+
interval: string;
|
|
266
|
+
price: number;
|
|
267
|
+
currency: string;
|
|
268
|
+
subscriptionItemId: string;
|
|
269
|
+
}, {
|
|
270
|
+
id: string;
|
|
271
|
+
metadata: Record<string, string>;
|
|
272
|
+
interval: string;
|
|
273
|
+
price: number;
|
|
274
|
+
currency: string;
|
|
275
|
+
subscriptionItemId: string;
|
|
276
|
+
}>, "many">;
|
|
121
277
|
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
122
|
-
}, z.
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
id: string;
|
|
280
|
+
name: string;
|
|
281
|
+
descriptions: {
|
|
282
|
+
description: string;
|
|
283
|
+
subtitle: string;
|
|
284
|
+
}[];
|
|
285
|
+
plans: {
|
|
286
|
+
id: string;
|
|
287
|
+
metadata: Record<string, string>;
|
|
288
|
+
interval: string;
|
|
289
|
+
price: number;
|
|
290
|
+
currency: string;
|
|
291
|
+
subscriptionItemId: string;
|
|
292
|
+
}[];
|
|
293
|
+
percentOff: number;
|
|
294
|
+
metadata?: any;
|
|
295
|
+
}, {
|
|
296
|
+
id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
descriptions: {
|
|
299
|
+
description: string;
|
|
300
|
+
subtitle: string;
|
|
301
|
+
}[];
|
|
302
|
+
plans: {
|
|
303
|
+
id: string;
|
|
304
|
+
metadata: Record<string, string>;
|
|
305
|
+
interval: string;
|
|
306
|
+
price: number;
|
|
307
|
+
currency: string;
|
|
308
|
+
subscriptionItemId: string;
|
|
309
|
+
}[];
|
|
310
|
+
metadata?: any;
|
|
311
|
+
percentOff?: number | undefined;
|
|
312
|
+
}>;
|
|
123
313
|
declare const ChargeSchema: z.ZodObject<{
|
|
124
314
|
id: z.ZodNumber;
|
|
125
315
|
created: z.ZodNumber;
|
|
@@ -130,7 +320,27 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
130
320
|
paymentType: z.ZodString;
|
|
131
321
|
last4: z.ZodOptional<z.ZodString>;
|
|
132
322
|
brand: z.ZodOptional<z.ZodString>;
|
|
133
|
-
}, z.
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
id: number;
|
|
325
|
+
status: string;
|
|
326
|
+
created: number;
|
|
327
|
+
paid: boolean;
|
|
328
|
+
receiptUrl: string;
|
|
329
|
+
price: string;
|
|
330
|
+
paymentType: string;
|
|
331
|
+
last4?: string | undefined;
|
|
332
|
+
brand?: string | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
id: number;
|
|
335
|
+
status: string;
|
|
336
|
+
created: number;
|
|
337
|
+
paid: boolean;
|
|
338
|
+
receiptUrl: string;
|
|
339
|
+
price: string;
|
|
340
|
+
paymentType: string;
|
|
341
|
+
last4?: string | undefined;
|
|
342
|
+
brand?: string | undefined;
|
|
343
|
+
}>;
|
|
134
344
|
declare const SubscriptionSchema: z.ZodObject<{
|
|
135
345
|
id: z.ZodString;
|
|
136
346
|
status: z.ZodString;
|
|
@@ -146,7 +356,13 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
146
356
|
descriptions: z.ZodArray<z.ZodObject<{
|
|
147
357
|
description: z.ZodString;
|
|
148
358
|
subtitle: z.ZodString;
|
|
149
|
-
}, z.
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
description: string;
|
|
361
|
+
subtitle: string;
|
|
362
|
+
}, {
|
|
363
|
+
description: string;
|
|
364
|
+
subtitle: string;
|
|
365
|
+
}>, "many">;
|
|
150
366
|
metadata: z.ZodAny;
|
|
151
367
|
plans: z.ZodArray<z.ZodObject<{
|
|
152
368
|
id: z.ZodString;
|
|
@@ -155,10 +371,58 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
155
371
|
interval: z.ZodString;
|
|
156
372
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
157
373
|
subscriptionItemId: z.ZodString;
|
|
158
|
-
}, z.
|
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
id: string;
|
|
376
|
+
metadata: Record<string, string>;
|
|
377
|
+
interval: string;
|
|
378
|
+
price: number;
|
|
379
|
+
currency: string;
|
|
380
|
+
subscriptionItemId: string;
|
|
381
|
+
}, {
|
|
382
|
+
id: string;
|
|
383
|
+
metadata: Record<string, string>;
|
|
384
|
+
interval: string;
|
|
385
|
+
price: number;
|
|
386
|
+
currency: string;
|
|
387
|
+
subscriptionItemId: string;
|
|
388
|
+
}>, "many">;
|
|
159
389
|
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
160
|
-
}, z.
|
|
161
|
-
|
|
390
|
+
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
id: string;
|
|
392
|
+
name: string;
|
|
393
|
+
descriptions: {
|
|
394
|
+
description: string;
|
|
395
|
+
subtitle: string;
|
|
396
|
+
}[];
|
|
397
|
+
plans: {
|
|
398
|
+
id: string;
|
|
399
|
+
metadata: Record<string, string>;
|
|
400
|
+
interval: string;
|
|
401
|
+
price: number;
|
|
402
|
+
currency: string;
|
|
403
|
+
subscriptionItemId: string;
|
|
404
|
+
}[];
|
|
405
|
+
percentOff: number;
|
|
406
|
+
metadata?: any;
|
|
407
|
+
}, {
|
|
408
|
+
id: string;
|
|
409
|
+
name: string;
|
|
410
|
+
descriptions: {
|
|
411
|
+
description: string;
|
|
412
|
+
subtitle: string;
|
|
413
|
+
}[];
|
|
414
|
+
plans: {
|
|
415
|
+
id: string;
|
|
416
|
+
metadata: Record<string, string>;
|
|
417
|
+
interval: string;
|
|
418
|
+
price: number;
|
|
419
|
+
currency: string;
|
|
420
|
+
subscriptionItemId: string;
|
|
421
|
+
}[];
|
|
422
|
+
metadata?: any;
|
|
423
|
+
percentOff?: number | undefined;
|
|
424
|
+
}>;
|
|
425
|
+
type: z.ZodOptional<z.ZodNativeEnum<typeof Type>>;
|
|
162
426
|
plan: z.ZodOptional<z.ZodObject<{
|
|
163
427
|
id: z.ZodString;
|
|
164
428
|
currency: z.ZodString;
|
|
@@ -166,8 +430,94 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
166
430
|
interval: z.ZodString;
|
|
167
431
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
168
432
|
subscriptionItemId: z.ZodString;
|
|
169
|
-
}, z.
|
|
170
|
-
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
434
|
+
id: string;
|
|
435
|
+
metadata: Record<string, string>;
|
|
436
|
+
interval: string;
|
|
437
|
+
price: number;
|
|
438
|
+
currency: string;
|
|
439
|
+
subscriptionItemId: string;
|
|
440
|
+
}, {
|
|
441
|
+
id: string;
|
|
442
|
+
metadata: Record<string, string>;
|
|
443
|
+
interval: string;
|
|
444
|
+
price: number;
|
|
445
|
+
currency: string;
|
|
446
|
+
subscriptionItemId: string;
|
|
447
|
+
}>>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
id: string;
|
|
450
|
+
status: string;
|
|
451
|
+
product: {
|
|
452
|
+
id: string;
|
|
453
|
+
name: string;
|
|
454
|
+
descriptions: {
|
|
455
|
+
description: string;
|
|
456
|
+
subtitle: string;
|
|
457
|
+
}[];
|
|
458
|
+
plans: {
|
|
459
|
+
id: string;
|
|
460
|
+
metadata: Record<string, string>;
|
|
461
|
+
interval: string;
|
|
462
|
+
price: number;
|
|
463
|
+
currency: string;
|
|
464
|
+
subscriptionItemId: string;
|
|
465
|
+
}[];
|
|
466
|
+
percentOff: number;
|
|
467
|
+
metadata?: any;
|
|
468
|
+
};
|
|
469
|
+
type?: Type | undefined;
|
|
470
|
+
startDate?: number | undefined;
|
|
471
|
+
daysUntilDue?: number | undefined;
|
|
472
|
+
renewAutomatically?: boolean | undefined;
|
|
473
|
+
currentPeriodStart?: number | undefined;
|
|
474
|
+
currentPeriodEnd?: number | undefined;
|
|
475
|
+
paymentMethodId?: string | undefined;
|
|
476
|
+
plan?: {
|
|
477
|
+
id: string;
|
|
478
|
+
metadata: Record<string, string>;
|
|
479
|
+
interval: string;
|
|
480
|
+
price: number;
|
|
481
|
+
currency: string;
|
|
482
|
+
subscriptionItemId: string;
|
|
483
|
+
} | undefined;
|
|
484
|
+
}, {
|
|
485
|
+
id: string;
|
|
486
|
+
status: string;
|
|
487
|
+
product: {
|
|
488
|
+
id: string;
|
|
489
|
+
name: string;
|
|
490
|
+
descriptions: {
|
|
491
|
+
description: string;
|
|
492
|
+
subtitle: string;
|
|
493
|
+
}[];
|
|
494
|
+
plans: {
|
|
495
|
+
id: string;
|
|
496
|
+
metadata: Record<string, string>;
|
|
497
|
+
interval: string;
|
|
498
|
+
price: number;
|
|
499
|
+
currency: string;
|
|
500
|
+
subscriptionItemId: string;
|
|
501
|
+
}[];
|
|
502
|
+
metadata?: any;
|
|
503
|
+
percentOff?: number | undefined;
|
|
504
|
+
};
|
|
505
|
+
type?: Type | undefined;
|
|
506
|
+
startDate?: number | undefined;
|
|
507
|
+
daysUntilDue?: number | undefined;
|
|
508
|
+
renewAutomatically?: boolean | undefined;
|
|
509
|
+
currentPeriodStart?: number | undefined;
|
|
510
|
+
currentPeriodEnd?: number | undefined;
|
|
511
|
+
paymentMethodId?: string | undefined;
|
|
512
|
+
plan?: {
|
|
513
|
+
id: string;
|
|
514
|
+
metadata: Record<string, string>;
|
|
515
|
+
interval: string;
|
|
516
|
+
price: number;
|
|
517
|
+
currency: string;
|
|
518
|
+
subscriptionItemId: string;
|
|
519
|
+
} | undefined;
|
|
520
|
+
}>;
|
|
171
521
|
type Subscription = z.infer<typeof SubscriptionSchema>;
|
|
172
522
|
type Charge = z.infer<typeof ChargeSchema>;
|
|
173
523
|
type Plan = z.infer<typeof PlanSchema>;
|
|
@@ -269,10 +619,28 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
269
619
|
facebookLink: z.ZodOptional<z.ZodString>;
|
|
270
620
|
isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
271
621
|
instagramLink: z.ZodOptional<z.ZodString>;
|
|
272
|
-
industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
622
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
273
623
|
bRoll: z.ZodOptional<z.ZodBoolean>;
|
|
274
624
|
logo: z.ZodOptional<z.ZodString>;
|
|
275
|
-
}, z.
|
|
625
|
+
}, "strip", z.ZodTypeAny, {
|
|
626
|
+
primaryColor?: string | undefined;
|
|
627
|
+
secondaryColor?: string | undefined;
|
|
628
|
+
facebookLink?: string | undefined;
|
|
629
|
+
isFeedbackEnabled?: boolean | undefined;
|
|
630
|
+
instagramLink?: string | undefined;
|
|
631
|
+
industries?: string[] | undefined;
|
|
632
|
+
bRoll?: boolean | undefined;
|
|
633
|
+
logo?: string | undefined;
|
|
634
|
+
}, {
|
|
635
|
+
primaryColor?: string | undefined;
|
|
636
|
+
secondaryColor?: string | undefined;
|
|
637
|
+
facebookLink?: string | undefined;
|
|
638
|
+
isFeedbackEnabled?: boolean | undefined;
|
|
639
|
+
instagramLink?: string | undefined;
|
|
640
|
+
industries?: string[] | undefined;
|
|
641
|
+
bRoll?: boolean | undefined;
|
|
642
|
+
logo?: string | undefined;
|
|
643
|
+
}>;
|
|
276
644
|
declare const UserSchema: z.ZodObject<{
|
|
277
645
|
id: z.ZodString;
|
|
278
646
|
name: z.ZodString;
|
|
@@ -286,17 +654,81 @@ declare const UserSchema: z.ZodObject<{
|
|
|
286
654
|
facebookLink: z.ZodOptional<z.ZodString>;
|
|
287
655
|
isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
288
656
|
instagramLink: z.ZodOptional<z.ZodString>;
|
|
289
|
-
industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
657
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
290
658
|
bRoll: z.ZodOptional<z.ZodBoolean>;
|
|
291
659
|
logo: z.ZodOptional<z.ZodString>;
|
|
292
|
-
}, z.
|
|
660
|
+
}, "strip", z.ZodTypeAny, {
|
|
661
|
+
primaryColor?: string | undefined;
|
|
662
|
+
secondaryColor?: string | undefined;
|
|
663
|
+
facebookLink?: string | undefined;
|
|
664
|
+
isFeedbackEnabled?: boolean | undefined;
|
|
665
|
+
instagramLink?: string | undefined;
|
|
666
|
+
industries?: string[] | undefined;
|
|
667
|
+
bRoll?: boolean | undefined;
|
|
668
|
+
logo?: string | undefined;
|
|
669
|
+
}, {
|
|
670
|
+
primaryColor?: string | undefined;
|
|
671
|
+
secondaryColor?: string | undefined;
|
|
672
|
+
facebookLink?: string | undefined;
|
|
673
|
+
isFeedbackEnabled?: boolean | undefined;
|
|
674
|
+
instagramLink?: string | undefined;
|
|
675
|
+
industries?: string[] | undefined;
|
|
676
|
+
bRoll?: boolean | undefined;
|
|
677
|
+
logo?: string | undefined;
|
|
678
|
+
}>>;
|
|
293
679
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
294
680
|
editorId: z.ZodOptional<z.ZodString>;
|
|
295
681
|
timezone: z.ZodOptional<z.ZodString>;
|
|
296
682
|
experienceId: z.ZodOptional<z.ZodString>;
|
|
297
683
|
customerId: z.ZodString;
|
|
298
|
-
role: z.
|
|
299
|
-
}, z.
|
|
684
|
+
role: z.ZodNativeEnum<typeof Role>;
|
|
685
|
+
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
email: string;
|
|
687
|
+
id: string;
|
|
688
|
+
name: string;
|
|
689
|
+
customerId: string;
|
|
690
|
+
role: Role;
|
|
691
|
+
timezone?: string | undefined;
|
|
692
|
+
tenantId?: string | undefined;
|
|
693
|
+
preferences?: {
|
|
694
|
+
primaryColor?: string | undefined;
|
|
695
|
+
secondaryColor?: string | undefined;
|
|
696
|
+
facebookLink?: string | undefined;
|
|
697
|
+
isFeedbackEnabled?: boolean | undefined;
|
|
698
|
+
instagramLink?: string | undefined;
|
|
699
|
+
industries?: string[] | undefined;
|
|
700
|
+
bRoll?: boolean | undefined;
|
|
701
|
+
logo?: string | undefined;
|
|
702
|
+
} | undefined;
|
|
703
|
+
fcmToken?: string | undefined;
|
|
704
|
+
profession?: string | undefined;
|
|
705
|
+
photoUrl?: string | undefined;
|
|
706
|
+
editorId?: string | undefined;
|
|
707
|
+
experienceId?: string | undefined;
|
|
708
|
+
}, {
|
|
709
|
+
email: string;
|
|
710
|
+
id: string;
|
|
711
|
+
name: string;
|
|
712
|
+
customerId: string;
|
|
713
|
+
role: Role;
|
|
714
|
+
timezone?: string | undefined;
|
|
715
|
+
tenantId?: string | undefined;
|
|
716
|
+
preferences?: {
|
|
717
|
+
primaryColor?: string | undefined;
|
|
718
|
+
secondaryColor?: string | undefined;
|
|
719
|
+
facebookLink?: string | undefined;
|
|
720
|
+
isFeedbackEnabled?: boolean | undefined;
|
|
721
|
+
instagramLink?: string | undefined;
|
|
722
|
+
industries?: string[] | undefined;
|
|
723
|
+
bRoll?: boolean | undefined;
|
|
724
|
+
logo?: string | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
fcmToken?: string | undefined;
|
|
727
|
+
profession?: string | undefined;
|
|
728
|
+
photoUrl?: string | undefined;
|
|
729
|
+
editorId?: string | undefined;
|
|
730
|
+
experienceId?: string | undefined;
|
|
731
|
+
}>;
|
|
300
732
|
type User = z.infer<typeof UserSchema>;
|
|
301
733
|
type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
|
|
302
734
|
type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
|
|
@@ -440,7 +872,19 @@ declare const PreferencesSchema: z.ZodObject<{
|
|
|
440
872
|
primaryColor: z.ZodString;
|
|
441
873
|
secondaryColor: z.ZodString;
|
|
442
874
|
guidelinesUrl: z.ZodOptional<z.ZodString>;
|
|
443
|
-
}, z.
|
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
|
+
iconUrl: string;
|
|
877
|
+
logoUrl: string;
|
|
878
|
+
primaryColor: string;
|
|
879
|
+
secondaryColor: string;
|
|
880
|
+
guidelinesUrl?: string | undefined;
|
|
881
|
+
}, {
|
|
882
|
+
iconUrl: string;
|
|
883
|
+
logoUrl: string;
|
|
884
|
+
primaryColor: string;
|
|
885
|
+
secondaryColor: string;
|
|
886
|
+
guidelinesUrl?: string | undefined;
|
|
887
|
+
}>;
|
|
444
888
|
declare const TenantSchema: z.ZodObject<{
|
|
445
889
|
id: z.ZodString;
|
|
446
890
|
name: z.ZodString;
|
|
@@ -452,7 +896,19 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
452
896
|
primaryColor: z.ZodString;
|
|
453
897
|
secondaryColor: z.ZodString;
|
|
454
898
|
guidelinesUrl: z.ZodOptional<z.ZodString>;
|
|
455
|
-
}, z.
|
|
899
|
+
}, "strip", z.ZodTypeAny, {
|
|
900
|
+
iconUrl: string;
|
|
901
|
+
logoUrl: string;
|
|
902
|
+
primaryColor: string;
|
|
903
|
+
secondaryColor: string;
|
|
904
|
+
guidelinesUrl?: string | undefined;
|
|
905
|
+
}, {
|
|
906
|
+
iconUrl: string;
|
|
907
|
+
logoUrl: string;
|
|
908
|
+
primaryColor: string;
|
|
909
|
+
secondaryColor: string;
|
|
910
|
+
guidelinesUrl?: string | undefined;
|
|
911
|
+
}>;
|
|
456
912
|
inviteCode: z.ZodString;
|
|
457
913
|
totalUsersAllowed: z.ZodNumber;
|
|
458
914
|
currentUsersSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -460,7 +916,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
460
916
|
defaultProductId: z.ZodOptional<z.ZodString>;
|
|
461
917
|
defaultPlanId: z.ZodOptional<z.ZodString>;
|
|
462
918
|
defaultCoupomCode: z.ZodOptional<z.ZodString>;
|
|
463
|
-
allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
919
|
+
allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
464
920
|
useOwnScripts: z.ZodOptional<z.ZodBoolean>;
|
|
465
921
|
subscription: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
466
922
|
id: z.ZodString;
|
|
@@ -477,7 +933,13 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
477
933
|
descriptions: z.ZodArray<z.ZodObject<{
|
|
478
934
|
description: z.ZodString;
|
|
479
935
|
subtitle: z.ZodString;
|
|
480
|
-
}, z.
|
|
936
|
+
}, "strip", z.ZodTypeAny, {
|
|
937
|
+
description: string;
|
|
938
|
+
subtitle: string;
|
|
939
|
+
}, {
|
|
940
|
+
description: string;
|
|
941
|
+
subtitle: string;
|
|
942
|
+
}>, "many">;
|
|
481
943
|
metadata: z.ZodAny;
|
|
482
944
|
plans: z.ZodArray<z.ZodObject<{
|
|
483
945
|
id: z.ZodString;
|
|
@@ -486,10 +948,58 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
486
948
|
interval: z.ZodString;
|
|
487
949
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
488
950
|
subscriptionItemId: z.ZodString;
|
|
489
|
-
}, z.
|
|
951
|
+
}, "strip", z.ZodTypeAny, {
|
|
952
|
+
id: string;
|
|
953
|
+
metadata: Record<string, string>;
|
|
954
|
+
interval: string;
|
|
955
|
+
price: number;
|
|
956
|
+
currency: string;
|
|
957
|
+
subscriptionItemId: string;
|
|
958
|
+
}, {
|
|
959
|
+
id: string;
|
|
960
|
+
metadata: Record<string, string>;
|
|
961
|
+
interval: string;
|
|
962
|
+
price: number;
|
|
963
|
+
currency: string;
|
|
964
|
+
subscriptionItemId: string;
|
|
965
|
+
}>, "many">;
|
|
490
966
|
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
491
|
-
}, z.
|
|
492
|
-
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
id: string;
|
|
969
|
+
name: string;
|
|
970
|
+
descriptions: {
|
|
971
|
+
description: string;
|
|
972
|
+
subtitle: string;
|
|
973
|
+
}[];
|
|
974
|
+
plans: {
|
|
975
|
+
id: string;
|
|
976
|
+
metadata: Record<string, string>;
|
|
977
|
+
interval: string;
|
|
978
|
+
price: number;
|
|
979
|
+
currency: string;
|
|
980
|
+
subscriptionItemId: string;
|
|
981
|
+
}[];
|
|
982
|
+
percentOff: number;
|
|
983
|
+
metadata?: any;
|
|
984
|
+
}, {
|
|
985
|
+
id: string;
|
|
986
|
+
name: string;
|
|
987
|
+
descriptions: {
|
|
988
|
+
description: string;
|
|
989
|
+
subtitle: string;
|
|
990
|
+
}[];
|
|
991
|
+
plans: {
|
|
992
|
+
id: string;
|
|
993
|
+
metadata: Record<string, string>;
|
|
994
|
+
interval: string;
|
|
995
|
+
price: number;
|
|
996
|
+
currency: string;
|
|
997
|
+
subscriptionItemId: string;
|
|
998
|
+
}[];
|
|
999
|
+
metadata?: any;
|
|
1000
|
+
percentOff?: number | undefined;
|
|
1001
|
+
}>;
|
|
1002
|
+
type: z.ZodOptional<z.ZodNativeEnum<typeof Type>>;
|
|
493
1003
|
plan: z.ZodOptional<z.ZodObject<{
|
|
494
1004
|
id: z.ZodString;
|
|
495
1005
|
currency: z.ZodString;
|
|
@@ -497,9 +1007,211 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
497
1007
|
interval: z.ZodString;
|
|
498
1008
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
499
1009
|
subscriptionItemId: z.ZodString;
|
|
500
|
-
}, z.
|
|
501
|
-
|
|
502
|
-
|
|
1010
|
+
}, "strip", z.ZodTypeAny, {
|
|
1011
|
+
id: string;
|
|
1012
|
+
metadata: Record<string, string>;
|
|
1013
|
+
interval: string;
|
|
1014
|
+
price: number;
|
|
1015
|
+
currency: string;
|
|
1016
|
+
subscriptionItemId: string;
|
|
1017
|
+
}, {
|
|
1018
|
+
id: string;
|
|
1019
|
+
metadata: Record<string, string>;
|
|
1020
|
+
interval: string;
|
|
1021
|
+
price: number;
|
|
1022
|
+
currency: string;
|
|
1023
|
+
subscriptionItemId: string;
|
|
1024
|
+
}>>;
|
|
1025
|
+
}, "strip", z.ZodTypeAny, {
|
|
1026
|
+
id: string;
|
|
1027
|
+
status: string;
|
|
1028
|
+
product: {
|
|
1029
|
+
id: string;
|
|
1030
|
+
name: string;
|
|
1031
|
+
descriptions: {
|
|
1032
|
+
description: string;
|
|
1033
|
+
subtitle: string;
|
|
1034
|
+
}[];
|
|
1035
|
+
plans: {
|
|
1036
|
+
id: string;
|
|
1037
|
+
metadata: Record<string, string>;
|
|
1038
|
+
interval: string;
|
|
1039
|
+
price: number;
|
|
1040
|
+
currency: string;
|
|
1041
|
+
subscriptionItemId: string;
|
|
1042
|
+
}[];
|
|
1043
|
+
percentOff: number;
|
|
1044
|
+
metadata?: any;
|
|
1045
|
+
};
|
|
1046
|
+
type?: Type | undefined;
|
|
1047
|
+
startDate?: number | undefined;
|
|
1048
|
+
daysUntilDue?: number | undefined;
|
|
1049
|
+
renewAutomatically?: boolean | undefined;
|
|
1050
|
+
currentPeriodStart?: number | undefined;
|
|
1051
|
+
currentPeriodEnd?: number | undefined;
|
|
1052
|
+
paymentMethodId?: string | undefined;
|
|
1053
|
+
plan?: {
|
|
1054
|
+
id: string;
|
|
1055
|
+
metadata: Record<string, string>;
|
|
1056
|
+
interval: string;
|
|
1057
|
+
price: number;
|
|
1058
|
+
currency: string;
|
|
1059
|
+
subscriptionItemId: string;
|
|
1060
|
+
} | undefined;
|
|
1061
|
+
}, {
|
|
1062
|
+
id: string;
|
|
1063
|
+
status: string;
|
|
1064
|
+
product: {
|
|
1065
|
+
id: string;
|
|
1066
|
+
name: string;
|
|
1067
|
+
descriptions: {
|
|
1068
|
+
description: string;
|
|
1069
|
+
subtitle: string;
|
|
1070
|
+
}[];
|
|
1071
|
+
plans: {
|
|
1072
|
+
id: string;
|
|
1073
|
+
metadata: Record<string, string>;
|
|
1074
|
+
interval: string;
|
|
1075
|
+
price: number;
|
|
1076
|
+
currency: string;
|
|
1077
|
+
subscriptionItemId: string;
|
|
1078
|
+
}[];
|
|
1079
|
+
metadata?: any;
|
|
1080
|
+
percentOff?: number | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
type?: Type | undefined;
|
|
1083
|
+
startDate?: number | undefined;
|
|
1084
|
+
daysUntilDue?: number | undefined;
|
|
1085
|
+
renewAutomatically?: boolean | undefined;
|
|
1086
|
+
currentPeriodStart?: number | undefined;
|
|
1087
|
+
currentPeriodEnd?: number | undefined;
|
|
1088
|
+
paymentMethodId?: string | undefined;
|
|
1089
|
+
plan?: {
|
|
1090
|
+
id: string;
|
|
1091
|
+
metadata: Record<string, string>;
|
|
1092
|
+
interval: string;
|
|
1093
|
+
price: number;
|
|
1094
|
+
currency: string;
|
|
1095
|
+
subscriptionItemId: string;
|
|
1096
|
+
} | undefined;
|
|
1097
|
+
}>>>;
|
|
1098
|
+
}, "strip", z.ZodTypeAny, {
|
|
1099
|
+
id: string;
|
|
1100
|
+
name: string;
|
|
1101
|
+
isActive: boolean;
|
|
1102
|
+
isSubscriptionActive: boolean;
|
|
1103
|
+
preferences: {
|
|
1104
|
+
iconUrl: string;
|
|
1105
|
+
logoUrl: string;
|
|
1106
|
+
primaryColor: string;
|
|
1107
|
+
secondaryColor: string;
|
|
1108
|
+
guidelinesUrl?: string | undefined;
|
|
1109
|
+
};
|
|
1110
|
+
inviteCode: string;
|
|
1111
|
+
totalUsersAllowed: number;
|
|
1112
|
+
chargeByEmail: boolean;
|
|
1113
|
+
currentUsersSize?: number | undefined;
|
|
1114
|
+
defaultProductId?: string | undefined;
|
|
1115
|
+
defaultPlanId?: string | undefined;
|
|
1116
|
+
defaultCoupomCode?: string | undefined;
|
|
1117
|
+
allowedProducts?: string[] | undefined;
|
|
1118
|
+
useOwnScripts?: boolean | undefined;
|
|
1119
|
+
subscription?: {
|
|
1120
|
+
id: string;
|
|
1121
|
+
status: string;
|
|
1122
|
+
product: {
|
|
1123
|
+
id: string;
|
|
1124
|
+
name: string;
|
|
1125
|
+
descriptions: {
|
|
1126
|
+
description: string;
|
|
1127
|
+
subtitle: string;
|
|
1128
|
+
}[];
|
|
1129
|
+
plans: {
|
|
1130
|
+
id: string;
|
|
1131
|
+
metadata: Record<string, string>;
|
|
1132
|
+
interval: string;
|
|
1133
|
+
price: number;
|
|
1134
|
+
currency: string;
|
|
1135
|
+
subscriptionItemId: string;
|
|
1136
|
+
}[];
|
|
1137
|
+
percentOff: number;
|
|
1138
|
+
metadata?: any;
|
|
1139
|
+
};
|
|
1140
|
+
type?: Type | undefined;
|
|
1141
|
+
startDate?: number | undefined;
|
|
1142
|
+
daysUntilDue?: number | undefined;
|
|
1143
|
+
renewAutomatically?: boolean | undefined;
|
|
1144
|
+
currentPeriodStart?: number | undefined;
|
|
1145
|
+
currentPeriodEnd?: number | undefined;
|
|
1146
|
+
paymentMethodId?: string | undefined;
|
|
1147
|
+
plan?: {
|
|
1148
|
+
id: string;
|
|
1149
|
+
metadata: Record<string, string>;
|
|
1150
|
+
interval: string;
|
|
1151
|
+
price: number;
|
|
1152
|
+
currency: string;
|
|
1153
|
+
subscriptionItemId: string;
|
|
1154
|
+
} | undefined;
|
|
1155
|
+
} | undefined;
|
|
1156
|
+
}, {
|
|
1157
|
+
id: string;
|
|
1158
|
+
name: string;
|
|
1159
|
+
isActive: boolean;
|
|
1160
|
+
isSubscriptionActive: boolean;
|
|
1161
|
+
preferences: {
|
|
1162
|
+
iconUrl: string;
|
|
1163
|
+
logoUrl: string;
|
|
1164
|
+
primaryColor: string;
|
|
1165
|
+
secondaryColor: string;
|
|
1166
|
+
guidelinesUrl?: string | undefined;
|
|
1167
|
+
};
|
|
1168
|
+
inviteCode: string;
|
|
1169
|
+
totalUsersAllowed: number;
|
|
1170
|
+
chargeByEmail: boolean;
|
|
1171
|
+
currentUsersSize?: number | undefined;
|
|
1172
|
+
defaultProductId?: string | undefined;
|
|
1173
|
+
defaultPlanId?: string | undefined;
|
|
1174
|
+
defaultCoupomCode?: string | undefined;
|
|
1175
|
+
allowedProducts?: string[] | undefined;
|
|
1176
|
+
useOwnScripts?: boolean | undefined;
|
|
1177
|
+
subscription?: {
|
|
1178
|
+
id: string;
|
|
1179
|
+
status: string;
|
|
1180
|
+
product: {
|
|
1181
|
+
id: string;
|
|
1182
|
+
name: string;
|
|
1183
|
+
descriptions: {
|
|
1184
|
+
description: string;
|
|
1185
|
+
subtitle: string;
|
|
1186
|
+
}[];
|
|
1187
|
+
plans: {
|
|
1188
|
+
id: string;
|
|
1189
|
+
metadata: Record<string, string>;
|
|
1190
|
+
interval: string;
|
|
1191
|
+
price: number;
|
|
1192
|
+
currency: string;
|
|
1193
|
+
subscriptionItemId: string;
|
|
1194
|
+
}[];
|
|
1195
|
+
metadata?: any;
|
|
1196
|
+
percentOff?: number | undefined;
|
|
1197
|
+
};
|
|
1198
|
+
type?: Type | undefined;
|
|
1199
|
+
startDate?: number | undefined;
|
|
1200
|
+
daysUntilDue?: number | undefined;
|
|
1201
|
+
renewAutomatically?: boolean | undefined;
|
|
1202
|
+
currentPeriodStart?: number | undefined;
|
|
1203
|
+
currentPeriodEnd?: number | undefined;
|
|
1204
|
+
paymentMethodId?: string | undefined;
|
|
1205
|
+
plan?: {
|
|
1206
|
+
id: string;
|
|
1207
|
+
metadata: Record<string, string>;
|
|
1208
|
+
interval: string;
|
|
1209
|
+
price: number;
|
|
1210
|
+
currency: string;
|
|
1211
|
+
subscriptionItemId: string;
|
|
1212
|
+
} | undefined;
|
|
1213
|
+
} | undefined;
|
|
1214
|
+
}>;
|
|
503
1215
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
504
1216
|
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
505
1217
|
|
|
@@ -546,17 +1258,45 @@ declare namespace index$8 {
|
|
|
546
1258
|
|
|
547
1259
|
declare const TrackParamSchema: z.ZodObject<{
|
|
548
1260
|
name: z.ZodString;
|
|
549
|
-
value: z.ZodUnion<
|
|
550
|
-
}, z.
|
|
1261
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1262
|
+
}, "strip", z.ZodTypeAny, {
|
|
1263
|
+
value: string | number;
|
|
1264
|
+
name: string;
|
|
1265
|
+
}, {
|
|
1266
|
+
value: string | number;
|
|
1267
|
+
name: string;
|
|
1268
|
+
}>;
|
|
551
1269
|
declare const TrackSchema: z.ZodObject<{
|
|
552
1270
|
category: z.ZodString;
|
|
553
1271
|
label: z.ZodString;
|
|
554
1272
|
action: z.ZodString;
|
|
555
1273
|
params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
556
1274
|
name: z.ZodString;
|
|
557
|
-
value: z.ZodUnion<
|
|
558
|
-
}, z.
|
|
559
|
-
|
|
1275
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1276
|
+
}, "strip", z.ZodTypeAny, {
|
|
1277
|
+
value: string | number;
|
|
1278
|
+
name: string;
|
|
1279
|
+
}, {
|
|
1280
|
+
value: string | number;
|
|
1281
|
+
name: string;
|
|
1282
|
+
}>, "many">>;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1284
|
+
label: string;
|
|
1285
|
+
category: string;
|
|
1286
|
+
action: string;
|
|
1287
|
+
params?: {
|
|
1288
|
+
value: string | number;
|
|
1289
|
+
name: string;
|
|
1290
|
+
}[] | undefined;
|
|
1291
|
+
}, {
|
|
1292
|
+
label: string;
|
|
1293
|
+
category: string;
|
|
1294
|
+
action: string;
|
|
1295
|
+
params?: {
|
|
1296
|
+
value: string | number;
|
|
1297
|
+
name: string;
|
|
1298
|
+
}[] | undefined;
|
|
1299
|
+
}>;
|
|
560
1300
|
type Track = z.infer<typeof TrackSchema>;
|
|
561
1301
|
type TrackParam = z.infer<typeof TrackParamSchema>;
|
|
562
1302
|
|
|
@@ -581,7 +1321,15 @@ declare const EmailSchema: z.ZodObject<{
|
|
|
581
1321
|
to: z.ZodOptional<z.ZodString>;
|
|
582
1322
|
subject: z.ZodString;
|
|
583
1323
|
body: z.ZodString;
|
|
584
|
-
}, z.
|
|
1324
|
+
}, "strip", z.ZodTypeAny, {
|
|
1325
|
+
body: string;
|
|
1326
|
+
subject: string;
|
|
1327
|
+
to?: string | undefined;
|
|
1328
|
+
}, {
|
|
1329
|
+
body: string;
|
|
1330
|
+
subject: string;
|
|
1331
|
+
to?: string | undefined;
|
|
1332
|
+
}>;
|
|
585
1333
|
type Email = z.infer<typeof EmailSchema>;
|
|
586
1334
|
|
|
587
1335
|
interface IAPI$5 {
|
|
@@ -622,27 +1370,65 @@ type Style = {
|
|
|
622
1370
|
label: string;
|
|
623
1371
|
};
|
|
624
1372
|
declare const TimelineItemSchema: z.ZodObject<{
|
|
625
|
-
status: z.
|
|
1373
|
+
status: z.ZodNativeEnum<typeof Status$1>;
|
|
626
1374
|
title: z.ZodString;
|
|
627
1375
|
description: z.ZodString;
|
|
628
1376
|
timestamp: z.ZodNumber;
|
|
629
1377
|
metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
630
|
-
}, z.
|
|
1378
|
+
}, "strip", z.ZodTypeAny, {
|
|
1379
|
+
title: string;
|
|
1380
|
+
status: Status$1;
|
|
1381
|
+
metadata: Record<string, any>;
|
|
1382
|
+
description: string;
|
|
1383
|
+
timestamp: number;
|
|
1384
|
+
}, {
|
|
1385
|
+
title: string;
|
|
1386
|
+
status: Status$1;
|
|
1387
|
+
metadata: Record<string, any>;
|
|
1388
|
+
description: string;
|
|
1389
|
+
timestamp: number;
|
|
1390
|
+
}>;
|
|
631
1391
|
declare const FeedbackSchema: z.ZodObject<{
|
|
632
1392
|
criteria: z.ZodArray<z.ZodObject<{
|
|
633
1393
|
id: z.ZodString;
|
|
634
1394
|
label: z.ZodString;
|
|
635
1395
|
score: z.ZodNumber;
|
|
636
1396
|
comment: z.ZodOptional<z.ZodString>;
|
|
637
|
-
}, z.
|
|
1397
|
+
}, "strip", z.ZodTypeAny, {
|
|
1398
|
+
id: string;
|
|
1399
|
+
label: string;
|
|
1400
|
+
score: number;
|
|
1401
|
+
comment?: string | undefined;
|
|
1402
|
+
}, {
|
|
1403
|
+
id: string;
|
|
1404
|
+
label: string;
|
|
1405
|
+
score: number;
|
|
1406
|
+
comment?: string | undefined;
|
|
1407
|
+
}>, "many">;
|
|
638
1408
|
comment: z.ZodOptional<z.ZodString>;
|
|
639
|
-
}, z.
|
|
1409
|
+
}, "strip", z.ZodTypeAny, {
|
|
1410
|
+
criteria: {
|
|
1411
|
+
id: string;
|
|
1412
|
+
label: string;
|
|
1413
|
+
score: number;
|
|
1414
|
+
comment?: string | undefined;
|
|
1415
|
+
}[];
|
|
1416
|
+
comment?: string | undefined;
|
|
1417
|
+
}, {
|
|
1418
|
+
criteria: {
|
|
1419
|
+
id: string;
|
|
1420
|
+
label: string;
|
|
1421
|
+
score: number;
|
|
1422
|
+
comment?: string | undefined;
|
|
1423
|
+
}[];
|
|
1424
|
+
comment?: string | undefined;
|
|
1425
|
+
}>;
|
|
640
1426
|
declare const ProjectSchema: z.ZodObject<{
|
|
641
1427
|
id: z.ZodString;
|
|
642
1428
|
title: z.ZodString;
|
|
643
1429
|
instructions: z.ZodString;
|
|
644
1430
|
submitMonth: z.ZodString;
|
|
645
|
-
captionStyle: z.
|
|
1431
|
+
captionStyle: z.ZodNativeEnum<typeof CaptionStyle>;
|
|
646
1432
|
finalVideoId: z.ZodOptional<z.ZodString>;
|
|
647
1433
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
648
1434
|
modified: z.ZodNumber;
|
|
@@ -652,9 +1438,35 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
652
1438
|
label: z.ZodString;
|
|
653
1439
|
score: z.ZodNumber;
|
|
654
1440
|
comment: z.ZodOptional<z.ZodString>;
|
|
655
|
-
}, z.
|
|
1441
|
+
}, "strip", z.ZodTypeAny, {
|
|
1442
|
+
id: string;
|
|
1443
|
+
label: string;
|
|
1444
|
+
score: number;
|
|
1445
|
+
comment?: string | undefined;
|
|
1446
|
+
}, {
|
|
1447
|
+
id: string;
|
|
1448
|
+
label: string;
|
|
1449
|
+
score: number;
|
|
1450
|
+
comment?: string | undefined;
|
|
1451
|
+
}>, "many">;
|
|
656
1452
|
comment: z.ZodOptional<z.ZodString>;
|
|
657
|
-
}, z.
|
|
1453
|
+
}, "strip", z.ZodTypeAny, {
|
|
1454
|
+
criteria: {
|
|
1455
|
+
id: string;
|
|
1456
|
+
label: string;
|
|
1457
|
+
score: number;
|
|
1458
|
+
comment?: string | undefined;
|
|
1459
|
+
}[];
|
|
1460
|
+
comment?: string | undefined;
|
|
1461
|
+
}, {
|
|
1462
|
+
criteria: {
|
|
1463
|
+
id: string;
|
|
1464
|
+
label: string;
|
|
1465
|
+
score: number;
|
|
1466
|
+
comment?: string | undefined;
|
|
1467
|
+
}[];
|
|
1468
|
+
comment?: string | undefined;
|
|
1469
|
+
}>>;
|
|
658
1470
|
captionSuggestion: z.ZodOptional<z.ZodString>;
|
|
659
1471
|
editorId: z.ZodOptional<z.ZodString>;
|
|
660
1472
|
userId: z.ZodString;
|
|
@@ -671,20 +1483,152 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
671
1483
|
error: z.ZodOptional<z.ZodString>;
|
|
672
1484
|
authorId: z.ZodString;
|
|
673
1485
|
uploadedAt: z.ZodNumber;
|
|
674
|
-
}, z.
|
|
1486
|
+
}, "strip", z.ZodTypeAny, {
|
|
1487
|
+
type: string;
|
|
1488
|
+
assetId: string;
|
|
1489
|
+
fileName: string;
|
|
1490
|
+
extension: string;
|
|
1491
|
+
fileSize: number;
|
|
1492
|
+
assetUrl: string;
|
|
1493
|
+
thumbnailUrl: string;
|
|
1494
|
+
authorId: string;
|
|
1495
|
+
uploadedAt: number;
|
|
1496
|
+
error?: string | undefined;
|
|
1497
|
+
duration?: number | undefined;
|
|
1498
|
+
progress?: number | undefined;
|
|
1499
|
+
}, {
|
|
1500
|
+
type: string;
|
|
1501
|
+
assetId: string;
|
|
1502
|
+
fileName: string;
|
|
1503
|
+
extension: string;
|
|
1504
|
+
fileSize: number;
|
|
1505
|
+
assetUrl: string;
|
|
1506
|
+
thumbnailUrl: string;
|
|
1507
|
+
authorId: string;
|
|
1508
|
+
uploadedAt: number;
|
|
1509
|
+
error?: string | undefined;
|
|
1510
|
+
duration?: number | undefined;
|
|
1511
|
+
progress?: number | undefined;
|
|
1512
|
+
}>, "many">>;
|
|
675
1513
|
expirationTimestamp: z.ZodNumber;
|
|
676
1514
|
isFree: z.ZodOptional<z.ZodBoolean>;
|
|
677
1515
|
timeline: z.ZodArray<z.ZodObject<{
|
|
678
|
-
status: z.
|
|
1516
|
+
status: z.ZodNativeEnum<typeof Status$1>;
|
|
679
1517
|
title: z.ZodString;
|
|
680
1518
|
description: z.ZodString;
|
|
681
1519
|
timestamp: z.ZodNumber;
|
|
682
1520
|
metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
683
|
-
}, z.
|
|
1521
|
+
}, "strip", z.ZodTypeAny, {
|
|
1522
|
+
title: string;
|
|
1523
|
+
status: Status$1;
|
|
1524
|
+
metadata: Record<string, any>;
|
|
1525
|
+
description: string;
|
|
1526
|
+
timestamp: number;
|
|
1527
|
+
}, {
|
|
1528
|
+
title: string;
|
|
1529
|
+
status: Status$1;
|
|
1530
|
+
metadata: Record<string, any>;
|
|
1531
|
+
description: string;
|
|
1532
|
+
timestamp: number;
|
|
1533
|
+
}>, "many">;
|
|
684
1534
|
submitTimestamp: z.ZodNumber;
|
|
685
1535
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
686
|
-
status: z.
|
|
687
|
-
}, z.
|
|
1536
|
+
status: z.ZodNativeEnum<typeof Status$1>;
|
|
1537
|
+
}, "strip", z.ZodTypeAny, {
|
|
1538
|
+
id: string;
|
|
1539
|
+
userId: string;
|
|
1540
|
+
title: string;
|
|
1541
|
+
status: Status$1;
|
|
1542
|
+
modified: number;
|
|
1543
|
+
instructions: string;
|
|
1544
|
+
submitMonth: string;
|
|
1545
|
+
captionStyle: CaptionStyle;
|
|
1546
|
+
expirationTimestamp: number;
|
|
1547
|
+
timeline: {
|
|
1548
|
+
title: string;
|
|
1549
|
+
status: Status$1;
|
|
1550
|
+
metadata: Record<string, any>;
|
|
1551
|
+
description: string;
|
|
1552
|
+
timestamp: number;
|
|
1553
|
+
}[];
|
|
1554
|
+
submitTimestamp: number;
|
|
1555
|
+
tenantId?: string | undefined;
|
|
1556
|
+
editorId?: string | undefined;
|
|
1557
|
+
thumbnailUrl?: string | undefined;
|
|
1558
|
+
finalVideoId?: string | undefined;
|
|
1559
|
+
feedback?: {
|
|
1560
|
+
criteria: {
|
|
1561
|
+
id: string;
|
|
1562
|
+
label: string;
|
|
1563
|
+
score: number;
|
|
1564
|
+
comment?: string | undefined;
|
|
1565
|
+
}[];
|
|
1566
|
+
comment?: string | undefined;
|
|
1567
|
+
} | undefined;
|
|
1568
|
+
captionSuggestion?: string | undefined;
|
|
1569
|
+
assets?: {
|
|
1570
|
+
type: string;
|
|
1571
|
+
assetId: string;
|
|
1572
|
+
fileName: string;
|
|
1573
|
+
extension: string;
|
|
1574
|
+
fileSize: number;
|
|
1575
|
+
assetUrl: string;
|
|
1576
|
+
thumbnailUrl: string;
|
|
1577
|
+
authorId: string;
|
|
1578
|
+
uploadedAt: number;
|
|
1579
|
+
error?: string | undefined;
|
|
1580
|
+
duration?: number | undefined;
|
|
1581
|
+
progress?: number | undefined;
|
|
1582
|
+
}[] | undefined;
|
|
1583
|
+
isFree?: boolean | undefined;
|
|
1584
|
+
}, {
|
|
1585
|
+
id: string;
|
|
1586
|
+
userId: string;
|
|
1587
|
+
title: string;
|
|
1588
|
+
status: Status$1;
|
|
1589
|
+
modified: number;
|
|
1590
|
+
instructions: string;
|
|
1591
|
+
submitMonth: string;
|
|
1592
|
+
captionStyle: CaptionStyle;
|
|
1593
|
+
expirationTimestamp: number;
|
|
1594
|
+
timeline: {
|
|
1595
|
+
title: string;
|
|
1596
|
+
status: Status$1;
|
|
1597
|
+
metadata: Record<string, any>;
|
|
1598
|
+
description: string;
|
|
1599
|
+
timestamp: number;
|
|
1600
|
+
}[];
|
|
1601
|
+
submitTimestamp: number;
|
|
1602
|
+
tenantId?: string | undefined;
|
|
1603
|
+
editorId?: string | undefined;
|
|
1604
|
+
thumbnailUrl?: string | undefined;
|
|
1605
|
+
finalVideoId?: string | undefined;
|
|
1606
|
+
feedback?: {
|
|
1607
|
+
criteria: {
|
|
1608
|
+
id: string;
|
|
1609
|
+
label: string;
|
|
1610
|
+
score: number;
|
|
1611
|
+
comment?: string | undefined;
|
|
1612
|
+
}[];
|
|
1613
|
+
comment?: string | undefined;
|
|
1614
|
+
} | undefined;
|
|
1615
|
+
captionSuggestion?: string | undefined;
|
|
1616
|
+
assets?: {
|
|
1617
|
+
type: string;
|
|
1618
|
+
assetId: string;
|
|
1619
|
+
fileName: string;
|
|
1620
|
+
extension: string;
|
|
1621
|
+
fileSize: number;
|
|
1622
|
+
assetUrl: string;
|
|
1623
|
+
thumbnailUrl: string;
|
|
1624
|
+
authorId: string;
|
|
1625
|
+
uploadedAt: number;
|
|
1626
|
+
error?: string | undefined;
|
|
1627
|
+
duration?: number | undefined;
|
|
1628
|
+
progress?: number | undefined;
|
|
1629
|
+
}[] | undefined;
|
|
1630
|
+
isFree?: boolean | undefined;
|
|
1631
|
+
}>;
|
|
688
1632
|
type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
|
|
689
1633
|
type SendToApproval = {
|
|
690
1634
|
video: string;
|
|
@@ -846,7 +1790,17 @@ declare const DailyMilestoneSchema: z.ZodObject<{
|
|
|
846
1790
|
date: z.ZodString;
|
|
847
1791
|
target: z.ZodNumber;
|
|
848
1792
|
progress: z.ZodNumber;
|
|
849
|
-
}, z.
|
|
1793
|
+
}, "strip", z.ZodTypeAny, {
|
|
1794
|
+
id: string;
|
|
1795
|
+
date: string;
|
|
1796
|
+
progress: number;
|
|
1797
|
+
target: number;
|
|
1798
|
+
}, {
|
|
1799
|
+
id: string;
|
|
1800
|
+
date: string;
|
|
1801
|
+
progress: number;
|
|
1802
|
+
target: number;
|
|
1803
|
+
}>;
|
|
850
1804
|
declare const GoalSchema: z.ZodObject<{
|
|
851
1805
|
id: z.ZodString;
|
|
852
1806
|
editorId: z.ZodString;
|
|
@@ -859,8 +1813,44 @@ declare const GoalSchema: z.ZodObject<{
|
|
|
859
1813
|
date: z.ZodString;
|
|
860
1814
|
target: z.ZodNumber;
|
|
861
1815
|
progress: z.ZodNumber;
|
|
862
|
-
}, z.
|
|
863
|
-
|
|
1816
|
+
}, "strip", z.ZodTypeAny, {
|
|
1817
|
+
id: string;
|
|
1818
|
+
date: string;
|
|
1819
|
+
progress: number;
|
|
1820
|
+
target: number;
|
|
1821
|
+
}, {
|
|
1822
|
+
id: string;
|
|
1823
|
+
date: string;
|
|
1824
|
+
progress: number;
|
|
1825
|
+
target: number;
|
|
1826
|
+
}>, "many">;
|
|
1827
|
+
}, "strip", z.ZodTypeAny, {
|
|
1828
|
+
id: string;
|
|
1829
|
+
createdAt: number;
|
|
1830
|
+
editorId: string;
|
|
1831
|
+
progress: number;
|
|
1832
|
+
target: number;
|
|
1833
|
+
isoWeek: string;
|
|
1834
|
+
dailyMilestones: {
|
|
1835
|
+
id: string;
|
|
1836
|
+
date: string;
|
|
1837
|
+
progress: number;
|
|
1838
|
+
target: number;
|
|
1839
|
+
}[];
|
|
1840
|
+
}, {
|
|
1841
|
+
id: string;
|
|
1842
|
+
createdAt: number;
|
|
1843
|
+
editorId: string;
|
|
1844
|
+
progress: number;
|
|
1845
|
+
target: number;
|
|
1846
|
+
isoWeek: string;
|
|
1847
|
+
dailyMilestones: {
|
|
1848
|
+
id: string;
|
|
1849
|
+
date: string;
|
|
1850
|
+
progress: number;
|
|
1851
|
+
target: number;
|
|
1852
|
+
}[];
|
|
1853
|
+
}>;
|
|
864
1854
|
type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
|
|
865
1855
|
type Goal = z.infer<typeof GoalSchema>;
|
|
866
1856
|
|
|
@@ -921,121 +1911,437 @@ declare const NotificationItemSchema: z.ZodObject<{
|
|
|
921
1911
|
triggerId: z.ZodOptional<z.ZodString>;
|
|
922
1912
|
title: z.ZodString;
|
|
923
1913
|
body: z.ZodString;
|
|
924
|
-
status: z.ZodEnum<
|
|
925
|
-
failed: "failed";
|
|
926
|
-
delivered: "delivered";
|
|
927
|
-
deleted: "deleted";
|
|
928
|
-
}>;
|
|
1914
|
+
status: z.ZodEnum<["failed", "delivered", "deleted"]>;
|
|
929
1915
|
deliveredAt: z.ZodNumber;
|
|
930
1916
|
openedAt: z.ZodOptional<z.ZodNumber>;
|
|
931
1917
|
deletedAt: z.ZodOptional<z.ZodNumber>;
|
|
932
1918
|
cta: z.ZodOptional<z.ZodObject<{
|
|
933
1919
|
label: z.ZodString;
|
|
934
1920
|
url: z.ZodString;
|
|
935
|
-
}, z.
|
|
936
|
-
|
|
1921
|
+
}, "strip", z.ZodTypeAny, {
|
|
1922
|
+
label: string;
|
|
1923
|
+
url: string;
|
|
1924
|
+
}, {
|
|
1925
|
+
label: string;
|
|
1926
|
+
url: string;
|
|
1927
|
+
}>>;
|
|
1928
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
937
1929
|
error: z.ZodOptional<z.ZodString>;
|
|
938
|
-
}, z.
|
|
939
|
-
|
|
1930
|
+
}, "strip", z.ZodTypeAny, {
|
|
1931
|
+
id: string;
|
|
1932
|
+
userId: string;
|
|
1933
|
+
title: string;
|
|
1934
|
+
body: string;
|
|
1935
|
+
status: "failed" | "delivered" | "deleted";
|
|
1936
|
+
deliveredAt: number;
|
|
1937
|
+
metadata: Record<string, string | number>;
|
|
1938
|
+
triggerId?: string | undefined;
|
|
1939
|
+
openedAt?: number | undefined;
|
|
1940
|
+
deletedAt?: number | undefined;
|
|
1941
|
+
cta?: {
|
|
1942
|
+
label: string;
|
|
1943
|
+
url: string;
|
|
1944
|
+
} | undefined;
|
|
1945
|
+
error?: string | undefined;
|
|
1946
|
+
}, {
|
|
1947
|
+
id: string;
|
|
1948
|
+
userId: string;
|
|
1949
|
+
title: string;
|
|
1950
|
+
body: string;
|
|
1951
|
+
status: "failed" | "delivered" | "deleted";
|
|
1952
|
+
deliveredAt: number;
|
|
1953
|
+
metadata: Record<string, string | number>;
|
|
1954
|
+
triggerId?: string | undefined;
|
|
1955
|
+
openedAt?: number | undefined;
|
|
1956
|
+
deletedAt?: number | undefined;
|
|
1957
|
+
cta?: {
|
|
1958
|
+
label: string;
|
|
1959
|
+
url: string;
|
|
1960
|
+
} | undefined;
|
|
1961
|
+
error?: string | undefined;
|
|
1962
|
+
}>;
|
|
1963
|
+
declare const NotificationDetailSchema: z.ZodObject<Pick<{
|
|
1964
|
+
id: z.ZodString;
|
|
940
1965
|
userId: z.ZodString;
|
|
1966
|
+
triggerId: z.ZodOptional<z.ZodString>;
|
|
941
1967
|
title: z.ZodString;
|
|
942
1968
|
body: z.ZodString;
|
|
1969
|
+
status: z.ZodEnum<["failed", "delivered", "deleted"]>;
|
|
1970
|
+
deliveredAt: z.ZodNumber;
|
|
1971
|
+
openedAt: z.ZodOptional<z.ZodNumber>;
|
|
1972
|
+
deletedAt: z.ZodOptional<z.ZodNumber>;
|
|
943
1973
|
cta: z.ZodOptional<z.ZodObject<{
|
|
944
1974
|
label: z.ZodString;
|
|
945
1975
|
url: z.ZodString;
|
|
946
|
-
}, z.
|
|
947
|
-
|
|
948
|
-
|
|
1976
|
+
}, "strip", z.ZodTypeAny, {
|
|
1977
|
+
label: string;
|
|
1978
|
+
url: string;
|
|
1979
|
+
}, {
|
|
1980
|
+
label: string;
|
|
1981
|
+
url: string;
|
|
1982
|
+
}>>;
|
|
1983
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1984
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1985
|
+
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
1986
|
+
userId: string;
|
|
1987
|
+
title: string;
|
|
1988
|
+
body: string;
|
|
1989
|
+
metadata: Record<string, string | number>;
|
|
1990
|
+
cta?: {
|
|
1991
|
+
label: string;
|
|
1992
|
+
url: string;
|
|
1993
|
+
} | undefined;
|
|
1994
|
+
}, {
|
|
1995
|
+
userId: string;
|
|
1996
|
+
title: string;
|
|
1997
|
+
body: string;
|
|
1998
|
+
metadata: Record<string, string | number>;
|
|
1999
|
+
cta?: {
|
|
2000
|
+
label: string;
|
|
2001
|
+
url: string;
|
|
2002
|
+
} | undefined;
|
|
2003
|
+
}>;
|
|
949
2004
|
declare const CriteriaSchema: z.ZodObject<{
|
|
950
|
-
type: z.
|
|
2005
|
+
type: z.ZodNativeEnum<typeof CriteriaType>;
|
|
951
2006
|
params: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
952
|
-
}, z.
|
|
2007
|
+
}, "strip", z.ZodTypeAny, {
|
|
2008
|
+
params: Record<string, any>;
|
|
2009
|
+
type: CriteriaType;
|
|
2010
|
+
}, {
|
|
2011
|
+
params: Record<string, any>;
|
|
2012
|
+
type: CriteriaType;
|
|
2013
|
+
}>;
|
|
953
2014
|
declare const HistorySchema: z.ZodObject<{
|
|
954
2015
|
batchId: z.ZodString;
|
|
955
2016
|
executedAt: z.ZodNumber;
|
|
956
2017
|
timezone: z.ZodString;
|
|
957
|
-
status: z.ZodEnum<
|
|
958
|
-
failed: "failed";
|
|
959
|
-
success: "success";
|
|
960
|
-
info: "info";
|
|
961
|
-
warn: "warn";
|
|
962
|
-
}>;
|
|
2018
|
+
status: z.ZodEnum<["success", "failed", "info", "warn"]>;
|
|
963
2019
|
users: z.ZodObject<{
|
|
964
2020
|
total: z.ZodNumber;
|
|
965
2021
|
success: z.ZodNumber;
|
|
966
2022
|
error: z.ZodNumber;
|
|
967
|
-
}, z.
|
|
2023
|
+
}, "strip", z.ZodTypeAny, {
|
|
2024
|
+
error: number;
|
|
2025
|
+
success: number;
|
|
2026
|
+
total: number;
|
|
2027
|
+
}, {
|
|
2028
|
+
error: number;
|
|
2029
|
+
success: number;
|
|
2030
|
+
total: number;
|
|
2031
|
+
}>;
|
|
968
2032
|
errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
969
2033
|
token: z.ZodString;
|
|
970
2034
|
error: z.ZodString;
|
|
971
|
-
}, z.
|
|
2035
|
+
}, "strip", z.ZodTypeAny, {
|
|
2036
|
+
token: string;
|
|
2037
|
+
error: string;
|
|
2038
|
+
}, {
|
|
2039
|
+
token: string;
|
|
2040
|
+
error: string;
|
|
2041
|
+
}>, "many">>;
|
|
972
2042
|
executionTimeDuration: z.ZodOptional<z.ZodNumber>;
|
|
973
|
-
}, z.
|
|
2043
|
+
}, "strip", z.ZodTypeAny, {
|
|
2044
|
+
status: "failed" | "success" | "info" | "warn";
|
|
2045
|
+
batchId: string;
|
|
2046
|
+
executedAt: number;
|
|
2047
|
+
timezone: string;
|
|
2048
|
+
users: {
|
|
2049
|
+
error: number;
|
|
2050
|
+
success: number;
|
|
2051
|
+
total: number;
|
|
2052
|
+
};
|
|
2053
|
+
errorList?: {
|
|
2054
|
+
token: string;
|
|
2055
|
+
error: string;
|
|
2056
|
+
}[] | undefined;
|
|
2057
|
+
executionTimeDuration?: number | undefined;
|
|
2058
|
+
}, {
|
|
2059
|
+
status: "failed" | "success" | "info" | "warn";
|
|
2060
|
+
batchId: string;
|
|
2061
|
+
executedAt: number;
|
|
2062
|
+
timezone: string;
|
|
2063
|
+
users: {
|
|
2064
|
+
error: number;
|
|
2065
|
+
success: number;
|
|
2066
|
+
total: number;
|
|
2067
|
+
};
|
|
2068
|
+
errorList?: {
|
|
2069
|
+
token: string;
|
|
2070
|
+
error: string;
|
|
2071
|
+
}[] | undefined;
|
|
2072
|
+
executionTimeDuration?: number | undefined;
|
|
2073
|
+
}>;
|
|
974
2074
|
declare const RecurrenceRuleSchema: z.ZodObject<{
|
|
975
|
-
frequency: z.
|
|
2075
|
+
frequency: z.ZodNativeEnum<typeof Frequency>;
|
|
976
2076
|
interval: z.ZodNumber;
|
|
977
|
-
weekDays: z.ZodOptional<z.ZodArray<z.
|
|
2077
|
+
weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
|
|
978
2078
|
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
979
2079
|
endDate: z.ZodOptional<z.ZodString>;
|
|
980
2080
|
ocurrences: z.ZodOptional<z.ZodNumber>;
|
|
981
|
-
}, z.
|
|
2081
|
+
}, "strip", z.ZodTypeAny, {
|
|
2082
|
+
frequency: Frequency;
|
|
2083
|
+
interval: number;
|
|
2084
|
+
weekDays?: WeekDay[] | undefined;
|
|
2085
|
+
dayOfMonth?: number | undefined;
|
|
2086
|
+
endDate?: string | undefined;
|
|
2087
|
+
ocurrences?: number | undefined;
|
|
2088
|
+
}, {
|
|
2089
|
+
frequency: Frequency;
|
|
2090
|
+
interval: number;
|
|
2091
|
+
weekDays?: WeekDay[] | undefined;
|
|
2092
|
+
dayOfMonth?: number | undefined;
|
|
2093
|
+
endDate?: string | undefined;
|
|
2094
|
+
ocurrences?: number | undefined;
|
|
2095
|
+
}>;
|
|
982
2096
|
declare const TriggerSchema: z.ZodObject<{
|
|
983
2097
|
id: z.ZodString;
|
|
984
2098
|
title: z.ZodString;
|
|
985
2099
|
description: z.ZodString;
|
|
986
|
-
transportType: z.ZodArray<z.
|
|
987
|
-
notification: z.ZodObject<{
|
|
2100
|
+
transportType: z.ZodArray<z.ZodNativeEnum<typeof TransportType>, "many">;
|
|
2101
|
+
notification: z.ZodObject<Pick<{
|
|
2102
|
+
id: z.ZodString;
|
|
988
2103
|
userId: z.ZodString;
|
|
2104
|
+
triggerId: z.ZodOptional<z.ZodString>;
|
|
989
2105
|
title: z.ZodString;
|
|
990
2106
|
body: z.ZodString;
|
|
2107
|
+
status: z.ZodEnum<["failed", "delivered", "deleted"]>;
|
|
2108
|
+
deliveredAt: z.ZodNumber;
|
|
2109
|
+
openedAt: z.ZodOptional<z.ZodNumber>;
|
|
2110
|
+
deletedAt: z.ZodOptional<z.ZodNumber>;
|
|
991
2111
|
cta: z.ZodOptional<z.ZodObject<{
|
|
992
2112
|
label: z.ZodString;
|
|
993
2113
|
url: z.ZodString;
|
|
994
|
-
}, z.
|
|
995
|
-
|
|
996
|
-
|
|
2114
|
+
}, "strip", z.ZodTypeAny, {
|
|
2115
|
+
label: string;
|
|
2116
|
+
url: string;
|
|
2117
|
+
}, {
|
|
2118
|
+
label: string;
|
|
2119
|
+
url: string;
|
|
2120
|
+
}>>;
|
|
2121
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
2122
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2124
|
+
userId: string;
|
|
2125
|
+
title: string;
|
|
2126
|
+
body: string;
|
|
2127
|
+
metadata: Record<string, string | number>;
|
|
2128
|
+
cta?: {
|
|
2129
|
+
label: string;
|
|
2130
|
+
url: string;
|
|
2131
|
+
} | undefined;
|
|
2132
|
+
}, {
|
|
2133
|
+
userId: string;
|
|
2134
|
+
title: string;
|
|
2135
|
+
body: string;
|
|
2136
|
+
metadata: Record<string, string | number>;
|
|
2137
|
+
cta?: {
|
|
2138
|
+
label: string;
|
|
2139
|
+
url: string;
|
|
2140
|
+
} | undefined;
|
|
2141
|
+
}>;
|
|
997
2142
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
998
2143
|
batchId: z.ZodString;
|
|
999
2144
|
executedAt: z.ZodNumber;
|
|
1000
2145
|
timezone: z.ZodString;
|
|
1001
|
-
status: z.ZodEnum<
|
|
1002
|
-
failed: "failed";
|
|
1003
|
-
success: "success";
|
|
1004
|
-
info: "info";
|
|
1005
|
-
warn: "warn";
|
|
1006
|
-
}>;
|
|
2146
|
+
status: z.ZodEnum<["success", "failed", "info", "warn"]>;
|
|
1007
2147
|
users: z.ZodObject<{
|
|
1008
2148
|
total: z.ZodNumber;
|
|
1009
2149
|
success: z.ZodNumber;
|
|
1010
2150
|
error: z.ZodNumber;
|
|
1011
|
-
}, z.
|
|
2151
|
+
}, "strip", z.ZodTypeAny, {
|
|
2152
|
+
error: number;
|
|
2153
|
+
success: number;
|
|
2154
|
+
total: number;
|
|
2155
|
+
}, {
|
|
2156
|
+
error: number;
|
|
2157
|
+
success: number;
|
|
2158
|
+
total: number;
|
|
2159
|
+
}>;
|
|
1012
2160
|
errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1013
2161
|
token: z.ZodString;
|
|
1014
2162
|
error: z.ZodString;
|
|
1015
|
-
}, z.
|
|
2163
|
+
}, "strip", z.ZodTypeAny, {
|
|
2164
|
+
token: string;
|
|
2165
|
+
error: string;
|
|
2166
|
+
}, {
|
|
2167
|
+
token: string;
|
|
2168
|
+
error: string;
|
|
2169
|
+
}>, "many">>;
|
|
1016
2170
|
executionTimeDuration: z.ZodOptional<z.ZodNumber>;
|
|
1017
|
-
}, z.
|
|
1018
|
-
|
|
2171
|
+
}, "strip", z.ZodTypeAny, {
|
|
2172
|
+
status: "failed" | "success" | "info" | "warn";
|
|
2173
|
+
batchId: string;
|
|
2174
|
+
executedAt: number;
|
|
2175
|
+
timezone: string;
|
|
2176
|
+
users: {
|
|
2177
|
+
error: number;
|
|
2178
|
+
success: number;
|
|
2179
|
+
total: number;
|
|
2180
|
+
};
|
|
2181
|
+
errorList?: {
|
|
2182
|
+
token: string;
|
|
2183
|
+
error: string;
|
|
2184
|
+
}[] | undefined;
|
|
2185
|
+
executionTimeDuration?: number | undefined;
|
|
2186
|
+
}, {
|
|
2187
|
+
status: "failed" | "success" | "info" | "warn";
|
|
2188
|
+
batchId: string;
|
|
2189
|
+
executedAt: number;
|
|
2190
|
+
timezone: string;
|
|
2191
|
+
users: {
|
|
2192
|
+
error: number;
|
|
2193
|
+
success: number;
|
|
2194
|
+
total: number;
|
|
2195
|
+
};
|
|
2196
|
+
errorList?: {
|
|
2197
|
+
token: string;
|
|
2198
|
+
error: string;
|
|
2199
|
+
}[] | undefined;
|
|
2200
|
+
executionTimeDuration?: number | undefined;
|
|
2201
|
+
}>, "many">>;
|
|
2202
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
1019
2203
|
recurrence: z.ZodOptional<z.ZodObject<{
|
|
1020
|
-
frequency: z.
|
|
2204
|
+
frequency: z.ZodNativeEnum<typeof Frequency>;
|
|
1021
2205
|
interval: z.ZodNumber;
|
|
1022
|
-
weekDays: z.ZodOptional<z.ZodArray<z.
|
|
2206
|
+
weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
|
|
1023
2207
|
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
1024
2208
|
endDate: z.ZodOptional<z.ZodString>;
|
|
1025
2209
|
ocurrences: z.ZodOptional<z.ZodNumber>;
|
|
1026
|
-
}, z.
|
|
2210
|
+
}, "strip", z.ZodTypeAny, {
|
|
2211
|
+
frequency: Frequency;
|
|
2212
|
+
interval: number;
|
|
2213
|
+
weekDays?: WeekDay[] | undefined;
|
|
2214
|
+
dayOfMonth?: number | undefined;
|
|
2215
|
+
endDate?: string | undefined;
|
|
2216
|
+
ocurrences?: number | undefined;
|
|
2217
|
+
}, {
|
|
2218
|
+
frequency: Frequency;
|
|
2219
|
+
interval: number;
|
|
2220
|
+
weekDays?: WeekDay[] | undefined;
|
|
2221
|
+
dayOfMonth?: number | undefined;
|
|
2222
|
+
endDate?: string | undefined;
|
|
2223
|
+
ocurrences?: number | undefined;
|
|
2224
|
+
}>>;
|
|
1027
2225
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1028
|
-
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2226
|
+
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1029
2227
|
executionDate: z.ZodOptional<z.ZodString>;
|
|
1030
2228
|
timeOfDay: z.ZodString;
|
|
1031
2229
|
criteria: z.ZodObject<{
|
|
1032
|
-
type: z.
|
|
2230
|
+
type: z.ZodNativeEnum<typeof CriteriaType>;
|
|
1033
2231
|
params: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1034
|
-
}, z.
|
|
2232
|
+
}, "strip", z.ZodTypeAny, {
|
|
2233
|
+
params: Record<string, any>;
|
|
2234
|
+
type: CriteriaType;
|
|
2235
|
+
}, {
|
|
2236
|
+
params: Record<string, any>;
|
|
2237
|
+
type: CriteriaType;
|
|
2238
|
+
}>;
|
|
1035
2239
|
nextExecution: z.ZodOptional<z.ZodNumber>;
|
|
1036
2240
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1037
2241
|
modified: z.ZodOptional<z.ZodNumber>;
|
|
1038
|
-
}, z.
|
|
2242
|
+
}, "strip", z.ZodTypeAny, {
|
|
2243
|
+
id: string;
|
|
2244
|
+
title: string;
|
|
2245
|
+
status: Status;
|
|
2246
|
+
description: string;
|
|
2247
|
+
transportType: TransportType[];
|
|
2248
|
+
notification: {
|
|
2249
|
+
userId: string;
|
|
2250
|
+
title: string;
|
|
2251
|
+
body: string;
|
|
2252
|
+
metadata: Record<string, string | number>;
|
|
2253
|
+
cta?: {
|
|
2254
|
+
label: string;
|
|
2255
|
+
url: string;
|
|
2256
|
+
} | undefined;
|
|
2257
|
+
};
|
|
2258
|
+
timeOfDay: string;
|
|
2259
|
+
criteria: {
|
|
2260
|
+
params: Record<string, any>;
|
|
2261
|
+
type: CriteriaType;
|
|
2262
|
+
};
|
|
2263
|
+
timezone?: string | null | undefined;
|
|
2264
|
+
history?: {
|
|
2265
|
+
status: "failed" | "success" | "info" | "warn";
|
|
2266
|
+
batchId: string;
|
|
2267
|
+
executedAt: number;
|
|
2268
|
+
timezone: string;
|
|
2269
|
+
users: {
|
|
2270
|
+
error: number;
|
|
2271
|
+
success: number;
|
|
2272
|
+
total: number;
|
|
2273
|
+
};
|
|
2274
|
+
errorList?: {
|
|
2275
|
+
token: string;
|
|
2276
|
+
error: string;
|
|
2277
|
+
}[] | undefined;
|
|
2278
|
+
executionTimeDuration?: number | undefined;
|
|
2279
|
+
}[] | undefined;
|
|
2280
|
+
recurrence?: {
|
|
2281
|
+
frequency: Frequency;
|
|
2282
|
+
interval: number;
|
|
2283
|
+
weekDays?: WeekDay[] | undefined;
|
|
2284
|
+
dayOfMonth?: number | undefined;
|
|
2285
|
+
endDate?: string | undefined;
|
|
2286
|
+
ocurrences?: number | undefined;
|
|
2287
|
+
} | undefined;
|
|
2288
|
+
tenantIds?: string[] | undefined;
|
|
2289
|
+
executionDate?: string | undefined;
|
|
2290
|
+
nextExecution?: number | undefined;
|
|
2291
|
+
createdAt?: number | undefined;
|
|
2292
|
+
modified?: number | undefined;
|
|
2293
|
+
}, {
|
|
2294
|
+
id: string;
|
|
2295
|
+
title: string;
|
|
2296
|
+
status: Status;
|
|
2297
|
+
description: string;
|
|
2298
|
+
transportType: TransportType[];
|
|
2299
|
+
notification: {
|
|
2300
|
+
userId: string;
|
|
2301
|
+
title: string;
|
|
2302
|
+
body: string;
|
|
2303
|
+
metadata: Record<string, string | number>;
|
|
2304
|
+
cta?: {
|
|
2305
|
+
label: string;
|
|
2306
|
+
url: string;
|
|
2307
|
+
} | undefined;
|
|
2308
|
+
};
|
|
2309
|
+
timeOfDay: string;
|
|
2310
|
+
criteria: {
|
|
2311
|
+
params: Record<string, any>;
|
|
2312
|
+
type: CriteriaType;
|
|
2313
|
+
};
|
|
2314
|
+
timezone?: string | null | undefined;
|
|
2315
|
+
history?: {
|
|
2316
|
+
status: "failed" | "success" | "info" | "warn";
|
|
2317
|
+
batchId: string;
|
|
2318
|
+
executedAt: number;
|
|
2319
|
+
timezone: string;
|
|
2320
|
+
users: {
|
|
2321
|
+
error: number;
|
|
2322
|
+
success: number;
|
|
2323
|
+
total: number;
|
|
2324
|
+
};
|
|
2325
|
+
errorList?: {
|
|
2326
|
+
token: string;
|
|
2327
|
+
error: string;
|
|
2328
|
+
}[] | undefined;
|
|
2329
|
+
executionTimeDuration?: number | undefined;
|
|
2330
|
+
}[] | undefined;
|
|
2331
|
+
recurrence?: {
|
|
2332
|
+
frequency: Frequency;
|
|
2333
|
+
interval: number;
|
|
2334
|
+
weekDays?: WeekDay[] | undefined;
|
|
2335
|
+
dayOfMonth?: number | undefined;
|
|
2336
|
+
endDate?: string | undefined;
|
|
2337
|
+
ocurrences?: number | undefined;
|
|
2338
|
+
} | undefined;
|
|
2339
|
+
tenantIds?: string[] | undefined;
|
|
2340
|
+
executionDate?: string | undefined;
|
|
2341
|
+
nextExecution?: number | undefined;
|
|
2342
|
+
createdAt?: number | undefined;
|
|
2343
|
+
modified?: number | undefined;
|
|
2344
|
+
}>;
|
|
1039
2345
|
type NotificationItem = z.infer<typeof NotificationItemSchema>;
|
|
1040
2346
|
type NotificationDetail = z.infer<typeof NotificationDetailSchema>;
|
|
1041
2347
|
type Trigger = z.infer<typeof TriggerSchema>;
|
|
@@ -1119,17 +2425,21 @@ interface IAPI$1 {
|
|
|
1119
2425
|
}
|
|
1120
2426
|
|
|
1121
2427
|
declare const NoteHistorySchema: z.ZodObject<{
|
|
1122
|
-
type: z.ZodEnum<
|
|
1123
|
-
deleted: "deleted";
|
|
1124
|
-
created: "created";
|
|
1125
|
-
updated: "updated";
|
|
1126
|
-
"asset-added": "asset-added";
|
|
1127
|
-
"asset-removed": "asset-removed";
|
|
1128
|
-
}>;
|
|
2428
|
+
type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
|
|
1129
2429
|
actorEmail: z.ZodString;
|
|
1130
2430
|
timestamp: z.ZodNumber;
|
|
1131
2431
|
details: z.ZodOptional<z.ZodString>;
|
|
1132
|
-
}, z.
|
|
2432
|
+
}, "strip", z.ZodTypeAny, {
|
|
2433
|
+
type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
|
|
2434
|
+
timestamp: number;
|
|
2435
|
+
actorEmail: string;
|
|
2436
|
+
details?: string | undefined;
|
|
2437
|
+
}, {
|
|
2438
|
+
type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
|
|
2439
|
+
timestamp: number;
|
|
2440
|
+
actorEmail: string;
|
|
2441
|
+
details?: string | undefined;
|
|
2442
|
+
}>;
|
|
1133
2443
|
declare const NoteSchema: z.ZodObject<{
|
|
1134
2444
|
id: z.ZodString;
|
|
1135
2445
|
userId: z.ZodString;
|
|
@@ -1147,24 +2457,110 @@ declare const NoteSchema: z.ZodObject<{
|
|
|
1147
2457
|
error: z.ZodOptional<z.ZodString>;
|
|
1148
2458
|
authorId: z.ZodString;
|
|
1149
2459
|
uploadedAt: z.ZodNumber;
|
|
1150
|
-
}, z.
|
|
2460
|
+
}, "strip", z.ZodTypeAny, {
|
|
2461
|
+
type: string;
|
|
2462
|
+
assetId: string;
|
|
2463
|
+
fileName: string;
|
|
2464
|
+
extension: string;
|
|
2465
|
+
fileSize: number;
|
|
2466
|
+
assetUrl: string;
|
|
2467
|
+
thumbnailUrl: string;
|
|
2468
|
+
authorId: string;
|
|
2469
|
+
uploadedAt: number;
|
|
2470
|
+
error?: string | undefined;
|
|
2471
|
+
duration?: number | undefined;
|
|
2472
|
+
progress?: number | undefined;
|
|
2473
|
+
}, {
|
|
2474
|
+
type: string;
|
|
2475
|
+
assetId: string;
|
|
2476
|
+
fileName: string;
|
|
2477
|
+
extension: string;
|
|
2478
|
+
fileSize: number;
|
|
2479
|
+
assetUrl: string;
|
|
2480
|
+
thumbnailUrl: string;
|
|
2481
|
+
authorId: string;
|
|
2482
|
+
uploadedAt: number;
|
|
2483
|
+
error?: string | undefined;
|
|
2484
|
+
duration?: number | undefined;
|
|
2485
|
+
progress?: number | undefined;
|
|
2486
|
+
}>, "many">;
|
|
1151
2487
|
title: z.ZodString;
|
|
1152
2488
|
content: z.ZodString;
|
|
1153
2489
|
createdAt: z.ZodNumber;
|
|
1154
2490
|
modified: z.ZodNumber;
|
|
1155
2491
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1156
|
-
type: z.ZodEnum<
|
|
1157
|
-
deleted: "deleted";
|
|
1158
|
-
created: "created";
|
|
1159
|
-
updated: "updated";
|
|
1160
|
-
"asset-added": "asset-added";
|
|
1161
|
-
"asset-removed": "asset-removed";
|
|
1162
|
-
}>;
|
|
2492
|
+
type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
|
|
1163
2493
|
actorEmail: z.ZodString;
|
|
1164
2494
|
timestamp: z.ZodNumber;
|
|
1165
2495
|
details: z.ZodOptional<z.ZodString>;
|
|
1166
|
-
}, z.
|
|
1167
|
-
|
|
2496
|
+
}, "strip", z.ZodTypeAny, {
|
|
2497
|
+
type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
|
|
2498
|
+
timestamp: number;
|
|
2499
|
+
actorEmail: string;
|
|
2500
|
+
details?: string | undefined;
|
|
2501
|
+
}, {
|
|
2502
|
+
type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
|
|
2503
|
+
timestamp: number;
|
|
2504
|
+
actorEmail: string;
|
|
2505
|
+
details?: string | undefined;
|
|
2506
|
+
}>, "many">>;
|
|
2507
|
+
}, "strip", z.ZodTypeAny, {
|
|
2508
|
+
id: string;
|
|
2509
|
+
userId: string;
|
|
2510
|
+
title: string;
|
|
2511
|
+
createdAt: number;
|
|
2512
|
+
modified: number;
|
|
2513
|
+
content: string;
|
|
2514
|
+
assets: {
|
|
2515
|
+
type: string;
|
|
2516
|
+
assetId: string;
|
|
2517
|
+
fileName: string;
|
|
2518
|
+
extension: string;
|
|
2519
|
+
fileSize: number;
|
|
2520
|
+
assetUrl: string;
|
|
2521
|
+
thumbnailUrl: string;
|
|
2522
|
+
authorId: string;
|
|
2523
|
+
uploadedAt: number;
|
|
2524
|
+
error?: string | undefined;
|
|
2525
|
+
duration?: number | undefined;
|
|
2526
|
+
progress?: number | undefined;
|
|
2527
|
+
}[];
|
|
2528
|
+
authorEmail: string;
|
|
2529
|
+
history?: {
|
|
2530
|
+
type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
|
|
2531
|
+
timestamp: number;
|
|
2532
|
+
actorEmail: string;
|
|
2533
|
+
details?: string | undefined;
|
|
2534
|
+
}[] | undefined;
|
|
2535
|
+
}, {
|
|
2536
|
+
id: string;
|
|
2537
|
+
userId: string;
|
|
2538
|
+
title: string;
|
|
2539
|
+
createdAt: number;
|
|
2540
|
+
modified: number;
|
|
2541
|
+
content: string;
|
|
2542
|
+
assets: {
|
|
2543
|
+
type: string;
|
|
2544
|
+
assetId: string;
|
|
2545
|
+
fileName: string;
|
|
2546
|
+
extension: string;
|
|
2547
|
+
fileSize: number;
|
|
2548
|
+
assetUrl: string;
|
|
2549
|
+
thumbnailUrl: string;
|
|
2550
|
+
authorId: string;
|
|
2551
|
+
uploadedAt: number;
|
|
2552
|
+
error?: string | undefined;
|
|
2553
|
+
duration?: number | undefined;
|
|
2554
|
+
progress?: number | undefined;
|
|
2555
|
+
}[];
|
|
2556
|
+
authorEmail: string;
|
|
2557
|
+
history?: {
|
|
2558
|
+
type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
|
|
2559
|
+
timestamp: number;
|
|
2560
|
+
actorEmail: string;
|
|
2561
|
+
details?: string | undefined;
|
|
2562
|
+
}[] | undefined;
|
|
2563
|
+
}>;
|
|
1168
2564
|
type Note = z.infer<typeof NoteSchema>;
|
|
1169
2565
|
type NoteHistory = z.infer<typeof NoteHistorySchema>;
|
|
1170
2566
|
|
|
@@ -1280,7 +2676,33 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
1280
2676
|
error: z.ZodOptional<z.ZodString>;
|
|
1281
2677
|
authorId: z.ZodString;
|
|
1282
2678
|
uploadedAt: z.ZodNumber;
|
|
1283
|
-
}, z.
|
|
2679
|
+
}, "strip", z.ZodTypeAny, {
|
|
2680
|
+
type: string;
|
|
2681
|
+
assetId: string;
|
|
2682
|
+
fileName: string;
|
|
2683
|
+
extension: string;
|
|
2684
|
+
fileSize: number;
|
|
2685
|
+
assetUrl: string;
|
|
2686
|
+
thumbnailUrl: string;
|
|
2687
|
+
authorId: string;
|
|
2688
|
+
uploadedAt: number;
|
|
2689
|
+
error?: string | undefined;
|
|
2690
|
+
duration?: number | undefined;
|
|
2691
|
+
progress?: number | undefined;
|
|
2692
|
+
}, {
|
|
2693
|
+
type: string;
|
|
2694
|
+
assetId: string;
|
|
2695
|
+
fileName: string;
|
|
2696
|
+
extension: string;
|
|
2697
|
+
fileSize: number;
|
|
2698
|
+
assetUrl: string;
|
|
2699
|
+
thumbnailUrl: string;
|
|
2700
|
+
authorId: string;
|
|
2701
|
+
uploadedAt: number;
|
|
2702
|
+
error?: string | undefined;
|
|
2703
|
+
duration?: number | undefined;
|
|
2704
|
+
progress?: number | undefined;
|
|
2705
|
+
}>;
|
|
1284
2706
|
type Asset = z.infer<typeof AssetSchema>;
|
|
1285
2707
|
|
|
1286
2708
|
declare const index_AssetSchema: typeof AssetSchema;
|