@arbol-ai/maximus 7.1.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/dist/analytics/analytics.d.ts +1 -1
- package/dist/body.d.ts +1 -1
- package/dist/chunks/{src-Ph5KHCRP.js → src-Bqznd6Dd.js} +12 -1
- package/dist/chunks/{types-CGwAhnTE.d.ts → types-BCPe0fok.d.ts} +26 -16
- package/dist/client/client.d.ts +1 -1
- package/dist/diagnostics.d.ts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/http-paths.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internals.d.ts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/webhooks.d.ts +1 -1
- package/dist/workers/runtime.d.ts +1 -1
- package/dist/workers/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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,
|
|
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:
|
|
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<
|
|
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
|
|
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 {
|
|
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 };
|
package/dist/client/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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> = {
|
package/dist/diagnostics.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as
|
|
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-
|
|
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 };
|
package/dist/http-paths.d.ts
CHANGED
|
@@ -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-
|
|
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
|
|
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-
|
|
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
|
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $t as
|
|
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 };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as HttpTransport } from "../chunks/types-
|
|
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-
|
|
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";
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
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 };
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bn as Result, kn as Failure } from "./chunks/types-
|
|
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 {
|
|
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. */
|
package/dist/workers/runtime.js
CHANGED
|
@@ -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-
|
|
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