@hashgraphonline/standards-agent-kit 0.0.18 → 0.0.19
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/README.md +83 -0
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/index.js +8 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index10.js.map +1 -0
- package/dist/_virtual/index11.js +5 -0
- package/dist/_virtual/index11.js.map +1 -0
- package/dist/_virtual/index12.js +8 -0
- package/dist/_virtual/index12.js.map +1 -0
- package/dist/_virtual/index13.js +5 -0
- package/dist/_virtual/index13.js.map +1 -0
- package/dist/_virtual/index14.js +5 -0
- package/dist/_virtual/index14.js.map +1 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +8 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.js +8 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.js +6 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.js +8 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/index7.js +5 -0
- package/dist/_virtual/index7.js.map +1 -0
- package/dist/_virtual/index8.js +5 -0
- package/dist/_virtual/index8.js.map +1 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/index9.js.map +1 -0
- package/dist/_virtual/lower-bound.js +5 -0
- package/dist/_virtual/lower-bound.js.map +1 -0
- package/dist/_virtual/priority-queue.js +5 -0
- package/dist/_virtual/priority-queue.js.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/_virtual/retry.js +5 -0
- package/dist/_virtual/retry.js.map +1 -0
- package/dist/agents/index.d.ts +0 -0
- package/dist/hcs10/HCS10Client.d.ts +117 -0
- package/dist/hcs10/HCS10Client.js +251 -0
- package/dist/hcs10/HCS10Client.js.map +1 -0
- package/dist/hcs10/index.d.ts +1 -0
- package/dist/hcs10/types.d.ts +35 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.es.js +9747 -11699
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +59 -0
- package/dist/init.js +92 -0
- package/dist/init.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/callbacks/base.js +98 -0
- package/dist/node_modules/@langchain/core/dist/callbacks/base.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.js +419 -0
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/callbacks/promises.js +16 -0
- package/dist/node_modules/@langchain/core/dist/callbacks/promises.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/language_models/base.js +42 -0
- package/dist/node_modules/@langchain/core/dist/language_models/base.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/load/map_keys.js +16 -0
- package/dist/node_modules/@langchain/core/dist/load/map_keys.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/load/serializable.js +121 -0
- package/dist/node_modules/@langchain/core/dist/load/serializable.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/messages/ai.js +95 -0
- package/dist/node_modules/@langchain/core/dist/messages/ai.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/messages/base.js +112 -0
- package/dist/node_modules/@langchain/core/dist/messages/base.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/messages/utils.js +30 -0
- package/dist/node_modules/@langchain/core/dist/messages/utils.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/runnables/base.js +1277 -0
- package/dist/node_modules/@langchain/core/dist/runnables/base.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/runnables/config.js +83 -0
- package/dist/node_modules/@langchain/core/dist/runnables/config.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/runnables/graph.js +106 -0
- package/dist/node_modules/@langchain/core/dist/runnables/graph.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/runnables/iter.js +33 -0
- package/dist/node_modules/@langchain/core/dist/runnables/iter.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/runnables/utils.js +54 -0
- package/dist/node_modules/@langchain/core/dist/runnables/utils.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/runnables/wrappers.js +20 -0
- package/dist/node_modules/@langchain/core/dist/runnables/wrappers.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/singletons/index.js +34 -0
- package/dist/node_modules/@langchain/core/dist/singletons/index.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tools.js +69 -0
- package/dist/node_modules/@langchain/core/dist/tools.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tracers/base.js +299 -0
- package/dist/node_modules/@langchain/core/dist/tracers/base.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tracers/console.js +193 -0
- package/dist/node_modules/@langchain/core/dist/tracers/console.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tracers/initialize.js +10 -0
- package/dist/node_modules/@langchain/core/dist/tracers/initialize.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tracers/log_stream.js +284 -0
- package/dist/node_modules/@langchain/core/dist/tracers/log_stream.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tracers/root_listener.js +54 -0
- package/dist/node_modules/@langchain/core/dist/tracers/root_listener.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.js +68 -0
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/async_caller.js +86 -0
- package/dist/node_modules/@langchain/core/dist/utils/async_caller.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/env.js +33 -0
- package/dist/node_modules/@langchain/core/dist/utils/env.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/core.js +218 -0
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/core.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/helpers.js +117 -0
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/helpers.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/json.js +40 -0
- package/dist/node_modules/@langchain/core/dist/utils/json.js.map +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/stream.js +164 -0
- package/dist/node_modules/@langchain/core/dist/utils/stream.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/ansi-styles/index.js +111 -0
- package/dist/node_modules/@langchain/core/node_modules/ansi-styles/index.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/camelcase/index.js +30 -0
- package/dist/node_modules/@langchain/core/node_modules/camelcase/index.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.js +2002 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.js +5 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.js +12 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.js +94 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.js +96 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.js +20 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +82 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.js +15 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.js +27 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/native.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/rng.js +10 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/stringify.js +10 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/v4.js +14 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/native.js +7 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/rng.js +11 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/stringify.js +10 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/v4.js +14 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/dist/node_modules/base64-js/index.js +53 -0
- package/dist/node_modules/base64-js/index.js.map +1 -0
- package/dist/node_modules/decamelize/index.js +12 -0
- package/dist/node_modules/decamelize/index.js.map +1 -0
- package/dist/node_modules/eventemitter3/index.js +112 -0
- package/dist/node_modules/eventemitter3/index.js.map +1 -0
- package/dist/node_modules/js-tiktoken/dist/chunk-Z5MDQTGX.js +117 -0
- package/dist/node_modules/js-tiktoken/dist/chunk-Z5MDQTGX.js.map +1 -0
- package/dist/node_modules/p-finally/index.js +18 -0
- package/dist/node_modules/p-finally/index.js.map +1 -0
- package/dist/node_modules/p-queue/dist/index.js +198 -0
- package/dist/node_modules/p-queue/dist/index.js.map +1 -0
- package/dist/node_modules/p-queue/dist/lower-bound.js +20 -0
- package/dist/node_modules/p-queue/dist/lower-bound.js.map +1 -0
- package/dist/node_modules/p-queue/dist/priority-queue.js +41 -0
- package/dist/node_modules/p-queue/dist/priority-queue.js.map +1 -0
- package/dist/node_modules/p-retry/index.js +63 -0
- package/dist/node_modules/p-retry/index.js.map +1 -0
- package/dist/node_modules/p-timeout/index.js +45 -0
- package/dist/node_modules/p-timeout/index.js.map +1 -0
- package/dist/node_modules/retry/index.js +9 -0
- package/dist/node_modules/retry/index.js.map +1 -0
- package/dist/node_modules/retry/lib/retry.js +59 -0
- package/dist/node_modules/retry/lib/retry.js.map +1 -0
- package/dist/node_modules/retry/lib/retry_operation.js +58 -0
- package/dist/node_modules/retry/lib/retry_operation.js.map +1 -0
- package/dist/node_modules/semver/classes/comparator.js +57 -0
- package/dist/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/semver/classes/range.js +149 -0
- package/dist/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/semver/classes/semver.js +170 -0
- package/dist/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/semver/functions/clean.js +15 -0
- package/dist/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/semver/functions/cmp.js +40 -0
- package/dist/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/semver/functions/coerce.js +34 -0
- package/dist/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-build.js +15 -0
- package/dist/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-loose.js +12 -0
- package/dist/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/semver/functions/compare.js +12 -0
- package/dist/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/semver/functions/diff.js +25 -0
- package/dist/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/semver/functions/eq.js +12 -0
- package/dist/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/semver/functions/gt.js +12 -0
- package/dist/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/semver/functions/gte.js +12 -0
- package/dist/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/semver/functions/inc.js +22 -0
- package/dist/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/semver/functions/lt.js +12 -0
- package/dist/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/semver/functions/lte.js +12 -0
- package/dist/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/semver/functions/major.js +12 -0
- package/dist/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/semver/functions/minor.js +12 -0
- package/dist/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/semver/functions/neq.js +12 -0
- package/dist/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/semver/functions/parse.js +22 -0
- package/dist/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/semver/functions/patch.js +12 -0
- package/dist/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/semver/functions/prerelease.js +15 -0
- package/dist/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/semver/functions/rcompare.js +12 -0
- package/dist/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/semver/functions/rsort.js +12 -0
- package/dist/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/semver/functions/satisfies.js +19 -0
- package/dist/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/semver/functions/sort.js +12 -0
- package/dist/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/semver/functions/valid.js +15 -0
- package/dist/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/semver/index.js +98 -0
- package/dist/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/semver/internal/constants.js +29 -0
- package/dist/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/semver/internal/debug.js +9 -0
- package/dist/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/semver/internal/identifiers.js +17 -0
- package/dist/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/semver/internal/lrucache.js +33 -0
- package/dist/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/semver/internal/parse-options.js +11 -0
- package/dist/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/semver/internal/re.js +33 -0
- package/dist/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/semver/ranges/gtr.js +12 -0
- package/dist/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/semver/ranges/intersects.js +12 -0
- package/dist/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/semver/ranges/ltr.js +12 -0
- package/dist/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +23 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +23 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-version.js +43 -0
- package/dist/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/semver/ranges/outside.js +45 -0
- package/dist/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/semver/ranges/simplify.js +25 -0
- package/dist/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/semver/ranges/subset.js +95 -0
- package/dist/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +12 -0
- package/dist/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/semver/ranges/valid.js +18 -0
- package/dist/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/Options.js +32 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/Options.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/Refs.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/errorMessages.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parseDef.js +44 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parseDef.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +7 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/any.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +17 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/array.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +26 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +9 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +8 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +6 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +59 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/date.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +11 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/default.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +8 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +10 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +36 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +16 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +27 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/map.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +11 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +9 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/never.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +12 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/null.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +30 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +28 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/number.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +50 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/object.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +22 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +21 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +8 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +6 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +56 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/record.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +17 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/set.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +245 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +27 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +9 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +69 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/union.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +7 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/selectParser.js +110 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/selectParser.js.map +1 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +26 -0
- package/dist/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js.map +1 -0
- package/dist/plugins/BasePlugin.d.ts +28 -0
- package/dist/plugins/BasePlugin.js +19 -0
- package/dist/plugins/BasePlugin.js.map +1 -0
- package/dist/plugins/PluginInterface.d.ts +64 -0
- package/dist/plugins/PluginLoader.d.ts +38 -0
- package/dist/plugins/PluginLoader.js +60 -0
- package/dist/plugins/PluginLoader.js.map +1 -0
- package/dist/plugins/PluginRegistry.d.ts +47 -0
- package/dist/plugins/PluginRegistry.js +71 -0
- package/dist/plugins/PluginRegistry.js.map +1 -0
- package/dist/plugins/__tests__/BasePlugin.test.d.ts +1 -0
- package/dist/plugins/__tests__/PluginLoader.test.d.ts +1 -0
- package/dist/plugins/__tests__/PluginRegistry.test.d.ts +1 -0
- package/dist/plugins/defi/index.d.ts +13 -0
- package/dist/plugins/hedera/HbarPricePlugin.d.ts +45 -0
- package/dist/plugins/hedera/HbarPricePlugin.js +70 -0
- package/dist/plugins/hedera/HbarPricePlugin.js.map +1 -0
- package/dist/plugins/hedera/__tests__/HbarPricePlugin.test.d.ts +1 -0
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/weather/index.d.ts +15 -0
- package/dist/src/agents/index.d.ts +0 -0
- package/dist/src/plugins/hedera/HbarPricePlugin.d.ts +45 -0
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/tools/CheckMessagesTool.d.ts +9 -2
- package/dist/src/utils/state-tools.d.ts +23 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/open-convai-state.d.ts +84 -0
- package/dist/state/open-convai-state.js +132 -0
- package/dist/state/open-convai-state.js.map +1 -0
- package/dist/state/state-types.d.ts +143 -0
- package/dist/tools/AcceptConnectionRequestTool.d.ts +33 -0
- package/dist/tools/AcceptConnectionRequestTool.js +116 -0
- package/dist/tools/AcceptConnectionRequestTool.js.map +1 -0
- package/dist/tools/CheckMessagesTool.d.ts +34 -0
- package/dist/tools/CheckMessagesTool.js +96 -0
- package/dist/tools/CheckMessagesTool.js.map +1 -0
- package/dist/tools/ConnectionMonitorTool.d.ts +96 -0
- package/dist/tools/ConnectionMonitorTool.js +289 -0
- package/dist/tools/ConnectionMonitorTool.js.map +1 -0
- package/dist/tools/ConnectionTool.d.ts +40 -0
- package/dist/tools/ConnectionTool.js +114 -0
- package/dist/tools/ConnectionTool.js.map +1 -0
- package/dist/tools/FindRegistrationsTool.d.ts +27 -0
- package/dist/tools/FindRegistrationsTool.js +64 -0
- package/dist/tools/FindRegistrationsTool.js.map +1 -0
- package/dist/tools/InitiateConnectionTool.d.ts +30 -0
- package/dist/tools/InitiateConnectionTool.js +79 -0
- package/dist/tools/InitiateConnectionTool.js.map +1 -0
- package/dist/tools/ListConnectionsTool.d.ts +33 -0
- package/dist/tools/ListConnectionsTool.js +327 -0
- package/dist/tools/ListConnectionsTool.js.map +1 -0
- package/dist/tools/ListUnapprovedConnectionRequestsTool.d.ts +53 -0
- package/dist/tools/ListUnapprovedConnectionRequestsTool.js +177 -0
- package/dist/tools/ListUnapprovedConnectionRequestsTool.js.map +1 -0
- package/dist/tools/ManageConnectionRequestsTool.d.ts +39 -0
- package/dist/tools/ManageConnectionRequestsTool.js +161 -0
- package/dist/tools/ManageConnectionRequestsTool.js.map +1 -0
- package/dist/tools/RegisterAgentTool.d.ts +188 -0
- package/dist/tools/RegisterAgentTool.js +331 -0
- package/dist/tools/RegisterAgentTool.js.map +1 -0
- package/dist/tools/RetrieveProfileTool.d.ts +34 -0
- package/dist/tools/RetrieveProfileTool.js +53 -0
- package/dist/tools/RetrieveProfileTool.js.map +1 -0
- package/dist/tools/SendMessageToConnectionTool.d.ts +31 -0
- package/dist/tools/SendMessageToConnectionTool.js +74 -0
- package/dist/tools/SendMessageToConnectionTool.js.map +1 -0
- package/dist/tools/SendMessageTool.d.ts +44 -0
- package/dist/tools/SendMessageTool.js +75 -0
- package/dist/tools/SendMessageTool.js.map +1 -0
- package/dist/tools/index.d.ts +13 -0
- package/dist/utils/Encryption.d.ts +7 -0
- package/dist/utils/Encryption.js +7 -0
- package/dist/utils/Encryption.js.map +1 -0
- package/dist/utils/HederaClient.d.ts +18 -0
- package/dist/utils/connectionUtils.d.ts +15 -0
- package/dist/utils/connectionUtils.js +64 -0
- package/dist/utils/connectionUtils.js.map +1 -0
- package/dist/utils/state-tools.d.ts +23 -0
- package/dist/utils/state-tools.js +90 -0
- package/dist/utils/state-tools.js.map +1 -0
- package/package.json +20 -10
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __require as C } from "../classes/semver.js";
|
|
2
|
+
import { __require as E } from "../classes/comparator.js";
|
|
3
|
+
import { __require as G } from "../classes/range.js";
|
|
4
|
+
import { __require as L } from "../functions/satisfies.js";
|
|
5
|
+
import { __require as O } from "../functions/gt.js";
|
|
6
|
+
import { __require as x } from "../functions/lt.js";
|
|
7
|
+
import { __require as y } from "../functions/lte.js";
|
|
8
|
+
import { __require as A } from "../functions/gte.js";
|
|
9
|
+
var q, d;
|
|
10
|
+
function F() {
|
|
11
|
+
if (d) return q;
|
|
12
|
+
d = 1;
|
|
13
|
+
const h = C(), _ = E(), { ANY: v } = _, w = G(), g = L(), c = O(), p = x(), R = y(), S = A();
|
|
14
|
+
return q = (s, i, b, u) => {
|
|
15
|
+
s = new h(s, u), i = new w(i, u);
|
|
16
|
+
let m, a, o, f, l;
|
|
17
|
+
switch (b) {
|
|
18
|
+
case ">":
|
|
19
|
+
m = c, a = R, o = p, f = ">", l = ">=";
|
|
20
|
+
break;
|
|
21
|
+
case "<":
|
|
22
|
+
m = p, a = S, o = c, f = "<", l = "<=";
|
|
23
|
+
break;
|
|
24
|
+
default:
|
|
25
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
26
|
+
}
|
|
27
|
+
if (g(s, i, u))
|
|
28
|
+
return !1;
|
|
29
|
+
for (let n = 0; n < i.set.length; ++n) {
|
|
30
|
+
const k = i.set[n];
|
|
31
|
+
let t = null, e = null;
|
|
32
|
+
if (k.forEach((r) => {
|
|
33
|
+
r.semver === v && (r = new _(">=0.0.0")), t = t || r, e = e || r, m(r.semver, t.semver, u) ? t = r : o(r.semver, e.semver, u) && (e = r);
|
|
34
|
+
}), t.operator === f || t.operator === l || (!e.operator || e.operator === f) && a(s, e.semver))
|
|
35
|
+
return !1;
|
|
36
|
+
if (e.operator === l && o(s, e.semver))
|
|
37
|
+
return !1;
|
|
38
|
+
}
|
|
39
|
+
return !0;
|
|
40
|
+
}, q;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
F as __require
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=outside.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outside.js","sources":["../../../../node_modules/semver/ranges/outside.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n"],"names":["SemVer","require$$0","Comparator","require$$1","ANY","Range","require$$2","satisfies","require$$3","gt","require$$4","lt","require$$5","lte","require$$6","gte","require$$7","outside_1","version","range","hilo","options","gtfn","ltefn","ltfn","comp","ecomp","i","comparators","high","low","comparator"],"mappings":";;;;;;;;;;;;AAAA,QAAMA,IAASC,EAAA,GACTC,IAAaC,EAAA,GACb,EAAE,KAAAC,EAAG,IAAKF,GACVG,IAAQC,EAAA,GACRC,IAAYC,EAAA,GACZC,IAAKC,EAAA,GACLC,IAAKC,EAAA,GACLC,IAAMC,EAAA,GACNC,IAAMC,EAAA;AAuEZ,SAAAC,IArEgB,CAACC,GAASC,GAAOC,GAAMC,MAAY;AACjD,IAAAH,IAAU,IAAIlB,EAAOkB,GAASG,CAAO,GACrCF,IAAQ,IAAId,EAAMc,GAAOE,CAAO;AAEhC,QAAIC,GAAMC,GAAOC,GAAMC,GAAMC;AAC7B,YAAQN,GAAI;AAAA,MACV,KAAK;AACH,QAAAE,IAAOb,GACPc,IAAQV,GACRW,IAAOb,GACPc,IAAO,KACPC,IAAQ;AACR;AAAA,MACF,KAAK;AACH,QAAAJ,IAAOX,GACPY,IAAQR,GACRS,IAAOf,GACPgB,IAAO,KACPC,IAAQ;AACR;AAAA,MACF;AACE,cAAM,IAAI,UAAU,uCAAuC;AAAA,IACjE;AAGE,QAAInB,EAAUW,GAASC,GAAOE,CAAO;AACnC,aAAO;AAMT,aAASM,IAAI,GAAGA,IAAIR,EAAM,IAAI,QAAQ,EAAEQ,GAAG;AACzC,YAAMC,IAAcT,EAAM,IAAIQ,CAAC;AAE/B,UAAIE,IAAO,MACPC,IAAM;AAuBV,UArBAF,EAAY,QAAQ,CAACG,MAAe;AAClC,QAAIA,EAAW,WAAW3B,MACxB2B,IAAa,IAAI7B,EAAW,SAAS,IAEvC2B,IAAOA,KAAQE,GACfD,IAAMA,KAAOC,GACTT,EAAKS,EAAW,QAAQF,EAAK,QAAQR,CAAO,IAC9CQ,IAAOE,IACEP,EAAKO,EAAW,QAAQD,EAAI,QAAQT,CAAO,MACpDS,IAAMC;AAAA,MAET,CAAA,GAIGF,EAAK,aAAaJ,KAAQI,EAAK,aAAaH,MAM3C,CAACI,EAAI,YAAYA,EAAI,aAAaL,MACnCF,EAAML,GAASY,EAAI,MAAM;AAC3B,eAAO;AACF,UAAIA,EAAI,aAAaJ,KAASF,EAAKN,GAASY,EAAI,MAAM;AAC3D,eAAO;AAAA,IAEb;AACE,WAAO;AAAA,EACT;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __require as d } from "../functions/satisfies.js";
|
|
2
|
+
import { __require as _ } from "../functions/compare.js";
|
|
3
|
+
var u, c;
|
|
4
|
+
function S() {
|
|
5
|
+
if (c) return u;
|
|
6
|
+
c = 1;
|
|
7
|
+
const m = d(), a = _();
|
|
8
|
+
return u = (h, t, f) => {
|
|
9
|
+
const n = [];
|
|
10
|
+
let s = null, l = null;
|
|
11
|
+
const o = h.sort((i, e) => a(i, e, f));
|
|
12
|
+
for (const i of o)
|
|
13
|
+
m(i, t, f) ? (l = i, s || (s = i)) : (l && n.push([s, l]), l = null, s = null);
|
|
14
|
+
s && n.push([s, null]);
|
|
15
|
+
const r = [];
|
|
16
|
+
for (const [i, e] of n)
|
|
17
|
+
i === e ? r.push(i) : !e && i === o[0] ? r.push("*") : e ? i === o[0] ? r.push(`<=${e}`) : r.push(`${i} - ${e}`) : r.push(`>=${i}`);
|
|
18
|
+
const p = r.join(" || "), q = typeof t.raw == "string" ? t.raw : String(t);
|
|
19
|
+
return p.length < q.length ? p : t;
|
|
20
|
+
}, u;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
S as __require
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=simplify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simplify.js","sources":["../../../../node_modules/semver/ranges/simplify.js"],"sourcesContent":["// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n"],"names":["satisfies","require$$0","compare","require$$1","simplify","versions","range","options","set","first","prev","v","a","b","version","ranges","min","max","simplified","original"],"mappings":";;;;;;AAGA,QAAMA,IAAYC,EAAA,GACZC,IAAUC,EAAA;AAChB,SAAAC,IAAiB,CAACC,GAAUC,GAAOC,MAAY;AAC7C,UAAMC,IAAM,CAAA;AACZ,QAAIC,IAAQ,MACRC,IAAO;AACX,UAAMC,IAAIN,EAAS,KAAK,CAACO,GAAGC,MAAMX,EAAQU,GAAGC,GAAGN,CAAO,CAAC;AACxD,eAAWO,KAAWH;AAEpB,MADiBX,EAAUc,GAASR,GAAOC,CAAO,KAEhDG,IAAOI,GACFL,MACHA,IAAQK,OAGNJ,KACFF,EAAI,KAAK,CAACC,GAAOC,CAAI,CAAC,GAExBA,IAAO,MACPD,IAAQ;AAGZ,IAAIA,KACFD,EAAI,KAAK,CAACC,GAAO,IAAI,CAAC;AAGxB,UAAMM,IAAS,CAAA;AACf,eAAW,CAACC,GAAKC,CAAG,KAAKT;AACvB,MAAIQ,MAAQC,IACVF,EAAO,KAAKC,CAAG,IACN,CAACC,KAAOD,MAAQL,EAAE,CAAC,IAC5BI,EAAO,KAAK,GAAG,IACLE,IAEDD,MAAQL,EAAE,CAAC,IACpBI,EAAO,KAAK,KAAKE,CAAG,EAAE,IAEtBF,EAAO,KAAK,GAAGC,CAAG,MAAMC,CAAG,EAAE,IAJ7BF,EAAO,KAAK,KAAKC,CAAG,EAAE;AAO1B,UAAME,IAAaH,EAAO,KAAK,MAAM,GAC/BI,IAAW,OAAOb,EAAM,OAAQ,WAAWA,EAAM,MAAM,OAAOA,CAAK;AACzE,WAAOY,EAAW,SAASC,EAAS,SAASD,IAAaZ;AAAA,EAC5D;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { __require as L } from "../classes/range.js";
|
|
2
|
+
import { __require as N } from "../classes/comparator.js";
|
|
3
|
+
import { __require as V } from "../functions/satisfies.js";
|
|
4
|
+
import { __require as x } from "../functions/compare.js";
|
|
5
|
+
var S, D;
|
|
6
|
+
function k() {
|
|
7
|
+
if (D) return S;
|
|
8
|
+
D = 1;
|
|
9
|
+
const _ = L(), m = N(), { ANY: c } = m, u = V(), p = x(), j = (t, r, s = {}) => {
|
|
10
|
+
if (t === r)
|
|
11
|
+
return !0;
|
|
12
|
+
t = new _(t, s), r = new _(r, s);
|
|
13
|
+
let o = !1;
|
|
14
|
+
e: for (const l of t.set) {
|
|
15
|
+
for (const n of r.set) {
|
|
16
|
+
const f = R(l, n, s);
|
|
17
|
+
if (o = o || f !== null, f)
|
|
18
|
+
continue e;
|
|
19
|
+
}
|
|
20
|
+
if (o)
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
return !0;
|
|
24
|
+
}, C = [new m(">=0.0.0-0")], w = [new m(">=0.0.0")], R = (t, r, s) => {
|
|
25
|
+
if (t === r)
|
|
26
|
+
return !0;
|
|
27
|
+
if (t.length === 1 && t[0].semver === c) {
|
|
28
|
+
if (r.length === 1 && r[0].semver === c)
|
|
29
|
+
return !0;
|
|
30
|
+
s.includePrerelease ? t = C : t = w;
|
|
31
|
+
}
|
|
32
|
+
if (r.length === 1 && r[0].semver === c) {
|
|
33
|
+
if (s.includePrerelease)
|
|
34
|
+
return !0;
|
|
35
|
+
r = w;
|
|
36
|
+
}
|
|
37
|
+
const o = /* @__PURE__ */ new Set();
|
|
38
|
+
let l, n;
|
|
39
|
+
for (const e of t)
|
|
40
|
+
e.operator === ">" || e.operator === ">=" ? l = P(l, e, s) : e.operator === "<" || e.operator === "<=" ? n = T(n, e, s) : o.add(e.semver);
|
|
41
|
+
if (o.size > 1)
|
|
42
|
+
return null;
|
|
43
|
+
let f;
|
|
44
|
+
if (l && n) {
|
|
45
|
+
if (f = p(l.semver, n.semver, s), f > 0)
|
|
46
|
+
return null;
|
|
47
|
+
if (f === 0 && (l.operator !== ">=" || n.operator !== "<="))
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
for (const e of o) {
|
|
51
|
+
if (l && !u(e, String(l), s) || n && !u(e, String(n), s))
|
|
52
|
+
return null;
|
|
53
|
+
for (const G of r)
|
|
54
|
+
if (!u(e, String(G), s))
|
|
55
|
+
return !1;
|
|
56
|
+
return !0;
|
|
57
|
+
}
|
|
58
|
+
let v, h, g, q, a = n && !s.includePrerelease && n.semver.prerelease.length ? n.semver : !1, i = l && !s.includePrerelease && l.semver.prerelease.length ? l.semver : !1;
|
|
59
|
+
a && a.prerelease.length === 1 && n.operator === "<" && a.prerelease[0] === 0 && (a = !1);
|
|
60
|
+
for (const e of r) {
|
|
61
|
+
if (q = q || e.operator === ">" || e.operator === ">=", g = g || e.operator === "<" || e.operator === "<=", l) {
|
|
62
|
+
if (i && e.semver.prerelease && e.semver.prerelease.length && e.semver.major === i.major && e.semver.minor === i.minor && e.semver.patch === i.patch && (i = !1), e.operator === ">" || e.operator === ">=") {
|
|
63
|
+
if (v = P(l, e, s), v === e && v !== l)
|
|
64
|
+
return !1;
|
|
65
|
+
} else if (l.operator === ">=" && !u(l.semver, String(e), s))
|
|
66
|
+
return !1;
|
|
67
|
+
}
|
|
68
|
+
if (n) {
|
|
69
|
+
if (a && e.semver.prerelease && e.semver.prerelease.length && e.semver.major === a.major && e.semver.minor === a.minor && e.semver.patch === a.patch && (a = !1), e.operator === "<" || e.operator === "<=") {
|
|
70
|
+
if (h = T(n, e, s), h === e && h !== n)
|
|
71
|
+
return !1;
|
|
72
|
+
} else if (n.operator === "<=" && !u(n.semver, String(e), s))
|
|
73
|
+
return !1;
|
|
74
|
+
}
|
|
75
|
+
if (!e.operator && (n || l) && f !== 0)
|
|
76
|
+
return !1;
|
|
77
|
+
}
|
|
78
|
+
return !(l && g && !n && f !== 0 || n && q && !l && f !== 0 || i || a);
|
|
79
|
+
}, P = (t, r, s) => {
|
|
80
|
+
if (!t)
|
|
81
|
+
return r;
|
|
82
|
+
const o = p(t.semver, r.semver, s);
|
|
83
|
+
return o > 0 ? t : o < 0 || r.operator === ">" && t.operator === ">=" ? r : t;
|
|
84
|
+
}, T = (t, r, s) => {
|
|
85
|
+
if (!t)
|
|
86
|
+
return r;
|
|
87
|
+
const o = p(t.semver, r.semver, s);
|
|
88
|
+
return o < 0 ? t : o > 0 || r.operator === "<" && t.operator === "<=" ? r : t;
|
|
89
|
+
};
|
|
90
|
+
return S = j, S;
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
k as __require
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=subset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subset.js","sources":["../../../../node_modules/semver/ranges/subset.js"],"sourcesContent":["const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n"],"names":["Range","require$$0","Comparator","require$$1","ANY","satisfies","require$$2","compare","require$$3","subset","sub","dom","options","sawNonNull","OUTER","simpleSub","simpleDom","isSub","simpleSubset","minimumVersionWithPreRelease","minimumVersion","eqSet","gt","lt","c","higherGT","lowerLT","gtltComp","eq","higher","lower","hasDomLT","hasDomGT","needDomLTPre","needDomGTPre","a","b","comp","subset_1"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __require as m } from "../classes/range.js";
|
|
2
|
+
var r, o;
|
|
3
|
+
function u() {
|
|
4
|
+
if (o) return r;
|
|
5
|
+
o = 1;
|
|
6
|
+
const a = m();
|
|
7
|
+
return r = (e, t) => new a(e, t).set.map((s) => s.map((i) => i.value).join(" ").trim().split(" ")), r;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
u as __require
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=to-comparators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-comparators.js","sources":["../../../../node_modules/semver/ranges/to-comparators.js"],"sourcesContent":["const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n"],"names":["Range","require$$0","toComparators_1","range","options","comp","c"],"mappings":";;;;;AAAA,QAAMA,IAAQC,EAAA;AAOd,SAAAC,IAJsB,CAACC,GAAOC,MAC5B,IAAIJ,EAAMG,GAAOC,CAAO,EAAE,IACvB,IAAI,CAAAC,MAAQA,EAAK,IAAI,CAAAC,MAAKA,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,KAAI,EAAG,MAAM,GAAG,CAAC;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __require as t } from "../classes/range.js";
|
|
2
|
+
var r, e;
|
|
3
|
+
function o() {
|
|
4
|
+
if (e) return r;
|
|
5
|
+
e = 1;
|
|
6
|
+
const a = t();
|
|
7
|
+
return r = (n, i) => {
|
|
8
|
+
try {
|
|
9
|
+
return new a(n, i).range || "*";
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
}, r;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
o as __require
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=valid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valid.js","sources":["../../../../node_modules/semver/ranges/valid.js"],"sourcesContent":["const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n"],"names":["Range","require$$0","valid","range","options"],"mappings":";;;;;AAAA,QAAMA,IAAQC,EAAA;AAUd,SAAAC,IATmB,CAACC,GAAOC,MAAY;AACrC,QAAI;AAGF,aAAO,IAAIJ,EAAMG,GAAOC,CAAO,EAAE,SAAS;AAAA,IAC3C,QAAY;AACX,aAAO;AAAA,IACX;AAAA,EACA;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const a = Symbol("Let zodToJsonSchema decide on which parser to use"), t = {
|
|
2
|
+
name: void 0,
|
|
3
|
+
$refStrategy: "root",
|
|
4
|
+
basePath: ["#"],
|
|
5
|
+
effectStrategy: "input",
|
|
6
|
+
pipeStrategy: "all",
|
|
7
|
+
dateStrategy: "format:date-time",
|
|
8
|
+
mapStrategy: "entries",
|
|
9
|
+
removeAdditionalStrategy: "passthrough",
|
|
10
|
+
allowedAdditionalProperties: !0,
|
|
11
|
+
rejectedAdditionalProperties: !1,
|
|
12
|
+
definitionPath: "definitions",
|
|
13
|
+
target: "jsonSchema7",
|
|
14
|
+
strictUnions: !1,
|
|
15
|
+
definitions: {},
|
|
16
|
+
errorMessages: !1,
|
|
17
|
+
markdownDescription: !1,
|
|
18
|
+
patternStrategy: "escape",
|
|
19
|
+
applyRegexFlags: !1,
|
|
20
|
+
emailStrategy: "format:email",
|
|
21
|
+
base64Strategy: "contentEncoding:base64",
|
|
22
|
+
nameStrategy: "ref"
|
|
23
|
+
}, r = (e) => ({
|
|
24
|
+
...t,
|
|
25
|
+
...e
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
t as defaultOptions,
|
|
29
|
+
r as getDefaultOptions,
|
|
30
|
+
a as ignoreOverride
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=Options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Options.js","sources":["../../../../../node_modules/zod-to-json-schema/dist/esm/Options.js"],"sourcesContent":["export const ignoreOverride = Symbol(\"Let zodToJsonSchema decide on which parser to use\");\nexport const jsonDescription = (jsonSchema, def) => {\n if (def.description) {\n try {\n return {\n ...jsonSchema,\n ...JSON.parse(def.description),\n };\n }\n catch { }\n }\n return jsonSchema;\n};\nexport const defaultOptions = {\n name: undefined,\n $refStrategy: \"root\",\n basePath: [\"#\"],\n effectStrategy: \"input\",\n pipeStrategy: \"all\",\n dateStrategy: \"format:date-time\",\n mapStrategy: \"entries\",\n removeAdditionalStrategy: \"passthrough\",\n allowedAdditionalProperties: true,\n rejectedAdditionalProperties: false,\n definitionPath: \"definitions\",\n target: \"jsonSchema7\",\n strictUnions: false,\n definitions: {},\n errorMessages: false,\n markdownDescription: false,\n patternStrategy: \"escape\",\n applyRegexFlags: false,\n emailStrategy: \"format:email\",\n base64Strategy: \"contentEncoding:base64\",\n nameStrategy: \"ref\",\n};\nexport const getDefaultOptions = (options) => (typeof options === \"string\"\n ? {\n ...defaultOptions,\n name: options,\n }\n : {\n ...defaultOptions,\n ...options,\n });\n"],"names":["ignoreOverride","defaultOptions","getDefaultOptions","options"],"mappings":"AAAY,MAACA,IAAiB,OAAO,mDAAmD,GAa3EC,IAAiB;AAAA,EAC1B,MAAM;AAAA,EACN,cAAc;AAAA,EACd,UAAU,CAAC,GAAG;AAAA,EACd,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,cAAc;AAAA,EACd,aAAa;AAAA,EACb,0BAA0B;AAAA,EAC1B,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,aAAa,CAAE;AAAA,EACf,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAClB,GACaC,IAAoB,CAACC,OAK5B;AAAA,EACE,GAAGF;AAAA,EACH,GAAGE;AACN;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getDefaultOptions as o } from "./Options.js";
|
|
2
|
+
const r = (n) => {
|
|
3
|
+
const e = o(n), a = e.name !== void 0 ? [...e.basePath, e.definitionPath, e.name] : e.basePath;
|
|
4
|
+
return {
|
|
5
|
+
...e,
|
|
6
|
+
currentPath: a,
|
|
7
|
+
propertyPath: void 0,
|
|
8
|
+
seen: new Map(Object.entries(e.definitions).map(([i, t]) => [
|
|
9
|
+
t._def,
|
|
10
|
+
{
|
|
11
|
+
def: t._def,
|
|
12
|
+
path: [...e.basePath, e.definitionPath, i],
|
|
13
|
+
// Resolution of references will be forced even though seen, so it's ok that the schema is undefined here for now.
|
|
14
|
+
jsonSchema: void 0
|
|
15
|
+
}
|
|
16
|
+
]))
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
r as getRefs
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Refs.js","sources":["../../../../../node_modules/zod-to-json-schema/dist/esm/Refs.js"],"sourcesContent":["import { getDefaultOptions } from \"./Options.js\";\nexport const getRefs = (options) => {\n const _options = getDefaultOptions(options);\n const currentPath = _options.name !== undefined\n ? [..._options.basePath, _options.definitionPath, _options.name]\n : _options.basePath;\n return {\n ..._options,\n currentPath: currentPath,\n propertyPath: undefined,\n seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [\n def._def,\n {\n def: def._def,\n path: [..._options.basePath, _options.definitionPath, name],\n // Resolution of references will be forced even though seen, so it's ok that the schema is undefined here for now.\n jsonSchema: undefined,\n },\n ])),\n };\n};\n"],"names":["getRefs","options","_options","getDefaultOptions","currentPath","name","def"],"mappings":";AACY,MAACA,IAAU,CAACC,MAAY;AAChC,QAAMC,IAAWC,EAAkBF,CAAO,GACpCG,IAAcF,EAAS,SAAS,SAChC,CAAC,GAAGA,EAAS,UAAUA,EAAS,gBAAgBA,EAAS,IAAI,IAC7DA,EAAS;AACf,SAAO;AAAA,IACH,GAAGA;AAAA,IACH,aAAaE;AAAA,IACb,cAAc;AAAA,IACd,MAAM,IAAI,IAAI,OAAO,QAAQF,EAAS,WAAW,EAAE,IAAI,CAAC,CAACG,GAAMC,CAAG,MAAM;AAAA,MACpEA,EAAI;AAAA,MACJ;AAAA,QACI,KAAKA,EAAI;AAAA,QACT,MAAM,CAAC,GAAGJ,EAAS,UAAUA,EAAS,gBAAgBG,CAAI;AAAA;AAAA,QAE1D,YAAY;AAAA,MACf;AAAA,IACb,CAAS,CAAC;AAAA,EACL;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function s(r, e, n, o) {
|
|
2
|
+
o != null && o.errorMessages && n && (r.errorMessage = {
|
|
3
|
+
...r.errorMessage,
|
|
4
|
+
[e]: n
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
function t(r, e, n, o, a) {
|
|
8
|
+
r[e] = n, s(r, e, o, a);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as addErrorMessage,
|
|
12
|
+
t as setResponseValueAndErrors
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=errorMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorMessages.js","sources":["../../../../../node_modules/zod-to-json-schema/dist/esm/errorMessages.js"],"sourcesContent":["export function addErrorMessage(res, key, errorMessage, refs) {\n if (!refs?.errorMessages)\n return;\n if (errorMessage) {\n res.errorMessage = {\n ...res.errorMessage,\n [key]: errorMessage,\n };\n }\n}\nexport function setResponseValueAndErrors(res, key, value, errorMessage, refs) {\n res[key] = value;\n addErrorMessage(res, key, errorMessage, refs);\n}\n"],"names":["addErrorMessage","res","key","errorMessage","refs","setResponseValueAndErrors","value"],"mappings":"AAAO,SAASA,EAAgBC,GAAKC,GAAKC,GAAcC,GAAM;AAC1D,EAAKA,KAAA,QAAAA,EAAM,iBAEPD,MACAF,EAAI,eAAe;AAAA,IACf,GAAGA,EAAI;AAAA,IACP,CAACC,CAAG,GAAGC;AAAA,EACV;AAET;AACO,SAASE,EAA0BJ,GAAKC,GAAKI,GAAOH,GAAcC,GAAM;AAC3E,EAAAH,EAAIC,CAAG,IAAII,GACXN,EAAgBC,GAAKC,GAAKC,GAAcC,CAAI;AAChD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ignoreOverride as u } from "./Options.js";
|
|
2
|
+
import { selectParser as h } from "./selectParser.js";
|
|
3
|
+
function p(t, e, n = !1) {
|
|
4
|
+
var s;
|
|
5
|
+
const i = e.seen.get(t);
|
|
6
|
+
if (e.override) {
|
|
7
|
+
const r = (s = e.override) == null ? void 0 : s.call(e, t, e, i, n);
|
|
8
|
+
if (r !== u)
|
|
9
|
+
return r;
|
|
10
|
+
}
|
|
11
|
+
if (i && !n) {
|
|
12
|
+
const r = l(i, e);
|
|
13
|
+
if (r !== void 0)
|
|
14
|
+
return r;
|
|
15
|
+
}
|
|
16
|
+
const c = { def: t, path: e.currentPath, jsonSchema: void 0 };
|
|
17
|
+
e.seen.set(t, c);
|
|
18
|
+
const a = h(t, t.typeName, e), o = typeof a == "function" ? p(a(), e) : a;
|
|
19
|
+
if (o && d(t, e, o), e.postProcess) {
|
|
20
|
+
const r = e.postProcess(o, t, e);
|
|
21
|
+
return c.jsonSchema = o, r;
|
|
22
|
+
}
|
|
23
|
+
return c.jsonSchema = o, o;
|
|
24
|
+
}
|
|
25
|
+
const l = (t, e) => {
|
|
26
|
+
switch (e.$refStrategy) {
|
|
27
|
+
case "root":
|
|
28
|
+
return { $ref: t.path.join("/") };
|
|
29
|
+
case "relative":
|
|
30
|
+
return { $ref: g(e.currentPath, t.path) };
|
|
31
|
+
case "none":
|
|
32
|
+
case "seen":
|
|
33
|
+
return t.path.length < e.currentPath.length && t.path.every((n, i) => e.currentPath[i] === n) ? (console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`), {}) : e.$refStrategy === "seen" ? {} : void 0;
|
|
34
|
+
}
|
|
35
|
+
}, g = (t, e) => {
|
|
36
|
+
let n = 0;
|
|
37
|
+
for (; n < t.length && n < e.length && t[n] === e[n]; n++)
|
|
38
|
+
;
|
|
39
|
+
return [(t.length - n).toString(), ...e.slice(n)].join("/");
|
|
40
|
+
}, d = (t, e, n) => (t.description && (n.description = t.description, e.markdownDescription && (n.markdownDescription = t.description)), n);
|
|
41
|
+
export {
|
|
42
|
+
p as parseDef
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=parseDef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseDef.js","sources":["../../../../../node_modules/zod-to-json-schema/dist/esm/parseDef.js"],"sourcesContent":["import { ignoreOverride } from \"./Options.js\";\nimport { selectParser } from \"./selectParser.js\";\nexport function parseDef(def, refs, forceResolution = false) {\n const seenItem = refs.seen.get(def);\n if (refs.override) {\n const overrideResult = refs.override?.(def, refs, seenItem, forceResolution);\n if (overrideResult !== ignoreOverride) {\n return overrideResult;\n }\n }\n if (seenItem && !forceResolution) {\n const seenSchema = get$ref(seenItem, refs);\n if (seenSchema !== undefined) {\n return seenSchema;\n }\n }\n const newItem = { def, path: refs.currentPath, jsonSchema: undefined };\n refs.seen.set(def, newItem);\n const jsonSchemaOrGetter = selectParser(def, def.typeName, refs);\n // If the return was a function, then the inner definition needs to be extracted before a call to parseDef (recursive)\n const jsonSchema = typeof jsonSchemaOrGetter === \"function\"\n ? parseDef(jsonSchemaOrGetter(), refs)\n : jsonSchemaOrGetter;\n if (jsonSchema) {\n addMeta(def, refs, jsonSchema);\n }\n if (refs.postProcess) {\n const postProcessResult = refs.postProcess(jsonSchema, def, refs);\n newItem.jsonSchema = jsonSchema;\n return postProcessResult;\n }\n newItem.jsonSchema = jsonSchema;\n return jsonSchema;\n}\nconst get$ref = (item, refs) => {\n switch (refs.$refStrategy) {\n case \"root\":\n return { $ref: item.path.join(\"/\") };\n case \"relative\":\n return { $ref: getRelativePath(refs.currentPath, item.path) };\n case \"none\":\n case \"seen\": {\n if (item.path.length < refs.currentPath.length &&\n item.path.every((value, index) => refs.currentPath[index] === value)) {\n console.warn(`Recursive reference detected at ${refs.currentPath.join(\"/\")}! Defaulting to any`);\n return {};\n }\n return refs.$refStrategy === \"seen\" ? {} : undefined;\n }\n }\n};\nconst getRelativePath = (pathA, pathB) => {\n let i = 0;\n for (; i < pathA.length && i < pathB.length; i++) {\n if (pathA[i] !== pathB[i])\n break;\n }\n return [(pathA.length - i).toString(), ...pathB.slice(i)].join(\"/\");\n};\nconst addMeta = (def, refs, jsonSchema) => {\n if (def.description) {\n jsonSchema.description = def.description;\n if (refs.markdownDescription) {\n jsonSchema.markdownDescription = def.description;\n }\n }\n return jsonSchema;\n};\n"],"names":["parseDef","def","refs","forceResolution","seenItem","overrideResult","_a","ignoreOverride","seenSchema","get$ref","newItem","jsonSchemaOrGetter","selectParser","jsonSchema","addMeta","postProcessResult","item","getRelativePath","value","index","pathA","pathB","i"],"mappings":";;AAEO,SAASA,EAASC,GAAKC,GAAMC,IAAkB,IAAO;;AACzD,QAAMC,IAAWF,EAAK,KAAK,IAAID,CAAG;AAClC,MAAIC,EAAK,UAAU;AACf,UAAMG,KAAiBC,IAAAJ,EAAK,aAAL,gBAAAI,EAAA,KAAAJ,GAAgBD,GAAKC,GAAME,GAAUD;AAC5D,QAAIE,MAAmBE;AACnB,aAAOF;AAAA,EAEnB;AACI,MAAID,KAAY,CAACD,GAAiB;AAC9B,UAAMK,IAAaC,EAAQL,GAAUF,CAAI;AACzC,QAAIM,MAAe;AACf,aAAOA;AAAA,EAEnB;AACI,QAAME,IAAU,EAAE,KAAAT,GAAK,MAAMC,EAAK,aAAa,YAAY,OAAW;AACtE,EAAAA,EAAK,KAAK,IAAID,GAAKS,CAAO;AAC1B,QAAMC,IAAqBC,EAAaX,GAAKA,EAAI,UAAUC,CAAI,GAEzDW,IAAa,OAAOF,KAAuB,aAC3CX,EAASW,EAAkB,GAAIT,CAAI,IACnCS;AAIN,MAHIE,KACAC,EAAQb,GAAKC,GAAMW,CAAU,GAE7BX,EAAK,aAAa;AAClB,UAAMa,IAAoBb,EAAK,YAAYW,GAAYZ,GAAKC,CAAI;AAChE,WAAAQ,EAAQ,aAAaG,GACdE;AAAA,EACf;AACI,SAAAL,EAAQ,aAAaG,GACdA;AACX;AACA,MAAMJ,IAAU,CAACO,GAAMd,MAAS;AAC5B,UAAQA,EAAK,cAAY;AAAA,IACrB,KAAK;AACD,aAAO,EAAE,MAAMc,EAAK,KAAK,KAAK,GAAG,EAAG;AAAA,IACxC,KAAK;AACD,aAAO,EAAE,MAAMC,EAAgBf,EAAK,aAAac,EAAK,IAAI,EAAG;AAAA,IACjE,KAAK;AAAA,IACL,KAAK;AACD,aAAIA,EAAK,KAAK,SAASd,EAAK,YAAY,UACpCc,EAAK,KAAK,MAAM,CAACE,GAAOC,MAAUjB,EAAK,YAAYiB,CAAK,MAAMD,CAAK,KACnE,QAAQ,KAAK,mCAAmChB,EAAK,YAAY,KAAK,GAAG,CAAC,qBAAqB,GACxF,CAAE,KAENA,EAAK,iBAAiB,SAAS,CAAE,IAAG;AAAA,EAEvD;AACA,GACMe,IAAkB,CAACG,GAAOC,MAAU;AACtC,MAAIC,IAAI;AACR,SAAOA,IAAIF,EAAM,UAAUE,IAAID,EAAM,UAC7BD,EAAME,CAAC,MAAMD,EAAMC,CAAC,GADiBA;AACzC;AAGJ,SAAO,EAAEF,EAAM,SAASE,GAAG,SAAU,GAAE,GAAGD,EAAM,MAAMC,CAAC,CAAC,EAAE,KAAK,GAAG;AACtE,GACMR,IAAU,CAACb,GAAKC,GAAMW,OACpBZ,EAAI,gBACJY,EAAW,cAAcZ,EAAI,aACzBC,EAAK,wBACLW,EAAW,sBAAsBZ,EAAI,eAGtCY;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"any.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/any.js"],"sourcesContent":["export function parseAnyDef() {\n return {};\n}\n"],"names":["parseAnyDef"],"mappings":"AAAO,SAASA,IAAc;AAC1B,SAAO,CAAE;AACb;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ZodFirstPartyTypeKind as i } from "zod";
|
|
2
|
+
import { setResponseValueAndErrors as m } from "../errorMessages.js";
|
|
3
|
+
import { parseDef as g } from "../parseDef.js";
|
|
4
|
+
function x(t, e) {
|
|
5
|
+
var n, r, s;
|
|
6
|
+
const a = {
|
|
7
|
+
type: "array"
|
|
8
|
+
};
|
|
9
|
+
return (n = t.type) != null && n._def && ((s = (r = t.type) == null ? void 0 : r._def) == null ? void 0 : s.typeName) !== i.ZodAny && (a.items = g(t.type._def, {
|
|
10
|
+
...e,
|
|
11
|
+
currentPath: [...e.currentPath, "items"]
|
|
12
|
+
})), t.minLength && m(a, "minItems", t.minLength.value, t.minLength.message, e), t.maxLength && m(a, "maxItems", t.maxLength.value, t.maxLength.message, e), t.exactLength && (m(a, "minItems", t.exactLength.value, t.exactLength.message, e), m(a, "maxItems", t.exactLength.value, t.exactLength.message, e)), a;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
x as parseArrayDef
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/array.js"],"sourcesContent":["import { ZodFirstPartyTypeKind } from \"zod\";\nimport { setResponseValueAndErrors } from \"../errorMessages.js\";\nimport { parseDef } from \"../parseDef.js\";\nexport function parseArrayDef(def, refs) {\n const res = {\n type: \"array\",\n };\n if (def.type?._def &&\n def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) {\n res.items = parseDef(def.type._def, {\n ...refs,\n currentPath: [...refs.currentPath, \"items\"],\n });\n }\n if (def.minLength) {\n setResponseValueAndErrors(res, \"minItems\", def.minLength.value, def.minLength.message, refs);\n }\n if (def.maxLength) {\n setResponseValueAndErrors(res, \"maxItems\", def.maxLength.value, def.maxLength.message, refs);\n }\n if (def.exactLength) {\n setResponseValueAndErrors(res, \"minItems\", def.exactLength.value, def.exactLength.message, refs);\n setResponseValueAndErrors(res, \"maxItems\", def.exactLength.value, def.exactLength.message, refs);\n }\n return res;\n}\n"],"names":["parseArrayDef","def","refs","res","_a","_c","_b","ZodFirstPartyTypeKind","parseDef","setResponseValueAndErrors"],"mappings":";;;AAGO,SAASA,EAAcC,GAAKC,GAAM;;AACrC,QAAMC,IAAM;AAAA,IACR,MAAM;AAAA,EACT;AACD,UAAIC,IAAAH,EAAI,SAAJ,QAAAG,EAAU,UACVC,KAAAC,IAAAL,EAAI,SAAJ,gBAAAK,EAAU,SAAV,gBAAAD,EAAgB,cAAaE,EAAsB,WACnDJ,EAAI,QAAQK,EAASP,EAAI,KAAK,MAAM;AAAA,IAChC,GAAGC;AAAA,IACH,aAAa,CAAC,GAAGA,EAAK,aAAa,OAAO;AAAA,EACtD,CAAS,IAEDD,EAAI,aACJQ,EAA0BN,GAAK,YAAYF,EAAI,UAAU,OAAOA,EAAI,UAAU,SAASC,CAAI,GAE3FD,EAAI,aACJQ,EAA0BN,GAAK,YAAYF,EAAI,UAAU,OAAOA,EAAI,UAAU,SAASC,CAAI,GAE3FD,EAAI,gBACJQ,EAA0BN,GAAK,YAAYF,EAAI,YAAY,OAAOA,EAAI,YAAY,SAASC,CAAI,GAC/FO,EAA0BN,GAAK,YAAYF,EAAI,YAAY,OAAOA,EAAI,YAAY,SAASC,CAAI,IAE5FC;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { setResponseValueAndErrors as s } from "../errorMessages.js";
|
|
2
|
+
function l(a, m) {
|
|
3
|
+
const i = {
|
|
4
|
+
type: "integer",
|
|
5
|
+
format: "int64"
|
|
6
|
+
};
|
|
7
|
+
if (!a.checks)
|
|
8
|
+
return i;
|
|
9
|
+
for (const e of a.checks)
|
|
10
|
+
switch (e.kind) {
|
|
11
|
+
case "min":
|
|
12
|
+
m.target === "jsonSchema7" ? e.inclusive ? s(i, "minimum", e.value, e.message, m) : s(i, "exclusiveMinimum", e.value, e.message, m) : (e.inclusive || (i.exclusiveMinimum = !0), s(i, "minimum", e.value, e.message, m));
|
|
13
|
+
break;
|
|
14
|
+
case "max":
|
|
15
|
+
m.target === "jsonSchema7" ? e.inclusive ? s(i, "maximum", e.value, e.message, m) : s(i, "exclusiveMaximum", e.value, e.message, m) : (e.inclusive || (i.exclusiveMaximum = !0), s(i, "maximum", e.value, e.message, m));
|
|
16
|
+
break;
|
|
17
|
+
case "multipleOf":
|
|
18
|
+
s(i, "multipleOf", e.value, e.message, m);
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
return i;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
l as parseBigintDef
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=bigint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigint.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js"],"sourcesContent":["import { setResponseValueAndErrors } from \"../errorMessages.js\";\nexport function parseBigintDef(def, refs) {\n const res = {\n type: \"integer\",\n format: \"int64\",\n };\n if (!def.checks)\n return res;\n for (const check of def.checks) {\n switch (check.kind) {\n case \"min\":\n if (refs.target === \"jsonSchema7\") {\n if (check.inclusive) {\n setResponseValueAndErrors(res, \"minimum\", check.value, check.message, refs);\n }\n else {\n setResponseValueAndErrors(res, \"exclusiveMinimum\", check.value, check.message, refs);\n }\n }\n else {\n if (!check.inclusive) {\n res.exclusiveMinimum = true;\n }\n setResponseValueAndErrors(res, \"minimum\", check.value, check.message, refs);\n }\n break;\n case \"max\":\n if (refs.target === \"jsonSchema7\") {\n if (check.inclusive) {\n setResponseValueAndErrors(res, \"maximum\", check.value, check.message, refs);\n }\n else {\n setResponseValueAndErrors(res, \"exclusiveMaximum\", check.value, check.message, refs);\n }\n }\n else {\n if (!check.inclusive) {\n res.exclusiveMaximum = true;\n }\n setResponseValueAndErrors(res, \"maximum\", check.value, check.message, refs);\n }\n break;\n case \"multipleOf\":\n setResponseValueAndErrors(res, \"multipleOf\", check.value, check.message, refs);\n break;\n }\n }\n return res;\n}\n"],"names":["parseBigintDef","def","refs","res","check","setResponseValueAndErrors"],"mappings":";AACO,SAASA,EAAeC,GAAKC,GAAM;AACtC,QAAMC,IAAM;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,EACX;AACD,MAAI,CAACF,EAAI;AACL,WAAOE;AACX,aAAWC,KAASH,EAAI;AACpB,YAAQG,EAAM,MAAI;AAAA,MACd,KAAK;AACD,QAAIF,EAAK,WAAW,gBACZE,EAAM,YACNC,EAA0BF,GAAK,WAAWC,EAAM,OAAOA,EAAM,SAASF,CAAI,IAG1EG,EAA0BF,GAAK,oBAAoBC,EAAM,OAAOA,EAAM,SAASF,CAAI,KAIlFE,EAAM,cACPD,EAAI,mBAAmB,KAE3BE,EAA0BF,GAAK,WAAWC,EAAM,OAAOA,EAAM,SAASF,CAAI;AAE9E;AAAA,MACJ,KAAK;AACD,QAAIA,EAAK,WAAW,gBACZE,EAAM,YACNC,EAA0BF,GAAK,WAAWC,EAAM,OAAOA,EAAM,SAASF,CAAI,IAG1EG,EAA0BF,GAAK,oBAAoBC,EAAM,OAAOA,EAAM,SAASF,CAAI,KAIlFE,EAAM,cACPD,EAAI,mBAAmB,KAE3BE,EAA0BF,GAAK,WAAWC,EAAM,OAAOA,EAAM,SAASF,CAAI;AAE9E;AAAA,MACJ,KAAK;AACD,QAAAG,EAA0BF,GAAK,cAAcC,EAAM,OAAOA,EAAM,SAASF,CAAI;AAC7E;AAAA,IAChB;AAEI,SAAOC;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js"],"sourcesContent":["export function parseBooleanDef() {\n return {\n type: \"boolean\",\n };\n}\n"],"names":["parseBooleanDef"],"mappings":"AAAO,SAASA,IAAkB;AAC9B,SAAO;AAAA,IACH,MAAM;AAAA,EACT;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branded.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/branded.js"],"sourcesContent":["import { parseDef } from \"../parseDef.js\";\nexport function parseBrandedDef(_def, refs) {\n return parseDef(_def.type._def, refs);\n}\n"],"names":["parseBrandedDef","_def","refs","parseDef"],"mappings":";AACO,SAASA,EAAgBC,GAAMC,GAAM;AACxC,SAAOC,EAASF,EAAK,KAAK,MAAMC,CAAI;AACxC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catch.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/catch.js"],"sourcesContent":["import { parseDef } from \"../parseDef.js\";\nexport const parseCatchDef = (def, refs) => {\n return parseDef(def.innerType._def, refs);\n};\n"],"names":["parseCatchDef","def","refs","parseDef"],"mappings":";AACY,MAACA,IAAgB,CAACC,GAAKC,MACxBC,EAASF,EAAI,UAAU,MAAMC,CAAI;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { setResponseValueAndErrors as n } from "../errorMessages.js";
|
|
2
|
+
function i(a, t, r) {
|
|
3
|
+
const e = r ?? t.dateStrategy;
|
|
4
|
+
if (Array.isArray(e))
|
|
5
|
+
return {
|
|
6
|
+
anyOf: e.map((s, o) => i(a, t, s))
|
|
7
|
+
};
|
|
8
|
+
switch (e) {
|
|
9
|
+
case "string":
|
|
10
|
+
case "format:date-time":
|
|
11
|
+
return {
|
|
12
|
+
type: "string",
|
|
13
|
+
format: "date-time"
|
|
14
|
+
};
|
|
15
|
+
case "format:date":
|
|
16
|
+
return {
|
|
17
|
+
type: "string",
|
|
18
|
+
format: "date"
|
|
19
|
+
};
|
|
20
|
+
case "integer":
|
|
21
|
+
return m(a, t);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const m = (a, t) => {
|
|
25
|
+
const r = {
|
|
26
|
+
type: "integer",
|
|
27
|
+
format: "unix-time"
|
|
28
|
+
};
|
|
29
|
+
if (t.target === "openApi3")
|
|
30
|
+
return r;
|
|
31
|
+
for (const e of a.checks)
|
|
32
|
+
switch (e.kind) {
|
|
33
|
+
case "min":
|
|
34
|
+
n(
|
|
35
|
+
r,
|
|
36
|
+
"minimum",
|
|
37
|
+
e.value,
|
|
38
|
+
// This is in milliseconds
|
|
39
|
+
e.message,
|
|
40
|
+
t
|
|
41
|
+
);
|
|
42
|
+
break;
|
|
43
|
+
case "max":
|
|
44
|
+
n(
|
|
45
|
+
r,
|
|
46
|
+
"maximum",
|
|
47
|
+
e.value,
|
|
48
|
+
// This is in milliseconds
|
|
49
|
+
e.message,
|
|
50
|
+
t
|
|
51
|
+
);
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
return r;
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
i as parseDateDef
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/date.js"],"sourcesContent":["import { setResponseValueAndErrors } from \"../errorMessages.js\";\nexport function parseDateDef(def, refs, overrideDateStrategy) {\n const strategy = overrideDateStrategy ?? refs.dateStrategy;\n if (Array.isArray(strategy)) {\n return {\n anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)),\n };\n }\n switch (strategy) {\n case \"string\":\n case \"format:date-time\":\n return {\n type: \"string\",\n format: \"date-time\",\n };\n case \"format:date\":\n return {\n type: \"string\",\n format: \"date\",\n };\n case \"integer\":\n return integerDateParser(def, refs);\n }\n}\nconst integerDateParser = (def, refs) => {\n const res = {\n type: \"integer\",\n format: \"unix-time\",\n };\n if (refs.target === \"openApi3\") {\n return res;\n }\n for (const check of def.checks) {\n switch (check.kind) {\n case \"min\":\n setResponseValueAndErrors(res, \"minimum\", check.value, // This is in milliseconds\n check.message, refs);\n break;\n case \"max\":\n setResponseValueAndErrors(res, \"maximum\", check.value, // This is in milliseconds\n check.message, refs);\n break;\n }\n }\n return res;\n};\n"],"names":["parseDateDef","def","refs","overrideDateStrategy","strategy","item","i","integerDateParser","res","check","setResponseValueAndErrors"],"mappings":";AACO,SAASA,EAAaC,GAAKC,GAAMC,GAAsB;AAC1D,QAAMC,IAAWD,KAAwBD,EAAK;AAC9C,MAAI,MAAM,QAAQE,CAAQ;AACtB,WAAO;AAAA,MACH,OAAOA,EAAS,IAAI,CAACC,GAAMC,MAAMN,EAAaC,GAAKC,GAAMG,CAAI,CAAC;AAAA,IACjE;AAEL,UAAQD,GAAQ;AAAA,IACZ,KAAK;AAAA,IACL,KAAK;AACD,aAAO;AAAA,QACH,MAAM;AAAA,QACN,QAAQ;AAAA,MACX;AAAA,IACL,KAAK;AACD,aAAO;AAAA,QACH,MAAM;AAAA,QACN,QAAQ;AAAA,MACX;AAAA,IACL,KAAK;AACD,aAAOG,EAAkBN,GAAKC,CAAI;AAAA,EAC9C;AACA;AACA,MAAMK,IAAoB,CAACN,GAAKC,MAAS;AACrC,QAAMM,IAAM;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,EACX;AACD,MAAIN,EAAK,WAAW;AAChB,WAAOM;AAEX,aAAWC,KAASR,EAAI;AACpB,YAAQQ,EAAM,MAAI;AAAA,MACd,KAAK;AACD,QAAAC;AAAA,UAA0BF;AAAA,UAAK;AAAA,UAAWC,EAAM;AAAA;AAAA,UAChDA,EAAM;AAAA,UAASP;AAAA,QAAI;AACnB;AAAA,MACJ,KAAK;AACD,QAAAQ;AAAA,UAA0BF;AAAA,UAAK;AAAA,UAAWC,EAAM;AAAA;AAAA,UAChDA,EAAM;AAAA,UAASP;AAAA,QAAI;AACnB;AAAA,IAChB;AAEI,SAAOM;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/default.js"],"sourcesContent":["import { parseDef } from \"../parseDef.js\";\nexport function parseDefaultDef(_def, refs) {\n return {\n ...parseDef(_def.innerType._def, refs),\n default: _def.defaultValue(),\n };\n}\n"],"names":["parseDefaultDef","_def","refs","parseDef"],"mappings":";AACO,SAASA,EAAgBC,GAAMC,GAAM;AACxC,SAAO;AAAA,IACH,GAAGC,EAASF,EAAK,UAAU,MAAMC,CAAI;AAAA,IACrC,SAASD,EAAK,aAAc;AAAA,EAC/B;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effects.js","sources":["../../../../../../node_modules/zod-to-json-schema/dist/esm/parsers/effects.js"],"sourcesContent":["import { parseDef } from \"../parseDef.js\";\nexport function parseEffectsDef(_def, refs) {\n return refs.effectStrategy === \"input\"\n ? parseDef(_def.schema._def, refs)\n : {};\n}\n"],"names":["parseEffectsDef","_def","refs","parseDef"],"mappings":";AACO,SAASA,EAAgBC,GAAMC,GAAM;AACxC,SAAOA,EAAK,mBAAmB,UACzBC,EAASF,EAAK,OAAO,MAAMC,CAAI,IAC/B,CAAE;AACZ;","x_google_ignoreList":[0]}
|