shred-api-client 2.1.5 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -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.core.$strip>;
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.core.$strip>>;
25
- }, z.core.$strip>;
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.core.$strip>>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>;
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.ZodEnum<typeof Type>;
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.core.$strip>;
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.core.$strip>>;
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.core.$strip>>;
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.core.$strip>;
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.core.$strip>;
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.core.$strip>>;
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.core.$strip>>;
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.core.$strip>;
161
- type: z.ZodOptional<z.ZodEnum<typeof Type>>;
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.core.$strip>>;
170
- }, z.core.$strip>;
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>;
@@ -270,7 +620,21 @@ declare const PreferencesSchema$1: z.ZodObject<{
270
620
  instagramLink: z.ZodOptional<z.ZodString>;
271
621
  bRoll: z.ZodOptional<z.ZodBoolean>;
272
622
  logo: z.ZodOptional<z.ZodString>;
273
- }, z.core.$strip>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ primaryColor?: string | undefined;
625
+ secondaryColor?: string | undefined;
626
+ facebookLink?: string | undefined;
627
+ instagramLink?: string | undefined;
628
+ bRoll?: boolean | undefined;
629
+ logo?: string | undefined;
630
+ }, {
631
+ primaryColor?: string | undefined;
632
+ secondaryColor?: string | undefined;
633
+ facebookLink?: string | undefined;
634
+ instagramLink?: string | undefined;
635
+ bRoll?: boolean | undefined;
636
+ logo?: string | undefined;
637
+ }>;
274
638
  declare const UserSchema: z.ZodObject<{
275
639
  id: z.ZodString;
276
640
  name: z.ZodString;
@@ -285,14 +649,70 @@ declare const UserSchema: z.ZodObject<{
285
649
  instagramLink: z.ZodOptional<z.ZodString>;
286
650
  bRoll: z.ZodOptional<z.ZodBoolean>;
287
651
  logo: z.ZodOptional<z.ZodString>;
288
- }, z.core.$strip>>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ primaryColor?: string | undefined;
654
+ secondaryColor?: string | undefined;
655
+ facebookLink?: string | undefined;
656
+ instagramLink?: string | undefined;
657
+ bRoll?: boolean | undefined;
658
+ logo?: string | undefined;
659
+ }, {
660
+ primaryColor?: string | undefined;
661
+ secondaryColor?: string | undefined;
662
+ facebookLink?: string | undefined;
663
+ instagramLink?: string | undefined;
664
+ bRoll?: boolean | undefined;
665
+ logo?: string | undefined;
666
+ }>>;
289
667
  tenantId: z.ZodOptional<z.ZodString>;
290
668
  editorId: z.ZodOptional<z.ZodString>;
291
669
  timezone: z.ZodOptional<z.ZodString>;
292
670
  experienceId: z.ZodOptional<z.ZodString>;
293
671
  customerId: z.ZodString;
294
- role: z.ZodEnum<typeof Role>;
295
- }, z.core.$strip>;
672
+ role: z.ZodNativeEnum<typeof Role>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ email: string;
675
+ id: string;
676
+ name: string;
677
+ customerId: string;
678
+ role: Role;
679
+ timezone?: string | undefined;
680
+ tenantId?: string | undefined;
681
+ preferences?: {
682
+ primaryColor?: string | undefined;
683
+ secondaryColor?: string | undefined;
684
+ facebookLink?: string | undefined;
685
+ instagramLink?: string | undefined;
686
+ bRoll?: boolean | undefined;
687
+ logo?: string | undefined;
688
+ } | undefined;
689
+ fcmToken?: string | undefined;
690
+ profession?: string | undefined;
691
+ photoUrl?: string | undefined;
692
+ editorId?: string | undefined;
693
+ experienceId?: string | undefined;
694
+ }, {
695
+ email: string;
696
+ id: string;
697
+ name: string;
698
+ customerId: string;
699
+ role: Role;
700
+ timezone?: string | undefined;
701
+ tenantId?: string | undefined;
702
+ preferences?: {
703
+ primaryColor?: string | undefined;
704
+ secondaryColor?: string | undefined;
705
+ facebookLink?: string | undefined;
706
+ instagramLink?: string | undefined;
707
+ bRoll?: boolean | undefined;
708
+ logo?: string | undefined;
709
+ } | undefined;
710
+ fcmToken?: string | undefined;
711
+ profession?: string | undefined;
712
+ photoUrl?: string | undefined;
713
+ editorId?: string | undefined;
714
+ experienceId?: string | undefined;
715
+ }>;
296
716
  type User = z.infer<typeof UserSchema>;
297
717
  type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
298
718
  type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
@@ -428,7 +848,19 @@ declare const PreferencesSchema: z.ZodObject<{
428
848
  primaryColor: z.ZodString;
429
849
  secondaryColor: z.ZodString;
430
850
  guidelinesUrl: z.ZodOptional<z.ZodString>;
431
- }, z.core.$strip>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ iconUrl: string;
853
+ logoUrl: string;
854
+ primaryColor: string;
855
+ secondaryColor: string;
856
+ guidelinesUrl?: string | undefined;
857
+ }, {
858
+ iconUrl: string;
859
+ logoUrl: string;
860
+ primaryColor: string;
861
+ secondaryColor: string;
862
+ guidelinesUrl?: string | undefined;
863
+ }>;
432
864
  declare const TenantSchema: z.ZodObject<{
433
865
  id: z.ZodString;
434
866
  name: z.ZodString;
@@ -440,7 +872,19 @@ declare const TenantSchema: z.ZodObject<{
440
872
  primaryColor: z.ZodString;
441
873
  secondaryColor: z.ZodString;
442
874
  guidelinesUrl: z.ZodOptional<z.ZodString>;
443
- }, z.core.$strip>;
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
  inviteCode: z.ZodString;
445
889
  totalUsersAllowed: z.ZodNumber;
446
890
  currentUsersSize: z.ZodOptional<z.ZodNumber>;
@@ -448,7 +892,7 @@ declare const TenantSchema: z.ZodObject<{
448
892
  defaultProductId: z.ZodOptional<z.ZodString>;
449
893
  defaultPlanId: z.ZodOptional<z.ZodString>;
450
894
  defaultCoupomCode: z.ZodOptional<z.ZodString>;
451
- allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
895
+ allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
896
  useOwnScripts: z.ZodOptional<z.ZodBoolean>;
453
897
  subscription: z.ZodOptional<z.ZodLazy<z.ZodObject<{
454
898
  id: z.ZodString;
@@ -465,7 +909,13 @@ declare const TenantSchema: z.ZodObject<{
465
909
  descriptions: z.ZodArray<z.ZodObject<{
466
910
  description: z.ZodString;
467
911
  subtitle: z.ZodString;
468
- }, z.core.$strip>>;
912
+ }, "strip", z.ZodTypeAny, {
913
+ description: string;
914
+ subtitle: string;
915
+ }, {
916
+ description: string;
917
+ subtitle: string;
918
+ }>, "many">;
469
919
  metadata: z.ZodAny;
470
920
  plans: z.ZodArray<z.ZodObject<{
471
921
  id: z.ZodString;
@@ -474,10 +924,58 @@ declare const TenantSchema: z.ZodObject<{
474
924
  interval: z.ZodString;
475
925
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
476
926
  subscriptionItemId: z.ZodString;
477
- }, z.core.$strip>>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ id: string;
929
+ metadata: Record<string, string>;
930
+ interval: string;
931
+ price: number;
932
+ currency: string;
933
+ subscriptionItemId: string;
934
+ }, {
935
+ id: string;
936
+ metadata: Record<string, string>;
937
+ interval: string;
938
+ price: number;
939
+ currency: string;
940
+ subscriptionItemId: string;
941
+ }>, "many">;
478
942
  percentOff: z.ZodDefault<z.ZodNumber>;
479
- }, z.core.$strip>;
480
- type: z.ZodOptional<z.ZodEnum<typeof Type>>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ id: string;
945
+ name: string;
946
+ descriptions: {
947
+ description: string;
948
+ subtitle: string;
949
+ }[];
950
+ plans: {
951
+ id: string;
952
+ metadata: Record<string, string>;
953
+ interval: string;
954
+ price: number;
955
+ currency: string;
956
+ subscriptionItemId: string;
957
+ }[];
958
+ percentOff: number;
959
+ metadata?: any;
960
+ }, {
961
+ id: string;
962
+ name: string;
963
+ descriptions: {
964
+ description: string;
965
+ subtitle: string;
966
+ }[];
967
+ plans: {
968
+ id: string;
969
+ metadata: Record<string, string>;
970
+ interval: string;
971
+ price: number;
972
+ currency: string;
973
+ subscriptionItemId: string;
974
+ }[];
975
+ metadata?: any;
976
+ percentOff?: number | undefined;
977
+ }>;
978
+ type: z.ZodOptional<z.ZodNativeEnum<typeof Type>>;
481
979
  plan: z.ZodOptional<z.ZodObject<{
482
980
  id: z.ZodString;
483
981
  currency: z.ZodString;
@@ -485,9 +983,211 @@ declare const TenantSchema: z.ZodObject<{
485
983
  interval: z.ZodString;
486
984
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
487
985
  subscriptionItemId: z.ZodString;
488
- }, z.core.$strip>>;
489
- }, z.core.$strip>>>;
490
- }, z.core.$strip>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ id: string;
988
+ metadata: Record<string, string>;
989
+ interval: string;
990
+ price: number;
991
+ currency: string;
992
+ subscriptionItemId: string;
993
+ }, {
994
+ id: string;
995
+ metadata: Record<string, string>;
996
+ interval: string;
997
+ price: number;
998
+ currency: string;
999
+ subscriptionItemId: string;
1000
+ }>>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ id: string;
1003
+ status: string;
1004
+ product: {
1005
+ id: string;
1006
+ name: string;
1007
+ descriptions: {
1008
+ description: string;
1009
+ subtitle: string;
1010
+ }[];
1011
+ plans: {
1012
+ id: string;
1013
+ metadata: Record<string, string>;
1014
+ interval: string;
1015
+ price: number;
1016
+ currency: string;
1017
+ subscriptionItemId: string;
1018
+ }[];
1019
+ percentOff: number;
1020
+ metadata?: any;
1021
+ };
1022
+ type?: Type | undefined;
1023
+ startDate?: number | undefined;
1024
+ daysUntilDue?: number | undefined;
1025
+ renewAutomatically?: boolean | undefined;
1026
+ currentPeriodStart?: number | undefined;
1027
+ currentPeriodEnd?: number | undefined;
1028
+ paymentMethodId?: string | undefined;
1029
+ plan?: {
1030
+ id: string;
1031
+ metadata: Record<string, string>;
1032
+ interval: string;
1033
+ price: number;
1034
+ currency: string;
1035
+ subscriptionItemId: string;
1036
+ } | undefined;
1037
+ }, {
1038
+ id: string;
1039
+ status: string;
1040
+ product: {
1041
+ id: string;
1042
+ name: string;
1043
+ descriptions: {
1044
+ description: string;
1045
+ subtitle: string;
1046
+ }[];
1047
+ plans: {
1048
+ id: string;
1049
+ metadata: Record<string, string>;
1050
+ interval: string;
1051
+ price: number;
1052
+ currency: string;
1053
+ subscriptionItemId: string;
1054
+ }[];
1055
+ metadata?: any;
1056
+ percentOff?: number | undefined;
1057
+ };
1058
+ type?: Type | undefined;
1059
+ startDate?: number | undefined;
1060
+ daysUntilDue?: number | undefined;
1061
+ renewAutomatically?: boolean | undefined;
1062
+ currentPeriodStart?: number | undefined;
1063
+ currentPeriodEnd?: number | undefined;
1064
+ paymentMethodId?: string | undefined;
1065
+ plan?: {
1066
+ id: string;
1067
+ metadata: Record<string, string>;
1068
+ interval: string;
1069
+ price: number;
1070
+ currency: string;
1071
+ subscriptionItemId: string;
1072
+ } | undefined;
1073
+ }>>>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ id: string;
1076
+ name: string;
1077
+ isActive: boolean;
1078
+ isSubscriptionActive: boolean;
1079
+ preferences: {
1080
+ iconUrl: string;
1081
+ logoUrl: string;
1082
+ primaryColor: string;
1083
+ secondaryColor: string;
1084
+ guidelinesUrl?: string | undefined;
1085
+ };
1086
+ inviteCode: string;
1087
+ totalUsersAllowed: number;
1088
+ chargeByEmail: boolean;
1089
+ currentUsersSize?: number | undefined;
1090
+ defaultProductId?: string | undefined;
1091
+ defaultPlanId?: string | undefined;
1092
+ defaultCoupomCode?: string | undefined;
1093
+ allowedProducts?: string[] | undefined;
1094
+ useOwnScripts?: boolean | undefined;
1095
+ subscription?: {
1096
+ id: string;
1097
+ status: string;
1098
+ product: {
1099
+ id: string;
1100
+ name: string;
1101
+ descriptions: {
1102
+ description: string;
1103
+ subtitle: string;
1104
+ }[];
1105
+ plans: {
1106
+ id: string;
1107
+ metadata: Record<string, string>;
1108
+ interval: string;
1109
+ price: number;
1110
+ currency: string;
1111
+ subscriptionItemId: string;
1112
+ }[];
1113
+ percentOff: number;
1114
+ metadata?: any;
1115
+ };
1116
+ type?: Type | undefined;
1117
+ startDate?: number | undefined;
1118
+ daysUntilDue?: number | undefined;
1119
+ renewAutomatically?: boolean | undefined;
1120
+ currentPeriodStart?: number | undefined;
1121
+ currentPeriodEnd?: number | undefined;
1122
+ paymentMethodId?: string | undefined;
1123
+ plan?: {
1124
+ id: string;
1125
+ metadata: Record<string, string>;
1126
+ interval: string;
1127
+ price: number;
1128
+ currency: string;
1129
+ subscriptionItemId: string;
1130
+ } | undefined;
1131
+ } | undefined;
1132
+ }, {
1133
+ id: string;
1134
+ name: string;
1135
+ isActive: boolean;
1136
+ isSubscriptionActive: boolean;
1137
+ preferences: {
1138
+ iconUrl: string;
1139
+ logoUrl: string;
1140
+ primaryColor: string;
1141
+ secondaryColor: string;
1142
+ guidelinesUrl?: string | undefined;
1143
+ };
1144
+ inviteCode: string;
1145
+ totalUsersAllowed: number;
1146
+ chargeByEmail: boolean;
1147
+ currentUsersSize?: number | undefined;
1148
+ defaultProductId?: string | undefined;
1149
+ defaultPlanId?: string | undefined;
1150
+ defaultCoupomCode?: string | undefined;
1151
+ allowedProducts?: string[] | undefined;
1152
+ useOwnScripts?: boolean | undefined;
1153
+ subscription?: {
1154
+ id: string;
1155
+ status: string;
1156
+ product: {
1157
+ id: string;
1158
+ name: string;
1159
+ descriptions: {
1160
+ description: string;
1161
+ subtitle: string;
1162
+ }[];
1163
+ plans: {
1164
+ id: string;
1165
+ metadata: Record<string, string>;
1166
+ interval: string;
1167
+ price: number;
1168
+ currency: string;
1169
+ subscriptionItemId: string;
1170
+ }[];
1171
+ metadata?: any;
1172
+ percentOff?: number | undefined;
1173
+ };
1174
+ type?: Type | undefined;
1175
+ startDate?: number | undefined;
1176
+ daysUntilDue?: number | undefined;
1177
+ renewAutomatically?: boolean | undefined;
1178
+ currentPeriodStart?: number | undefined;
1179
+ currentPeriodEnd?: number | undefined;
1180
+ paymentMethodId?: string | undefined;
1181
+ plan?: {
1182
+ id: string;
1183
+ metadata: Record<string, string>;
1184
+ interval: string;
1185
+ price: number;
1186
+ currency: string;
1187
+ subscriptionItemId: string;
1188
+ } | undefined;
1189
+ } | undefined;
1190
+ }>;
491
1191
  type Tenant = z.infer<typeof TenantSchema>;
492
1192
  type Preferences = z.infer<typeof PreferencesSchema>;
493
1193
 
@@ -534,17 +1234,45 @@ declare namespace index$8 {
534
1234
 
535
1235
  declare const TrackParamSchema: z.ZodObject<{
536
1236
  name: z.ZodString;
537
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
538
- }, z.core.$strip>;
1237
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1238
+ }, "strip", z.ZodTypeAny, {
1239
+ value: string | number;
1240
+ name: string;
1241
+ }, {
1242
+ value: string | number;
1243
+ name: string;
1244
+ }>;
539
1245
  declare const TrackSchema: z.ZodObject<{
540
1246
  category: z.ZodString;
541
1247
  label: z.ZodString;
542
1248
  action: z.ZodString;
543
1249
  params: z.ZodOptional<z.ZodArray<z.ZodObject<{
544
1250
  name: z.ZodString;
545
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
546
- }, z.core.$strip>>>;
547
- }, z.core.$strip>;
1251
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ value: string | number;
1254
+ name: string;
1255
+ }, {
1256
+ value: string | number;
1257
+ name: string;
1258
+ }>, "many">>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ label: string;
1261
+ category: string;
1262
+ action: string;
1263
+ params?: {
1264
+ value: string | number;
1265
+ name: string;
1266
+ }[] | undefined;
1267
+ }, {
1268
+ label: string;
1269
+ category: string;
1270
+ action: string;
1271
+ params?: {
1272
+ value: string | number;
1273
+ name: string;
1274
+ }[] | undefined;
1275
+ }>;
548
1276
  type Track = z.infer<typeof TrackSchema>;
549
1277
  type TrackParam = z.infer<typeof TrackParamSchema>;
550
1278
 
@@ -569,7 +1297,15 @@ declare const EmailSchema: z.ZodObject<{
569
1297
  to: z.ZodOptional<z.ZodString>;
570
1298
  subject: z.ZodString;
571
1299
  body: z.ZodString;
572
- }, z.core.$strip>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ body: string;
1302
+ subject: string;
1303
+ to?: string | undefined;
1304
+ }, {
1305
+ body: string;
1306
+ subject: string;
1307
+ to?: string | undefined;
1308
+ }>;
573
1309
  type Email = z.infer<typeof EmailSchema>;
574
1310
 
575
1311
  interface IAPI$5 {
@@ -610,42 +1346,71 @@ type Style = {
610
1346
  label: string;
611
1347
  };
612
1348
  declare const TimelineItemSchema: z.ZodObject<{
613
- status: z.ZodEnum<typeof Status$1>;
1349
+ status: z.ZodNativeEnum<typeof Status$1>;
614
1350
  title: z.ZodString;
615
1351
  description: z.ZodString;
616
1352
  timestamp: z.ZodNumber;
617
- metadata: z.ZodAny;
618
- }, z.core.$strip>;
619
- declare const FeedbackSchema: z.ZodObject<{
620
- criteria: z.ZodArray<z.ZodObject<{
621
- id: z.ZodString;
622
- label: z.ZodString;
623
- score: z.ZodNumber;
624
- comment: z.ZodOptional<z.ZodString>;
625
- }, z.core.$strip>>;
626
- comment: z.ZodOptional<z.ZodString>;
627
- }, z.core.$strip>;
1353
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ title: string;
1356
+ status: Status$1;
1357
+ metadata: Record<string, any>;
1358
+ description: string;
1359
+ timestamp: number;
1360
+ }, {
1361
+ title: string;
1362
+ status: Status$1;
1363
+ metadata: Record<string, any>;
1364
+ description: string;
1365
+ timestamp: number;
1366
+ }>;
628
1367
  declare const ProjectSchema: z.ZodObject<{
629
1368
  id: z.ZodString;
630
1369
  title: z.ZodString;
631
1370
  instructions: z.ZodString;
632
1371
  submitMonth: z.ZodString;
633
- captionStyle: z.ZodEnum<typeof CaptionStyle>;
1372
+ captionStyle: z.ZodNativeEnum<typeof CaptionStyle>;
634
1373
  finalVideoId: z.ZodOptional<z.ZodString>;
635
1374
  thumbnailUrl: z.ZodOptional<z.ZodString>;
636
1375
  modified: z.ZodNumber;
637
- captionSuggestion: z.ZodOptional<z.ZodString>;
638
- editorId: z.ZodOptional<z.ZodString>;
639
- userId: z.ZodString;
640
1376
  feedback: z.ZodOptional<z.ZodObject<{
641
1377
  criteria: z.ZodArray<z.ZodObject<{
642
1378
  id: z.ZodString;
643
1379
  label: z.ZodString;
644
1380
  score: z.ZodNumber;
645
1381
  comment: z.ZodOptional<z.ZodString>;
646
- }, z.core.$strip>>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ id: string;
1384
+ label: string;
1385
+ score: number;
1386
+ comment?: string | undefined;
1387
+ }, {
1388
+ id: string;
1389
+ label: string;
1390
+ score: number;
1391
+ comment?: string | undefined;
1392
+ }>, "many">;
647
1393
  comment: z.ZodOptional<z.ZodString>;
648
- }, z.core.$strip>>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ criteria: {
1396
+ id: string;
1397
+ label: string;
1398
+ score: number;
1399
+ comment?: string | undefined;
1400
+ }[];
1401
+ comment?: string | undefined;
1402
+ }, {
1403
+ criteria: {
1404
+ id: string;
1405
+ label: string;
1406
+ score: number;
1407
+ comment?: string | undefined;
1408
+ }[];
1409
+ comment?: string | undefined;
1410
+ }>>;
1411
+ captionSuggestion: z.ZodOptional<z.ZodString>;
1412
+ editorId: z.ZodOptional<z.ZodString>;
1413
+ userId: z.ZodString;
649
1414
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
650
1415
  assetId: z.ZodString;
651
1416
  fileName: z.ZodString;
@@ -659,20 +1424,152 @@ declare const ProjectSchema: z.ZodObject<{
659
1424
  error: z.ZodOptional<z.ZodString>;
660
1425
  authorId: z.ZodString;
661
1426
  uploadedAt: z.ZodNumber;
662
- }, z.core.$strip>>>;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ type: string;
1429
+ assetId: string;
1430
+ fileName: string;
1431
+ extension: string;
1432
+ fileSize: number;
1433
+ assetUrl: string;
1434
+ thumbnailUrl: string;
1435
+ authorId: string;
1436
+ uploadedAt: number;
1437
+ error?: string | undefined;
1438
+ duration?: number | undefined;
1439
+ progress?: number | undefined;
1440
+ }, {
1441
+ type: string;
1442
+ assetId: string;
1443
+ fileName: string;
1444
+ extension: string;
1445
+ fileSize: number;
1446
+ assetUrl: string;
1447
+ thumbnailUrl: string;
1448
+ authorId: string;
1449
+ uploadedAt: number;
1450
+ error?: string | undefined;
1451
+ duration?: number | undefined;
1452
+ progress?: number | undefined;
1453
+ }>, "many">>;
663
1454
  expirationTimestamp: z.ZodNumber;
664
1455
  isFree: z.ZodOptional<z.ZodBoolean>;
665
1456
  timeline: z.ZodArray<z.ZodObject<{
666
- status: z.ZodEnum<typeof Status$1>;
1457
+ status: z.ZodNativeEnum<typeof Status$1>;
667
1458
  title: z.ZodString;
668
1459
  description: z.ZodString;
669
1460
  timestamp: z.ZodNumber;
670
- metadata: z.ZodAny;
671
- }, z.core.$strip>>;
1461
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ title: string;
1464
+ status: Status$1;
1465
+ metadata: Record<string, any>;
1466
+ description: string;
1467
+ timestamp: number;
1468
+ }, {
1469
+ title: string;
1470
+ status: Status$1;
1471
+ metadata: Record<string, any>;
1472
+ description: string;
1473
+ timestamp: number;
1474
+ }>, "many">;
672
1475
  submitTimestamp: z.ZodNumber;
673
1476
  tenantId: z.ZodOptional<z.ZodString>;
674
- status: z.ZodEnum<typeof Status$1>;
675
- }, z.core.$strip>;
1477
+ status: z.ZodNativeEnum<typeof Status$1>;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ id: string;
1480
+ userId: string;
1481
+ title: string;
1482
+ status: Status$1;
1483
+ modified: number;
1484
+ instructions: string;
1485
+ submitMonth: string;
1486
+ captionStyle: CaptionStyle;
1487
+ expirationTimestamp: number;
1488
+ timeline: {
1489
+ title: string;
1490
+ status: Status$1;
1491
+ metadata: Record<string, any>;
1492
+ description: string;
1493
+ timestamp: number;
1494
+ }[];
1495
+ submitTimestamp: number;
1496
+ tenantId?: string | undefined;
1497
+ editorId?: string | undefined;
1498
+ thumbnailUrl?: string | undefined;
1499
+ finalVideoId?: string | undefined;
1500
+ feedback?: {
1501
+ criteria: {
1502
+ id: string;
1503
+ label: string;
1504
+ score: number;
1505
+ comment?: string | undefined;
1506
+ }[];
1507
+ comment?: string | undefined;
1508
+ } | undefined;
1509
+ captionSuggestion?: string | undefined;
1510
+ assets?: {
1511
+ type: string;
1512
+ assetId: string;
1513
+ fileName: string;
1514
+ extension: string;
1515
+ fileSize: number;
1516
+ assetUrl: string;
1517
+ thumbnailUrl: string;
1518
+ authorId: string;
1519
+ uploadedAt: number;
1520
+ error?: string | undefined;
1521
+ duration?: number | undefined;
1522
+ progress?: number | undefined;
1523
+ }[] | undefined;
1524
+ isFree?: boolean | undefined;
1525
+ }, {
1526
+ id: string;
1527
+ userId: string;
1528
+ title: string;
1529
+ status: Status$1;
1530
+ modified: number;
1531
+ instructions: string;
1532
+ submitMonth: string;
1533
+ captionStyle: CaptionStyle;
1534
+ expirationTimestamp: number;
1535
+ timeline: {
1536
+ title: string;
1537
+ status: Status$1;
1538
+ metadata: Record<string, any>;
1539
+ description: string;
1540
+ timestamp: number;
1541
+ }[];
1542
+ submitTimestamp: number;
1543
+ tenantId?: string | undefined;
1544
+ editorId?: string | undefined;
1545
+ thumbnailUrl?: string | undefined;
1546
+ finalVideoId?: string | undefined;
1547
+ feedback?: {
1548
+ criteria: {
1549
+ id: string;
1550
+ label: string;
1551
+ score: number;
1552
+ comment?: string | undefined;
1553
+ }[];
1554
+ comment?: string | undefined;
1555
+ } | undefined;
1556
+ captionSuggestion?: string | undefined;
1557
+ assets?: {
1558
+ type: string;
1559
+ assetId: string;
1560
+ fileName: string;
1561
+ extension: string;
1562
+ fileSize: number;
1563
+ assetUrl: string;
1564
+ thumbnailUrl: string;
1565
+ authorId: string;
1566
+ uploadedAt: number;
1567
+ error?: string | undefined;
1568
+ duration?: number | undefined;
1569
+ progress?: number | undefined;
1570
+ }[] | undefined;
1571
+ isFree?: boolean | undefined;
1572
+ }>;
676
1573
  type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
677
1574
  type SendToApproval = {
678
1575
  video: string;
@@ -685,7 +1582,6 @@ type Approve = {
685
1582
  };
686
1583
  type Project = z.infer<typeof ProjectSchema>;
687
1584
  type TimelineItem = z.infer<typeof TimelineItemSchema>;
688
- type Feedback = z.infer<typeof FeedbackSchema>;
689
1585
 
690
1586
  interface IAPI$4 {
691
1587
  reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
@@ -781,8 +1677,6 @@ declare const Endpoints$3: {
781
1677
  type index$5_Approve = Approve;
782
1678
  type index$5_CaptionStyle = CaptionStyle;
783
1679
  declare const index$5_CaptionStyle: typeof CaptionStyle;
784
- type index$5_Feedback = Feedback;
785
- declare const index$5_FeedbackSchema: typeof FeedbackSchema;
786
1680
  type index$5_ProjectCreation = ProjectCreation;
787
1681
  declare const index$5_ProjectSchema: typeof ProjectSchema;
788
1682
  type index$5_SendToApproval = SendToApproval;
@@ -791,7 +1685,7 @@ declare const index$5_Styles: typeof Styles;
791
1685
  type index$5_TimelineItem = TimelineItem;
792
1686
  declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
793
1687
  declare namespace index$5 {
794
- export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
1688
+ export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
795
1689
  }
796
1690
 
797
1691
  declare const DailyMilestoneSchema: z.ZodObject<{
@@ -799,7 +1693,17 @@ declare const DailyMilestoneSchema: z.ZodObject<{
799
1693
  date: z.ZodString;
800
1694
  target: z.ZodNumber;
801
1695
  progress: z.ZodNumber;
802
- }, z.core.$strip>;
1696
+ }, "strip", z.ZodTypeAny, {
1697
+ id: string;
1698
+ date: string;
1699
+ progress: number;
1700
+ target: number;
1701
+ }, {
1702
+ id: string;
1703
+ date: string;
1704
+ progress: number;
1705
+ target: number;
1706
+ }>;
803
1707
  declare const GoalSchema: z.ZodObject<{
804
1708
  id: z.ZodString;
805
1709
  editorId: z.ZodString;
@@ -812,8 +1716,44 @@ declare const GoalSchema: z.ZodObject<{
812
1716
  date: z.ZodString;
813
1717
  target: z.ZodNumber;
814
1718
  progress: z.ZodNumber;
815
- }, z.core.$strip>>;
816
- }, z.core.$strip>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ id: string;
1721
+ date: string;
1722
+ progress: number;
1723
+ target: number;
1724
+ }, {
1725
+ id: string;
1726
+ date: string;
1727
+ progress: number;
1728
+ target: number;
1729
+ }>, "many">;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ id: string;
1732
+ createdAt: number;
1733
+ editorId: string;
1734
+ progress: number;
1735
+ target: number;
1736
+ isoWeek: string;
1737
+ dailyMilestones: {
1738
+ id: string;
1739
+ date: string;
1740
+ progress: number;
1741
+ target: number;
1742
+ }[];
1743
+ }, {
1744
+ id: string;
1745
+ createdAt: number;
1746
+ editorId: string;
1747
+ progress: number;
1748
+ target: number;
1749
+ isoWeek: string;
1750
+ dailyMilestones: {
1751
+ id: string;
1752
+ date: string;
1753
+ progress: number;
1754
+ target: number;
1755
+ }[];
1756
+ }>;
817
1757
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
818
1758
  type Goal = z.infer<typeof GoalSchema>;
819
1759
 
@@ -874,113 +1814,413 @@ declare const NotificationItemSchema: z.ZodObject<{
874
1814
  triggerId: z.ZodOptional<z.ZodString>;
875
1815
  title: z.ZodString;
876
1816
  body: z.ZodString;
877
- status: z.ZodEnum<{
878
- failed: "failed";
879
- delivered: "delivered";
880
- deleted: "deleted";
881
- }>;
1817
+ status: z.ZodEnum<["failed", "delivered", "deleted"]>;
882
1818
  deliveredAt: z.ZodNumber;
883
1819
  openedAt: z.ZodOptional<z.ZodNumber>;
884
1820
  deletedAt: z.ZodOptional<z.ZodNumber>;
885
1821
  cta: z.ZodOptional<z.ZodObject<{
886
1822
  label: z.ZodString;
887
1823
  url: z.ZodString;
888
- }, z.core.$strip>>;
889
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ label: string;
1826
+ url: string;
1827
+ }, {
1828
+ label: string;
1829
+ url: string;
1830
+ }>>;
1831
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
890
1832
  error: z.ZodOptional<z.ZodString>;
891
- }, z.core.$strip>;
892
- declare const NotificationDetailSchema: z.ZodObject<{
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ id: string;
1835
+ userId: string;
1836
+ title: string;
1837
+ body: string;
1838
+ status: "failed" | "delivered" | "deleted";
1839
+ deliveredAt: number;
1840
+ metadata: Record<string, string | number>;
1841
+ triggerId?: string | undefined;
1842
+ openedAt?: number | undefined;
1843
+ deletedAt?: number | undefined;
1844
+ cta?: {
1845
+ label: string;
1846
+ url: string;
1847
+ } | undefined;
1848
+ error?: string | undefined;
1849
+ }, {
1850
+ id: string;
1851
+ userId: string;
1852
+ title: string;
1853
+ body: string;
1854
+ status: "failed" | "delivered" | "deleted";
1855
+ deliveredAt: number;
1856
+ metadata: Record<string, string | number>;
1857
+ triggerId?: string | undefined;
1858
+ openedAt?: number | undefined;
1859
+ deletedAt?: number | undefined;
1860
+ cta?: {
1861
+ label: string;
1862
+ url: string;
1863
+ } | undefined;
1864
+ error?: string | undefined;
1865
+ }>;
1866
+ declare const NotificationDetailSchema: z.ZodObject<Pick<{
1867
+ id: z.ZodString;
893
1868
  userId: z.ZodString;
1869
+ triggerId: z.ZodOptional<z.ZodString>;
894
1870
  title: z.ZodString;
895
1871
  body: z.ZodString;
896
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
897
- }, z.core.$strip>;
1872
+ status: z.ZodEnum<["failed", "delivered", "deleted"]>;
1873
+ deliveredAt: z.ZodNumber;
1874
+ openedAt: z.ZodOptional<z.ZodNumber>;
1875
+ deletedAt: z.ZodOptional<z.ZodNumber>;
1876
+ cta: z.ZodOptional<z.ZodObject<{
1877
+ label: z.ZodString;
1878
+ url: z.ZodString;
1879
+ }, "strip", z.ZodTypeAny, {
1880
+ label: string;
1881
+ url: string;
1882
+ }, {
1883
+ label: string;
1884
+ url: string;
1885
+ }>>;
1886
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1887
+ error: z.ZodOptional<z.ZodString>;
1888
+ }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
1889
+ userId: string;
1890
+ title: string;
1891
+ body: string;
1892
+ metadata: Record<string, string | number>;
1893
+ }, {
1894
+ userId: string;
1895
+ title: string;
1896
+ body: string;
1897
+ metadata: Record<string, string | number>;
1898
+ }>;
898
1899
  declare const CriteriaSchema: z.ZodObject<{
899
- type: z.ZodEnum<typeof CriteriaType>;
1900
+ type: z.ZodNativeEnum<typeof CriteriaType>;
900
1901
  params: z.ZodRecord<z.ZodString, z.ZodAny>;
901
- }, z.core.$strip>;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ params: Record<string, any>;
1904
+ type: CriteriaType;
1905
+ }, {
1906
+ params: Record<string, any>;
1907
+ type: CriteriaType;
1908
+ }>;
902
1909
  declare const HistorySchema: z.ZodObject<{
903
1910
  batchId: z.ZodString;
904
1911
  executedAt: z.ZodNumber;
905
1912
  timezone: z.ZodString;
906
- status: z.ZodEnum<{
907
- failed: "failed";
908
- success: "success";
909
- info: "info";
910
- warn: "warn";
911
- }>;
1913
+ status: z.ZodEnum<["success", "failed", "info", "warn"]>;
912
1914
  users: z.ZodObject<{
913
1915
  total: z.ZodNumber;
914
1916
  success: z.ZodNumber;
915
1917
  error: z.ZodNumber;
916
- }, z.core.$strip>;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ error: number;
1920
+ success: number;
1921
+ total: number;
1922
+ }, {
1923
+ error: number;
1924
+ success: number;
1925
+ total: number;
1926
+ }>;
917
1927
  errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
918
1928
  token: z.ZodString;
919
1929
  error: z.ZodString;
920
- }, z.core.$strip>>>;
1930
+ }, "strip", z.ZodTypeAny, {
1931
+ token: string;
1932
+ error: string;
1933
+ }, {
1934
+ token: string;
1935
+ error: string;
1936
+ }>, "many">>;
921
1937
  executionTimeDuration: z.ZodOptional<z.ZodNumber>;
922
- }, z.core.$strip>;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ status: "failed" | "success" | "info" | "warn";
1940
+ batchId: string;
1941
+ executedAt: number;
1942
+ timezone: string;
1943
+ users: {
1944
+ error: number;
1945
+ success: number;
1946
+ total: number;
1947
+ };
1948
+ errorList?: {
1949
+ token: string;
1950
+ error: string;
1951
+ }[] | undefined;
1952
+ executionTimeDuration?: number | undefined;
1953
+ }, {
1954
+ status: "failed" | "success" | "info" | "warn";
1955
+ batchId: string;
1956
+ executedAt: number;
1957
+ timezone: string;
1958
+ users: {
1959
+ error: number;
1960
+ success: number;
1961
+ total: number;
1962
+ };
1963
+ errorList?: {
1964
+ token: string;
1965
+ error: string;
1966
+ }[] | undefined;
1967
+ executionTimeDuration?: number | undefined;
1968
+ }>;
923
1969
  declare const RecurrenceRuleSchema: z.ZodObject<{
924
- frequency: z.ZodEnum<typeof Frequency>;
1970
+ frequency: z.ZodNativeEnum<typeof Frequency>;
925
1971
  interval: z.ZodNumber;
926
- weekDays: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof WeekDay>>>;
1972
+ weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
927
1973
  dayOfMonth: z.ZodOptional<z.ZodNumber>;
928
1974
  endDate: z.ZodOptional<z.ZodString>;
929
1975
  ocurrences: z.ZodOptional<z.ZodNumber>;
930
- }, z.core.$strip>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ frequency: Frequency;
1978
+ interval: number;
1979
+ weekDays?: WeekDay[] | undefined;
1980
+ dayOfMonth?: number | undefined;
1981
+ endDate?: string | undefined;
1982
+ ocurrences?: number | undefined;
1983
+ }, {
1984
+ frequency: Frequency;
1985
+ interval: number;
1986
+ weekDays?: WeekDay[] | undefined;
1987
+ dayOfMonth?: number | undefined;
1988
+ endDate?: string | undefined;
1989
+ ocurrences?: number | undefined;
1990
+ }>;
931
1991
  declare const TriggerSchema: z.ZodObject<{
932
1992
  id: z.ZodString;
933
1993
  title: z.ZodString;
934
1994
  description: z.ZodString;
935
- transportType: z.ZodArray<z.ZodEnum<typeof TransportType>>;
936
- notification: z.ZodObject<{
1995
+ transportType: z.ZodArray<z.ZodNativeEnum<typeof TransportType>, "many">;
1996
+ notification: z.ZodObject<Pick<{
1997
+ id: z.ZodString;
937
1998
  userId: z.ZodString;
1999
+ triggerId: z.ZodOptional<z.ZodString>;
938
2000
  title: z.ZodString;
939
2001
  body: z.ZodString;
940
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
941
- }, z.core.$strip>;
2002
+ status: z.ZodEnum<["failed", "delivered", "deleted"]>;
2003
+ deliveredAt: z.ZodNumber;
2004
+ openedAt: z.ZodOptional<z.ZodNumber>;
2005
+ deletedAt: z.ZodOptional<z.ZodNumber>;
2006
+ cta: z.ZodOptional<z.ZodObject<{
2007
+ label: z.ZodString;
2008
+ url: z.ZodString;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ label: string;
2011
+ url: string;
2012
+ }, {
2013
+ label: string;
2014
+ url: string;
2015
+ }>>;
2016
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2017
+ error: z.ZodOptional<z.ZodString>;
2018
+ }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
2019
+ userId: string;
2020
+ title: string;
2021
+ body: string;
2022
+ metadata: Record<string, string | number>;
2023
+ }, {
2024
+ userId: string;
2025
+ title: string;
2026
+ body: string;
2027
+ metadata: Record<string, string | number>;
2028
+ }>;
942
2029
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
2030
  batchId: z.ZodString;
944
2031
  executedAt: z.ZodNumber;
945
2032
  timezone: z.ZodString;
946
- status: z.ZodEnum<{
947
- failed: "failed";
948
- success: "success";
949
- info: "info";
950
- warn: "warn";
951
- }>;
2033
+ status: z.ZodEnum<["success", "failed", "info", "warn"]>;
952
2034
  users: z.ZodObject<{
953
2035
  total: z.ZodNumber;
954
2036
  success: z.ZodNumber;
955
2037
  error: z.ZodNumber;
956
- }, z.core.$strip>;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ error: number;
2040
+ success: number;
2041
+ total: number;
2042
+ }, {
2043
+ error: number;
2044
+ success: number;
2045
+ total: number;
2046
+ }>;
957
2047
  errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
2048
  token: z.ZodString;
959
2049
  error: z.ZodString;
960
- }, z.core.$strip>>>;
2050
+ }, "strip", z.ZodTypeAny, {
2051
+ token: string;
2052
+ error: string;
2053
+ }, {
2054
+ token: string;
2055
+ error: string;
2056
+ }>, "many">>;
961
2057
  executionTimeDuration: z.ZodOptional<z.ZodNumber>;
962
- }, z.core.$strip>>>;
963
- status: z.ZodEnum<typeof Status>;
2058
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
2074
+ status: "failed" | "success" | "info" | "warn";
2075
+ batchId: string;
2076
+ executedAt: number;
2077
+ timezone: string;
2078
+ users: {
2079
+ error: number;
2080
+ success: number;
2081
+ total: number;
2082
+ };
2083
+ errorList?: {
2084
+ token: string;
2085
+ error: string;
2086
+ }[] | undefined;
2087
+ executionTimeDuration?: number | undefined;
2088
+ }>, "many">>;
2089
+ status: z.ZodNativeEnum<typeof Status>;
964
2090
  recurrence: z.ZodOptional<z.ZodObject<{
965
- frequency: z.ZodEnum<typeof Frequency>;
2091
+ frequency: z.ZodNativeEnum<typeof Frequency>;
966
2092
  interval: z.ZodNumber;
967
- weekDays: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof WeekDay>>>;
2093
+ weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
968
2094
  dayOfMonth: z.ZodOptional<z.ZodNumber>;
969
2095
  endDate: z.ZodOptional<z.ZodString>;
970
2096
  ocurrences: z.ZodOptional<z.ZodNumber>;
971
- }, z.core.$strip>>;
2097
+ }, "strip", z.ZodTypeAny, {
2098
+ frequency: Frequency;
2099
+ interval: number;
2100
+ weekDays?: WeekDay[] | undefined;
2101
+ dayOfMonth?: number | undefined;
2102
+ endDate?: string | undefined;
2103
+ ocurrences?: number | undefined;
2104
+ }, {
2105
+ frequency: Frequency;
2106
+ interval: number;
2107
+ weekDays?: WeekDay[] | undefined;
2108
+ dayOfMonth?: number | undefined;
2109
+ endDate?: string | undefined;
2110
+ ocurrences?: number | undefined;
2111
+ }>>;
972
2112
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
973
- tenantIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2113
+ tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
974
2114
  executionDate: z.ZodOptional<z.ZodString>;
975
2115
  timeOfDay: z.ZodString;
976
2116
  criteria: z.ZodObject<{
977
- type: z.ZodEnum<typeof CriteriaType>;
2117
+ type: z.ZodNativeEnum<typeof CriteriaType>;
978
2118
  params: z.ZodRecord<z.ZodString, z.ZodAny>;
979
- }, z.core.$strip>;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ params: Record<string, any>;
2121
+ type: CriteriaType;
2122
+ }, {
2123
+ params: Record<string, any>;
2124
+ type: CriteriaType;
2125
+ }>;
980
2126
  nextExecution: z.ZodOptional<z.ZodNumber>;
981
2127
  createdAt: z.ZodOptional<z.ZodNumber>;
982
2128
  modified: z.ZodOptional<z.ZodNumber>;
983
- }, z.core.$strip>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ id: string;
2131
+ title: string;
2132
+ status: Status;
2133
+ description: string;
2134
+ transportType: TransportType[];
2135
+ notification: {
2136
+ userId: string;
2137
+ title: string;
2138
+ body: string;
2139
+ metadata: Record<string, string | number>;
2140
+ };
2141
+ timeOfDay: string;
2142
+ criteria: {
2143
+ params: Record<string, any>;
2144
+ type: CriteriaType;
2145
+ };
2146
+ timezone?: string | null | undefined;
2147
+ history?: {
2148
+ status: "failed" | "success" | "info" | "warn";
2149
+ batchId: string;
2150
+ executedAt: number;
2151
+ timezone: string;
2152
+ users: {
2153
+ error: number;
2154
+ success: number;
2155
+ total: number;
2156
+ };
2157
+ errorList?: {
2158
+ token: string;
2159
+ error: string;
2160
+ }[] | undefined;
2161
+ executionTimeDuration?: number | undefined;
2162
+ }[] | undefined;
2163
+ recurrence?: {
2164
+ frequency: Frequency;
2165
+ interval: number;
2166
+ weekDays?: WeekDay[] | undefined;
2167
+ dayOfMonth?: number | undefined;
2168
+ endDate?: string | undefined;
2169
+ ocurrences?: number | undefined;
2170
+ } | undefined;
2171
+ tenantIds?: string[] | undefined;
2172
+ executionDate?: string | undefined;
2173
+ nextExecution?: number | undefined;
2174
+ createdAt?: number | undefined;
2175
+ modified?: number | undefined;
2176
+ }, {
2177
+ id: string;
2178
+ title: string;
2179
+ status: Status;
2180
+ description: string;
2181
+ transportType: TransportType[];
2182
+ notification: {
2183
+ userId: string;
2184
+ title: string;
2185
+ body: string;
2186
+ metadata: Record<string, string | number>;
2187
+ };
2188
+ timeOfDay: string;
2189
+ criteria: {
2190
+ params: Record<string, any>;
2191
+ type: CriteriaType;
2192
+ };
2193
+ timezone?: string | null | undefined;
2194
+ history?: {
2195
+ status: "failed" | "success" | "info" | "warn";
2196
+ batchId: string;
2197
+ executedAt: number;
2198
+ timezone: string;
2199
+ users: {
2200
+ error: number;
2201
+ success: number;
2202
+ total: number;
2203
+ };
2204
+ errorList?: {
2205
+ token: string;
2206
+ error: string;
2207
+ }[] | undefined;
2208
+ executionTimeDuration?: number | undefined;
2209
+ }[] | undefined;
2210
+ recurrence?: {
2211
+ frequency: Frequency;
2212
+ interval: number;
2213
+ weekDays?: WeekDay[] | undefined;
2214
+ dayOfMonth?: number | undefined;
2215
+ endDate?: string | undefined;
2216
+ ocurrences?: number | undefined;
2217
+ } | undefined;
2218
+ tenantIds?: string[] | undefined;
2219
+ executionDate?: string | undefined;
2220
+ nextExecution?: number | undefined;
2221
+ createdAt?: number | undefined;
2222
+ modified?: number | undefined;
2223
+ }>;
984
2224
  type NotificationItem = z.infer<typeof NotificationItemSchema>;
985
2225
  type NotificationDetail = z.infer<typeof NotificationDetailSchema>;
986
2226
  type Trigger = z.infer<typeof TriggerSchema>;
@@ -1064,17 +2304,21 @@ interface IAPI$1 {
1064
2304
  }
1065
2305
 
1066
2306
  declare const NoteHistorySchema: z.ZodObject<{
1067
- type: z.ZodEnum<{
1068
- deleted: "deleted";
1069
- created: "created";
1070
- updated: "updated";
1071
- "asset-added": "asset-added";
1072
- "asset-removed": "asset-removed";
1073
- }>;
2307
+ type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
1074
2308
  actorEmail: z.ZodString;
1075
2309
  timestamp: z.ZodNumber;
1076
2310
  details: z.ZodOptional<z.ZodString>;
1077
- }, z.core.$strip>;
2311
+ }, "strip", z.ZodTypeAny, {
2312
+ type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2313
+ timestamp: number;
2314
+ actorEmail: string;
2315
+ details?: string | undefined;
2316
+ }, {
2317
+ type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2318
+ timestamp: number;
2319
+ actorEmail: string;
2320
+ details?: string | undefined;
2321
+ }>;
1078
2322
  declare const NoteSchema: z.ZodObject<{
1079
2323
  id: z.ZodString;
1080
2324
  userId: z.ZodString;
@@ -1092,24 +2336,110 @@ declare const NoteSchema: z.ZodObject<{
1092
2336
  error: z.ZodOptional<z.ZodString>;
1093
2337
  authorId: z.ZodString;
1094
2338
  uploadedAt: z.ZodNumber;
1095
- }, z.core.$strip>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ type: string;
2341
+ assetId: string;
2342
+ fileName: string;
2343
+ extension: string;
2344
+ fileSize: number;
2345
+ assetUrl: string;
2346
+ thumbnailUrl: string;
2347
+ authorId: string;
2348
+ uploadedAt: number;
2349
+ error?: string | undefined;
2350
+ duration?: number | undefined;
2351
+ progress?: number | undefined;
2352
+ }, {
2353
+ type: string;
2354
+ assetId: string;
2355
+ fileName: string;
2356
+ extension: string;
2357
+ fileSize: number;
2358
+ assetUrl: string;
2359
+ thumbnailUrl: string;
2360
+ authorId: string;
2361
+ uploadedAt: number;
2362
+ error?: string | undefined;
2363
+ duration?: number | undefined;
2364
+ progress?: number | undefined;
2365
+ }>, "many">;
1096
2366
  title: z.ZodString;
1097
2367
  content: z.ZodString;
1098
2368
  createdAt: z.ZodNumber;
1099
2369
  modified: z.ZodNumber;
1100
2370
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
1101
- type: z.ZodEnum<{
1102
- deleted: "deleted";
1103
- created: "created";
1104
- updated: "updated";
1105
- "asset-added": "asset-added";
1106
- "asset-removed": "asset-removed";
1107
- }>;
2371
+ type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
1108
2372
  actorEmail: z.ZodString;
1109
2373
  timestamp: z.ZodNumber;
1110
2374
  details: z.ZodOptional<z.ZodString>;
1111
- }, z.core.$strip>>>;
1112
- }, z.core.$strip>;
2375
+ }, "strip", z.ZodTypeAny, {
2376
+ type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2377
+ timestamp: number;
2378
+ actorEmail: string;
2379
+ details?: string | undefined;
2380
+ }, {
2381
+ type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2382
+ timestamp: number;
2383
+ actorEmail: string;
2384
+ details?: string | undefined;
2385
+ }>, "many">>;
2386
+ }, "strip", z.ZodTypeAny, {
2387
+ id: string;
2388
+ userId: string;
2389
+ title: string;
2390
+ createdAt: number;
2391
+ modified: number;
2392
+ content: string;
2393
+ assets: {
2394
+ type: string;
2395
+ assetId: string;
2396
+ fileName: string;
2397
+ extension: string;
2398
+ fileSize: number;
2399
+ assetUrl: string;
2400
+ thumbnailUrl: string;
2401
+ authorId: string;
2402
+ uploadedAt: number;
2403
+ error?: string | undefined;
2404
+ duration?: number | undefined;
2405
+ progress?: number | undefined;
2406
+ }[];
2407
+ authorEmail: string;
2408
+ history?: {
2409
+ type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2410
+ timestamp: number;
2411
+ actorEmail: string;
2412
+ details?: string | undefined;
2413
+ }[] | undefined;
2414
+ }, {
2415
+ id: string;
2416
+ userId: string;
2417
+ title: string;
2418
+ createdAt: number;
2419
+ modified: number;
2420
+ content: string;
2421
+ assets: {
2422
+ type: string;
2423
+ assetId: string;
2424
+ fileName: string;
2425
+ extension: string;
2426
+ fileSize: number;
2427
+ assetUrl: string;
2428
+ thumbnailUrl: string;
2429
+ authorId: string;
2430
+ uploadedAt: number;
2431
+ error?: string | undefined;
2432
+ duration?: number | undefined;
2433
+ progress?: number | undefined;
2434
+ }[];
2435
+ authorEmail: string;
2436
+ history?: {
2437
+ type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2438
+ timestamp: number;
2439
+ actorEmail: string;
2440
+ details?: string | undefined;
2441
+ }[] | undefined;
2442
+ }>;
1113
2443
  type Note = z.infer<typeof NoteSchema>;
1114
2444
  type NoteHistory = z.infer<typeof NoteHistorySchema>;
1115
2445
 
@@ -1225,7 +2555,33 @@ declare const AssetSchema: z.ZodObject<{
1225
2555
  error: z.ZodOptional<z.ZodString>;
1226
2556
  authorId: z.ZodString;
1227
2557
  uploadedAt: z.ZodNumber;
1228
- }, z.core.$strip>;
2558
+ }, "strip", z.ZodTypeAny, {
2559
+ type: string;
2560
+ assetId: string;
2561
+ fileName: string;
2562
+ extension: string;
2563
+ fileSize: number;
2564
+ assetUrl: string;
2565
+ thumbnailUrl: string;
2566
+ authorId: string;
2567
+ uploadedAt: number;
2568
+ error?: string | undefined;
2569
+ duration?: number | undefined;
2570
+ progress?: number | undefined;
2571
+ }, {
2572
+ type: string;
2573
+ assetId: string;
2574
+ fileName: string;
2575
+ extension: string;
2576
+ fileSize: number;
2577
+ assetUrl: string;
2578
+ thumbnailUrl: string;
2579
+ authorId: string;
2580
+ uploadedAt: number;
2581
+ error?: string | undefined;
2582
+ duration?: number | undefined;
2583
+ progress?: number | undefined;
2584
+ }>;
1229
2585
  type Asset = z.infer<typeof AssetSchema>;
1230
2586
 
1231
2587
  declare const index_AssetSchema: typeof AssetSchema;