@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,43 @@
|
|
|
1
|
+
import { type StaticType, type StaticDirection, type StaticEvaluate } from './static.mjs';
|
|
2
|
+
import { type TSchema } from './schema.mjs';
|
|
3
|
+
import { type TOptional } from './_optional.mjs';
|
|
4
|
+
import { type TReadonly } from './_readonly.mjs';
|
|
5
|
+
import { type TUnionToTuple } from '../engine/helpers/union.mjs';
|
|
6
|
+
type ReadonlyOptionalKeys<Properties extends TProperties, Result extends PropertyKey = {
|
|
7
|
+
[Key in keyof Properties]: Properties[Key] extends TReadonly<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? Key : never) : never;
|
|
8
|
+
}[keyof Properties]> = Result;
|
|
9
|
+
type ReadonlyKeys<Properties extends TProperties, Result extends PropertyKey = {
|
|
10
|
+
[Key in keyof Properties]: Properties[Key] extends TReadonly<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? never : Key) : never;
|
|
11
|
+
}[keyof Properties]> = Result;
|
|
12
|
+
type OptionalKeys<Properties extends TProperties, Result extends PropertyKey = {
|
|
13
|
+
[Key in keyof Properties]: Properties[Key] extends TOptional<TSchema> ? (Properties[Key] extends TReadonly<Properties[Key]> ? never : Key) : never;
|
|
14
|
+
}[keyof Properties]> = Result;
|
|
15
|
+
type RequiredKeys<Properties extends TProperties, Result extends PropertyKey = keyof Omit<Properties, ReadonlyOptionalKeys<Properties> | ReadonlyKeys<Properties> | OptionalKeys<Properties>>> = Result;
|
|
16
|
+
type StaticPropertiesWithModifiers<Properties extends TProperties, PropertiesWithoutModifiers extends Record<PropertyKey, unknown>> = StaticEvaluate<Readonly<Partial<Pick<PropertiesWithoutModifiers, ReadonlyOptionalKeys<Properties>>>> & Readonly<Pick<PropertiesWithoutModifiers, ReadonlyKeys<Properties>>> & Partial<Pick<PropertiesWithoutModifiers, OptionalKeys<Properties>>> & Required<Pick<PropertiesWithoutModifiers, RequiredKeys<Properties>>>>;
|
|
17
|
+
type StaticPropertiesWithoutModifiers<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Properties extends TProperties, Result extends Record<PropertyKey, unknown> = {
|
|
18
|
+
[Key in keyof Properties]: StaticType<Stack, Direction, Context, This, Properties[Key]>;
|
|
19
|
+
}> = Result;
|
|
20
|
+
export type StaticProperties<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Properties extends TProperties, PropertiesWithoutModifiers extends Record<PropertyKey, unknown> = StaticPropertiesWithoutModifiers<Stack, Direction, Context, This, Properties>, PropertiesWithModifiers extends Record<PropertyKey, unknown> = StaticPropertiesWithModifiers<Properties, PropertiesWithoutModifiers>, Result extends Record<PropertyKey, unknown> = {
|
|
21
|
+
[Key in keyof PropertiesWithModifiers]: PropertiesWithModifiers[Key];
|
|
22
|
+
}> = Result;
|
|
23
|
+
/** Represents a Record<PropertyKey, TSchema> structure. */
|
|
24
|
+
export interface TProperties extends TSchema {
|
|
25
|
+
[key: PropertyKey]: TSchema;
|
|
26
|
+
}
|
|
27
|
+
/** Creates a RequiredArray derived from the given TProperties value. */
|
|
28
|
+
export type TRequiredArray<Properties extends TProperties, RequiredProperties extends TProperties = {
|
|
29
|
+
[Key in keyof Properties as Properties[Key] extends TOptional<Properties[Key]> ? never : Key]: Properties[Key];
|
|
30
|
+
}, RequiredKeys extends string[] = TUnionToTuple<Extract<keyof RequiredProperties, string>>, Result extends string[] | undefined = RequiredKeys extends [] ? undefined : RequiredKeys> = Result;
|
|
31
|
+
/** Creates a RequiredArray derived from the given TProperties value. */
|
|
32
|
+
export declare function RequiredArray<Properties extends TProperties>(properties: Properties): TRequiredArray<Properties>;
|
|
33
|
+
type TKeyToString<Key extends number | string> = `${Key}`;
|
|
34
|
+
/** Extracts a tuple of keys from a TProperties value. */
|
|
35
|
+
export type TPropertyKeys<Properties extends TProperties, ExtractKey extends number | string = Extract<keyof Properties, number | string>, StringKey extends string = TKeyToString<ExtractKey>, Result extends string[] = TUnionToTuple<StringKey>> = Result;
|
|
36
|
+
/** Extracts a tuple of keys from a TProperties value. */
|
|
37
|
+
export declare function PropertyKeys<Properties extends TProperties>(properties: Properties): TPropertyKeys<Properties>;
|
|
38
|
+
type TPropertyValuesReduce<Properties extends TProperties, Keys extends string[], Result extends TSchema[] = []> = Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Properties ? TPropertyValuesReduce<Properties, Right, [...Result, Properties[Left]]> : TPropertyValuesReduce<Properties, Right, Result> : Result;
|
|
39
|
+
/** Extracts a tuple of property values from a TProperties value. */
|
|
40
|
+
export type TPropertyValues<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, Result extends TSchema[] = TPropertyValuesReduce<Properties, Keys>> = Result;
|
|
41
|
+
/** Extracts a tuple of property values from a TProperties value. */
|
|
42
|
+
export declare function PropertyValues<Properties extends TProperties>(properties: Properties): TPropertyValues<Properties>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type TSchema, type TObjectOptions } from './schema.mjs';
|
|
2
|
+
import { type StaticType, type StaticDirection } from './static.mjs';
|
|
3
|
+
import { type TProperties } from './properties.mjs';
|
|
4
|
+
import { type TInteger } from './integer.mjs';
|
|
5
|
+
import { type TNumber } from './number.mjs';
|
|
6
|
+
import { type TString } from './string.mjs';
|
|
7
|
+
import { type TDeferred } from './deferred.mjs';
|
|
8
|
+
import { type TTemplateLiteralStatic } from '../engine/template_literal/index.mjs';
|
|
9
|
+
import { type TTemplateLiteralDecodeUnsafe } from '../engine/template_literal/decode.mjs';
|
|
10
|
+
import { type TRecordAction } from '../engine/record/instantiate.mjs';
|
|
11
|
+
type StaticPropertyKey<Key extends string, Result extends PropertyKey = (Key extends TStringKey ? string : Key extends TIntegerKey ? number : Key extends TNumberKey ? number : Key extends `^${string}$` ? TTemplateLiteralStatic<Key> : string)> = Result;
|
|
12
|
+
export type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema, StaticKey extends PropertyKey = StaticPropertyKey<Key>, StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>, Result extends Record<PropertyKey, unknown> = Record<StaticKey, StaticValue>> = Result;
|
|
13
|
+
export type TStringKey = typeof StringKey;
|
|
14
|
+
export type TIntegerKey = typeof IntegerKey;
|
|
15
|
+
export type TNumberKey = typeof NumberKey;
|
|
16
|
+
export declare const IntegerKey = "^-?(?:0|[1-9][0-9]*)$";
|
|
17
|
+
export declare const NumberKey = "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$";
|
|
18
|
+
export declare const StringKey = "^.*$";
|
|
19
|
+
export interface TRecord<Key extends string = string, Value extends TSchema = TSchema> extends TSchema {
|
|
20
|
+
'~kind': 'Record';
|
|
21
|
+
type: 'object';
|
|
22
|
+
patternProperties: {
|
|
23
|
+
[_ in Key]: Value;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Represents a deferred Record action. */
|
|
27
|
+
export type TRecordDeferred<Key extends TSchema = TSchema, Value extends TSchema = TSchema> = (TDeferred<'Record', [Key, Value]>);
|
|
28
|
+
/** Represents a deferred Record action. */
|
|
29
|
+
export declare function RecordDeferred<Key extends TSchema, Value extends TSchema>(key: Key, value: Value, options?: TObjectOptions): TRecordDeferred<Key, Value>;
|
|
30
|
+
/** Creates a Record type. */
|
|
31
|
+
export declare function Record<Key extends TSchema, Value extends TSchema>(key: Key, value: Value, options?: TObjectOptions): TRecordAction<Key, Value>;
|
|
32
|
+
/** Creates a Record type from regular expression pattern. */
|
|
33
|
+
export declare function RecordFromPattern<Pattern extends string, Value extends TSchema>(pattern: Pattern, value: Value): TRecord<Pattern, Value>;
|
|
34
|
+
/** Transforms a Record Pattern to a Type */
|
|
35
|
+
export type TRecordPatternToType<Pattern extends string, Result extends TSchema = (Pattern extends typeof StringKey ? TString : Pattern extends typeof IntegerKey ? TInteger : Pattern extends typeof NumberKey ? TNumber : TTemplateLiteralDecodeUnsafe<Pattern>)> = Result;
|
|
36
|
+
/** Transforms a Record Pattern to a Type */
|
|
37
|
+
export declare function RecordPatternToType<Pattern extends string>(pattern: Pattern): TRecordPatternToType<Pattern>;
|
|
38
|
+
/** Extracts the Pattern from a Record type */
|
|
39
|
+
export type TRecordPattern<Type extends TRecord, Result extends string = Extract<keyof Type['patternProperties'], string>> = Result;
|
|
40
|
+
/** Extracts the Pattern from a Record type */
|
|
41
|
+
export declare function RecordPattern<Type extends TRecord>(type: Type): TRecordPattern<Type>;
|
|
42
|
+
/** Extracts the Key from a Record type */
|
|
43
|
+
export type TRecordKey<Type extends TRecord, Pattern extends string = TRecordPattern<Type>, Result extends TSchema = TRecordPatternToType<Pattern>> = Result;
|
|
44
|
+
/** Extracts the Key from a Record type */
|
|
45
|
+
export declare function RecordKey<Type extends TRecord>(type: Type): TRecordKey<Type>;
|
|
46
|
+
/** Extracts the Value from a Record type */
|
|
47
|
+
export type TRecordValue<Type extends TRecord, Result extends TSchema = Type['patternProperties'][TRecordPattern<Type>]> = Result;
|
|
48
|
+
/** Extracts the Value from a Record type */
|
|
49
|
+
export declare function RecordValue<Type extends TRecord>(type: Type): TRecordValue<Type>;
|
|
50
|
+
export declare function IsRecord(value: unknown): value is TRecord;
|
|
51
|
+
export declare function RecordOptions(type: TRecord): TObjectOptions;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type StaticType, type StaticDirection } from './static.mjs';
|
|
2
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
3
|
+
import { type TProperties } from './properties.mjs';
|
|
4
|
+
import { type TObject } from './object.mjs';
|
|
5
|
+
import { type TUnknown } from './unknown.mjs';
|
|
6
|
+
type CyclicStackLength<Stack extends unknown[], MaxLength extends number, Buffer extends unknown[] = []> = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : CyclicStackLength<Right, MaxLength, [...Buffer, Left]> : true);
|
|
7
|
+
type CyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? CyclicStackLength<Stack, 2> : true);
|
|
8
|
+
type StaticGuardedRef<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Ref extends string, Type extends TSchema> = (CyclicGuard<Stack, Ref> extends true ? StaticType<[...Stack, Ref], Direction, Context, This, Type> : any);
|
|
9
|
+
export type StaticRef<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Ref extends string, Target extends TSchema = Ref extends keyof Context ? Context[Ref] : TUnknown, Result extends unknown = Target extends TObject ? StaticType<[], Direction, Context, This, Target> : StaticGuardedRef<Stack, Direction, Context, This, Ref, Target>> = Result;
|
|
10
|
+
/** Represents a type reference. */
|
|
11
|
+
export interface TRef<Ref extends string = string> extends TSchema {
|
|
12
|
+
'~kind': 'Ref';
|
|
13
|
+
$ref: Ref;
|
|
14
|
+
}
|
|
15
|
+
/** Creates a Ref type. */
|
|
16
|
+
export declare function Ref<Ref extends string>(ref: Ref, options?: TSchemaOptions): TRef<Ref>;
|
|
17
|
+
/** Returns true if the given value is TRef. */
|
|
18
|
+
export declare function IsRef(value: unknown): value is TRef;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TSchema } from '../types/schema.mjs';
|
|
2
|
+
/** Represents a Rest instruction. */
|
|
3
|
+
export interface TRest<Type extends TSchema = TSchema> extends TSchema {
|
|
4
|
+
'~kind': 'Rest';
|
|
5
|
+
type: 'rest';
|
|
6
|
+
items: Type;
|
|
7
|
+
}
|
|
8
|
+
/** Creates a Rest instruction type. */
|
|
9
|
+
export declare function Rest<Type extends TSchema>(type: Type): TRest<Type>;
|
|
10
|
+
/** Returns true if the given value is TRest. */
|
|
11
|
+
export declare function IsRest(value: unknown): value is TRest;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export interface TSchema {
|
|
2
|
+
}
|
|
3
|
+
export declare function IsKind<Kind extends string>(value: unknown, kind: Kind): value is {
|
|
4
|
+
['~kind']: Kind;
|
|
5
|
+
};
|
|
6
|
+
export declare function IsSchema(value: unknown): value is TSchema;
|
|
7
|
+
export interface TSchemaOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Allows for additional, unlisted properties to be included, typically for extensibility.
|
|
10
|
+
*/
|
|
11
|
+
[key: PropertyKey]: unknown;
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the URI of a JSON Schema that the current schema adheres to.
|
|
14
|
+
*/
|
|
15
|
+
$schema?: string;
|
|
16
|
+
/**
|
|
17
|
+
* A URI that serves as a unique identifier for the schema.
|
|
18
|
+
*/
|
|
19
|
+
$id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A short explanation about the purpose of the data described by the schema.
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A detailed explanation of the data described by the schema.
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A default value for the data, used when no value is provided.
|
|
30
|
+
*/
|
|
31
|
+
default?: unknown;
|
|
32
|
+
/**
|
|
33
|
+
* Provides one or more examples of valid data conforming to the schema.
|
|
34
|
+
*/
|
|
35
|
+
examples?: unknown;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates that the data should only be readable and not modified.
|
|
38
|
+
*/
|
|
39
|
+
readOnly?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates that the data should only be writable and not read back.
|
|
42
|
+
*/
|
|
43
|
+
writeOnly?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* A schema to apply conditionally: if the data validates against this schema, 'then' applies.
|
|
46
|
+
*/
|
|
47
|
+
if?: TSchema;
|
|
48
|
+
/**
|
|
49
|
+
* A schema to apply if the data validates against the 'if' schema.
|
|
50
|
+
*/
|
|
51
|
+
then?: TSchema;
|
|
52
|
+
/**
|
|
53
|
+
* A schema to apply if the data does not validate against the 'if' schema.
|
|
54
|
+
*/
|
|
55
|
+
else?: TSchema;
|
|
56
|
+
}
|
|
57
|
+
export interface TObjectOptions extends TSchemaOptions {
|
|
58
|
+
/**
|
|
59
|
+
* Defines whether additional properties are allowed beyond those explicitly defined in `properties`.
|
|
60
|
+
*/
|
|
61
|
+
additionalProperties?: TSchema | boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The minimum number of properties required in the object.
|
|
64
|
+
*/
|
|
65
|
+
minProperties?: number;
|
|
66
|
+
/**
|
|
67
|
+
* The maximum number of properties allowed in the object.
|
|
68
|
+
*/
|
|
69
|
+
maxProperties?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Defines conditional requirements for properties.
|
|
72
|
+
*/
|
|
73
|
+
dependencies?: Record<string, boolean | TSchema | string[]>;
|
|
74
|
+
/**
|
|
75
|
+
* Specifies properties that *must* be present if a given property is present.
|
|
76
|
+
*/
|
|
77
|
+
dependentRequired?: Record<string, string[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Defines schemas that apply if a specific property is present.
|
|
80
|
+
*/
|
|
81
|
+
dependentSchemas?: Record<string, TSchema>;
|
|
82
|
+
/**
|
|
83
|
+
* Maps regular expressions to schemas properties matching a pattern must validate against the schema.
|
|
84
|
+
*/
|
|
85
|
+
patternProperties?: Record<string, TSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* A schema that all property names within the object must validate against.
|
|
88
|
+
*/
|
|
89
|
+
propertyNames?: TSchema;
|
|
90
|
+
}
|
|
91
|
+
export interface TArrayOptions extends TSchemaOptions {
|
|
92
|
+
/**
|
|
93
|
+
* The minimum number of items allowed in the array.
|
|
94
|
+
*/
|
|
95
|
+
minItems?: number;
|
|
96
|
+
/**
|
|
97
|
+
* The maximum number of items allowed in the array.
|
|
98
|
+
*/
|
|
99
|
+
maxItems?: number;
|
|
100
|
+
/**
|
|
101
|
+
* A schema that at least one item in the array must validate against.
|
|
102
|
+
*/
|
|
103
|
+
contains?: TSchema;
|
|
104
|
+
/**
|
|
105
|
+
* The minimum number of array items that must validate against the `contains` schema.
|
|
106
|
+
*/
|
|
107
|
+
minContains?: number;
|
|
108
|
+
/**
|
|
109
|
+
* The maximum number of array items that may validate against the `contains` schema.
|
|
110
|
+
*/
|
|
111
|
+
maxContains?: number;
|
|
112
|
+
/**
|
|
113
|
+
* An array of schemas, where each schema in `prefixItems` validates against items at corresponding positions from the beginning of the array.
|
|
114
|
+
*/
|
|
115
|
+
prefixItems?: TSchema[];
|
|
116
|
+
/**
|
|
117
|
+
* If `true`, all items in the array must be unique.
|
|
118
|
+
*/
|
|
119
|
+
uniqueItems?: boolean;
|
|
120
|
+
}
|
|
121
|
+
export interface TTupleOptions extends TArrayOptions {
|
|
122
|
+
/**
|
|
123
|
+
* A schema to apply to any items in the array that were not validated by `prefixItems` or `items`. If `false`, no additional items are allowed.
|
|
124
|
+
*/
|
|
125
|
+
unevaluatedItems?: TSchema | boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface TIntersectOptions extends TSchemaOptions {
|
|
128
|
+
/**
|
|
129
|
+
* A schema to apply to any properties in the object that were not validated by other keywords like `properties`, `patternProperties`, or `additionalProperties`. If `false`, no additional properties are allowed.
|
|
130
|
+
*/
|
|
131
|
+
unevaluatedProperties?: TSchema | boolean;
|
|
132
|
+
}
|
|
133
|
+
export interface TNumberOptions extends TSchemaOptions {
|
|
134
|
+
/**
|
|
135
|
+
* Specifies an exclusive upper limit for the number (number must be less than this value).
|
|
136
|
+
*/
|
|
137
|
+
exclusiveMaximum?: number | bigint;
|
|
138
|
+
/**
|
|
139
|
+
* Specifies an exclusive lower limit for the number (number must be greater than this value).
|
|
140
|
+
*/
|
|
141
|
+
exclusiveMinimum?: number | bigint;
|
|
142
|
+
/**
|
|
143
|
+
* Specifies an inclusive upper limit for the number (number must be less than or equal to this value).
|
|
144
|
+
*/
|
|
145
|
+
maximum?: number | bigint;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies an inclusive lower limit for the number (number must be greater than or equal to this value).
|
|
148
|
+
*/
|
|
149
|
+
minimum?: number | bigint;
|
|
150
|
+
/**
|
|
151
|
+
* Specifies that the number must be a multiple of this value.
|
|
152
|
+
*/
|
|
153
|
+
multipleOf?: number | bigint;
|
|
154
|
+
}
|
|
155
|
+
export type TFormat = 'date-time' | 'date' | 'duration' | 'email' | 'hostname' | 'idn-email' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'iri-reference' | 'iri' | 'json-pointer-uri-fragment' | 'json-pointer' | 'json-string' | 'regex' | 'relative-json-pointer' | 'time' | 'uri-reference' | 'uri-template' | 'uri' | 'url' | 'uuid' | ({} & string);
|
|
156
|
+
export interface TStringOptions extends TSchemaOptions {
|
|
157
|
+
/**
|
|
158
|
+
* Specifies the expected string format. May also be a custom format string.
|
|
159
|
+
*/
|
|
160
|
+
format?: TFormat;
|
|
161
|
+
/**
|
|
162
|
+
* Specifies the minimum number of characters allowed in the string.
|
|
163
|
+
* Must be a non-negative integer.
|
|
164
|
+
*/
|
|
165
|
+
minLength?: number;
|
|
166
|
+
/**
|
|
167
|
+
* Specifies the maximum number of characters allowed in the string.
|
|
168
|
+
* Must be a non-negative integer.
|
|
169
|
+
*/
|
|
170
|
+
maxLength?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies a regular expression pattern that the string value must match.
|
|
173
|
+
* Can be provided as a string (ECMA-262 regex syntax) or a `RegExp` object.
|
|
174
|
+
*/
|
|
175
|
+
pattern?: string | RegExp;
|
|
176
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { StaticCodec, TCodec } from './_codec.mjs';
|
|
2
|
+
import type { StaticAny, TAny } from './any.mjs';
|
|
3
|
+
import type { StaticArray, TArray } from './array.mjs';
|
|
4
|
+
import type { StaticBigInt, TBigInt } from './bigint.mjs';
|
|
5
|
+
import type { StaticBoolean, TBoolean } from './boolean.mjs';
|
|
6
|
+
import type { StaticConstructor, TConstructor } from './constructor.mjs';
|
|
7
|
+
import type { StaticCyclic, TCyclic } from './cyclic.mjs';
|
|
8
|
+
import type { StaticEnum, TEnum, TEnumValue } from './enum.mjs';
|
|
9
|
+
import type { StaticFunction, TFunction } from './function.mjs';
|
|
10
|
+
import type { StaticInteger, TInteger } from './integer.mjs';
|
|
11
|
+
import type { StaticDependent, TDependent } from './dependent.mjs';
|
|
12
|
+
import type { StaticIntersect, TIntersect } from './intersect.mjs';
|
|
13
|
+
import type { StaticLiteral, TLiteral, TLiteralValue } from './literal.mjs';
|
|
14
|
+
import type { StaticNever, TNever } from './never.mjs';
|
|
15
|
+
import type { StaticNull, TNull } from './null.mjs';
|
|
16
|
+
import type { StaticNumber, TNumber } from './number.mjs';
|
|
17
|
+
import type { StaticObject, TObject } from './object.mjs';
|
|
18
|
+
import type { TProperties } from './properties.mjs';
|
|
19
|
+
import type { StaticRecord, TRecord } from './record.mjs';
|
|
20
|
+
import type { StaticRef, TRef } from './ref.mjs';
|
|
21
|
+
import type { TSchema } from './schema.mjs';
|
|
22
|
+
import type { StaticString, TString } from './string.mjs';
|
|
23
|
+
import type { StaticSymbol, TSymbol } from './symbol.mjs';
|
|
24
|
+
import type { StaticTemplateLiteral, TTemplateLiteral } from './template_literal.mjs';
|
|
25
|
+
import type { StaticThis, TThis } from './this.mjs';
|
|
26
|
+
import type { StaticTuple, TTuple } from './tuple.mjs';
|
|
27
|
+
import type { StaticUndefined, TUndefined } from './undefined.mjs';
|
|
28
|
+
import type { StaticUnion, TUnion } from './union.mjs';
|
|
29
|
+
import type { StaticUnknown, TUnknown } from './unknown.mjs';
|
|
30
|
+
import type { StaticUnsafe, TUnsafe } from './unsafe.mjs';
|
|
31
|
+
import type { StaticVoid, TVoid } from './void.mjs';
|
|
32
|
+
import type { XStatic } from '../../schema/static/static.mjs';
|
|
33
|
+
export type StaticEvaluate<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
36
|
+
export type StaticDirection = 'Encode' | 'Decode';
|
|
37
|
+
export type StaticType<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema> = (Type extends TCodec<infer Type extends TSchema, infer Decoded extends unknown> ? StaticCodec<Stack, Direction, Context, This, Type, Decoded> : Type extends TAny ? StaticAny : Type extends TArray<infer Items extends TSchema> ? StaticArray<Stack, Direction, Context, This, Type, Items> : Type extends TBigInt ? StaticBigInt : Type extends TBoolean ? StaticBoolean : Type extends TConstructor<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? StaticConstructor<Stack, Direction, Context, This, Parameters, ReturnType> : Type extends TEnum<infer Values extends TEnumValue[]> ? StaticEnum<Values> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? StaticFunction<Stack, Direction, Context, This, Parameters, ReturnType> : Type extends TDependent<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? StaticDependent<Stack, Direction, Context, This, If, Then, Else> : Type extends TInteger ? StaticInteger : Type extends TIntersect<infer Types extends TSchema[]> ? StaticIntersect<Stack, Direction, Context, This, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? StaticLiteral<Value> : Type extends TNever ? StaticNever : Type extends TNull ? StaticNull : Type extends TNumber ? StaticNumber : Type extends TObject<infer Properties extends TProperties> ? StaticObject<Stack, Direction, Context, This, Properties> : Type extends TRecord<infer Key extends string, infer Value extends TSchema> ? StaticRecord<Stack, Direction, Context, This, Key, Value> : Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? StaticCyclic<Stack, Direction, Context, This, Defs, Ref> : Type extends TRef<infer Ref extends string> ? StaticRef<Stack, Direction, Context, This, Ref> : Type extends TString ? StaticString : Type extends TSymbol ? StaticSymbol : Type extends TTemplateLiteral<infer Pattern extends string> ? StaticTemplateLiteral<Pattern> : Type extends TThis ? StaticThis<Stack, Direction, Context, This> : Type extends TTuple<infer Items extends TSchema[]> ? StaticTuple<Stack, Direction, Context, This, Type, Items> : Type extends TUndefined ? StaticUndefined : Type extends TUnion<infer Types extends TSchema[]> ? StaticUnion<Stack, Direction, Context, This, Types> : Type extends TUnknown ? StaticUnknown : Type extends TUnsafe<infer Type extends unknown> ? StaticUnsafe<Type> : Type extends TVoid ? StaticVoid : XStatic<Type>);
|
|
38
|
+
/** Infers a static type from a TypeBox type using Parse logic. */
|
|
39
|
+
export type StaticParse<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
|
|
40
|
+
/** Infers a static type from a TypeBox type using Decode logic. */
|
|
41
|
+
export type StaticDecode<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Decode', Context, {}, Type>> = Result;
|
|
42
|
+
/** Infers a static type from a TypeBox type using Encode logic. */
|
|
43
|
+
export type StaticEncode<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
|
|
44
|
+
/** Infers a static type from a TypeBox type. */
|
|
45
|
+
export type Static<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type TSchema, type TStringOptions } from './schema.mjs';
|
|
2
|
+
export declare const StringPattern = ".*";
|
|
3
|
+
export type StaticString = string;
|
|
4
|
+
/** Represents a String type. */
|
|
5
|
+
export interface TString extends TSchema {
|
|
6
|
+
'~kind': 'String';
|
|
7
|
+
type: 'string';
|
|
8
|
+
}
|
|
9
|
+
/** Creates a String type. */
|
|
10
|
+
export declare function String(options?: TStringOptions): TString;
|
|
11
|
+
/** Returns true if the given value is TString. */
|
|
12
|
+
export declare function IsString(value: unknown): value is TString;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
|
+
export type StaticSymbol = symbol;
|
|
3
|
+
/** Represents a Symbol type. */
|
|
4
|
+
export interface TSymbol extends TSchema {
|
|
5
|
+
'~kind': 'Symbol';
|
|
6
|
+
type: 'symbol';
|
|
7
|
+
}
|
|
8
|
+
/** Creates a Symbol type. */
|
|
9
|
+
export declare function Symbol(options?: TSchemaOptions): TSymbol;
|
|
10
|
+
/** Returns true if the given value is TSymbol. */
|
|
11
|
+
export declare function IsSymbol(value: unknown): value is TSymbol;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
|
+
import { type TDeferred } from './deferred.mjs';
|
|
3
|
+
import { type TParseTemplateIntoTypes } from '../engine/patterns/template.mjs';
|
|
4
|
+
import { type TTemplateLiteralStatic } from '../engine/template_literal/static.mjs';
|
|
5
|
+
import { type TTemplateLiteralAction } from '../engine/template_literal/instantiate.mjs';
|
|
6
|
+
export type StaticTemplateLiteral<Pattern extends string> = (TTemplateLiteralStatic<Pattern>);
|
|
7
|
+
/** Represents a TemplateLiteral type. */
|
|
8
|
+
export interface TTemplateLiteral<Pattern extends string = string> extends TSchema {
|
|
9
|
+
'~kind': 'TemplateLiteral';
|
|
10
|
+
type: 'string';
|
|
11
|
+
pattern: Pattern;
|
|
12
|
+
}
|
|
13
|
+
/** Creates a deferred TemplateLiteral action. */
|
|
14
|
+
export type TTemplateLiteralDeferred<Types extends TSchema[] = TSchema[]> = (TDeferred<'TemplateLiteral', [Types]>);
|
|
15
|
+
/** Creates a deferred TemplateLiteral action. */
|
|
16
|
+
export declare function TemplateLiteralDeferred<Types extends TSchema[]>(types: [...Types], options?: TSchemaOptions): TTemplateLiteralDeferred<Types>;
|
|
17
|
+
/** Returns true if this value is a deferred Interface action. */
|
|
18
|
+
export declare function IsTemplateLiteralDeferred(value: unknown): value is TTemplateLiteralDeferred;
|
|
19
|
+
export type TTemplateLiteralFromTypes<Types extends TSchema[], Result extends TSchema = TTemplateLiteralAction<Types>> = Result;
|
|
20
|
+
export declare function TemplateLiteralFromTypes<Types extends TSchema[]>(types: [...Types]): TTemplateLiteralFromTypes<Types>;
|
|
21
|
+
export type TTemplateLiteralFromString<Template extends string, Types extends TSchema[] = TParseTemplateIntoTypes<Template>, Result extends TSchema = TTemplateLiteralFromTypes<Types>> = Result;
|
|
22
|
+
export declare function TemplateLiteralFromString<Template extends string>(template: Template): TTemplateLiteralFromString<Template>;
|
|
23
|
+
/** Creates a TemplateLiteral type. */
|
|
24
|
+
export declare function TemplateLiteral<Template extends string>(template: Template, options?: TSchemaOptions): TTemplateLiteralFromString<Template>;
|
|
25
|
+
/** Creates a TemplateLiteral type. */
|
|
26
|
+
export declare function TemplateLiteral<Types extends TSchema[]>(types: [...Types], options?: TSchemaOptions): TTemplateLiteralFromTypes<Types>;
|
|
27
|
+
/** Returns true if the given value is TTemplateLiteral. */
|
|
28
|
+
export declare function IsTemplateLiteral(value: unknown): value is TTemplateLiteral;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type StaticType, type StaticDirection } from './static.mjs';
|
|
2
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
3
|
+
import { type TObject } from './object.mjs';
|
|
4
|
+
import { type TProperties } from './properties.mjs';
|
|
5
|
+
export type StaticThis<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties> = (StaticType<Stack, Direction, Context, This, TObject<This>>);
|
|
6
|
+
/** Represents a This type. */
|
|
7
|
+
export interface TThis extends TSchema {
|
|
8
|
+
'~kind': 'This';
|
|
9
|
+
$ref: '#';
|
|
10
|
+
}
|
|
11
|
+
/** Creates a This type. */
|
|
12
|
+
export declare function This(options?: TSchemaOptions): TThis;
|
|
13
|
+
/** Returns true if the given value is TThis. */
|
|
14
|
+
export declare function IsThis(value: unknown): value is TThis;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type StaticType, type StaticDirection } from './static.mjs';
|
|
2
|
+
import { type TSchema, type TTupleOptions } from './schema.mjs';
|
|
3
|
+
import { type TArray } from './array.mjs';
|
|
4
|
+
import { type TOptional } from './_optional.mjs';
|
|
5
|
+
import { type TProperties } from './properties.mjs';
|
|
6
|
+
import { type TImmutable } from './_immutable.mjs';
|
|
7
|
+
import { type TReadonly } from './_readonly.mjs';
|
|
8
|
+
import { type TRest } from './rest.mjs';
|
|
9
|
+
type StaticLast<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result extends unknown[]> = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TArray<infer ArrayType extends TSchema> ? [...Result, ...TStaticElement<Stack, Direction, Context, This, ArrayType>[0][]] : [...Result, never] : [...Result, ...TStaticElement<Stack, Direction, Context, This, Type>]);
|
|
10
|
+
type TStaticElement<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, IsReadonly extends boolean = Type extends TReadonly ? true : false, IsOptional extends boolean = Type extends TOptional ? true : false, Inferred extends unknown = StaticType<Stack, Direction, Context, This, Type>, Result extends [unknown?] = ([
|
|
11
|
+
IsReadonly,
|
|
12
|
+
IsOptional
|
|
13
|
+
] extends [true, true] ? [Readonly<Inferred>?] : [
|
|
14
|
+
IsReadonly,
|
|
15
|
+
IsOptional
|
|
16
|
+
] extends [false, true] ? [Inferred?] : [
|
|
17
|
+
IsReadonly,
|
|
18
|
+
IsOptional
|
|
19
|
+
] extends [true, false] ? [Readonly<Inferred>] : [
|
|
20
|
+
Inferred
|
|
21
|
+
])> = Result;
|
|
22
|
+
export type TStaticElements<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown[] = []> = (Types extends [infer Last extends TSchema] ? StaticLast<Stack, Direction, Context, This, Last, Result> : Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TStaticElements<Stack, Direction, Context, This, Right, [...Result, ...TStaticElement<Stack, Direction, Context, This, Left>]> : Result);
|
|
23
|
+
export type StaticTuple<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Tuple extends TSchema, Items extends TSchema[], Elements extends unknown[] = TStaticElements<Stack, Direction, Context, This, Items>, Result extends readonly unknown[] = (Tuple extends TImmutable ? readonly [...Elements] : Elements)> = Result;
|
|
24
|
+
/** Represents a Tuple type. */
|
|
25
|
+
export interface TTuple<Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
26
|
+
'~kind': 'Tuple';
|
|
27
|
+
type: 'array';
|
|
28
|
+
additionalItems: false;
|
|
29
|
+
items: Types;
|
|
30
|
+
minItems: Types['length'];
|
|
31
|
+
}
|
|
32
|
+
/** Creates a Tuple type. */
|
|
33
|
+
export declare function Tuple<Types extends TSchema[]>(types: [...Types], options?: TTupleOptions): TTuple<Types>;
|
|
34
|
+
/** Returns true if the given value is TTuple. */
|
|
35
|
+
export declare function IsTuple(value: unknown): value is TTuple;
|
|
36
|
+
/** Extracts options from a TTuple. */
|
|
37
|
+
export declare function TupleOptions(type: TTuple): TTupleOptions;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
|
+
export type StaticUndefined = undefined;
|
|
3
|
+
/** Represents a Undefined type. */
|
|
4
|
+
export interface TUndefined extends TSchema {
|
|
5
|
+
'~kind': 'Undefined';
|
|
6
|
+
type: 'undefined';
|
|
7
|
+
}
|
|
8
|
+
/** Creates a Undefined type. */
|
|
9
|
+
export declare function Undefined(options?: TSchemaOptions): TUndefined;
|
|
10
|
+
/** Returns true if the given value is TUndefined. */
|
|
11
|
+
export declare function IsUndefined(value: unknown): value is TUndefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type StaticType, type StaticDirection } from './static.mjs';
|
|
2
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
3
|
+
import { type TProperties } from './properties.mjs';
|
|
4
|
+
export type StaticUnion<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown = never> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticUnion<Stack, Direction, Context, This, Right, Result | StaticType<Stack, Direction, Context, This, Left>> : Result);
|
|
5
|
+
/** Represents a logical Union type. */
|
|
6
|
+
export interface TUnion<Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
7
|
+
'~kind': 'Union';
|
|
8
|
+
anyOf: Types;
|
|
9
|
+
}
|
|
10
|
+
/** Creates a Union type. */
|
|
11
|
+
export declare function Union<Types extends TSchema[]>(anyOf: [...Types], options?: TSchemaOptions): TUnion<Types>;
|
|
12
|
+
/** Returns true if the given value is TUnion. */
|
|
13
|
+
export declare function IsUnion(value: unknown): value is TUnion;
|
|
14
|
+
/** Extracts options from a TUnion. */
|
|
15
|
+
export declare function UnionOptions(type: TUnion): TSchemaOptions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
|
+
export type StaticUnknown = unknown;
|
|
3
|
+
/** Represents an Unknown type. */
|
|
4
|
+
export interface TUnknown extends TSchema {
|
|
5
|
+
'~kind': 'Unknown';
|
|
6
|
+
}
|
|
7
|
+
/** Creates an Unknown type. */
|
|
8
|
+
export declare function Unknown(options?: TSchemaOptions): TUnknown;
|
|
9
|
+
/** Returns true if the given value is TUnknown. */
|
|
10
|
+
export declare function IsUnknown(value: unknown): value is TUnknown;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TSchema } from './schema.mjs';
|
|
2
|
+
export type StaticUnsafe<Type extends unknown> = Type;
|
|
3
|
+
/** Represents an Unsafe type. */
|
|
4
|
+
export interface TUnsafe<Type extends unknown = unknown> extends TSchema {
|
|
5
|
+
'~unsafe': Type;
|
|
6
|
+
}
|
|
7
|
+
/** Creates a Unsafe type. */
|
|
8
|
+
export declare function Unsafe<Type extends unknown>(schema: TSchema): TUnsafe<Type>;
|
|
9
|
+
/** Returns true if the given value is TUnsafe. */
|
|
10
|
+
export declare function IsUnsafe(value: unknown): value is TUnsafe;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
|
+
export type StaticVoid = void;
|
|
3
|
+
/** Represents a Void type. */
|
|
4
|
+
export interface TVoid extends TSchema {
|
|
5
|
+
'~kind': 'Void';
|
|
6
|
+
type: 'void';
|
|
7
|
+
}
|
|
8
|
+
/** Creates a Void type. */
|
|
9
|
+
export declare function Void(options?: TSchemaOptions): TVoid;
|
|
10
|
+
/** Returns true if the given value is TVoid. */
|
|
11
|
+
export declare function IsVoid(value: unknown): value is TVoid;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export { Instantiate, type TInstantiate } from './type/engine/instantiate.mjs';
|
|
2
|
+
export { Extends, ExtendsResult, type TExtends } from './type/extends/index.mjs';
|
|
3
|
+
export { Script, type TScript } from './type/script/index.mjs';
|
|
4
|
+
export { Capitalize, type TCapitalize, type TCapitalizeDeferred } from './type/action/capitalize.mjs';
|
|
5
|
+
export { Conditional, type TConditional, type TConditionalDeferred } from './type/action/conditional.mjs';
|
|
6
|
+
export { ConstructorParameters, type TConstructorParameters, type TConstructorParametersDeferred } from './type/action/constructor_parameters.mjs';
|
|
7
|
+
export { Evaluate, type TEvaluate, type TEvaluateDeferred } from './type/action/evaluate.mjs';
|
|
8
|
+
export { Exclude, type TExclude, type TExcludeDeferred } from './type/action/exclude.mjs';
|
|
9
|
+
export { Extract, type TExtract, type TExtractDeferred } from './type/action/extract.mjs';
|
|
10
|
+
export { Index, type TIndex, type TIndexDeferred } from './type/action/index.mjs';
|
|
11
|
+
export { InstanceType, type TInstanceType, type TInstanceTypeDeferred } from './type/action/instance_type.mjs';
|
|
12
|
+
export { Interface, type TInterface, type TInterfaceDeferred } from './type/action/interface.mjs';
|
|
13
|
+
export { KeyOf, type TKeyOf, type TKeyOfDeferred } from './type/action/keyof.mjs';
|
|
14
|
+
export { Lowercase, type TLowercase, type TLowercaseDeferred } from './type/action/lowercase.mjs';
|
|
15
|
+
export { Mapped, type TMapped, type TMappedDeferred } from './type/action/mapped.mjs';
|
|
16
|
+
export { Module, type TModule, type TModuleDeferred } from './type/action/module.mjs';
|
|
17
|
+
export { NonNullable, type TNonNullable, type TNonNullableDeferred } from './type/action/non_nullable.mjs';
|
|
18
|
+
export { Omit, type TOmit, type TOmitDeferred } from './type/action/omit.mjs';
|
|
19
|
+
export { Parameters, type TParameters, type TParametersDeferred } from './type/action/parameters.mjs';
|
|
20
|
+
export { Partial, type TPartial, type TPartialDeferred } from './type/action/partial.mjs';
|
|
21
|
+
export { Pick, type TPick, type TPickDeferred } from './type/action/pick.mjs';
|
|
22
|
+
export { ReadonlyObject, ReadonlyType, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
|
|
23
|
+
export { Required, type TRequired, type TRequiredDeferred } from './type/action/required.mjs';
|
|
24
|
+
export { ReturnType, type TReturnType, type TReturnTypeDeferred } from './type/action/return_type.mjs';
|
|
25
|
+
export { type TUncapitalize, type TUncapitalizeDeferred, Uncapitalize } from './type/action/uncapitalize.mjs';
|
|
26
|
+
export { type TUppercase, type TUppercaseDeferred, Uppercase } from './type/action/uppercase.mjs';
|
|
27
|
+
export { type TWith, With } from './type/action/with.mjs';
|
|
28
|
+
export { Codec, Decode, DecodeBuilder, Encode, EncodeBuilder, IsCodec, type TCodec } from './type/types/_codec.mjs';
|
|
29
|
+
export { Immutable, IsImmutable, type TImmutable } from './type/types/_immutable.mjs';
|
|
30
|
+
export { IsOptional, Optional, type TOptional } from './type/types/_optional.mjs';
|
|
31
|
+
export { IsReadonly, Readonly, type TReadonly } from './type/types/_readonly.mjs';
|
|
32
|
+
export { IsRefine, Refine, type TRefine, type TRefineCheckCallback, type TRefineErrorCallback, type TRefinement } from './type/types/_refine.mjs';
|
|
33
|
+
export { Any, IsAny, type TAny } from './type/types/any.mjs';
|
|
34
|
+
export { Array, IsArray, type TArray } from './type/types/array.mjs';
|
|
35
|
+
export { BigInt, IsBigInt, type TBigInt } from './type/types/bigint.mjs';
|
|
36
|
+
export { Boolean, IsBoolean, type TBoolean } from './type/types/boolean.mjs';
|
|
37
|
+
export { Call, IsCall, type TCall } from './type/types/call.mjs';
|
|
38
|
+
export { Constructor, IsConstructor, type TConstructor } from './type/types/constructor.mjs';
|
|
39
|
+
export { Cyclic, IsCyclic, type TCyclic } from './type/types/cyclic.mjs';
|
|
40
|
+
export { Enum, IsEnum, IsEnumValue, type TEnum, type TEnumValue } from './type/types/enum.mjs';
|
|
41
|
+
export { Function, IsFunction, type TFunction } from './type/types/function.mjs';
|
|
42
|
+
export { Generic, IsGeneric, type TGeneric } from './type/types/generic.mjs';
|
|
43
|
+
export { Identifier, IsIdentifier, type TIdentifier } from './type/types/identifier.mjs';
|
|
44
|
+
export { Dependent, IsDependent, type TDependent } from './type/types/dependent.mjs';
|
|
45
|
+
export { Infer, IsInfer, type TInfer } from './type/types/infer.mjs';
|
|
46
|
+
export { Integer, IsInteger, type TInteger } from './type/types/integer.mjs';
|
|
47
|
+
export { Intersect, IsIntersect, type TIntersect } from './type/types/intersect.mjs';
|
|
48
|
+
export { IsLiteral, Literal, type TLiteral, type TLiteralValue } from './type/types/literal.mjs';
|
|
49
|
+
export { IsNever, Never, type TNever } from './type/types/never.mjs';
|
|
50
|
+
export { IsNull, Null, type TNull } from './type/types/null.mjs';
|
|
51
|
+
export { IsNumber, Number, type TNumber } from './type/types/number.mjs';
|
|
52
|
+
export { IsObject, Object, type TObject } from './type/types/object.mjs';
|
|
53
|
+
export { IsParameter, Parameter, type TParameter } from './type/types/parameter.mjs';
|
|
54
|
+
export { type TProperties, type TRequiredArray } from './type/types/properties.mjs';
|
|
55
|
+
export { IsRecord, Record, RecordKey, RecordPattern, RecordValue, type TRecord, type TRecordKey, type TRecordPattern, type TRecordValue } from './type/types/record.mjs';
|
|
56
|
+
export { IsRef, Ref, type TRef } from './type/types/ref.mjs';
|
|
57
|
+
export { IsRest, Rest, type TRest } from './type/types/rest.mjs';
|
|
58
|
+
export { IsKind, IsSchema, type TArrayOptions, type TFormat, type TIntersectOptions, type TNumberOptions, type TObjectOptions, type TSchema, type TSchemaOptions, type TStringOptions, type TTupleOptions } from './type/types/schema.mjs';
|
|
59
|
+
export { type Static, type StaticDecode, type StaticEncode, type StaticParse } from './type/types/static.mjs';
|
|
60
|
+
export { IsString, String, type TString } from './type/types/string.mjs';
|
|
61
|
+
export { IsSymbol, Symbol, type TSymbol } from './type/types/symbol.mjs';
|
|
62
|
+
export { IsTemplateLiteral, TemplateLiteral, type TTemplateLiteral } from './type/types/template_literal.mjs';
|
|
63
|
+
export { IsThis, This, type TThis } from './type/types/this.mjs';
|
|
64
|
+
export { IsTuple, type TTuple, Tuple } from './type/types/tuple.mjs';
|
|
65
|
+
export { IsUndefined, type TUndefined, Undefined } from './type/types/undefined.mjs';
|
|
66
|
+
export { IsUnion, type TUnion, Union } from './type/types/union.mjs';
|
|
67
|
+
export { IsUnknown, type TUnknown, Unknown } from './type/types/unknown.mjs';
|
|
68
|
+
export { IsUnsafe, type TUnsafe, Unsafe } from './type/types/unsafe.mjs';
|
|
69
|
+
export { IsVoid, type TVoid, Void } from './type/types/void.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TLocalizedValidationError } from '../../error/index.mjs';
|
|
2
|
+
import type { Static, TProperties, TSchema } from '../../type/index.mjs';
|
|
3
|
+
export declare class AssertError extends Error {
|
|
4
|
+
readonly cause: {
|
|
5
|
+
source: string;
|
|
6
|
+
errors: TLocalizedValidationError[];
|
|
7
|
+
value: unknown;
|
|
8
|
+
};
|
|
9
|
+
constructor(source: string, value: unknown, errors: TLocalizedValidationError[]);
|
|
10
|
+
}
|
|
11
|
+
/** Asserts the a value matches the given type. This function returns a TypeScript type asserts predicate and will throw AssertError if value does not match. */
|
|
12
|
+
export declare function Assert<const Type extends TSchema>(type: Type, value: unknown): asserts value is Static<Type>;
|
|
13
|
+
/** Asserts the a value matches the given type. This function returns a TypeScript type asserts predicate and will throw AssertError if value does not match. */
|
|
14
|
+
export declare function Assert<Context extends TProperties, const Type extends TSchema>(context: Context, type: Type, value: unknown): asserts value is Static<Type, Context>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './assert.mjs';
|