dp-worker 0.1.17 → 0.1.18
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/dist/agent/tool-loop-detection.d.ts +20 -6
- package/dist/agent/tool-loop-detection.js +51 -17
- package/dist/agent/tool-loop-detection.js.map +1 -1
- package/dist/chrome-extension/omni-flow/manifest.json +1 -1
- package/node_modules/dp-shared/dist/admin-broadcast.d.ts +1 -1
- package/node_modules/dp-shared/dist/admin-broadcast.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/auto-post-contracts.d.ts +325 -0
- package/node_modules/dp-shared/dist/auto-post-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/auto-post-contracts.js +181 -0
- package/node_modules/dp-shared/dist/auto-post-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/cloak-contracts.d.ts +83 -0
- package/node_modules/dp-shared/dist/cloak-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/cloak-contracts.js +95 -0
- package/node_modules/dp-shared/dist/cloak-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/db-rows.d.ts +1 -0
- package/node_modules/dp-shared/dist/db-rows.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/db-rows.js +2 -0
- package/node_modules/dp-shared/dist/db-rows.js.map +1 -1
- package/node_modules/dp-shared/dist/index.d.ts +2 -0
- package/node_modules/dp-shared/dist/index.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/index.js +2 -0
- package/node_modules/dp-shared/dist/index.js.map +1 -1
- package/node_modules/dp-shared/dist/post-drafts-contracts.d.ts +398 -3
- package/node_modules/dp-shared/dist/post-drafts-contracts.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/post-drafts-contracts.js +260 -3
- package/node_modules/dp-shared/dist/post-drafts-contracts.js.map +1 -1
- package/node_modules/dp-shared/dist/task-history-contracts.d.ts +4 -0
- package/node_modules/dp-shared/dist/task-history-contracts.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/task-history-contracts.js +4 -0
- package/node_modules/dp-shared/dist/task-history-contracts.js.map +1 -1
- package/node_modules/dp-shared/dist/worker-detail-contracts.d.ts +3 -0
- package/node_modules/dp-shared/dist/worker-detail-contracts.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/worker-detail-contracts.js +4 -0
- package/node_modules/dp-shared/dist/worker-detail-contracts.js.map +1 -1
- package/node_modules/dp-shared/dist/ws-protocol.d.ts +103 -2
- package/node_modules/dp-shared/dist/ws-protocol.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/ws-protocol.js +37 -0
- package/node_modules/dp-shared/dist/ws-protocol.js.map +1 -1
- package/node_modules/dp-shared/src/admin-broadcast.ts +1 -0
- package/node_modules/dp-shared/src/auto-post-contracts.ts +206 -0
- package/node_modules/dp-shared/src/cloak-contracts.ts +110 -0
- package/node_modules/dp-shared/src/db-rows.ts +2 -0
- package/node_modules/dp-shared/src/index.ts +2 -0
- package/node_modules/dp-shared/src/post-drafts-contracts.ts +310 -3
- package/node_modules/dp-shared/src/task-history-contracts.ts +4 -0
- package/node_modules/dp-shared/src/worker-detail-contracts.ts +4 -0
- package/node_modules/dp-shared/src/ws-protocol.ts +57 -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 +1 -1
|
@@ -92,9 +92,10 @@ export const PostDraftResponseSchema = z.object({
|
|
|
92
92
|
status: PostDraftStatus,
|
|
93
93
|
posted_task_run_id: z.string().nullable(),
|
|
94
94
|
/** How the draft was produced: manual sourcepool wash, pasted-url wash, AI 创作,
|
|
95
|
-
* shared autofetch (cron) pool, a personal copy claimed from that pool,
|
|
96
|
-
* language-translated copy of one of the operator's own drafts
|
|
97
|
-
|
|
95
|
+
* shared autofetch (cron) pool, a personal copy claimed from that pool, a
|
|
96
|
+
* language-translated copy of one of the operator's own drafts, or an AI HOT
|
|
97
|
+
* curated item washed from its third-party original link. */
|
|
98
|
+
origin: z.enum(["sourcepool", "url", "composed", "autofetch", "claimed", "translated", "aihot", "reply", "quote", "interaction", "autopilot"]).default("sourcepool"),
|
|
98
99
|
/** Operator who authored a 'composed' draft (null = system-washed). */
|
|
99
100
|
author_user_id: z.string().nullable().default(null),
|
|
100
101
|
/** Denormalized login email of the author, for the board's 作者 filter/badge. */
|
|
@@ -103,6 +104,8 @@ export const PostDraftResponseSchema = z.object({
|
|
|
103
104
|
source_published_at: z.string().nullable().default(null),
|
|
104
105
|
/** Append the source link to the post at dispatch (default true). false = omit it. */
|
|
105
106
|
append_source_link: z.boolean().default(true),
|
|
107
|
+
/** For origin='reply': the tweet URL this draft is a reply to (else null). */
|
|
108
|
+
reply_to_url: z.string().nullable().default(null),
|
|
106
109
|
created_at: z.string(),
|
|
107
110
|
updated_at: z.string(),
|
|
108
111
|
});
|
|
@@ -285,6 +288,35 @@ export const AssistResultSchema = z.object({
|
|
|
285
288
|
});
|
|
286
289
|
export type AssistResult = z.infer<typeof AssistResultSchema>;
|
|
287
290
|
|
|
291
|
+
/**
|
|
292
|
+
* "AI 优化" — free-form deep optimization of a draft driven by the operator's own
|
|
293
|
+
* prompt plus optional materials (pasted reference text, reference links to
|
|
294
|
+
* fetch, and images for vision-capable models). Like assist, it rewrites both
|
|
295
|
+
* title+body and does NOT persist — the operator reviews the result in the
|
|
296
|
+
* editor and Saves. Reuses AssistResultSchema for the response.
|
|
297
|
+
*/
|
|
298
|
+
export const AiOptimizeBodySchema = z.object({
|
|
299
|
+
/** Current (possibly unsaved) body being edited. */
|
|
300
|
+
text: z.string().min(1),
|
|
301
|
+
/** Current (possibly unsaved) hook/title. */
|
|
302
|
+
hook: z.string().default(""),
|
|
303
|
+
/** Draft form — short is hard-capped at 280 chars; long stays multi-paragraph. */
|
|
304
|
+
format: z.enum(["short", "long"]).default("short"),
|
|
305
|
+
/** The operator's free-form optimization instruction — required. */
|
|
306
|
+
prompt: z.string().min(1).max(4000),
|
|
307
|
+
/** Optional pasted reference material. */
|
|
308
|
+
ref_text: z.string().max(20000).nullish(),
|
|
309
|
+
/** Optional reference links to fetch and ground on (max 3 applied server-side). */
|
|
310
|
+
ref_urls: z.array(z.string().url()).max(3).nullish(),
|
|
311
|
+
/** Optional R2 object keys of uploaded reference images (max 4 applied server-side). */
|
|
312
|
+
image_keys: z.array(z.string().min(1)).max(4).nullish(),
|
|
313
|
+
/** Optional target length (chars) for LONG-form drafts. Ignored for short (<= 280). */
|
|
314
|
+
target_chars: z.number().int().min(100).max(8000).nullish(),
|
|
315
|
+
/** Local model override; null/absent = global content profile. Must be vision-capable if images are sent. */
|
|
316
|
+
llm_profile_id: z.string().uuid().nullish(),
|
|
317
|
+
});
|
|
318
|
+
export type AiOptimizeBody = z.infer<typeof AiOptimizeBodySchema>;
|
|
319
|
+
|
|
288
320
|
/**
|
|
289
321
|
* "AI 创作" — operator-authored content that runs through the SAME rewrite/judge
|
|
290
322
|
* quality core as washing, but from a brief (and optional reference material)
|
|
@@ -498,3 +530,278 @@ export const ApproveDispatchResultSchema = z.object({
|
|
|
498
530
|
skipped_workers: z.array(z.string()).default([]),
|
|
499
531
|
});
|
|
500
532
|
export type ApproveDispatchResult = z.infer<typeof ApproveDispatchResultSchema>;
|
|
533
|
+
|
|
534
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
535
|
+
* AI HOT (aihot.virxact.com) — curated AI-news source, plugged into the content
|
|
536
|
+
* board as an independent "discovery radar". Browsing candidates is LLM-free;
|
|
537
|
+
* washing runs the SAME rewrite/judge quality core as sourcepool/from-url but on
|
|
538
|
+
* the candidate's THIRD-PARTY original link (`url`), not AI HOT's own summary.
|
|
539
|
+
* Everything downstream (edit / persona / multi-account dispatch) is reused as-is.
|
|
540
|
+
* ──────────────────────────────────────────────────────────────────────────── */
|
|
541
|
+
|
|
542
|
+
/** AI HOT item category slugs (openapi enum). */
|
|
543
|
+
export const AihotCategory = z.enum(["ai-models", "ai-products", "industry", "paper", "tip"]);
|
|
544
|
+
export type AihotCategory = z.infer<typeof AihotCategory>;
|
|
545
|
+
|
|
546
|
+
/** Which AI HOT surface the discovery panel is browsing. */
|
|
547
|
+
export const AihotSurface = z.enum([
|
|
548
|
+
"hot", // /api/public/hot-topics — multi-source heat ranking
|
|
549
|
+
"selected", // /api/public/items?mode=selected — editor-curated pool
|
|
550
|
+
"all", // /api/public/items?mode=all — last-7-day public pool
|
|
551
|
+
"daily", // /api/public/daily(/{date}) — LLM-editor daily digest (sections + flashes)
|
|
552
|
+
]);
|
|
553
|
+
export type AihotSurface = z.infer<typeof AihotSurface>;
|
|
554
|
+
|
|
555
|
+
/** One normalized AI HOT candidate for the browse list (pre-wash, no LLM/DB). */
|
|
556
|
+
export const AihotCandidateSchema = z.object({
|
|
557
|
+
/** AI HOT stable item id (also the hot-topic display item id). */
|
|
558
|
+
id: z.string(),
|
|
559
|
+
/** Third-party original article URL — what we wash from and attribute to. */
|
|
560
|
+
url: z.string(),
|
|
561
|
+
/** In-site AI HOT reader page (/items/{id}) — for reference only, not attribution. */
|
|
562
|
+
permalink: z.string().nullable().default(null),
|
|
563
|
+
/** Display title (Chinese-primary). */
|
|
564
|
+
title: z.string(),
|
|
565
|
+
/** Original-language title, when it differs. */
|
|
566
|
+
title_en: z.string().nullable().default(null),
|
|
567
|
+
/** Chinese summary (items surface only; null on hot-topics). */
|
|
568
|
+
summary: z.string().nullable().default(null),
|
|
569
|
+
/** Source name string (e.g. "The Verge:AI(RSS)"). */
|
|
570
|
+
source: z.string().nullable().default(null),
|
|
571
|
+
category: AihotCategory.nullable().default(null),
|
|
572
|
+
/** AI HOT heat score 0-100 (items surface); null on hot-topics. */
|
|
573
|
+
score: z.number().int().nullable().default(null),
|
|
574
|
+
published_at: z.string().nullable().default(null),
|
|
575
|
+
/** hot-topics only: number of independent sources covering the event. */
|
|
576
|
+
source_count: z.number().int().nullable().default(null),
|
|
577
|
+
/** hot-topics only: de-duped list of source names covering the event. */
|
|
578
|
+
source_names: z.array(z.string()).default([]),
|
|
579
|
+
/** items surface: whether the item is in AI HOT's editor-selected pool. */
|
|
580
|
+
selected: z.boolean().nullable().default(null),
|
|
581
|
+
});
|
|
582
|
+
export type AihotCandidate = z.infer<typeof AihotCandidateSchema>;
|
|
583
|
+
|
|
584
|
+
export const AihotCandidatesResultSchema = z.object({
|
|
585
|
+
surface: AihotSurface,
|
|
586
|
+
items: z.array(AihotCandidateSchema),
|
|
587
|
+
count: z.number().int().default(0),
|
|
588
|
+
/** opaque cursor for the next page (items surfaces only); null = no more. */
|
|
589
|
+
next_cursor: z.string().nullable().default(null),
|
|
590
|
+
});
|
|
591
|
+
export type AihotCandidatesResult = z.infer<typeof AihotCandidatesResultSchema>;
|
|
592
|
+
|
|
593
|
+
/** One entry in the AI HOT daily-report archive index (/api/public/dailies). */
|
|
594
|
+
export const AihotDailyEntrySchema = z.object({
|
|
595
|
+
date: z.string(),
|
|
596
|
+
lead_title: z.string().nullable().default(null),
|
|
597
|
+
});
|
|
598
|
+
export type AihotDailyEntry = z.infer<typeof AihotDailyEntrySchema>;
|
|
599
|
+
|
|
600
|
+
export const AihotDailiesResultSchema = z.object({
|
|
601
|
+
items: z.array(AihotDailyEntrySchema),
|
|
602
|
+
});
|
|
603
|
+
export type AihotDailiesResult = z.infer<typeof AihotDailiesResultSchema>;
|
|
604
|
+
|
|
605
|
+
/** Wash a set of operator-picked AI HOT candidates into drafts. */
|
|
606
|
+
export const AihotWashItemSchema = z.object({
|
|
607
|
+
id: z.string(),
|
|
608
|
+
url: z.string(),
|
|
609
|
+
title: z.string().default(""),
|
|
610
|
+
title_en: z.string().nullable().default(null),
|
|
611
|
+
summary: z.string().nullable().default(null),
|
|
612
|
+
source: z.string().nullable().default(null),
|
|
613
|
+
category: AihotCategory.nullable().default(null),
|
|
614
|
+
score: z.number().int().nullable().default(null),
|
|
615
|
+
published_at: z.string().nullable().default(null),
|
|
616
|
+
});
|
|
617
|
+
export type AihotWashItem = z.infer<typeof AihotWashItemSchema>;
|
|
618
|
+
|
|
619
|
+
export const AihotWashBodySchema = z.object({
|
|
620
|
+
items: z.array(AihotWashItemSchema).min(1).max(20),
|
|
621
|
+
format: z.enum(["short", "long", "both"]).default("short"),
|
|
622
|
+
/** Local model override; null/absent = global content profile. Not persisted. */
|
|
623
|
+
llm_profile_id: z.string().uuid().nullish(),
|
|
624
|
+
});
|
|
625
|
+
export type AihotWashBody = z.infer<typeof AihotWashBodySchema>;
|
|
626
|
+
|
|
627
|
+
export const AihotWashResultSchema = z.object({
|
|
628
|
+
generated: z.number().int(),
|
|
629
|
+
skipped: z.number().int(),
|
|
630
|
+
/** ids that produced at least one draft. */
|
|
631
|
+
washed_ids: z.array(z.string()).default([]),
|
|
632
|
+
});
|
|
633
|
+
export type AihotWashResult = z.infer<typeof AihotWashResultSchema>;
|
|
634
|
+
|
|
635
|
+
/** AI HOT polling + auto-wash settings (single-row config). */
|
|
636
|
+
export const AihotSettingsSchema = z.object({
|
|
637
|
+
/** Background fingerprint polling (badge notify). Default on. */
|
|
638
|
+
poll_enabled: z.boolean().default(true),
|
|
639
|
+
/** Minimum minutes between fingerprint polls (AI HOT recommends ≥1min). */
|
|
640
|
+
poll_interval_min: z.number().int().min(1).max(1440).default(5),
|
|
641
|
+
/** High-score auto-wash into the shared pool. Default OFF. */
|
|
642
|
+
autowash_enabled: z.boolean().default(false),
|
|
643
|
+
/** Only auto-wash items with score ≥ this. */
|
|
644
|
+
autowash_min_score: z.number().int().min(0).max(100).default(80),
|
|
645
|
+
/** Skip x.com/twitter originals (no scrapeable full text). */
|
|
646
|
+
autowash_exclude_tweets: z.boolean().default(true),
|
|
647
|
+
autowash_format: z.enum(["short", "long", "both"]).default("short"),
|
|
648
|
+
/** Hard cap on drafts produced per auto-wash run. */
|
|
649
|
+
autowash_max_per_run: z.number().int().min(1).max(20).default(5),
|
|
650
|
+
/** LLM profile for auto-wash; null = global content profile. */
|
|
651
|
+
autowash_profile_id: z.string().nullable().default(null),
|
|
652
|
+
/** Last poll time (GET only, observability). */
|
|
653
|
+
last_polled_at: z.string().nullable().optional(),
|
|
654
|
+
});
|
|
655
|
+
export type AihotSettings = z.infer<typeof AihotSettingsSchema>;
|
|
656
|
+
|
|
657
|
+
export const AihotSettingsPatchSchema = z
|
|
658
|
+
.object({
|
|
659
|
+
poll_enabled: z.boolean().optional(),
|
|
660
|
+
poll_interval_min: z.number().int().min(1).max(1440).optional(),
|
|
661
|
+
autowash_enabled: z.boolean().optional(),
|
|
662
|
+
autowash_min_score: z.number().int().min(0).max(100).optional(),
|
|
663
|
+
autowash_exclude_tweets: z.boolean().optional(),
|
|
664
|
+
autowash_format: z.enum(["short", "long", "both"]).optional(),
|
|
665
|
+
autowash_max_per_run: z.number().int().min(1).max(20).optional(),
|
|
666
|
+
autowash_profile_id: z.string().nullable().optional(),
|
|
667
|
+
})
|
|
668
|
+
.refine((v) => Object.keys(v).length > 0, {
|
|
669
|
+
message: "patch body must contain at least one field",
|
|
670
|
+
});
|
|
671
|
+
export type AihotSettingsPatch = z.infer<typeof AihotSettingsPatchSchema>;
|
|
672
|
+
|
|
673
|
+
/** Broadcast row for the `ai_hot` topic — "new hot content" signal. */
|
|
674
|
+
export const AihotBroadcastRowSchema = z.object({
|
|
675
|
+
selected_changed: z.boolean(),
|
|
676
|
+
all_changed: z.boolean(),
|
|
677
|
+
at: z.string(),
|
|
678
|
+
});
|
|
679
|
+
export type AihotBroadcastRow = z.infer<typeof AihotBroadcastRowSchema>;
|
|
680
|
+
|
|
681
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
682
|
+
* Tweet interaction(蹭热度): worker 对某条 X 推文发有观点的评论 — 涨粉引流。
|
|
683
|
+
* kind='reply' 在原推底下评论(进它的 thread);
|
|
684
|
+
* kind='quote' 引用转推到自己时间线并 @原作者(进你粉丝的 feed)。
|
|
685
|
+
* 生成用 tweet 全文,每号不同角度+persona;派发复用错峰/风控/对账链路。
|
|
686
|
+
* ──────────────────────────────────────────────────────────────────────────── */
|
|
687
|
+
|
|
688
|
+
/** reply = comment under the tweet; quote = quote-tweet to your own timeline. */
|
|
689
|
+
export const InteractionKind = z.enum(["reply", "quote"]);
|
|
690
|
+
export type InteractionKind = z.infer<typeof InteractionKind>;
|
|
691
|
+
|
|
692
|
+
/** The X interactions a worker can do on one tweet, done in this order in one visit. */
|
|
693
|
+
export const InteractionAction = z.enum(["like", "repost", "reply", "quote", "follow"]);
|
|
694
|
+
export type InteractionAction = z.infer<typeof InteractionAction>;
|
|
695
|
+
|
|
696
|
+
/** Reply angles — assigned round-robin across workers (auto-diverse) or picked. */
|
|
697
|
+
export const ReplyAngle = z.enum([
|
|
698
|
+
"add_insight", // 补充洞见
|
|
699
|
+
"respectful_challenge", // 提出质疑
|
|
700
|
+
"data_point", // 补数据/案例
|
|
701
|
+
"ask_question", // 真诚反问
|
|
702
|
+
"personal_experience", // 分享经验
|
|
703
|
+
"alt_view", // 另一视角
|
|
704
|
+
"witty", // 玩梗/幽默
|
|
705
|
+
"agree_extend", // 认同并延伸
|
|
706
|
+
]);
|
|
707
|
+
export type ReplyAngle = z.infer<typeof ReplyAngle>;
|
|
708
|
+
|
|
709
|
+
/** STEP 1 — generate one per-worker reply (different angle each). */
|
|
710
|
+
export const GenerateRepliesBodySchema = z.object({
|
|
711
|
+
/** which interactions to perform (content is generated only if reply/quote present). */
|
|
712
|
+
actions: z.array(InteractionAction).min(1).default(["reply"]),
|
|
713
|
+
reply_to_url: z.string().url(),
|
|
714
|
+
/** Tweet full text (client already has it from oEmbed); server refetches if absent. */
|
|
715
|
+
tweet_text: z.string().max(6000).default(""),
|
|
716
|
+
tweet_author: z.string().max(120).default(""),
|
|
717
|
+
worker_ids: z.array(Uuid).default([]),
|
|
718
|
+
group_ids: z.array(Uuid).default([]),
|
|
719
|
+
/** auto = round-robin distinct angles; manual = use `angle` + `direction` for all. */
|
|
720
|
+
mode: z.enum(["auto", "manual"]).default("auto"),
|
|
721
|
+
angle: ReplyAngle.nullish(),
|
|
722
|
+
/** Free-form stance/direction the operator wants the replies to take. */
|
|
723
|
+
direction: z.string().max(600).default(""),
|
|
724
|
+
/** Reply language: "follow" = match the tweet; or an explicit code. */
|
|
725
|
+
lang: z.string().default("follow"),
|
|
726
|
+
llm_profile_id: z.string().uuid().nullish(),
|
|
727
|
+
});
|
|
728
|
+
export type GenerateRepliesBody = z.infer<typeof GenerateRepliesBodySchema>;
|
|
729
|
+
|
|
730
|
+
export const ReplyDraftItemSchema = z.object({
|
|
731
|
+
worker_id: z.string(),
|
|
732
|
+
worker_name: z.string().nullable().default(null),
|
|
733
|
+
handle: z.string(),
|
|
734
|
+
angle: ReplyAngle,
|
|
735
|
+
text: z.string(),
|
|
736
|
+
has_persona: z.boolean().default(false),
|
|
737
|
+
/** this worker already replied to this tweet (skip by default). */
|
|
738
|
+
already_replied: z.boolean().default(false),
|
|
739
|
+
});
|
|
740
|
+
export type ReplyDraftItem = z.infer<typeof ReplyDraftItemSchema>;
|
|
741
|
+
|
|
742
|
+
export const GenerateRepliesResultSchema = z.object({
|
|
743
|
+
items: z.array(ReplyDraftItemSchema),
|
|
744
|
+
});
|
|
745
|
+
export type GenerateRepliesResult = z.infer<typeof GenerateRepliesResultSchema>;
|
|
746
|
+
|
|
747
|
+
/** STEP 2 — approve + dispatch the (operator-edited) replies, staggered. */
|
|
748
|
+
export const ApproveReplyItemSchema = z.object({
|
|
749
|
+
worker_id: z.string(),
|
|
750
|
+
/** reply/quote comment text; empty for pure like/repost combos. */
|
|
751
|
+
text: z.string().max(280).default(""),
|
|
752
|
+
angle: ReplyAngle.nullish(),
|
|
753
|
+
});
|
|
754
|
+
export type ApproveReplyItem = z.infer<typeof ApproveReplyItemSchema>;
|
|
755
|
+
|
|
756
|
+
export const ApproveRepliesBodySchema = z.object({
|
|
757
|
+
actions: z.array(InteractionAction).min(1).default(["reply"]),
|
|
758
|
+
reply_to_url: z.string().url(),
|
|
759
|
+
items: z.array(ApproveReplyItemSchema).min(1).max(100), // sane hard bound
|
|
760
|
+
/** ⚡ Fast mode: skip pre-generation — the WORKER's agent composes the reply/quote
|
|
761
|
+
* at execution time (instant dispatch, no review). The fields below shape that
|
|
762
|
+
* on-worker composition (only read when fast_mode + reply/quote). */
|
|
763
|
+
fast_mode: z.boolean().default(false),
|
|
764
|
+
mode: z.enum(["auto", "manual"]).default("auto"),
|
|
765
|
+
angle: ReplyAngle.nullish(),
|
|
766
|
+
direction: z.string().max(600).default(""),
|
|
767
|
+
lang: z.string().default("follow"),
|
|
768
|
+
/** Dispatch window: spread evenly across this many seconds (0 = off). Mutually
|
|
769
|
+
* exclusive with random_delay_seconds — window wins if both set. */
|
|
770
|
+
dispatch_window_seconds: z.number().int().min(0).max(86400).default(1800),
|
|
771
|
+
/** Random delay: scatter each randomly within this many seconds (0 = off). */
|
|
772
|
+
random_delay_seconds: z.number().int().min(0).max(86400).default(0),
|
|
773
|
+
/** Post each at the next golden hour in its own timezone instead. */
|
|
774
|
+
per_account_timezone: z.boolean().default(false),
|
|
775
|
+
scheduled_at: z.string().datetime().nullable().optional(),
|
|
776
|
+
});
|
|
777
|
+
export type ApproveRepliesBody = z.infer<typeof ApproveRepliesBodySchema>;
|
|
778
|
+
|
|
779
|
+
export const ApproveRepliesResultSchema = z.object({
|
|
780
|
+
batch_id: z.string(),
|
|
781
|
+
dispatched: z.array(z.object({ worker_id: z.string(), task_run_id: z.string() })),
|
|
782
|
+
skipped_workers: z.array(z.string()).default([]),
|
|
783
|
+
/** Estimated dispatch window (ISO): first eligible → last eligible. */
|
|
784
|
+
eta_from: z.string().nullable().default(null),
|
|
785
|
+
eta_to: z.string().nullable().default(null),
|
|
786
|
+
});
|
|
787
|
+
export type ApproveRepliesResult = z.infer<typeof ApproveRepliesResultSchema>;
|
|
788
|
+
|
|
789
|
+
/** Preview the material text that WOULD be washed for one candidate (no LLM, no DB). */
|
|
790
|
+
export const AihotPreviewBodySchema = z.object({
|
|
791
|
+
url: z.string(),
|
|
792
|
+
title: z.string().default(""),
|
|
793
|
+
title_en: z.string().nullable().default(null),
|
|
794
|
+
summary: z.string().nullable().default(null),
|
|
795
|
+
});
|
|
796
|
+
export type AihotPreviewBody = z.infer<typeof AihotPreviewBodySchema>;
|
|
797
|
+
|
|
798
|
+
export const AihotPreviewResultSchema = z.object({
|
|
799
|
+
/** article = scraped third-party full text; tweet = full tweet text via oEmbed;
|
|
800
|
+
* fallback = AI HOT summary+title (unscrapeable); empty = nothing washable. */
|
|
801
|
+
mode: z.enum(["article", "tweet", "fallback", "empty"]),
|
|
802
|
+
/** total material chars available (text below may be truncated for display). */
|
|
803
|
+
chars: z.number().int(),
|
|
804
|
+
/** the material text (truncated for preview display). */
|
|
805
|
+
text: z.string(),
|
|
806
|
+
});
|
|
807
|
+
export type AihotPreviewResult = z.infer<typeof AihotPreviewResultSchema>;
|
|
@@ -41,6 +41,8 @@ export const TaskRunListItemSchema = z.object({
|
|
|
41
41
|
id: Uuid,
|
|
42
42
|
worker_id: Uuid,
|
|
43
43
|
worker_name: z.string(),
|
|
44
|
+
/** The worker's bound X (Twitter) handle (social_accounts.username, platform='x'). */
|
|
45
|
+
x_username: z.string().optional(),
|
|
44
46
|
task_name: z.string(),
|
|
45
47
|
scheduled_task_id: Uuid.optional(),
|
|
46
48
|
parent_adhoc_task_id: Uuid.optional(),
|
|
@@ -76,6 +78,8 @@ export const ScheduledTaskListItemSchema = z.object({
|
|
|
76
78
|
worker_id: Uuid,
|
|
77
79
|
worker_name: z.string(),
|
|
78
80
|
worker_status: z.string().optional(),
|
|
81
|
+
/** The worker's bound X (Twitter) handle (social_accounts.username, platform='x'). */
|
|
82
|
+
x_username: z.string().optional(),
|
|
79
83
|
name: z.string(),
|
|
80
84
|
cron: z.string(),
|
|
81
85
|
timezone: z.string().optional(),
|
|
@@ -157,6 +157,8 @@ export const SocialAccountBodySchema = z.object({
|
|
|
157
157
|
username: z.string().min(1).max(120).optional(),
|
|
158
158
|
email: z.string().email().optional(),
|
|
159
159
|
password: z.string().min(1).optional(),
|
|
160
|
+
/** 2FA/TOTP secret or backup codes — record-only, never used for login. */
|
|
161
|
+
totp_secret: z.string().max(2000).nullable().optional(),
|
|
160
162
|
/** Omit / null → inherit identity persona. */
|
|
161
163
|
persona_text: z.string().max(4000).nullable().optional(),
|
|
162
164
|
persona_other_json: z.record(z.string(), z.unknown()).optional(),
|
|
@@ -171,6 +173,7 @@ export const SocialAccountPatchSchema = z
|
|
|
171
173
|
username: z.string().min(1).max(120).nullable().optional(),
|
|
172
174
|
email: z.string().email().nullable().optional(),
|
|
173
175
|
password: z.string().min(1).nullable().optional(),
|
|
176
|
+
totp_secret: z.string().max(2000).nullable().optional(),
|
|
174
177
|
persona_text: z.string().max(4000).nullable().optional(),
|
|
175
178
|
persona_other_json: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
176
179
|
enabled: z.boolean().optional(),
|
|
@@ -189,6 +192,7 @@ export const SocialAccountResponseSchema = z.object({
|
|
|
189
192
|
username: z.string().nullable(),
|
|
190
193
|
email: z.string().nullable(),
|
|
191
194
|
password: z.string().nullable(),
|
|
195
|
+
totp_secret: z.string().nullable(),
|
|
192
196
|
persona_text: z.string().nullable(),
|
|
193
197
|
persona_other_json: z.record(z.string(), z.unknown()).optional(),
|
|
194
198
|
enabled: z.boolean(),
|
|
@@ -436,3 +436,60 @@ export const CenterWebChatWsMessage = z.discriminatedUnion("type", [
|
|
|
436
436
|
ChatBroadcastFinalizedMessage,
|
|
437
437
|
]);
|
|
438
438
|
export type CenterWebChatWsMessage = z.infer<typeof CenterWebChatWsMessage>;
|
|
439
|
+
|
|
440
|
+
/* ============================================================================
|
|
441
|
+
* center ↔ dp-cloak (desktop fingerprint browser, cs mode)
|
|
442
|
+
*
|
|
443
|
+
* dp-cloak connects to /ws/cloak?token=<user_jwt> so center can push
|
|
444
|
+
* revocations in real time. The channel carries no session bytes (those go over
|
|
445
|
+
* the encrypted REST pull); it exists to instantly wipe local sessions when the
|
|
446
|
+
* account is disabled/deleted or a specific worker session is revoked.
|
|
447
|
+
* ============================================================================ */
|
|
448
|
+
|
|
449
|
+
/** Sent by dp-cloak right after the WS upgrade so center knows the instance. */
|
|
450
|
+
export const CloakHelloMessage = Envelope(
|
|
451
|
+
"hello",
|
|
452
|
+
z.object({
|
|
453
|
+
/** Per-process uuid identifying this dp-cloak instance. */
|
|
454
|
+
instance_id: Uuid,
|
|
455
|
+
version: z.string().min(1),
|
|
456
|
+
})
|
|
457
|
+
);
|
|
458
|
+
|
|
459
|
+
/** Periodic liveness ping from dp-cloak. Empty payload — arrival is the signal. */
|
|
460
|
+
export const CloakHeartbeatMessage = Envelope("cloak_heartbeat", z.object({}));
|
|
461
|
+
|
|
462
|
+
/** center → dp-cloak: wipe the local session/profile for this worker. */
|
|
463
|
+
export const CloakSessionRevokeMessage = Envelope(
|
|
464
|
+
"session_revoke",
|
|
465
|
+
z.object({
|
|
466
|
+
worker_id: Uuid,
|
|
467
|
+
reason: z.string().optional(),
|
|
468
|
+
})
|
|
469
|
+
);
|
|
470
|
+
|
|
471
|
+
/** center → dp-cloak: account disabled/deleted — wipe ALL sessions and log out. */
|
|
472
|
+
export const CloakAccountDisabledMessage = Envelope(
|
|
473
|
+
"account_disabled",
|
|
474
|
+
z.object({
|
|
475
|
+
reason: z.string().optional(),
|
|
476
|
+
})
|
|
477
|
+
);
|
|
478
|
+
|
|
479
|
+
export type CloakHelloPayload = z.infer<typeof CloakHelloMessage>["payload"];
|
|
480
|
+
export type CloakSessionRevokePayload = z.infer<typeof CloakSessionRevokeMessage>["payload"];
|
|
481
|
+
export type CloakAccountDisabledPayload = z.infer<typeof CloakAccountDisabledMessage>["payload"];
|
|
482
|
+
|
|
483
|
+
/** Union of every message that may travel on a center↔dp-cloak WebSocket. */
|
|
484
|
+
export const CenterCloakWsMessage = z.discriminatedUnion("type", [
|
|
485
|
+
AckMessage,
|
|
486
|
+
PingRequestMessage,
|
|
487
|
+
PongMessage,
|
|
488
|
+
// center → dp-cloak
|
|
489
|
+
CloakSessionRevokeMessage,
|
|
490
|
+
CloakAccountDisabledMessage,
|
|
491
|
+
// dp-cloak → center
|
|
492
|
+
CloakHelloMessage,
|
|
493
|
+
CloakHeartbeatMessage,
|
|
494
|
+
]);
|
|
495
|
+
export type CenterCloakWsMessage = z.infer<typeof CenterCloakWsMessage>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Colin McDonnell
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="logo.svg" width="200px" align="center" alt="Zod logo" />
|
|
3
|
+
<h1 align="center">Zod</h1>
|
|
4
|
+
<p align="center">
|
|
5
|
+
TypeScript-first schema validation with static type inference
|
|
6
|
+
<br/>
|
|
7
|
+
by <a href="https://x.com/colinhacks">@colinhacks</a>
|
|
8
|
+
</p>
|
|
9
|
+
</p>
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://github.com/colinhacks/zod/actions?query=branch%3Amain"><img src="https://github.com/colinhacks/zod/actions/workflows/test.yml/badge.svg?event=push&branch=main" alt="Zod CI status" /></a>
|
|
14
|
+
<a href="https://opensource.org/licenses/MIT" rel="nofollow"><img src="https://img.shields.io/github/license/colinhacks/zod" alt="License"></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/zod" rel="nofollow"><img src="https://img.shields.io/npm/dw/zod.svg" alt="npm"></a>
|
|
16
|
+
<a href="https://discord.gg/KaSRdyX2vc" rel="nofollow"><img src="https://img.shields.io/discord/893487829802418277?label=Discord&logo=discord&logoColor=white" alt="discord server"></a>
|
|
17
|
+
<a href="https://github.com/colinhacks/zod" rel="nofollow"><img src="https://img.shields.io/github/stars/colinhacks/zod" alt="stars"></a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<div align="center">
|
|
21
|
+
<a href="https://zod.dev/api">Docs</a>
|
|
22
|
+
<span> • </span>
|
|
23
|
+
<a href="https://discord.gg/RcG33DQJdf">Discord</a>
|
|
24
|
+
<span> • </span>
|
|
25
|
+
<a href="https://twitter.com/colinhacks">𝕏</a>
|
|
26
|
+
<span> • </span>
|
|
27
|
+
<a href="https://bsky.app/profile/zod.dev">Bluesky</a>
|
|
28
|
+
<br />
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<br/>
|
|
32
|
+
<br/>
|
|
33
|
+
|
|
34
|
+
### [Read the docs →](https://zod.dev/api)
|
|
35
|
+
|
|
36
|
+
<br/>
|
|
37
|
+
<br/>
|
|
38
|
+
|
|
39
|
+
## What is Zod?
|
|
40
|
+
|
|
41
|
+
Zod is a TypeScript-first validation library. Define a schema and parse some data with it. You'll get back a strongly typed, validated result.
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import * as z from "zod";
|
|
45
|
+
|
|
46
|
+
const User = z.object({
|
|
47
|
+
name: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// some untrusted data...
|
|
51
|
+
const input = {
|
|
52
|
+
/* stuff */
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// the parsed result is validated and type safe!
|
|
56
|
+
const data = User.parse(input);
|
|
57
|
+
|
|
58
|
+
// so you can use it with confidence :)
|
|
59
|
+
console.log(data.name);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
<br/>
|
|
63
|
+
|
|
64
|
+
## Features
|
|
65
|
+
|
|
66
|
+
- Zero external dependencies
|
|
67
|
+
- Works in Node.js and all modern browsers
|
|
68
|
+
- Tiny: `2kb` core bundle (gzipped)
|
|
69
|
+
- Immutable API: methods return a new instance
|
|
70
|
+
- Concise interface
|
|
71
|
+
- Works with TypeScript and plain JS
|
|
72
|
+
- Built-in JSON Schema conversion
|
|
73
|
+
- Extensive ecosystem
|
|
74
|
+
|
|
75
|
+
<br/>
|
|
76
|
+
|
|
77
|
+
## Installation
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npm install zod
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<br/>
|
|
84
|
+
|
|
85
|
+
## Basic usage
|
|
86
|
+
|
|
87
|
+
Before you can do anything else, you need to define a schema. For the purposes of this guide, we'll use a simple object schema.
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
import * as z from "zod";
|
|
91
|
+
|
|
92
|
+
const Player = z.object({
|
|
93
|
+
username: z.string(),
|
|
94
|
+
xp: z.number(),
|
|
95
|
+
});
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parsing data
|
|
99
|
+
|
|
100
|
+
Given any Zod schema, use `.parse` to validate an input. If it's valid, Zod returns a strongly-typed _deep clone_ of the input.
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
Player.parse({ username: "billie", xp: 100 });
|
|
104
|
+
// => returns { username: "billie", xp: 100 }
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](https://zod.dev/api#refinements) or [transforms](https://zod.dev/api#transforms), you'll need to use the `.parseAsync()` method instead.
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
const schema = z.string().refine(async (val) => val.length <= 8);
|
|
111
|
+
|
|
112
|
+
await schema.parseAsync("hello");
|
|
113
|
+
// => "hello"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Handling errors
|
|
117
|
+
|
|
118
|
+
When validation fails, the `.parse()` method will throw a `ZodError` instance with granular information about the validation issues.
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
try {
|
|
122
|
+
Player.parse({ username: 42, xp: "100" });
|
|
123
|
+
} catch (err) {
|
|
124
|
+
if (err instanceof z.ZodError) {
|
|
125
|
+
err.issues;
|
|
126
|
+
/* [
|
|
127
|
+
{
|
|
128
|
+
expected: 'string',
|
|
129
|
+
code: 'invalid_type',
|
|
130
|
+
path: [ 'username' ],
|
|
131
|
+
message: 'Invalid input: expected string'
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
expected: 'number',
|
|
135
|
+
code: 'invalid_type',
|
|
136
|
+
path: [ 'xp' ],
|
|
137
|
+
message: 'Invalid input: expected number'
|
|
138
|
+
}
|
|
139
|
+
] */
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
To avoid a `try/catch` block, you can use the `.safeParse()` method to get back a plain result object containing either the successfully parsed data or a `ZodError`. The result type is a [discriminated union](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions), so you can handle both cases conveniently.
|
|
145
|
+
|
|
146
|
+
```ts
|
|
147
|
+
const result = Player.safeParse({ username: 42, xp: "100" });
|
|
148
|
+
if (!result.success) {
|
|
149
|
+
result.error; // ZodError instance
|
|
150
|
+
} else {
|
|
151
|
+
result.data; // { username: string; xp: number }
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](https://zod.dev/api#refinements) or [transforms](https://zod.dev/api#transforms), you'll need to use the `.safeParseAsync()` method instead.
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
const schema = z.string().refine(async (val) => val.length <= 8);
|
|
159
|
+
|
|
160
|
+
await schema.safeParseAsync("hello");
|
|
161
|
+
// => { success: true; data: "hello" }
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Inferring types
|
|
165
|
+
|
|
166
|
+
Zod infers a static type from your schema definitions. You can extract this type with the `z.infer<>` utility and use it however you like.
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
const Player = z.object({
|
|
170
|
+
username: z.string(),
|
|
171
|
+
xp: z.number(),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
// extract the inferred type
|
|
175
|
+
type Player = z.infer<typeof Player>;
|
|
176
|
+
|
|
177
|
+
// use it in your code
|
|
178
|
+
const player: Player = { username: "billie", xp: 100 };
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
In some cases, the input & output types of a schema can diverge. For instance, the `.transform()` API can convert the input from one type to another. In these cases, you can extract the input and output types independently:
|
|
182
|
+
|
|
183
|
+
```ts
|
|
184
|
+
const mySchema = z.string().transform((val) => val.length);
|
|
185
|
+
|
|
186
|
+
type MySchemaIn = z.input<typeof mySchema>;
|
|
187
|
+
// => string
|
|
188
|
+
|
|
189
|
+
type MySchemaOut = z.output<typeof mySchema>; // equivalent to z.infer<typeof mySchema>
|
|
190
|
+
// number
|
|
191
|
+
```
|