@nexalink/carecompass-sdk 0.6.1 → 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 +374 -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
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import { CARECOMPASS_CODING_DECISION_LABELS, createCodingFlow, decisionConflicts, decisionGaps, decisionPrimaryState, decisionRequiresHumanReview, } from "./coding.js";
|
|
5
|
+
const REVIEW_IDLE_TIMEOUT_MS = 120_000;
|
|
6
|
+
const ENGAGEMENT_TICK_MS = 5_000;
|
|
7
|
+
/**
|
|
8
|
+
* Reports tenant-scoped reviewer engagement for the rendered decision:
|
|
9
|
+
* `decision_shown` once per decision, and active review time with a documented
|
|
10
|
+
* 120s idle pause and visibility rule. Delivery is best-effort and never
|
|
11
|
+
* blocks or fails the review workflow.
|
|
12
|
+
*/
|
|
13
|
+
const useReviewerEngagement = (flow, decision, workflowId) => {
|
|
14
|
+
const shownDecisionId = React.useRef(null);
|
|
15
|
+
const decisionRef = React.useRef(null);
|
|
16
|
+
const workflowRef = React.useRef(null);
|
|
17
|
+
const lastReviewActivityRef = React.useRef(Date.now());
|
|
18
|
+
decisionRef.current = decision;
|
|
19
|
+
workflowRef.current = workflowId;
|
|
20
|
+
const decisionId = decision?.decisionId ?? null;
|
|
21
|
+
const markReviewActivity = React.useCallback(() => {
|
|
22
|
+
lastReviewActivityRef.current = Date.now();
|
|
23
|
+
}, []);
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
if (!decisionId || shownDecisionId.current === decisionId)
|
|
26
|
+
return;
|
|
27
|
+
const current = decisionRef.current;
|
|
28
|
+
if (!current)
|
|
29
|
+
return;
|
|
30
|
+
shownDecisionId.current = decisionId;
|
|
31
|
+
void flow.reportReviewerEvent({
|
|
32
|
+
eventName: "decision_shown",
|
|
33
|
+
caseRef: current.caseRef,
|
|
34
|
+
workflowId: workflowRef.current ?? "rcm-coding-assistance",
|
|
35
|
+
});
|
|
36
|
+
}, [decisionId, flow]);
|
|
37
|
+
React.useEffect(() => {
|
|
38
|
+
const trackedDecision = decisionRef.current;
|
|
39
|
+
const trackedWorkflow = workflowRef.current ?? "rcm-coding-assistance";
|
|
40
|
+
if (!decisionId || !trackedDecision)
|
|
41
|
+
return;
|
|
42
|
+
let activeSeconds = 0;
|
|
43
|
+
let idlePaused = false;
|
|
44
|
+
lastReviewActivityRef.current = Date.now();
|
|
45
|
+
let visible = typeof document === "undefined" || document.visibilityState === "visible";
|
|
46
|
+
const onVisibilityChange = () => {
|
|
47
|
+
visible = document.visibilityState === "visible";
|
|
48
|
+
if (visible)
|
|
49
|
+
markReviewActivity();
|
|
50
|
+
};
|
|
51
|
+
if (typeof window !== "undefined") {
|
|
52
|
+
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
53
|
+
}
|
|
54
|
+
const interval = window.setInterval(() => {
|
|
55
|
+
if (!visible)
|
|
56
|
+
return;
|
|
57
|
+
if (Date.now() - lastReviewActivityRef.current > REVIEW_IDLE_TIMEOUT_MS) {
|
|
58
|
+
idlePaused = true;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
activeSeconds += ENGAGEMENT_TICK_MS / 1000;
|
|
62
|
+
}, ENGAGEMENT_TICK_MS);
|
|
63
|
+
return () => {
|
|
64
|
+
window.clearInterval(interval);
|
|
65
|
+
if (typeof window !== "undefined") {
|
|
66
|
+
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
67
|
+
}
|
|
68
|
+
if (activeSeconds >= 1) {
|
|
69
|
+
void flow.reportReviewerEvent({
|
|
70
|
+
eventName: "review_active_time",
|
|
71
|
+
caseRef: trackedDecision.caseRef,
|
|
72
|
+
workflowId: trackedWorkflow,
|
|
73
|
+
activeSeconds,
|
|
74
|
+
idlePaused,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}, [decisionId, flow, markReviewActivity]);
|
|
79
|
+
const reportEvidenceEngagement = React.useCallback((evidenceId, action) => {
|
|
80
|
+
const current = decisionRef.current;
|
|
81
|
+
if (!current)
|
|
82
|
+
return;
|
|
83
|
+
void flow.reportReviewerEvent({
|
|
84
|
+
eventName: action === "opened" ? "evidence_opened" : "evidence_copied",
|
|
85
|
+
caseRef: current.caseRef,
|
|
86
|
+
workflowId: workflowRef.current ?? "rcm-coding-assistance",
|
|
87
|
+
evidenceId,
|
|
88
|
+
});
|
|
89
|
+
}, [flow]);
|
|
90
|
+
return { markReviewActivity, reportEvidenceEngagement };
|
|
91
|
+
};
|
|
92
|
+
const defaultLineLabel = (line) => {
|
|
93
|
+
const unitPart = line.units?.count !== undefined
|
|
94
|
+
? ` x${line.units.count}${line.units.unitOfMeasure ? ` ${line.units.unitOfMeasure}` : ""}`
|
|
95
|
+
: "";
|
|
96
|
+
return [
|
|
97
|
+
line.action,
|
|
98
|
+
line.code.codeSystem,
|
|
99
|
+
line.code.code,
|
|
100
|
+
line.modifiers?.length ? ` (${line.modifiers.join(", ")})` : "",
|
|
101
|
+
unitPart,
|
|
102
|
+
]
|
|
103
|
+
.filter(Boolean)
|
|
104
|
+
.join(" ");
|
|
105
|
+
};
|
|
106
|
+
const useFlowSnapshot = (flow) => {
|
|
107
|
+
const [snapshot, setSnapshot] = React.useState(() => flow?.getSnapshot() ?? null);
|
|
108
|
+
React.useEffect(() => {
|
|
109
|
+
if (!flow) {
|
|
110
|
+
setSnapshot(null);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const unsubscribe = flow.subscribe(setSnapshot);
|
|
114
|
+
setSnapshot(flow.getSnapshot());
|
|
115
|
+
return unsubscribe;
|
|
116
|
+
}, [flow]);
|
|
117
|
+
return snapshot;
|
|
118
|
+
};
|
|
119
|
+
export function CareCompassCodingReviewContent({ config, flow, initialCase, labels: labelsOverride, onCodingDecision, packId, renderDecision, renderGap, renderLineDecision, reviewerId, reviewerRole, snapshot, }) {
|
|
120
|
+
const labels = {
|
|
121
|
+
...CARECOMPASS_CODING_DECISION_LABELS,
|
|
122
|
+
...labelsOverride,
|
|
123
|
+
};
|
|
124
|
+
const [reviewerAction, setReviewerAction] = React.useState(null);
|
|
125
|
+
const [recordedAt, setRecordedAt] = React.useState(null);
|
|
126
|
+
const [recording, setRecording] = React.useState(false);
|
|
127
|
+
const [recordError, setRecordError] = React.useState(null);
|
|
128
|
+
const notifiedDecisionId = React.useRef(null);
|
|
129
|
+
const { markReviewActivity, reportEvidenceEngagement } = useReviewerEngagement(flow, snapshot.decision, snapshot.packId);
|
|
130
|
+
React.useEffect(() => {
|
|
131
|
+
if (!snapshot.decision) {
|
|
132
|
+
notifiedDecisionId.current = null;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (snapshot.phase === "complete" &&
|
|
136
|
+
onCodingDecision &&
|
|
137
|
+
notifiedDecisionId.current !== snapshot.decision.decisionId) {
|
|
138
|
+
notifiedDecisionId.current = snapshot.decision.decisionId;
|
|
139
|
+
onCodingDecision(snapshot.decision);
|
|
140
|
+
}
|
|
141
|
+
}, [onCodingDecision, snapshot.decision, snapshot.phase]);
|
|
142
|
+
React.useEffect(() => {
|
|
143
|
+
setReviewerAction(null);
|
|
144
|
+
setRecordedAt(null);
|
|
145
|
+
setRecordError(null);
|
|
146
|
+
}, [snapshot.decision?.decisionId]);
|
|
147
|
+
const submit = async () => {
|
|
148
|
+
const packRequest = packId ?? snapshot.packId;
|
|
149
|
+
if (!packRequest || !initialCase)
|
|
150
|
+
return;
|
|
151
|
+
try {
|
|
152
|
+
await flow.submit(packRequest, initialCase);
|
|
153
|
+
}
|
|
154
|
+
catch {
|
|
155
|
+
// The snapshot owns the user-visible error and retry state.
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
const cancel = async () => {
|
|
159
|
+
try {
|
|
160
|
+
await flow.cancel();
|
|
161
|
+
}
|
|
162
|
+
catch {
|
|
163
|
+
// The snapshot owns the cancellation state.
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const retry = async () => {
|
|
167
|
+
try {
|
|
168
|
+
await flow.retryLast();
|
|
169
|
+
}
|
|
170
|
+
catch {
|
|
171
|
+
// The snapshot owns the failure state.
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
const recordAction = async (event) => {
|
|
175
|
+
event.preventDefault();
|
|
176
|
+
if (!reviewerAction || !snapshot.decision || !reviewerId)
|
|
177
|
+
return;
|
|
178
|
+
setRecording(true);
|
|
179
|
+
setRecordError(null);
|
|
180
|
+
try {
|
|
181
|
+
await flow.recordReviewerAction(snapshot.decision.decisionId, {
|
|
182
|
+
reviewerId,
|
|
183
|
+
...(reviewerRole ? { reviewerRole } : {}),
|
|
184
|
+
action: reviewerAction.action,
|
|
185
|
+
...(reviewerAction.notes.trim()
|
|
186
|
+
? { notes: reviewerAction.notes.trim() }
|
|
187
|
+
: {}),
|
|
188
|
+
occurredAt: new Date().toISOString(),
|
|
189
|
+
});
|
|
190
|
+
setRecordedAt(new Date().toISOString());
|
|
191
|
+
}
|
|
192
|
+
catch (caught) {
|
|
193
|
+
setRecordError(caught instanceof Error
|
|
194
|
+
? caught.message
|
|
195
|
+
: "The reviewer action could not be recorded.");
|
|
196
|
+
}
|
|
197
|
+
finally {
|
|
198
|
+
setRecording(false);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const decision = snapshot.decision;
|
|
202
|
+
const busy = snapshot.loading;
|
|
203
|
+
const showSubmission = initialCase !== undefined &&
|
|
204
|
+
snapshot.phase !== "submitting" &&
|
|
205
|
+
snapshot.phase !== "polling";
|
|
206
|
+
return (_jsxs("section", { "aria-label": `${config.labels.title} coding review`, onKeyDown: markReviewActivity, onPointerDown: markReviewActivity, onScrollCapture: markReviewActivity, onTouchStart: markReviewActivity, style: {
|
|
207
|
+
background: config.theme.backgroundColor,
|
|
208
|
+
border: `1px solid ${config.theme.primaryColor}`,
|
|
209
|
+
borderRadius: config.theme.borderRadius,
|
|
210
|
+
color: config.theme.textColor,
|
|
211
|
+
fontFamily: config.theme.fontFamily,
|
|
212
|
+
maxWidth: 720,
|
|
213
|
+
padding: 20,
|
|
214
|
+
}, children: [_jsxs("header", { children: [_jsx("strong", { children: config.branding.displayName }), snapshot.packId ? (_jsxs("span", { style: { fontSize: 12, opacity: 0.72 }, children: [" ", "\u00B7 ", snapshot.packId] })) : null] }), showSubmission ? (_jsx("button", { disabled: busy, style: { background: config.theme.primaryColor, color: "#fff" }, type: "button", onClick: () => void submit(), children: labels.prepare })) : null, busy ? (_jsxs("p", { "aria-live": "polite", role: "status", children: ["Preparing coding review\u2026", snapshot.cancelable ? (_jsx("button", { onClick: () => void cancel(), style: {
|
|
215
|
+
background: "transparent",
|
|
216
|
+
border: `1px solid ${config.theme.textColor}33`,
|
|
217
|
+
borderRadius: 6,
|
|
218
|
+
color: "inherit",
|
|
219
|
+
fontSize: 12,
|
|
220
|
+
marginLeft: 8,
|
|
221
|
+
padding: "4px 8px",
|
|
222
|
+
}, type: "button", children: labels.cancel })) : null] })) : null, snapshot.error ? (_jsx("p", { role: "alert", style: { color: "#b91c1c", fontSize: 13 }, children: snapshot.error.message })) : null, snapshot.error && snapshot.canRetry ? (_jsx("button", { onClick: () => void retry(), style: {
|
|
223
|
+
background: "transparent",
|
|
224
|
+
border: `1px solid ${config.theme.textColor}33`,
|
|
225
|
+
borderRadius: 6,
|
|
226
|
+
color: "inherit",
|
|
227
|
+
fontSize: 12,
|
|
228
|
+
padding: "4px 8px",
|
|
229
|
+
}, type: "button", children: labels.retry })) : null, snapshot.phase === "cancelled" ? (_jsx("p", { role: "status", children: labels.cancelled })) : null, decision ? (_jsxs("div", { "aria-live": "polite", role: "region", "aria-label": "Coding decision result", children: [_jsx("p", { role: "alert", children: decisionRequiresHumanReview(decision)
|
|
230
|
+
? labels.humanReviewRequired
|
|
231
|
+
: decisionPrimaryState(decision) }), renderDecision ? (renderDecision(decision, _jsx(DecisionDetail, { decision: decision, labels: labels, onEvidenceEngaged: reportEvidenceEngagement, renderGap: renderGap, renderLineDecision: renderLineDecision }))) : (_jsx(DecisionDetail, { decision: decision, labels: labels, onEvidenceEngaged: reportEvidenceEngagement, renderGap: renderGap, renderLineDecision: renderLineDecision })), !reviewerId ? (_jsx("p", { role: "note", children: "A reviewer ID is required to record an action." })) : null, _jsx("form", { onSubmit: (event) => void recordAction(event), children: _jsxs("fieldset", { disabled: recording || !reviewerId, style: { border: 0, margin: 0, padding: 0 }, children: [_jsx("legend", { children: "Record reviewer action" }), _jsxs("label", { children: ["Action", _jsxs("select", { "aria-label": "Reviewer action", value: reviewerAction?.action ?? "", onChange: (event) => setReviewerAction((current) => ({
|
|
232
|
+
action: event.target
|
|
233
|
+
.value,
|
|
234
|
+
notes: current?.notes ?? "",
|
|
235
|
+
})), children: [_jsx("option", { value: "", disabled: true, children: "Select\u2026" }), _jsx("option", { value: "approved", children: "Approved" }), _jsx("option", { value: "rejected", children: "Rejected" }), _jsx("option", { value: "escalated", children: "Escalated" })] })] }), _jsxs("label", { children: ["Notes", _jsx("textarea", { "aria-label": "Reviewer notes", rows: 2, value: reviewerAction?.notes ?? "", onChange: (event) => setReviewerAction((current) => ({
|
|
236
|
+
action: current?.action ?? "approved",
|
|
237
|
+
notes: event.target.value,
|
|
238
|
+
})) })] }), _jsx("button", { disabled: !reviewerAction || recording || !reviewerId, type: "submit", children: recording ? "Recording…" : labels.recordAction })] }) }), recordError ? (_jsx("p", { role: "alert", style: { color: "#b91c1c", fontSize: 12 }, children: recordError })) : null, recordedAt ? (_jsxs("p", { role: "status", style: { fontSize: 12 }, children: [labels.actionRecorded, " ", recordedAt, "."] })) : null] })) : null] }));
|
|
239
|
+
}
|
|
240
|
+
function DecisionDetail({ decision, labels, onEvidenceEngaged, renderGap, renderLineDecision, }) {
|
|
241
|
+
const gaps = decisionGaps(decision);
|
|
242
|
+
const conflicts = decisionConflicts(decision);
|
|
243
|
+
const gapLabel = (type) => type === "missing_documentation"
|
|
244
|
+
? labels.missingDocumentation
|
|
245
|
+
: type === "unsupported_scope"
|
|
246
|
+
? labels.unsupportedScope
|
|
247
|
+
: type === "insufficient_evidence"
|
|
248
|
+
? labels.insufficientEvidence
|
|
249
|
+
: type === "policy_conflict"
|
|
250
|
+
? labels.policyConflict
|
|
251
|
+
: labels.terminologyUnavailable;
|
|
252
|
+
return (_jsxs("div", { children: [_jsx("p", { children: decision.rationale }), decision.lineDecisions.length > 0 ? (_jsxs("section", { "aria-label": "Line decisions", children: [_jsx("h3", { children: "Line decisions" }), decision.lineDecisions.map((line) => renderLineDecision ? (_jsx(React.Fragment, { children: renderLineDecision(line) }, line.lineId)) : (_jsxs("p", { children: [_jsx("strong", { children: defaultLineLabel(line) }), " \u2014 ", line.rationale] }, line.lineId)))] })) : null, gaps.length > 0 ? (_jsxs("section", { "aria-label": "Documentation and scope gaps", children: [_jsx("h3", { children: "Gaps" }), gaps.map((gap) => renderGap ? (_jsx(React.Fragment, { children: renderGap(gap) }, gap.gapId)) : (_jsxs("p", { children: [_jsx("strong", { children: gapLabel(gap.type) }), " (", gap.severity, ") \u2014", " ", gap.description] }, gap.gapId)))] })) : null, conflicts.length > 0 ? (_jsxs("section", { "aria-label": "Policy conflicts", children: [_jsx("h3", { children: "Conflicts" }), conflicts.map((conflict) => (_jsxs("p", { children: [_jsx("strong", { children: conflict.type }), " \u2014 ", conflict.summary] }, conflict.conflictId)))] })) : null, decision.evidenceItems?.length ? (_jsxs("section", { "aria-label": "Supporting evidence", children: [_jsx("h3", { children: "Supporting evidence" }), decision.evidenceItems.map((evidence) => (_jsxs("details", { onToggle: (event) => {
|
|
253
|
+
if (event.currentTarget.open) {
|
|
254
|
+
onEvidenceEngaged?.(evidence.evidenceId, "opened");
|
|
255
|
+
}
|
|
256
|
+
}, children: [_jsx("summary", { style: {
|
|
257
|
+
cursor: "pointer",
|
|
258
|
+
fontWeight: 700,
|
|
259
|
+
textDecoration: "underline",
|
|
260
|
+
}, children: _jsxs("strong", { children: [evidence.source, evidence.sourceVersion
|
|
261
|
+
? ` (version ${evidence.sourceVersion})`
|
|
262
|
+
: ""] }) }), _jsxs("p", { children: [evidence.excerpt, " ", _jsx("button", { "aria-label": `Copy evidence reference ${evidence.evidenceId}`, onClick: () => {
|
|
263
|
+
const clipboard = navigator.clipboard;
|
|
264
|
+
if (!clipboard)
|
|
265
|
+
return;
|
|
266
|
+
void clipboard
|
|
267
|
+
.writeText(evidence.evidenceId)
|
|
268
|
+
.then(() => onEvidenceEngaged?.(evidence.evidenceId, "copied"))
|
|
269
|
+
.catch(() => undefined);
|
|
270
|
+
}, style: {
|
|
271
|
+
background: "transparent",
|
|
272
|
+
border: 0,
|
|
273
|
+
color: "inherit",
|
|
274
|
+
cursor: "pointer",
|
|
275
|
+
fontSize: 12,
|
|
276
|
+
padding: 0,
|
|
277
|
+
textDecoration: "underline",
|
|
278
|
+
}, type: "button", children: "Copy reference" })] })] }, evidence.evidenceId)))] })) : null] }));
|
|
279
|
+
}
|
|
280
|
+
export function CodingReview({ config, flow: flowProp, initialCase, labels, onAuditEvent, onCodingDecision, onSafetyEvent, packId, pollIntervalMs, renderDecision, renderGap, renderLineDecision, reviewerId, reviewerRole, reviewerAuthProvider, runtimeTokenProvider, }) {
|
|
281
|
+
const ownedFlow = React.useMemo(() => flowProp ??
|
|
282
|
+
createCodingFlow(config, {
|
|
283
|
+
onAuditEvent: flowProp ? undefined : onAuditEvent,
|
|
284
|
+
onSafetyEvent: flowProp ? undefined : onSafetyEvent,
|
|
285
|
+
pollIntervalMs,
|
|
286
|
+
runtimeTokenProvider,
|
|
287
|
+
reviewerAuthProvider,
|
|
288
|
+
}), [
|
|
289
|
+
config,
|
|
290
|
+
flowProp,
|
|
291
|
+
onAuditEvent,
|
|
292
|
+
onSafetyEvent,
|
|
293
|
+
pollIntervalMs,
|
|
294
|
+
runtimeTokenProvider,
|
|
295
|
+
reviewerAuthProvider,
|
|
296
|
+
]);
|
|
297
|
+
React.useEffect(() => {
|
|
298
|
+
if (flowProp)
|
|
299
|
+
return;
|
|
300
|
+
return () => ownedFlow.dispose();
|
|
301
|
+
}, [flowProp, ownedFlow]);
|
|
302
|
+
const snapshot = useFlowSnapshot(ownedFlow);
|
|
303
|
+
if (!snapshot)
|
|
304
|
+
return null;
|
|
305
|
+
return (_jsx(CareCompassCodingReviewContent, { config: config, flow: ownedFlow, initialCase: initialCase, labels: labels, onCodingDecision: onCodingDecision, packId: packId, renderDecision: renderDecision, renderGap: renderGap, renderLineDecision: renderLineDecision, reviewerId: reviewerId, reviewerRole: reviewerRole, snapshot: snapshot }));
|
|
306
|
+
}
|
|
307
|
+
/** React adapter for the headless coding flow. Renders nothing itself. */
|
|
308
|
+
export function useCodingReview(config, options = {}) {
|
|
309
|
+
const flow = React.useMemo(() => createCodingFlow(config, {
|
|
310
|
+
compliance: options.compliance,
|
|
311
|
+
fetcher: options.fetcher,
|
|
312
|
+
now: options.now,
|
|
313
|
+
onAuditEvent: options.onAuditEvent,
|
|
314
|
+
onSafetyEvent: options.onSafetyEvent,
|
|
315
|
+
pollIntervalMs: options.pollIntervalMs,
|
|
316
|
+
runtimeTokenProvider: options.runtimeTokenProvider,
|
|
317
|
+
reviewerAuthProvider: options.reviewerAuthProvider,
|
|
318
|
+
timeoutMs: options.timeoutMs,
|
|
319
|
+
}), [
|
|
320
|
+
config,
|
|
321
|
+
options.compliance,
|
|
322
|
+
options.fetcher,
|
|
323
|
+
options.now,
|
|
324
|
+
options.onAuditEvent,
|
|
325
|
+
options.onSafetyEvent,
|
|
326
|
+
options.pollIntervalMs,
|
|
327
|
+
options.runtimeTokenProvider,
|
|
328
|
+
options.reviewerAuthProvider,
|
|
329
|
+
options.timeoutMs,
|
|
330
|
+
]);
|
|
331
|
+
const [snapshot, setSnapshot] = React.useState(() => flow.getSnapshot());
|
|
332
|
+
React.useEffect(() => {
|
|
333
|
+
const unsubscribe = flow.subscribe(setSnapshot);
|
|
334
|
+
setSnapshot(flow.getSnapshot());
|
|
335
|
+
return () => {
|
|
336
|
+
unsubscribe();
|
|
337
|
+
flow.dispose();
|
|
338
|
+
};
|
|
339
|
+
}, [flow]);
|
|
340
|
+
return React.useMemo(() => ({
|
|
341
|
+
cancel: flow.cancel,
|
|
342
|
+
flow,
|
|
343
|
+
recordReviewerAction: flow.recordReviewerAction,
|
|
344
|
+
retryLast: flow.retryLast,
|
|
345
|
+
snapshot,
|
|
346
|
+
submit: flow.submit,
|
|
347
|
+
}), [flow, snapshot]);
|
|
348
|
+
}
|
|
349
|
+
export function mountCodingReview(element, config, options = {}) {
|
|
350
|
+
if (!element) {
|
|
351
|
+
throw new Error("CareCompass coding review mount element was not found.");
|
|
352
|
+
}
|
|
353
|
+
const root = createRoot(element);
|
|
354
|
+
root.render(_jsx(CodingReview, { config: config, initialCase: options.initialCase, onCodingDecision: options.onCodingDecision, packId: options.packId, reviewerAuthProvider: options.reviewerAuthProvider, runtimeTokenProvider: options.runtimeTokenProvider }));
|
|
355
|
+
return {
|
|
356
|
+
unmount: () => root.unmount(),
|
|
357
|
+
};
|
|
358
|
+
}
|
package/dist/coding.d.ts
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { type CodingCase, type CodingDecision, type CodingReviewerAction, type RcmReviewerEvent } from "@nexalink/coding-contracts";
|
|
2
|
+
import { type CareCompassCodingErrorCode, type CareCompassCodingStatus, type CareCompassPackCatalogEntry, type CareCompassPackSchema, type CareCompassRuntimeTokenProvider, type CareCompassReviewerAuthProvider, type CareCompassReviewerActionResult, type CareCompassWorkflowId } from "./client.js";
|
|
3
|
+
import { type CareCompassAuditEvent, type CareCompassAuditListener, type CareCompassComplianceRuntimeOptions, type CareCompassSafetyListener } from "./compliance.js";
|
|
4
|
+
import type { CareCompassConfig } from "./schema.js";
|
|
5
|
+
type Fetcher = typeof fetch;
|
|
6
|
+
/**
|
|
7
|
+
* Client-observed failure codes for structured coding flows. Server-returned
|
|
8
|
+
* codes are preserved; `safety_blocked` and `invalid_decision` are produced
|
|
9
|
+
* locally as the SDK fails closed.
|
|
10
|
+
*/
|
|
11
|
+
export type CodingFlowErrorCode = CareCompassCodingErrorCode | "safety_blocked";
|
|
12
|
+
export type CodingFlowError = {
|
|
13
|
+
code: CodingFlowErrorCode;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
export type CodingFlowPhase = "idle" | "submitting" | "polling" | "complete" | "error" | "cancelled" | "disposed";
|
|
17
|
+
export type CodingFlowRetryMetadata = {
|
|
18
|
+
packId: CareCompassWorkflowId;
|
|
19
|
+
codingCase: CodingCase;
|
|
20
|
+
/** Reused only when the original submission outcome was ambiguous. */
|
|
21
|
+
requestId?: string;
|
|
22
|
+
attempt: number;
|
|
23
|
+
};
|
|
24
|
+
export type CodingFlowSnapshot = {
|
|
25
|
+
phase: CodingFlowPhase;
|
|
26
|
+
packId: CareCompassWorkflowId | null;
|
|
27
|
+
decision: CodingDecision | null;
|
|
28
|
+
error: CodingFlowError | null;
|
|
29
|
+
loading: boolean;
|
|
30
|
+
canRetry: boolean;
|
|
31
|
+
cancelable: boolean;
|
|
32
|
+
retry: CodingFlowRetryMetadata | null;
|
|
33
|
+
activeJobId: string | null;
|
|
34
|
+
};
|
|
35
|
+
export type CodingFlowEvent = {
|
|
36
|
+
type: "case_submitted";
|
|
37
|
+
packId: CareCompassWorkflowId;
|
|
38
|
+
jobId: string;
|
|
39
|
+
snapshot: CodingFlowSnapshot;
|
|
40
|
+
} | {
|
|
41
|
+
type: "status";
|
|
42
|
+
jobId: string;
|
|
43
|
+
status: CareCompassCodingStatus;
|
|
44
|
+
snapshot: CodingFlowSnapshot;
|
|
45
|
+
} | {
|
|
46
|
+
type: "decision_completed";
|
|
47
|
+
decision: CodingDecision;
|
|
48
|
+
snapshot: CodingFlowSnapshot;
|
|
49
|
+
} | {
|
|
50
|
+
type: "error";
|
|
51
|
+
error: CodingFlowError;
|
|
52
|
+
snapshot: CodingFlowSnapshot;
|
|
53
|
+
} | {
|
|
54
|
+
type: "cancelled";
|
|
55
|
+
snapshot: CodingFlowSnapshot;
|
|
56
|
+
} | {
|
|
57
|
+
type: "reset";
|
|
58
|
+
snapshot: CodingFlowSnapshot;
|
|
59
|
+
};
|
|
60
|
+
export type CodingFlowSubmitOptions = {
|
|
61
|
+
/** Reuse this value only when retrying the same hosted submission. */
|
|
62
|
+
requestId?: string;
|
|
63
|
+
sessionId?: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Tenant-scoped reviewer engagement event (rcm-reviewer-event-v1). The SDK
|
|
67
|
+
* adds `source: "embed"` and an `occurredAt` timestamp when omitted. Events
|
|
68
|
+
* carry only an opaque case reference, categorical facts, and aggregate
|
|
69
|
+
* durations — never prompts, document contents, or direct identifiers.
|
|
70
|
+
*/
|
|
71
|
+
export type CareCompassReviewerEventInput = {
|
|
72
|
+
eventName: RcmReviewerEvent["eventName"];
|
|
73
|
+
caseRef: string;
|
|
74
|
+
workflowId: CareCompassWorkflowId;
|
|
75
|
+
eventId?: string;
|
|
76
|
+
occurredAt?: string;
|
|
77
|
+
reviewId?: string;
|
|
78
|
+
packId?: string;
|
|
79
|
+
packVersion?: string;
|
|
80
|
+
environment?: RcmReviewerEvent["environment"];
|
|
81
|
+
evidenceId?: string;
|
|
82
|
+
activeSeconds?: number;
|
|
83
|
+
idlePaused?: boolean;
|
|
84
|
+
};
|
|
85
|
+
export type CodingFlowOptions = {
|
|
86
|
+
compliance?: CareCompassComplianceRuntimeOptions;
|
|
87
|
+
fetcher?: Fetcher;
|
|
88
|
+
now?: () => number;
|
|
89
|
+
onAuditEvent?: CareCompassAuditListener;
|
|
90
|
+
onSafetyEvent?: CareCompassSafetyListener;
|
|
91
|
+
pollIntervalMs?: number;
|
|
92
|
+
runtimeTokenProvider?: CareCompassRuntimeTokenProvider;
|
|
93
|
+
reviewerAuthProvider?: CareCompassReviewerAuthProvider;
|
|
94
|
+
timeoutMs?: number;
|
|
95
|
+
};
|
|
96
|
+
export type CodingFlow = {
|
|
97
|
+
cancel: () => Promise<CodingFlowSnapshot>;
|
|
98
|
+
dispose: () => void;
|
|
99
|
+
exportAuditTrail: () => CareCompassAuditEvent[];
|
|
100
|
+
getSnapshot: () => CodingFlowSnapshot;
|
|
101
|
+
listAuthorizedPacks: () => Promise<CareCompassPackCatalogEntry[]>;
|
|
102
|
+
getPackSchema: (packId: CareCompassWorkflowId) => Promise<CareCompassPackSchema>;
|
|
103
|
+
recordReviewerAction: (decisionId: string, action: CodingReviewerAction) => Promise<CareCompassReviewerActionResult>;
|
|
104
|
+
/**
|
|
105
|
+
* Best-effort engagement telemetry. Returns false when the event fails
|
|
106
|
+
* validation or delivery; it never throws and never blocks a review.
|
|
107
|
+
*/
|
|
108
|
+
reportReviewerEvent: (event: CareCompassReviewerEventInput) => Promise<boolean>;
|
|
109
|
+
reset: () => void;
|
|
110
|
+
retryLast: () => Promise<CodingFlowSnapshot>;
|
|
111
|
+
stream: (packId: CareCompassWorkflowId, codingCase: CodingCase, options?: CodingFlowSubmitOptions) => AsyncIterable<CodingFlowEvent>;
|
|
112
|
+
submit: (packId: CareCompassWorkflowId, codingCase: CodingCase, options?: CodingFlowSubmitOptions) => Promise<CodingFlowSnapshot>;
|
|
113
|
+
subscribe: (listener: (snapshot: CodingFlowSnapshot) => void) => () => void;
|
|
114
|
+
subscribeAudit: (listener: CareCompassAuditListener) => () => void;
|
|
115
|
+
subscribeSafety: (listener: CareCompassSafetyListener) => () => void;
|
|
116
|
+
};
|
|
117
|
+
export declare function createCodingFlow(config: CareCompassConfig, options?: CodingFlowOptions): CodingFlow;
|
|
118
|
+
export type CodingDraftErrorCode = "missing_data" | "unsupported_scope" | "invalid_value";
|
|
119
|
+
export type CodingDraftError = {
|
|
120
|
+
path: string;
|
|
121
|
+
code: CodingDraftErrorCode;
|
|
122
|
+
message: string;
|
|
123
|
+
};
|
|
124
|
+
export type CodingDraftSnapshot = {
|
|
125
|
+
values: Record<string, unknown>;
|
|
126
|
+
errors: CodingDraftError[];
|
|
127
|
+
complete: boolean;
|
|
128
|
+
};
|
|
129
|
+
export declare function createCodingDraft(initial?: Partial<CodingCase>): {
|
|
130
|
+
reset: (values?: Partial<CodingCase>) => void;
|
|
131
|
+
set: (path: string, value: unknown) => void;
|
|
132
|
+
snapshot: () => CodingDraftSnapshot;
|
|
133
|
+
validate: () => CodingDraftSnapshot;
|
|
134
|
+
};
|
|
135
|
+
export type CodingDecisionPrimaryState = "review_required" | "abstain" | "escalate";
|
|
136
|
+
export declare const decisionPrimaryState: (decision: CodingDecision) => CodingDecisionPrimaryState;
|
|
137
|
+
export type TypedCodingGap = {
|
|
138
|
+
gapId: string;
|
|
139
|
+
type: NonNullable<CodingDecision["gaps"]>[number]["type"];
|
|
140
|
+
description: string;
|
|
141
|
+
severity: NonNullable<CodingDecision["gaps"]>[number]["severity"];
|
|
142
|
+
};
|
|
143
|
+
export declare const decisionGaps: (decision: CodingDecision) => TypedCodingGap[];
|
|
144
|
+
export declare const decisionBlockingGaps: (decision: CodingDecision) => TypedCodingGap[];
|
|
145
|
+
export declare const decisionConflicts: (decision: CodingDecision) => {
|
|
146
|
+
conflictId: string;
|
|
147
|
+
type: "other" | "payer_vs_national" | "plan_vs_contract" | "terminology_period" | "rule_vs_rule" | "model_vs_rule";
|
|
148
|
+
summary: string;
|
|
149
|
+
references?: string[] | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
export declare const decisionRequiresHumanReview: (decision: CodingDecision) => boolean;
|
|
152
|
+
export declare const decisionPackVersions: (decision: CodingDecision) => {
|
|
153
|
+
packId: string;
|
|
154
|
+
packVersion: string;
|
|
155
|
+
modelId: string;
|
|
156
|
+
modelVersion: string;
|
|
157
|
+
terminology: {
|
|
158
|
+
system: "ICD-10-CM" | "OTHER" | "CPT" | "HCPCS" | "ICD-10-PCS" | "NDC" | "CDT" | "REVENUE_CODE" | "DRG" | "MODIFIERS";
|
|
159
|
+
editionVersion: string;
|
|
160
|
+
licenseApproved: boolean;
|
|
161
|
+
}[];
|
|
162
|
+
rules: {
|
|
163
|
+
ruleId: string;
|
|
164
|
+
ruleVersion: string;
|
|
165
|
+
}[];
|
|
166
|
+
decisionSchemaVersion: string;
|
|
167
|
+
caseSchemaVersion: string;
|
|
168
|
+
};
|
|
169
|
+
export type CodingDecisionLabels = {
|
|
170
|
+
humanReviewRequired: string;
|
|
171
|
+
abstain: string;
|
|
172
|
+
escalate: string;
|
|
173
|
+
reviewRequired: string;
|
|
174
|
+
missingDocumentation: string;
|
|
175
|
+
unsupportedScope: string;
|
|
176
|
+
insufficientEvidence: string;
|
|
177
|
+
policyConflict: string;
|
|
178
|
+
terminologyUnavailable: string;
|
|
179
|
+
retry: string;
|
|
180
|
+
cancel: string;
|
|
181
|
+
error: string;
|
|
182
|
+
prepare: string;
|
|
183
|
+
cancelled: string;
|
|
184
|
+
recordAction: string;
|
|
185
|
+
actionRecorded: string;
|
|
186
|
+
};
|
|
187
|
+
export declare const CARECOMPASS_CODING_DECISION_LABELS: CodingDecisionLabels;
|
|
188
|
+
export {};
|