@secrecy/trpc-api-types 1.18.0-dev.1 → 1.18.0-dev.2
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/index.d.cts +59 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12030,6 +12030,65 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
12030
12030
|
isUpdated: boolean;
|
|
12031
12031
|
};
|
|
12032
12032
|
}, unknown>;
|
|
12033
|
+
isApplicationUser: _trpc_server.BuildProcedure<"query", {
|
|
12034
|
+
_config: _trpc_server.RootConfig<{
|
|
12035
|
+
ctx: {};
|
|
12036
|
+
meta: object;
|
|
12037
|
+
errorShape: {
|
|
12038
|
+
message: string;
|
|
12039
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
12040
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
12041
|
+
} | {
|
|
12042
|
+
data: {
|
|
12043
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
12044
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
12045
|
+
httpStatus: number;
|
|
12046
|
+
path?: string | undefined;
|
|
12047
|
+
stack?: string | undefined;
|
|
12048
|
+
};
|
|
12049
|
+
message: string;
|
|
12050
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
12051
|
+
};
|
|
12052
|
+
transformer: typeof superjson.default;
|
|
12053
|
+
}>;
|
|
12054
|
+
_meta: object;
|
|
12055
|
+
_ctx_out: {
|
|
12056
|
+
session: {
|
|
12057
|
+
appId: string;
|
|
12058
|
+
appPlanId: string | null;
|
|
12059
|
+
appFakeUserId: string | undefined;
|
|
12060
|
+
sessionId: string;
|
|
12061
|
+
accountId: string;
|
|
12062
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
12063
|
+
userId: string;
|
|
12064
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
12065
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
12066
|
+
isCare?: boolean | undefined;
|
|
12067
|
+
};
|
|
12068
|
+
req: {
|
|
12069
|
+
headers: Headers;
|
|
12070
|
+
};
|
|
12071
|
+
res: {
|
|
12072
|
+
headers: Headers;
|
|
12073
|
+
};
|
|
12074
|
+
locale: Locales;
|
|
12075
|
+
ls: TranslationFunctions;
|
|
12076
|
+
};
|
|
12077
|
+
_input_in: {
|
|
12078
|
+
appId: string;
|
|
12079
|
+
userId: string;
|
|
12080
|
+
};
|
|
12081
|
+
_input_out: {
|
|
12082
|
+
appId: string;
|
|
12083
|
+
userId: string;
|
|
12084
|
+
};
|
|
12085
|
+
_output_in: {
|
|
12086
|
+
isApplicationUser: boolean;
|
|
12087
|
+
};
|
|
12088
|
+
_output_out: {
|
|
12089
|
+
isApplicationUser: boolean;
|
|
12090
|
+
};
|
|
12091
|
+
}, unknown>;
|
|
12033
12092
|
}>;
|
|
12034
12093
|
user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
12035
12094
|
ctx: {};
|