@secrecy/trpc-api-types 1.15.0-integration-remove-database.8 → 1.15.0-integration-neon-db.1
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.ts +744 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4799,6 +4799,729 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4799
4799
|
};
|
|
4800
4800
|
}, unknown>;
|
|
4801
4801
|
}>;
|
|
4802
|
+
database: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
4803
|
+
ctx: {};
|
|
4804
|
+
meta: object;
|
|
4805
|
+
errorShape: {
|
|
4806
|
+
message: string;
|
|
4807
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4808
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
4809
|
+
} | {
|
|
4810
|
+
data: {
|
|
4811
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
4812
|
+
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";
|
|
4813
|
+
httpStatus: number;
|
|
4814
|
+
path?: string | undefined;
|
|
4815
|
+
stack?: string | undefined;
|
|
4816
|
+
};
|
|
4817
|
+
message: string;
|
|
4818
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4819
|
+
};
|
|
4820
|
+
transformer: typeof superjson.default;
|
|
4821
|
+
}>, {
|
|
4822
|
+
createBranch: _trpc_server.BuildProcedure<"mutation", {
|
|
4823
|
+
_config: _trpc_server.RootConfig<{
|
|
4824
|
+
ctx: {};
|
|
4825
|
+
meta: object;
|
|
4826
|
+
errorShape: {
|
|
4827
|
+
message: string;
|
|
4828
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4829
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
4830
|
+
} | {
|
|
4831
|
+
data: {
|
|
4832
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
4833
|
+
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";
|
|
4834
|
+
httpStatus: number;
|
|
4835
|
+
path?: string | undefined;
|
|
4836
|
+
stack?: string | undefined;
|
|
4837
|
+
};
|
|
4838
|
+
message: string;
|
|
4839
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4840
|
+
};
|
|
4841
|
+
transformer: typeof superjson.default;
|
|
4842
|
+
}>;
|
|
4843
|
+
_meta: object;
|
|
4844
|
+
_ctx_out: {
|
|
4845
|
+
session: {
|
|
4846
|
+
appId: string;
|
|
4847
|
+
appPlanId: string | null;
|
|
4848
|
+
appFakeUserId: string | undefined;
|
|
4849
|
+
sessionId: string;
|
|
4850
|
+
accountId: string;
|
|
4851
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
4852
|
+
userId: string;
|
|
4853
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
4854
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
4855
|
+
};
|
|
4856
|
+
req: {
|
|
4857
|
+
headers: Headers;
|
|
4858
|
+
};
|
|
4859
|
+
res: {
|
|
4860
|
+
headers: Headers;
|
|
4861
|
+
};
|
|
4862
|
+
locale: Locales;
|
|
4863
|
+
ls: TranslationFunctions;
|
|
4864
|
+
};
|
|
4865
|
+
_input_in: {
|
|
4866
|
+
appId?: string | undefined;
|
|
4867
|
+
} & {
|
|
4868
|
+
name: string;
|
|
4869
|
+
parentId?: string | undefined;
|
|
4870
|
+
};
|
|
4871
|
+
_input_out: {
|
|
4872
|
+
appId?: string | undefined;
|
|
4873
|
+
} & {
|
|
4874
|
+
name: string;
|
|
4875
|
+
parentId?: string | undefined;
|
|
4876
|
+
};
|
|
4877
|
+
_output_in: {
|
|
4878
|
+
id: string;
|
|
4879
|
+
name: string;
|
|
4880
|
+
currentState: "init" | "ready";
|
|
4881
|
+
isPrimary: boolean;
|
|
4882
|
+
parentId?: string | undefined;
|
|
4883
|
+
};
|
|
4884
|
+
_output_out: {
|
|
4885
|
+
id: string;
|
|
4886
|
+
name: string;
|
|
4887
|
+
currentState: "init" | "ready";
|
|
4888
|
+
isPrimary: boolean;
|
|
4889
|
+
parentId?: string | undefined;
|
|
4890
|
+
};
|
|
4891
|
+
}, unknown>;
|
|
4892
|
+
createDatabase: _trpc_server.BuildProcedure<"mutation", {
|
|
4893
|
+
_config: _trpc_server.RootConfig<{
|
|
4894
|
+
ctx: {};
|
|
4895
|
+
meta: object;
|
|
4896
|
+
errorShape: {
|
|
4897
|
+
message: string;
|
|
4898
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4899
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
4900
|
+
} | {
|
|
4901
|
+
data: {
|
|
4902
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
4903
|
+
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";
|
|
4904
|
+
httpStatus: number;
|
|
4905
|
+
path?: string | undefined;
|
|
4906
|
+
stack?: string | undefined;
|
|
4907
|
+
};
|
|
4908
|
+
message: string;
|
|
4909
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4910
|
+
};
|
|
4911
|
+
transformer: typeof superjson.default;
|
|
4912
|
+
}>;
|
|
4913
|
+
_meta: object;
|
|
4914
|
+
_ctx_out: {
|
|
4915
|
+
session: {
|
|
4916
|
+
appId: string;
|
|
4917
|
+
appPlanId: string | null;
|
|
4918
|
+
appFakeUserId: string | undefined;
|
|
4919
|
+
sessionId: string;
|
|
4920
|
+
accountId: string;
|
|
4921
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
4922
|
+
userId: string;
|
|
4923
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
4924
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
4925
|
+
};
|
|
4926
|
+
req: {
|
|
4927
|
+
headers: Headers;
|
|
4928
|
+
};
|
|
4929
|
+
res: {
|
|
4930
|
+
headers: Headers;
|
|
4931
|
+
};
|
|
4932
|
+
locale: Locales;
|
|
4933
|
+
ls: TranslationFunctions;
|
|
4934
|
+
};
|
|
4935
|
+
_input_in: {
|
|
4936
|
+
appId?: string | undefined;
|
|
4937
|
+
} & {
|
|
4938
|
+
name: string;
|
|
4939
|
+
branchId: string;
|
|
4940
|
+
};
|
|
4941
|
+
_input_out: {
|
|
4942
|
+
appId?: string | undefined;
|
|
4943
|
+
} & {
|
|
4944
|
+
name: string;
|
|
4945
|
+
branchId: string;
|
|
4946
|
+
};
|
|
4947
|
+
_output_in: {
|
|
4948
|
+
id: number;
|
|
4949
|
+
name: string;
|
|
4950
|
+
branchId: string;
|
|
4951
|
+
ownerName: string;
|
|
4952
|
+
};
|
|
4953
|
+
_output_out: {
|
|
4954
|
+
id: number;
|
|
4955
|
+
name: string;
|
|
4956
|
+
branchId: string;
|
|
4957
|
+
ownerName: string;
|
|
4958
|
+
};
|
|
4959
|
+
}, unknown>;
|
|
4960
|
+
createProject: _trpc_server.BuildProcedure<"mutation", {
|
|
4961
|
+
_config: _trpc_server.RootConfig<{
|
|
4962
|
+
ctx: {};
|
|
4963
|
+
meta: object;
|
|
4964
|
+
errorShape: {
|
|
4965
|
+
message: string;
|
|
4966
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4967
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
4968
|
+
} | {
|
|
4969
|
+
data: {
|
|
4970
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
4971
|
+
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";
|
|
4972
|
+
httpStatus: number;
|
|
4973
|
+
path?: string | undefined;
|
|
4974
|
+
stack?: string | undefined;
|
|
4975
|
+
};
|
|
4976
|
+
message: string;
|
|
4977
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4978
|
+
};
|
|
4979
|
+
transformer: typeof superjson.default;
|
|
4980
|
+
}>;
|
|
4981
|
+
_meta: object;
|
|
4982
|
+
_ctx_out: {
|
|
4983
|
+
session: {
|
|
4984
|
+
appId: string;
|
|
4985
|
+
appPlanId: string | null;
|
|
4986
|
+
appFakeUserId: string | undefined;
|
|
4987
|
+
sessionId: string;
|
|
4988
|
+
accountId: string;
|
|
4989
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
4990
|
+
userId: string;
|
|
4991
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
4992
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
4993
|
+
};
|
|
4994
|
+
req: {
|
|
4995
|
+
headers: Headers;
|
|
4996
|
+
};
|
|
4997
|
+
res: {
|
|
4998
|
+
headers: Headers;
|
|
4999
|
+
};
|
|
5000
|
+
locale: Locales;
|
|
5001
|
+
ls: TranslationFunctions;
|
|
5002
|
+
};
|
|
5003
|
+
_input_in: {
|
|
5004
|
+
appId?: string | undefined;
|
|
5005
|
+
} & {
|
|
5006
|
+
regionId?: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2" | undefined;
|
|
5007
|
+
pgVersion?: 16 | 14 | 15 | undefined;
|
|
5008
|
+
};
|
|
5009
|
+
_input_out: {
|
|
5010
|
+
appId?: string | undefined;
|
|
5011
|
+
} & {
|
|
5012
|
+
regionId: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2";
|
|
5013
|
+
pgVersion: 16 | 14 | 15;
|
|
5014
|
+
};
|
|
5015
|
+
_output_in: {
|
|
5016
|
+
isCreated: boolean;
|
|
5017
|
+
};
|
|
5018
|
+
_output_out: {
|
|
5019
|
+
isCreated: boolean;
|
|
5020
|
+
};
|
|
5021
|
+
}, unknown>;
|
|
5022
|
+
deleteBranch: _trpc_server.BuildProcedure<"mutation", {
|
|
5023
|
+
_config: _trpc_server.RootConfig<{
|
|
5024
|
+
ctx: {};
|
|
5025
|
+
meta: object;
|
|
5026
|
+
errorShape: {
|
|
5027
|
+
message: string;
|
|
5028
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5029
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5030
|
+
} | {
|
|
5031
|
+
data: {
|
|
5032
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5033
|
+
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";
|
|
5034
|
+
httpStatus: number;
|
|
5035
|
+
path?: string | undefined;
|
|
5036
|
+
stack?: string | undefined;
|
|
5037
|
+
};
|
|
5038
|
+
message: string;
|
|
5039
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5040
|
+
};
|
|
5041
|
+
transformer: typeof superjson.default;
|
|
5042
|
+
}>;
|
|
5043
|
+
_meta: object;
|
|
5044
|
+
_ctx_out: {
|
|
5045
|
+
session: {
|
|
5046
|
+
appId: string;
|
|
5047
|
+
appPlanId: string | null;
|
|
5048
|
+
appFakeUserId: string | undefined;
|
|
5049
|
+
sessionId: string;
|
|
5050
|
+
accountId: string;
|
|
5051
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5052
|
+
userId: string;
|
|
5053
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5054
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5055
|
+
};
|
|
5056
|
+
req: {
|
|
5057
|
+
headers: Headers;
|
|
5058
|
+
};
|
|
5059
|
+
res: {
|
|
5060
|
+
headers: Headers;
|
|
5061
|
+
};
|
|
5062
|
+
locale: Locales;
|
|
5063
|
+
ls: TranslationFunctions;
|
|
5064
|
+
};
|
|
5065
|
+
_input_in: {
|
|
5066
|
+
appId?: string | undefined;
|
|
5067
|
+
} & {
|
|
5068
|
+
branchId: string;
|
|
5069
|
+
};
|
|
5070
|
+
_input_out: {
|
|
5071
|
+
appId?: string | undefined;
|
|
5072
|
+
} & {
|
|
5073
|
+
branchId: string;
|
|
5074
|
+
};
|
|
5075
|
+
_output_in: {
|
|
5076
|
+
isDeleted: boolean;
|
|
5077
|
+
};
|
|
5078
|
+
_output_out: {
|
|
5079
|
+
isDeleted: boolean;
|
|
5080
|
+
};
|
|
5081
|
+
}, unknown>;
|
|
5082
|
+
deleteDatabase: _trpc_server.BuildProcedure<"mutation", {
|
|
5083
|
+
_config: _trpc_server.RootConfig<{
|
|
5084
|
+
ctx: {};
|
|
5085
|
+
meta: object;
|
|
5086
|
+
errorShape: {
|
|
5087
|
+
message: string;
|
|
5088
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5089
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5090
|
+
} | {
|
|
5091
|
+
data: {
|
|
5092
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5093
|
+
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";
|
|
5094
|
+
httpStatus: number;
|
|
5095
|
+
path?: string | undefined;
|
|
5096
|
+
stack?: string | undefined;
|
|
5097
|
+
};
|
|
5098
|
+
message: string;
|
|
5099
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5100
|
+
};
|
|
5101
|
+
transformer: typeof superjson.default;
|
|
5102
|
+
}>;
|
|
5103
|
+
_meta: object;
|
|
5104
|
+
_ctx_out: {
|
|
5105
|
+
session: {
|
|
5106
|
+
appId: string;
|
|
5107
|
+
appPlanId: string | null;
|
|
5108
|
+
appFakeUserId: string | undefined;
|
|
5109
|
+
sessionId: string;
|
|
5110
|
+
accountId: string;
|
|
5111
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5112
|
+
userId: string;
|
|
5113
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5114
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5115
|
+
};
|
|
5116
|
+
req: {
|
|
5117
|
+
headers: Headers;
|
|
5118
|
+
};
|
|
5119
|
+
res: {
|
|
5120
|
+
headers: Headers;
|
|
5121
|
+
};
|
|
5122
|
+
locale: Locales;
|
|
5123
|
+
ls: TranslationFunctions;
|
|
5124
|
+
};
|
|
5125
|
+
_input_in: {
|
|
5126
|
+
appId?: string | undefined;
|
|
5127
|
+
} & {
|
|
5128
|
+
branchId: string;
|
|
5129
|
+
databaseName: string;
|
|
5130
|
+
};
|
|
5131
|
+
_input_out: {
|
|
5132
|
+
appId?: string | undefined;
|
|
5133
|
+
} & {
|
|
5134
|
+
branchId: string;
|
|
5135
|
+
databaseName: string;
|
|
5136
|
+
};
|
|
5137
|
+
_output_in: {
|
|
5138
|
+
isDeleted: boolean;
|
|
5139
|
+
};
|
|
5140
|
+
_output_out: {
|
|
5141
|
+
isDeleted: boolean;
|
|
5142
|
+
};
|
|
5143
|
+
}, unknown>;
|
|
5144
|
+
getBranches: _trpc_server.BuildProcedure<"query", {
|
|
5145
|
+
_config: _trpc_server.RootConfig<{
|
|
5146
|
+
ctx: {};
|
|
5147
|
+
meta: object;
|
|
5148
|
+
errorShape: {
|
|
5149
|
+
message: string;
|
|
5150
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5151
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5152
|
+
} | {
|
|
5153
|
+
data: {
|
|
5154
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5155
|
+
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";
|
|
5156
|
+
httpStatus: number;
|
|
5157
|
+
path?: string | undefined;
|
|
5158
|
+
stack?: string | undefined;
|
|
5159
|
+
};
|
|
5160
|
+
message: string;
|
|
5161
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5162
|
+
};
|
|
5163
|
+
transformer: typeof superjson.default;
|
|
5164
|
+
}>;
|
|
5165
|
+
_meta: object;
|
|
5166
|
+
_ctx_out: {
|
|
5167
|
+
session: {
|
|
5168
|
+
appId: string;
|
|
5169
|
+
appPlanId: string | null;
|
|
5170
|
+
appFakeUserId: string | undefined;
|
|
5171
|
+
sessionId: string;
|
|
5172
|
+
accountId: string;
|
|
5173
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5174
|
+
userId: string;
|
|
5175
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5176
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5177
|
+
};
|
|
5178
|
+
req: {
|
|
5179
|
+
headers: Headers;
|
|
5180
|
+
};
|
|
5181
|
+
res: {
|
|
5182
|
+
headers: Headers;
|
|
5183
|
+
};
|
|
5184
|
+
locale: Locales;
|
|
5185
|
+
ls: TranslationFunctions;
|
|
5186
|
+
};
|
|
5187
|
+
_input_in: {
|
|
5188
|
+
appId?: string | undefined;
|
|
5189
|
+
} & {};
|
|
5190
|
+
_input_out: {
|
|
5191
|
+
appId?: string | undefined;
|
|
5192
|
+
} & {};
|
|
5193
|
+
_output_in: {
|
|
5194
|
+
id: string;
|
|
5195
|
+
name: string;
|
|
5196
|
+
currentState: "init" | "ready";
|
|
5197
|
+
isPrimary: boolean;
|
|
5198
|
+
parentId?: string | undefined;
|
|
5199
|
+
}[];
|
|
5200
|
+
_output_out: {
|
|
5201
|
+
id: string;
|
|
5202
|
+
name: string;
|
|
5203
|
+
currentState: "init" | "ready";
|
|
5204
|
+
isPrimary: boolean;
|
|
5205
|
+
parentId?: string | undefined;
|
|
5206
|
+
}[];
|
|
5207
|
+
}, unknown>;
|
|
5208
|
+
getConnectionUri: _trpc_server.BuildProcedure<"query", {
|
|
5209
|
+
_config: _trpc_server.RootConfig<{
|
|
5210
|
+
ctx: {};
|
|
5211
|
+
meta: object;
|
|
5212
|
+
errorShape: {
|
|
5213
|
+
message: string;
|
|
5214
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5215
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5216
|
+
} | {
|
|
5217
|
+
data: {
|
|
5218
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5219
|
+
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";
|
|
5220
|
+
httpStatus: number;
|
|
5221
|
+
path?: string | undefined;
|
|
5222
|
+
stack?: string | undefined;
|
|
5223
|
+
};
|
|
5224
|
+
message: string;
|
|
5225
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5226
|
+
};
|
|
5227
|
+
transformer: typeof superjson.default;
|
|
5228
|
+
}>;
|
|
5229
|
+
_meta: object;
|
|
5230
|
+
_ctx_out: {
|
|
5231
|
+
session: {
|
|
5232
|
+
appId: string;
|
|
5233
|
+
appPlanId: string | null;
|
|
5234
|
+
appFakeUserId: string | undefined;
|
|
5235
|
+
sessionId: string;
|
|
5236
|
+
accountId: string;
|
|
5237
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5238
|
+
userId: string;
|
|
5239
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5240
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5241
|
+
};
|
|
5242
|
+
req: {
|
|
5243
|
+
headers: Headers;
|
|
5244
|
+
};
|
|
5245
|
+
res: {
|
|
5246
|
+
headers: Headers;
|
|
5247
|
+
};
|
|
5248
|
+
locale: Locales;
|
|
5249
|
+
ls: TranslationFunctions;
|
|
5250
|
+
};
|
|
5251
|
+
_input_in: {
|
|
5252
|
+
appId?: string | undefined;
|
|
5253
|
+
} & {
|
|
5254
|
+
branchId: string;
|
|
5255
|
+
databaseName: string;
|
|
5256
|
+
};
|
|
5257
|
+
_input_out: {
|
|
5258
|
+
appId?: string | undefined;
|
|
5259
|
+
} & {
|
|
5260
|
+
branchId: string;
|
|
5261
|
+
databaseName: string;
|
|
5262
|
+
};
|
|
5263
|
+
_output_in: {
|
|
5264
|
+
uri: string;
|
|
5265
|
+
};
|
|
5266
|
+
_output_out: {
|
|
5267
|
+
uri: string;
|
|
5268
|
+
};
|
|
5269
|
+
}, unknown>;
|
|
5270
|
+
getDatabases: _trpc_server.BuildProcedure<"query", {
|
|
5271
|
+
_config: _trpc_server.RootConfig<{
|
|
5272
|
+
ctx: {};
|
|
5273
|
+
meta: object;
|
|
5274
|
+
errorShape: {
|
|
5275
|
+
message: string;
|
|
5276
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5277
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5278
|
+
} | {
|
|
5279
|
+
data: {
|
|
5280
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5281
|
+
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";
|
|
5282
|
+
httpStatus: number;
|
|
5283
|
+
path?: string | undefined;
|
|
5284
|
+
stack?: string | undefined;
|
|
5285
|
+
};
|
|
5286
|
+
message: string;
|
|
5287
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5288
|
+
};
|
|
5289
|
+
transformer: typeof superjson.default;
|
|
5290
|
+
}>;
|
|
5291
|
+
_meta: object;
|
|
5292
|
+
_ctx_out: {
|
|
5293
|
+
session: {
|
|
5294
|
+
appId: string;
|
|
5295
|
+
appPlanId: string | null;
|
|
5296
|
+
appFakeUserId: string | undefined;
|
|
5297
|
+
sessionId: string;
|
|
5298
|
+
accountId: string;
|
|
5299
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5300
|
+
userId: string;
|
|
5301
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5302
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5303
|
+
};
|
|
5304
|
+
req: {
|
|
5305
|
+
headers: Headers;
|
|
5306
|
+
};
|
|
5307
|
+
res: {
|
|
5308
|
+
headers: Headers;
|
|
5309
|
+
};
|
|
5310
|
+
locale: Locales;
|
|
5311
|
+
ls: TranslationFunctions;
|
|
5312
|
+
};
|
|
5313
|
+
_input_in: {
|
|
5314
|
+
appId?: string | undefined;
|
|
5315
|
+
} & {
|
|
5316
|
+
branchId: string;
|
|
5317
|
+
};
|
|
5318
|
+
_input_out: {
|
|
5319
|
+
appId?: string | undefined;
|
|
5320
|
+
} & {
|
|
5321
|
+
branchId: string;
|
|
5322
|
+
};
|
|
5323
|
+
_output_in: {
|
|
5324
|
+
id: number;
|
|
5325
|
+
name: string;
|
|
5326
|
+
branchId: string;
|
|
5327
|
+
ownerName: string;
|
|
5328
|
+
}[];
|
|
5329
|
+
_output_out: {
|
|
5330
|
+
id: number;
|
|
5331
|
+
name: string;
|
|
5332
|
+
branchId: string;
|
|
5333
|
+
ownerName: string;
|
|
5334
|
+
}[];
|
|
5335
|
+
}, unknown>;
|
|
5336
|
+
getMetrics: _trpc_server.BuildProcedure<"query", {
|
|
5337
|
+
_config: _trpc_server.RootConfig<{
|
|
5338
|
+
ctx: {};
|
|
5339
|
+
meta: object;
|
|
5340
|
+
errorShape: {
|
|
5341
|
+
message: string;
|
|
5342
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5343
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5344
|
+
} | {
|
|
5345
|
+
data: {
|
|
5346
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5347
|
+
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";
|
|
5348
|
+
httpStatus: number;
|
|
5349
|
+
path?: string | undefined;
|
|
5350
|
+
stack?: string | undefined;
|
|
5351
|
+
};
|
|
5352
|
+
message: string;
|
|
5353
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5354
|
+
};
|
|
5355
|
+
transformer: typeof superjson.default;
|
|
5356
|
+
}>;
|
|
5357
|
+
_meta: object;
|
|
5358
|
+
_ctx_out: {
|
|
5359
|
+
session: {
|
|
5360
|
+
appId: string;
|
|
5361
|
+
appPlanId: string | null;
|
|
5362
|
+
appFakeUserId: string | undefined;
|
|
5363
|
+
sessionId: string;
|
|
5364
|
+
accountId: string;
|
|
5365
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5366
|
+
userId: string;
|
|
5367
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5368
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5369
|
+
};
|
|
5370
|
+
req: {
|
|
5371
|
+
headers: Headers;
|
|
5372
|
+
};
|
|
5373
|
+
res: {
|
|
5374
|
+
headers: Headers;
|
|
5375
|
+
};
|
|
5376
|
+
locale: Locales;
|
|
5377
|
+
ls: TranslationFunctions;
|
|
5378
|
+
};
|
|
5379
|
+
_input_in: {
|
|
5380
|
+
appId?: string | undefined;
|
|
5381
|
+
} & {};
|
|
5382
|
+
_input_out: {
|
|
5383
|
+
appId?: string | undefined;
|
|
5384
|
+
} & {};
|
|
5385
|
+
_output_in: {
|
|
5386
|
+
activeTimeSeconds: number;
|
|
5387
|
+
computeTimeseconds: number;
|
|
5388
|
+
writtenDataBytes: number;
|
|
5389
|
+
dataTransferBytes: number;
|
|
5390
|
+
dataStorageBytesHour: number;
|
|
5391
|
+
branchLogicalSizeLimit: number;
|
|
5392
|
+
branchLogicalSizeLimitBytes: number;
|
|
5393
|
+
};
|
|
5394
|
+
_output_out: {
|
|
5395
|
+
activeTimeSeconds: number;
|
|
5396
|
+
computeTimeseconds: number;
|
|
5397
|
+
writtenDataBytes: number;
|
|
5398
|
+
dataTransferBytes: number;
|
|
5399
|
+
dataStorageBytesHour: number;
|
|
5400
|
+
branchLogicalSizeLimit: number;
|
|
5401
|
+
branchLogicalSizeLimitBytes: number;
|
|
5402
|
+
};
|
|
5403
|
+
}, unknown>;
|
|
5404
|
+
getQuotas: _trpc_server.BuildProcedure<"query", {
|
|
5405
|
+
_config: _trpc_server.RootConfig<{
|
|
5406
|
+
ctx: {};
|
|
5407
|
+
meta: object;
|
|
5408
|
+
errorShape: {
|
|
5409
|
+
message: string;
|
|
5410
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5411
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5412
|
+
} | {
|
|
5413
|
+
data: {
|
|
5414
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5415
|
+
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";
|
|
5416
|
+
httpStatus: number;
|
|
5417
|
+
path?: string | undefined;
|
|
5418
|
+
stack?: string | undefined;
|
|
5419
|
+
};
|
|
5420
|
+
message: string;
|
|
5421
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5422
|
+
};
|
|
5423
|
+
transformer: typeof superjson.default;
|
|
5424
|
+
}>;
|
|
5425
|
+
_meta: object;
|
|
5426
|
+
_ctx_out: {
|
|
5427
|
+
session: {
|
|
5428
|
+
appId: string;
|
|
5429
|
+
appPlanId: string | null;
|
|
5430
|
+
appFakeUserId: string | undefined;
|
|
5431
|
+
sessionId: string;
|
|
5432
|
+
accountId: string;
|
|
5433
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5434
|
+
userId: string;
|
|
5435
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5436
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5437
|
+
};
|
|
5438
|
+
req: {
|
|
5439
|
+
headers: Headers;
|
|
5440
|
+
};
|
|
5441
|
+
res: {
|
|
5442
|
+
headers: Headers;
|
|
5443
|
+
};
|
|
5444
|
+
locale: Locales;
|
|
5445
|
+
ls: TranslationFunctions;
|
|
5446
|
+
};
|
|
5447
|
+
_input_in: {
|
|
5448
|
+
appId?: string | undefined;
|
|
5449
|
+
} & {};
|
|
5450
|
+
_input_out: {
|
|
5451
|
+
appId?: string | undefined;
|
|
5452
|
+
} & {};
|
|
5453
|
+
_output_in: {
|
|
5454
|
+
activeTimeSeconds?: number | undefined;
|
|
5455
|
+
computeTimeseconds?: number | undefined;
|
|
5456
|
+
dataTransferBytes?: number | undefined;
|
|
5457
|
+
logicalSizeBytes?: number | undefined;
|
|
5458
|
+
writtenDataBytes?: number | undefined;
|
|
5459
|
+
};
|
|
5460
|
+
_output_out: {
|
|
5461
|
+
activeTimeSeconds?: number | undefined;
|
|
5462
|
+
computeTimeseconds?: number | undefined;
|
|
5463
|
+
dataTransferBytes?: number | undefined;
|
|
5464
|
+
logicalSizeBytes?: number | undefined;
|
|
5465
|
+
writtenDataBytes?: number | undefined;
|
|
5466
|
+
};
|
|
5467
|
+
}, unknown>;
|
|
5468
|
+
hasProject: _trpc_server.BuildProcedure<"query", {
|
|
5469
|
+
_config: _trpc_server.RootConfig<{
|
|
5470
|
+
ctx: {};
|
|
5471
|
+
meta: object;
|
|
5472
|
+
errorShape: {
|
|
5473
|
+
message: string;
|
|
5474
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5475
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5476
|
+
} | {
|
|
5477
|
+
data: {
|
|
5478
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5479
|
+
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";
|
|
5480
|
+
httpStatus: number;
|
|
5481
|
+
path?: string | undefined;
|
|
5482
|
+
stack?: string | undefined;
|
|
5483
|
+
};
|
|
5484
|
+
message: string;
|
|
5485
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5486
|
+
};
|
|
5487
|
+
transformer: typeof superjson.default;
|
|
5488
|
+
}>;
|
|
5489
|
+
_meta: object;
|
|
5490
|
+
_ctx_out: {
|
|
5491
|
+
session: {
|
|
5492
|
+
appId: string;
|
|
5493
|
+
appPlanId: string | null;
|
|
5494
|
+
appFakeUserId: string | undefined;
|
|
5495
|
+
sessionId: string;
|
|
5496
|
+
accountId: string;
|
|
5497
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5498
|
+
userId: string;
|
|
5499
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5500
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5501
|
+
};
|
|
5502
|
+
req: {
|
|
5503
|
+
headers: Headers;
|
|
5504
|
+
};
|
|
5505
|
+
res: {
|
|
5506
|
+
headers: Headers;
|
|
5507
|
+
};
|
|
5508
|
+
locale: Locales;
|
|
5509
|
+
ls: TranslationFunctions;
|
|
5510
|
+
};
|
|
5511
|
+
_input_in: {
|
|
5512
|
+
appId?: string | undefined;
|
|
5513
|
+
} & {};
|
|
5514
|
+
_input_out: {
|
|
5515
|
+
appId?: string | undefined;
|
|
5516
|
+
} & {};
|
|
5517
|
+
_output_in: {
|
|
5518
|
+
hasProject: boolean;
|
|
5519
|
+
};
|
|
5520
|
+
_output_out: {
|
|
5521
|
+
hasProject: boolean;
|
|
5522
|
+
};
|
|
5523
|
+
}, unknown>;
|
|
5524
|
+
}>;
|
|
4802
5525
|
faq: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
4803
5526
|
ctx: {};
|
|
4804
5527
|
meta: object;
|
|
@@ -5858,7 +6581,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
5858
6581
|
transformer: typeof superjson.default;
|
|
5859
6582
|
}>;
|
|
5860
6583
|
_meta: object;
|
|
5861
|
-
_ctx_out: {
|
|
6584
|
+
_ctx_out: {
|
|
6585
|
+
session: {
|
|
6586
|
+
appId: string;
|
|
6587
|
+
appPlanId: string | null;
|
|
6588
|
+
appFakeUserId: string | undefined;
|
|
6589
|
+
sessionId: string;
|
|
6590
|
+
accountId: string;
|
|
6591
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6592
|
+
userId: string;
|
|
6593
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6594
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6595
|
+
};
|
|
6596
|
+
req: {
|
|
6597
|
+
headers: Headers;
|
|
6598
|
+
};
|
|
6599
|
+
res: {
|
|
6600
|
+
headers: Headers;
|
|
6601
|
+
};
|
|
6602
|
+
locale: Locales;
|
|
6603
|
+
ls: TranslationFunctions;
|
|
6604
|
+
};
|
|
5862
6605
|
_input_in: {
|
|
5863
6606
|
subject: string;
|
|
5864
6607
|
html: string;
|