dp-worker 0.1.12 → 0.1.13
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/center/center-client.d.ts +4 -0
- package/dist/center/center-client.js +44 -0
- package/dist/center/center-client.js.map +1 -1
- package/dist/chrome-extension/omni-flow/manifest.json +1 -1
- package/node_modules/dp-shared/dist/post-drafts-contracts.d.ts +100 -1
- package/node_modules/dp-shared/dist/post-drafts-contracts.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/post-drafts-contracts.js +70 -7
- package/node_modules/dp-shared/dist/post-drafts-contracts.js.map +1 -1
- package/node_modules/dp-shared/src/post-drafts-contracts.ts +88 -15
- 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
|
@@ -70,6 +70,8 @@ export interface CenterClientOpts extends CenterConfigOpts {
|
|
|
70
70
|
workerKey: string;
|
|
71
71
|
/** Override how long send() waits for an ack before rejecting. */
|
|
72
72
|
ackTimeoutMs?: number;
|
|
73
|
+
/** How long a websocket handshake may stay CONNECTING before being replaced. */
|
|
74
|
+
connectTimeoutMs?: number;
|
|
73
75
|
/** Initial/maximum WS reconnect delays. */
|
|
74
76
|
reconnectMinMs?: number;
|
|
75
77
|
reconnectMaxMs?: number;
|
|
@@ -84,6 +86,7 @@ export declare class CenterClient extends EventEmitter {
|
|
|
84
86
|
private readonly wsFactory;
|
|
85
87
|
private readonly logger;
|
|
86
88
|
private readonly ackTimeoutMs;
|
|
89
|
+
private readonly connectTimeoutMs;
|
|
87
90
|
private readonly reconnectMinMs;
|
|
88
91
|
private readonly reconnectMaxMs;
|
|
89
92
|
private ws;
|
|
@@ -105,6 +108,7 @@ export declare class CenterClient extends EventEmitter {
|
|
|
105
108
|
/** Open the WS and resolve only after the center accepts the connection lease. */
|
|
106
109
|
connectAndWait(timeoutMs?: number): Promise<void>;
|
|
107
110
|
private openSocket;
|
|
111
|
+
private destroySocket;
|
|
108
112
|
private scheduleReconnect;
|
|
109
113
|
private installUnexpectedResponseHandler;
|
|
110
114
|
private handleIncoming;
|
|
@@ -13,6 +13,7 @@ export class DuplicateWorkerConnectionError extends Error {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
const DEFAULT_ACK_TIMEOUT = 30_000;
|
|
16
|
+
const DEFAULT_CONNECT_TIMEOUT = 30_000;
|
|
16
17
|
const DEFAULT_RECONNECT_MIN = 1_000;
|
|
17
18
|
const DEFAULT_RECONNECT_MAX = 60_000;
|
|
18
19
|
export class CenterClient extends EventEmitter {
|
|
@@ -25,6 +26,7 @@ export class CenterClient extends EventEmitter {
|
|
|
25
26
|
wsFactory;
|
|
26
27
|
logger;
|
|
27
28
|
ackTimeoutMs;
|
|
29
|
+
connectTimeoutMs;
|
|
28
30
|
reconnectMinMs;
|
|
29
31
|
reconnectMaxMs;
|
|
30
32
|
ws = null;
|
|
@@ -51,6 +53,7 @@ export class CenterClient extends EventEmitter {
|
|
|
51
53
|
error: (m) => console.error(m),
|
|
52
54
|
};
|
|
53
55
|
this.ackTimeoutMs = opts.ackTimeoutMs ?? DEFAULT_ACK_TIMEOUT;
|
|
56
|
+
this.connectTimeoutMs = opts.connectTimeoutMs ?? DEFAULT_CONNECT_TIMEOUT;
|
|
54
57
|
this.reconnectMinMs = opts.reconnectMinMs ?? DEFAULT_RECONNECT_MIN;
|
|
55
58
|
this.reconnectMaxMs = opts.reconnectMaxMs ?? DEFAULT_RECONNECT_MAX;
|
|
56
59
|
}
|
|
@@ -137,7 +140,31 @@ export class CenterClient extends EventEmitter {
|
|
|
137
140
|
}
|
|
138
141
|
this.ws = ws;
|
|
139
142
|
this.installUnexpectedResponseHandler(ws);
|
|
143
|
+
let connectTimer = setTimeout(() => {
|
|
144
|
+
connectTimer = null;
|
|
145
|
+
if (this.shuttingDown || this.ws !== ws)
|
|
146
|
+
return;
|
|
147
|
+
this.logger.warn(`CenterClient socket connect timed out after ${this.connectTimeoutMs}ms`);
|
|
148
|
+
this.ws = null;
|
|
149
|
+
this.failAllPendingAcks(new Error("socket connect timeout before ack"));
|
|
150
|
+
this.destroySocket(ws);
|
|
151
|
+
this.emit("close", {
|
|
152
|
+
code: 0,
|
|
153
|
+
reason: "connect_timeout",
|
|
154
|
+
wasClean: false,
|
|
155
|
+
});
|
|
156
|
+
this.scheduleReconnect();
|
|
157
|
+
}, this.connectTimeoutMs);
|
|
158
|
+
const clearConnectTimer = () => {
|
|
159
|
+
if (!connectTimer)
|
|
160
|
+
return;
|
|
161
|
+
clearTimeout(connectTimer);
|
|
162
|
+
connectTimer = null;
|
|
163
|
+
};
|
|
140
164
|
ws.addEventListener("open", () => {
|
|
165
|
+
clearConnectTimer();
|
|
166
|
+
if (this.ws !== ws)
|
|
167
|
+
return;
|
|
141
168
|
this.reconnectAttempt = 0;
|
|
142
169
|
this.logger.info(`CenterClient socket open`);
|
|
143
170
|
this.emit("open");
|
|
@@ -149,6 +176,9 @@ export class CenterClient extends EventEmitter {
|
|
|
149
176
|
this.handleIncoming(typeof data === "string" ? data : String(data));
|
|
150
177
|
});
|
|
151
178
|
ws.addEventListener("close", (event) => {
|
|
179
|
+
clearConnectTimer();
|
|
180
|
+
if (this.ws !== ws)
|
|
181
|
+
return;
|
|
152
182
|
const e = event;
|
|
153
183
|
this.logger.warn(`CenterClient socket closed code=${e.code ?? "?"} reason=${e.reason ?? ""}`);
|
|
154
184
|
this.ws = null;
|
|
@@ -167,6 +197,20 @@ export class CenterClient extends EventEmitter {
|
|
|
167
197
|
this.emitError(err);
|
|
168
198
|
});
|
|
169
199
|
}
|
|
200
|
+
destroySocket(ws) {
|
|
201
|
+
const maybeNodeWs = ws;
|
|
202
|
+
try {
|
|
203
|
+
if (typeof maybeNodeWs.terminate === "function") {
|
|
204
|
+
maybeNodeWs.terminate();
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
ws.close(1000, "connect timeout");
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
catch {
|
|
211
|
+
// Best effort: the important part is forgetting this half-open socket.
|
|
212
|
+
}
|
|
213
|
+
}
|
|
170
214
|
scheduleReconnect() {
|
|
171
215
|
if (this.shuttingDown)
|
|
172
216
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"center-client.js","sourceRoot":"","sources":["../../src/center/center-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,aAAa,MAAM,IAAI,CAAC;AAE/B,OAAO,EACL,qBAAqB,EACrB,6BAA6B,GAE9B,MAAM,WAAW,CAAC;AAiBnB,OAAO,EACL,yBAAyB,GAI1B,MAAM,4BAA4B,CAAC;AAuCpC,MAAM,OAAO,8BAA+B,SAAQ,KAAK;IAC9C,IAAI,GAAG,0BAA0B,CAAC;IAClC,MAAM,CAAS;IAExB,YAAY,MAAc,EAAE,IAAY;QACtC,KAAK,CACH,sCAAsC,MAAM,4BAC1C,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,CACH,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AA2BD,MA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AAG,IAAI,CAAC,SAAS;aACxB,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC;aAChC,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAClC,OAAO,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAEO,KAAK,CAAC,IAAY,EAAE,KAA6B;QACvD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS;aACxB,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC;aAChC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAClC,MAAM,EAAE,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -100,9 +100,14 @@ export declare const PostDraftResponseSchema: z.ZodObject<{
|
|
|
100
100
|
url: "url";
|
|
101
101
|
sourcepool: "sourcepool";
|
|
102
102
|
composed: "composed";
|
|
103
|
+
autofetch: "autofetch";
|
|
104
|
+
claimed: "claimed";
|
|
105
|
+
translated: "translated";
|
|
103
106
|
}>>;
|
|
104
107
|
author_user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
105
108
|
author_email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
source_published_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
append_source_link: z.ZodDefault<z.ZodBoolean>;
|
|
106
111
|
created_at: z.ZodString;
|
|
107
112
|
updated_at: z.ZodString;
|
|
108
113
|
}, z.core.$strip>;
|
|
@@ -118,19 +123,22 @@ export declare const PostDraftPatchSchema: z.ZodObject<{
|
|
|
118
123
|
rejected: "rejected";
|
|
119
124
|
posted: "posted";
|
|
120
125
|
}>>;
|
|
126
|
+
append_source_link: z.ZodOptional<z.ZodBoolean>;
|
|
121
127
|
}, z.core.$strip>;
|
|
122
128
|
export type PostDraftPatch = z.infer<typeof PostDraftPatchSchema>;
|
|
123
129
|
/** Trigger a rewrite batch: pull sourcepool candidates → AI draft top-N. */
|
|
124
130
|
export declare const GenerateBatchBodySchema: z.ZodObject<{
|
|
125
131
|
topics: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
126
132
|
within: z.ZodDefault<z.ZodString>;
|
|
127
|
-
|
|
133
|
+
topic_limit: z.ZodDefault<z.ZodNumber>;
|
|
134
|
+
hot_limit: z.ZodDefault<z.ZodNumber>;
|
|
128
135
|
format: z.ZodDefault<z.ZodEnum<{
|
|
129
136
|
short: "short";
|
|
130
137
|
long: "long";
|
|
131
138
|
both: "both";
|
|
132
139
|
}>>;
|
|
133
140
|
pick_best: z.ZodDefault<z.ZodBoolean>;
|
|
141
|
+
auto_polish: z.ZodDefault<z.ZodBoolean>;
|
|
134
142
|
}, z.core.$strip>;
|
|
135
143
|
export type GenerateBatchBody = z.infer<typeof GenerateBatchBodySchema>;
|
|
136
144
|
/** Wash a draft from a pasted article URL (same rewrite+judge pipeline). */
|
|
@@ -147,6 +155,9 @@ export declare const GenerateBatchResultSchema: z.ZodObject<{
|
|
|
147
155
|
generated: z.ZodNumber;
|
|
148
156
|
skipped_existing: z.ZodNumber;
|
|
149
157
|
scanned: z.ZodNumber;
|
|
158
|
+
eligible: z.ZodDefault<z.ZodNumber>;
|
|
159
|
+
selected: z.ZodDefault<z.ZodNumber>;
|
|
160
|
+
winning_source_item_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
150
161
|
}, z.core.$strip>;
|
|
151
162
|
export type GenerateBatchResult = z.infer<typeof GenerateBatchResultSchema>;
|
|
152
163
|
/**
|
|
@@ -224,12 +235,16 @@ export declare const AssistStructure: z.ZodEnum<{
|
|
|
224
235
|
export type AssistStructure = z.infer<typeof AssistStructure>;
|
|
225
236
|
export declare const AssistHookStyle: z.ZodEnum<{
|
|
226
237
|
number: "number";
|
|
238
|
+
identity: "identity";
|
|
227
239
|
hookier: "hookier";
|
|
228
240
|
question: "question";
|
|
229
241
|
suspense: "suspense";
|
|
230
242
|
contrarian: "contrarian";
|
|
243
|
+
timely: "timely";
|
|
231
244
|
aphorism: "aphorism";
|
|
232
245
|
value_prop: "value_prop";
|
|
246
|
+
discovery: "discovery";
|
|
247
|
+
uncomfortable: "uncomfortable";
|
|
233
248
|
}>;
|
|
234
249
|
export type AssistHookStyle = z.infer<typeof AssistHookStyle>;
|
|
235
250
|
export declare const AssistTone: z.ZodEnum<{
|
|
@@ -262,12 +277,16 @@ export declare const AssistBodySchema: z.ZodObject<{
|
|
|
262
277
|
}>>>;
|
|
263
278
|
hookStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
264
279
|
number: "number";
|
|
280
|
+
identity: "identity";
|
|
265
281
|
hookier: "hookier";
|
|
266
282
|
question: "question";
|
|
267
283
|
suspense: "suspense";
|
|
268
284
|
contrarian: "contrarian";
|
|
285
|
+
timely: "timely";
|
|
269
286
|
aphorism: "aphorism";
|
|
270
287
|
value_prop: "value_prop";
|
|
288
|
+
discovery: "discovery";
|
|
289
|
+
uncomfortable: "uncomfortable";
|
|
271
290
|
}>>>;
|
|
272
291
|
tone: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
273
292
|
casual: "casual";
|
|
@@ -302,22 +321,36 @@ export declare const ComposeBodySchema: z.ZodObject<{
|
|
|
302
321
|
}>>;
|
|
303
322
|
hook_style: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
304
323
|
number: "number";
|
|
324
|
+
identity: "identity";
|
|
305
325
|
hookier: "hookier";
|
|
306
326
|
question: "question";
|
|
307
327
|
suspense: "suspense";
|
|
308
328
|
contrarian: "contrarian";
|
|
329
|
+
timely: "timely";
|
|
309
330
|
aphorism: "aphorism";
|
|
310
331
|
value_prop: "value_prop";
|
|
332
|
+
discovery: "discovery";
|
|
333
|
+
uncomfortable: "uncomfortable";
|
|
311
334
|
}>>>;
|
|
312
335
|
target_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
313
336
|
pick_best: z.ZodDefault<z.ZodBoolean>;
|
|
314
337
|
auto_polish: z.ZodDefault<z.ZodBoolean>;
|
|
338
|
+
replicate: z.ZodDefault<z.ZodBoolean>;
|
|
315
339
|
}, z.core.$strip>;
|
|
316
340
|
export type ComposeBody = z.infer<typeof ComposeBodySchema>;
|
|
317
341
|
export declare const ComposeResultSchema: z.ZodObject<{
|
|
318
342
|
generated: z.ZodNumber;
|
|
319
343
|
}, z.core.$strip>;
|
|
320
344
|
export type ComposeResult = z.infer<typeof ComposeResultSchema>;
|
|
345
|
+
/** 选题灵感 — generate one-line post ideas from a seed to feed into AI 创作. */
|
|
346
|
+
export declare const TopicIdeasBodySchema: z.ZodObject<{
|
|
347
|
+
seed: z.ZodDefault<z.ZodString>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export type TopicIdeasBody = z.infer<typeof TopicIdeasBodySchema>;
|
|
350
|
+
export declare const TopicIdeasResultSchema: z.ZodObject<{
|
|
351
|
+
ideas: z.ZodArray<z.ZodString>;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
export type TopicIdeasResult = z.infer<typeof TopicIdeasResultSchema>;
|
|
321
354
|
/**
|
|
322
355
|
* "换一版" — regenerate a draft's copy (fresh angle) through the quality core,
|
|
323
356
|
* re-score it, and either replace the draft in place or save a sibling (A/B).
|
|
@@ -326,6 +359,39 @@ export declare const RegenerateBodySchema: z.ZodObject<{
|
|
|
326
359
|
keep_original: z.ZodDefault<z.ZodBoolean>;
|
|
327
360
|
}, z.core.$strip>;
|
|
328
361
|
export type RegenerateBody = z.infer<typeof RegenerateBodySchema>;
|
|
362
|
+
/** Supported translation targets (mainstream languages). */
|
|
363
|
+
export declare const TranslateLang: z.ZodEnum<{
|
|
364
|
+
id: "id";
|
|
365
|
+
ko: "ko";
|
|
366
|
+
ja: "ja";
|
|
367
|
+
zh: "zh";
|
|
368
|
+
es: "es";
|
|
369
|
+
fr: "fr";
|
|
370
|
+
de: "de";
|
|
371
|
+
pt: "pt";
|
|
372
|
+
ar: "ar";
|
|
373
|
+
vi: "vi";
|
|
374
|
+
th: "th";
|
|
375
|
+
ru: "ru";
|
|
376
|
+
}>;
|
|
377
|
+
export type TranslateLang = z.infer<typeof TranslateLang>;
|
|
378
|
+
export declare const TranslateBodySchema: z.ZodObject<{
|
|
379
|
+
lang: z.ZodEnum<{
|
|
380
|
+
id: "id";
|
|
381
|
+
ko: "ko";
|
|
382
|
+
ja: "ja";
|
|
383
|
+
zh: "zh";
|
|
384
|
+
es: "es";
|
|
385
|
+
fr: "fr";
|
|
386
|
+
de: "de";
|
|
387
|
+
pt: "pt";
|
|
388
|
+
ar: "ar";
|
|
389
|
+
vi: "vi";
|
|
390
|
+
th: "th";
|
|
391
|
+
ru: "ru";
|
|
392
|
+
}>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
export type TranslateBody = z.infer<typeof TranslateBodySchema>;
|
|
329
395
|
export declare const RegenerateResultSchema: z.ZodObject<{
|
|
330
396
|
draft_id: z.ZodString;
|
|
331
397
|
replaced: z.ZodBoolean;
|
|
@@ -352,6 +418,8 @@ export declare const AutofetchSettingsSchema: z.ZodObject<{
|
|
|
352
418
|
enabled: z.ZodBoolean;
|
|
353
419
|
topics: z.ZodArray<z.ZodString>;
|
|
354
420
|
fetch_limit: z.ZodNumber;
|
|
421
|
+
topic_fetch_limit: z.ZodDefault<z.ZodNumber>;
|
|
422
|
+
hot_fetch_limit: z.ZodDefault<z.ZodNumber>;
|
|
355
423
|
within: z.ZodString;
|
|
356
424
|
format: z.ZodDefault<z.ZodEnum<{
|
|
357
425
|
short: "short";
|
|
@@ -364,6 +432,8 @@ export declare const AutofetchSettingsSchema: z.ZodObject<{
|
|
|
364
432
|
pending_cap: z.ZodNumber;
|
|
365
433
|
cleanup_preset: z.ZodString;
|
|
366
434
|
llm_profile_id: z.ZodNullable<z.ZodString>;
|
|
435
|
+
pick_best: z.ZodDefault<z.ZodBoolean>;
|
|
436
|
+
auto_polish: z.ZodDefault<z.ZodBoolean>;
|
|
367
437
|
effective_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
438
|
}, z.core.$strip>;
|
|
369
439
|
export type AutofetchSettings = z.infer<typeof AutofetchSettingsSchema>;
|
|
@@ -371,6 +441,8 @@ export declare const AutofetchPatchSchema: z.ZodObject<{
|
|
|
371
441
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
372
442
|
topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
373
443
|
fetch_limit: z.ZodOptional<z.ZodNumber>;
|
|
444
|
+
topic_fetch_limit: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
hot_fetch_limit: z.ZodOptional<z.ZodNumber>;
|
|
374
446
|
within: z.ZodOptional<z.ZodString>;
|
|
375
447
|
format: z.ZodOptional<z.ZodEnum<{
|
|
376
448
|
short: "short";
|
|
@@ -383,8 +455,35 @@ export declare const AutofetchPatchSchema: z.ZodObject<{
|
|
|
383
455
|
pending_cap: z.ZodOptional<z.ZodNumber>;
|
|
384
456
|
cleanup_preset: z.ZodOptional<z.ZodString>;
|
|
385
457
|
llm_profile_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
458
|
+
pick_best: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
auto_polish: z.ZodOptional<z.ZodBoolean>;
|
|
386
460
|
}, z.core.$strip>;
|
|
387
461
|
export type AutofetchPatch = z.infer<typeof AutofetchPatchSchema>;
|
|
462
|
+
/** One autofetch cron run — the audit trail: 抓取→评分→选中→洗出. */
|
|
463
|
+
export declare const AutofetchRunSchema: z.ZodObject<{
|
|
464
|
+
id: z.ZodNumber;
|
|
465
|
+
ran_at: z.ZodString;
|
|
466
|
+
scanned: z.ZodNumber;
|
|
467
|
+
eligible: z.ZodNumber;
|
|
468
|
+
selected: z.ZodNumber;
|
|
469
|
+
generated: z.ZodNumber;
|
|
470
|
+
source_item_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
471
|
+
window_h: z.ZodNumber;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
export type AutofetchRun = z.infer<typeof AutofetchRunSchema>;
|
|
474
|
+
export declare const AutofetchRunsResponseSchema: z.ZodObject<{
|
|
475
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
476
|
+
id: z.ZodNumber;
|
|
477
|
+
ran_at: z.ZodString;
|
|
478
|
+
scanned: z.ZodNumber;
|
|
479
|
+
eligible: z.ZodNumber;
|
|
480
|
+
selected: z.ZodNumber;
|
|
481
|
+
generated: z.ZodNumber;
|
|
482
|
+
source_item_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
483
|
+
window_h: z.ZodNumber;
|
|
484
|
+
}, z.core.$strip>>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
export type AutofetchRunsResponse = z.infer<typeof AutofetchRunsResponseSchema>;
|
|
388
487
|
/** One "已发往" ledger entry for the draft detail side panel. */
|
|
389
488
|
export declare const PostDispatchLogEntrySchema: z.ZodObject<{
|
|
390
489
|
account_id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-drafts-contracts.d.ts","sourceRoot":"","sources":["../src/post-drafts-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;;;;;;GASG;AAEH,eAAO,MAAM,eAAe;;;;;EAK1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,+EAA+E;AAC/E,eAAO,MAAM,YAAY;;;;iBAIvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,yDAAyD;AACzD,eAAO,MAAM,cAAc;;;;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,QAAQ,GA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= z.object({
|
|
|
77
77
|
media_cleaned: z.boolean().default(false),
|
|
78
78
|
status: PostDraftStatus,
|
|
79
79
|
posted_task_run_id: z.string().nullable(),
|
|
80
|
-
/** How the draft was produced: sourcepool wash, pasted-url wash,
|
|
81
|
-
|
|
80
|
+
/** How the draft was produced: manual sourcepool wash, pasted-url wash, AI 创作,
|
|
81
|
+
* shared autofetch (cron) pool, a personal copy claimed from that pool, or a
|
|
82
|
+
* language-translated copy of one of the operator's own drafts. */
|
|
83
|
+
origin: z.enum(["sourcepool", "url", "composed", "autofetch", "claimed", "translated"]).default("sourcepool"),
|
|
82
84
|
/** Operator who authored a 'composed' draft (null = system-washed). */
|
|
83
85
|
author_user_id: z.string().nullable().default(null),
|
|
84
86
|
/** Denormalized login email of the author, for the board's 作者 filter/badge. */
|
|
85
87
|
author_email: z.string().nullable().default(null),
|
|
88
|
+
/** Original article publish time (ISO), if the source provided it. */
|
|
89
|
+
source_published_at: z.string().nullable().default(null),
|
|
90
|
+
/** Append the source link to the post at dispatch (default true). false = omit it. */
|
|
91
|
+
append_source_link: z.boolean().default(true),
|
|
86
92
|
created_at: z.string(),
|
|
87
93
|
updated_at: z.string(),
|
|
88
94
|
});
|
|
@@ -93,22 +99,32 @@ export const PostDraftPatchSchema = z
|
|
|
93
99
|
body: z.string().max(4000).optional(),
|
|
94
100
|
topic: z.string().max(120).nullable().optional(),
|
|
95
101
|
status: PostDraftStatus.optional(),
|
|
102
|
+
/** Per-draft toggle: append the source link at dispatch. */
|
|
103
|
+
append_source_link: z.boolean().optional(),
|
|
96
104
|
})
|
|
97
105
|
.refine((v) => Object.keys(v).length > 0, {
|
|
98
106
|
message: "patch body must contain at least one field",
|
|
99
107
|
});
|
|
100
108
|
/** Trigger a rewrite batch: pull sourcepool candidates → AI draft top-N. */
|
|
101
|
-
export const GenerateBatchBodySchema = z
|
|
109
|
+
export const GenerateBatchBodySchema = z
|
|
110
|
+
.object({
|
|
102
111
|
/** sourcepool topic slugs to pull; empty = editor's hot/broad pull. */
|
|
103
112
|
topics: z.array(z.string()).default([]),
|
|
104
113
|
/** Relative window passed to sourcepool (`?within=`), e.g. "48h", "7d". */
|
|
105
114
|
within: z.string().default("48h"),
|
|
106
|
-
/**
|
|
107
|
-
|
|
115
|
+
/** Articles from the chosen topics. */
|
|
116
|
+
topic_limit: z.number().int().min(0).max(30).default(5),
|
|
117
|
+
/** Articles from general hot/recent (also backfills a topic shortfall). */
|
|
118
|
+
hot_limit: z.number().int().min(0).max(30).default(5),
|
|
108
119
|
/** Draft form: short tweet, long-form, or both (one draft per form). */
|
|
109
120
|
format: z.enum(["short", "long", "both"]).default("short"),
|
|
110
|
-
/** 择优: over-generate and keep only the highest-scoring
|
|
121
|
+
/** 择优: over-generate and keep only the highest-scoring per quota (more tokens). */
|
|
111
122
|
pick_best: z.boolean().default(false),
|
|
123
|
+
/** 自动打磨: run the judge-chaperone polish loop on each draft (more tokens). */
|
|
124
|
+
auto_polish: z.boolean().default(false),
|
|
125
|
+
})
|
|
126
|
+
.refine((v) => v.topic_limit + v.hot_limit >= 1, {
|
|
127
|
+
message: "主题数 + 热点数 至少为 1",
|
|
112
128
|
});
|
|
113
129
|
/** Wash a draft from a pasted article URL (same rewrite+judge pipeline). */
|
|
114
130
|
export const FromUrlBodySchema = z.object({
|
|
@@ -119,6 +135,12 @@ export const GenerateBatchResultSchema = z.object({
|
|
|
119
135
|
generated: z.number().int(),
|
|
120
136
|
skipped_existing: z.number().int(),
|
|
121
137
|
scanned: z.number().int(),
|
|
138
|
+
/** Candidates still needing a fresh format (not already washed in this bucket). */
|
|
139
|
+
eligible: z.number().int().default(0),
|
|
140
|
+
/** Winners selected by score to wash. */
|
|
141
|
+
selected: z.number().int().default(0),
|
|
142
|
+
/** source_item_id of each article that produced at least one draft this run. */
|
|
143
|
+
winning_source_item_ids: z.array(z.string()).default([]),
|
|
122
144
|
});
|
|
123
145
|
/**
|
|
124
146
|
* STEP 1 — preview the per-WORKER persona-tailored copy before dispatching.
|
|
@@ -185,7 +207,7 @@ export const AssistStructure = z.enum([
|
|
|
185
207
|
"tpl_actionable", "tpl_painpoint", "tpl_compare", "tpl_hottake",
|
|
186
208
|
]);
|
|
187
209
|
// Hook opening style.
|
|
188
|
-
export const AssistHookStyle = z.enum(["hookier", "question", "suspense", "contrarian", "number", "aphorism", "value_prop"]);
|
|
210
|
+
export const AssistHookStyle = z.enum(["hookier", "question", "suspense", "contrarian", "number", "timely", "aphorism", "value_prop", "identity", "discovery", "uncomfortable"]);
|
|
189
211
|
// Tone.
|
|
190
212
|
export const AssistTone = z.enum(["casual", "professional"]);
|
|
191
213
|
// One-off transforms (not remembered axes).
|
|
@@ -232,11 +254,24 @@ export const ComposeBodySchema = z.object({
|
|
|
232
254
|
pick_best: z.boolean().default(false),
|
|
233
255
|
/** Auto-polish the winner one hostile-reader round (more tokens, higher score). */
|
|
234
256
|
auto_polish: z.boolean().default(false),
|
|
257
|
+
/**
|
|
258
|
+
* 复刻爆款: treat `material` as a PROVEN high-performing post to replicate at the
|
|
259
|
+
* STRUCTURE level (hook pattern, rhythm, sequence) while writing about `brief`
|
|
260
|
+
* with fresh wording — never verbatim copy, never reuse its specific facts.
|
|
261
|
+
*/
|
|
262
|
+
replicate: z.boolean().default(false),
|
|
235
263
|
});
|
|
236
264
|
export const ComposeResultSchema = z.object({
|
|
237
265
|
/** How many drafts were created (1 for short/long, 2 for both). */
|
|
238
266
|
generated: z.number().int(),
|
|
239
267
|
});
|
|
268
|
+
/** 选题灵感 — generate one-line post ideas from a seed to feed into AI 创作. */
|
|
269
|
+
export const TopicIdeasBodySchema = z.object({
|
|
270
|
+
seed: z.string().max(2000).default(""),
|
|
271
|
+
});
|
|
272
|
+
export const TopicIdeasResultSchema = z.object({
|
|
273
|
+
ideas: z.array(z.string()),
|
|
274
|
+
});
|
|
240
275
|
/**
|
|
241
276
|
* "换一版" — regenerate a draft's copy (fresh angle) through the quality core,
|
|
242
277
|
* re-score it, and either replace the draft in place or save a sibling (A/B).
|
|
@@ -245,6 +280,9 @@ export const RegenerateBodySchema = z.object({
|
|
|
245
280
|
/** true = keep the original and create a new sibling draft (一稿多版). */
|
|
246
281
|
keep_original: z.boolean().default(false),
|
|
247
282
|
});
|
|
283
|
+
/** Supported translation targets (mainstream languages). */
|
|
284
|
+
export const TranslateLang = z.enum(["ko", "ja", "zh", "es", "fr", "de", "pt", "ar", "id", "vi", "th", "ru"]);
|
|
285
|
+
export const TranslateBodySchema = z.object({ lang: TranslateLang });
|
|
248
286
|
export const RegenerateResultSchema = z.object({
|
|
249
287
|
/** id of the draft carrying the new copy (same id if replaced, new id if sibling). */
|
|
250
288
|
draft_id: z.string(),
|
|
@@ -268,7 +306,12 @@ export const PolishResultSchema = z.object({
|
|
|
268
306
|
export const AutofetchSettingsSchema = z.object({
|
|
269
307
|
enabled: z.boolean(),
|
|
270
308
|
topics: z.array(z.string()),
|
|
309
|
+
/** Legacy total; kept for compat. New splits below drive generation. */
|
|
271
310
|
fetch_limit: z.number().int().min(1).max(30),
|
|
311
|
+
/** Auto-fetch: articles from the chosen topics. */
|
|
312
|
+
topic_fetch_limit: z.number().int().min(0).max(30).default(5),
|
|
313
|
+
/** Auto-fetch: articles from general hot/recent (also backfills topic shortfall). */
|
|
314
|
+
hot_fetch_limit: z.number().int().min(0).max(30).default(5),
|
|
272
315
|
within: z.string(),
|
|
273
316
|
/** Which form auto-fetch generates: short / long / both. */
|
|
274
317
|
format: z.enum(["short", "long", "both"]).default("short"),
|
|
@@ -284,6 +327,10 @@ export const AutofetchSettingsSchema = z.object({
|
|
|
284
327
|
cleanup_preset: z.string(),
|
|
285
328
|
/** LLM profile id for the content workflow; null = oldest profile. */
|
|
286
329
|
llm_profile_id: z.string().nullable(),
|
|
330
|
+
/** best-of-2: write 2 variants per format, keep the higher (opt-in, +cost). */
|
|
331
|
+
pick_best: z.boolean().default(false),
|
|
332
|
+
/** Auto-run the judge-chaperone polish loop on each washed draft (opt-in, +cost). */
|
|
333
|
+
auto_polish: z.boolean().default(false),
|
|
287
334
|
/** Resolved "name · model" the content workflow actually uses (GET only). */
|
|
288
335
|
effective_model: z.string().nullable().optional(),
|
|
289
336
|
});
|
|
@@ -292,6 +339,8 @@ export const AutofetchPatchSchema = z
|
|
|
292
339
|
enabled: z.boolean().optional(),
|
|
293
340
|
topics: z.array(z.string()).optional(),
|
|
294
341
|
fetch_limit: z.number().int().min(1).max(30).optional(),
|
|
342
|
+
topic_fetch_limit: z.number().int().min(0).max(30).optional(),
|
|
343
|
+
hot_fetch_limit: z.number().int().min(0).max(30).optional(),
|
|
295
344
|
within: z.string().optional(),
|
|
296
345
|
format: z.enum(["short", "long", "both"]).optional(),
|
|
297
346
|
fetch_interval_hours: z.number().int().min(1).max(168).optional(),
|
|
@@ -300,10 +349,24 @@ export const AutofetchPatchSchema = z
|
|
|
300
349
|
pending_cap: z.number().int().min(10).max(5000).optional(),
|
|
301
350
|
cleanup_preset: z.string().optional(),
|
|
302
351
|
llm_profile_id: z.string().nullable().optional(),
|
|
352
|
+
pick_best: z.boolean().optional(),
|
|
353
|
+
auto_polish: z.boolean().optional(),
|
|
303
354
|
})
|
|
304
355
|
.refine((v) => Object.keys(v).length > 0, {
|
|
305
356
|
message: "patch body must contain at least one field",
|
|
306
357
|
});
|
|
358
|
+
/** One autofetch cron run — the audit trail: 抓取→评分→选中→洗出. */
|
|
359
|
+
export const AutofetchRunSchema = z.object({
|
|
360
|
+
id: z.number().int(),
|
|
361
|
+
ran_at: z.string(),
|
|
362
|
+
scanned: z.number().int(),
|
|
363
|
+
eligible: z.number().int(),
|
|
364
|
+
selected: z.number().int(),
|
|
365
|
+
generated: z.number().int(),
|
|
366
|
+
source_item_ids: z.array(z.string()).default([]),
|
|
367
|
+
window_h: z.number().int(),
|
|
368
|
+
});
|
|
369
|
+
export const AutofetchRunsResponseSchema = z.object({ runs: z.array(AutofetchRunSchema) });
|
|
307
370
|
/** One "已发往" ledger entry for the draft detail side panel. */
|
|
308
371
|
export const PostDispatchLogEntrySchema = z.object({
|
|
309
372
|
account_id: Uuid,
|