shred-api-client 2.1.4 → 2.1.5

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,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>;
@@ -620,21 +270,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
620
270
  instagramLink: z.ZodOptional<z.ZodString>;
621
271
  bRoll: z.ZodOptional<z.ZodBoolean>;
622
272
  logo: z.ZodOptional<z.ZodString>;
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
- }>;
273
+ }, z.core.$strip>;
638
274
  declare const UserSchema: z.ZodObject<{
639
275
  id: z.ZodString;
640
276
  name: z.ZodString;
@@ -649,70 +285,14 @@ declare const UserSchema: z.ZodObject<{
649
285
  instagramLink: z.ZodOptional<z.ZodString>;
650
286
  bRoll: z.ZodOptional<z.ZodBoolean>;
651
287
  logo: z.ZodOptional<z.ZodString>;
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
- }>>;
288
+ }, z.core.$strip>>;
667
289
  tenantId: z.ZodOptional<z.ZodString>;
668
290
  editorId: z.ZodOptional<z.ZodString>;
669
291
  timezone: z.ZodOptional<z.ZodString>;
670
292
  experienceId: z.ZodOptional<z.ZodString>;
671
293
  customerId: z.ZodString;
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
- }>;
294
+ role: z.ZodEnum<typeof Role>;
295
+ }, z.core.$strip>;
716
296
  type User = z.infer<typeof UserSchema>;
717
297
  type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
718
298
  type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
@@ -848,19 +428,7 @@ declare const PreferencesSchema: z.ZodObject<{
848
428
  primaryColor: z.ZodString;
849
429
  secondaryColor: z.ZodString;
850
430
  guidelinesUrl: z.ZodOptional<z.ZodString>;
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
- }>;
431
+ }, z.core.$strip>;
864
432
  declare const TenantSchema: z.ZodObject<{
865
433
  id: z.ZodString;
866
434
  name: z.ZodString;
@@ -872,19 +440,7 @@ declare const TenantSchema: 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
  inviteCode: z.ZodString;
889
445
  totalUsersAllowed: z.ZodNumber;
890
446
  currentUsersSize: z.ZodOptional<z.ZodNumber>;
@@ -892,7 +448,7 @@ declare const TenantSchema: z.ZodObject<{
892
448
  defaultProductId: z.ZodOptional<z.ZodString>;
893
449
  defaultPlanId: z.ZodOptional<z.ZodString>;
894
450
  defaultCoupomCode: z.ZodOptional<z.ZodString>;
895
- allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
451
+ allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString>>;
896
452
  useOwnScripts: z.ZodOptional<z.ZodBoolean>;
897
453
  subscription: z.ZodOptional<z.ZodLazy<z.ZodObject<{
898
454
  id: z.ZodString;
@@ -909,13 +465,7 @@ declare const TenantSchema: z.ZodObject<{
909
465
  descriptions: z.ZodArray<z.ZodObject<{
910
466
  description: z.ZodString;
911
467
  subtitle: z.ZodString;
912
- }, "strip", z.ZodTypeAny, {
913
- description: string;
914
- subtitle: string;
915
- }, {
916
- description: string;
917
- subtitle: string;
918
- }>, "many">;
468
+ }, z.core.$strip>>;
919
469
  metadata: z.ZodAny;
920
470
  plans: z.ZodArray<z.ZodObject<{
921
471
  id: z.ZodString;
@@ -924,58 +474,10 @@ declare const TenantSchema: z.ZodObject<{
924
474
  interval: z.ZodString;
925
475
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
926
476
  subscriptionItemId: z.ZodString;
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">;
477
+ }, z.core.$strip>>;
942
478
  percentOff: z.ZodDefault<z.ZodNumber>;
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>>;
479
+ }, z.core.$strip>;
480
+ type: z.ZodOptional<z.ZodEnum<typeof Type>>;
979
481
  plan: z.ZodOptional<z.ZodObject<{
980
482
  id: z.ZodString;
981
483
  currency: z.ZodString;
@@ -983,211 +485,9 @@ declare const TenantSchema: z.ZodObject<{
983
485
  interval: z.ZodString;
984
486
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
985
487
  subscriptionItemId: z.ZodString;
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
- }>;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>>>;
490
+ }, z.core.$strip>;
1191
491
  type Tenant = z.infer<typeof TenantSchema>;
1192
492
  type Preferences = z.infer<typeof PreferencesSchema>;
1193
493
 
@@ -1234,45 +534,17 @@ declare namespace index$8 {
1234
534
 
1235
535
  declare const TrackParamSchema: z.ZodObject<{
1236
536
  name: z.ZodString;
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
- }>;
537
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
538
+ }, z.core.$strip>;
1245
539
  declare const TrackSchema: z.ZodObject<{
1246
540
  category: z.ZodString;
1247
541
  label: z.ZodString;
1248
542
  action: z.ZodString;
1249
543
  params: z.ZodOptional<z.ZodArray<z.ZodObject<{
1250
544
  name: z.ZodString;
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
- }>;
545
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
546
+ }, z.core.$strip>>>;
547
+ }, z.core.$strip>;
1276
548
  type Track = z.infer<typeof TrackSchema>;
1277
549
  type TrackParam = z.infer<typeof TrackParamSchema>;
1278
550
 
@@ -1297,15 +569,7 @@ declare const EmailSchema: z.ZodObject<{
1297
569
  to: z.ZodOptional<z.ZodString>;
1298
570
  subject: z.ZodString;
1299
571
  body: z.ZodString;
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
- }>;
572
+ }, z.core.$strip>;
1309
573
  type Email = z.infer<typeof EmailSchema>;
1310
574
 
1311
575
  interface IAPI$5 {
@@ -1346,65 +610,27 @@ type Style = {
1346
610
  label: string;
1347
611
  };
1348
612
  declare const TimelineItemSchema: z.ZodObject<{
1349
- status: z.ZodNativeEnum<typeof Status$1>;
613
+ status: z.ZodEnum<typeof Status$1>;
1350
614
  title: z.ZodString;
1351
615
  description: z.ZodString;
1352
616
  timestamp: z.ZodNumber;
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
- }>;
617
+ metadata: z.ZodAny;
618
+ }, z.core.$strip>;
1367
619
  declare const FeedbackSchema: z.ZodObject<{
1368
620
  criteria: z.ZodArray<z.ZodObject<{
1369
621
  id: z.ZodString;
1370
622
  label: z.ZodString;
1371
623
  score: z.ZodNumber;
1372
624
  comment: z.ZodOptional<z.ZodString>;
1373
- }, "strip", z.ZodTypeAny, {
1374
- id: string;
1375
- label: string;
1376
- score: number;
1377
- comment?: string | undefined;
1378
- }, {
1379
- id: string;
1380
- label: string;
1381
- score: number;
1382
- comment?: string | undefined;
1383
- }>, "many">;
625
+ }, z.core.$strip>>;
1384
626
  comment: z.ZodOptional<z.ZodString>;
1385
- }, "strip", z.ZodTypeAny, {
1386
- criteria: {
1387
- id: string;
1388
- label: string;
1389
- score: number;
1390
- comment?: string | undefined;
1391
- }[];
1392
- comment?: string | undefined;
1393
- }, {
1394
- criteria: {
1395
- id: string;
1396
- label: string;
1397
- score: number;
1398
- comment?: string | undefined;
1399
- }[];
1400
- comment?: string | undefined;
1401
- }>;
627
+ }, z.core.$strip>;
1402
628
  declare const ProjectSchema: z.ZodObject<{
1403
629
  id: z.ZodString;
1404
630
  title: z.ZodString;
1405
631
  instructions: z.ZodString;
1406
632
  submitMonth: z.ZodString;
1407
- captionStyle: z.ZodNativeEnum<typeof CaptionStyle>;
633
+ captionStyle: z.ZodEnum<typeof CaptionStyle>;
1408
634
  finalVideoId: z.ZodOptional<z.ZodString>;
1409
635
  thumbnailUrl: z.ZodOptional<z.ZodString>;
1410
636
  modified: z.ZodNumber;
@@ -1417,35 +643,9 @@ declare const ProjectSchema: z.ZodObject<{
1417
643
  label: z.ZodString;
1418
644
  score: z.ZodNumber;
1419
645
  comment: z.ZodOptional<z.ZodString>;
1420
- }, "strip", z.ZodTypeAny, {
1421
- id: string;
1422
- label: string;
1423
- score: number;
1424
- comment?: string | undefined;
1425
- }, {
1426
- id: string;
1427
- label: string;
1428
- score: number;
1429
- comment?: string | undefined;
1430
- }>, "many">;
646
+ }, z.core.$strip>>;
1431
647
  comment: z.ZodOptional<z.ZodString>;
1432
- }, "strip", z.ZodTypeAny, {
1433
- criteria: {
1434
- id: string;
1435
- label: string;
1436
- score: number;
1437
- comment?: string | undefined;
1438
- }[];
1439
- comment?: string | undefined;
1440
- }, {
1441
- criteria: {
1442
- id: string;
1443
- label: string;
1444
- score: number;
1445
- comment?: string | undefined;
1446
- }[];
1447
- comment?: string | undefined;
1448
- }>>;
648
+ }, z.core.$strip>>;
1449
649
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1450
650
  assetId: z.ZodString;
1451
651
  fileName: z.ZodString;
@@ -1459,152 +659,20 @@ declare const ProjectSchema: z.ZodObject<{
1459
659
  error: z.ZodOptional<z.ZodString>;
1460
660
  authorId: z.ZodString;
1461
661
  uploadedAt: z.ZodNumber;
1462
- }, "strip", z.ZodTypeAny, {
1463
- type: string;
1464
- assetId: string;
1465
- fileName: string;
1466
- extension: string;
1467
- fileSize: number;
1468
- assetUrl: string;
1469
- thumbnailUrl: string;
1470
- authorId: string;
1471
- uploadedAt: number;
1472
- error?: string | undefined;
1473
- duration?: number | undefined;
1474
- progress?: number | undefined;
1475
- }, {
1476
- type: string;
1477
- assetId: string;
1478
- fileName: string;
1479
- extension: string;
1480
- fileSize: number;
1481
- assetUrl: string;
1482
- thumbnailUrl: string;
1483
- authorId: string;
1484
- uploadedAt: number;
1485
- error?: string | undefined;
1486
- duration?: number | undefined;
1487
- progress?: number | undefined;
1488
- }>, "many">>;
662
+ }, z.core.$strip>>>;
1489
663
  expirationTimestamp: z.ZodNumber;
1490
664
  isFree: z.ZodOptional<z.ZodBoolean>;
1491
665
  timeline: z.ZodArray<z.ZodObject<{
1492
- status: z.ZodNativeEnum<typeof Status$1>;
666
+ status: z.ZodEnum<typeof Status$1>;
1493
667
  title: z.ZodString;
1494
668
  description: z.ZodString;
1495
669
  timestamp: z.ZodNumber;
1496
- metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1497
- }, "strip", z.ZodTypeAny, {
1498
- title: string;
1499
- status: Status$1;
1500
- metadata: Record<string, any>;
1501
- description: string;
1502
- timestamp: number;
1503
- }, {
1504
- title: string;
1505
- status: Status$1;
1506
- metadata: Record<string, any>;
1507
- description: string;
1508
- timestamp: number;
1509
- }>, "many">;
670
+ metadata: z.ZodAny;
671
+ }, z.core.$strip>>;
1510
672
  submitTimestamp: z.ZodNumber;
1511
673
  tenantId: z.ZodOptional<z.ZodString>;
1512
- status: z.ZodNativeEnum<typeof Status$1>;
1513
- }, "strip", z.ZodTypeAny, {
1514
- id: string;
1515
- userId: string;
1516
- title: string;
1517
- status: Status$1;
1518
- modified: number;
1519
- instructions: string;
1520
- submitMonth: string;
1521
- captionStyle: CaptionStyle;
1522
- expirationTimestamp: number;
1523
- timeline: {
1524
- title: string;
1525
- status: Status$1;
1526
- metadata: Record<string, any>;
1527
- description: string;
1528
- timestamp: number;
1529
- }[];
1530
- submitTimestamp: number;
1531
- tenantId?: string | undefined;
1532
- editorId?: string | undefined;
1533
- thumbnailUrl?: string | undefined;
1534
- finalVideoId?: string | undefined;
1535
- captionSuggestion?: string | undefined;
1536
- feedback?: {
1537
- criteria: {
1538
- id: string;
1539
- label: string;
1540
- score: number;
1541
- comment?: string | undefined;
1542
- }[];
1543
- comment?: string | undefined;
1544
- } | undefined;
1545
- assets?: {
1546
- type: string;
1547
- assetId: string;
1548
- fileName: string;
1549
- extension: string;
1550
- fileSize: number;
1551
- assetUrl: string;
1552
- thumbnailUrl: string;
1553
- authorId: string;
1554
- uploadedAt: number;
1555
- error?: string | undefined;
1556
- duration?: number | undefined;
1557
- progress?: number | undefined;
1558
- }[] | undefined;
1559
- isFree?: boolean | undefined;
1560
- }, {
1561
- id: string;
1562
- userId: string;
1563
- title: string;
1564
- status: Status$1;
1565
- modified: number;
1566
- instructions: string;
1567
- submitMonth: string;
1568
- captionStyle: CaptionStyle;
1569
- expirationTimestamp: number;
1570
- timeline: {
1571
- title: string;
1572
- status: Status$1;
1573
- metadata: Record<string, any>;
1574
- description: string;
1575
- timestamp: number;
1576
- }[];
1577
- submitTimestamp: number;
1578
- tenantId?: string | undefined;
1579
- editorId?: string | undefined;
1580
- thumbnailUrl?: string | undefined;
1581
- finalVideoId?: string | undefined;
1582
- captionSuggestion?: string | undefined;
1583
- feedback?: {
1584
- criteria: {
1585
- id: string;
1586
- label: string;
1587
- score: number;
1588
- comment?: string | undefined;
1589
- }[];
1590
- comment?: string | undefined;
1591
- } | undefined;
1592
- assets?: {
1593
- type: string;
1594
- assetId: string;
1595
- fileName: string;
1596
- extension: string;
1597
- fileSize: number;
1598
- assetUrl: string;
1599
- thumbnailUrl: string;
1600
- authorId: string;
1601
- uploadedAt: number;
1602
- error?: string | undefined;
1603
- duration?: number | undefined;
1604
- progress?: number | undefined;
1605
- }[] | undefined;
1606
- isFree?: boolean | undefined;
1607
- }>;
674
+ status: z.ZodEnum<typeof Status$1>;
675
+ }, z.core.$strip>;
1608
676
  type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
1609
677
  type SendToApproval = {
1610
678
  video: string;
@@ -1731,17 +799,7 @@ declare const DailyMilestoneSchema: z.ZodObject<{
1731
799
  date: z.ZodString;
1732
800
  target: z.ZodNumber;
1733
801
  progress: z.ZodNumber;
1734
- }, "strip", z.ZodTypeAny, {
1735
- id: string;
1736
- date: string;
1737
- progress: number;
1738
- target: number;
1739
- }, {
1740
- id: string;
1741
- date: string;
1742
- progress: number;
1743
- target: number;
1744
- }>;
802
+ }, z.core.$strip>;
1745
803
  declare const GoalSchema: z.ZodObject<{
1746
804
  id: z.ZodString;
1747
805
  editorId: z.ZodString;
@@ -1754,44 +812,8 @@ declare const GoalSchema: z.ZodObject<{
1754
812
  date: z.ZodString;
1755
813
  target: z.ZodNumber;
1756
814
  progress: z.ZodNumber;
1757
- }, "strip", z.ZodTypeAny, {
1758
- id: string;
1759
- date: string;
1760
- progress: number;
1761
- target: number;
1762
- }, {
1763
- id: string;
1764
- date: string;
1765
- progress: number;
1766
- target: number;
1767
- }>, "many">;
1768
- }, "strip", z.ZodTypeAny, {
1769
- id: string;
1770
- createdAt: number;
1771
- editorId: string;
1772
- progress: number;
1773
- target: number;
1774
- isoWeek: string;
1775
- dailyMilestones: {
1776
- id: string;
1777
- date: string;
1778
- progress: number;
1779
- target: number;
1780
- }[];
1781
- }, {
1782
- id: string;
1783
- createdAt: number;
1784
- editorId: string;
1785
- progress: number;
1786
- target: number;
1787
- isoWeek: string;
1788
- dailyMilestones: {
1789
- id: string;
1790
- date: string;
1791
- progress: number;
1792
- target: number;
1793
- }[];
1794
- }>;
815
+ }, z.core.$strip>>;
816
+ }, z.core.$strip>;
1795
817
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
1796
818
  type Goal = z.infer<typeof GoalSchema>;
1797
819
 
@@ -1852,413 +874,113 @@ declare const NotificationItemSchema: z.ZodObject<{
1852
874
  triggerId: z.ZodOptional<z.ZodString>;
1853
875
  title: z.ZodString;
1854
876
  body: z.ZodString;
1855
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
877
+ status: z.ZodEnum<{
878
+ failed: "failed";
879
+ delivered: "delivered";
880
+ deleted: "deleted";
881
+ }>;
1856
882
  deliveredAt: z.ZodNumber;
1857
883
  openedAt: z.ZodOptional<z.ZodNumber>;
1858
884
  deletedAt: z.ZodOptional<z.ZodNumber>;
1859
885
  cta: z.ZodOptional<z.ZodObject<{
1860
886
  label: z.ZodString;
1861
887
  url: z.ZodString;
1862
- }, "strip", z.ZodTypeAny, {
1863
- label: string;
1864
- url: string;
1865
- }, {
1866
- label: string;
1867
- url: string;
1868
- }>>;
1869
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
888
+ }, z.core.$strip>>;
889
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1870
890
  error: z.ZodOptional<z.ZodString>;
1871
- }, "strip", z.ZodTypeAny, {
1872
- id: string;
1873
- userId: string;
1874
- title: string;
1875
- body: string;
1876
- status: "failed" | "delivered" | "deleted";
1877
- deliveredAt: number;
1878
- metadata: Record<string, string | number>;
1879
- triggerId?: string | undefined;
1880
- openedAt?: number | undefined;
1881
- deletedAt?: number | undefined;
1882
- cta?: {
1883
- label: string;
1884
- url: string;
1885
- } | undefined;
1886
- error?: string | undefined;
1887
- }, {
1888
- id: string;
1889
- userId: string;
1890
- title: string;
1891
- body: string;
1892
- status: "failed" | "delivered" | "deleted";
1893
- deliveredAt: number;
1894
- metadata: Record<string, string | number>;
1895
- triggerId?: string | undefined;
1896
- openedAt?: number | undefined;
1897
- deletedAt?: number | undefined;
1898
- cta?: {
1899
- label: string;
1900
- url: string;
1901
- } | undefined;
1902
- error?: string | undefined;
1903
- }>;
1904
- declare const NotificationDetailSchema: z.ZodObject<Pick<{
1905
- id: z.ZodString;
891
+ }, z.core.$strip>;
892
+ declare const NotificationDetailSchema: z.ZodObject<{
1906
893
  userId: z.ZodString;
1907
- triggerId: z.ZodOptional<z.ZodString>;
1908
894
  title: z.ZodString;
1909
895
  body: z.ZodString;
1910
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
1911
- deliveredAt: z.ZodNumber;
1912
- openedAt: z.ZodOptional<z.ZodNumber>;
1913
- deletedAt: z.ZodOptional<z.ZodNumber>;
1914
- cta: z.ZodOptional<z.ZodObject<{
1915
- label: z.ZodString;
1916
- url: z.ZodString;
1917
- }, "strip", z.ZodTypeAny, {
1918
- label: string;
1919
- url: string;
1920
- }, {
1921
- label: string;
1922
- url: string;
1923
- }>>;
1924
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1925
- error: z.ZodOptional<z.ZodString>;
1926
- }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
1927
- userId: string;
1928
- title: string;
1929
- body: string;
1930
- metadata: Record<string, string | number>;
1931
- }, {
1932
- userId: string;
1933
- title: string;
1934
- body: string;
1935
- metadata: Record<string, string | number>;
1936
- }>;
896
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
897
+ }, z.core.$strip>;
1937
898
  declare const CriteriaSchema: z.ZodObject<{
1938
- type: z.ZodNativeEnum<typeof CriteriaType>;
899
+ type: z.ZodEnum<typeof CriteriaType>;
1939
900
  params: z.ZodRecord<z.ZodString, z.ZodAny>;
1940
- }, "strip", z.ZodTypeAny, {
1941
- params: Record<string, any>;
1942
- type: CriteriaType;
1943
- }, {
1944
- params: Record<string, any>;
1945
- type: CriteriaType;
1946
- }>;
901
+ }, z.core.$strip>;
1947
902
  declare const HistorySchema: z.ZodObject<{
1948
903
  batchId: z.ZodString;
1949
904
  executedAt: z.ZodNumber;
1950
905
  timezone: z.ZodString;
1951
- status: z.ZodEnum<["success", "failed", "info", "warn"]>;
906
+ status: z.ZodEnum<{
907
+ failed: "failed";
908
+ success: "success";
909
+ info: "info";
910
+ warn: "warn";
911
+ }>;
1952
912
  users: z.ZodObject<{
1953
913
  total: z.ZodNumber;
1954
914
  success: z.ZodNumber;
1955
915
  error: z.ZodNumber;
1956
- }, "strip", z.ZodTypeAny, {
1957
- error: number;
1958
- success: number;
1959
- total: number;
1960
- }, {
1961
- error: number;
1962
- success: number;
1963
- total: number;
1964
- }>;
916
+ }, z.core.$strip>;
1965
917
  errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
1966
918
  token: z.ZodString;
1967
919
  error: z.ZodString;
1968
- }, "strip", z.ZodTypeAny, {
1969
- token: string;
1970
- error: string;
1971
- }, {
1972
- token: string;
1973
- error: string;
1974
- }>, "many">>;
920
+ }, z.core.$strip>>>;
1975
921
  executionTimeDuration: z.ZodOptional<z.ZodNumber>;
1976
- }, "strip", z.ZodTypeAny, {
1977
- status: "failed" | "success" | "info" | "warn";
1978
- batchId: string;
1979
- executedAt: number;
1980
- timezone: string;
1981
- users: {
1982
- error: number;
1983
- success: number;
1984
- total: number;
1985
- };
1986
- errorList?: {
1987
- token: string;
1988
- error: string;
1989
- }[] | undefined;
1990
- executionTimeDuration?: number | undefined;
1991
- }, {
1992
- status: "failed" | "success" | "info" | "warn";
1993
- batchId: string;
1994
- executedAt: number;
1995
- timezone: string;
1996
- users: {
1997
- error: number;
1998
- success: number;
1999
- total: number;
2000
- };
2001
- errorList?: {
2002
- token: string;
2003
- error: string;
2004
- }[] | undefined;
2005
- executionTimeDuration?: number | undefined;
2006
- }>;
922
+ }, z.core.$strip>;
2007
923
  declare const RecurrenceRuleSchema: z.ZodObject<{
2008
- frequency: z.ZodNativeEnum<typeof Frequency>;
924
+ frequency: z.ZodEnum<typeof Frequency>;
2009
925
  interval: z.ZodNumber;
2010
- weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
926
+ weekDays: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof WeekDay>>>;
2011
927
  dayOfMonth: z.ZodOptional<z.ZodNumber>;
2012
928
  endDate: z.ZodOptional<z.ZodString>;
2013
929
  ocurrences: z.ZodOptional<z.ZodNumber>;
2014
- }, "strip", z.ZodTypeAny, {
2015
- frequency: Frequency;
2016
- interval: number;
2017
- weekDays?: WeekDay[] | undefined;
2018
- dayOfMonth?: number | undefined;
2019
- endDate?: string | undefined;
2020
- ocurrences?: number | undefined;
2021
- }, {
2022
- frequency: Frequency;
2023
- interval: number;
2024
- weekDays?: WeekDay[] | undefined;
2025
- dayOfMonth?: number | undefined;
2026
- endDate?: string | undefined;
2027
- ocurrences?: number | undefined;
2028
- }>;
930
+ }, z.core.$strip>;
2029
931
  declare const TriggerSchema: z.ZodObject<{
2030
932
  id: z.ZodString;
2031
933
  title: z.ZodString;
2032
934
  description: z.ZodString;
2033
- transportType: z.ZodArray<z.ZodNativeEnum<typeof TransportType>, "many">;
2034
- notification: z.ZodObject<Pick<{
2035
- id: z.ZodString;
935
+ transportType: z.ZodArray<z.ZodEnum<typeof TransportType>>;
936
+ notification: z.ZodObject<{
2036
937
  userId: z.ZodString;
2037
- triggerId: z.ZodOptional<z.ZodString>;
2038
938
  title: z.ZodString;
2039
939
  body: z.ZodString;
2040
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
2041
- deliveredAt: z.ZodNumber;
2042
- openedAt: z.ZodOptional<z.ZodNumber>;
2043
- deletedAt: z.ZodOptional<z.ZodNumber>;
2044
- cta: z.ZodOptional<z.ZodObject<{
2045
- label: z.ZodString;
2046
- url: z.ZodString;
2047
- }, "strip", z.ZodTypeAny, {
2048
- label: string;
2049
- url: string;
2050
- }, {
2051
- label: string;
2052
- url: string;
2053
- }>>;
2054
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2055
- error: z.ZodOptional<z.ZodString>;
2056
- }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
2057
- userId: string;
2058
- title: string;
2059
- body: string;
2060
- metadata: Record<string, string | number>;
2061
- }, {
2062
- userId: string;
2063
- title: string;
2064
- body: string;
2065
- metadata: Record<string, string | number>;
2066
- }>;
940
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
941
+ }, z.core.$strip>;
2067
942
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2068
943
  batchId: z.ZodString;
2069
944
  executedAt: z.ZodNumber;
2070
945
  timezone: z.ZodString;
2071
- status: z.ZodEnum<["success", "failed", "info", "warn"]>;
946
+ status: z.ZodEnum<{
947
+ failed: "failed";
948
+ success: "success";
949
+ info: "info";
950
+ warn: "warn";
951
+ }>;
2072
952
  users: z.ZodObject<{
2073
953
  total: z.ZodNumber;
2074
954
  success: z.ZodNumber;
2075
955
  error: z.ZodNumber;
2076
- }, "strip", z.ZodTypeAny, {
2077
- error: number;
2078
- success: number;
2079
- total: number;
2080
- }, {
2081
- error: number;
2082
- success: number;
2083
- total: number;
2084
- }>;
956
+ }, z.core.$strip>;
2085
957
  errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
2086
958
  token: z.ZodString;
2087
959
  error: z.ZodString;
2088
- }, "strip", z.ZodTypeAny, {
2089
- token: string;
2090
- error: string;
2091
- }, {
2092
- token: string;
2093
- error: string;
2094
- }>, "many">>;
960
+ }, z.core.$strip>>>;
2095
961
  executionTimeDuration: z.ZodOptional<z.ZodNumber>;
2096
- }, "strip", z.ZodTypeAny, {
2097
- status: "failed" | "success" | "info" | "warn";
2098
- batchId: string;
2099
- executedAt: number;
2100
- timezone: string;
2101
- users: {
2102
- error: number;
2103
- success: number;
2104
- total: number;
2105
- };
2106
- errorList?: {
2107
- token: string;
2108
- error: string;
2109
- }[] | undefined;
2110
- executionTimeDuration?: number | undefined;
2111
- }, {
2112
- status: "failed" | "success" | "info" | "warn";
2113
- batchId: string;
2114
- executedAt: number;
2115
- timezone: string;
2116
- users: {
2117
- error: number;
2118
- success: number;
2119
- total: number;
2120
- };
2121
- errorList?: {
2122
- token: string;
2123
- error: string;
2124
- }[] | undefined;
2125
- executionTimeDuration?: number | undefined;
2126
- }>, "many">>;
2127
- status: z.ZodNativeEnum<typeof Status>;
962
+ }, z.core.$strip>>>;
963
+ status: z.ZodEnum<typeof Status>;
2128
964
  recurrence: z.ZodOptional<z.ZodObject<{
2129
- frequency: z.ZodNativeEnum<typeof Frequency>;
965
+ frequency: z.ZodEnum<typeof Frequency>;
2130
966
  interval: z.ZodNumber;
2131
- weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
967
+ weekDays: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof WeekDay>>>;
2132
968
  dayOfMonth: z.ZodOptional<z.ZodNumber>;
2133
969
  endDate: z.ZodOptional<z.ZodString>;
2134
970
  ocurrences: z.ZodOptional<z.ZodNumber>;
2135
- }, "strip", z.ZodTypeAny, {
2136
- frequency: Frequency;
2137
- interval: number;
2138
- weekDays?: WeekDay[] | undefined;
2139
- dayOfMonth?: number | undefined;
2140
- endDate?: string | undefined;
2141
- ocurrences?: number | undefined;
2142
- }, {
2143
- frequency: Frequency;
2144
- interval: number;
2145
- weekDays?: WeekDay[] | undefined;
2146
- dayOfMonth?: number | undefined;
2147
- endDate?: string | undefined;
2148
- ocurrences?: number | undefined;
2149
- }>>;
971
+ }, z.core.$strip>>;
2150
972
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2151
- tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
973
+ tenantIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2152
974
  executionDate: z.ZodOptional<z.ZodString>;
2153
975
  timeOfDay: z.ZodString;
2154
976
  criteria: z.ZodObject<{
2155
- type: z.ZodNativeEnum<typeof CriteriaType>;
977
+ type: z.ZodEnum<typeof CriteriaType>;
2156
978
  params: z.ZodRecord<z.ZodString, z.ZodAny>;
2157
- }, "strip", z.ZodTypeAny, {
2158
- params: Record<string, any>;
2159
- type: CriteriaType;
2160
- }, {
2161
- params: Record<string, any>;
2162
- type: CriteriaType;
2163
- }>;
979
+ }, z.core.$strip>;
2164
980
  nextExecution: z.ZodOptional<z.ZodNumber>;
2165
981
  createdAt: z.ZodOptional<z.ZodNumber>;
2166
982
  modified: z.ZodOptional<z.ZodNumber>;
2167
- }, "strip", z.ZodTypeAny, {
2168
- id: string;
2169
- title: string;
2170
- status: Status;
2171
- description: string;
2172
- transportType: TransportType[];
2173
- notification: {
2174
- userId: string;
2175
- title: string;
2176
- body: string;
2177
- metadata: Record<string, string | number>;
2178
- };
2179
- timeOfDay: string;
2180
- criteria: {
2181
- params: Record<string, any>;
2182
- type: CriteriaType;
2183
- };
2184
- timezone?: string | null | undefined;
2185
- history?: {
2186
- status: "failed" | "success" | "info" | "warn";
2187
- batchId: string;
2188
- executedAt: number;
2189
- timezone: string;
2190
- users: {
2191
- error: number;
2192
- success: number;
2193
- total: number;
2194
- };
2195
- errorList?: {
2196
- token: string;
2197
- error: string;
2198
- }[] | undefined;
2199
- executionTimeDuration?: number | undefined;
2200
- }[] | undefined;
2201
- recurrence?: {
2202
- frequency: Frequency;
2203
- interval: number;
2204
- weekDays?: WeekDay[] | undefined;
2205
- dayOfMonth?: number | undefined;
2206
- endDate?: string | undefined;
2207
- ocurrences?: number | undefined;
2208
- } | undefined;
2209
- tenantIds?: string[] | undefined;
2210
- executionDate?: string | undefined;
2211
- nextExecution?: number | undefined;
2212
- createdAt?: number | undefined;
2213
- modified?: number | undefined;
2214
- }, {
2215
- id: string;
2216
- title: string;
2217
- status: Status;
2218
- description: string;
2219
- transportType: TransportType[];
2220
- notification: {
2221
- userId: string;
2222
- title: string;
2223
- body: string;
2224
- metadata: Record<string, string | number>;
2225
- };
2226
- timeOfDay: string;
2227
- criteria: {
2228
- params: Record<string, any>;
2229
- type: CriteriaType;
2230
- };
2231
- timezone?: string | null | undefined;
2232
- history?: {
2233
- status: "failed" | "success" | "info" | "warn";
2234
- batchId: string;
2235
- executedAt: number;
2236
- timezone: string;
2237
- users: {
2238
- error: number;
2239
- success: number;
2240
- total: number;
2241
- };
2242
- errorList?: {
2243
- token: string;
2244
- error: string;
2245
- }[] | undefined;
2246
- executionTimeDuration?: number | undefined;
2247
- }[] | undefined;
2248
- recurrence?: {
2249
- frequency: Frequency;
2250
- interval: number;
2251
- weekDays?: WeekDay[] | undefined;
2252
- dayOfMonth?: number | undefined;
2253
- endDate?: string | undefined;
2254
- ocurrences?: number | undefined;
2255
- } | undefined;
2256
- tenantIds?: string[] | undefined;
2257
- executionDate?: string | undefined;
2258
- nextExecution?: number | undefined;
2259
- createdAt?: number | undefined;
2260
- modified?: number | undefined;
2261
- }>;
983
+ }, z.core.$strip>;
2262
984
  type NotificationItem = z.infer<typeof NotificationItemSchema>;
2263
985
  type NotificationDetail = z.infer<typeof NotificationDetailSchema>;
2264
986
  type Trigger = z.infer<typeof TriggerSchema>;
@@ -2342,21 +1064,17 @@ interface IAPI$1 {
2342
1064
  }
2343
1065
 
2344
1066
  declare const NoteHistorySchema: z.ZodObject<{
2345
- type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
1067
+ type: z.ZodEnum<{
1068
+ deleted: "deleted";
1069
+ created: "created";
1070
+ updated: "updated";
1071
+ "asset-added": "asset-added";
1072
+ "asset-removed": "asset-removed";
1073
+ }>;
2346
1074
  actorEmail: z.ZodString;
2347
1075
  timestamp: z.ZodNumber;
2348
1076
  details: z.ZodOptional<z.ZodString>;
2349
- }, "strip", z.ZodTypeAny, {
2350
- type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2351
- timestamp: number;
2352
- actorEmail: string;
2353
- details?: string | undefined;
2354
- }, {
2355
- type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2356
- timestamp: number;
2357
- actorEmail: string;
2358
- details?: string | undefined;
2359
- }>;
1077
+ }, z.core.$strip>;
2360
1078
  declare const NoteSchema: z.ZodObject<{
2361
1079
  id: z.ZodString;
2362
1080
  userId: z.ZodString;
@@ -2374,110 +1092,24 @@ declare const NoteSchema: z.ZodObject<{
2374
1092
  error: z.ZodOptional<z.ZodString>;
2375
1093
  authorId: z.ZodString;
2376
1094
  uploadedAt: z.ZodNumber;
2377
- }, "strip", z.ZodTypeAny, {
2378
- type: string;
2379
- assetId: string;
2380
- fileName: string;
2381
- extension: string;
2382
- fileSize: number;
2383
- assetUrl: string;
2384
- thumbnailUrl: string;
2385
- authorId: string;
2386
- uploadedAt: number;
2387
- error?: string | undefined;
2388
- duration?: number | undefined;
2389
- progress?: number | undefined;
2390
- }, {
2391
- type: string;
2392
- assetId: string;
2393
- fileName: string;
2394
- extension: string;
2395
- fileSize: number;
2396
- assetUrl: string;
2397
- thumbnailUrl: string;
2398
- authorId: string;
2399
- uploadedAt: number;
2400
- error?: string | undefined;
2401
- duration?: number | undefined;
2402
- progress?: number | undefined;
2403
- }>, "many">;
1095
+ }, z.core.$strip>>;
2404
1096
  title: z.ZodString;
2405
1097
  content: z.ZodString;
2406
1098
  createdAt: z.ZodNumber;
2407
1099
  modified: z.ZodNumber;
2408
1100
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2409
- type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
1101
+ type: z.ZodEnum<{
1102
+ deleted: "deleted";
1103
+ created: "created";
1104
+ updated: "updated";
1105
+ "asset-added": "asset-added";
1106
+ "asset-removed": "asset-removed";
1107
+ }>;
2410
1108
  actorEmail: z.ZodString;
2411
1109
  timestamp: z.ZodNumber;
2412
1110
  details: z.ZodOptional<z.ZodString>;
2413
- }, "strip", z.ZodTypeAny, {
2414
- type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2415
- timestamp: number;
2416
- actorEmail: string;
2417
- details?: string | undefined;
2418
- }, {
2419
- type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2420
- timestamp: number;
2421
- actorEmail: string;
2422
- details?: string | undefined;
2423
- }>, "many">>;
2424
- }, "strip", z.ZodTypeAny, {
2425
- id: string;
2426
- userId: string;
2427
- title: string;
2428
- createdAt: number;
2429
- modified: number;
2430
- content: string;
2431
- assets: {
2432
- type: string;
2433
- assetId: string;
2434
- fileName: string;
2435
- extension: string;
2436
- fileSize: number;
2437
- assetUrl: string;
2438
- thumbnailUrl: string;
2439
- authorId: string;
2440
- uploadedAt: number;
2441
- error?: string | undefined;
2442
- duration?: number | undefined;
2443
- progress?: number | undefined;
2444
- }[];
2445
- authorEmail: string;
2446
- history?: {
2447
- type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2448
- timestamp: number;
2449
- actorEmail: string;
2450
- details?: string | undefined;
2451
- }[] | undefined;
2452
- }, {
2453
- id: string;
2454
- userId: string;
2455
- title: string;
2456
- createdAt: number;
2457
- modified: number;
2458
- content: string;
2459
- assets: {
2460
- type: string;
2461
- assetId: string;
2462
- fileName: string;
2463
- extension: string;
2464
- fileSize: number;
2465
- assetUrl: string;
2466
- thumbnailUrl: string;
2467
- authorId: string;
2468
- uploadedAt: number;
2469
- error?: string | undefined;
2470
- duration?: number | undefined;
2471
- progress?: number | undefined;
2472
- }[];
2473
- authorEmail: string;
2474
- history?: {
2475
- type: "deleted" | "created" | "updated" | "asset-added" | "asset-removed";
2476
- timestamp: number;
2477
- actorEmail: string;
2478
- details?: string | undefined;
2479
- }[] | undefined;
2480
- }>;
1111
+ }, z.core.$strip>>>;
1112
+ }, z.core.$strip>;
2481
1113
  type Note = z.infer<typeof NoteSchema>;
2482
1114
  type NoteHistory = z.infer<typeof NoteHistorySchema>;
2483
1115
 
@@ -2593,33 +1225,7 @@ declare const AssetSchema: z.ZodObject<{
2593
1225
  error: z.ZodOptional<z.ZodString>;
2594
1226
  authorId: z.ZodString;
2595
1227
  uploadedAt: z.ZodNumber;
2596
- }, "strip", z.ZodTypeAny, {
2597
- type: string;
2598
- assetId: string;
2599
- fileName: string;
2600
- extension: string;
2601
- fileSize: number;
2602
- assetUrl: string;
2603
- thumbnailUrl: string;
2604
- authorId: string;
2605
- uploadedAt: number;
2606
- error?: string | undefined;
2607
- duration?: number | undefined;
2608
- progress?: number | undefined;
2609
- }, {
2610
- type: string;
2611
- assetId: string;
2612
- fileName: string;
2613
- extension: string;
2614
- fileSize: number;
2615
- assetUrl: string;
2616
- thumbnailUrl: string;
2617
- authorId: string;
2618
- uploadedAt: number;
2619
- error?: string | undefined;
2620
- duration?: number | undefined;
2621
- progress?: number | undefined;
2622
- }>;
1228
+ }, z.core.$strip>;
2623
1229
  type Asset = z.infer<typeof AssetSchema>;
2624
1230
 
2625
1231
  declare const index_AssetSchema: typeof AssetSchema;