@secrecy/lib 1.19.0 → 1.21.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 +88 -62
- 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;
|
|
@@ -17060,64 +17134,12 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
17060
17134
|
locale: Locales;
|
|
17061
17135
|
ls: TranslationFunctions;
|
|
17062
17136
|
};
|
|
17063
|
-
_input_in: {
|
|
17064
|
-
|
|
17065
|
-
_output_in: {
|
|
17066
|
-
isDeleted: boolean;
|
|
17067
|
-
};
|
|
17068
|
-
_output_out: {
|
|
17069
|
-
isDeleted: boolean;
|
|
17137
|
+
_input_in: {
|
|
17138
|
+
isTemporary: boolean;
|
|
17070
17139
|
};
|
|
17071
|
-
|
|
17072
|
-
|
|
17073
|
-
deleteSelf: {
|
|
17074
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
17075
|
-
_config: import("@trpc/server").RootConfig<{
|
|
17076
|
-
ctx: {
|
|
17077
|
-
req: {
|
|
17078
|
-
headers: Headers;
|
|
17079
|
-
body: ReadableStream<Uint8Array> | null;
|
|
17080
|
-
};
|
|
17081
|
-
res: {
|
|
17082
|
-
headers: Headers;
|
|
17083
|
-
};
|
|
17084
|
-
session: any;
|
|
17085
|
-
locale: Locales;
|
|
17086
|
-
ls: TranslationFunctions;
|
|
17087
|
-
};
|
|
17088
|
-
meta: object;
|
|
17089
|
-
errorShape: {
|
|
17090
|
-
message: string;
|
|
17091
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
17092
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
17093
|
-
} | {
|
|
17094
|
-
data: {
|
|
17095
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
17096
|
-
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";
|
|
17097
|
-
httpStatus: number;
|
|
17098
|
-
path?: string | undefined;
|
|
17099
|
-
stack?: string | undefined;
|
|
17100
|
-
};
|
|
17101
|
-
message: string;
|
|
17102
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
17103
|
-
};
|
|
17104
|
-
transformer: typeof superjson;
|
|
17105
|
-
}>;
|
|
17106
|
-
_meta: object;
|
|
17107
|
-
_ctx_out: {
|
|
17108
|
-
session: SecrecySession;
|
|
17109
|
-
req: {
|
|
17110
|
-
headers: Headers;
|
|
17111
|
-
body: ReadableStream<Uint8Array> | null;
|
|
17112
|
-
};
|
|
17113
|
-
res: {
|
|
17114
|
-
headers: Headers;
|
|
17115
|
-
};
|
|
17116
|
-
locale: Locales;
|
|
17117
|
-
ls: TranslationFunctions;
|
|
17140
|
+
_input_out: {
|
|
17141
|
+
isTemporary: boolean;
|
|
17118
17142
|
};
|
|
17119
|
-
_input_in: {} | undefined;
|
|
17120
|
-
_input_out: {} | undefined;
|
|
17121
17143
|
_output_in: {
|
|
17122
17144
|
isDeleted: boolean;
|
|
17123
17145
|
};
|
|
@@ -17560,8 +17582,12 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
17560
17582
|
locale: Locales;
|
|
17561
17583
|
ls: TranslationFunctions;
|
|
17562
17584
|
};
|
|
17563
|
-
_input_in: {
|
|
17564
|
-
|
|
17585
|
+
_input_in: {
|
|
17586
|
+
prorate: boolean;
|
|
17587
|
+
};
|
|
17588
|
+
_input_out: {
|
|
17589
|
+
prorate: boolean;
|
|
17590
|
+
};
|
|
17565
17591
|
_output_in: {
|
|
17566
17592
|
isCancelled: boolean;
|
|
17567
17593
|
};
|
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.21.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.6",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|