@secrecy/trpc-api-types 1.18.0-dev.1 → 1.18.0-dev.3

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.
Files changed (2) hide show
  1. package/dist/index.d.cts +59 -0
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -670,6 +670,65 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
670
670
  publicKey: string;
671
671
  };
672
672
  }, unknown>;
673
+ isApplicationUser: _trpc_server.BuildProcedure<"query", {
674
+ _config: _trpc_server.RootConfig<{
675
+ ctx: {};
676
+ meta: object;
677
+ errorShape: {
678
+ message: string;
679
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
680
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
681
+ } | {
682
+ data: {
683
+ zodError: zod.typeToFlattenedError<any, string> | null;
684
+ 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";
685
+ httpStatus: number;
686
+ path?: string | undefined;
687
+ stack?: string | undefined;
688
+ };
689
+ message: string;
690
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
691
+ };
692
+ transformer: typeof superjson.default;
693
+ }>;
694
+ _meta: object;
695
+ _ctx_out: {
696
+ session: {
697
+ appId: string;
698
+ appPlanId: string | null;
699
+ appFakeUserId: string | undefined;
700
+ sessionId: string;
701
+ accountId: string;
702
+ accountRole: _prisma_client.$Enums.AccountRole;
703
+ userId: string;
704
+ userRole: _prisma_client.$Enums.UserRole;
705
+ userPlan: _prisma_client.$Enums.PlanKind;
706
+ isCare?: boolean | undefined;
707
+ };
708
+ req: {
709
+ headers: Headers;
710
+ };
711
+ res: {
712
+ headers: Headers;
713
+ };
714
+ locale: Locales;
715
+ ls: TranslationFunctions;
716
+ };
717
+ _input_in: {
718
+ appId: string;
719
+ userId: string;
720
+ };
721
+ _input_out: {
722
+ appId: string;
723
+ userId: string;
724
+ };
725
+ _output_in: {
726
+ isApplicationUser: boolean;
727
+ };
728
+ _output_out: {
729
+ isApplicationUser: boolean;
730
+ };
731
+ }, unknown>;
673
732
  }>;
674
733
  admin: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
675
734
  ctx: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.18.0-dev.1",
3
+ "version": "1.18.0-dev.3",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"