@arbol-ai/maximus 7.2.0 → 7.2.1

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.
@@ -1,4 +1,4 @@
1
- import { bn as Result, kn as Failure, qt as Observer } from "../chunks/types-BCPe0fok.js";
1
+ import { bn as Result, kn as Failure, qt as Observer } from "../chunks/types-B1C3Ogo5.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-BCPe0fok.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-B1C3Ogo5.js";
2
2
  export { type BodyReadOptions, type HttpBodyFailure, type HttpBodyFailureReason, isJsonMediaType, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, retryAfterSeconds };
@@ -68,7 +68,7 @@ function validAttachment(value, maxBytes) {
68
68
  /** An exact-length stream prevents a handler from sending bytes beyond its validated attachment metadata. */
69
69
  function attachmentResponse(file, status = 200) {
70
70
  const encodedFilename = encodeURIComponent(file.filename).replaceAll(/[!'()*]/gu, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
71
- const body = file.body instanceof Uint8Array ? file.body : exactLength(file.body, file.byteLength);
71
+ const body = file.body instanceof Uint8Array ? file.body : attachmentStream(file.body, file.byteLength);
72
72
  return new Response(body, {
73
73
  status,
74
74
  headers: {
@@ -81,6 +81,11 @@ function attachmentResponse(file, status = 200) {
81
81
  }
82
82
  });
83
83
  }
84
+ /** Workers determines Content-Length from the body, ignoring a header on an ordinary stream. */
85
+ function attachmentStream(body, byteLength) {
86
+ const bounded = exactLength(body, byteLength);
87
+ return typeof FixedLengthStream === "function" ? bounded.pipeThrough(new FixedLengthStream(byteLength)) : bounded;
88
+ }
84
89
 
85
90
  //#endregion
86
91
  //#region src/internal/http-routes.ts
@@ -1,7 +1,7 @@
1
1
  import { FailureSchema, standardErrors } from "../errors.js";
2
2
  import { r as readBodyText } from "./body-BcMbreNd.js";
3
3
  import { t as isRecord } from "./record-D2H3cg8S.js";
4
- import { C as operationMatchesScopes, D as pathParameterSchemas, O as attachmentResponse, S as operationBodyLimit, T as operationScopes, _ as STANDARD_CODES, b as mcpOpenWorld, c as tokenEndpoints, d as err, h as DEFAULT_MAX_BODY_BYTES, i as createTokenAuthorization, k as binaryBody, l as tokenIssuer, m as sha256Hex, n as defineApp, p as ok, s as tokenAudiences, t as executeOperation, u as usesOwnBearer, v as composeOperations, w as operationOutputLimit, y as isPublicOperation } from "./execution-qfZuMSIu.js";
4
+ import { C as operationMatchesScopes, D as pathParameterSchemas, O as attachmentResponse, S as operationBodyLimit, T as operationScopes, _ as STANDARD_CODES, b as mcpOpenWorld, c as tokenEndpoints, d as err, h as DEFAULT_MAX_BODY_BYTES, i as createTokenAuthorization, k as binaryBody, l as tokenIssuer, m as sha256Hex, n as defineApp, p as ok, s as tokenAudiences, t as executeOperation, u as usesOwnBearer, v as composeOperations, w as operationOutputLimit, y as isPublicOperation } from "./execution-C-ZHm0Ya.js";
5
5
  import { createHttpRouteResolver, operationPathParameters } from "../http-paths.js";
6
6
  import { a as telemetryEnabled, i as reportUnexpected, n as recordAdmission, r as recordExecution, s as withTelemetry } from "./telemetry-DvZgrzZn.js";
7
7
  import { n as mediaType } from "./json-Dwni3u4c.js";
@@ -839,6 +839,11 @@ function createHttpHandler(manifest, hooks = {}) {
839
839
  headers.set("cache-control", "private, no-store");
840
840
  headers.set("x-content-type-options", "nosniff");
841
841
  headers.set("x-request-id", requestId);
842
+ const status = manifest.errors.status(error.code);
843
+ if ((status === 401 || status === 403) && !headers.has("www-authenticate")) {
844
+ const challenge = manifest.tokens.challenge?.(error, context);
845
+ if (challenge) headers.set("www-authenticate", challenge);
846
+ }
842
847
  if (error.code === "UNAUTHORIZED" && !headers.has("www-authenticate")) {
843
848
  const metadataUrl = challengeMetadataUrl(context);
844
849
  headers.set("www-authenticate", ownBearer || metadataUrl === null ? "Bearer" : `Bearer resource_metadata="${metadataUrl}"`);
@@ -121,7 +121,7 @@ declare const STANDARD: {
121
121
  readonly notFound: {
122
122
  readonly code: 'NOT_FOUND';
123
123
  readonly status: 404;
124
- readonly message: 'The requested operation does not exist.';
124
+ readonly message: 'The requested resource does not exist.';
125
125
  };
126
126
  readonly methodNotAllowed: {
127
127
  readonly code: 'HTTP_METHOD_NOT_ALLOWED';
@@ -523,6 +523,12 @@ interface TokenPolicy<E = unknown> {
523
523
  resolve?: (token: string, context?: TokenResolutionContext<E>) => Promise<TokenPrincipal | Result<TokenPrincipal, Failure>>;
524
524
  /** Absolute discovery URL when a mounted API and its OAuth resource have different origins or paths. */
525
525
  resourceMetadataUrl?: string | null | ((context: TokenResolutionContext<E>) => string | null);
526
+ /**
527
+ * Optional WWW-Authenticate value for a 401 or 403 refusal, including a resolver's missing-scope
528
+ * failure. Null keeps the default 401 challenge and leaves a 403 without a challenge. This hook
529
+ * changes response metadata only; it cannot admit a refused request.
530
+ */
531
+ challenge?: (failure: Failure, context: TokenResolutionContext<E>) => string | null;
526
532
  /** Absolute RFC 9728 paths for distinct resources; replaces inferred discovery when configured. */
527
533
  resources?: Readonly<Record<string, OAuthResource<E>>>;
528
534
  /**
@@ -1,4 +1,4 @@
1
- import { Rt as OperationShape, kn as Failure, r as Static } from "../chunks/types-BCPe0fok.js";
1
+ import { Rt as OperationShape, kn as Failure, r as Static } from "../chunks/types-B1C3Ogo5.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 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";
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-B1C3Ogo5.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-BCPe0fok.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-B1C3Ogo5.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-BCPe0fok.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-B1C3Ogo5.js";
2
2
  export { HttpRouteDefinition, HttpRouteMatch, createHttpRouteResolver, decodePathParameter, isInputHeaderName, isPathParameterValue, operationPathParameters };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
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";
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-B1C3Ogo5.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
@@ -1,10 +1,10 @@
1
1
  import { i as parseSchema, r as parseInput } from "./chunks/validation-DWxKk1Js.js";
2
2
  import { FailureSchema, defineErrors, resultSchema, standardErrors } from "./errors.js";
3
3
  import { n as readBodyBytes, r as readBodyText } from "./chunks/body-BcMbreNd.js";
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";
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-C-ZHm0Ya.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-Bqznd6Dd.js";
7
+ import { c as maximus, i as createOpenApi, n as t, r as createHttpHandler, s as protectedResourceMetadata, t as Type } from "./chunks/src-D-JmAzlF.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 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";
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-B1C3Ogo5.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/internals.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as operationScopes, n as defineApp, t as executeOperation, v as composeOperations, x as operation } from "./chunks/execution-qfZuMSIu.js";
1
+ import { T as operationScopes, n as defineApp, t as executeOperation, v as composeOperations, x as operation } from "./chunks/execution-C-ZHm0Ya.js";
2
2
  import { createHttpRouteResolver } from "./http-paths.js";
3
3
  import { a as telemetryEnabled, o as withDiagnostics, r as recordExecution } from "./chunks/telemetry-DvZgrzZn.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { E as HttpTransport } from "../chunks/types-BCPe0fok.js";
1
+ import { E as HttpTransport } from "../chunks/types-B1C3Ogo5.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
- 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-Bqznd6Dd.js";
2
+ import { C as operationMatchesScopes, b as mcpOpenWorld, g as MAX_BODY_BYTES_CEILING, m as sha256Hex } from "../chunks/execution-C-ZHm0Ya.js";
3
+ import { a as canonical, o as standaloneSchema } from "../chunks/src-D-JmAzlF.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 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";
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-B1C3Ogo5.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 };
@@ -37,7 +37,7 @@ export declare const STANDARD_FAILURES: {
37
37
  readonly notFound: {
38
38
  readonly code: 'NOT_FOUND';
39
39
  readonly status: 404;
40
- readonly message: 'The requested operation does not exist.';
40
+ readonly message: 'The requested resource does not exist.';
41
41
  };
42
42
  readonly methodNotAllowed: {
43
43
  readonly code: 'HTTP_METHOD_NOT_ALLOWED';
@@ -19,7 +19,7 @@ const STANDARD_FAILURES = {
19
19
  notFound: {
20
20
  code: "NOT_FOUND",
21
21
  status: 404,
22
- message: "The requested operation does not exist."
22
+ message: "The requested resource does not exist."
23
23
  },
24
24
  methodNotAllowed: {
25
25
  code: "HTTP_METHOD_NOT_ALLOWED",
@@ -1,4 +1,4 @@
1
- import { bn as Result, kn as Failure } from "./chunks/types-BCPe0fok.js";
1
+ import { bn as Result, kn as Failure } from "./chunks/types-B1C3Ogo5.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 { 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";
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-B1C3Ogo5.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. */
@@ -1,8 +1,8 @@
1
1
  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
- 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-Bqznd6Dd.js";
4
+ import { d as err, p as ok, r as PrincipalSchema, t as executeOperation } from "../chunks/execution-C-ZHm0Ya.js";
5
+ import { r as createHttpHandler } from "../chunks/src-D-JmAzlF.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.2.0",
3
+ "version": "7.2.1",
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",