@arbol-ai/maximus 7.2.2 → 7.2.3

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.
Files changed (35) hide show
  1. package/dist/analytics/analytics.d.ts +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/body.d.ts +1 -1
  4. package/dist/capture/index.d.ts +40 -0
  5. package/dist/capture/index.js +182 -0
  6. package/dist/chunks/delay-B9YcAv-2.js +25 -0
  7. package/dist/chunks/{record-D2H3cg8S.js → exact-length-CNFWdMzi.js} +1 -11
  8. package/dist/chunks/{execution-C-ZHm0Ya.js → execution-DxGsKvjA.js} +201 -21
  9. package/dist/chunks/{schemas-q-51wBMQ.js → schemas-CldDAUy1.js} +1 -1
  10. package/dist/chunks/{src-D0yQz-d-.js → src-Ct4fEN4z.js} +57 -12
  11. package/dist/chunks/{telemetry-DvZgrzZn.js → telemetry-Bcq3GquK.js} +4 -4
  12. package/dist/chunks/{types-B1C3Ogo5.d.ts → types-D_QnYxPM.d.ts} +247 -30
  13. package/dist/chunks/{validation-DWxKk1Js.js → validation-B8XH1b_o.js} +276 -14
  14. package/dist/client/client.d.ts +1 -1
  15. package/dist/client/client.js +2 -1
  16. package/dist/diagnostics.d.ts +1 -1
  17. package/dist/diagnostics.js +1 -1
  18. package/dist/errors.d.ts +1 -1
  19. package/dist/errors.js +1 -1
  20. package/dist/http-paths.d.ts +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +5 -5
  23. package/dist/internals.d.ts +2 -2
  24. package/dist/internals.js +3 -3
  25. package/dist/mcp/index.d.ts +1 -1
  26. package/dist/mcp/index.js +22 -12
  27. package/dist/schemas.d.ts +2 -2
  28. package/dist/schemas.js +3 -3
  29. package/dist/webhooks.d.ts +1 -1
  30. package/dist/workers/runtime.d.ts +1 -1
  31. package/dist/workers/runtime.js +36 -7
  32. package/package.json +5 -1
  33. package/skills/maximus/SKILL.md +5 -0
  34. package/skills/maximus/references/adding-an-operation.md +2 -0
  35. package/skills/maximus/references/building-a-service.md +1 -1
@@ -2,6 +2,240 @@ import { FormatRegistry, Kind, TransformKind, Type } from "@sinclair/typebox";
2
2
  import { AssertError, HasTransform, TransformDecode, TransformDecodeError, Value } from "@sinclair/typebox/value";
3
3
  import { fullFormats } from "ajv-formats/dist/formats.js";
4
4
 
5
+ //#region src/internal/schema-markers.ts
6
+ /**
7
+ * The markers input codecs leave on a schema, which the codecs and the reader of secret fields share.
8
+ */
9
+ /** Whether an object drops unknown keys when read with `stripUnknown`. */
10
+ const STRIP = Symbol("maximus.schema.strip");
11
+ /** The source schema of a `pipeSchema`, which the wire value is first read as. */
12
+ const SOURCE = Symbol("maximus.schema.source");
13
+
14
+ //#endregion
15
+ //#region src/internal/record.ts
16
+ /**
17
+ * The plain-record guard the readers of untrusted values share.
18
+ */
19
+ /** Whether an untrusted value is an object with fields: neither null nor an array. */
20
+ function isRecord(value) {
21
+ return typeof value === "object" && value !== null && !Array.isArray(value);
22
+ }
23
+
24
+ //#endregion
25
+ //#region src/secrets.ts
26
+ /** What `visit` answers for a value that must not stay. */
27
+ const REMOVED = Symbol("maximus.schema.removed");
28
+ /** Stands for a schema that says nothing about a value, such as an unknown key of a loose object. */
29
+ const UNDESCRIBED = Object.freeze({});
30
+ /** Each schema's tree, read on first use. */
31
+ const trees = /* @__PURE__ */ new WeakMap();
32
+ /** Each `patternProperties` key, compiled once: patterns come from schemas, which are finite. */
33
+ const patterns = /* @__PURE__ */ new Map();
34
+ /** A keyword's value as a list of schemas. */
35
+ function schemaList(value) {
36
+ return Array.isArray(value) ? value : [];
37
+ }
38
+ /** A keyword's value as schemas by name. */
39
+ function schemaMap(value) {
40
+ return isRecord(value) ? value : {};
41
+ }
42
+ /** The schemas directly below a schema, whichever keyword holds them. */
43
+ function childSchemas(node) {
44
+ return [
45
+ ...Object.values(schemaMap(node.properties)),
46
+ ...Object.values(schemaMap(node.patternProperties)),
47
+ ...Object.values(schemaMap(node.$defs)),
48
+ node.additionalProperties,
49
+ node.additionalItems,
50
+ ...[node.items].flat(),
51
+ ...schemaList(node.anyOf),
52
+ ...schemaList(node.oneOf),
53
+ ...schemaList(node.allOf),
54
+ node[SOURCE]
55
+ ];
56
+ }
57
+ /** A schema's tree: what `$ref` may name in it, and whether it marks anything secret. */
58
+ function treeOf(schema) {
59
+ const known = trees.get(schema);
60
+ if (known) return known;
61
+ const definitions = /* @__PURE__ */ new Map();
62
+ /** Adds one more definition of a name; two of one name both apply. */
63
+ const define = (name, node) => {
64
+ definitions.set(name, [...definitions.get(name) ?? [], node]);
65
+ };
66
+ let secret = false;
67
+ const seen = /* @__PURE__ */ new Set();
68
+ const pending = [schema];
69
+ while (pending.length > 0) {
70
+ const node = pending.pop();
71
+ if (!isRecord(node) || seen.has(node)) continue;
72
+ seen.add(node);
73
+ secret ||= node.secret === true;
74
+ if (typeof node.$id === "string") define(node.$id, node);
75
+ for (const [name, definition] of Object.entries(schemaMap(node.$defs))) if (isRecord(definition)) define(name, definition);
76
+ pending.push(...childSchemas(node));
77
+ }
78
+ const tree = {
79
+ definitions,
80
+ secret
81
+ };
82
+ trees.set(schema, tree);
83
+ return tree;
84
+ }
85
+ /** Whether a schema marks any value secret, at any depth. */
86
+ function holdsSecrets(schema) {
87
+ return treeOf(schema).secret;
88
+ }
89
+ /**
90
+ * Adds to `leaves` the schemas a value of `schema` may match, through every reference and union member, and
91
+ * answers false when one of them marks the value secret or names nothing this tree defines: a value that
92
+ * cannot be shown to be clean is removed.
93
+ */
94
+ function collectLeaves(schema, tree, leaves, seen) {
95
+ if (seen.has(schema) || !isRecord(schema)) return true;
96
+ seen.add(schema);
97
+ const node = schema;
98
+ if (node.secret === true) return false;
99
+ const reference = typeof node.$ref === "string" ? node.$ref.replace("#/$defs/", "") : void 0;
100
+ const targets = reference === void 0 ? [] : tree.definitions.get(reference) ?? [];
101
+ if (reference !== void 0 && targets.length === 0) return false;
102
+ const members = [
103
+ ...targets,
104
+ ...schemaList(node.anyOf),
105
+ ...schemaList(node.oneOf),
106
+ ...schemaList(node.allOf)
107
+ ];
108
+ if (!members.every((member) => collectLeaves(member, tree, leaves, seen))) return false;
109
+ if (members.length === 0 || node.type !== void 0 || node.properties !== void 0 || node.patternProperties !== void 0) leaves.push(node);
110
+ return true;
111
+ }
112
+ /** Whether a schema's `type` admits a value. A TypeBox type outside JSON, such as `Date`, admits anything. */
113
+ function typeAdmits(type, value) {
114
+ switch (type) {
115
+ case "string":
116
+ case "boolean": return typeof value === type;
117
+ case "number": return typeof value === "number";
118
+ case "integer": return Number.isInteger(value);
119
+ case "null": return value === null;
120
+ case "array": return Array.isArray(value);
121
+ case "object": return isRecord(value);
122
+ default: return true;
123
+ }
124
+ }
125
+ /** Whether a schema holds no opinion on what is inside a value: nothing below it can be marked. */
126
+ function describesNothing(leaf) {
127
+ return leaf.properties === void 0 && leaf.patternProperties === void 0 && leaf.items === void 0 && (leaf.additionalProperties === void 0 || leaf.additionalProperties === true) && leaf[STRIP] !== true;
128
+ }
129
+ /** The schemas of an array's element at `position`: a tuple's position, or a list's one schema of items. */
130
+ function itemSchemas(leaf, position) {
131
+ if (!Array.isArray(leaf.items)) return leaf.items === void 0 ? [UNDESCRIBED] : [leaf.items];
132
+ if (position < leaf.items.length) return [leaf.items[position]];
133
+ return isRecord(leaf.additionalItems) ? [leaf.additionalItems] : [];
134
+ }
135
+ /** A copy of an array without what its schemas mark: a list loses the element, a tuple keeps its positions. */
136
+ function visitArray(leaves, value, tree) {
137
+ const tuple = leaves.some((leaf) => Array.isArray(leaf.items));
138
+ const kept = [];
139
+ for (const [position, element] of value.entries()) {
140
+ const schemas = leaves.flatMap((leaf) => itemSchemas(leaf, position));
141
+ const visited = schemas.length ? visit(schemas, element, tree) : REMOVED;
142
+ if (visited !== REMOVED) kept.push(visited);
143
+ else if (tuple) kept.push(null);
144
+ }
145
+ return kept;
146
+ }
147
+ /**
148
+ * The schemas one object schema gives a key: its property and the patterns the key matches, else its
149
+ * additional properties. None when the schema refuses the key: a strict object, or one that strips unknown
150
+ * keys.
151
+ */
152
+ function fieldSchemas(leaf, key) {
153
+ const declared = [...Object.hasOwn(schemaMap(leaf.properties), key) ? [schemaMap(leaf.properties)[key]] : [], ...Object.entries(schemaMap(leaf.patternProperties)).filter(([pattern]) => compiled(pattern).test(key)).map(([, schema]) => schema)];
154
+ if (declared.length) return declared;
155
+ if (leaf.additionalProperties === false || leaf[STRIP] === true) return [];
156
+ return isRecord(leaf.additionalProperties) ? [leaf.additionalProperties] : [UNDESCRIBED];
157
+ }
158
+ /** A pattern of `patternProperties`, compiled once and without flags, as TypeBox compiles it to check a value. */
159
+ function compiled(pattern) {
160
+ let expression = patterns.get(pattern);
161
+ if (!expression) {
162
+ expression = new RegExp(pattern);
163
+ patterns.set(pattern, expression);
164
+ }
165
+ return expression;
166
+ }
167
+ /**
168
+ * A copy of an object without what its schemas mark, nor a key every schema refuses. `Object.fromEntries`
169
+ * keeps an own `__proto__` key a plain key, where assigning it would set the copy's prototype.
170
+ */
171
+ function visitObject(leaves, value, tree) {
172
+ const kept = [];
173
+ for (const [key, field] of Object.entries(value)) {
174
+ const schemas = leaves.flatMap((leaf) => fieldSchemas(leaf, key));
175
+ const visited = schemas.length ? visit(schemas, field, tree) : REMOVED;
176
+ if (visited !== REMOVED) kept.push([key, visited]);
177
+ }
178
+ return Object.fromEntries(kept);
179
+ }
180
+ /**
181
+ * A value as these schemas leave it: `REMOVED` when one marks it or none admits it, and otherwise a copy of
182
+ * what they describe. Every schema that may match applies, so a field one union member marks is removed
183
+ * whichever member the value belongs to.
184
+ */
185
+ function visit(schemas, value, tree) {
186
+ const leaves = [];
187
+ const seen = /* @__PURE__ */ new Set();
188
+ if (!schemas.every((schema) => collectLeaves(schema, tree, leaves, seen))) return REMOVED;
189
+ const admitting = leaves.filter((leaf) => typeAdmits(leaf.type, value));
190
+ if (admitting.length === 0) return REMOVED;
191
+ if (admitting.every(describesNothing)) return value;
192
+ if (Array.isArray(value)) return visitArray(admitting, value, tree);
193
+ return isRecord(value) ? visitObject(admitting, value, tree) : value;
194
+ }
195
+ /**
196
+ * A copy of a value without every field its schema marks with `secret: true`, at any depth: through objects,
197
+ * records, arrays, tuples, unions, intersections, optional fields and references. The input is never changed.
198
+ * A marked list element goes with its value, a marked tuple position becomes `null`, and a schema marked at
199
+ * its root answers `undefined`.
200
+ *
201
+ * Pass a value of the shape the schema describes: what it checked, before any codec ran. It fails closed where
202
+ * a schema cannot speak for a value: a name marked in any member of a union is removed from all of them, a
203
+ * key a strict object refuses is removed, as is a value of another type, or one under a `$ref` the schema does
204
+ * not define.
205
+ */
206
+ function withoutSecrets(schema, value) {
207
+ const kept = visit([schema], value, treeOf(schema));
208
+ return kept === REMOVED ? void 0 : kept;
209
+ }
210
+ /** Keywords whose values are data, never schemas: `secret` inside one is the data's own. */
211
+ const DATA_KEYWORDS = /* @__PURE__ */ new Set([
212
+ "const",
213
+ "default",
214
+ "enum",
215
+ "example",
216
+ "examples"
217
+ ]);
218
+ /** Keywords whose values are named schemas: `secret` directly inside one is a field's name. */
219
+ const NAMED_SCHEMAS = /* @__PURE__ */ new Set([
220
+ "properties",
221
+ "patternProperties",
222
+ "$defs"
223
+ ]);
224
+ /**
225
+ * A copy of a published schema or document without the `secret` keyword. It tells capture what to leave out,
226
+ * and no client needs it: marking a field changes no OpenAPI document and no tool listing.
227
+ */
228
+ function withoutSecretKeyword(node, named = false) {
229
+ if (Array.isArray(node)) return node.map((item) => withoutSecretKeyword(item));
230
+ if (!isRecord(node)) return node;
231
+ const kept = [];
232
+ for (const [key, child] of Object.entries(node)) if (named) kept.push([key, withoutSecretKeyword(child)]);
233
+ else if (DATA_KEYWORDS.has(key) || key.startsWith("x-")) kept.push([key, child]);
234
+ else if (!(key === "secret" && child === true)) kept.push([key, withoutSecretKeyword(child, NAMED_SCHEMAS.has(key))]);
235
+ return Object.fromEntries(kept);
236
+ }
237
+
238
+ //#endregion
5
239
  //#region src/input-schemas.ts
6
240
  /**
7
241
  * Owner codecs on TypeBox schemas: defaults, normalizers, transforms, inspections, refinements, pipes and
@@ -26,10 +260,6 @@ const TRANSFORMERS = Symbol("maximus.schema.transformers");
26
260
  const NORMALIZERS = Symbol("maximus.schema.normalizers");
27
261
  /** The inspections and refinements a schema runs on a valid value. */
28
262
  const INSPECTORS = Symbol("maximus.schema.inspectors");
29
- /** The source schema of a `pipeSchema`, which the wire value is first read as. */
30
- const SOURCE = Symbol("maximus.schema.source");
31
- /** Whether an object drops unknown keys when read with `stripUnknown`. */
32
- const STRIP = Symbol("maximus.schema.strip");
33
263
  /** A union of literals: `literalUnion(['open', 'done'])`. */
34
264
  const literalUnion = (values) => Type.Union(values.map((value) => Type.Literal(value)));
35
265
  /**
@@ -87,13 +317,24 @@ const transformSchema = (schema, transform) => Type.Unsafe({
87
317
  }]
88
318
  });
89
319
  /**
320
+ * Refuses a canonical schema that marks a field `secret: true` when the wire schema it is read from marks
321
+ * nothing: capture reads the value the wire schema checked, where that mark would protect nothing.
322
+ */
323
+ function requireSecretsOnWire(wire, canonical) {
324
+ if (holdsSecrets(canonical) && !holdsSecrets(wire)) throw new TypeError("A canonical schema marks a field secret: true and the wire schema it is read from does not; mark the field where the wire carries it.");
325
+ }
326
+ /**
90
327
  * Admits a value as `source`, then checks and decodes the result as `target`: a wire shape read into its
91
- * canonical one. Runs inside `inputSchema()`.
328
+ * canonical one. Runs inside `inputSchema()`. A `target` that marks a field `secret: true` needs `source` to
329
+ * mark it too, or it throws a TypeError.
92
330
  */
93
- const pipeSchema = (source, target) => ({
94
- ...target,
95
- [SOURCE]: source
96
- });
331
+ const pipeSchema = (source, target) => {
332
+ requireSecretsOnWire(source, target);
333
+ return {
334
+ ...target,
335
+ [SOURCE]: source
336
+ };
337
+ };
97
338
  /**
98
339
  * Runs `inspect` on a value the schema admits; every `addIssue` refuses the value with that issue. Runs
99
340
  * inside `inputSchema()`.
@@ -222,6 +463,7 @@ function hasUncompiledCodecs(schema) {
222
463
  }
223
464
  function inputSchema(schema, source) {
224
465
  const wire = source && Kind in source ? source : void 0;
466
+ if (wire) requireSecretsOnWire(wire, schema);
225
467
  const stripUnknown = !wire && source && "stripUnknown" in source && source.stripUnknown === true;
226
468
  const projected = projectOwnerInput(schema, Boolean(stripUnknown));
227
469
  return Type.Transform(Type.Unsafe(wire ? projectOwnerInput(wire, false) : projected)).Decode((input) => {
@@ -343,10 +585,17 @@ function boundedInput(value, depth = 0, parents = /* @__PURE__ */ new Set()) {
343
585
  /** Admit a real wire schema once, materialize declared defaults, and decode native TypeBox transforms.
344
586
  * Output validation deliberately remains check-only: response data must already be canonical. */
345
587
  function decodeSchema(schema, input) {
588
+ return admitSchema(schema, input).value;
589
+ }
590
+ /** Decodes input as `decodeSchema` does, and also answers what the schema checked, before any codec ran. */
591
+ function admitSchema(schema, input) {
346
592
  if (!boundedInput(input)) throw new TypeError("Input must be a bounded plain JSON tree.");
347
- const value = Value.Default(schema, Value.Clone(input));
348
- Value.Assert(schema, value);
349
- return HasTransform(schema, []) ? TransformDecode(schema, [], value) : value;
593
+ const checked = Value.Default(schema, Value.Clone(input));
594
+ Value.Assert(schema, checked);
595
+ return {
596
+ value: HasTransform(schema, []) ? TransformDecode(schema, [], checked) : checked,
597
+ checked
598
+ };
350
599
  }
351
600
  /** The most field issues one refusal carries. */
352
601
  const MAX_ISSUES = 10;
@@ -357,10 +606,23 @@ const MAX_ISSUE_TEXT = 256;
357
606
  * field issues. Schema messages name the expectation, not the value; owner refinements must too.
358
607
  */
359
608
  function decodeInput(schema, input) {
609
+ const admitted = admitInput(schema, input);
610
+ return admitted.ok ? {
611
+ ok: true,
612
+ value: admitted.value
613
+ } : admitted;
614
+ }
615
+ /**
616
+ * `decodeInput`, also answering, for an admitted input, `checked`: the plain JSON its schema checked before any
617
+ * codec ran, the one shape the schema's own keywords describe.
618
+ */
619
+ function admitInput(schema, input) {
360
620
  try {
621
+ const { value, checked } = admitSchema(schema, input);
361
622
  return {
362
623
  ok: true,
363
- value: decodeSchema(schema, input)
624
+ value,
625
+ checked
364
626
  };
365
627
  } catch (error) {
366
628
  return {
@@ -379,4 +641,4 @@ function decodeInput(schema, input) {
379
641
  }
380
642
 
381
643
  //#endregion
382
- export { strictObject as _, decodeIssues as a, urlSchema as b, extendObject as c, inspectSchema as d, literalUnion as f, refineSchema as g, pipeSchema as h, parseSchema as i, hasUncompiledCodecs as l, normalizeSchema as m, decodeSchema as n, SchemaValidationError as o, looseObject as p, parseInput as r, defaultSchema as s, decodeInput as t, inputSchema as u, stripObject as v, transformSchema as y };
644
+ export { withoutSecretKeyword as C, holdsSecrets as S, isRecord as T, refineSchema as _, parseSchema as a, transformSchema as b, defaultSchema as c, inputSchema as d, inspectSchema as f, pipeSchema as g, normalizeSchema as h, parseInput as i, extendObject as l, looseObject as m, decodeInput as n, decodeIssues as o, literalUnion as p, decodeSchema as r, SchemaValidationError as s, admitInput as t, hasUncompiledCodecs as u, strictObject as v, withoutSecrets as w, urlSchema as x, stripObject as y };
@@ -1,4 +1,4 @@
1
- import { Rt as OperationShape, kn as Failure, r as Static } from "../chunks/types-B1C3Ogo5.js";
1
+ import { Rt as OperationShape, Vn as Failure, n as Static } from "../chunks/types-D_QnYxPM.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,6 +1,7 @@
1
+ import { T as isRecord } from "../chunks/validation-B8XH1b_o.js";
1
2
  import { r as isRequestId } from "../chunks/correlation-gaiEoMBr.js";
2
3
  import { standardErrors } from "../errors.js";
3
- import { n as exactLength, t as isRecord } from "../chunks/record-D2H3cg8S.js";
4
+ import { t as exactLength } from "../chunks/exact-length-CNFWdMzi.js";
4
5
  import { isInputHeaderName, isPathParameterValue, operationPathParameters } from "../http-paths.js";
5
6
  import { i as readJsonResponse } from "../chunks/json-Dwni3u4c.js";
6
7
 
@@ -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-B1C3Ogo5.js";
1
+ import { Jn as TraceParent, Qn as parseTraceParent, Xn as durableCorrelation, Yn as createRequestId, Zn as isRequestId, an as TelemetryConfig, cn as reportUnexpected, in as Observer, ln as telemetryEnabled, nn as BackgroundContext, on as diagnosticsEnabled, qn as DurableCorrelation, rn as ExecutionObservation, sn as recordExecution, un as withDiagnostics } from "./chunks/types-D_QnYxPM.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
@@ -1,4 +1,4 @@
1
1
  import { i as parseTraceParent, n as durableCorrelation, r as isRequestId, t as createRequestId } from "./chunks/correlation-gaiEoMBr.js";
2
- import { a as telemetryEnabled, c as createDiagnostics, i as reportUnexpected, o as withDiagnostics, r as recordExecution, t as diagnosticsEnabled } from "./chunks/telemetry-DvZgrzZn.js";
2
+ import { a as recordExecution, c as withDiagnostics, n as diagnosticsEnabled, o as reportUnexpected, s as telemetryEnabled, u as createDiagnostics } from "./chunks/telemetry-Bcq3GquK.js";
3
3
 
4
4
  export { createDiagnostics, createRequestId, diagnosticsEnabled, durableCorrelation, isRequestId, parseTraceParent, recordExecution, reportUnexpected, telemetryEnabled, withDiagnostics };
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-B1C3Ogo5.js";
1
+ import { Bn as ErrorFactory, Gn as resultSchema, Hn as FailureData, Kn as standardErrors, Ln as DefinedErrors, Rn as ErrorCatalog, Un as FailureSchema, Vn as Failure, Wn as defineErrors, Zn as isRequestId, zn as ErrorDefinition } from "./chunks/types-D_QnYxPM.js";
2
2
  export { DefinedErrors, ErrorCatalog, ErrorDefinition, ErrorFactory, Failure, FailureData, FailureSchema, defineErrors, isRequestId, resultSchema, standardErrors };
package/dist/errors.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { STANDARD_FAILURES } from "./standard-failures.js";
2
- import { i as parseSchema } from "./chunks/validation-DWxKk1Js.js";
2
+ import { a as parseSchema } from "./chunks/validation-B8XH1b_o.js";
3
3
  import { r as isRequestId } from "./chunks/correlation-gaiEoMBr.js";
4
4
  import { Type } from "@sinclair/typebox";
5
5
  import { Value } from "@sinclair/typebox/value";
@@ -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-B1C3Ogo5.js";
1
+ import { S as operationPathParameters, _ as HttpRouteMatch, b as isInputHeaderName, g as HttpRouteDefinition, v as createHttpRouteResolver, x as isPathParameterValue, y as decodePathParameter } from "./chunks/types-D_QnYxPM.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-B1C3Ogo5.js";
1
+ import { $ as TPage, $n as Attachment, A as OrganizationIdSchema, An as BinaryBody, At as Exposure, B as HttpsUrlSchema, Bn as ErrorFactory, Bt as isPublicOperation, C as HttpOptions, Cn as projectToken, D as TransportContext, Dn as protectedResourceMetadata, Dt as ApplicationConfiguration, E as RouteContext, En as OAuthResource, Et as ApplicationBuilder, Fn as isResult, Ft as McpSkill, G as PostalAddressSchema, Gn as resultSchema, H as NamedReferenceSchema, Hn as FailureData, Ht as operationMatchesScopes, I as DeletedObject, In as ok, It as OperationMiddleware, J as Page, K as SignedUrl, Kn as standardErrors, L as DeletedObjectSchema, Ln as DefinedErrors, Lt as OperationScope, Mn as Result, Mt as InvocationAuthority, Nn as Success, Nt as McpConfiguration, O as createHttpHandler, Ot as maximus, P as UuidSchema, Pn as err, Pt as McpGuide, Q as PageQueryFields, R as EmailAddressSchema, Rn as ErrorCatalog, Rt as OperationShape, Sn as createTokenVerifier, T as HttpTransport, Tn as matchesScopes, Tt as parseSchema, U as PhoneNumberSchema, Un as FailureSchema, Ut as operationScopes, V as NamedReference, Vn as Failure, W as PostalAddress, Wn as defineErrors, X as PageInfoSchema, Y as PageInfo, Z as PageQuery, _ as HttpRouteMatch, _n as TokenPolicy, a as t, an as TelemetryConfig, bn as TokenScheme, c as readJsonBody, cn as reportUnexpected, d as BodyReadOptions, dn as Principal, er as AttachmentOutputSchema, et as pageLimit, f as HttpBodyFailure, fn as PrincipalSchema, g as HttpRouteDefinition, gn as TokenDevelopment, h as readBodyText, hn as TokenClient, i as Type, in as Observer, jn as FailureResult, jt as Invocation, k as EmptyInputSchema, kt as AppManifest, l as readJsonResponse, m as readBodyBytes, mn as TokenClaims, n as Static, nn as BackgroundContext, o as createOpenApi, p as HttpBodyFailureReason, pn as TokenAlgorithm, q as SignedUrlSchema, r as TSchema, rn as ExecutionObservation, s as isJsonMediaType, tn as AdmissionObservation, u as retryAfterSeconds, v as createHttpRouteResolver, vn as TokenPrincipal, w as HttpRoute, wn as ScopeMatch, wt as parseInput, xn as createTokenAuthorization, yn as TokenResolutionContext, z as HexColorSchema, zn as ErrorDefinition } from "./chunks/types-D_QnYxPM.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,11 +1,11 @@
1
- import { i as parseSchema, r as parseInput } from "./chunks/validation-DWxKk1Js.js";
1
+ import { a as parseSchema, i as parseInput } from "./chunks/validation-B8XH1b_o.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-C-ZHm0Ya.js";
4
+ import { C as operationMatchesScopes, E as matchesScopes, T as operationScopes, a as createTokenAuthorization, f as err, i as PrincipalSchema, m as ok, o as createTokenVerifier, p as isResult, s as projectToken, y as isPublicOperation } from "./chunks/execution-DxGsKvjA.js";
5
5
  import { createHttpRouteResolver } from "./http-paths.js";
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-D0yQz-d-.js";
8
- import { i as reportUnexpected } from "./chunks/telemetry-DvZgrzZn.js";
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-CldDAUy1.js";
7
+ import { c as maximus, i as createOpenApi, n as t, r as createHttpHandler, s as protectedResourceMetadata, t as Type } from "./chunks/src-Ct4fEN4z.js";
8
+ import { o as reportUnexpected } from "./chunks/telemetry-Bcq3GquK.js";
9
9
  import { a as retryAfterSeconds, i as readJsonResponse, r as readJsonBody, t as isJsonMediaType } from "./chunks/json-Dwni3u4c.js";
10
10
 
11
11
  export { AttachmentOutputSchema, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, FailureSchema, HexColorSchema, HttpsUrlSchema, NamedReferenceSchema, OrganizationIdSchema, Page, PageInfoSchema, PageQueryFields, PhoneNumberSchema, PostalAddressSchema, PrincipalSchema, SignedUrlSchema, 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 };
@@ -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-B1C3Ogo5.js";
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
+ import { $t as ExecutionCall, C as HttpOptions, D as TransportContext, It as OperationMiddleware, Kt as CaptureConfig, Mt as InvocationAuthority, Qt as recordCapture, Rt as OperationShape, T as HttpTransport, Ut as operationScopes, Vt as operation, Xt as CapturedCall, Zt as VerifiedCaller, _ as HttpRouteMatch, an as TelemetryConfig, en as executeOperation, g as HttpRouteDefinition, jt as Invocation, kt as AppManifest, ln as telemetryEnabled, nn as BackgroundContext, sn as recordExecution, t as defineApp, un as withDiagnostics, v as createHttpRouteResolver, zt as composeOperations } from "./chunks/types-D_QnYxPM.js";
2
+ export { type AppManifest, type BackgroundContext, type CaptureConfig, type CapturedCall, type ExecutionCall, type HttpOptions, type HttpRouteDefinition, type HttpRouteMatch, type HttpTransport, type Invocation, type InvocationAuthority, type OperationMiddleware, type OperationShape, type TelemetryConfig, type TransportContext, type VerifiedCaller, composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordCapture, recordExecution, telemetryEnabled, withDiagnostics };
package/dist/internals.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as operationScopes, n as defineApp, t as executeOperation, v as composeOperations, x as operation } from "./chunks/execution-C-ZHm0Ya.js";
1
+ import { T as operationScopes, n as recordCapture, r as defineApp, t as executeOperation, v as composeOperations, x as operation } from "./chunks/execution-DxGsKvjA.js";
2
2
  import { createHttpRouteResolver } from "./http-paths.js";
3
- import { a as telemetryEnabled, o as withDiagnostics, r as recordExecution } from "./chunks/telemetry-DvZgrzZn.js";
3
+ import { a as recordExecution, c as withDiagnostics, s as telemetryEnabled } from "./chunks/telemetry-Bcq3GquK.js";
4
4
 
5
- export { composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordExecution, telemetryEnabled, withDiagnostics };
5
+ export { composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordCapture, recordExecution, telemetryEnabled, withDiagnostics };
@@ -1,4 +1,4 @@
1
- import { E as HttpTransport } from "../chunks/types-B1C3Ogo5.js";
1
+ import { T as HttpTransport } from "../chunks/types-D_QnYxPM.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,7 +1,8 @@
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-C-ZHm0Ya.js";
3
- import { a as canonical, o as standaloneSchema } from "../chunks/src-D0yQz-d-.js";
4
- import { i as reportUnexpected } from "../chunks/telemetry-DvZgrzZn.js";
2
+ import { C as operationMatchesScopes, b as mcpOpenWorld, g as MAX_BODY_BYTES_CEILING } from "../chunks/execution-DxGsKvjA.js";
3
+ import { n as sha256Hex } from "../chunks/delay-B9YcAv-2.js";
4
+ import { a as canonical, o as standaloneSchema } from "../chunks/src-Ct4fEN4z.js";
5
+ import { o as reportUnexpected } from "../chunks/telemetry-Bcq3GquK.js";
5
6
  import { Type } from "@sinclair/typebox";
6
7
  import { Value } from "@sinclair/typebox/value";
7
8
  import { stringify } from "yaml";
@@ -273,7 +274,7 @@ function mcp(options = {}) {
273
274
  path: options.path ?? "/mcp",
274
275
  scope: (namespace) => `${namespace}:mcp:use`,
275
276
  maxBodyBytes: (operations, fallback) => Math.max(fallback, ...operations.flatMap(([, op]) => op.mcp ? [op.maxBodyBytes ?? fallback] : [])),
276
- async handle({ request, requestId, authenticated, application, operations, contractText, url, invoke, admitRequest, bodyBytes, bodyLimit }) {
277
+ async handle({ request, requestId, authenticated, application, operations, contractText, url, invoke, admitRequest, refused, bodyBytes, bodyLimit }) {
277
278
  /** The cursor of the page after the one that ends with an operation, valid for this version only. */
278
279
  const pageCursor = (name) => `${application.version}:${name}`;
279
280
  /**
@@ -283,6 +284,7 @@ function mcp(options = {}) {
283
284
  const count = async () => {
284
285
  if (!await admitRequest()) {
285
286
  const failure = standardErrors.rateLimited.create();
287
+ refused(failure);
286
288
  throw new ProtocolError(RATE_LIMITED, failure.message, failure);
287
289
  }
288
290
  };
@@ -324,15 +326,23 @@ function mcp(options = {}) {
324
326
  return readSkill(skills, call.params.arguments ?? {});
325
327
  }
326
328
  const selected = visible.find(([, op]) => op.mcp.name === call.params.name);
327
- if (!selected) throw new ProtocolError(ProtocolErrorCode.InvalidParams, "Tool not found");
329
+ if (!selected) {
330
+ const hidden = operations.find(([, op]) => op.mcp?.name === call.params.name);
331
+ refused(hidden ? standardErrors.forbidden.create() : standardErrors.notFound.create(), hidden?.[0]);
332
+ throw new ProtocolError(ProtocolErrorCode.InvalidParams, "Tool not found");
333
+ }
328
334
  const [name, op] = selected;
329
- if (bodyBytes > bodyLimit(op)) return {
330
- isError: true,
331
- content: [{
332
- type: "text",
333
- text: JSON.stringify(standardErrors.tooLarge.create())
334
- }]
335
- };
335
+ if (bodyBytes > bodyLimit(op)) {
336
+ const failure = standardErrors.tooLarge.create();
337
+ refused(failure, name);
338
+ return {
339
+ isError: true,
340
+ content: [{
341
+ type: "text",
342
+ text: JSON.stringify(failure)
343
+ }]
344
+ };
345
+ }
336
346
  const result = await invoke(name, op, call.params.arguments ?? {});
337
347
  return result.ok ? {
338
348
  content: [{
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-B1C3Ogo5.js";
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
+ import { $ as TPage, $n as Attachment, A as OrganizationIdSchema, B as HttpsUrlSchema, Ct as decodeSchema, F as t, G as PostalAddressSchema, H as NamedReferenceSchema, I as DeletedObject, J as Page, K as SignedUrl, L as DeletedObjectSchema, M as TSchema, N as Type, P as UuidSchema, Q as PageQueryFields, R as EmailAddressSchema, St as decodeInput, Tt as parseSchema, U as PhoneNumberSchema, V as NamedReference, W as PostalAddress, Wt as StaticDecode, X as PageInfoSchema, Y as PageInfo, Z as PageQuery, _t as strictObject, at as SchemaInput, bt as urlSchema, ct as defaultSchema, dt as inspectSchema, er as AttachmentOutputSchema, et as pageLimit, ft as literalUnion, gt as refineSchema, ht as pipeSchema, it as readSchema, j as Static, k as EmptyInputSchema, lt as extendObject, mt as normalizeSchema, nt as Checked, ot as SchemaIssue, pt as looseObject, q as SignedUrlSchema, rt as checkSchema, st as SchemaValidationError, tt as withoutSecrets, ut as inputSchema, vt as stripObject, wt as parseInput, xt as InputIssue, yt as transformSchema, z as HexColorSchema } from "./chunks/types-D_QnYxPM.js";
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, withoutSecrets };
package/dist/schemas.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as strictObject, b as urlSchema, c as extendObject, d as inspectSchema, f as literalUnion, g as refineSchema, h as pipeSchema, i as parseSchema, m as normalizeSchema, n as decodeSchema, o as SchemaValidationError, p as looseObject, r as parseInput, s as defaultSchema, t as decodeInput, u as inputSchema, v as stripObject, y as transformSchema } from "./chunks/validation-DWxKk1Js.js";
2
- import { _ as pageLimit, a as t, b as readSchema, 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, r as Type, s as EmailAddressSchema, t as EmptyInputSchema, u as NamedReferenceSchema, v as AttachmentOutputSchema, y as checkSchema } from "./chunks/schemas-q-51wBMQ.js";
1
+ import { _ as refineSchema, a as parseSchema, b as transformSchema, c as defaultSchema, d as inputSchema, f as inspectSchema, g as pipeSchema, h as normalizeSchema, i as parseInput, l as extendObject, m as looseObject, n as decodeInput, p as literalUnion, r as decodeSchema, s as SchemaValidationError, v as strictObject, w as withoutSecrets, x as urlSchema, y as stripObject } from "./chunks/validation-B8XH1b_o.js";
2
+ import { _ as pageLimit, a as t, b as readSchema, 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, r as Type, s as EmailAddressSchema, t as EmptyInputSchema, u as NamedReferenceSchema, v as AttachmentOutputSchema, y as checkSchema } from "./chunks/schemas-CldDAUy1.js";
3
3
 
4
- export { AttachmentOutputSchema, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, HexColorSchema, HttpsUrlSchema, NamedReferenceSchema, OrganizationIdSchema, Page, PageInfoSchema, PageQueryFields, PhoneNumberSchema, PostalAddressSchema, SchemaValidationError, SignedUrlSchema, Type, UuidSchema, checkSchema, decodeInput, decodeSchema, defaultSchema, extendObject, inputSchema, inspectSchema, literalUnion, looseObject, normalizeSchema, pageLimit, parseInput, parseSchema, pipeSchema, readSchema, refineSchema, strictObject, stripObject, t, transformSchema, urlSchema };
4
+ export { AttachmentOutputSchema, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, HexColorSchema, HttpsUrlSchema, NamedReferenceSchema, OrganizationIdSchema, Page, PageInfoSchema, PageQueryFields, PhoneNumberSchema, PostalAddressSchema, SchemaValidationError, SignedUrlSchema, Type, UuidSchema, checkSchema, decodeInput, decodeSchema, defaultSchema, extendObject, inputSchema, inspectSchema, literalUnion, looseObject, normalizeSchema, pageLimit, parseInput, parseSchema, pipeSchema, readSchema, refineSchema, strictObject, stripObject, t, transformSchema, urlSchema, withoutSecrets };
@@ -1,4 +1,4 @@
1
- import { bn as Result, kn as Failure } from "./chunks/types-B1C3Ogo5.js";
1
+ import { Mn as Result, Vn as Failure } from "./chunks/types-D_QnYxPM.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-B1C3Ogo5.js";
1
+ import { C as HttpOptions, Mn as Result, Rt as OperationShape, Vn as Failure, dn as Principal, kt as AppManifest, n as Static, r as TSchema, w as HttpRoute } from "../chunks/types-D_QnYxPM.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. */