@secrecy/trpc-api-types 1.33.0-fix-dashboard-lp-tech-fixes.1 → 1.33.0-fix-dashboard-lp-tech-fixes.3

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 +321 -951
  2. package/package.json +3 -3
package/dist/index.d.cts CHANGED
@@ -472,6 +472,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
472
472
  lastReset: Date;
473
473
  uploadBandwidth: bigint;
474
474
  downloadBandwidth: bigint;
475
+ hasDatabase: boolean;
476
+ storageUsage: number;
475
477
  };
476
478
  _output_out: {
477
479
  id: string;
@@ -480,6 +482,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
480
482
  lastReset: Date;
481
483
  uploadBandwidth: bigint;
482
484
  downloadBandwidth: bigint;
485
+ hasDatabase: boolean;
486
+ storageUsage: number;
483
487
  };
484
488
  }, unknown>;
485
489
  quotas: _trpc_server.BuildProcedure<"query", {
@@ -702,18 +706,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
702
706
  _input_in: {} | undefined;
703
707
  _input_out: {} | undefined;
704
708
  _output_in: {
705
- codes: string[];
706
709
  id: string;
707
- kind: string;
708
- relatedTo: "secrecy" | "secrecy_tech";
710
+ name: string;
709
711
  descriptorId: string;
712
+ stripePricesId: string | null;
713
+ isCustomPlan?: boolean | undefined;
714
+ canHaveDatabase?: boolean | undefined;
710
715
  };
711
716
  _output_out: {
712
- codes: string[];
713
717
  id: string;
714
- kind: string;
715
- relatedTo: "secrecy" | "secrecy_tech";
718
+ name: string;
716
719
  descriptorId: string;
720
+ isCustomPlan: boolean;
721
+ canHaveDatabase: boolean;
722
+ stripePricesId: string | null;
717
723
  };
718
724
  }, unknown>;
719
725
  plans: _trpc_server.BuildProcedure<"query", {
@@ -750,7 +756,19 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
750
756
  }>;
751
757
  _meta: object;
752
758
  _ctx_out: {
753
- session: SecrecySession | null;
759
+ session: {
760
+ appId: string;
761
+ appPlanId: string;
762
+ appFakeUserId: string | undefined;
763
+ sessionId: string;
764
+ accountId: string;
765
+ accountInfosId: string;
766
+ accountRole: _prisma_client.AccountRole;
767
+ userId: string;
768
+ userRole: _prisma_client.UserRole;
769
+ userPlan: _prisma_client.PlanKind;
770
+ isCare?: boolean;
771
+ };
754
772
  req: {
755
773
  headers: Headers;
756
774
  body: ReadableStream<Uint8Array> | null;
@@ -761,14 +779,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
761
779
  locale: Locales;
762
780
  ls: TranslationFunctions;
763
781
  };
764
- _input_in: {} | undefined;
765
- _input_out: {} | undefined;
782
+ _input_in: {
783
+ appId?: string | undefined;
784
+ };
785
+ _input_out: {
786
+ appId?: string | undefined;
787
+ };
766
788
  _output_in: ({
767
- codes: string[];
768
789
  id: string;
769
- kind: string;
770
- relatedTo: "secrecy" | "secrecy_tech";
771
- descriptorId: string;
790
+ name: string;
791
+ isCustomPlan?: boolean | undefined;
792
+ canHaveDatabase?: boolean | undefined;
772
793
  } & {
773
794
  descriptor: {
774
795
  devsBase: bigint | null;
@@ -794,13 +815,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
794
815
  };
795
816
  } & {
796
817
  price: number;
818
+ } & {
819
+ isCurrent: boolean;
797
820
  })[];
798
821
  _output_out: ({
799
- codes: string[];
800
822
  id: string;
801
- kind: string;
802
- relatedTo: "secrecy" | "secrecy_tech";
803
- descriptorId: string;
823
+ name: string;
824
+ isCustomPlan: boolean;
825
+ canHaveDatabase: boolean;
804
826
  } & {
805
827
  descriptor: {
806
828
  devsBase: bigint | null;
@@ -826,6 +848,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
826
848
  };
827
849
  } & {
828
850
  price: number;
851
+ } & {
852
+ isCurrent: boolean;
829
853
  })[];
830
854
  }, unknown>;
831
855
  settings: _trpc_server.BuildProcedure<"query", {
@@ -2509,7 +2533,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2509
2533
  })[];
2510
2534
  }, unknown>;
2511
2535
  }>;
2512
- care: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2536
+ cloud: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2513
2537
  ctx: {
2514
2538
  req: {
2515
2539
  headers: Headers;
@@ -2540,8 +2564,41 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2540
2564
  };
2541
2565
  transformer: typeof superjson.default;
2542
2566
  }>, {
2543
- professional: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2544
- ctx: {
2567
+ addDataToHistory: _trpc_server.BuildProcedure<"mutation", {
2568
+ _config: _trpc_server.RootConfig<{
2569
+ ctx: {
2570
+ req: {
2571
+ headers: Headers;
2572
+ body: ReadableStream<Uint8Array> | null;
2573
+ };
2574
+ res: {
2575
+ headers: Headers;
2576
+ };
2577
+ session: SecrecySession | null;
2578
+ locale: Locales;
2579
+ ls: TranslationFunctions;
2580
+ };
2581
+ meta: object;
2582
+ errorShape: {
2583
+ message: string;
2584
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2585
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2586
+ } | {
2587
+ data: {
2588
+ zodError: zod.typeToFlattenedError<any, string> | null;
2589
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2590
+ httpStatus: number;
2591
+ path?: string;
2592
+ stack?: string;
2593
+ };
2594
+ message: string;
2595
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2596
+ };
2597
+ transformer: typeof superjson.default;
2598
+ }>;
2599
+ _meta: object;
2600
+ _ctx_out: {
2601
+ session: SecrecySessionWithApp;
2545
2602
  req: {
2546
2603
  headers: Headers;
2547
2604
  body: ReadableStream<Uint8Array> | null;
@@ -2549,628 +2606,137 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2549
2606
  res: {
2550
2607
  headers: Headers;
2551
2608
  };
2552
- session: SecrecySession | null;
2553
2609
  locale: Locales;
2554
2610
  ls: TranslationFunctions;
2555
2611
  };
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;
2612
+ _input_in: {
2613
+ dataId: string;
2614
+ nodeId: string;
2571
2615
  };
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;
2616
+ _input_out: {
2617
+ dataId: string;
2618
+ nodeId: string;
2619
+ };
2620
+ _output_in: {
2621
+ id: string;
2622
+ createdAt: Date;
2623
+ deletedAt: Date | null;
2624
+ name: string;
2625
+ updatedAt: Date;
2626
+ type: "FILE" | "FOLDER";
2627
+ parentId: string | null;
2628
+ isFavorite: boolean;
2629
+ currentDataId: string | null;
2630
+ } & {
2631
+ users: [{
2632
+ id: string;
2633
+ lastname: string;
2634
+ firstname: string;
2635
+ avatar: string | null;
2636
+ isSearchable: boolean;
2637
+ }, "admin" | "write" | "read"][];
2638
+ createdBy: {
2639
+ id: string;
2640
+ lastname: string;
2641
+ firstname: string;
2642
+ avatar: string | null;
2643
+ isSearchable: boolean;
2618
2644
  };
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;
2645
+ access: {
2646
+ rights: "admin" | "write" | "read";
2647
+ nameKey: string | null;
2648
+ isRoot: boolean;
2649
+ sharedByPubKey: string;
2629
2650
  };
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;
2651
+ } & {
2652
+ sizes: {
2653
+ size: bigint;
2654
+ sizeBefore: bigint;
2640
2655
  };
2641
- _output_in: {
2642
- status: "active" | "inactive" | "retired" | "suspended";
2643
- job: string;
2644
- specialties: string[];
2656
+ } & {
2657
+ current: {
2658
+ id: string;
2659
+ createdAt: Date;
2660
+ size: bigint;
2661
+ md5: string;
2662
+ storageType: "s3" | "lite";
2663
+ sizeBefore: bigint;
2664
+ md5Encrypted: string;
2665
+ userAppUserId: string;
2666
+ userAppAppId: string;
2667
+ validatedAt: Date | null;
2668
+ access: {
2669
+ key: string;
2670
+ sharedByPubKey: string;
2671
+ };
2672
+ } | null;
2673
+ history: {
2674
+ id: string;
2675
+ createdAt: Date;
2676
+ size: bigint;
2677
+ md5: string;
2678
+ storageType: "s3" | "lite";
2679
+ sizeBefore: bigint;
2680
+ md5Encrypted: string;
2681
+ userAppUserId: string;
2682
+ userAppAppId: string;
2683
+ validatedAt: Date | null;
2684
+ access: {
2685
+ key: string;
2686
+ sharedByPubKey: string;
2687
+ };
2688
+ }[];
2689
+ parent: ({
2690
+ id: string;
2691
+ createdAt: Date;
2692
+ deletedAt: Date | null;
2693
+ name: string;
2694
+ updatedAt: Date;
2695
+ type: "FILE" | "FOLDER";
2696
+ parentId: string | null;
2697
+ isFavorite: boolean;
2698
+ currentDataId: string | null;
2645
2699
  } & {
2646
- user: {
2700
+ users: [{
2701
+ id: string;
2702
+ lastname: string;
2703
+ firstname: string;
2704
+ avatar: string | null;
2705
+ isSearchable: boolean;
2706
+ }, "admin" | "write" | "read"][];
2707
+ createdBy: {
2647
2708
  id: string;
2648
2709
  lastname: string;
2649
2710
  firstname: string;
2650
2711
  avatar: string | null;
2651
2712
  isSearchable: boolean;
2652
2713
  };
2653
- };
2654
- _output_out: {
2655
- status: "active" | "inactive" | "retired" | "suspended";
2656
- job: string;
2657
- specialties: string[];
2714
+ access: {
2715
+ rights: "admin" | "write" | "read";
2716
+ nameKey: string | null;
2717
+ isRoot: boolean;
2718
+ sharedByPubKey: string;
2719
+ };
2720
+ }) | null;
2721
+ children: ({
2722
+ id: string;
2723
+ createdAt: Date;
2724
+ deletedAt: Date | null;
2725
+ name: string;
2726
+ updatedAt: Date;
2727
+ type: "FILE" | "FOLDER";
2728
+ parentId: string | null;
2729
+ isFavorite: boolean;
2730
+ currentDataId: string | null;
2658
2731
  } & {
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: {
2732
+ users: [{
2733
+ id: string;
2734
+ lastname: string;
2735
+ firstname: string;
2736
+ avatar: string | null;
2737
+ isSearchable: boolean;
2738
+ }, "admin" | "write" | "read"][];
2739
+ createdBy: {
3174
2740
  id: string;
3175
2741
  lastname: string;
3176
2742
  firstname: string;
@@ -16571,11 +16137,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16571
16137
  };
16572
16138
  _output_in: {
16573
16139
  plan: {
16574
- codes: string[];
16575
16140
  id: string;
16576
- kind: string;
16577
- relatedTo: "secrecy" | "secrecy_tech";
16578
- descriptorId: string;
16141
+ name: string;
16142
+ isCustomPlan?: boolean | undefined;
16143
+ canHaveDatabase?: boolean | undefined;
16579
16144
  } & {
16580
16145
  descriptor: {
16581
16146
  devsBase: bigint | null;
@@ -16620,44 +16185,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16620
16185
  id: string;
16621
16186
  } | null;
16622
16187
  };
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
16188
  };
16654
16189
  _output_out: {
16655
16190
  plan: {
16656
- codes: string[];
16657
16191
  id: string;
16658
- kind: string;
16659
- relatedTo: "secrecy" | "secrecy_tech";
16660
- descriptorId: string;
16192
+ name: string;
16193
+ isCustomPlan: boolean;
16194
+ canHaveDatabase: boolean;
16661
16195
  } & {
16662
16196
  descriptor: {
16663
16197
  devsBase: bigint | null;
@@ -16702,36 +16236,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16702
16236
  id: string;
16703
16237
  } | null;
16704
16238
  };
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
16239
  };
16736
16240
  }, unknown>;
16737
16241
  applications: _trpc_server.BuildProcedure<"query", {
@@ -16764,116 +16268,33 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16764
16268
  message: string;
16765
16269
  code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
16766
16270
  };
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: {
16271
+ transformer: typeof superjson.default;
16272
+ }>;
16273
+ _meta: object;
16274
+ _ctx_out: {
16275
+ session: SecrecySession;
16276
+ req: {
16277
+ headers: Headers;
16278
+ body: ReadableStream<Uint8Array> | null;
16279
+ };
16280
+ res: {
16281
+ headers: Headers;
16282
+ };
16283
+ locale: Locales;
16284
+ ls: TranslationFunctions;
16285
+ };
16286
+ _input_in: {
16287
+ sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16288
+ };
16289
+ _input_out: {
16290
+ sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16291
+ };
16292
+ _output_in: {
16871
16293
  plan: {
16872
- codes: string[];
16873
16294
  id: string;
16874
- kind: string;
16875
- relatedTo: "secrecy" | "secrecy_tech";
16876
- descriptorId: string;
16295
+ name: string;
16296
+ isCustomPlan?: boolean | undefined;
16297
+ canHaveDatabase?: boolean | undefined;
16877
16298
  } & {
16878
16299
  descriptor: {
16879
16300
  devsBase: bigint | null;
@@ -16918,12 +16339,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16918
16339
  id: string;
16919
16340
  } | null;
16920
16341
  };
16921
- plans: ({
16922
- codes: string[];
16342
+ }[];
16343
+ _output_out: {
16344
+ plan: {
16923
16345
  id: string;
16924
- kind: string;
16925
- relatedTo: "secrecy" | "secrecy_tech";
16926
- descriptorId: string;
16346
+ name: string;
16347
+ isCustomPlan: boolean;
16348
+ canHaveDatabase: boolean;
16927
16349
  } & {
16928
16350
  descriptor: {
16929
16351
  devsBase: bigint | null;
@@ -16947,80 +16369,28 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16947
16369
  bandwidthMax: bigint | null;
16948
16370
  totalStorageSizeMax: bigint | null;
16949
16371
  };
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
16372
  };
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;
16373
+ id: string;
16374
+ createdAt: Date;
16375
+ users: {
16995
16376
  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;
16377
+ }[];
16378
+ ownerId: string;
16379
+ blocked: boolean;
16380
+ name: string;
16381
+ color: string | null;
16382
+ logo: string | null;
16383
+ updatedAt: Date;
16384
+ origin: string[];
16385
+ planId: string | null;
16386
+ quotasId: string;
16387
+ metricsId: string;
16388
+ owner: {
16389
+ user: {
16390
+ id: string;
16391
+ } | null;
17006
16392
  };
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
- };
16393
+ }[];
17024
16394
  }, unknown>;
17025
16395
  createApplication: _trpc_server.BuildProcedure<"mutation", {
17026
16396
  _config: _trpc_server.RootConfig<{
@@ -17094,78 +16464,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
17094
16464
  id: string;
17095
16465
  };
17096
16466
  }, 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
16467
  deleteApplication: _trpc_server.BuildProcedure<"mutation", {
17170
16468
  _config: _trpc_server.RootConfig<{
17171
16469
  ctx: {
@@ -17892,6 +17190,78 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
17892
17190
  isUpdated: boolean;
17893
17191
  };
17894
17192
  }, unknown>;
17193
+ switchPlan: _trpc_server.BuildProcedure<"mutation", {
17194
+ _config: _trpc_server.RootConfig<{
17195
+ ctx: {
17196
+ req: {
17197
+ headers: Headers;
17198
+ body: ReadableStream<Uint8Array> | null;
17199
+ };
17200
+ res: {
17201
+ headers: Headers;
17202
+ };
17203
+ session: SecrecySession | null;
17204
+ locale: Locales;
17205
+ ls: TranslationFunctions;
17206
+ };
17207
+ meta: object;
17208
+ errorShape: {
17209
+ message: string;
17210
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
17211
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
17212
+ } | {
17213
+ data: {
17214
+ zodError: zod.typeToFlattenedError<any, string> | null;
17215
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
17216
+ httpStatus: number;
17217
+ path?: string;
17218
+ stack?: string;
17219
+ };
17220
+ message: string;
17221
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
17222
+ };
17223
+ transformer: typeof superjson.default;
17224
+ }>;
17225
+ _meta: object;
17226
+ _ctx_out: {
17227
+ session: {
17228
+ appId: string;
17229
+ appPlanId: string;
17230
+ appFakeUserId: string | undefined;
17231
+ sessionId: string;
17232
+ accountId: string;
17233
+ accountInfosId: string;
17234
+ accountRole: _prisma_client.AccountRole;
17235
+ userId: string;
17236
+ userRole: _prisma_client.UserRole;
17237
+ userPlan: _prisma_client.PlanKind;
17238
+ isCare?: boolean;
17239
+ };
17240
+ req: {
17241
+ headers: Headers;
17242
+ body: ReadableStream<Uint8Array> | null;
17243
+ };
17244
+ res: {
17245
+ headers: Headers;
17246
+ };
17247
+ locale: Locales;
17248
+ ls: TranslationFunctions;
17249
+ };
17250
+ _input_in: {
17251
+ appId: string;
17252
+ planName: string;
17253
+ };
17254
+ _input_out: {
17255
+ appId: string;
17256
+ planName: string;
17257
+ };
17258
+ _output_in: {
17259
+ url: string | null;
17260
+ };
17261
+ _output_out: {
17262
+ url: string | null;
17263
+ };
17264
+ }, unknown>;
17895
17265
  }>;
17896
17266
  user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
17897
17267
  ctx: {