@secrecy/lib 1.39.0-feat-custom-tech-plan.5 → 1.39.0-feat-custom-tech-plan.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/client.d.ts +97 -267
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -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:
|
|
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,8 +701,12 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
689
701
|
locale: Locales;
|
|
690
702
|
ls: TranslationFunctions;
|
|
691
703
|
};
|
|
692
|
-
_input_in: {
|
|
693
|
-
|
|
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;
|
|
@@ -721,6 +737,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
721
737
|
};
|
|
722
738
|
} & {
|
|
723
739
|
price: number;
|
|
740
|
+
} & {
|
|
741
|
+
isCurrent: boolean;
|
|
724
742
|
})[];
|
|
725
743
|
_output_out: ({
|
|
726
744
|
id: string;
|
|
@@ -752,6 +770,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
752
770
|
};
|
|
753
771
|
} & {
|
|
754
772
|
price: number;
|
|
773
|
+
} & {
|
|
774
|
+
isCurrent: boolean;
|
|
755
775
|
})[];
|
|
756
776
|
}, unknown>>;
|
|
757
777
|
};
|
|
@@ -15763,35 +15783,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15763
15783
|
id: string;
|
|
15764
15784
|
} | null;
|
|
15765
15785
|
};
|
|
15766
|
-
plans: ({
|
|
15767
|
-
id: string;
|
|
15768
|
-
name: string;
|
|
15769
|
-
isCustomPlan?: boolean | undefined;
|
|
15770
|
-
canHaveDatabase?: boolean | undefined;
|
|
15771
|
-
} & {
|
|
15772
|
-
descriptor: {
|
|
15773
|
-
devsBase: bigint | null;
|
|
15774
|
-
devsUnit: bigint | null;
|
|
15775
|
-
devsPrice: number | null;
|
|
15776
|
-
usersBase: bigint | null;
|
|
15777
|
-
usersUnit: bigint | null;
|
|
15778
|
-
usersPrice: number | null;
|
|
15779
|
-
perDataSizeBase: bigint | null;
|
|
15780
|
-
perDataSizeUnit: bigint | null;
|
|
15781
|
-
perDataSizePrice: number | null;
|
|
15782
|
-
bandwidthBase: bigint | null;
|
|
15783
|
-
bandwidthUnit: bigint | null;
|
|
15784
|
-
bandwidthPrice: number | null;
|
|
15785
|
-
totalStorageSizeBase: bigint | null;
|
|
15786
|
-
totalStorageSizeUnit: bigint | null;
|
|
15787
|
-
totalStorageSizePrice: number | null;
|
|
15788
|
-
devsMax: bigint | null;
|
|
15789
|
-
usersMax: bigint | null;
|
|
15790
|
-
perDataSizeMax: bigint | null;
|
|
15791
|
-
bandwidthMax: bigint | null;
|
|
15792
|
-
totalStorageSizeMax: bigint | null;
|
|
15793
|
-
};
|
|
15794
|
-
})[];
|
|
15795
15786
|
};
|
|
15796
15787
|
_output_out: {
|
|
15797
15788
|
plan: {
|
|
@@ -15843,35 +15834,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15843
15834
|
id: string;
|
|
15844
15835
|
} | null;
|
|
15845
15836
|
};
|
|
15846
|
-
plans: ({
|
|
15847
|
-
id: string;
|
|
15848
|
-
name: string;
|
|
15849
|
-
isCustomPlan: boolean;
|
|
15850
|
-
canHaveDatabase: boolean;
|
|
15851
|
-
} & {
|
|
15852
|
-
descriptor: {
|
|
15853
|
-
devsBase: bigint | null;
|
|
15854
|
-
devsUnit: bigint | null;
|
|
15855
|
-
devsPrice: number | null;
|
|
15856
|
-
usersBase: bigint | null;
|
|
15857
|
-
usersUnit: bigint | null;
|
|
15858
|
-
usersPrice: number | null;
|
|
15859
|
-
perDataSizeBase: bigint | null;
|
|
15860
|
-
perDataSizeUnit: bigint | null;
|
|
15861
|
-
perDataSizePrice: number | null;
|
|
15862
|
-
bandwidthBase: bigint | null;
|
|
15863
|
-
bandwidthUnit: bigint | null;
|
|
15864
|
-
bandwidthPrice: number | null;
|
|
15865
|
-
totalStorageSizeBase: bigint | null;
|
|
15866
|
-
totalStorageSizeUnit: bigint | null;
|
|
15867
|
-
totalStorageSizePrice: number | null;
|
|
15868
|
-
devsMax: bigint | null;
|
|
15869
|
-
usersMax: bigint | null;
|
|
15870
|
-
perDataSizeMax: bigint | null;
|
|
15871
|
-
bandwidthMax: bigint | null;
|
|
15872
|
-
totalStorageSizeMax: bigint | null;
|
|
15873
|
-
};
|
|
15874
|
-
})[];
|
|
15875
15837
|
};
|
|
15876
15838
|
}, unknown>>;
|
|
15877
15839
|
};
|
|
@@ -15977,35 +15939,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15977
15939
|
id: string;
|
|
15978
15940
|
} | null;
|
|
15979
15941
|
};
|
|
15980
|
-
plans: ({
|
|
15981
|
-
id: string;
|
|
15982
|
-
name: string;
|
|
15983
|
-
isCustomPlan?: boolean | undefined;
|
|
15984
|
-
canHaveDatabase?: boolean | undefined;
|
|
15985
|
-
} & {
|
|
15986
|
-
descriptor: {
|
|
15987
|
-
devsBase: bigint | null;
|
|
15988
|
-
devsUnit: bigint | null;
|
|
15989
|
-
devsPrice: number | null;
|
|
15990
|
-
usersBase: bigint | null;
|
|
15991
|
-
usersUnit: bigint | null;
|
|
15992
|
-
usersPrice: number | null;
|
|
15993
|
-
perDataSizeBase: bigint | null;
|
|
15994
|
-
perDataSizeUnit: bigint | null;
|
|
15995
|
-
perDataSizePrice: number | null;
|
|
15996
|
-
bandwidthBase: bigint | null;
|
|
15997
|
-
bandwidthUnit: bigint | null;
|
|
15998
|
-
bandwidthPrice: number | null;
|
|
15999
|
-
totalStorageSizeBase: bigint | null;
|
|
16000
|
-
totalStorageSizeUnit: bigint | null;
|
|
16001
|
-
totalStorageSizePrice: number | null;
|
|
16002
|
-
devsMax: bigint | null;
|
|
16003
|
-
usersMax: bigint | null;
|
|
16004
|
-
perDataSizeMax: bigint | null;
|
|
16005
|
-
bandwidthMax: bigint | null;
|
|
16006
|
-
totalStorageSizeMax: bigint | null;
|
|
16007
|
-
};
|
|
16008
|
-
})[];
|
|
16009
15942
|
}[];
|
|
16010
15943
|
_output_out: {
|
|
16011
15944
|
plan: {
|
|
@@ -16057,112 +15990,9 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16057
15990
|
id: string;
|
|
16058
15991
|
} | null;
|
|
16059
15992
|
};
|
|
16060
|
-
plans: ({
|
|
16061
|
-
id: string;
|
|
16062
|
-
name: string;
|
|
16063
|
-
isCustomPlan: boolean;
|
|
16064
|
-
canHaveDatabase: boolean;
|
|
16065
|
-
} & {
|
|
16066
|
-
descriptor: {
|
|
16067
|
-
devsBase: bigint | null;
|
|
16068
|
-
devsUnit: bigint | null;
|
|
16069
|
-
devsPrice: number | null;
|
|
16070
|
-
usersBase: bigint | null;
|
|
16071
|
-
usersUnit: bigint | null;
|
|
16072
|
-
usersPrice: number | null;
|
|
16073
|
-
perDataSizeBase: bigint | null;
|
|
16074
|
-
perDataSizeUnit: bigint | null;
|
|
16075
|
-
perDataSizePrice: number | null;
|
|
16076
|
-
bandwidthBase: bigint | null;
|
|
16077
|
-
bandwidthUnit: bigint | null;
|
|
16078
|
-
bandwidthPrice: number | null;
|
|
16079
|
-
totalStorageSizeBase: bigint | null;
|
|
16080
|
-
totalStorageSizeUnit: bigint | null;
|
|
16081
|
-
totalStorageSizePrice: number | null;
|
|
16082
|
-
devsMax: bigint | null;
|
|
16083
|
-
usersMax: bigint | null;
|
|
16084
|
-
perDataSizeMax: bigint | null;
|
|
16085
|
-
bandwidthMax: bigint | null;
|
|
16086
|
-
totalStorageSizeMax: bigint | null;
|
|
16087
|
-
};
|
|
16088
|
-
})[];
|
|
16089
15993
|
}[];
|
|
16090
15994
|
}, unknown>>;
|
|
16091
15995
|
};
|
|
16092
|
-
cancelSubscription: {
|
|
16093
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
16094
|
-
_config: import("@trpc/server").RootConfig<{
|
|
16095
|
-
ctx: {
|
|
16096
|
-
req: {
|
|
16097
|
-
headers: Headers;
|
|
16098
|
-
body: ReadableStream<Uint8Array> | null;
|
|
16099
|
-
};
|
|
16100
|
-
res: {
|
|
16101
|
-
headers: Headers;
|
|
16102
|
-
};
|
|
16103
|
-
session: SecrecySession | null;
|
|
16104
|
-
locale: Locales;
|
|
16105
|
-
ls: TranslationFunctions;
|
|
16106
|
-
};
|
|
16107
|
-
meta: object;
|
|
16108
|
-
errorShape: {
|
|
16109
|
-
message: string;
|
|
16110
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16111
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
16112
|
-
} | {
|
|
16113
|
-
data: {
|
|
16114
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
16115
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
16116
|
-
httpStatus: number;
|
|
16117
|
-
path?: string;
|
|
16118
|
-
stack?: string;
|
|
16119
|
-
};
|
|
16120
|
-
message: string;
|
|
16121
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16122
|
-
};
|
|
16123
|
-
transformer: typeof superjson;
|
|
16124
|
-
}>;
|
|
16125
|
-
_meta: object;
|
|
16126
|
-
_ctx_out: {
|
|
16127
|
-
session: {
|
|
16128
|
-
appId: string;
|
|
16129
|
-
appPlanId: string;
|
|
16130
|
-
appFakeUserId: string | undefined;
|
|
16131
|
-
sessionId: string;
|
|
16132
|
-
accountId: string;
|
|
16133
|
-
accountInfosId: string;
|
|
16134
|
-
accountRole: _prisma_client.AccountRole;
|
|
16135
|
-
userId: string;
|
|
16136
|
-
userRole: _prisma_client.UserRole;
|
|
16137
|
-
userPlan: _prisma_client.PlanKind;
|
|
16138
|
-
isCare?: boolean;
|
|
16139
|
-
};
|
|
16140
|
-
req: {
|
|
16141
|
-
headers: Headers;
|
|
16142
|
-
body: ReadableStream<Uint8Array> | null;
|
|
16143
|
-
};
|
|
16144
|
-
res: {
|
|
16145
|
-
headers: Headers;
|
|
16146
|
-
};
|
|
16147
|
-
locale: Locales;
|
|
16148
|
-
ls: TranslationFunctions;
|
|
16149
|
-
};
|
|
16150
|
-
_input_in: {
|
|
16151
|
-
appId: string;
|
|
16152
|
-
prorate: boolean;
|
|
16153
|
-
};
|
|
16154
|
-
_input_out: {
|
|
16155
|
-
appId: string;
|
|
16156
|
-
prorate: boolean;
|
|
16157
|
-
};
|
|
16158
|
-
_output_in: {
|
|
16159
|
-
isCancelled: boolean;
|
|
16160
|
-
};
|
|
16161
|
-
_output_out: {
|
|
16162
|
-
isCancelled: boolean;
|
|
16163
|
-
};
|
|
16164
|
-
}, unknown>>;
|
|
16165
|
-
};
|
|
16166
15996
|
createApplication: {
|
|
16167
15997
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
16168
15998
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -16237,80 +16067,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16237
16067
|
};
|
|
16238
16068
|
}, unknown>>;
|
|
16239
16069
|
};
|
|
16240
|
-
createSubscription: {
|
|
16241
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
16242
|
-
_config: import("@trpc/server").RootConfig<{
|
|
16243
|
-
ctx: {
|
|
16244
|
-
req: {
|
|
16245
|
-
headers: Headers;
|
|
16246
|
-
body: ReadableStream<Uint8Array> | null;
|
|
16247
|
-
};
|
|
16248
|
-
res: {
|
|
16249
|
-
headers: Headers;
|
|
16250
|
-
};
|
|
16251
|
-
session: SecrecySession | null;
|
|
16252
|
-
locale: Locales;
|
|
16253
|
-
ls: TranslationFunctions;
|
|
16254
|
-
};
|
|
16255
|
-
meta: object;
|
|
16256
|
-
errorShape: {
|
|
16257
|
-
message: string;
|
|
16258
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16259
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
16260
|
-
} | {
|
|
16261
|
-
data: {
|
|
16262
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
16263
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
16264
|
-
httpStatus: number;
|
|
16265
|
-
path?: string;
|
|
16266
|
-
stack?: string;
|
|
16267
|
-
};
|
|
16268
|
-
message: string;
|
|
16269
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16270
|
-
};
|
|
16271
|
-
transformer: typeof superjson;
|
|
16272
|
-
}>;
|
|
16273
|
-
_meta: object;
|
|
16274
|
-
_ctx_out: {
|
|
16275
|
-
session: {
|
|
16276
|
-
appId: string;
|
|
16277
|
-
appPlanId: string;
|
|
16278
|
-
appFakeUserId: string | undefined;
|
|
16279
|
-
sessionId: string;
|
|
16280
|
-
accountId: string;
|
|
16281
|
-
accountInfosId: string;
|
|
16282
|
-
accountRole: _prisma_client.AccountRole;
|
|
16283
|
-
userId: string;
|
|
16284
|
-
userRole: _prisma_client.UserRole;
|
|
16285
|
-
userPlan: _prisma_client.PlanKind;
|
|
16286
|
-
isCare?: boolean;
|
|
16287
|
-
};
|
|
16288
|
-
req: {
|
|
16289
|
-
headers: Headers;
|
|
16290
|
-
body: ReadableStream<Uint8Array> | null;
|
|
16291
|
-
};
|
|
16292
|
-
res: {
|
|
16293
|
-
headers: Headers;
|
|
16294
|
-
};
|
|
16295
|
-
locale: Locales;
|
|
16296
|
-
ls: TranslationFunctions;
|
|
16297
|
-
};
|
|
16298
|
-
_input_in: {
|
|
16299
|
-
appId: string;
|
|
16300
|
-
planName: string;
|
|
16301
|
-
};
|
|
16302
|
-
_input_out: {
|
|
16303
|
-
appId: string;
|
|
16304
|
-
planName: string;
|
|
16305
|
-
};
|
|
16306
|
-
_output_in: {
|
|
16307
|
-
url: string | null;
|
|
16308
|
-
};
|
|
16309
|
-
_output_out: {
|
|
16310
|
-
url: string | null;
|
|
16311
|
-
};
|
|
16312
|
-
}, unknown>>;
|
|
16313
|
-
};
|
|
16314
16070
|
deleteApplication: {
|
|
16315
16071
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
16316
16072
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -17055,6 +16811,80 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
17055
16811
|
};
|
|
17056
16812
|
}, unknown>>;
|
|
17057
16813
|
};
|
|
16814
|
+
switchPlan: {
|
|
16815
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
16816
|
+
_config: import("@trpc/server").RootConfig<{
|
|
16817
|
+
ctx: {
|
|
16818
|
+
req: {
|
|
16819
|
+
headers: Headers;
|
|
16820
|
+
body: ReadableStream<Uint8Array> | null;
|
|
16821
|
+
};
|
|
16822
|
+
res: {
|
|
16823
|
+
headers: Headers;
|
|
16824
|
+
};
|
|
16825
|
+
session: SecrecySession | null;
|
|
16826
|
+
locale: Locales;
|
|
16827
|
+
ls: TranslationFunctions;
|
|
16828
|
+
};
|
|
16829
|
+
meta: object;
|
|
16830
|
+
errorShape: {
|
|
16831
|
+
message: string;
|
|
16832
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16833
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
16834
|
+
} | {
|
|
16835
|
+
data: {
|
|
16836
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
16837
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
16838
|
+
httpStatus: number;
|
|
16839
|
+
path?: string;
|
|
16840
|
+
stack?: string;
|
|
16841
|
+
};
|
|
16842
|
+
message: string;
|
|
16843
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16844
|
+
};
|
|
16845
|
+
transformer: typeof superjson;
|
|
16846
|
+
}>;
|
|
16847
|
+
_meta: object;
|
|
16848
|
+
_ctx_out: {
|
|
16849
|
+
session: {
|
|
16850
|
+
appId: string;
|
|
16851
|
+
appPlanId: string;
|
|
16852
|
+
appFakeUserId: string | undefined;
|
|
16853
|
+
sessionId: string;
|
|
16854
|
+
accountId: string;
|
|
16855
|
+
accountInfosId: string;
|
|
16856
|
+
accountRole: _prisma_client.AccountRole;
|
|
16857
|
+
userId: string;
|
|
16858
|
+
userRole: _prisma_client.UserRole;
|
|
16859
|
+
userPlan: _prisma_client.PlanKind;
|
|
16860
|
+
isCare?: boolean;
|
|
16861
|
+
};
|
|
16862
|
+
req: {
|
|
16863
|
+
headers: Headers;
|
|
16864
|
+
body: ReadableStream<Uint8Array> | null;
|
|
16865
|
+
};
|
|
16866
|
+
res: {
|
|
16867
|
+
headers: Headers;
|
|
16868
|
+
};
|
|
16869
|
+
locale: Locales;
|
|
16870
|
+
ls: TranslationFunctions;
|
|
16871
|
+
};
|
|
16872
|
+
_input_in: {
|
|
16873
|
+
appId: string;
|
|
16874
|
+
planName: string;
|
|
16875
|
+
};
|
|
16876
|
+
_input_out: {
|
|
16877
|
+
appId: string;
|
|
16878
|
+
planName: string;
|
|
16879
|
+
};
|
|
16880
|
+
_output_in: {
|
|
16881
|
+
url: string | null;
|
|
16882
|
+
};
|
|
16883
|
+
_output_out: {
|
|
16884
|
+
url: string | null;
|
|
16885
|
+
};
|
|
16886
|
+
}, unknown>>;
|
|
16887
|
+
};
|
|
17058
16888
|
};
|
|
17059
16889
|
user: {
|
|
17060
16890
|
byId: {
|
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.
|
|
5
|
+
"version": "1.39.0-feat-custom-tech-plan.7",
|
|
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.
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-custom-tech-plan.7",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|