@arbol-ai/maximus 7.0.0 → 7.2.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 CHANGED
@@ -40,7 +40,7 @@ export const app = maximus<Env>({
40
40
 
41
41
  Entries: the root (the core), `/workers` (the Worker), `/mcp` (MCP tools), `/client` (a typed
42
42
  client), `/schemas` (browser-safe schemas), `/errors` and `/failures` (runtime-free), `/body`,
43
- `/webhooks`, `/http-paths`, `/diagnostics`, `/internals` (the transport SPI), `/analytics`,
43
+ `/webhooks`, `/http-paths`, `/projection`, `/diagnostics`, `/internals` (the transport SPI), `/analytics`,
44
44
  `/postgres` (with the optional peer `pg`), `/testing`, `/oxlint` and `/oxfmt`. It installs the
45
45
  `maximus` CLI and ships the Maximus Agent Skill in `skills/maximus/`.
46
46
  See [package exports](https://github.com/getarbol/maximus/blob/main/docs/reference/exports.md).
@@ -1,4 +1,4 @@
1
- import { Jt as Observer, bn as Result, kn as Failure } from "../chunks/types-CGwAhnTE.js";
1
+ import { bn as Result, kn as Failure, qt as Observer } from "../chunks/types-BCPe0fok.js";
2
2
  import { Static } from "@sinclair/typebox";
3
3
  //#region src/analytics/analytics.d.ts
4
4
  /** An analytics event: the allowlisted metadata of one operation call, flattened, with an id of its own. */
package/dist/body.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { c as isJsonMediaType, d as retryAfterSeconds, f as BodyReadOptions, g as readBodyText, h as readBodyBytes, l as readJsonBody, m as HttpBodyFailureReason, p as HttpBodyFailure, u as readJsonResponse } from "./chunks/types-CGwAhnTE.js";
1
+ import { c as isJsonMediaType, d as retryAfterSeconds, f as BodyReadOptions, g as readBodyText, h as readBodyBytes, l as readJsonBody, m as HttpBodyFailureReason, p as HttpBodyFailure, u as readJsonResponse } from "./chunks/types-BCPe0fok.js";
2
2
  export { type BodyReadOptions, type HttpBodyFailure, type HttpBodyFailureReason, isJsonMediaType, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, retryAfterSeconds };
@@ -529,8 +529,19 @@ function failureResponse(status, failures) {
529
529
  * schemas of its paths and components (TypeBox Recursive/Ref) become components, as `bundleSchemas`
530
530
  * describes.
531
531
  */
532
- function createOpenApi(manifest) {
532
+ function createOpenApi(manifest, options) {
533
533
  const document = openApiDocument(manifest);
534
+ if (options?.operationExtensions) {
535
+ const paths = document.paths;
536
+ for (const methods of Object.values(paths)) for (const declared of Object.values(methods)) {
537
+ const name = String(declared.operationId);
538
+ const operation = manifest.operations[name];
539
+ if (!operation) throw new TypeError("The document names an undeclared operation.");
540
+ const extensions = options.operationExtensions(name, operation);
541
+ if (Object.keys(extensions).some((key) => !key.startsWith("x-"))) throw new TypeError("OpenAPI extensions must use x- names.");
542
+ Object.assign(declared, extensions);
543
+ }
544
+ }
534
545
  const own = Object.entries(document.components.schemas);
535
546
  const bundled = bundleSchemas([document.paths, ...own.map(([, schema]) => schema)], document.components.schemas);
536
547
  const [paths, ...schemas] = bundled.values;
@@ -1,4 +1,4 @@
1
- import { OptionalKind, Static, Static as Static$1, Static as Static$2, StaticDecode, StaticDecode as StaticDecode$1, TArray, TLiteral, TObject, TOptional, TProperties, TSchema, TSchema as TSchema$1, TSchema as TSchema$2, TString, TTransform, TUnion, TUnsafe, Type as Type$1, Type as Type$2, Type as t, Type as t$1 } from "@sinclair/typebox";
1
+ import { Kind, OptionalKind, Static, Static as Static$1, Static as Static$2, StaticDecode, TArray, TLiteral, TObject, TOptional, TProperties, TRecord, TSchema, TSchema as TSchema$1, TSchema as TSchema$2, TString, TTransform, TTuple, TUnion, TUnsafe, TransformKind, Type as Type$1, Type as Type$2, Type as t, Type as t$1 } from "@sinclair/typebox";
2
2
  //#region src/attachment-schema.d.ts
3
3
  /** A file an HTTP operation answers with: its bytes, media type, filename and exact length. */
4
4
  interface Attachment {
@@ -307,6 +307,15 @@ interface BinaryBody {
307
307
  read: () => Promise<Result<Uint8Array<ArrayBuffer>, Failure>>;
308
308
  }
309
309
  //#endregion
310
+ //#region src/schema-types.d.ts
311
+ /** Opaque owner codecs already carry their decoded static type; only native transforms need traversal. */
312
+ type HasNativeTransform<S extends TSchema> = typeof TransformKind extends keyof S ? true : string extends S[typeof Kind] ? false : S extends TObject<infer P> ? true extends { [K in keyof P]: HasNativeTransform<P[K]>; }[keyof P] ? true : false : S extends TArray<infer I> ? HasNativeTransform<I> : S extends TUnion<infer U> | TTuple<infer U> ? HasNativeTransform<U[number]> : S extends TRecord<TSchema, infer V> ? HasNativeTransform<V> : false;
313
+ /**
314
+ * A schema's decoded value. TypeBox's deep decoder can recurse indefinitely through opaque owner
315
+ * codecs; a schema without native transforms already has exactly its decoded `Static` type.
316
+ */
317
+ type StaticDecode$1<S extends TSchema> = true extends HasNativeTransform<S> ? StaticDecode<S> : Static<S>;
318
+ //#endregion
310
319
  //#region src/scopes.d.ts
311
320
  /**
312
321
  * Scope names and matching: the namespaced form every scope takes, and whether granted scopes admit a
@@ -852,7 +861,7 @@ declare function operation<C, I extends TSchema, O extends TSchema, const X exte
852
861
  effect: OperationShape['effect'];
853
862
  input: I;
854
863
  output: O;
855
- execute: (context: C, input: StaticDecode<I>) => Promise<Result<Static<O>, Failure>>;
864
+ execute: (context: C, input: StaticDecode$1<I>) => Promise<Result<Static<O>, Failure>>;
856
865
  }): X & {
857
866
  scope: OperationScope;
858
867
  scopeMatch?: ScopeMatch;
@@ -863,7 +872,7 @@ declare function operation<C, I extends TSchema, O extends TSchema, const X exte
863
872
  effect: OperationShape['effect'];
864
873
  input: I;
865
874
  output: O;
866
- execute: (context: C, input: StaticDecode<I>) => Promise<Result<Static<O>, Failure>>;
875
+ execute: (context: C, input: StaticDecode$1<I>) => Promise<Result<Static<O>, Failure>>;
867
876
  };
868
877
  /** The intersection of a union's members: the operations of every composed group. */
869
878
  type Intersection<U> = (U extends unknown ? (value: U) => void : never) extends ((value: infer I) => void) ? I : never;
@@ -1025,7 +1034,7 @@ declare class ApplicationBuilder<E, C, Ops extends Record<string, OperationShape
1025
1034
  };
1026
1035
  } ? {
1027
1036
  body: BinaryBody;
1028
- } : object), input: StaticDecode<I>) => Promise<Result<Static<O>, Failure>>): ApplicationBuilder<E, C, Ops & Record<N, Definition<I, O, X> & {
1037
+ } : object), input: StaticDecode$1<I>) => Promise<Result<Static<O>, Failure>>): ApplicationBuilder<E, C, Ops & Record<N, Definition<I, O, X> & {
1029
1038
  execute: typeof execute;
1030
1039
  }>>;
1031
1040
  /**
@@ -1081,7 +1090,7 @@ declare function parseInput<Schema extends TSchema>(schema: Schema, input: unkno
1081
1090
  declare function parseSchema<Schema extends TSchema>(schema: Schema, input: unknown): Static<Schema>;
1082
1091
  /** Admit a real wire schema once, materialize declared defaults, and decode native TypeBox transforms.
1083
1092
  * Output validation deliberately remains check-only: response data must already be canonical. */
1084
- declare function decodeSchema<Schema extends TSchema>(schema: Schema, input: unknown): StaticDecode<Schema>;
1093
+ declare function decodeSchema<Schema extends TSchema>(schema: Schema, input: unknown): StaticDecode$1<Schema>;
1085
1094
  /** Field issues a refusal carries: enough to correct the input, never an input value. */
1086
1095
  interface InputIssue {
1087
1096
  /** RFC 6901 JSON Pointer to the refused field; empty for the whole input. */
@@ -1096,9 +1105,7 @@ interface InputIssue {
1096
1105
  declare function decodeInput<Schema extends TSchema>(schema: Schema, input: unknown): {
1097
1106
  error?: undefined;
1098
1107
  ok: true;
1099
- value: import("@sinclair/typebox").StaticDecodeIsAny<Schema> extends true ? unknown : (import("@sinclair/typebox").TDecodeType<Schema> & {
1100
- params: [];
1101
- })["static"];
1108
+ value: StaticDecode$1<Schema>;
1102
1109
  } | {
1103
1110
  value?: undefined;
1104
1111
  ok: false;
@@ -1134,7 +1141,7 @@ type InputKeys<P extends TProperties> = { [K in keyof P]: P[K] extends {
1134
1141
  * The type a schema accepts on the wire: a field that is optional or has a default may be omitted, and a
1135
1142
  * field a codec declares (`normalizeSchema`, `transformSchema`, `pipeSchema`) is sent as its source.
1136
1143
  */
1137
- type SchemaInput<S extends TSchema, Depth extends unknown[] = []> = Depth['length'] extends 6 ? Static<S> : typeof WIRE extends keyof S ? S extends WireType<infer W> ? W : never : S extends TObject<infer P> ? { [K in Exclude<keyof P, InputKeys<P>>]: SchemaInput<P[K]>; } & { [K in InputKeys<P>]?: SchemaInput<P[K]>; } : S extends TArray<infer I> ? SchemaInput<I>[] : S extends TUnion<infer U> ? SchemaInput<U[number]> : Static<S>;
1144
+ type SchemaInput<S extends TSchema, Depth extends unknown[] = []> = Depth['length'] extends 6 ? Static<S> : typeof WIRE extends keyof S ? S extends WireType<infer W> ? W : never : S extends TObject<infer P> ? { [K in Exclude<keyof P, InputKeys<P>>]: SchemaInput<P[K], [...Depth, unknown]>; } & { [K in InputKeys<P>]?: SchemaInput<P[K], [...Depth, unknown]>; } : S extends TArray<infer I> ? SchemaInput<I, [...Depth, unknown]>[] : S extends TUnion<infer U> ? SchemaInput<U[number], [...Depth, unknown]> : Static<S>;
1138
1145
  /**
1139
1146
  * One refused field: a code, a message that names the expectation and never the value, and the path to the
1140
1147
  * field.
@@ -1154,7 +1161,7 @@ declare class SchemaValidationError extends TypeError {
1154
1161
  constructor(issues: SchemaIssue[]);
1155
1162
  }
1156
1163
  /** A union of literals: `literalUnion(['open', 'done'])`. */
1157
- declare const literalUnion: <const V extends readonly (string | number | boolean)[]>(values: V) => TUnion<import("@sinclair/typebox").TLiteral<V[number]>[]>;
1164
+ declare const literalUnion: <const V extends readonly (string | number | boolean)[]>(values: V) => TUnion<{ -readonly [K in keyof V]: TLiteral<V[K]>; }>;
1158
1165
  /**
1159
1166
  * The schema with a default that decoding applies when the field is absent, so the field is optional on the
1160
1167
  * wire.
@@ -1224,9 +1231,9 @@ declare const urlSchema: (options: {
1224
1231
  */
1225
1232
  declare function inputSchema<S extends TSchema>(schema: S, options?: {
1226
1233
  stripUnknown?: boolean;
1227
- }): TTransform<TUnsafe<SchemaInput<S>>, StaticDecode<S>>;
1234
+ }): TTransform<TUnsafe<SchemaInput<S>>, StaticDecode$1<S>>;
1228
1235
  /** The same, reading another wire shape `wire` and decoding it into `schema`'s canonical type. */
1229
- declare function inputSchema<S extends TSchema, W extends TSchema>(schema: S, wire: W): TTransform<W, StaticDecode<S>>;
1236
+ declare function inputSchema<S extends TSchema, W extends TSchema>(schema: S, wire: W): TTransform<W, StaticDecode$1<S>>;
1230
1237
  //#endregion
1231
1238
  //#region src/schema-reader.d.ts
1232
1239
  /**
@@ -1235,7 +1242,7 @@ declare function inputSchema<S extends TSchema, W extends TSchema>(schema: S, wi
1235
1242
  */
1236
1243
  type Checked<S extends TSchema> = {
1237
1244
  success: true;
1238
- data: StaticDecode<S>;
1245
+ data: StaticDecode$1<S>;
1239
1246
  error?: never;
1240
1247
  } | {
1241
1248
  success: false;
@@ -1249,7 +1256,7 @@ type Checked<S extends TSchema> = {
1249
1256
  */
1250
1257
  declare function checkSchema<S extends TSchema>(schema: S, input: unknown): Checked<S>;
1251
1258
  /** `checkSchema`, throwing its SchemaValidationError on refusal. */
1252
- declare function readSchema<S extends TSchema>(schema: S, input: unknown): StaticDecode<S>;
1259
+ declare function readSchema<S extends TSchema>(schema: S, input: unknown): StaticDecode$1<S>;
1253
1260
  //#endregion
1254
1261
  //#region src/pagination.d.ts
1255
1262
  /**
@@ -1613,7 +1620,10 @@ declare function retryAfterSeconds(value: string | null, nowMs: number, maximum?
1613
1620
  * schemas of its paths and components (TypeBox Recursive/Ref) become components, as `bundleSchemas`
1614
1621
  * describes.
1615
1622
  */
1616
- declare function createOpenApi<E, C, O extends Record<string, OperationShape>>(manifest: AppManifest<E, C, O>): Record<string, unknown>;
1623
+ declare function createOpenApi<E, C, O extends Record<string, OperationShape>>(manifest: AppManifest<E, C, O>, options?: {
1624
+ /** Adapter-owned operation metadata; schemas in extensions share the document's components. */
1625
+ operationExtensions?: (name: string, operation: OperationShape) => Record<`x-${string}`, unknown>;
1626
+ }): Record<string, unknown>;
1617
1627
  //#endregion
1618
1628
  //#region src/execution.d.ts
1619
1629
  /**
@@ -1627,4 +1637,4 @@ declare function executeOperation<E, C, O extends Record<string, OperationShape>
1627
1637
  /** Checks the application, then hands it back unchanged. */
1628
1638
  declare function defineApp<Env, C>(): <const Ops extends Record<string, OperationShape>>(manifest: AppManifest<Env, C, Ops>) => AppManifest<Env, C, Ops>;
1629
1639
  //#endregion
1630
- export { PageQuery as $, telemetryEnabled as $t, EmptyInputSchema as A, FailureData as An, AppManifest as At, EmailAddressSchema as B, parseTraceParent as Bn, composeOperations as Bt, operationPathParameters as C, isResult as Cn, decodeInput as Ct, RouteContext as D, ErrorDefinition as Dn, ApplicationBuilder as Dt, HttpTransport as E, ErrorCatalog as En, parseSchema as Et, Type$2 as F, DurableCorrelation as Fn, McpGuide as Ft, PhoneNumberSchema as G, AdmissionObservation as Gt, HttpsUrlSchema as H, AttachmentOutputSchema as Hn, operation as Ht, UuidSchema as I, TraceParent as In, McpSkill as It, SignedUrl as J, Observer as Jt, PostalAddress as K, BackgroundContext as Kt, t$1 as L, createRequestId as Ln, OperationMiddleware as Lt, Static$2 as M, defineErrors as Mn, Invocation as Mt, StaticDecode$1 as N, resultSchema as Nn, InvocationAuthority as Nt, TransportContext as O, ErrorFactory as On, ApplicationConfiguration as Ot, TSchema$2 as P, standardErrors as Pn, McpConfiguration as Pt, PageInfoSchema as Q, reportUnexpected as Qt, DeletedObject as R, durableCorrelation as Rn, OperationScope as Rt, isPathParameterValue as S, err as Sn, InputIssue as St, HttpRoute as T, DefinedErrors as Tn, parseInput as Tt, NamedReference as U, operationMatchesScopes as Ut, HexColorSchema as V, Attachment as Vn, isPublicOperation as Vt, NamedReferenceSchema as W, operationScopes as Wt, Page as X, diagnosticsEnabled as Xt, SignedUrlSchema as Y, TelemetryConfig as Yt, PageInfo as Z, recordExecution as Zt, HttpRouteDefinition as _, matchesScopes as _n, refineSchema as _t, Type$1 as a, TokenClient as an, readSchema as at, decodePathParameter as b, Result as bn, transformSchema as bt, isJsonMediaType as c, TokenPrincipal as cn, SchemaValidationError as ct, retryAfterSeconds as d, createTokenAuthorization as dn, inputSchema as dt, withDiagnostics as en, PageQueryFields as et, BodyReadOptions as f, createTokenVerifier as fn, inspectSchema as ft, readBodyText as g, ScopeMatch as gn, pipeSchema as gt, readBodyBytes as h, protectedResourceMetadata as hn, normalizeSchema as ht, TSchema$1 as i, TokenClaims as in, checkSchema as it, OrganizationIdSchema as j, FailureSchema as jn, Exposure as jt, createHttpHandler as k, Failure as kn, maximus as kt, readJsonBody as l, TokenResolutionContext as ln, defaultSchema as lt, HttpBodyFailureReason as m, OAuthResource as mn, looseObject as mt, executeOperation as n, PrincipalSchema as nn, pageLimit as nt, t as o, TokenDevelopment as on, SchemaInput as ot, HttpBodyFailure as p, projectToken as pn, literalUnion as pt, PostalAddressSchema as q, ExecutionObservation as qt, Static$1 as r, TokenAlgorithm as rn, Checked as rt, createOpenApi as s, TokenPolicy as sn, SchemaIssue as st, defineApp as t, Principal as tn, TPage as tt, readJsonResponse as u, TokenScheme as un, extendObject as ut, HttpRouteMatch as v, BinaryBody as vn, strictObject as vt, HttpOptions as w, ok as wn, decodeSchema as wt, isInputHeaderName as x, Success as xn, urlSchema as xt, createHttpRouteResolver as y, FailureResult as yn, stripObject as yt, DeletedObjectSchema as z, isRequestId as zn, OperationShape as zt };
1640
+ export { PageQueryFields as $, withDiagnostics as $t, EmptyInputSchema as A, FailureData as An, Exposure as At, HexColorSchema as B, parseTraceParent as Bn, isPublicOperation as Bt, operationPathParameters as C, isResult as Cn, decodeSchema as Ct, RouteContext as D, ErrorDefinition as Dn, ApplicationConfiguration as Dt, HttpTransport as E, ErrorCatalog as En, ApplicationBuilder as Et, UuidSchema as F, DurableCorrelation as Fn, McpSkill as Ft, PostalAddress as G, BackgroundContext as Gt, NamedReference as H, AttachmentOutputSchema as Hn, operationMatchesScopes as Ht, t$1 as I, TraceParent as In, OperationMiddleware as It, SignedUrlSchema as J, TelemetryConfig as Jt, PostalAddressSchema as K, ExecutionObservation as Kt, DeletedObject as L, createRequestId as Ln, OperationScope as Lt, Static$2 as M, defineErrors as Mn, InvocationAuthority as Mt, TSchema$2 as N, resultSchema as Nn, McpConfiguration as Nt, TransportContext as O, ErrorFactory as On, maximus as Ot, Type$2 as P, standardErrors as Pn, McpGuide as Pt, PageQuery as Q, telemetryEnabled as Qt, DeletedObjectSchema as R, durableCorrelation as Rn, OperationShape as Rt, isPathParameterValue as S, err as Sn, decodeInput as St, HttpRoute as T, DefinedErrors as Tn, parseSchema as Tt, NamedReferenceSchema as U, operationScopes as Ut, HttpsUrlSchema as V, Attachment as Vn, operation as Vt, PhoneNumberSchema as W, AdmissionObservation as Wt, PageInfo as X, recordExecution as Xt, Page as Y, diagnosticsEnabled as Yt, PageInfoSchema as Z, reportUnexpected as Zt, HttpRouteDefinition as _, StaticDecode$1 as _n, strictObject as _t, Type$1 as a, TokenDevelopment as an, SchemaInput as at, decodePathParameter as b, Result as bn, urlSchema as bt, isJsonMediaType as c, TokenResolutionContext as cn, defaultSchema as ct, retryAfterSeconds as d, createTokenVerifier as dn, inspectSchema as dt, Principal as en, TPage as et, BodyReadOptions as f, projectToken as fn, literalUnion as ft, readBodyText as g, matchesScopes as gn, refineSchema as gt, readBodyBytes as h, ScopeMatch as hn, pipeSchema as ht, TSchema$1 as i, TokenClient as in, readSchema as it, OrganizationIdSchema as j, FailureSchema as jn, Invocation as jt, createHttpHandler as k, Failure as kn, AppManifest as kt, readJsonBody as l, TokenScheme as ln, extendObject as lt, HttpBodyFailureReason as m, protectedResourceMetadata as mn, normalizeSchema as mt, executeOperation as n, TokenAlgorithm as nn, Checked as nt, t as o, TokenPolicy as on, SchemaIssue as ot, HttpBodyFailure as p, OAuthResource as pn, looseObject as pt, SignedUrl as q, Observer as qt, Static$1 as r, TokenClaims as rn, checkSchema as rt, createOpenApi as s, TokenPrincipal as sn, SchemaValidationError as st, defineApp as t, PrincipalSchema as tn, pageLimit as tt, readJsonResponse as u, createTokenAuthorization as un, inputSchema as ut, HttpRouteMatch as v, BinaryBody as vn, stripObject as vt, HttpOptions as w, ok as wn, parseInput as wt, isInputHeaderName as x, Success as xn, InputIssue as xt, createHttpRouteResolver as y, FailureResult as yn, transformSchema as yt, EmailAddressSchema as z, isRequestId as zn, composeOperations as zt };
@@ -1,4 +1,4 @@
1
- import { kn as Failure, r as Static, zt as OperationShape } from "../chunks/types-CGwAhnTE.js";
1
+ import { Rt as OperationShape, kn as Failure, r as Static } from "../chunks/types-BCPe0fok.js";
2
2
  //#region src/client/client.d.ts
3
3
  /** What every HTTP operation answers: its data on success, its failure otherwise, and the request id. */
4
4
  export type Envelope<T> = {
@@ -1,4 +1,4 @@
1
- import { $t as telemetryEnabled, Bn as parseTraceParent, Fn as DurableCorrelation, In as TraceParent, Jt as Observer, Kt as BackgroundContext, Ln as createRequestId, Qt as reportUnexpected, Rn as durableCorrelation, Xt as diagnosticsEnabled, Yt as TelemetryConfig, Zt as recordExecution, en as withDiagnostics, qt as ExecutionObservation, zn as isRequestId } from "./chunks/types-CGwAhnTE.js";
1
+ import { $t as withDiagnostics, Bn as parseTraceParent, Fn as DurableCorrelation, Gt as BackgroundContext, In as TraceParent, Jt as TelemetryConfig, Kt as ExecutionObservation, Ln as createRequestId, Qt as telemetryEnabled, Rn as durableCorrelation, Xt as recordExecution, Yt as diagnosticsEnabled, Zt as reportUnexpected, qt as Observer, zn as isRequestId } from "./chunks/types-BCPe0fok.js";
2
2
  //#region src/internal/diagnostics.d.ts
3
3
  /**
4
4
  * What diagnostics may say about an error: its name, its causes' names, its issue count and its stack
package/dist/errors.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { An as FailureData, Dn as ErrorDefinition, En as ErrorCatalog, Mn as defineErrors, Nn as resultSchema, On as ErrorFactory, Pn as standardErrors, Tn as DefinedErrors, jn as FailureSchema, kn as Failure, zn as isRequestId } from "./chunks/types-CGwAhnTE.js";
1
+ import { An as FailureData, Dn as ErrorDefinition, En as ErrorCatalog, Mn as defineErrors, Nn as resultSchema, On as ErrorFactory, Pn as standardErrors, Tn as DefinedErrors, jn as FailureSchema, kn as Failure, zn as isRequestId } from "./chunks/types-BCPe0fok.js";
2
2
  export { DefinedErrors, ErrorCatalog, ErrorDefinition, ErrorFactory, Failure, FailureData, FailureSchema, defineErrors, isRequestId, resultSchema, standardErrors };
@@ -1,2 +1,2 @@
1
- import { C as operationPathParameters, S as isPathParameterValue, _ as HttpRouteDefinition, b as decodePathParameter, v as HttpRouteMatch, x as isInputHeaderName, y as createHttpRouteResolver } from "./chunks/types-CGwAhnTE.js";
1
+ import { C as operationPathParameters, S as isPathParameterValue, _ as HttpRouteDefinition, b as decodePathParameter, v as HttpRouteMatch, x as isInputHeaderName, y as createHttpRouteResolver } from "./chunks/types-BCPe0fok.js";
2
2
  export { HttpRouteDefinition, HttpRouteMatch, createHttpRouteResolver, decodePathParameter, isInputHeaderName, isPathParameterValue, operationPathParameters };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PageQuery, A as EmptyInputSchema, An as FailureData, At as AppManifest, B as EmailAddressSchema, Cn as isResult, D as RouteContext, Dn as ErrorDefinition, Dt as ApplicationBuilder, E as HttpTransport, En as ErrorCatalog, Et as parseSchema, Ft as McpGuide, G as PhoneNumberSchema, Gt as AdmissionObservation, H as HttpsUrlSchema, Hn as AttachmentOutputSchema, I as UuidSchema, It as McpSkill, J as SignedUrl, Jt as Observer, K as PostalAddress, Kt as BackgroundContext, Lt as OperationMiddleware, Mn as defineErrors, Mt as Invocation, Nn as resultSchema, Nt as InvocationAuthority, O as TransportContext, On as ErrorFactory, Ot as ApplicationConfiguration, Pn as standardErrors, Pt as McpConfiguration, Q as PageInfoSchema, Qt as reportUnexpected, R as DeletedObject, Rt as OperationScope, Sn as err, T as HttpRoute, Tn as DefinedErrors, Tt as parseInput, U as NamedReference, Ut as operationMatchesScopes, V as HexColorSchema, Vn as Attachment, Vt as isPublicOperation, W as NamedReferenceSchema, Wt as operationScopes, X as Page, Y as SignedUrlSchema, Yt as TelemetryConfig, Z as PageInfo, _ as HttpRouteDefinition, _n as matchesScopes, a as Type, an as TokenClient, bn as Result, c as isJsonMediaType, cn as TokenPrincipal, d as retryAfterSeconds, dn as createTokenAuthorization, et as PageQueryFields, f as BodyReadOptions, fn as createTokenVerifier, g as readBodyText, gn as ScopeMatch, h as readBodyBytes, hn as protectedResourceMetadata, i as TSchema, in as TokenClaims, j as OrganizationIdSchema, jn as FailureSchema, jt as Exposure, k as createHttpHandler, kn as Failure, kt as maximus, l as readJsonBody, ln as TokenResolutionContext, m as HttpBodyFailureReason, mn as OAuthResource, nn as PrincipalSchema, nt as pageLimit, o as t, on as TokenDevelopment, p as HttpBodyFailure, pn as projectToken, q as PostalAddressSchema, qt as ExecutionObservation, r as Static, rn as TokenAlgorithm, s as createOpenApi, sn as TokenPolicy, tn as Principal, tt as TPage, u as readJsonResponse, un as TokenScheme, v as HttpRouteMatch, vn as BinaryBody, w as HttpOptions, wn as ok, xn as Success, y as createHttpRouteResolver, yn as FailureResult, z as DeletedObjectSchema, zt as OperationShape } from "./chunks/types-CGwAhnTE.js";
1
+ import { $ as PageQueryFields, A as EmptyInputSchema, An as FailureData, At as Exposure, B as HexColorSchema, Bt as isPublicOperation, Cn as isResult, D as RouteContext, Dn as ErrorDefinition, Dt as ApplicationConfiguration, E as HttpTransport, En as ErrorCatalog, Et as ApplicationBuilder, F as UuidSchema, Ft as McpSkill, G as PostalAddress, Gt as BackgroundContext, H as NamedReference, Hn as AttachmentOutputSchema, Ht as operationMatchesScopes, It as OperationMiddleware, J as SignedUrlSchema, Jt as TelemetryConfig, K as PostalAddressSchema, Kt as ExecutionObservation, L as DeletedObject, Lt as OperationScope, Mn as defineErrors, Mt as InvocationAuthority, Nn as resultSchema, Nt as McpConfiguration, O as TransportContext, On as ErrorFactory, Ot as maximus, Pn as standardErrors, Pt as McpGuide, Q as PageQuery, R as DeletedObjectSchema, Rt as OperationShape, Sn as err, T as HttpRoute, Tn as DefinedErrors, Tt as parseSchema, U as NamedReferenceSchema, Ut as operationScopes, V as HttpsUrlSchema, Vn as Attachment, W as PhoneNumberSchema, Wt as AdmissionObservation, X as PageInfo, Y as Page, Z as PageInfoSchema, Zt as reportUnexpected, _ as HttpRouteDefinition, a as Type, an as TokenDevelopment, bn as Result, c as isJsonMediaType, cn as TokenResolutionContext, d as retryAfterSeconds, dn as createTokenVerifier, en as Principal, et as TPage, f as BodyReadOptions, fn as projectToken, g as readBodyText, gn as matchesScopes, h as readBodyBytes, hn as ScopeMatch, i as TSchema, in as TokenClient, j as OrganizationIdSchema, jn as FailureSchema, jt as Invocation, k as createHttpHandler, kn as Failure, kt as AppManifest, l as readJsonBody, ln as TokenScheme, m as HttpBodyFailureReason, mn as protectedResourceMetadata, nn as TokenAlgorithm, o as t, on as TokenPolicy, p as HttpBodyFailure, pn as OAuthResource, q as SignedUrl, qt as Observer, r as Static, rn as TokenClaims, s as createOpenApi, sn as TokenPrincipal, tn as PrincipalSchema, tt as pageLimit, u as readJsonResponse, un as createTokenAuthorization, v as HttpRouteMatch, vn as BinaryBody, w as HttpOptions, wn as ok, wt as parseInput, xn as Success, y as createHttpRouteResolver, yn as FailureResult, z as EmailAddressSchema } from "./chunks/types-BCPe0fok.js";
2
2
  export { type AdmissionObservation, type AppManifest, type ApplicationBuilder, type ApplicationConfiguration, type Attachment, AttachmentOutputSchema, type BackgroundContext, type BinaryBody, type BodyReadOptions, type DefinedErrors, type DeletedObject, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, type ErrorCatalog, type ErrorDefinition, type ErrorFactory, type ExecutionObservation, type Exposure, type Failure, type FailureData, type FailureResult, FailureSchema, HexColorSchema, type HttpBodyFailure, type HttpBodyFailureReason, type HttpOptions, type HttpRoute, type HttpRouteDefinition, type HttpRouteMatch, type HttpTransport, HttpsUrlSchema, type Invocation, type InvocationAuthority, type McpConfiguration, type McpGuide, type McpSkill, type NamedReference, NamedReferenceSchema, type OAuthResource, type Observer, type OperationMiddleware, type OperationScope, type OperationShape, OrganizationIdSchema, Page, type PageInfo, PageInfoSchema, type PageQuery, PageQueryFields, PhoneNumberSchema, type PostalAddress, PostalAddressSchema, type Principal, PrincipalSchema, type Result, type RouteContext, type ScopeMatch, type SignedUrl, SignedUrlSchema, type Static, type Success, type TPage, type TSchema, type TelemetryConfig, type TokenAlgorithm, type TokenClaims, type TokenClient, type TokenDevelopment, type TokenPolicy, type TokenPrincipal, type TokenResolutionContext, type TokenScheme, type TransportContext, Type, UuidSchema, createHttpHandler, createHttpRouteResolver, createOpenApi, createTokenAuthorization, createTokenVerifier, defineErrors, err, isJsonMediaType, isPublicOperation, isResult, matchesScopes, maximus, ok, operationMatchesScopes, operationScopes, pageLimit, parseInput, parseSchema, projectToken, protectedResourceMetadata, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, reportUnexpected, resultSchema, retryAfterSeconds, standardErrors, t };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { n as readBodyBytes, r as readBodyText } from "./chunks/body-BcMbreNd.js
4
4
  import { C as operationMatchesScopes, E as matchesScopes, T as operationScopes, a as createTokenVerifier, d as err, f as isResult, i as createTokenAuthorization, o as projectToken, p as ok, r as PrincipalSchema, y as isPublicOperation } from "./chunks/execution-qfZuMSIu.js";
5
5
  import { createHttpRouteResolver } from "./http-paths.js";
6
6
  import { _ as pageLimit, c as HexColorSchema, d as PhoneNumberSchema, f as PostalAddressSchema, g as PageQueryFields, h as PageInfoSchema, i as UuidSchema, l as HttpsUrlSchema, m as Page, n as OrganizationIdSchema, o as DeletedObjectSchema, p as SignedUrlSchema, s as EmailAddressSchema, t as EmptyInputSchema, u as NamedReferenceSchema, v as AttachmentOutputSchema } from "./chunks/schemas-q-51wBMQ.js";
7
- import { c as maximus, i as createOpenApi, n as t, r as createHttpHandler, s as protectedResourceMetadata, t as Type } from "./chunks/src-Ph5KHCRP.js";
7
+ import { c as maximus, i as createOpenApi, n as t, r as createHttpHandler, s as protectedResourceMetadata, t as Type } from "./chunks/src-Bqznd6Dd.js";
8
8
  import { i as reportUnexpected } from "./chunks/telemetry-DvZgrzZn.js";
9
9
  import { a as retryAfterSeconds, i as readJsonResponse, r as readJsonBody, t as isJsonMediaType } from "./chunks/json-Dwni3u4c.js";
10
10
 
@@ -1,2 +1,2 @@
1
- import { $t as telemetryEnabled, At as AppManifest, Bt as composeOperations, E as HttpTransport, Ht as operation, Kt as BackgroundContext, Lt as OperationMiddleware, Mt as Invocation, Nt as InvocationAuthority, O as TransportContext, Wt as operationScopes, Yt as TelemetryConfig, Zt as recordExecution, _ as HttpRouteDefinition, en as withDiagnostics, n as executeOperation, t as defineApp, v as HttpRouteMatch, w as HttpOptions, y as createHttpRouteResolver, zt as OperationShape } from "./chunks/types-CGwAhnTE.js";
1
+ import { $t as withDiagnostics, E as HttpTransport, Gt as BackgroundContext, It as OperationMiddleware, Jt as TelemetryConfig, Mt as InvocationAuthority, O as TransportContext, Qt as telemetryEnabled, Rt as OperationShape, Ut as operationScopes, Vt as operation, Xt as recordExecution, _ as HttpRouteDefinition, jt as Invocation, kt as AppManifest, n as executeOperation, t as defineApp, v as HttpRouteMatch, w as HttpOptions, y as createHttpRouteResolver, zt as composeOperations } from "./chunks/types-BCPe0fok.js";
2
2
  export { type AppManifest, type BackgroundContext, type HttpOptions, type HttpRouteDefinition, type HttpRouteMatch, type HttpTransport, type Invocation, type InvocationAuthority, type OperationMiddleware, type OperationShape, type TelemetryConfig, type TransportContext, composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordExecution, telemetryEnabled, withDiagnostics };
@@ -1,4 +1,4 @@
1
- import { E as HttpTransport } from "../chunks/types-CGwAhnTE.js";
1
+ import { E as HttpTransport } from "../chunks/types-BCPe0fok.js";
2
2
  //#region src/mcp/index.d.ts
3
3
  /**
4
4
  * The MCP transport, for `createWorker(app, { transports: [mcp()] })`: serves the operations that declare
package/dist/mcp/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { standardErrors } from "../errors.js";
2
2
  import { C as operationMatchesScopes, b as mcpOpenWorld, g as MAX_BODY_BYTES_CEILING, m as sha256Hex } from "../chunks/execution-qfZuMSIu.js";
3
- import { a as canonical, o as standaloneSchema } from "../chunks/src-Ph5KHCRP.js";
3
+ import { a as canonical, o as standaloneSchema } from "../chunks/src-Bqznd6Dd.js";
4
4
  import { i as reportUnexpected } from "../chunks/telemetry-DvZgrzZn.js";
5
5
  import { Type } from "@sinclair/typebox";
6
6
  import { Value } from "@sinclair/typebox/value";
@@ -0,0 +1,36 @@
1
+ //#region src/projection.d.ts
2
+ /**
3
+ * How a service's names and input schemas project onto the surfaces a gateway builds from its OpenAPI
4
+ * document, so the service, the gateway and the gateway's generated clients agree without coordinating:
5
+ * the MCP tool, the CLI's kebab-case words, a permission's description and the typed query codec.
6
+ * Browser-safe: no runtime, no schema library.
7
+ */
8
+ /** How one input field travels in a query string. */
9
+ export type QueryKind = 'string' | 'integer' | 'number' | 'boolean' | 'list';
10
+ /** Resolves a local `$ref` (`#/components/schemas/<name>`) of a bundled document. */
11
+ export type SchemaResolver = (reference: string) => unknown;
12
+ /** A resource and the verb that acts on it, such as `appointments` and `findNearest`. */
13
+ export interface ProjectedName {
14
+ /** The resource, in camelCase. */
15
+ readonly resource: string;
16
+ /** The verb, in camelCase. */
17
+ readonly verb: string;
18
+ }
19
+ /** A camelCase name in kebab-case: `findNearest` is `find-nearest`. */
20
+ export declare function kebab(value: string): string;
21
+ /** A camelCase or kebab-case name in snake_case: `findNearest` and `find-nearest` are `find_nearest`. */
22
+ export declare function snake(value: string): string;
23
+ /**
24
+ * What a permission lets a person do, read from its scope: `integrations:service-accounts:write` is
25
+ * "Write service accounts". A description the service declares wins over it; one operation's title
26
+ * never stands in, since a permission covers several operations.
27
+ */
28
+ export declare function permissionDescription(scope: string): string;
29
+ /** Portable across MCP clients and model providers (`^[a-z][a-z0-9_]{0,63}$`). */
30
+ export declare function mcpToolName(namespace: string, name: ProjectedName): string;
31
+ /**
32
+ * How one input field travels in a query string, or null when it cannot: objects and nested lists
33
+ * do not. Lists are comma separated; a `null` alternative is not expressible and is ignored.
34
+ */
35
+ export declare function queryKind(schema: unknown, resolve?: SchemaResolver): QueryKind | null;
36
+ //#endregion
@@ -0,0 +1,60 @@
1
+ //#region src/projection.ts
2
+ function record(value) {
3
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
4
+ }
5
+ /** A camelCase name in kebab-case: `findNearest` is `find-nearest`. */
6
+ function kebab(value) {
7
+ return value.replaceAll(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
8
+ }
9
+ /** A camelCase or kebab-case name in snake_case: `findNearest` and `find-nearest` are `find_nearest`. */
10
+ function snake(value) {
11
+ return value.replaceAll("-", "_").replaceAll(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
12
+ }
13
+ /**
14
+ * What a permission lets a person do, read from its scope: `integrations:service-accounts:write` is
15
+ * "Write service accounts". A description the service declares wins over it; one operation's title
16
+ * never stands in, since a permission covers several operations.
17
+ */
18
+ function permissionDescription(scope) {
19
+ const [, ...segments] = scope.split(":");
20
+ const action = segments.at(-1) ?? scope;
21
+ const subject = segments.slice(0, -1).join(" ").replaceAll("-", " ");
22
+ return `${action.charAt(0).toUpperCase()}${action.slice(1)} ${subject}`;
23
+ }
24
+ /** Portable across MCP clients and model providers (`^[a-z][a-z0-9_]{0,63}$`). */
25
+ function mcpToolName(namespace, name) {
26
+ const tool = `${snake(namespace)}_${snake(name.resource)}_${snake(name.verb)}`;
27
+ if (!/^[a-z][a-z0-9_]{0,63}$/.test(tool)) throw new TypeError(`MCP tool name ${tool} is not portable.`);
28
+ return tool;
29
+ }
30
+ function resolved(schema, resolve) {
31
+ let value = schema;
32
+ for (let depth = 0; record(value) && typeof value.$ref === "string"; depth += 1) {
33
+ if (!resolve || depth > 16) return;
34
+ value = resolve(value.$ref);
35
+ }
36
+ return value;
37
+ }
38
+ /**
39
+ * How one input field travels in a query string, or null when it cannot: objects and nested lists
40
+ * do not. Lists are comma separated; a `null` alternative is not expressible and is ignored.
41
+ */
42
+ function queryKind(schema, resolve) {
43
+ const value = resolved(schema, resolve);
44
+ if (!record(value)) return null;
45
+ let branches = null;
46
+ if (Array.isArray(value.anyOf)) branches = value.anyOf;
47
+ else if (Array.isArray(value.oneOf)) branches = value.oneOf;
48
+ if (branches) {
49
+ const kinds = branches.filter((branch) => !(record(branch) && branch.type === "null")).map((branch) => queryKind(branch, resolve));
50
+ if (!kinds.length || kinds.includes(null)) return null;
51
+ if (kinds.includes("list")) return kinds.every((kind) => kind === "list" || kind === "string") ? "list" : null;
52
+ return kinds.every((kind) => kind === kinds[0]) ? kinds[0] ?? null : null;
53
+ }
54
+ if (value.type === "array") return queryKind(value.items, resolve) === "string" ? "list" : null;
55
+ if (value.type === "string" || typeof value.const === "string" || Array.isArray(value.enum) && value.enum.every((entry) => typeof entry === "string")) return "string";
56
+ return value.type === "integer" || value.type === "number" || value.type === "boolean" ? value.type : null;
57
+ }
58
+
59
+ //#endregion
60
+ export { kebab, mcpToolName, permissionDescription, queryKind, snake };
package/dist/schemas.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PageQuery, A as EmptyInputSchema, B as EmailAddressSchema, Ct as decodeInput, Et as parseSchema, F as Type, G as PhoneNumberSchema, H as HttpsUrlSchema, Hn as AttachmentOutputSchema, I as UuidSchema, J as SignedUrl, K as PostalAddress, L as t, M as Static, N as StaticDecode, P as TSchema, Q as PageInfoSchema, R as DeletedObject, St as InputIssue, Tt as parseInput, U as NamedReference, V as HexColorSchema, Vn as Attachment, W as NamedReferenceSchema, X as Page, Y as SignedUrlSchema, Z as PageInfo, _t as refineSchema, at as readSchema, bt as transformSchema, ct as SchemaValidationError, dt as inputSchema, et as PageQueryFields, ft as inspectSchema, gt as pipeSchema, ht as normalizeSchema, it as checkSchema, j as OrganizationIdSchema, lt as defaultSchema, mt as looseObject, nt as pageLimit, ot as SchemaInput, pt as literalUnion, q as PostalAddressSchema, rt as Checked, st as SchemaIssue, tt as TPage, ut as extendObject, vt as strictObject, wt as decodeSchema, xt as urlSchema, yt as stripObject, z as DeletedObjectSchema } from "./chunks/types-CGwAhnTE.js";
1
+ import { $ as PageQueryFields, A as EmptyInputSchema, B as HexColorSchema, Ct as decodeSchema, F as UuidSchema, G as PostalAddress, H as NamedReference, Hn as AttachmentOutputSchema, I as t, J as SignedUrlSchema, K as PostalAddressSchema, L as DeletedObject, M as Static, N as TSchema, P as Type, Q as PageQuery, R as DeletedObjectSchema, St as decodeInput, Tt as parseSchema, U as NamedReferenceSchema, V as HttpsUrlSchema, Vn as Attachment, W as PhoneNumberSchema, X as PageInfo, Y as Page, Z as PageInfoSchema, _n as StaticDecode, _t as strictObject, at as SchemaInput, bt as urlSchema, ct as defaultSchema, dt as inspectSchema, et as TPage, ft as literalUnion, gt as refineSchema, ht as pipeSchema, it as readSchema, j as OrganizationIdSchema, lt as extendObject, mt as normalizeSchema, nt as Checked, ot as SchemaIssue, pt as looseObject, q as SignedUrl, rt as checkSchema, st as SchemaValidationError, tt as pageLimit, ut as inputSchema, vt as stripObject, wt as parseInput, xt as InputIssue, yt as transformSchema, z as EmailAddressSchema } from "./chunks/types-BCPe0fok.js";
2
2
  export { type Attachment, AttachmentOutputSchema, type Checked, type DeletedObject, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, HexColorSchema, HttpsUrlSchema, type InputIssue, type NamedReference, NamedReferenceSchema, OrganizationIdSchema, Page, type PageInfo, PageInfoSchema, type PageQuery, PageQueryFields, PhoneNumberSchema, type PostalAddress, PostalAddressSchema, type SchemaInput, type SchemaIssue, SchemaValidationError, type SignedUrl, SignedUrlSchema, type Static, type StaticDecode, type TPage, type TSchema, Type, UuidSchema, checkSchema, decodeInput, decodeSchema, defaultSchema, extendObject, inputSchema, inspectSchema, literalUnion, looseObject, normalizeSchema, pageLimit, parseInput, parseSchema, pipeSchema, readSchema, refineSchema, strictObject, stripObject, t, transformSchema, urlSchema };
@@ -1,4 +1,4 @@
1
- import { bn as Result, kn as Failure } from "./chunks/types-CGwAhnTE.js";
1
+ import { bn as Result, kn as Failure } from "./chunks/types-BCPe0fok.js";
2
2
  //#region src/webhooks.d.ts
3
3
  /** Why a webhook signature was refused: absent, malformed, outside the time tolerance, or not matching. */
4
4
  export declare const WEBHOOK_SIGNATURE_FAILURES: readonly ['missing', 'malformed', 'expired', 'mismatch'];
@@ -1,4 +1,4 @@
1
- import { At as AppManifest, T as HttpRoute, bn as Result, i as TSchema, kn as Failure, r as Static, tn as Principal, w as HttpOptions, zt as OperationShape } from "../chunks/types-CGwAhnTE.js";
1
+ import { Rt as OperationShape, T as HttpRoute, bn as Result, en as Principal, i as TSchema, kn as Failure, kt as AppManifest, r as Static, w as HttpOptions } from "../chunks/types-BCPe0fok.js";
2
2
  import { DurableObject, WorkerEntrypoint } from "cloudflare:workers";
3
3
  //#region src/workers/assets.d.ts
4
4
  /** A Workers static-assets binding; product stores and secrets never satisfy this capability. */
@@ -2,7 +2,7 @@ import { r as parseInput } from "../chunks/validation-DWxKk1Js.js";
2
2
  import { r as isRequestId } from "../chunks/correlation-gaiEoMBr.js";
3
3
  import { standardErrors } from "../errors.js";
4
4
  import { d as err, p as ok, r as PrincipalSchema, t as executeOperation } from "../chunks/execution-qfZuMSIu.js";
5
- import { r as createHttpHandler } from "../chunks/src-Ph5KHCRP.js";
5
+ import { r as createHttpHandler } from "../chunks/src-Bqznd6Dd.js";
6
6
  import { a as telemetryEnabled, r as recordExecution, s as withTelemetry } from "../chunks/telemetry-DvZgrzZn.js";
7
7
  import { DurableObject, WorkerEntrypoint, tracing } from "cloudflare:workers";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/maximus",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "Maximus: define a service once and serve it over HTTP, MCP and Worker RPC on Cloudflare Workers, with its OpenAPI, typed client and CLI.",
5
5
  "keywords": [
6
6
  "api",
@@ -67,6 +67,10 @@
67
67
  "types": "./dist/http-paths.d.ts",
68
68
  "import": "./dist/http-paths.js"
69
69
  },
70
+ "./projection": {
71
+ "types": "./dist/projection.d.ts",
72
+ "import": "./dist/projection.js"
73
+ },
70
74
  "./diagnostics": {
71
75
  "types": "./dist/diagnostics.d.ts",
72
76
  "import": "./dist/diagnostics.js"