@secrecy/trpc-api-types 1.18.0-dev.2 → 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 -59
  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: {};
@@ -12030,65 +12089,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12030
12089
  isUpdated: boolean;
12031
12090
  };
12032
12091
  }, 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>;
12092
12092
  }>;
12093
12093
  user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
12094
12094
  ctx: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.18.0-dev.2",
3
+ "version": "1.18.0-dev.3",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"