@secrecy/lib 1.39.0-feat-custom-tech-plan.6 → 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.
@@ -15993,80 +15993,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
15993
15993
  }[];
15994
15994
  }, unknown>>;
15995
15995
  };
15996
- cancelSubscription: {
15997
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15998
- _config: import("@trpc/server").RootConfig<{
15999
- ctx: {
16000
- req: {
16001
- headers: Headers;
16002
- body: ReadableStream<Uint8Array> | null;
16003
- };
16004
- res: {
16005
- headers: Headers;
16006
- };
16007
- session: SecrecySession | null;
16008
- locale: Locales;
16009
- ls: TranslationFunctions;
16010
- };
16011
- meta: object;
16012
- errorShape: {
16013
- message: string;
16014
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16015
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
16016
- } | {
16017
- data: {
16018
- zodError: import("zod").typeToFlattenedError<any, string> | null;
16019
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
16020
- httpStatus: number;
16021
- path?: string;
16022
- stack?: string;
16023
- };
16024
- message: string;
16025
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16026
- };
16027
- transformer: typeof superjson;
16028
- }>;
16029
- _meta: object;
16030
- _ctx_out: {
16031
- session: {
16032
- appId: string;
16033
- appPlanId: string;
16034
- appFakeUserId: string | undefined;
16035
- sessionId: string;
16036
- accountId: string;
16037
- accountInfosId: string;
16038
- accountRole: _prisma_client.AccountRole;
16039
- userId: string;
16040
- userRole: _prisma_client.UserRole;
16041
- userPlan: _prisma_client.PlanKind;
16042
- isCare?: boolean;
16043
- };
16044
- req: {
16045
- headers: Headers;
16046
- body: ReadableStream<Uint8Array> | null;
16047
- };
16048
- res: {
16049
- headers: Headers;
16050
- };
16051
- locale: Locales;
16052
- ls: TranslationFunctions;
16053
- };
16054
- _input_in: {
16055
- appId: string;
16056
- prorate: boolean;
16057
- };
16058
- _input_out: {
16059
- appId: string;
16060
- prorate: boolean;
16061
- };
16062
- _output_in: {
16063
- isCancelled: boolean;
16064
- };
16065
- _output_out: {
16066
- isCancelled: boolean;
16067
- };
16068
- }, unknown>>;
16069
- };
16070
15996
  createApplication: {
16071
15997
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16072
15998
  _config: import("@trpc/server").RootConfig<{
@@ -16141,80 +16067,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16141
16067
  };
16142
16068
  }, unknown>>;
16143
16069
  };
16144
- createSubscription: {
16145
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16146
- _config: import("@trpc/server").RootConfig<{
16147
- ctx: {
16148
- req: {
16149
- headers: Headers;
16150
- body: ReadableStream<Uint8Array> | null;
16151
- };
16152
- res: {
16153
- headers: Headers;
16154
- };
16155
- session: SecrecySession | null;
16156
- locale: Locales;
16157
- ls: TranslationFunctions;
16158
- };
16159
- meta: object;
16160
- errorShape: {
16161
- message: string;
16162
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16163
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
16164
- } | {
16165
- data: {
16166
- zodError: import("zod").typeToFlattenedError<any, string> | null;
16167
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
16168
- httpStatus: number;
16169
- path?: string;
16170
- stack?: string;
16171
- };
16172
- message: string;
16173
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16174
- };
16175
- transformer: typeof superjson;
16176
- }>;
16177
- _meta: object;
16178
- _ctx_out: {
16179
- session: {
16180
- appId: string;
16181
- appPlanId: string;
16182
- appFakeUserId: string | undefined;
16183
- sessionId: string;
16184
- accountId: string;
16185
- accountInfosId: string;
16186
- accountRole: _prisma_client.AccountRole;
16187
- userId: string;
16188
- userRole: _prisma_client.UserRole;
16189
- userPlan: _prisma_client.PlanKind;
16190
- isCare?: boolean;
16191
- };
16192
- req: {
16193
- headers: Headers;
16194
- body: ReadableStream<Uint8Array> | null;
16195
- };
16196
- res: {
16197
- headers: Headers;
16198
- };
16199
- locale: Locales;
16200
- ls: TranslationFunctions;
16201
- };
16202
- _input_in: {
16203
- appId: string;
16204
- planName: string;
16205
- };
16206
- _input_out: {
16207
- appId: string;
16208
- planName: string;
16209
- };
16210
- _output_in: {
16211
- url: string | null;
16212
- };
16213
- _output_out: {
16214
- url: string | null;
16215
- };
16216
- }, unknown>>;
16217
- };
16218
16070
  deleteApplication: {
16219
16071
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16220
16072
  _config: import("@trpc/server").RootConfig<{
@@ -16959,6 +16811,80 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16959
16811
  };
16960
16812
  }, unknown>>;
16961
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
+ };
16962
16888
  };
16963
16889
  user: {
16964
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.6",
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.6",
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",