@vestcards/server-types 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ declare const app: Elysia<"", {
65
65
  route: string;
66
66
  request: Request;
67
67
  store: {};
68
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 422 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
68
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
69
69
  readonly 100: "Continue";
70
70
  readonly 101: "Switching Protocols";
71
71
  readonly 102: "Processing";
@@ -237,7 +237,7 @@ declare const app: Elysia<"", {
237
237
  route: string;
238
238
  request: Request;
239
239
  store: {};
240
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 422 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
240
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
241
241
  readonly 100: "Continue";
242
242
  readonly 101: "Switching Protocols";
243
243
  readonly 102: "Processing";
@@ -395,6 +395,11 @@ declare const app: Elysia<"", {
395
395
  };
396
396
  headers: unknown;
397
397
  response: {
398
+ 200: {
399
+ data: import("@vestcards/shared").IDeck[];
400
+ pageCount: number;
401
+ total: number;
402
+ };
398
403
  422: {
399
404
  type: "validation";
400
405
  on: string;
@@ -404,26 +409,6 @@ declare const app: Elysia<"", {
404
409
  property?: string;
405
410
  expected?: string;
406
411
  };
407
- 200: {
408
- error: string;
409
- message: string;
410
- path: any;
411
- details?: undefined;
412
- } | {
413
- error: string;
414
- message: string;
415
- details: any;
416
- path?: undefined;
417
- } | {
418
- error: string;
419
- message: string;
420
- path?: undefined;
421
- details?: undefined;
422
- } | {
423
- data: import("@vestcards/shared").IDeck[];
424
- pageCount: number;
425
- total: number;
426
- };
427
412
  };
428
413
  };
429
414
  };
@@ -440,6 +425,7 @@ declare const app: Elysia<"", {
440
425
  query: {};
441
426
  headers: {};
442
427
  response: {
428
+ 200: import("@vestcards/shared").IDeckDetail;
443
429
  422: {
444
430
  type: "validation";
445
431
  on: string;
@@ -449,22 +435,6 @@ declare const app: Elysia<"", {
449
435
  property?: string;
450
436
  expected?: string;
451
437
  };
452
- 200: {
453
- error: string;
454
- message: string;
455
- path: any;
456
- details?: undefined;
457
- } | {
458
- error: string;
459
- message: string;
460
- details: any;
461
- path?: undefined;
462
- } | {
463
- error: string;
464
- message: string;
465
- path?: undefined;
466
- details?: undefined;
467
- } | import("@vestcards/shared").IDeckDetail;
468
438
  };
469
439
  };
470
440
  };
@@ -490,6 +460,11 @@ declare const app: Elysia<"", {
490
460
  };
491
461
  headers: unknown;
492
462
  response: {
463
+ 200: {
464
+ data: import("@vestcards/shared").Topic[];
465
+ pageCount: number;
466
+ total: number;
467
+ };
493
468
  422: {
494
469
  type: "validation";
495
470
  on: string;
@@ -499,26 +474,6 @@ declare const app: Elysia<"", {
499
474
  property?: string;
500
475
  expected?: string;
501
476
  };
502
- 200: {
503
- error: string;
504
- message: string;
505
- path: any;
506
- details?: undefined;
507
- } | {
508
- error: string;
509
- message: string;
510
- details: any;
511
- path?: undefined;
512
- } | {
513
- error: string;
514
- message: string;
515
- path?: undefined;
516
- details?: undefined;
517
- } | {
518
- data: import("@vestcards/shared").Topic[];
519
- pageCount: number;
520
- total: number;
521
- };
522
477
  };
523
478
  };
524
479
  };
@@ -540,6 +495,7 @@ declare const app: Elysia<"", {
540
495
  };
541
496
  headers: {};
542
497
  response: {
498
+ 200: import("./types/study").SessionData;
543
499
  422: {
544
500
  type: "validation";
545
501
  on: string;
@@ -549,22 +505,6 @@ declare const app: Elysia<"", {
549
505
  property?: string;
550
506
  expected?: string;
551
507
  };
552
- 200: {
553
- error: string;
554
- message: string;
555
- path: any;
556
- details?: undefined;
557
- } | {
558
- error: string;
559
- message: string;
560
- details: any;
561
- path?: undefined;
562
- } | {
563
- error: string;
564
- message: string;
565
- path?: undefined;
566
- details?: undefined;
567
- } | import("./types/study").SessionData;
568
508
  };
569
509
  };
570
510
  };
@@ -583,6 +523,13 @@ declare const app: Elysia<"", {
583
523
  };
584
524
  headers: {};
585
525
  response: {
526
+ 200: import("@vestcards/shared").SessionStats | {
527
+ status: import("@vestcards/shared").StudyStatus;
528
+ review: number;
529
+ learning: number;
530
+ new: number;
531
+ total: number;
532
+ };
586
533
  422: {
587
534
  type: "validation";
588
535
  on: string;
@@ -592,22 +539,6 @@ declare const app: Elysia<"", {
592
539
  property?: string;
593
540
  expected?: string;
594
541
  };
595
- 200: {
596
- error: string;
597
- message: string;
598
- path: any;
599
- details?: undefined;
600
- } | {
601
- error: string;
602
- message: string;
603
- details: any;
604
- path?: undefined;
605
- } | {
606
- error: string;
607
- message: string;
608
- path?: undefined;
609
- details?: undefined;
610
- } | import("@vestcards/shared").SessionStats;
611
542
  };
612
543
  };
613
544
  };
@@ -628,6 +559,9 @@ declare const app: Elysia<"", {
628
559
  query: {};
629
560
  headers: {};
630
561
  response: {
562
+ 200: {
563
+ success: boolean;
564
+ };
631
565
  422: {
632
566
  type: "validation";
633
567
  on: string;
@@ -637,23 +571,134 @@ declare const app: Elysia<"", {
637
571
  property?: string;
638
572
  expected?: string;
639
573
  };
640
- 200: {
641
- error: string;
642
- message: string;
643
- path: any;
644
- details?: undefined;
645
- } | {
646
- error: string;
647
- message: string;
648
- details: any;
649
- path?: undefined;
650
- } | {
651
- error: string;
652
- message: string;
653
- path?: undefined;
654
- details?: undefined;
655
- } | {
656
- success: boolean;
574
+ };
575
+ };
576
+ };
577
+ };
578
+ };
579
+ } & {
580
+ v1: {
581
+ library: {};
582
+ };
583
+ } & {
584
+ v1: {
585
+ library: {
586
+ get: {
587
+ body: {};
588
+ params: {};
589
+ query: {};
590
+ headers: {};
591
+ response: {
592
+ 200: import("@vestcards/shared").GroupedLibraryData;
593
+ };
594
+ };
595
+ };
596
+ };
597
+ } & {
598
+ v1: {
599
+ library: {
600
+ archived: {
601
+ get: {
602
+ body: {};
603
+ params: {};
604
+ query: {};
605
+ headers: {};
606
+ response: {
607
+ 200: import("@vestcards/shared").ArchivedLibraryItem[];
608
+ };
609
+ };
610
+ };
611
+ };
612
+ };
613
+ } & {
614
+ v1: {
615
+ library: {
616
+ decks: {
617
+ ":deckId": {
618
+ post: {
619
+ body: {};
620
+ params: {
621
+ deckId: string;
622
+ };
623
+ query: {};
624
+ headers: {};
625
+ response: {
626
+ 200: {
627
+ success: boolean;
628
+ };
629
+ 422: {
630
+ type: "validation";
631
+ on: string;
632
+ summary?: string;
633
+ message?: string;
634
+ found?: unknown;
635
+ property?: string;
636
+ expected?: string;
637
+ };
638
+ };
639
+ };
640
+ };
641
+ };
642
+ };
643
+ };
644
+ } & {
645
+ v1: {
646
+ library: {
647
+ decks: {
648
+ ":deckId": {
649
+ delete: {
650
+ body: {};
651
+ params: {
652
+ deckId: string;
653
+ };
654
+ query: {};
655
+ headers: {};
656
+ response: {
657
+ 200: {
658
+ success: boolean;
659
+ };
660
+ 422: {
661
+ type: "validation";
662
+ on: string;
663
+ summary?: string;
664
+ message?: string;
665
+ found?: unknown;
666
+ property?: string;
667
+ expected?: string;
668
+ };
669
+ };
670
+ };
671
+ };
672
+ };
673
+ };
674
+ };
675
+ } & {
676
+ v1: {
677
+ library: {
678
+ decks: {
679
+ ":deckId": {
680
+ patch: {
681
+ body: {
682
+ suspended: boolean;
683
+ };
684
+ params: {
685
+ deckId: string;
686
+ };
687
+ query: {};
688
+ headers: {};
689
+ response: {
690
+ 200: {
691
+ success: boolean;
692
+ };
693
+ 422: {
694
+ type: "validation";
695
+ on: string;
696
+ summary?: string;
697
+ message?: string;
698
+ found?: unknown;
699
+ property?: string;
700
+ expected?: string;
701
+ };
657
702
  };
658
703
  };
659
704
  };
@@ -674,6 +719,13 @@ declare const app: Elysia<"", {
674
719
  query: unknown;
675
720
  headers: unknown;
676
721
  response: {
722
+ 200: {
723
+ id: number;
724
+ name: string;
725
+ email: string;
726
+ createdInPage: string;
727
+ createdAt: Date;
728
+ };
677
729
  422: {
678
730
  type: "validation";
679
731
  on: string;
@@ -683,28 +735,6 @@ declare const app: Elysia<"", {
683
735
  property?: string;
684
736
  expected?: string;
685
737
  };
686
- 200: {
687
- error: string;
688
- message: string;
689
- path: any;
690
- details?: undefined;
691
- } | {
692
- error: string;
693
- message: string;
694
- details: any;
695
- path?: undefined;
696
- } | {
697
- error: string;
698
- message: string;
699
- path?: undefined;
700
- details?: undefined;
701
- } | {
702
- id: number;
703
- name: string;
704
- email: string;
705
- createdInPage: string;
706
- createdAt: Date;
707
- };
708
738
  };
709
739
  };
710
740
  };
@@ -736,21 +766,8 @@ declare const app: Elysia<"", {
736
766
  schema: {};
737
767
  standaloneSchema: {};
738
768
  response: {
739
- 200: {
740
- error: string;
741
- message: string;
742
- path: any;
743
- details?: undefined;
744
- } | {
745
- error: string;
746
- message: string;
747
- details: any;
748
- path?: undefined;
749
- } | {
750
- error: string;
751
- message: string;
752
- path?: undefined;
753
- details?: undefined;
769
+ [x: string]: {
770
+ [x: string]: any;
754
771
  };
755
772
  };
756
773
  }>;
@@ -9,4 +9,5 @@ export declare const config: {
9
9
  port: number;
10
10
  nodeEnv: string;
11
11
  corsOrigins: string | undefined;
12
+ debug: boolean;
12
13
  };
@@ -1,16 +1,10 @@
1
- export declare function errorHandler({ code, error, set, request }: any): {
2
- error: string;
3
- message: string;
4
- path: any;
5
- details?: undefined;
6
- } | {
7
- error: string;
8
- message: string;
9
- details: any;
10
- path?: undefined;
11
- } | {
12
- error: string;
13
- message: string;
14
- path?: undefined;
15
- details?: undefined;
16
- };
1
+ import type { ErrorHandler } from 'elysia';
2
+ /**
3
+ * Global error handler returning Response.json() so the return type
4
+ * is NOT merged into Eden treaty's success union — errors stay in
5
+ * React Query's `error` field, not `data`.
6
+ *
7
+ * `set.status` is still needed because Elysia ignores the status
8
+ * from a returned Response object in onError.
9
+ */
10
+ export declare const errorHandler: ErrorHandler;
@@ -41,7 +41,7 @@ export declare const authModule: Elysia<"/v1", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 422 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -213,7 +213,7 @@ export declare const authModule: Elysia<"/v1", {
213
213
  route: string;
214
214
  request: Request;
215
215
  store: {};
216
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 422 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
216
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
217
217
  readonly 100: "Continue";
218
218
  readonly 101: "Switching Protocols";
219
219
  readonly 102: "Processing";
@@ -47,8 +47,13 @@ declare const PERMISSIONS: {
47
47
  readonly READ: "study:read";
48
48
  readonly WRITE: "study:write";
49
49
  };
50
+ readonly LIBRARY: {
51
+ readonly READ: "library:read";
52
+ readonly WRITE: "library:write";
53
+ readonly WRITE_PREMIUM: "library:write:premium";
54
+ };
50
55
  };
51
- declare const ALL_PERMISSIONS: ("deck:create:own" | "deck:create:public" | "deck:read:own" | "deck:read:free" | "deck:read:premium" | "deck:update:own" | "deck:update:public" | "deck:delete:own" | "deck:delete:public" | "card-demand:read" | "card-demand:create" | "card-demand:action" | "user:update:own" | "user:update:*" | "user:delete:own" | "user:delete:*" | "user:read:own" | "user:read:*" | "stats:view" | "membership:manage" | "plan:create" | "plan:update" | "plan:delete" | "blogpost:create" | "blogpost:update" | "blogpost:delete" | "vesty:chat" | "study:read" | "study:write")[];
56
+ declare const ALL_PERMISSIONS: ("deck:create:own" | "deck:create:public" | "deck:read:own" | "deck:read:free" | "deck:read:premium" | "deck:update:own" | "deck:update:public" | "deck:delete:own" | "deck:delete:public" | "card-demand:read" | "card-demand:create" | "card-demand:action" | "user:update:own" | "user:update:*" | "user:delete:own" | "user:delete:*" | "user:read:own" | "user:read:*" | "stats:view" | "membership:manage" | "plan:create" | "plan:update" | "plan:delete" | "blogpost:create" | "blogpost:update" | "blogpost:delete" | "vesty:chat" | "study:read" | "study:write" | "library:read" | "library:write" | "library:write:premium")[];
52
57
  declare const ROLE_PERMISSIONS: Record<UserRole, Permission[]>;
53
58
  declare const ENTITLEMENT_PERMISSIONS: Record<Entitlement, Permission[]>;
54
59
  type ValueOf<T> = T[keyof T];
@@ -42,7 +42,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
42
42
  route: string;
43
43
  request: Request;
44
44
  store: {};
45
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 422 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
45
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
46
46
  readonly 100: "Continue";
47
47
  readonly 101: "Switching Protocols";
48
48
  readonly 102: "Processing";
@@ -214,7 +214,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
214
214
  route: string;
215
215
  request: Request;
216
216
  store: {};
217
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 422 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
217
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
218
218
  readonly 100: "Continue";
219
219
  readonly 101: "Switching Protocols";
220
220
  readonly 102: "Processing";
@@ -366,6 +366,11 @@ export declare const deckModule: Elysia<"/v1/decks", {
366
366
  };
367
367
  headers: unknown;
368
368
  response: {
369
+ 200: {
370
+ data: import("@vestcards/shared").IDeck[];
371
+ pageCount: number;
372
+ total: number;
373
+ };
369
374
  422: {
370
375
  type: "validation";
371
376
  on: string;
@@ -375,26 +380,6 @@ export declare const deckModule: Elysia<"/v1/decks", {
375
380
  property?: string;
376
381
  expected?: string;
377
382
  };
378
- 200: {
379
- error: string;
380
- message: string;
381
- path: any;
382
- details?: undefined;
383
- } | {
384
- error: string;
385
- message: string;
386
- details: any;
387
- path?: undefined;
388
- } | {
389
- error: string;
390
- message: string;
391
- path?: undefined;
392
- details?: undefined;
393
- } | {
394
- data: import("@vestcards/shared").IDeck[];
395
- pageCount: number;
396
- total: number;
397
- };
398
383
  };
399
384
  };
400
385
  };
@@ -411,6 +396,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
411
396
  query: {};
412
397
  headers: {};
413
398
  response: {
399
+ 200: import("@vestcards/shared").IDeckDetail;
414
400
  422: {
415
401
  type: "validation";
416
402
  on: string;
@@ -420,22 +406,6 @@ export declare const deckModule: Elysia<"/v1/decks", {
420
406
  property?: string;
421
407
  expected?: string;
422
408
  };
423
- 200: {
424
- error: string;
425
- message: string;
426
- path: any;
427
- details?: undefined;
428
- } | {
429
- error: string;
430
- message: string;
431
- details: any;
432
- path?: undefined;
433
- } | {
434
- error: string;
435
- message: string;
436
- path?: undefined;
437
- details?: undefined;
438
- } | import("@vestcards/shared").IDeckDetail;
439
409
  };
440
410
  };
441
411
  };
@@ -453,21 +423,8 @@ export declare const deckModule: Elysia<"/v1/decks", {
453
423
  schema: {};
454
424
  standaloneSchema: {};
455
425
  response: {
456
- 200: {
457
- error: string;
458
- message: string;
459
- path: any;
460
- details?: undefined;
461
- } | {
462
- error: string;
463
- message: string;
464
- details: any;
465
- path?: undefined;
466
- } | {
467
- error: string;
468
- message: string;
469
- path?: undefined;
470
- details?: undefined;
426
+ [x: string]: {
427
+ [x: string]: any;
471
428
  };
472
429
  };
473
430
  }>;
@@ -28,6 +28,13 @@ export declare const leadModule: Elysia<"/v1/leads", {
28
28
  query: unknown;
29
29
  headers: unknown;
30
30
  response: {
31
+ 200: {
32
+ id: number;
33
+ name: string;
34
+ email: string;
35
+ createdInPage: string;
36
+ createdAt: Date;
37
+ };
31
38
  422: {
32
39
  type: "validation";
33
40
  on: string;
@@ -37,28 +44,6 @@ export declare const leadModule: Elysia<"/v1/leads", {
37
44
  property?: string;
38
45
  expected?: string;
39
46
  };
40
- 200: {
41
- error: string;
42
- message: string;
43
- path: any;
44
- details?: undefined;
45
- } | {
46
- error: string;
47
- message: string;
48
- details: any;
49
- path?: undefined;
50
- } | {
51
- error: string;
52
- message: string;
53
- path?: undefined;
54
- details?: undefined;
55
- } | {
56
- id: number;
57
- name: string;
58
- email: string;
59
- createdInPage: string;
60
- createdAt: Date;
61
- };
62
47
  };
63
48
  };
64
49
  };
@@ -75,21 +60,8 @@ export declare const leadModule: Elysia<"/v1/leads", {
75
60
  schema: {};
76
61
  standaloneSchema: {};
77
62
  response: {
78
- 200: {
79
- error: string;
80
- message: string;
81
- path: any;
82
- details?: undefined;
83
- } | {
84
- error: string;
85
- message: string;
86
- details: any;
87
- path?: undefined;
88
- } | {
89
- error: string;
90
- message: string;
91
- path?: undefined;
92
- details?: undefined;
63
+ [x: string]: {
64
+ [x: string]: any;
93
65
  };
94
66
  };
95
67
  }>;