@orkestrel/contract 0.0.10 → 0.0.12

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.
@@ -362,14 +362,21 @@ var CLONE_NODE_LIMIT = 262144;
362
362
  */
363
363
  var GENERATION_ATTEMPT_LIMIT = 32;
364
364
  /**
365
- * The default maximum object/array nesting depth {@link valueToSchema} walks,
366
- * frozen.
365
+ * The maximum object/array nesting depth {@link valueToSchema} walks, frozen.
367
366
  *
368
367
  * @remarks
369
368
  * Bounds inference against adversarial or cyclic runtime input — once the
370
369
  * remaining depth budget reaches zero, inference stops descending and emits
371
370
  * the empty accept-anything schema `{}` for that branch instead of recursing
372
- * further. Overridable per call via {@link ValueToSchemaOptions.maxDepth}.
371
+ * further. LOWERABLE per call via {@link ValueToSchemaOptions.maxDepth}; a
372
+ * higher value is held here.
373
+ *
374
+ * A ceiling rather than a default, because the walk recurses: what a deeper
375
+ * walk spends is the JavaScript call stack rather than this budget, and that
376
+ * stack is not a fixed quantity. The survivable depth measured on one host rose
377
+ * across repeated calls within a single process as the engine optimized, and
378
+ * fell to roughly this number under a reduced stack size. Any larger constant
379
+ * therefore has a host where it fails, which is why none is published.
373
380
  */
374
381
  var INFER_DEPTH_LIMIT = 32;
375
382
  /**
@@ -2470,6 +2477,61 @@ function readArrayEntries(value) {
2470
2477
  });
2471
2478
  }
2472
2479
  /**
2480
+ * Snapshot a guard shape and its optional-key mode for a shape combinator.
2481
+ *
2482
+ * @remarks
2483
+ * A null-prototype record plus its own key list is used instead of a `Map`.
2484
+ * The declared-key population decides the guard's answer, and
2485
+ * `Map.prototype.has`, `Map.prototype.get`, and map iteration are three
2486
+ * caller-writable members on that path. An own data key read by index
2487
+ * dispatches through nothing.
2488
+ *
2489
+ * @param shape - The guard shape whose own string declarations to snapshot
2490
+ * @param optional - The optional-key list, `true` for every key, or `undefined`
2491
+ * @param reader - The public combinator name used in read refusals
2492
+ * @returns The owned guards and names plus the collected optional-key membership
2493
+ * @throws {ContractError} When the shape or optional-key list cannot be read
2494
+ *
2495
+ * @example
2496
+ * ```ts
2497
+ * readGuardShape({ id: isString }, undefined, 'recordOf')
2498
+ * ```
2499
+ */
2500
+ function readGuardShape(shape, optional, reader) {
2501
+ const declared = readValue(() => {
2502
+ const members = INTRINSICS.members(shape);
2503
+ const guards = INTRINSICS.create(null);
2504
+ const names = [];
2505
+ for (let index = 0; index < members.length; index += 1) {
2506
+ const key = members[index];
2507
+ if (!isString(key)) continue;
2508
+ if (!INTRINSICS.own(guards, key)) names[names.length] = key;
2509
+ guards[key] = shape[key];
2510
+ }
2511
+ return {
2512
+ guards,
2513
+ names,
2514
+ vocabulary: collectMembers(names)
2515
+ };
2516
+ }, reader, { subject: "shape" });
2517
+ const optionalKeys = readValue(() => {
2518
+ if (optional === true) return collectMembers(declared.names);
2519
+ if (!INTRINSICS.array(optional)) return collectMembers([]);
2520
+ const entries = readArrayEntries(optional);
2521
+ if (!entries.success) throw entries.error;
2522
+ if (!entries.value.dense) throw new INTRINSICS.error("Optional key list must be dense");
2523
+ const keys = collectMembers([]);
2524
+ for (let index = 0; index < entries.value.entries.length; index += 1) admitMember(keys, INTRINSICS.text(entries.value.entries[index]));
2525
+ return keys;
2526
+ }, reader, { subject: "optional" });
2527
+ return {
2528
+ guards: declared.guards,
2529
+ names: declared.names,
2530
+ optional: optionalKeys,
2531
+ vocabulary: declared.vocabulary
2532
+ };
2533
+ }
2534
+ /**
2473
2535
  * Snapshot an object's own enumerable string keys through a total boundary.
2474
2536
  *
2475
2537
  * @remarks
@@ -3003,6 +3065,35 @@ function sanitizeBudget(value, fallback) {
3003
3065
  }, "sanitizeBudget");
3004
3066
  }
3005
3067
  /**
3068
+ * Resolve a caller's depth budget to one the traversal can actually survive.
3069
+ *
3070
+ * @remarks
3071
+ * {@link sanitizeBudget} decides the SHAPE of a budget and deliberately lets any
3072
+ * finite non-negative integer through, because it must never read a fallback a
3073
+ * hostile caller supplied. That left the depth axis unbounded from above, and
3074
+ * depth is the axis that recurses: `1e9` is a valid integer, so the walk descended
3075
+ * until the call STACK failed, at a depth that varied between runs, and the
3076
+ * refusal surfaced as an unreadable value rather than as the exhaustion the guard
3077
+ * promises. Breadth needs no such ceiling — its loop is already bounded by the
3078
+ * entries actually present.
3079
+ *
3080
+ * So {@link INFER_DEPTH_LIMIT} is the ceiling as well as the default, and
3081
+ * `maxDepth` narrows the walk rather than widening it. One bound, and the same
3082
+ * answer on every host.
3083
+ *
3084
+ * @param value - The candidate depth budget
3085
+ * @returns A finite non-negative integer no greater than `INFER_DEPTH_LIMIT`
3086
+ *
3087
+ * @example
3088
+ * ```ts
3089
+ * sanitizeDepth(4) // 4
3090
+ * sanitizeDepth(1e9) // 32
3091
+ * ```
3092
+ */
3093
+ function sanitizeDepth(value) {
3094
+ return INTRINSICS.min(sanitizeBudget(value, 32), 32);
3095
+ }
3096
+ /**
3006
3097
  * Render a short, safe, TOTAL preview of an unknown value for a {@link Fault}'s
3007
3098
  * `received` field.
3008
3099
  *
@@ -5667,32 +5758,7 @@ function mapOf(keyGuard, valueGuard) {
5667
5758
  */
5668
5759
  function recordOf(shape, optional) {
5669
5760
  return contain(() => {
5670
- const declared = readValue(() => {
5671
- const members = INTRINSICS.members(shape);
5672
- const collected = INTRINSICS.create(null);
5673
- const names = [];
5674
- for (let index = 0; index < members.length; index += 1) {
5675
- const key = members[index];
5676
- if (!isString(key)) continue;
5677
- if (!INTRINSICS.own(collected, key)) names[names.length] = key;
5678
- collected[key] = shape[key];
5679
- }
5680
- return {
5681
- collected,
5682
- names,
5683
- vocabulary: collectMembers(names)
5684
- };
5685
- }, "recordOf", { subject: "shape" });
5686
- const optionalKeys = readValue(() => {
5687
- if (optional === true) return collectMembers(declared.names);
5688
- if (!INTRINSICS.array(optional)) return collectMembers([]);
5689
- const entries = readArrayEntries(optional);
5690
- if (!entries.success) throw entries.error;
5691
- if (!entries.value.dense) throw new INTRINSICS.error("Optional key list must be dense");
5692
- const keys = collectMembers([]);
5693
- for (let index = 0; index < entries.value.entries.length; index += 1) admitMember(keys, INTRINSICS.text(entries.value.entries[index]));
5694
- return keys;
5695
- }, "recordOf", { subject: "optional" });
5761
+ const declared = readGuardShape(shape, optional, "recordOf");
5696
5762
  return (value) => holds(() => {
5697
5763
  if (!isRecord(value)) return false;
5698
5764
  const members = INTRINSICS.members(value);
@@ -5703,9 +5769,9 @@ function recordOf(shape, optional) {
5703
5769
  for (let index = 0; index < declared.names.length; index += 1) {
5704
5770
  const key = declared.names[index];
5705
5771
  if (key === void 0) continue;
5706
- const guard = declared.collected[key];
5772
+ const guard = declared.guards[key];
5707
5773
  const present = INTRINSICS.own(value, key);
5708
- if (!matchesMember(optionalKeys, key) && !present) return false;
5774
+ if (!matchesMember(declared.optional, key) && !present) return false;
5709
5775
  if (present) {
5710
5776
  if (guard === void 0 || !guard(value[key])) return false;
5711
5777
  }
@@ -5715,6 +5781,47 @@ function recordOf(shape, optional) {
5715
5781
  }, "recordOf");
5716
5782
  }
5717
5783
  /**
5784
+ * Build a guard that accepts non-array objects matching an open guard shape.
5785
+ *
5786
+ * @remarks
5787
+ * Three calling modes mirror {@link recordOf}:
5788
+ * - **No `optional`** — all shape keys required; unknown members admitted.
5789
+ * - **`optional: K[]`** — the listed keys are optional; all others required.
5790
+ * - **`optional: true`** — every shape key is optional.
5791
+ *
5792
+ * Each declared member is read through `Reflect.get`, so inherited data and
5793
+ * prototype accessors can satisfy the shape. An optional member passes when its
5794
+ * read value is `undefined`; otherwise its guard must accept the value. Unknown
5795
+ * members are never enumerated or inspected. Member-carrying functions are
5796
+ * accepted. Arrays, `null`, and primitives are rejected. Hostile reads return
5797
+ * `false` rather than throwing.
5798
+ *
5799
+ * @example
5800
+ * ```ts
5801
+ * const isResult = objectOf({ conclusion: isBoolean })
5802
+ * isResult({ conclusion: true, metadata: 'retained' }) // true
5803
+ * isResult([]) // false
5804
+ * ```
5805
+ */
5806
+ function objectOf(shape, optional) {
5807
+ return contain(() => {
5808
+ const declared = readGuardShape(shape, optional, "objectOf");
5809
+ return (value) => holds(() => {
5810
+ if (!isObject(value) && !isFunction(value) || INTRINSICS.array(value)) return false;
5811
+ for (let index = 0; index < declared.names.length; index += 1) {
5812
+ const key = declared.names[index];
5813
+ if (key === void 0) continue;
5814
+ const guard = declared.guards[key];
5815
+ const member = INTRINSICS.read(value, key);
5816
+ if (matchesMember(declared.optional, key)) {
5817
+ if (member !== void 0 && (guard === void 0 || !guard(member))) return false;
5818
+ } else if (guard === void 0 || !guard(member)) return false;
5819
+ }
5820
+ return true;
5821
+ });
5822
+ }, "objectOf");
5823
+ }
5824
+ /**
5718
5825
  * Build a guard that accepts values that are own keys of the provided object.
5719
5826
  *
5720
5827
  * @remarks
@@ -8819,7 +8926,7 @@ function inferValue(value, depth, breadth, closed, format, visited, memo) {
8819
8926
  */
8820
8927
  function inferArray(value, depth, breadth, closed, format, visited, memo) {
8821
8928
  return contain(() => {
8822
- const maxDepth = sanitizeBudget(depth, 32);
8929
+ const maxDepth = sanitizeDepth(depth);
8823
8930
  const maxBreadth = sanitizeBudget(breadth, 256);
8824
8931
  return readValue(() => {
8825
8932
  if (!(maxDepth > 0) || matchesVisited(visited, value)) return {};
@@ -8900,9 +9007,10 @@ function inferArray(value, depth, breadth, closed, format, visited, memo) {
8900
9007
  function inferObject(value, depth, breadth, closed, format, visited, memo) {
8901
9008
  return contain(() => {
8902
9009
  const maxBreadth = sanitizeBudget(breadth, 256);
9010
+ const maxDepth = sanitizeDepth(depth);
8903
9011
  return readValue(() => {
8904
- if (!(depth > 0) || matchesVisited(visited, value)) return {};
8905
- const cached = INTRINSICS.apply(INTRINSICS.recall, memo, [value])?.get(depth);
9012
+ if (!(maxDepth > 0) || matchesVisited(visited, value)) return {};
9013
+ const cached = INTRINSICS.apply(INTRINSICS.recall, memo, [value])?.get(maxDepth);
8906
9014
  if (cached) return cached;
8907
9015
  admitVisited(visited, value);
8908
9016
  const outcome = attempt(() => {
@@ -8922,7 +9030,7 @@ function inferObject(value, depth, breadth, closed, format, visited, memo) {
8922
9030
  dropped = true;
8923
9031
  continue;
8924
9032
  }
8925
- properties[key] = inferValue(propertyValue, depth - 1, maxBreadth, closed, format, visited, memo);
9033
+ properties[key] = inferValue(propertyValue, maxDepth - 1, maxBreadth, closed, format, visited, memo);
8926
9034
  required[required.length] = key;
8927
9035
  }
8928
9036
  return {
@@ -8942,7 +9050,7 @@ function inferObject(value, depth, breadth, closed, format, visited, memo) {
8942
9050
  ...required.length > 0 ? { required } : {},
8943
9051
  additionalProperties: partial ? true : !closed
8944
9052
  };
8945
- retainDepth(memo, value, depth, schema);
9053
+ retainDepth(memo, value, maxDepth, schema);
8946
9054
  return schema;
8947
9055
  }, "inferObject");
8948
9056
  }, "inferObject");
@@ -8965,11 +9073,16 @@ function inferObject(value, depth, breadth, closed, format, visited, memo) {
8965
9073
  * expect an object-shaped `inputSchema`; wrap a non-object payload with
8966
9074
  * {@link schemaToObject} before advertising it as a tool's parameters.
8967
9075
  *
8968
- * `maxDepth` / `maxProperties` are sanitized via {@link sanitizeBudget} to a
8969
- * finite non-negative integer, falling back to {@link INFER_DEPTH_LIMIT} /
8970
- * {@link INFER_BREADTH_LIMIT} for anything else (`NaN`, `Infinity`, negative,
8971
- * fractional) — a hostile or malformed budget can never defeat the depth
8972
- * guard or corrupt the sampled key/element list.
9076
+ * `maxProperties` is sanitized via {@link sanitizeBudget} to a finite
9077
+ * non-negative integer, falling back to {@link INFER_BREADTH_LIMIT} for anything
9078
+ * else (`NaN`, `Infinity`, negative, fractional), so a malformed breadth cannot
9079
+ * corrupt the sampled key/element list.
9080
+ *
9081
+ * `maxDepth` goes through {@link sanitizeDepth}, which does the same and then caps
9082
+ * at {@link INFER_DEPTH_LIMIT}, so the option NARROWS the walk and cannot widen
9083
+ * it. The cap is what makes the depth guard unbreakable: depth is the recursing
9084
+ * axis, and a large-but-valid budget used to descend until the call STACK failed
9085
+ * rather than until the guard said stop.
8973
9086
  *
8974
9087
  * @param value - The value to infer a schema from
8975
9088
  * @param options - Optional `maxDepth` / `maxProperties` / `closed` / `format` bounds
@@ -8993,7 +9106,7 @@ function valueToSchema(value, options) {
8993
9106
  "format",
8994
9107
  "enum"
8995
9108
  ], "valueToSchema", "schema");
8996
- const maxDepth = sanitizeBudget(optionsSnapshot?.maxDepth, 32);
9109
+ const maxDepth = sanitizeDepth(optionsSnapshot?.maxDepth);
8997
9110
  const maxProperties = sanitizeBudget(optionsSnapshot?.maxProperties, 256);
8998
9111
  const closed = optionsSnapshot?.closed ?? true;
8999
9112
  const format = optionsSnapshot?.format ?? false;
@@ -9229,8 +9342,9 @@ function inferRecordSamples(samples, depth, breadth, closed, format, enumOn, mem
9229
9342
  * and `enum` (both default `false`) opt a low-cardinality/unanimous-format
9230
9343
  * slot into the corresponding keyword — see {@link inferSamples} for the
9231
9344
  * precedence and the multi-sample format-disabling seam. `maxDepth` /
9232
- * `maxProperties` are sanitized via {@link sanitizeBudget} the same way
9233
- * {@link valueToSchema} sanitizes them — see there for why.
9345
+ * `maxProperties` are resolved exactly as {@link valueToSchema} resolves them —
9346
+ * breadth through {@link sanitizeBudget}, depth through {@link sanitizeDepth},
9347
+ * which also caps at {@link INFER_DEPTH_LIMIT}; see there for why.
9234
9348
  *
9235
9349
  * @param samples - The example values to infer a schema from
9236
9350
  * @param options - Optional `maxDepth` / `maxProperties` / `closed` / `format` / `enum` bounds
@@ -9254,7 +9368,7 @@ function samplesToSchema(samples, options) {
9254
9368
  "format",
9255
9369
  "enum"
9256
9370
  ], "samplesToSchema", "schema");
9257
- const maxDepth = sanitizeBudget(optionsSnapshot?.maxDepth, 32);
9371
+ const maxDepth = sanitizeDepth(optionsSnapshot?.maxDepth);
9258
9372
  const maxProperties = sanitizeBudget(optionsSnapshot?.maxProperties, 256);
9259
9373
  const closed = optionsSnapshot?.closed ?? true;
9260
9374
  const format = optionsSnapshot?.format ?? false;
@@ -10298,6 +10412,6 @@ function schemaToShape(schema) {
10298
10412
  }, "schemaToShape");
10299
10413
  }
10300
10414
  //#endregion
10301
- export { CLONE_NODE_LIMIT, COMPILE_DEPTH_LIMIT, COMPILE_NODE_LIMIT, ContractCompiler, ContractError, FAULT_LIMIT, FORMAT_MAX_LENGTH, FORMAT_PATTERNS, GENERATION_ATTEMPT_LIMIT, GUARD_DEPTH_LIMIT, INFER_BREADTH_LIMIT, INFER_DEPTH_LIMIT, INFER_ENUM_LIMIT, INTRINSICS, JSONCloner, JSON_SCHEMA_TYPES, PREVIEW_LIMIT, SchemaCloner, ShapeCloner, ShapeValidator, admitMember, admitVisited, andOf, appendEntries, arrayOf, arrayShape, attempt, booleanShape, boundsOf, buildObjectShape, buildSampleMemo, buildShapeFromNode, canonicalStringify, canonicalizeValue, classifyFormat, cloneJSONRecord, cloneJSONValue, cloneSchema, cloneShape, collectEntries, collectMembers, compareValues, compileAuditor, compileGenerator, compileGuard, compileParser, compileReporter, compileSchema, complementOf, contain, createArrayFaults, createContract, createNumberFaults, createStringFaults, deriveLengthBounds, deriveRangeBounds, drawRandom, encodeLeaf, enumOf, enumerableKeys, enumerableSymbolCount, holds, inferArray, inferObject, inferPrimitiveEnum, inferRecordSamples, inferSamples, inferValue, instanceOf, integerShape, intersectionOf, isArray, isArrayBuffer, isArrayBufferView, isAsyncFunction, isAsyncGeneratorFunction, isAsyncIterable, isBigInt, isBigInt64Array, isBigUint64Array, isBoolean, isBoundedJSONRecord, isBoundedJSONValue, isConstructor, isContractError, isDataView, isDate, isDefined, isEmptyArray, isEmptyMap, isEmptyObject, isEmptySet, isEmptyString, isError, isFalse, isFiniteNumber, isFloat32Array, isFloat64Array, isFunction, isGeneratorFunction, isInstance, isInt16Array, isInt32Array, isInt8Array, isInteger, isIterable, isJSONPrimitive, isJSONValue, isLiteralValue, isMap, isNonEmptyArray, isNonEmptyMap, isNonEmptyObject, isNonEmptySet, isNonEmptyString, isNonNegativeInteger, isNonNegativeNumber, isNull, isNullableBoolean, isNullableNumber, isNullableString, isNumber, isObject, isPromise, isPromiseLike, isRecord, isRegExp, isSet, isSharedArrayBuffer, isString, isSymbol, isTrue, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isUndefined, isValidISOInstant, isWeakMap, isWeakSet, isZeroArg, isZeroArgAsync, isZeroArgAsyncGenerator, isZeroArgGenerator, jsonShape, keyOf, lazyOf, limitEntries, literalOf, literalShape, mapOf, matchOf, matchesJSONDepth, matchesJSONValue, matchesMember, matchesPattern, matchesRecordBrand, matchesVisited, notOf, nullShape, nullableOf, nullableShape, numberShape, objectShape, omitOf, omitVisited, oneOfShape, optionalOf, optionalShape, orOf, ownShape, parseArray, parseArrayField, parseBoolean, parseBooleanField, parseEnum, parseEnumField, parseInteger, parseIntegerField, parseJSON, parseJSONAs, parseJSONValue, parseJSONValueField, parseNull, parseNullField, parseNumber, parseNumberField, parseRecord, parseRecordField, parseString, parseStringField, pathOf, pickOf, pinMembers, preview, rawShape, readArrayEntries, readMapEntries, readOptions, readPattern, readPatternFlags, readPatternSource, readSampleMemo, readSetEntries, readValue, recordOf, recordShape, refuseExpansion, resolveField, retainDepth, samplesToFormat, samplesToSchema, sanitizeBudget, schemaNodeToShape, schemaToObject, schemaToParameters, schemaToShape, seededRandom, selectClosestFaults, setOf, shapeToKind, sortValues, stringOf, stringShape, stringToFormat, transformOf, tupleOf, unifySchemas, unionOf, unionShape, validateShapeDepth, valueToSchema, whereOf };
10415
+ export { CLONE_NODE_LIMIT, COMPILE_DEPTH_LIMIT, COMPILE_NODE_LIMIT, ContractCompiler, ContractError, FAULT_LIMIT, FORMAT_MAX_LENGTH, FORMAT_PATTERNS, GENERATION_ATTEMPT_LIMIT, GUARD_DEPTH_LIMIT, INFER_BREADTH_LIMIT, INFER_DEPTH_LIMIT, INFER_ENUM_LIMIT, INTRINSICS, JSONCloner, JSON_SCHEMA_TYPES, PREVIEW_LIMIT, SchemaCloner, ShapeCloner, ShapeValidator, admitMember, admitVisited, andOf, appendEntries, arrayOf, arrayShape, attempt, booleanShape, boundsOf, buildObjectShape, buildSampleMemo, buildShapeFromNode, canonicalStringify, canonicalizeValue, classifyFormat, cloneJSONRecord, cloneJSONValue, cloneSchema, cloneShape, collectEntries, collectMembers, compareValues, compileAuditor, compileGenerator, compileGuard, compileParser, compileReporter, compileSchema, complementOf, contain, createArrayFaults, createContract, createNumberFaults, createStringFaults, deriveLengthBounds, deriveRangeBounds, drawRandom, encodeLeaf, enumOf, enumerableKeys, enumerableSymbolCount, holds, inferArray, inferObject, inferPrimitiveEnum, inferRecordSamples, inferSamples, inferValue, instanceOf, integerShape, intersectionOf, isArray, isArrayBuffer, isArrayBufferView, isAsyncFunction, isAsyncGeneratorFunction, isAsyncIterable, isBigInt, isBigInt64Array, isBigUint64Array, isBoolean, isBoundedJSONRecord, isBoundedJSONValue, isConstructor, isContractError, isDataView, isDate, isDefined, isEmptyArray, isEmptyMap, isEmptyObject, isEmptySet, isEmptyString, isError, isFalse, isFiniteNumber, isFloat32Array, isFloat64Array, isFunction, isGeneratorFunction, isInstance, isInt16Array, isInt32Array, isInt8Array, isInteger, isIterable, isJSONPrimitive, isJSONValue, isLiteralValue, isMap, isNonEmptyArray, isNonEmptyMap, isNonEmptyObject, isNonEmptySet, isNonEmptyString, isNonNegativeInteger, isNonNegativeNumber, isNull, isNullableBoolean, isNullableNumber, isNullableString, isNumber, isObject, isPromise, isPromiseLike, isRecord, isRegExp, isSet, isSharedArrayBuffer, isString, isSymbol, isTrue, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isUndefined, isValidISOInstant, isWeakMap, isWeakSet, isZeroArg, isZeroArgAsync, isZeroArgAsyncGenerator, isZeroArgGenerator, jsonShape, keyOf, lazyOf, limitEntries, literalOf, literalShape, mapOf, matchOf, matchesJSONDepth, matchesJSONValue, matchesMember, matchesPattern, matchesRecordBrand, matchesVisited, notOf, nullShape, nullableOf, nullableShape, numberShape, objectOf, objectShape, omitOf, omitVisited, oneOfShape, optionalOf, optionalShape, orOf, ownShape, parseArray, parseArrayField, parseBoolean, parseBooleanField, parseEnum, parseEnumField, parseInteger, parseIntegerField, parseJSON, parseJSONAs, parseJSONValue, parseJSONValueField, parseNull, parseNullField, parseNumber, parseNumberField, parseRecord, parseRecordField, parseString, parseStringField, pathOf, pickOf, pinMembers, preview, rawShape, readArrayEntries, readGuardShape, readMapEntries, readOptions, readPattern, readPatternFlags, readPatternSource, readSampleMemo, readSetEntries, readValue, recordOf, recordShape, refuseExpansion, resolveField, retainDepth, samplesToFormat, samplesToSchema, sanitizeBudget, sanitizeDepth, schemaNodeToShape, schemaToObject, schemaToParameters, schemaToShape, seededRandom, selectClosestFaults, setOf, shapeToKind, sortValues, stringOf, stringShape, stringToFormat, transformOf, tupleOf, unifySchemas, unionOf, unionShape, validateShapeDepth, valueToSchema, whereOf };
10302
10416
 
10303
10417
  //# sourceMappingURL=index.js.map