@orpc/server 0.0.0-next.e82d760 → 0.0.0-next.e8416db

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 (65) hide show
  1. package/README.md +11 -6
  2. package/dist/adapters/aws-lambda/index.d.mts +9 -8
  3. package/dist/adapters/aws-lambda/index.d.ts +9 -8
  4. package/dist/adapters/aws-lambda/index.mjs +6 -5
  5. package/dist/adapters/bun-ws/index.d.mts +14 -13
  6. package/dist/adapters/bun-ws/index.d.ts +14 -13
  7. package/dist/adapters/bun-ws/index.mjs +17 -16
  8. package/dist/adapters/crossws/index.d.mts +10 -7
  9. package/dist/adapters/crossws/index.d.ts +10 -7
  10. package/dist/adapters/crossws/index.mjs +9 -10
  11. package/dist/adapters/fastify/index.d.mts +53 -0
  12. package/dist/adapters/fastify/index.d.ts +53 -0
  13. package/dist/adapters/fastify/index.mjs +54 -0
  14. package/dist/adapters/fetch/index.d.mts +57 -11
  15. package/dist/adapters/fetch/index.d.ts +57 -11
  16. package/dist/adapters/fetch/index.mjs +74 -4
  17. package/dist/adapters/message-port/index.d.mts +42 -13
  18. package/dist/adapters/message-port/index.d.ts +42 -13
  19. package/dist/adapters/message-port/index.mjs +32 -18
  20. package/dist/adapters/node/index.d.mts +34 -12
  21. package/dist/adapters/node/index.d.ts +34 -12
  22. package/dist/adapters/node/index.mjs +70 -13
  23. package/dist/adapters/standard/index.d.mts +8 -13
  24. package/dist/adapters/standard/index.d.ts +8 -13
  25. package/dist/adapters/standard/index.mjs +3 -2
  26. package/dist/adapters/standard-peer/index.d.mts +18 -0
  27. package/dist/adapters/standard-peer/index.d.ts +18 -0
  28. package/dist/adapters/standard-peer/index.mjs +7 -0
  29. package/dist/adapters/websocket/index.d.mts +20 -15
  30. package/dist/adapters/websocket/index.d.ts +20 -15
  31. package/dist/adapters/websocket/index.mjs +13 -15
  32. package/dist/adapters/ws/index.d.mts +13 -10
  33. package/dist/adapters/ws/index.d.ts +13 -10
  34. package/dist/adapters/ws/index.mjs +13 -15
  35. package/dist/helpers/index.d.mts +149 -0
  36. package/dist/helpers/index.d.ts +149 -0
  37. package/dist/helpers/index.mjs +198 -0
  38. package/dist/hibernation/index.d.mts +13 -13
  39. package/dist/hibernation/index.d.ts +13 -13
  40. package/dist/hibernation/index.mjs +8 -8
  41. package/dist/index.d.mts +105 -136
  42. package/dist/index.d.ts +105 -136
  43. package/dist/index.mjs +37 -33
  44. package/dist/plugins/index.d.mts +25 -9
  45. package/dist/plugins/index.d.ts +25 -9
  46. package/dist/plugins/index.mjs +86 -58
  47. package/dist/shared/{server.-ACo36I0.d.ts → server.7cEtMB30.d.ts} +3 -3
  48. package/dist/shared/server.B8gYOD5g.d.mts +12 -0
  49. package/dist/shared/{server.Dq8xr7PQ.d.mts → server.BqadksTP.d.mts} +3 -3
  50. package/dist/shared/{server.CB8Snncu.mjs → server.Bxx6tqNe.mjs} +74 -41
  51. package/dist/shared/server.C8_sRzQB.d.mts +42 -0
  52. package/dist/shared/server.ChUyt5-i.d.mts +32 -0
  53. package/dist/shared/server.ChyoA9XY.d.ts +42 -0
  54. package/dist/shared/{server.DLJzqnSX.mjs → server.Ds4HPpvH.mjs} +114 -73
  55. package/dist/shared/server.EfTOZ2Q7.d.ts +12 -0
  56. package/dist/shared/{server.BW-nUGgA.mjs → server.TEVCLCFC.mjs} +3 -0
  57. package/dist/shared/server.UVMTOWrk.mjs +26 -0
  58. package/dist/shared/{server.DD2C4ujN.d.mts → server.qKsRrdxW.d.mts} +14 -13
  59. package/dist/shared/{server.DD2C4ujN.d.ts → server.qKsRrdxW.d.ts} +14 -13
  60. package/dist/shared/server.yoEB3Fx4.d.ts +32 -0
  61. package/package.json +34 -13
  62. package/dist/shared/server.BPAWobQg.d.ts +0 -12
  63. package/dist/shared/server.Bd52nNaH.d.mts +0 -12
  64. package/dist/shared/server.BliFSTnG.d.mts +0 -10
  65. package/dist/shared/server.IG2MjhrD.d.ts +0 -10
package/dist/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import { ORPCErrorJSON, ORPCError, Client, ClientContext, HTTPPath, HTTPMethod, ClientOptions, ClientPromiseResult } from '@orpc/client';
2
2
  export { ClientContext, HTTPMethod, HTTPPath, ORPCError, isDefinedError, safe } from '@orpc/client';
3
- import { AnySchema, ErrorMap, InferSchemaInput, InferSchemaOutput, ErrorFromErrorMap, Meta, MergedErrorMap, Route, EnhanceRouteOptions, AnyContractRouter, AnyContractProcedure, Schema, ContractRouter, ContractProcedureDef, ContractProcedure, InferContractRouterErrorMap, InferContractRouterMeta } from '@orpc/contract';
4
- export { ContractProcedure, ContractProcedureDef, ContractRouter, ErrorMap, ErrorMapItem, InferSchemaInput, InferSchemaOutput, InputStructure, MergedErrorMap, Meta, OutputStructure, Route, Schema, ValidationError, eventIterator, type } from '@orpc/contract';
3
+ import { AnySchema, ErrorMap, InferSchemaInput, InferSchemaOutput, ErrorFromErrorMap, Meta, MergedErrorMap, Route, Schema, ContractRouter, ContractProcedureDef, AnyContractRouter, ContractProcedure, InferContractRouterErrorMap, InferContractRouterMeta, AnyContractProcedure } from '@orpc/contract';
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
- export { EventPublisher, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, IntersectPick, Registry, ThrowableError, onError, onFinish, onStart, onSuccess } from '@orpc/shared';
7
- import { C as Context, P as Procedure, M as Middleware, O as ORPCErrorConstructorMap, a as MergedInitialContext, b as MergedCurrentContext, c as MapInputMiddleware, d as CreateProcedureClientOptions, e as ProcedureClient, A as AnyMiddleware, L as Lazyable, f as AnyRouter, g as Lazy, h as AnyProcedure, i as ProcedureHandler, R as Router, I as InferRouterInitialContext } from './shared/server.DD2C4ujN.js';
8
- export { J as InferRouterCurrentContexts, H as InferRouterInitialContexts, K as InferRouterInputs, N as InferRouterOutputs, n as LAZY_SYMBOL, o as LazyMeta, w as MiddlewareNextFn, t as MiddlewareNextFnOptions, y as MiddlewareOptions, x as MiddlewareOutputFn, s as MiddlewareResult, k as ORPCErrorConstructorMapItem, j as ORPCErrorConstructorMapItemOptions, F as ProcedureClientInterceptorOptions, D as ProcedureDef, B as ProcedureHandlerOptions, l as createORPCErrorConstructorMap, G as createProcedureClient, r as getLazyMeta, q as isLazy, E as isProcedure, p as lazy, m as mergeCurrentContext, z as middlewareOutputFn, u as unlazy, v as validateORPCError } from './shared/server.DD2C4ujN.js';
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.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';
9
11
  export { getEventMeta, withEventMeta } from '@orpc/standard-server';
10
12
 
11
13
  type ActionableError<T> = T extends ORPCError<infer U, infer V> ? ORPCErrorJSON<U, V> & {
@@ -29,14 +31,14 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
29
31
  * Adds type-safe custom errors.
30
32
  * The provided errors are spared-merged with any existing errors.
31
33
  *
32
- * @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}
33
35
  */
34
36
  errors<U extends ErrorMap>(errors: U): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
35
37
  /**
36
38
  * Sets or updates the metadata.
37
39
  * The provided metadata is spared-merged with any existing metadata.
38
40
  *
39
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
41
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
40
42
  */
41
43
  meta(meta: TMeta): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
42
44
  /**
@@ -44,8 +46,8 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
44
46
  * The provided route is spared-merged with any existing route.
45
47
  * This option is typically relevant when integrating with OpenAPI.
46
48
  *
47
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
48
- * @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}
49
51
  */
50
52
  route(route: Route): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
51
53
  /**
@@ -54,7 +56,7 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
54
56
  * @info Supports both normal middleware and inline middleware implementations.
55
57
  * @info Pass second argument to map the input.
56
58
  * @note The current context must be satisfy middleware dependent-context
57
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
59
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
58
60
  */
59
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>;
60
62
  /**
@@ -63,56 +65,23 @@ declare class DecoratedProcedure<TInitialContext extends Context, TCurrentContex
63
65
  * @info Supports both normal middleware and inline middleware implementations.
64
66
  * @info Pass second argument to map the input.
65
67
  * @note The current context must be satisfy middleware dependent-context
66
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
68
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
67
69
  */
68
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>;
69
71
  /**
70
72
  * Make this procedure callable (works like a function while still being a procedure).
71
73
  *
72
- * @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}
73
75
  */
74
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>;
75
77
  /**
76
78
  * Make this procedure compatible with server action.
77
79
  *
78
- * @see {@link https://orpc.unnoq.com/docs/server-action Server Action Docs}
80
+ * @see {@link https://orpc.dev/docs/server-action Server Action Docs}
79
81
  */
80
82
  actionable(...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, Record<never, never>>>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta> & ProcedureActionableClient<TInputSchema, TOutputSchema, TErrorMap>;
81
83
  }
82
84
 
83
- declare function getRouter<T extends Lazyable<AnyRouter | undefined>>(router: T, path: readonly string[]): T extends Lazy<any> ? Lazy<AnyRouter | undefined> : Lazyable<AnyRouter | undefined>;
84
- type AccessibleLazyRouter<T extends Lazyable<AnyRouter | undefined>> = T extends Lazy<infer U extends AnyRouter | undefined | Lazy<AnyRouter | undefined>> ? AccessibleLazyRouter<U> : T extends AnyProcedure | undefined ? Lazy<T> : Lazy<T> & {
85
- [K in keyof T]: T[K] extends Lazyable<AnyRouter> ? AccessibleLazyRouter<T[K]> : never;
86
- };
87
- declare function createAccessibleLazyRouter<T extends Lazy<AnyRouter | undefined>>(lazied: T): AccessibleLazyRouter<T>;
88
- type EnhancedRouter<T extends Lazyable<AnyRouter>, TInitialContext extends Context, TCurrentContext extends Context, TErrorMap extends ErrorMap> = T extends Lazy<infer U extends AnyRouter> ? AccessibleLazyRouter<EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>> : T extends Procedure<infer UInitialContext, infer UCurrentContext, infer UInputSchema, infer UOutputSchema, infer UErrorMap, infer UMeta> ? Procedure<MergedInitialContext<TInitialContext, UInitialContext, TCurrentContext>, UCurrentContext, UInputSchema, UOutputSchema, MergedErrorMap<TErrorMap, UErrorMap>, UMeta> : {
89
- [K in keyof T]: T[K] extends Lazyable<AnyRouter> ? EnhancedRouter<T[K], TInitialContext, TCurrentContext, TErrorMap> : never;
90
- };
91
- interface EnhanceRouterOptions<TErrorMap extends ErrorMap> extends EnhanceRouteOptions {
92
- middlewares: readonly AnyMiddleware[];
93
- errorMap: TErrorMap;
94
- dedupeLeadingMiddlewares: boolean;
95
- }
96
- declare function enhanceRouter<T extends Lazyable<AnyRouter>, TInitialContext extends Context, TCurrentContext extends Context, TErrorMap extends ErrorMap>(router: T, options: EnhanceRouterOptions<TErrorMap>): EnhancedRouter<T, TInitialContext, TCurrentContext, TErrorMap>;
97
- interface TraverseContractProceduresOptions {
98
- router: AnyContractRouter | AnyRouter;
99
- path: readonly string[];
100
- }
101
- interface ContractProcedureCallbackOptions {
102
- contract: AnyContractProcedure;
103
- path: readonly string[];
104
- }
105
- interface LazyTraverseContractProceduresOptions {
106
- router: Lazy<AnyRouter>;
107
- path: readonly string[];
108
- }
109
- declare function traverseContractProcedures(options: TraverseContractProceduresOptions, callback: (options: ContractProcedureCallbackOptions) => void, lazyOptions?: LazyTraverseContractProceduresOptions[]): LazyTraverseContractProceduresOptions[];
110
- declare function resolveContractProcedures(options: TraverseContractProceduresOptions, callback: (options: ContractProcedureCallbackOptions) => void): Promise<void>;
111
- type UnlaziedRouter<T extends AnyRouter> = T extends AnyProcedure ? T : {
112
- [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? UnlaziedRouter<U> : never;
113
- };
114
- declare function unlazyRouter<T extends AnyRouter>(router: T): Promise<UnlaziedRouter<T>>;
115
-
116
85
  interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> {
117
86
  /**
118
87
  * This property holds the defined options.
@@ -122,7 +91,7 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
122
91
  * Adds type-safe custom errors.
123
92
  * The provided errors are spared-merged with any existing errors.
124
93
  *
125
- * @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}
126
95
  */
127
96
  'errors'<U extends ErrorMap>(errors: U): BuilderWithMiddlewares<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
128
97
  /**
@@ -130,14 +99,14 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
130
99
  *
131
100
  * @info Supports both normal middleware and inline middleware implementations.
132
101
  * @note The current context must be satisfy middleware dependent-context
133
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
102
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
134
103
  */
135
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>;
136
105
  /**
137
106
  * Sets or updates the metadata.
138
107
  * The provided metadata is spared-merged with any existing metadata.
139
108
  *
140
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
109
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
141
110
  */
142
111
  'meta'(meta: TMeta): BuilderWithMiddlewares<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
143
112
  /**
@@ -145,26 +114,26 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
145
114
  * The provided route is spared-merged with any existing route.
146
115
  * This option is typically relevant when integrating with OpenAPI.
147
116
  *
148
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
149
- * @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}
150
119
  */
151
120
  'route'(route: Route): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
152
121
  /**
153
122
  * Defines the input validation schema.
154
123
  *
155
- * @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}
156
125
  */
157
126
  'input'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
158
127
  /**
159
128
  * Defines the output validation schema.
160
129
  *
161
- * @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}
162
131
  */
163
132
  'output'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
164
133
  /**
165
134
  * Defines the handler of the procedure.
166
135
  *
167
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
136
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
168
137
  */
169
138
  'handler'<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
170
139
  /**
@@ -173,27 +142,27 @@ interface BuilderWithMiddlewares<TInitialContext extends Context, TCurrentContex
173
142
  *
174
143
  * @note This option does not affect procedures that do not define a path in their route definition.
175
144
  *
176
- * @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}
177
146
  */
178
147
  'prefix'(prefix: HTTPPath): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
179
148
  /**
180
149
  * Adds tags to all procedures in the router.
181
150
  * This helpful when you want to group procedures together in the OpenAPI specification.
182
151
  *
183
- * @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}
184
153
  */
185
154
  'tag'(...tags: string[]): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
186
155
  /**
187
156
  * Applies all of the previously defined options to the specified router.
188
157
  *
189
- * @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}
190
159
  */
191
160
  'router'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>;
192
161
  /**
193
162
  * Create a lazy router
194
163
  * And applies all of the previously defined options to the specified router.
195
164
  *
196
- * @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}
197
166
  */
198
167
  'lazy'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(loader: () => Promise<{
199
168
  default: U;
@@ -208,7 +177,7 @@ interface ProcedureBuilder<TInitialContext extends Context, TCurrentContext exte
208
177
  * Adds type-safe custom errors.
209
178
  * The provided errors are spared-merged with any existing errors.
210
179
  *
211
- * @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}
212
181
  */
213
182
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
214
183
  /**
@@ -216,14 +185,14 @@ interface ProcedureBuilder<TInitialContext extends Context, TCurrentContext exte
216
185
  *
217
186
  * @info Supports both normal middleware and inline middleware implementations.
218
187
  * @note The current context must be satisfy middleware dependent-context
219
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
188
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
220
189
  */
221
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>;
222
191
  /**
223
192
  * Sets or updates the metadata.
224
193
  * The provided metadata is spared-merged with any existing metadata.
225
194
  *
226
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
195
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
227
196
  */
228
197
  'meta'(meta: TMeta): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
229
198
  /**
@@ -231,26 +200,26 @@ interface ProcedureBuilder<TInitialContext extends Context, TCurrentContext exte
231
200
  * The provided route is spared-merged with any existing route.
232
201
  * This option is typically relevant when integrating with OpenAPI.
233
202
  *
234
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
235
- * @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}
236
205
  */
237
206
  'route'(route: Route): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
238
207
  /**
239
208
  * Defines the input validation schema.
240
209
  *
241
- * @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}
242
211
  */
243
212
  'input'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
244
213
  /**
245
214
  * Defines the output validation schema.
246
215
  *
247
- * @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}
248
217
  */
249
218
  'output'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
250
219
  /**
251
220
  * Defines the handler of the procedure.
252
221
  *
253
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
222
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
254
223
  */
255
224
  'handler'<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
256
225
  }
@@ -263,7 +232,7 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
263
232
  * Adds type-safe custom errors.
264
233
  * The provided errors are spared-merged with any existing errors.
265
234
  *
266
- * @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}
267
236
  */
268
237
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
269
238
  /**
@@ -272,7 +241,7 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
272
241
  * @info Supports both normal middleware and inline middleware implementations.
273
242
  * @info Pass second argument to map the input.
274
243
  * @note The current context must be satisfy middleware dependent-context
275
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
244
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
276
245
  */
277
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>;
278
247
  /**
@@ -281,14 +250,14 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
281
250
  * @info Supports both normal middleware and inline middleware implementations.
282
251
  * @info Pass second argument to map the input.
283
252
  * @note The current context must be satisfy middleware dependent-context
284
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
253
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
285
254
  */
286
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>;
287
256
  /**
288
257
  * Sets or updates the metadata.
289
258
  * The provided metadata is spared-merged with any existing metadata.
290
259
  *
291
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
260
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
292
261
  */
293
262
  'meta'(meta: TMeta): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
294
263
  /**
@@ -296,20 +265,20 @@ interface ProcedureBuilderWithInput<TInitialContext extends Context, TCurrentCon
296
265
  * The provided route is spared-merged with any existing route.
297
266
  * This option is typically relevant when integrating with OpenAPI.
298
267
  *
299
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
300
- * @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}
301
270
  */
302
271
  'route'(route: Route): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
303
272
  /**
304
273
  * Defines the output validation schema.
305
274
  *
306
- * @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}
307
276
  */
308
277
  'output'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
309
278
  /**
310
279
  * Defines the handler of the procedure.
311
280
  *
312
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
281
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
313
282
  */
314
283
  'handler'<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, InferSchemaOutput<TInputSchema>, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
315
284
  }
@@ -322,7 +291,7 @@ interface ProcedureBuilderWithOutput<TInitialContext extends Context, TCurrentCo
322
291
  * Adds type-safe custom errors.
323
292
  * The provided errors are spared-merged with any existing errors.
324
293
  *
325
- * @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}
326
295
  */
327
296
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
328
297
  /**
@@ -330,14 +299,14 @@ interface ProcedureBuilderWithOutput<TInitialContext extends Context, TCurrentCo
330
299
  *
331
300
  * @info Supports both normal middleware and inline middleware implementations.
332
301
  * @note The current context must be satisfy middleware dependent-context
333
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
302
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
334
303
  */
335
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>;
336
305
  /**
337
306
  * Sets or updates the metadata.
338
307
  * The provided metadata is spared-merged with any existing metadata.
339
308
  *
340
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
309
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
341
310
  */
342
311
  'meta'(meta: TMeta): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
343
312
  /**
@@ -345,20 +314,20 @@ interface ProcedureBuilderWithOutput<TInitialContext extends Context, TCurrentCo
345
314
  * The provided route is spared-merged with any existing route.
346
315
  * This option is typically relevant when integrating with OpenAPI.
347
316
  *
348
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
349
- * @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}
350
319
  */
351
320
  'route'(route: Route): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
352
321
  /**
353
322
  * Defines the input validation schema.
354
323
  *
355
- * @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}
356
325
  */
357
326
  'input'<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
358
327
  /**
359
328
  * Defines the handler of the procedure.
360
329
  *
361
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
330
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
362
331
  */
363
332
  'handler'(handler: ProcedureHandler<TCurrentContext, unknown, InferSchemaInput<TOutputSchema>, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
364
333
  }
@@ -371,7 +340,7 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
371
340
  * Adds type-safe custom errors.
372
341
  * The provided errors are spared-merged with any existing errors.
373
342
  *
374
- * @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}
375
344
  */
376
345
  'errors'<U extends ErrorMap>(errors: U): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
377
346
  /**
@@ -380,7 +349,7 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
380
349
  * @info Supports both normal middleware and inline middleware implementations.
381
350
  * @info Pass second argument to map the input.
382
351
  * @note The current context must be satisfy middleware dependent-context
383
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
352
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
384
353
  */
385
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>;
386
355
  /**
@@ -389,14 +358,14 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
389
358
  * @info Supports both normal middleware and inline middleware implementations.
390
359
  * @info Pass second argument to map the input.
391
360
  * @note The current context must be satisfy middleware dependent-context
392
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
361
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
393
362
  */
394
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>;
395
364
  /**
396
365
  * Sets or updates the metadata.
397
366
  * The provided metadata is spared-merged with any existing metadata.
398
367
  *
399
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
368
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
400
369
  */
401
370
  'meta'(meta: TMeta): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
402
371
  /**
@@ -404,14 +373,14 @@ interface ProcedureBuilderWithInputOutput<TInitialContext extends Context, TCurr
404
373
  * The provided route is spared-merged with any existing route.
405
374
  * This option is typically relevant when integrating with OpenAPI.
406
375
  *
407
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
408
- * @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}
409
378
  */
410
379
  'route'(route: Route): ProcedureBuilderWithInputOutput<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
411
380
  /**
412
381
  * Defines the handler of the procedure.
413
382
  *
414
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
383
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
415
384
  */
416
385
  'handler'(handler: ProcedureHandler<TCurrentContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
417
386
  }
@@ -424,7 +393,7 @@ interface RouterBuilder<TInitialContext extends Context, TCurrentContext extends
424
393
  * Adds type-safe custom errors.
425
394
  * The provided errors are spared-merged with any existing errors.
426
395
  *
427
- * @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}
428
397
  */
429
398
  'errors'<U extends ErrorMap>(errors: U): RouterBuilder<TInitialContext, TCurrentContext, MergedErrorMap<TErrorMap, U>, TMeta>;
430
399
  /**
@@ -432,7 +401,7 @@ interface RouterBuilder<TInitialContext extends Context, TCurrentContext extends
432
401
  *
433
402
  * @info Supports both normal middleware and inline middleware implementations.
434
403
  * @note The current context must be satisfy middleware dependent-context
435
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
404
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
436
405
  */
437
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>;
438
407
  /**
@@ -441,27 +410,27 @@ interface RouterBuilder<TInitialContext extends Context, TCurrentContext extends
441
410
  *
442
411
  * @note This option does not affect procedures that do not define a path in their route definition.
443
412
  *
444
- * @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}
445
414
  */
446
415
  'prefix'(prefix: HTTPPath): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
447
416
  /**
448
417
  * Adds tags to all procedures in the router.
449
418
  * This helpful when you want to group procedures together in the OpenAPI specification.
450
419
  *
451
- * @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}
452
421
  */
453
422
  'tag'(...tags: string[]): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
454
423
  /**
455
424
  * Applies all of the previously defined options to the specified router.
456
425
  *
457
- * @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}
458
427
  */
459
428
  'router'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>;
460
429
  /**
461
430
  * Create a lazy router
462
431
  * And applies all of the previously defined options to the specified router.
463
432
  *
464
- * @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}
465
434
  */
466
435
  'lazy'<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(loader: () => Promise<{
467
436
  default: U;
@@ -477,14 +446,14 @@ interface DecoratedMiddleware<TInContext extends Context, TOutContext extends Co
477
446
  * Concatenates two middlewares.
478
447
  *
479
448
  * @info Pass second argument to map the input.
480
- * @see {@link https://orpc.unnoq.com/docs/middleware#concatenation Middleware Concatenation Docs}
449
+ * @see {@link https://orpc.dev/docs/middleware#concatenation Middleware Concatenation Docs}
481
450
  */
482
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>;
483
452
  /**
484
453
  * Concatenates two middlewares.
485
454
  *
486
455
  * @info Pass second argument to map the input.
487
- * @see {@link https://orpc.unnoq.com/docs/middleware#concatenation Middleware Concatenation Docs}
456
+ * @see {@link https://orpc.dev/docs/middleware#concatenation Middleware Concatenation Docs}
488
457
  */
489
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>;
490
459
  }
@@ -510,40 +479,40 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
510
479
  /**
511
480
  * Sets or overrides the config.
512
481
  *
513
- * @see {@link https://orpc.unnoq.com/docs/client/server-side#middlewares-order Middlewares Order Docs}
514
- * @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}
515
484
  */
516
485
  $config(config: BuilderConfig): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
517
486
  /**
518
487
  * Set or override the initial context.
519
488
  *
520
- * @see {@link https://orpc.unnoq.com/docs/context Context Docs}
489
+ * @see {@link https://orpc.dev/docs/context Context Docs}
521
490
  */
522
491
  $context<U extends Context>(): Builder<U & Record<never, never>, U, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
523
492
  /**
524
493
  * Sets or overrides the initial meta.
525
494
  *
526
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
495
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
527
496
  */
528
497
  $meta<U extends Meta>(initialMeta: U): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, U & Record<never, never>>;
529
498
  /**
530
499
  * Sets or overrides the initial route.
531
500
  * This option is typically relevant when integrating with OpenAPI.
532
501
  *
533
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
534
- * @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}
535
504
  */
536
505
  $route(initialRoute: Route): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
537
506
  /**
538
507
  * Sets or overrides the initial input schema.
539
508
  *
540
- * @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}
541
510
  */
542
511
  $input<U extends AnySchema>(initialInputSchema?: U): Builder<TInitialContext, TCurrentContext, U, TOutputSchema, TErrorMap, TMeta>;
543
512
  /**
544
513
  * Creates a middleware.
545
514
  *
546
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
515
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
547
516
  */
548
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
549
518
  middleware: Middleware<TInitialContext, UOutContext, TInput, TOutput, ORPCErrorConstructorMap<TErrorMap>, TMeta>): DecoratedMiddleware<TInitialContext, UOutContext, TInput, TOutput, any, TMeta>;
@@ -551,7 +520,7 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
551
520
  * Adds type-safe custom errors.
552
521
  * The provided errors are spared-merged with any existing errors.
553
522
  *
554
- * @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}
555
524
  */
556
525
  errors<U extends ErrorMap>(errors: U): Builder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U>, TMeta>;
557
526
  /**
@@ -559,14 +528,14 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
559
528
  *
560
529
  * @info Supports both normal middleware and inline middleware implementations.
561
530
  * @note The current context must be satisfy middleware dependent-context
562
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
531
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
563
532
  */
564
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>;
565
534
  /**
566
535
  * Sets or updates the metadata.
567
536
  * The provided metadata is spared-merged with any existing metadata.
568
537
  *
569
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
538
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
570
539
  */
571
540
  meta(meta: TMeta): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
572
541
  /**
@@ -574,26 +543,26 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
574
543
  * The provided route is spared-merged with any existing route.
575
544
  * This option is typically relevant when integrating with OpenAPI.
576
545
  *
577
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
578
- * @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}
579
548
  */
580
549
  route(route: Route): ProcedureBuilder<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
581
550
  /**
582
551
  * Defines the input validation schema.
583
552
  *
584
- * @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}
585
554
  */
586
555
  input<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta>;
587
556
  /**
588
557
  * Defines the output validation schema.
589
558
  *
590
- * @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}
591
560
  */
592
561
  output<USchema extends AnySchema>(schema: USchema): ProcedureBuilderWithOutput<TInitialContext, TCurrentContext, TInputSchema, USchema, TErrorMap, TMeta>;
593
562
  /**
594
563
  * Defines the handler of the procedure.
595
564
  *
596
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
565
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
597
566
  */
598
567
  handler<UFuncOutput>(handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta>;
599
568
  /**
@@ -602,27 +571,27 @@ declare class Builder<TInitialContext extends Context, TCurrentContext extends C
602
571
  *
603
572
  * @note This option does not affect procedures that do not define a path in their route definition.
604
573
  *
605
- * @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}
606
575
  */
607
576
  prefix(prefix: HTTPPath): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
608
577
  /**
609
578
  * Adds tags to all procedures in the router.
610
579
  * This helpful when you want to group procedures together in the OpenAPI specification.
611
580
  *
612
- * @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}
613
582
  */
614
583
  tag(...tags: string[]): RouterBuilder<TInitialContext, TCurrentContext, TErrorMap, TMeta>;
615
584
  /**
616
585
  * Applies all of the previously defined options to the specified router.
617
586
  *
618
- * @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}
619
588
  */
620
589
  router<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap>;
621
590
  /**
622
591
  * Create a lazy router
623
592
  * And applies all of the previously defined options to the specified router.
624
593
  *
625
- * @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}
626
595
  */
627
596
  lazy<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(loader: () => Promise<{
628
597
  default: U;
@@ -647,7 +616,7 @@ interface ImplementedProcedure<TInitialContext extends Context, TCurrentContext
647
616
  * @info Supports both normal middleware and inline middleware implementations.
648
617
  * @info Pass second argument to map the input.
649
618
  * @note The current context must be satisfy middleware dependent-context
650
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
619
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
651
620
  */
652
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>;
653
622
  /**
@@ -656,19 +625,19 @@ interface ImplementedProcedure<TInitialContext extends Context, TCurrentContext
656
625
  * @info Supports both normal middleware and inline middleware implementations.
657
626
  * @info Pass second argument to map the input.
658
627
  * @note The current context must be satisfy middleware dependent-context
659
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
628
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
660
629
  */
661
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>;
662
631
  /**
663
632
  * Make this procedure callable (works like a function while still being a procedure).
664
633
  *
665
- * @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}
666
635
  */
667
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>;
668
637
  /**
669
638
  * Make this procedure compatible with server action.
670
639
  *
671
- * @see {@link https://orpc.unnoq.com/docs/server-action Server Action Docs}
640
+ * @see {@link https://orpc.dev/docs/server-action Server Action Docs}
672
641
  */
673
642
  actionable(...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, Record<never, never>>>): ImplementedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta> & ProcedureActionableClient<TInputSchema, TOutputSchema, TErrorMap>;
674
643
  }
@@ -683,7 +652,7 @@ interface ProcedureImplementer<TInitialContext extends Context, TCurrentContext
683
652
  * @info Supports both normal middleware and inline middleware implementations.
684
653
  * @info Pass second argument to map the input.
685
654
  * @note The current context must be satisfy middleware dependent-context
686
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
655
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
687
656
  */
688
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>;
689
658
  /**
@@ -692,13 +661,13 @@ interface ProcedureImplementer<TInitialContext extends Context, TCurrentContext
692
661
  * @info Supports both normal middleware and inline middleware implementations.
693
662
  * @info Pass second argument to map the input.
694
663
  * @note The current context must be satisfy middleware dependent-context
695
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
664
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
696
665
  */
697
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>;
698
667
  /**
699
668
  * Defines the handler of the procedure.
700
669
  *
701
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
670
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
702
671
  */
703
672
  'handler'(handler: ProcedureHandler<TCurrentContext, InferSchemaOutput<TInputSchema>, InferSchemaInput<TOutputSchema>, TErrorMap, TMeta>): ImplementedProcedure<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
704
673
  }
@@ -709,14 +678,14 @@ interface RouterImplementerWithMiddlewares<T extends AnyContractRouter, TInitial
709
678
  *
710
679
  * @info Supports both normal middleware and inline middleware implementations.
711
680
  * @note The current context must be satisfy middleware dependent-context
712
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
681
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
713
682
  */
714
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>>;
715
684
  /**
716
685
  * Applies all of the previously defined options to the specified router.
717
686
  * And enforces the router match the contract.
718
687
  *
719
- * @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}
720
689
  */
721
690
  router<U extends Router<T, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, Record<never, never>>;
722
691
  /**
@@ -724,7 +693,7 @@ interface RouterImplementerWithMiddlewares<T extends AnyContractRouter, TInitial
724
693
  * And applies all of the previously defined options to the specified router.
725
694
  * And enforces the router match the contract.
726
695
  *
727
- * @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}
728
697
  */
729
698
  lazy<U extends Router<T, TInitialContext>>(loader: () => Promise<{
730
699
  default: U;
@@ -738,7 +707,7 @@ interface RouterImplementer<T extends AnyContractRouter, TInitialContext extends
738
707
  /**
739
708
  * Creates a middleware.
740
709
  *
741
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
710
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
742
711
  */
743
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
744
713
  middleware: Middleware<TInitialContext, UOutContext, TInput, TOutput, ORPCErrorConstructorMap<InferContractRouterErrorMap<T>>, InferContractRouterMeta<T>>): DecoratedMiddleware<TInitialContext, UOutContext, TInput, TOutput, any, InferContractRouterMeta<T>>;
@@ -747,14 +716,14 @@ interface RouterImplementer<T extends AnyContractRouter, TInitialContext extends
747
716
  *
748
717
  * @info Supports both normal middleware and inline middleware implementations.
749
718
  * @note The current context must be satisfy middleware dependent-context
750
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
719
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
751
720
  */
752
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>>;
753
722
  /**
754
723
  * Applies all of the previously defined options to the specified router.
755
724
  * And enforces the router match the contract.
756
725
  *
757
- * @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}
758
727
  */
759
728
  router<U extends Router<T, TCurrentContext>>(router: U): EnhancedRouter<U, TInitialContext, TCurrentContext, Record<never, never>>;
760
729
  /**
@@ -762,7 +731,7 @@ interface RouterImplementer<T extends AnyContractRouter, TInitialContext extends
762
731
  * And applies all of the previously defined options to the specified router.
763
732
  * And enforces the router match the contract.
764
733
  *
765
- * @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}
766
735
  */
767
736
  lazy<U extends Router<T, TCurrentContext>>(loader: () => Promise<{
768
737
  default: U;
@@ -776,14 +745,14 @@ type Implementer<TContract extends AnyContractRouter, TInitialContext extends Co
776
745
  /**
777
746
  * Set or override the initial context.
778
747
  *
779
- * @see {@link https://orpc.unnoq.com/docs/context Context Docs}
748
+ * @see {@link https://orpc.dev/docs/context Context Docs}
780
749
  */
781
750
  $context<U extends Context>(): Implementer<TContract, U & Record<never, never>, U>;
782
751
  /**
783
752
  * Sets or overrides the config.
784
753
  *
785
- * @see {@link https://orpc.unnoq.com/docs/client/server-side#middlewares-order Middlewares Order Docs}
786
- * @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}
787
756
  */
788
757
  $config(config: BuilderConfig): Implementer<TContract, TInitialContext, TCurrentContext>;
789
758
  } & ImplementerInternal<TContract, TInitialContext, TCurrentContext>;
@@ -823,12 +792,12 @@ type RouterClient<TRouter extends AnyRouter, TClientContext extends ClientContex
823
792
  /**
824
793
  * Create Server-side client from a router.
825
794
  *
826
- * @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}
827
796
  */
828
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>;
829
798
 
830
799
  declare function setHiddenRouterContract<T extends Lazyable<AnyRouter>>(router: T, contract: AnyContractRouter): T;
831
800
  declare function getHiddenRouterContract(router: Lazyable<AnyRouter | AnyContractRouter>): AnyContractRouter | undefined;
832
801
 
833
- export { AnyMiddleware, AnyProcedure, AnyRouter, Builder, Context, CreateProcedureClientOptions, DecoratedProcedure, InferRouterInitialContext, Lazy, Lazyable, MapInputMiddleware, MergedCurrentContext, MergedInitialContext, Middleware, ORPCErrorConstructorMap, Procedure, ProcedureClient, ProcedureHandler, Router, addMiddleware, call, createAccessibleLazyRouter, createActionableClient, createAssertedLazyProcedure, createContractedProcedure, createRouterClient, decorateMiddleware, enhanceRouter, fallbackConfig, getHiddenRouterContract, getRouter, implement, implementerInternal, inferRPCMethodFromRouter, isStartWithMiddlewares, mergeMiddlewares, os, resolveContractProcedures, setHiddenRouterContract, traverseContractProcedures, unlazyRouter };
834
- export type { AccessibleLazyRouter, ActionableClient, ActionableClientRest, ActionableClientResult, ActionableError, BuilderConfig, BuilderDef, BuilderWithMiddlewares, Config, ContractProcedureCallbackOptions, DecoratedMiddleware, EnhanceRouterOptions, EnhancedRouter, ImplementedProcedure, Implementer, ImplementerInternal, ImplementerInternalWithMiddlewares, LazyTraverseContractProceduresOptions, ProcedureActionableClient, ProcedureBuilder, ProcedureBuilderWithInput, ProcedureBuilderWithInputOutput, ProcedureBuilderWithOutput, ProcedureImplementer, RouterBuilder, RouterClient, RouterImplementer, RouterImplementerWithMiddlewares, TraverseContractProceduresOptions, UnactionableError, UnlaziedRouter };
802
+ export { AnyMiddleware, AnyProcedure, AnyRouter, Builder, Context, CreateProcedureClientOptions, DecoratedProcedure, EnhanceRouterOptions, EnhancedRouter, InferRouterInitialContext, Lazy, Lazyable, MapInputMiddleware, MergedCurrentContext, MergedInitialContext, Middleware, ORPCErrorConstructorMap, Procedure, ProcedureClient, ProcedureHandler, Router, addMiddleware, call, createActionableClient, createAssertedLazyProcedure, createContractedProcedure, createRouterClient, decorateMiddleware, fallbackConfig, getHiddenRouterContract, implement, implementerInternal, inferRPCMethodFromRouter, isStartWithMiddlewares, mergeMiddlewares, os, setHiddenRouterContract };
803
+ export type { ActionableClient, ActionableClientRest, ActionableClientResult, ActionableError, BuilderConfig, BuilderDef, BuilderWithMiddlewares, Config, DecoratedMiddleware, ImplementedProcedure, Implementer, ImplementerInternal, ImplementerInternalWithMiddlewares, ProcedureActionableClient, ProcedureBuilder, ProcedureBuilderWithInput, ProcedureBuilderWithInputOutput, ProcedureBuilderWithOutput, ProcedureImplementer, RouterBuilder, RouterClient, RouterImplementer, RouterImplementerWithMiddlewares, UnactionableError };