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

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 DELETED
@@ -1,2713 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- type Environment = "prod" | "staging" | "local";
4
-
5
- declare const ScriptSchema: z.ZodObject<{
6
- id: z.ZodString;
7
- title: z.ZodString;
8
- content: z.ZodString;
9
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
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
- }>;
24
- declare const CategorySchema: z.ZodObject<{
25
- id: z.ZodString;
26
- title: z.ZodString;
27
- pictureUrl: z.ZodString;
28
- backgroundColor: z.ZodString;
29
- active: z.ZodBoolean;
30
- scripts: z.ZodArray<z.ZodObject<{
31
- id: z.ZodString;
32
- title: z.ZodString;
33
- content: z.ZodString;
34
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
- 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
- }>;
76
- declare const PromptSchema: z.ZodObject<{
77
- id: z.ZodString;
78
- tenantId: z.ZodString;
79
- categories: z.ZodArray<z.ZodObject<{
80
- id: z.ZodString;
81
- title: z.ZodString;
82
- pictureUrl: z.ZodString;
83
- backgroundColor: z.ZodString;
84
- active: z.ZodBoolean;
85
- scripts: z.ZodArray<z.ZodObject<{
86
- id: z.ZodString;
87
- title: z.ZodString;
88
- content: z.ZodString;
89
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
90
- 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
- }>;
166
- type Script = z.infer<typeof ScriptSchema>;
167
- type Category = z.infer<typeof CategorySchema>;
168
- type Prompt = z.infer<typeof PromptSchema>;
169
-
170
- type Context = {
171
- token: string;
172
- requestId?: string;
173
- };
174
-
175
- interface IAPI$a {
176
- getPrompt: (c: Context) => Promise<Prompt>;
177
- addScript: (c: Context, script: Partial<Script>) => Promise<Script>;
178
- deleteScript: (c: Context, id: string) => Promise<boolean>;
179
- getScripts: (c: Context) => Promise<Script[]>;
180
- updateScript: (c: Context, id: string, script: Partial<Script>) => Promise<boolean>;
181
- }
182
- declare const Endpoints$9: {
183
- GetPrompt: {
184
- uri: string;
185
- method: string;
186
- };
187
- AddScript: {
188
- uri: string;
189
- method: string;
190
- };
191
- DeleteScript: {
192
- uri: string;
193
- method: string;
194
- };
195
- ListScript: {
196
- uri: string;
197
- method: string;
198
- };
199
- UpdateScript: {
200
- uri: string;
201
- method: string;
202
- };
203
- };
204
-
205
- type index$c_Category = Category;
206
- declare const index$c_CategorySchema: typeof CategorySchema;
207
- declare const index$c_PromptSchema: typeof PromptSchema;
208
- type index$c_Script = Script;
209
- declare const index$c_ScriptSchema: typeof ScriptSchema;
210
- declare namespace index$c {
211
- export { type index$c_Category as Category, index$c_CategorySchema as CategorySchema, Endpoints$9 as Endpoints, type Prompt as Entity, type IAPI$a as IAPI, index$c_PromptSchema as PromptSchema, type index$c_Script as Script, index$c_ScriptSchema as ScriptSchema };
212
- }
213
-
214
- declare enum Type {
215
- CUSTOMER_SUBSCRIPTION = 0,
216
- TENANT_SUBSCRIPTION = 1
217
- }
218
- declare const SubscriptionTypeSchema: z.ZodNativeEnum<typeof Type>;
219
- declare const PlanSchema: z.ZodObject<{
220
- id: z.ZodString;
221
- currency: z.ZodString;
222
- price: z.ZodNumber;
223
- interval: z.ZodString;
224
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
225
- 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
- }>;
241
- declare const ProductSchema: z.ZodObject<{
242
- id: z.ZodString;
243
- name: z.ZodString;
244
- descriptions: z.ZodArray<z.ZodObject<{
245
- description: z.ZodString;
246
- subtitle: z.ZodString;
247
- }, "strip", z.ZodTypeAny, {
248
- description: string;
249
- subtitle: string;
250
- }, {
251
- description: string;
252
- subtitle: string;
253
- }>, "many">;
254
- metadata: z.ZodAny;
255
- plans: z.ZodArray<z.ZodObject<{
256
- id: z.ZodString;
257
- currency: z.ZodString;
258
- price: z.ZodNumber;
259
- interval: z.ZodString;
260
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
261
- 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">;
277
- 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
- }>;
313
- declare const ChargeSchema: z.ZodObject<{
314
- id: z.ZodNumber;
315
- created: z.ZodNumber;
316
- paid: z.ZodBoolean;
317
- receiptUrl: z.ZodString;
318
- status: z.ZodString;
319
- price: z.ZodString;
320
- paymentType: z.ZodString;
321
- last4: z.ZodOptional<z.ZodString>;
322
- 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
- }>;
344
- declare const SubscriptionSchema: z.ZodObject<{
345
- id: z.ZodString;
346
- status: z.ZodString;
347
- startDate: z.ZodOptional<z.ZodNumber>;
348
- daysUntilDue: z.ZodOptional<z.ZodNumber>;
349
- renewAutomatically: z.ZodOptional<z.ZodBoolean>;
350
- currentPeriodStart: z.ZodOptional<z.ZodNumber>;
351
- currentPeriodEnd: z.ZodOptional<z.ZodNumber>;
352
- paymentMethodId: z.ZodOptional<z.ZodString>;
353
- product: z.ZodObject<{
354
- id: z.ZodString;
355
- name: z.ZodString;
356
- descriptions: z.ZodArray<z.ZodObject<{
357
- description: z.ZodString;
358
- subtitle: z.ZodString;
359
- }, "strip", z.ZodTypeAny, {
360
- description: string;
361
- subtitle: string;
362
- }, {
363
- description: string;
364
- subtitle: string;
365
- }>, "many">;
366
- metadata: z.ZodAny;
367
- plans: z.ZodArray<z.ZodObject<{
368
- id: z.ZodString;
369
- currency: z.ZodString;
370
- price: z.ZodNumber;
371
- interval: z.ZodString;
372
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
373
- 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">;
389
- 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>>;
426
- plan: z.ZodOptional<z.ZodObject<{
427
- id: z.ZodString;
428
- currency: z.ZodString;
429
- price: z.ZodNumber;
430
- interval: z.ZodString;
431
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
432
- 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
- }>;
521
- type Subscription = z.infer<typeof SubscriptionSchema>;
522
- type Charge = z.infer<typeof ChargeSchema>;
523
- type Plan = z.infer<typeof PlanSchema>;
524
- type Product = z.infer<typeof ProductSchema>;
525
-
526
- interface IAPI$9 {
527
- getCharges: (ctx: Context) => Promise<Charge[]>;
528
- getPortalUrl: (ctx: Context) => Promise<string>;
529
- getSubscription: (context: Context, userId?: string) => Promise<Subscription | null>;
530
- getProduct: (id: string, context?: Context) => Promise<Product>;
531
- getProducts: (ctx?: Context) => Promise<Product[]>;
532
- charge: (ctx: Context) => Promise<boolean>;
533
- pause: (ctx: Context) => Promise<boolean>;
534
- resume: (ctx: Context) => Promise<boolean>;
535
- updatePlan: (ctx: Context, planId: string) => Promise<boolean>;
536
- createCheckout: (planId: string | null, ctx: Context) => Promise<string>;
537
- }
538
- declare const Endpoints$8: {
539
- GetPortal: {
540
- uri: string;
541
- method: string;
542
- };
543
- GetProduct: {
544
- uri: string;
545
- method: string;
546
- };
547
- GetActiveSubscription: {
548
- uri: string;
549
- method: string;
550
- };
551
- GetCharges: {
552
- uri: string;
553
- method: string;
554
- };
555
- GetUserActiveSubscription: {
556
- uri: string;
557
- method: string;
558
- };
559
- GetProducts: {
560
- uri: string;
561
- method: string;
562
- };
563
- GetProductsByUser: {
564
- uri: string;
565
- method: string;
566
- };
567
- Checkout: {
568
- uri: string;
569
- method: string;
570
- };
571
- Charge: {
572
- uri: string;
573
- method: string;
574
- };
575
- Pause: {
576
- uri: string;
577
- method: string;
578
- };
579
- Resume: {
580
- uri: string;
581
- method: string;
582
- };
583
- UpdatePlan: {
584
- uri: string;
585
- method: string;
586
- };
587
- };
588
-
589
- type index$b_Charge = Charge;
590
- declare const index$b_ChargeSchema: typeof ChargeSchema;
591
- type index$b_Plan = Plan;
592
- declare const index$b_PlanSchema: typeof PlanSchema;
593
- type index$b_Product = Product;
594
- declare const index$b_ProductSchema: typeof ProductSchema;
595
- declare const index$b_SubscriptionSchema: typeof SubscriptionSchema;
596
- declare const index$b_SubscriptionTypeSchema: typeof SubscriptionTypeSchema;
597
- type index$b_Type = Type;
598
- declare const index$b_Type: typeof Type;
599
- declare namespace index$b {
600
- export { type index$b_Charge as Charge, index$b_ChargeSchema as ChargeSchema, Endpoints$8 as Endpoints, type Subscription as Entity, type IAPI$9 as IAPI, type index$b_Plan as Plan, index$b_PlanSchema as PlanSchema, type index$b_Product as Product, index$b_ProductSchema as ProductSchema, index$b_SubscriptionSchema as SubscriptionSchema, index$b_SubscriptionTypeSchema as SubscriptionTypeSchema, index$b_Type as Type };
601
- }
602
-
603
- declare enum Role {
604
- USER = "User",
605
- EDITOR = "Editor",
606
- QA = "QA",
607
- ADMIN = "ADMIN",
608
- SYSTEM = "SYSTEM"
609
- }
610
- declare enum System {
611
- APP = "APP",
612
- EDITOR = "EDITOR",
613
- QA = "QA",
614
- ADMIN = "ADMIN"
615
- }
616
- declare const PreferencesSchema$1: z.ZodObject<{
617
- primaryColor: z.ZodOptional<z.ZodString>;
618
- secondaryColor: z.ZodOptional<z.ZodString>;
619
- facebookLink: z.ZodOptional<z.ZodString>;
620
- isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
621
- instagramLink: z.ZodOptional<z.ZodString>;
622
- industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
- bRoll: z.ZodOptional<z.ZodBoolean>;
624
- 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
- }>;
644
- declare const UserSchema: z.ZodObject<{
645
- id: z.ZodString;
646
- name: z.ZodString;
647
- email: z.ZodString;
648
- fcmToken: z.ZodOptional<z.ZodString>;
649
- profession: z.ZodOptional<z.ZodString>;
650
- photoUrl: z.ZodOptional<z.ZodString>;
651
- preferences: z.ZodOptional<z.ZodObject<{
652
- primaryColor: z.ZodOptional<z.ZodString>;
653
- secondaryColor: z.ZodOptional<z.ZodString>;
654
- facebookLink: z.ZodOptional<z.ZodString>;
655
- isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
656
- instagramLink: z.ZodOptional<z.ZodString>;
657
- industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
658
- bRoll: z.ZodOptional<z.ZodBoolean>;
659
- 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
- }>>;
679
- tenantId: z.ZodOptional<z.ZodString>;
680
- editorId: z.ZodOptional<z.ZodString>;
681
- timezone: z.ZodOptional<z.ZodString>;
682
- experienceId: z.ZodOptional<z.ZodString>;
683
- 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
- }>;
732
- type User = z.infer<typeof UserSchema>;
733
- type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
734
- type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
735
- type Create = Pick<User, "name" | "email"> & {
736
- password?: string;
737
- passwordConfirmation?: string;
738
- invitationCode?: string;
739
- role?: Role;
740
- industries?: string[];
741
- };
742
-
743
- type QueryOrderBy<T> = {
744
- field: keyof T | "modified";
745
- direction: "asc" | "desc";
746
- };
747
- type QueryWhere<T> = {
748
- field: keyof T | "modified";
749
- operation: "==" | "!=" | ">" | "<" | ">=" | "<=" | "in" | "array-contains";
750
- value: T[keyof T] | T[keyof T][];
751
- };
752
- type QueryOptions<T> = {
753
- perPage?: number;
754
- cursor?: string | number | null;
755
- orderBy?: QueryOrderBy<T>;
756
- wheres?: QueryWhere<T>[];
757
- };
758
-
759
- type APIResponse<T> = {
760
- data: T[];
761
- count: number;
762
- cursor?: string | number | null;
763
- perPage?: number;
764
- };
765
-
766
- type index$a_APIResponse<T> = APIResponse<T>;
767
- type index$a_QueryOptions<T> = QueryOptions<T>;
768
- type index$a_QueryOrderBy<T> = QueryOrderBy<T>;
769
- type index$a_QueryWhere<T> = QueryWhere<T>;
770
- declare namespace index$a {
771
- export type { index$a_APIResponse as APIResponse, index$a_QueryOptions as QueryOptions, index$a_QueryOrderBy as QueryOrderBy, index$a_QueryWhere as QueryWhere };
772
- }
773
-
774
- interface IAPI$8 {
775
- getUserInfo: (context: Context) => Promise<User>;
776
- isEmailAvaliable: (email: string) => Promise<boolean>;
777
- sendValidationCode: (email: string) => Promise<boolean>;
778
- confirmCode: (email: string, code: number, keepCode?: boolean) => Promise<boolean>;
779
- changePassword: (email: string, pass: string, passConfirm: string, code: number) => Promise<boolean>;
780
- changeEmail: (ctx: Context, email: string, code: number) => Promise<boolean>;
781
- authenticate: (email: string, password: string, system: System) => Promise<string>;
782
- update: (context: Context, update: Partial<Update>) => Promise<boolean>;
783
- setup: (context: Context) => Promise<boolean>;
784
- getBindedUsers: (ctx: Context) => Promise<User[]>;
785
- deleteAccount: (ctx: Context) => Promise<boolean>;
786
- getIntegrationToken: (ctx: Context) => Promise<string | null>;
787
- createIntegrationToken: (ctx: Context) => Promise<string>;
788
- search: (ctx: Context, query: QueryOptions<User>) => Promise<APIResponse<User>>;
789
- createUser: (data: Create) => Promise<User>;
790
- }
791
- declare const Endpoints$7: {
792
- ChangeEmail: {
793
- uri: string;
794
- method: string;
795
- };
796
- GetUserInfo: {
797
- uri: string;
798
- method: string;
799
- };
800
- GetBindedUsers: {
801
- uri: string;
802
- method: string;
803
- };
804
- EnableUser: {
805
- uri: string;
806
- method: string;
807
- };
808
- ChangePassword: {
809
- uri: string;
810
- method: string;
811
- };
812
- IsEmailAvaliable: {
813
- uri: string;
814
- method: string;
815
- };
816
- GetIntegrationToken: {
817
- uri: string;
818
- method: string;
819
- };
820
- CreateToken: {
821
- uri: string;
822
- method: string;
823
- };
824
- ConfirmCode: {
825
- uri: string;
826
- method: string;
827
- };
828
- DeleteAccount: {
829
- uri: string;
830
- method: string;
831
- };
832
- SendValidationCode: {
833
- uri: string;
834
- method: string;
835
- };
836
- Authenticate: {
837
- uri: string;
838
- method: string;
839
- };
840
- CreateUser: {
841
- uri: string;
842
- method: string;
843
- };
844
- UpdateUser: {
845
- uri: string;
846
- method: string;
847
- };
848
- Setup: {
849
- uri: string;
850
- method: string;
851
- };
852
- Search: {
853
- uri: string;
854
- method: string;
855
- };
856
- };
857
-
858
- type index$9_Create = Create;
859
- type index$9_Role = Role;
860
- declare const index$9_Role: typeof Role;
861
- type index$9_System = System;
862
- declare const index$9_System: typeof System;
863
- type index$9_Update = Update;
864
- declare const index$9_UserSchema: typeof UserSchema;
865
- declare namespace index$9 {
866
- export { type index$9_Create as Create, Endpoints$7 as Endpoints, type User as Entity, type IAPI$8 as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$9_Role as Role, index$9_System as System, type index$9_Update as Update, index$9_UserSchema as UserSchema };
867
- }
868
-
869
- declare const PreferencesSchema: z.ZodObject<{
870
- iconUrl: z.ZodString;
871
- logoUrl: z.ZodString;
872
- primaryColor: z.ZodString;
873
- secondaryColor: z.ZodString;
874
- 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
- }>;
888
- declare const TenantSchema: z.ZodObject<{
889
- id: z.ZodString;
890
- name: z.ZodString;
891
- isActive: z.ZodBoolean;
892
- isSubscriptionActive: z.ZodBoolean;
893
- preferences: z.ZodObject<{
894
- iconUrl: z.ZodString;
895
- logoUrl: z.ZodString;
896
- primaryColor: z.ZodString;
897
- secondaryColor: z.ZodString;
898
- 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
- }>;
912
- inviteCode: z.ZodString;
913
- totalUsersAllowed: z.ZodNumber;
914
- currentUsersSize: z.ZodOptional<z.ZodNumber>;
915
- chargeByEmail: z.ZodBoolean;
916
- defaultProductId: z.ZodOptional<z.ZodString>;
917
- defaultPlanId: z.ZodOptional<z.ZodString>;
918
- defaultCoupomCode: z.ZodOptional<z.ZodString>;
919
- allowedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
920
- useOwnScripts: z.ZodOptional<z.ZodBoolean>;
921
- subscription: z.ZodOptional<z.ZodLazy<z.ZodObject<{
922
- id: z.ZodString;
923
- status: z.ZodString;
924
- startDate: z.ZodOptional<z.ZodNumber>;
925
- daysUntilDue: z.ZodOptional<z.ZodNumber>;
926
- renewAutomatically: z.ZodOptional<z.ZodBoolean>;
927
- currentPeriodStart: z.ZodOptional<z.ZodNumber>;
928
- currentPeriodEnd: z.ZodOptional<z.ZodNumber>;
929
- paymentMethodId: z.ZodOptional<z.ZodString>;
930
- product: z.ZodObject<{
931
- id: z.ZodString;
932
- name: z.ZodString;
933
- descriptions: z.ZodArray<z.ZodObject<{
934
- description: z.ZodString;
935
- subtitle: z.ZodString;
936
- }, "strip", z.ZodTypeAny, {
937
- description: string;
938
- subtitle: string;
939
- }, {
940
- description: string;
941
- subtitle: string;
942
- }>, "many">;
943
- metadata: z.ZodAny;
944
- plans: z.ZodArray<z.ZodObject<{
945
- id: z.ZodString;
946
- currency: z.ZodString;
947
- price: z.ZodNumber;
948
- interval: z.ZodString;
949
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
950
- 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">;
966
- 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>>;
1003
- plan: z.ZodOptional<z.ZodObject<{
1004
- id: z.ZodString;
1005
- currency: z.ZodString;
1006
- price: z.ZodNumber;
1007
- interval: z.ZodString;
1008
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1009
- 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
- }>;
1215
- type Tenant = z.infer<typeof TenantSchema>;
1216
- type Preferences = z.infer<typeof PreferencesSchema>;
1217
-
1218
- interface IAPI$7 {
1219
- getByInviteCode: (code: string, context?: Context) => Promise<Tenant | null>;
1220
- create: (tenant: Tenant, context: Context) => Promise<boolean>;
1221
- list: (context: Context) => Promise<Tenant[]>;
1222
- getTenant: (context: Context, tenantId?: string) => Promise<Tenant | null>;
1223
- update: (tenantId: string, data: Pick<Tenant, "preferences">, context: Context) => Promise<boolean>;
1224
- }
1225
- declare const Endpoints$6: {
1226
- GetByInviteCode: {
1227
- uri: string;
1228
- method: string;
1229
- };
1230
- CreateTenant: {
1231
- uri: string;
1232
- method: string;
1233
- };
1234
- GetTenant: {
1235
- uri: string;
1236
- method: string;
1237
- };
1238
- GetTenantById: {
1239
- uri: string;
1240
- method: string;
1241
- };
1242
- UpdateTenant: {
1243
- uri: string;
1244
- method: string;
1245
- };
1246
- ListAll: {
1247
- uri: string;
1248
- method: string;
1249
- };
1250
- };
1251
-
1252
- type index$8_Preferences = Preferences;
1253
- declare const index$8_PreferencesSchema: typeof PreferencesSchema;
1254
- declare const index$8_TenantSchema: typeof TenantSchema;
1255
- declare namespace index$8 {
1256
- export { Endpoints$6 as Endpoints, type Tenant as Entity, type IAPI$7 as IAPI, type index$8_Preferences as Preferences, index$8_PreferencesSchema as PreferencesSchema, index$8_TenantSchema as TenantSchema };
1257
- }
1258
-
1259
- declare const TrackParamSchema: z.ZodObject<{
1260
- 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
- }>;
1269
- declare const TrackSchema: z.ZodObject<{
1270
- category: z.ZodString;
1271
- label: z.ZodString;
1272
- action: z.ZodString;
1273
- params: z.ZodOptional<z.ZodArray<z.ZodObject<{
1274
- 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
- }>;
1300
- type Track = z.infer<typeof TrackSchema>;
1301
- type TrackParam = z.infer<typeof TrackParamSchema>;
1302
-
1303
- interface IAPI$6 {
1304
- send: (t: Track) => Promise<boolean>;
1305
- }
1306
- declare const Endpoints$5: {
1307
- Track: {
1308
- uri: string;
1309
- method: string;
1310
- };
1311
- };
1312
-
1313
- type index$7_TrackParam = TrackParam;
1314
- declare const index$7_TrackParamSchema: typeof TrackParamSchema;
1315
- declare const index$7_TrackSchema: typeof TrackSchema;
1316
- declare namespace index$7 {
1317
- export { Endpoints$5 as Endpoints, type Track as Entity, type IAPI$6 as IAPI, type index$7_TrackParam as TrackParam, index$7_TrackParamSchema as TrackParamSchema, index$7_TrackSchema as TrackSchema };
1318
- }
1319
-
1320
- declare const EmailSchema: z.ZodObject<{
1321
- to: z.ZodOptional<z.ZodString>;
1322
- subject: z.ZodString;
1323
- 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
- }>;
1333
- type Email = z.infer<typeof EmailSchema>;
1334
-
1335
- interface IAPI$5 {
1336
- send: (email: Email, ctx?: Context) => Promise<boolean>;
1337
- }
1338
- declare const Endpoints$4: {
1339
- SendEmail: {
1340
- uri: string;
1341
- method: string;
1342
- };
1343
- };
1344
-
1345
- declare const index$6_EmailSchema: typeof EmailSchema;
1346
- declare namespace index$6 {
1347
- export { index$6_EmailSchema as EmailSchema, Endpoints$4 as Endpoints, type Email as Entity, type IAPI$5 as IAPI };
1348
- }
1349
-
1350
- declare enum Status$1 {
1351
- SUBMITTED = 0,
1352
- EDITING = 1,
1353
- COMPLETED = 2,
1354
- WAITING_APPROVE = 3,
1355
- DENIED = 4,
1356
- REVISIONING = 5,
1357
- CANCELLED = 6,
1358
- SCHEDULED = 7
1359
- }
1360
- declare enum CaptionStyle {
1361
- ONE_LINE = 1,
1362
- ONE_LINE_EMOJIS = 2,
1363
- TWO_LINES = 5,
1364
- TWO_LINES_EMOJIS = 3,
1365
- HOME_HIGHLIGHT = 4
1366
- }
1367
- declare const Styles: Style[];
1368
- type Style = {
1369
- value: CaptionStyle;
1370
- label: string;
1371
- };
1372
- declare const TimelineItemSchema: z.ZodObject<{
1373
- status: z.ZodNativeEnum<typeof Status$1>;
1374
- title: z.ZodString;
1375
- description: z.ZodString;
1376
- timestamp: z.ZodNumber;
1377
- 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
- }>;
1391
- declare const FeedbackSchema: z.ZodObject<{
1392
- criteria: z.ZodArray<z.ZodObject<{
1393
- id: z.ZodString;
1394
- label: z.ZodString;
1395
- score: z.ZodNumber;
1396
- 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">;
1408
- 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
- }>;
1426
- declare const ProjectSchema: z.ZodObject<{
1427
- id: z.ZodString;
1428
- title: z.ZodString;
1429
- instructions: z.ZodString;
1430
- submitMonth: z.ZodString;
1431
- captionStyle: z.ZodNativeEnum<typeof CaptionStyle>;
1432
- finalVideoId: z.ZodOptional<z.ZodString>;
1433
- thumbnailUrl: z.ZodOptional<z.ZodString>;
1434
- modified: z.ZodNumber;
1435
- feedback: z.ZodOptional<z.ZodObject<{
1436
- criteria: z.ZodArray<z.ZodObject<{
1437
- id: z.ZodString;
1438
- label: z.ZodString;
1439
- score: z.ZodNumber;
1440
- 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">;
1452
- 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
- }>>;
1470
- captionSuggestion: z.ZodOptional<z.ZodString>;
1471
- editorId: z.ZodOptional<z.ZodString>;
1472
- userId: z.ZodString;
1473
- assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1474
- assetId: z.ZodString;
1475
- fileName: z.ZodString;
1476
- extension: z.ZodString;
1477
- fileSize: z.ZodNumber;
1478
- assetUrl: z.ZodString;
1479
- thumbnailUrl: z.ZodString;
1480
- type: z.ZodString;
1481
- duration: z.ZodOptional<z.ZodNumber>;
1482
- progress: z.ZodOptional<z.ZodNumber>;
1483
- error: z.ZodOptional<z.ZodString>;
1484
- authorId: z.ZodString;
1485
- 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">>;
1513
- expirationTimestamp: z.ZodNumber;
1514
- isFree: z.ZodOptional<z.ZodBoolean>;
1515
- timeline: z.ZodArray<z.ZodObject<{
1516
- status: z.ZodNativeEnum<typeof Status$1>;
1517
- title: z.ZodString;
1518
- description: z.ZodString;
1519
- timestamp: z.ZodNumber;
1520
- 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">;
1534
- submitTimestamp: z.ZodNumber;
1535
- 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
- }>;
1632
- type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
1633
- type SendToApproval = {
1634
- video: string;
1635
- thumbnail: string;
1636
- captionSuggestion: string;
1637
- };
1638
- type Approve = {
1639
- scheduleTime?: number;
1640
- captionSuggestion: string;
1641
- feedback?: Feedback;
1642
- };
1643
- type Project = z.infer<typeof ProjectSchema>;
1644
- type TimelineItem = z.infer<typeof TimelineItemSchema>;
1645
- type Feedback = z.infer<typeof FeedbackSchema>;
1646
-
1647
- interface IAPI$4 {
1648
- reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
1649
- find: (context: Context, projectId: string) => Promise<Project>;
1650
- create: (context: Context, data: ProjectCreation) => Promise<Project>;
1651
- review: (context: Context, projectId: string, revision: string) => Promise<boolean>;
1652
- cancel: (context: Context, projectId: string) => Promise<boolean>;
1653
- list: (context: Context, query: QueryOptions<Project>) => Promise<Project[]>;
1654
- start: (context: Context) => Promise<boolean>;
1655
- sendToApproval: (context: Context, projectId: string, data: SendToApproval) => Promise<boolean>;
1656
- approve: (context: Context, projectId: string, data: Approve) => Promise<boolean>;
1657
- deny: (context: Context, projectId: string, denyFeedback: string, categories?: string[]) => Promise<boolean>;
1658
- unschedule: (context: Context, projectId: string) => Promise<boolean>;
1659
- rollback: (context: Context, projectId: string) => Promise<boolean>;
1660
- getNext: (context: Context, userId: string) => Promise<Project | null>;
1661
- getUserHistory: (context: Context, userId: string) => Promise<APIResponse<Project>>;
1662
- getPoolSize(context: Context): Promise<number>;
1663
- permissions: {
1664
- isEligibleForFreeProject(context: Context): Promise<boolean>;
1665
- };
1666
- }
1667
- declare const Endpoints$3: {
1668
- Reorder: {
1669
- uri: string;
1670
- method: string;
1671
- };
1672
- List: {
1673
- uri: string;
1674
- method: string;
1675
- };
1676
- GetNext: {
1677
- uri: string;
1678
- method: string;
1679
- };
1680
- CreateProject: {
1681
- uri: string;
1682
- method: string;
1683
- };
1684
- FindOne: {
1685
- uri: string;
1686
- method: string;
1687
- };
1688
- GetGoals: {
1689
- uri: string;
1690
- method: string;
1691
- };
1692
- Review: {
1693
- uri: string;
1694
- method: string;
1695
- };
1696
- Cancel: {
1697
- uri: string;
1698
- method: string;
1699
- };
1700
- StartEdition: {
1701
- uri: string;
1702
- method: string;
1703
- };
1704
- SendToApproval: {
1705
- uri: string;
1706
- method: string;
1707
- };
1708
- IsEligibleForFreeProject: {
1709
- uri: string;
1710
- method: string;
1711
- };
1712
- Approve: {
1713
- uri: string;
1714
- method: string;
1715
- };
1716
- Unschedule: {
1717
- uri: string;
1718
- method: string;
1719
- };
1720
- Rollback: {
1721
- uri: string;
1722
- method: string;
1723
- };
1724
- Deny: {
1725
- uri: string;
1726
- method: string;
1727
- };
1728
- GetUserHistory: {
1729
- uri: string;
1730
- method: string;
1731
- };
1732
- GetPoolSize: {
1733
- uri: string;
1734
- method: string;
1735
- };
1736
- };
1737
-
1738
- type StatusConfigType = {
1739
- id: Status$1;
1740
- label: string;
1741
- colors: {
1742
- text: string;
1743
- bg: string;
1744
- border: string;
1745
- dot: string;
1746
- };
1747
- thumbnail: {
1748
- primary: string;
1749
- secondary: string;
1750
- };
1751
- icons: {
1752
- mobile: {
1753
- primary: string;
1754
- secondary: string;
1755
- };
1756
- web: {
1757
- name: string;
1758
- iconColor: string;
1759
- bgColor: string;
1760
- };
1761
- };
1762
- progress: {
1763
- primary: string;
1764
- secondary: string;
1765
- border: string;
1766
- };
1767
- };
1768
- declare const StatusConfig: Record<Status$1, StatusConfigType>;
1769
-
1770
- type index$5_Approve = Approve;
1771
- type index$5_CaptionStyle = CaptionStyle;
1772
- declare const index$5_CaptionStyle: typeof CaptionStyle;
1773
- type index$5_Feedback = Feedback;
1774
- declare const index$5_FeedbackSchema: typeof FeedbackSchema;
1775
- type index$5_ProjectCreation = ProjectCreation;
1776
- declare const index$5_ProjectSchema: typeof ProjectSchema;
1777
- type index$5_SendToApproval = SendToApproval;
1778
- declare const index$5_StatusConfig: typeof StatusConfig;
1779
- type index$5_StatusConfigType = StatusConfigType;
1780
- type index$5_Style = Style;
1781
- declare const index$5_Styles: typeof Styles;
1782
- type index$5_TimelineItem = TimelineItem;
1783
- declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
1784
- declare namespace index$5 {
1785
- export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, index$5_StatusConfig as StatusConfig, type index$5_StatusConfigType as StatusConfigType, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
1786
- }
1787
-
1788
- declare const DailyMilestoneSchema: z.ZodObject<{
1789
- id: z.ZodString;
1790
- date: z.ZodString;
1791
- target: z.ZodNumber;
1792
- 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
- }>;
1804
- declare const GoalSchema: z.ZodObject<{
1805
- id: z.ZodString;
1806
- editorId: z.ZodString;
1807
- isoWeek: z.ZodString;
1808
- target: z.ZodNumber;
1809
- progress: z.ZodNumber;
1810
- createdAt: z.ZodNumber;
1811
- dailyMilestones: z.ZodArray<z.ZodObject<{
1812
- id: z.ZodString;
1813
- date: z.ZodString;
1814
- target: z.ZodNumber;
1815
- 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
- }>;
1854
- type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
1855
- type Goal = z.infer<typeof GoalSchema>;
1856
-
1857
- interface IAPI$3 {
1858
- getGoals: (context: Context) => Promise<Goal[]>;
1859
- }
1860
- declare const Endpoints$2: {
1861
- GetGoals: {
1862
- uri: string;
1863
- method: string;
1864
- };
1865
- };
1866
-
1867
- type index$4_DailyMilestone = DailyMilestone;
1868
- declare const index$4_DailyMilestoneSchema: typeof DailyMilestoneSchema;
1869
- declare const index$4_GoalSchema: typeof GoalSchema;
1870
- declare namespace index$4 {
1871
- export { type index$4_DailyMilestone as DailyMilestone, index$4_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$2 as Endpoints, type Goal as Entity, index$4_GoalSchema as GoalSchema, type IAPI$3 as IAPI };
1872
- }
1873
-
1874
- declare enum Frequency {
1875
- DAILY = "daily",
1876
- WEEKLY = "weekly",
1877
- MONTHLY = "monthly"
1878
- }
1879
- declare enum WeekDay {
1880
- MONDAY = 1,
1881
- TUESDAY = 2,
1882
- WEDNESDAY = 3,
1883
- THURSDAY = 4,
1884
- FRIDAY = 5,
1885
- SATURDAY = 6,
1886
- SUNDAY = 7
1887
- }
1888
- declare enum CriteriaType {
1889
- AllUsers = "allUsers",
1890
- NoProjects = "noProjects",
1891
- NoSubscription = "noSubscription",
1892
- UsersFromTier = "usersFromTier"
1893
- }
1894
- declare enum TransportType {
1895
- Push = "push",
1896
- Email = "email"
1897
- }
1898
- declare enum Status {
1899
- SCHEDULED = "scheduled",
1900
- RUNNING = "running",
1901
- COMPLETED = "completed",
1902
- FAILED = "failed",
1903
- PAUSED = "paused",
1904
- CANCELLED = "cancelled",
1905
- ACTIVE = "active",
1906
- EXPIRED = "expired"
1907
- }
1908
- declare const NotificationItemSchema: z.ZodObject<{
1909
- id: z.ZodString;
1910
- userId: z.ZodString;
1911
- triggerId: z.ZodOptional<z.ZodString>;
1912
- title: z.ZodString;
1913
- body: z.ZodString;
1914
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
1915
- deliveredAt: z.ZodNumber;
1916
- openedAt: z.ZodOptional<z.ZodNumber>;
1917
- deletedAt: z.ZodOptional<z.ZodNumber>;
1918
- cta: z.ZodOptional<z.ZodObject<{
1919
- label: z.ZodString;
1920
- 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]>>;
1929
- 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;
1965
- userId: z.ZodString;
1966
- triggerId: z.ZodOptional<z.ZodString>;
1967
- title: z.ZodString;
1968
- body: z.ZodString;
1969
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
1970
- deliveredAt: z.ZodNumber;
1971
- openedAt: z.ZodOptional<z.ZodNumber>;
1972
- deletedAt: z.ZodOptional<z.ZodNumber>;
1973
- cta: z.ZodOptional<z.ZodObject<{
1974
- label: z.ZodString;
1975
- 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
- }>;
2004
- declare const CriteriaSchema: z.ZodObject<{
2005
- type: z.ZodNativeEnum<typeof CriteriaType>;
2006
- 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
- }>;
2014
- declare const HistorySchema: z.ZodObject<{
2015
- batchId: z.ZodString;
2016
- executedAt: z.ZodNumber;
2017
- timezone: z.ZodString;
2018
- status: z.ZodEnum<["success", "failed", "info", "warn"]>;
2019
- users: z.ZodObject<{
2020
- total: z.ZodNumber;
2021
- success: z.ZodNumber;
2022
- 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
- }>;
2032
- errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
2033
- token: z.ZodString;
2034
- error: z.ZodString;
2035
- }, "strip", z.ZodTypeAny, {
2036
- token: string;
2037
- error: string;
2038
- }, {
2039
- token: string;
2040
- error: string;
2041
- }>, "many">>;
2042
- 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
- }>;
2074
- declare const RecurrenceRuleSchema: z.ZodObject<{
2075
- frequency: z.ZodNativeEnum<typeof Frequency>;
2076
- interval: z.ZodNumber;
2077
- weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
2078
- dayOfMonth: z.ZodOptional<z.ZodNumber>;
2079
- endDate: z.ZodOptional<z.ZodString>;
2080
- 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
- }>;
2096
- declare const TriggerSchema: z.ZodObject<{
2097
- id: z.ZodString;
2098
- title: z.ZodString;
2099
- description: z.ZodString;
2100
- transportType: z.ZodArray<z.ZodNativeEnum<typeof TransportType>, "many">;
2101
- notification: z.ZodObject<Pick<{
2102
- id: z.ZodString;
2103
- userId: z.ZodString;
2104
- triggerId: z.ZodOptional<z.ZodString>;
2105
- title: z.ZodString;
2106
- body: z.ZodString;
2107
- status: z.ZodEnum<["failed", "delivered", "deleted"]>;
2108
- deliveredAt: z.ZodNumber;
2109
- openedAt: z.ZodOptional<z.ZodNumber>;
2110
- deletedAt: z.ZodOptional<z.ZodNumber>;
2111
- cta: z.ZodOptional<z.ZodObject<{
2112
- label: z.ZodString;
2113
- 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
- }>;
2142
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2143
- batchId: z.ZodString;
2144
- executedAt: z.ZodNumber;
2145
- timezone: z.ZodString;
2146
- status: z.ZodEnum<["success", "failed", "info", "warn"]>;
2147
- users: z.ZodObject<{
2148
- total: z.ZodNumber;
2149
- success: z.ZodNumber;
2150
- 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
- }>;
2160
- errorList: z.ZodOptional<z.ZodArray<z.ZodObject<{
2161
- token: z.ZodString;
2162
- error: z.ZodString;
2163
- }, "strip", z.ZodTypeAny, {
2164
- token: string;
2165
- error: string;
2166
- }, {
2167
- token: string;
2168
- error: string;
2169
- }>, "many">>;
2170
- 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>;
2203
- recurrence: z.ZodOptional<z.ZodObject<{
2204
- frequency: z.ZodNativeEnum<typeof Frequency>;
2205
- interval: z.ZodNumber;
2206
- weekDays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof WeekDay>, "many">>;
2207
- dayOfMonth: z.ZodOptional<z.ZodNumber>;
2208
- endDate: z.ZodOptional<z.ZodString>;
2209
- 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
- }>>;
2225
- timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2226
- tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2227
- executionDate: z.ZodOptional<z.ZodString>;
2228
- timeOfDay: z.ZodString;
2229
- criteria: z.ZodObject<{
2230
- type: z.ZodNativeEnum<typeof CriteriaType>;
2231
- 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
- }>;
2239
- nextExecution: z.ZodOptional<z.ZodNumber>;
2240
- createdAt: z.ZodOptional<z.ZodNumber>;
2241
- 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
- }>;
2345
- type NotificationItem = z.infer<typeof NotificationItemSchema>;
2346
- type NotificationDetail = z.infer<typeof NotificationDetailSchema>;
2347
- type Trigger = z.infer<typeof TriggerSchema>;
2348
- type RecurrenceRule = z.infer<typeof RecurrenceRuleSchema>;
2349
- type History = z.infer<typeof HistorySchema>;
2350
- type Criteria = z.infer<typeof CriteriaSchema>;
2351
-
2352
- interface IAPI$2 {
2353
- getTriggers: (ctx: Context) => Promise<APIResponse<Trigger>>;
2354
- createTrigger: (ctx: Context, t: Trigger) => Promise<Trigger>;
2355
- deleteTrigger: (ctx: Context, triggerId: string) => Promise<boolean>;
2356
- updateTrigger: (ctx: Context, triggerId: string, trigger: Partial<Trigger>) => Promise<Trigger>;
2357
- push: (context: Context, notification: NotificationDetail) => Promise<boolean>;
2358
- getNotifications: (ctx: Context) => Promise<APIResponse<NotificationItem>>;
2359
- markAsRead: (ctx: Context, id: string) => Promise<boolean>;
2360
- clearNotifications: (ctx: Context) => Promise<boolean>;
2361
- }
2362
- declare const Endpoints$1: {
2363
- Create: {
2364
- uri: string;
2365
- method: string;
2366
- };
2367
- List: {
2368
- uri: string;
2369
- method: string;
2370
- };
2371
- Update: {
2372
- uri: string;
2373
- method: string;
2374
- };
2375
- Delete: {
2376
- uri: string;
2377
- method: string;
2378
- };
2379
- Push: {
2380
- uri: string;
2381
- method: string;
2382
- };
2383
- ListNotifications: {
2384
- uri: string;
2385
- method: string;
2386
- };
2387
- MarkAsRead: {
2388
- uri: string;
2389
- method: string;
2390
- };
2391
- ClearNotifications: {
2392
- uri: string;
2393
- method: string;
2394
- };
2395
- };
2396
-
2397
- type index$3_Criteria = Criteria;
2398
- declare const index$3_CriteriaSchema: typeof CriteriaSchema;
2399
- type index$3_CriteriaType = CriteriaType;
2400
- declare const index$3_CriteriaType: typeof CriteriaType;
2401
- type index$3_Frequency = Frequency;
2402
- declare const index$3_Frequency: typeof Frequency;
2403
- type index$3_History = History;
2404
- declare const index$3_HistorySchema: typeof HistorySchema;
2405
- type index$3_NotificationDetail = NotificationDetail;
2406
- declare const index$3_NotificationDetailSchema: typeof NotificationDetailSchema;
2407
- type index$3_NotificationItem = NotificationItem;
2408
- declare const index$3_NotificationItemSchema: typeof NotificationItemSchema;
2409
- type index$3_RecurrenceRule = RecurrenceRule;
2410
- declare const index$3_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
2411
- type index$3_Status = Status;
2412
- declare const index$3_Status: typeof Status;
2413
- type index$3_TransportType = TransportType;
2414
- declare const index$3_TransportType: typeof TransportType;
2415
- type index$3_Trigger = Trigger;
2416
- declare const index$3_TriggerSchema: typeof TriggerSchema;
2417
- type index$3_WeekDay = WeekDay;
2418
- declare const index$3_WeekDay: typeof WeekDay;
2419
- declare namespace index$3 {
2420
- export { type index$3_Criteria as Criteria, index$3_CriteriaSchema as CriteriaSchema, index$3_CriteriaType as CriteriaType, Endpoints$1 as Endpoints, index$3_Frequency as Frequency, type index$3_History as History, index$3_HistorySchema as HistorySchema, type IAPI$2 as IAPI, type index$3_NotificationDetail as NotificationDetail, index$3_NotificationDetailSchema as NotificationDetailSchema, type index$3_NotificationItem as NotificationItem, index$3_NotificationItemSchema as NotificationItemSchema, type index$3_RecurrenceRule as RecurrenceRule, index$3_RecurrenceRuleSchema as RecurrenceRuleSchema, index$3_Status as Status, index$3_TransportType as TransportType, type index$3_Trigger as Trigger, index$3_TriggerSchema as TriggerSchema, index$3_WeekDay as WeekDay };
2421
- }
2422
-
2423
- interface IAPI$1 {
2424
- version: () => Promise<string>;
2425
- }
2426
-
2427
- declare const NoteHistorySchema: z.ZodObject<{
2428
- type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
2429
- actorEmail: z.ZodString;
2430
- timestamp: z.ZodNumber;
2431
- 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
- }>;
2443
- declare const NoteSchema: z.ZodObject<{
2444
- id: z.ZodString;
2445
- userId: z.ZodString;
2446
- authorEmail: z.ZodString;
2447
- assets: z.ZodArray<z.ZodObject<{
2448
- assetId: z.ZodString;
2449
- fileName: z.ZodString;
2450
- extension: z.ZodString;
2451
- fileSize: z.ZodNumber;
2452
- assetUrl: z.ZodString;
2453
- thumbnailUrl: z.ZodString;
2454
- type: z.ZodString;
2455
- duration: z.ZodOptional<z.ZodNumber>;
2456
- progress: z.ZodOptional<z.ZodNumber>;
2457
- error: z.ZodOptional<z.ZodString>;
2458
- authorId: z.ZodString;
2459
- 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">;
2487
- title: z.ZodString;
2488
- content: z.ZodString;
2489
- createdAt: z.ZodNumber;
2490
- modified: z.ZodNumber;
2491
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2492
- type: z.ZodEnum<["created", "updated", "deleted", "asset-added", "asset-removed"]>;
2493
- actorEmail: z.ZodString;
2494
- timestamp: z.ZodNumber;
2495
- 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
- }>;
2564
- type Note = z.infer<typeof NoteSchema>;
2565
- type NoteHistory = z.infer<typeof NoteHistorySchema>;
2566
-
2567
- interface IAPI {
2568
- list: (c: Context, userId: string) => Promise<Note[]>;
2569
- add: (c: Context, note: Partial<Note>) => Promise<Note>;
2570
- update: (c: Context, id: string, script: Partial<Note>) => Promise<Note>;
2571
- delete: (c: Context, id: string) => Promise<boolean>;
2572
- }
2573
- declare const Endpoints: {
2574
- GetNotes: {
2575
- uri: string;
2576
- method: string;
2577
- };
2578
- AddNote: {
2579
- uri: string;
2580
- method: string;
2581
- };
2582
- DeleteNote: {
2583
- uri: string;
2584
- method: string;
2585
- };
2586
- UpdateNote: {
2587
- uri: string;
2588
- method: string;
2589
- };
2590
- };
2591
-
2592
- declare const index$2_Endpoints: typeof Endpoints;
2593
- type index$2_IAPI = IAPI;
2594
- type index$2_NoteHistory = NoteHistory;
2595
- declare const index$2_NoteHistorySchema: typeof NoteHistorySchema;
2596
- declare const index$2_NoteSchema: typeof NoteSchema;
2597
- declare namespace index$2 {
2598
- export { index$2_Endpoints as Endpoints, type Note as Entity, type index$2_IAPI as IAPI, type index$2_NoteHistory as NoteHistory, index$2_NoteHistorySchema as NoteHistorySchema, index$2_NoteSchema as NoteSchema };
2599
- }
2600
-
2601
- declare class ShredAPI {
2602
- user: IAPI$8;
2603
- goal: IAPI$3;
2604
- subscription: IAPI$9;
2605
- prompt: IAPI$a;
2606
- pushNotification: IAPI$2;
2607
- email: IAPI$5;
2608
- tenant: IAPI$7;
2609
- app: IAPI$1;
2610
- project: IAPI$4;
2611
- track: IAPI$6;
2612
- note: IAPI;
2613
- constructor(env: Environment);
2614
- }
2615
-
2616
- declare class ShredException extends Error {
2617
- status: number;
2618
- constructor(message: string, status: number);
2619
- }
2620
-
2621
- declare class ConflictException extends ShredException {
2622
- constructor(message: string);
2623
- }
2624
-
2625
- declare class InvalidArgumentException extends ShredException {
2626
- constructor(message: string);
2627
- }
2628
-
2629
- declare class ResourceNotFoundException extends ShredException {
2630
- constructor(message: string);
2631
- }
2632
-
2633
- declare class UnauthorizedException extends ShredException {
2634
- constructor(message: string);
2635
- }
2636
-
2637
- declare class ForbiddenException extends ShredException {
2638
- constructor(message: string);
2639
- }
2640
-
2641
- declare const Exceptions: {
2642
- ConflictException: typeof ConflictException;
2643
- InvalidArgumentException: typeof InvalidArgumentException;
2644
- ResourceNotFoundException: typeof ResourceNotFoundException;
2645
- ShredException: typeof ShredException;
2646
- UnauthorizedException: typeof UnauthorizedException;
2647
- ForbiddenException: typeof ForbiddenException;
2648
- };
2649
-
2650
- type index$1_ConflictException = ConflictException;
2651
- declare const index$1_ConflictException: typeof ConflictException;
2652
- type index$1_ForbiddenException = ForbiddenException;
2653
- declare const index$1_ForbiddenException: typeof ForbiddenException;
2654
- type index$1_InvalidArgumentException = InvalidArgumentException;
2655
- declare const index$1_InvalidArgumentException: typeof InvalidArgumentException;
2656
- type index$1_ResourceNotFoundException = ResourceNotFoundException;
2657
- declare const index$1_ResourceNotFoundException: typeof ResourceNotFoundException;
2658
- type index$1_ShredException = ShredException;
2659
- declare const index$1_ShredException: typeof ShredException;
2660
- type index$1_UnauthorizedException = UnauthorizedException;
2661
- declare const index$1_UnauthorizedException: typeof UnauthorizedException;
2662
- declare namespace index$1 {
2663
- export { index$1_ConflictException as ConflictException, index$1_ForbiddenException as ForbiddenException, index$1_InvalidArgumentException as InvalidArgumentException, index$1_ResourceNotFoundException as ResourceNotFoundException, index$1_ShredException as ShredException, index$1_UnauthorizedException as UnauthorizedException, Exceptions as default };
2664
- }
2665
-
2666
- declare const AssetSchema: z.ZodObject<{
2667
- assetId: z.ZodString;
2668
- fileName: z.ZodString;
2669
- extension: z.ZodString;
2670
- fileSize: z.ZodNumber;
2671
- assetUrl: z.ZodString;
2672
- thumbnailUrl: z.ZodString;
2673
- type: z.ZodString;
2674
- duration: z.ZodOptional<z.ZodNumber>;
2675
- progress: z.ZodOptional<z.ZodNumber>;
2676
- error: z.ZodOptional<z.ZodString>;
2677
- authorId: z.ZodString;
2678
- 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
- }>;
2706
- type Asset = z.infer<typeof AssetSchema>;
2707
-
2708
- declare const index_AssetSchema: typeof AssetSchema;
2709
- declare namespace index {
2710
- export { index_AssetSchema as AssetSchema, type Asset as Entity };
2711
- }
2712
-
2713
- export { index as Asset, index$a as Core, index$6 as Email, index$1 as Exceptions, index$4 as Goal, index$2 as Note, index$3 as Notification, index$5 as Project, index$c as Prompt, index$b as Subscription, index$8 as Tenant, index$7 as Track, index$9 as User, ShredAPI as default };