kizunajs 2.0.0-beta.10 → 2.0.0-beta.11
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 +1 -1
- package/dist/{adapter-BTZYI-zK.d.mts → adapter-B8Y7l1sn.d.cts} +29 -14
- package/dist/{adapter-CpTYJ-HG.d.cts → adapter-CtsBIW5I.d.mts} +29 -14
- package/dist/{adapter-DKQpBP4R.cjs → adapter-DnrCMECA.cjs} +142 -156
- package/dist/{adapter-CA3eQ5mU.mjs → adapter-HCLp4Tex.mjs} +59 -55
- package/dist/adapter.cjs +29 -27
- package/dist/adapter.d.cts +5 -5
- package/dist/adapter.d.mts +5 -5
- package/dist/adapter.mjs +5 -5
- package/dist/{security-scheme-DofJ3GcE.d.cts → error-response-D2bAIpNd.d.mts} +130 -1
- package/dist/{security-scheme-GJa2h7Tg.d.mts → error-response-Da3XXloD.d.cts} +130 -1
- package/dist/generator-utils-B-w1XLHL.d.mts +72 -0
- package/dist/generator-utils-DurTZzBI.d.cts +72 -0
- package/dist/generator.cjs +196 -61
- package/dist/generator.d.cts +176 -25
- package/dist/generator.d.mts +176 -25
- package/dist/generator.mjs +158 -26
- package/dist/index.cjs +89 -75
- package/dist/index.d.cts +24 -113
- package/dist/index.d.mts +24 -113
- package/dist/index.mjs +43 -29
- package/dist/jobs-entry.cjs +11 -11
- package/dist/jobs-entry.d.cts +1 -2
- package/dist/jobs-entry.d.mts +1 -2
- package/dist/jobs-entry.mjs +2 -2
- package/dist/plugin-BjOqJV5R.cjs +234 -0
- package/dist/plugin-BlCGyWyE.d.cts +1929 -0
- package/dist/plugin-CBt_5Jd1.d.mts +1929 -0
- package/dist/plugin-DZuHi-id.mjs +139 -0
- package/dist/{cache-C2NzZFQO.cjs → plugin-server-PQK30p1W.cjs} +138 -88
- package/dist/{cache-OFJ8xsXC.mjs → plugin-server-ryuKqraG.mjs} +103 -41
- package/dist/plugin.cjs +8 -72
- package/dist/plugin.d.cts +3 -3
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.mjs +2 -68
- package/dist/{protected-resource-metadata-BOAI1bqI.d.cts → protected-resource-metadata-BMLoE0bq.d.mts} +1 -1
- package/dist/{protected-resource-metadata-DWMR91fl.d.mts → protected-resource-metadata-CptRW7RG.d.cts} +1 -1
- package/dist/schemas.cjs +1 -1
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.mts +2 -2
- package/dist/schemas.mjs +1 -1
- package/package.json +1 -1
- package/src/adapter.ts +87 -14
- package/src/api.ts +5 -1
- package/src/config.ts +17 -10
- package/src/define-config.ts +46 -13
- package/src/generator.ts +358 -45
- package/src/handler-pipeline.ts +26 -12
- package/src/index.ts +7 -4
- package/src/job-runner.ts +5 -0
- package/src/job-transport.ts +3 -3
- package/src/job.ts +8 -6
- package/src/jobs.ts +3 -2
- package/src/kizuna.ts +14 -3
- package/src/plugin-server.ts +90 -17
- package/src/plugin.ts +223 -127
- package/src/tool-definitions.ts +1 -0
- package/src/types.ts +68 -0
- package/dist/api-definition-D8wA48BA.d.mts +0 -803
- package/dist/api-definition-mKT2sX4P.d.cts +0 -803
- package/dist/error-response-BBGSdgYw.d.mts +0 -67
- package/dist/error-response-Do38sr-9.d.cts +0 -67
- package/dist/plugin-DaiXr_zT.d.mts +0 -991
- package/dist/plugin-u5qE0OXd.d.cts +0 -991
- /package/dist/{schemas-BG1zYJdk.cjs → schemas-CpMb2KEw.cjs} +0 -0
- /package/dist/{schemas-BL5VlNt2.mjs → schemas-DttyKxw1.mjs} +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
A spec-driven framework for building fully typed REST APIs in TypeScript, where your route declarations produce the validation, the documentation, the clients, and the AI tools.
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/kizunajs/v/2.0.0-beta.
|
|
7
|
+
[](https://www.npmjs.com/package/kizunajs/v/2.0.0-beta.11)
|
|
8
8
|

|
|
9
9
|
|
|
10
10
|
[Documentation](https://kizunajs.com)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Q as JobsConfig, X as Jobs, Z as JobsArg, a as RequestContextOf, dt as JobRunner, ft as JobRunnerOptions, h as TagSet, i as JobsOf, it as JobErrorHandler, n as ApiPluginsOf, o as RoutesOf, p as TagKeysOf, s as SchemesOf, t as ApiDefinition, vt as JobTransport } from "./api-definition-D8wA48BA.mjs";
|
|
1
|
+
import { K as RouteDefinition, V as RequiredPermissions, W as ResponseHeaders, Z as Routes, at as ProblemDetails, s as SecurityScheme, z as Method } from "./error-response-Da3XXloD.cjs";
|
|
2
|
+
import { A as ApiPluginsOf, Bn as PathParamsCheck, Bt as TagKeysOf, F as SchemesOf, Ht as TagSet, Kn as EncodeStreamOptions, M as JobsOf, N as RequestContextOf, Nr as NoCredential, P as RoutesOf, Tr as Credential, X as JobsArg, Y as Jobs, Z as JobsConfig, _t as JobTransport, a as PluginApi, dn as RouteHandler, dt as JobRunnerOptions, fn as Router, gn as ValidationStage, k as ApiDefinition, ln as RequestContextValues, o as PluginArgs, on as HandlerReturn, rt as JobErrorHandler, s as PluginDeclaration, sn as HandlersFromRoutes, ut as JobRunner, y as ResolvedPlugin } from "./plugin-BlCGyWyE.cjs";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
|
|
6
5
|
//#region src/access-check.d.ts
|
|
@@ -65,13 +64,19 @@ declare const pluginRouterOf: (api: unknown) => Record<string, unknown>;
|
|
|
65
64
|
*/
|
|
66
65
|
declare const pluginExportsOf: (api: unknown) => Record<string, unknown>;
|
|
67
66
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* Resolve every installed plugin, keyed by slug. Two plugins on one slug throw,
|
|
68
|
+
* naming both, since handlers could only reach one of them.
|
|
70
69
|
*/
|
|
71
|
-
declare const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
declare const resolvePlugins: (declarations: readonly PluginDeclaration[] | undefined, api: PluginApi) => Record<string, ResolvedPlugin>;
|
|
71
|
+
/**
|
|
72
|
+
* A stand-in for the api that plugins receive in `setup`, before it exists.
|
|
73
|
+
* Reading it inside a handler works once `bind` has run; reading it during
|
|
74
|
+
* `setup` throws, since the api is still being assembled.
|
|
75
|
+
*/
|
|
76
|
+
declare const createApiReference: () => {
|
|
77
|
+
api: PluginApi;
|
|
78
|
+
bind: (target: object) => void;
|
|
79
|
+
};
|
|
75
80
|
//#endregion
|
|
76
81
|
//#region src/routes.d.ts
|
|
77
82
|
/**
|
|
@@ -210,7 +215,7 @@ declare const contractOf: <C = unknown>(api: unknown) => C;
|
|
|
210
215
|
/**
|
|
211
216
|
* What kizuna puts in handler args. Must agree with the spread in `runPipeline`.
|
|
212
217
|
*/
|
|
213
|
-
declare const HANDLER_ARG_KEYS: readonly ["params", "query", "body", "headers", "throwError", "auth", "requestContext", "plugins", "tools"];
|
|
218
|
+
declare const HANDLER_ARG_KEYS: readonly ["params", "query", "body", "headers", "throwError", "auth", "requestContext", "plugins", "tools", "rawBody"];
|
|
214
219
|
/**
|
|
215
220
|
* The adapter's own context, with kizuna's arguments removed.
|
|
216
221
|
*/
|
|
@@ -231,7 +236,7 @@ declare const assembleApi: <const R extends Routes>(contract: {
|
|
|
231
236
|
routes: R;
|
|
232
237
|
securitySchemes?: Record<string, SecurityScheme>;
|
|
233
238
|
guardSchema?: z.ZodType;
|
|
234
|
-
plugins?:
|
|
239
|
+
plugins?: Record<string, ResolvedPlugin>;
|
|
235
240
|
}, parts: ApiParts) => ApiWithRouter<R>;
|
|
236
241
|
/**
|
|
237
242
|
* The endpoints jobs are served on, in the {@link Routes} shape the request
|
|
@@ -365,6 +370,11 @@ interface AdapterRequest<NativeRequest> {
|
|
|
365
370
|
query: unknown;
|
|
366
371
|
headers: unknown;
|
|
367
372
|
readBody: (route: RouteDefinition) => Promise<unknown> | unknown;
|
|
373
|
+
/**
|
|
374
|
+
* The body as it was sent, for a route with `rawBody: true`, or `undefined`
|
|
375
|
+
* when it was already consumed.
|
|
376
|
+
*/
|
|
377
|
+
readRawBody?: (route: RouteDefinition) => Promise<string | undefined> | string | undefined;
|
|
368
378
|
}
|
|
369
379
|
/**
|
|
370
380
|
* Outcome of `runPipeline`. The adapter's `respond` translates this to a native response.
|
|
@@ -483,7 +493,7 @@ declare const getHeaderValue: (value: unknown) => string | undefined;
|
|
|
483
493
|
*/
|
|
484
494
|
declare const extractCredential: (scheme: SecurityScheme, request: AdapterRequest<unknown>) => Credential | NoCredential;
|
|
485
495
|
/**
|
|
486
|
-
* The request pipeline `
|
|
496
|
+
* The request pipeline `defineAdapter` builds: what matches a request to a
|
|
487
497
|
* route, runs the guards and the handler, and hands the result back to the
|
|
488
498
|
* framework.
|
|
489
499
|
*/
|
|
@@ -500,7 +510,7 @@ interface RequestPipeline<NativeRequest, NativeResponse, HandlerContext, Respons
|
|
|
500
510
|
* everything that walks a router by dotted key finds the route's own handler.
|
|
501
511
|
*/
|
|
502
512
|
declare const routerFromRoutes: (routes: Routes) => Record<string, unknown>;
|
|
503
|
-
declare const
|
|
513
|
+
declare const defineAdapter: <NativeRequest, NativeResponse, HandlerContext, ResponseContext = Record<string, never>>(definition: AdapterDefinition<NativeRequest, NativeResponse, HandlerContext, ResponseContext>) => RequestPipeline<NativeRequest, NativeResponse, HandlerContext, ResponseContext>;
|
|
504
514
|
/**
|
|
505
515
|
* Decides the bytes that go on the wire for an error (status >= 400). The default emits the
|
|
506
516
|
* canonical RFC 9457 Problem Details as `application/problem+json`.
|
|
@@ -551,6 +561,11 @@ interface RenderedResult {
|
|
|
551
561
|
declare const renderJsonResult: (result: Exclude<AdapterResult, {
|
|
552
562
|
kind: "raw-response";
|
|
553
563
|
}>, formatError?: ErrorFormatter, request?: unknown, requestMethod?: string) => RenderedResult;
|
|
564
|
+
/**
|
|
565
|
+
* Parse a body from its text, the way {@link parseFetchBody} would, for a route
|
|
566
|
+
* whose text core already read.
|
|
567
|
+
*/
|
|
568
|
+
declare const parseBodyText: (text: string, route: RouteDefinition) => unknown;
|
|
554
569
|
/**
|
|
555
570
|
* Content-type-aware body parser for Web Fetch `Request`.
|
|
556
571
|
*
|
|
@@ -560,4 +575,4 @@ declare const renderJsonResult: (result: Exclude<AdapterResult, {
|
|
|
560
575
|
declare const parseFetchBody: (request: Request, route: RouteDefinition) => Promise<unknown>;
|
|
561
576
|
declare const headersToObject: (headers: Headers) => ResponseHeaders;
|
|
562
577
|
//#endregion
|
|
563
|
-
export { jobRunnerFrom as $, RenderedResult as A, bearerChallenge as B, JOBS_META as C, REQUEST_CONTEXT_META as D, MountedOf as E, RouteMatcher as F, dispatchRoute as G, contractOf as H, SCHEMES_META as I, guardDenyFor as J, extractCredential as K, ServerOptions as L, RequestContextRun as M, RequestPipeline as N, ROUTER_META as O, ResponseValidationError as P, jobRoutes as Q, adapterContextOf as R, HandlerContextOf as S, MountArgsOf as T,
|
|
578
|
+
export { jobRunnerFrom as $, RenderedResult as A, bearerChallenge as B, JOBS_META as C, REQUEST_CONTEXT_META as D, MountedOf as E, RouteMatcher as F, dispatchRoute as G, contractOf as H, SCHEMES_META as I, guardDenyFor as J, extractCredential as K, ServerOptions as L, RequestContextRun as M, RequestPipeline as N, ROUTER_META as O, ResponseValidationError as P, jobRoutes as Q, adapterContextOf as R, HandlerContextOf as S, withPermissions as St, MountArgsOf as T, defineAdapter as U, boundJobKeys as V, dispatchHandler as W, isGuardDenial as X, headersToObject as Y, jobRouter as Z, GuardDeny as _, matchRoute as _t, AdapterRequest as a, runRoute as at, HANDLER_ARG_KEYS as b, insufficientScope as bt, ApiBrand as c, ResponseError as ct, DISPATCH_ROUTE_KEY as d, pluginExportsOf as dt, parseBodyText as et, ErrorFormatter as f, pluginRouterOf as ft, GuardDenialBody as g, RouteMatch as gt, GuardDenial as h, MatchResult as ht, AdapterDefinition as i, runHandler as it, RequestContextMap as j, RUN_ROUTE_KEY as k, ApiParts as l, tagRoutes as lt, GUARD_SCHEMA_META as m, resolvePlugins as mt, API_META as n, renderJsonResult as nt, AdapterResult as o, warnUnsupportedJobOptions as ot, GUARDS_META as p, pluginRoutesOf as pt, getHeaderValue as q, Adapter as r, routerFromRoutes as rt, AnyAdapter as s, ApiRouter as st, ADAPTER_CONTEXT as t, parseFetchBody as tt, ApiWithRouter as u, createApiReference as ut, GuardMap as v, sortFlattenedRoutes as vt, JobsMeta as w, HandleArgs as x, requiresDenial as xt, GuardRun as y, AccessCheckInput as yt, assembleApi as z };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Q as JobsConfig, X as Jobs, Z as JobsArg, a as RequestContextOf, dt as JobRunner, ft as JobRunnerOptions, h as TagSet, i as JobsOf, it as JobErrorHandler, n as ApiPluginsOf, o as RoutesOf, p as TagKeysOf, s as SchemesOf, t as ApiDefinition, vt as JobTransport } from "./api-definition-mKT2sX4P.cjs";
|
|
1
|
+
import { K as RouteDefinition, V as RequiredPermissions, W as ResponseHeaders, Z as Routes, at as ProblemDetails, s as SecurityScheme, z as Method } from "./error-response-D2bAIpNd.mjs";
|
|
2
|
+
import { A as ApiPluginsOf, Bn as PathParamsCheck, Bt as TagKeysOf, F as SchemesOf, Ht as TagSet, Kn as EncodeStreamOptions, M as JobsOf, N as RequestContextOf, Nr as NoCredential, P as RoutesOf, Tr as Credential, X as JobsArg, Y as Jobs, Z as JobsConfig, _t as JobTransport, a as PluginApi, dn as RouteHandler, dt as JobRunnerOptions, fn as Router, gn as ValidationStage, k as ApiDefinition, ln as RequestContextValues, o as PluginArgs, on as HandlerReturn, rt as JobErrorHandler, s as PluginDeclaration, sn as HandlersFromRoutes, ut as JobRunner, y as ResolvedPlugin } from "./plugin-CBt_5Jd1.mjs";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
|
|
6
5
|
//#region src/access-check.d.ts
|
|
@@ -65,13 +64,19 @@ declare const pluginRouterOf: (api: unknown) => Record<string, unknown>;
|
|
|
65
64
|
*/
|
|
66
65
|
declare const pluginExportsOf: (api: unknown) => Record<string, unknown>;
|
|
67
66
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* Resolve every installed plugin, keyed by slug. Two plugins on one slug throw,
|
|
68
|
+
* naming both, since handlers could only reach one of them.
|
|
70
69
|
*/
|
|
71
|
-
declare const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
declare const resolvePlugins: (declarations: readonly PluginDeclaration[] | undefined, api: PluginApi) => Record<string, ResolvedPlugin>;
|
|
71
|
+
/**
|
|
72
|
+
* A stand-in for the api that plugins receive in `setup`, before it exists.
|
|
73
|
+
* Reading it inside a handler works once `bind` has run; reading it during
|
|
74
|
+
* `setup` throws, since the api is still being assembled.
|
|
75
|
+
*/
|
|
76
|
+
declare const createApiReference: () => {
|
|
77
|
+
api: PluginApi;
|
|
78
|
+
bind: (target: object) => void;
|
|
79
|
+
};
|
|
75
80
|
//#endregion
|
|
76
81
|
//#region src/routes.d.ts
|
|
77
82
|
/**
|
|
@@ -210,7 +215,7 @@ declare const contractOf: <C = unknown>(api: unknown) => C;
|
|
|
210
215
|
/**
|
|
211
216
|
* What kizuna puts in handler args. Must agree with the spread in `runPipeline`.
|
|
212
217
|
*/
|
|
213
|
-
declare const HANDLER_ARG_KEYS: readonly ["params", "query", "body", "headers", "throwError", "auth", "requestContext", "plugins", "tools"];
|
|
218
|
+
declare const HANDLER_ARG_KEYS: readonly ["params", "query", "body", "headers", "throwError", "auth", "requestContext", "plugins", "tools", "rawBody"];
|
|
214
219
|
/**
|
|
215
220
|
* The adapter's own context, with kizuna's arguments removed.
|
|
216
221
|
*/
|
|
@@ -231,7 +236,7 @@ declare const assembleApi: <const R extends Routes>(contract: {
|
|
|
231
236
|
routes: R;
|
|
232
237
|
securitySchemes?: Record<string, SecurityScheme>;
|
|
233
238
|
guardSchema?: z.ZodType;
|
|
234
|
-
plugins?:
|
|
239
|
+
plugins?: Record<string, ResolvedPlugin>;
|
|
235
240
|
}, parts: ApiParts) => ApiWithRouter<R>;
|
|
236
241
|
/**
|
|
237
242
|
* The endpoints jobs are served on, in the {@link Routes} shape the request
|
|
@@ -365,6 +370,11 @@ interface AdapterRequest<NativeRequest> {
|
|
|
365
370
|
query: unknown;
|
|
366
371
|
headers: unknown;
|
|
367
372
|
readBody: (route: RouteDefinition) => Promise<unknown> | unknown;
|
|
373
|
+
/**
|
|
374
|
+
* The body as it was sent, for a route with `rawBody: true`, or `undefined`
|
|
375
|
+
* when it was already consumed.
|
|
376
|
+
*/
|
|
377
|
+
readRawBody?: (route: RouteDefinition) => Promise<string | undefined> | string | undefined;
|
|
368
378
|
}
|
|
369
379
|
/**
|
|
370
380
|
* Outcome of `runPipeline`. The adapter's `respond` translates this to a native response.
|
|
@@ -483,7 +493,7 @@ declare const getHeaderValue: (value: unknown) => string | undefined;
|
|
|
483
493
|
*/
|
|
484
494
|
declare const extractCredential: (scheme: SecurityScheme, request: AdapterRequest<unknown>) => Credential | NoCredential;
|
|
485
495
|
/**
|
|
486
|
-
* The request pipeline `
|
|
496
|
+
* The request pipeline `defineAdapter` builds: what matches a request to a
|
|
487
497
|
* route, runs the guards and the handler, and hands the result back to the
|
|
488
498
|
* framework.
|
|
489
499
|
*/
|
|
@@ -500,7 +510,7 @@ interface RequestPipeline<NativeRequest, NativeResponse, HandlerContext, Respons
|
|
|
500
510
|
* everything that walks a router by dotted key finds the route's own handler.
|
|
501
511
|
*/
|
|
502
512
|
declare const routerFromRoutes: (routes: Routes) => Record<string, unknown>;
|
|
503
|
-
declare const
|
|
513
|
+
declare const defineAdapter: <NativeRequest, NativeResponse, HandlerContext, ResponseContext = Record<string, never>>(definition: AdapterDefinition<NativeRequest, NativeResponse, HandlerContext, ResponseContext>) => RequestPipeline<NativeRequest, NativeResponse, HandlerContext, ResponseContext>;
|
|
504
514
|
/**
|
|
505
515
|
* Decides the bytes that go on the wire for an error (status >= 400). The default emits the
|
|
506
516
|
* canonical RFC 9457 Problem Details as `application/problem+json`.
|
|
@@ -551,6 +561,11 @@ interface RenderedResult {
|
|
|
551
561
|
declare const renderJsonResult: (result: Exclude<AdapterResult, {
|
|
552
562
|
kind: "raw-response";
|
|
553
563
|
}>, formatError?: ErrorFormatter, request?: unknown, requestMethod?: string) => RenderedResult;
|
|
564
|
+
/**
|
|
565
|
+
* Parse a body from its text, the way {@link parseFetchBody} would, for a route
|
|
566
|
+
* whose text core already read.
|
|
567
|
+
*/
|
|
568
|
+
declare const parseBodyText: (text: string, route: RouteDefinition) => unknown;
|
|
554
569
|
/**
|
|
555
570
|
* Content-type-aware body parser for Web Fetch `Request`.
|
|
556
571
|
*
|
|
@@ -560,4 +575,4 @@ declare const renderJsonResult: (result: Exclude<AdapterResult, {
|
|
|
560
575
|
declare const parseFetchBody: (request: Request, route: RouteDefinition) => Promise<unknown>;
|
|
561
576
|
declare const headersToObject: (headers: Headers) => ResponseHeaders;
|
|
562
577
|
//#endregion
|
|
563
|
-
export { jobRunnerFrom as $, RenderedResult as A, bearerChallenge as B, JOBS_META as C, REQUEST_CONTEXT_META as D, MountedOf as E, RouteMatcher as F, dispatchRoute as G, contractOf as H, SCHEMES_META as I, guardDenyFor as J, extractCredential as K, ServerOptions as L, RequestContextRun as M, RequestPipeline as N, ROUTER_META as O, ResponseValidationError as P, jobRoutes as Q, adapterContextOf as R, HandlerContextOf as S, MountArgsOf as T,
|
|
578
|
+
export { jobRunnerFrom as $, RenderedResult as A, bearerChallenge as B, JOBS_META as C, REQUEST_CONTEXT_META as D, MountedOf as E, RouteMatcher as F, dispatchRoute as G, contractOf as H, SCHEMES_META as I, guardDenyFor as J, extractCredential as K, ServerOptions as L, RequestContextRun as M, RequestPipeline as N, ROUTER_META as O, ResponseValidationError as P, jobRoutes as Q, adapterContextOf as R, HandlerContextOf as S, withPermissions as St, MountArgsOf as T, defineAdapter as U, boundJobKeys as V, dispatchHandler as W, isGuardDenial as X, headersToObject as Y, jobRouter as Z, GuardDeny as _, matchRoute as _t, AdapterRequest as a, runRoute as at, HANDLER_ARG_KEYS as b, insufficientScope as bt, ApiBrand as c, ResponseError as ct, DISPATCH_ROUTE_KEY as d, pluginExportsOf as dt, parseBodyText as et, ErrorFormatter as f, pluginRouterOf as ft, GuardDenialBody as g, RouteMatch as gt, GuardDenial as h, MatchResult as ht, AdapterDefinition as i, runHandler as it, RequestContextMap as j, RUN_ROUTE_KEY as k, ApiParts as l, tagRoutes as lt, GUARD_SCHEMA_META as m, resolvePlugins as mt, API_META as n, renderJsonResult as nt, AdapterResult as o, warnUnsupportedJobOptions as ot, GUARDS_META as p, pluginRoutesOf as pt, getHeaderValue as q, Adapter as r, routerFromRoutes as rt, AnyAdapter as s, ApiRouter as st, ADAPTER_CONTEXT as t, parseFetchBody as tt, ApiWithRouter as u, createApiReference as ut, GuardMap as v, sortFlattenedRoutes as vt, JobsMeta as w, HandleArgs as x, requiresDenial as xt, GuardRun as y, AccessCheckInput as yt, assembleApi as z };
|