@secrecy/lib 1.39.0-feat-custom-tech-plan.4 → 1.39.0-feat-custom-tech-plan.6

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.
@@ -678,7 +678,19 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
678
678
  }>;
679
679
  _meta: object;
680
680
  _ctx_out: {
681
- session: SecrecySessionWithApp;
681
+ session: {
682
+ appId: string;
683
+ appPlanId: string;
684
+ appFakeUserId: string | undefined;
685
+ sessionId: string;
686
+ accountId: string;
687
+ accountInfosId: string;
688
+ accountRole: _prisma_client.AccountRole;
689
+ userId: string;
690
+ userRole: _prisma_client.UserRole;
691
+ userPlan: _prisma_client.PlanKind;
692
+ isCare?: boolean;
693
+ };
682
694
  req: {
683
695
  headers: Headers;
684
696
  body: ReadableStream<Uint8Array> | null;
@@ -689,12 +701,17 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
689
701
  locale: Locales;
690
702
  ls: TranslationFunctions;
691
703
  };
692
- _input_in: {} | undefined;
693
- _input_out: {} | undefined;
704
+ _input_in: {
705
+ appId?: string | undefined;
706
+ };
707
+ _input_out: {
708
+ appId?: string | undefined;
709
+ };
694
710
  _output_in: ({
695
711
  id: string;
696
712
  name: string;
697
713
  isCustomPlan?: boolean | undefined;
714
+ canHaveDatabase?: boolean | undefined;
698
715
  } & {
699
716
  descriptor: {
700
717
  devsBase: bigint | null;
@@ -720,11 +737,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
720
737
  };
721
738
  } & {
722
739
  price: number;
740
+ } & {
741
+ isCurrent: boolean;
723
742
  })[];
724
743
  _output_out: ({
725
744
  id: string;
726
745
  name: string;
727
746
  isCustomPlan: boolean;
747
+ canHaveDatabase: boolean;
728
748
  } & {
729
749
  descriptor: {
730
750
  devsBase: bigint | null;
@@ -750,6 +770,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
750
770
  };
751
771
  } & {
752
772
  price: number;
773
+ } & {
774
+ isCurrent: boolean;
753
775
  })[];
754
776
  }, unknown>>;
755
777
  };
@@ -15716,6 +15738,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
15716
15738
  id: string;
15717
15739
  name: string;
15718
15740
  isCustomPlan?: boolean | undefined;
15741
+ canHaveDatabase?: boolean | undefined;
15719
15742
  } & {
15720
15743
  descriptor: {
15721
15744
  devsBase: bigint | null;
@@ -15760,40 +15783,13 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
15760
15783
  id: string;
15761
15784
  } | null;
15762
15785
  };
15763
- plans: ({
15764
- id: string;
15765
- name: string;
15766
- isCustomPlan?: boolean | undefined;
15767
- } & {
15768
- descriptor: {
15769
- devsBase: bigint | null;
15770
- devsUnit: bigint | null;
15771
- devsPrice: number | null;
15772
- usersBase: bigint | null;
15773
- usersUnit: bigint | null;
15774
- usersPrice: number | null;
15775
- perDataSizeBase: bigint | null;
15776
- perDataSizeUnit: bigint | null;
15777
- perDataSizePrice: number | null;
15778
- bandwidthBase: bigint | null;
15779
- bandwidthUnit: bigint | null;
15780
- bandwidthPrice: number | null;
15781
- totalStorageSizeBase: bigint | null;
15782
- totalStorageSizeUnit: bigint | null;
15783
- totalStorageSizePrice: number | null;
15784
- devsMax: bigint | null;
15785
- usersMax: bigint | null;
15786
- perDataSizeMax: bigint | null;
15787
- bandwidthMax: bigint | null;
15788
- totalStorageSizeMax: bigint | null;
15789
- };
15790
- })[];
15791
15786
  };
15792
15787
  _output_out: {
15793
15788
  plan: {
15794
15789
  id: string;
15795
15790
  name: string;
15796
15791
  isCustomPlan: boolean;
15792
+ canHaveDatabase: boolean;
15797
15793
  } & {
15798
15794
  descriptor: {
15799
15795
  devsBase: bigint | null;
@@ -15838,34 +15834,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
15838
15834
  id: string;
15839
15835
  } | null;
15840
15836
  };
15841
- plans: ({
15842
- id: string;
15843
- name: string;
15844
- isCustomPlan: boolean;
15845
- } & {
15846
- descriptor: {
15847
- devsBase: bigint | null;
15848
- devsUnit: bigint | null;
15849
- devsPrice: number | null;
15850
- usersBase: bigint | null;
15851
- usersUnit: bigint | null;
15852
- usersPrice: number | null;
15853
- perDataSizeBase: bigint | null;
15854
- perDataSizeUnit: bigint | null;
15855
- perDataSizePrice: number | null;
15856
- bandwidthBase: bigint | null;
15857
- bandwidthUnit: bigint | null;
15858
- bandwidthPrice: number | null;
15859
- totalStorageSizeBase: bigint | null;
15860
- totalStorageSizeUnit: bigint | null;
15861
- totalStorageSizePrice: number | null;
15862
- devsMax: bigint | null;
15863
- usersMax: bigint | null;
15864
- perDataSizeMax: bigint | null;
15865
- bandwidthMax: bigint | null;
15866
- totalStorageSizeMax: bigint | null;
15867
- };
15868
- })[];
15869
15837
  };
15870
15838
  }, unknown>>;
15871
15839
  };
@@ -15926,6 +15894,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
15926
15894
  id: string;
15927
15895
  name: string;
15928
15896
  isCustomPlan?: boolean | undefined;
15897
+ canHaveDatabase?: boolean | undefined;
15929
15898
  } & {
15930
15899
  descriptor: {
15931
15900
  devsBase: bigint | null;
@@ -15970,40 +15939,13 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
15970
15939
  id: string;
15971
15940
  } | null;
15972
15941
  };
15973
- plans: ({
15974
- id: string;
15975
- name: string;
15976
- isCustomPlan?: boolean | undefined;
15977
- } & {
15978
- descriptor: {
15979
- devsBase: bigint | null;
15980
- devsUnit: bigint | null;
15981
- devsPrice: number | null;
15982
- usersBase: bigint | null;
15983
- usersUnit: bigint | null;
15984
- usersPrice: number | null;
15985
- perDataSizeBase: bigint | null;
15986
- perDataSizeUnit: bigint | null;
15987
- perDataSizePrice: number | null;
15988
- bandwidthBase: bigint | null;
15989
- bandwidthUnit: bigint | null;
15990
- bandwidthPrice: number | null;
15991
- totalStorageSizeBase: bigint | null;
15992
- totalStorageSizeUnit: bigint | null;
15993
- totalStorageSizePrice: number | null;
15994
- devsMax: bigint | null;
15995
- usersMax: bigint | null;
15996
- perDataSizeMax: bigint | null;
15997
- bandwidthMax: bigint | null;
15998
- totalStorageSizeMax: bigint | null;
15999
- };
16000
- })[];
16001
15942
  }[];
16002
15943
  _output_out: {
16003
15944
  plan: {
16004
15945
  id: string;
16005
15946
  name: string;
16006
15947
  isCustomPlan: boolean;
15948
+ canHaveDatabase: boolean;
16007
15949
  } & {
16008
15950
  descriptor: {
16009
15951
  devsBase: bigint | null;
@@ -16048,34 +15990,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16048
15990
  id: string;
16049
15991
  } | null;
16050
15992
  };
16051
- plans: ({
16052
- id: string;
16053
- name: string;
16054
- isCustomPlan: boolean;
16055
- } & {
16056
- descriptor: {
16057
- devsBase: bigint | null;
16058
- devsUnit: bigint | null;
16059
- devsPrice: number | null;
16060
- usersBase: bigint | null;
16061
- usersUnit: bigint | null;
16062
- usersPrice: number | null;
16063
- perDataSizeBase: bigint | null;
16064
- perDataSizeUnit: bigint | null;
16065
- perDataSizePrice: number | null;
16066
- bandwidthBase: bigint | null;
16067
- bandwidthUnit: bigint | null;
16068
- bandwidthPrice: number | null;
16069
- totalStorageSizeBase: bigint | null;
16070
- totalStorageSizeUnit: bigint | null;
16071
- totalStorageSizePrice: number | null;
16072
- devsMax: bigint | null;
16073
- usersMax: bigint | null;
16074
- perDataSizeMax: bigint | null;
16075
- bandwidthMax: bigint | null;
16076
- totalStorageSizeMax: bigint | null;
16077
- };
16078
- })[];
16079
15993
  }[];
16080
15994
  }, unknown>>;
16081
15995
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@secrecy/lib",
3
3
  "author": "Anonymize <anonymize@gmail.com>",
4
4
  "description": "Anonymize Secrecy Library",
5
- "version": "1.39.0-feat-custom-tech-plan.4",
5
+ "version": "1.39.0-feat-custom-tech-plan.6",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@secrecy/lib-utils": "^1.0.18",
77
- "@secrecy/trpc-api-types": "1.33.0-feat-custom-tech-plan.4",
77
+ "@secrecy/trpc-api-types": "1.33.0-feat-custom-tech-plan.6",
78
78
  "@trpc/client": "10.45.2",
79
79
  "@trpc/server": "10.45.2",
80
80
  "@types/libsodium-wrappers-sumo": "^0.7.8",