ovr 6.2.4 → 7.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/app/index.d.ts +51 -7
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +163 -28
- package/dist/auth/auth-data.d.ts +26 -0
- package/dist/auth/auth-data.d.ts.map +1 -0
- package/dist/auth/auth-data.js +42 -0
- package/dist/auth/cbor.d.ts +50 -0
- package/dist/auth/cbor.d.ts.map +1 -0
- package/dist/auth/cbor.js +200 -0
- package/dist/auth/client-source.d.ts +3 -0
- package/dist/auth/client-source.d.ts.map +1 -0
- package/dist/auth/client-source.js +3 -0
- package/dist/auth/client.d.ts +3 -0
- package/dist/auth/client.d.ts.map +1 -0
- package/dist/auth/client.js +186 -0
- package/dist/auth/configure.d.ts +28 -0
- package/dist/auth/configure.d.ts.map +1 -0
- package/dist/auth/configure.js +228 -0
- package/dist/auth/der.d.ts +6 -0
- package/dist/auth/der.d.ts.map +1 -0
- package/dist/auth/der.js +36 -0
- package/dist/auth/index.d.ts +242 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +152 -0
- package/dist/auth/issue.d.ts +36 -0
- package/dist/auth/issue.d.ts.map +1 -0
- package/dist/auth/issue.js +47 -0
- package/dist/auth/metadata.d.ts +22 -0
- package/dist/auth/metadata.d.ts.map +1 -0
- package/dist/auth/metadata.js +134 -0
- package/dist/auth/oauth.d.ts +29 -0
- package/dist/auth/oauth.d.ts.map +1 -0
- package/dist/auth/oauth.js +724 -0
- package/dist/auth/passkey.d.ts +101 -0
- package/dist/auth/passkey.d.ts.map +1 -0
- package/dist/auth/passkey.js +393 -0
- package/dist/auth/state.d.ts +49 -0
- package/dist/auth/state.d.ts.map +1 -0
- package/dist/auth/state.js +184 -0
- package/dist/auth/storage.d.ts +193 -0
- package/dist/auth/storage.d.ts.map +1 -0
- package/dist/auth/storage.js +410 -0
- package/dist/auth/token.d.ts +12 -0
- package/dist/auth/token.d.ts.map +1 -0
- package/dist/auth/token.js +39 -0
- package/dist/context/index.d.ts +86 -16
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +166 -42
- package/dist/cookie/index.d.ts +3 -0
- package/dist/cookie/index.d.ts.map +1 -1
- package/dist/cookie/index.js +1 -0
- package/dist/database/index.d.ts +262 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +807 -0
- package/dist/form/index.d.ts +699 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/index.js +901 -0
- package/dist/index.d.ts +10 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/jsx/elements.d.ts +28 -2
- package/dist/jsx/elements.d.ts.map +1 -1
- package/dist/jsx/index.d.ts +20 -4
- package/dist/jsx/index.d.ts.map +1 -1
- package/dist/jsx/index.js +6 -65
- package/dist/limiter/index.d.ts +65 -0
- package/dist/limiter/index.d.ts.map +1 -0
- package/dist/limiter/index.js +157 -0
- package/dist/markdown/index.d.ts +61 -0
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/markdown/index.js +1160 -0
- package/dist/markup/index.d.ts +188 -0
- package/dist/markup/index.d.ts.map +1 -0
- package/dist/markup/index.js +718 -0
- package/dist/mcp/index.d.ts +73 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +988 -0
- package/dist/middleware/index.d.ts +3 -4
- package/dist/middleware/index.d.ts.map +1 -1
- package/dist/multipart/index.d.ts +53 -7
- package/dist/multipart/index.d.ts.map +1 -1
- package/dist/multipart/index.js +332 -124
- package/dist/route/index.d.ts +226 -80
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/index.js +239 -99
- package/dist/schema/index.d.ts +307 -734
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +783 -1050
- package/dist/table/index.d.ts +132 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/index.js +188 -0
- package/dist/trie/index.js +4 -4
- package/dist/util/index.d.ts +37 -5
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +156 -41
- package/package.json +11 -4
- package/src/app/index.ts +230 -42
- package/src/auth/auth-data.ts +56 -0
- package/src/auth/cbor.ts +231 -0
- package/src/auth/client-source.ts +3 -0
- package/src/auth/client.ts +205 -0
- package/src/auth/configure.ts +279 -0
- package/src/auth/der.ts +35 -0
- package/src/auth/index.ts +387 -0
- package/src/auth/issue.ts +52 -0
- package/src/auth/metadata.ts +149 -0
- package/src/auth/oauth.ts +882 -0
- package/src/auth/passkey.ts +556 -0
- package/src/auth/state.ts +213 -0
- package/src/auth/storage.ts +572 -0
- package/src/auth/token.ts +67 -0
- package/src/context/index.ts +240 -65
- package/src/cookie/index.ts +3 -0
- package/src/database/index.ts +1193 -0
- package/src/form/index.ts +1720 -0
- package/src/index.ts +10 -3
- package/src/jsx/elements.ts +45 -25
- package/src/jsx/index.ts +24 -69
- package/src/limiter/index.ts +221 -0
- package/src/markdown/index.ts +1322 -0
- package/src/markup/index.ts +853 -0
- package/src/mcp/conformance.2025-11-25.yml +39 -0
- package/src/mcp/conformance.2026-07-28.yml +56 -0
- package/src/mcp/index.ts +1262 -0
- package/src/middleware/index.ts +5 -6
- package/src/multipart/index.ts +410 -158
- package/src/route/index.ts +559 -278
- package/src/schema/index.ts +1542 -2256
- package/src/table/index.ts +387 -0
- package/src/trie/index.ts +4 -4
- package/src/util/index.ts +163 -49
- package/dist/render/index.d.ts +0 -79
- package/dist/render/index.d.ts.map +0 -1
- package/dist/render/index.js +0 -257
- package/src/render/index.ts +0 -314
package/dist/route/index.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
import { type Field, Form as FormSchema } from "../form/index.js";
|
|
1
2
|
import { type JSX } from "../jsx/index.js";
|
|
2
3
|
import type { Middleware } from "../middleware/index.js";
|
|
3
|
-
import {
|
|
4
|
+
import { Schema as ValueSchema } from "../schema/index.js";
|
|
4
5
|
import type { Trie } from "../trie/index.js";
|
|
5
6
|
import type { Util } from "../util/index.js";
|
|
7
|
+
/** Finishes a route's configuration, `app.use(route)` calls it */
|
|
8
|
+
export declare const freeze: unique symbol;
|
|
9
|
+
/**
|
|
10
|
+
* Matches a pattern's parameters, as the router reads them: `:name` up to the
|
|
11
|
+
* next slash, anywhere in a segment, and a final `*`, the wildcard, which
|
|
12
|
+
* has no name. Internal to ovr.
|
|
13
|
+
*/
|
|
14
|
+
export declare const parameters: RegExp;
|
|
15
|
+
/** Internal protocol for the MCP endpoint, to read a route's parameter schemas. */
|
|
16
|
+
export declare const schemas: unique symbol;
|
|
6
17
|
/**
|
|
7
18
|
* Helper type to extract the route params (`:slug`) into a record.
|
|
8
19
|
*
|
|
@@ -15,16 +26,69 @@ export type ExtractParams<Pattern extends string = string> = Pattern extends `${
|
|
|
15
26
|
} : Pattern extends `${infer _Rest}*` ? {
|
|
16
27
|
"*": string;
|
|
17
28
|
} : {};
|
|
29
|
+
/**
|
|
30
|
+
* The last segment of a pattern, the only one a wildcard can end.
|
|
31
|
+
*
|
|
32
|
+
* @template P Route pattern
|
|
33
|
+
*/
|
|
34
|
+
type Last<P extends string> = P extends `${string}/${infer R}` ? Last<R> : P;
|
|
35
|
+
/**
|
|
36
|
+
* `P`, or a message when a parameter runs into the wildcard, as in `/:id*`,
|
|
37
|
+
* where nothing tells them apart.
|
|
38
|
+
*
|
|
39
|
+
* @template P Route pattern
|
|
40
|
+
*/
|
|
41
|
+
type Checked<P extends string> = string extends P ? P : P extends `/${string}` ? P extends `${string}${"?" | "#" | "\\" | " " | "\t" | "\n" | "//"}${string}` ? "A route pattern is a path, such as /posts/:id, without a query or a fragment" : Last<P> extends `${string}:${string}*` ? "Separate the parameter from the wildcard, as in /:id/*" : P : "A route pattern starts with /, such as /posts/:id";
|
|
42
|
+
/**
|
|
43
|
+
* A character or sequence a path of the app's own cannot hold: a query,
|
|
44
|
+
* a fragment, a scheme, a pattern, whitespace, or a segment that resolves
|
|
45
|
+
* to another path
|
|
46
|
+
*/
|
|
47
|
+
type Unsafe = "\\" | "?" | "#" | ":" | "*" | " " | "\t" | "\n" | "//" | "/./" | "/../";
|
|
48
|
+
/** Whitespace `String.prototype.trim` removes */
|
|
49
|
+
type Space = " " | "\t" | "\n" | "\v" | "\f" | "\r" | "\u00a0" | "\u1680" | "\u2000" | "\u2001" | "\u2002" | "\u2003" | "\u2004" | "\u2005" | "\u2006" | "\u2007" | "\u2008" | "\u2009" | "\u200a" | "\u2028" | "\u2029" | "\u202f" | "\u205f" | "\u3000" | "\ufeff";
|
|
50
|
+
/**
|
|
51
|
+
* `S` without leading or trailing whitespace
|
|
52
|
+
*
|
|
53
|
+
* @template S String to trim
|
|
54
|
+
*/
|
|
55
|
+
type Trim<S extends string> = S extends `${Space}${infer R}` | `${infer R}${Space}` ? Trim<R> : S;
|
|
18
56
|
/**
|
|
19
57
|
* Helper type to insert a record of params into a resolved string.
|
|
20
58
|
*
|
|
21
59
|
* @template Pattern Route pattern to resolve
|
|
22
60
|
* @template Params Params to insert into pattern
|
|
23
61
|
*/
|
|
24
|
-
export type InsertParams<Pattern extends string, Params extends
|
|
62
|
+
export type InsertParams<Pattern extends string, Params extends Route.URLParams> = Pattern extends `${infer Start}:${infer Param}/${infer Rest}` ? Param extends keyof Params ? `${Start}${Params[Param]}/${InsertParams<Rest, Params>}` : Pattern : Pattern extends `${infer Start}:${infer Param}` ? Param extends keyof Params ? `${Start}${Params[Param]}` : Pattern : Pattern extends `${infer Start}*` ? "*" extends keyof Params ? `${Start}${Params["*"]}` : Pattern : Pattern;
|
|
25
63
|
export declare namespace Route {
|
|
26
64
|
/** HTTP Method */
|
|
27
65
|
export type Method = "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH" | (string & {});
|
|
66
|
+
/** How agents call a route, from `route.tool`. */
|
|
67
|
+
export type Tool = {
|
|
68
|
+
/** Tool name, for example `post_posts_id_delete` */
|
|
69
|
+
readonly name: string;
|
|
70
|
+
/** What the tool does */
|
|
71
|
+
readonly description: string;
|
|
72
|
+
/** Only reads, a GET; other tools may change data, so agents can confirm them */
|
|
73
|
+
readonly read: boolean;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Schemas for route pattern parameters, keyed by parameter name.
|
|
77
|
+
*
|
|
78
|
+
* @template Pattern Route pattern
|
|
79
|
+
*/
|
|
80
|
+
export type ParamSchemas<Pattern extends string> = {
|
|
81
|
+
readonly [K in keyof ExtractParams<Pattern>]?: ValueSchema<unknown>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Route parameters after their schemas convert them.
|
|
85
|
+
*
|
|
86
|
+
* @template Params Current parameters
|
|
87
|
+
* @template P Parameter schemas
|
|
88
|
+
*/
|
|
89
|
+
export type Converted<Params, P> = Util.Prettify<Omit<Params, keyof P> & {
|
|
90
|
+
[K in keyof P]: ValueSchema.Infer<P[K]>;
|
|
91
|
+
}>;
|
|
28
92
|
/**
|
|
29
93
|
* Helper type for a route with a `<Button>` component.
|
|
30
94
|
*
|
|
@@ -53,12 +117,16 @@ export declare namespace Route {
|
|
|
53
117
|
readonly Anchor: Route.Anchor<Pattern>;
|
|
54
118
|
};
|
|
55
119
|
/**
|
|
56
|
-
*
|
|
120
|
+
* The components a route with fields renders them with.
|
|
57
121
|
*
|
|
122
|
+
* @template S Form field shape
|
|
123
|
+
*/
|
|
124
|
+
type Components<S extends Field.Shape> = Pick<FormSchema<S>, "Field" | "Fields" | "component">;
|
|
125
|
+
/**
|
|
58
126
|
* Omits `component` so schema-specific `component` signatures are not widened when a
|
|
59
|
-
* concrete
|
|
127
|
+
* concrete shape is intersected onto the route type.
|
|
60
128
|
*/
|
|
61
|
-
type FormMethods = Omit<
|
|
129
|
+
type FormMethods = Omit<Components<any>, "component">;
|
|
62
130
|
/**
|
|
63
131
|
* Optional form helper methods available when a route may have a schema.
|
|
64
132
|
*
|
|
@@ -68,24 +136,73 @@ export declare namespace Route {
|
|
|
68
136
|
type MaybeForm = {
|
|
69
137
|
[K in keyof FormMethods]?: FormMethods[K] extends (...args: any[]) => any ? Util.Bivariant<FormMethods[K]> : FormMethods[K];
|
|
70
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Schema helpers once `route.fields()` sets a shape.
|
|
141
|
+
*
|
|
142
|
+
* @template Shape Form field shape
|
|
143
|
+
*/
|
|
144
|
+
type WithSchema<Shape extends Field.Shape> = [Field.Shape] extends [Shape] ? MaybeForm : Components<Shape>;
|
|
71
145
|
/**
|
|
72
146
|
* GET route type with route components and optional schema helpers.
|
|
73
147
|
*
|
|
74
148
|
* @template Pattern Route pattern
|
|
149
|
+
* @template Params Parameters passed to middleware
|
|
150
|
+
* @template Shape Form field shape
|
|
75
151
|
*/
|
|
76
|
-
export type Get<Pattern extends string = string> = Route<Pattern> & WithAnchor<Pattern> & WithButton<Pattern> & WithForm<Pattern> &
|
|
152
|
+
export type Get<Pattern extends string = string, Params extends Route.ParamsBase = any, Shape extends Field.Shape = any> = Route<Pattern, Params, Shape, "get"> & WithAnchor<Pattern> & WithButton<Pattern> & WithForm<Pattern> & WithSchema<Shape>;
|
|
77
153
|
/**
|
|
78
154
|
* POST route type with route components and optional schema helpers.
|
|
79
155
|
*
|
|
80
156
|
* @template Pattern Route pattern
|
|
157
|
+
* @template Params Parameters passed to middleware
|
|
158
|
+
* @template Shape Form field shape
|
|
81
159
|
*/
|
|
82
|
-
export type Post<Pattern extends string = string> = Route<Pattern> & WithButton<Pattern> & WithForm<Pattern> &
|
|
160
|
+
export type Post<Pattern extends string = string, Params extends Route.ParamsBase = any, Shape extends Field.Shape = any> = Route<Pattern, Params, Shape, "post"> & WithButton<Pattern> & WithForm<Pattern> & WithSchema<Shape>;
|
|
161
|
+
/** Components a route has: GET routes add an `<Anchor>` */
|
|
162
|
+
export type Kind = "get" | "post" | "plain";
|
|
83
163
|
/**
|
|
84
|
-
*
|
|
164
|
+
* A route of the given kind.
|
|
85
165
|
*
|
|
86
|
-
* @template
|
|
166
|
+
* @template K Route kind
|
|
167
|
+
* @template Pattern Route pattern
|
|
168
|
+
* @template Params Parameters passed to middleware
|
|
169
|
+
* @template Shape Form field shape
|
|
170
|
+
*/
|
|
171
|
+
export type Of<K extends Route.Kind, Pattern extends string, Params extends Route.ParamsBase, Shape extends Field.Shape> = K extends "get" ? Route.Get<Pattern, Params, Shape> : K extends "post" ? Route.Post<Pattern, Params, Shape> : Route<Pattern, Params, Shape, K>;
|
|
172
|
+
/** Parameters passed to middleware, strings unless a schema converts them */
|
|
173
|
+
export type ParamsBase = Record<string, unknown>;
|
|
174
|
+
/**
|
|
175
|
+
* A fixed path of the app's own, such as `/login`, checked as it is
|
|
176
|
+
* written: without parameters, a query, or a trailing slash. A path that is
|
|
177
|
+
* not written out, such as one read from the environment, is taken as it is.
|
|
178
|
+
*
|
|
179
|
+
* @template P Path
|
|
87
180
|
*/
|
|
88
|
-
export type
|
|
181
|
+
export type Path<P extends string> = string extends P ? P : P extends `/${string}` ? P extends `${string}${Unsafe}${string}` | `${string}/.` | `${string}/..` ? Path.Invalid : P extends "/" ? P : P extends `${string}/` ? Path.Invalid : P : Path.Invalid;
|
|
182
|
+
export namespace Path {
|
|
183
|
+
/** Shown in place of a path that is not one of the app's own */
|
|
184
|
+
type Invalid = "A path of the app's own, such as /login, without parameters, a query, or a trailing slash";
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* A route after `use()`: its middleware is typed by the params and fields
|
|
188
|
+
* set before it, so they cannot change, and calling `params()` or
|
|
189
|
+
* `fields()` is a type error.
|
|
190
|
+
*
|
|
191
|
+
* @template R Route
|
|
192
|
+
*/
|
|
193
|
+
export type Used<R> = R & {
|
|
194
|
+
/** Call `.params()` before `.use()` */
|
|
195
|
+
readonly params: never;
|
|
196
|
+
/** Call `.fields()` before `.use()` */
|
|
197
|
+
readonly fields: never;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* A parameter's value in a URL: text, or a number a `params` schema may
|
|
201
|
+
* have converted it to, written as its digits.
|
|
202
|
+
*/
|
|
203
|
+
export type URLParam = string | number | bigint;
|
|
204
|
+
/** Parameter values to write into a route's pattern */
|
|
205
|
+
export type URLParams = Record<string, URLParam>;
|
|
89
206
|
/**
|
|
90
207
|
* Options to construct a relative URL from the route.
|
|
91
208
|
*
|
|
@@ -108,9 +225,31 @@ export declare namespace Route {
|
|
|
108
225
|
/** Route pattern does not contain parameters */
|
|
109
226
|
readonly params?: undefined;
|
|
110
227
|
} : {
|
|
111
|
-
/** Route pattern parameters */
|
|
112
|
-
readonly params:
|
|
228
|
+
/** Route pattern parameters, numbers too, as `params` schemas may give them */
|
|
229
|
+
readonly params: {
|
|
230
|
+
readonly [K in keyof Params]: Route.URLParam;
|
|
231
|
+
};
|
|
113
232
|
});
|
|
233
|
+
/**
|
|
234
|
+
* Type of `route.url(options)`: the exact path with the given `params`,
|
|
235
|
+
* or a `string` once `search` or `hash` is added.
|
|
236
|
+
*
|
|
237
|
+
* @template Pattern Route pattern
|
|
238
|
+
* @template O URL options
|
|
239
|
+
*/
|
|
240
|
+
export type Href<Pattern extends string, O> = [
|
|
241
|
+
Present<O, "search">,
|
|
242
|
+
Present<O, "hash">
|
|
243
|
+
] extends [never, never] ? InsertParams<Pattern, O extends {
|
|
244
|
+
readonly params: infer P extends Route.URLParams;
|
|
245
|
+
} ? P : {}> : string;
|
|
246
|
+
/**
|
|
247
|
+
* A given option's value, `never` when it is missing or `undefined`.
|
|
248
|
+
*
|
|
249
|
+
* @template O Options
|
|
250
|
+
* @template K Option name
|
|
251
|
+
*/
|
|
252
|
+
type Present<O, K extends string> = K extends keyof O ? NonNullable<O[K]> : never;
|
|
114
253
|
/**
|
|
115
254
|
* `<Anchor>` route component type
|
|
116
255
|
*
|
|
@@ -129,7 +268,12 @@ export declare namespace Route {
|
|
|
129
268
|
* @template Pattern Route pattern
|
|
130
269
|
*/
|
|
131
270
|
export type Form<Pattern extends string> = (props: JSX.IntrinsicElements["form"] & URLOptions<ExtractParams<Pattern>> & {
|
|
271
|
+
/** Current page URL, restores the state of an invalid submission */
|
|
132
272
|
state?: URL | undefined;
|
|
273
|
+
/** Initial field values, for example the record being edited */
|
|
274
|
+
values?: Readonly<Record<string, unknown>> | undefined;
|
|
275
|
+
/** Label of the generated submit button, defaults to "Submit" */
|
|
276
|
+
submit?: JSX.Element | undefined;
|
|
133
277
|
}) => JSX.Element;
|
|
134
278
|
/**
|
|
135
279
|
* Extract params from a Route instance.
|
|
@@ -144,105 +288,107 @@ export declare namespace Route {
|
|
|
144
288
|
/**
|
|
145
289
|
* Route to use in the application.
|
|
146
290
|
*
|
|
291
|
+
* Each method adds to the route and returns it, so a route reads as a chain:
|
|
292
|
+
*
|
|
293
|
+
* ```ts
|
|
294
|
+
* const update = Route.post("/posts/:id")
|
|
295
|
+
* .describe("Change a post's title or body")
|
|
296
|
+
* .params({ id: Schema.string().uuid() })
|
|
297
|
+
* .fields({ title, body })
|
|
298
|
+
* .use(async (c) => {
|
|
299
|
+
* // ...
|
|
300
|
+
* });
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
147
303
|
* @template Pattern Route pattern
|
|
304
|
+
* @template Params Parameters passed to middleware
|
|
305
|
+
* @template Shape Form field shape
|
|
306
|
+
* @template Kind Components the route has
|
|
148
307
|
*/
|
|
149
|
-
export declare class Route<Pattern extends string = string> {
|
|
308
|
+
export declare class Route<Pattern extends string = string, Params extends Route.ParamsBase = any, Shape extends Field.Shape = any, Kind extends Route.Kind = any> {
|
|
150
309
|
#private;
|
|
151
|
-
/** Route pattern */
|
|
152
|
-
readonly pattern: Pattern;
|
|
153
310
|
/** HTTP method */
|
|
154
311
|
readonly method: Route.Method;
|
|
155
|
-
/** Route middleware stack, runs after global middleware */
|
|
156
|
-
readonly middleware: Middleware<any, any>[];
|
|
157
312
|
/**
|
|
158
313
|
* Create a new route.
|
|
159
314
|
*
|
|
160
315
|
* @param method HTTP Method
|
|
161
316
|
* @param pattern Route pattern
|
|
162
|
-
* @param middleware Route middleware
|
|
163
|
-
*/
|
|
164
|
-
constructor(method: Route.Method, pattern: Pattern, ...middleware: Middleware<ExtractParams<Pattern>, any>[]);
|
|
165
|
-
/**
|
|
166
|
-
* Constructs a _relative_ URL for the route.
|
|
167
|
-
*
|
|
168
|
-
* @param [options] Options with type safe pathname parameters
|
|
169
|
-
* @returns `pathname` + `search` + `hash`
|
|
170
317
|
*/
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
|
|
180
|
-
* @param pattern Route pattern
|
|
181
|
-
* @param middleware GET middleware
|
|
182
|
-
* @returns GET `Route` with added components
|
|
183
|
-
*/
|
|
184
|
-
static get<Pattern extends string>(pattern: Pattern, ...middleware: Middleware<ExtractParams<Pattern>>[]): Route.Get<Pattern>;
|
|
318
|
+
constructor(method: Route.Method, pattern: Checked<Pattern>);
|
|
319
|
+
/** Description for agents, only described routes are served to them */
|
|
320
|
+
get description(): string | undefined;
|
|
321
|
+
/** Schemas that check and convert pattern parameters */
|
|
322
|
+
get [schemas](): Readonly<Record<string, ValueSchema<unknown>>> | undefined;
|
|
323
|
+
/** Route pattern */
|
|
324
|
+
get pattern(): Pattern;
|
|
325
|
+
/** Route middleware stack, runs after global middleware */
|
|
326
|
+
get middleware(): Middleware<any, any>[];
|
|
185
327
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @param fields Form field shape
|
|
190
|
-
* @param middleware GET middleware
|
|
191
|
-
* @returns GET `Route` with added components
|
|
328
|
+
* The tool agents call the route as, through MCP and the route's `Form`.
|
|
329
|
+
* Only described routes are tools, so mounting a route never lets agents
|
|
330
|
+
* call it; GET tools are read-only.
|
|
192
331
|
*/
|
|
193
|
-
|
|
332
|
+
get tool(): Route.Tool | undefined;
|
|
194
333
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
* @
|
|
199
|
-
* @param
|
|
200
|
-
* @returns
|
|
334
|
+
* Describe the route for agents. Only described routes are served to
|
|
335
|
+
* them: as MCP tools, and GET routes as resources too.
|
|
336
|
+
*
|
|
337
|
+
* @template D Description, a string literal that is not blank
|
|
338
|
+
* @param description What the route does, written for an agent, not blank
|
|
339
|
+
* @returns The route
|
|
201
340
|
*/
|
|
202
|
-
|
|
341
|
+
describe<D extends string>(description: Trim<D> extends "" ? never : [
|
|
342
|
+
"wildcard" | "*"
|
|
343
|
+
] extends [keyof ExtractParams<Pattern>] ? "Rename :wildcard, a tool's * argument is named wildcard" : D): this;
|
|
203
344
|
/**
|
|
204
|
-
*
|
|
205
|
-
*
|
|
345
|
+
* Check and convert pattern parameters before the middleware runs.
|
|
346
|
+
* A parameter that fails its schema responds `404`.
|
|
347
|
+
*
|
|
348
|
+
* @template P Schemas keyed by parameter name
|
|
349
|
+
* @param schemas Schemas keyed by parameter name
|
|
350
|
+
* @returns The route, with converted `c.params` types
|
|
206
351
|
*/
|
|
207
|
-
|
|
352
|
+
params<P extends Route.ParamSchemas<Pattern>>(schemas: P): Route.Of<Kind, Pattern, Route.Converted<Params, P>, Shape>;
|
|
208
353
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* @
|
|
354
|
+
* Set the form fields that `c.data()` parses, and that the route's `Form`
|
|
355
|
+
* renders by default.
|
|
356
|
+
*
|
|
357
|
+
* @template S Field shape
|
|
358
|
+
* @param fields Field shape
|
|
359
|
+
* @returns The route with form helpers
|
|
213
360
|
*/
|
|
214
|
-
|
|
361
|
+
fields<S extends Field.Shape>(fields: S): Route.Of<Kind, Pattern, Params, S>;
|
|
362
|
+
/** Finish the configuration, when an app mounts the route. */
|
|
363
|
+
[freeze](): void;
|
|
215
364
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* @param middleware
|
|
219
|
-
* @returns
|
|
365
|
+
* Add middleware to the route. The last one usually responds.
|
|
366
|
+
*
|
|
367
|
+
* @param middleware Route middleware
|
|
368
|
+
* @returns The route
|
|
220
369
|
*/
|
|
221
|
-
|
|
370
|
+
use(...middleware: Middleware<Params, Shape>[]): Route.Used<Route.Of<Kind, Pattern, Params, Shape>>;
|
|
222
371
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* @
|
|
372
|
+
* Construct a _relative_ URL for the route. Parameter values are encoded,
|
|
373
|
+
* so each stays in its own segment, and a wildcard keeps its slashes.
|
|
374
|
+
*
|
|
375
|
+
* @template O Options, the exact path type when only `params` are given
|
|
376
|
+
* @param [options] Parameters, search, and hash
|
|
377
|
+
* @returns `pathname` + `search` + `hash`
|
|
227
378
|
*/
|
|
228
|
-
|
|
379
|
+
url<O extends object = {}>(...[options]: keyof ExtractParams<Pattern> extends never ? [(O & Route.URLOptions<ExtractParams<Pattern>>)?] : [O & Route.URLOptions<ExtractParams<Pattern>>]): Route.Href<Pattern, O>;
|
|
229
380
|
/**
|
|
230
381
|
* @template Pattern Route pattern
|
|
231
|
-
* @template S Form field shape
|
|
232
382
|
* @param pattern Route pattern
|
|
233
|
-
* @
|
|
234
|
-
* @param middleware POST middleware
|
|
235
|
-
* @returns POST `Route` with added components
|
|
383
|
+
* @returns GET `Route` with added components
|
|
236
384
|
*/
|
|
237
|
-
static
|
|
385
|
+
static get<Pattern extends string>(pattern: Checked<Pattern>): Route.Get<Pattern, ExtractParams<Pattern>, Field.Shape>;
|
|
238
386
|
/**
|
|
239
387
|
* @template Pattern Route pattern
|
|
240
|
-
* @template S Form field shape
|
|
241
388
|
* @param pattern Route pattern
|
|
242
|
-
* @param form Form schema
|
|
243
|
-
* @param middleware POST middleware
|
|
244
389
|
* @returns POST `Route` with added components
|
|
245
390
|
*/
|
|
246
|
-
static post<Pattern extends string
|
|
391
|
+
static post<Pattern extends string>(pattern: Checked<Pattern>): Route.Post<Pattern, ExtractParams<Pattern>, Field.Shape>;
|
|
247
392
|
}
|
|
393
|
+
export {};
|
|
248
394
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/route/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAO,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IACxD,OAAO,SAAS,GAAG,MAAM,MAAM,IAAI,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,GAC3D;KAAG,CAAC,IAAI,KAAK,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,GAAG,MAAM;CAAE,GACpD,OAAO,SAAS,GAAG,MAAM,MAAM,IAAI,MAAM,KAAK,EAAE,GAC/C;KAAG,CAAC,IAAI,KAAK,GAAG,MAAM;CAAE,GACxB,OAAO,SAAS,GAAG,MAAM,KAAK,GAAG,GAChC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GACf,EAAE,CAAC;AAET;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CACvB,OAAO,SAAS,MAAM,EACtB,MAAM,SAAS,IAAI,CAAC,MAAM,IACvB,OAAO,SAAS,GAAG,MAAM,KAAK,IAAI,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,GAC9D,KAAK,SAAS,MAAM,MAAM,GACzB,GAAG,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,GACxD,OAAO,GACR,OAAO,SAAS,GAAG,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