@secrecy/trpc-api-types 1.33.0-dev.3 → 1.33.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.cts +317 -951
  2. package/package.json +3 -3
package/dist/index.d.cts CHANGED
@@ -702,18 +702,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
702
702
  _input_in: {} | undefined;
703
703
  _input_out: {} | undefined;
704
704
  _output_in: {
705
- codes: string[];
706
705
  id: string;
707
- kind: string;
708
- relatedTo: "secrecy" | "secrecy_tech";
706
+ name: string;
709
707
  descriptorId: string;
708
+ stripePricesId: string | null;
709
+ isCustomPlan?: boolean | undefined;
710
+ canHaveDatabase?: boolean | undefined;
710
711
  };
711
712
  _output_out: {
712
- codes: string[];
713
713
  id: string;
714
- kind: string;
715
- relatedTo: "secrecy" | "secrecy_tech";
714
+ name: string;
716
715
  descriptorId: string;
716
+ isCustomPlan: boolean;
717
+ canHaveDatabase: boolean;
718
+ stripePricesId: string | null;
717
719
  };
718
720
  }, unknown>;
719
721
  plans: _trpc_server.BuildProcedure<"query", {
@@ -750,7 +752,19 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
750
752
  }>;
751
753
  _meta: object;
752
754
  _ctx_out: {
753
- session: SecrecySession | null;
755
+ session: {
756
+ appId: string;
757
+ appPlanId: string;
758
+ appFakeUserId: string | undefined;
759
+ sessionId: string;
760
+ accountId: string;
761
+ accountInfosId: string;
762
+ accountRole: _prisma_client.AccountRole;
763
+ userId: string;
764
+ userRole: _prisma_client.UserRole;
765
+ userPlan: _prisma_client.PlanKind;
766
+ isCare?: boolean;
767
+ };
754
768
  req: {
755
769
  headers: Headers;
756
770
  body: ReadableStream<Uint8Array> | null;
@@ -761,14 +775,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
761
775
  locale: Locales;
762
776
  ls: TranslationFunctions;
763
777
  };
764
- _input_in: {} | undefined;
765
- _input_out: {} | undefined;
778
+ _input_in: {
779
+ appId?: string | undefined;
780
+ };
781
+ _input_out: {
782
+ appId?: string | undefined;
783
+ };
766
784
  _output_in: ({
767
- codes: string[];
768
785
  id: string;
769
- kind: string;
770
- relatedTo: "secrecy" | "secrecy_tech";
771
- descriptorId: string;
786
+ name: string;
787
+ isCustomPlan?: boolean | undefined;
788
+ canHaveDatabase?: boolean | undefined;
772
789
  } & {
773
790
  descriptor: {
774
791
  devsBase: bigint | null;
@@ -794,13 +811,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
794
811
  };
795
812
  } & {
796
813
  price: number;
814
+ } & {
815
+ isCurrent: boolean;
797
816
  })[];
798
817
  _output_out: ({
799
- codes: string[];
800
818
  id: string;
801
- kind: string;
802
- relatedTo: "secrecy" | "secrecy_tech";
803
- descriptorId: string;
819
+ name: string;
820
+ isCustomPlan: boolean;
821
+ canHaveDatabase: boolean;
804
822
  } & {
805
823
  descriptor: {
806
824
  devsBase: bigint | null;
@@ -826,6 +844,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
826
844
  };
827
845
  } & {
828
846
  price: number;
847
+ } & {
848
+ isCurrent: boolean;
829
849
  })[];
830
850
  }, unknown>;
831
851
  settings: _trpc_server.BuildProcedure<"query", {
@@ -2509,7 +2529,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2509
2529
  })[];
2510
2530
  }, unknown>;
2511
2531
  }>;
2512
- care: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2532
+ cloud: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2513
2533
  ctx: {
2514
2534
  req: {
2515
2535
  headers: Headers;
@@ -2540,8 +2560,41 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2540
2560
  };
2541
2561
  transformer: typeof superjson.default;
2542
2562
  }>, {
2543
- professional: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2544
- ctx: {
2563
+ addDataToHistory: _trpc_server.BuildProcedure<"mutation", {
2564
+ _config: _trpc_server.RootConfig<{
2565
+ ctx: {
2566
+ req: {
2567
+ headers: Headers;
2568
+ body: ReadableStream<Uint8Array> | null;
2569
+ };
2570
+ res: {
2571
+ headers: Headers;
2572
+ };
2573
+ session: SecrecySession | null;
2574
+ locale: Locales;
2575
+ ls: TranslationFunctions;
2576
+ };
2577
+ meta: object;
2578
+ errorShape: {
2579
+ message: string;
2580
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2581
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2582
+ } | {
2583
+ data: {
2584
+ zodError: zod.typeToFlattenedError<any, string> | null;
2585
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2586
+ httpStatus: number;
2587
+ path?: string;
2588
+ stack?: string;
2589
+ };
2590
+ message: string;
2591
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2592
+ };
2593
+ transformer: typeof superjson.default;
2594
+ }>;
2595
+ _meta: object;
2596
+ _ctx_out: {
2597
+ session: SecrecySessionWithApp;
2545
2598
  req: {
2546
2599
  headers: Headers;
2547
2600
  body: ReadableStream<Uint8Array> | null;
@@ -2549,628 +2602,137 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2549
2602
  res: {
2550
2603
  headers: Headers;
2551
2604
  };
2552
- session: SecrecySession | null;
2553
2605
  locale: Locales;
2554
2606
  ls: TranslationFunctions;
2555
2607
  };
2556
- meta: object;
2557
- errorShape: {
2558
- message: string;
2559
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2560
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2561
- } | {
2562
- data: {
2563
- zodError: zod.typeToFlattenedError<any, string> | null;
2564
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2565
- httpStatus: number;
2566
- path?: string;
2567
- stack?: string;
2568
- };
2569
- message: string;
2570
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2608
+ _input_in: {
2609
+ dataId: string;
2610
+ nodeId: string;
2571
2611
  };
2572
- transformer: typeof superjson.default;
2573
- }>, {
2574
- register: _trpc_server.BuildProcedure<"mutation", {
2575
- _config: _trpc_server.RootConfig<{
2576
- ctx: {
2577
- req: {
2578
- headers: Headers;
2579
- body: ReadableStream<Uint8Array> | null;
2580
- };
2581
- res: {
2582
- headers: Headers;
2583
- };
2584
- session: SecrecySession | null;
2585
- locale: Locales;
2586
- ls: TranslationFunctions;
2587
- };
2588
- meta: object;
2589
- errorShape: {
2590
- message: string;
2591
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2592
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2593
- } | {
2594
- data: {
2595
- zodError: zod.typeToFlattenedError<any, string> | null;
2596
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2597
- httpStatus: number;
2598
- path?: string;
2599
- stack?: string;
2600
- };
2601
- message: string;
2602
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2603
- };
2604
- transformer: typeof superjson.default;
2605
- }>;
2606
- _meta: object;
2607
- _ctx_out: {
2608
- session: SecrecySession;
2609
- req: {
2610
- headers: Headers;
2611
- body: ReadableStream<Uint8Array> | null;
2612
- };
2613
- res: {
2614
- headers: Headers;
2615
- };
2616
- locale: Locales;
2617
- ls: TranslationFunctions;
2612
+ _input_out: {
2613
+ dataId: string;
2614
+ nodeId: string;
2615
+ };
2616
+ _output_in: {
2617
+ id: string;
2618
+ createdAt: Date;
2619
+ deletedAt: Date | null;
2620
+ name: string;
2621
+ updatedAt: Date;
2622
+ type: "FILE" | "FOLDER";
2623
+ parentId: string | null;
2624
+ isFavorite: boolean;
2625
+ currentDataId: string | null;
2626
+ } & {
2627
+ users: [{
2628
+ id: string;
2629
+ lastname: string;
2630
+ firstname: string;
2631
+ avatar: string | null;
2632
+ isSearchable: boolean;
2633
+ }, "admin" | "write" | "read"][];
2634
+ createdBy: {
2635
+ id: string;
2636
+ lastname: string;
2637
+ firstname: string;
2638
+ avatar: string | null;
2639
+ isSearchable: boolean;
2618
2640
  };
2619
- _input_in: {
2620
- status: "active" | "inactive" | "retired" | "suspended";
2621
- job: string;
2622
- specialties: string[];
2623
- activePrescriber: boolean;
2624
- internationalPrescriberNumber: string | null;
2625
- institution: string | null;
2626
- rppsNumber: string;
2627
- adeliNumber: string;
2628
- ssNumber: string;
2641
+ access: {
2642
+ rights: "admin" | "write" | "read";
2643
+ nameKey: string | null;
2644
+ isRoot: boolean;
2645
+ sharedByPubKey: string;
2629
2646
  };
2630
- _input_out: {
2631
- status: "active" | "inactive" | "retired" | "suspended";
2632
- job: string;
2633
- specialties: string[];
2634
- activePrescriber: boolean;
2635
- internationalPrescriberNumber: string | null;
2636
- institution: string | null;
2637
- rppsNumber: string;
2638
- adeliNumber: string;
2639
- ssNumber: string;
2647
+ } & {
2648
+ sizes: {
2649
+ size: bigint;
2650
+ sizeBefore: bigint;
2640
2651
  };
2641
- _output_in: {
2642
- status: "active" | "inactive" | "retired" | "suspended";
2643
- job: string;
2644
- specialties: string[];
2652
+ } & {
2653
+ current: {
2654
+ id: string;
2655
+ createdAt: Date;
2656
+ size: bigint;
2657
+ md5: string;
2658
+ storageType: "s3" | "lite";
2659
+ sizeBefore: bigint;
2660
+ md5Encrypted: string;
2661
+ userAppUserId: string;
2662
+ userAppAppId: string;
2663
+ validatedAt: Date | null;
2664
+ access: {
2665
+ key: string;
2666
+ sharedByPubKey: string;
2667
+ };
2668
+ } | null;
2669
+ history: {
2670
+ id: string;
2671
+ createdAt: Date;
2672
+ size: bigint;
2673
+ md5: string;
2674
+ storageType: "s3" | "lite";
2675
+ sizeBefore: bigint;
2676
+ md5Encrypted: string;
2677
+ userAppUserId: string;
2678
+ userAppAppId: string;
2679
+ validatedAt: Date | null;
2680
+ access: {
2681
+ key: string;
2682
+ sharedByPubKey: string;
2683
+ };
2684
+ }[];
2685
+ parent: ({
2686
+ id: string;
2687
+ createdAt: Date;
2688
+ deletedAt: Date | null;
2689
+ name: string;
2690
+ updatedAt: Date;
2691
+ type: "FILE" | "FOLDER";
2692
+ parentId: string | null;
2693
+ isFavorite: boolean;
2694
+ currentDataId: string | null;
2645
2695
  } & {
2646
- user: {
2696
+ users: [{
2697
+ id: string;
2698
+ lastname: string;
2699
+ firstname: string;
2700
+ avatar: string | null;
2701
+ isSearchable: boolean;
2702
+ }, "admin" | "write" | "read"][];
2703
+ createdBy: {
2647
2704
  id: string;
2648
2705
  lastname: string;
2649
2706
  firstname: string;
2650
2707
  avatar: string | null;
2651
2708
  isSearchable: boolean;
2652
2709
  };
2653
- };
2654
- _output_out: {
2655
- status: "active" | "inactive" | "retired" | "suspended";
2656
- job: string;
2657
- specialties: string[];
2710
+ access: {
2711
+ rights: "admin" | "write" | "read";
2712
+ nameKey: string | null;
2713
+ isRoot: boolean;
2714
+ sharedByPubKey: string;
2715
+ };
2716
+ }) | null;
2717
+ children: ({
2718
+ id: string;
2719
+ createdAt: Date;
2720
+ deletedAt: Date | null;
2721
+ name: string;
2722
+ updatedAt: Date;
2723
+ type: "FILE" | "FOLDER";
2724
+ parentId: string | null;
2725
+ isFavorite: boolean;
2726
+ currentDataId: string | null;
2658
2727
  } & {
2659
- user: {
2660
- id: string;
2661
- lastname: string;
2662
- firstname: string;
2663
- avatar: string | null;
2664
- isSearchable: boolean;
2665
- };
2666
- };
2667
- }, unknown>;
2668
- update: _trpc_server.BuildProcedure<"mutation", {
2669
- _config: _trpc_server.RootConfig<{
2670
- ctx: {
2671
- req: {
2672
- headers: Headers;
2673
- body: ReadableStream<Uint8Array> | null;
2674
- };
2675
- res: {
2676
- headers: Headers;
2677
- };
2678
- session: SecrecySession | null;
2679
- locale: Locales;
2680
- ls: TranslationFunctions;
2681
- };
2682
- meta: object;
2683
- errorShape: {
2684
- message: string;
2685
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2686
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2687
- } | {
2688
- data: {
2689
- zodError: zod.typeToFlattenedError<any, string> | null;
2690
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2691
- httpStatus: number;
2692
- path?: string;
2693
- stack?: string;
2694
- };
2695
- message: string;
2696
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2697
- };
2698
- transformer: typeof superjson.default;
2699
- }>;
2700
- _meta: object;
2701
- _ctx_out: {
2702
- session: SecrecySession;
2703
- req: {
2704
- headers: Headers;
2705
- body: ReadableStream<Uint8Array> | null;
2706
- };
2707
- res: {
2708
- headers: Headers;
2709
- };
2710
- locale: Locales;
2711
- ls: TranslationFunctions;
2712
- };
2713
- _input_in: {
2714
- status: "active" | "inactive" | "retired" | "suspended";
2715
- job: string;
2716
- specialties: string[];
2717
- activePrescriber: boolean;
2718
- internationalPrescriberNumber: string | null;
2719
- institution: string | null;
2720
- rppsNumber: string;
2721
- adeliNumber: string;
2722
- ssNumber: string;
2723
- };
2724
- _input_out: {
2725
- status: "active" | "inactive" | "retired" | "suspended";
2726
- job: string;
2727
- specialties: string[];
2728
- activePrescriber: boolean;
2729
- internationalPrescriberNumber: string | null;
2730
- institution: string | null;
2731
- rppsNumber: string;
2732
- adeliNumber: string;
2733
- ssNumber: string;
2734
- };
2735
- _output_in: {
2736
- status: "active" | "inactive" | "retired" | "suspended";
2737
- job: string;
2738
- specialties: string[];
2739
- } & {
2740
- user: {
2741
- id: string;
2742
- lastname: string;
2743
- firstname: string;
2744
- avatar: string | null;
2745
- isSearchable: boolean;
2746
- };
2747
- };
2748
- _output_out: {
2749
- status: "active" | "inactive" | "retired" | "suspended";
2750
- job: string;
2751
- specialties: string[];
2752
- } & {
2753
- user: {
2754
- id: string;
2755
- lastname: string;
2756
- firstname: string;
2757
- avatar: string | null;
2758
- isSearchable: boolean;
2759
- };
2760
- };
2761
- }, unknown>;
2762
- delete: _trpc_server.BuildProcedure<"mutation", {
2763
- _config: _trpc_server.RootConfig<{
2764
- ctx: {
2765
- req: {
2766
- headers: Headers;
2767
- body: ReadableStream<Uint8Array> | null;
2768
- };
2769
- res: {
2770
- headers: Headers;
2771
- };
2772
- session: SecrecySession | null;
2773
- locale: Locales;
2774
- ls: TranslationFunctions;
2775
- };
2776
- meta: object;
2777
- errorShape: {
2778
- message: string;
2779
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2780
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2781
- } | {
2782
- data: {
2783
- zodError: zod.typeToFlattenedError<any, string> | null;
2784
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2785
- httpStatus: number;
2786
- path?: string;
2787
- stack?: string;
2788
- };
2789
- message: string;
2790
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2791
- };
2792
- transformer: typeof superjson.default;
2793
- }>;
2794
- _meta: object;
2795
- _ctx_out: {
2796
- session: SecrecySession;
2797
- req: {
2798
- headers: Headers;
2799
- body: ReadableStream<Uint8Array> | null;
2800
- };
2801
- res: {
2802
- headers: Headers;
2803
- };
2804
- locale: Locales;
2805
- ls: TranslationFunctions;
2806
- };
2807
- _input_in: {};
2808
- _input_out: {};
2809
- _output_in: {
2810
- success: boolean;
2811
- };
2812
- _output_out: {
2813
- success: boolean;
2814
- };
2815
- }, unknown>;
2816
- get: _trpc_server.BuildProcedure<"query", {
2817
- _config: _trpc_server.RootConfig<{
2818
- ctx: {
2819
- req: {
2820
- headers: Headers;
2821
- body: ReadableStream<Uint8Array> | null;
2822
- };
2823
- res: {
2824
- headers: Headers;
2825
- };
2826
- session: SecrecySession | null;
2827
- locale: Locales;
2828
- ls: TranslationFunctions;
2829
- };
2830
- meta: object;
2831
- errorShape: {
2832
- message: string;
2833
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2834
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2835
- } | {
2836
- data: {
2837
- zodError: zod.typeToFlattenedError<any, string> | null;
2838
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2839
- httpStatus: number;
2840
- path?: string;
2841
- stack?: string;
2842
- };
2843
- message: string;
2844
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2845
- };
2846
- transformer: typeof superjson.default;
2847
- }>;
2848
- _meta: object;
2849
- _ctx_out: {
2850
- session: SecrecySession;
2851
- req: {
2852
- headers: Headers;
2853
- body: ReadableStream<Uint8Array> | null;
2854
- };
2855
- res: {
2856
- headers: Headers;
2857
- };
2858
- locale: Locales;
2859
- ls: TranslationFunctions;
2860
- };
2861
- _input_in: {
2862
- id: string;
2863
- };
2864
- _input_out: {
2865
- id: string;
2866
- };
2867
- _output_in: {
2868
- status: "active" | "inactive" | "retired" | "suspended";
2869
- job: string;
2870
- specialties: string[];
2871
- } & {
2872
- user: {
2873
- id: string;
2874
- lastname: string;
2875
- firstname: string;
2876
- avatar: string | null;
2877
- isSearchable: boolean;
2878
- };
2879
- };
2880
- _output_out: {
2881
- status: "active" | "inactive" | "retired" | "suspended";
2882
- job: string;
2883
- specialties: string[];
2884
- } & {
2885
- user: {
2886
- id: string;
2887
- lastname: string;
2888
- firstname: string;
2889
- avatar: string | null;
2890
- isSearchable: boolean;
2891
- };
2892
- };
2893
- }, unknown>;
2894
- list: _trpc_server.BuildProcedure<"query", {
2895
- _config: _trpc_server.RootConfig<{
2896
- ctx: {
2897
- req: {
2898
- headers: Headers;
2899
- body: ReadableStream<Uint8Array> | null;
2900
- };
2901
- res: {
2902
- headers: Headers;
2903
- };
2904
- session: SecrecySession | null;
2905
- locale: Locales;
2906
- ls: TranslationFunctions;
2907
- };
2908
- meta: object;
2909
- errorShape: {
2910
- message: string;
2911
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2912
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2913
- } | {
2914
- data: {
2915
- zodError: zod.typeToFlattenedError<any, string> | null;
2916
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2917
- httpStatus: number;
2918
- path?: string;
2919
- stack?: string;
2920
- };
2921
- message: string;
2922
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2923
- };
2924
- transformer: typeof superjson.default;
2925
- }>;
2926
- _meta: object;
2927
- _ctx_out: {
2928
- session: SecrecySession;
2929
- req: {
2930
- headers: Headers;
2931
- body: ReadableStream<Uint8Array> | null;
2932
- };
2933
- res: {
2934
- headers: Headers;
2935
- };
2936
- locale: Locales;
2937
- ls: TranslationFunctions;
2938
- };
2939
- _input_in: {};
2940
- _input_out: {};
2941
- _output_in: ({
2942
- status: "active" | "inactive" | "retired" | "suspended";
2943
- job: string;
2944
- specialties: string[];
2945
- } & {
2946
- user: {
2947
- id: string;
2948
- lastname: string;
2949
- firstname: string;
2950
- avatar: string | null;
2951
- isSearchable: boolean;
2952
- };
2953
- })[];
2954
- _output_out: ({
2955
- status: "active" | "inactive" | "retired" | "suspended";
2956
- job: string;
2957
- specialties: string[];
2958
- } & {
2959
- user: {
2960
- id: string;
2961
- lastname: string;
2962
- firstname: string;
2963
- avatar: string | null;
2964
- isSearchable: boolean;
2965
- };
2966
- })[];
2967
- }, unknown>;
2968
- }>;
2969
- }>;
2970
- cloud: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2971
- ctx: {
2972
- req: {
2973
- headers: Headers;
2974
- body: ReadableStream<Uint8Array> | null;
2975
- };
2976
- res: {
2977
- headers: Headers;
2978
- };
2979
- session: SecrecySession | null;
2980
- locale: Locales;
2981
- ls: TranslationFunctions;
2982
- };
2983
- meta: object;
2984
- errorShape: {
2985
- message: string;
2986
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2987
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2988
- } | {
2989
- data: {
2990
- zodError: zod.typeToFlattenedError<any, string> | null;
2991
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2992
- httpStatus: number;
2993
- path?: string;
2994
- stack?: string;
2995
- };
2996
- message: string;
2997
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2998
- };
2999
- transformer: typeof superjson.default;
3000
- }>, {
3001
- addDataToHistory: _trpc_server.BuildProcedure<"mutation", {
3002
- _config: _trpc_server.RootConfig<{
3003
- ctx: {
3004
- req: {
3005
- headers: Headers;
3006
- body: ReadableStream<Uint8Array> | null;
3007
- };
3008
- res: {
3009
- headers: Headers;
3010
- };
3011
- session: SecrecySession | null;
3012
- locale: Locales;
3013
- ls: TranslationFunctions;
3014
- };
3015
- meta: object;
3016
- errorShape: {
3017
- message: string;
3018
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3019
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
3020
- } | {
3021
- data: {
3022
- zodError: zod.typeToFlattenedError<any, string> | null;
3023
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3024
- httpStatus: number;
3025
- path?: string;
3026
- stack?: string;
3027
- };
3028
- message: string;
3029
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3030
- };
3031
- transformer: typeof superjson.default;
3032
- }>;
3033
- _meta: object;
3034
- _ctx_out: {
3035
- session: SecrecySessionWithApp;
3036
- req: {
3037
- headers: Headers;
3038
- body: ReadableStream<Uint8Array> | null;
3039
- };
3040
- res: {
3041
- headers: Headers;
3042
- };
3043
- locale: Locales;
3044
- ls: TranslationFunctions;
3045
- };
3046
- _input_in: {
3047
- dataId: string;
3048
- nodeId: string;
3049
- };
3050
- _input_out: {
3051
- dataId: string;
3052
- nodeId: string;
3053
- };
3054
- _output_in: {
3055
- id: string;
3056
- createdAt: Date;
3057
- deletedAt: Date | null;
3058
- name: string;
3059
- updatedAt: Date;
3060
- type: "FILE" | "FOLDER";
3061
- parentId: string | null;
3062
- isFavorite: boolean;
3063
- currentDataId: string | null;
3064
- } & {
3065
- users: [{
3066
- id: string;
3067
- lastname: string;
3068
- firstname: string;
3069
- avatar: string | null;
3070
- isSearchable: boolean;
3071
- }, "admin" | "write" | "read"][];
3072
- createdBy: {
3073
- id: string;
3074
- lastname: string;
3075
- firstname: string;
3076
- avatar: string | null;
3077
- isSearchable: boolean;
3078
- };
3079
- access: {
3080
- rights: "admin" | "write" | "read";
3081
- nameKey: string | null;
3082
- isRoot: boolean;
3083
- sharedByPubKey: string;
3084
- };
3085
- } & {
3086
- sizes: {
3087
- size: bigint;
3088
- sizeBefore: bigint;
3089
- };
3090
- } & {
3091
- current: {
3092
- id: string;
3093
- createdAt: Date;
3094
- size: bigint;
3095
- md5: string;
3096
- storageType: "s3" | "lite";
3097
- sizeBefore: bigint;
3098
- md5Encrypted: string;
3099
- userAppUserId: string;
3100
- userAppAppId: string;
3101
- validatedAt: Date | null;
3102
- access: {
3103
- key: string;
3104
- sharedByPubKey: string;
3105
- };
3106
- } | null;
3107
- history: {
3108
- id: string;
3109
- createdAt: Date;
3110
- size: bigint;
3111
- md5: string;
3112
- storageType: "s3" | "lite";
3113
- sizeBefore: bigint;
3114
- md5Encrypted: string;
3115
- userAppUserId: string;
3116
- userAppAppId: string;
3117
- validatedAt: Date | null;
3118
- access: {
3119
- key: string;
3120
- sharedByPubKey: string;
3121
- };
3122
- }[];
3123
- parent: ({
3124
- id: string;
3125
- createdAt: Date;
3126
- deletedAt: Date | null;
3127
- name: string;
3128
- updatedAt: Date;
3129
- type: "FILE" | "FOLDER";
3130
- parentId: string | null;
3131
- isFavorite: boolean;
3132
- currentDataId: string | null;
3133
- } & {
3134
- users: [{
3135
- id: string;
3136
- lastname: string;
3137
- firstname: string;
3138
- avatar: string | null;
3139
- isSearchable: boolean;
3140
- }, "admin" | "write" | "read"][];
3141
- createdBy: {
3142
- id: string;
3143
- lastname: string;
3144
- firstname: string;
3145
- avatar: string | null;
3146
- isSearchable: boolean;
3147
- };
3148
- access: {
3149
- rights: "admin" | "write" | "read";
3150
- nameKey: string | null;
3151
- isRoot: boolean;
3152
- sharedByPubKey: string;
3153
- };
3154
- }) | null;
3155
- children: ({
3156
- id: string;
3157
- createdAt: Date;
3158
- deletedAt: Date | null;
3159
- name: string;
3160
- updatedAt: Date;
3161
- type: "FILE" | "FOLDER";
3162
- parentId: string | null;
3163
- isFavorite: boolean;
3164
- currentDataId: string | null;
3165
- } & {
3166
- users: [{
3167
- id: string;
3168
- lastname: string;
3169
- firstname: string;
3170
- avatar: string | null;
3171
- isSearchable: boolean;
3172
- }, "admin" | "write" | "read"][];
3173
- createdBy: {
2728
+ users: [{
2729
+ id: string;
2730
+ lastname: string;
2731
+ firstname: string;
2732
+ avatar: string | null;
2733
+ isSearchable: boolean;
2734
+ }, "admin" | "write" | "read"][];
2735
+ createdBy: {
3174
2736
  id: string;
3175
2737
  lastname: string;
3176
2738
  firstname: string;
@@ -16571,11 +16133,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16571
16133
  };
16572
16134
  _output_in: {
16573
16135
  plan: {
16574
- codes: string[];
16575
16136
  id: string;
16576
- kind: string;
16577
- relatedTo: "secrecy" | "secrecy_tech";
16578
- descriptorId: string;
16137
+ name: string;
16138
+ isCustomPlan?: boolean | undefined;
16139
+ canHaveDatabase?: boolean | undefined;
16579
16140
  } & {
16580
16141
  descriptor: {
16581
16142
  devsBase: bigint | null;
@@ -16620,44 +16181,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16620
16181
  id: string;
16621
16182
  } | null;
16622
16183
  };
16623
- plans: ({
16624
- codes: string[];
16625
- id: string;
16626
- kind: string;
16627
- relatedTo: "secrecy" | "secrecy_tech";
16628
- descriptorId: string;
16629
- } & {
16630
- descriptor: {
16631
- devsBase: bigint | null;
16632
- devsUnit: bigint | null;
16633
- devsPrice: number | null;
16634
- usersBase: bigint | null;
16635
- usersUnit: bigint | null;
16636
- usersPrice: number | null;
16637
- perDataSizeBase: bigint | null;
16638
- perDataSizeUnit: bigint | null;
16639
- perDataSizePrice: number | null;
16640
- bandwidthBase: bigint | null;
16641
- bandwidthUnit: bigint | null;
16642
- bandwidthPrice: number | null;
16643
- totalStorageSizeBase: bigint | null;
16644
- totalStorageSizeUnit: bigint | null;
16645
- totalStorageSizePrice: number | null;
16646
- devsMax: bigint | null;
16647
- usersMax: bigint | null;
16648
- perDataSizeMax: bigint | null;
16649
- bandwidthMax: bigint | null;
16650
- totalStorageSizeMax: bigint | null;
16651
- };
16652
- })[];
16653
16184
  };
16654
16185
  _output_out: {
16655
16186
  plan: {
16656
- codes: string[];
16657
16187
  id: string;
16658
- kind: string;
16659
- relatedTo: "secrecy" | "secrecy_tech";
16660
- descriptorId: string;
16188
+ name: string;
16189
+ isCustomPlan: boolean;
16190
+ canHaveDatabase: boolean;
16661
16191
  } & {
16662
16192
  descriptor: {
16663
16193
  devsBase: bigint | null;
@@ -16702,36 +16232,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16702
16232
  id: string;
16703
16233
  } | null;
16704
16234
  };
16705
- plans: ({
16706
- codes: string[];
16707
- id: string;
16708
- kind: string;
16709
- relatedTo: "secrecy" | "secrecy_tech";
16710
- descriptorId: string;
16711
- } & {
16712
- descriptor: {
16713
- devsBase: bigint | null;
16714
- devsUnit: bigint | null;
16715
- devsPrice: number | null;
16716
- usersBase: bigint | null;
16717
- usersUnit: bigint | null;
16718
- usersPrice: number | null;
16719
- perDataSizeBase: bigint | null;
16720
- perDataSizeUnit: bigint | null;
16721
- perDataSizePrice: number | null;
16722
- bandwidthBase: bigint | null;
16723
- bandwidthUnit: bigint | null;
16724
- bandwidthPrice: number | null;
16725
- totalStorageSizeBase: bigint | null;
16726
- totalStorageSizeUnit: bigint | null;
16727
- totalStorageSizePrice: number | null;
16728
- devsMax: bigint | null;
16729
- usersMax: bigint | null;
16730
- perDataSizeMax: bigint | null;
16731
- bandwidthMax: bigint | null;
16732
- totalStorageSizeMax: bigint | null;
16733
- };
16734
- })[];
16735
16235
  };
16736
16236
  }, unknown>;
16737
16237
  applications: _trpc_server.BuildProcedure<"query", {
@@ -16764,116 +16264,33 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16764
16264
  message: string;
16765
16265
  code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
16766
16266
  };
16767
- transformer: typeof superjson.default;
16768
- }>;
16769
- _meta: object;
16770
- _ctx_out: {
16771
- session: SecrecySession;
16772
- req: {
16773
- headers: Headers;
16774
- body: ReadableStream<Uint8Array> | null;
16775
- };
16776
- res: {
16777
- headers: Headers;
16778
- };
16779
- locale: Locales;
16780
- ls: TranslationFunctions;
16781
- };
16782
- _input_in: {
16783
- sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16784
- };
16785
- _input_out: {
16786
- sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16787
- };
16788
- _output_in: {
16789
- plan: {
16790
- codes: string[];
16791
- id: string;
16792
- kind: string;
16793
- relatedTo: "secrecy" | "secrecy_tech";
16794
- descriptorId: string;
16795
- } & {
16796
- descriptor: {
16797
- devsBase: bigint | null;
16798
- devsUnit: bigint | null;
16799
- devsPrice: number | null;
16800
- usersBase: bigint | null;
16801
- usersUnit: bigint | null;
16802
- usersPrice: number | null;
16803
- perDataSizeBase: bigint | null;
16804
- perDataSizeUnit: bigint | null;
16805
- perDataSizePrice: number | null;
16806
- bandwidthBase: bigint | null;
16807
- bandwidthUnit: bigint | null;
16808
- bandwidthPrice: number | null;
16809
- totalStorageSizeBase: bigint | null;
16810
- totalStorageSizeUnit: bigint | null;
16811
- totalStorageSizePrice: number | null;
16812
- devsMax: bigint | null;
16813
- usersMax: bigint | null;
16814
- perDataSizeMax: bigint | null;
16815
- bandwidthMax: bigint | null;
16816
- totalStorageSizeMax: bigint | null;
16817
- };
16818
- };
16819
- id: string;
16820
- createdAt: Date;
16821
- users: {
16822
- userId: string;
16823
- }[];
16824
- ownerId: string;
16825
- blocked: boolean;
16826
- name: string;
16827
- color: string | null;
16828
- logo: string | null;
16829
- updatedAt: Date;
16830
- origin: string[];
16831
- planId: string | null;
16832
- quotasId: string;
16833
- metricsId: string;
16834
- owner: {
16835
- user: {
16836
- id: string;
16837
- } | null;
16838
- };
16839
- plans: ({
16840
- codes: string[];
16841
- id: string;
16842
- kind: string;
16843
- relatedTo: "secrecy" | "secrecy_tech";
16844
- descriptorId: string;
16845
- } & {
16846
- descriptor: {
16847
- devsBase: bigint | null;
16848
- devsUnit: bigint | null;
16849
- devsPrice: number | null;
16850
- usersBase: bigint | null;
16851
- usersUnit: bigint | null;
16852
- usersPrice: number | null;
16853
- perDataSizeBase: bigint | null;
16854
- perDataSizeUnit: bigint | null;
16855
- perDataSizePrice: number | null;
16856
- bandwidthBase: bigint | null;
16857
- bandwidthUnit: bigint | null;
16858
- bandwidthPrice: number | null;
16859
- totalStorageSizeBase: bigint | null;
16860
- totalStorageSizeUnit: bigint | null;
16861
- totalStorageSizePrice: number | null;
16862
- devsMax: bigint | null;
16863
- usersMax: bigint | null;
16864
- perDataSizeMax: bigint | null;
16865
- bandwidthMax: bigint | null;
16866
- totalStorageSizeMax: bigint | null;
16867
- };
16868
- })[];
16869
- }[];
16870
- _output_out: {
16267
+ transformer: typeof superjson.default;
16268
+ }>;
16269
+ _meta: object;
16270
+ _ctx_out: {
16271
+ session: SecrecySession;
16272
+ req: {
16273
+ headers: Headers;
16274
+ body: ReadableStream<Uint8Array> | null;
16275
+ };
16276
+ res: {
16277
+ headers: Headers;
16278
+ };
16279
+ locale: Locales;
16280
+ ls: TranslationFunctions;
16281
+ };
16282
+ _input_in: {
16283
+ sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16284
+ };
16285
+ _input_out: {
16286
+ sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16287
+ };
16288
+ _output_in: {
16871
16289
  plan: {
16872
- codes: string[];
16873
16290
  id: string;
16874
- kind: string;
16875
- relatedTo: "secrecy" | "secrecy_tech";
16876
- descriptorId: string;
16291
+ name: string;
16292
+ isCustomPlan?: boolean | undefined;
16293
+ canHaveDatabase?: boolean | undefined;
16877
16294
  } & {
16878
16295
  descriptor: {
16879
16296
  devsBase: bigint | null;
@@ -16918,12 +16335,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16918
16335
  id: string;
16919
16336
  } | null;
16920
16337
  };
16921
- plans: ({
16922
- codes: string[];
16338
+ }[];
16339
+ _output_out: {
16340
+ plan: {
16923
16341
  id: string;
16924
- kind: string;
16925
- relatedTo: "secrecy" | "secrecy_tech";
16926
- descriptorId: string;
16342
+ name: string;
16343
+ isCustomPlan: boolean;
16344
+ canHaveDatabase: boolean;
16927
16345
  } & {
16928
16346
  descriptor: {
16929
16347
  devsBase: bigint | null;
@@ -16947,80 +16365,28 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16947
16365
  bandwidthMax: bigint | null;
16948
16366
  totalStorageSizeMax: bigint | null;
16949
16367
  };
16950
- })[];
16951
- }[];
16952
- }, unknown>;
16953
- cancelSubscription: _trpc_server.BuildProcedure<"mutation", {
16954
- _config: _trpc_server.RootConfig<{
16955
- ctx: {
16956
- req: {
16957
- headers: Headers;
16958
- body: ReadableStream<Uint8Array> | null;
16959
- };
16960
- res: {
16961
- headers: Headers;
16962
- };
16963
- session: SecrecySession | null;
16964
- locale: Locales;
16965
- ls: TranslationFunctions;
16966
- };
16967
- meta: object;
16968
- errorShape: {
16969
- message: string;
16970
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
16971
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
16972
- } | {
16973
- data: {
16974
- zodError: zod.typeToFlattenedError<any, string> | null;
16975
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
16976
- httpStatus: number;
16977
- path?: string;
16978
- stack?: string;
16979
- };
16980
- message: string;
16981
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
16982
16368
  };
16983
- transformer: typeof superjson.default;
16984
- }>;
16985
- _meta: object;
16986
- _ctx_out: {
16987
- session: {
16988
- appId: string;
16989
- appPlanId: string;
16990
- appFakeUserId: string | undefined;
16991
- sessionId: string;
16992
- accountId: string;
16993
- accountInfosId: string;
16994
- accountRole: _prisma_client.AccountRole;
16369
+ id: string;
16370
+ createdAt: Date;
16371
+ users: {
16995
16372
  userId: string;
16996
- userRole: _prisma_client.UserRole;
16997
- userPlan: _prisma_client.PlanKind;
16998
- isCare?: boolean;
16999
- };
17000
- req: {
17001
- headers: Headers;
17002
- body: ReadableStream<Uint8Array> | null;
17003
- };
17004
- res: {
17005
- headers: Headers;
16373
+ }[];
16374
+ ownerId: string;
16375
+ blocked: boolean;
16376
+ name: string;
16377
+ color: string | null;
16378
+ logo: string | null;
16379
+ updatedAt: Date;
16380
+ origin: string[];
16381
+ planId: string | null;
16382
+ quotasId: string;
16383
+ metricsId: string;
16384
+ owner: {
16385
+ user: {
16386
+ id: string;
16387
+ } | null;
17006
16388
  };
17007
- locale: Locales;
17008
- ls: TranslationFunctions;
17009
- };
17010
- _input_in: {
17011
- appId: string;
17012
- prorate: boolean;
17013
- };
17014
- _input_out: {
17015
- appId: string;
17016
- prorate: boolean;
17017
- };
17018
- _output_in: {
17019
- isCancelled: boolean;
17020
- };
17021
- _output_out: {
17022
- isCancelled: boolean;
17023
- };
16389
+ }[];
17024
16390
  }, unknown>;
17025
16391
  createApplication: _trpc_server.BuildProcedure<"mutation", {
17026
16392
  _config: _trpc_server.RootConfig<{
@@ -17094,78 +16460,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
17094
16460
  id: string;
17095
16461
  };
17096
16462
  }, unknown>;
17097
- createSubscription: _trpc_server.BuildProcedure<"mutation", {
17098
- _config: _trpc_server.RootConfig<{
17099
- ctx: {
17100
- req: {
17101
- headers: Headers;
17102
- body: ReadableStream<Uint8Array> | null;
17103
- };
17104
- res: {
17105
- headers: Headers;
17106
- };
17107
- session: SecrecySession | null;
17108
- locale: Locales;
17109
- ls: TranslationFunctions;
17110
- };
17111
- meta: object;
17112
- errorShape: {
17113
- message: string;
17114
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
17115
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
17116
- } | {
17117
- data: {
17118
- zodError: zod.typeToFlattenedError<any, string> | null;
17119
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
17120
- httpStatus: number;
17121
- path?: string;
17122
- stack?: string;
17123
- };
17124
- message: string;
17125
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
17126
- };
17127
- transformer: typeof superjson.default;
17128
- }>;
17129
- _meta: object;
17130
- _ctx_out: {
17131
- session: {
17132
- appId: string;
17133
- appPlanId: string;
17134
- appFakeUserId: string | undefined;
17135
- sessionId: string;
17136
- accountId: string;
17137
- accountInfosId: string;
17138
- accountRole: _prisma_client.AccountRole;
17139
- userId: string;
17140
- userRole: _prisma_client.UserRole;
17141
- userPlan: _prisma_client.PlanKind;
17142
- isCare?: boolean;
17143
- };
17144
- req: {
17145
- headers: Headers;
17146
- body: ReadableStream<Uint8Array> | null;
17147
- };
17148
- res: {
17149
- headers: Headers;
17150
- };
17151
- locale: Locales;
17152
- ls: TranslationFunctions;
17153
- };
17154
- _input_in: {
17155
- appId: string;
17156
- planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month";
17157
- };
17158
- _input_out: {
17159
- appId: string;
17160
- planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month";
17161
- };
17162
- _output_in: {
17163
- url: string | null;
17164
- };
17165
- _output_out: {
17166
- url: string | null;
17167
- };
17168
- }, unknown>;
17169
16463
  deleteApplication: _trpc_server.BuildProcedure<"mutation", {
17170
16464
  _config: _trpc_server.RootConfig<{
17171
16465
  ctx: {
@@ -17892,6 +17186,78 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
17892
17186
  isUpdated: boolean;
17893
17187
  };
17894
17188
  }, unknown>;
17189
+ switchPlan: _trpc_server.BuildProcedure<"mutation", {
17190
+ _config: _trpc_server.RootConfig<{
17191
+ ctx: {
17192
+ req: {
17193
+ headers: Headers;
17194
+ body: ReadableStream<Uint8Array> | null;
17195
+ };
17196
+ res: {
17197
+ headers: Headers;
17198
+ };
17199
+ session: SecrecySession | null;
17200
+ locale: Locales;
17201
+ ls: TranslationFunctions;
17202
+ };
17203
+ meta: object;
17204
+ errorShape: {
17205
+ message: string;
17206
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
17207
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
17208
+ } | {
17209
+ data: {
17210
+ zodError: zod.typeToFlattenedError<any, string> | null;
17211
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
17212
+ httpStatus: number;
17213
+ path?: string;
17214
+ stack?: string;
17215
+ };
17216
+ message: string;
17217
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
17218
+ };
17219
+ transformer: typeof superjson.default;
17220
+ }>;
17221
+ _meta: object;
17222
+ _ctx_out: {
17223
+ session: {
17224
+ appId: string;
17225
+ appPlanId: string;
17226
+ appFakeUserId: string | undefined;
17227
+ sessionId: string;
17228
+ accountId: string;
17229
+ accountInfosId: string;
17230
+ accountRole: _prisma_client.AccountRole;
17231
+ userId: string;
17232
+ userRole: _prisma_client.UserRole;
17233
+ userPlan: _prisma_client.PlanKind;
17234
+ isCare?: boolean;
17235
+ };
17236
+ req: {
17237
+ headers: Headers;
17238
+ body: ReadableStream<Uint8Array> | null;
17239
+ };
17240
+ res: {
17241
+ headers: Headers;
17242
+ };
17243
+ locale: Locales;
17244
+ ls: TranslationFunctions;
17245
+ };
17246
+ _input_in: {
17247
+ appId: string;
17248
+ planName: string;
17249
+ };
17250
+ _input_out: {
17251
+ appId: string;
17252
+ planName: string;
17253
+ };
17254
+ _output_in: {
17255
+ url: string | null;
17256
+ };
17257
+ _output_out: {
17258
+ url: string | null;
17259
+ };
17260
+ }, unknown>;
17895
17261
  }>;
17896
17262
  user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
17897
17263
  ctx: {