@m5kdev/frontend 0.17.0 → 0.17.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/src/modules/app/components/AppTrpcQueryProvider.d.mts +4 -4
- package/dist/src/modules/app/components/AppTrpcQueryProvider.d.mts.map +1 -1
- package/dist/src/modules/app/components/AppTrpcQueryProvider.d.ts +4 -4
- package/dist/src/modules/app/components/AppTrpcQueryProvider.d.ts.map +1 -1
- package/dist/src/modules/app/hooks/useAppTrpc.d.mts +3 -3
- package/dist/src/modules/app/hooks/useAppTrpc.d.mts.map +1 -1
- package/dist/src/modules/app/hooks/useAppTrpc.d.ts +3 -3
- package/dist/src/modules/app/hooks/useAppTrpc.d.ts.map +1 -1
- package/dist/src/modules/auth/auth.lib.d.mts +5 -5
- package/dist/src/modules/auth/auth.lib.d.ts +5 -5
- package/dist/src/modules/auth/components/AuthProvider.d.mts +1 -1
- package/dist/src/modules/auth/components/AuthProvider.d.mts.map +1 -1
- package/dist/src/modules/auth/components/AuthProvider.d.ts +1 -1
- package/dist/src/modules/auth/components/AuthProvider.d.ts.map +1 -1
- package/dist/src/modules/auth/hooks/useSession.d.mts +1 -1
- package/dist/src/modules/auth/hooks/useSession.d.ts +1 -1
- package/dist/src/modules/billing/components/BillingProvider.d.mts +1 -1
- package/dist/src/modules/billing/components/BillingProvider.d.mts.map +1 -1
- package/dist/src/modules/billing/components/BillingProvider.d.ts +1 -1
- package/dist/src/modules/billing/components/BillingProvider.d.ts.map +1 -1
- package/dist/src/modules/table/hooks/useNuqsQueryParams.d.mts +1 -4
- package/dist/src/modules/table/hooks/useNuqsQueryParams.d.mts.map +1 -1
- package/dist/src/modules/table/hooks/useNuqsQueryParams.d.ts +1 -4
- package/dist/src/modules/table/hooks/useNuqsQueryParams.d.ts.map +1 -1
- package/dist/src/modules/table/hooks/useNuqsTable.d.mts +1 -2
- package/dist/src/modules/table/hooks/useNuqsTable.d.mts.map +1 -1
- package/dist/src/modules/table/hooks/useNuqsTable.d.ts +1 -2
- package/dist/src/modules/table/hooks/useNuqsTable.d.ts.map +1 -1
- package/dist/src/modules/table/hooks/useQueryWithParams.d.mts +1 -1
- package/dist/src/modules/table/hooks/useQueryWithParams.d.mts.map +1 -1
- package/dist/src/modules/table/hooks/useQueryWithParams.d.ts +1 -1
- package/dist/src/modules/table/hooks/useQueryWithParams.d.ts.map +1 -1
- package/package.json +7 -4
- package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.2_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/@tanstack/react-table/build/lib/index.d.mts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.2_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/@tanstack/react-table/build/lib/index.d.ts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/ColumnGrouping.d.mts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/ColumnGrouping.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/ColumnGrouping.d.ts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/ColumnGrouping.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowPagination.d.mts +0 -8
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowPagination.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowPagination.d.ts +0 -8
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowPagination.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSelection.d.mts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSelection.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSelection.d.ts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSelection.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSorting.d.mts +0 -9
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSorting.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSorting.d.ts +0 -9
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/features/RowSorting.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/types.d.mts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/types.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/types.d.ts +0 -5
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.2/node_modules/@tanstack/table-core/build/lib/types.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/index.d-D4qZxQJh.d.mts +0 -26
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/index.d-D4qZxQJh.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/index.d-D4qZxQJh.d.ts +0 -26
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/index.d-D4qZxQJh.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.mts +0 -565
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.ts +0 -565
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.ts.map +0 -1
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
import { Observable } from "./index.d-D4qZxQJh.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@trpc+server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.mts
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
type MaybePromise<TType> = Promise<TType> | TType;
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
* Returns the raw input type of a procedure
|
|
11
|
-
*/
|
|
12
|
-
type GetRawInputFn = () => Promise<unknown>;
|
|
13
|
-
type ValueOf<TObj> = TObj[keyof TObj];
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/unstable-core-do-not-import/rpc/codes.d.ts
|
|
16
|
-
/**
|
|
17
|
-
* JSON-RPC 2.0 Error codes
|
|
18
|
-
*
|
|
19
|
-
* `-32000` to `-32099` are reserved for implementation-defined server-errors.
|
|
20
|
-
* For tRPC we're copying the last digits of HTTP 4XX errors.
|
|
21
|
-
*/
|
|
22
|
-
declare const TRPC_ERROR_CODES_BY_KEY: {
|
|
23
|
-
/**
|
|
24
|
-
* Invalid JSON was received by the server.
|
|
25
|
-
* An error occurred on the server while parsing the JSON text.
|
|
26
|
-
*/
|
|
27
|
-
readonly PARSE_ERROR: -32700;
|
|
28
|
-
/**
|
|
29
|
-
* The JSON sent is not a valid Request object.
|
|
30
|
-
*/
|
|
31
|
-
readonly BAD_REQUEST: -32600;
|
|
32
|
-
readonly INTERNAL_SERVER_ERROR: -32603;
|
|
33
|
-
readonly NOT_IMPLEMENTED: -32603;
|
|
34
|
-
readonly BAD_GATEWAY: -32603;
|
|
35
|
-
readonly SERVICE_UNAVAILABLE: -32603;
|
|
36
|
-
readonly GATEWAY_TIMEOUT: -32603;
|
|
37
|
-
readonly UNAUTHORIZED: -32001;
|
|
38
|
-
readonly PAYMENT_REQUIRED: -32002;
|
|
39
|
-
readonly FORBIDDEN: -32003;
|
|
40
|
-
readonly NOT_FOUND: -32004;
|
|
41
|
-
readonly METHOD_NOT_SUPPORTED: -32005;
|
|
42
|
-
readonly TIMEOUT: -32008;
|
|
43
|
-
readonly CONFLICT: -32009;
|
|
44
|
-
readonly PRECONDITION_FAILED: -32012;
|
|
45
|
-
readonly PAYLOAD_TOO_LARGE: -32013;
|
|
46
|
-
readonly UNSUPPORTED_MEDIA_TYPE: -32015;
|
|
47
|
-
readonly UNPROCESSABLE_CONTENT: -32022;
|
|
48
|
-
readonly TOO_MANY_REQUESTS: -32029;
|
|
49
|
-
readonly CLIENT_CLOSED_REQUEST: -32099;
|
|
50
|
-
};
|
|
51
|
-
type TRPC_ERROR_CODE_NUMBER = ValueOf<typeof TRPC_ERROR_CODES_BY_KEY>;
|
|
52
|
-
type TRPC_ERROR_CODE_KEY = keyof typeof TRPC_ERROR_CODES_BY_KEY;
|
|
53
|
-
/**
|
|
54
|
-
* tRPC error codes that are considered retryable
|
|
55
|
-
* With out of the box SSE, the client will reconnect when these errors are encountered
|
|
56
|
-
*/
|
|
57
|
-
declare class TRPCError extends Error {
|
|
58
|
-
readonly cause?: Error;
|
|
59
|
-
readonly code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
60
|
-
constructor(opts: {
|
|
61
|
-
message?: string;
|
|
62
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
63
|
-
cause?: unknown;
|
|
64
|
-
});
|
|
65
|
-
} //# sourceMappingURL=TRPCError.d.ts.map
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/vendor/standard-schema-v1/spec.d.ts
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @see https://github.com/standard-schema/standard-schema/blob/main/packages/spec/src/index.ts
|
|
71
|
-
*/
|
|
72
|
-
/** The Standard Schema interface. */
|
|
73
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
74
|
-
/** The Standard Schema properties. */
|
|
75
|
-
readonly '~standard': StandardSchemaV1.Props<Input, Output>;
|
|
76
|
-
}
|
|
77
|
-
declare namespace StandardSchemaV1 {
|
|
78
|
-
/** The Standard Schema properties interface. */
|
|
79
|
-
interface Props<Input = unknown, Output = Input> {
|
|
80
|
-
/** The version number of the standard. */
|
|
81
|
-
readonly version: 1;
|
|
82
|
-
/** The vendor name of the schema library. */
|
|
83
|
-
readonly vendor: string;
|
|
84
|
-
/** Validates unknown input values. */
|
|
85
|
-
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
|
|
86
|
-
/** Inferred types associated with the schema. */
|
|
87
|
-
readonly types?: Types<Input, Output> | undefined;
|
|
88
|
-
}
|
|
89
|
-
/** The result interface of the validate function. */
|
|
90
|
-
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
91
|
-
/** The result interface if validation succeeds. */
|
|
92
|
-
interface SuccessResult<Output> {
|
|
93
|
-
/** The typed output value. */
|
|
94
|
-
readonly value: Output;
|
|
95
|
-
/** The non-existent issues. */
|
|
96
|
-
readonly issues?: undefined;
|
|
97
|
-
}
|
|
98
|
-
/** The result interface if validation fails. */
|
|
99
|
-
interface FailureResult {
|
|
100
|
-
/** The issues of failed validation. */
|
|
101
|
-
readonly issues: ReadonlyArray<Issue>;
|
|
102
|
-
}
|
|
103
|
-
/** The issue interface of the failure output. */
|
|
104
|
-
interface Issue {
|
|
105
|
-
/** The error message of the issue. */
|
|
106
|
-
readonly message: string;
|
|
107
|
-
/** The path of the issue, if any. */
|
|
108
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
109
|
-
}
|
|
110
|
-
/** The path segment interface of the issue. */
|
|
111
|
-
interface PathSegment {
|
|
112
|
-
/** The key representing a path segment. */
|
|
113
|
-
readonly key: PropertyKey;
|
|
114
|
-
}
|
|
115
|
-
/** The Standard Schema types interface. */
|
|
116
|
-
interface Types<Input = unknown, Output = Input> {
|
|
117
|
-
/** The input type of the schema. */
|
|
118
|
-
readonly input: Input;
|
|
119
|
-
/** The output type of the schema. */
|
|
120
|
-
readonly output: Output;
|
|
121
|
-
}
|
|
122
|
-
/** Infers the input type of a Standard Schema. */
|
|
123
|
-
type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
|
|
124
|
-
/** Infers the output type of a Standard Schema. */
|
|
125
|
-
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
|
|
126
|
-
} //# sourceMappingURL=spec.d.ts.map
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/unstable-core-do-not-import/parser.d.ts
|
|
129
|
-
type ParserZodEsque<TInput, TParsedInput> = {
|
|
130
|
-
_input: TInput;
|
|
131
|
-
_output: TParsedInput;
|
|
132
|
-
};
|
|
133
|
-
type ParserValibotEsque<TInput, TParsedInput> = {
|
|
134
|
-
schema: {
|
|
135
|
-
_types?: {
|
|
136
|
-
input: TInput;
|
|
137
|
-
output: TParsedInput;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
type ParserArkTypeEsque<TInput, TParsedInput> = {
|
|
142
|
-
inferIn: TInput;
|
|
143
|
-
infer: TParsedInput;
|
|
144
|
-
};
|
|
145
|
-
type ParserStandardSchemaEsque<TInput, TParsedInput> = StandardSchemaV1<TInput, TParsedInput>;
|
|
146
|
-
type ParserMyZodEsque<TInput> = {
|
|
147
|
-
parse: (input: any) => TInput;
|
|
148
|
-
};
|
|
149
|
-
type ParserSuperstructEsque<TInput> = {
|
|
150
|
-
create: (input: unknown) => TInput;
|
|
151
|
-
};
|
|
152
|
-
type ParserCustomValidatorEsque<TInput> = (input: unknown) => Promise<TInput> | TInput;
|
|
153
|
-
type ParserYupEsque<TInput> = {
|
|
154
|
-
validateSync: (input: unknown) => TInput;
|
|
155
|
-
};
|
|
156
|
-
type ParserScaleEsque<TInput> = {
|
|
157
|
-
assert(value: unknown): asserts value is TInput;
|
|
158
|
-
};
|
|
159
|
-
type ParserWithoutInput<TInput> = ParserCustomValidatorEsque<TInput> | ParserMyZodEsque<TInput> | ParserScaleEsque<TInput> | ParserSuperstructEsque<TInput> | ParserYupEsque<TInput>;
|
|
160
|
-
type ParserWithInputOutput<TInput, TParsedInput> = ParserZodEsque<TInput, TParsedInput> | ParserValibotEsque<TInput, TParsedInput> | ParserArkTypeEsque<TInput, TParsedInput> | ParserStandardSchemaEsque<TInput, TParsedInput>;
|
|
161
|
-
type Parser = ParserWithInputOutput<any, any> | ParserWithoutInput<any>;
|
|
162
|
-
/**
|
|
163
|
-
* @internal
|
|
164
|
-
*/
|
|
165
|
-
interface ProcedureCallOptions<TContext> {
|
|
166
|
-
ctx: TContext;
|
|
167
|
-
getRawInput: GetRawInputFn;
|
|
168
|
-
input?: unknown;
|
|
169
|
-
path: string;
|
|
170
|
-
type: ProcedureType;
|
|
171
|
-
signal: AbortSignal | undefined;
|
|
172
|
-
} //#endregion
|
|
173
|
-
//#region src/unstable-core-do-not-import/procedure.d.ts
|
|
174
|
-
declare const procedureTypes: readonly ["query", "mutation", "subscription"];
|
|
175
|
-
/**
|
|
176
|
-
* @public
|
|
177
|
-
*/
|
|
178
|
-
type ProcedureType = (typeof procedureTypes)[number];
|
|
179
|
-
interface BuiltProcedureDef {
|
|
180
|
-
meta: unknown;
|
|
181
|
-
input: unknown;
|
|
182
|
-
output: unknown;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
188
|
-
interface Procedure<TType extends ProcedureType, TDef extends BuiltProcedureDef> {
|
|
189
|
-
_def: {
|
|
190
|
-
/**
|
|
191
|
-
* These are just types, they can't be used at runtime
|
|
192
|
-
* @internal
|
|
193
|
-
*/
|
|
194
|
-
$types: {
|
|
195
|
-
input: TDef['input'];
|
|
196
|
-
output: TDef['output'];
|
|
197
|
-
};
|
|
198
|
-
procedure: true;
|
|
199
|
-
type: TType;
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
* Meta is not inferrable on individual procedures, only on the router
|
|
203
|
-
*/
|
|
204
|
-
meta: unknown;
|
|
205
|
-
experimental_caller: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* The input parsers for the procedure
|
|
208
|
-
*/
|
|
209
|
-
inputs: Parser[];
|
|
210
|
-
};
|
|
211
|
-
meta: TDef['meta'];
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
(opts: ProcedureCallOptions<unknown>): Promise<TDef['output']>;
|
|
216
|
-
}
|
|
217
|
-
interface QueryProcedure<TDef extends BuiltProcedureDef> extends Procedure<'query', TDef> {}
|
|
218
|
-
interface MutationProcedure<TDef extends BuiltProcedureDef> extends Procedure<'mutation', TDef> {}
|
|
219
|
-
interface SubscriptionProcedure<TDef extends BuiltProcedureDef> extends Procedure<'subscription', TDef> {}
|
|
220
|
-
/**
|
|
221
|
-
* @deprecated
|
|
222
|
-
*/
|
|
223
|
-
interface LegacyObservableSubscriptionProcedure<TDef extends BuiltProcedureDef> extends SubscriptionProcedure<TDef> {
|
|
224
|
-
_observable: true;
|
|
225
|
-
}
|
|
226
|
-
type AnyQueryProcedure = QueryProcedure<any>;
|
|
227
|
-
type AnyMutationProcedure = MutationProcedure<any>;
|
|
228
|
-
type AnySubscriptionProcedure = SubscriptionProcedure<any> | LegacyObservableSubscriptionProcedure<any>;
|
|
229
|
-
type AnyProcedure = AnyQueryProcedure | AnyMutationProcedure | AnySubscriptionProcedure;
|
|
230
|
-
type inferProcedureInput<TProcedure extends AnyProcedure> = undefined extends inferProcedureParams<TProcedure>['$types']['input'] ? void | inferProcedureParams<TProcedure>['$types']['input'] : inferProcedureParams<TProcedure>['$types']['input'];
|
|
231
|
-
type inferProcedureParams<TProcedure> = TProcedure extends AnyProcedure ? TProcedure['_def'] : never;
|
|
232
|
-
type inferProcedureOutput<TProcedure> = inferProcedureParams<TProcedure>['$types']['output'];
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
interface ErrorHandlerOptions<TContext> {
|
|
237
|
-
error: TRPCError;
|
|
238
|
-
type: ProcedureType | 'unknown';
|
|
239
|
-
path: string | undefined;
|
|
240
|
-
input: unknown;
|
|
241
|
-
ctx: TContext | undefined;
|
|
242
|
-
} //#endregion
|
|
243
|
-
//#region src/unstable-core-do-not-import/http/types.d.ts
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated use `Headers` instead, this will be removed in v12
|
|
246
|
-
*/
|
|
247
|
-
//#endregion
|
|
248
|
-
//#region src/unstable-core-do-not-import/rpc/envelopes.d.ts
|
|
249
|
-
/**
|
|
250
|
-
* Error response
|
|
251
|
-
*/
|
|
252
|
-
interface TRPCErrorShape<TData extends object = object> {
|
|
253
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
254
|
-
message: string;
|
|
255
|
-
data: TData;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* JSON-RPC 2.0 Specification
|
|
259
|
-
*/
|
|
260
|
-
//# sourceMappingURL=envelopes.d.ts.map
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region src/unstable-core-do-not-import/transformer.d.ts
|
|
263
|
-
/**
|
|
264
|
-
* @public
|
|
265
|
-
*/
|
|
266
|
-
interface DataTransformer {
|
|
267
|
-
serialize: (object: any) => any;
|
|
268
|
-
deserialize: (object: any) => any;
|
|
269
|
-
}
|
|
270
|
-
interface InputDataTransformer extends DataTransformer {
|
|
271
|
-
/**
|
|
272
|
-
* This function runs **on the client** before sending the data to the server.
|
|
273
|
-
*/
|
|
274
|
-
serialize: (object: any) => any;
|
|
275
|
-
/**
|
|
276
|
-
* This function runs **on the server** to transform the data before it is passed to the resolver
|
|
277
|
-
*/
|
|
278
|
-
deserialize: (object: any) => any;
|
|
279
|
-
}
|
|
280
|
-
interface OutputDataTransformer extends DataTransformer {
|
|
281
|
-
/**
|
|
282
|
-
* This function runs **on the server** before sending the data to the client.
|
|
283
|
-
*/
|
|
284
|
-
serialize: (object: any) => any;
|
|
285
|
-
/**
|
|
286
|
-
* This function runs **only on the client** to transform the data sent from the server.
|
|
287
|
-
*/
|
|
288
|
-
deserialize: (object: any) => any;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* @public
|
|
292
|
-
*/
|
|
293
|
-
interface CombinedDataTransformer {
|
|
294
|
-
/**
|
|
295
|
-
* Specify how the data sent from the client to the server should be transformed.
|
|
296
|
-
*/
|
|
297
|
-
input: InputDataTransformer;
|
|
298
|
-
/**
|
|
299
|
-
* Specify how the data sent from the server to the client should be transformed.
|
|
300
|
-
*/
|
|
301
|
-
output: OutputDataTransformer;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* @public
|
|
305
|
-
*/
|
|
306
|
-
//# sourceMappingURL=parseTRPCMessage.d.ts.map
|
|
307
|
-
//#endregion
|
|
308
|
-
//#region src/unstable-core-do-not-import/error/formatter.d.ts
|
|
309
|
-
/**
|
|
310
|
-
* @internal
|
|
311
|
-
*/
|
|
312
|
-
type ErrorFormatter<TContext, TShape extends TRPCErrorShape> = (opts: {
|
|
313
|
-
error: TRPCError;
|
|
314
|
-
type: ProcedureType | 'unknown';
|
|
315
|
-
path: string | undefined;
|
|
316
|
-
input: unknown;
|
|
317
|
-
ctx: TContext | undefined;
|
|
318
|
-
shape: DefaultErrorShape;
|
|
319
|
-
}) => TShape;
|
|
320
|
-
/**
|
|
321
|
-
* @internal
|
|
322
|
-
*/
|
|
323
|
-
type DefaultErrorData = {
|
|
324
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
325
|
-
httpStatus: number;
|
|
326
|
-
/**
|
|
327
|
-
* Path to the procedure that threw the error
|
|
328
|
-
*/
|
|
329
|
-
path?: string;
|
|
330
|
-
/**
|
|
331
|
-
* Stack trace of the error (only in development)
|
|
332
|
-
*/
|
|
333
|
-
stack?: string;
|
|
334
|
-
};
|
|
335
|
-
/**
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
338
|
-
interface DefaultErrorShape extends TRPCErrorShape<DefaultErrorData> {
|
|
339
|
-
message: string;
|
|
340
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
341
|
-
}
|
|
342
|
-
type Serialize$2 = (value: any) => any;
|
|
343
|
-
type PathArray = readonly (string | number)[];
|
|
344
|
-
type ProducerOnError = (opts: {
|
|
345
|
-
error: unknown;
|
|
346
|
-
path: PathArray;
|
|
347
|
-
}) => void;
|
|
348
|
-
interface JSONLProducerOptions {
|
|
349
|
-
serialize?: Serialize$2;
|
|
350
|
-
data: Record<string, unknown> | unknown[];
|
|
351
|
-
onError?: ProducerOnError;
|
|
352
|
-
formatError?: (opts: {
|
|
353
|
-
error: unknown;
|
|
354
|
-
path: PathArray;
|
|
355
|
-
}) => unknown;
|
|
356
|
-
maxDepth?: number;
|
|
357
|
-
/**
|
|
358
|
-
* Interval in milliseconds to send a ping to the client to keep the connection alive
|
|
359
|
-
* This will be sent as a whitespace character
|
|
360
|
-
* @default undefined
|
|
361
|
-
*/
|
|
362
|
-
pingMs?: number;
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* JSON Lines stream producer
|
|
366
|
-
* @see https://jsonlines.org/
|
|
367
|
-
*/
|
|
368
|
-
//# sourceMappingURL=sse.types.d.ts.map
|
|
369
|
-
//#endregion
|
|
370
|
-
//#region src/unstable-core-do-not-import/stream/sse.d.ts
|
|
371
|
-
type Serialize$1 = (value: any) => any;
|
|
372
|
-
/**
|
|
373
|
-
* @internal
|
|
374
|
-
*/
|
|
375
|
-
interface SSEPingOptions {
|
|
376
|
-
/**
|
|
377
|
-
* Enable ping comments sent from the server
|
|
378
|
-
* @default false
|
|
379
|
-
*/
|
|
380
|
-
enabled: boolean;
|
|
381
|
-
/**
|
|
382
|
-
* Interval in milliseconds
|
|
383
|
-
* @default 1000
|
|
384
|
-
*/
|
|
385
|
-
intervalMs?: number;
|
|
386
|
-
}
|
|
387
|
-
interface SSEClientOptions {
|
|
388
|
-
/**
|
|
389
|
-
* Timeout and reconnect after inactivity in milliseconds
|
|
390
|
-
* @default undefined
|
|
391
|
-
*/
|
|
392
|
-
reconnectAfterInactivityMs?: number;
|
|
393
|
-
}
|
|
394
|
-
interface SSEStreamProducerOptions<TValue = unknown> {
|
|
395
|
-
serialize?: Serialize$1;
|
|
396
|
-
data: AsyncIterable<TValue>;
|
|
397
|
-
maxDepth?: number;
|
|
398
|
-
ping?: SSEPingOptions;
|
|
399
|
-
/**
|
|
400
|
-
* Maximum duration in milliseconds for the request before ending the stream
|
|
401
|
-
* @default undefined
|
|
402
|
-
*/
|
|
403
|
-
maxDurationMs?: number;
|
|
404
|
-
/**
|
|
405
|
-
* End the request immediately after data is sent
|
|
406
|
-
* Only useful for serverless runtimes that do not support streaming responses
|
|
407
|
-
* @default false
|
|
408
|
-
*/
|
|
409
|
-
emitAndEndImmediately?: boolean;
|
|
410
|
-
formatError?: (opts: {
|
|
411
|
-
error: unknown;
|
|
412
|
-
}) => unknown;
|
|
413
|
-
/**
|
|
414
|
-
* Client-specific options - these will be sent to the client as part of the first message
|
|
415
|
-
* @default {}
|
|
416
|
-
*/
|
|
417
|
-
client?: SSEClientOptions;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
*
|
|
421
|
-
* @see https://html.spec.whatwg.org/multipage/server-sent-events.html
|
|
422
|
-
*/
|
|
423
|
-
//#endregion
|
|
424
|
-
//#region src/unstable-core-do-not-import/rootConfig.d.ts
|
|
425
|
-
/**
|
|
426
|
-
* The initial generics that are used in the init function
|
|
427
|
-
* @internal
|
|
428
|
-
*/
|
|
429
|
-
interface RootTypes {
|
|
430
|
-
ctx: object;
|
|
431
|
-
meta: object;
|
|
432
|
-
errorShape: DefaultErrorShape;
|
|
433
|
-
transformer: boolean;
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* The default check to see if we're in a server
|
|
437
|
-
*/
|
|
438
|
-
/**
|
|
439
|
-
* The tRPC root config
|
|
440
|
-
* @internal
|
|
441
|
-
*/
|
|
442
|
-
interface RootConfig<TTypes extends RootTypes> {
|
|
443
|
-
/**
|
|
444
|
-
* The types that are used in the config
|
|
445
|
-
* @internal
|
|
446
|
-
*/
|
|
447
|
-
$types: TTypes;
|
|
448
|
-
/**
|
|
449
|
-
* Use a data transformer
|
|
450
|
-
* @see https://trpc.io/docs/v11/data-transformers
|
|
451
|
-
*/
|
|
452
|
-
transformer: CombinedDataTransformer;
|
|
453
|
-
/**
|
|
454
|
-
* Use custom error formatting
|
|
455
|
-
* @see https://trpc.io/docs/v11/error-formatting
|
|
456
|
-
*/
|
|
457
|
-
errorFormatter: ErrorFormatter<TTypes['ctx'], TTypes['errorShape']>;
|
|
458
|
-
/**
|
|
459
|
-
* Allow `@trpc/server` to run in non-server environments
|
|
460
|
-
* @warning **Use with caution**, this should likely mainly be used within testing.
|
|
461
|
-
* @default false
|
|
462
|
-
*/
|
|
463
|
-
allowOutsideOfServer: boolean;
|
|
464
|
-
/**
|
|
465
|
-
* Is this a server environment?
|
|
466
|
-
* @warning **Use with caution**, this should likely mainly be used within testing.
|
|
467
|
-
* @default typeof window === 'undefined' || 'Deno' in window || process.env.NODE_ENV === 'test'
|
|
468
|
-
*/
|
|
469
|
-
isServer: boolean;
|
|
470
|
-
/**
|
|
471
|
-
* Is this development?
|
|
472
|
-
* Will be used to decide if the API should return stack traces
|
|
473
|
-
* @default process.env.NODE_ENV !== 'production'
|
|
474
|
-
*/
|
|
475
|
-
isDev: boolean;
|
|
476
|
-
defaultMeta?: TTypes['meta'] extends object ? TTypes['meta'] : never;
|
|
477
|
-
/**
|
|
478
|
-
* Options for server-sent events (SSE) subscriptions
|
|
479
|
-
* @see https://trpc.io/docs/client/links/httpSubscriptionLink
|
|
480
|
-
*/
|
|
481
|
-
sse?: {
|
|
482
|
-
/**
|
|
483
|
-
* Enable server-sent events (SSE) subscriptions
|
|
484
|
-
* @default true
|
|
485
|
-
*/
|
|
486
|
-
enabled?: boolean;
|
|
487
|
-
} & Pick<SSEStreamProducerOptions, 'ping' | 'emitAndEndImmediately' | 'maxDurationMs' | 'client'>;
|
|
488
|
-
/**
|
|
489
|
-
* Options for batch stream
|
|
490
|
-
* @see https://trpc.io/docs/client/links/httpBatchStreamLink
|
|
491
|
-
*/
|
|
492
|
-
jsonl?: Pick<JSONLProducerOptions, 'pingMs'>;
|
|
493
|
-
experimental?: {};
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* @internal
|
|
497
|
-
*/
|
|
498
|
-
type CreateRootTypes<TGenerics extends RootTypes> = TGenerics;
|
|
499
|
-
type AnyRootTypes = CreateRootTypes<{
|
|
500
|
-
ctx: any;
|
|
501
|
-
meta: any;
|
|
502
|
-
errorShape: any;
|
|
503
|
-
transformer: any;
|
|
504
|
-
}>;
|
|
505
|
-
//#endregion
|
|
506
|
-
//#region src/unstable-core-do-not-import/router.d.ts
|
|
507
|
-
interface RouterRecord {
|
|
508
|
-
[key: string]: AnyProcedure | RouterRecord;
|
|
509
|
-
}
|
|
510
|
-
type DecorateProcedure<TProcedure extends AnyProcedure> = (input: inferProcedureInput<TProcedure>) => Promise<TProcedure['_def']['type'] extends 'subscription' ? TProcedure extends LegacyObservableSubscriptionProcedure<any> ? Observable<inferProcedureOutput<TProcedure>, TRPCError> : inferProcedureOutput<TProcedure> : inferProcedureOutput<TProcedure>>;
|
|
511
|
-
/**
|
|
512
|
-
* @internal
|
|
513
|
-
*/
|
|
514
|
-
type DecorateRouterRecord<TRecord extends RouterRecord> = { [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? DecorateProcedure<$Value> : $Value extends RouterRecord ? DecorateRouterRecord<$Value> : never : never };
|
|
515
|
-
/**
|
|
516
|
-
* @internal
|
|
517
|
-
*/
|
|
518
|
-
type RouterCallerErrorHandler<TContext> = (opts: ErrorHandlerOptions<TContext>) => void;
|
|
519
|
-
/**
|
|
520
|
-
* @internal
|
|
521
|
-
*/
|
|
522
|
-
type RouterCaller<TRoot extends AnyRootTypes, TRecord extends RouterRecord> = (
|
|
523
|
-
/**
|
|
524
|
-
* @note
|
|
525
|
-
* If passing a function, we recommend it's a cached function
|
|
526
|
-
* e.g. wrapped in `React.cache` to avoid unnecessary computations
|
|
527
|
-
*/
|
|
528
|
-
ctx: TRoot['ctx'] | (() => MaybePromise<TRoot['ctx']>), options?: {
|
|
529
|
-
onError?: RouterCallerErrorHandler<TRoot['ctx']>;
|
|
530
|
-
signal?: AbortSignal;
|
|
531
|
-
}) => DecorateRouterRecord<TRecord>;
|
|
532
|
-
declare const lazySymbol: unique symbol;
|
|
533
|
-
type Lazy<TAny> = (() => Promise<TAny>) & {
|
|
534
|
-
[lazySymbol]: true;
|
|
535
|
-
};
|
|
536
|
-
type LazyLoader<TAny> = {
|
|
537
|
-
load: () => Promise<void>;
|
|
538
|
-
ref: Lazy<TAny>;
|
|
539
|
-
};
|
|
540
|
-
/**
|
|
541
|
-
* Lazy load a router
|
|
542
|
-
* @see https://trpc.io/docs/server/merging-routers#lazy-load
|
|
543
|
-
*/
|
|
544
|
-
/**
|
|
545
|
-
* @internal
|
|
546
|
-
*/
|
|
547
|
-
interface RouterDef<TRoot extends AnyRootTypes, TRecord extends RouterRecord> {
|
|
548
|
-
_config: RootConfig<TRoot>;
|
|
549
|
-
router: true;
|
|
550
|
-
procedure?: never;
|
|
551
|
-
procedures: TRecord;
|
|
552
|
-
record: TRecord;
|
|
553
|
-
lazy: Record<string, LazyLoader<AnyRouter>>;
|
|
554
|
-
}
|
|
555
|
-
interface Router<TRoot extends AnyRootTypes, TRecord extends RouterRecord> {
|
|
556
|
-
_def: RouterDef<TRoot, TRecord>;
|
|
557
|
-
/**
|
|
558
|
-
* @see https://trpc.io/docs/v11/server/server-side-calls
|
|
559
|
-
*/
|
|
560
|
-
createCaller: RouterCaller<TRoot, TRecord>;
|
|
561
|
-
}
|
|
562
|
-
type AnyRouter = Router<any, any>;
|
|
563
|
-
//#endregion
|
|
564
|
-
export { AnyRouter };
|
|
565
|
-
//# sourceMappingURL=unstable-core-do-not-import.d-ClFRzVsT.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unstable-core-do-not-import.d-ClFRzVsT.d.mts","names":["Observable","inferObservableValue","Maybe","TType","Simplify","Date","K","Dict","Record","MaybePromise","Promise","FilterKeys","TObj","TFilter","TKey","Result$1","TErr","ok","value","error","Filter","Pick","Unwrap","R","Awaited","args","DeepPartial","TObject","P","DistributiveOmit","Omit","WithoutIndexSignature","Overwrite","TWith","key","ValidateShape","TActualShape","TExpectedShape","Exclude","PickFirstDefined","TPick","KeyFromValue","TValue","PropertyKey","InvertKeyValue","IntersectionError","ProtectedIntersection","GetRawInputFn","_errorSymbol","ErrorSymbol","TypeError","TMessage","_","ValueOf","coerceAsyncIterableToArray","AsyncIterable","$Inferred","inferAsyncIterableYield","T","U","TRPC_ERROR_CODES_BY_KEY","PARSE_ERROR","BAD_REQUEST","INTERNAL_SERVER_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","SERVICE_UNAVAILABLE","GATEWAY_TIMEOUT","UNAUTHORIZED","PAYMENT_REQUIRED","FORBIDDEN","NOT_FOUND","METHOD_NOT_SUPPORTED","TIMEOUT","CONFLICT","PRECONDITION_FAILED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","UNPROCESSABLE_CONTENT","TOO_MANY_REQUESTS","CLIENT_CLOSED_REQUEST","TRPC_ERROR_CODES_BY_NUMBER","TRPC_ERROR_CODE_NUMBER","TRPC_ERROR_CODE_KEY","retryableRpcCodes","getCauseFromUnknown","Error","cause","getTRPCErrorFromUnknown","TRPCError","code","constructor","message","opts","StandardSchemaV1","Input","Output","Props","Schema","Result","Types","SuccessResult","FailureResult","Issue","ReadonlyArray","PathSegment","NonNullable","version","vendor","validate","types","issues","path","input","output","InferInput","InferOutput","ParserZodEsque","TInput","TParsedInput","_input","_output","ParserValibotEsque","schema","_types","ParserArkTypeEsque","inferIn","infer","ParserStandardSchemaEsque","ParserMyZodEsque","parse","ParserSuperstructEsque","create","ParserCustomValidatorEsque","ParserYupEsque","validateSync","ParserScaleEsque","assert","ParserWithoutInput","ParserWithInputOutput","Parser","inferParser","TParser","$TIn","$TOut","$InOut","in","out","ParseFn","getParseFn","procedureParser","middlewareMarker","__brand","MiddlewareMarker","MiddlewareResultBase","marker","MiddlewareOKResult","_TContextOverride","data","MiddlewareErrorResult","MiddlewareResult","MiddlewareBuilder","$ContextOverridesOut","TContext","TMeta","TContextOverrides","TInputOut","MiddlewareFunction","unstable_pipe","fn","_middlewares","$ContextOverride","TContextOverridesIn","ProcedureType","AbortSignal","ctx","type","getRawInput","meta","signal","next","_type","AnyMiddlewareFunction","AnyMiddlewareBuilder","createMiddlewareFactory","$ContextOverrides","experimental_standaloneMiddleware","TCtx","T_1","T_2","createInputMiddleware","createOutputMiddleware","TOutput","trackedSymbol","TrackedId","TrackedEnvelope","TData","TrackedData","id","sse","event","isTrackedEnvelope","tracked","inferTrackedOutput","$Data","UnsetMarker","mergeWithoutOverrides","Partial","obj1","objs","isObject","AnyFn","isFunction","omitPrototype","obj","isAsyncIterable","run","noop","identity","it","condition","msg","sleep","ms","abortSignalsAnyPonyfill","signals","IntersectIfDefined","DefaultValue","TFallback","inferAsyncIterable","$Yield","$Return","$Next","yield","return","inferSubscriptionOutput","CallerOverride","ProcedureCallOptions","AnyProcedure","invoke","_def","ProcedureBuilderDef","ProcedureBuilderResolver","procedure","inputs","resolver","middlewares","mutation","query","subscription","caller","AnyProcedureBuilderDef","ProcedureResolverOptions","_TMeta","ProcedureResolver","TOutputParserIn","$Output","AnyProcedureBuilder","ProcedureBuilder","inferProcedureBuilderResolverOptions","TProcedureBuilder","_TInputIn","_TOutputIn","_TOutputOut","_TCaller","keyAddedByInputCallFurtherDown","$Parser","$Context","$Meta","$InputIn","$InputOut","$OutputIn","$OutputOut","TInputIn","TOutputIn","TOutputOut","TCaller","QueryProcedure","MutationProcedure","SubscriptionProcedure","LegacyObservableSubscriptionProcedure","use","unstable_concat","builder","concat","experimental_caller","createBuilder","initDef","procedureTypes","BuiltProcedureDef","Procedure","TDef","$types","_observable","AnyQueryProcedure","AnyMutationProcedure","AnySubscriptionProcedure","inferProcedureInput","TProcedure","inferProcedureParams","inferProcedureOutput","ErrorHandlerOptions","HTTPHeaders","ResponseMeta","Headers","status","headers","ResponseMetaFn","TRouter","AnyRouter","inferRouterError","TRPCResponse","inferRouterContext","TRPCRequestInfo","paths","info","errors","eagerGeneration","HTTPBaseHandlerOptions","TRequest","BaseHandlerOptions","responseMeta","TRPCAcceptHeader","TRPCRequestInfoProcedureCall","result","URL","accept","isBatchCall","calls","connectionParams","url","ResolveHTTPRequestOptionsContextFn","HTTPErrorHandlerOptions","req","HTTPErrorHandler","onError","batching","enabled","router","allowMethodOverride","allowBatching","TRPCErrorShape","JSONRPC2","TMethod","TParams","TResult","TError","RequestId","BaseEnvelope","BaseRequest","jsonrpc","method","Request","params","ResultResponse","ErrorResponse","TRPCRequest","lastEventId","TRPCResult","TRPCSuccessResponse","TRPCErrorResponse","TRPCRequestMessage","TRPCSubscriptionStopNotification","TRPCClientOutgoingRequest","TRPCClientOutgoingMessage","TRPCResultMessage","TRPCResponseMessage","TRPCReconnectNotification","TRPCClientIncomingRequest","TRPCClientIncomingMessage","TRPCConnectionParamsMessage","DataTransformer","serialize","object","deserialize","InputDataTransformer","OutputDataTransformer","CombinedDataTransformer","CombinedDataTransformerClient","DataTransformerOptions","getDataTransformer","transformer","defaultTransformer","transformTRPCResponse","TResponse","AnyRootTypes","RootConfig","config","itemOrItems","transformResultInner","response","transformResult","ReturnType","parseTRPCMessage","ErrorFormatter","TShape","DefaultErrorShape","shape","DefaultErrorData","httpStatus","stack","defaultFormatter","WebReadableStreamEsque","Uint8Array","ReadableStreamDefaultReader","getReader","NodeJSReadableStreamEsque","on","eventName","listener","CHUNK_VALUE_TYPE_PROMISE","CHUNK_VALUE_TYPE_ASYNC_ITERABLE","PROMISE_STATUS_FULFILLED","PROMISE_STATUS_REJECTED","ASYNC_ITERABLE_STATUS_RETURN","ASYNC_ITERABLE_STATUS_YIELD","ASYNC_ITERABLE_STATUS_ERROR","ChunkDefinitionKey","ChunkIndex","__chunkIndex","ChunkValueType","ChunkDefinition","chunkId","EncodedValue","PromiseChunk","chunkIndex","IterableChunk","ChunkData","isPromise","Serialize$2","Deserialize$1","PathArray","ProducerOnError","JSONLProducerOptions","formatError","maxDepth","pingMs","jsonlStreamProducer","ArrayBufferLike","ReadableStream","ConsumerOnError","jsonlStreamConsumer","THead","AbortController","Disposable","from","abortController","getOrCreate","enqueue","v","close","closed","getReaderResource","reason","isEmpty","cancelAll","EventSourceLike","TInit","Event","InitDict","Instance","EventSourceListenerLike","AnyConstructorLike","AnyConstructor","InstanceType","Parameters","ListenerOf","ConstructorParameters","withCredentials","MessageEvent","eventSourceInitDict","CLOSED","CONNECTING","OPEN","addEventListener","removeEventListener","readyState","EventOf","InitDictOf","Serialize$1","Deserialize","SSEPingOptions","intervalMs","SSEClientOptions","reconnectAfterInactivityMs","SSEStreamProducerOptions","ping","maxDurationMs","emitAndEndImmediately","client","sseStreamProducer","ConsumerStreamResultBase","TConfig","ConsumerConfig","eventSource","ConsumerStreamResultData","ConsumerStreamResultError","ConsumerStreamResultConnecting","ConsumerStreamResultTimeout","ConsumerStreamResultPing","ConsumerStreamResultConnected","options","ConsumerStreamResult","SSEStreamConsumerOptions","init","EventSource","sseStreamConsumer","sseHeaders","Connection","RootTypes","errorShape","isServerDefault","TTypes","errorFormatter","allowOutsideOfServer","isServer","isDev","defaultMeta","jsonl","experimental","CreateRootTypes","TGenerics","PartialIf","TCondition","CreateContextCallback","TFunction","createContext","RouterRecord","DecorateProcedure","DecorateRouterRecord","TRecord","$Value","RouterCallerErrorHandler","RouterCaller","TRoot","lazySymbol","Lazy","TAny","LazyLoader","load","ref","lazy","NoInfer","importRouter","RouterDef","_config","procedures","record","Router","createCaller","BuiltRouter","RouterBuilder","TIn","CreateRouterOptions","DecorateCreateRouterOptions","inferRouterRootTypes","inferRouterMeta","TRouterOptions","createRouterFactory","getProcedureAtPath","callProcedure","RouterCallerFactory","createCallerFactory","MergeRouters","TRouters","Tail","Head","mergeRouters","routerList","AnyClientTypes","InitLike","RouterLike","RootConfigLike","InferrableClientTypes","PickTypes","inferClientTypes","TInferrable","JsonPrimitive","JsonArray","JsonValue","JsonObject","IsJson","NonJsonPrimitive","Function","IsAny","JsonReturnable","IsRecord","Serialize","$T","PromiseLike","Map","Set","SerializeTuple","UndefinedToOptional","SerializeObject","toJSON","SerializeObjectKey","FilterDefinedKeys","ExactOptionalPropertyTypes","a","HasIndexSignature","HandleIndexSignature","HandleUndefined","inferTransformedProcedureOutput","inferTransformedSubscriptionOutput","GetInferenceHelpers","inferRouterInputs","inferRouterOutputs","ProxyCallbackOptions","ProxyCallback","createRecursiveProxy","TFaux","callback","createFlatProxy","getErrorShape","GetRequestInfoOptions","URLSearchParams","searchParams","getRequestInfo","UtilityParser","FileLike","Blob","name","OctetInput","octetInputParser","formDataToObject","FormData","formData","JSONRPC2_TO_HTTP_CODE","HTTP_CODE_TO_JSONRPC2","getStatusCodeFromKey","getStatusKeyFromCode","getHTTPStatusCode","json","getHTTPStatusCodeFromError","isAbortError","DOMException","throwAbortError","parseConnectionParamsFromUnknown","parsed","parseConnectionParamsFromString","str","ResolveHTTPRequestOptions","resolveResponse","Response","inferErrorFormatterShape","RuntimeConfigOptions","ContextCallback","TRPCRootObject","TOptions","$Root","middleware","TRPCBuilder","TNewContext","TNewMeta","context","initTRPC","createDeferred","promise","resolve","reject","Deferred","makeResource","thing","dispose","makeAsyncResource","AsyncDisposable","iteratorResource","TYield","TReturn","TNext","AsyncIterator","iterable","withMaxDuration","AsyncGenerator","takeWithGrace","count","gracePeriodMs","StandardSchemaV1Error","SubscribedPromise","unsubscribe","ProxyPromise","TResult1","TResult2","subscribe","then","onfulfilled","onrejected","catch","finally","onfinally","PromiseExecutor","PromiseWithResolvers","Unpromise","TPromise","PromiseSettledResult","Symbol","toStringTag","subscribers","settlement","executor","proxy","createSubscribablePromise","getSubscribablePromise","any","values","race","raceReferences","promises"],"sources":["../../../../../../../../../../node_modules/.pnpm/@trpc+server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.mts"],"x_google_ignoreList":[0],"mappings":";;;AA0GwB;;;AAAA,KAjFnBS,YAAAA,UAAsBC,OAAAA,CAAQP,KAAAA,IAASA,KAAAA;;;;;KA6EvC4C,aAAAA,SAAsBrC,OAAAA;AAAAA,KAMtB2C,OAAAA,SAAgBzC,IAAAA,OAAWA,IAAA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