@weavelogic/knowledge-graph-agent 0.3.0 → 0.6.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/README.md +374 -427
- package/dist/_virtual/ExpiringCache.js +5 -0
- package/dist/_virtual/ExpiringCache.js.map +1 -0
- package/dist/_virtual/___vite-browser-external.js +7 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +5 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +27 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/assert-valid-pattern.js +5 -0
- package/dist/_virtual/assert-valid-pattern.js.map +1 -0
- package/dist/_virtual/ast-converter.js +5 -0
- package/dist/_virtual/ast-converter.js.map +1 -0
- package/dist/_virtual/ast-spec.js +5 -0
- package/dist/_virtual/ast-spec.js.map +1 -0
- package/dist/_virtual/ast.js +5 -0
- package/dist/_virtual/ast.js.map +1 -0
- package/dist/_virtual/brace-expressions.js +5 -0
- package/dist/_virtual/brace-expressions.js.map +1 -0
- package/dist/_virtual/browser.js +6 -0
- package/dist/_virtual/browser.js.map +1 -0
- package/dist/_virtual/browser2.js +5 -0
- package/dist/_virtual/browser2.js.map +1 -0
- package/dist/_virtual/candidateTSConfigRootDirs.js +5 -0
- package/dist/_virtual/candidateTSConfigRootDirs.js.map +1 -0
- package/dist/_virtual/check-modifiers.js +5 -0
- package/dist/_virtual/check-modifiers.js.map +1 -0
- package/dist/_virtual/clear-caches.js +5 -0
- package/dist/_virtual/clear-caches.js.map +1 -0
- package/dist/_virtual/compilerOptions.js +5 -0
- package/dist/_virtual/compilerOptions.js.map +1 -0
- package/dist/_virtual/convert-comments.js +5 -0
- package/dist/_virtual/convert-comments.js.map +1 -0
- package/dist/_virtual/convert.js +5 -0
- package/dist/_virtual/convert.js.map +1 -0
- package/dist/_virtual/createIsolatedProgram.js +5 -0
- package/dist/_virtual/createIsolatedProgram.js.map +1 -0
- package/dist/_virtual/createParseSettings.js +5 -0
- package/dist/_virtual/createParseSettings.js.map +1 -0
- package/dist/_virtual/createParserServices.js +5 -0
- package/dist/_virtual/createParserServices.js.map +1 -0
- package/dist/_virtual/createProjectProgram.js +5 -0
- package/dist/_virtual/createProjectProgram.js.map +1 -0
- package/dist/_virtual/createProjectProgramError.js +5 -0
- package/dist/_virtual/createProjectProgramError.js.map +1 -0
- package/dist/_virtual/createProjectService.js +5 -0
- package/dist/_virtual/createProjectService.js.map +1 -0
- package/dist/_virtual/createSourceFile.js +5 -0
- package/dist/_virtual/createSourceFile.js.map +1 -0
- package/dist/_virtual/describeFilePath.js +5 -0
- package/dist/_virtual/describeFilePath.js.map +1 -0
- package/dist/_virtual/escape.js +5 -0
- package/dist/_virtual/escape.js.map +1 -0
- package/dist/_virtual/eslint-visitor-keys.js +5 -0
- package/dist/_virtual/eslint-visitor-keys.js.map +1 -0
- package/dist/_virtual/estree-to-ts-node-types.js +5 -0
- package/dist/_virtual/estree-to-ts-node-types.js.map +1 -0
- package/dist/_virtual/get-keys.js +5 -0
- package/dist/_virtual/get-keys.js.map +1 -0
- package/dist/_virtual/getModifiers.js +5 -0
- package/dist/_virtual/getModifiers.js.map +1 -0
- package/dist/_virtual/getParsedConfigFile.js +5 -0
- package/dist/_virtual/getParsedConfigFile.js.map +1 -0
- package/dist/_virtual/getParsedConfigFileFromTSServer.js +5 -0
- package/dist/_virtual/getParsedConfigFileFromTSServer.js.map +1 -0
- package/dist/_virtual/getProjectConfigFiles.js +5 -0
- package/dist/_virtual/getProjectConfigFiles.js.map +1 -0
- package/dist/_virtual/getScriptKind.js +5 -0
- package/dist/_virtual/getScriptKind.js.map +1 -0
- package/dist/_virtual/getWatchProgramsForProjects.js +5 -0
- package/dist/_virtual/getWatchProgramsForProjects.js.map +1 -0
- package/dist/_virtual/global-ponyfill.js +9 -0
- package/dist/_virtual/global-ponyfill.js.map +1 -0
- package/dist/_virtual/global-ponyfill2.js +5 -0
- package/dist/_virtual/global-ponyfill2.js.map +1 -0
- package/dist/_virtual/index.js +2 -4
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/_virtual/inferSingleRun.js +5 -0
- package/dist/_virtual/inferSingleRun.js.map +1 -0
- package/dist/_virtual/lib.js +5 -0
- package/dist/_virtual/lib.js.map +1 -0
- package/dist/_virtual/node-utils.js +5 -0
- package/dist/_virtual/node-utils.js.map +1 -0
- package/dist/_virtual/parser-options.js +5 -0
- package/dist/_virtual/parser-options.js.map +1 -0
- package/dist/_virtual/parser.js +5 -0
- package/dist/_virtual/parser.js.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/_virtual/resolveProjectList.js +5 -0
- package/dist/_virtual/resolveProjectList.js.map +1 -0
- package/dist/_virtual/semantic-or-syntactic-errors.js +5 -0
- package/dist/_virtual/semantic-or-syntactic-errors.js.map +1 -0
- package/dist/_virtual/shared.js +5 -0
- package/dist/_virtual/shared.js.map +1 -0
- package/dist/_virtual/simple-traverse.js +5 -0
- package/dist/_virtual/simple-traverse.js.map +1 -0
- package/dist/_virtual/source-files.js +5 -0
- package/dist/_virtual/source-files.js.map +1 -0
- package/dist/_virtual/ts-estree.js +5 -0
- package/dist/_virtual/ts-estree.js.map +1 -0
- package/dist/_virtual/ts-nodes.js +5 -0
- package/dist/_virtual/ts-nodes.js.map +1 -0
- package/dist/_virtual/tsserverlibrary.js +5 -0
- package/dist/_virtual/tsserverlibrary.js.map +1 -0
- package/dist/_virtual/typescript.js +5 -0
- package/dist/_virtual/typescript.js.map +1 -0
- package/dist/_virtual/unescape.js +5 -0
- package/dist/_virtual/unescape.js.map +1 -0
- package/dist/_virtual/useProgramFromProjectService.js +5 -0
- package/dist/_virtual/useProgramFromProjectService.js.map +1 -0
- package/dist/_virtual/useProvidedPrograms.js +5 -0
- package/dist/_virtual/useProvidedPrograms.js.map +1 -0
- package/dist/_virtual/utils.js +5 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/validateDefaultProjectForFilesGlob.js +5 -0
- package/dist/_virtual/validateDefaultProjectForFilesGlob.js.map +1 -0
- package/dist/_virtual/version-check.js +5 -0
- package/dist/_virtual/version-check.js.map +1 -0
- package/dist/_virtual/version.js +5 -0
- package/dist/_virtual/version.js.map +1 -0
- package/dist/_virtual/visitor-keys.js +5 -0
- package/dist/_virtual/visitor-keys.js.map +1 -0
- package/dist/_virtual/warnAboutTSVersion.js +5 -0
- package/dist/_virtual/warnAboutTSVersion.js.map +1 -0
- package/dist/_virtual/withoutProjectParserOptions.js +5 -0
- package/dist/_virtual/withoutProjectParserOptions.js.map +1 -0
- package/dist/_virtual/xhtml-entities.js +5 -0
- package/dist/_virtual/xhtml-entities.js.map +1 -0
- package/dist/audit/config.d.ts +150 -0
- package/dist/audit/config.d.ts.map +1 -0
- package/dist/audit/config.js +111 -0
- package/dist/audit/config.js.map +1 -0
- package/dist/audit/index.d.ts +38 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/services/audit-chain.d.ts +276 -0
- package/dist/audit/services/audit-chain.d.ts.map +1 -0
- package/dist/audit/services/audit-chain.js +502 -0
- package/dist/audit/services/audit-chain.js.map +1 -0
- package/dist/audit/services/index.d.ts +11 -0
- package/dist/audit/services/index.d.ts.map +1 -0
- package/dist/audit/services/syndication.d.ts +334 -0
- package/dist/audit/services/syndication.d.ts.map +1 -0
- package/dist/audit/services/syndication.js +589 -0
- package/dist/audit/services/syndication.js.map +1 -0
- package/dist/audit/types.d.ts +453 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/cli/commands/audit.d.ts +21 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +621 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/dashboard.d.ts +14 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/dashboard.js +271 -0
- package/dist/cli/commands/dashboard.js.map +1 -0
- package/dist/cli/commands/plugin.d.ts +14 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +784 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- package/dist/cli/commands/serve.d.ts +15 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/serve.js +252 -0
- package/dist/cli/commands/serve.js.map +1 -0
- package/dist/cli/commands/vector.d.ts +14 -0
- package/dist/cli/commands/vector.d.ts.map +1 -0
- package/dist/cli/commands/vector.js +429 -0
- package/dist/cli/commands/vector.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +12 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +471 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +54 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/config/manager.js +325 -0
- package/dist/config/manager.js.map +1 -0
- package/dist/dashboard-server/index.d.ts +31 -0
- package/dist/dashboard-server/index.d.ts.map +1 -0
- package/dist/dashboard-server/server.d.ts +205 -0
- package/dist/dashboard-server/server.d.ts.map +1 -0
- package/dist/dashboard-server/server.js +651 -0
- package/dist/dashboard-server/server.js.map +1 -0
- package/dist/database/schemas/index.d.ts +85 -0
- package/dist/database/schemas/index.d.ts.map +1 -0
- package/dist/graphql/context.d.ts +154 -0
- package/dist/graphql/context.d.ts.map +1 -0
- package/dist/graphql/context.js +168 -0
- package/dist/graphql/context.js.map +1 -0
- package/dist/graphql/index.d.ts +12 -0
- package/dist/graphql/index.d.ts.map +1 -0
- package/dist/graphql/pubsub.d.ts +282 -0
- package/dist/graphql/pubsub.d.ts.map +1 -0
- package/dist/graphql/resolvers/index.d.ts +519 -0
- package/dist/graphql/resolvers/index.d.ts.map +1 -0
- package/dist/graphql/resolvers/mutations.d.ts +255 -0
- package/dist/graphql/resolvers/mutations.d.ts.map +1 -0
- package/dist/graphql/resolvers/queries.d.ts +451 -0
- package/dist/graphql/resolvers/queries.d.ts.map +1 -0
- package/dist/graphql/resolvers/subscriptions.d.ts +399 -0
- package/dist/graphql/resolvers/subscriptions.d.ts.map +1 -0
- package/dist/graphql/scalars.d.ts +89 -0
- package/dist/graphql/scalars.d.ts.map +1 -0
- package/dist/graphql/scalars.js +242 -0
- package/dist/graphql/scalars.js.map +1 -0
- package/dist/graphql/server.d.ts +122 -0
- package/dist/graphql/server.d.ts.map +1 -0
- package/dist/graphql/server.js +368 -0
- package/dist/graphql/server.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/handlers/index.js +1 -1
- package/dist/mcp-server/server.js +2 -2
- package/dist/mcp-server/tools/audit/checkpoint.d.ts +58 -0
- package/dist/mcp-server/tools/audit/checkpoint.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/checkpoint.js +73 -0
- package/dist/mcp-server/tools/audit/checkpoint.js.map +1 -0
- package/dist/mcp-server/tools/audit/index.d.ts +53 -0
- package/dist/mcp-server/tools/audit/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/index.js +12 -0
- package/dist/mcp-server/tools/audit/index.js.map +1 -0
- package/dist/mcp-server/tools/audit/query.d.ts +58 -0
- package/dist/mcp-server/tools/audit/query.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/query.js +125 -0
- package/dist/mcp-server/tools/audit/query.js.map +1 -0
- package/dist/mcp-server/tools/audit/sync.d.ts +58 -0
- package/dist/mcp-server/tools/audit/sync.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/sync.js +126 -0
- package/dist/mcp-server/tools/audit/sync.js.map +1 -0
- package/dist/mcp-server/tools/index.d.ts +3 -0
- package/dist/mcp-server/tools/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/registry.js +90 -0
- package/dist/mcp-server/tools/registry.js.map +1 -1
- package/dist/mcp-server/tools/vector/index.d.ts +12 -0
- package/dist/mcp-server/tools/vector/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/index.js +12 -0
- package/dist/mcp-server/tools/vector/index.js.map +1 -0
- package/dist/mcp-server/tools/vector/search.d.ts +41 -0
- package/dist/mcp-server/tools/vector/search.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/search.js +224 -0
- package/dist/mcp-server/tools/vector/search.js.map +1 -0
- package/dist/mcp-server/tools/vector/trajectory.d.ts +39 -0
- package/dist/mcp-server/tools/vector/trajectory.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/trajectory.js +170 -0
- package/dist/mcp-server/tools/vector/trajectory.js.map +1 -0
- package/dist/mcp-server/tools/vector/upsert.d.ts +44 -0
- package/dist/mcp-server/tools/vector/upsert.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/upsert.js +175 -0
- package/dist/mcp-server/tools/vector/upsert.js.map +1 -0
- package/dist/mcp-server/tools/workflow/index.d.ts +29 -0
- package/dist/mcp-server/tools/workflow/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/index.js +12 -0
- package/dist/mcp-server/tools/workflow/index.js.map +1 -0
- package/dist/mcp-server/tools/workflow/list.d.ts +41 -0
- package/dist/mcp-server/tools/workflow/list.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/list.js +195 -0
- package/dist/mcp-server/tools/workflow/list.js.map +1 -0
- package/dist/mcp-server/tools/workflow/start.d.ts +40 -0
- package/dist/mcp-server/tools/workflow/start.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/start.js +165 -0
- package/dist/mcp-server/tools/workflow/start.js.map +1 -0
- package/dist/mcp-server/tools/workflow/status.d.ts +38 -0
- package/dist/mcp-server/tools/workflow/status.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/status.js +97 -0
- package/dist/mcp-server/tools/workflow/status.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/create.js +31 -0
- package/dist/node_modules/@envelop/core/esm/create.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/document-string-map.js +5 -0
- package/dist/node_modules/@envelop/core/esm/document-string-map.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/orchestrator.js +407 -0
- package/dist/node_modules/@envelop/core/esm/orchestrator.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-engine.js +29 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-engine.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-extend-context.js +10 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-extend-context.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-masked-errors.js +86 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-masked-errors.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/utils.js +129 -0
- package/dist/node_modules/@envelop/core/esm/utils.js.map +1 -0
- package/dist/node_modules/@envelop/instrumentation/esm/instrumentation.js +51 -0
- package/dist/node_modules/@envelop/instrumentation/esm/instrumentation.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/coerceError.js +26 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/coerceError.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/execute.js +1101 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/execute.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js +72 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/invariant.js +9 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/invariant.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js +22 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js +26 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/values.js +73 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/values.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/extensions.js +46 -0
- package/dist/node_modules/@graphql-tools/merge/esm/extensions.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/links.js +142 -0
- package/dist/node_modules/@graphql-tools/merge/esm/links.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/merge-resolvers.js +27 -0
- package/dist/node_modules/@graphql-tools/merge/esm/merge-resolvers.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js +23 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js +113 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum-values.js +39 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum-values.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js +23 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/fields.js +74 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/fields.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js +27 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js +29 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js +15 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js +81 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js +142 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js +21 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js +36 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js +29 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js +24 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js +67 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/addResolversToSchema.js +287 -0
- package/dist/node_modules/@graphql-tools/schema/esm/addResolversToSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js +42 -0
- package/dist/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/checkForResolveTypeResolver.js +22 -0
- package/dist/node_modules/@graphql-tools/schema/esm/checkForResolveTypeResolver.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/extendResolversFromInterfaces.js +34 -0
- package/dist/node_modules/@graphql-tools/schema/esm/extendResolversFromInterfaces.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/makeExecutableSchema.js +50 -0
- package/dist/node_modules/@graphql-tools/schema/esm/makeExecutableSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js +17 -0
- package/dist/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Interfaces.js +32 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Interfaces.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Path.js +21 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Path.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromType.js +31 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromType.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValue.js +70 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValue.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js +56 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/collectFields.js +137 -0
- package/dist/node_modules/@graphql-tools/utils/esm/collectFields.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/comments.js +337 -0
- package/dist/node_modules/@graphql-tools/utils/esm/comments.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js +20 -0
- package/dist/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/directives.js +46 -0
- package/dist/node_modules/@graphql-tools/utils/esm/directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/errors.js +52 -0
- package/dist/node_modules/@graphql-tools/utils/esm/errors.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachDefaultValue.js +28 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachDefaultValue.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachField.js +18 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachField.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/get-directives.js +12 -0
- package/dist/node_modules/@graphql-tools/utils/esm/get-directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getArgumentValues.js +61 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getArgumentValues.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js +76 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js +13 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/heal.js +120 -0
- package/dist/node_modules/@graphql-tools/utils/esm/heal.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/helpers.js +42 -0
- package/dist/node_modules/@graphql-tools/utils/esm/helpers.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js +7 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isDocumentNode.js +8 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isDocumentNode.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/jsutils.js +26 -0
- package/dist/node_modules/@graphql-tools/utils/esm/jsutils.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mapSchema.js +439 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mapSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/memoize.js +104 -0
- package/dist/node_modules/@graphql-tools/utils/esm/memoize.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mergeDeep.js +86 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mergeDeep.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js +370 -0
- package/dist/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rewire.js +155 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rewire.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rootTypes.js +33 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rootTypes.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/stub.js +32 -0
- package/dist/node_modules/@graphql-tools/utils/esm/stub.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/transformInputValue.js +47 -0
- package/dist/node_modules/@graphql-tools/utils/esm/transformInputValue.js.map +1 -0
- package/dist/node_modules/@graphql-yoga/logger/esm/index.js +42 -0
- package/dist/node_modules/@graphql-yoga/logger/esm/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +126 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/createProjectService.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +25 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js +32 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +20 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +87 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +34 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +201 -0
- package/dist/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/index.js +45 -0
- package/dist/node_modules/@typescript-eslint/types/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/lib.js +12 -0
- package/dist/node_modules/@typescript-eslint/types/dist/lib.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/parser-options.js +12 -0
- package/dist/node_modules/@typescript-eslint/types/dist/parser-options.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/ts-estree.js +52 -0
- package/dist/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +54 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +207 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +34 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +81 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +2438 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +117 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +33 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +82 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +84 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +31 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +90 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +292 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +134 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +91 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +35 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +39 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +88 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/index.js +90 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +268 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +533 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +50 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +38 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +216 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +87 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +53 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +89 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +92 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +132 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +124 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +64 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +63 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +12 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +46 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +12 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +205 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +75 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version.js +15 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +23 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js +495 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js +121 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js +763 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/package.json.js +9 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/package.json.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +16 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/index.js +25 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +187 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js +72 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/SupressedError.js +16 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/SupressedError.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/index.js +6 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/index.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/symbols.js +12 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/symbols.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/utils.js +12 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/utils.js.map +1 -0
- package/dist/node_modules/@whatwg-node/fetch/dist/global-ponyfill.js +33 -0
- package/dist/node_modules/@whatwg-node/fetch/dist/global-ponyfill.js.map +1 -0
- package/dist/node_modules/@whatwg-node/promise-helpers/esm/index.js +241 -0
- package/dist/node_modules/@whatwg-node/promise-helpers/esm/index.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/createServerAdapter.js +333 -0
- package/dist/node_modules/@whatwg-node/server/esm/createServerAdapter.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/plugins/useCors.js +106 -0
- package/dist/node_modules/@whatwg-node/server/esm/plugins/useCors.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/utils.js +476 -0
- package/dist/node_modules/@whatwg-node/server/esm/utils.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/uwebsockets.js +232 -0
- package/dist/node_modules/@whatwg-node/server/esm/uwebsockets.js.map +1 -0
- package/dist/node_modules/balanced-match/index.js +62 -0
- package/dist/node_modules/balanced-match/index.js.map +1 -0
- package/dist/node_modules/brace-expansion/index.js +156 -0
- package/dist/node_modules/brace-expansion/index.js.map +1 -0
- package/dist/node_modules/cross-inspect/esm/index.js +89 -0
- package/dist/node_modules/cross-inspect/esm/index.js.map +1 -0
- package/dist/node_modules/debug/src/browser.js +178 -0
- package/dist/node_modules/debug/src/browser.js.map +1 -0
- package/dist/node_modules/debug/src/common.js +183 -0
- package/dist/node_modules/debug/src/common.js.map +1 -0
- package/dist/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.js +353 -0
- package/dist/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.js.map +1 -0
- package/dist/node_modules/fdir/dist/index.js +540 -0
- package/dist/node_modules/fdir/dist/index.js.map +1 -0
- package/dist/node_modules/graphql/error/GraphQLError.js +154 -0
- package/dist/node_modules/graphql/error/GraphQLError.js.map +1 -0
- package/dist/node_modules/graphql/error/locatedError.js +23 -0
- package/dist/node_modules/graphql/error/locatedError.js.map +1 -0
- package/dist/node_modules/graphql/error/syntaxError.js +11 -0
- package/dist/node_modules/graphql/error/syntaxError.js.map +1 -0
- package/dist/node_modules/graphql/execution/collectFields.js +128 -0
- package/dist/node_modules/graphql/execution/collectFields.js.map +1 -0
- package/dist/node_modules/graphql/execution/execute.js +606 -0
- package/dist/node_modules/graphql/execution/execute.js.map +1 -0
- package/dist/node_modules/graphql/execution/mapAsyncIterator.js +46 -0
- package/dist/node_modules/graphql/execution/mapAsyncIterator.js.map +1 -0
- package/dist/node_modules/graphql/execution/subscribe.js +121 -0
- package/dist/node_modules/graphql/execution/subscribe.js.map +1 -0
- package/dist/node_modules/graphql/execution/values.js +184 -0
- package/dist/node_modules/graphql/execution/values.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/Path.js +21 -0
- package/dist/node_modules/graphql/jsutils/Path.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/devAssert.js +10 -0
- package/dist/node_modules/graphql/jsutils/devAssert.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/didYouMean.js +24 -0
- package/dist/node_modules/graphql/jsutils/didYouMean.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/groupBy.js +17 -0
- package/dist/node_modules/graphql/jsutils/groupBy.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/identityFunc.js +7 -0
- package/dist/node_modules/graphql/jsutils/identityFunc.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/inspect.js +85 -0
- package/dist/node_modules/graphql/jsutils/inspect.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/instanceOf.js +42 -0
- package/dist/node_modules/graphql/jsutils/instanceOf.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/invariant.js +12 -0
- package/dist/node_modules/graphql/jsutils/invariant.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isAsyncIterable.js +7 -0
- package/dist/node_modules/graphql/jsutils/isAsyncIterable.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isIterableObject.js +7 -0
- package/dist/node_modules/graphql/jsutils/isIterableObject.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isObjectLike.js +7 -0
- package/dist/node_modules/graphql/jsutils/isObjectLike.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isPromise.js +7 -0
- package/dist/node_modules/graphql/jsutils/isPromise.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/keyMap.js +11 -0
- package/dist/node_modules/graphql/jsutils/keyMap.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/keyValMap.js +11 -0
- package/dist/node_modules/graphql/jsutils/keyValMap.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/mapValue.js +11 -0
- package/dist/node_modules/graphql/jsutils/mapValue.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/memoize3.js +28 -0
- package/dist/node_modules/graphql/jsutils/memoize3.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/naturalCompare.js +47 -0
- package/dist/node_modules/graphql/jsutils/naturalCompare.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/printPathArray.js +9 -0
- package/dist/node_modules/graphql/jsutils/printPathArray.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/promiseForObject.js +13 -0
- package/dist/node_modules/graphql/jsutils/promiseForObject.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/promiseReduce.js +12 -0
- package/dist/node_modules/graphql/jsutils/promiseReduce.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/suggestionList.js +94 -0
- package/dist/node_modules/graphql/jsutils/suggestionList.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/toError.js +15 -0
- package/dist/node_modules/graphql/jsutils/toError.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/toObjMap.js +17 -0
- package/dist/node_modules/graphql/jsutils/toObjMap.js.map +1 -0
- package/dist/node_modules/graphql/language/ast.js +189 -0
- package/dist/node_modules/graphql/language/ast.js.map +1 -0
- package/dist/node_modules/graphql/language/blockString.js +60 -0
- package/dist/node_modules/graphql/language/blockString.js.map +1 -0
- package/dist/node_modules/graphql/language/characterClasses.js +24 -0
- package/dist/node_modules/graphql/language/characterClasses.js.map +1 -0
- package/dist/node_modules/graphql/language/directiveLocation.js +26 -0
- package/dist/node_modules/graphql/language/directiveLocation.js.map +1 -0
- package/dist/node_modules/graphql/language/kinds.js +55 -0
- package/dist/node_modules/graphql/language/kinds.js.map +1 -0
- package/dist/node_modules/graphql/language/lexer.js +543 -0
- package/dist/node_modules/graphql/language/lexer.js.map +1 -0
- package/dist/node_modules/graphql/language/location.js +22 -0
- package/dist/node_modules/graphql/language/location.js.map +1 -0
- package/dist/node_modules/graphql/language/parser.js +1343 -0
- package/dist/node_modules/graphql/language/parser.js.map +1 -0
- package/dist/node_modules/graphql/language/predicates.js +28 -0
- package/dist/node_modules/graphql/language/predicates.js.map +1 -0
- package/dist/node_modules/graphql/language/printLocation.js +51 -0
- package/dist/node_modules/graphql/language/printLocation.js.map +1 -0
- package/dist/node_modules/graphql/language/printString.js +178 -0
- package/dist/node_modules/graphql/language/printString.js.map +1 -0
- package/dist/node_modules/graphql/language/printer.js +269 -0
- package/dist/node_modules/graphql/language/printer.js.map +1 -0
- package/dist/node_modules/graphql/language/source.js +33 -0
- package/dist/node_modules/graphql/language/source.js.map +1 -0
- package/dist/node_modules/graphql/language/tokenKind.js +30 -0
- package/dist/node_modules/graphql/language/tokenKind.js.map +1 -0
- package/dist/node_modules/graphql/language/visitor.js +192 -0
- package/dist/node_modules/graphql/language/visitor.js.map +1 -0
- package/dist/node_modules/graphql/type/assertName.js +34 -0
- package/dist/node_modules/graphql/type/assertName.js.map +1 -0
- package/dist/node_modules/graphql/type/definition.js +648 -0
- package/dist/node_modules/graphql/type/definition.js.map +1 -0
- package/dist/node_modules/graphql/type/directives.js +137 -0
- package/dist/node_modules/graphql/type/directives.js.map +1 -0
- package/dist/node_modules/graphql/type/introspection.js +506 -0
- package/dist/node_modules/graphql/type/introspection.js.map +1 -0
- package/dist/node_modules/graphql/type/scalars.js +248 -0
- package/dist/node_modules/graphql/type/scalars.js.map +1 -0
- package/dist/node_modules/graphql/type/schema.js +223 -0
- package/dist/node_modules/graphql/type/schema.js.map +1 -0
- package/dist/node_modules/graphql/type/validate.js +461 -0
- package/dist/node_modules/graphql/type/validate.js.map +1 -0
- package/dist/node_modules/graphql/utilities/TypeInfo.js +257 -0
- package/dist/node_modules/graphql/utilities/TypeInfo.js.map +1 -0
- package/dist/node_modules/graphql/utilities/astFromValue.js +111 -0
- package/dist/node_modules/graphql/utilities/astFromValue.js.map +1 -0
- package/dist/node_modules/graphql/utilities/buildASTSchema.js +65 -0
- package/dist/node_modules/graphql/utilities/buildASTSchema.js.map +1 -0
- package/dist/node_modules/graphql/utilities/coerceInputValue.js +154 -0
- package/dist/node_modules/graphql/utilities/coerceInputValue.js.map +1 -0
- package/dist/node_modules/graphql/utilities/extendSchema.js +456 -0
- package/dist/node_modules/graphql/utilities/extendSchema.js.map +1 -0
- package/dist/node_modules/graphql/utilities/getOperationAST.js +22 -0
- package/dist/node_modules/graphql/utilities/getOperationAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/sortValueNode.js +30 -0
- package/dist/node_modules/graphql/utilities/sortValueNode.js.map +1 -0
- package/dist/node_modules/graphql/utilities/typeComparators.js +58 -0
- package/dist/node_modules/graphql/utilities/typeComparators.js.map +1 -0
- package/dist/node_modules/graphql/utilities/typeFromAST.js +20 -0
- package/dist/node_modules/graphql/utilities/typeFromAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/valueFromAST.js +109 -0
- package/dist/node_modules/graphql/utilities/valueFromAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js +32 -0
- package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js.map +1 -0
- package/dist/node_modules/graphql/validation/ValidationContext.js +171 -0
- package/dist/node_modules/graphql/validation/ValidationContext.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +24 -0
- package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +80 -0
- package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +43 -0
- package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +73 -0
- package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js +112 -0
- package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +20 -0
- package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +55 -0
- package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +28 -0
- package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +34 -0
- package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +56 -0
- package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +53 -0
- package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +34 -0
- package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +41 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +519 -0
- package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +55 -0
- package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +113 -0
- package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +99 -0
- package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js +53 -0
- package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +62 -0
- package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +47 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +29 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +63 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +50 -0
- package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +59 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +27 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +32 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +48 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +41 -0
- package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +30 -0
- package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +170 -0
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +27 -0
- package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +74 -0
- package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/specifiedRules.js +88 -0
- package/dist/node_modules/graphql/validation/specifiedRules.js.map +1 -0
- package/dist/node_modules/graphql/validation/validate.js +65 -0
- package/dist/node_modules/graphql/validation/validate.js.map +1 -0
- package/dist/node_modules/graphql/version.js +10 -0
- package/dist/node_modules/graphql/version.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/common.js +127 -0
- package/dist/node_modules/graphql-ws/lib/common.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/server.js +257 -0
- package/dist/node_modules/graphql-ws/lib/server.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/use/ws.js +83 -0
- package/dist/node_modules/graphql-ws/lib/use/ws.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/utils.js +35 -0
- package/dist/node_modules/graphql-ws/lib/utils.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/error.js +127 -0
- package/dist/node_modules/graphql-yoga/esm/error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/graphiql-html.js +5 -0
- package/dist/node_modules/graphql-yoga/esm/graphiql-html.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/landing-page-html.js +21 -0
- package/dist/node_modules/graphql-yoga/esm/landing-page-html.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/allowed-headers.js +26 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/allowed-headers.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/get.js +15 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/get.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-form-url-encoded.js +12 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-form-url-encoded.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-graphql-string.js +12 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-graphql-string.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-json.js +58 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-json.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-multipart.js +78 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-multipart.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/utils.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/utils.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-graphql-query-params.js +131 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-graphql-query-params.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-method-for-graphql.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-method-for-graphql.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-http-validation-error.js +21 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-http-validation-error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-limit-batching.js +37 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-limit-batching.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-prevent-mutation-via-get.js +61 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-prevent-mutation-via-get.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/accept.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/accept.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/multipart.js +68 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/multipart.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/regular.js +29 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/regular.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/sse.js +83 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/sse.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/stringify.js +47 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/stringify.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-graphiql.js +55 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-graphiql.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-health-check.js +20 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-health-check.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-parser-and-validation-cache.js +63 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-parser-and-validation-cache.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-request-parser.js +15 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-request-parser.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-result-processor.js +58 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-result-processor.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-schema.js +76 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-schema.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-unhandled-route.js +52 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-unhandled-route.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/process-request.js +56 -0
- package/dist/node_modules/graphql-yoga/esm/process-request.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/server.js +374 -0
- package/dist/node_modules/graphql-yoga/esm/server.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/utils/create-lru-cache.js +10 -0
- package/dist/node_modules/graphql-yoga/esm/utils/create-lru-cache.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/utils/mask-error.js +47 -0
- package/dist/node_modules/graphql-yoga/esm/utils/mask-error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/node_modules/lru-cache/dist/esm/index.js +1370 -0
- package/dist/node_modules/graphql-yoga/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/dist/node_modules/ms/index.js +121 -0
- package/dist/node_modules/ms/index.js.map +1 -0
- package/dist/node_modules/picomatch/index.js +23 -0
- package/dist/node_modules/picomatch/index.js.map +1 -0
- package/dist/node_modules/picomatch/lib/constants.js +203 -0
- package/dist/node_modules/picomatch/lib/constants.js.map +1 -0
- package/dist/node_modules/picomatch/lib/parse.js +774 -0
- package/dist/node_modules/picomatch/lib/parse.js.map +1 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +148 -0
- package/dist/node_modules/picomatch/lib/picomatch.js.map +1 -0
- package/dist/node_modules/picomatch/lib/scan.js +336 -0
- package/dist/node_modules/picomatch/lib/scan.js.map +1 -0
- package/dist/node_modules/picomatch/lib/utils.js +71 -0
- package/dist/node_modules/picomatch/lib/utils.js.map +1 -0
- package/dist/node_modules/semver/classes/comparator.js +123 -0
- package/dist/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/semver/classes/range.js +388 -0
- package/dist/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/semver/classes/semver.js +288 -0
- package/dist/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/semver/functions/clean.js +18 -0
- package/dist/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/semver/functions/cmp.js +60 -0
- package/dist/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/semver/functions/coerce.js +53 -0
- package/dist/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-build.js +19 -0
- package/dist/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-loose.js +15 -0
- package/dist/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/semver/functions/compare.js +15 -0
- package/dist/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/semver/functions/diff.js +49 -0
- package/dist/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/semver/functions/eq.js +15 -0
- package/dist/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/semver/functions/gt.js +15 -0
- package/dist/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/semver/functions/gte.js +15 -0
- package/dist/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/semver/functions/inc.js +29 -0
- package/dist/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/semver/functions/lt.js +15 -0
- package/dist/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/semver/functions/lte.js +15 -0
- package/dist/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/semver/functions/major.js +15 -0
- package/dist/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/semver/functions/minor.js +15 -0
- package/dist/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/semver/functions/neq.js +15 -0
- package/dist/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/semver/functions/parse.js +27 -0
- package/dist/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/semver/functions/patch.js +15 -0
- package/dist/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/semver/functions/prerelease.js +18 -0
- package/dist/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/semver/functions/rcompare.js +15 -0
- package/dist/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/semver/functions/rsort.js +15 -0
- package/dist/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/semver/functions/satisfies.js +22 -0
- package/dist/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/semver/functions/sort.js +15 -0
- package/dist/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/semver/functions/valid.js +18 -0
- package/dist/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/semver/index.js +140 -0
- package/dist/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/semver/internal/constants.js +36 -0
- package/dist/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/semver/internal/debug.js +14 -0
- package/dist/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/semver/internal/parse-options.js +23 -0
- package/dist/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/semver/internal/re.js +96 -0
- package/dist/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/semver/ranges/gtr.js +15 -0
- package/dist/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/semver/ranges/intersects.js +19 -0
- package/dist/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/semver/ranges/ltr.js +15 -0
- package/dist/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +35 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +35 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-version.js +66 -0
- package/dist/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/semver/ranges/outside.js +81 -0
- package/dist/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/semver/ranges/simplify.js +56 -0
- package/dist/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/semver/ranges/subset.js +170 -0
- package/dist/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +15 -0
- package/dist/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/semver/ranges/valid.js +21 -0
- package/dist/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/node_modules/tinyglobby/dist/index.js +332 -0
- package/dist/node_modules/tinyglobby/dist/index.js.map +1 -0
- package/dist/node_modules/ts-api-utils/lib/index.js +2361 -0
- package/dist/node_modules/ts-api-utils/lib/index.js.map +1 -0
- package/dist/node_modules/typescript/lib/tsserverlibrary.js +33 -0
- package/dist/node_modules/typescript/lib/tsserverlibrary.js.map +1 -0
- package/dist/node_modules/typescript/lib/typescript.js +210602 -0
- package/dist/node_modules/typescript/lib/typescript.js.map +1 -0
- package/dist/node_modules/ws/browser.js +16 -0
- package/dist/node_modules/ws/browser.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.d.ts +105 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.js +507 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.d.ts +70 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.js +405 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/index.d.ts +191 -0
- package/dist/plugins/analyzers/code-complexity/index.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/index.js +276 -0
- package/dist/plugins/analyzers/code-complexity/index.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/metrics.d.ts +77 -0
- package/dist/plugins/analyzers/code-complexity/metrics.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/metrics.js +514 -0
- package/dist/plugins/analyzers/code-complexity/metrics.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/plugin.d.ts +161 -0
- package/dist/plugins/analyzers/code-complexity/plugin.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/plugin.js +661 -0
- package/dist/plugins/analyzers/code-complexity/plugin.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/types.d.ts +360 -0
- package/dist/plugins/analyzers/code-complexity/types.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/types.js +27 -0
- package/dist/plugins/analyzers/code-complexity/types.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.d.ts +56 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.js +387 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.d.ts +60 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.js +295 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/index.d.ts +201 -0
- package/dist/plugins/analyzers/dependency-health/index.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/index.js +857 -0
- package/dist/plugins/analyzers/dependency-health/index.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.d.ts +68 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.js +226 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/types.d.ts +462 -0
- package/dist/plugins/analyzers/dependency-health/types.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.d.ts +80 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.js +215 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.js.map +1 -0
- package/dist/plugins/analyzers/index.d.ts +12 -0
- package/dist/plugins/analyzers/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +13 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/loader.d.ts +158 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +554 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/plugins/manager.d.ts +183 -0
- package/dist/plugins/manager.d.ts.map +1 -0
- package/dist/plugins/manager.js +876 -0
- package/dist/plugins/manager.js.map +1 -0
- package/dist/plugins/registry.d.ts +163 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +448 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/types.d.ts +930 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +43 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/server/container.d.ts +263 -0
- package/dist/server/container.d.ts.map +1 -0
- package/dist/server/container.js +605 -0
- package/dist/server/container.js.map +1 -0
- package/dist/server/event-bus.d.ts +418 -0
- package/dist/server/event-bus.d.ts.map +1 -0
- package/dist/server/event-bus.js +442 -0
- package/dist/server/event-bus.js.map +1 -0
- package/dist/server/index.d.ts +37 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/manager.d.ts +123 -0
- package/dist/server/manager.d.ts.map +1 -0
- package/dist/server/manager.js +742 -0
- package/dist/server/manager.js.map +1 -0
- package/dist/server/shared-services.d.ts +130 -0
- package/dist/server/shared-services.d.ts.map +1 -0
- package/dist/server/shared-services.js +476 -0
- package/dist/server/shared-services.js.map +1 -0
- package/dist/server/types.d.ts +320 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/types.js +13 -0
- package/dist/server/types.js.map +1 -0
- package/dist/services/manager.js +328 -0
- package/dist/services/manager.js.map +1 -0
- package/dist/vector/config.d.ts +300 -0
- package/dist/vector/config.d.ts.map +1 -0
- package/dist/vector/config.js +124 -0
- package/dist/vector/config.js.map +1 -0
- package/dist/vector/index.d.ts +50 -0
- package/dist/vector/index.d.ts.map +1 -0
- package/dist/vector/services/index.d.ts +13 -0
- package/dist/vector/services/index.d.ts.map +1 -0
- package/dist/vector/services/trajectory-tracker.d.ts +405 -0
- package/dist/vector/services/trajectory-tracker.d.ts.map +1 -0
- package/dist/vector/services/trajectory-tracker.js +445 -0
- package/dist/vector/services/trajectory-tracker.js.map +1 -0
- package/dist/vector/services/vector-store.d.ts +339 -0
- package/dist/vector/services/vector-store.d.ts.map +1 -0
- package/dist/vector/services/vector-store.js +748 -0
- package/dist/vector/services/vector-store.js.map +1 -0
- package/dist/vector/types.d.ts +677 -0
- package/dist/vector/types.d.ts.map +1 -0
- package/dist/workflow/adapters/goap-adapter.d.ts +196 -0
- package/dist/workflow/adapters/goap-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/goap-adapter.js +706 -0
- package/dist/workflow/adapters/goap-adapter.js.map +1 -0
- package/dist/workflow/adapters/index.d.ts +10 -0
- package/dist/workflow/adapters/index.d.ts.map +1 -0
- package/dist/workflow/config.d.ts +135 -0
- package/dist/workflow/config.d.ts.map +1 -0
- package/dist/workflow/config.js +92 -0
- package/dist/workflow/config.js.map +1 -0
- package/dist/workflow/handlers/index.d.ts +9 -0
- package/dist/workflow/handlers/index.d.ts.map +1 -0
- package/dist/workflow/handlers/webhook-handlers.d.ts +397 -0
- package/dist/workflow/handlers/webhook-handlers.d.ts.map +1 -0
- package/dist/workflow/handlers/webhook-handlers.js +454 -0
- package/dist/workflow/handlers/webhook-handlers.js.map +1 -0
- package/dist/workflow/index.d.ts +42 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/services/index.d.ts +9 -0
- package/dist/workflow/services/index.d.ts.map +1 -0
- package/dist/workflow/services/workflow-service.d.ts +318 -0
- package/dist/workflow/services/workflow-service.d.ts.map +1 -0
- package/dist/workflow/services/workflow-service.js +577 -0
- package/dist/workflow/services/workflow-service.js.map +1 -0
- package/dist/workflow/types.d.ts +470 -0
- package/dist/workflow/types.d.ts.map +1 -0
- package/dist/workflow/workflows/realtime-collab.d.ts +245 -0
- package/dist/workflow/workflows/realtime-collab.d.ts.map +1 -0
- package/package.json +29 -3
- package/dist/_virtual/additionalItems.js +0 -5
- package/dist/_virtual/additionalItems.js.map +0 -1
- package/dist/_virtual/additionalProperties.js +0 -5
- package/dist/_virtual/additionalProperties.js.map +0 -1
- package/dist/_virtual/ajv.js +0 -6
- package/dist/_virtual/ajv.js.map +0 -1
- package/dist/_virtual/ajv2.js +0 -5
- package/dist/_virtual/ajv2.js.map +0 -1
- package/dist/_virtual/allOf.js +0 -5
- package/dist/_virtual/allOf.js.map +0 -1
- package/dist/_virtual/anyOf.js +0 -5
- package/dist/_virtual/anyOf.js.map +0 -1
- package/dist/_virtual/applicability.js +0 -5
- package/dist/_virtual/applicability.js.map +0 -1
- package/dist/_virtual/boolSchema.js +0 -5
- package/dist/_virtual/boolSchema.js.map +0 -1
- package/dist/_virtual/code.js +0 -5
- package/dist/_virtual/code.js.map +0 -1
- package/dist/_virtual/code2.js +0 -5
- package/dist/_virtual/code2.js.map +0 -1
- package/dist/_virtual/const.js +0 -5
- package/dist/_virtual/const.js.map +0 -1
- package/dist/_virtual/contains.js +0 -5
- package/dist/_virtual/contains.js.map +0 -1
- package/dist/_virtual/core.js +0 -5
- package/dist/_virtual/core.js.map +0 -1
- package/dist/_virtual/dataType.js +0 -5
- package/dist/_virtual/dataType.js.map +0 -1
- package/dist/_virtual/defaults.js +0 -5
- package/dist/_virtual/defaults.js.map +0 -1
- package/dist/_virtual/dependencies.js +0 -5
- package/dist/_virtual/dependencies.js.map +0 -1
- package/dist/_virtual/draft7.js +0 -5
- package/dist/_virtual/draft7.js.map +0 -1
- package/dist/_virtual/enum.js +0 -5
- package/dist/_virtual/enum.js.map +0 -1
- package/dist/_virtual/equal.js +0 -5
- package/dist/_virtual/equal.js.map +0 -1
- package/dist/_virtual/errors.js +0 -5
- package/dist/_virtual/errors.js.map +0 -1
- package/dist/_virtual/format.js +0 -5
- package/dist/_virtual/format.js.map +0 -1
- package/dist/_virtual/formats.js +0 -5
- package/dist/_virtual/formats.js.map +0 -1
- package/dist/_virtual/id.js +0 -5
- package/dist/_virtual/id.js.map +0 -1
- package/dist/_virtual/if.js +0 -5
- package/dist/_virtual/if.js.map +0 -1
- package/dist/_virtual/index12.js +0 -5
- package/dist/_virtual/index12.js.map +0 -1
- package/dist/_virtual/items.js +0 -5
- package/dist/_virtual/items.js.map +0 -1
- package/dist/_virtual/items2020.js +0 -5
- package/dist/_virtual/items2020.js.map +0 -1
- package/dist/_virtual/keyword.js +0 -5
- package/dist/_virtual/keyword.js.map +0 -1
- package/dist/_virtual/limit.js +0 -5
- package/dist/_virtual/limit.js.map +0 -1
- package/dist/_virtual/limitItems.js +0 -5
- package/dist/_virtual/limitItems.js.map +0 -1
- package/dist/_virtual/limitLength.js +0 -5
- package/dist/_virtual/limitLength.js.map +0 -1
- package/dist/_virtual/limitNumber.js +0 -5
- package/dist/_virtual/limitNumber.js.map +0 -1
- package/dist/_virtual/limitProperties.js +0 -5
- package/dist/_virtual/limitProperties.js.map +0 -1
- package/dist/_virtual/metadata.js +0 -5
- package/dist/_virtual/metadata.js.map +0 -1
- package/dist/_virtual/multipleOf.js +0 -5
- package/dist/_virtual/multipleOf.js.map +0 -1
- package/dist/_virtual/names.js +0 -5
- package/dist/_virtual/names.js.map +0 -1
- package/dist/_virtual/not.js +0 -5
- package/dist/_virtual/not.js.map +0 -1
- package/dist/_virtual/oneOf.js +0 -5
- package/dist/_virtual/oneOf.js.map +0 -1
- package/dist/_virtual/pattern.js +0 -5
- package/dist/_virtual/pattern.js.map +0 -1
- package/dist/_virtual/patternProperties.js +0 -5
- package/dist/_virtual/patternProperties.js.map +0 -1
- package/dist/_virtual/prefixItems.js +0 -5
- package/dist/_virtual/prefixItems.js.map +0 -1
- package/dist/_virtual/properties.js +0 -5
- package/dist/_virtual/properties.js.map +0 -1
- package/dist/_virtual/propertyNames.js +0 -5
- package/dist/_virtual/propertyNames.js.map +0 -1
- package/dist/_virtual/ref.js +0 -5
- package/dist/_virtual/ref.js.map +0 -1
- package/dist/_virtual/ref_error.js +0 -5
- package/dist/_virtual/ref_error.js.map +0 -1
- package/dist/_virtual/required.js +0 -5
- package/dist/_virtual/required.js.map +0 -1
- package/dist/_virtual/resolve.js +0 -5
- package/dist/_virtual/resolve.js.map +0 -1
- package/dist/_virtual/rules.js +0 -5
- package/dist/_virtual/rules.js.map +0 -1
- package/dist/_virtual/scope.js +0 -5
- package/dist/_virtual/scope.js.map +0 -1
- package/dist/_virtual/subschema.js +0 -5
- package/dist/_virtual/subschema.js.map +0 -1
- package/dist/_virtual/thenElse.js +0 -5
- package/dist/_virtual/thenElse.js.map +0 -1
- package/dist/_virtual/types.js +0 -5
- package/dist/_virtual/types.js.map +0 -1
- package/dist/_virtual/ucs2length.js +0 -5
- package/dist/_virtual/ucs2length.js.map +0 -1
- package/dist/_virtual/uniqueItems.js +0 -5
- package/dist/_virtual/uniqueItems.js.map +0 -1
- package/dist/_virtual/uri.js +0 -5
- package/dist/_virtual/uri.js.map +0 -1
- package/dist/_virtual/util.js +0 -5
- package/dist/_virtual/util.js.map +0 -1
- package/dist/_virtual/validation_error.js +0 -5
- package/dist/_virtual/validation_error.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +0 -296
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -71
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -26
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -407
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -1332
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +0 -71
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +0 -1
- package/dist/node_modules/ajv/dist/ajv.js +0 -84
- package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -160
- package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -728
- package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -152
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/errors.js +0 -131
- package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/index.js +0 -234
- package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/names.js +0 -44
- package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -22
- package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/resolve.js +0 -163
- package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/rules.js +0 -35
- package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/util.js +0 -173
- package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -27
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -58
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -193
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -43
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -522
- package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -126
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -89
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/dist/node_modules/ajv/dist/core.js +0 -628
- package/dist/node_modules/ajv/dist/core.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/data.json.js +0 -24
- package/dist/node_modules/ajv/dist/refs/data.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -25
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/equal.js +0 -16
- package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -30
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/uri.js +0 -16
- package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -20
- package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -59
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -114
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -32
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -100
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -103
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -68
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -64
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -43
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -64
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -81
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -66
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -49
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -140
- package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -19
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -132
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -114
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -18
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -31
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -95
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -56
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -52
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -39
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -37
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -89
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/formats.js +0 -209
- package/dist/node_modules/ajv-formats/dist/formats.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/index.js +0 -51
- package/dist/node_modules/ajv-formats/dist/index.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/limit.js +0 -80
- package/dist/node_modules/ajv-formats/dist/limit.js.map +0 -1
- package/dist/node_modules/fast-deep-equal/index.js +0 -39
- package/dist/node_modules/fast-deep-equal/index.js.map +0 -1
- package/dist/node_modules/fast-uri/index.js +0 -261
- package/dist/node_modules/fast-uri/index.js.map +0 -1
- package/dist/node_modules/fast-uri/lib/schemes.js +0 -215
- package/dist/node_modules/fast-uri/lib/schemes.js.map +0 -1
- package/dist/node_modules/fast-uri/lib/utils.js +0 -261
- package/dist/node_modules/fast-uri/lib/utils.js.map +0 -1
- package/dist/node_modules/json-schema-traverse/index.js +0 -92
- package/dist/node_modules/json-schema-traverse/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -37
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -43
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -13
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -688
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -492
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -405
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -58
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -82
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -60
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -87
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1283
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -341
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -2
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js.map +0 -1
|
@@ -1,1283 +0,0 @@
|
|
|
1
|
-
import { $ZodCheck, $ZodCheckStringFormat, $ZodCheckNumberFormat } from "./checks.js";
|
|
2
|
-
import { $constructor, globalConfig, config, $ZodAsyncError } from "./core.js";
|
|
3
|
-
import { Doc } from "./doc.js";
|
|
4
|
-
import { safeParse, safeParseAsync } from "./parse.js";
|
|
5
|
-
import { string, number, boolean, datetime, date, time, duration, email, guid, uuid, hostname, emoji, nanoid, cuid, cuid2, ulid, xid, ksuid, ipv4, ipv6, cidrv4, cidrv6, base64, base64url, e164 } from "./regexes.js";
|
|
6
|
-
import { defineLazy, allowsEval, cached, isObject, esc, cleanRegex, isPlainObject, prefixIssues, finalizeIssue, getEnumValues, propertyKeyTypes, escapeRegex, aborted, optionalKeys, issue } from "./util.js";
|
|
7
|
-
import { clone } from "./util.js";
|
|
8
|
-
import { version } from "./versions.js";
|
|
9
|
-
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
10
|
-
var _a;
|
|
11
|
-
inst ?? (inst = {});
|
|
12
|
-
inst._zod.def = def;
|
|
13
|
-
inst._zod.bag = inst._zod.bag || {};
|
|
14
|
-
inst._zod.version = version;
|
|
15
|
-
const checks = [...inst._zod.def.checks ?? []];
|
|
16
|
-
if (inst._zod.traits.has("$ZodCheck")) {
|
|
17
|
-
checks.unshift(inst);
|
|
18
|
-
}
|
|
19
|
-
for (const ch of checks) {
|
|
20
|
-
for (const fn of ch._zod.onattach) {
|
|
21
|
-
fn(inst);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (checks.length === 0) {
|
|
25
|
-
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
26
|
-
inst._zod.deferred?.push(() => {
|
|
27
|
-
inst._zod.run = inst._zod.parse;
|
|
28
|
-
});
|
|
29
|
-
} else {
|
|
30
|
-
const runChecks = (payload, checks2, ctx) => {
|
|
31
|
-
let isAborted = aborted(payload);
|
|
32
|
-
let asyncResult;
|
|
33
|
-
for (const ch of checks2) {
|
|
34
|
-
if (ch._zod.def.when) {
|
|
35
|
-
const shouldRun = ch._zod.def.when(payload);
|
|
36
|
-
if (!shouldRun)
|
|
37
|
-
continue;
|
|
38
|
-
} else if (isAborted) {
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
const currLen = payload.issues.length;
|
|
42
|
-
const _ = ch._zod.check(payload);
|
|
43
|
-
if (_ instanceof Promise && ctx?.async === false) {
|
|
44
|
-
throw new $ZodAsyncError();
|
|
45
|
-
}
|
|
46
|
-
if (asyncResult || _ instanceof Promise) {
|
|
47
|
-
asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
48
|
-
await _;
|
|
49
|
-
const nextLen = payload.issues.length;
|
|
50
|
-
if (nextLen === currLen)
|
|
51
|
-
return;
|
|
52
|
-
if (!isAborted)
|
|
53
|
-
isAborted = aborted(payload, currLen);
|
|
54
|
-
});
|
|
55
|
-
} else {
|
|
56
|
-
const nextLen = payload.issues.length;
|
|
57
|
-
if (nextLen === currLen)
|
|
58
|
-
continue;
|
|
59
|
-
if (!isAborted)
|
|
60
|
-
isAborted = aborted(payload, currLen);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (asyncResult) {
|
|
64
|
-
return asyncResult.then(() => {
|
|
65
|
-
return payload;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
return payload;
|
|
69
|
-
};
|
|
70
|
-
inst._zod.run = (payload, ctx) => {
|
|
71
|
-
const result = inst._zod.parse(payload, ctx);
|
|
72
|
-
if (result instanceof Promise) {
|
|
73
|
-
if (ctx.async === false)
|
|
74
|
-
throw new $ZodAsyncError();
|
|
75
|
-
return result.then((result2) => runChecks(result2, checks, ctx));
|
|
76
|
-
}
|
|
77
|
-
return runChecks(result, checks, ctx);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
inst["~standard"] = {
|
|
81
|
-
validate: (value) => {
|
|
82
|
-
try {
|
|
83
|
-
const r = safeParse(inst, value);
|
|
84
|
-
return r.success ? { value: r.data } : { issues: r.error?.issues };
|
|
85
|
-
} catch (_) {
|
|
86
|
-
return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
vendor: "zod",
|
|
90
|
-
version: 1
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
94
|
-
$ZodType.init(inst, def);
|
|
95
|
-
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag);
|
|
96
|
-
inst._zod.parse = (payload, _) => {
|
|
97
|
-
if (def.coerce)
|
|
98
|
-
try {
|
|
99
|
-
payload.value = String(payload.value);
|
|
100
|
-
} catch (_2) {
|
|
101
|
-
}
|
|
102
|
-
if (typeof payload.value === "string")
|
|
103
|
-
return payload;
|
|
104
|
-
payload.issues.push({
|
|
105
|
-
expected: "string",
|
|
106
|
-
code: "invalid_type",
|
|
107
|
-
input: payload.value,
|
|
108
|
-
inst
|
|
109
|
-
});
|
|
110
|
-
return payload;
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
const $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => {
|
|
114
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
115
|
-
$ZodString.init(inst, def);
|
|
116
|
-
});
|
|
117
|
-
const $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
|
|
118
|
-
def.pattern ?? (def.pattern = guid);
|
|
119
|
-
$ZodStringFormat.init(inst, def);
|
|
120
|
-
});
|
|
121
|
-
const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
122
|
-
if (def.version) {
|
|
123
|
-
const versionMap = {
|
|
124
|
-
v1: 1,
|
|
125
|
-
v2: 2,
|
|
126
|
-
v3: 3,
|
|
127
|
-
v4: 4,
|
|
128
|
-
v5: 5,
|
|
129
|
-
v6: 6,
|
|
130
|
-
v7: 7,
|
|
131
|
-
v8: 8
|
|
132
|
-
};
|
|
133
|
-
const v = versionMap[def.version];
|
|
134
|
-
if (v === void 0)
|
|
135
|
-
throw new Error(`Invalid UUID version: "${def.version}"`);
|
|
136
|
-
def.pattern ?? (def.pattern = uuid(v));
|
|
137
|
-
} else
|
|
138
|
-
def.pattern ?? (def.pattern = uuid());
|
|
139
|
-
$ZodStringFormat.init(inst, def);
|
|
140
|
-
});
|
|
141
|
-
const $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
|
|
142
|
-
def.pattern ?? (def.pattern = email);
|
|
143
|
-
$ZodStringFormat.init(inst, def);
|
|
144
|
-
});
|
|
145
|
-
const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
146
|
-
$ZodStringFormat.init(inst, def);
|
|
147
|
-
inst._zod.check = (payload) => {
|
|
148
|
-
try {
|
|
149
|
-
const orig = payload.value;
|
|
150
|
-
const url = new URL(orig);
|
|
151
|
-
const href = url.href;
|
|
152
|
-
if (def.hostname) {
|
|
153
|
-
def.hostname.lastIndex = 0;
|
|
154
|
-
if (!def.hostname.test(url.hostname)) {
|
|
155
|
-
payload.issues.push({
|
|
156
|
-
code: "invalid_format",
|
|
157
|
-
format: "url",
|
|
158
|
-
note: "Invalid hostname",
|
|
159
|
-
pattern: hostname.source,
|
|
160
|
-
input: payload.value,
|
|
161
|
-
inst,
|
|
162
|
-
continue: !def.abort
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (def.protocol) {
|
|
167
|
-
def.protocol.lastIndex = 0;
|
|
168
|
-
if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) {
|
|
169
|
-
payload.issues.push({
|
|
170
|
-
code: "invalid_format",
|
|
171
|
-
format: "url",
|
|
172
|
-
note: "Invalid protocol",
|
|
173
|
-
pattern: def.protocol.source,
|
|
174
|
-
input: payload.value,
|
|
175
|
-
inst,
|
|
176
|
-
continue: !def.abort
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
181
|
-
payload.value = href.slice(0, -1);
|
|
182
|
-
} else {
|
|
183
|
-
payload.value = href;
|
|
184
|
-
}
|
|
185
|
-
return;
|
|
186
|
-
} catch (_) {
|
|
187
|
-
payload.issues.push({
|
|
188
|
-
code: "invalid_format",
|
|
189
|
-
format: "url",
|
|
190
|
-
input: payload.value,
|
|
191
|
-
inst,
|
|
192
|
-
continue: !def.abort
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
});
|
|
197
|
-
const $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
|
|
198
|
-
def.pattern ?? (def.pattern = emoji());
|
|
199
|
-
$ZodStringFormat.init(inst, def);
|
|
200
|
-
});
|
|
201
|
-
const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
202
|
-
def.pattern ?? (def.pattern = nanoid);
|
|
203
|
-
$ZodStringFormat.init(inst, def);
|
|
204
|
-
});
|
|
205
|
-
const $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
|
|
206
|
-
def.pattern ?? (def.pattern = cuid);
|
|
207
|
-
$ZodStringFormat.init(inst, def);
|
|
208
|
-
});
|
|
209
|
-
const $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
|
|
210
|
-
def.pattern ?? (def.pattern = cuid2);
|
|
211
|
-
$ZodStringFormat.init(inst, def);
|
|
212
|
-
});
|
|
213
|
-
const $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
|
|
214
|
-
def.pattern ?? (def.pattern = ulid);
|
|
215
|
-
$ZodStringFormat.init(inst, def);
|
|
216
|
-
});
|
|
217
|
-
const $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
|
|
218
|
-
def.pattern ?? (def.pattern = xid);
|
|
219
|
-
$ZodStringFormat.init(inst, def);
|
|
220
|
-
});
|
|
221
|
-
const $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
|
|
222
|
-
def.pattern ?? (def.pattern = ksuid);
|
|
223
|
-
$ZodStringFormat.init(inst, def);
|
|
224
|
-
});
|
|
225
|
-
const $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
|
|
226
|
-
def.pattern ?? (def.pattern = datetime(def));
|
|
227
|
-
$ZodStringFormat.init(inst, def);
|
|
228
|
-
});
|
|
229
|
-
const $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
|
|
230
|
-
def.pattern ?? (def.pattern = date);
|
|
231
|
-
$ZodStringFormat.init(inst, def);
|
|
232
|
-
});
|
|
233
|
-
const $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
|
|
234
|
-
def.pattern ?? (def.pattern = time(def));
|
|
235
|
-
$ZodStringFormat.init(inst, def);
|
|
236
|
-
});
|
|
237
|
-
const $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
|
|
238
|
-
def.pattern ?? (def.pattern = duration);
|
|
239
|
-
$ZodStringFormat.init(inst, def);
|
|
240
|
-
});
|
|
241
|
-
const $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
242
|
-
def.pattern ?? (def.pattern = ipv4);
|
|
243
|
-
$ZodStringFormat.init(inst, def);
|
|
244
|
-
inst._zod.onattach.push((inst2) => {
|
|
245
|
-
const bag = inst2._zod.bag;
|
|
246
|
-
bag.format = `ipv4`;
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
250
|
-
def.pattern ?? (def.pattern = ipv6);
|
|
251
|
-
$ZodStringFormat.init(inst, def);
|
|
252
|
-
inst._zod.onattach.push((inst2) => {
|
|
253
|
-
const bag = inst2._zod.bag;
|
|
254
|
-
bag.format = `ipv6`;
|
|
255
|
-
});
|
|
256
|
-
inst._zod.check = (payload) => {
|
|
257
|
-
try {
|
|
258
|
-
new URL(`http://[${payload.value}]`);
|
|
259
|
-
} catch {
|
|
260
|
-
payload.issues.push({
|
|
261
|
-
code: "invalid_format",
|
|
262
|
-
format: "ipv6",
|
|
263
|
-
input: payload.value,
|
|
264
|
-
inst,
|
|
265
|
-
continue: !def.abort
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
});
|
|
270
|
-
const $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
271
|
-
def.pattern ?? (def.pattern = cidrv4);
|
|
272
|
-
$ZodStringFormat.init(inst, def);
|
|
273
|
-
});
|
|
274
|
-
const $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
275
|
-
def.pattern ?? (def.pattern = cidrv6);
|
|
276
|
-
$ZodStringFormat.init(inst, def);
|
|
277
|
-
inst._zod.check = (payload) => {
|
|
278
|
-
const [address, prefix] = payload.value.split("/");
|
|
279
|
-
try {
|
|
280
|
-
if (!prefix)
|
|
281
|
-
throw new Error();
|
|
282
|
-
const prefixNum = Number(prefix);
|
|
283
|
-
if (`${prefixNum}` !== prefix)
|
|
284
|
-
throw new Error();
|
|
285
|
-
if (prefixNum < 0 || prefixNum > 128)
|
|
286
|
-
throw new Error();
|
|
287
|
-
new URL(`http://[${address}]`);
|
|
288
|
-
} catch {
|
|
289
|
-
payload.issues.push({
|
|
290
|
-
code: "invalid_format",
|
|
291
|
-
format: "cidrv6",
|
|
292
|
-
input: payload.value,
|
|
293
|
-
inst,
|
|
294
|
-
continue: !def.abort
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
});
|
|
299
|
-
function isValidBase64(data) {
|
|
300
|
-
if (data === "")
|
|
301
|
-
return true;
|
|
302
|
-
if (data.length % 4 !== 0)
|
|
303
|
-
return false;
|
|
304
|
-
try {
|
|
305
|
-
atob(data);
|
|
306
|
-
return true;
|
|
307
|
-
} catch {
|
|
308
|
-
return false;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
312
|
-
def.pattern ?? (def.pattern = base64);
|
|
313
|
-
$ZodStringFormat.init(inst, def);
|
|
314
|
-
inst._zod.onattach.push((inst2) => {
|
|
315
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
316
|
-
});
|
|
317
|
-
inst._zod.check = (payload) => {
|
|
318
|
-
if (isValidBase64(payload.value))
|
|
319
|
-
return;
|
|
320
|
-
payload.issues.push({
|
|
321
|
-
code: "invalid_format",
|
|
322
|
-
format: "base64",
|
|
323
|
-
input: payload.value,
|
|
324
|
-
inst,
|
|
325
|
-
continue: !def.abort
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
});
|
|
329
|
-
function isValidBase64URL(data) {
|
|
330
|
-
if (!base64url.test(data))
|
|
331
|
-
return false;
|
|
332
|
-
const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
333
|
-
const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
|
|
334
|
-
return isValidBase64(padded);
|
|
335
|
-
}
|
|
336
|
-
const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
337
|
-
def.pattern ?? (def.pattern = base64url);
|
|
338
|
-
$ZodStringFormat.init(inst, def);
|
|
339
|
-
inst._zod.onattach.push((inst2) => {
|
|
340
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
341
|
-
});
|
|
342
|
-
inst._zod.check = (payload) => {
|
|
343
|
-
if (isValidBase64URL(payload.value))
|
|
344
|
-
return;
|
|
345
|
-
payload.issues.push({
|
|
346
|
-
code: "invalid_format",
|
|
347
|
-
format: "base64url",
|
|
348
|
-
input: payload.value,
|
|
349
|
-
inst,
|
|
350
|
-
continue: !def.abort
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
});
|
|
354
|
-
const $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
|
|
355
|
-
def.pattern ?? (def.pattern = e164);
|
|
356
|
-
$ZodStringFormat.init(inst, def);
|
|
357
|
-
});
|
|
358
|
-
function isValidJWT(token, algorithm = null) {
|
|
359
|
-
try {
|
|
360
|
-
const tokensParts = token.split(".");
|
|
361
|
-
if (tokensParts.length !== 3)
|
|
362
|
-
return false;
|
|
363
|
-
const [header] = tokensParts;
|
|
364
|
-
if (!header)
|
|
365
|
-
return false;
|
|
366
|
-
const parsedHeader = JSON.parse(atob(header));
|
|
367
|
-
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
|
|
368
|
-
return false;
|
|
369
|
-
if (!parsedHeader.alg)
|
|
370
|
-
return false;
|
|
371
|
-
if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
|
|
372
|
-
return false;
|
|
373
|
-
return true;
|
|
374
|
-
} catch {
|
|
375
|
-
return false;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
379
|
-
$ZodStringFormat.init(inst, def);
|
|
380
|
-
inst._zod.check = (payload) => {
|
|
381
|
-
if (isValidJWT(payload.value, def.alg))
|
|
382
|
-
return;
|
|
383
|
-
payload.issues.push({
|
|
384
|
-
code: "invalid_format",
|
|
385
|
-
format: "jwt",
|
|
386
|
-
input: payload.value,
|
|
387
|
-
inst,
|
|
388
|
-
continue: !def.abort
|
|
389
|
-
});
|
|
390
|
-
};
|
|
391
|
-
});
|
|
392
|
-
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
393
|
-
$ZodType.init(inst, def);
|
|
394
|
-
inst._zod.pattern = inst._zod.bag.pattern ?? number;
|
|
395
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
396
|
-
if (def.coerce)
|
|
397
|
-
try {
|
|
398
|
-
payload.value = Number(payload.value);
|
|
399
|
-
} catch (_) {
|
|
400
|
-
}
|
|
401
|
-
const input = payload.value;
|
|
402
|
-
if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
|
|
403
|
-
return payload;
|
|
404
|
-
}
|
|
405
|
-
const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
|
|
406
|
-
payload.issues.push({
|
|
407
|
-
expected: "number",
|
|
408
|
-
code: "invalid_type",
|
|
409
|
-
input,
|
|
410
|
-
inst,
|
|
411
|
-
...received ? { received } : {}
|
|
412
|
-
});
|
|
413
|
-
return payload;
|
|
414
|
-
};
|
|
415
|
-
});
|
|
416
|
-
const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
417
|
-
$ZodCheckNumberFormat.init(inst, def);
|
|
418
|
-
$ZodNumber.init(inst, def);
|
|
419
|
-
});
|
|
420
|
-
const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
421
|
-
$ZodType.init(inst, def);
|
|
422
|
-
inst._zod.pattern = boolean;
|
|
423
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
424
|
-
if (def.coerce)
|
|
425
|
-
try {
|
|
426
|
-
payload.value = Boolean(payload.value);
|
|
427
|
-
} catch (_) {
|
|
428
|
-
}
|
|
429
|
-
const input = payload.value;
|
|
430
|
-
if (typeof input === "boolean")
|
|
431
|
-
return payload;
|
|
432
|
-
payload.issues.push({
|
|
433
|
-
expected: "boolean",
|
|
434
|
-
code: "invalid_type",
|
|
435
|
-
input,
|
|
436
|
-
inst
|
|
437
|
-
});
|
|
438
|
-
return payload;
|
|
439
|
-
};
|
|
440
|
-
});
|
|
441
|
-
const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
|
|
442
|
-
$ZodType.init(inst, def);
|
|
443
|
-
inst._zod.parse = (payload) => payload;
|
|
444
|
-
});
|
|
445
|
-
const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
446
|
-
$ZodType.init(inst, def);
|
|
447
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
448
|
-
payload.issues.push({
|
|
449
|
-
expected: "never",
|
|
450
|
-
code: "invalid_type",
|
|
451
|
-
input: payload.value,
|
|
452
|
-
inst
|
|
453
|
-
});
|
|
454
|
-
return payload;
|
|
455
|
-
};
|
|
456
|
-
});
|
|
457
|
-
function handleArrayResult(result, final, index) {
|
|
458
|
-
if (result.issues.length) {
|
|
459
|
-
final.issues.push(...prefixIssues(index, result.issues));
|
|
460
|
-
}
|
|
461
|
-
final.value[index] = result.value;
|
|
462
|
-
}
|
|
463
|
-
const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
464
|
-
$ZodType.init(inst, def);
|
|
465
|
-
inst._zod.parse = (payload, ctx) => {
|
|
466
|
-
const input = payload.value;
|
|
467
|
-
if (!Array.isArray(input)) {
|
|
468
|
-
payload.issues.push({
|
|
469
|
-
expected: "array",
|
|
470
|
-
code: "invalid_type",
|
|
471
|
-
input,
|
|
472
|
-
inst
|
|
473
|
-
});
|
|
474
|
-
return payload;
|
|
475
|
-
}
|
|
476
|
-
payload.value = Array(input.length);
|
|
477
|
-
const proms = [];
|
|
478
|
-
for (let i = 0; i < input.length; i++) {
|
|
479
|
-
const item = input[i];
|
|
480
|
-
const result = def.element._zod.run({
|
|
481
|
-
value: item,
|
|
482
|
-
issues: []
|
|
483
|
-
}, ctx);
|
|
484
|
-
if (result instanceof Promise) {
|
|
485
|
-
proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
|
|
486
|
-
} else {
|
|
487
|
-
handleArrayResult(result, payload, i);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
if (proms.length) {
|
|
491
|
-
return Promise.all(proms).then(() => payload);
|
|
492
|
-
}
|
|
493
|
-
return payload;
|
|
494
|
-
};
|
|
495
|
-
});
|
|
496
|
-
function handleObjectResult(result, final, key) {
|
|
497
|
-
if (result.issues.length) {
|
|
498
|
-
final.issues.push(...prefixIssues(key, result.issues));
|
|
499
|
-
}
|
|
500
|
-
final.value[key] = result.value;
|
|
501
|
-
}
|
|
502
|
-
function handleOptionalObjectResult(result, final, key, input) {
|
|
503
|
-
if (result.issues.length) {
|
|
504
|
-
if (input[key] === void 0) {
|
|
505
|
-
if (key in input) {
|
|
506
|
-
final.value[key] = void 0;
|
|
507
|
-
} else {
|
|
508
|
-
final.value[key] = result.value;
|
|
509
|
-
}
|
|
510
|
-
} else {
|
|
511
|
-
final.issues.push(...prefixIssues(key, result.issues));
|
|
512
|
-
}
|
|
513
|
-
} else if (result.value === void 0) {
|
|
514
|
-
if (key in input)
|
|
515
|
-
final.value[key] = void 0;
|
|
516
|
-
} else {
|
|
517
|
-
final.value[key] = result.value;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
521
|
-
$ZodType.init(inst, def);
|
|
522
|
-
const _normalized = cached(() => {
|
|
523
|
-
const keys = Object.keys(def.shape);
|
|
524
|
-
for (const k of keys) {
|
|
525
|
-
if (!(def.shape[k] instanceof $ZodType)) {
|
|
526
|
-
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
const okeys = optionalKeys(def.shape);
|
|
530
|
-
return {
|
|
531
|
-
shape: def.shape,
|
|
532
|
-
keys,
|
|
533
|
-
keySet: new Set(keys),
|
|
534
|
-
numKeys: keys.length,
|
|
535
|
-
optionalKeys: new Set(okeys)
|
|
536
|
-
};
|
|
537
|
-
});
|
|
538
|
-
defineLazy(inst._zod, "propValues", () => {
|
|
539
|
-
const shape = def.shape;
|
|
540
|
-
const propValues = {};
|
|
541
|
-
for (const key in shape) {
|
|
542
|
-
const field = shape[key]._zod;
|
|
543
|
-
if (field.values) {
|
|
544
|
-
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
545
|
-
for (const v of field.values)
|
|
546
|
-
propValues[key].add(v);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
return propValues;
|
|
550
|
-
});
|
|
551
|
-
const generateFastpass = (shape) => {
|
|
552
|
-
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
553
|
-
const normalized = _normalized.value;
|
|
554
|
-
const parseStr = (key) => {
|
|
555
|
-
const k = esc(key);
|
|
556
|
-
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
557
|
-
};
|
|
558
|
-
doc.write(`const input = payload.value;`);
|
|
559
|
-
const ids = /* @__PURE__ */ Object.create(null);
|
|
560
|
-
let counter = 0;
|
|
561
|
-
for (const key of normalized.keys) {
|
|
562
|
-
ids[key] = `key_${counter++}`;
|
|
563
|
-
}
|
|
564
|
-
doc.write(`const newResult = {}`);
|
|
565
|
-
for (const key of normalized.keys) {
|
|
566
|
-
if (normalized.optionalKeys.has(key)) {
|
|
567
|
-
const id = ids[key];
|
|
568
|
-
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
569
|
-
const k = esc(key);
|
|
570
|
-
doc.write(`
|
|
571
|
-
if (${id}.issues.length) {
|
|
572
|
-
if (input[${k}] === undefined) {
|
|
573
|
-
if (${k} in input) {
|
|
574
|
-
newResult[${k}] = undefined;
|
|
575
|
-
}
|
|
576
|
-
} else {
|
|
577
|
-
payload.issues = payload.issues.concat(
|
|
578
|
-
${id}.issues.map((iss) => ({
|
|
579
|
-
...iss,
|
|
580
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}],
|
|
581
|
-
}))
|
|
582
|
-
);
|
|
583
|
-
}
|
|
584
|
-
} else if (${id}.value === undefined) {
|
|
585
|
-
if (${k} in input) newResult[${k}] = undefined;
|
|
586
|
-
} else {
|
|
587
|
-
newResult[${k}] = ${id}.value;
|
|
588
|
-
}
|
|
589
|
-
`);
|
|
590
|
-
} else {
|
|
591
|
-
const id = ids[key];
|
|
592
|
-
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
593
|
-
doc.write(`
|
|
594
|
-
if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
595
|
-
...iss,
|
|
596
|
-
path: iss.path ? [${esc(key)}, ...iss.path] : [${esc(key)}]
|
|
597
|
-
})));`);
|
|
598
|
-
doc.write(`newResult[${esc(key)}] = ${id}.value`);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
doc.write(`payload.value = newResult;`);
|
|
602
|
-
doc.write(`return payload;`);
|
|
603
|
-
const fn = doc.compile();
|
|
604
|
-
return (payload, ctx) => fn(shape, payload, ctx);
|
|
605
|
-
};
|
|
606
|
-
let fastpass;
|
|
607
|
-
const isObject$1 = isObject;
|
|
608
|
-
const jit = !globalConfig.jitless;
|
|
609
|
-
const allowsEval$1 = allowsEval;
|
|
610
|
-
const fastEnabled = jit && allowsEval$1.value;
|
|
611
|
-
const catchall = def.catchall;
|
|
612
|
-
let value;
|
|
613
|
-
inst._zod.parse = (payload, ctx) => {
|
|
614
|
-
value ?? (value = _normalized.value);
|
|
615
|
-
const input = payload.value;
|
|
616
|
-
if (!isObject$1(input)) {
|
|
617
|
-
payload.issues.push({
|
|
618
|
-
expected: "object",
|
|
619
|
-
code: "invalid_type",
|
|
620
|
-
input,
|
|
621
|
-
inst
|
|
622
|
-
});
|
|
623
|
-
return payload;
|
|
624
|
-
}
|
|
625
|
-
const proms = [];
|
|
626
|
-
if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
|
|
627
|
-
if (!fastpass)
|
|
628
|
-
fastpass = generateFastpass(def.shape);
|
|
629
|
-
payload = fastpass(payload, ctx);
|
|
630
|
-
} else {
|
|
631
|
-
payload.value = {};
|
|
632
|
-
const shape = value.shape;
|
|
633
|
-
for (const key of value.keys) {
|
|
634
|
-
const el = shape[key];
|
|
635
|
-
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
636
|
-
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
637
|
-
if (r instanceof Promise) {
|
|
638
|
-
proms.push(r.then((r2) => isOptional ? handleOptionalObjectResult(r2, payload, key, input) : handleObjectResult(r2, payload, key)));
|
|
639
|
-
} else if (isOptional) {
|
|
640
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
641
|
-
} else {
|
|
642
|
-
handleObjectResult(r, payload, key);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
if (!catchall) {
|
|
647
|
-
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
648
|
-
}
|
|
649
|
-
const unrecognized = [];
|
|
650
|
-
const keySet = value.keySet;
|
|
651
|
-
const _catchall = catchall._zod;
|
|
652
|
-
const t = _catchall.def.type;
|
|
653
|
-
for (const key of Object.keys(input)) {
|
|
654
|
-
if (keySet.has(key))
|
|
655
|
-
continue;
|
|
656
|
-
if (t === "never") {
|
|
657
|
-
unrecognized.push(key);
|
|
658
|
-
continue;
|
|
659
|
-
}
|
|
660
|
-
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
661
|
-
if (r instanceof Promise) {
|
|
662
|
-
proms.push(r.then((r2) => handleObjectResult(r2, payload, key)));
|
|
663
|
-
} else {
|
|
664
|
-
handleObjectResult(r, payload, key);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
if (unrecognized.length) {
|
|
668
|
-
payload.issues.push({
|
|
669
|
-
code: "unrecognized_keys",
|
|
670
|
-
keys: unrecognized,
|
|
671
|
-
input,
|
|
672
|
-
inst
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
if (!proms.length)
|
|
676
|
-
return payload;
|
|
677
|
-
return Promise.all(proms).then(() => {
|
|
678
|
-
return payload;
|
|
679
|
-
});
|
|
680
|
-
};
|
|
681
|
-
});
|
|
682
|
-
function handleUnionResults(results, final, inst, ctx) {
|
|
683
|
-
for (const result of results) {
|
|
684
|
-
if (result.issues.length === 0) {
|
|
685
|
-
final.value = result.value;
|
|
686
|
-
return final;
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
final.issues.push({
|
|
690
|
-
code: "invalid_union",
|
|
691
|
-
input: final.value,
|
|
692
|
-
inst,
|
|
693
|
-
errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
694
|
-
});
|
|
695
|
-
return final;
|
|
696
|
-
}
|
|
697
|
-
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
698
|
-
$ZodType.init(inst, def);
|
|
699
|
-
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
700
|
-
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
701
|
-
defineLazy(inst._zod, "values", () => {
|
|
702
|
-
if (def.options.every((o) => o._zod.values)) {
|
|
703
|
-
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
704
|
-
}
|
|
705
|
-
return void 0;
|
|
706
|
-
});
|
|
707
|
-
defineLazy(inst._zod, "pattern", () => {
|
|
708
|
-
if (def.options.every((o) => o._zod.pattern)) {
|
|
709
|
-
const patterns = def.options.map((o) => o._zod.pattern);
|
|
710
|
-
return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
|
|
711
|
-
}
|
|
712
|
-
return void 0;
|
|
713
|
-
});
|
|
714
|
-
inst._zod.parse = (payload, ctx) => {
|
|
715
|
-
let async = false;
|
|
716
|
-
const results = [];
|
|
717
|
-
for (const option of def.options) {
|
|
718
|
-
const result = option._zod.run({
|
|
719
|
-
value: payload.value,
|
|
720
|
-
issues: []
|
|
721
|
-
}, ctx);
|
|
722
|
-
if (result instanceof Promise) {
|
|
723
|
-
results.push(result);
|
|
724
|
-
async = true;
|
|
725
|
-
} else {
|
|
726
|
-
if (result.issues.length === 0)
|
|
727
|
-
return result;
|
|
728
|
-
results.push(result);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
if (!async)
|
|
732
|
-
return handleUnionResults(results, payload, inst, ctx);
|
|
733
|
-
return Promise.all(results).then((results2) => {
|
|
734
|
-
return handleUnionResults(results2, payload, inst, ctx);
|
|
735
|
-
});
|
|
736
|
-
};
|
|
737
|
-
});
|
|
738
|
-
const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
739
|
-
$ZodUnion.init(inst, def);
|
|
740
|
-
const _super = inst._zod.parse;
|
|
741
|
-
defineLazy(inst._zod, "propValues", () => {
|
|
742
|
-
const propValues = {};
|
|
743
|
-
for (const option of def.options) {
|
|
744
|
-
const pv = option._zod.propValues;
|
|
745
|
-
if (!pv || Object.keys(pv).length === 0)
|
|
746
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
747
|
-
for (const [k, v] of Object.entries(pv)) {
|
|
748
|
-
if (!propValues[k])
|
|
749
|
-
propValues[k] = /* @__PURE__ */ new Set();
|
|
750
|
-
for (const val of v) {
|
|
751
|
-
propValues[k].add(val);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
return propValues;
|
|
756
|
-
});
|
|
757
|
-
const disc = cached(() => {
|
|
758
|
-
const opts = def.options;
|
|
759
|
-
const map = /* @__PURE__ */ new Map();
|
|
760
|
-
for (const o of opts) {
|
|
761
|
-
const values = o._zod.propValues[def.discriminator];
|
|
762
|
-
if (!values || values.size === 0)
|
|
763
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
764
|
-
for (const v of values) {
|
|
765
|
-
if (map.has(v)) {
|
|
766
|
-
throw new Error(`Duplicate discriminator value "${String(v)}"`);
|
|
767
|
-
}
|
|
768
|
-
map.set(v, o);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
return map;
|
|
772
|
-
});
|
|
773
|
-
inst._zod.parse = (payload, ctx) => {
|
|
774
|
-
const input = payload.value;
|
|
775
|
-
if (!isObject(input)) {
|
|
776
|
-
payload.issues.push({
|
|
777
|
-
code: "invalid_type",
|
|
778
|
-
expected: "object",
|
|
779
|
-
input,
|
|
780
|
-
inst
|
|
781
|
-
});
|
|
782
|
-
return payload;
|
|
783
|
-
}
|
|
784
|
-
const opt = disc.value.get(input?.[def.discriminator]);
|
|
785
|
-
if (opt) {
|
|
786
|
-
return opt._zod.run(payload, ctx);
|
|
787
|
-
}
|
|
788
|
-
if (def.unionFallback) {
|
|
789
|
-
return _super(payload, ctx);
|
|
790
|
-
}
|
|
791
|
-
payload.issues.push({
|
|
792
|
-
code: "invalid_union",
|
|
793
|
-
errors: [],
|
|
794
|
-
note: "No matching discriminator",
|
|
795
|
-
input,
|
|
796
|
-
path: [def.discriminator],
|
|
797
|
-
inst
|
|
798
|
-
});
|
|
799
|
-
return payload;
|
|
800
|
-
};
|
|
801
|
-
});
|
|
802
|
-
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
803
|
-
$ZodType.init(inst, def);
|
|
804
|
-
inst._zod.parse = (payload, ctx) => {
|
|
805
|
-
const input = payload.value;
|
|
806
|
-
const left = def.left._zod.run({ value: input, issues: [] }, ctx);
|
|
807
|
-
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
808
|
-
const async = left instanceof Promise || right instanceof Promise;
|
|
809
|
-
if (async) {
|
|
810
|
-
return Promise.all([left, right]).then(([left2, right2]) => {
|
|
811
|
-
return handleIntersectionResults(payload, left2, right2);
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
return handleIntersectionResults(payload, left, right);
|
|
815
|
-
};
|
|
816
|
-
});
|
|
817
|
-
function mergeValues(a, b) {
|
|
818
|
-
if (a === b) {
|
|
819
|
-
return { valid: true, data: a };
|
|
820
|
-
}
|
|
821
|
-
if (a instanceof Date && b instanceof Date && +a === +b) {
|
|
822
|
-
return { valid: true, data: a };
|
|
823
|
-
}
|
|
824
|
-
if (isPlainObject(a) && isPlainObject(b)) {
|
|
825
|
-
const bKeys = Object.keys(b);
|
|
826
|
-
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
827
|
-
const newObj = { ...a, ...b };
|
|
828
|
-
for (const key of sharedKeys) {
|
|
829
|
-
const sharedValue = mergeValues(a[key], b[key]);
|
|
830
|
-
if (!sharedValue.valid) {
|
|
831
|
-
return {
|
|
832
|
-
valid: false,
|
|
833
|
-
mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
newObj[key] = sharedValue.data;
|
|
837
|
-
}
|
|
838
|
-
return { valid: true, data: newObj };
|
|
839
|
-
}
|
|
840
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
841
|
-
if (a.length !== b.length) {
|
|
842
|
-
return { valid: false, mergeErrorPath: [] };
|
|
843
|
-
}
|
|
844
|
-
const newArray = [];
|
|
845
|
-
for (let index = 0; index < a.length; index++) {
|
|
846
|
-
const itemA = a[index];
|
|
847
|
-
const itemB = b[index];
|
|
848
|
-
const sharedValue = mergeValues(itemA, itemB);
|
|
849
|
-
if (!sharedValue.valid) {
|
|
850
|
-
return {
|
|
851
|
-
valid: false,
|
|
852
|
-
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
newArray.push(sharedValue.data);
|
|
856
|
-
}
|
|
857
|
-
return { valid: true, data: newArray };
|
|
858
|
-
}
|
|
859
|
-
return { valid: false, mergeErrorPath: [] };
|
|
860
|
-
}
|
|
861
|
-
function handleIntersectionResults(result, left, right) {
|
|
862
|
-
if (left.issues.length) {
|
|
863
|
-
result.issues.push(...left.issues);
|
|
864
|
-
}
|
|
865
|
-
if (right.issues.length) {
|
|
866
|
-
result.issues.push(...right.issues);
|
|
867
|
-
}
|
|
868
|
-
if (aborted(result))
|
|
869
|
-
return result;
|
|
870
|
-
const merged = mergeValues(left.value, right.value);
|
|
871
|
-
if (!merged.valid) {
|
|
872
|
-
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
|
|
873
|
-
}
|
|
874
|
-
result.value = merged.data;
|
|
875
|
-
return result;
|
|
876
|
-
}
|
|
877
|
-
const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
878
|
-
$ZodType.init(inst, def);
|
|
879
|
-
inst._zod.parse = (payload, ctx) => {
|
|
880
|
-
const input = payload.value;
|
|
881
|
-
if (!isPlainObject(input)) {
|
|
882
|
-
payload.issues.push({
|
|
883
|
-
expected: "record",
|
|
884
|
-
code: "invalid_type",
|
|
885
|
-
input,
|
|
886
|
-
inst
|
|
887
|
-
});
|
|
888
|
-
return payload;
|
|
889
|
-
}
|
|
890
|
-
const proms = [];
|
|
891
|
-
if (def.keyType._zod.values) {
|
|
892
|
-
const values = def.keyType._zod.values;
|
|
893
|
-
payload.value = {};
|
|
894
|
-
for (const key of values) {
|
|
895
|
-
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
896
|
-
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
897
|
-
if (result instanceof Promise) {
|
|
898
|
-
proms.push(result.then((result2) => {
|
|
899
|
-
if (result2.issues.length) {
|
|
900
|
-
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
901
|
-
}
|
|
902
|
-
payload.value[key] = result2.value;
|
|
903
|
-
}));
|
|
904
|
-
} else {
|
|
905
|
-
if (result.issues.length) {
|
|
906
|
-
payload.issues.push(...prefixIssues(key, result.issues));
|
|
907
|
-
}
|
|
908
|
-
payload.value[key] = result.value;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
let unrecognized;
|
|
913
|
-
for (const key in input) {
|
|
914
|
-
if (!values.has(key)) {
|
|
915
|
-
unrecognized = unrecognized ?? [];
|
|
916
|
-
unrecognized.push(key);
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
if (unrecognized && unrecognized.length > 0) {
|
|
920
|
-
payload.issues.push({
|
|
921
|
-
code: "unrecognized_keys",
|
|
922
|
-
input,
|
|
923
|
-
inst,
|
|
924
|
-
keys: unrecognized
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
} else {
|
|
928
|
-
payload.value = {};
|
|
929
|
-
for (const key of Reflect.ownKeys(input)) {
|
|
930
|
-
if (key === "__proto__")
|
|
931
|
-
continue;
|
|
932
|
-
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
933
|
-
if (keyResult instanceof Promise) {
|
|
934
|
-
throw new Error("Async schemas not supported in object keys currently");
|
|
935
|
-
}
|
|
936
|
-
if (keyResult.issues.length) {
|
|
937
|
-
payload.issues.push({
|
|
938
|
-
origin: "record",
|
|
939
|
-
code: "invalid_key",
|
|
940
|
-
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
941
|
-
input: key,
|
|
942
|
-
path: [key],
|
|
943
|
-
inst
|
|
944
|
-
});
|
|
945
|
-
payload.value[keyResult.value] = keyResult.value;
|
|
946
|
-
continue;
|
|
947
|
-
}
|
|
948
|
-
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
949
|
-
if (result instanceof Promise) {
|
|
950
|
-
proms.push(result.then((result2) => {
|
|
951
|
-
if (result2.issues.length) {
|
|
952
|
-
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
953
|
-
}
|
|
954
|
-
payload.value[keyResult.value] = result2.value;
|
|
955
|
-
}));
|
|
956
|
-
} else {
|
|
957
|
-
if (result.issues.length) {
|
|
958
|
-
payload.issues.push(...prefixIssues(key, result.issues));
|
|
959
|
-
}
|
|
960
|
-
payload.value[keyResult.value] = result.value;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
if (proms.length) {
|
|
965
|
-
return Promise.all(proms).then(() => payload);
|
|
966
|
-
}
|
|
967
|
-
return payload;
|
|
968
|
-
};
|
|
969
|
-
});
|
|
970
|
-
const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
971
|
-
$ZodType.init(inst, def);
|
|
972
|
-
const values = getEnumValues(def.entries);
|
|
973
|
-
inst._zod.values = new Set(values);
|
|
974
|
-
inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
|
|
975
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
976
|
-
const input = payload.value;
|
|
977
|
-
if (inst._zod.values.has(input)) {
|
|
978
|
-
return payload;
|
|
979
|
-
}
|
|
980
|
-
payload.issues.push({
|
|
981
|
-
code: "invalid_value",
|
|
982
|
-
values,
|
|
983
|
-
input,
|
|
984
|
-
inst
|
|
985
|
-
});
|
|
986
|
-
return payload;
|
|
987
|
-
};
|
|
988
|
-
});
|
|
989
|
-
const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
990
|
-
$ZodType.init(inst, def);
|
|
991
|
-
inst._zod.values = new Set(def.values);
|
|
992
|
-
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? o.toString() : String(o)).join("|")})$`);
|
|
993
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
994
|
-
const input = payload.value;
|
|
995
|
-
if (inst._zod.values.has(input)) {
|
|
996
|
-
return payload;
|
|
997
|
-
}
|
|
998
|
-
payload.issues.push({
|
|
999
|
-
code: "invalid_value",
|
|
1000
|
-
values: def.values,
|
|
1001
|
-
input,
|
|
1002
|
-
inst
|
|
1003
|
-
});
|
|
1004
|
-
return payload;
|
|
1005
|
-
};
|
|
1006
|
-
});
|
|
1007
|
-
const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
1008
|
-
$ZodType.init(inst, def);
|
|
1009
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
1010
|
-
const _out = def.transform(payload.value, payload);
|
|
1011
|
-
if (_ctx.async) {
|
|
1012
|
-
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
1013
|
-
return output.then((output2) => {
|
|
1014
|
-
payload.value = output2;
|
|
1015
|
-
return payload;
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
if (_out instanceof Promise) {
|
|
1019
|
-
throw new $ZodAsyncError();
|
|
1020
|
-
}
|
|
1021
|
-
payload.value = _out;
|
|
1022
|
-
return payload;
|
|
1023
|
-
};
|
|
1024
|
-
});
|
|
1025
|
-
const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
1026
|
-
$ZodType.init(inst, def);
|
|
1027
|
-
inst._zod.optin = "optional";
|
|
1028
|
-
inst._zod.optout = "optional";
|
|
1029
|
-
defineLazy(inst._zod, "values", () => {
|
|
1030
|
-
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
1031
|
-
});
|
|
1032
|
-
defineLazy(inst._zod, "pattern", () => {
|
|
1033
|
-
const pattern = def.innerType._zod.pattern;
|
|
1034
|
-
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
|
|
1035
|
-
});
|
|
1036
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1037
|
-
if (def.innerType._zod.optin === "optional") {
|
|
1038
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1039
|
-
}
|
|
1040
|
-
if (payload.value === void 0) {
|
|
1041
|
-
return payload;
|
|
1042
|
-
}
|
|
1043
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1044
|
-
};
|
|
1045
|
-
});
|
|
1046
|
-
const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
|
|
1047
|
-
$ZodType.init(inst, def);
|
|
1048
|
-
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
1049
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1050
|
-
defineLazy(inst._zod, "pattern", () => {
|
|
1051
|
-
const pattern = def.innerType._zod.pattern;
|
|
1052
|
-
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
|
|
1053
|
-
});
|
|
1054
|
-
defineLazy(inst._zod, "values", () => {
|
|
1055
|
-
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
|
|
1056
|
-
});
|
|
1057
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1058
|
-
if (payload.value === null)
|
|
1059
|
-
return payload;
|
|
1060
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1061
|
-
};
|
|
1062
|
-
});
|
|
1063
|
-
const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
1064
|
-
$ZodType.init(inst, def);
|
|
1065
|
-
inst._zod.optin = "optional";
|
|
1066
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1067
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1068
|
-
if (payload.value === void 0) {
|
|
1069
|
-
payload.value = def.defaultValue;
|
|
1070
|
-
return payload;
|
|
1071
|
-
}
|
|
1072
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
1073
|
-
if (result instanceof Promise) {
|
|
1074
|
-
return result.then((result2) => handleDefaultResult(result2, def));
|
|
1075
|
-
}
|
|
1076
|
-
return handleDefaultResult(result, def);
|
|
1077
|
-
};
|
|
1078
|
-
});
|
|
1079
|
-
function handleDefaultResult(payload, def) {
|
|
1080
|
-
if (payload.value === void 0) {
|
|
1081
|
-
payload.value = def.defaultValue;
|
|
1082
|
-
}
|
|
1083
|
-
return payload;
|
|
1084
|
-
}
|
|
1085
|
-
const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
|
|
1086
|
-
$ZodType.init(inst, def);
|
|
1087
|
-
inst._zod.optin = "optional";
|
|
1088
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1089
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1090
|
-
if (payload.value === void 0) {
|
|
1091
|
-
payload.value = def.defaultValue;
|
|
1092
|
-
}
|
|
1093
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1094
|
-
};
|
|
1095
|
-
});
|
|
1096
|
-
const $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
|
|
1097
|
-
$ZodType.init(inst, def);
|
|
1098
|
-
defineLazy(inst._zod, "values", () => {
|
|
1099
|
-
const v = def.innerType._zod.values;
|
|
1100
|
-
return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
|
|
1101
|
-
});
|
|
1102
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1103
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
1104
|
-
if (result instanceof Promise) {
|
|
1105
|
-
return result.then((result2) => handleNonOptionalResult(result2, inst));
|
|
1106
|
-
}
|
|
1107
|
-
return handleNonOptionalResult(result, inst);
|
|
1108
|
-
};
|
|
1109
|
-
});
|
|
1110
|
-
function handleNonOptionalResult(payload, inst) {
|
|
1111
|
-
if (!payload.issues.length && payload.value === void 0) {
|
|
1112
|
-
payload.issues.push({
|
|
1113
|
-
code: "invalid_type",
|
|
1114
|
-
expected: "nonoptional",
|
|
1115
|
-
input: payload.value,
|
|
1116
|
-
inst
|
|
1117
|
-
});
|
|
1118
|
-
}
|
|
1119
|
-
return payload;
|
|
1120
|
-
}
|
|
1121
|
-
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
1122
|
-
$ZodType.init(inst, def);
|
|
1123
|
-
inst._zod.optin = "optional";
|
|
1124
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1125
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1126
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1127
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
1128
|
-
if (result instanceof Promise) {
|
|
1129
|
-
return result.then((result2) => {
|
|
1130
|
-
payload.value = result2.value;
|
|
1131
|
-
if (result2.issues.length) {
|
|
1132
|
-
payload.value = def.catchValue({
|
|
1133
|
-
...payload,
|
|
1134
|
-
error: {
|
|
1135
|
-
issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
1136
|
-
},
|
|
1137
|
-
input: payload.value
|
|
1138
|
-
});
|
|
1139
|
-
payload.issues = [];
|
|
1140
|
-
}
|
|
1141
|
-
return payload;
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
payload.value = result.value;
|
|
1145
|
-
if (result.issues.length) {
|
|
1146
|
-
payload.value = def.catchValue({
|
|
1147
|
-
...payload,
|
|
1148
|
-
error: {
|
|
1149
|
-
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
1150
|
-
},
|
|
1151
|
-
input: payload.value
|
|
1152
|
-
});
|
|
1153
|
-
payload.issues = [];
|
|
1154
|
-
}
|
|
1155
|
-
return payload;
|
|
1156
|
-
};
|
|
1157
|
-
});
|
|
1158
|
-
const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
1159
|
-
$ZodType.init(inst, def);
|
|
1160
|
-
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
1161
|
-
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
1162
|
-
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
1163
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1164
|
-
const left = def.in._zod.run(payload, ctx);
|
|
1165
|
-
if (left instanceof Promise) {
|
|
1166
|
-
return left.then((left2) => handlePipeResult(left2, def, ctx));
|
|
1167
|
-
}
|
|
1168
|
-
return handlePipeResult(left, def, ctx);
|
|
1169
|
-
};
|
|
1170
|
-
});
|
|
1171
|
-
function handlePipeResult(left, def, ctx) {
|
|
1172
|
-
if (aborted(left)) {
|
|
1173
|
-
return left;
|
|
1174
|
-
}
|
|
1175
|
-
return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
1176
|
-
}
|
|
1177
|
-
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
1178
|
-
$ZodType.init(inst, def);
|
|
1179
|
-
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
1180
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1181
|
-
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
1182
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1183
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1184
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
1185
|
-
if (result instanceof Promise) {
|
|
1186
|
-
return result.then(handleReadonlyResult);
|
|
1187
|
-
}
|
|
1188
|
-
return handleReadonlyResult(result);
|
|
1189
|
-
};
|
|
1190
|
-
});
|
|
1191
|
-
function handleReadonlyResult(payload) {
|
|
1192
|
-
payload.value = Object.freeze(payload.value);
|
|
1193
|
-
return payload;
|
|
1194
|
-
}
|
|
1195
|
-
const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
1196
|
-
$ZodCheck.init(inst, def);
|
|
1197
|
-
$ZodType.init(inst, def);
|
|
1198
|
-
inst._zod.parse = (payload, _) => {
|
|
1199
|
-
return payload;
|
|
1200
|
-
};
|
|
1201
|
-
inst._zod.check = (payload) => {
|
|
1202
|
-
const input = payload.value;
|
|
1203
|
-
const r = def.fn(input);
|
|
1204
|
-
if (r instanceof Promise) {
|
|
1205
|
-
return r.then((r2) => handleRefineResult(r2, payload, input, inst));
|
|
1206
|
-
}
|
|
1207
|
-
handleRefineResult(r, payload, input, inst);
|
|
1208
|
-
return;
|
|
1209
|
-
};
|
|
1210
|
-
});
|
|
1211
|
-
function handleRefineResult(result, payload, input, inst) {
|
|
1212
|
-
if (!result) {
|
|
1213
|
-
const _iss = {
|
|
1214
|
-
code: "custom",
|
|
1215
|
-
input,
|
|
1216
|
-
inst,
|
|
1217
|
-
// incorporates params.error into issue reporting
|
|
1218
|
-
path: [...inst._zod.def.path ?? []],
|
|
1219
|
-
// incorporates params.error into issue reporting
|
|
1220
|
-
continue: !inst._zod.def.abort
|
|
1221
|
-
// params: inst._zod.def.params,
|
|
1222
|
-
};
|
|
1223
|
-
if (inst._zod.def.params)
|
|
1224
|
-
_iss.params = inst._zod.def.params;
|
|
1225
|
-
payload.issues.push(issue(_iss));
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
export {
|
|
1229
|
-
$ZodArray,
|
|
1230
|
-
$ZodBase64,
|
|
1231
|
-
$ZodBase64URL,
|
|
1232
|
-
$ZodBoolean,
|
|
1233
|
-
$ZodCIDRv4,
|
|
1234
|
-
$ZodCIDRv6,
|
|
1235
|
-
$ZodCUID,
|
|
1236
|
-
$ZodCUID2,
|
|
1237
|
-
$ZodCatch,
|
|
1238
|
-
$ZodCustom,
|
|
1239
|
-
$ZodDefault,
|
|
1240
|
-
$ZodDiscriminatedUnion,
|
|
1241
|
-
$ZodE164,
|
|
1242
|
-
$ZodEmail,
|
|
1243
|
-
$ZodEmoji,
|
|
1244
|
-
$ZodEnum,
|
|
1245
|
-
$ZodGUID,
|
|
1246
|
-
$ZodIPv4,
|
|
1247
|
-
$ZodIPv6,
|
|
1248
|
-
$ZodISODate,
|
|
1249
|
-
$ZodISODateTime,
|
|
1250
|
-
$ZodISODuration,
|
|
1251
|
-
$ZodISOTime,
|
|
1252
|
-
$ZodIntersection,
|
|
1253
|
-
$ZodJWT,
|
|
1254
|
-
$ZodKSUID,
|
|
1255
|
-
$ZodLiteral,
|
|
1256
|
-
$ZodNanoID,
|
|
1257
|
-
$ZodNever,
|
|
1258
|
-
$ZodNonOptional,
|
|
1259
|
-
$ZodNullable,
|
|
1260
|
-
$ZodNumber,
|
|
1261
|
-
$ZodNumberFormat,
|
|
1262
|
-
$ZodObject,
|
|
1263
|
-
$ZodOptional,
|
|
1264
|
-
$ZodPipe,
|
|
1265
|
-
$ZodPrefault,
|
|
1266
|
-
$ZodReadonly,
|
|
1267
|
-
$ZodRecord,
|
|
1268
|
-
$ZodString,
|
|
1269
|
-
$ZodStringFormat,
|
|
1270
|
-
$ZodTransform,
|
|
1271
|
-
$ZodType,
|
|
1272
|
-
$ZodULID,
|
|
1273
|
-
$ZodURL,
|
|
1274
|
-
$ZodUUID,
|
|
1275
|
-
$ZodUnion,
|
|
1276
|
-
$ZodUnknown,
|
|
1277
|
-
$ZodXID,
|
|
1278
|
-
clone,
|
|
1279
|
-
isValidBase64,
|
|
1280
|
-
isValidBase64URL,
|
|
1281
|
-
isValidJWT
|
|
1282
|
-
};
|
|
1283
|
-
//# sourceMappingURL=schemas.js.map
|