@yaag/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/types/runtime/agent-names.d.ts +8 -0
- package/assets/types/runtime/agent-usage.d.ts +16 -0
- package/assets/types/runtime/agent.d.ts +36 -0
- package/assets/types/runtime/args-validation.d.ts +3 -0
- package/assets/types/runtime/ask-activity.d.ts +9 -0
- package/assets/types/runtime/ask-contract-identity.d.ts +25 -0
- package/assets/types/runtime/ask-exchange-events.d.ts +13 -0
- package/assets/types/runtime/ask-exchange-options.d.ts +30 -0
- package/assets/types/runtime/ask-exchange.d.ts +4 -0
- package/assets/types/runtime/ask-hash.d.ts +32 -0
- package/assets/types/runtime/ask-limit.d.ts +46 -0
- package/assets/types/runtime/ask-output-steering.d.ts +28 -0
- package/assets/types/runtime/ask-output-tail.d.ts +28 -0
- package/assets/types/runtime/ask-output.d.ts +29 -0
- package/assets/types/runtime/ask-settlement.d.ts +11 -0
- package/assets/types/runtime/ask-turn.d.ts +25 -0
- package/assets/types/runtime/cassette-loader.d.ts +11 -0
- package/assets/types/runtime/cassette-publish.d.ts +11 -0
- package/assets/types/runtime/cassette-replay.d.ts +24 -0
- package/assets/types/runtime/cassette-schema.d.ts +111 -0
- package/assets/types/runtime/cassette.d.ts +118 -0
- package/assets/types/runtime/checkpoint-dir.d.ts +30 -0
- package/assets/types/runtime/connection.d.ts +29 -0
- package/assets/types/runtime/define-agent.d.ts +48 -0
- package/assets/types/runtime/define-run.d.ts +40 -0
- package/assets/types/runtime/errors.d.ts +50 -0
- package/assets/types/runtime/events.d.ts +138 -0
- package/assets/types/runtime/extension-package.d.ts +17 -0
- package/assets/types/runtime/extension-paths.d.ts +16 -0
- package/assets/types/runtime/extension-source.d.ts +28 -0
- package/assets/types/runtime/fake-transport.d.ts +78 -0
- package/assets/types/runtime/frame-gap.d.ts +23 -0
- package/assets/types/runtime/frame-queue.d.ts +15 -0
- package/assets/types/runtime/git-facts.d.ts +7 -0
- package/assets/types/runtime/idle-watch.d.ts +44 -0
- package/assets/types/runtime/index.d.ts +33 -0
- package/assets/types/runtime/jsonl.d.ts +13 -0
- package/assets/types/runtime/live-transport.d.ts +3 -0
- package/assets/types/runtime/node-decoder-subagent.d.ts +7 -0
- package/assets/types/runtime/node-decoder-workflow.d.ts +12 -0
- package/assets/types/runtime/node-decoder.d.ts +21 -0
- package/assets/types/runtime/node-decoders.d.ts +3 -0
- package/assets/types/runtime/node-details.d.ts +22 -0
- package/assets/types/runtime/node-path.d.ts +19 -0
- package/assets/types/runtime/node-tracker.d.ts +30 -0
- package/assets/types/runtime/pi-state.d.ts +16 -0
- package/assets/types/runtime/prompt-gist.d.ts +8 -0
- package/assets/types/runtime/prompt.d.ts +9 -0
- package/assets/types/runtime/reap.d.ts +22 -0
- package/assets/types/runtime/recording-transport.d.ts +9 -0
- package/assets/types/runtime/replay-divergence.d.ts +19 -0
- package/assets/types/runtime/replay-transport.d.ts +9 -0
- package/assets/types/runtime/resume-preconditions.d.ts +8 -0
- package/assets/types/runtime/resume-transport.d.ts +9 -0
- package/assets/types/runtime/run-checkpoint.d.ts +28 -0
- package/assets/types/runtime/run-context.d.ts +18 -0
- package/assets/types/runtime/run.d.ts +60 -0
- package/assets/types/runtime/skill-probe.d.ts +71 -0
- package/assets/types/runtime/skill-restriction-transport.d.ts +8 -0
- package/assets/types/runtime/spawn.d.ts +24 -0
- package/assets/types/runtime/summary-agent.d.ts +123 -0
- package/assets/types/runtime/summary-nodes.d.ts +28 -0
- package/assets/types/runtime/summary.d.ts +55 -0
- package/assets/types/runtime/tool-probe-extension.d.ts +12 -0
- package/assets/types/runtime/tool-probe.d.ts +30 -0
- package/assets/types/runtime/transport.d.ts +143 -0
- package/assets/types/runtime/types.d.ts +120 -0
- package/assets/types/runtime/validation-errors.d.ts +3 -0
- package/assets/types/runtime/wire-constants.d.ts +18 -0
- package/assets/types/runtime/worktree-transport.d.ts +9 -0
- package/assets/types/typebox/build/compile/code.d.mts +12 -0
- package/assets/types/typebox/build/compile/compile.d.mts +6 -0
- package/assets/types/typebox/build/compile/index.d.mts +8 -0
- package/assets/types/typebox/build/compile/validator.d.mts +35 -0
- package/assets/types/typebox/build/error/errors.d.mts +208 -0
- package/assets/types/typebox/build/error/index.d.mts +1 -0
- package/assets/types/typebox/build/format/_idna.d.mts +2 -0
- package/assets/types/typebox/build/format/_puny.d.mts +1 -0
- package/assets/types/typebox/build/format/_registry.d.mts +15 -0
- package/assets/types/typebox/build/format/date.d.mts +6 -0
- package/assets/types/typebox/build/format/date_time.d.mts +6 -0
- package/assets/types/typebox/build/format/duration.d.mts +5 -0
- package/assets/types/typebox/build/format/email.d.mts +5 -0
- package/assets/types/typebox/build/format/format.d.mts +22 -0
- package/assets/types/typebox/build/format/hostname.d.mts +7 -0
- package/assets/types/typebox/build/format/idn_email.d.mts +5 -0
- package/assets/types/typebox/build/format/idn_hostname.d.mts +7 -0
- package/assets/types/typebox/build/format/index.d.mts +4 -0
- package/assets/types/typebox/build/format/ipv4.d.mts +6 -0
- package/assets/types/typebox/build/format/ipv6.d.mts +5 -0
- package/assets/types/typebox/build/format/iri.d.mts +5 -0
- package/assets/types/typebox/build/format/iri_reference.d.mts +5 -0
- package/assets/types/typebox/build/format/json_pointer.d.mts +6 -0
- package/assets/types/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
- package/assets/types/typebox/build/format/regex.d.mts +6 -0
- package/assets/types/typebox/build/format/relative_json_pointer.d.mts +6 -0
- package/assets/types/typebox/build/format/time.d.mts +5 -0
- package/assets/types/typebox/build/format/uri.d.mts +5 -0
- package/assets/types/typebox/build/format/uri_reference.d.mts +5 -0
- package/assets/types/typebox/build/format/uri_template.d.mts +6 -0
- package/assets/types/typebox/build/format/url.d.mts +6 -0
- package/assets/types/typebox/build/format/uuid.d.mts +6 -0
- package/assets/types/typebox/build/guard/emit.d.mts +54 -0
- package/assets/types/typebox/build/guard/globals.d.mts +35 -0
- package/assets/types/typebox/build/guard/guard.d.mts +65 -0
- package/assets/types/typebox/build/guard/index.d.mts +6 -0
- package/assets/types/typebox/build/guard/native.d.mts +20 -0
- package/assets/types/typebox/build/guard/string.d.mts +6 -0
- package/assets/types/typebox/build/index.d.mts +8 -0
- package/assets/types/typebox/build/schema/build.d.mts +39 -0
- package/assets/types/typebox/build/schema/check.d.mts +6 -0
- package/assets/types/typebox/build/schema/compile.d.mts +22 -0
- package/assets/types/typebox/build/schema/engine/_context.d.mts +35 -0
- package/assets/types/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/assets/types/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/assets/types/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/assets/types/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/assets/types/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/assets/types/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/assets/types/typebox/build/schema/engine/const.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/contains.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/enum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/format.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/if.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/index.d.mts +48 -0
- package/assets/types/typebox/build/schema/engine/items.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/not.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/properties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/ref.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/required.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/schema.d.mts +9 -0
- package/assets/types/typebox/build/schema/engine/type.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/errors.d.mts +6 -0
- package/assets/types/typebox/build/schema/index.d.mts +3 -0
- package/assets/types/typebox/build/schema/parse.d.mts +13 -0
- package/assets/types/typebox/build/schema/pointer/index.d.mts +2 -0
- package/assets/types/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/assets/types/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
- package/assets/types/typebox/build/schema/resolve/index.d.mts +1 -0
- package/assets/types/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/assets/types/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/assets/types/typebox/build/schema/schema.d.mts +10 -0
- package/assets/types/typebox/build/schema/static/_canonical.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/assets/types/typebox/build/schema/static/_elements.d.mts +18 -0
- package/assets/types/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/allOf.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/const.d.mts +1 -0
- package/assets/types/typebox/build/schema/static/enum.d.mts +1 -0
- package/assets/types/typebox/build/schema/static/if.d.mts +15 -0
- package/assets/types/typebox/build/schema/static/index.d.mts +1 -0
- package/assets/types/typebox/build/schema/static/items.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/properties.d.mts +32 -0
- package/assets/types/typebox/build/schema/static/ref.d.mts +8 -0
- package/assets/types/typebox/build/schema/static/required.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/schema.d.mts +56 -0
- package/assets/types/typebox/build/schema/static/static.d.mts +4 -0
- package/assets/types/typebox/build/schema/static/type.d.mts +4 -0
- package/assets/types/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/assets/types/typebox/build/schema/types/_refine.d.mts +13 -0
- package/assets/types/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/allOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/anchor.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/const.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/contains.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/default.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/defs.d.mts +6 -0
- package/assets/types/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/assets/types/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/else.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/enum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/format.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/id.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/if.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/index.d.mts +53 -0
- package/assets/types/typebox/build/schema/types/items.d.mts +19 -0
- package/assets/types/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maximum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minContains.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minLength.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minimum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/not.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/pattern.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/properties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/assets/types/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/ref.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/required.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/schema.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/then.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/type.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/assets/types/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/assets/types/typebox/build/system/arguments/index.d.mts +1 -0
- package/assets/types/typebox/build/system/environment/environment.d.mts +1 -0
- package/assets/types/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/assets/types/typebox/build/system/environment/index.d.mts +1 -0
- package/assets/types/typebox/build/system/hashing/hash.d.mts +4 -0
- package/assets/types/typebox/build/system/hashing/index.d.mts +1 -0
- package/assets/types/typebox/build/system/index.d.mts +4 -0
- package/assets/types/typebox/build/system/locale/_config.d.mts +7 -0
- package/assets/types/typebox/build/system/locale/_locale.d.mts +40 -0
- package/assets/types/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/en_US.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_419.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/index.d.mts +1 -0
- package/assets/types/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/assets/types/typebox/build/system/memory/assign.d.mts +14 -0
- package/assets/types/typebox/build/system/memory/clone.d.mts +5 -0
- package/assets/types/typebox/build/system/memory/create.d.mts +8 -0
- package/assets/types/typebox/build/system/memory/discard.d.mts +4 -0
- package/assets/types/typebox/build/system/memory/index.d.mts +1 -0
- package/assets/types/typebox/build/system/memory/memory.d.mts +6 -0
- package/assets/types/typebox/build/system/memory/metrics.d.mts +14 -0
- package/assets/types/typebox/build/system/memory/update.d.mts +7 -0
- package/assets/types/typebox/build/system/settings/index.d.mts +1 -0
- package/assets/types/typebox/build/system/settings/settings.d.mts +71 -0
- package/assets/types/typebox/build/system/system.d.mts +6 -0
- package/assets/types/typebox/build/system/unreachable/index.d.mts +1 -0
- package/assets/types/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/assets/types/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/assets/types/typebox/build/type/action/capitalize.d.mts +11 -0
- package/assets/types/typebox/build/type/action/conditional.d.mts +12 -0
- package/assets/types/typebox/build/type/action/constructor_parameters.d.mts +11 -0
- package/assets/types/typebox/build/type/action/evaluate.d.mts +11 -0
- package/assets/types/typebox/build/type/action/exclude.d.mts +11 -0
- package/assets/types/typebox/build/type/action/extract.d.mts +11 -0
- package/assets/types/typebox/build/type/action/index.d.mts +30 -0
- package/assets/types/typebox/build/type/action/indexed.d.mts +14 -0
- package/assets/types/typebox/build/type/action/instance_type.d.mts +11 -0
- package/assets/types/typebox/build/type/action/interface.d.mts +14 -0
- package/assets/types/typebox/build/type/action/keyof.d.mts +11 -0
- package/assets/types/typebox/build/type/action/lowercase.d.mts +11 -0
- package/assets/types/typebox/build/type/action/mapped.d.mts +13 -0
- package/assets/types/typebox/build/type/action/module.d.mts +13 -0
- package/assets/types/typebox/build/type/action/non_nullable.d.mts +11 -0
- package/assets/types/typebox/build/type/action/omit.d.mts +14 -0
- package/assets/types/typebox/build/type/action/parameters.d.mts +11 -0
- package/assets/types/typebox/build/type/action/partial.d.mts +11 -0
- package/assets/types/typebox/build/type/action/pick.d.mts +14 -0
- package/assets/types/typebox/build/type/action/readonly_object.d.mts +16 -0
- package/assets/types/typebox/build/type/action/required.d.mts +11 -0
- package/assets/types/typebox/build/type/action/return_type.d.mts +11 -0
- package/assets/types/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/assets/types/typebox/build/type/action/uppercase.d.mts +11 -0
- package/assets/types/typebox/build/type/action/with.d.mts +11 -0
- package/assets/types/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/call/instantiate.d.mts +21 -0
- package/assets/types/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/assets/types/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
- package/assets/types/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/cyclic/candidates.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/cyclic/check.d.mts +21 -0
- package/assets/types/typebox/build/type/engine/cyclic/dependencies.d.mts +22 -0
- package/assets/types/typebox/build/type/engine/cyclic/extends.d.mts +28 -0
- package/assets/types/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/cyclic/instantiate.d.mts +17 -0
- package/assets/types/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/enum/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/evaluate/broaden.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/evaluate/composite.d.mts +34 -0
- package/assets/types/typebox/build/type/engine/evaluate/distribute.d.mts +28 -0
- package/assets/types/typebox/build/type/engine/evaluate/evaluate.d.mts +26 -0
- package/assets/types/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/exclude/operation.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/extract/operation.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/index.d.mts +31 -0
- package/assets/types/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/indexable/from_type.d.mts +19 -0
- package/assets/types/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
- package/assets/types/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
- package/assets/types/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/indexed/instantiate.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/instance_type/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/instantiate.d.mts +178 -0
- package/assets/types/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/interface/instantiate.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
- package/assets/types/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/keyof/instantiate.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
- package/assets/types/typebox/build/type/engine/mapped/mapped_variants.d.mts +17 -0
- package/assets/types/typebox/build/type/engine/module/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/module/instantiate.d.mts +19 -0
- package/assets/types/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
- package/assets/types/typebox/build/type/engine/object/from_object.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/object/from_type.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/object/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/parameters/instantiate.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/partial/from_type.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/partial/from_union.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/assets/types/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/assets/types/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/assets/types/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_type.d.mts +18 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/record/from_key.d.mts +24 -0
- package/assets/types/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/assets/types/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
- package/assets/types/typebox/build/type/engine/record/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/record/record_create.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/required/from_type.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/required/from_union.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/required/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/return_type/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/template_literal/create.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
- package/assets/types/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
- package/assets/types/typebox/build/type/engine/template_literal/index.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/template_literal/static.d.mts +18 -0
- package/assets/types/typebox/build/type/engine/this/expand_this.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/with/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/any.d.mts +9 -0
- package/assets/types/typebox/build/type/extends/array.d.mts +20 -0
- package/assets/types/typebox/build/type/extends/bigint.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/boolean.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/constructor.d.mts +10 -0
- package/assets/types/typebox/build/type/extends/dependent.d.mts +6 -0
- package/assets/types/typebox/build/type/extends/enum.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/extends.d.mts +13 -0
- package/assets/types/typebox/build/type/extends/extends_left.d.mts +53 -0
- package/assets/types/typebox/build/type/extends/extends_right.d.mts +27 -0
- package/assets/types/typebox/build/type/extends/function.d.mts +10 -0
- package/assets/types/typebox/build/type/extends/index.d.mts +2 -0
- package/assets/types/typebox/build/type/extends/inference.d.mts +34 -0
- package/assets/types/typebox/build/type/extends/integer.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/intersect.d.mts +6 -0
- package/assets/types/typebox/build/type/extends/literal.d.mts +18 -0
- package/assets/types/typebox/build/type/extends/never.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/null.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/number.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/object.d.mts +32 -0
- package/assets/types/typebox/build/type/extends/parameters.d.mts +15 -0
- package/assets/types/typebox/build/type/extends/record.d.mts +13 -0
- package/assets/types/typebox/build/type/extends/result.d.mts +24 -0
- package/assets/types/typebox/build/type/extends/return_type.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/string.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/symbol.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/template_literal.d.mts +6 -0
- package/assets/types/typebox/build/type/extends/tuple.d.mts +22 -0
- package/assets/types/typebox/build/type/extends/undefined.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/union.d.mts +11 -0
- package/assets/types/typebox/build/type/extends/unknown.d.mts +9 -0
- package/assets/types/typebox/build/type/extends/void.d.mts +7 -0
- package/assets/types/typebox/build/type/index.d.mts +5 -0
- package/assets/types/typebox/build/type/script/index.d.mts +1 -0
- package/assets/types/typebox/build/type/script/mapping.d.mts +353 -0
- package/assets/types/typebox/build/type/script/parser.d.mts +262 -0
- package/assets/types/typebox/build/type/script/script.d.mts +16 -0
- package/assets/types/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/assets/types/typebox/build/type/script/token/const.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/ident.d.mts +16 -0
- package/assets/types/typebox/build/type/script/token/index.d.mts +12 -0
- package/assets/types/typebox/build/type/script/token/integer.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/assets/types/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/assets/types/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/assets/types/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/assets/types/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/assets/types/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/assets/types/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/assets/types/typebox/build/type/script/token/number.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/rest.d.mts +4 -0
- package/assets/types/typebox/build/type/script/token/span.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/string.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/assets/types/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/assets/types/typebox/build/type/script/token/until.d.mts +7 -0
- package/assets/types/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/assets/types/typebox/build/type/types/_codec.d.mts +30 -0
- package/assets/types/typebox/build/type/types/_immutable.d.mts +9 -0
- package/assets/types/typebox/build/type/types/_optional.d.mts +9 -0
- package/assets/types/typebox/build/type/types/_readonly.d.mts +9 -0
- package/assets/types/typebox/build/type/types/_refine.d.mts +24 -0
- package/assets/types/typebox/build/type/types/any.d.mts +10 -0
- package/assets/types/typebox/build/type/types/array.d.mts +18 -0
- package/assets/types/typebox/build/type/types/bigint.d.mts +12 -0
- package/assets/types/typebox/build/type/types/boolean.d.mts +11 -0
- package/assets/types/typebox/build/type/types/call.d.mts +16 -0
- package/assets/types/typebox/build/type/types/constructor.d.mts +18 -0
- package/assets/types/typebox/build/type/types/cyclic.d.mts +16 -0
- package/assets/types/typebox/build/type/types/deferred.d.mts +13 -0
- package/assets/types/typebox/build/type/types/dependent.d.mts +17 -0
- package/assets/types/typebox/build/type/types/enum.d.mts +18 -0
- package/assets/types/typebox/build/type/types/function.d.mts +21 -0
- package/assets/types/typebox/build/type/types/generic.d.mts +13 -0
- package/assets/types/typebox/build/type/types/identifier.d.mts +11 -0
- package/assets/types/typebox/build/type/types/index.d.mts +45 -0
- package/assets/types/typebox/build/type/types/infer.d.mts +15 -0
- package/assets/types/typebox/build/type/types/integer.d.mts +12 -0
- package/assets/types/typebox/build/type/types/intersect.d.mts +15 -0
- package/assets/types/typebox/build/type/types/literal.d.mts +31 -0
- package/assets/types/typebox/build/type/types/never.d.mts +12 -0
- package/assets/types/typebox/build/type/types/null.d.mts +11 -0
- package/assets/types/typebox/build/type/types/number.d.mts +12 -0
- package/assets/types/typebox/build/type/types/object.d.mts +18 -0
- package/assets/types/typebox/build/type/types/parameter.d.mts +17 -0
- package/assets/types/typebox/build/type/types/properties.d.mts +43 -0
- package/assets/types/typebox/build/type/types/record.d.mts +52 -0
- package/assets/types/typebox/build/type/types/ref.d.mts +19 -0
- package/assets/types/typebox/build/type/types/rest.d.mts +11 -0
- package/assets/types/typebox/build/type/types/schema.d.mts +176 -0
- package/assets/types/typebox/build/type/types/static.d.mts +45 -0
- package/assets/types/typebox/build/type/types/string.d.mts +12 -0
- package/assets/types/typebox/build/type/types/symbol.d.mts +11 -0
- package/assets/types/typebox/build/type/types/template_literal.d.mts +28 -0
- package/assets/types/typebox/build/type/types/this.d.mts +14 -0
- package/assets/types/typebox/build/type/types/tuple.d.mts +38 -0
- package/assets/types/typebox/build/type/types/undefined.d.mts +11 -0
- package/assets/types/typebox/build/type/types/union.d.mts +15 -0
- package/assets/types/typebox/build/type/types/unknown.d.mts +10 -0
- package/assets/types/typebox/build/type/types/unsafe.d.mts +10 -0
- package/assets/types/typebox/build/type/types/void.d.mts +11 -0
- package/assets/types/typebox/build/typebox.d.mts +69 -0
- package/assets/types/typebox/build/value/assert/assert.d.mts +14 -0
- package/assets/types/typebox/build/value/assert/index.d.mts +1 -0
- package/assets/types/typebox/build/value/check/check.d.mts +5 -0
- package/assets/types/typebox/build/value/check/index.d.mts +1 -0
- package/assets/types/typebox/build/value/clean/additional.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/clean.d.mts +15 -0
- package/assets/types/typebox/build/value/clean/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/index.d.mts +1 -0
- package/assets/types/typebox/build/value/clone/clone.d.mts +5 -0
- package/assets/types/typebox/build/value/clone/index.d.mts +1 -0
- package/assets/types/typebox/build/value/codec/callback.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/decode.d.mts +12 -0
- package/assets/types/typebox/build/value/codec/encode.d.mts +12 -0
- package/assets/types/typebox/build/value/codec/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/has.d.mts +5 -0
- package/assets/types/typebox/build/value/codec/index.d.mts +3 -0
- package/assets/types/typebox/build/value/convert/convert.d.mts +13 -0
- package/assets/types/typebox/build/value/convert/from_additional.d.mts +6 -0
- package/assets/types/typebox/build/value/convert/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_bigint.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_boolean.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_enum.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_integer.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_null.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_number.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_string.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_template_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_void.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/index.d.mts +1 -0
- package/assets/types/typebox/build/value/convert/try/index.d.mts +1 -0
- package/assets/types/typebox/build/value/convert/try/try.d.mts +8 -0
- package/assets/types/typebox/build/value/convert/try/try_array.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_null.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_number.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_result.d.mts +8 -0
- package/assets/types/typebox/build/value/convert/try/try_string.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/create/create.d.mts +5 -0
- package/assets/types/typebox/build/value/create/error.d.mts +5 -0
- package/assets/types/typebox/build/value/create/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_bigint.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_boolean.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_constructor.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_default.d.mts +3 -0
- package/assets/types/typebox/build/value/create/from_enum.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_function.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_integer.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_never.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_null.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_number.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_string.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_symbol.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_template_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_void.d.mts +2 -0
- package/assets/types/typebox/build/value/create/index.d.mts +2 -0
- package/assets/types/typebox/build/value/default/default.d.mts +13 -0
- package/assets/types/typebox/build/value/default/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_default.d.mts +3 -0
- package/assets/types/typebox/build/value/default/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/default/index.d.mts +1 -0
- package/assets/types/typebox/build/value/delta/diff.d.mts +10 -0
- package/assets/types/typebox/build/value/delta/edit.d.mts +24 -0
- package/assets/types/typebox/build/value/delta/index.d.mts +3 -0
- package/assets/types/typebox/build/value/delta/patch.d.mts +8 -0
- package/assets/types/typebox/build/value/equal/equal.d.mts +2 -0
- package/assets/types/typebox/build/value/equal/index.d.mts +1 -0
- package/assets/types/typebox/build/value/errors/errors.d.mts +16 -0
- package/assets/types/typebox/build/value/errors/index.d.mts +1 -0
- package/assets/types/typebox/build/value/hash/hash.d.mts +6 -0
- package/assets/types/typebox/build/value/hash/index.d.mts +1 -0
- package/assets/types/typebox/build/value/index.d.mts +20 -0
- package/assets/types/typebox/build/value/parse/index.d.mts +1 -0
- package/assets/types/typebox/build/value/parse/parse.d.mts +11 -0
- package/assets/types/typebox/build/value/pipeline/index.d.mts +1 -0
- package/assets/types/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/assets/types/typebox/build/value/pointer/index.d.mts +1 -0
- package/assets/types/typebox/build/value/repair/error.d.mts +7 -0
- package/assets/types/typebox/build/value/repair/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_enum.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_template_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_unknown.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/index.d.mts +1 -0
- package/assets/types/typebox/build/value/repair/repair.d.mts +17 -0
- package/assets/types/typebox/build/value/shared/index.d.mts +3 -0
- package/assets/types/typebox/build/value/shared/optional_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/shared/union_priority_sort.d.mts +7 -0
- package/assets/types/typebox/build/value/shared/union_score_select.d.mts +3 -0
- package/assets/types/typebox/build/value/value.d.mts +15 -0
- package/assets/types/typebox/package.json +87 -0
- package/package.json +28 -0
- package/src/alt-screen.ts +46 -0
- package/src/argv.ts +147 -0
- package/src/cli-tree-host.ts +81 -0
- package/src/cli.ts +155 -0
- package/src/fatal-signal.ts +45 -0
- package/src/final-frame.ts +71 -0
- package/src/interactive-run.ts +231 -0
- package/src/presenter.ts +31 -0
- package/src/render.ts +96 -0
- package/src/run-invocation.ts +48 -0
- package/src/runtime-alias.ts +64 -0
- package/src/setup-workspace.ts +91 -0
- package/src/tree-app.ts +178 -0
- package/src/tui-test-support.ts +96 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildDependentSchemas(stack: Stack, context: BuildContext, schema: Schema.XDependentSchemas, value: string): string;
|
|
5
|
+
export declare function CheckDependentSchemas(stack: Stack, context: CheckContext, schema: Schema.XDependentSchemas, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorDependentSchemas(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XDependentSchemas, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildDynamicRef(stack: Stack, context: BuildContext, schema: Schema.XDynamicRef, value: string): string;
|
|
5
|
+
export declare function CheckDynamicRef(stack: Stack, context: CheckContext, schema: Schema.XDynamicRef, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorDynamicRef(stack: Stack, context: ErrorContext, _schemaPath: string, instancePath: string, schema: Schema.XDynamicRef, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildEnum(_stack: Stack, _context: BuildContext, schema: Schema.XEnum, value: string): string;
|
|
5
|
+
export declare function CheckEnum(_stack: Stack, _context: CheckContext, schema: Schema.XEnum, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorEnum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XEnum, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildExclusiveMaximum(_stack: Stack, _context: BuildContext, schema: Schema.XExclusiveMaximum, value: string): string;
|
|
5
|
+
export declare function CheckExclusiveMaximum(_stack: Stack, _context: CheckContext, schema: Schema.XExclusiveMaximum, value: number | bigint): boolean;
|
|
6
|
+
export declare function ErrorExclusiveMaximum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XExclusiveMaximum, value: number | bigint): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildExclusiveMinimum(_stack: Stack, _context: BuildContext, schema: Schema.XExclusiveMinimum, value: string): string;
|
|
5
|
+
export declare function CheckExclusiveMinimum(_stack: Stack, _context: CheckContext, schema: Schema.XExclusiveMinimum, value: number | bigint): boolean;
|
|
6
|
+
export declare function ErrorExclusiveMinimum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XExclusiveMinimum, value: number | bigint): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildFormat(_stack: Stack, _context: BuildContext, schema: Schema.XFormat, value: string): string;
|
|
5
|
+
export declare function CheckFormat(_stack: Stack, _context: CheckContext, schema: Schema.XFormat, value: string): boolean;
|
|
6
|
+
export declare function ErrorFormat(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XFormat, value: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildIf(stack: Stack, context: BuildContext, schema: Schema.XIf, value: string): string;
|
|
5
|
+
export declare function CheckIf(stack: Stack, context: CheckContext, schema: Schema.XIf, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorIf(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XIf, value: unknown): boolean;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export * from './_context.mjs';
|
|
2
|
+
export * from './_externals.mjs';
|
|
3
|
+
export * from './_functions.mjs';
|
|
4
|
+
export * from './_reducer.mjs';
|
|
5
|
+
export * from './_refine.mjs';
|
|
6
|
+
export * from './_stack.mjs';
|
|
7
|
+
export * from './additionalItems.mjs';
|
|
8
|
+
export * from './additionalProperties.mjs';
|
|
9
|
+
export * from './allOf.mjs';
|
|
10
|
+
export * from './anyOf.mjs';
|
|
11
|
+
export * from './boolean.mjs';
|
|
12
|
+
export * from './const.mjs';
|
|
13
|
+
export * from './contains.mjs';
|
|
14
|
+
export * from './dependencies.mjs';
|
|
15
|
+
export * from './dependentRequired.mjs';
|
|
16
|
+
export * from './dependentSchemas.mjs';
|
|
17
|
+
export * from './enum.mjs';
|
|
18
|
+
export * from './exclusiveMaximum.mjs';
|
|
19
|
+
export * from './exclusiveMinimum.mjs';
|
|
20
|
+
export * from './format.mjs';
|
|
21
|
+
export * from './if.mjs';
|
|
22
|
+
export * from './items.mjs';
|
|
23
|
+
export * from './maxContains.mjs';
|
|
24
|
+
export * from './maxItems.mjs';
|
|
25
|
+
export * from './maxLength.mjs';
|
|
26
|
+
export * from './maxProperties.mjs';
|
|
27
|
+
export * from './maximum.mjs';
|
|
28
|
+
export * from './minContains.mjs';
|
|
29
|
+
export * from './minItems.mjs';
|
|
30
|
+
export * from './minLength.mjs';
|
|
31
|
+
export * from './minProperties.mjs';
|
|
32
|
+
export * from './minimum.mjs';
|
|
33
|
+
export * from './multipleOf.mjs';
|
|
34
|
+
export * from './not.mjs';
|
|
35
|
+
export * from './oneOf.mjs';
|
|
36
|
+
export * from './pattern.mjs';
|
|
37
|
+
export * from './patternProperties.mjs';
|
|
38
|
+
export * from './prefixItems.mjs';
|
|
39
|
+
export * from './properties.mjs';
|
|
40
|
+
export * from './propertyNames.mjs';
|
|
41
|
+
export * from './recursiveRef.mjs';
|
|
42
|
+
export * from './ref.mjs';
|
|
43
|
+
export * from './required.mjs';
|
|
44
|
+
export * from './schema.mjs';
|
|
45
|
+
export * from './type.mjs';
|
|
46
|
+
export * from './unevaluatedItems.mjs';
|
|
47
|
+
export * from './unevaluatedProperties.mjs';
|
|
48
|
+
export * from './uniqueItems.mjs';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildItems(stack: Stack, context: BuildContext, schema: Schema.XItems, value: string): string;
|
|
5
|
+
export declare function CheckItems(stack: Stack, context: CheckContext, schema: Schema.XItems, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorItems(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XItems, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMaxContains(stack: Stack, context: BuildContext, schema: Schema.XMaxContains, value: string): string;
|
|
5
|
+
export declare function CheckMaxContains(stack: Stack, context: CheckContext, schema: Schema.XMaxContains, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorMaxContains(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxContains, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMaxItems(_stack: Stack, _context: BuildContext, schema: Schema.XMaxItems, value: string): string;
|
|
5
|
+
export declare function CheckMaxItems(_stack: Stack, _context: CheckContext, schema: Schema.XMaxItems, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorMaxItems(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxItems, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMaxLength(_stack: Stack, _context: BuildContext, schema: Schema.XMaxLength, value: string): string;
|
|
5
|
+
export declare function CheckMaxLength(_stack: Stack, _context: CheckContext, schema: Schema.XMaxLength, value: string): boolean;
|
|
6
|
+
export declare function ErrorMaxLength(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxLength, value: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMaxProperties(_stack: Stack, _context: BuildContext, schema: Schema.XMaxProperties, value: string): string;
|
|
5
|
+
export declare function CheckMaxProperties(_stack: Stack, _context: CheckContext, schema: Schema.XMaxProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorMaxProperties(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMaximum(_stack: Stack, _context: BuildContext, schema: Schema.XMaximum, value: string): string;
|
|
5
|
+
export declare function CheckMaximum(_stack: Stack, _context: CheckContext, schema: Schema.XMaximum, value: number | bigint): boolean;
|
|
6
|
+
export declare function ErrorMaximum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaximum, value: number | bigint): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMinContains(stack: Stack, context: BuildContext, schema: Schema.XMinContains, value: string): string;
|
|
5
|
+
export declare function CheckMinContains(stack: Stack, context: CheckContext, schema: Schema.XMinContains, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorMinContains(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMinContains, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Stack } from './_stack.mjs';
|
|
2
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
3
|
+
import * as Schema from '../types/index.mjs';
|
|
4
|
+
export declare function BuildMinItems(_stack: Stack, _context: BuildContext, schema: Schema.XMinItems, value: string): string;
|
|
5
|
+
export declare function CheckMinItems(_stack: Stack, _context: CheckContext, schema: Schema.XMinItems, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorMinItems(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMinItems, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMinLength(_stack: Stack, _context: BuildContext, schema: Schema.XMinLength, value: string): string;
|
|
5
|
+
export declare function CheckMinLength(_stack: Stack, _context: CheckContext, schema: Schema.XMinLength, value: string): boolean;
|
|
6
|
+
export declare function ErrorMinLength(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMinLength, value: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMinProperties(_stack: Stack, _context: BuildContext, schema: Schema.XMinProperties, value: string): string;
|
|
5
|
+
export declare function CheckMinProperties(_stack: Stack, _context: CheckContext, schema: Schema.XMinProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorMinProperties(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMinProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMinimum(_stack: Stack, _context: BuildContext, schema: Schema.XMinimum, value: string): string;
|
|
5
|
+
export declare function CheckMinimum(_stack: Stack, _context: CheckContext, schema: Schema.XMinimum, value: number | bigint): boolean;
|
|
6
|
+
export declare function ErrorMinimum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMinimum, value: number | bigint): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildMultipleOf(_stack: Stack, _context: BuildContext, schema: Schema.XMultipleOf, value: string): string;
|
|
5
|
+
export declare function CheckMultipleOf(_stack: Stack, _context: CheckContext, schema: Schema.XMultipleOf, value: number | bigint): boolean;
|
|
6
|
+
export declare function ErrorMultipleOf(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMultipleOf, value: number | bigint): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildNot(stack: Stack, context: BuildContext, schema: Schema.XNot, value: string): string;
|
|
5
|
+
export declare function CheckNot(stack: Stack, context: CheckContext, schema: Schema.XNot, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorNot(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XNot, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildOneOf(stack: Stack, context: BuildContext, schema: Schema.XOneOf, value: string): string;
|
|
5
|
+
export declare function CheckOneOf(stack: Stack, context: CheckContext, schema: Schema.XOneOf, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorOneOf(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XOneOf, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildPattern(_stack: Stack, _context: BuildContext, schema: Schema.XPattern, value: string): string;
|
|
5
|
+
export declare function CheckPattern(_stack: Stack, _context: CheckContext, schema: Schema.XPattern, value: string): boolean;
|
|
6
|
+
export declare function ErrorPattern(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XPattern, value: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildPatternProperties(stack: Stack, context: BuildContext, schema: Schema.XPatternProperties, value: string): string;
|
|
5
|
+
export declare function CheckPatternProperties(stack: Stack, context: CheckContext, schema: Schema.XPatternProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorPatternProperties(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XPatternProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildPrefixItems(stack: Stack, context: BuildContext, schema: Schema.XPrefixItems, value: string): string;
|
|
5
|
+
export declare function CheckPrefixItems(stack: Stack, context: CheckContext, schema: Schema.XPrefixItems, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorPrefixItems(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XPrefixItems, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildProperties(stack: Stack, context: BuildContext, schema: Schema.XProperties, value: string): string;
|
|
5
|
+
export declare function CheckProperties(stack: Stack, context: CheckContext, schema: Schema.XProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorProperties(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildPropertyNames(stack: Stack, context: BuildContext, schema: Schema.XPropertyNames, value: string): string;
|
|
5
|
+
export declare function CheckPropertyNames(stack: Stack, context: CheckContext, schema: Schema.XPropertyNames, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorPropertyNames(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XPropertyNames, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildRecursiveRef(stack: Stack, context: BuildContext, schema: Schema.XRecursiveRef, value: string): string;
|
|
5
|
+
export declare function CheckRecursiveRef(stack: Stack, context: CheckContext, schema: Schema.XRecursiveRef, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorRecursiveRef(stack: Stack, context: ErrorContext, _schemaPath: string, instancePath: string, schema: Schema.XRecursiveRef, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildRef(stack: Stack, context: BuildContext, schema: Schema.XRef, value: string): string;
|
|
5
|
+
export declare function CheckRef(stack: Stack, context: CheckContext, schema: Schema.XRef, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorRef(stack: Stack, context: ErrorContext, _schemaPath: string, instancePath: string, schema: Schema.XRef, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildRequired(_stack: Stack, _context: BuildContext, schema: Schema.XRequired, value: string): string;
|
|
5
|
+
export declare function CheckRequired(_stack: Stack, _context: CheckContext, schema: Schema.XRequired, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorRequired(_stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XRequired, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildSchemaPushStack(stack: Stack, context: BuildContext, schema: Schema.XSchema, value: string): string;
|
|
5
|
+
export declare function BuildSchema(stack: Stack, context: BuildContext, schema: Schema.XSchema, value: string): string;
|
|
6
|
+
export declare function CheckSchemaPushStack(stack: Stack, context: CheckContext, schema: Schema.XSchema, value: unknown): boolean;
|
|
7
|
+
export declare function CheckSchema(stack: Stack, context: CheckContext, schema: Schema.XSchema, value: unknown): boolean;
|
|
8
|
+
export declare function ErrorSchemaPushStack(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XSchema, value: unknown): boolean;
|
|
9
|
+
export declare function ErrorSchema(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XSchema, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildType(stack: Stack, context: BuildContext, schema: Schema.XType, value: string): string;
|
|
5
|
+
export declare function CheckType(stack: Stack, context: CheckContext, schema: Schema.XType, value: unknown): boolean;
|
|
6
|
+
export declare function ErrorType(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XType, value: unknown): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildUnevaluatedItems(stack: Stack, context: BuildContext, schema: Schema.XUnevaluatedItems, value: string): string;
|
|
5
|
+
export declare function CheckUnevaluatedItems(stack: Stack, context: CheckContext, schema: Schema.XUnevaluatedItems, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorUnevaluatedItems(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XUnevaluatedItems, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildUnevaluatedProperties(stack: Stack, context: BuildContext, schema: Schema.XUnevaluatedProperties, value: string): string;
|
|
5
|
+
export declare function CheckUnevaluatedProperties(stack: Stack, context: CheckContext, schema: Schema.XUnevaluatedProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
6
|
+
export declare function ErrorUnevaluatedProperties(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XUnevaluatedProperties, value: Record<PropertyKey, unknown>): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
import { Stack } from './_stack.mjs';
|
|
3
|
+
import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
|
|
4
|
+
export declare function BuildUniqueItems(_stack: Stack, _context: BuildContext, schema: Schema.XUniqueItems, value: string): string;
|
|
5
|
+
export declare function CheckUniqueItems(_stack: Stack, _context: CheckContext, schema: Schema.XUniqueItems, value: unknown[]): boolean;
|
|
6
|
+
export declare function ErrorUniqueItems(_stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XUniqueItems, value: unknown[]): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TLocalizedValidationError } from '../error/index.mjs';
|
|
2
|
+
import * as Schema from './types/index.mjs';
|
|
3
|
+
/** Checks a value and returns validation errors */
|
|
4
|
+
export declare function Errors(schema: Schema.XSchema, value: unknown): [boolean, TLocalizedValidationError[]];
|
|
5
|
+
/** Checks a value and returns validation errors */
|
|
6
|
+
export declare function Errors(context: Record<PropertyKey, Schema.XSchema>, schema: Schema.XSchema, value: unknown): [boolean, TLocalizedValidationError[]];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TLocalizedValidationError } from '../error/index.mjs';
|
|
2
|
+
import { type Static } from '../type/types/static.mjs';
|
|
3
|
+
import * as Schema from './types/index.mjs';
|
|
4
|
+
export declare class ParseError {
|
|
5
|
+
schema: Schema.XSchema;
|
|
6
|
+
value: unknown;
|
|
7
|
+
errors: TLocalizedValidationError[];
|
|
8
|
+
constructor(schema: Schema.XSchema, value: unknown, errors: TLocalizedValidationError[]);
|
|
9
|
+
}
|
|
10
|
+
/** Parses a value against the provided schema */
|
|
11
|
+
export declare function Parse<const Schema extends Schema.XSchema>(schema: Schema, value: unknown): Static<Schema>;
|
|
12
|
+
/** Parses a value against the provided schema */
|
|
13
|
+
export declare function Parse<const Schema extends Schema.XSchema>(context: Record<PropertyKey, Schema.XSchema>, schema: Schema, value: unknown): Static<Schema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Returns an array of path indices for the given pointer */
|
|
2
|
+
export declare function Indices(pointer: string): string[];
|
|
3
|
+
/** Returns true if a value exists at the current pointer */
|
|
4
|
+
export declare function Has(value: unknown, pointer: string): unknown;
|
|
5
|
+
/** Gets a value at the pointer, or undefined if not exists */
|
|
6
|
+
export declare function Get(value: unknown, pointer: string): unknown;
|
|
7
|
+
/** Sets a value at the given pointer. May throw if the target value is not indexable */
|
|
8
|
+
export declare function Set(value: unknown, pointer: string, next: unknown): unknown;
|
|
9
|
+
/** Deletes the value at the given pointer. May throw if the target value is not indexable */
|
|
10
|
+
export declare function Delete(value: unknown, pointer: string): unknown;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type TEscape0<Index extends string> = Index extends `${infer Left}~0${infer Right}` ? `${Left}~${TEscape<Right>}` : Index;
|
|
2
|
+
type TEscape1<Index extends string> = Index extends `${infer Left}~1${infer Right}` ? `${Left}/${TEscape<Right>}` : Index;
|
|
3
|
+
type TEscape<Index extends string, Escaped0 extends string = TEscape0<Index>, Escaped1 extends string = TEscape1<Escaped0>> = Escaped1;
|
|
4
|
+
type IndicesReduce<Pointer extends string, Result extends string[] = []> = (Pointer extends `${infer Left extends string}/${infer Right extends string}` ? Left extends '' ? IndicesReduce<Right, Result> : IndicesReduce<Right, [...Result, TEscape<Left>]> : [...Result, TEscape<Pointer>]);
|
|
5
|
+
type TIndices<Pointer extends string, Result extends string[] = Pointer extends '' ? [] : IndicesReduce<Pointer>> = Result;
|
|
6
|
+
type TResolve<Value extends unknown, Indices extends string[]> = (Indices extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Value ? TResolve<Value[Left], Right> : undefined : Value);
|
|
7
|
+
/** Type Level RFC 6901 Json Pointer Resolver */
|
|
8
|
+
export type XPointerGet<Value extends unknown, Pointer extends string, Indices extends string[] = TIndices<Pointer>, Result extends unknown = TResolve<Value, Indices>> = Result;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Resolve from './resolve.mjs';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as Schema from '../types/index.mjs';
|
|
2
|
+
export declare function Ref(schema: Schema.XSchemaObject, ref: string): Schema.XSchema | undefined;
|
|
3
|
+
export declare function DynamicRef(root: Schema.XSchemaObject, base: Schema.XSchemaObject, dynamicRef: Schema.XDynamicRef, dynamicAnchors: Schema.XDynamicAnchor[]): Schema.XSchema | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ref.mjs';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './engine/index.mjs';
|
|
2
|
+
export * from './pointer/index.mjs';
|
|
3
|
+
export * from './resolve/index.mjs';
|
|
4
|
+
export * from './static/index.mjs';
|
|
5
|
+
export * from './types/index.mjs';
|
|
6
|
+
export * from './build.mjs';
|
|
7
|
+
export * from './compile.mjs';
|
|
8
|
+
export * from './check.mjs';
|
|
9
|
+
export * from './parse.mjs';
|
|
10
|
+
export * from './errors.mjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type XCanonicalTuple<Value extends readonly unknown[]> = (Value extends [infer Left, ...infer Right extends unknown[]] ? [XCanonical<Left>, ...XCanonicalTuple<Right>] : []);
|
|
2
|
+
type XCanonicalArray<Value extends unknown, Result extends unknown[] = XCanonical<Value>[]> = Result;
|
|
3
|
+
type XCanonicalObject<Value extends object, Result extends Record<PropertyKey, unknown> = {
|
|
4
|
+
-readonly [Key in keyof Value]: XCanonical<Value[Key]>;
|
|
5
|
+
}> = Result;
|
|
6
|
+
export type XCanonical<Schema extends unknown> = (Schema extends readonly [...infer Schemas extends unknown[]] ? XCanonicalTuple<Schemas> : Schema extends readonly (infer Schema)[] ? XCanonicalArray<Schema> : Schema extends object ? XCanonicalObject<Schema> : Schema);
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type XBuildTuple<Size extends number, Tuple extends unknown[] = []> = (Tuple['length'] extends Size ? Tuple : XBuildTuple<Size, [...Tuple, unknown]>);
|
|
2
|
+
export type XLessThan<Left extends number, Right extends number> = Left extends Right ? false : XBuildTuple<Left> extends [...XBuildTuple<Right>, ...infer _Rest] ? false : true;
|
|
3
|
+
export type XLessThanEqual<Left extends number, Right extends number> = (Left extends Right ? true : XLessThan<Left, Right>);
|
|
4
|
+
export type XGreaterThan<Left extends number, Right extends number> = (XLessThan<Right, Left>);
|
|
5
|
+
export type XGreaterThanEqual<Left extends number, Right extends number> = (XLessThanEqual<Right, Left>);
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XMinItems } from '../types/minItems.mjs';
|
|
3
|
+
import type { XMaxItems } from '../types/maxItems.mjs';
|
|
4
|
+
import type { XAdditionalItems } from '../types/additionalItems.mjs';
|
|
5
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
6
|
+
import type { XLessThan } from './_comparer.mjs';
|
|
7
|
+
type XWithElements<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown[] = []> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XWithElements<Stack, Root, Right, [...Result, XStaticSchema<Stack, Root, Left>]> : Result);
|
|
8
|
+
type XWithMaxItemsRemap<Elements extends unknown[], MaxItems extends number, Result extends unknown[] = []> = (Elements extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XLessThan<Result['length'], MaxItems> extends true ? XWithMaxItemsRemap<Right, MaxItems, [...Result, Left]> : Result : Result);
|
|
9
|
+
type XWithMaxItems<Schema extends XSchema, Elements extends unknown[], Result extends unknown[] = Schema extends XMaxItems<infer MaxItems extends number> ? XWithMaxItemsRemap<Elements, MaxItems> : Elements> = Result;
|
|
10
|
+
type XNeedsAdditionalItems<Schema extends XSchema, Elements extends unknown[], Result extends boolean = (Schema extends XMaxItems<infer MaxItems extends number> ? XLessThan<Elements['length'], MaxItems> : true)> = Result;
|
|
11
|
+
type XWithMinItemsRemap<Elements extends unknown[], MinItems extends number, Result extends unknown[] = []> = (Elements extends [infer Left, ...infer Right] ? XLessThan<Result['length'], MinItems> extends true ? XWithMinItemsRemap<Right, MinItems, [...Result, Left]> : XWithMinItemsRemap<Right, MinItems, [...Result, Left?]> : Result);
|
|
12
|
+
type XWithMinItems<Schema extends XSchema, Values extends unknown[], MinItems extends number = Schema extends XMinItems<infer MinItems extends number> ? MinItems : 0, Result extends unknown[] = XWithMinItemsRemap<Values, MinItems>> = Result;
|
|
13
|
+
type XWithAdditionalItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, Elements extends unknown[], Result extends unknown[] = Schema extends XAdditionalItems<infer Schema extends XSchema> ? (Schema extends true ? [...Elements, ...unknown[]] : Schema extends false ? [...Elements] : [
|
|
14
|
+
...Elements,
|
|
15
|
+
...XStaticSchema<Stack, Root, Schema>[]
|
|
16
|
+
]) : [...Elements, ...unknown[]]> = Result;
|
|
17
|
+
export type XStaticElements<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], WithElements extends unknown[] = XWithElements<Stack, Root, PrefixItems>, WithMaxItems extends unknown[] = XWithMaxItems<Schema, WithElements>, NeedsAdditional extends boolean = XNeedsAdditionalItems<Schema, WithMaxItems>, WithMinItems extends unknown[] = XWithMinItems<Schema, WithMaxItems>, WithAdditionalItems extends unknown[] = NeedsAdditional extends true ? XWithAdditionalItems<Stack, Root, Schema, WithMinItems> : WithMinItems> = WithAdditionalItems;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
export type XStaticAdditionalProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
} : Schema extends false ? {} : {
|
|
6
|
+
[key: string]: XStaticSchema<Stack, Root, Schema>;
|
|
7
|
+
})> = Result;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
export type XStaticAllOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = unknown> = (Schemas extends readonly [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticAllOf<Stack, Root, Right, Result & XStaticSchema<Stack, Root, Left>> : Result);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
export type XStaticAnyOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = never> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticAnyOf<Stack, Root, Right, XStaticSchema<Stack, Root, Left> | Result> : Result);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type XStaticConst<Value extends unknown> = Value;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type XStaticEnum<Values extends unknown[], Result extends unknown = never> = (Values extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XStaticEnum<Right, Left | Result> : Result);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
import type { XIf } from '../types/if.mjs';
|
|
4
|
+
import type { XElse } from '../types/else.mjs';
|
|
5
|
+
import type { XThen } from '../types/then.mjs';
|
|
6
|
+
export type XStaticIf<Stack extends string[], Root extends XSchema, Schema extends XIf, IfSchema extends XSchema, If extends unknown = XStaticSchema<Stack, Root, IfSchema>, Then extends unknown = Schema extends XThen<infer ThenSchema extends XSchema> ? XStaticSchema<Stack, Root, ThenSchema> : never, Else extends unknown = Schema extends XElse<infer ElseSchema extends XSchema> ? XStaticSchema<Stack, Root, ElseSchema> : never, IsThen extends boolean = Schema extends XThen ? true : false, IsElse extends boolean = Schema extends XElse ? true : false, Result extends unknown = ([
|
|
7
|
+
IsThen,
|
|
8
|
+
IsElse
|
|
9
|
+
] extends [true, true] ? (If & Then) | Exclude<Else, If> : [
|
|
10
|
+
IsThen,
|
|
11
|
+
IsElse
|
|
12
|
+
] extends [true, false] ? (If & Then) : [
|
|
13
|
+
IsThen,
|
|
14
|
+
IsElse
|
|
15
|
+
] extends [false, true] ? Exclude<Else, If> : unknown)> = Result;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { XStatic } from './static.mjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
import type { XStaticElements } from './_elements.mjs';
|
|
4
|
+
type XFromSized<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[]> = (XStaticElements<Stack, Root, Schema, Items>);
|
|
5
|
+
type XFromUnsized<Stack extends string[], Root extends XSchema, Schema extends XSchema> = (XStaticSchema<Stack, Root, Schema>[]);
|
|
6
|
+
export type XStaticItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[] | XSchema, Result extends unknown = (Items extends XSchema[] ? XFromSized<Stack, Root, Schema, [...Items]> : Items extends XSchema ? XFromUnsized<Stack, Root, Items> : never)> = Result;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
export type XStaticOneOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = never> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticOneOf<Stack, Root, Right, XStaticSchema<Stack, Root, Left> | Result> : Result);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
3
|
+
export type XStaticPatternProperties<Stack extends string[], Root extends XSchema, Properties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>, InferredProperties extends Record<PropertyKey, unknown> = {
|
|
4
|
+
[Key in keyof Properties]: XStaticSchema<Stack, Root, Properties[Key]>;
|
|
5
|
+
}, EvaluatedProperties extends unknown = {
|
|
6
|
+
[key: string]: InferredProperties[keyof InferredProperties];
|
|
7
|
+
}> = EvaluatedProperties;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XStaticElements } from './_elements.mjs';
|
|
3
|
+
export type XStaticPrefixItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], Result extends unknown[] = XStaticElements<Stack, Root, Schema, PrefixItems>> = Result;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XRequired } from '../types/required.mjs';
|
|
3
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
4
|
+
type XIsReadonly<Schema extends XSchema> = (Schema extends {
|
|
5
|
+
readOnly: true;
|
|
6
|
+
} ? true : Schema extends {
|
|
7
|
+
'~readonly': true;
|
|
8
|
+
} ? true : false);
|
|
9
|
+
type XRequiredArray<Schema extends XSchema, Result extends PropertyKey[] = Schema extends XRequired<infer Keys extends string[]> ? Keys : []> = Result;
|
|
10
|
+
type XReadonlyKeys<Properties extends Record<PropertyKey, XSchema>, ReadonlyProperties extends Record<PropertyKey, unknown> = {
|
|
11
|
+
[Key in keyof Properties as XIsReadonly<Properties[Key]> extends true ? Key : never]: unknown;
|
|
12
|
+
}, Result extends PropertyKey = keyof ReadonlyProperties> = Result;
|
|
13
|
+
type XRequiredKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = RequiredArray extends [] ? never : Extract<keyof Properties, RequiredArray[number]>> = Result;
|
|
14
|
+
type XUnknownKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = Exclude<RequiredArray[number], keyof Properties>> = Result;
|
|
15
|
+
type XOptionalKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = RequiredArray extends [] ? keyof Properties : Exclude<keyof Properties, RequiredArray[number]>> = Result;
|
|
16
|
+
type XReadonlyOptionalProperties<Stack extends string[], Root extends XSchema, OptionalKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = {
|
|
17
|
+
readonly [Key in Extract<keyof Properties, OptionalKeys>]?: XStaticSchema<Stack, Root, Properties[Key]>;
|
|
18
|
+
};
|
|
19
|
+
type XReadonlyRequiredProperties<Stack extends string[], Root extends XSchema, RequiredKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = {
|
|
20
|
+
readonly [Key in Extract<keyof Properties, RequiredKeys>]: XStaticSchema<Stack, Root, Properties[Key]>;
|
|
21
|
+
};
|
|
22
|
+
type XOptionalProperties<Stack extends string[], Root extends XSchema, OptionalKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = {
|
|
23
|
+
[Key in Extract<keyof Properties, OptionalKeys>]?: XStaticSchema<Stack, Root, Properties[Key]>;
|
|
24
|
+
};
|
|
25
|
+
type XRequiredProperties<Stack extends string[], Root extends XSchema, RequiredKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = {
|
|
26
|
+
[Key in Extract<keyof Properties, RequiredKeys>]: XStaticSchema<Stack, Root, Properties[Key]>;
|
|
27
|
+
};
|
|
28
|
+
type XUnknownProperties<UnknownKeys extends PropertyKey> = {
|
|
29
|
+
[Key in UnknownKeys]: unknown;
|
|
30
|
+
};
|
|
31
|
+
export type XStaticProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[] = XRequiredArray<Schema>, ReadonlyKeys extends PropertyKey = XReadonlyKeys<Properties>, OptionalKeys extends PropertyKey = XOptionalKeys<Properties, RequiredArray>, RequiredKeys extends PropertyKey = XRequiredKeys<Properties, RequiredArray>, UnknownKeys extends PropertyKey = XUnknownKeys<Properties, RequiredArray>, ReadonlyOptionalProperties extends Record<PropertyKey, unknown> = XReadonlyOptionalProperties<Stack, Root, Extract<OptionalKeys, ReadonlyKeys>, Properties>, ReadonlyRequiredProperties extends Record<PropertyKey, unknown> = XReadonlyRequiredProperties<Stack, Root, Extract<RequiredKeys, ReadonlyKeys>, Properties>, OptionalProperties extends Record<PropertyKey, unknown> = XOptionalProperties<Stack, Root, Exclude<OptionalKeys, ReadonlyKeys>, Properties>, RequiredProperties extends Record<PropertyKey, unknown> = XRequiredProperties<Stack, Root, Exclude<RequiredKeys, ReadonlyKeys>, Properties>, UnknownProperties extends Record<PropertyKey, unknown> = XUnknownProperties<UnknownKeys>, Result extends Record<PropertyKey, unknown> = (ReadonlyOptionalProperties & ReadonlyRequiredProperties & OptionalProperties & RequiredProperties & UnknownProperties)> = Result;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XPointerGet } from '../pointer/pointer_get.mjs';
|
|
3
|
+
import type { XStaticSchema } from './schema.mjs';
|
|
4
|
+
type XCyclicCheck<Stack extends unknown[], MaxLength extends number, Buffer extends unknown[] = []> = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : XCyclicCheck<Right, MaxLength, [...Buffer, Left]> : true);
|
|
5
|
+
type XCyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? XCyclicCheck<Stack, 2> : true);
|
|
6
|
+
type XNormal<Pointer extends string, Result extends string = (Pointer extends `#${infer Rest extends string}` ? Rest : Pointer)> = Result;
|
|
7
|
+
export type XStaticRef<Stack extends string[], Root extends XSchema, Ref extends string, Normal extends string = XNormal<Ref>, Target extends unknown = XPointerGet<Root, Normal>, Schema extends XSchema = Target extends XSchema ? Target : {}, Result extends unknown = (XCyclicGuard<Stack, Ref> extends true ? XStaticSchema<[...Stack, Ref], Root, Schema> : any)> = Result;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { XSchema } from '../types/schema.mjs';
|
|
2
|
+
import type { XProperties } from '../types/properties.mjs';
|
|
3
|
+
export type XStaticRequired<_Stack extends string[], _Root extends XSchema, Schema extends XSchema, Keys extends string[], Result extends Record<PropertyKey, unknown> = Schema extends XProperties ? {} : Record<Keys[number], unknown>> = Result;
|