@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
package/README.md
CHANGED
|
@@ -13,6 +13,25 @@ The SDK gives teams two integration paths:
|
|
|
13
13
|
|
|
14
14
|
CareCompass is not a diagnosis tool, autonomous treatment product, replacement for clinicians, or general-purpose LLM SDK. It is healthcare AI infrastructure for building compliance-oriented, embedded AI workflows.
|
|
15
15
|
|
|
16
|
+
## Customer Documentation
|
|
17
|
+
|
|
18
|
+
Customer engineering and operations teams should start with the
|
|
19
|
+
[customer quickstart](docs/quickstart.md), which walks through a
|
|
20
|
+
complete synthetic (non-production) integration using the runnable files
|
|
21
|
+
in [`examples/`](examples/). The examples are compiled and executed by
|
|
22
|
+
this package's CI test suite, so the copy-paste code cannot drift from
|
|
23
|
+
the SDK surface.
|
|
24
|
+
|
|
25
|
+
- [Quickstart: synthetic integration end to end](docs/quickstart.md)
|
|
26
|
+
- [CodingCase construction and field validation](docs/coding-case-guide.md)
|
|
27
|
+
- [Coding packs: discovery, authorization, version pinning, and migration](docs/packs.md)
|
|
28
|
+
- [Error handling: retries, timeouts, abstention, conflict, escalation](docs/error-handling.md)
|
|
29
|
+
- [Configuration and policy: what you control, what Nexalink controls](docs/configuration-and-policy.md)
|
|
30
|
+
- [Branding and accessibility guidance](docs/branding-and-accessibility.md)
|
|
31
|
+
- [Production readiness checklist](docs/production-readiness.md)
|
|
32
|
+
- [Version support and deprecation policy](docs/version-support.md)
|
|
33
|
+
- [Migrating from the RCM coding-assistance API](docs/migration-rcm.md)
|
|
34
|
+
|
|
16
35
|
## Why Teams Choose CareCompass
|
|
17
36
|
|
|
18
37
|
Healthcare teams can already access foundation models. The hard part is turning those models into production-ready healthcare software.
|
|
@@ -81,7 +100,7 @@ CareCompass AI runtime
|
|
|
81
100
|
|
|
82
101
|
The browser receives only public embed configuration: tenant identifier, environment, public embed key, allowed origins, endpoint, model preferences, feature flags, branding, labels, theme, placement, compliance, and approved prompt settings.
|
|
83
102
|
|
|
84
|
-
Secret API keys stay in CLI, server-side, or trusted setup workflows. The browser never receives model credentials or Nexalink API keys.
|
|
103
|
+
Secret API keys stay in CLI, server-side, or trusted setup workflows. The browser never receives model credentials or Nexalink API keys. Structured coding submissions additionally never carry prompt configuration, model preferences, feature flags, policy text, corpus identifiers, or runtime tokens; pack ids and cases are validated against the canonical contracts before they leave the SDK.
|
|
85
104
|
|
|
86
105
|
## Integration Options
|
|
87
106
|
|
|
@@ -180,10 +199,20 @@ headless core, compliance preflight, and metadata-only audit events. It returns
|
|
|
180
199
|
candidate codes for qualified human review; it never makes a final coding,
|
|
181
200
|
billing, claim-submission, diagnosis, or treatment decision.
|
|
182
201
|
|
|
202
|
+
> **Deprecated.** The `./rcm` convenience API (createRcmCodingWorkflow and
|
|
203
|
+
> RcmCodingAssistant) remains fully supported and tested for existing
|
|
204
|
+
> integrations, but new integrations should use the generic headless coding
|
|
205
|
+
> API and review UI described below. A one-time console warning is emitted
|
|
206
|
+
> when the RCM wrappers are used. See [Migrating from the RCM coding-assistance
|
|
207
|
+
> API](#migrating-from-the-rcm-coding-assistance-api).
|
|
208
|
+
|
|
183
209
|
The SDK sends `workflow: "rcm-coding-assistance"` as an explicit top-level ask
|
|
184
|
-
field. The
|
|
185
|
-
|
|
186
|
-
|
|
210
|
+
field. The workflow identifier, request/result payload contracts, and validation
|
|
211
|
+
rules come from the canonical `@nexalink/coding-contracts` package, which is
|
|
212
|
+
generated from one JSON Schema source shared with the portal and the hosted
|
|
213
|
+
runtime. The SDK validates every review response against the canonical
|
|
214
|
+
`rcm-coding-output` contract and fails closed with an escalation when the
|
|
215
|
+
response violates it.
|
|
187
216
|
|
|
188
217
|
Development and staging RCM requests must include `claimContext.stage` set to
|
|
189
218
|
the configured SDK environment (`"development"` or `"staging"`). Production
|
|
@@ -247,6 +276,314 @@ To evaluate the pilot, compare **manual research minutes per case** before and
|
|
|
247
276
|
after assisted, human-reviewed use. The target is to measure a 25% or greater
|
|
248
277
|
reduction, not to make or submit a coding decision.
|
|
249
278
|
|
|
279
|
+
### Generic headless coding API
|
|
280
|
+
|
|
281
|
+
The generic coding API is a stable delivery layer for any authorized coding
|
|
282
|
+
pack. It is intentionally free of payer- or specialty-specific rules: pack
|
|
283
|
+
identity and required schemas come from the server-authorized pack catalog, and
|
|
284
|
+
the canonical CodingCase/CodingDecision contracts come from
|
|
285
|
+
`@nexalink/coding-contracts`.
|
|
286
|
+
|
|
287
|
+
The SDK can integrate headlessly without importing any bundled UI. Import from
|
|
288
|
+
the `./coding` subpath:
|
|
289
|
+
|
|
290
|
+
```ts
|
|
291
|
+
import { createCodingFlow } from "@nexalink/carecompass-sdk/coding";
|
|
292
|
+
import config from "./carecompass/carecompass.config.json";
|
|
293
|
+
|
|
294
|
+
const flow = createCodingFlow(config, {
|
|
295
|
+
reviewerAuthProvider: () => getReviewerPortalTokens(),
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
// 1. Discover the packs the runtime authorizes for this tenant.
|
|
299
|
+
const packs = await flow.listAuthorizedPacks();
|
|
300
|
+
|
|
301
|
+
// 2. Obtain the pack descriptor and required JSON Schemas.
|
|
302
|
+
const packSchema = await flow.getPackSchema("rcm-coding-assistance");
|
|
303
|
+
|
|
304
|
+
// 3. Submit a structured coding case and poll/stream the job to a decision.
|
|
305
|
+
const snapshot = await flow.submit("rcm-coding-assistance", {
|
|
306
|
+
caseId: "ENC-1042",
|
|
307
|
+
codingIntent: "encounter_review",
|
|
308
|
+
servicePeriod: { startDate: "2026-07-01" },
|
|
309
|
+
context: { setting: "professional", placeOfService: "22" },
|
|
310
|
+
payer: { payerName: "Example Payer" },
|
|
311
|
+
clinical: {
|
|
312
|
+
diagnoses: [
|
|
313
|
+
{
|
|
314
|
+
diagnosisId: "dx-1",
|
|
315
|
+
code: "R05",
|
|
316
|
+
codeSystem: "ICD-10-CM",
|
|
317
|
+
description: "Documented cough",
|
|
318
|
+
diagnosisType: "principal",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
notes: [{ noteId: "n1", noteType: "clinical_narrative", note: "…" }],
|
|
322
|
+
},
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
// 4. Render or persist the canonical decision.
|
|
326
|
+
if (snapshot.phase === "complete" && snapshot.decision) {
|
|
327
|
+
const { disposition, lineDecisions, gaps, conflicts, provenance } =
|
|
328
|
+
snapshot.decision;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// 5. Record a reviewer disposition against the immutable decision.
|
|
332
|
+
await flow.recordReviewerAction(snapshot.decision.decisionId, {
|
|
333
|
+
reviewerId: authenticatedReviewerSub,
|
|
334
|
+
reviewerRole: "qualified_coder",
|
|
335
|
+
action: "approved",
|
|
336
|
+
occurredAt: new Date().toISOString(),
|
|
337
|
+
});
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Reviewer actions require a portal-authenticated owner, admin, or reviewer whose
|
|
341
|
+
verified user ID matches `reviewerId` and who has claimed the review in the
|
|
342
|
+
portal. `reviewerAuthProvider` returns that user's `{ accessToken, idToken }`;
|
|
343
|
+
embed credentials and runtime tokens alone cannot approve coding decisions.
|
|
344
|
+
Edits to recommendations must use the portal review disposition flow, which
|
|
345
|
+
validates per-code feedback and the edited evidence set.
|
|
346
|
+
|
|
347
|
+
### Reviewer engagement events (RCM analytics)
|
|
348
|
+
|
|
349
|
+
`flow.reportReviewerEvent` records tenant-scoped, PHI-free reviewer engagement
|
|
350
|
+
facts (`decision_shown`, `evidence_opened`, `evidence_copied`,
|
|
351
|
+
`review_active_time`) in the operational event plane that powers tenant RCM
|
|
352
|
+
analytics. The built-in `CodingReview` surface reports `decision_shown`,
|
|
353
|
+
evidence engagement, and active review time automatically with a documented
|
|
354
|
+
120-second idle pause. Delivery is best-effort: it returns `false` instead of
|
|
355
|
+
throwing and never blocks a review.
|
|
356
|
+
|
|
357
|
+
```ts
|
|
358
|
+
// Hosts rendering a custom review UI report the same contract themselves.
|
|
359
|
+
await flow.reportReviewerEvent({
|
|
360
|
+
eventName: "decision_shown",
|
|
361
|
+
caseRef: decision.caseRef, // opaque case reference, never a patient id
|
|
362
|
+
workflowId: snapshot.packId ?? "rcm-coding-assistance",
|
|
363
|
+
});
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
Hosts with custom UIs must supply the event name, the opaque `caseRef`, the
|
|
367
|
+
workflow id; the SDK supplies `occurredAt` when omitted. `evidenceId` and
|
|
368
|
+
`activeSeconds` are optional.
|
|
369
|
+
Never send prompts, document contents, patient or member identifiers, claim
|
|
370
|
+
identifiers, or free text. Events are accepted only for jobs owned by the
|
|
371
|
+
embed key's tenant and are validated against the published
|
|
372
|
+
`rcm-reviewer-event-v1` contract. See `TELEMETRY.md` for the boundary between
|
|
373
|
+
aggregate deployment telemetry and this tenant-scoped event plane.
|
|
374
|
+
|
|
375
|
+
### Monthly PIN time aggregation pack
|
|
376
|
+
|
|
377
|
+
The `monthly-pin-time-aggregation` workflow runs through the exact same
|
|
378
|
+
methods with a structurally different case: structured monthly activity time
|
|
379
|
+
instead of a narrative encounter. The hosted runtime derives the time-based
|
|
380
|
+
codes deterministically from the pack's rule set (the model never computes
|
|
381
|
+
time); the SDK renders the same `CodingReview` surface and requires the same
|
|
382
|
+
qualified human review.
|
|
383
|
+
|
|
384
|
+
```ts
|
|
385
|
+
import {
|
|
386
|
+
createCodingFlow,
|
|
387
|
+
PIN_TIME_WORKFLOW_ID,
|
|
388
|
+
} from "@nexalink/carecompass-sdk";
|
|
389
|
+
|
|
390
|
+
const flow = createCodingFlow(config);
|
|
391
|
+
|
|
392
|
+
// Discover the pack the runtime authorizes for this tenant.
|
|
393
|
+
const packs = await flow.listAuthorizedPacks();
|
|
394
|
+
const pinPack = packs.find((pack) => pack.packId === PIN_TIME_WORKFLOW_ID);
|
|
395
|
+
if (!pinPack) throw new Error("monthly-pin-time-aggregation is not authorized");
|
|
396
|
+
|
|
397
|
+
// Submit a monthly multi-activity time case.
|
|
398
|
+
const snapshot = await flow.submit(PIN_TIME_WORKFLOW_ID, {
|
|
399
|
+
caseId: "CCM-2026-07",
|
|
400
|
+
analyticsId: "anl-ccm-2026-07",
|
|
401
|
+
codingIntent: "monthly_time_aggregation",
|
|
402
|
+
servicePeriod: { startDate: "2026-07-01", endDate: "2026-07-31" },
|
|
403
|
+
context: {
|
|
404
|
+
setting: "professional",
|
|
405
|
+
placeOfService: "11",
|
|
406
|
+
jurisdiction: "Synthetic MAC-J15",
|
|
407
|
+
specialty: "internal_medicine",
|
|
408
|
+
},
|
|
409
|
+
clinical: {
|
|
410
|
+
timeUnits: [
|
|
411
|
+
{
|
|
412
|
+
timeId: "tu-1",
|
|
413
|
+
date: "2026-07-02",
|
|
414
|
+
durationMinutes: 45,
|
|
415
|
+
activityCode: "EM-MGMT",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
timeId: "tu-2",
|
|
419
|
+
date: "2026-07-09",
|
|
420
|
+
durationMinutes: 50,
|
|
421
|
+
activityCode: "EM-MGMT",
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
},
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
if (snapshot.phase === "complete" && snapshot.decision) {
|
|
428
|
+
// Deterministic code candidates appear as line decisions with rule provenance.
|
|
429
|
+
const { lineDecisions, provenance } = snapshot.decision;
|
|
430
|
+
if (
|
|
431
|
+
provenance.rules.some(
|
|
432
|
+
(rule) => rule.ruleId === "rcm.monthly-time-aggregation",
|
|
433
|
+
)
|
|
434
|
+
) {
|
|
435
|
+
// The codes were derived by the pack's deterministic time-aggregation rule.
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
Both packs share the same `createCodingFlow`, `CodingReview`, reviewer-action,
|
|
441
|
+
tenant isolation, evidence grounding, abstention/escalation, and audit
|
|
442
|
+
guarantees; pack-specific behavior lives in the manifests, rule sets, prompts,
|
|
443
|
+
and fixtures only.
|
|
444
|
+
|
|
445
|
+
For live progress, use the lifecycle generator instead of `submit`:
|
|
446
|
+
|
|
447
|
+
```ts
|
|
448
|
+
for await (const event of flow.stream("rcm-coding-assistance", codingCase)) {
|
|
449
|
+
switch (event.type) {
|
|
450
|
+
case "case_submitted":
|
|
451
|
+
case "status":
|
|
452
|
+
// jobId + queued/running/complete/failed/cancelled
|
|
453
|
+
break;
|
|
454
|
+
case "decision_completed":
|
|
455
|
+
renderDecision(event.decision);
|
|
456
|
+
break;
|
|
457
|
+
case "error":
|
|
458
|
+
retryState(event.snapshot);
|
|
459
|
+
break;
|
|
460
|
+
case "cancelled":
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
Workflow/pack identifiers are **server-authorized**. `submit` sends only the
|
|
467
|
+
pack id, the canonical coding case, and routing metadata — never prompt
|
|
468
|
+
configuration, model preferences, feature flags, or policy text. The runtime
|
|
469
|
+
validates the pack against the tenant catalog before accepting work; an
|
|
470
|
+
unauthorized pack fails closed with an `unsupported_scope` error. Responses are
|
|
471
|
+
validated against the canonical `coding-decision` contract and fail closed with
|
|
472
|
+
an `invalid_decision` error instead of surfacing a malformed result.
|
|
473
|
+
|
|
474
|
+
Structured failure states are explicit: `missing_data` (schema validation),
|
|
475
|
+
`unsupported_scope` (pack/date/setting not applicable), `policy_conflict`,
|
|
476
|
+
`terminology_unavailable`, `abstained`, `escalated`, `request_timeout`, and
|
|
477
|
+
`cancelled`. Every failure keeps an error snapshot with `canRetry` metadata;
|
|
478
|
+
`retryLast()` reuses the original request identifier only when the submission
|
|
479
|
+
outcome was ambiguous, and issues a fresh one otherwise. `cancel()` stops
|
|
480
|
+
polling and requests server-side cancellation; after dispose, all in-flight
|
|
481
|
+
operations reject with a disposed error.
|
|
482
|
+
|
|
483
|
+
Browser payloads on this path never contain secret credentials or unrestricted
|
|
484
|
+
policy configuration. Production embeds still require a BFF
|
|
485
|
+
`runtimeTokenProvider`, exactly like the chat and RCM paths.
|
|
486
|
+
|
|
487
|
+
### Coding review UI
|
|
488
|
+
|
|
489
|
+
For an approved default review experience with minimal configuration, use the
|
|
490
|
+
React `CodingReview` component or the framework-neutral web component. Both are
|
|
491
|
+
optional: headless integrations never import them.
|
|
492
|
+
|
|
493
|
+
```tsx
|
|
494
|
+
import { CodingReview } from "@nexalink/carecompass-sdk/coding-ui";
|
|
495
|
+
import config from "./carecompass/carecompass.config.json";
|
|
496
|
+
|
|
497
|
+
<CodingReview
|
|
498
|
+
config={config}
|
|
499
|
+
packId="rcm-coding-assistance"
|
|
500
|
+
initialCase={codingCase}
|
|
501
|
+
reviewerId={authenticatedReviewerSub}
|
|
502
|
+
reviewerAuthProvider={() => getReviewerPortalTokens()}
|
|
503
|
+
onCodingDecision={(decision) => persistDecision(decision)}
|
|
504
|
+
renderGap={(gap) => <CustomGap gap={gap} />}
|
|
505
|
+
/>;
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
The default experience renders the human-review boundary (`role="alert"`),
|
|
509
|
+
disposition, line decisions (actions, codes, modifiers, units, linked
|
|
510
|
+
diagnoses), typed gaps (missing documentation, unsupported scope, insufficient
|
|
511
|
+
evidence, policy conflict, terminology unavailable), conflicts, and supporting
|
|
512
|
+
evidence, with retry and cancel controls and a reviewer-action recording form.
|
|
513
|
+
It is driven by `config.theme`, `config.branding`, and `config.labels`; label
|
|
514
|
+
overrides for the review copy are passed with the `labels` prop. UI
|
|
515
|
+
configuration can change presentation only — it can never redefine an
|
|
516
|
+
authorized workflow.
|
|
517
|
+
|
|
518
|
+
For a headless React controller, use `useCodingReview(config, options)`, which
|
|
519
|
+
returns `{ flow, snapshot, submit, retryLast, cancel, recordReviewerAction }`
|
|
520
|
+
and owns teardown. For framework-neutral pages:
|
|
521
|
+
|
|
522
|
+
```ts
|
|
523
|
+
import { defineCodingReviewElement } from "@nexalink/carecompass-sdk/coding-element";
|
|
524
|
+
|
|
525
|
+
defineCodingReviewElement();
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
```html
|
|
529
|
+
<carecompass-coding-review></carecompass-coding-review>
|
|
530
|
+
<script>
|
|
531
|
+
const element = document.querySelector("carecompass-coding-review");
|
|
532
|
+
element.config = config;
|
|
533
|
+
element.packId = "rcm-coding-assistance";
|
|
534
|
+
element.initialCase = codingCase;
|
|
535
|
+
element.reviewerId = "user-coder-42";
|
|
536
|
+
element.reviewerRole = "qualified_coder";
|
|
537
|
+
element.reviewerAuthProvider = () => getReviewerPortalTokens();
|
|
538
|
+
element.addEventListener("carecompass-decision", (event) =>
|
|
539
|
+
console.log(event.detail),
|
|
540
|
+
);
|
|
541
|
+
element.addEventListener("carecompass-error", (event) =>
|
|
542
|
+
console.error(event.detail),
|
|
543
|
+
);
|
|
544
|
+
element.addEventListener("carecompass-cancelled", (event) =>
|
|
545
|
+
console.log("Cancelled", event.detail),
|
|
546
|
+
);
|
|
547
|
+
</script>
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
Terminal `carecompass-decision`, `carecompass-error`, and
|
|
551
|
+
`carecompass-cancelled` events fire once per state transition. Successful
|
|
552
|
+
reviewer submissions emit `carecompass-reviewer-action`. Audit and safety
|
|
553
|
+
metadata continue to use `carecompass-audit` and `carecompass-safety`.
|
|
554
|
+
|
|
555
|
+
Schema-driven primitives (`createCodingDraft`, `decisionGaps`,
|
|
556
|
+
`decisionBlockingGaps`, `decisionConflicts`, `decisionPrimaryState`) are
|
|
557
|
+
exported from both the root package and the `./coding` subpath so forms and
|
|
558
|
+
result renderers stay contract-driven without embedding specialty logic.
|
|
559
|
+
|
|
560
|
+
### Migrating from the RCM coding-assistance API
|
|
561
|
+
|
|
562
|
+
The RCM wrappers (`createRcmCodingWorkflow`, `RcmCodingAssistant`,
|
|
563
|
+
`CARECOMPASS_RCM_SYNTHETIC_DEMO`) remain available at `@nexalink/carecompass-sdk/rcm`
|
|
564
|
+
and keep their existing transport and result shapes, so existing integrations
|
|
565
|
+
do not need changes. They now emit a one-time deprecation warning.
|
|
566
|
+
|
|
567
|
+
To migrate:
|
|
568
|
+
|
|
569
|
+
1. Replace the review call with `createCodingFlow(config, options).submit(packId, codingCase)`.
|
|
570
|
+
2. Convert your `RcmCodingAssistanceInput` into the canonical `CodingCase`
|
|
571
|
+
envelope (encounter id, coding intent, service period, context, payer,
|
|
572
|
+
clinical narratives, and supporting references).
|
|
573
|
+
3. Read the result from `snapshot.decision` (CodingDecision) instead of
|
|
574
|
+
`RcmCodingAssistanceResult`; map dispositions `review_required` /
|
|
575
|
+
`abstain` / `escalate` and render gaps and conflicts from the decision
|
|
576
|
+
primitives.
|
|
577
|
+
4. Optionally replace the `RcmCodingAssistant` component with `CodingReview`.
|
|
578
|
+
5. Record reviewer dispositions with `recordReviewerAction` instead of
|
|
579
|
+
host-side tracking.
|
|
580
|
+
|
|
581
|
+
The RCM and generic paths are equally auditable and safety-checked; both
|
|
582
|
+
forward structured context only and keep policy text out of the browser.
|
|
583
|
+
The full migration guide — field-by-field input mapping, result-shape
|
|
584
|
+
mapping, and a runnable before/after example — is in
|
|
585
|
+
[Migrating from the RCM coding-assistance API](docs/migration-rcm.md).
|
|
586
|
+
|
|
250
587
|
### 3. React Hook
|
|
251
588
|
|
|
252
589
|
Use `useCareCompass` when your React app needs its own visual design but does
|
|
@@ -407,6 +744,36 @@ fail closed when the provider is absent, fails, or returns an empty token.
|
|
|
407
744
|
|
|
408
745
|
Live regulated use requires Nexalink onboarding, issued credentials, and BAA coverage where PHI may be involved. The package is publicly installable for developer convenience, but runtime access is credentialed.
|
|
409
746
|
|
|
747
|
+
### Input adapters (FHIR, CSV, JSON, X12)
|
|
748
|
+
|
|
749
|
+
Customers who already carry claims in their own formats can submit them
|
|
750
|
+
through the same coding packs without building a CodingCase by hand. SDK
|
|
751
|
+
helpers build the versioned `{adapter, sourcePayload}` envelope; the
|
|
752
|
+
hosted runtime normalizes it into the canonical CodingCase:
|
|
753
|
+
|
|
754
|
+
```ts
|
|
755
|
+
import {
|
|
756
|
+
fhirR4ClaimPayload,
|
|
757
|
+
csvRowPayload,
|
|
758
|
+
jsonClaimPayload,
|
|
759
|
+
x12837Payload,
|
|
760
|
+
} from "@nexalink/carecompass-sdk/adapters";
|
|
761
|
+
import { createCareCompassClient } from "@nexalink/carecompass-sdk/client";
|
|
762
|
+
|
|
763
|
+
const client = createCareCompassClient(config, { runtimeTokenProvider });
|
|
764
|
+
|
|
765
|
+
await client.submitCodingCase({
|
|
766
|
+
packId: "rcm-coding-assistance",
|
|
767
|
+
caseSchemaVersion: "coding-case-v1",
|
|
768
|
+
...fhirR4ClaimPayload(fhirClaimBundleOrResource), // or csvRowPayload / jsonClaimPayload / x12837Payload
|
|
769
|
+
});
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
Supported adapters: `fhir-r4-claim-v1`, `csv-row-v1`, `json-claim-v1`,
|
|
773
|
+
`x12-837-claim-v1`. The resolved pack authorizes adapters; unknown or
|
|
774
|
+
undeclared adapters fail closed. The SDK never parses claims, fabricates
|
|
775
|
+
data, or bypasses tenant authorization — it only builds the envelope.
|
|
776
|
+
|
|
410
777
|
```bash
|
|
411
778
|
npx @nexalink/carecompass-sdk init --account-type developer --api-key <nexalink-api-key> --payer-id acme-health --origin https://app.acme-health.com
|
|
412
779
|
npx @nexalink/carecompass-sdk validate --config carecompass/carecompass.config.json
|
|
@@ -605,6 +972,7 @@ The SDK is designed to keep sensitive operational details out of the browser:
|
|
|
605
972
|
- no model endpoint credentials in browser code
|
|
606
973
|
- no customer-managed telemetry switches in runtime config
|
|
607
974
|
- no prompt, response, chat history, user context, PHI/PII, payer, tenant, deployment, session, or user identifiers, credentials, raw errors, stack traces, CLI arguments, terminal input, or file paths in SDK telemetry
|
|
975
|
+
- structured coding submissions carry the pack id and canonical CodingCase only: no prompt configuration, model preferences, feature flags, policy text, corpus ids, or credentials
|
|
608
976
|
- generated snippets escape serialized config
|
|
609
977
|
- default React rendering escapes raw HTML
|
|
610
978
|
|
|
@@ -625,6 +993,8 @@ Requests still route through Nexalink-hosted APIs. The browser embed does not re
|
|
|
625
993
|
- `Origin is not authorized`: add the exact website origin to the Nexalink SDK configuration.
|
|
626
994
|
- `Prompt configuration violates CareCompass guardrails`: remove unsafe or unsupported instructions and re-run validation.
|
|
627
995
|
- `CareCompass embed client is not authorized`: confirm `payerId`, `embedKey`, `environment`, and allowed origins match the key issued for the deployment.
|
|
996
|
+
- `Unsupported scope` on a coding submission: the pack, service date, setting, or jurisdiction is not authorized for this tenant on this runtime; authorize the pack in the tenant portal or submit an in-scope case.
|
|
997
|
+
- `Invalid decision` on a coding submission: the runtime returned a result that violated the canonical CodingDecision contract; the SDK failed closed and the case must go to a qualified coder.
|
|
628
998
|
|
|
629
999
|
## License
|
|
630
1000
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CareCompass coding input adapters (NEX-115).
|
|
3
|
+
*
|
|
4
|
+
* Adapters let customers submit their existing healthcare and operational
|
|
5
|
+
* formats through the hosted runtime without coupling the SDK to one
|
|
6
|
+
* transport or EHR. These helpers build the `{adapter, sourcePayload}`
|
|
7
|
+
* envelope the server-side registry normalizes into the canonical CodingCase.
|
|
8
|
+
*
|
|
9
|
+
* Client-side envelope construction only: the SDK never parses claim
|
|
10
|
+
* semantics itself, never fabricates data, and keeps the same validation and
|
|
11
|
+
* tenant-authorization guarantees as every other coding submission. Mapping
|
|
12
|
+
* versions are declared explicitly so a server that has not adopted a mapping
|
|
13
|
+
* can fail closed instead of guessing.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ADAPTER_IDS: {
|
|
16
|
+
readonly FHIR_R4_CLAIM: "fhir-r4-claim-v1";
|
|
17
|
+
readonly CSV_ROW: "csv-row-v1";
|
|
18
|
+
readonly JSON_CLAIM: "json-claim-v1";
|
|
19
|
+
readonly X12_837_CLAIM: "x12-837-claim-v1";
|
|
20
|
+
};
|
|
21
|
+
export type CareCompassAdapterId = (typeof ADAPTER_IDS)[keyof typeof ADAPTER_IDS];
|
|
22
|
+
export type CareCompassAdapterEnvelope = {
|
|
23
|
+
adapter: CareCompassAdapterId;
|
|
24
|
+
sourcePayload: NonNullable<unknown>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Build a FHIR R4/R4B claim envelope from a Claim resource or a
|
|
28
|
+
* self-contained Bundle containing the Claim and its referenced resources.
|
|
29
|
+
*/
|
|
30
|
+
export declare const fhirR4ClaimPayload: (source: Record<string, unknown>) => CareCompassAdapterEnvelope;
|
|
31
|
+
/**
|
|
32
|
+
* Build a validated CSV template envelope. Pass the single-row CSV text
|
|
33
|
+
* (header + one data row) directly, or a one-row JSON batch template as
|
|
34
|
+
* `{ rows: [{ ... }] }`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const csvRowPayload: (source: string | {
|
|
37
|
+
csv?: string;
|
|
38
|
+
rows?: Array<Record<string, unknown>>;
|
|
39
|
+
}) => CareCompassAdapterEnvelope;
|
|
40
|
+
/**
|
|
41
|
+
* Build a customer-native JSON claim template envelope.
|
|
42
|
+
*/
|
|
43
|
+
export declare const jsonClaimPayload: (source: Record<string, unknown> | {
|
|
44
|
+
claims: Array<Record<string, unknown>>;
|
|
45
|
+
}) => CareCompassAdapterEnvelope;
|
|
46
|
+
/**
|
|
47
|
+
* Build a bounded X12 837 claim envelope from raw EDI text or a segment
|
|
48
|
+
* array. Import subset only: 835 export remains a documented boundary.
|
|
49
|
+
*/
|
|
50
|
+
export declare const x12837Payload: (source: string | {
|
|
51
|
+
edi?: string;
|
|
52
|
+
segments?: string[][];
|
|
53
|
+
}) => CareCompassAdapterEnvelope;
|
|
54
|
+
export declare const careCompassAdapterIds: () => CareCompassAdapterId[];
|
package/dist/adapters.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CareCompass coding input adapters (NEX-115).
|
|
3
|
+
*
|
|
4
|
+
* Adapters let customers submit their existing healthcare and operational
|
|
5
|
+
* formats through the hosted runtime without coupling the SDK to one
|
|
6
|
+
* transport or EHR. These helpers build the `{adapter, sourcePayload}`
|
|
7
|
+
* envelope the server-side registry normalizes into the canonical CodingCase.
|
|
8
|
+
*
|
|
9
|
+
* Client-side envelope construction only: the SDK never parses claim
|
|
10
|
+
* semantics itself, never fabricates data, and keeps the same validation and
|
|
11
|
+
* tenant-authorization guarantees as every other coding submission. Mapping
|
|
12
|
+
* versions are declared explicitly so a server that has not adopted a mapping
|
|
13
|
+
* can fail closed instead of guessing.
|
|
14
|
+
*/
|
|
15
|
+
export const ADAPTER_IDS = {
|
|
16
|
+
FHIR_R4_CLAIM: "fhir-r4-claim-v1",
|
|
17
|
+
CSV_ROW: "csv-row-v1",
|
|
18
|
+
JSON_CLAIM: "json-claim-v1",
|
|
19
|
+
X12_837_CLAIM: "x12-837-claim-v1",
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Build a FHIR R4/R4B claim envelope from a Claim resource or a
|
|
23
|
+
* self-contained Bundle containing the Claim and its referenced resources.
|
|
24
|
+
*/
|
|
25
|
+
export const fhirR4ClaimPayload = (source) => ({
|
|
26
|
+
adapter: ADAPTER_IDS.FHIR_R4_CLAIM,
|
|
27
|
+
sourcePayload: source,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Build a validated CSV template envelope. Pass the single-row CSV text
|
|
31
|
+
* (header + one data row) directly, or a one-row JSON batch template as
|
|
32
|
+
* `{ rows: [{ ... }] }`.
|
|
33
|
+
*/
|
|
34
|
+
export const csvRowPayload = (source) => ({
|
|
35
|
+
adapter: ADAPTER_IDS.CSV_ROW,
|
|
36
|
+
sourcePayload: typeof source === "string" ? { csv: source } : source,
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Build a customer-native JSON claim template envelope.
|
|
40
|
+
*/
|
|
41
|
+
export const jsonClaimPayload = (source) => ({
|
|
42
|
+
adapter: ADAPTER_IDS.JSON_CLAIM,
|
|
43
|
+
sourcePayload: source,
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Build a bounded X12 837 claim envelope from raw EDI text or a segment
|
|
47
|
+
* array. Import subset only: 835 export remains a documented boundary.
|
|
48
|
+
*/
|
|
49
|
+
export const x12837Payload = (source) => ({
|
|
50
|
+
adapter: ADAPTER_IDS.X12_837_CLAIM,
|
|
51
|
+
sourcePayload: source,
|
|
52
|
+
});
|
|
53
|
+
export const careCompassAdapterIds = () => Object.values(ADAPTER_IDS);
|
package/dist/client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CareCompassAdapterId } from "./adapters.js";
|
|
1
2
|
import { type CareCompassConfig } from "./schema.js";
|
|
2
3
|
export type CareCompassAskRequest = {
|
|
3
4
|
prompt: string;
|
|
@@ -7,7 +8,17 @@ export type CareCompassAskRequest = {
|
|
|
7
8
|
sessionId?: string;
|
|
8
9
|
userContext?: Record<string, unknown>;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Workflow identifiers are server-authorized: any value is a client claim that
|
|
13
|
+
* the hosted runtime must validate against the tenant's authorized pack
|
|
14
|
+
* catalog before it is accepted. The SDK deliberately does not restrict this
|
|
15
|
+
* to a single TypeScript literal so new authorized packs do not require SDK
|
|
16
|
+
* releases. Prefer the canonical constants from @nexalink/coding-contracts
|
|
17
|
+
* (for example RCM_WORKFLOW_ID) and values returned by listAuthorizedPacks.
|
|
18
|
+
*/
|
|
19
|
+
export type CareCompassWorkflowId = string & {
|
|
20
|
+
readonly __careCompassWorkflowId?: unique symbol;
|
|
21
|
+
};
|
|
11
22
|
export type CareCompassAskResponse = {
|
|
12
23
|
jobId: string;
|
|
13
24
|
};
|
|
@@ -30,6 +41,79 @@ export type CareCompassStatusResponse = {
|
|
|
30
41
|
result?: string;
|
|
31
42
|
retrieval?: CareCompassRetrievalMetadata;
|
|
32
43
|
};
|
|
44
|
+
/** Authorized pack catalog entry returned by the hosted runtime. */
|
|
45
|
+
export type CareCompassPackCatalogEntry = {
|
|
46
|
+
packId: CareCompassWorkflowId;
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
environments: ("development" | "staging" | "production")[];
|
|
50
|
+
inputSchemaVersion: string;
|
|
51
|
+
outputSchemaVersion: string;
|
|
52
|
+
requiresHumanReview: boolean;
|
|
53
|
+
};
|
|
54
|
+
/** Pack descriptor plus both JSON Schema documents the pack declares. */
|
|
55
|
+
export type CareCompassPackSchema = {
|
|
56
|
+
packId: CareCompassWorkflowId;
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
environments: ("development" | "staging" | "production")[];
|
|
60
|
+
inputSchemaVersion: string;
|
|
61
|
+
outputSchemaVersion: string;
|
|
62
|
+
requiresHumanReview: boolean;
|
|
63
|
+
inputSchema: Record<string, unknown>;
|
|
64
|
+
outputSchema: Record<string, unknown>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Structured coding-case submission. The browser payload intentionally carries
|
|
68
|
+
* only the server-authorized pack id, the canonical coding case, and routing
|
|
69
|
+
* metadata: no prompt configuration, model preferences, feature flags, or
|
|
70
|
+
* policy text is sent on this path.
|
|
71
|
+
*/
|
|
72
|
+
export type CareCompassSubmitCodingCaseRequest = {
|
|
73
|
+
packId: CareCompassWorkflowId;
|
|
74
|
+
caseSchemaVersion: string;
|
|
75
|
+
/** Stable client-generated id used to make a submit/retry idempotent. */
|
|
76
|
+
requestId?: string;
|
|
77
|
+
sessionId?: string;
|
|
78
|
+
} & ({
|
|
79
|
+
/** Canonical coding case. Adapter fields are mutually exclusive. */
|
|
80
|
+
codingCase: Record<string, unknown>;
|
|
81
|
+
adapter?: never;
|
|
82
|
+
sourcePayload?: never;
|
|
83
|
+
} | {
|
|
84
|
+
codingCase?: never;
|
|
85
|
+
/**
|
|
86
|
+
* Registered input adapter (fhir-r4-claim-v1, csv-row-v1, json-claim-v1,
|
|
87
|
+
* x12-837-claim-v1). The resolved pack authorizes the adapter; use a
|
|
88
|
+
* `CareCompassAdapterEnvelope` from `adapters.ts` to build it.
|
|
89
|
+
*/
|
|
90
|
+
adapter: CareCompassAdapterId | (string & {});
|
|
91
|
+
/**
|
|
92
|
+
* Customer-native source payload normalized into the canonical CodingCase
|
|
93
|
+
* by the adapter. PHI-safe synthetic fixtures only in non-production.
|
|
94
|
+
*/
|
|
95
|
+
sourcePayload: NonNullable<unknown>;
|
|
96
|
+
});
|
|
97
|
+
export type CareCompassSubmitCodingCaseResponse = {
|
|
98
|
+
jobId: string;
|
|
99
|
+
decisionId?: string;
|
|
100
|
+
};
|
|
101
|
+
/** Typed failure reasons for structured coding submissions. */
|
|
102
|
+
export type CareCompassCodingErrorCode = "missing_data" | "unsupported_scope" | "policy_conflict" | "abstained" | "escalated" | "terminology_unavailable" | "request_timeout" | "cancelled" | "rate_limited" | "authentication_failed" | "network_error" | "backend_unavailable" | "invalid_decision" | "unknown";
|
|
103
|
+
export type CareCompassCodingError = {
|
|
104
|
+
code: CareCompassCodingErrorCode;
|
|
105
|
+
message: string;
|
|
106
|
+
};
|
|
107
|
+
export type CareCompassCodingStatus = "queued" | "running" | "complete" | "failed" | "cancelled";
|
|
108
|
+
export type CareCompassCodingStatusResponse = {
|
|
109
|
+
status: CareCompassCodingStatus;
|
|
110
|
+
decision?: Record<string, unknown>;
|
|
111
|
+
error?: CareCompassCodingError;
|
|
112
|
+
};
|
|
113
|
+
export type CareCompassReviewerActionResult = {
|
|
114
|
+
recorded: true;
|
|
115
|
+
reviewerAction: Record<string, unknown>;
|
|
116
|
+
};
|
|
33
117
|
type Fetcher = typeof fetch;
|
|
34
118
|
export type CareCompassRuntimeTokenRequest = {
|
|
35
119
|
payerId: string;
|
|
@@ -40,11 +124,26 @@ export type CareCompassRuntimeTokenRequest = {
|
|
|
40
124
|
};
|
|
41
125
|
/** Obtains a short-lived production token from the integrator's BFF. */
|
|
42
126
|
export type CareCompassRuntimeTokenProvider = (request: CareCompassRuntimeTokenRequest) => Promise<string> | string;
|
|
127
|
+
/** Supplies server-verified portal credentials for a human reviewer action. */
|
|
128
|
+
export type CareCompassReviewerAuthProvider = () => Promise<{
|
|
129
|
+
accessToken: string;
|
|
130
|
+
idToken: string;
|
|
131
|
+
}> | {
|
|
132
|
+
accessToken: string;
|
|
133
|
+
idToken: string;
|
|
134
|
+
};
|
|
43
135
|
export type CareCompassClientOptions = {
|
|
44
136
|
fetcher?: Fetcher;
|
|
45
137
|
now?: () => number;
|
|
46
138
|
runtimeTokenProvider?: CareCompassRuntimeTokenProvider;
|
|
139
|
+
reviewerAuthProvider?: CareCompassReviewerAuthProvider;
|
|
140
|
+
signal?: AbortSignal;
|
|
47
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Return the stable coding-flow error represented by an internal client
|
|
144
|
+
* failure without exposing transport or telemetry implementation details.
|
|
145
|
+
*/
|
|
146
|
+
export declare const careCompassCodingErrorCode: (error: unknown) => CareCompassCodingErrorCode | null;
|
|
48
147
|
export declare function createCareCompassClient(inputConfig: CareCompassConfig, options?: CareCompassClientOptions): {
|
|
49
148
|
validateConfig: () => Promise<{
|
|
50
149
|
ok: true;
|
|
@@ -52,5 +151,22 @@ export declare function createCareCompassClient(inputConfig: CareCompassConfig,
|
|
|
52
151
|
ask: (request: CareCompassAskRequest) => Promise<CareCompassAskResponse>;
|
|
53
152
|
status: (jobId: string) => Promise<CareCompassStatusResponse>;
|
|
54
153
|
recordInferenceTimeout: (jobId: string, durationMs: number) => void;
|
|
154
|
+
listAuthorizedPacks: () => Promise<CareCompassPackCatalogEntry[]>;
|
|
155
|
+
getPackSchema: (packId: CareCompassWorkflowId) => Promise<CareCompassPackSchema>;
|
|
156
|
+
submitCodingCase: (request: CareCompassSubmitCodingCaseRequest) => Promise<CareCompassSubmitCodingCaseResponse>;
|
|
157
|
+
codingStatus: (jobId: string) => Promise<CareCompassCodingStatusResponse>;
|
|
158
|
+
cancelCase: (jobId: string) => Promise<{
|
|
159
|
+
cancelled: true;
|
|
160
|
+
}>;
|
|
161
|
+
recordReviewerAction: (decisionId: string, reviewerAction: Record<string, unknown>) => Promise<CareCompassReviewerActionResult>;
|
|
162
|
+
/**
|
|
163
|
+
* Records one tenant-scoped reviewer engagement event (NEX-79) in the
|
|
164
|
+
* operational event plane. The event is validated and sanitized by the
|
|
165
|
+
* hosted API before storage; it never carries prompts, document contents,
|
|
166
|
+
* or direct identifiers.
|
|
167
|
+
*/
|
|
168
|
+
reportReviewerEvent: (event: Record<string, unknown>) => Promise<{
|
|
169
|
+
accepted: boolean;
|
|
170
|
+
}>;
|
|
55
171
|
};
|
|
56
172
|
export {};
|