@orpc/server 1.12.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +3 -3
  2. package/dist/adapters/aws-lambda/index.d.mts +7 -7
  3. package/dist/adapters/aws-lambda/index.d.ts +7 -7
  4. package/dist/adapters/bun-ws/index.d.mts +7 -7
  5. package/dist/adapters/bun-ws/index.d.ts +7 -7
  6. package/dist/adapters/crossws/index.d.mts +7 -7
  7. package/dist/adapters/crossws/index.d.ts +7 -7
  8. package/dist/adapters/fastify/index.d.mts +7 -7
  9. package/dist/adapters/fastify/index.d.ts +7 -7
  10. package/dist/adapters/fetch/index.d.mts +10 -10
  11. package/dist/adapters/fetch/index.d.ts +10 -10
  12. package/dist/adapters/message-port/index.d.mts +8 -8
  13. package/dist/adapters/message-port/index.d.ts +8 -8
  14. package/dist/adapters/node/index.d.mts +10 -10
  15. package/dist/adapters/node/index.d.ts +10 -10
  16. package/dist/adapters/standard/index.d.mts +6 -6
  17. package/dist/adapters/standard/index.d.ts +6 -6
  18. package/dist/adapters/standard-peer/index.d.mts +3 -3
  19. package/dist/adapters/standard-peer/index.d.ts +3 -3
  20. package/dist/adapters/websocket/index.d.mts +7 -7
  21. package/dist/adapters/websocket/index.d.ts +7 -7
  22. package/dist/adapters/ws/index.d.mts +7 -7
  23. package/dist/adapters/ws/index.d.ts +7 -7
  24. package/dist/hibernation/index.d.mts +4 -4
  25. package/dist/hibernation/index.d.ts +4 -4
  26. package/dist/index.d.mts +100 -100
  27. package/dist/index.d.ts +100 -100
  28. package/dist/index.mjs +25 -25
  29. package/dist/plugins/index.d.mts +8 -8
  30. package/dist/plugins/index.d.ts +8 -8
  31. package/dist/shared/{server.DPIFWpxG.d.ts → server.7cEtMB30.d.ts} +1 -1
  32. package/dist/shared/{server.CVKCo60T.d.mts → server.B8gYOD5g.d.mts} +2 -2
  33. package/dist/shared/{server.DBCUJijK.d.mts → server.BqadksTP.d.mts} +1 -1
  34. package/dist/shared/{server.DzV1hr3z.d.mts → server.C8_sRzQB.d.mts} +1 -1
  35. package/dist/shared/{server.Ck-gOLzq.d.mts → server.ChUyt5-i.d.mts} +3 -3
  36. package/dist/shared/{server.Cb6yD7DZ.d.ts → server.ChyoA9XY.d.ts} +1 -1
  37. package/dist/shared/{server.DNtJ-p60.d.ts → server.EfTOZ2Q7.d.ts} +2 -2
  38. package/dist/shared/{server.B4BGqy3Y.d.mts → server.qKsRrdxW.d.mts} +8 -8
  39. package/dist/shared/{server.B4BGqy3Y.d.ts → server.qKsRrdxW.d.ts} +8 -8
  40. package/dist/shared/{server.COL12UTb.d.ts → server.yoEB3Fx4.d.ts} +3 -3
  41. package/package.json +12 -12
package/dist/index.d.ts CHANGED
@@ -4,10 +4,10 @@ import { AnySchema, ErrorMap, InferSchemaInput, InferSchemaOutput, ErrorFromErro
4
4
  export { ContractProcedure, ContractProcedureDef, ContractRouter, ErrorMap, ErrorMapItem, InferSchemaInput, InferSchemaOutput, InputStructure, MergedErrorMap, Meta, OutputStructure, Route, Schema, ValidationError, eventIterator, type, validateORPCError } from '@orpc/contract';
5
5
  import { ThrowableError, IntersectPick, MaybeOptionalOptions } from '@orpc/shared';
6
6
  export { AsyncIteratorClass, EventPublisher, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, IntersectPick, Registry, ThrowableError, asyncIteratorToStream as eventIteratorToStream, asyncIteratorToUnproxiedDataStream as eventIteratorToUnproxiedDataStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
7
- import { C as Context, P as Procedure, e as Middleware, O as ORPCErrorConstructorMap, M as MergedInitialContext, f as MergedCurrentContext, g as MapInputMiddleware, h as CreateProcedureClientOptions, i as ProcedureClient, j as ProcedureHandler, R as Router, c as Lazy, a as AnyMiddleware, b as AnyRouter, A as AnyProcedure, L as Lazyable, I as InferRouterInitialContext } from './shared/server.B4BGqy3Y.js';
8
- export { H as InferRouterCurrentContexts, G as InferRouterInitialContexts, J as InferRouterInputs, K as InferRouterOutputs, o as LAZY_SYMBOL, p as LazyMeta, w as MiddlewareNextFn, v as MiddlewareNextFnOptions, y as MiddlewareOptions, x as MiddlewareOutputFn, t as MiddlewareResult, l as ORPCErrorConstructorMapItem, k as ORPCErrorConstructorMapItemOptions, d as ProcedureClientInterceptorOptions, D as ProcedureDef, B as ProcedureHandlerOptions, n as createORPCErrorConstructorMap, F as createProcedureClient, s as getLazyMeta, r as isLazy, E as isProcedure, q as lazy, m as mergeCurrentContext, z as middlewareOutputFn, u as unlazy } from './shared/server.B4BGqy3Y.js';
9
- import { E as EnhanceRouterOptions, a as EnhancedRouter } from './shared/server.Cb6yD7DZ.js';
10
- export { A as AccessibleLazyRouter, C as ContractProcedureCallbackOptions, L as LazyTraverseContractProceduresOptions, T as TraverseContractProcedureCallbackOptions, b as TraverseContractProceduresOptions, U as UnlaziedRouter, c as createAccessibleLazyRouter, e as enhanceRouter, g as getRouter, r as resolveContractProcedures, t as traverseContractProcedures, u as unlazyRouter } from './shared/server.Cb6yD7DZ.js';
7
+ import { C as Context, P as Procedure, e as Middleware, O as ORPCErrorConstructorMap, M as MergedInitialContext, f as MergedCurrentContext, g as MapInputMiddleware, h as CreateProcedureClientOptions, i as ProcedureClient, j as ProcedureHandler, R as Router, c as Lazy, a as AnyMiddleware, b as AnyRouter, A as AnyProcedure, L as Lazyable, I as InferRouterInitialContext } from './shared/server.qKsRrdxW.js';
8
+ export { H as InferRouterCurrentContexts, G as InferRouterInitialContexts, J as InferRouterInputs, K as InferRouterOutputs, o as LAZY_SYMBOL, p as LazyMeta, w as MiddlewareNextFn, v as MiddlewareNextFnOptions, y as MiddlewareOptions, x as MiddlewareOutputFn, t as MiddlewareResult, l as ORPCErrorConstructorMapItem, k as ORPCErrorConstructorMapItemOptions, d as ProcedureClientInterceptorOptions, D as ProcedureDef, B as ProcedureHandlerOptions, n as createORPCErrorConstructorMap, F as createProcedureClient, s as getLazyMeta, r as isLazy, E as isProcedure, q as lazy, m as mergeCurrentContext, z as middlewareOutputFn, u as unlazy } from './shared/server.qKsRrdxW.js';
9
+ import { E as EnhanceRouterOptions, a as EnhancedRouter } from './shared/server.ChyoA9XY.js';
10
+ export { A as AccessibleLazyRouter, C as ContractProcedureCallbackOptions, L as LazyTraverseContractProceduresOptions, T as TraverseContractProcedureCallbackOptions, b as TraverseContractProceduresOptions, U as UnlaziedRouter, c as createAccessibleLazyRouter, e as enhanceRouter, g as getRouter, r as resolveContractProcedures, t as traverseContractProcedures, u as unlazyRouter } from './shared/server.ChyoA9XY.js';
11
11
  export { getEventMeta, withEventMeta } from '@orpc/standard-server';
12
12
 
13
13
  type ActionableError<T> = T extends ORPCError<infer U, infer V> ? ORPCErrorJSON<U, V> & {
@@ -31,14 +31,14 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
31
31
  * Adds type-safe custom errors.
32
32
  * The provided errors are spared-merged with any existing errors.
33
33
  *
34
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
34
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
35
35
  */
36
36
  errors<U extends ErrorMap>(errors: U): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
37
37
  /**
38
38
  * Sets or updates the metadata.
39
39
  * The provided metadata is spared-merged with any existing metadata.
40
40
  *
41
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
41
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
42
42
  */
43
43
  meta(meta: TMeta): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
44
44
  /**
@@ -46,8 +46,8 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
46
46
  * The provided route is spared-merged with any existing route.
47
47
  * This option is typically relevant when integrating with OpenAPI.
48
48
  *
49
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
50
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
49
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
50
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
51
51
  */
52
52
  route(route: Route): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
53
53
  /**
@@ -56,7 +56,7 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
56
56
  * @info Supports both normal middleware and inline middleware implementations.
57
57
  * @info Pass second argument to map the input.
58
58
  * @note The current context must be satisfy middleware dependent-context
59
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
59
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
60
60
  */
61
61
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>): DecoratedProcedure<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
62
62
  /**
@@ -65,19 +65,19 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
65
65
  * @info Supports both normal middleware and inline middleware implementations.
66
66
  * @info Pass second argument to map the input.
67
67
  * @note The current context must be satisfy middleware dependent-context
68
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
68
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
69
69
  */
70
70
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInput, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, UInput, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>, mapInput: MapInputMiddleware<InferSchemaOutput<TInputSchema>, UInput>): DecoratedProcedure<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
71
71
  /**
72
72
  * Make this procedure callable (works like a function while still being a procedure).
73
73
  *
74
- * @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
74
+ * @see {@link https://orpc.dev/docs/client/server-side Server-side Client Docs}
75
75
  */
76
76
  callable<TClientContext extends ClientContext>(...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, TClientContext>>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta> & ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
77
77
  /**
78
78
  * Make this procedure compatible with server action.
79
79
  *
80
- * @see {@link https://orpc.unnoq.com/docs/server-action Server Action Docs}
80
+ * @see {@link https://orpc.dev/docs/server-action Server Action Docs}
81
81
  */
82
82
  actionable(...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, Record<never, never>>>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta> & ProcedureActionableClient<TInputSchema, TOutputSchema, TErrorMap>;
83
83
  }
@@ -91,7 +91,7 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
91
91
  * Adds type-safe custom errors.
92
92
  * The provided errors are spared-merged with any existing errors.
93
93
  *
94
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
94
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
95
95
  */
96
96
  'errors'<U extends ErrorMap>(errors: U): BuilderWithMiddlewares<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
97
97
  /**
@@ -99,14 +99,14 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
99
99
  *
100
100
  * @info Supports both normal middleware and inline middleware implementations.
101
101
  * @note The current context must be satisfy middleware dependent-context
102
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
102
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
103
103
  */
104
104
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, unknown, ORPCErrorConstructorMap<TErrorMap>, TMeta>): BuilderWithMiddlewares<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
105
105
  /**
106
106
  * Sets or updates the metadata.
107
107
  * The provided metadata is spared-merged with any existing metadata.
108
108
  *
109
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
109
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
110
110
  */
111
111
  'meta'(meta: TMeta): BuilderWithMiddlewares<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
112
112
  /**
@@ -114,26 +114,26 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
114
114
  * The provided route is spared-merged with any existing route.
115
115
  * This option is typically relevant when integrating with OpenAPI.
116
116
  *
117
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
118
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
117
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
118
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
119
119
  */
120
120
  'route'(route: Route): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
121
121
  /**
122
122
  * Defines the input validation schema.
123
123
  *
124
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Input Validation Docs}
124
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs}
125
125
  */
126
126
  'input'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
127
127
  /**
128
128
  * Defines the output validation schema.
129
129
  *
130
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Output Validation Docs}
130
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Output Validation Docs}
131
131
  */
132
132
  'output'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
133
133
  /**
134
134
  * Defines the handler of the procedure.
135
135
  *
136
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
136
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
137
137
  */
138
138
  'handler'<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
139
139
  /**
@@ -142,27 +142,27 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
142
142
  *
143
143
  * @note This option does not affect procedures that do not define a path in their route definition.
144
144
  *
145
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
145
+ * @see {@link https://orpc.dev/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
146
146
  */
147
147
  'prefix'(prefix: HTTPPath): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
148
148
  /**
149
149
  * Adds tags to all procedures in the router.
150
150
  * This helpful when you want to group procedures together in the OpenAPI specification.
151
151
  *
152
- * @see {@link https://orpc.unnoq.com/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
152
+ * @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
153
153
  */
154
154
  'tag'(...tags: string[]): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
155
155
  /**
156
156
  * Applies all of the previously defined options to the specified router.
157
157
  *
158
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
158
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
159
159
  */
160
160
  'router'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>;
161
161
  /**
162
162
  * Create a lazy router
163
163
  * And applies all of the previously defined options to the specified router.
164
164
  *
165
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
165
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
166
166
  */
167
167
  'lazy'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(loader: () => Promise<{
168
168
  default: U;
@@ -177,7 +177,7 @@ interface ProcedureBuilder<TInitialContext extends Context, TCurrentContext exte
177
177
  * Adds type-safe custom errors.
178
178
  * The provided errors are spared-merged with any existing errors.
179
179
  *
180
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
180
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
181
181
  */
182
182
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
183
183
  /**
@@ -185,14 +185,14 @@ interface ProcedureBuilder<TInitialContext extends Context, TCurrentContext exte
185
185
  *
186
186
  * @info Supports both normal middleware and inline middleware implementations.
187
187
  * @note The current context must be satisfy middleware dependent-context
188
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
188
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
189
189
  */
190
190
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, unknown, ORPCErrorConstructorMap<TErrorMap>, TMeta>): ProcedureBuilder<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
191
191
  /**
192
192
  * Sets or updates the metadata.
193
193
  * The provided metadata is spared-merged with any existing metadata.
194
194
  *
195
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
195
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
196
196
  */
197
197
  'meta'(meta: TMeta): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
198
198
  /**
@@ -200,26 +200,26 @@ interface ProcedureBuilder<TInitialContext extends Context, TCurrentContext exte
200
200
  * The provided route is spared-merged with any existing route.
201
201
  * This option is typically relevant when integrating with OpenAPI.
202
202
  *
203
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
204
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
203
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
204
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
205
205
  */
206
206
  'route'(route: Route): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
207
207
  /**
208
208
  * Defines the input validation schema.
209
209
  *
210
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Input Validation Docs}
210
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs}
211
211
  */
212
212
  'input'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
213
213
  /**
214
214
  * Defines the output validation schema.
215
215
  *
216
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Output Validation Docs}
216
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Output Validation Docs}
217
217
  */
218
218
  'output'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
219
219
  /**
220
220
  * Defines the handler of the procedure.
221
221
  *
222
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
222
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
223
223
  */
224
224
  'handler'<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
225
225
  }
@@ -232,7 +232,7 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
232
232
  * Adds type-safe custom errors.
233
233
  * The provided errors are spared-merged with any existing errors.
234
234
  *
235
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
235
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
236
236
  */
237
237
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
238
238
  /**
@@ -241,7 +241,7 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
241
241
  * @info Supports both normal middleware and inline middleware implementations.
242
242
  * @info Pass second argument to map the input.
243
243
  * @note The current context must be satisfy middleware dependent-context
244
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
244
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
245
245
  */
246
246
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, InferSchemaOutput<TInputSchema>, unknown, ORPCErrorConstructorMap<TErrorMap>, TMeta>): ProcedureBuilderWithInput<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
247
247
  /**
@@ -250,14 +250,14 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
250
250
  * @info Supports both normal middleware and inline middleware implementations.
251
251
  * @info Pass second argument to map the input.
252
252
  * @note The current context must be satisfy middleware dependent-context
253
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
253
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
254
254
  */
255
255
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInput, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, UInput, unknown, ORPCErrorConstructorMap<TErrorMap>, TMeta>, mapInput: MapInputMiddleware<InferSchemaOutput<TInputSchema>, UInput>): ProcedureBuilderWithInput<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
256
256
  /**
257
257
  * Sets or updates the metadata.
258
258
  * The provided metadata is spared-merged with any existing metadata.
259
259
  *
260
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
260
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
261
261
  */
262
262
  'meta'(meta: TMeta): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
263
263
  /**
@@ -265,20 +265,20 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
265
265
  * The provided route is spared-merged with any existing route.
266
266
  * This option is typically relevant when integrating with OpenAPI.
267
267
  *
268
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
269
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
268
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
269
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
270
270
  */
271
271
  'route'(route: Route): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
272
272
  /**
273
273
  * Defines the output validation schema.
274
274
  *
275
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Output Validation Docs}
275
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Output Validation Docs}
276
276
  */
277
277
  'output'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
278
278
  /**
279
279
  * Defines the handler of the procedure.
280
280
  *
281
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
281
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
282
282
  */
283
283
  'handler'<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, InferSchemaOutput<TInputSchema>, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
284
284
  }
@@ -291,7 +291,7 @@ interface ProcedureBuilderWithOutput<TInitialContext extends Context, TCurrentCo
291
291
  * Adds type-safe custom errors.
292
292
  * The provided errors are spared-merged with any existing errors.
293
293
  *
294
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
294
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
295
295
  */
296
296
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
297
297
  /**
@@ -299,14 +299,14 @@ interface ProcedureBuilderWithOutput<TInitialContext extends Context, TCurrentCo
299
299
  *
300
300
  * @info Supports both normal middleware and inline middleware implementations.
301
301
  * @note The current context must be satisfy middleware dependent-context
302
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
302
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
303
303
  */
304
304
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>): ProcedureBuilderWithOutput<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
305
305
  /**
306
306
  * Sets or updates the metadata.
307
307
  * The provided metadata is spared-merged with any existing metadata.
308
308
  *
309
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
309
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
310
310
  */
311
311
  'meta'(meta: TMeta): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
312
312
  /**
@@ -314,20 +314,20 @@ interface ProcedureBuilderWithOutput<TInitialContext extends Context, TCurrentCo
314
314
  * The provided route is spared-merged with any existing route.
315
315
  * This option is typically relevant when integrating with OpenAPI.
316
316
  *
317
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
318
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
317
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
318
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
319
319
  */
320
320
  'route'(route: Route): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
321
321
  /**
322
322
  * Defines the input validation schema.
323
323
  *
324
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Input Validation Docs}
324
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs}
325
325
  */
326
326
  'input'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
327
327
  /**
328
328
  * Defines the handler of the procedure.
329
329
  *
330
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
330
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
331
331
  */
332
332
  'handler'(handler: ProcedureHandler<TCurrentContext, unknown, InferSchemaInput<TOutputSchema>, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
333
333
  }
@@ -340,7 +340,7 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
340
340
  * Adds type-safe custom errors.
341
341
  * The provided errors are spared-merged with any existing errors.
342
342
  *
343
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
343
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
344
344
  */
345
345
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
346
346
  /**
@@ -349,7 +349,7 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
349
349
  * @info Supports both normal middleware and inline middleware implementations.
350
350
  * @info Pass second argument to map the input.
351
351
  * @note The current context must be satisfy middleware dependent-context
352
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
352
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
353
353
  */
354
354
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>): ProcedureBuilderWithInputOutput<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
355
355
  /**
@@ -358,14 +358,14 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
358
358
  * @info Supports both normal middleware and inline middleware implementations.
359
359
  * @info Pass second argument to map the input.
360
360
  * @note The current context must be satisfy middleware dependent-context
361
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
361
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
362
362
  */
363
363
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInput, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, UInput, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>, mapInput: MapInputMiddleware<InferSchemaOutput<TInputSchema>, UInput>): ProcedureBuilderWithInputOutput<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
364
364
  /**
365
365
  * Sets or updates the metadata.
366
366
  * The provided metadata is spared-merged with any existing metadata.
367
367
  *
368
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
368
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
369
369
  */
370
370
  'meta'(meta: TMeta): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
371
371
  /**
@@ -373,14 +373,14 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
373
373
  * The provided route is spared-merged with any existing route.
374
374
  * This option is typically relevant when integrating with OpenAPI.
375
375
  *
376
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
377
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
376
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
377
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
378
378
  */
379
379
  'route'(route: Route): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
380
380
  /**
381
381
  * Defines the handler of the procedure.
382
382
  *
383
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
383
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
384
384
  */
385
385
  'handler'(handler: ProcedureHandler<TCurrentContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
386
386
  }
@@ -393,7 +393,7 @@ interface RouterBuilder<TInitialContext extends Context, TCurrentContext extends
393
393
  * Adds type-safe custom errors.
394
394
  * The provided errors are spared-merged with any existing errors.
395
395
  *
396
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
396
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
397
397
  */
398
398
  'errors'<U extends ErrorMap>(errors: U): RouterBuilder<TInitialContext, TCurrentContext, MergedErrorMap<TErrorMap, U>, TMeta>;
399
399
  /**
@@ -401,7 +401,7 @@ interface RouterBuilder<TInitialContext extends Context, TCurrentContext extends
401
401
  *
402
402
  * @info Supports both normal middleware and inline middleware implementations.
403
403
  * @note The current context must be satisfy middleware dependent-context
404
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
404
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
405
405
  */
406
406
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, unknown, ORPCErrorConstructorMap<TErrorMap>, TMeta>): RouterBuilder<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TErrorMap, TMeta>;
407
407
  /**
@@ -410,27 +410,27 @@ interface RouterBuilder<TInitialContext extends Context, TCurrentContext extends
410
410
  *
411
411
  * @note This option does not affect procedures that do not define a path in their route definition.
412
412
  *
413
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
413
+ * @see {@link https://orpc.dev/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
414
414
  */
415
415
  'prefix'(prefix: HTTPPath): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
416
416
  /**
417
417
  * Adds tags to all procedures in the router.
418
418
  * This helpful when you want to group procedures together in the OpenAPI specification.
419
419
  *
420
- * @see {@link https://orpc.unnoq.com/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
420
+ * @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
421
421
  */
422
422
  'tag'(...tags: string[]): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
423
423
  /**
424
424
  * Applies all of the previously defined options to the specified router.
425
425
  *
426
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
426
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
427
427
  */
428
428
  'router'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>;
429
429
  /**
430
430
  * Create a lazy router
431
431
  * And applies all of the previously defined options to the specified router.
432
432
  *
433
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
433
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
434
434
  */
435
435
  'lazy'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(loader: () => Promise<{
436
436
  default: U;
@@ -446,14 +446,14 @@ interface DecoratedMiddleware<TInContext extends Context, TOutContext extends Co
446
446
  * Concatenates two middlewares.
447
447
  *
448
448
  * @info Pass second argument to map the input.
449
- * @see {@link https://orpc.unnoq.com/docs/middleware#concatenation Middleware Concatenation Docs}
449
+ * @see {@link https://orpc.dev/docs/middleware#concatenation Middleware Concatenation Docs}
450
450
  */
451
451
  concat<UOutContext extends IntersectPick<MergedCurrentContext<TInContext, TOutContext>, UOutContext>, UInput extends TInput, UInContext extends Context = MergedCurrentContext<TInContext, TOutContext>>(middleware: Middleware<UInContext | MergedCurrentContext<TInContext, TOutContext>, UOutContext, UInput, TOutput, TErrorConstructorMap, TMeta>): DecoratedMiddleware<MergedInitialContext<TInContext, UInContext, MergedCurrentContext<TInContext, TOutContext>>, MergedCurrentContext<TOutContext, UOutContext>, UInput, TOutput, TErrorConstructorMap, TMeta>;
452
452
  /**
453
453
  * Concatenates two middlewares.
454
454
  *
455
455
  * @info Pass second argument to map the input.
456
- * @see {@link https://orpc.unnoq.com/docs/middleware#concatenation Middleware Concatenation Docs}
456
+ * @see {@link https://orpc.dev/docs/middleware#concatenation Middleware Concatenation Docs}
457
457
  */
458
458
  concat<UOutContext extends IntersectPick<MergedCurrentContext<TInContext, TOutContext>, UOutContext>, UInput extends TInput, UMappedInput, UInContext extends Context = MergedCurrentContext<TInContext, TOutContext>>(middleware: Middleware<UInContext | MergedCurrentContext<TInContext, TOutContext>, UOutContext, UMappedInput, TOutput, TErrorConstructorMap, TMeta>, mapInput: MapInputMiddleware<UInput, UMappedInput>): DecoratedMiddleware<MergedInitialContext<TInContext, UInContext, MergedCurrentContext<TInContext, TOutContext>>, MergedCurrentContext<TOutContext, UOutContext>, UInput, TOutput, TErrorConstructorMap, TMeta>;
459
459
  }
@@ -479,40 +479,40 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
479
479
  /**
480
480
  * Sets or overrides the config.
481
481
  *
482
- * @see {@link https://orpc.unnoq.com/docs/client/server-side#middlewares-order Middlewares Order Docs}
483
- * @see {@link https://orpc.unnoq.com/docs/best-practices/dedupe-middleware#configuration Dedupe Middleware Docs}
482
+ * @see {@link https://orpc.dev/docs/client/server-side#middlewares-order Middlewares Order Docs}
483
+ * @see {@link https://orpc.dev/docs/best-practices/dedupe-middleware#configuration Dedupe Middleware Docs}
484
484
  */
485
485
  $config(config: BuilderConfig): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
486
486
  /**
487
487
  * Set or override the initial context.
488
488
  *
489
- * @see {@link https://orpc.unnoq.com/docs/context Context Docs}
489
+ * @see {@link https://orpc.dev/docs/context Context Docs}
490
490
  */
491
491
  $context<U extends Context>(): Builder<U & Record<never, never>, U, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
492
492
  /**
493
493
  * Sets or overrides the initial meta.
494
494
  *
495
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
495
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
496
496
  */
497
497
  $meta<U extends Meta>(initialMeta: U): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, U & Record<never, never>>;
498
498
  /**
499
499
  * Sets or overrides the initial route.
500
500
  * This option is typically relevant when integrating with OpenAPI.
501
501
  *
502
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
503
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
502
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
503
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
504
504
  */
505
505
  $route(initialRoute: Route): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
506
506
  /**
507
507
  * Sets or overrides the initial input schema.
508
508
  *
509
- * @see {@link https://orpc.unnoq.com/docs/procedure#initial-configuration Initial Procedure Configuration Docs}
509
+ * @see {@link https://orpc.dev/docs/procedure#initial-configuration Initial Procedure Configuration Docs}
510
510
  */
511
511
  $input<U extends AnySchema>(initialInputSchema?: U): Builder<TInitialContext, TCurrentContext, U, TOutputSchema, TErrorMap, TMeta>;
512
512
  /**
513
513
  * Creates a middleware.
514
514
  *
515
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
515
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
516
516
  */
517
517
  middleware<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, TInput, TOutput = any>(// = any here is important to make middleware can be used in any output by default
518
518
  middleware: Middleware<TInitialContext, UOutContext, TInput, TOutput, ORPCErrorConstructorMap<TErrorMap>, TMeta>): DecoratedMiddleware<TInitialContext, UOutContext, TInput, TOutput, any, TMeta>;
@@ -520,7 +520,7 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
520
520
  * Adds type-safe custom errors.
521
521
  * The provided errors are spared-merged with any existing errors.
522
522
  *
523
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
523
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
524
524
  */
525
525
  errors<U extends ErrorMap>(errors: U): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
526
526
  /**
@@ -528,14 +528,14 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
528
528
  *
529
529
  * @info Supports both normal middleware and inline middleware implementations.
530
530
  * @note The current context must be satisfy middleware dependent-context
531
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
531
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
532
532
  */
533
533
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, unknown, ORPCErrorConstructorMap<TErrorMap>, TMeta>): BuilderWithMiddlewares<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
534
534
  /**
535
535
  * Sets or updates the metadata.
536
536
  * The provided metadata is spared-merged with any existing metadata.
537
537
  *
538
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
538
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
539
539
  */
540
540
  meta(meta: TMeta): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
541
541
  /**
@@ -543,26 +543,26 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
543
543
  * The provided route is spared-merged with any existing route.
544
544
  * This option is typically relevant when integrating with OpenAPI.
545
545
  *
546
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
547
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
546
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
547
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
548
548
  */
549
549
  route(route: Route): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
550
550
  /**
551
551
  * Defines the input validation schema.
552
552
  *
553
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Input Validation Docs}
553
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs}
554
554
  */
555
555
  input<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
556
556
  /**
557
557
  * Defines the output validation schema.
558
558
  *
559
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Output Validation Docs}
559
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Output Validation Docs}
560
560
  */
561
561
  output<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
562
562
  /**
563
563
  * Defines the handler of the procedure.
564
564
  *
565
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
565
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
566
566
  */
567
567
  handler<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
568
568
  /**
@@ -571,27 +571,27 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
571
571
  *
572
572
  * @note This option does not affect procedures that do not define a path in their route definition.
573
573
  *
574
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
574
+ * @see {@link https://orpc.dev/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
575
575
  */
576
576
  prefix(prefix: HTTPPath): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
577
577
  /**
578
578
  * Adds tags to all procedures in the router.
579
579
  * This helpful when you want to group procedures together in the OpenAPI specification.
580
580
  *
581
- * @see {@link https://orpc.unnoq.com/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
581
+ * @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
582
582
  */
583
583
  tag(...tags: string[]): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
584
584
  /**
585
585
  * Applies all of the previously defined options to the specified router.
586
586
  *
587
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
587
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
588
588
  */
589
589
  router<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>;
590
590
  /**
591
591
  * Create a lazy router
592
592
  * And applies all of the previously defined options to the specified router.
593
593
  *
594
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
594
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
595
595
  */
596
596
  lazy<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(loader: () => Promise<{
597
597
  default: U;
@@ -616,7 +616,7 @@ interface ImplementedProcedure<TInitialContext extends Context, TCurrentContext
616
616
  * @info Supports both normal middleware and inline middleware implementations.
617
617
  * @info Pass second argument to map the input.
618
618
  * @note The current context must be satisfy middleware dependent-context
619
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
619
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
620
620
  */
621
621
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>): ImplementedProcedure<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
622
622
  /**
@@ -625,19 +625,19 @@ interface ImplementedProcedure<TInitialContext extends Context, TCurrentContext
625
625
  * @info Supports both normal middleware and inline middleware implementations.
626
626
  * @info Pass second argument to map the input.
627
627
  * @note The current context must be satisfy middleware dependent-context
628
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
628
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
629
629
  */
630
630
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInput, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, UInput, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>, mapInput: MapInputMiddleware<InferSchemaOutput<TInputSchema>, UInput>): ImplementedProcedure<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
631
631
  /**
632
632
  * Make this procedure callable (works like a function while still being a procedure).
633
633
  *
634
- * @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
634
+ * @see {@link https://orpc.dev/docs/client/server-side Server-side Client Docs}
635
635
  */
636
636
  callable<TClientContext extends ClientContext>(...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, TClientContext>>): ImplementedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta> & ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
637
637
  /**
638
638
  * Make this procedure compatible with server action.
639
639
  *
640
- * @see {@link https://orpc.unnoq.com/docs/server-action Server Action Docs}
640
+ * @see {@link https://orpc.dev/docs/server-action Server Action Docs}
641
641
  */
642
642
  actionable(...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, Record<never, never>>>): ImplementedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta> & ProcedureActionableClient<TInputSchema, TOutputSchema, TErrorMap>;
643
643
  }
@@ -652,7 +652,7 @@ interface ProcedureImplementer<TInitialContext extends Context, TCurrentContext
652
652
  * @info Supports both normal middleware and inline middleware implementations.
653
653
  * @info Pass second argument to map the input.
654
654
  * @note The current context must be satisfy middleware dependent-context
655
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
655
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
656
656
  */
657
657
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>): ProcedureImplementer<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
658
658
  /**
@@ -661,13 +661,13 @@ interface ProcedureImplementer<TInitialContext extends Context, TCurrentContext
661
661
  * @info Supports both normal middleware and inline middleware implementations.
662
662
  * @info Pass second argument to map the input.
663
663
  * @note The current context must be satisfy middleware dependent-context
664
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
664
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
665
665
  */
666
666
  'use'<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInput, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, UInput, InferSchemaInput<TOutputSchema>, ORPCErrorConstructorMap<TErrorMap>, TMeta>, mapInput: MapInputMiddleware<InferSchemaOutput<TInputSchema>, UInput>): ProcedureImplementer<MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
667
667
  /**
668
668
  * Defines the handler of the procedure.
669
669
  *
670
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
670
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
671
671
  */
672
672
  'handler'(handler: ProcedureHandler<TCurrentContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, TErrorMap, TMeta>): ImplementedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
673
673
  }
@@ -678,14 +678,14 @@ interface RouterImplementerWithMiddlewares<T extends AnyContractRouter, TInitial
678
678
  *
679
679
  * @info Supports both normal middleware and inline middleware implementations.
680
680
  * @note The current context must be satisfy middleware dependent-context
681
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
681
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
682
682
  */
683
683
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, unknown, ORPCErrorConstructorMap<InferContractRouterErrorMap<T>>, InferContractRouterMeta<T>>): ImplementerInternalWithMiddlewares<T, MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>>;
684
684
  /**
685
685
  * Applies all of the previously defined options to the specified router.
686
686
  * And enforces the router match the contract.
687
687
  *
688
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
688
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
689
689
  */
690
690
  router<U extends Router<T, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, Record<never, never>>;
691
691
  /**
@@ -693,7 +693,7 @@ interface RouterImplementerWithMiddlewares<T extends AnyContractRouter, TInitial
693
693
  * And applies all of the previously defined options to the specified router.
694
694
  * And enforces the router match the contract.
695
695
  *
696
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
696
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
697
697
  */
698
698
  lazy<U extends Router<T, TInitialContext>>(loader: () => Promise<{
699
699
  default: U;
@@ -707,7 +707,7 @@ interface RouterImplementer<T extends AnyContractRouter, TInitialContext extends
707
707
  /**
708
708
  * Creates a middleware.
709
709
  *
710
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
710
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
711
711
  */
712
712
  middleware<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, TInput, TOutput = any>(// = any here is important to make middleware can be used in any output by default
713
713
  middleware: Middleware<TInitialContext, UOutContext, TInput, TOutput, ORPCErrorConstructorMap<InferContractRouterErrorMap<T>>, InferContractRouterMeta<T>>): DecoratedMiddleware<TInitialContext, UOutContext, TInput, TOutput, any, InferContractRouterMeta<T>>;
@@ -716,14 +716,14 @@ interface RouterImplementer<T extends AnyContractRouter, TInitialContext extends
716
716
  *
717
717
  * @info Supports both normal middleware and inline middleware implementations.
718
718
  * @note The current context must be satisfy middleware dependent-context
719
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
719
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
720
720
  */
721
721
  use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(middleware: Middleware<UInContext | TCurrentContext, UOutContext, unknown, unknown, ORPCErrorConstructorMap<InferContractRouterErrorMap<T>>, InferContractRouterMeta<T>>): ImplementerInternalWithMiddlewares<T, MergedInitialContext<TInitialContext, UInContext, TCurrentContext>, MergedCurrentContext<TCurrentContext, UOutContext>>;
722
722
  /**
723
723
  * Applies all of the previously defined options to the specified router.
724
724
  * And enforces the router match the contract.
725
725
  *
726
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
726
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
727
727
  */
728
728
  router<U extends Router<T, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, Record<never, never>>;
729
729
  /**
@@ -731,7 +731,7 @@ interface RouterImplementer<T extends AnyContractRouter, TInitialContext extends
731
731
  * And applies all of the previously defined options to the specified router.
732
732
  * And enforces the router match the contract.
733
733
  *
734
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
734
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
735
735
  */
736
736
  lazy<U extends Router<T, TCurrentContext>>(loader: () => Promise<{
737
737
  default: U;
@@ -745,14 +745,14 @@ type Implementer<TContract extends AnyContractRouter, TInitialContext extends Co
745
745
  /**
746
746
  * Set or override the initial context.
747
747
  *
748
- * @see {@link https://orpc.unnoq.com/docs/context Context Docs}
748
+ * @see {@link https://orpc.dev/docs/context Context Docs}
749
749
  */
750
750
  $context<U extends Context>(): Implementer<TContract, U & Record<never, never>, U>;
751
751
  /**
752
752
  * Sets or overrides the config.
753
753
  *
754
- * @see {@link https://orpc.unnoq.com/docs/client/server-side#middlewares-order Middlewares Order Docs}
755
- * @see {@link https://orpc.unnoq.com/docs/best-practices/dedupe-middleware#configuration Dedupe Middleware Docs}
754
+ * @see {@link https://orpc.dev/docs/client/server-side#middlewares-order Middlewares Order Docs}
755
+ * @see {@link https://orpc.dev/docs/best-practices/dedupe-middleware#configuration Dedupe Middleware Docs}
756
756
  */
757
757
  $config(config: BuilderConfig): Implementer<TContract, TInitialContext, TCurrentContext>;
758
758
  } & ImplementerInternal<TContract, TInitialContext, TCurrentContext>;
@@ -792,7 +792,7 @@ type RouterClient<TRouter extends AnyRouter, TClientContext extends ClientContex
792
792
  /**
793
793
  * Create Server-side client from a router.
794
794
  *
795
- * @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
795
+ * @see {@link https://orpc.dev/docs/client/server-side Server-side Client Docs}
796
796
  */
797
797
  declare function createRouterClient<T extends AnyRouter, TClientContext extends ClientContext>(router: Lazyable<T | undefined>, ...rest: MaybeOptionalOptions<CreateProcedureClientOptions<InferRouterInitialContext<T>, Schema<unknown, unknown>, ErrorMap, Meta, TClientContext>>): RouterClient<T, TClientContext>;
798
798