shred-api-client 2.3.5-rc.2 → 2.3.5-rc.4

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 CHANGED
@@ -6,21 +6,9 @@ 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, "many">>;
9
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  userId: z.ZodOptional<z.ZodString>;
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
- }>;
11
+ }, z.core.$strip>;
24
12
  declare const CategorySchema: z.ZodObject<{
25
13
  id: z.ZodString;
26
14
  title: z.ZodString;
@@ -31,48 +19,10 @@ declare const CategorySchema: z.ZodObject<{
31
19
  id: z.ZodString;
32
20
  title: z.ZodString;
33
21
  content: z.ZodString;
34
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
23
  userId: z.ZodOptional<z.ZodString>;
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
- }>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
76
26
  declare const PromptSchema: z.ZodObject<{
77
27
  id: z.ZodString;
78
28
  tenantId: z.ZodString;
@@ -86,83 +36,11 @@ declare const PromptSchema: z.ZodObject<{
86
36
  id: z.ZodString;
87
37
  title: z.ZodString;
88
38
  content: z.ZodString;
89
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
40
  userId: z.ZodOptional<z.ZodString>;
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
- }>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>;
166
44
  type Script = z.infer<typeof ScriptSchema>;
167
45
  type Category = z.infer<typeof CategorySchema>;
168
46
  type Prompt = z.infer<typeof PromptSchema>;
@@ -215,7 +93,7 @@ declare enum Type {
215
93
  CUSTOMER_SUBSCRIPTION = 0,
216
94
  TENANT_SUBSCRIPTION = 1
217
95
  }
218
- declare const SubscriptionTypeSchema: z.ZodNativeEnum<typeof Type>;
96
+ declare const SubscriptionTypeSchema: z.ZodEnum<typeof Type>;
219
97
  declare const PlanSchema: z.ZodObject<{
220
98
  id: z.ZodString;
221
99
  currency: z.ZodString;
@@ -223,34 +101,14 @@ declare const PlanSchema: z.ZodObject<{
223
101
  interval: z.ZodString;
224
102
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
225
103
  subscriptionItemId: z.ZodString;
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
- }>;
104
+ }, z.core.$strip>;
241
105
  declare const ProductSchema: z.ZodObject<{
242
106
  id: z.ZodString;
243
107
  name: z.ZodString;
244
108
  descriptions: z.ZodArray<z.ZodObject<{
245
109
  description: z.ZodString;
246
110
  subtitle: z.ZodString;
247
- }, "strip", z.ZodTypeAny, {
248
- description: string;
249
- subtitle: string;
250
- }, {
251
- description: string;
252
- subtitle: string;
253
- }>, "many">;
111
+ }, z.core.$strip>>;
254
112
  metadata: z.ZodAny;
255
113
  plans: z.ZodArray<z.ZodObject<{
256
114
  id: z.ZodString;
@@ -259,57 +117,9 @@ declare const ProductSchema: z.ZodObject<{
259
117
  interval: z.ZodString;
260
118
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
261
119
  subscriptionItemId: z.ZodString;
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">;
120
+ }, z.core.$strip>>;
277
121
  percentOff: z.ZodDefault<z.ZodNumber>;
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
- }>;
122
+ }, z.core.$strip>;
313
123
  declare const ChargeSchema: z.ZodObject<{
314
124
  id: z.ZodNumber;
315
125
  created: z.ZodNumber;
@@ -320,27 +130,7 @@ declare const ChargeSchema: z.ZodObject<{
320
130
  paymentType: z.ZodString;
321
131
  last4: z.ZodOptional<z.ZodString>;
322
132
  brand: z.ZodOptional<z.ZodString>;
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
- }>;
133
+ }, z.core.$strip>;
344
134
  declare const SubscriptionSchema: z.ZodObject<{
345
135
  id: z.ZodString;
346
136
  status: z.ZodString;
@@ -356,13 +146,7 @@ declare const SubscriptionSchema: z.ZodObject<{
356
146
  descriptions: z.ZodArray<z.ZodObject<{
357
147
  description: z.ZodString;
358
148
  subtitle: z.ZodString;
359
- }, "strip", z.ZodTypeAny, {
360
- description: string;
361
- subtitle: string;
362
- }, {
363
- description: string;
364
- subtitle: string;
365
- }>, "many">;
149
+ }, z.core.$strip>>;
366
150
  metadata: z.ZodAny;
367
151
  plans: z.ZodArray<z.ZodObject<{
368
152
  id: z.ZodString;
@@ -371,58 +155,10 @@ declare const SubscriptionSchema: z.ZodObject<{
371
155
  interval: z.ZodString;
372
156
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
373
157
  subscriptionItemId: z.ZodString;
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">;
158
+ }, z.core.$strip>>;
389
159
  percentOff: z.ZodDefault<z.ZodNumber>;
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>>;
160
+ }, z.core.$strip>;
161
+ type: z.ZodOptional<z.ZodEnum<typeof Type>>;
426
162
  plan: z.ZodOptional<z.ZodObject<{
427
163
  id: z.ZodString;
428
164
  currency: z.ZodString;
@@ -430,94 +166,8 @@ declare const SubscriptionSchema: z.ZodObject<{
430
166
  interval: z.ZodString;
431
167
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
432
168
  subscriptionItemId: z.ZodString;
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
- }>;
169
+ }, z.core.$strip>>;
170
+ }, z.core.$strip>;
521
171
  type Subscription = z.infer<typeof SubscriptionSchema>;
522
172
  type Charge = z.infer<typeof ChargeSchema>;
523
173
  type Plan = z.infer<typeof PlanSchema>;
@@ -619,28 +269,10 @@ declare const PreferencesSchema$1: z.ZodObject<{
619
269
  facebookLink: z.ZodOptional<z.ZodString>;
620
270
  isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
621
271
  instagramLink: z.ZodOptional<z.ZodString>;
622
- industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
272
+ industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
623
273
  bRoll: z.ZodOptional<z.ZodBoolean>;
624
274
  logo: z.ZodOptional<z.ZodString>;
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
- }>;
275
+ }, z.core.$strip>;
644
276
  declare const UserSchema: z.ZodObject<{
645
277
  id: z.ZodString;
646
278
  name: z.ZodString;
@@ -654,81 +286,17 @@ declare const UserSchema: z.ZodObject<{
654
286
  facebookLink: z.ZodOptional<z.ZodString>;
655
287
  isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
656
288
  instagramLink: z.ZodOptional<z.ZodString>;
657
- industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
289
+ industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
658
290
  bRoll: z.ZodOptional<z.ZodBoolean>;
659
291
  logo: z.ZodOptional<z.ZodString>;
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
- }>>;
292
+ }, z.core.$strip>>;
679
293
  tenantId: z.ZodOptional<z.ZodString>;
680
294
  editorId: z.ZodOptional<z.ZodString>;
681
295
  timezone: z.ZodOptional<z.ZodString>;
682
296
  experienceId: z.ZodOptional<z.ZodString>;
683
297
  customerId: z.ZodString;
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
- }>;
298
+ role: z.ZodEnum<typeof Role>;
299
+ }, z.core.$strip>;
732
300
  type User = z.infer<typeof UserSchema>;
733
301
  type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
734
302
  type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
@@ -872,19 +440,7 @@ declare const PreferencesSchema: z.ZodObject<{
872
440
  primaryColor: z.ZodString;
873
441
  secondaryColor: z.ZodString;
874
442
  guidelinesUrl: z.ZodOptional<z.ZodString>;
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
- }>;
443
+ }, z.core.$strip>;
888
444
  declare const TenantSchema: z.ZodObject<{
889
445
  id: z.ZodString;
890
446
  name: z.ZodString;
@@ -896,19 +452,7 @@ declare const TenantSchema: z.ZodObject<{
896
452
  primaryColor: z.ZodString;
897
453
  secondaryColor: z.ZodString;
898
454
  guidelinesUrl: z.ZodOptional<z.ZodString>;
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
- }>;
455
+ }, z.core.$strip>;
912
456
  inviteCode: z.ZodString;
913
457
  totalUsersAllowed: z.ZodNumber;
914
458
  currentUsersSize: z.ZodOptional<z.ZodNumber>;
@@ -916,7 +460,7 @@ declare const TenantSchema: z.ZodObject<{
916
460
  defaultProductId: z.ZodOptional<z.ZodString>;
917
461
  defaultPlanId: z.ZodOptional<z.ZodString>;
918
462
  defaultCoupomCode: z.ZodOptional<z.ZodString>;
919
- allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
463
+ allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
464
  useOwnScripts: z.ZodOptional<z.ZodBoolean>;
921
465
  subscription: z.ZodOptional<z.ZodLazy<z.ZodObject<{
922
466
  id: z.ZodString;
@@ -933,13 +477,7 @@ declare const TenantSchema: z.ZodObject<{
933
477
  descriptions: z.ZodArray<z.ZodObject<{
934
478
  description: z.ZodString;
935
479
  subtitle: z.ZodString;
936
- }, "strip", z.ZodTypeAny, {
937
- description: string;
938
- subtitle: string;
939
- }, {
940
- description: string;
941
- subtitle: string;
942
- }>, "many">;
480
+ }, z.core.$strip>>;
943
481
  metadata: z.ZodAny;
944
482
  plans: z.ZodArray<z.ZodObject<{
945
483
  id: z.ZodString;
@@ -948,58 +486,10 @@ declare const TenantSchema: z.ZodObject<{
948
486
  interval: z.ZodString;
949
487
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
950
488
  subscriptionItemId: z.ZodString;
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">;
489
+ }, z.core.$strip>>;
966
490
  percentOff: z.ZodDefault<z.ZodNumber>;
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>>;
491
+ }, z.core.$strip>;
492
+ type: z.ZodOptional<z.ZodEnum<typeof Type>>;
1003
493
  plan: z.ZodOptional<z.ZodObject<{
1004
494
  id: z.ZodString;
1005
495
  currency: z.ZodString;
@@ -1007,211 +497,9 @@ declare const TenantSchema: z.ZodObject<{
1007
497
  interval: z.ZodString;
1008
498
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1009
499
  subscriptionItemId: z.ZodString;
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
- }>;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>>>;
502
+ }, z.core.$strip>;
1215
503
  type Tenant = z.infer<typeof TenantSchema>;
1216
504
  type Preferences = z.infer<typeof PreferencesSchema>;
1217
505
 
@@ -1258,45 +546,17 @@ declare namespace index$8 {
1258
546
 
1259
547
  declare const TrackParamSchema: z.ZodObject<{
1260
548
  name: z.ZodString;
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
- }>;
549
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
550
+ }, z.core.$strip>;
1269
551
  declare const TrackSchema: z.ZodObject<{
1270
552
  category: z.ZodString;
1271
553
  label: z.ZodString;
1272
554
  action: z.ZodString;
1273
555
  params: z.ZodOptional<z.ZodArray<z.ZodObject<{
1274
556
  name: z.ZodString;
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
- }>;
557
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
558
+ }, z.core.$strip>>>;
559
+ }, z.core.$strip>;
1300
560
  type Track = z.infer<typeof TrackSchema>;
1301
561
  type TrackParam = z.infer<typeof TrackParamSchema>;
1302
562
 
@@ -1321,15 +581,7 @@ declare const EmailSchema: z.ZodObject<{
1321
581
  to: z.ZodOptional<z.ZodString>;
1322
582
  subject: z.ZodString;
1323
583
  body: z.ZodString;
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
- }>;
584
+ }, z.core.$strip>;
1333
585
  type Email = z.infer<typeof EmailSchema>;
1334
586
 
1335
587
  interface IAPI$5 {
@@ -1370,65 +622,27 @@ type Style = {
1370
622
  label: string;
1371
623
  };
1372
624
  declare const TimelineItemSchema: z.ZodObject<{
1373
- status: z.ZodNativeEnum<typeof Status$1>;
625
+ status: z.ZodEnum<typeof Status$1>;
1374
626
  title: z.ZodString;
1375
627
  description: z.ZodString;
1376
628
  timestamp: z.ZodNumber;
1377
629
  metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
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
- }>;
630
+ }, z.core.$strip>;
1391
631
  declare const FeedbackSchema: z.ZodObject<{
1392
632
  criteria: z.ZodArray<z.ZodObject<{
1393
633
  id: z.ZodString;
1394
634
  label: z.ZodString;
1395
635
  score: z.ZodNumber;
1396
636
  comment: z.ZodOptional<z.ZodString>;
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">;
637
+ }, z.core.$strip>>;
1408
638
  comment: z.ZodOptional<z.ZodString>;
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
- }>;
639
+ }, z.core.$strip>;
1426
640
  declare const ProjectSchema: z.ZodObject<{
1427
641
  id: z.ZodString;
1428
642
  title: z.ZodString;
1429
643
  instructions: z.ZodString;
1430
644
  submitMonth: z.ZodString;
1431
- captionStyle: z.ZodNativeEnum<typeof CaptionStyle>;
645
+ captionStyle: z.ZodEnum<typeof CaptionStyle>;
1432
646
  finalVideoId: z.ZodOptional<z.ZodString>;
1433
647
  thumbnailUrl: z.ZodOptional<z.ZodString>;
1434
648
  modified: z.ZodNumber;
@@ -1438,35 +652,9 @@ declare const ProjectSchema: z.ZodObject<{
1438
652
  label: z.ZodString;
1439
653
  score: z.ZodNumber;
1440
654
  comment: z.ZodOptional<z.ZodString>;
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">;
655
+ }, z.core.$strip>>;
1452
656
  comment: z.ZodOptional<z.ZodString>;
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
- }>>;
657
+ }, z.core.$strip>>;
1470
658
  captionSuggestion: z.ZodOptional<z.ZodString>;
1471
659
  editorId: z.ZodOptional<z.ZodString>;
1472
660
  userId: z.ZodString;
@@ -1483,152 +671,20 @@ declare const ProjectSchema: z.ZodObject<{
1483
671
  error: z.ZodOptional<z.ZodString>;
1484
672
  authorId: z.ZodString;
1485
673
  uploadedAt: z.ZodNumber;
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">>;
674
+ }, z.core.$strip>>>;
1513
675
  expirationTimestamp: z.ZodNumber;
1514
676
  isFree: z.ZodOptional<z.ZodBoolean>;
1515
677
  timeline: z.ZodArray<z.ZodObject<{
1516
- status: z.ZodNativeEnum<typeof Status$1>;
678
+ status: z.ZodEnum<typeof Status$1>;
1517
679
  title: z.ZodString;
1518
680
  description: z.ZodString;
1519
681
  timestamp: z.ZodNumber;
1520
682
  metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
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">;
683
+ }, z.core.$strip>>;
1534
684
  submitTimestamp: z.ZodNumber;
1535
685
  tenantId: z.ZodOptional<z.ZodString>;
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
- }>;
686
+ status: z.ZodEnum<typeof Status$1>;
687
+ }, z.core.$strip>;
1632
688
  type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
1633
689
  type SendToApproval = {
1634
690
  video: string;
@@ -1790,17 +846,7 @@ declare const DailyMilestoneSchema: z.ZodObject<{
1790
846
  date: z.ZodString;
1791
847
  target: z.ZodNumber;
1792
848
  progress: z.ZodNumber;
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
- }>;
849
+ }, z.core.$strip>;
1804
850
  declare const GoalSchema: z.ZodObject<{
1805
851
  id: z.ZodString;
1806
852
  editorId: z.ZodString;
@@ -1813,44 +859,8 @@ declare const GoalSchema: z.ZodObject<{
1813
859
  date: z.ZodString;
1814
860
  target: z.ZodNumber;
1815
861
  progress: z.ZodNumber;
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
- }>;
862
+ }, z.core.$strip>>;
863
+ }, z.core.$strip>;
1854
864
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
1855
865
  type Goal = z.infer<typeof GoalSchema>;
1856
866
 
@@ -1911,437 +921,121 @@ declare const NotificationItemSchema: z.ZodObject<{
1911
921
  triggerId: z.ZodOptional<z.ZodString>;
1912
922
  title: z.ZodString;
1913
923
  body: z.ZodString;
1914
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
924
+ status: z.ZodEnum<{
925
+ failed: "failed";
926
+ delivered: "delivered";
927
+ deleted: "deleted";
928
+ }>;
1915
929
  deliveredAt: z.ZodNumber;
1916
930
  openedAt: z.ZodOptional<z.ZodNumber>;
1917
931
  deletedAt: z.ZodOptional<z.ZodNumber>;
1918
932
  cta: z.ZodOptional<z.ZodObject<{
1919
933
  label: z.ZodString;
1920
934
  url: z.ZodString;
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]>>;
935
+ }, z.core.$strip>>;
936
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1929
937
  error: z.ZodOptional<z.ZodString>;
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;
938
+ }, z.core.$strip>;
939
+ declare const NotificationDetailSchema: z.ZodObject<{
1965
940
  userId: z.ZodString;
1966
- triggerId: z.ZodOptional<z.ZodString>;
1967
941
  title: z.ZodString;
1968
942
  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>;
1973
943
  cta: z.ZodOptional<z.ZodObject<{
1974
944
  label: z.ZodString;
1975
945
  url: z.ZodString;
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
- }>;
946
+ }, z.core.$strip>>;
947
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
948
+ }, z.core.$strip>;
2004
949
  declare const CriteriaSchema: z.ZodObject<{
2005
- type: z.ZodNativeEnum<typeof CriteriaType>;
950
+ type: z.ZodEnum<typeof CriteriaType>;
2006
951
  params: z.ZodRecord<z.ZodString, z.ZodAny>;
2007
- }, "strip", z.ZodTypeAny, {
2008
- params: Record<string, any>;
2009
- type: CriteriaType;
2010
- }, {
2011
- params: Record<string, any>;
2012
- type: CriteriaType;
2013
- }>;
952
+ }, z.core.$strip>;
2014
953
  declare const HistorySchema: z.ZodObject<{
2015
954
  batchId: z.ZodString;
2016
955
  executedAt: z.ZodNumber;
2017
956
  timezone: z.ZodString;
2018
- status: z.ZodEnum<["success", "failed", "info", "warn"]>;
957
+ status: z.ZodEnum<{
958
+ failed: "failed";
959
+ success: "success";
960
+ info: "info";
961
+ warn: "warn";
962
+ }>;
2019
963
  users: z.ZodObject<{
2020
964
  total: z.ZodNumber;
2021
965
  success: z.ZodNumber;
2022
966
  error: z.ZodNumber;
2023
- }, "strip", z.ZodTypeAny, {
2024
- error: number;
2025
- success: number;
2026
- total: number;
2027
- }, {
2028
- error: number;
2029
- success: number;
2030
- total: number;
2031
- }>;
967
+ }, z.core.$strip>;
2032
968
  errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
2033
969
  token: z.ZodString;
2034
970
  error: z.ZodString;
2035
- }, "strip", z.ZodTypeAny, {
2036
- token: string;
2037
- error: string;
2038
- }, {
2039
- token: string;
2040
- error: string;
2041
- }>, "many">>;
971
+ }, z.core.$strip>>>;
2042
972
  executionTimeDuration: z.ZodOptional<z.ZodNumber>;
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
- }>;
973
+ }, z.core.$strip>;
2074
974
  declare const RecurrenceRuleSchema: z.ZodObject<{
2075
- frequency: z.ZodNativeEnum<typeof Frequency>;
975
+ frequency: z.ZodEnum<typeof Frequency>;
2076
976
  interval: z.ZodNumber;
2077
- weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
977
+ weekDays: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof WeekDay>>>;
2078
978
  dayOfMonth: z.ZodOptional<z.ZodNumber>;
2079
979
  endDate: z.ZodOptional<z.ZodString>;
2080
980
  ocurrences: z.ZodOptional<z.ZodNumber>;
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
- }>;
981
+ }, z.core.$strip>;
2096
982
  declare const TriggerSchema: z.ZodObject<{
2097
983
  id: z.ZodString;
2098
984
  title: z.ZodString;
2099
985
  description: z.ZodString;
2100
- transportType: z.ZodArray<z.ZodNativeEnum<typeof TransportType>, "many">;
2101
- notification: z.ZodObject<Pick<{
2102
- id: z.ZodString;
986
+ transportType: z.ZodArray<z.ZodEnum<typeof TransportType>>;
987
+ notification: z.ZodObject<{
2103
988
  userId: z.ZodString;
2104
- triggerId: z.ZodOptional<z.ZodString>;
2105
989
  title: z.ZodString;
2106
990
  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>;
2111
991
  cta: z.ZodOptional<z.ZodObject<{
2112
992
  label: z.ZodString;
2113
993
  url: z.ZodString;
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
- }>;
994
+ }, z.core.$strip>>;
995
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
996
+ }, z.core.$strip>;
2142
997
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2143
998
  batchId: z.ZodString;
2144
999
  executedAt: z.ZodNumber;
2145
1000
  timezone: z.ZodString;
2146
- status: z.ZodEnum<["success", "failed", "info", "warn"]>;
1001
+ status: z.ZodEnum<{
1002
+ failed: "failed";
1003
+ success: "success";
1004
+ info: "info";
1005
+ warn: "warn";
1006
+ }>;
2147
1007
  users: z.ZodObject<{
2148
1008
  total: z.ZodNumber;
2149
1009
  success: z.ZodNumber;
2150
1010
  error: z.ZodNumber;
2151
- }, "strip", z.ZodTypeAny, {
2152
- error: number;
2153
- success: number;
2154
- total: number;
2155
- }, {
2156
- error: number;
2157
- success: number;
2158
- total: number;
2159
- }>;
1011
+ }, z.core.$strip>;
2160
1012
  errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
2161
1013
  token: z.ZodString;
2162
1014
  error: z.ZodString;
2163
- }, "strip", z.ZodTypeAny, {
2164
- token: string;
2165
- error: string;
2166
- }, {
2167
- token: string;
2168
- error: string;
2169
- }>, "many">>;
1015
+ }, z.core.$strip>>>;
2170
1016
  executionTimeDuration: z.ZodOptional<z.ZodNumber>;
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>;
1017
+ }, z.core.$strip>>>;
1018
+ status: z.ZodEnum<typeof Status>;
2203
1019
  recurrence: z.ZodOptional<z.ZodObject<{
2204
- frequency: z.ZodNativeEnum<typeof Frequency>;
1020
+ frequency: z.ZodEnum<typeof Frequency>;
2205
1021
  interval: z.ZodNumber;
2206
- weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
1022
+ weekDays: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof WeekDay>>>;
2207
1023
  dayOfMonth: z.ZodOptional<z.ZodNumber>;
2208
1024
  endDate: z.ZodOptional<z.ZodString>;
2209
1025
  ocurrences: z.ZodOptional<z.ZodNumber>;
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
- }>>;
1026
+ }, z.core.$strip>>;
2225
1027
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2226
- tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1028
+ tenantIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2227
1029
  executionDate: z.ZodOptional<z.ZodString>;
2228
1030
  timeOfDay: z.ZodString;
2229
1031
  criteria: z.ZodObject<{
2230
- type: z.ZodNativeEnum<typeof CriteriaType>;
1032
+ type: z.ZodEnum<typeof CriteriaType>;
2231
1033
  params: z.ZodRecord<z.ZodString, z.ZodAny>;
2232
- }, "strip", z.ZodTypeAny, {
2233
- params: Record<string, any>;
2234
- type: CriteriaType;
2235
- }, {
2236
- params: Record<string, any>;
2237
- type: CriteriaType;
2238
- }>;
1034
+ }, z.core.$strip>;
2239
1035
  nextExecution: z.ZodOptional<z.ZodNumber>;
2240
1036
  createdAt: z.ZodOptional<z.ZodNumber>;
2241
1037
  modified: z.ZodOptional<z.ZodNumber>;
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
- }>;
1038
+ }, z.core.$strip>;
2345
1039
  type NotificationItem = z.infer<typeof NotificationItemSchema>;
2346
1040
  type NotificationDetail = z.infer<typeof NotificationDetailSchema>;
2347
1041
  type Trigger = z.infer<typeof TriggerSchema>;
@@ -2425,21 +1119,17 @@ interface IAPI$1 {
2425
1119
  }
2426
1120
 
2427
1121
  declare const NoteHistorySchema: z.ZodObject<{
2428
- type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
1122
+ type: z.ZodEnum<{
1123
+ deleted: "deleted";
1124
+ created: "created";
1125
+ updated: "updated";
1126
+ "asset-added": "asset-added";
1127
+ "asset-removed": "asset-removed";
1128
+ }>;
2429
1129
  actorEmail: z.ZodString;
2430
1130
  timestamp: z.ZodNumber;
2431
1131
  details: z.ZodOptional<z.ZodString>;
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
- }>;
1132
+ }, z.core.$strip>;
2443
1133
  declare const NoteSchema: z.ZodObject<{
2444
1134
  id: z.ZodString;
2445
1135
  userId: z.ZodString;
@@ -2457,110 +1147,24 @@ declare const NoteSchema: z.ZodObject<{
2457
1147
  error: z.ZodOptional<z.ZodString>;
2458
1148
  authorId: z.ZodString;
2459
1149
  uploadedAt: z.ZodNumber;
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">;
1150
+ }, z.core.$strip>>;
2487
1151
  title: z.ZodString;
2488
1152
  content: z.ZodString;
2489
1153
  createdAt: z.ZodNumber;
2490
1154
  modified: z.ZodNumber;
2491
1155
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2492
- type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
1156
+ type: z.ZodEnum<{
1157
+ deleted: "deleted";
1158
+ created: "created";
1159
+ updated: "updated";
1160
+ "asset-added": "asset-added";
1161
+ "asset-removed": "asset-removed";
1162
+ }>;
2493
1163
  actorEmail: z.ZodString;
2494
1164
  timestamp: z.ZodNumber;
2495
1165
  details: z.ZodOptional<z.ZodString>;
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
- }>;
1166
+ }, z.core.$strip>>>;
1167
+ }, z.core.$strip>;
2564
1168
  type Note = z.infer<typeof NoteSchema>;
2565
1169
  type NoteHistory = z.infer<typeof NoteHistorySchema>;
2566
1170
 
@@ -2676,33 +1280,7 @@ declare const AssetSchema: z.ZodObject<{
2676
1280
  error: z.ZodOptional<z.ZodString>;
2677
1281
  authorId: z.ZodString;
2678
1282
  uploadedAt: z.ZodNumber;
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
- }>;
1283
+ }, z.core.$strip>;
2706
1284
  type Asset = z.infer<typeof AssetSchema>;
2707
1285
 
2708
1286
  declare const index_AssetSchema: typeof AssetSchema;