@nexalink/carecompass-sdk 0.6.0 → 0.7.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 +380 -4
- package/dist/adapters.d.ts +54 -0
- package/dist/adapters.js +53 -0
- package/dist/client.d.ts +117 -1
- package/dist/client.js +218 -2
- package/dist/coding-element.d.ts +22 -0
- package/dist/coding-element.js +475 -0
- package/dist/coding-ui.d.ts +62 -0
- package/dist/coding-ui.js +358 -0
- package/dist/coding.d.ts +188 -0
- package/dist/coding.js +590 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +6 -0
- package/dist/rcm.d.ts +5 -16
- package/dist/rcm.js +58 -53
- package/dist/telemetry.d.ts +11 -0
- package/dist/telemetry.js +19 -2
- package/dist/ui.d.ts +4 -0
- package/dist/ui.js +2 -0
- package/dist/version.js +1 -1
- package/node_modules/@nexalink/coding-contracts/LICENSE +23 -0
- package/node_modules/@nexalink/coding-contracts/README.md +200 -0
- package/node_modules/@nexalink/coding-contracts/dist/cjs/index.cjs +6179 -0
- package/node_modules/@nexalink/coding-contracts/dist/index.d.ts +1338 -0
- package/node_modules/@nexalink/coding-contracts/dist/index.js +6135 -0
- package/node_modules/@nexalink/coding-contracts/package.json +60 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-batch.schema.json +63 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-case-clinical.schema.json +428 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-case-context.schema.json +128 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-case-payer.schema.json +126 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-case.schema.json +97 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-decision-line.schema.json +172 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-decision.schema.json +430 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-evidence.schema.json +100 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-extension.schema.json +36 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-reviewer-action.schema.json +64 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-rule-result.schema.json +90 -0
- package/node_modules/@nexalink/coding-contracts/schemas/coding-service-line.schema.json +120 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-coding-input.schema.json +82 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-coding-output.schema.json +146 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-model-prompt.schema.json +91 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-retrieval-metadata.schema.json +61 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-reviewer-event.schema.json +92 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-runtime-event.schema.json +170 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-supporting-reference.schema.json +81 -0
- package/node_modules/@nexalink/coding-contracts/schemas/rcm-workflow-catalog.schema.json +180 -0
- package/node_modules/@nexalink/coding-contracts/versions.json +107 -0
- package/node_modules/@nexalink/coding-contracts/workflow-constants.json +11 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +32 -5
- package/qa-fixtures/DEMO-ENC-1042-rcm-policy.md +16 -11
package/dist/rcm.js
CHANGED
|
@@ -1,83 +1,78 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { RCM_WORKFLOW_ID, rcmCodingInputValidationError, rcmCodingOutputValidationError, } from "@nexalink/coding-contracts";
|
|
3
4
|
import { createCareCompassCore, } from "./core.js";
|
|
4
5
|
const OPERATIONAL_HYPOTHESIS = {
|
|
5
6
|
metric: "manual_research_minutes_per_case",
|
|
6
7
|
target: "Measure whether assisted review reduces manual research time by 25% or more.",
|
|
7
8
|
};
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const RCM_MIGRATION_NOTICE = "[carecompass-sdk] The RCM coding-assistance convenience API is deprecated. " +
|
|
10
|
+
"Migrate to the generic headless coding API: createCodingFlow at " +
|
|
11
|
+
"@nexalink/carecompass-sdk/coding and the CodingReview UI at " +
|
|
12
|
+
"@nexalink/carecompass-sdk/coding-ui. See the README section " +
|
|
13
|
+
"\u201cMigrating from the RCM coding-assistance API\u201d for the compatibility path.";
|
|
14
|
+
let rcmMigrationWarned = false;
|
|
15
|
+
const warnRcmMigration = () => {
|
|
16
|
+
if (rcmMigrationWarned || typeof console === "undefined")
|
|
17
|
+
return;
|
|
18
|
+
rcmMigrationWarned = true;
|
|
19
|
+
console.warn(RCM_MIGRATION_NOTICE);
|
|
20
|
+
};
|
|
15
21
|
const asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value)
|
|
16
22
|
? value
|
|
17
23
|
: null;
|
|
18
|
-
const stringArray = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string")
|
|
19
|
-
? value
|
|
20
|
-
: null;
|
|
21
24
|
const extractJson = (value) => {
|
|
22
25
|
const trimmed = value.trim();
|
|
23
26
|
const json = trimmed.replace(/^```(?:json)?\s*/i, "").replace(/\s*```$/, "");
|
|
24
27
|
return JSON.parse(json);
|
|
25
28
|
};
|
|
26
|
-
const
|
|
27
|
-
const parseResult = (value) => {
|
|
29
|
+
const parseResult = (value, policyReferences) => {
|
|
28
30
|
try {
|
|
29
31
|
const body = asRecord(extractJson(value));
|
|
30
|
-
if (!body
|
|
31
|
-
return null;
|
|
32
|
-
if (!isOneOf(body.disposition, DISPOSITIONS))
|
|
33
|
-
return null;
|
|
34
|
-
if (typeof body.rationale !== "string")
|
|
32
|
+
if (!body)
|
|
35
33
|
return null;
|
|
36
|
-
const
|
|
37
|
-
|
|
34
|
+
const allowedReferenceIds = new Set();
|
|
35
|
+
const referenceTextById = {};
|
|
36
|
+
policyReferences.forEach((reference, index) => {
|
|
37
|
+
const alias = `reference-${index + 1}`;
|
|
38
|
+
const referenceText = `${reference.title}\n${reference.excerpt}`;
|
|
39
|
+
allowedReferenceIds.add(alias);
|
|
40
|
+
allowedReferenceIds.add(reference.id);
|
|
41
|
+
referenceTextById[alias] = referenceText;
|
|
42
|
+
referenceTextById[reference.id] = referenceText;
|
|
43
|
+
});
|
|
44
|
+
if (rcmCodingOutputValidationError(body, {
|
|
45
|
+
allowedReferenceIds,
|
|
46
|
+
referenceTextById,
|
|
47
|
+
}) !== null) {
|
|
38
48
|
return null;
|
|
49
|
+
}
|
|
39
50
|
const recommendations = body.recommendations.map((candidate) => {
|
|
40
51
|
const entry = asRecord(candidate);
|
|
41
|
-
if (!entry
|
|
42
|
-
typeof entry.code !== "string" ||
|
|
43
|
-
!/^[A-Za-z0-9.]{2,12}$/.test(entry.code) ||
|
|
44
|
-
!isOneOf(entry.codeSystem, CODE_SYSTEMS) ||
|
|
45
|
-
!isOneOf(entry.confidence, CONFIDENCES) ||
|
|
46
|
-
typeof entry.rationale !== "string") {
|
|
52
|
+
if (!entry)
|
|
47
53
|
return null;
|
|
48
|
-
|
|
49
|
-
const policyReferenceIds =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
codeSystem: entry.codeSystem,
|
|
63
|
-
confidence: entry.confidence,
|
|
64
|
-
rationale: entry.rationale,
|
|
65
|
-
policyReferenceIds: evidenceIds,
|
|
66
|
-
}
|
|
67
|
-
: null;
|
|
54
|
+
const idValue = entry["policyReferenceIds"] ?? entry["evidenceIds"];
|
|
55
|
+
const policyReferenceIds = Array.isArray(idValue) &&
|
|
56
|
+
idValue.every((id) => typeof id === "string")
|
|
57
|
+
? idValue
|
|
58
|
+
: null;
|
|
59
|
+
if (!policyReferenceIds)
|
|
60
|
+
return null;
|
|
61
|
+
return {
|
|
62
|
+
code: entry["code"],
|
|
63
|
+
codeSystem: entry["codeSystem"],
|
|
64
|
+
confidence: entry["confidence"],
|
|
65
|
+
rationale: entry["rationale"],
|
|
66
|
+
policyReferenceIds,
|
|
67
|
+
};
|
|
68
68
|
});
|
|
69
69
|
if (recommendations.some((candidate) => candidate === null))
|
|
70
70
|
return null;
|
|
71
|
-
if ((body.disposition === "review_required" &&
|
|
72
|
-
recommendations.length === 0) ||
|
|
73
|
-
(body.disposition !== "review_required" && recommendations.length > 0)) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
71
|
return {
|
|
77
72
|
disposition: body.disposition,
|
|
78
73
|
humanReviewRequired: true,
|
|
79
74
|
recommendations: recommendations,
|
|
80
|
-
documentationGaps,
|
|
75
|
+
documentationGaps: body.documentationGaps,
|
|
81
76
|
rationale: body.rationale,
|
|
82
77
|
};
|
|
83
78
|
}
|
|
@@ -140,6 +135,7 @@ const enforceRules = (result, policyReferences, rules, processingTimeMs) => {
|
|
|
140
135
|
* customer that maintains its own approved, server-side retrieval boundary.
|
|
141
136
|
*/
|
|
142
137
|
export function createRcmCodingWorkflow(config, options = {}) {
|
|
138
|
+
warnRcmMigration();
|
|
143
139
|
if (options.core && options.coreOptions) {
|
|
144
140
|
throw new Error("Provide either an existing core or coreOptions, not both.");
|
|
145
141
|
}
|
|
@@ -153,6 +149,12 @@ export function createRcmCodingWorkflow(config, options = {}) {
|
|
|
153
149
|
const startedAt = now();
|
|
154
150
|
const processingTime = () => Math.max(0, now() - startedAt);
|
|
155
151
|
let policyReferences = [];
|
|
152
|
+
if (rcmCodingInputValidationError(input) !== null) {
|
|
153
|
+
core.recordSafetyDecision("escalated", "widget_action");
|
|
154
|
+
const result = fallback("The coding-assistance input did not satisfy the canonical workflow contract. Route this encounter to a qualified coder.", policyReferences, processingTime());
|
|
155
|
+
options.onResult?.(result);
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
156
158
|
try {
|
|
157
159
|
if (options.retrieval && options.retrieval !== "hosted") {
|
|
158
160
|
policyReferences = await options.retrieval.search({
|
|
@@ -186,7 +188,7 @@ export function createRcmCodingWorkflow(config, options = {}) {
|
|
|
186
188
|
core.recordWidgetAction("recorded");
|
|
187
189
|
try {
|
|
188
190
|
await core.sendMessage(promptFor(input, policyReferences, rules), {
|
|
189
|
-
workflow:
|
|
191
|
+
workflow: RCM_WORKFLOW_ID,
|
|
190
192
|
context: {
|
|
191
193
|
rcmCodingInput: input,
|
|
192
194
|
rcmSupportingReferences: policyReferences.map((reference, index) => ({
|
|
@@ -218,7 +220,9 @@ export function createRcmCodingWorkflow(config, options = {}) {
|
|
|
218
220
|
version: reference.version,
|
|
219
221
|
}));
|
|
220
222
|
}
|
|
221
|
-
const parsed = response
|
|
223
|
+
const parsed = response
|
|
224
|
+
? parseResult(response.text, policyReferences)
|
|
225
|
+
: null;
|
|
222
226
|
const evidenceIds = new Map(policyReferences.map((reference, index) => [
|
|
223
227
|
`reference-${index + 1}`,
|
|
224
228
|
reference.id,
|
|
@@ -253,6 +257,7 @@ export const CARECOMPASS_RCM_SYNTHETIC_DEMO = {
|
|
|
253
257
|
};
|
|
254
258
|
/** A small branded form suitable for embedding the pilot workflow in a host app. */
|
|
255
259
|
export function RcmCodingAssistant({ config, initialInput = CARECOMPASS_RCM_SYNTHETIC_DEMO, onAuditEvent, onResult, onSafetyEvent, workflowOptions, }) {
|
|
260
|
+
warnRcmMigration();
|
|
256
261
|
const workflow = React.useMemo(() => createRcmCodingWorkflow(config, {
|
|
257
262
|
...workflowOptions,
|
|
258
263
|
coreOptions: {
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -32,6 +32,17 @@ export declare const CARECOMPASS_TELEMETRY_EVENTS: {
|
|
|
32
32
|
readonly CLI_SNIPPET_GENERATED: "carecompass_cli_snippet_generated";
|
|
33
33
|
readonly CLI_DOCTOR_COMPLETED: "carecompass_cli_doctor_completed";
|
|
34
34
|
readonly CLI_COMMAND_FAILED: "carecompass_cli_command_failed";
|
|
35
|
+
readonly PACK_LIST_SUCCEEDED: "carecompass_pack_list_succeeded";
|
|
36
|
+
readonly PACK_LIST_FAILED: "carecompass_pack_list_failed";
|
|
37
|
+
readonly PACK_SCHEMA_SUCCEEDED: "carecompass_pack_schema_succeeded";
|
|
38
|
+
readonly PACK_SCHEMA_FAILED: "carecompass_pack_schema_failed";
|
|
39
|
+
readonly CODING_CASE_SUBMITTED: "carecompass_coding_case_submitted";
|
|
40
|
+
readonly CODING_DECISION_RECEIVED: "carecompass_coding_decision_received";
|
|
41
|
+
readonly CODING_DECISION_INVALID: "carecompass_coding_decision_invalid";
|
|
42
|
+
readonly CODING_CASE_CANCELLED: "carecompass_coding_case_cancelled";
|
|
43
|
+
readonly CODING_CASE_CANCEL_FAILED: "carecompass_coding_case_cancel_failed";
|
|
44
|
+
readonly REVIEWER_ACTION_RECORDED: "carecompass_reviewer_action_recorded";
|
|
45
|
+
readonly REVIEWER_ACTION_FAILED: "carecompass_reviewer_action_failed";
|
|
35
46
|
};
|
|
36
47
|
export type CareCompassTelemetryEvent = (typeof CARECOMPASS_TELEMETRY_EVENTS)[keyof typeof CARECOMPASS_TELEMETRY_EVENTS];
|
|
37
48
|
export declare const CARECOMPASS_TELEMETRY_ERROR_CODES: {
|
package/dist/telemetry.js
CHANGED
|
@@ -33,6 +33,17 @@ export const CARECOMPASS_TELEMETRY_EVENTS = {
|
|
|
33
33
|
CLI_SNIPPET_GENERATED: "carecompass_cli_snippet_generated",
|
|
34
34
|
CLI_DOCTOR_COMPLETED: "carecompass_cli_doctor_completed",
|
|
35
35
|
CLI_COMMAND_FAILED: "carecompass_cli_command_failed",
|
|
36
|
+
PACK_LIST_SUCCEEDED: "carecompass_pack_list_succeeded",
|
|
37
|
+
PACK_LIST_FAILED: "carecompass_pack_list_failed",
|
|
38
|
+
PACK_SCHEMA_SUCCEEDED: "carecompass_pack_schema_succeeded",
|
|
39
|
+
PACK_SCHEMA_FAILED: "carecompass_pack_schema_failed",
|
|
40
|
+
CODING_CASE_SUBMITTED: "carecompass_coding_case_submitted",
|
|
41
|
+
CODING_DECISION_RECEIVED: "carecompass_coding_decision_received",
|
|
42
|
+
CODING_DECISION_INVALID: "carecompass_coding_decision_invalid",
|
|
43
|
+
CODING_CASE_CANCELLED: "carecompass_coding_case_cancelled",
|
|
44
|
+
CODING_CASE_CANCEL_FAILED: "carecompass_coding_case_cancel_failed",
|
|
45
|
+
REVIEWER_ACTION_RECORDED: "carecompass_reviewer_action_recorded",
|
|
46
|
+
REVIEWER_ACTION_FAILED: "carecompass_reviewer_action_failed",
|
|
36
47
|
};
|
|
37
48
|
export const CARECOMPASS_TELEMETRY_ERROR_CODES = {
|
|
38
49
|
API_ERROR: "api_error",
|
|
@@ -151,11 +162,17 @@ const allowedEnvironment = (value) => value === "development" || value === "stag
|
|
|
151
162
|
? value
|
|
152
163
|
: "unknown";
|
|
153
164
|
function createTelemetry(context, options = {}) {
|
|
154
|
-
const fetcher = options.fetcher ?? fetch;
|
|
155
165
|
const now = options.now ?? (() => new Date());
|
|
156
166
|
const relayBaseUrl = approvedRelayBaseUrl(context.apiBaseUrl, context.environment);
|
|
157
|
-
|
|
167
|
+
// Some test and embedded environments do not define fetch at all; telemetry
|
|
168
|
+
// must never crash SDK construction in those runtimes.
|
|
169
|
+
const resolvedFetcher = options.fetcher ??
|
|
170
|
+
(typeof globalThis.fetch === "function"
|
|
171
|
+
? globalThis.fetch
|
|
172
|
+
: undefined);
|
|
173
|
+
if (!relayBaseUrl || !resolvedFetcher)
|
|
158
174
|
return disabledTelemetry;
|
|
175
|
+
const fetcher = resolvedFetcher;
|
|
159
176
|
const captureAsync = async (event, captureOptions = {}) => {
|
|
160
177
|
if (!TELEMETRY_EVENTS.has(event))
|
|
161
178
|
return;
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export { CareCompassChat, CareCompassEmbed, useCareCompass, } from "./component.js";
|
|
2
2
|
export type { CareCompassChatProps, CareCompassReactController, UseCareCompassOptions, } from "./component.js";
|
|
3
|
+
export { CareCompassCodingReviewContent, CodingReview, mountCodingReview, useCodingReview, } from "./coding-ui.js";
|
|
4
|
+
export type { CodingDecisionLine, CodingReviewProps, CodingReviewRenderProps, UseCodingReviewResult, } from "./coding-ui.js";
|
|
5
|
+
export { CARECOMPASS_CODING_REVIEW_ELEMENT_TAG, defineCodingReviewElement, } from "./coding-element.js";
|
|
6
|
+
export type { CareCompassCodingReviewElement } from "./coding-element.js";
|
|
3
7
|
export { mountCareCompass } from "./mount.js";
|
package/dist/ui.js
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { CareCompassChat, CareCompassEmbed, useCareCompass, } from "./component.js";
|
|
2
|
+
export { CareCompassCodingReviewContent, CodingReview, mountCodingReview, useCodingReview, } from "./coding-ui.js";
|
|
3
|
+
export { CARECOMPASS_CODING_REVIEW_ELEMENT_TAG, defineCodingReviewElement, } from "./coding-element.js";
|
|
2
4
|
export { mountCareCompass } from "./mount.js";
|
package/dist/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const CARECOMPASS_SDK_VERSION = "0.
|
|
1
|
+
export const CARECOMPASS_SDK_VERSION = "0.7.0"; // x-release-please-version
|
|
2
2
|
export const CARECOMPASS_COMPONENT_VERSION = "1.0.0";
|
|
3
3
|
export const CARECOMPASS_TELEMETRY_CONTRACT_VERSION = "1.1.0";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Nexalink Proprietary Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nexalink Health, Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This package and its source code are proprietary to Nexalink Health, Inc.
|
|
6
|
+
Access to this package does not grant any ownership interest, sublicensing
|
|
7
|
+
right, or right to redistribute the software except as expressly authorized in a
|
|
8
|
+
written agreement with Nexalink Health, Inc.
|
|
9
|
+
|
|
10
|
+
Authorized Nexalink customers and implementation partners may install and use
|
|
11
|
+
this package solely to evaluate, integrate, test, and operate CareCompass coding
|
|
12
|
+
workflow integrations for customer-approved healthcare deployments.
|
|
13
|
+
|
|
14
|
+
You may not copy, modify, publish, distribute, sell, sublicense, reverse
|
|
15
|
+
engineer, or use this software to provide a competing service except where
|
|
16
|
+
expressly permitted by a written agreement with Nexalink or by applicable law.
|
|
17
|
+
|
|
18
|
+
This software is provided "as is" without warranties of any kind, whether
|
|
19
|
+
express, implied, statutory, or otherwise, including warranties of
|
|
20
|
+
merchantability, fitness for a particular purpose, title, and non-infringement.
|
|
21
|
+
Nexalink is not liable for any claim, damages, or other liability arising from
|
|
22
|
+
use of this software except as required by applicable law or an executed written
|
|
23
|
+
agreement with Nexalink.
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# `@nexalink/coding-contracts`
|
|
2
|
+
|
|
3
|
+
Canonical TypeScript contracts for Nexalink CareCompass coding workflows.
|
|
4
|
+
|
|
5
|
+
The package provides:
|
|
6
|
+
|
|
7
|
+
- TypeScript types for coding inputs, grounded outputs, supporting references,
|
|
8
|
+
retrieval metadata, runtime events, model prompts, and workflow policy.
|
|
9
|
+
- Strict [Zod](https://zod.dev/) schemas for parsing untrusted values.
|
|
10
|
+
- Validation helpers that return stable, machine-readable error codes.
|
|
11
|
+
- Canonical workflow identifiers and schema wire-version constants.
|
|
12
|
+
- The underlying JSON Schema documents for non-TypeScript consumers and
|
|
13
|
+
tooling.
|
|
14
|
+
|
|
15
|
+
This package defines data contracts only. It does not make network requests,
|
|
16
|
+
persist data, submit claims, or replace review by a qualified human coder.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
Pin an exact version so contract upgrades are deliberate:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
bun add @nexalink/coding-contracts@0.2.0 --exact
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The package supports both ES modules and CommonJS.
|
|
27
|
+
|
|
28
|
+
## Validate a coding input
|
|
29
|
+
|
|
30
|
+
Use the Zod schema when you want parsed, typed data and detailed issues:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import {
|
|
34
|
+
RCM_INPUT_SCHEMA_VERSION,
|
|
35
|
+
rcmCodingInputSchema,
|
|
36
|
+
type RcmCodingInput,
|
|
37
|
+
} from "@nexalink/coding-contracts";
|
|
38
|
+
|
|
39
|
+
const candidate: unknown = {
|
|
40
|
+
encounterId: "DEMO-ENC-1042",
|
|
41
|
+
diagnosisNarrative: "Synthetic example for integration testing.",
|
|
42
|
+
serviceDate: "2026-07-01",
|
|
43
|
+
claimContext: {
|
|
44
|
+
stage: "development",
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const input: RcmCodingInput = rcmCodingInputSchema.parse(candidate);
|
|
49
|
+
|
|
50
|
+
console.log(RCM_INPUT_SCHEMA_VERSION, input.encounterId);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Use the validation helper when a compact error code is more useful than a Zod
|
|
54
|
+
error:
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
import { rcmCodingInputValidationError } from "@nexalink/coding-contracts";
|
|
58
|
+
|
|
59
|
+
const errorCode = rcmCodingInputValidationError(candidate);
|
|
60
|
+
if (errorCode !== null) {
|
|
61
|
+
throw new Error(`Invalid coding input: ${errorCode}`);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Validate a grounded coding output
|
|
66
|
+
|
|
67
|
+
Output validation can enforce both the structural contract and evidence
|
|
68
|
+
grounding. Pass the approved reference IDs and the corresponding evidence text
|
|
69
|
+
when validating recommendations:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { rcmCodingOutputValidationError } from "@nexalink/coding-contracts";
|
|
73
|
+
|
|
74
|
+
const candidate: unknown = {
|
|
75
|
+
disposition: "review_required",
|
|
76
|
+
humanReviewRequired: true,
|
|
77
|
+
recommendations: [
|
|
78
|
+
{
|
|
79
|
+
code: "99236",
|
|
80
|
+
codeSystem: "CPT",
|
|
81
|
+
confidence: "medium",
|
|
82
|
+
rationale: "Synthetic example for qualified coder review.",
|
|
83
|
+
evidenceIds: ["reference-1"],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
documentationGaps: [],
|
|
87
|
+
rationale: "Synthetic grounded recommendation requiring human review.",
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const errorCode = rcmCodingOutputValidationError(candidate, {
|
|
91
|
+
allowedReferenceIds: new Set(["reference-1"]),
|
|
92
|
+
referenceTextById: {
|
|
93
|
+
"reference-1": "Synthetic policy excerpt supporting CPT 99236.",
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
if (errorCode !== null) {
|
|
98
|
+
// Fail closed: do not present or act on an invalid recommendation.
|
|
99
|
+
throw new Error(`Invalid coding output: ${errorCode}`);
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
When grounding options are supplied, each recommendation must cite an approved
|
|
104
|
+
reference and its code must appear in at least one cited evidence text. Use both
|
|
105
|
+
options at trust boundaries. Calling the Zod schema or boolean helper alone
|
|
106
|
+
validates the structural and semantic contract, but not the caller-specific
|
|
107
|
+
approved evidence set.
|
|
108
|
+
|
|
109
|
+
## Main exports
|
|
110
|
+
|
|
111
|
+
| Category | Exports |
|
|
112
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
113
|
+
| Types | `RcmCodingInput`, `RcmCodingOutput`, `RcmSupportingReference`, `RcmModelPrompt`, `RcmRetrievalMetadata`, `RcmRuntimeEvent`, `RcmWorkflowCatalog` |
|
|
114
|
+
| Case models | `CodingCase`, `CodingCaseContext`, `CodingCasePayer`, `CodingCaseClinical`, `CodingServiceLine`, `CodingExtension`, `CodingBatch` |
|
|
115
|
+
| Decision models | `CodingDecision`, `CodingDecisionLine`, `CodingEvidence`, `CodingRuleResult`, `CodingReviewerAction` |
|
|
116
|
+
| Zod schemas | `rcmCodingInputSchema`, `rcmCodingOutputSchema`, `codingCaseSchema`, `codingDecisionSchema`, and one schema for each additional contract type |
|
|
117
|
+
| Validation | `rcm*ValidationError` functions, `coding*ValidationError` functions, and `valid*` boolean helpers |
|
|
118
|
+
| Workflow policy | `RCM_WORKFLOW_ID`, `PIN_TIME_WORKFLOW_ID`, `RCM_MODEL_POLICY_ID`, `RCM_HUMAN_REVIEW_POLICY_ID`, `RCM_HUMAN_REVIEW_INSTRUCTION`, `RCM_OUTPUT_SCHEMA_NAME` |
|
|
119
|
+
| Schema versions | `RCM_INPUT_SCHEMA_VERSION`, `RCM_OUTPUT_SCHEMA_VERSION`, `RCM_REFERENCE_SCHEMA_VERSION`, `CODING_CASE_SCHEMA_VERSION`, `CODING_DECISION_SCHEMA_VERSION`, and the other contract wire-version constants |
|
|
120
|
+
| Schema documents | `Rcm*SchemaJson`, `Coding*SchemaJson` values, JSON Schema package subpaths, `versions.json`, and `workflow-constants.json` |
|
|
121
|
+
|
|
122
|
+
## Canonical CodingCase and CodingDecision
|
|
123
|
+
|
|
124
|
+
`CodingCase` is the canonical case envelope for encounter review, claim review,
|
|
125
|
+
longitudinal review, monthly multi-activity time aggregation, and bounded batch
|
|
126
|
+
review. `CodingDecision` is the corresponding reconstructable decision.
|
|
127
|
+
|
|
128
|
+
- **CodingCase** carries case identity (`caseId` is client-supplied and may be
|
|
129
|
+
a direct reference; `analyticsId` is the separate analytics-safe identifier),
|
|
130
|
+
coding intent, the service period, setting/jurisdiction/provider context,
|
|
131
|
+
payer/plan/program/contract context, structured clinical facts (diagnoses,
|
|
132
|
+
procedures, medications, supplies, `timeUnits` with `durationMinutes` and
|
|
133
|
+
`activityCode`, notes, source references), existing claim lines, and
|
|
134
|
+
namespaced `extensions`.
|
|
135
|
+
- **CodingDecision** references the case by the analytics-safe `caseRef` only,
|
|
136
|
+
proposes claim-line actions (`add`, `retain`, `replace`, `remove`, `review`)
|
|
137
|
+
with code identity, modifiers, units, linked diagnoses, and sequencing, and
|
|
138
|
+
records typed evidence, documentation gaps, conflicts, extracted facts, rule
|
|
139
|
+
traces, confidence, and the qualified-human-review disposition.
|
|
140
|
+
- **Provenance** (`decisionSchemaVersion`, `caseSchemaVersion`, pack, model,
|
|
141
|
+
terminology editions with license status, rule versions, retrieval corpus,
|
|
142
|
+
and generation time) lets every recommendation be reconstructed.
|
|
143
|
+
- **ReviewerAction** is appended immutably: the original decision and the
|
|
144
|
+
attributable reviewer disposition are both preserved.
|
|
145
|
+
- **Extensions** are `{ namespace, schemaVersion, payload }` objects. Payloads
|
|
146
|
+
are bounded (at most 50 properties) but otherwise opaque; Nexalink reserves
|
|
147
|
+
`com.nexalink` and `org.nexalink` namespaces. Extensions keep pack-specific
|
|
148
|
+
data out of the shared envelope without making every field optional.
|
|
149
|
+
- **Identifiers**: direct identifiers (`caseId`, provider NPIs/names, `memberId`)
|
|
150
|
+
are documented as such in the schemas and must never be promoted to analytics
|
|
151
|
+
surfaces. Decisions and metrics reference the analytics-safe `analyticsId` /
|
|
152
|
+
`caseRef` only.
|
|
153
|
+
- **Batching**: `CodingBatch` wraps 1–100 cases for bounded batch review; one
|
|
154
|
+
execution stays within runtime limits.
|
|
155
|
+
|
|
156
|
+
The current RCM example (`DEMO-ENC-1042`) and a monthly multi-activity
|
|
157
|
+
time-aggregation workflow both have lossless, round-trip fixtures under
|
|
158
|
+
`fixtures/coding-case/` and `fixtures/coding-decision/`.
|
|
159
|
+
|
|
160
|
+
## Use the raw JSON Schemas
|
|
161
|
+
|
|
162
|
+
The schemas are available as package subpaths. For example, in CommonJS:
|
|
163
|
+
|
|
164
|
+
```js
|
|
165
|
+
const inputSchema = require("@nexalink/coding-contracts/schemas/rcm-coding-input.schema");
|
|
166
|
+
const versions = require("@nexalink/coding-contracts/versions.json");
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The same documents are also exported as JavaScript values from the package
|
|
170
|
+
root, such as `RcmCodingInputSchemaJson`.
|
|
171
|
+
|
|
172
|
+
## Versioning
|
|
173
|
+
|
|
174
|
+
Package versions and wire-schema versions serve different purposes:
|
|
175
|
+
|
|
176
|
+
- The npm package follows semantic versioning. Consumers should pin an exact
|
|
177
|
+
version and evaluate contract changes before upgrading.
|
|
178
|
+
- Each schema also has a wire-version constant used in requests, results, and
|
|
179
|
+
runtime events. A package release can update implementation details without
|
|
180
|
+
changing every wire version.
|
|
181
|
+
- Additive contract changes may ship in a minor package release. Breaking
|
|
182
|
+
contract changes require a major package release and a new wire version.
|
|
183
|
+
|
|
184
|
+
The complete package-to-schema mapping is available from
|
|
185
|
+
`@nexalink/coding-contracts/versions.json`.
|
|
186
|
+
|
|
187
|
+
## Safety and licensing
|
|
188
|
+
|
|
189
|
+
- `humanReviewRequired` is always `true` for coding outputs. Recommendations
|
|
190
|
+
must be reviewed by a qualified human coder before billing, coding, or claim
|
|
191
|
+
submission.
|
|
192
|
+
- Treat validation failures as fail-closed conditions. Do not silently coerce
|
|
193
|
+
invalid input or continue with ungrounded output.
|
|
194
|
+
- Examples in this README are synthetic and must not be interpreted as coding
|
|
195
|
+
guidance.
|
|
196
|
+
- The package does not include licensed terminology descriptions and does not
|
|
197
|
+
grant rights to use licensed code-set content.
|
|
198
|
+
|
|
199
|
+
Use of this package is governed by the included Nexalink Proprietary Software
|
|
200
|
+
License.
|