@trpc/server 11.18.1-canary.6 → 11.19.0
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/adapters/aws-lambda/index.cjs +16 -26
- package/dist/adapters/aws-lambda/index.d.cts +6 -16
- package/dist/adapters/aws-lambda/index.d.cts.map +1 -1
- package/dist/adapters/aws-lambda/index.d.mts +6 -16
- package/dist/adapters/aws-lambda/index.d.mts.map +1 -1
- package/dist/adapters/aws-lambda/index.mjs +13 -23
- package/dist/adapters/aws-lambda/index.mjs.map +1 -1
- package/dist/adapters/express.cjs +7 -16
- package/dist/adapters/express.d.cts +4 -11
- package/dist/adapters/express.d.cts.map +1 -1
- package/dist/adapters/express.d.mts +4 -11
- package/dist/adapters/express.d.mts.map +1 -1
- package/dist/adapters/express.mjs +6 -15
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/fastify/index.cjs +11 -24
- package/dist/adapters/fastify/index.d.cts +7 -14
- package/dist/adapters/fastify/index.d.cts.map +1 -1
- package/dist/adapters/fastify/index.d.mts +7 -14
- package/dist/adapters/fastify/index.d.mts.map +1 -1
- package/dist/adapters/fastify/index.mjs +10 -23
- package/dist/adapters/fastify/index.mjs.map +1 -1
- package/dist/adapters/fetch/index.cjs +7 -12
- package/dist/adapters/fetch/index.d.cts +7 -15
- package/dist/adapters/fetch/index.d.cts.map +1 -1
- package/dist/adapters/fetch/index.d.mts +7 -15
- package/dist/adapters/fetch/index.d.mts.map +1 -1
- package/dist/adapters/fetch/index.mjs +6 -11
- package/dist/adapters/fetch/index.mjs.map +1 -1
- package/dist/adapters/next-app-dir.cjs +13 -3145
- package/dist/adapters/next-app-dir.d.cts +3 -12
- package/dist/adapters/next-app-dir.d.cts.map +1 -1
- package/dist/adapters/next-app-dir.d.mts +3 -12
- package/dist/adapters/next-app-dir.d.mts.map +1 -1
- package/dist/adapters/next-app-dir.mjs +31 -3165
- package/dist/adapters/next-app-dir.mjs.map +1 -1
- package/dist/adapters/next.cjs +8 -16
- package/dist/adapters/next.d.cts +5 -15
- package/dist/adapters/next.d.cts.map +1 -1
- package/dist/adapters/next.d.mts +5 -15
- package/dist/adapters/next.d.mts.map +1 -1
- package/dist/adapters/next.mjs +7 -15
- package/dist/adapters/next.mjs.map +1 -1
- package/dist/adapters/node-http/index.cjs +3 -12
- package/dist/adapters/node-http/index.d.cts +1 -4
- package/dist/adapters/node-http/index.d.mts +1 -4
- package/dist/adapters/node-http/index.mjs +2 -12
- package/dist/adapters/standalone.cjs +21 -21
- package/dist/adapters/standalone.d.cts +9 -14
- package/dist/adapters/standalone.d.cts.map +1 -1
- package/dist/adapters/standalone.d.mts +9 -14
- package/dist/adapters/standalone.d.mts.map +1 -1
- package/dist/adapters/standalone.mjs +17 -19
- package/dist/adapters/standalone.mjs.map +1 -1
- package/dist/adapters/ws.cjs +3 -15
- package/dist/adapters/ws.d.cts +12 -17
- package/dist/adapters/ws.d.cts.map +1 -1
- package/dist/adapters/ws.d.mts +12 -17
- package/dist/adapters/ws.d.mts.map +1 -1
- package/dist/adapters/ws.mjs +2 -15
- package/dist/{codes-BfZsPdy-.cjs → codes-C6ZIq69A.cjs} +78 -74
- package/dist/{codes-DagpWZLc.mjs → codes-D5Ya6_Bi.mjs} +10 -4
- package/dist/codes-D5Ya6_Bi.mjs.map +1 -0
- package/dist/{contentTypeParsers-iAFF_pJG.cjs → contentTypeParsers-DUzXRHT1.cjs} +6 -8
- package/dist/{contentTypeParsers-SN4WL9ze.mjs → contentTypeParsers-KFMy_fwz.mjs} +3 -3
- package/dist/contentTypeParsers-KFMy_fwz.mjs.map +1 -0
- package/dist/getErrorShape-B0JBUs-i.mjs +209 -0
- package/dist/getErrorShape-B0JBUs-i.mjs.map +1 -0
- package/dist/getErrorShape-DeIapApr.cjs +272 -0
- package/dist/http.cjs +5 -9
- package/dist/http.d.cts +2 -3
- package/dist/http.d.mts +2 -3
- package/dist/http.mjs +4 -9
- package/dist/{index.d-DhhodpGb.d.mts → index-BHatz_Pu.d.cts} +3 -8
- package/dist/index-BHatz_Pu.d.cts.map +1 -0
- package/dist/{index.d-BiUz7kM_.d.cts → index-BMimGNYb.d.cts} +2 -5
- package/dist/index-BMimGNYb.d.cts.map +1 -0
- package/dist/{index.d-D4qZxQJh.d.mts → index-BMimGNYb.d.mts} +2 -5
- package/dist/index-BMimGNYb.d.mts.map +1 -0
- package/dist/{index.d-fBAdSX6g.d.cts → index-_jAhoJQ7.d.mts} +3 -8
- package/dist/index-_jAhoJQ7.d.mts.map +1 -0
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +10 -4
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +10 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -6
- package/dist/{initTRPC-BRf4imah.mjs → initTRPC-B259os3T.mjs} +85 -83
- package/dist/initTRPC-B259os3T.mjs.map +1 -0
- package/dist/{initTRPC-_cqIfGlH.cjs → initTRPC-B7UdX-c3.cjs} +133 -132
- package/dist/{node-http-n0vBVXjb.mjs → node-http-BUlb5EdB.mjs} +29 -26
- package/dist/node-http-BUlb5EdB.mjs.map +1 -0
- package/dist/{node-http-CSXWJkwC.cjs → node-http-CikCqjt6.cjs} +48 -46
- package/dist/observable/index.cjs +4 -4
- package/dist/observable/index.d.cts +2 -2
- package/dist/observable/index.d.mts +2 -2
- package/dist/observable/index.mjs +3 -4
- package/dist/{observable-B1Nk6r1H.cjs → observable-CIyO2eSm.cjs} +28 -32
- package/dist/{observable-CUiPknO-.mjs → observable-CSprJVOf.mjs} +6 -10
- package/dist/observable-CSprJVOf.mjs.map +1 -0
- package/dist/{observable-BVzLuBs6.cjs → observable-D8mqXlHG.cjs} +34 -39
- package/dist/{observable-UMO3vUa_.mjs → observable-DwUFSuKv.mjs} +10 -12
- package/dist/observable-DwUFSuKv.mjs.map +1 -0
- package/dist/{parseTRPCMessage-7Ltmq-Fb.cjs → parseTRPCMessage-BxAIUx49.cjs} +14 -18
- package/dist/{parseTRPCMessage-CTow-umk.mjs → parseTRPCMessage-MJWDg1vX.mjs} +6 -9
- package/dist/parseTRPCMessage-MJWDg1vX.mjs.map +1 -0
- package/dist/{resolveResponse-Djb7nJqb.cjs → resolveResponse-DLpzHrPG.cjs} +505 -583
- package/dist/{resolveResponse-C7cFScHo.mjs → resolveResponse-JtMyT9TQ.mjs} +412 -489
- package/dist/resolveResponse-JtMyT9TQ.mjs.map +1 -0
- package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/dist/rpc.cjs +4 -4
- package/dist/rpc.d.cts +2 -3
- package/dist/rpc.d.mts +2 -3
- package/dist/rpc.mjs +3 -4
- package/dist/shared.cjs +3 -4
- package/dist/shared.d.cts +2 -4
- package/dist/shared.d.mts +2 -4
- package/dist/shared.mjs +2 -4
- package/dist/{tracked-DFxm8M2u.cjs → tracked-BQJb0ANk.cjs} +125 -142
- package/dist/{tracked-DWInO6EQ.mjs → tracked-D4jU_Hb3.mjs} +42 -58
- package/dist/tracked-D4jU_Hb3.mjs.map +1 -0
- package/dist/{unstable-core-do-not-import.d-BdVSvUCr.d.mts → unstable-core-do-not-import-B9ZnrQAU.d.cts} +37 -69
- package/dist/unstable-core-do-not-import-B9ZnrQAU.d.cts.map +1 -0
- package/dist/{unstable-core-do-not-import.d-Dh9CT5RO.d.cts → unstable-core-do-not-import-BK_OKrtM.d.mts} +37 -69
- package/dist/unstable-core-do-not-import-BK_OKrtM.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import.cjs +33 -12
- package/dist/unstable-core-do-not-import.d.cts +2 -3
- package/dist/unstable-core-do-not-import.d.mts +2 -3
- package/dist/unstable-core-do-not-import.mjs +32 -10
- package/dist/unstable-core-do-not-import.mjs.map +1 -0
- package/dist/{ws-Cq69JO4d.cjs → ws-BMSSVFiW.cjs} +59 -65
- package/dist/{ws-DyeWX-EY.mjs → ws-C7ZOJJeA.mjs} +41 -46
- package/dist/ws-C7ZOJJeA.mjs.map +1 -0
- package/package.json +13 -13
- package/src/adapters/aws-lambda/getPlanner.ts +1 -2
- package/src/adapters/aws-lambda/index.ts +1 -2
- package/src/adapters/ws.ts +3 -2
- package/src/adapters/wsEncoder.ts +1 -1
- package/src/observable/behaviorSubject.ts +4 -2
- package/src/observable/types.ts +4 -2
- package/src/unstable-core-do-not-import/clientish/inferrable.ts +1 -4
- package/src/unstable-core-do-not-import/http/contentType.ts +1 -1
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +4 -9
- package/src/unstable-core-do-not-import/http/types.ts +8 -4
- package/src/unstable-core-do-not-import/initTRPC.ts +10 -10
- package/src/unstable-core-do-not-import/middleware.ts +3 -2
- package/src/unstable-core-do-not-import/procedure.ts +11 -11
- package/src/unstable-core-do-not-import/router.ts +4 -5
- package/src/unstable-core-do-not-import/rpc/envelopes.ts +33 -34
- package/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts +2 -3
- package/src/unstable-core-do-not-import/stream/jsonl.ts +1 -2
- package/src/unstable-core-do-not-import/stream/sse.ts +18 -12
- package/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts +5 -2
- package/src/unstable-core-do-not-import/stream/utils/withPing.ts +1 -3
- package/src/unstable-core-do-not-import/transformer.ts +1 -4
- package/src/unstable-core-do-not-import/types.ts +9 -10
- package/dist/codes-DagpWZLc.mjs.map +0 -1
- package/dist/contentTypeParsers-SN4WL9ze.mjs.map +0 -1
- package/dist/getErrorShape-BPSzUA7W.mjs +0 -269
- package/dist/getErrorShape-BPSzUA7W.mjs.map +0 -1
- package/dist/getErrorShape-Ed1OwssN.cjs +0 -345
- package/dist/http-CWyjOa1l.mjs +0 -0
- package/dist/http-DXy3XyhL.cjs +0 -0
- package/dist/index.d-BiUz7kM_.d.cts.map +0 -1
- package/dist/index.d-CvZXeEyR.d.cts +0 -11
- package/dist/index.d-CvZXeEyR.d.cts.map +0 -1
- package/dist/index.d-D4qZxQJh.d.mts.map +0 -1
- package/dist/index.d-DhhodpGb.d.mts.map +0 -1
- package/dist/index.d-fBAdSX6g.d.cts.map +0 -1
- package/dist/index.d-vq_QHko2.d.mts +0 -11
- package/dist/index.d-vq_QHko2.d.mts.map +0 -1
- package/dist/initTRPC-BRf4imah.mjs.map +0 -1
- package/dist/node-http-n0vBVXjb.mjs.map +0 -1
- package/dist/observable-CUiPknO-.mjs.map +0 -1
- package/dist/observable-UMO3vUa_.mjs.map +0 -1
- package/dist/parseTRPCMessage-CTow-umk.mjs.map +0 -1
- package/dist/resolveResponse-C7cFScHo.mjs.map +0 -1
- package/dist/tracked-DWInO6EQ.mjs.map +0 -1
- package/dist/unstable-core-do-not-import-9NNw8uQM.mjs +0 -31
- package/dist/unstable-core-do-not-import-9NNw8uQM.mjs.map +0 -1
- package/dist/unstable-core-do-not-import-fsjhEhgh.cjs +0 -35
- package/dist/unstable-core-do-not-import.d-BdVSvUCr.d.mts.map +0 -1
- package/dist/unstable-core-do-not-import.d-Dh9CT5RO.d.cts.map +0 -1
- package/dist/ws-DyeWX-EY.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracked-D4jU_Hb3.mjs","names":[],"sources":["../src/unstable-core-do-not-import/error/formatter.ts","../src/unstable-core-do-not-import/error/TRPCError.ts","../src/unstable-core-do-not-import/transformer.ts","../src/unstable-core-do-not-import/router.ts","../src/unstable-core-do-not-import/stream/tracked.ts"],"sourcesContent":["import type { ProcedureType } from '../procedure';\nimport type {\n TRPC_ERROR_CODE_KEY,\n TRPC_ERROR_CODE_NUMBER,\n TRPCErrorShape,\n} from '../rpc';\nimport type { TRPCError } from './TRPCError';\n\n/**\n * @internal\n */\nexport type ErrorFormatter<TContext, TShape extends TRPCErrorShape> = (opts: {\n error: TRPCError;\n type: ProcedureType | 'unknown';\n path: string | undefined;\n input: unknown;\n ctx: TContext | undefined;\n shape: DefaultErrorShape;\n}) => TShape;\n\n/**\n * @internal\n */\nexport type DefaultErrorData = {\n code: TRPC_ERROR_CODE_KEY;\n httpStatus: number;\n /**\n * Path to the procedure that threw the error\n */\n path?: string;\n /**\n * Stack trace of the error (only in development)\n */\n stack?: string;\n};\n\n/**\n * @internal\n */\nexport interface DefaultErrorShape extends TRPCErrorShape<DefaultErrorData> {\n message: string;\n code: TRPC_ERROR_CODE_NUMBER;\n}\n\nexport const defaultFormatter: ErrorFormatter<any, any> = ({ shape }) => {\n return shape;\n};\n","import type { TRPC_ERROR_CODE_KEY } from '../rpc/codes';\nimport { isObject } from '../utils';\n\nclass UnknownCauseError extends Error {\n [key: string]: unknown;\n\n constructor(cause: object) {\n super(getMessage(cause));\n Object.assign(this, cause);\n }\n}\n\nfunction getMessage(cause: object) {\n if ('message' in cause) return String(cause.message);\n\n return undefined;\n}\n\nexport function getCauseFromUnknown(cause: unknown): Error | undefined {\n if (cause instanceof Error) {\n return cause;\n }\n\n const type = typeof cause;\n if (type === 'undefined' || type === 'function' || cause === null) {\n return undefined;\n }\n\n // Primitive types just get wrapped in an error\n if (type !== 'object') {\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n return new Error(String(cause));\n }\n\n // If it's an object, we'll create a synthetic error\n if (isObject(cause)) {\n return new UnknownCauseError(cause);\n }\n\n return undefined;\n}\n\nexport function getTRPCErrorFromUnknown(cause: unknown): TRPCError {\n if (cause instanceof TRPCError) {\n return cause;\n }\n if (cause instanceof Error && cause.name === 'TRPCError') {\n // https://github.com/trpc/trpc/pull/4848\n return cause as TRPCError;\n }\n\n const trpcError = new TRPCError({\n code: 'INTERNAL_SERVER_ERROR',\n cause,\n });\n\n // Inherit stack from error\n if (cause instanceof Error && cause.stack) {\n trpcError.stack = cause.stack;\n }\n\n return trpcError;\n}\n\nexport class TRPCError extends Error {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore override doesn't work in all environments due to \"This member cannot have an 'override' modifier because it is not declared in the base class 'Error'\"\n public override readonly cause?: Error;\n public readonly code;\n\n constructor(opts: {\n message?: string;\n code: TRPC_ERROR_CODE_KEY;\n cause?: unknown;\n }) {\n const cause = getCauseFromUnknown(opts.cause);\n const message = opts.message ?? cause?.message ?? opts.code;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore https://github.com/tc39/proposal-error-cause\n super(message, { cause });\n\n this.code = opts.code;\n this.name = 'TRPCError';\n this.cause ??= cause;\n }\n}\n","import type { AnyRootTypes, RootConfig } from './rootConfig';\nimport type { AnyRouter, inferRouterError } from './router';\nimport type {\n TRPCResponse,\n TRPCResponseMessage,\n TRPCResultMessage,\n} from './rpc';\nimport { isObject } from './utils';\n\n/**\n * @public\n */\nexport interface DataTransformer {\n serialize(object: any): any;\n deserialize(object: any): any;\n}\n\ninterface InputDataTransformer extends DataTransformer {\n /**\n * This function runs **on the client** before sending the data to the server.\n */\n serialize(object: any): any;\n /**\n * This function runs **on the server** to transform the data before it is passed to the resolver\n */\n deserialize(object: any): any;\n}\n\ninterface OutputDataTransformer extends DataTransformer {\n /**\n * This function runs **on the server** before sending the data to the client.\n */\n serialize(object: any): any;\n /**\n * This function runs **only on the client** to transform the data sent from the server.\n */\n deserialize(object: any): any;\n}\n\n/**\n * @public\n */\nexport interface CombinedDataTransformer {\n /**\n * Specify how the data sent from the client to the server should be transformed.\n */\n input: InputDataTransformer;\n /**\n * Specify how the data sent from the server to the client should be transformed.\n */\n output: OutputDataTransformer;\n}\n\n/**\n * @public\n */\nexport type CombinedDataTransformerClient = {\n input: Pick<CombinedDataTransformer['input'], 'serialize'>;\n output: Pick<CombinedDataTransformer['output'], 'deserialize'>;\n};\n\n/**\n * @public\n */\nexport type DataTransformerOptions = CombinedDataTransformer | DataTransformer;\n\n/**\n * @internal\n */\nexport function getDataTransformer(\n transformer: DataTransformerOptions,\n): CombinedDataTransformer {\n if ('input' in transformer) {\n return transformer;\n }\n return { input: transformer, output: transformer };\n}\n\n/**\n * @internal\n */\nexport const defaultTransformer: CombinedDataTransformer = {\n input: { serialize: (obj) => obj, deserialize: (obj) => obj },\n output: { serialize: (obj) => obj, deserialize: (obj) => obj },\n};\n\nfunction transformTRPCResponseItem<\n TResponseItem extends TRPCResponse | TRPCResponseMessage,\n>(config: RootConfig<AnyRootTypes>, item: TResponseItem): TResponseItem {\n if ('error' in item) {\n return {\n ...item,\n error: config.transformer.output.serialize(item.error),\n };\n }\n\n if ('data' in item.result) {\n return {\n ...item,\n result: {\n ...item.result,\n data: config.transformer.output.serialize(item.result.data),\n },\n };\n }\n\n return item;\n}\n\n/**\n * Takes a unserialized `TRPCResponse` and serializes it with the router's transformers\n **/\nexport function transformTRPCResponse<\n TResponse extends\n TRPCResponse | TRPCResponse[] | TRPCResponseMessage | TRPCResponseMessage[],\n>(config: RootConfig<AnyRootTypes>, itemOrItems: TResponse) {\n return Array.isArray(itemOrItems)\n ? itemOrItems.map((item) => transformTRPCResponseItem(config, item))\n : transformTRPCResponseItem(config, itemOrItems);\n}\n\n// FIXME:\n// - the generics here are probably unnecessary\n// - the RPC-spec could probably be simplified to combine HTTP + WS\n/** @internal */\nfunction transformResultInner<TRouter extends AnyRouter, TOutput>(\n response:\n | TRPCResponse<TOutput, inferRouterError<TRouter>>\n | TRPCResponseMessage<TOutput, inferRouterError<TRouter>>,\n transformer: DataTransformer,\n) {\n if ('error' in response) {\n const error = transformer.deserialize(\n response.error,\n ) as inferRouterError<TRouter>;\n return {\n ok: false,\n error: {\n ...response,\n error,\n },\n } as const;\n }\n\n const result = {\n ...response.result,\n ...((!response.result.type || response.result.type === 'data') && {\n type: 'data',\n data: transformer.deserialize(response.result.data),\n }),\n } as TRPCResultMessage<TOutput>['result'];\n return { ok: true, result } as const;\n}\n\nclass TransformResultError extends Error {\n constructor() {\n super('Unable to transform response from server');\n }\n}\n\n/**\n * Transforms and validates that the result is a valid TRPCResponse\n * @internal\n */\nexport function transformResult<TRouter extends AnyRouter, TOutput>(\n response:\n | TRPCResponse<TOutput, inferRouterError<TRouter>>\n | TRPCResponseMessage<TOutput, inferRouterError<TRouter>>,\n transformer: DataTransformer,\n): ReturnType<typeof transformResultInner> {\n let result: ReturnType<typeof transformResultInner>;\n try {\n // Use the data transformers on the JSON-response\n result = transformResultInner(response, transformer);\n } catch {\n throw new TransformResultError();\n }\n\n // check that output of the transformers is a valid TRPCResponse\n if (\n !result.ok &&\n (!isObject(result.error.error) ||\n typeof result.error.error['code'] !== 'number')\n ) {\n throw new TransformResultError();\n }\n if (result.ok && !isObject(result.result)) {\n throw new TransformResultError();\n }\n return result;\n}\n","import type { Observable } from '../observable';\nimport { createRecursiveProxy } from './createProxy';\nimport { defaultFormatter } from './error/formatter';\nimport { getTRPCErrorFromUnknown, TRPCError } from './error/TRPCError';\nimport type {\n AnyProcedure,\n ErrorHandlerOptions,\n inferProcedureInput,\n inferProcedureOutput,\n LegacyObservableSubscriptionProcedure,\n} from './procedure';\nimport type { ProcedureCallOptions } from './procedureBuilder';\nimport type { AnyRootTypes, RootConfig } from './rootConfig';\nimport { defaultTransformer } from './transformer';\nimport type { MaybePromise, ValueOf } from './types';\nimport {\n emptyObject,\n isFunction,\n isObject,\n mergeWithoutOverrides,\n} from './utils';\n\nexport interface RouterRecord {\n [key: string]: AnyProcedure | RouterRecord;\n}\n\ntype DecorateProcedure<TProcedure extends AnyProcedure> = (\n input: inferProcedureInput<TProcedure>,\n) => Promise<\n TProcedure['_def']['type'] extends 'subscription'\n ? TProcedure extends LegacyObservableSubscriptionProcedure<any>\n ? Observable<inferProcedureOutput<TProcedure>, TRPCError>\n : inferProcedureOutput<TProcedure>\n : inferProcedureOutput<TProcedure>\n>;\n\n/**\n * @internal\n */\nexport type DecorateRouterRecord<TRecord extends RouterRecord> = {\n [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value\n ? $Value extends AnyProcedure\n ? DecorateProcedure<$Value>\n : $Value extends RouterRecord\n ? DecorateRouterRecord<$Value>\n : never\n : never;\n};\n\n/**\n * @internal\n */\n\nexport type RouterCallerErrorHandler<TContext> = (\n opts: ErrorHandlerOptions<TContext>,\n) => void;\n\n/**\n * @internal\n */\nexport type RouterCaller<\n TRoot extends AnyRootTypes,\n TRecord extends RouterRecord,\n> = (\n /**\n * @note\n * If passing a function, we recommend it's a cached function\n * e.g. wrapped in `React.cache` to avoid unnecessary computations\n */\n ctx: TRoot['ctx'] | (() => MaybePromise<TRoot['ctx']>),\n options?: {\n onError?: RouterCallerErrorHandler<TRoot['ctx']>;\n signal?: AbortSignal;\n },\n) => DecorateRouterRecord<TRecord>;\n\n/**\n * @internal\n */\nconst lazyMarker = 'lazyMarker' as 'lazyMarker' & {\n __brand: 'lazyMarker';\n};\nexport type Lazy<TAny> = (() => Promise<TAny>) & { [lazyMarker]: true };\n\ntype LazyLoader<TAny> = {\n load: () => Promise<void>;\n ref: Lazy<TAny>;\n};\n\nfunction once<T>(fn: () => T): () => T {\n const uncalled = Symbol();\n let result: T | typeof uncalled = uncalled;\n return (): T => {\n if (result === uncalled) {\n result = fn();\n }\n return result;\n };\n}\n\n/**\n * Lazy load a router\n * @see https://trpc.io/docs/server/merging-routers#lazy-load\n */\nexport function lazy<TRouter extends AnyRouter>(\n importRouter: () => Promise<\n | TRouter\n | {\n [key: string]: TRouter;\n }\n >,\n): Lazy<NoInfer<TRouter>> {\n async function resolve(): Promise<TRouter> {\n const mod = await importRouter();\n\n // if the module is a router, return it\n if (isRouter(mod)) {\n return mod;\n }\n\n const routers = Object.values(mod);\n\n if (routers.length !== 1 || !isRouter(routers[0])) {\n throw new Error(\n \"Invalid router module - either define exactly 1 export or return the router directly.\\nExample: `lazy(() => import('./slow.js').then((m) => m.slowRouter))`\",\n );\n }\n\n return routers[0];\n }\n\n (resolve as Lazy<NoInfer<TRouter>>)[lazyMarker] = true as const;\n\n return resolve as Lazy<NoInfer<TRouter>>;\n}\n\nfunction isLazy<TAny>(input: unknown): input is Lazy<TAny> {\n return typeof input === 'function' && lazyMarker in input;\n}\n\n/**\n * @internal\n */\nexport interface RouterDef<\n TRoot extends AnyRootTypes,\n TRecord extends RouterRecord,\n> {\n _config: RootConfig<TRoot>;\n router: true;\n procedure?: never;\n procedures: TRecord;\n record: TRecord;\n lazy: Record<string, LazyLoader<AnyRouter>>;\n}\n\nexport interface Router<\n TRoot extends AnyRootTypes,\n TRecord extends RouterRecord,\n> {\n _def: RouterDef<TRoot, TRecord>;\n /**\n * @see https://trpc.io/docs/v11/server/server-side-calls\n */\n createCaller: RouterCaller<TRoot, TRecord>;\n}\n\nexport type BuiltRouter<\n TRoot extends AnyRootTypes,\n TRecord extends RouterRecord,\n> = Router<TRoot, TRecord> & TRecord;\n\nexport interface RouterBuilder<TRoot extends AnyRootTypes> {\n <TIn extends CreateRouterOptions>(\n _: TIn,\n ): BuiltRouter<TRoot, DecorateCreateRouterOptions<TIn>>;\n}\n\nexport type AnyRouter = Router<any, any>;\n\nexport type inferRouterRootTypes<TRouter extends AnyRouter> =\n TRouter['_def']['_config']['$types'];\n\nexport type inferRouterContext<TRouter extends AnyRouter> =\n inferRouterRootTypes<TRouter>['ctx'];\nexport type inferRouterError<TRouter extends AnyRouter> =\n inferRouterRootTypes<TRouter>['errorShape'];\nexport type inferRouterMeta<TRouter extends AnyRouter> =\n inferRouterRootTypes<TRouter>['meta'];\n\nfunction isRouter(value: unknown): value is AnyRouter {\n return (\n isObject(value) && isObject(value['_def']) && 'router' in value['_def']\n );\n}\n\nconst emptyRouter = {\n _ctx: null as any,\n _errorShape: null as any,\n _meta: null as any,\n queries: {},\n mutations: {},\n subscriptions: {},\n errorFormatter: defaultFormatter,\n transformer: defaultTransformer,\n};\n\n/**\n * Reserved words that can't be used as router or procedure names\n */\nconst reservedWords = [\n /**\n * Then is a reserved word because otherwise we can't return a promise that returns a Proxy\n * since JS will think that `.then` is something that exists\n */\n 'then',\n /**\n * `fn.call()` and `fn.apply()` are reserved words because otherwise we can't call a function using `.call` or `.apply`\n */\n 'call',\n 'apply',\n];\n\n/** @internal */\nexport type CreateRouterOptions = {\n [key: string]:\n AnyProcedure | AnyRouter | CreateRouterOptions | Lazy<AnyRouter>;\n};\n\n/** @internal */\nexport type DecorateCreateRouterOptions<\n TRouterOptions extends CreateRouterOptions,\n> = {\n [K in keyof TRouterOptions]: TRouterOptions[K] extends infer $Value\n ? $Value extends AnyProcedure\n ? $Value\n : $Value extends Router<any, infer TRecord>\n ? TRecord\n : $Value extends Lazy<Router<any, infer TRecord>>\n ? TRecord\n : $Value extends CreateRouterOptions\n ? DecorateCreateRouterOptions<$Value>\n : never\n : never;\n};\n\n/**\n * @internal\n */\nexport function createRouterFactory<TRoot extends AnyRootTypes>(\n config: RootConfig<TRoot>,\n) {\n function createRouterInner<TInput extends CreateRouterOptions>(\n input: TInput,\n ): BuiltRouter<TRoot, DecorateCreateRouterOptions<TInput>> {\n const reservedWordsUsed = new Set(\n Object.keys(input).filter((v) => reservedWords.includes(v)),\n );\n if (reservedWordsUsed.size > 0) {\n throw new Error(\n 'Reserved words used in `router({})` call: ' +\n Array.from(reservedWordsUsed).join(', '),\n );\n }\n\n const procedures: Record<string, AnyProcedure> = emptyObject();\n const lazy: Record<string, LazyLoader<AnyRouter>> = emptyObject();\n\n function createLazyLoader(opts: {\n ref: Lazy<AnyRouter>;\n path: readonly string[];\n key: string;\n aggregate: RouterRecord;\n }): LazyLoader<AnyRouter> {\n return {\n ref: opts.ref,\n load: once(async () => {\n const router = await opts.ref();\n const lazyPath = [...opts.path, opts.key];\n const lazyKey = lazyPath.join('.');\n\n opts.aggregate[opts.key] = step(router._def.record, lazyPath);\n\n delete lazy[lazyKey];\n\n // add lazy loaders for nested routers\n for (const [nestedKey, nestedItem] of Object.entries(\n router._def.lazy,\n )) {\n const nestedRouterKey = [...lazyPath, nestedKey].join('.');\n\n // console.log('adding lazy', nestedRouterKey);\n lazy[nestedRouterKey] = createLazyLoader({\n ref: nestedItem.ref,\n path: lazyPath,\n key: nestedKey,\n aggregate: opts.aggregate[opts.key] as RouterRecord,\n });\n }\n }),\n };\n }\n\n function step(from: CreateRouterOptions, path: readonly string[] = []) {\n const aggregate: RouterRecord = emptyObject();\n for (const [key, item] of Object.entries(from ?? {})) {\n if (isLazy(item)) {\n lazy[[...path, key].join('.')] = createLazyLoader({\n path,\n ref: item,\n key,\n aggregate,\n });\n continue;\n }\n if (isRouter(item)) {\n aggregate[key] = step(item._def.record, [...path, key]);\n continue;\n }\n if (!isProcedure(item)) {\n // RouterRecord\n aggregate[key] = step(item, [...path, key]);\n continue;\n }\n\n const newPath = [...path, key].join('.');\n\n if (procedures[newPath]) {\n throw new Error(`Duplicate key: ${newPath}`);\n }\n\n procedures[newPath] = item;\n aggregate[key] = item;\n }\n\n return aggregate;\n }\n const record = step(input);\n\n const _def: AnyRouter['_def'] = {\n _config: config,\n router: true,\n procedures,\n lazy,\n ...emptyRouter,\n record,\n };\n\n const router: BuiltRouter<TRoot, {}> = {\n ...(record as {}),\n _def,\n createCaller: createCallerFactory<TRoot>()({\n _def,\n }),\n };\n return router as BuiltRouter<TRoot, DecorateCreateRouterOptions<TInput>>;\n }\n\n return createRouterInner;\n}\n\nfunction isProcedure(\n procedureOrRouter: ValueOf<CreateRouterOptions>,\n): procedureOrRouter is AnyProcedure {\n return typeof procedureOrRouter === 'function';\n}\n\n/**\n * @internal\n */\nexport async function getProcedureAtPath(\n router: Pick<Router<any, any>, '_def'>,\n path: string,\n): Promise<AnyProcedure | null> {\n const { _def } = router;\n let procedure = _def.procedures[path];\n\n while (!procedure) {\n const key = Object.keys(_def.lazy).find(\n (key) => path === key || path.startsWith(key + '.'),\n );\n // console.log(`found lazy: ${key ?? 'NOPE'} (fullPath: ${fullPath})`);\n\n if (!key) {\n return null;\n }\n // console.log('loading', key, '.......');\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const lazyRouter = _def.lazy[key]!;\n await lazyRouter.load();\n\n procedure = _def.procedures[path];\n }\n\n return procedure;\n}\n\n/**\n * @internal\n */\nexport async function callProcedure(\n opts: ProcedureCallOptions<unknown> & {\n router: AnyRouter;\n allowMethodOverride?: boolean;\n },\n) {\n const { type, path } = opts;\n const proc = await getProcedureAtPath(opts.router, path);\n if (\n !proc ||\n !isProcedure(proc) ||\n (proc._def.type !== type && !opts.allowMethodOverride)\n ) {\n throw new TRPCError({\n code: 'NOT_FOUND',\n message: `No \"${type}\"-procedure on path \"${path}\"`,\n });\n }\n\n /* istanbul ignore if -- @preserve */\n if (\n proc._def.type !== type &&\n opts.allowMethodOverride &&\n proc._def.type === 'subscription'\n ) {\n throw new TRPCError({\n code: 'METHOD_NOT_SUPPORTED',\n message: `Method override is not supported for subscriptions`,\n });\n }\n\n return proc(opts);\n}\n\nexport interface RouterCallerFactory<TRoot extends AnyRootTypes> {\n <TRecord extends RouterRecord>(\n router: Pick<Router<TRoot, TRecord>, '_def'>,\n ): RouterCaller<TRoot, TRecord>;\n}\n\nexport function createCallerFactory<\n TRoot extends AnyRootTypes,\n>(): RouterCallerFactory<TRoot> {\n return function createCallerInner<TRecord extends RouterRecord>(\n router: Pick<Router<TRoot, TRecord>, '_def'>,\n ): RouterCaller<TRoot, TRecord> {\n const { _def } = router;\n type Context = TRoot['ctx'];\n\n return function createCaller(ctxOrCallback, opts) {\n return createRecursiveProxy<ReturnType<RouterCaller<any, any>>>(\n async (innerOpts) => {\n const { path, args } = innerOpts;\n const fullPath = path.join('.');\n\n if (path.length === 1 && path[0] === '_def') {\n return _def;\n }\n\n const procedure = await getProcedureAtPath(router, fullPath);\n\n let ctx: Context | undefined = undefined;\n try {\n if (!procedure) {\n throw new TRPCError({\n code: 'NOT_FOUND',\n message: `No procedure found on path \"${path}\"`,\n });\n }\n ctx = isFunction(ctxOrCallback)\n ? await Promise.resolve(ctxOrCallback())\n : ctxOrCallback;\n\n return await procedure({\n path: fullPath,\n getRawInput: async () => args[0],\n ctx,\n type: procedure._def.type,\n signal: opts?.signal,\n batchIndex: 0,\n });\n } catch (cause) {\n opts?.onError?.({\n ctx,\n error: getTRPCErrorFromUnknown(cause),\n input: args[0],\n path: fullPath,\n type: procedure?._def.type ?? 'unknown',\n });\n throw cause;\n }\n },\n );\n };\n };\n}\n\n/** @internal */\nexport type MergeRouters<\n TRouters extends AnyRouter[],\n TRoot extends AnyRootTypes = TRouters[0]['_def']['_config']['$types'],\n TRecord extends RouterRecord = {},\n> = TRouters extends [\n infer Head extends AnyRouter,\n ...infer Tail extends AnyRouter[],\n]\n ? MergeRouters<Tail, TRoot, Head['_def']['record'] & TRecord>\n : BuiltRouter<TRoot, TRecord>;\n\nexport function mergeRouters<TRouters extends AnyRouter[]>(\n ...routerList: [...TRouters]\n): MergeRouters<TRouters> {\n const record = mergeWithoutOverrides(\n {},\n ...routerList.map((r) => r._def.record),\n );\n const errorFormatter = routerList.reduce(\n (currentErrorFormatter, nextRouter) => {\n if (\n nextRouter._def._config.errorFormatter &&\n nextRouter._def._config.errorFormatter !== defaultFormatter\n ) {\n if (\n currentErrorFormatter !== defaultFormatter &&\n currentErrorFormatter !== nextRouter._def._config.errorFormatter\n ) {\n throw new Error('You seem to have several error formatters');\n }\n return nextRouter._def._config.errorFormatter;\n }\n return currentErrorFormatter;\n },\n defaultFormatter,\n );\n\n const transformer = routerList.reduce((prev, current) => {\n if (\n current._def._config.transformer &&\n current._def._config.transformer !== defaultTransformer\n ) {\n if (\n prev !== defaultTransformer &&\n prev !== current._def._config.transformer\n ) {\n throw new Error('You seem to have several transformers');\n }\n return current._def._config.transformer;\n }\n return prev;\n }, defaultTransformer);\n\n const router = createRouterFactory({\n errorFormatter,\n transformer,\n isDev: routerList.every((r) => r._def._config.isDev),\n allowOutsideOfServer: routerList.every(\n (r) => r._def._config.allowOutsideOfServer,\n ),\n isServer: routerList.every((r) => r._def._config.isServer),\n $types: routerList[0]?._def._config.$types,\n sse: routerList[0]?._def._config.sse,\n })(record);\n\n return router as MergeRouters<TRouters>;\n}\n","const trackedSymbol = Symbol();\n\ntype TrackedId = string & {\n __brand: 'TrackedId';\n};\nexport type TrackedEnvelope<TData> = [TrackedId, TData, typeof trackedSymbol];\n\nexport interface TrackedData<TData> {\n /**\n * The id of the message to keep track of in case the connection gets lost\n */\n id: string;\n /**\n * The data field of the message\n */\n data: TData;\n}\n/**\n * Produce a typed server-sent event message\n * @deprecated use `tracked(id, data)` instead\n */\nexport function sse<TData>(event: { id: string; data: TData }) {\n return tracked(event.id, event.data);\n}\n\nexport function isTrackedEnvelope<TData>(\n value: unknown,\n): value is TrackedEnvelope<TData> {\n return Array.isArray(value) && value[2] === trackedSymbol;\n}\n\n/**\n * Automatically track an event so that it can be resumed from a given id if the connection is lost\n */\nexport function tracked<TData>(\n id: string,\n data: TData,\n): TrackedEnvelope<TData> {\n if (id === '') {\n // This limitation could be removed by using different SSE event names / channels for tracked event and non-tracked event\n throw new Error(\n '`id` must not be an empty string as empty string is the same as not setting the id at all',\n );\n }\n return [id as TrackedId, data, trackedSymbol];\n}\n\nexport type inferTrackedOutput<TData> =\n TData extends TrackedEnvelope<infer $Data> ? TrackedData<$Data> : TData;\n"],"mappings":";;;AA4CA,MAAa,oBAA8C,EAAE,YAAY;CACvE,OAAO;AACT;;;AC3CA,IAAM,oBAAN,cAAgC,MAAM;CAGpC,YAAY,OAAe;EACzB,MAAM,WAAW,KAAK,CAAC;EACvB,OAAO,OAAO,MAAM,KAAK;CAC3B;AACF;AAEA,SAAS,WAAW,OAAe;CACjC,IAAI,aAAa,OAAO,OAAO,OAAO,MAAM,OAAO;AAGrD;AAEA,SAAgB,oBAAoB,OAAmC;CACrE,IAAI,iBAAiB,OACnB,OAAO;CAGT,MAAM,OAAO,OAAO;CACpB,IAAI,SAAS,eAAe,SAAS,cAAc,UAAU,MAC3D;CAIF,IAAI,SAAS,UAEX,OAAO,IAAI,MAAM,OAAO,KAAK,CAAC;CAIhC,IAAI,SAAS,KAAK,GAChB,OAAO,IAAI,kBAAkB,KAAK;AAItC;AAEA,SAAgB,wBAAwB,OAA2B;CACjE,IAAI,iBAAiB,WACnB,OAAO;CAET,IAAI,iBAAiB,SAAS,MAAM,SAAS,aAE3C,OAAO;CAGT,MAAM,YAAY,IAAI,UAAU;EAC9B,MAAM;EACN;CACF,CAAC;CAGD,IAAI,iBAAiB,SAAS,MAAM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,QAAQ,KAAK,QAAQ;GAC9B;GACA,OAAO;EACT,GAAG,kBAIS;EACV,OAAO,WAAW,OAAO,MAAM,EAAE,KAAK,QAAQ,KAAK;EACnD,sBAAsB,WAAW,OAC9B,MAAM,EAAE,KAAK,QAAQ,oBACxB;EACA,UAAU,WAAW,OAAO,MAAM,EAAE,KAAK,QAAQ,QAAQ;EACzD,SAAA,eAAQ,WAAW,QAAA,QAAA,iBAAA,KAAA,IAAA,KAAA,IAAA,aAAI,KAAK,QAAQ;EACpC,MAAA,gBAAK,WAAW,QAAA,QAAA,kBAAA,KAAA,IAAA,KAAA,IAAA,cAAI,KAAK,QAAQ;CACnC,CAAC,CAAC,CAAC,MAES;AACd;;;ACnjBA,MAAM,gBAAgB,OAAO;;;;;AAqB7B,SAAgB,IAAW,OAAoC;CAC7D,OAAO,QAAQ,MAAM,IAAI,MAAM,IAAI;AACrC;AAEA,SAAgB,kBACd,OACiC;CACjC,OAAO,MAAM,QAAQ,KAAK,KAAK,MAAM,OAAO;AAC9C;;;;AAKA,SAAgB,QACd,IACA,MACwB;CACxB,IAAI,OAAO,IAET,MAAM,IAAI,MACR,2FACF;CAEF,OAAO;EAAC;EAAiB;EAAM;CAAa;AAC9C"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { l as inferObservableValue, m as Observable } from "./index-BMimGNYb.cjs";
|
|
3
2
|
//#region src/unstable-core-do-not-import/types.d.ts
|
|
4
|
-
|
|
5
3
|
/**
|
|
6
4
|
* ================================
|
|
7
5
|
* Useful utility types that doesn't have anything to do with tRPC in particular
|
|
@@ -15,7 +13,7 @@ type Maybe<TType> = TType | null | undefined;
|
|
|
15
13
|
* @internal
|
|
16
14
|
* @see https://github.com/ianstormtaylor/superstruct/blob/7973400cd04d8ad92bbdc2b6f35acbfb3c934079/src/utils.ts#L323-L325
|
|
17
15
|
*/
|
|
18
|
-
type Simplify<TType> = TType extends any[] | Date ? TType : { [K in keyof TType]: TType[K] };
|
|
16
|
+
type Simplify<TType> = TType extends any[] | Date ? TType : { [K in keyof TType]: TType[K]; };
|
|
19
17
|
/**
|
|
20
18
|
* @public
|
|
21
19
|
*/
|
|
@@ -24,7 +22,7 @@ type Dict<TType> = Record<string, TType | undefined>;
|
|
|
24
22
|
* @public
|
|
25
23
|
*/
|
|
26
24
|
type MaybePromise<TType> = Promise<TType> | TType;
|
|
27
|
-
type FilterKeys<TObj extends object, TFilter> = { [TKey in keyof TObj]: TObj[TKey] extends TFilter ? TKey : never }[keyof TObj];
|
|
25
|
+
type FilterKeys<TObj extends object, TFilter> = { [TKey in keyof TObj]: TObj[TKey] extends TFilter ? TKey : never; }[keyof TObj];
|
|
28
26
|
/**
|
|
29
27
|
* @internal
|
|
30
28
|
*/
|
|
@@ -48,7 +46,7 @@ type Unwrap<TType> = TType extends ((...args: any[]) => infer R) ? Awaited<R> :
|
|
|
48
46
|
* Makes the object recursively optional
|
|
49
47
|
* @internal
|
|
50
48
|
*/
|
|
51
|
-
type DeepPartial<TObject> = TObject extends object ? { [P in keyof TObject]?: DeepPartial<TObject[P]
|
|
49
|
+
type DeepPartial<TObject> = TObject extends object ? { [P in keyof TObject]?: DeepPartial<TObject[P]>; } : TObject;
|
|
52
50
|
/**
|
|
53
51
|
* Omits the key without removing a potential union
|
|
54
52
|
* @internal
|
|
@@ -61,14 +59,14 @@ type DistributiveOmit<TObj, TKey extends keyof any> = TObj extends any ? Omit<TO
|
|
|
61
59
|
* type information about the keys and only the index signature will remain.
|
|
62
60
|
* @internal
|
|
63
61
|
*/
|
|
64
|
-
type WithoutIndexSignature<TObj> = { [K in keyof TObj as string extends K ? never : number extends K ? never : K]: TObj[K] };
|
|
62
|
+
type WithoutIndexSignature<TObj> = { [K in keyof TObj as string extends K ? never : number extends K ? never : K]: TObj[K]; };
|
|
65
63
|
/**
|
|
66
64
|
* @internal
|
|
67
65
|
* Overwrite properties in `TType` with properties in `TWith`
|
|
68
66
|
* Only overwrites properties when the type to be overwritten
|
|
69
67
|
* is an object. Otherwise it will just use the type from `TWith`.
|
|
70
68
|
*/
|
|
71
|
-
type Overwrite<TType, TWith> = TWith extends any ? TType extends object ? { [K in keyof WithoutIndexSignature<TType> | keyof WithoutIndexSignature<TWith>]: K extends keyof TWith ? TWith[K] : K extends keyof TType ? TType[K] : never } & (string extends keyof TWith ? {
|
|
69
|
+
type Overwrite<TType, TWith> = TWith extends any ? TType extends object ? { [K in keyof WithoutIndexSignature<TType> | keyof WithoutIndexSignature<TWith>]: K extends keyof TWith ? TWith[K] : K extends keyof TType ? TType[K] : never; } & (string extends keyof TWith ? {
|
|
72
70
|
[key: string]: TWith[string];
|
|
73
71
|
} : number extends keyof TWith ? {
|
|
74
72
|
[key: number]: TWith[number];
|
|
@@ -81,8 +79,8 @@ type ValidateShape<TActualShape, TExpectedShape> = TActualShape extends TExpecte
|
|
|
81
79
|
* @internal
|
|
82
80
|
*/
|
|
83
81
|
type PickFirstDefined<TType, TPick> = undefined extends TType ? undefined extends TPick ? never : TPick : TType;
|
|
84
|
-
type KeyFromValue<TValue, TType extends Record<PropertyKey, PropertyKey>> = { [K in keyof TType]: TValue extends TType[K] ? K : never }[keyof TType];
|
|
85
|
-
type InvertKeyValue<TType extends Record<PropertyKey, PropertyKey>> = { [TValue in TType[keyof TType]]: KeyFromValue<TValue, TType
|
|
82
|
+
type KeyFromValue<TValue, TType extends Record<PropertyKey, PropertyKey>> = { [K in keyof TType]: TValue extends TType[K] ? K : never; }[keyof TType];
|
|
83
|
+
type InvertKeyValue<TType extends Record<PropertyKey, PropertyKey>> = { [TValue in TType[keyof TType]]: KeyFromValue<TValue, TType>; };
|
|
86
84
|
/**
|
|
87
85
|
* ================================
|
|
88
86
|
* tRPC specific types
|
|
@@ -159,21 +157,19 @@ type TRPC_ERROR_CODE_KEY = keyof typeof TRPC_ERROR_CODES_BY_KEY;
|
|
|
159
157
|
* With out of the box SSE, the client will reconnect when these errors are encountered
|
|
160
158
|
*/
|
|
161
159
|
declare const retryableRpcCodes: TRPC_ERROR_CODE_NUMBER[];
|
|
162
|
-
//# sourceMappingURL=codes.d.ts.map
|
|
163
160
|
//#endregion
|
|
164
161
|
//#region src/unstable-core-do-not-import/error/TRPCError.d.ts
|
|
165
162
|
declare function getCauseFromUnknown(cause: unknown): Error | undefined;
|
|
166
163
|
declare function getTRPCErrorFromUnknown(cause: unknown): TRPCError;
|
|
167
164
|
declare class TRPCError extends Error {
|
|
168
165
|
readonly cause?: Error;
|
|
169
|
-
readonly code: "
|
|
166
|
+
readonly code: "BAD_GATEWAY" | "BAD_REQUEST" | "CLIENT_CLOSED_REQUEST" | "CONFLICT" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "METHOD_NOT_SUPPORTED" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "PARSE_ERROR" | "PAYLOAD_TOO_LARGE" | "PAYMENT_REQUIRED" | "PRECONDITION_FAILED" | "PRECONDITION_REQUIRED" | "SERVICE_UNAVAILABLE" | "TIMEOUT" | "TOO_MANY_REQUESTS" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT" | "UNSUPPORTED_MEDIA_TYPE";
|
|
170
167
|
constructor(opts: {
|
|
171
168
|
message?: string;
|
|
172
169
|
code: TRPC_ERROR_CODE_KEY;
|
|
173
170
|
cause?: unknown;
|
|
174
171
|
});
|
|
175
172
|
}
|
|
176
|
-
//# sourceMappingURL=TRPCError.d.ts.map
|
|
177
173
|
//#endregion
|
|
178
174
|
//#region src/vendor/standard-schema-v1/spec.d.ts
|
|
179
175
|
/**
|
|
@@ -235,7 +231,6 @@ declare namespace StandardSchemaV1 {
|
|
|
235
231
|
/** Infers the output type of a Standard Schema. */
|
|
236
232
|
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
|
|
237
233
|
}
|
|
238
|
-
//# sourceMappingURL=spec.d.ts.map
|
|
239
234
|
//#endregion
|
|
240
235
|
//#region src/unstable-core-do-not-import/parser.d.ts
|
|
241
236
|
type ParserZodEsque<TInput, TParsedInput> = {
|
|
@@ -283,12 +278,11 @@ type inferParser<TParser extends Parser> = TParser extends ParserStandardSchemaE
|
|
|
283
278
|
} : never;
|
|
284
279
|
type ParseFn<TType> = (value: unknown) => Promise<TType> | TType;
|
|
285
280
|
declare function getParseFn<TType>(procedureParser: Parser): ParseFn<TType>;
|
|
286
|
-
//# sourceMappingURL=parser.d.ts.map
|
|
287
281
|
//#endregion
|
|
288
282
|
//#region src/unstable-core-do-not-import/middleware.d.ts
|
|
289
283
|
/** @internal */
|
|
290
|
-
declare const middlewareMarker:
|
|
291
|
-
__brand:
|
|
284
|
+
declare const middlewareMarker: 'middlewareMarker' & {
|
|
285
|
+
__brand: 'middlewareMarker';
|
|
292
286
|
};
|
|
293
287
|
type MiddlewareMarker = typeof middlewareMarker;
|
|
294
288
|
interface MiddlewareResultBase {
|
|
@@ -634,7 +628,7 @@ interface ProcedureCallOptions<TContext> {
|
|
|
634
628
|
}
|
|
635
629
|
//#endregion
|
|
636
630
|
//#region src/unstable-core-do-not-import/procedure.d.ts
|
|
637
|
-
declare const procedureTypes: readonly [
|
|
631
|
+
declare const procedureTypes: readonly ['query', 'mutation', 'subscription'];
|
|
638
632
|
/**
|
|
639
633
|
* @public
|
|
640
634
|
*/
|
|
@@ -952,7 +946,6 @@ type TRPCClientIncomingMessage<TResult = unknown, TError extends TRPCErrorShape
|
|
|
952
946
|
interface TRPCConnectionParamsMessage extends JSONRPC2.BaseRequest<'connectionParams'> {
|
|
953
947
|
data: TRPCRequestInfo['connectionParams'];
|
|
954
948
|
}
|
|
955
|
-
//# sourceMappingURL=envelopes.d.ts.map
|
|
956
949
|
//#endregion
|
|
957
950
|
//#region src/unstable-core-do-not-import/transformer.d.ts
|
|
958
951
|
/**
|
|
@@ -1017,32 +1010,32 @@ declare const defaultTransformer: CombinedDataTransformer;
|
|
|
1017
1010
|
/**
|
|
1018
1011
|
* Takes a unserialized `TRPCResponse` and serializes it with the router's transformers
|
|
1019
1012
|
**/
|
|
1020
|
-
declare function transformTRPCResponse<TResponse extends TRPCResponse | TRPCResponse[] | TRPCResponseMessage | TRPCResponseMessage[]>(config: RootConfig<AnyRootTypes>, itemOrItems: TResponse):
|
|
1013
|
+
declare function transformTRPCResponse<TResponse extends TRPCResponse | TRPCResponse[] | TRPCResponseMessage | TRPCResponseMessage[]>(config: RootConfig<AnyRootTypes>, itemOrItems: TResponse): (TRPCResponse | TRPCResponseMessage)[] | TRPCErrorResponse<TRPCErrorShape<object>> | TRPCSuccessResponse<unknown> | ({
|
|
1021
1014
|
id: JSONRPC2.RequestId;
|
|
1022
|
-
} & TRPCResultMessage<unknown>)
|
|
1015
|
+
} & TRPCResultMessage<unknown>);
|
|
1023
1016
|
/** @internal */
|
|
1024
1017
|
declare function transformResultInner<TRouter extends AnyRouter, TOutput>(response: TRPCResponse<TOutput, inferRouterError<TRouter>> | TRPCResponseMessage<TOutput, inferRouterError<TRouter>>, transformer: DataTransformer): {
|
|
1025
1018
|
readonly ok: false;
|
|
1026
1019
|
readonly error: {
|
|
1027
|
-
readonly error: inferRouterError<TRouter>;
|
|
1028
1020
|
readonly id?: JSONRPC2.RequestId;
|
|
1029
|
-
readonly jsonrpc?:
|
|
1021
|
+
readonly jsonrpc?: '2.0';
|
|
1022
|
+
readonly error: inferRouterError<TRouter>;
|
|
1030
1023
|
} | {
|
|
1024
|
+
readonly jsonrpc?: '2.0';
|
|
1025
|
+
readonly id: JSONRPC2.RequestId;
|
|
1031
1026
|
readonly error: inferRouterError<TRouter>;
|
|
1032
|
-
readonly id: string | number | null;
|
|
1033
|
-
readonly jsonrpc?: "2.0";
|
|
1034
1027
|
};
|
|
1035
1028
|
readonly result?: undefined;
|
|
1036
1029
|
} | {
|
|
1030
|
+
readonly error?: undefined;
|
|
1037
1031
|
readonly ok: true;
|
|
1038
|
-
readonly result: {
|
|
1039
|
-
type:
|
|
1032
|
+
readonly result: TRPCResult<TOutput> | {
|
|
1033
|
+
type: 'started';
|
|
1040
1034
|
data?: never;
|
|
1041
1035
|
} | {
|
|
1042
|
-
type:
|
|
1036
|
+
type: 'stopped';
|
|
1043
1037
|
data?: never;
|
|
1044
|
-
}
|
|
1045
|
-
readonly error?: undefined;
|
|
1038
|
+
};
|
|
1046
1039
|
};
|
|
1047
1040
|
/**
|
|
1048
1041
|
* Transforms and validates that the result is a valid TRPCResponse
|
|
@@ -1053,8 +1046,6 @@ declare function transformResult<TRouter extends AnyRouter, TOutput>(response: T
|
|
|
1053
1046
|
//#region src/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts
|
|
1054
1047
|
/** @public */
|
|
1055
1048
|
declare function parseTRPCMessage(obj: unknown, transformer: CombinedDataTransformer): TRPCClientOutgoingMessage;
|
|
1056
|
-
//# sourceMappingURL=parseTRPCMessage.d.ts.map
|
|
1057
|
-
|
|
1058
1049
|
//#endregion
|
|
1059
1050
|
//#region src/unstable-core-do-not-import/error/formatter.d.ts
|
|
1060
1051
|
/**
|
|
@@ -1091,7 +1082,6 @@ interface DefaultErrorShape extends TRPCErrorShape<DefaultErrorData> {
|
|
|
1091
1082
|
code: TRPC_ERROR_CODE_NUMBER;
|
|
1092
1083
|
}
|
|
1093
1084
|
declare const defaultFormatter: ErrorFormatter<any, any>;
|
|
1094
|
-
//# sourceMappingURL=formatter.d.ts.map
|
|
1095
1085
|
//#endregion
|
|
1096
1086
|
//#region src/unstable-core-do-not-import/stream/jsonl.d.ts
|
|
1097
1087
|
/**
|
|
@@ -1183,7 +1173,6 @@ declare namespace EventSourceLike {
|
|
|
1183
1173
|
export type InitDictOf<T extends AnyConstructor> = ConstructorParameters<T>[1];
|
|
1184
1174
|
export {};
|
|
1185
1175
|
}
|
|
1186
|
-
//# sourceMappingURL=sse.types.d.ts.map
|
|
1187
1176
|
//#endregion
|
|
1188
1177
|
//#region src/unstable-core-do-not-import/stream/sse.d.ts
|
|
1189
1178
|
type Serialize$1 = (value: any) => any;
|
|
@@ -1284,10 +1273,10 @@ interface ConsumerConfig {
|
|
|
1284
1273
|
*/
|
|
1285
1274
|
declare function sseStreamConsumer<TConfig extends ConsumerConfig>(opts: SSEStreamConsumerOptions<TConfig>): AsyncIterable<ConsumerStreamResult<TConfig>>;
|
|
1286
1275
|
declare const sseHeaders: {
|
|
1287
|
-
readonly 'Content-Type':
|
|
1288
|
-
readonly 'Cache-Control':
|
|
1289
|
-
readonly 'X-Accel-Buffering':
|
|
1290
|
-
readonly Connection:
|
|
1276
|
+
readonly 'Content-Type': 'text/event-stream';
|
|
1277
|
+
readonly 'Cache-Control': 'no-cache, no-transform';
|
|
1278
|
+
readonly 'X-Accel-Buffering': 'no';
|
|
1279
|
+
readonly Connection: 'keep-alive';
|
|
1291
1280
|
};
|
|
1292
1281
|
//#endregion
|
|
1293
1282
|
//#region src/unstable-core-do-not-import/rootConfig.d.ts
|
|
@@ -1392,7 +1381,7 @@ type DecorateProcedure<TProcedure extends AnyProcedure> = (input: inferProcedure
|
|
|
1392
1381
|
/**
|
|
1393
1382
|
* @internal
|
|
1394
1383
|
*/
|
|
1395
|
-
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 };
|
|
1384
|
+
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; };
|
|
1396
1385
|
/**
|
|
1397
1386
|
* @internal
|
|
1398
1387
|
*/
|
|
@@ -1454,7 +1443,7 @@ type CreateRouterOptions = {
|
|
|
1454
1443
|
[key: string]: AnyProcedure | AnyRouter | CreateRouterOptions | Lazy<AnyRouter>;
|
|
1455
1444
|
};
|
|
1456
1445
|
/** @internal */
|
|
1457
|
-
type DecorateCreateRouterOptions<TRouterOptions extends CreateRouterOptions> = { [K in keyof TRouterOptions]: TRouterOptions[K] extends infer $Value ? $Value extends AnyProcedure ? $Value : $Value extends Router<any, infer TRecord> ? TRecord : $Value extends Lazy<Router<any, infer TRecord>> ? TRecord : $Value extends CreateRouterOptions ? DecorateCreateRouterOptions<$Value> : never : never };
|
|
1446
|
+
type DecorateCreateRouterOptions<TRouterOptions extends CreateRouterOptions> = { [K in keyof TRouterOptions]: TRouterOptions[K] extends (infer $Value) ? $Value extends AnyProcedure ? $Value : $Value extends Router<any, infer TRecord> ? TRecord : $Value extends Lazy<Router<any, infer TRecord>> ? TRecord : $Value extends CreateRouterOptions ? DecorateCreateRouterOptions<$Value> : never : never; };
|
|
1458
1447
|
/**
|
|
1459
1448
|
* @internal
|
|
1460
1449
|
*/
|
|
@@ -1533,18 +1522,18 @@ type Serialize<T> = IsAny<T> extends true ? any : unknown extends T ? unknown :
|
|
|
1533
1522
|
toJSON(): infer U;
|
|
1534
1523
|
} ? U : T extends [] ? [] : T extends [unknown, ...unknown[]] ? SerializeTuple<T> : T extends readonly (infer U)[] ? (U extends NonJsonPrimitive ? null : Serialize<U>)[] : T extends object ? IsRecord<T> extends true ? Record<keyof T, Serialize<T[keyof T]>> : Simplify<SerializeObject<UndefinedToOptional<T>>> : never;
|
|
1535
1524
|
/** JSON serialize [tuples](https://www.typescriptlang.org/docs/handbook/2/objects.html#tuple-types) */
|
|
1536
|
-
type SerializeTuple<T extends [unknown, ...unknown[]]> = { [K in keyof T]: T[K] extends NonJsonPrimitive ? null : Serialize<T[K]
|
|
1525
|
+
type SerializeTuple<T extends [unknown, ...unknown[]]> = { [K in keyof T]: T[K] extends NonJsonPrimitive ? null : Serialize<T[K]>; };
|
|
1537
1526
|
type SerializeObjectKey<T extends Record<any, any>, K> = K extends symbol ? never : IsAny<T[K]> extends true ? K : unknown extends T[K] ? K : T[K] extends NonJsonPrimitive ? never : K;
|
|
1538
1527
|
/**
|
|
1539
1528
|
* JSON serialize objects (not including arrays) and classes
|
|
1540
1529
|
* @internal
|
|
1541
1530
|
**/
|
|
1542
|
-
type SerializeObject<T extends object> = { [K in keyof T as SerializeObjectKey<T, K>]: Serialize<T[K]
|
|
1531
|
+
type SerializeObject<T extends object> = { [K in keyof T as SerializeObjectKey<T, K>]: Serialize<T[K]>; };
|
|
1543
1532
|
/**
|
|
1544
1533
|
* Extract keys from T where the value dosen't extend undefined
|
|
1545
1534
|
* Note: Can't parse IndexSignature or Record types
|
|
1546
1535
|
*/
|
|
1547
|
-
type FilterDefinedKeys<T extends object> = Exclude<{ [K in keyof T]: undefined extends T[K] ? never : K }[keyof T], undefined>;
|
|
1536
|
+
type FilterDefinedKeys<T extends object> = Exclude<{ [K in keyof T]: undefined extends T[K] ? never : K; }[keyof T], undefined>;
|
|
1548
1537
|
/**
|
|
1549
1538
|
* Get value of exactOptionalPropertyTypes config
|
|
1550
1539
|
*/
|
|
@@ -1560,12 +1549,12 @@ type HasIndexSignature<T extends object> = string extends keyof T ? true : false
|
|
|
1560
1549
|
/**
|
|
1561
1550
|
* { [key: string]: number | undefined } --> { [key: string]: number }
|
|
1562
1551
|
*/
|
|
1563
|
-
type HandleIndexSignature<T extends object> = { [K in keyof Omit<T, keyof WithoutIndexSignature<T>>]: Exclude<T[K], undefined
|
|
1552
|
+
type HandleIndexSignature<T extends object> = { [K in keyof Omit<T, keyof WithoutIndexSignature<T>>]: Exclude<T[K], undefined>; };
|
|
1564
1553
|
/**
|
|
1565
1554
|
* { a: number | undefined } --> { a?: number }
|
|
1566
1555
|
* Note: Can't parse IndexSignature or Record types
|
|
1567
1556
|
*/
|
|
1568
|
-
type HandleUndefined<T extends object> = { [K in keyof Omit<T, FilterDefinedKeys<T>>]?: Exclude<T[K], undefined
|
|
1557
|
+
type HandleUndefined<T extends object> = { [K in keyof Omit<T, FilterDefinedKeys<T>>]?: Exclude<T[K], undefined>; };
|
|
1569
1558
|
/**
|
|
1570
1559
|
* Handle undefined, index signature and records
|
|
1571
1560
|
*/
|
|
@@ -1578,10 +1567,9 @@ type UndefinedToOptional<T extends object> = Pick<WithoutIndexSignature<T>, Filt
|
|
|
1578
1567
|
type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferProcedureOutput<TProcedure>> : inferProcedureOutput<TProcedure>;
|
|
1579
1568
|
/** @internal */
|
|
1580
1569
|
type inferTransformedSubscriptionOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferObservableValue<inferProcedureOutput<TProcedure>>> : inferObservableValue<inferProcedureOutput<TProcedure>>;
|
|
1581
|
-
type GetInferenceHelpers<TType extends 'input' | 'output', TRoot extends AnyClientTypes, TRecord extends RouterRecord> = { [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? TType extends 'input' ? inferProcedureInput<$Value> : inferTransformedProcedureOutput<TRoot, $Value> : $Value extends RouterRecord ? GetInferenceHelpers<TType, TRoot, $Value> : never : never };
|
|
1570
|
+
type GetInferenceHelpers<TType extends 'input' | 'output', TRoot extends AnyClientTypes, TRecord extends RouterRecord> = { [TKey in keyof TRecord]: TRecord[TKey] extends (infer $Value) ? $Value extends AnyProcedure ? TType extends 'input' ? inferProcedureInput<$Value> : inferTransformedProcedureOutput<TRoot, $Value> : $Value extends RouterRecord ? GetInferenceHelpers<TType, TRoot, $Value> : never : never; };
|
|
1582
1571
|
type inferRouterInputs<TRouter extends AnyRouter> = GetInferenceHelpers<'input', TRouter['_def']['_config']['$types'], TRouter['_def']['record']>;
|
|
1583
1572
|
type inferRouterOutputs<TRouter extends AnyRouter> = GetInferenceHelpers<'output', TRouter['_def']['_config']['$types'], TRouter['_def']['record']>;
|
|
1584
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
1585
1573
|
//#endregion
|
|
1586
1574
|
//#region src/unstable-core-do-not-import/createProxy.d.ts
|
|
1587
1575
|
interface ProxyCallbackOptions {
|
|
@@ -1614,7 +1602,6 @@ declare function getErrorShape<TRoot extends AnyRootTypes>(opts: {
|
|
|
1614
1602
|
input: unknown;
|
|
1615
1603
|
ctx: TRoot['ctx'] | undefined;
|
|
1616
1604
|
}): TRoot['errorShape'];
|
|
1617
|
-
//# sourceMappingURL=getErrorShape.d.ts.map
|
|
1618
1605
|
//#endregion
|
|
1619
1606
|
//#region src/unstable-core-do-not-import/http/contentType.d.ts
|
|
1620
1607
|
declare function getAcceptHeader(headers: Headers): TRPCAcceptHeader | null;
|
|
@@ -1649,12 +1636,9 @@ interface FileLike extends Blob {
|
|
|
1649
1636
|
*/
|
|
1650
1637
|
type OctetInput = Blob | Uint8Array | FileLike;
|
|
1651
1638
|
declare const octetInputParser: UtilityParser<OctetInput, ReadableStream>;
|
|
1652
|
-
//# sourceMappingURL=contentTypeParsers.d.ts.map
|
|
1653
1639
|
//#endregion
|
|
1654
1640
|
//#region src/unstable-core-do-not-import/http/formDataToObject.d.ts
|
|
1655
1641
|
declare function formDataToObject(formData: FormData): Record<string, unknown>;
|
|
1656
|
-
//# sourceMappingURL=formDataToObject.d.ts.map
|
|
1657
|
-
|
|
1658
1642
|
//#endregion
|
|
1659
1643
|
//#region src/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts
|
|
1660
1644
|
declare const JSONRPC2_TO_HTTP_CODE: Record<keyof typeof TRPC_ERROR_CODES_BY_KEY, number>;
|
|
@@ -1663,19 +1647,16 @@ declare function getStatusCodeFromKey(code: keyof typeof TRPC_ERROR_CODES_BY_KEY
|
|
|
1663
1647
|
declare function getStatusKeyFromCode(code: keyof typeof HTTP_CODE_TO_JSONRPC2): ValueOf<typeof HTTP_CODE_TO_JSONRPC2>;
|
|
1664
1648
|
declare function getHTTPStatusCode(json: TRPCResponse | TRPCResponse[]): number;
|
|
1665
1649
|
declare function getHTTPStatusCodeFromError(error: TRPCError): number;
|
|
1666
|
-
//# sourceMappingURL=getHTTPStatusCode.d.ts.map
|
|
1667
1650
|
//#endregion
|
|
1668
1651
|
//#region src/unstable-core-do-not-import/http/abortError.d.ts
|
|
1669
1652
|
declare function isAbortError(error: unknown): error is DOMException | Error | {
|
|
1670
1653
|
name: 'AbortError';
|
|
1671
1654
|
};
|
|
1672
1655
|
declare function throwAbortError(message?: string): never;
|
|
1673
|
-
//# sourceMappingURL=abortError.d.ts.map
|
|
1674
1656
|
//#endregion
|
|
1675
1657
|
//#region src/unstable-core-do-not-import/http/parseConnectionParams.d.ts
|
|
1676
1658
|
declare function parseConnectionParamsFromUnknown(parsed: unknown): TRPCRequestInfo['connectionParams'];
|
|
1677
1659
|
declare function parseConnectionParamsFromString(str: string): TRPCRequestInfo['connectionParams'];
|
|
1678
|
-
//# sourceMappingURL=parseConnectionParams.d.ts.map
|
|
1679
1660
|
//#endregion
|
|
1680
1661
|
//#region src/unstable-core-do-not-import/http/resolveResponse.d.ts
|
|
1681
1662
|
interface ResolveHTTPRequestOptions<TRouter extends AnyRouter> extends HTTPBaseHandlerOptions<TRouter, Request> {
|
|
@@ -1772,7 +1753,6 @@ declare function createDeferred<TValue = void>(): {
|
|
|
1772
1753
|
reject: (error: unknown) => void;
|
|
1773
1754
|
};
|
|
1774
1755
|
type Deferred<TValue> = ReturnType<typeof createDeferred<TValue>>;
|
|
1775
|
-
//# sourceMappingURL=createDeferred.d.ts.map
|
|
1776
1756
|
//#endregion
|
|
1777
1757
|
//#region src/unstable-core-do-not-import/stream/utils/disposable.d.ts
|
|
1778
1758
|
/**
|
|
@@ -1791,7 +1771,6 @@ declare function makeResource<T>(thing: T, dispose: () => void): T & Disposable;
|
|
|
1791
1771
|
* @returns The original value with Symbol.asyncDispose method added
|
|
1792
1772
|
*/
|
|
1793
1773
|
declare function makeAsyncResource<T>(thing: T, dispose: () => Promise<void>): T & AsyncDisposable;
|
|
1794
|
-
//# sourceMappingURL=disposable.d.ts.map
|
|
1795
1774
|
//#endregion
|
|
1796
1775
|
//#region src/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts
|
|
1797
1776
|
declare function iteratorResource<TYield, TReturn, TNext>(iterable: AsyncIterable<TYield, TReturn, TNext>): AsyncIterator<TYield, TReturn, TNext> & AsyncDisposable;
|
|
@@ -1804,7 +1783,6 @@ declare function takeWithGrace<T>(iterable: AsyncIterable<T>, opts: {
|
|
|
1804
1783
|
count: number;
|
|
1805
1784
|
gracePeriodMs: number;
|
|
1806
1785
|
}): AsyncGenerator<T>;
|
|
1807
|
-
//# sourceMappingURL=asyncIterable.d.ts.map
|
|
1808
1786
|
//#endregion
|
|
1809
1787
|
//#region src/vendor/standard-schema-v1/error.d.ts
|
|
1810
1788
|
/** A schema error with useful information. */
|
|
@@ -1818,7 +1796,6 @@ declare class StandardSchemaV1Error extends Error {
|
|
|
1818
1796
|
*/
|
|
1819
1797
|
constructor(issues: ReadonlyArray<StandardSchemaV1.Issue>);
|
|
1820
1798
|
}
|
|
1821
|
-
//# sourceMappingURL=error.d.ts.map
|
|
1822
1799
|
//#endregion
|
|
1823
1800
|
//#region src/vendor/unpromise/types.d.ts
|
|
1824
1801
|
/** TYPES */
|
|
@@ -1848,8 +1825,6 @@ interface PromiseWithResolvers<T> {
|
|
|
1848
1825
|
reject: (reason?: any) => void;
|
|
1849
1826
|
}
|
|
1850
1827
|
/** Given an array, this is the union of its members' types. */
|
|
1851
|
-
//# sourceMappingURL=types.d.ts.map
|
|
1852
|
-
|
|
1853
1828
|
//#endregion
|
|
1854
1829
|
//#region src/vendor/unpromise/unpromise.d.ts
|
|
1855
1830
|
/**
|
|
@@ -1964,13 +1939,6 @@ declare class Unpromise<T> implements ProxyPromise<T> {
|
|
|
1964
1939
|
* */
|
|
1965
1940
|
static raceReferences<TPromise extends Promise<unknown>>(promises: readonly TPromise[]): Promise<readonly [TPromise]>;
|
|
1966
1941
|
}
|
|
1967
|
-
/** Promises a 1-tuple containing the original promise when it resolves. Allows
|
|
1968
|
-
* awaiting the eventual Promise ***reference*** (easy to destructure and
|
|
1969
|
-
* exactly compare with ===). Avoids resolving to the Promise ***value*** (which
|
|
1970
|
-
* may be ambiguous and therefore hard to identify as the winner of a race).
|
|
1971
|
-
* You can call unsubscribe on the Promise to mitigate memory leaks.
|
|
1972
|
-
* */
|
|
1973
|
-
|
|
1974
1942
|
//#endregion
|
|
1975
|
-
export {
|
|
1976
|
-
//# sourceMappingURL=unstable-core-do-not-import
|
|
1943
|
+
export { Lazy as $, identity as $n, GetRawInputFn as $r, JSONRPC2 as $t, OctetInput as A, LegacyObservableSubscriptionProcedure as An, ParserSuperstructEsque as Ar, sseStreamProducer as At, inferRouterOutputs as B, inferSubscriptionOutput as Bn, getCauseFromUnknown as Br, DefaultErrorData as Bt, JSONRPC2_TO_HTTP_CODE as C, TRPCRequestInfo as Cn, ParseFn as Cr, isServerDefault as Ct, getStatusKeyFromCode as D, AnyQueryProcedure as Dn, ParserMyZodEsque as Dr, SSEStreamProducerOptions as Dt, getStatusCodeFromKey as E, AnyProcedure as En, ParserCustomValidatorEsque as Er, SSEStreamConsumerOptions as Et, getErrorShape as F, SubscriptionProcedure as Fn, ParserZodEsque as Fr, ProducerOnError as Ft, AnyClientTypes as G, ProcedureCallOptions as Gn, TRPC_ERROR_CODE_NUMBER as Gr, CombinedDataTransformer as Gt, inferTransformedSubscriptionOutput as H, AnyProcedureBuilder as Hn, TRPC_ERROR_CODES_BY_KEY as Hr, ErrorFormatter as Ht, createFlatProxy as I, inferProcedureInput as In, getParseFn as Ir, WebReadableStreamEsque as It, AnyRouter as J, inferProcedureBuilderResolverOptions as Jn, Dict as Jr, DataTransformerOptions as Jt, InferrableClientTypes as K, ProcedureResolverOptions as Kn, retryableRpcCodes as Kr, CombinedDataTransformerClient as Kt, createRecursiveProxy as L, inferProcedureOutput as Ln, inferParser as Lr, isPromise as Lt, octetInputParser as M, Procedure as Mn, ParserWithInputOutput as Mr, ConsumerOnError as Mt, getAcceptHeader as N, ProcedureType as Nn, ParserWithoutInput as Nr, JSONLProducerOptions as Nt, formDataToObject as O, AnySubscriptionProcedure as On, ParserScaleEsque as Or, sseHeaders as Ot, getRequestInfo as P, QueryProcedure as Pn, ParserYupEsque as Pr, NodeJSReadableStreamEsque as Pt, DecorateRouterRecord as Q, emptyObject as Qn, FilterKeys as Qr, transformTRPCResponse as Qt, GetInferenceHelpers as R, inferProcedureParams as Rn, StandardSchemaV1 as Rr, jsonlStreamConsumer as Rt, HTTP_CODE_TO_JSONRPC2 as S, TRPCAcceptHeader as Sn, middlewareMarker as Sr, RootTypes as St, getHTTPStatusCodeFromError as T, AnyMutationProcedure as Tn, ParserArkTypeEsque as Tr, SSEPingOptions as Tt, Serialize as U, CallerOverride as Un, TRPC_ERROR_CODES_BY_NUMBER as Ur, defaultFormatter as Ut, inferTransformedProcedureOutput as V, procedureTypes as Vn, getTRPCErrorFromUnknown as Vr, DefaultErrorShape as Vt, SerializeObject as W, ProcedureBuilder as Wn, TRPC_ERROR_CODE_KEY as Wr, parseTRPCMessage as Wt, CreateRouterOptions as X, abortSignalsAnyPonyfill as Xn, ErrorSymbol as Xr, getDataTransformer as Xt, BuiltRouter as Y, UnsetMarker as Yn, DistributiveOmit as Yr, defaultTransformer as Yt, DecorateCreateRouterOptions as Z, assert as Zn, Filter as Zr, transformResult as Zt, resolveResponse as _, HTTPBaseHandlerOptions as _n, MiddlewareResult as _r, mergeRouters as _t, SubscribedPromise as a, Overwrite as ai, TRPCErrorResponse as an, run as ar, RouterCallerFactory as at, isAbortError as b, ResponseMeta as bn, createOutputMiddleware as br, CreateRootTypes as bt, takeWithGrace as c, Result$1 as ci, TRPCRequest as cn, TrackedEnvelope as cr, callProcedure as ct, Deferred as d, Unwrap as di, TRPCResponseMessage as dn, sse as dr, getProcedureAtPath as dt, IntersectionError as ei, TRPCClientIncomingMessage as en, isAsyncIterable as er, MergeRouters as et, createDeferred as f, ValidateShape as fi, TRPCResult as fn, tracked as fr, inferRouterContext as ft, initTRPC as g, inferAsyncIterableYield as gi, BaseHandlerOptions as gn, MiddlewareFunction as gr, lazy as gt, TRPCRootObject as h, coerceAsyncIterableToArray as hi, TRPCSuccessResponse as hn, MiddlewareBuilder as hr, inferRouterRootTypes as ht, ProxyPromise as i, MaybePromise as ii, TRPCConnectionParamsMessage as in, noop as ir, RouterCallerErrorHandler as it, UtilityParser as j, MutationProcedure as jn, ParserValibotEsque as jr, EventSourceLike as jt, FileLike as k, ErrorHandlerOptions as kn, ParserStandardSchemaEsque as kr, sseStreamConsumer as kt, makeAsyncResource as l, Simplify as li, TRPCRequestMessage as ln, inferTrackedOutput as lr, createCallerFactory as lt, TRPCBuilder as m, WithoutIndexSignature as mi, TRPCSubscriptionStopNotification as mn, AnyMiddlewareFunction as mr, inferRouterMeta as mt, PromiseExecutor as n, KeyFromValue as ni, TRPCClientOutgoingMessage as nn, isObject as nr, RouterBuilder as nt, StandardSchemaV1Error as o, PickFirstDefined as oi, TRPCErrorShape as on, sleep as or, RouterDef as ot, RuntimeConfigOptions as p, ValueOf as pi, TRPCResultMessage as pn, AnyMiddlewareBuilder as pr, inferRouterError as pt, inferClientTypes as q, createBuilder as qn, DeepPartial as qr, DataTransformer as qt, PromiseWithResolvers as r, Maybe as ri, TRPCClientOutgoingRequest as rn, mergeWithoutOverrides as rr, RouterCaller as rt, iteratorResource as s, ProtectedIntersection as si, TRPCReconnectNotification as sn, TrackedData as sr, RouterRecord as st, Unpromise as t, InvertKeyValue as ti, TRPCClientIncomingRequest as tn, isFunction as tr, Router as tt, makeResource as u, TypeError as ui, TRPCResponse as un, isTrackedEnvelope as ur, createRouterFactory as ut, parseConnectionParamsFromString as v, HTTPErrorHandler as vn, createInputMiddleware as vr, AnyRootTypes as vt, getHTTPStatusCode as w, TRPCRequestInfoProcedureCall as wn, Parser as wr, SSEClientOptions as wt, throwAbortError as x, ResponseMetaFn as xn, experimental_standaloneMiddleware as xr, RootConfig as xt, parseConnectionParamsFromUnknown as y, ResolveHTTPRequestOptionsContextFn as yn, createMiddlewareFactory as yr, CreateContextCallback as yt, inferRouterInputs as z, inferSubscriptionInput as zn, TRPCError as zr, jsonlStreamProducer as zt };
|
|
1944
|
+
//# sourceMappingURL=unstable-core-do-not-import-B9ZnrQAU.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unstable-core-do-not-import-B9ZnrQAU.d.cts","names":[],"sources":["../src/unstable-core-do-not-import/types.ts","../src/unstable-core-do-not-import/rpc/codes.ts","../src/unstable-core-do-not-import/error/TRPCError.ts","../src/vendor/standard-schema-v1/spec.ts","../src/unstable-core-do-not-import/parser.ts","../src/unstable-core-do-not-import/middleware.ts","../src/unstable-core-do-not-import/stream/tracked.ts","../src/unstable-core-do-not-import/utils.ts","../src/unstable-core-do-not-import/procedureBuilder.ts","../src/unstable-core-do-not-import/procedure.ts","../src/unstable-core-do-not-import/http/types.ts","../src/unstable-core-do-not-import/rpc/envelopes.ts","../src/unstable-core-do-not-import/transformer.ts","../src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts","../src/unstable-core-do-not-import/error/formatter.ts","../src/unstable-core-do-not-import/stream/jsonl.ts","../src/unstable-core-do-not-import/stream/sse.types.ts","../src/unstable-core-do-not-import/stream/sse.ts","../src/unstable-core-do-not-import/rootConfig.ts","../src/unstable-core-do-not-import/router.ts","../src/unstable-core-do-not-import/clientish/inferrable.ts","../src/unstable-core-do-not-import/clientish/serialize.ts","../src/unstable-core-do-not-import/clientish/inference.ts","../src/unstable-core-do-not-import/createProxy.ts","../src/unstable-core-do-not-import/error/getErrorShape.ts","../src/unstable-core-do-not-import/http/contentType.ts","../src/unstable-core-do-not-import/http/contentTypeParsers.ts","../src/unstable-core-do-not-import/http/formDataToObject.ts","../src/unstable-core-do-not-import/http/getHTTPStatusCode.ts","../src/unstable-core-do-not-import/http/abortError.ts","../src/unstable-core-do-not-import/http/parseConnectionParams.ts","../src/unstable-core-do-not-import/http/resolveResponse.ts","../src/unstable-core-do-not-import/initTRPC.ts","../src/unstable-core-do-not-import/stream/utils/createDeferred.ts","../src/unstable-core-do-not-import/stream/utils/disposable.ts","../src/unstable-core-do-not-import/stream/utils/asyncIterable.ts","../src/vendor/standard-schema-v1/error.ts","../src/vendor/unpromise/types.ts","../src/vendor/unpromise/unpromise.ts"],"mappings":";;;;;;;;;;KASY,MAAM,SAAS;;;;;KAMf,SAAS,SAAS,sBAAsB,OAChD,WACG,WAAW,QAAQ,MAAM;;;;KAKpB,KAAK,SAAS,eAAe;;;;KAK7B,aAAa,SAAS,QAAQ,SAAS;KAEvC,WAAW,qBAAqB,cACzC,cAAc,OAAO,KAAK,cAAc,UAAU,sBAC7C;;;;KAKI,SAAO,OAAO;EACtB;EAAU,OAAO;;EAAY;EAAW,OAAO;;;;;KAKvC,OAAO,qBAAqB,WAAW,KACjD,MACA,WAAW,MAAM;;;;;KAOP,OAAO,SAAS,mBAAkB,sBAAsB,KAChE,QAAQ,KACR;;;;;KAMQ,YAAY,WAAW,4BAE5B,WAAW,WAAW,YAAY,QAAQ,SAE7C;;;;;KAMQ,iBAAiB,MAAM,0BAA0B,mBACzD,KAAK,MAAM;;;;;;;;KAUH,sBAAsB,WAE9B,WAAW,uBAAuB,2BAA2B,YAAY,IACxE,KAAK;;;;;;;KASE,UAAU,OAAO,SAAS,oBAClC,0BAGM,WACU,sBAAsB,eACtB,sBAAsB,SAC/B,gBAAgB,QACf,MAAM,KACN,gBAAgB,QACd,MAAM,sCAEY;GACnB,cAAc;yBACI;GAChB,cAAc;UAEvB;;;;KAMM,cAAc,cAAc,kBACtC,qBAAqB,iBACjB,cAAc,oBAAoB,gCAChC,eACA;;;;KAMI,iBAAiB,OAAO,2BAA2B,0BACzC,gBAEhB,QACF;KAEQ,aACV,QACA,cAAc,OAAO,aAAa,mBAEjC,WAAW,QAAQ,eAAe,MAAM,KAAK,mBACxC;KAEI,eAAe,cAAc,OAAO,aAAa,mBAC1D,UAAU,YAAY,SAAS,aAAa,QAAQ;;;;;;;;;KAY3C,kBAAkB,wCACX;;;;KAKP,sBAAsB,OAAO,eAAe,cAChD,sBACJ,QAAQ,QACR,iC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