@secrecy/trpc-api-types 1.9.4 → 1.9.5

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.ts +750 -37
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1890,13 +1890,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1890
1890
  id: string;
1891
1891
  };
1892
1892
  _output_in: {
1893
+ type: "received_mail";
1893
1894
  id: string;
1894
1895
  key: string;
1895
1896
  md5: string;
1896
1897
  md5Encrypted: string;
1897
1898
  totalSize: bigint;
1898
- } & ({
1899
- type: "received_mail";
1900
1899
  senderPublicKey: string;
1901
1900
  maybeParts: {
1902
1901
  md5: string;
@@ -1906,6 +1905,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1906
1905
  maybeContent: Buffer | null;
1907
1906
  } | {
1908
1907
  type: "sent_mail";
1908
+ id: string;
1909
+ key: string;
1910
+ md5: string;
1911
+ md5Encrypted: string;
1912
+ totalSize: bigint;
1909
1913
  maybeParts: {
1910
1914
  md5: string;
1911
1915
  order: number;
@@ -1914,25 +1918,34 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1914
1918
  maybeContent: Buffer | null;
1915
1919
  } | {
1916
1920
  type: "cloud";
1921
+ id: string;
1922
+ key: string;
1923
+ md5: string;
1924
+ md5Encrypted: string;
1917
1925
  parts: {
1918
1926
  md5: string;
1919
1927
  order: number;
1920
1928
  contentUrl: string;
1921
1929
  }[];
1922
1930
  publicKey: string;
1931
+ totalSize: bigint;
1923
1932
  } | {
1924
1933
  type: "lite";
1934
+ id: string;
1935
+ key: string;
1925
1936
  content: Buffer;
1937
+ md5: string;
1938
+ md5Encrypted: string;
1926
1939
  publicKey: string;
1927
- });
1940
+ totalSize: bigint;
1941
+ };
1928
1942
  _output_out: {
1943
+ type: "received_mail";
1929
1944
  id: string;
1930
1945
  key: string;
1931
1946
  md5: string;
1932
1947
  md5Encrypted: string;
1933
1948
  totalSize: bigint;
1934
- } & ({
1935
- type: "received_mail";
1936
1949
  senderPublicKey: string;
1937
1950
  maybeParts: {
1938
1951
  md5: string;
@@ -1942,6 +1955,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1942
1955
  maybeContent: Buffer | null;
1943
1956
  } | {
1944
1957
  type: "sent_mail";
1958
+ id: string;
1959
+ key: string;
1960
+ md5: string;
1961
+ md5Encrypted: string;
1962
+ totalSize: bigint;
1945
1963
  maybeParts: {
1946
1964
  md5: string;
1947
1965
  order: number;
@@ -1950,17 +1968,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1950
1968
  maybeContent: Buffer | null;
1951
1969
  } | {
1952
1970
  type: "cloud";
1971
+ id: string;
1972
+ key: string;
1973
+ md5: string;
1974
+ md5Encrypted: string;
1953
1975
  parts: {
1954
1976
  md5: string;
1955
1977
  order: number;
1956
1978
  contentUrl: string;
1957
1979
  }[];
1958
1980
  publicKey: string;
1981
+ totalSize: bigint;
1959
1982
  } | {
1960
1983
  type: "lite";
1984
+ id: string;
1985
+ key: string;
1961
1986
  content: Buffer;
1987
+ md5: string;
1988
+ md5Encrypted: string;
1962
1989
  publicKey: string;
1963
- });
1990
+ totalSize: bigint;
1991
+ };
1964
1992
  }, unknown>;
1965
1993
  fileContentByIds: _trpc_server.BuildProcedure<"query", {
1966
1994
  _config: _trpc_server.RootConfig<{
@@ -1992,13 +2020,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1992
2020
  ids: string[];
1993
2021
  };
1994
2022
  _output_in: ({
2023
+ type: "received_mail";
1995
2024
  id: string;
1996
2025
  key: string;
1997
2026
  md5: string;
1998
2027
  md5Encrypted: string;
1999
2028
  totalSize: bigint;
2000
- } & ({
2001
- type: "received_mail";
2002
2029
  senderPublicKey: string;
2003
2030
  maybeParts: {
2004
2031
  md5: string;
@@ -2008,6 +2035,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2008
2035
  maybeContent: Buffer | null;
2009
2036
  } | {
2010
2037
  type: "sent_mail";
2038
+ id: string;
2039
+ key: string;
2040
+ md5: string;
2041
+ md5Encrypted: string;
2042
+ totalSize: bigint;
2011
2043
  maybeParts: {
2012
2044
  md5: string;
2013
2045
  order: number;
@@ -2016,25 +2048,34 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2016
2048
  maybeContent: Buffer | null;
2017
2049
  } | {
2018
2050
  type: "cloud";
2051
+ id: string;
2052
+ key: string;
2053
+ md5: string;
2054
+ md5Encrypted: string;
2019
2055
  parts: {
2020
2056
  md5: string;
2021
2057
  order: number;
2022
2058
  contentUrl: string;
2023
2059
  }[];
2024
2060
  publicKey: string;
2061
+ totalSize: bigint;
2025
2062
  } | {
2026
2063
  type: "lite";
2064
+ id: string;
2065
+ key: string;
2027
2066
  content: Buffer;
2067
+ md5: string;
2068
+ md5Encrypted: string;
2028
2069
  publicKey: string;
2029
- }))[];
2070
+ totalSize: bigint;
2071
+ })[];
2030
2072
  _output_out: ({
2073
+ type: "received_mail";
2031
2074
  id: string;
2032
2075
  key: string;
2033
2076
  md5: string;
2034
2077
  md5Encrypted: string;
2035
2078
  totalSize: bigint;
2036
- } & ({
2037
- type: "received_mail";
2038
2079
  senderPublicKey: string;
2039
2080
  maybeParts: {
2040
2081
  md5: string;
@@ -2044,6 +2085,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2044
2085
  maybeContent: Buffer | null;
2045
2086
  } | {
2046
2087
  type: "sent_mail";
2088
+ id: string;
2089
+ key: string;
2090
+ md5: string;
2091
+ md5Encrypted: string;
2092
+ totalSize: bigint;
2047
2093
  maybeParts: {
2048
2094
  md5: string;
2049
2095
  order: number;
@@ -2052,17 +2098,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2052
2098
  maybeContent: Buffer | null;
2053
2099
  } | {
2054
2100
  type: "cloud";
2101
+ id: string;
2102
+ key: string;
2103
+ md5: string;
2104
+ md5Encrypted: string;
2055
2105
  parts: {
2056
2106
  md5: string;
2057
2107
  order: number;
2058
2108
  contentUrl: string;
2059
2109
  }[];
2060
2110
  publicKey: string;
2111
+ totalSize: bigint;
2061
2112
  } | {
2062
2113
  type: "lite";
2114
+ id: string;
2115
+ key: string;
2063
2116
  content: Buffer;
2117
+ md5: string;
2118
+ md5Encrypted: string;
2064
2119
  publicKey: string;
2065
- }))[];
2120
+ totalSize: bigint;
2121
+ })[];
2066
2122
  }, unknown>;
2067
2123
  fileSharedWithMe: _trpc_server.BuildProcedure<"query", {
2068
2124
  _config: _trpc_server.RootConfig<{
@@ -3090,22 +3146,22 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3090
3146
  id: string;
3091
3147
  };
3092
3148
  _output_in: {
3093
- rights: "admin" | "write" | "read";
3094
3149
  userAppUserId: string;
3095
3150
  userAppAppId: string;
3096
3151
  sharedByUserId: string;
3097
3152
  sharedByAppId: string;
3098
3153
  nodeId: string;
3154
+ rights: "admin" | "write" | "read";
3099
3155
  nameKey: string | null;
3100
3156
  isRoot: boolean;
3101
3157
  };
3102
3158
  _output_out: {
3103
- rights: "admin" | "write" | "read";
3104
3159
  userAppUserId: string;
3105
3160
  userAppAppId: string;
3106
3161
  sharedByUserId: string;
3107
3162
  sharedByAppId: string;
3108
3163
  nodeId: string;
3164
+ rights: "admin" | "write" | "read";
3109
3165
  nameKey: string | null;
3110
3166
  isRoot: boolean;
3111
3167
  };
@@ -3829,7 +3885,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3829
3885
  _ctx_out: {};
3830
3886
  _input_in: {
3831
3887
  userId: string;
3832
- rights: "admin" | "write" | "read";
3833
3888
  nodes: {
3834
3889
  id: string;
3835
3890
  files: {
@@ -3838,10 +3893,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3838
3893
  }[];
3839
3894
  nameKey: string;
3840
3895
  }[];
3896
+ rights: "admin" | "write" | "read";
3841
3897
  };
3842
3898
  _input_out: {
3843
3899
  userId: string;
3844
- rights: "admin" | "write" | "read";
3845
3900
  nodes: {
3846
3901
  id: string;
3847
3902
  files: {
@@ -3850,6 +3905,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3850
3905
  }[];
3851
3906
  nameKey: string;
3852
3907
  }[];
3908
+ rights: "admin" | "write" | "read";
3853
3909
  };
3854
3910
  _output_in: {
3855
3911
  isFinished: boolean;
@@ -4416,6 +4472,531 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4416
4472
  };
4417
4473
  transformer: typeof superjson.default;
4418
4474
  }>, {
4475
+ orm: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
4476
+ ctx: {};
4477
+ meta: object;
4478
+ errorShape: {
4479
+ message: string;
4480
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4481
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4482
+ } | {
4483
+ data: {
4484
+ zodError: zod.typeToFlattenedError<any, string> | null;
4485
+ 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";
4486
+ httpStatus: number;
4487
+ path?: string | undefined;
4488
+ stack?: string | undefined;
4489
+ };
4490
+ message: string;
4491
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4492
+ };
4493
+ transformer: typeof superjson.default;
4494
+ }>, {
4495
+ create: _trpc_server.BuildProcedure<"mutation", {
4496
+ _config: _trpc_server.RootConfig<{
4497
+ ctx: {};
4498
+ meta: object;
4499
+ errorShape: {
4500
+ message: string;
4501
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4502
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4503
+ } | {
4504
+ data: {
4505
+ zodError: zod.typeToFlattenedError<any, string> | null;
4506
+ 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";
4507
+ httpStatus: number;
4508
+ path?: string | undefined;
4509
+ stack?: string | undefined;
4510
+ };
4511
+ message: string;
4512
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4513
+ };
4514
+ transformer: typeof superjson.default;
4515
+ }>;
4516
+ _meta: object;
4517
+ _ctx_out: {
4518
+ session: {
4519
+ appId: string;
4520
+ appPlanId: string | null;
4521
+ appFakeUserId: string | undefined;
4522
+ sessionId: string;
4523
+ accountId: string;
4524
+ accountRole: _prisma_client.$Enums.AccountRole;
4525
+ userId: string;
4526
+ userRole: _prisma_client.$Enums.UserRole;
4527
+ userPlan: _prisma_client.$Enums.PlanKind;
4528
+ };
4529
+ req: {
4530
+ headers: Headers;
4531
+ };
4532
+ res: {
4533
+ headers: Headers;
4534
+ };
4535
+ locale: Locales;
4536
+ ls: TranslationFunctions;
4537
+ };
4538
+ _input_in: {
4539
+ data: Record<string, unknown>;
4540
+ appEnv: string;
4541
+ appTable: string;
4542
+ appId?: string | undefined;
4543
+ };
4544
+ _input_out: {
4545
+ data: Record<string, unknown>;
4546
+ appEnv: string;
4547
+ appTable: string;
4548
+ appId?: string | undefined;
4549
+ };
4550
+ _output_in: Record<string, unknown>;
4551
+ _output_out: Record<string, unknown>;
4552
+ }, unknown>;
4553
+ createMany: _trpc_server.BuildProcedure<"mutation", {
4554
+ _config: _trpc_server.RootConfig<{
4555
+ ctx: {};
4556
+ meta: object;
4557
+ errorShape: {
4558
+ message: string;
4559
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4560
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4561
+ } | {
4562
+ data: {
4563
+ zodError: zod.typeToFlattenedError<any, string> | null;
4564
+ 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";
4565
+ httpStatus: number;
4566
+ path?: string | undefined;
4567
+ stack?: string | undefined;
4568
+ };
4569
+ message: string;
4570
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4571
+ };
4572
+ transformer: typeof superjson.default;
4573
+ }>;
4574
+ _meta: object;
4575
+ _ctx_out: {
4576
+ session: {
4577
+ appId: string;
4578
+ appPlanId: string | null;
4579
+ appFakeUserId: string | undefined;
4580
+ sessionId: string;
4581
+ accountId: string;
4582
+ accountRole: _prisma_client.$Enums.AccountRole;
4583
+ userId: string;
4584
+ userRole: _prisma_client.$Enums.UserRole;
4585
+ userPlan: _prisma_client.$Enums.PlanKind;
4586
+ };
4587
+ req: {
4588
+ headers: Headers;
4589
+ };
4590
+ res: {
4591
+ headers: Headers;
4592
+ };
4593
+ locale: Locales;
4594
+ ls: TranslationFunctions;
4595
+ };
4596
+ _input_in: {
4597
+ data: Record<string, unknown>[];
4598
+ appEnv: string;
4599
+ appTable: string;
4600
+ appId?: string | undefined;
4601
+ };
4602
+ _input_out: {
4603
+ data: Record<string, unknown>[];
4604
+ appEnv: string;
4605
+ appTable: string;
4606
+ appId?: string | undefined;
4607
+ };
4608
+ _output_in: {
4609
+ count: number;
4610
+ };
4611
+ _output_out: {
4612
+ count: number;
4613
+ };
4614
+ }, unknown>;
4615
+ delete: _trpc_server.BuildProcedure<"mutation", {
4616
+ _config: _trpc_server.RootConfig<{
4617
+ ctx: {};
4618
+ meta: object;
4619
+ errorShape: {
4620
+ message: string;
4621
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4622
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4623
+ } | {
4624
+ data: {
4625
+ zodError: zod.typeToFlattenedError<any, string> | null;
4626
+ 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";
4627
+ httpStatus: number;
4628
+ path?: string | undefined;
4629
+ stack?: string | undefined;
4630
+ };
4631
+ message: string;
4632
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4633
+ };
4634
+ transformer: typeof superjson.default;
4635
+ }>;
4636
+ _meta: object;
4637
+ _ctx_out: {
4638
+ session: {
4639
+ appId: string;
4640
+ appPlanId: string | null;
4641
+ appFakeUserId: string | undefined;
4642
+ sessionId: string;
4643
+ accountId: string;
4644
+ accountRole: _prisma_client.$Enums.AccountRole;
4645
+ userId: string;
4646
+ userRole: _prisma_client.$Enums.UserRole;
4647
+ userPlan: _prisma_client.$Enums.PlanKind;
4648
+ };
4649
+ req: {
4650
+ headers: Headers;
4651
+ };
4652
+ res: {
4653
+ headers: Headers;
4654
+ };
4655
+ locale: Locales;
4656
+ ls: TranslationFunctions;
4657
+ };
4658
+ _input_in: {
4659
+ where: Record<string, unknown>;
4660
+ appEnv: string;
4661
+ appTable: string;
4662
+ appId?: string | undefined;
4663
+ };
4664
+ _input_out: {
4665
+ where: Record<string, unknown>;
4666
+ appEnv: string;
4667
+ appTable: string;
4668
+ appId?: string | undefined;
4669
+ };
4670
+ _output_in: {
4671
+ count: number;
4672
+ };
4673
+ _output_out: {
4674
+ count: number;
4675
+ };
4676
+ }, unknown>;
4677
+ deleteMany: _trpc_server.BuildProcedure<"mutation", {
4678
+ _config: _trpc_server.RootConfig<{
4679
+ ctx: {};
4680
+ meta: object;
4681
+ errorShape: {
4682
+ message: string;
4683
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4684
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4685
+ } | {
4686
+ data: {
4687
+ zodError: zod.typeToFlattenedError<any, string> | null;
4688
+ 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";
4689
+ httpStatus: number;
4690
+ path?: string | undefined;
4691
+ stack?: string | undefined;
4692
+ };
4693
+ message: string;
4694
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4695
+ };
4696
+ transformer: typeof superjson.default;
4697
+ }>;
4698
+ _meta: object;
4699
+ _ctx_out: {
4700
+ session: {
4701
+ appId: string;
4702
+ appPlanId: string | null;
4703
+ appFakeUserId: string | undefined;
4704
+ sessionId: string;
4705
+ accountId: string;
4706
+ accountRole: _prisma_client.$Enums.AccountRole;
4707
+ userId: string;
4708
+ userRole: _prisma_client.$Enums.UserRole;
4709
+ userPlan: _prisma_client.$Enums.PlanKind;
4710
+ };
4711
+ req: {
4712
+ headers: Headers;
4713
+ };
4714
+ res: {
4715
+ headers: Headers;
4716
+ };
4717
+ locale: Locales;
4718
+ ls: TranslationFunctions;
4719
+ };
4720
+ _input_in: {
4721
+ appEnv: string;
4722
+ appTable: string;
4723
+ appId?: string | undefined;
4724
+ where?: Record<string, unknown> | undefined;
4725
+ };
4726
+ _input_out: {
4727
+ appEnv: string;
4728
+ appTable: string;
4729
+ appId?: string | undefined;
4730
+ where?: Record<string, unknown> | undefined;
4731
+ };
4732
+ _output_in: {
4733
+ count: number;
4734
+ };
4735
+ _output_out: {
4736
+ count: number;
4737
+ };
4738
+ }, unknown>;
4739
+ findFirst: _trpc_server.BuildProcedure<"query", {
4740
+ _config: _trpc_server.RootConfig<{
4741
+ ctx: {};
4742
+ meta: object;
4743
+ errorShape: {
4744
+ message: string;
4745
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4746
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4747
+ } | {
4748
+ data: {
4749
+ zodError: zod.typeToFlattenedError<any, string> | null;
4750
+ 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";
4751
+ httpStatus: number;
4752
+ path?: string | undefined;
4753
+ stack?: string | undefined;
4754
+ };
4755
+ message: string;
4756
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4757
+ };
4758
+ transformer: typeof superjson.default;
4759
+ }>;
4760
+ _meta: object;
4761
+ _ctx_out: {
4762
+ session: {
4763
+ appId: string;
4764
+ appPlanId: string | null;
4765
+ appFakeUserId: string | undefined;
4766
+ sessionId: string;
4767
+ accountId: string;
4768
+ accountRole: _prisma_client.$Enums.AccountRole;
4769
+ userId: string;
4770
+ userRole: _prisma_client.$Enums.UserRole;
4771
+ userPlan: _prisma_client.$Enums.PlanKind;
4772
+ };
4773
+ req: {
4774
+ headers: Headers;
4775
+ };
4776
+ res: {
4777
+ headers: Headers;
4778
+ };
4779
+ locale: Locales;
4780
+ ls: TranslationFunctions;
4781
+ };
4782
+ _input_in: {
4783
+ where: Record<string, unknown>;
4784
+ appEnv: string;
4785
+ appTable: string;
4786
+ appId?: string | undefined;
4787
+ select?: Record<string, boolean | undefined> | undefined;
4788
+ };
4789
+ _input_out: {
4790
+ where: Record<string, unknown>;
4791
+ appEnv: string;
4792
+ appTable: string;
4793
+ appId?: string | undefined;
4794
+ select?: Record<string, boolean | undefined> | undefined;
4795
+ };
4796
+ _output_in: Record<string, unknown> | null;
4797
+ _output_out: Record<string, unknown> | null;
4798
+ }, unknown>;
4799
+ findMany: _trpc_server.BuildProcedure<"query", {
4800
+ _config: _trpc_server.RootConfig<{
4801
+ ctx: {};
4802
+ meta: object;
4803
+ errorShape: {
4804
+ message: string;
4805
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4806
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4807
+ } | {
4808
+ data: {
4809
+ zodError: zod.typeToFlattenedError<any, string> | null;
4810
+ 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";
4811
+ httpStatus: number;
4812
+ path?: string | undefined;
4813
+ stack?: string | undefined;
4814
+ };
4815
+ message: string;
4816
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4817
+ };
4818
+ transformer: typeof superjson.default;
4819
+ }>;
4820
+ _meta: object;
4821
+ _ctx_out: {
4822
+ session: {
4823
+ appId: string;
4824
+ appPlanId: string | null;
4825
+ appFakeUserId: string | undefined;
4826
+ sessionId: string;
4827
+ accountId: string;
4828
+ accountRole: _prisma_client.$Enums.AccountRole;
4829
+ userId: string;
4830
+ userRole: _prisma_client.$Enums.UserRole;
4831
+ userPlan: _prisma_client.$Enums.PlanKind;
4832
+ };
4833
+ req: {
4834
+ headers: Headers;
4835
+ };
4836
+ res: {
4837
+ headers: Headers;
4838
+ };
4839
+ locale: Locales;
4840
+ ls: TranslationFunctions;
4841
+ };
4842
+ _input_in: {
4843
+ appEnv: string;
4844
+ appTable: string;
4845
+ appId?: string | undefined;
4846
+ select?: Record<string, boolean | undefined> | undefined;
4847
+ where?: Record<string, unknown> | undefined;
4848
+ take?: number | undefined;
4849
+ skip?: number | undefined;
4850
+ orderBy?: Record<string, "asc" | "desc"> | undefined;
4851
+ };
4852
+ _input_out: {
4853
+ appEnv: string;
4854
+ appTable: string;
4855
+ appId?: string | undefined;
4856
+ select?: Record<string, boolean | undefined> | undefined;
4857
+ where?: Record<string, unknown> | undefined;
4858
+ take?: number | undefined;
4859
+ skip?: number | undefined;
4860
+ orderBy?: Record<string, "asc" | "desc"> | undefined;
4861
+ };
4862
+ _output_in: Record<string, unknown>[];
4863
+ _output_out: Record<string, unknown>[];
4864
+ }, unknown>;
4865
+ update: _trpc_server.BuildProcedure<"mutation", {
4866
+ _config: _trpc_server.RootConfig<{
4867
+ ctx: {};
4868
+ meta: object;
4869
+ errorShape: {
4870
+ message: string;
4871
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4872
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4873
+ } | {
4874
+ data: {
4875
+ zodError: zod.typeToFlattenedError<any, string> | null;
4876
+ 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";
4877
+ httpStatus: number;
4878
+ path?: string | undefined;
4879
+ stack?: string | undefined;
4880
+ };
4881
+ message: string;
4882
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4883
+ };
4884
+ transformer: typeof superjson.default;
4885
+ }>;
4886
+ _meta: object;
4887
+ _ctx_out: {
4888
+ session: {
4889
+ appId: string;
4890
+ appPlanId: string | null;
4891
+ appFakeUserId: string | undefined;
4892
+ sessionId: string;
4893
+ accountId: string;
4894
+ accountRole: _prisma_client.$Enums.AccountRole;
4895
+ userId: string;
4896
+ userRole: _prisma_client.$Enums.UserRole;
4897
+ userPlan: _prisma_client.$Enums.PlanKind;
4898
+ };
4899
+ req: {
4900
+ headers: Headers;
4901
+ };
4902
+ res: {
4903
+ headers: Headers;
4904
+ };
4905
+ locale: Locales;
4906
+ ls: TranslationFunctions;
4907
+ };
4908
+ _input_in: {
4909
+ where: Record<string, unknown>;
4910
+ data: Record<string, unknown>;
4911
+ appEnv: string;
4912
+ appTable: string;
4913
+ appId?: string | undefined;
4914
+ select?: Record<string, boolean | undefined> | undefined;
4915
+ };
4916
+ _input_out: {
4917
+ where: Record<string, unknown>;
4918
+ data: Record<string, unknown>;
4919
+ appEnv: string;
4920
+ appTable: string;
4921
+ appId?: string | undefined;
4922
+ select?: Record<string, boolean | undefined> | undefined;
4923
+ };
4924
+ _output_in: Record<string, unknown>;
4925
+ _output_out: Record<string, unknown>;
4926
+ }, unknown>;
4927
+ updateMany: _trpc_server.BuildProcedure<"mutation", {
4928
+ _config: _trpc_server.RootConfig<{
4929
+ ctx: {};
4930
+ meta: object;
4931
+ errorShape: {
4932
+ message: string;
4933
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4934
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4935
+ } | {
4936
+ data: {
4937
+ zodError: zod.typeToFlattenedError<any, string> | null;
4938
+ 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";
4939
+ httpStatus: number;
4940
+ path?: string | undefined;
4941
+ stack?: string | undefined;
4942
+ };
4943
+ message: string;
4944
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4945
+ };
4946
+ transformer: typeof superjson.default;
4947
+ }>;
4948
+ _meta: object;
4949
+ _ctx_out: {
4950
+ session: {
4951
+ appId: string;
4952
+ appPlanId: string | null;
4953
+ appFakeUserId: string | undefined;
4954
+ sessionId: string;
4955
+ accountId: string;
4956
+ accountRole: _prisma_client.$Enums.AccountRole;
4957
+ userId: string;
4958
+ userRole: _prisma_client.$Enums.UserRole;
4959
+ userPlan: _prisma_client.$Enums.PlanKind;
4960
+ };
4961
+ req: {
4962
+ headers: Headers;
4963
+ };
4964
+ res: {
4965
+ headers: Headers;
4966
+ };
4967
+ locale: Locales;
4968
+ ls: TranslationFunctions;
4969
+ };
4970
+ _input_in: {
4971
+ data: Record<string, unknown>;
4972
+ appEnv: string;
4973
+ appTable: string;
4974
+ appId?: string | undefined;
4975
+ select?: Record<string, boolean | undefined> | undefined;
4976
+ where?: Record<string, unknown> | undefined;
4977
+ take?: number | undefined;
4978
+ skip?: number | undefined;
4979
+ orderBy?: Record<string, "asc" | "desc"> | undefined;
4980
+ };
4981
+ _input_out: {
4982
+ data: Record<string, unknown>;
4983
+ appEnv: string;
4984
+ appTable: string;
4985
+ appId?: string | undefined;
4986
+ select?: Record<string, boolean | undefined> | undefined;
4987
+ where?: Record<string, unknown> | undefined;
4988
+ take?: number | undefined;
4989
+ skip?: number | undefined;
4990
+ orderBy?: Record<string, "asc" | "desc"> | undefined;
4991
+ };
4992
+ _output_in: {
4993
+ count: number;
4994
+ };
4995
+ _output_out: {
4996
+ count: number;
4997
+ };
4998
+ }, unknown>;
4999
+ }>;
4419
5000
  config: _trpc_server.BuildProcedure<"query", {
4420
5001
  _config: _trpc_server.RootConfig<{
4421
5002
  ctx: {};
@@ -4438,7 +5019,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4438
5019
  transformer: typeof superjson.default;
4439
5020
  }>;
4440
5021
  _meta: object;
4441
- _ctx_out: {};
5022
+ _ctx_out: {
5023
+ session: {
5024
+ appId: string;
5025
+ appPlanId: string | null;
5026
+ appFakeUserId: string | undefined;
5027
+ sessionId: string;
5028
+ accountId: string;
5029
+ accountRole: _prisma_client.$Enums.AccountRole;
5030
+ userId: string;
5031
+ userRole: _prisma_client.$Enums.UserRole;
5032
+ userPlan: _prisma_client.$Enums.PlanKind;
5033
+ };
5034
+ req: {
5035
+ headers: Headers;
5036
+ };
5037
+ res: {
5038
+ headers: Headers;
5039
+ };
5040
+ locale: Locales;
5041
+ ls: TranslationFunctions;
5042
+ };
4442
5043
  _input_in: {
4443
5044
  appId: string;
4444
5045
  appEnv: string;
@@ -4502,7 +5103,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4502
5103
  transformer: typeof superjson.default;
4503
5104
  }>;
4504
5105
  _meta: object;
4505
- _ctx_out: {};
5106
+ _ctx_out: {
5107
+ session: {
5108
+ appId: string;
5109
+ appPlanId: string | null;
5110
+ appFakeUserId: string | undefined;
5111
+ sessionId: string;
5112
+ accountId: string;
5113
+ accountRole: _prisma_client.$Enums.AccountRole;
5114
+ userId: string;
5115
+ userRole: _prisma_client.$Enums.UserRole;
5116
+ userPlan: _prisma_client.$Enums.PlanKind;
5117
+ };
5118
+ req: {
5119
+ headers: Headers;
5120
+ };
5121
+ res: {
5122
+ headers: Headers;
5123
+ };
5124
+ locale: Locales;
5125
+ ls: TranslationFunctions;
5126
+ };
4506
5127
  _input_in: {
4507
5128
  appId: string;
4508
5129
  newEnv: string;
@@ -4576,7 +5197,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4576
5197
  transformer: typeof superjson.default;
4577
5198
  }>;
4578
5199
  _meta: object;
4579
- _ctx_out: {};
5200
+ _ctx_out: {
5201
+ session: {
5202
+ appId: string;
5203
+ appPlanId: string | null;
5204
+ appFakeUserId: string | undefined;
5205
+ sessionId: string;
5206
+ accountId: string;
5207
+ accountRole: _prisma_client.$Enums.AccountRole;
5208
+ userId: string;
5209
+ userRole: _prisma_client.$Enums.UserRole;
5210
+ userPlan: _prisma_client.$Enums.PlanKind;
5211
+ };
5212
+ req: {
5213
+ headers: Headers;
5214
+ };
5215
+ res: {
5216
+ headers: Headers;
5217
+ };
5218
+ locale: Locales;
5219
+ ls: TranslationFunctions;
5220
+ };
4580
5221
  _input_in: {
4581
5222
  appId: string;
4582
5223
  appEnv: string;
@@ -4614,7 +5255,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4614
5255
  transformer: typeof superjson.default;
4615
5256
  }>;
4616
5257
  _meta: object;
4617
- _ctx_out: {};
5258
+ _ctx_out: {
5259
+ session: {
5260
+ appId: string;
5261
+ appPlanId: string | null;
5262
+ appFakeUserId: string | undefined;
5263
+ sessionId: string;
5264
+ accountId: string;
5265
+ accountRole: _prisma_client.$Enums.AccountRole;
5266
+ userId: string;
5267
+ userRole: _prisma_client.$Enums.UserRole;
5268
+ userPlan: _prisma_client.$Enums.PlanKind;
5269
+ };
5270
+ req: {
5271
+ headers: Headers;
5272
+ };
5273
+ res: {
5274
+ headers: Headers;
5275
+ };
5276
+ locale: Locales;
5277
+ ls: TranslationFunctions;
5278
+ };
4618
5279
  _input_in: {
4619
5280
  appId: string;
4620
5281
  };
@@ -4650,7 +5311,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4650
5311
  transformer: typeof superjson.default;
4651
5312
  }>;
4652
5313
  _meta: object;
4653
- _ctx_out: {};
5314
+ _ctx_out: {
5315
+ session: {
5316
+ appId: string;
5317
+ appPlanId: string | null;
5318
+ appFakeUserId: string | undefined;
5319
+ sessionId: string;
5320
+ accountId: string;
5321
+ accountRole: _prisma_client.$Enums.AccountRole;
5322
+ userId: string;
5323
+ userRole: _prisma_client.$Enums.UserRole;
5324
+ userPlan: _prisma_client.$Enums.PlanKind;
5325
+ };
5326
+ req: {
5327
+ headers: Headers;
5328
+ };
5329
+ res: {
5330
+ headers: Headers;
5331
+ };
5332
+ locale: Locales;
5333
+ ls: TranslationFunctions;
5334
+ };
4654
5335
  _input_in: {
4655
5336
  appId: string;
4656
5337
  config: (string | {
@@ -4788,7 +5469,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4788
5469
  transformer: typeof superjson.default;
4789
5470
  }>;
4790
5471
  _meta: object;
4791
- _ctx_out: {};
5472
+ _ctx_out: {
5473
+ session: {
5474
+ appId: string;
5475
+ appPlanId: string | null;
5476
+ appFakeUserId: string | undefined;
5477
+ sessionId: string;
5478
+ accountId: string;
5479
+ accountRole: _prisma_client.$Enums.AccountRole;
5480
+ userId: string;
5481
+ userRole: _prisma_client.$Enums.UserRole;
5482
+ userPlan: _prisma_client.$Enums.PlanKind;
5483
+ };
5484
+ req: {
5485
+ headers: Headers;
5486
+ };
5487
+ res: {
5488
+ headers: Headers;
5489
+ };
5490
+ locale: Locales;
5491
+ ls: TranslationFunctions;
5492
+ };
4792
5493
  _input_in: {
4793
5494
  appId: string;
4794
5495
  config: (string | {
@@ -5310,7 +6011,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5310
6011
  transformer: typeof superjson.default;
5311
6012
  }>;
5312
6013
  _meta: object;
5313
- _ctx_out: {};
6014
+ _ctx_out: {
6015
+ session: {
6016
+ appId: string;
6017
+ appPlanId: string | null;
6018
+ appFakeUserId: string | undefined;
6019
+ sessionId: string;
6020
+ accountId: string;
6021
+ accountRole: _prisma_client.$Enums.AccountRole;
6022
+ userId: string;
6023
+ userRole: _prisma_client.$Enums.UserRole;
6024
+ userPlan: _prisma_client.$Enums.PlanKind;
6025
+ };
6026
+ req: {
6027
+ headers: Headers;
6028
+ };
6029
+ res: {
6030
+ headers: Headers;
6031
+ };
6032
+ locale: Locales;
6033
+ ls: TranslationFunctions;
6034
+ };
5314
6035
  _input_in: {
5315
6036
  appId: string;
5316
6037
  config: string;
@@ -8901,15 +9622,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8901
9622
  _ctx_out: {};
8902
9623
  _input_in: {
8903
9624
  userId: string;
8904
- userRole: "user" | "admin";
9625
+ role: "developer" | "admin";
8905
9626
  appCode: string;
8906
- userRights: "admin" | "write" | "read";
8907
9627
  };
8908
9628
  _input_out: {
8909
9629
  userId: string;
8910
- userRole: "user" | "admin";
9630
+ role: "developer" | "admin";
8911
9631
  appCode: string;
8912
- userRights: "admin" | "write" | "read";
8913
9632
  };
8914
9633
  _output_in: {
8915
9634
  isAdded: boolean;
@@ -9292,7 +10011,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9292
10011
  origin: string;
9293
10012
  collaborators: {
9294
10013
  userId: string;
9295
- role: "user" | "admin";
10014
+ role: "developer" | "admin";
9296
10015
  }[];
9297
10016
  };
9298
10017
  _input_out: {
@@ -9302,7 +10021,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9302
10021
  origin: string;
9303
10022
  collaborators: {
9304
10023
  userId: string;
9305
- role: "user" | "admin";
10024
+ role: "developer" | "admin";
9306
10025
  }[];
9307
10026
  };
9308
10027
  _output_in: {
@@ -9434,7 +10153,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9434
10153
  id: string;
9435
10154
  };
9436
10155
  role: "user" | "admin";
9437
- rights: "admin" | "write" | "read";
9438
10156
  };
9439
10157
  _output_out: {
9440
10158
  developer: {
@@ -9453,7 +10171,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9453
10171
  id: string;
9454
10172
  };
9455
10173
  role: "user" | "admin";
9456
- rights: "admin" | "write" | "read";
9457
10174
  };
9458
10175
  }, unknown>;
9459
10176
  developers: _trpc_server.BuildProcedure<"query", {
@@ -9502,7 +10219,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9502
10219
  id: string;
9503
10220
  };
9504
10221
  role: "user" | "admin";
9505
- rights: "admin" | "write" | "read";
9506
10222
  }[];
9507
10223
  _output_out: {
9508
10224
  developer: {
@@ -9521,7 +10237,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9521
10237
  id: string;
9522
10238
  };
9523
10239
  role: "user" | "admin";
9524
- rights: "admin" | "write" | "read";
9525
10240
  }[];
9526
10241
  }, unknown>;
9527
10242
  renewAppCode: _trpc_server.BuildProcedure<"mutation", {
@@ -9666,14 +10381,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9666
10381
  _input_in: {
9667
10382
  developerId: string;
9668
10383
  appCode: string;
9669
- userRole?: "user" | "admin" | undefined;
9670
- userRights?: "admin" | "write" | "read" | undefined;
10384
+ role?: "developer" | "admin" | undefined;
9671
10385
  };
9672
10386
  _input_out: {
9673
10387
  developerId: string;
9674
10388
  appCode: string;
9675
- userRole?: "user" | "admin" | undefined;
9676
- userRights?: "admin" | "write" | "read" | undefined;
10389
+ role?: "developer" | "admin" | undefined;
9677
10390
  };
9678
10391
  _output_in: {
9679
10392
  isUpdated: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"