@secrecy/lib 1.19.0 → 1.20.0
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 +84 -6
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -15984,6 +15984,80 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15984
15984
|
}[];
|
|
15985
15985
|
}, unknown>>;
|
|
15986
15986
|
};
|
|
15987
|
+
cancelSubscription: {
|
|
15988
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
15989
|
+
_config: import("@trpc/server").RootConfig<{
|
|
15990
|
+
ctx: {
|
|
15991
|
+
req: {
|
|
15992
|
+
headers: Headers;
|
|
15993
|
+
body: ReadableStream<Uint8Array> | null;
|
|
15994
|
+
};
|
|
15995
|
+
res: {
|
|
15996
|
+
headers: Headers;
|
|
15997
|
+
};
|
|
15998
|
+
session: any;
|
|
15999
|
+
locale: Locales;
|
|
16000
|
+
ls: TranslationFunctions;
|
|
16001
|
+
};
|
|
16002
|
+
meta: object;
|
|
16003
|
+
errorShape: {
|
|
16004
|
+
message: string;
|
|
16005
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16006
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
16007
|
+
} | {
|
|
16008
|
+
data: {
|
|
16009
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
16010
|
+
code: "UNAUTHORIZED" | "NOT_FOUND" | "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "FORBIDDEN" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
16011
|
+
httpStatus: number;
|
|
16012
|
+
path?: string | undefined;
|
|
16013
|
+
stack?: string | undefined;
|
|
16014
|
+
};
|
|
16015
|
+
message: string;
|
|
16016
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16017
|
+
};
|
|
16018
|
+
transformer: typeof superjson;
|
|
16019
|
+
}>;
|
|
16020
|
+
_meta: object;
|
|
16021
|
+
_ctx_out: {
|
|
16022
|
+
session: {
|
|
16023
|
+
appId: string;
|
|
16024
|
+
appPlanId: string;
|
|
16025
|
+
appFakeUserId: string | undefined;
|
|
16026
|
+
sessionId: string;
|
|
16027
|
+
accountId: string;
|
|
16028
|
+
accountInfosId: string;
|
|
16029
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
16030
|
+
userId: string;
|
|
16031
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
16032
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
16033
|
+
isCare?: boolean | undefined;
|
|
16034
|
+
};
|
|
16035
|
+
req: {
|
|
16036
|
+
headers: Headers;
|
|
16037
|
+
body: ReadableStream<Uint8Array> | null;
|
|
16038
|
+
};
|
|
16039
|
+
res: {
|
|
16040
|
+
headers: Headers;
|
|
16041
|
+
};
|
|
16042
|
+
locale: Locales;
|
|
16043
|
+
ls: TranslationFunctions;
|
|
16044
|
+
};
|
|
16045
|
+
_input_in: {
|
|
16046
|
+
appId: string;
|
|
16047
|
+
prorate: boolean;
|
|
16048
|
+
};
|
|
16049
|
+
_input_out: {
|
|
16050
|
+
appId: string;
|
|
16051
|
+
prorate: boolean;
|
|
16052
|
+
};
|
|
16053
|
+
_output_in: {
|
|
16054
|
+
isCancelled: boolean;
|
|
16055
|
+
};
|
|
16056
|
+
_output_out: {
|
|
16057
|
+
isCancelled: boolean;
|
|
16058
|
+
};
|
|
16059
|
+
}, unknown>>;
|
|
16060
|
+
};
|
|
15987
16061
|
createApplication: {
|
|
15988
16062
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
15989
16063
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -16118,11 +16192,11 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16118
16192
|
};
|
|
16119
16193
|
_input_in: {
|
|
16120
16194
|
appId: string;
|
|
16121
|
-
planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month"
|
|
16195
|
+
planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month";
|
|
16122
16196
|
};
|
|
16123
16197
|
_input_out: {
|
|
16124
16198
|
appId: string;
|
|
16125
|
-
planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month"
|
|
16199
|
+
planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month";
|
|
16126
16200
|
};
|
|
16127
16201
|
_output_in: {
|
|
16128
16202
|
url: string | null;
|
|
@@ -16862,11 +16936,11 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16862
16936
|
};
|
|
16863
16937
|
_input_in: {
|
|
16864
16938
|
appId: string;
|
|
16865
|
-
|
|
16939
|
+
userId: string;
|
|
16866
16940
|
};
|
|
16867
16941
|
_input_out: {
|
|
16868
16942
|
appId: string;
|
|
16869
|
-
|
|
16943
|
+
userId: string;
|
|
16870
16944
|
};
|
|
16871
16945
|
_output_in: {
|
|
16872
16946
|
isUpdated: boolean;
|
|
@@ -17560,8 +17634,12 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
17560
17634
|
locale: Locales;
|
|
17561
17635
|
ls: TranslationFunctions;
|
|
17562
17636
|
};
|
|
17563
|
-
_input_in: {
|
|
17564
|
-
|
|
17637
|
+
_input_in: {
|
|
17638
|
+
prorate: boolean;
|
|
17639
|
+
};
|
|
17640
|
+
_input_out: {
|
|
17641
|
+
prorate: boolean;
|
|
17642
|
+
};
|
|
17565
17643
|
_output_in: {
|
|
17566
17644
|
isCancelled: boolean;
|
|
17567
17645
|
};
|
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.
|
|
5
|
+
"version": "1.20.0",
|
|
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.24.0-feat-update-account-subscription.
|
|
77
|
+
"@secrecy/trpc-api-types": "1.24.0-feat-update-account-subscription.4",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|