@openclaw/discord 2026.7.2-beta.2 → 2026.7.2-beta.4
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/{account-inspect-dFV0JrnR.js → account-inspect-Dztmn4J4.js} +1 -1
- package/dist/account-inspect-api.js +1 -1
- package/dist/{accounts-CMd4nzLB.js → accounts-D2LKPukU.js} +3 -10
- package/dist/action-runtime-api.js +1 -1
- package/dist/{activities-api-D0D_87n3.js → activities-api-8TMGXUH4.js} +63 -69
- package/dist/activities-api.js +1 -1
- package/dist/{allow-list-B7qOH5xu.js → allow-list-DzKrtfah.js} +18 -7
- package/dist/{api-B88T4rFN.js → api-C43z8vUm.js} +3 -1
- package/dist/api.js +27 -18
- package/dist/{approval-handler.runtime-B7E1-x5q.js → approval-handler.runtime-ClZpan85.js} +7 -12
- package/dist/{conversation-identity-BPcbhCAH.js → approval-message-safety-LyND6GR3.js} +49 -3
- package/dist/{audit-CjpnY1yb.js → audit-CFfounXC.js} +4 -4
- package/dist/{channel-actions-BQct-o4T.js → channel-actions-C8n1zWZ-.js} +4 -4
- package/dist/{channel-actions.runtime-CC4QwYVO.js → channel-actions.runtime-CgJy35O0.js} +8 -8
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel-BDfKr14H.js → channel-yq-so4jJ.js} +24 -21
- package/dist/{channel.setup-BS4gd8sc.js → channel.setup-Tn_O2B7F.js} +78 -31
- package/dist/{chunk-CHpY_lsO.js → chunk-BrZocpfs.js} +41 -110
- package/dist/{config-schema-CoDck1GW.js → config-schema-D-YrV-5E.js} +328 -57
- package/dist/{directory-config-G1QwBIdi.js → directory-config-DF85-bUY.js} +2 -2
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-nfvekMil.js → directory-live-CrMtTrb0.js} +4 -4
- package/dist/{doctor-Bq4pJAQk.js → doctor-CORGPgoY.js} +4 -4
- package/dist/{doctor-contract-wId6pV41.js → doctor-contract-BPUD3Di9.js} +46 -65
- package/dist/doctor-contract-api.js +1 -1
- package/dist/{handle-action.guild-admin-LYY75_Oa.js → handle-action.guild-admin-DikBWer5.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/legacy-state-migrations-api.js +1 -1
- package/dist/{manager.runtime-w6VVYQMl.js → manager.runtime-DVvlH8NR.js} +102 -149
- package/dist/message-handler-1ui-YxsF.js +564 -0
- package/dist/{message-handler.preflight-DnAH04Ss.js → message-handler.preflight-CAEQvP3t.js} +76 -47
- package/dist/{message-handler.process-ClgKz8I5.js → message-handler.process-REBztvIW.js} +617 -570
- package/dist/{message-utils-BU3gc01v.js → message-utils-ajbkdTVA.js} +60 -52
- package/dist/{outbound-adapter-ByoXsR-V.js → outbound-adapter-XZWo4_HD.js} +36 -5
- package/dist/{outbound-components-7wAolLuS.js → outbound-components-CTFDDcq5.js} +3 -3
- package/dist/{outbound-session-route-D4QqePZN.js → outbound-session-route-D_nc_Ayk.js} +36 -6
- package/dist/{pluralkit-r4wiI2yy.js → pluralkit-CCovPs9s.js} +5 -2
- package/dist/{preflight-audio-DDSZna4F.js → preflight-audio-BjnQZ5yS.js} +9 -6
- package/dist/{probe-WKeTYyJX.js → probe-Bci2pS8M.js} +2 -2
- package/dist/{probe.runtime-CRY-qUke.js → probe.runtime-C88gnnXj.js} +1 -1
- package/dist/{provider-PRlF_lZm.js → provider-CfiChtjf.js} +950 -878
- package/dist/{provider-session.runtime-BZPUZRjn.js → provider-session.runtime-D9GTBKPg.js} +3 -3
- package/dist/provider.runtime-DSzKjpKs.js +2 -0
- package/dist/{resolve-allowlist-common-QN7VMZaC.js → resolve-allowlist-common-C1hTvZa4.js} +3 -3
- package/dist/{resolve-channels-BO9NUPlS.js → resolve-channels-CmFAdMeQ.js} +4 -4
- package/dist/{resolve-users-CU3oG5-m.js → resolve-users-Cmu75lZy.js} +3 -3
- package/dist/{runtime-BsefAQ9q.js → runtime-D-6AugWA.js} +11 -10
- package/dist/{runtime-CCf5nkV3.js → runtime-TwM8IrZU.js} +2 -3
- package/dist/runtime-api.actions.js +2 -2
- package/dist/runtime-api.js +24 -24
- package/dist/runtime-api.lookup.js +5 -5
- package/dist/runtime-api.monitor-DPa2ZoSK.js +5 -0
- package/dist/runtime-api.monitor.js +7 -8
- package/dist/runtime-api.send.js +6 -5
- package/dist/runtime-api.threads.js +6 -6
- package/dist/{secret-config-contract-BDNrRWvd.js → secret-config-contract-B1akrlyY.js} +1 -0
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-audit-contract-api.js +1 -1
- package/dist/{security-audit-aLbWmUjl.js → security-audit-njzOejQp.js} +2 -10
- package/dist/{security-audit.runtime-K0nkzjzJ.js → security-audit.runtime-DZbDdAnw.js} +1 -1
- package/dist/{send-JJzVo_sK.js → send-CfnXLUXq.js} +27 -88
- package/dist/{send.components-CCRW54gK.js → send.components-V7cyCKbH.js} +8 -6
- package/dist/{send.outbound-Cvulb-k_.js → send.outbound-BbC2qjpH.js} +303 -8
- package/dist/send.reactions-bLrJCZ4G.js +85 -0
- package/dist/send.receipt-CuwRrpFz.js +48 -0
- package/dist/{send.shared-XuOTO1dW.js → send.shared-Dfacnk-E.js} +7 -33
- package/dist/{sender-identity-C62lBe18.js → sender-identity-mG_zsdox.js} +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{shared-Bngr0I-v.js → shared-DMA7f3a8.js} +31 -9
- package/dist/subagent-hooks-api.js +10 -1
- package/dist/{subagent-hooks-mSxRv4AE.js → subagent-hooks-kFyJQ-MK.js} +3 -3
- package/dist/subagent-progress-mjPRFz-a.js +664 -0
- package/dist/{system-events-BANBRAe3.js → system-events-BSlhBq3u.js} +2 -2
- package/dist/{target-resolver-BaEmTxeK.js → target-resolver-Bo1oWLPO.js} +3 -3
- package/dist/targets-CB8ahjZk.js +3 -0
- package/dist/{thread-bindings-4MV-u8vU.js → thread-bindings-DAHJuT22.js} +7 -8
- package/dist/{thread-bindings.discord-api-DXfXsHGZ.js → thread-bindings.discord-api-C_tCQcv3.js} +10 -6
- package/dist/{thread-bindings.manager-DJ4cO5Eu.js → thread-bindings.manager-DlZEGvC1.js} +5 -5
- package/dist/{thread-bindings.session-updates-DnTpkroM.js → thread-bindings.session-updates-DAIlp7Px.js} +1 -1
- package/dist/{thread-bindings.state-C5afR9TD.js → thread-bindings.state-Cgi5uRn-.js} +9 -48
- package/dist/{timeouts-D5lWili0.js → timeouts-B9cy6RvQ.js} +1 -6
- package/dist/{transcripts-source-TDZcMriu.js → transcripts-source-CyJ-sc3n.js} +1 -1
- package/dist/transcripts-source-api.js +1 -1
- package/dist/{typing-CKd2NMWG.js → typing-Ci9nhuSi.js} +2 -2
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/LICENSE +21 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/README.md +208 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/index.cjs +33 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/index.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/index.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/index.js +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/package.json +118 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/index.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/external.js +6 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/index.js +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/index.js +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/@discord/embedded-app-sdk/node_modules/zod/v4-mini/index.js +1 -0
- package/node_modules/@types/debug/LICENSE +21 -0
- package/node_modules/@types/debug/README.md +69 -0
- package/node_modules/@types/debug/index.d.ts +50 -0
- package/node_modules/@types/debug/package.json +58 -0
- package/node_modules/@types/mdast/LICENSE +21 -0
- package/node_modules/@types/mdast/README.md +15 -0
- package/node_modules/@types/mdast/index.d.ts +1123 -0
- package/node_modules/@types/mdast/package.json +47 -0
- package/node_modules/@types/ms/LICENSE +21 -0
- package/node_modules/@types/ms/README.md +82 -0
- package/node_modules/@types/ms/index.d.ts +63 -0
- package/node_modules/@types/ms/package.json +26 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +16 -6
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/unist/LICENSE +21 -0
- package/node_modules/@types/unist/README.md +15 -0
- package/node_modules/@types/unist/index.d.ts +119 -0
- package/node_modules/@types/unist/package.json +60 -0
- package/node_modules/character-entities/index.d.ts +6 -0
- package/node_modules/character-entities/index.js +2132 -0
- package/node_modules/character-entities/license +22 -0
- package/node_modules/character-entities/package.json +78 -0
- package/node_modules/character-entities/readme.md +152 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/decode-named-character-reference/index.d.ts +13 -0
- package/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
- package/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
- package/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
- package/node_modules/decode-named-character-reference/index.dom.js +32 -0
- package/node_modules/decode-named-character-reference/index.js +19 -0
- package/node_modules/decode-named-character-reference/license +22 -0
- package/node_modules/decode-named-character-reference/package.json +90 -0
- package/node_modules/decode-named-character-reference/readme.md +136 -0
- package/node_modules/dequal/dist/index.js +86 -0
- package/node_modules/dequal/dist/index.min.js +1 -0
- package/node_modules/dequal/dist/index.mjs +84 -0
- package/node_modules/dequal/index.d.ts +1 -0
- package/node_modules/dequal/license +21 -0
- package/node_modules/dequal/lite/index.d.ts +1 -0
- package/node_modules/dequal/lite/index.js +31 -0
- package/node_modules/dequal/lite/index.min.js +1 -0
- package/node_modules/dequal/lite/index.mjs +29 -0
- package/node_modules/dequal/package.json +57 -0
- package/node_modules/dequal/readme.md +112 -0
- package/node_modules/devlop/lib/default.js +9 -0
- package/node_modules/devlop/lib/development.d.ts +84 -0
- package/node_modules/devlop/lib/development.js +238 -0
- package/node_modules/devlop/license +22 -0
- package/node_modules/devlop/package.json +80 -0
- package/node_modules/devlop/readme.md +360 -0
- package/node_modules/discord-api-types/CHANGELOG.md +9 -0
- package/node_modules/discord-api-types/package.json +4 -4
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts +4 -1
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts +5 -1
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/channel.js +4 -0
- package/node_modules/discord-api-types/payloads/v10/channel.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/message.d.ts +9 -2
- package/node_modules/discord-api-types/payloads/v10/message.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/message.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts +4 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts +5 -1
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/channel.js +4 -0
- package/node_modules/discord-api-types/payloads/v9/channel.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/message.d.ts +9 -2
- package/node_modules/discord-api-types/payloads/v9/message.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/message.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.d.ts +39 -8
- package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/webhook.d.ts +3 -3
- package/node_modules/discord-api-types/rest/v9/channel.d.ts +39 -8
- package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v9/webhook.d.ts +3 -3
- package/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
- package/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/index.js +1348 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +295 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
- package/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
- package/node_modules/mdast-util-from-markdown/index.js +2 -0
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
- package/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
- package/node_modules/mdast-util-from-markdown/lib/types.d.ts +295 -0
- package/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
- package/node_modules/mdast-util-from-markdown/license +22 -0
- package/node_modules/mdast-util-from-markdown/package.json +99 -0
- package/node_modules/mdast-util-from-markdown/readme.md +535 -0
- package/node_modules/mdast-util-to-string/index.d.ts +2 -0
- package/node_modules/mdast-util-to-string/index.js +5 -0
- package/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
- package/node_modules/mdast-util-to-string/lib/index.js +108 -0
- package/node_modules/mdast-util-to-string/license +22 -0
- package/node_modules/mdast-util-to-string/package.json +78 -0
- package/node_modules/mdast-util-to-string/readme.md +218 -0
- package/node_modules/micromark/dev/index.d.ts +82 -0
- package/node_modules/micromark/dev/index.d.ts.map +1 -0
- package/node_modules/micromark/dev/index.js +68 -0
- package/node_modules/micromark/dev/lib/compile.d.ts +16 -0
- package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/compile.js +1152 -0
- package/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
- package/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/constructs.js +101 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.js +717 -0
- package/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
- package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/content.js +99 -0
- package/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
- package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/document.js +445 -0
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
- package/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
- package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/text.js +244 -0
- package/node_modules/micromark/dev/lib/parse.d.ts +10 -0
- package/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/parse.js +58 -0
- package/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
- package/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/postprocess.js +19 -0
- package/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
- package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/preprocess.js +141 -0
- package/node_modules/micromark/dev/stream.d.ts +35 -0
- package/node_modules/micromark/dev/stream.d.ts.map +1 -0
- package/node_modules/micromark/dev/stream.js +270 -0
- package/node_modules/micromark/index.d.ts +82 -0
- package/node_modules/micromark/index.d.ts.map +1 -0
- package/node_modules/micromark/index.js +60 -0
- package/node_modules/micromark/lib/compile.d.ts +16 -0
- package/node_modules/micromark/lib/compile.d.ts.map +1 -0
- package/node_modules/micromark/lib/compile.js +1060 -0
- package/node_modules/micromark/lib/constructs.d.ts +73 -0
- package/node_modules/micromark/lib/constructs.d.ts.map +1 -0
- package/node_modules/micromark/lib/constructs.js +85 -0
- package/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
- package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
- package/node_modules/micromark/lib/create-tokenizer.js +611 -0
- package/node_modules/micromark/lib/initialize/content.d.ts +4 -0
- package/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/content.js +79 -0
- package/node_modules/micromark/lib/initialize/document.d.ts +10 -0
- package/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/document.js +362 -0
- package/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
- package/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/node_modules/micromark/lib/initialize/text.d.ts +8 -0
- package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/text.js +212 -0
- package/node_modules/micromark/lib/parse.d.ts +10 -0
- package/node_modules/micromark/lib/parse.d.ts.map +1 -0
- package/node_modules/micromark/lib/parse.js +56 -0
- package/node_modules/micromark/lib/postprocess.d.ts +9 -0
- package/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
- package/node_modules/micromark/lib/postprocess.js +18 -0
- package/node_modules/micromark/lib/preprocess.d.ts +13 -0
- package/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
- package/node_modules/micromark/lib/preprocess.js +115 -0
- package/node_modules/micromark/license +22 -0
- package/node_modules/micromark/package.json +100 -0
- package/node_modules/micromark/readme.md +488 -0
- package/node_modules/micromark/stream.d.ts +35 -0
- package/node_modules/micromark/stream.d.ts.map +1 -0
- package/node_modules/micromark/stream.js +256 -0
- package/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
- package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/index.js +22 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.js +300 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +514 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +202 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +233 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +989 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +656 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +110 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +62 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +210 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
- package/node_modules/micromark-core-commonmark/index.d.ts +23 -0
- package/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/index.js +22 -0
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
- package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/node_modules/micromark-core-commonmark/license +22 -0
- package/node_modules/micromark-core-commonmark/package.json +74 -0
- package/node_modules/micromark-core-commonmark/readme.md +171 -0
- package/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
- package/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-destination/dev/index.js +255 -0
- package/node_modules/micromark-factory-destination/index.d.ts +42 -0
- package/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-destination/index.js +206 -0
- package/node_modules/micromark-factory-destination/license +22 -0
- package/node_modules/micromark-factory-destination/package.json +57 -0
- package/node_modules/micromark-factory-destination/readme.md +234 -0
- package/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
- package/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-label/dev/index.js +172 -0
- package/node_modules/micromark-factory-label/index.d.ts +37 -0
- package/node_modules/micromark-factory-label/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-label/index.js +148 -0
- package/node_modules/micromark-factory-label/license +22 -0
- package/node_modules/micromark-factory-label/package.json +60 -0
- package/node_modules/micromark-factory-label/readme.md +224 -0
- package/node_modules/micromark-factory-space/dev/index.d.ts +37 -0
- package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-space/dev/index.js +67 -0
- package/node_modules/micromark-factory-space/index.d.ts +37 -0
- package/node_modules/micromark-factory-space/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-space/index.js +64 -0
- package/node_modules/micromark-factory-space/license +22 -0
- package/node_modules/micromark-factory-space/package.json +55 -0
- package/node_modules/micromark-factory-space/readme.md +225 -0
- package/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
- package/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-title/dev/index.js +169 -0
- package/node_modules/micromark-factory-title/index.d.ts +36 -0
- package/node_modules/micromark-factory-title/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-title/index.js +158 -0
- package/node_modules/micromark-factory-title/license +22 -0
- package/node_modules/micromark-factory-title/package.json +58 -0
- package/node_modules/micromark-factory-title/readme.md +229 -0
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
- package/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
- package/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/node_modules/micromark-factory-whitespace/license +22 -0
- package/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/node_modules/micromark-factory-whitespace/readme.md +205 -0
- package/node_modules/micromark-util-character/dev/index.d.ts +195 -0
- package/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-character/dev/index.js +252 -0
- package/node_modules/micromark-util-character/index.d.ts +195 -0
- package/node_modules/micromark-util-character/index.d.ts.map +1 -0
- package/node_modules/micromark-util-character/index.js +246 -0
- package/node_modules/micromark-util-character/license +22 -0
- package/node_modules/micromark-util-character/package.json +57 -0
- package/node_modules/micromark-util-character/readme.md +446 -0
- package/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
- package/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-chunked/dev/index.js +89 -0
- package/node_modules/micromark-util-chunked/index.d.ts +41 -0
- package/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
- package/node_modules/micromark-util-chunked/index.js +81 -0
- package/node_modules/micromark-util-chunked/license +22 -0
- package/node_modules/micromark-util-chunked/package.json +57 -0
- package/node_modules/micromark-util-chunked/readme.md +219 -0
- package/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
- package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-classify-character/dev/index.js +38 -0
- package/node_modules/micromark-util-classify-character/index.d.ts +18 -0
- package/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
- package/node_modules/micromark-util-classify-character/index.js +27 -0
- package/node_modules/micromark-util-classify-character/license +22 -0
- package/node_modules/micromark-util-classify-character/package.json +59 -0
- package/node_modules/micromark-util-classify-character/readme.md +205 -0
- package/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
- package/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
- package/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/node_modules/micromark-util-combine-extensions/license +22 -0
- package/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/node_modules/micromark-util-combine-extensions/readme.md +201 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
- package/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
- package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-string/dev/index.js +53 -0
- package/node_modules/micromark-util-decode-string/index.d.ts +14 -0
- package/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-string/index.js +45 -0
- package/node_modules/micromark-util-decode-string/license +22 -0
- package/node_modules/micromark-util-decode-string/package.json +63 -0
- package/node_modules/micromark-util-decode-string/readme.md +179 -0
- package/node_modules/micromark-util-encode/index.d.ts +14 -0
- package/node_modules/micromark-util-encode/index.d.ts.map +1 -0
- package/node_modules/micromark-util-encode/index.js +33 -0
- package/node_modules/micromark-util-encode/license +22 -0
- package/node_modules/micromark-util-encode/package.json +47 -0
- package/node_modules/micromark-util-encode/readme.md +176 -0
- package/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
- package/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
- package/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/node_modules/micromark-util-html-tag-name/license +22 -0
- package/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/node_modules/micromark-util-html-tag-name/readme.md +193 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
- package/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
- package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
- package/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/node_modules/micromark-util-normalize-identifier/license +22 -0
- package/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
- package/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
- package/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
- package/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/node_modules/micromark-util-resolve-all/license +22 -0
- package/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/node_modules/micromark-util-resolve-all/readme.md +238 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
- package/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
- package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
- package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/node_modules/micromark-util-sanitize-uri/license +22 -0
- package/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
- package/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
- package/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/node_modules/micromark-util-subtokenize/license +22 -0
- package/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/node_modules/micromark-util-subtokenize/readme.md +181 -0
- package/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
- package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
- package/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
- package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
- package/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
- package/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/default.js +4 -0
- package/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
- package/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/types.js +453 -0
- package/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
- package/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/values.js +109 -0
- package/node_modules/micromark-util-symbol/license +22 -0
- package/node_modules/micromark-util-symbol/package.json +43 -0
- package/node_modules/micromark-util-symbol/readme.md +168 -0
- package/node_modules/micromark-util-types/index.d.ts +1312 -0
- package/node_modules/micromark-util-types/index.js +2 -0
- package/node_modules/micromark-util-types/license +22 -0
- package/node_modules/micromark-util-types/package.json +71 -0
- package/node_modules/micromark-util-types/readme.md +151 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/typebox/build/compile/validator.d.mts +1 -4
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +5 -2
- package/node_modules/typebox/build/guard/string.mjs +16 -4
- package/node_modules/typebox/build/schema/engine/_functions.mjs +34 -15
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +5 -0
- package/node_modules/typebox/build/type/action/readonly_object.mjs +8 -0
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +29 -32
- package/node_modules/undici/README.md +3 -2
- package/node_modules/undici/docs/docs/api/Agent.md +248 -44
- package/node_modules/undici/docs/docs/api/BalancedPool.md +246 -48
- package/node_modules/undici/docs/docs/api/CacheStorage.md +171 -13
- package/node_modules/undici/docs/docs/api/CacheStore.md +294 -98
- package/node_modules/undici/docs/docs/api/Client.md +365 -179
- package/node_modules/undici/docs/docs/api/ClientStats.md +80 -14
- package/node_modules/undici/docs/docs/api/Connector.md +118 -36
- package/node_modules/undici/docs/docs/api/ContentType.md +65 -25
- package/node_modules/undici/docs/docs/api/Cookies.md +122 -71
- package/node_modules/undici/docs/docs/api/Debug.md +34 -18
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +364 -164
- package/node_modules/undici/docs/docs/api/Dispatcher.md +479 -1102
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +101 -87
- package/node_modules/undici/docs/docs/api/Errors.md +503 -40
- package/node_modules/undici/docs/docs/api/EventSource.md +294 -32
- package/node_modules/undici/docs/docs/api/Fetch.md +680 -31
- package/node_modules/undici/docs/docs/api/GlobalInstallation.md +78 -98
- package/node_modules/undici/docs/docs/api/H2CClient.md +298 -176
- package/node_modules/undici/docs/docs/api/Interceptors.md +355 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +314 -322
- package/node_modules/undici/docs/docs/api/MockCallHistory.md +272 -98
- package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +189 -26
- package/node_modules/undici/docs/docs/api/MockClient.md +151 -33
- package/node_modules/undici/docs/docs/api/MockErrors.md +56 -5
- package/node_modules/undici/docs/docs/api/MockPool.md +299 -263
- package/node_modules/undici/docs/docs/api/Pool.md +235 -43
- package/node_modules/undici/docs/docs/api/PoolStats.md +119 -13
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +172 -160
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +238 -63
- package/node_modules/undici/docs/docs/api/RetryAgent.md +113 -26
- package/node_modules/undici/docs/docs/api/RetryHandler.md +161 -77
- package/node_modules/undici/docs/docs/api/RoundRobinPool.md +166 -72
- package/node_modules/undici/docs/docs/api/SnapshotAgent.md +264 -542
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +162 -187
- package/node_modules/undici/docs/docs/api/Util.md +68 -11
- package/node_modules/undici/docs/docs/api/WebSocket.md +475 -80
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +100 -32
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +2 -0
- package/node_modules/undici/docs/docs/best-practices/crawling.md +3 -1
- package/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +6 -4
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +8 -6
- package/node_modules/undici/docs/docs/best-practices/proxy.md +3 -1
- package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +10 -8
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +2 -0
- package/node_modules/undici/docs/docs/{GettingStarted.md → getting-started.md} +22 -19
- package/node_modules/undici/docs/docs/index.md +779 -0
- package/node_modules/undici/docs/docs/site.json +125 -0
- package/node_modules/undici/docs/docs/type-map.json +79 -0
- package/node_modules/undici/lib/api/api-request.js +7 -1
- package/node_modules/undici/lib/api/readable.js +43 -2
- package/node_modules/undici/lib/core/errors.js +20 -0
- package/node_modules/undici/lib/core/request.js +1 -1
- package/node_modules/undici/lib/core/util.js +3 -1
- package/node_modules/undici/lib/dispatcher/client-h1.js +23 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +40 -6
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +9 -1
- package/node_modules/undici/lib/handler/redirect-handler.js +1 -0
- package/node_modules/undici/lib/handler/retry-handler.js +57 -19
- package/node_modules/undici/lib/web/fetch/constants.js +1 -1
- package/node_modules/undici/lib/web/fetch/index.js +11 -2
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/client.d.ts +1 -1
- package/node_modules/undici/types/cookies.d.ts +1 -1
- package/node_modules/undici/types/errors.d.ts +10 -0
- package/node_modules/unist-util-stringify-position/index.d.ts +1 -0
- package/node_modules/unist-util-stringify-position/index.js +1 -0
- package/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
- package/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/node_modules/unist-util-stringify-position/license +22 -0
- package/node_modules/unist-util-stringify-position/package.json +80 -0
- package/node_modules/unist-util-stringify-position/readme.md +206 -0
- package/node_modules/uuid/README.md +99 -99
- package/node_modules/uuid/package.json +10 -6
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/node_modules/zod/README.md +5 -22
- package/node_modules/zod/index.cjs +2 -2
- package/node_modules/zod/index.d.cts +2 -2
- package/node_modules/zod/index.d.ts +2 -2
- package/node_modules/zod/index.js +2 -2
- 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 +29 -12
- package/node_modules/zod/src/index.ts +2 -2
- 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 +1 -1
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
- package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
- package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +7 -7
- package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/string.test.ts +2 -2
- package/node_modules/zod/src/v3/types.ts +3 -1
- package/node_modules/zod/src/v4/classic/checks.ts +2 -0
- package/node_modules/zod/src/v4/classic/compat.ts +4 -0
- package/node_modules/zod/src/v4/classic/errors.ts +11 -4
- package/node_modules/zod/src/v4/classic/external.ts +4 -2
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/parse.ts +51 -2
- package/node_modules/zod/src/v4/classic/schemas.ts +846 -228
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +6 -6
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +6 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +79 -5
- 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/continuability.test.ts +24 -2
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +37 -6
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +7 -1
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -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 +76 -1
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +284 -4
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -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 +129 -37
- 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 +113 -3
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +32 -5
- 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 +4 -3
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +25 -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 +134 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +78 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +162 -8
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +214 -4
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +303 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -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 +74 -21
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +385 -10
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +169 -68
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +5 -3
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +77 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +349 -6
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +26 -13
- 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 +938 -127
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +338 -5
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +182 -3
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/core/api.ts +365 -136
- package/node_modules/zod/src/v4/core/checks.ts +15 -5
- package/node_modules/zod/src/v4/core/core.ts +60 -41
- package/node_modules/zod/src/v4/core/doc.ts +2 -2
- package/node_modules/zod/src/v4/core/errors.ts +116 -85
- package/node_modules/zod/src/v4/core/index.ts +2 -1
- 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 +7 -3
- package/node_modules/zod/src/v4/core/parse.ts +104 -3
- package/node_modules/zod/src/v4/core/regexes.ts +72 -17
- package/node_modules/zod/src/v4/core/registries.ts +17 -8
- package/node_modules/zod/src/v4/core/schemas.ts +1225 -337
- package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -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 +1 -1
- 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/tr.test.ts +2 -2
- 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 +480 -835
- package/node_modules/zod/src/v4/core/util.ts +337 -129
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/locales/ar.ts +17 -27
- package/node_modules/zod/src/v4/locales/az.ts +17 -27
- package/node_modules/zod/src/v4/locales/be.ts +19 -27
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +17 -28
- package/node_modules/zod/src/v4/locales/cs.ts +21 -45
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +19 -27
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +23 -27
- package/node_modules/zod/src/v4/locales/eo.ts +20 -27
- package/node_modules/zod/src/v4/locales/es.ts +49 -33
- package/node_modules/zod/src/v4/locales/fa.ts +19 -27
- package/node_modules/zod/src/v4/locales/fi.ts +17 -27
- package/node_modules/zod/src/v4/locales/fr-CA.ts +17 -27
- package/node_modules/zod/src/v4/locales/fr.ts +42 -34
- package/node_modules/zod/src/v4/locales/he.ts +201 -80
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +19 -28
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +17 -27
- package/node_modules/zod/src/v4/locales/index.ts +13 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +19 -28
- package/node_modules/zod/src/v4/locales/ja.ts +19 -27
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +3 -122
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +17 -27
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +19 -28
- package/node_modules/zod/src/v4/locales/ms.ts +18 -27
- package/node_modules/zod/src/v4/locales/nl.ts +32 -37
- package/node_modules/zod/src/v4/locales/no.ts +19 -27
- package/node_modules/zod/src/v4/locales/ota.ts +20 -28
- package/node_modules/zod/src/v4/locales/pl.ts +19 -27
- package/node_modules/zod/src/v4/locales/ps.ts +19 -26
- package/node_modules/zod/src/v4/locales/pt.ts +19 -26
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +19 -27
- package/node_modules/zod/src/v4/locales/sl.ts +19 -27
- package/node_modules/zod/src/v4/locales/sv.ts +19 -27
- package/node_modules/zod/src/v4/locales/ta.ts +20 -27
- package/node_modules/zod/src/v4/locales/th.ts +20 -27
- package/node_modules/zod/src/v4/locales/tr.ts +17 -27
- package/node_modules/zod/src/v4/locales/ua.ts +3 -122
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +20 -27
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +19 -27
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +20 -27
- package/node_modules/zod/src/v4/locales/zh-TW.ts +17 -27
- package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
- package/node_modules/zod/src/v4/mini/external.ts +3 -2
- package/node_modules/zod/src/v4/mini/iso.ts +8 -4
- package/node_modules/zod/src/v4/mini/parse.ts +14 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +440 -72
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -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 +1 -1
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -38
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +126 -4
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +51 -9
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +52 -2
- 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 +54 -1
- package/node_modules/zod/src/v4-mini/index.ts +3 -1
- package/node_modules/zod/v3/ZodError.cjs +1 -1
- package/node_modules/zod/v3/ZodError.d.cts +6 -6
- package/node_modules/zod/v3/ZodError.d.ts +6 -6
- package/node_modules/zod/v3/ZodError.js +1 -1
- package/node_modules/zod/v3/locales/en.cjs +1 -0
- package/node_modules/zod/v3/locales/en.d.cts +1 -1
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/types.cjs +2 -0
- package/node_modules/zod/v3/types.d.cts +4 -1
- package/node_modules/zod/v3/types.d.ts +4 -1
- package/node_modules/zod/v3/types.js +2 -0
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/compat.cjs +5 -1
- package/node_modules/zod/v4/classic/compat.d.cts +4 -0
- package/node_modules/zod/v4/classic/compat.d.ts +4 -0
- package/node_modules/zod/v4/classic/compat.js +4 -0
- package/node_modules/zod/v4/classic/errors.cjs +9 -2
- package/node_modules/zod/v4/classic/errors.js +11 -4
- package/node_modules/zod/v4/classic/external.cjs +6 -3
- package/node_modules/zod/v4/classic/external.d.cts +4 -1
- package/node_modules/zod/v4/classic/external.d.ts +4 -1
- package/node_modules/zod/v4/classic/external.js +3 -1
- 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/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +10 -1
- package/node_modules/zod/v4/classic/parse.d.cts +8 -0
- package/node_modules/zod/v4/classic/parse.d.ts +8 -0
- package/node_modules/zod/v4/classic/parse.js +9 -0
- package/node_modules/zod/v4/classic/schemas.cjs +558 -156
- package/node_modules/zod/v4/classic/schemas.d.cts +179 -42
- package/node_modules/zod/v4/classic/schemas.d.ts +179 -42
- package/node_modules/zod/v4/classic/schemas.js +544 -155
- package/node_modules/zod/v4/core/api.cjs +219 -31
- package/node_modules/zod/v4/core/api.d.cts +120 -79
- package/node_modules/zod/v4/core/api.d.ts +120 -79
- package/node_modules/zod/v4/core/api.js +212 -31
- package/node_modules/zod/v4/core/checks.cjs +12 -2
- package/node_modules/zod/v4/core/checks.d.cts +3 -3
- package/node_modules/zod/v4/core/checks.d.ts +3 -3
- package/node_modules/zod/v4/core/checks.js +12 -2
- package/node_modules/zod/v4/core/core.cjs +31 -13
- package/node_modules/zod/v4/core/core.d.cts +24 -3
- package/node_modules/zod/v4/core/core.d.ts +24 -3
- package/node_modules/zod/v4/core/core.js +30 -13
- package/node_modules/zod/v4/core/doc.d.cts +1 -1
- package/node_modules/zod/v4/core/doc.d.ts +1 -1
- package/node_modules/zod/v4/core/errors.cjs +32 -42
- package/node_modules/zod/v4/core/errors.d.cts +37 -24
- package/node_modules/zod/v4/core/errors.d.ts +37 -24
- package/node_modules/zod/v4/core/errors.js +32 -42
- package/node_modules/zod/v4/core/index.cjs +5 -2
- package/node_modules/zod/v4/core/index.d.cts +2 -1
- package/node_modules/zod/v4/core/index.d.ts +2 -1
- package/node_modules/zod/v4/core/index.js +2 -1
- 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.d.cts +4 -3
- package/node_modules/zod/v4/core/json-schema.d.ts +4 -3
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +48 -4
- package/node_modules/zod/v4/core/parse.d.cts +24 -0
- package/node_modules/zod/v4/core/parse.d.ts +24 -0
- package/node_modules/zod/v4/core/parse.js +39 -3
- package/node_modules/zod/v4/core/regexes.cjs +87 -18
- package/node_modules/zod/v4/core/regexes.d.cts +25 -2
- package/node_modules/zod/v4/core/regexes.d.ts +25 -2
- package/node_modules/zod/v4/core/regexes.js +60 -16
- package/node_modules/zod/v4/core/registries.cjs +7 -7
- package/node_modules/zod/v4/core/registries.d.cts +2 -2
- package/node_modules/zod/v4/core/registries.d.ts +2 -2
- package/node_modules/zod/v4/core/registries.js +7 -7
- package/node_modules/zod/v4/core/schemas.cjs +759 -237
- package/node_modules/zod/v4/core/schemas.d.cts +163 -20
- package/node_modules/zod/v4/core/schemas.d.ts +163 -20
- package/node_modules/zod/v4/core/schemas.js +758 -236
- package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
- package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
- package/node_modules/zod/v4/core/to-json-schema.cjs +408 -805
- package/node_modules/zod/v4/core/to-json-schema.d.cts +59 -33
- package/node_modules/zod/v4/core/to-json-schema.d.ts +59 -33
- package/node_modules/zod/v4/core/to-json-schema.js +402 -803
- package/node_modules/zod/v4/core/util.cjs +320 -125
- package/node_modules/zod/v4/core/util.d.cts +17 -0
- package/node_modules/zod/v4/core/util.d.ts +17 -0
- package/node_modules/zod/v4/core/util.js +308 -127
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/locales/ar.cjs +15 -24
- package/node_modules/zod/v4/locales/ar.d.cts +2 -1
- package/node_modules/zod/v4/locales/ar.js +14 -24
- package/node_modules/zod/v4/locales/az.cjs +15 -24
- package/node_modules/zod/v4/locales/az.d.cts +2 -1
- package/node_modules/zod/v4/locales/az.js +14 -24
- package/node_modules/zod/v4/locales/be.cjs +17 -24
- package/node_modules/zod/v4/locales/be.d.cts +2 -1
- package/node_modules/zod/v4/locales/be.js +16 -24
- 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 +15 -25
- package/node_modules/zod/v4/locales/ca.d.cts +2 -1
- package/node_modules/zod/v4/locales/ca.js +14 -25
- package/node_modules/zod/v4/locales/cs.cjs +19 -42
- package/node_modules/zod/v4/locales/cs.d.cts +2 -1
- package/node_modules/zod/v4/locales/cs.js +18 -42
- 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 +17 -24
- package/node_modules/zod/v4/locales/de.d.cts +2 -1
- package/node_modules/zod/v4/locales/de.js +16 -24
- 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 +21 -26
- package/node_modules/zod/v4/locales/en.d.cts +2 -2
- package/node_modules/zod/v4/locales/en.d.ts +0 -1
- package/node_modules/zod/v4/locales/en.js +20 -24
- package/node_modules/zod/v4/locales/eo.cjs +18 -26
- package/node_modules/zod/v4/locales/eo.d.cts +2 -2
- package/node_modules/zod/v4/locales/eo.d.ts +0 -1
- package/node_modules/zod/v4/locales/eo.js +17 -24
- package/node_modules/zod/v4/locales/es.cjs +47 -31
- package/node_modules/zod/v4/locales/es.d.cts +2 -1
- package/node_modules/zod/v4/locales/es.js +46 -31
- package/node_modules/zod/v4/locales/fa.cjs +17 -24
- package/node_modules/zod/v4/locales/fa.d.cts +2 -1
- package/node_modules/zod/v4/locales/fa.js +16 -24
- package/node_modules/zod/v4/locales/fi.cjs +15 -24
- package/node_modules/zod/v4/locales/fi.d.cts +2 -1
- package/node_modules/zod/v4/locales/fi.js +14 -24
- package/node_modules/zod/v4/locales/fr-CA.cjs +15 -24
- package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr-CA.js +14 -24
- package/node_modules/zod/v4/locales/fr.cjs +40 -30
- package/node_modules/zod/v4/locales/fr.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr.js +39 -30
- package/node_modules/zod/v4/locales/he.cjs +176 -78
- package/node_modules/zod/v4/locales/he.d.cts +2 -1
- package/node_modules/zod/v4/locales/he.js +175 -78
- 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 +17 -25
- package/node_modules/zod/v4/locales/hu.d.cts +2 -1
- package/node_modules/zod/v4/locales/hu.js +16 -25
- 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 +15 -24
- package/node_modules/zod/v4/locales/id.d.cts +2 -1
- package/node_modules/zod/v4/locales/id.js +14 -24
- package/node_modules/zod/v4/locales/index.cjs +28 -1
- package/node_modules/zod/v4/locales/index.d.cts +13 -0
- package/node_modules/zod/v4/locales/index.d.ts +13 -0
- package/node_modules/zod/v4/locales/index.js +13 -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 +17 -25
- package/node_modules/zod/v4/locales/it.d.cts +2 -1
- package/node_modules/zod/v4/locales/it.js +16 -25
- package/node_modules/zod/v4/locales/ja.cjs +17 -24
- package/node_modules/zod/v4/locales/ja.d.cts +2 -1
- package/node_modules/zod/v4/locales/ja.js +16 -24
- 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 +6 -137
- package/node_modules/zod/v4/locales/kh.d.cts +2 -1
- package/node_modules/zod/v4/locales/kh.d.ts +1 -0
- package/node_modules/zod/v4/locales/kh.js +3 -115
- 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 +15 -24
- package/node_modules/zod/v4/locales/ko.d.cts +2 -1
- package/node_modules/zod/v4/locales/ko.js +14 -24
- 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 +17 -25
- package/node_modules/zod/v4/locales/mk.d.cts +2 -1
- package/node_modules/zod/v4/locales/mk.js +16 -25
- package/node_modules/zod/v4/locales/ms.cjs +16 -24
- package/node_modules/zod/v4/locales/ms.d.cts +2 -1
- package/node_modules/zod/v4/locales/ms.js +15 -24
- package/node_modules/zod/v4/locales/nl.cjs +26 -32
- package/node_modules/zod/v4/locales/nl.d.cts +2 -1
- package/node_modules/zod/v4/locales/nl.js +25 -32
- package/node_modules/zod/v4/locales/no.cjs +17 -24
- package/node_modules/zod/v4/locales/no.d.cts +2 -1
- package/node_modules/zod/v4/locales/no.js +16 -24
- package/node_modules/zod/v4/locales/ota.cjs +18 -25
- package/node_modules/zod/v4/locales/ota.d.cts +2 -1
- package/node_modules/zod/v4/locales/ota.js +17 -25
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +17 -24
- package/node_modules/zod/v4/locales/pl.d.cts +2 -1
- package/node_modules/zod/v4/locales/pl.js +16 -24
- package/node_modules/zod/v4/locales/ps.cjs +17 -24
- package/node_modules/zod/v4/locales/ps.d.cts +2 -1
- package/node_modules/zod/v4/locales/ps.js +16 -24
- package/node_modules/zod/v4/locales/pt.cjs +17 -24
- package/node_modules/zod/v4/locales/pt.d.cts +2 -1
- package/node_modules/zod/v4/locales/pt.js +16 -24
- 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 +17 -24
- package/node_modules/zod/v4/locales/ru.d.cts +2 -1
- package/node_modules/zod/v4/locales/ru.js +16 -24
- package/node_modules/zod/v4/locales/sl.cjs +17 -24
- package/node_modules/zod/v4/locales/sl.d.cts +2 -1
- package/node_modules/zod/v4/locales/sl.js +16 -24
- package/node_modules/zod/v4/locales/sv.cjs +17 -24
- package/node_modules/zod/v4/locales/sv.d.cts +2 -1
- package/node_modules/zod/v4/locales/sv.js +16 -24
- package/node_modules/zod/v4/locales/ta.cjs +18 -24
- package/node_modules/zod/v4/locales/ta.d.cts +2 -1
- package/node_modules/zod/v4/locales/ta.js +17 -24
- package/node_modules/zod/v4/locales/th.cjs +18 -24
- package/node_modules/zod/v4/locales/th.d.cts +2 -1
- package/node_modules/zod/v4/locales/th.js +17 -24
- package/node_modules/zod/v4/locales/tr.cjs +15 -26
- package/node_modules/zod/v4/locales/tr.d.cts +2 -2
- package/node_modules/zod/v4/locales/tr.d.ts +0 -1
- package/node_modules/zod/v4/locales/tr.js +14 -24
- package/node_modules/zod/v4/locales/ua.cjs +6 -137
- package/node_modules/zod/v4/locales/ua.d.cts +2 -1
- package/node_modules/zod/v4/locales/ua.d.ts +1 -0
- package/node_modules/zod/v4/locales/ua.js +3 -115
- 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 +18 -24
- package/node_modules/zod/v4/locales/ur.d.cts +2 -1
- package/node_modules/zod/v4/locales/ur.js +17 -24
- 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 +17 -24
- package/node_modules/zod/v4/locales/vi.d.cts +2 -1
- package/node_modules/zod/v4/locales/vi.js +16 -24
- 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 +18 -24
- package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-CN.js +17 -24
- package/node_modules/zod/v4/locales/zh-TW.cjs +15 -24
- package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-TW.js +14 -24
- package/node_modules/zod/v4/mini/coerce.cjs +5 -0
- package/node_modules/zod/v4/mini/coerce.js +5 -0
- package/node_modules/zod/v4/mini/external.cjs +4 -3
- package/node_modules/zod/v4/mini/external.d.cts +3 -1
- package/node_modules/zod/v4/mini/external.d.ts +3 -1
- package/node_modules/zod/v4/mini/external.js +2 -1
- package/node_modules/zod/v4/mini/iso.cjs +8 -4
- package/node_modules/zod/v4/mini/iso.js +8 -4
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +9 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +301 -57
- package/node_modules/zod/v4/mini/schemas.d.cts +109 -20
- package/node_modules/zod/v4/mini/schemas.d.ts +109 -20
- package/node_modules/zod/v4/mini/schemas.js +260 -31
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +16 -1
- package/node_modules/zod/v4-mini/index.d.cts +3 -1
- package/node_modules/zod/v4-mini/index.d.ts +3 -1
- package/node_modules/zod/v4-mini/index.js +3 -1
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/npm-shrinkwrap.json +629 -28
- package/openclaw.plugin.json +529 -888
- package/package.json +44 -16
- package/dist/approval-message-safety-C-8BL6Kv.js +0 -47
- package/dist/config-api-B18fR8M5.js +0 -3
- package/dist/message-handler-DExaghWK.js +0 -331
- package/dist/provider.runtime-BX8GcCYx.js +0 -2
- package/dist/runtime-api.monitor-DCS_ETft.js +0 -6
- package/dist/targets-fjJt3PYG.js +0 -3
- /package/node_modules/{zod → @discord/embedded-app-sdk/node_modules/zod}/src/v4/core/function.ts +0 -0
- /package/node_modules/{zod → @discord/embedded-app-sdk/node_modules/zod}/v4/core/function.cjs +0 -0
- /package/node_modules/{zod → @discord/embedded-app-sdk/node_modules/zod}/v4/core/function.d.cts +0 -0
- /package/node_modules/{zod → @discord/embedded-app-sdk/node_modules/zod}/v4/core/function.d.ts +0 -0
- /package/node_modules/{zod → @discord/embedded-app-sdk/node_modules/zod}/v4/core/function.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as checks from "./checks.js";
|
|
2
2
|
import * as core from "./core.js";
|
|
3
3
|
import { Doc } from "./doc.js";
|
|
4
|
-
import { safeParse, safeParseAsync } from "./parse.js";
|
|
4
|
+
import { parse, parseAsync, safeParse, safeParseAsync } from "./parse.js";
|
|
5
5
|
import * as regexes from "./regexes.js";
|
|
6
6
|
import * as util from "./util.js";
|
|
7
7
|
import { version } from "./versions.js";
|
|
@@ -16,7 +16,6 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
16
16
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
17
17
|
checks.unshift(inst);
|
|
18
18
|
}
|
|
19
|
-
//
|
|
20
19
|
for (const ch of checks) {
|
|
21
20
|
for (const fn of ch._zod.onattach) {
|
|
22
21
|
fn(inst);
|
|
@@ -36,6 +35,8 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
36
35
|
let asyncResult;
|
|
37
36
|
for (const ch of checks) {
|
|
38
37
|
if (ch._zod.def.when) {
|
|
38
|
+
if (util.explicitlyAborted(payload))
|
|
39
|
+
continue;
|
|
39
40
|
const shouldRun = ch._zod.def.when(payload);
|
|
40
41
|
if (!shouldRun)
|
|
41
42
|
continue;
|
|
@@ -73,7 +74,37 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
73
74
|
}
|
|
74
75
|
return payload;
|
|
75
76
|
};
|
|
77
|
+
const handleCanaryResult = (canary, payload, ctx) => {
|
|
78
|
+
// abort if the canary is aborted
|
|
79
|
+
if (util.aborted(canary)) {
|
|
80
|
+
canary.aborted = true;
|
|
81
|
+
return canary;
|
|
82
|
+
}
|
|
83
|
+
// run checks first, then
|
|
84
|
+
const checkResult = runChecks(payload, checks, ctx);
|
|
85
|
+
if (checkResult instanceof Promise) {
|
|
86
|
+
if (ctx.async === false)
|
|
87
|
+
throw new core.$ZodAsyncError();
|
|
88
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
89
|
+
}
|
|
90
|
+
return inst._zod.parse(checkResult, ctx);
|
|
91
|
+
};
|
|
76
92
|
inst._zod.run = (payload, ctx) => {
|
|
93
|
+
if (ctx.skipChecks) {
|
|
94
|
+
return inst._zod.parse(payload, ctx);
|
|
95
|
+
}
|
|
96
|
+
if (ctx.direction === "backward") {
|
|
97
|
+
// run canary
|
|
98
|
+
// initial pass (no checks)
|
|
99
|
+
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
100
|
+
if (canary instanceof Promise) {
|
|
101
|
+
return canary.then((canary) => {
|
|
102
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
106
|
+
}
|
|
107
|
+
// forward
|
|
77
108
|
const result = inst._zod.parse(payload, ctx);
|
|
78
109
|
if (result instanceof Promise) {
|
|
79
110
|
if (ctx.async === false)
|
|
@@ -83,7 +114,8 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
83
114
|
return runChecks(result, checks, ctx);
|
|
84
115
|
};
|
|
85
116
|
}
|
|
86
|
-
|
|
117
|
+
// Lazy initialize ~standard to avoid creating objects for every schema
|
|
118
|
+
util.defineLazy(inst, "~standard", () => ({
|
|
87
119
|
validate: (value) => {
|
|
88
120
|
try {
|
|
89
121
|
const r = safeParse(inst, value);
|
|
@@ -95,7 +127,7 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
95
127
|
},
|
|
96
128
|
vendor: "zod",
|
|
97
129
|
version: 1,
|
|
98
|
-
};
|
|
130
|
+
}));
|
|
99
131
|
});
|
|
100
132
|
export { clone } from "./util.js";
|
|
101
133
|
export const $ZodString = /*@__PURE__*/ core.$constructor("$ZodString", (inst, def) => {
|
|
@@ -156,9 +188,25 @@ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) =>
|
|
|
156
188
|
$ZodStringFormat.init(inst, def);
|
|
157
189
|
inst._zod.check = (payload) => {
|
|
158
190
|
try {
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
|
|
191
|
+
// Trim whitespace from input
|
|
192
|
+
const trimmed = payload.value.trim();
|
|
193
|
+
// When normalize is off, require :// for http/https URLs
|
|
194
|
+
// This prevents strings like "http:example.com" or "https:/path" from being silently accepted
|
|
195
|
+
if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source) {
|
|
196
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
197
|
+
payload.issues.push({
|
|
198
|
+
code: "invalid_format",
|
|
199
|
+
format: "url",
|
|
200
|
+
note: "Invalid URL format",
|
|
201
|
+
input: payload.value,
|
|
202
|
+
inst,
|
|
203
|
+
continue: !def.abort,
|
|
204
|
+
});
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// @ts-ignore
|
|
209
|
+
const url = new URL(trimmed);
|
|
162
210
|
if (def.hostname) {
|
|
163
211
|
def.hostname.lastIndex = 0;
|
|
164
212
|
if (!def.hostname.test(url.hostname)) {
|
|
@@ -166,7 +214,7 @@ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) =>
|
|
|
166
214
|
code: "invalid_format",
|
|
167
215
|
format: "url",
|
|
168
216
|
note: "Invalid hostname",
|
|
169
|
-
pattern:
|
|
217
|
+
pattern: def.hostname.source,
|
|
170
218
|
input: payload.value,
|
|
171
219
|
inst,
|
|
172
220
|
continue: !def.abort,
|
|
@@ -187,12 +235,14 @@ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) =>
|
|
|
187
235
|
});
|
|
188
236
|
}
|
|
189
237
|
}
|
|
190
|
-
//
|
|
191
|
-
if (
|
|
192
|
-
|
|
238
|
+
// Set the output value based on normalize flag
|
|
239
|
+
if (def.normalize) {
|
|
240
|
+
// Use normalized URL
|
|
241
|
+
payload.value = url.href;
|
|
193
242
|
}
|
|
194
243
|
else {
|
|
195
|
-
|
|
244
|
+
// Preserve the original input (trimmed)
|
|
245
|
+
payload.value = trimmed;
|
|
196
246
|
}
|
|
197
247
|
return;
|
|
198
248
|
}
|
|
@@ -215,6 +265,11 @@ export const $ZodNanoID = /*@__PURE__*/ core.$constructor("$ZodNanoID", (inst, d
|
|
|
215
265
|
def.pattern ?? (def.pattern = regexes.nanoid);
|
|
216
266
|
$ZodStringFormat.init(inst, def);
|
|
217
267
|
});
|
|
268
|
+
/**
|
|
269
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
270
|
+
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
271
|
+
* See https://github.com/paralleldrive/cuid.
|
|
272
|
+
*/
|
|
218
273
|
export const $ZodCUID = /*@__PURE__*/ core.$constructor("$ZodCUID", (inst, def) => {
|
|
219
274
|
def.pattern ?? (def.pattern = regexes.cuid);
|
|
220
275
|
$ZodStringFormat.init(inst, def);
|
|
@@ -254,20 +309,15 @@ export const $ZodISODuration = /*@__PURE__*/ core.$constructor("$ZodISODuration"
|
|
|
254
309
|
export const $ZodIPv4 = /*@__PURE__*/ core.$constructor("$ZodIPv4", (inst, def) => {
|
|
255
310
|
def.pattern ?? (def.pattern = regexes.ipv4);
|
|
256
311
|
$ZodStringFormat.init(inst, def);
|
|
257
|
-
inst._zod.
|
|
258
|
-
const bag = inst._zod.bag;
|
|
259
|
-
bag.format = `ipv4`;
|
|
260
|
-
});
|
|
312
|
+
inst._zod.bag.format = `ipv4`;
|
|
261
313
|
});
|
|
262
314
|
export const $ZodIPv6 = /*@__PURE__*/ core.$constructor("$ZodIPv6", (inst, def) => {
|
|
263
315
|
def.pattern ?? (def.pattern = regexes.ipv6);
|
|
264
316
|
$ZodStringFormat.init(inst, def);
|
|
265
|
-
inst._zod.
|
|
266
|
-
const bag = inst._zod.bag;
|
|
267
|
-
bag.format = `ipv6`;
|
|
268
|
-
});
|
|
317
|
+
inst._zod.bag.format = `ipv6`;
|
|
269
318
|
inst._zod.check = (payload) => {
|
|
270
319
|
try {
|
|
320
|
+
// @ts-ignore
|
|
271
321
|
new URL(`http://[${payload.value}]`);
|
|
272
322
|
// return;
|
|
273
323
|
}
|
|
@@ -282,6 +332,11 @@ export const $ZodIPv6 = /*@__PURE__*/ core.$constructor("$ZodIPv6", (inst, def)
|
|
|
282
332
|
}
|
|
283
333
|
};
|
|
284
334
|
});
|
|
335
|
+
export const $ZodMAC = /*@__PURE__*/ core.$constructor("$ZodMAC", (inst, def) => {
|
|
336
|
+
def.pattern ?? (def.pattern = regexes.mac(def.delimiter));
|
|
337
|
+
$ZodStringFormat.init(inst, def);
|
|
338
|
+
inst._zod.bag.format = `mac`;
|
|
339
|
+
});
|
|
285
340
|
export const $ZodCIDRv4 = /*@__PURE__*/ core.$constructor("$ZodCIDRv4", (inst, def) => {
|
|
286
341
|
def.pattern ?? (def.pattern = regexes.cidrv4);
|
|
287
342
|
$ZodStringFormat.init(inst, def);
|
|
@@ -290,8 +345,11 @@ export const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor("$ZodCIDRv6", (inst, d
|
|
|
290
345
|
def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
|
|
291
346
|
$ZodStringFormat.init(inst, def);
|
|
292
347
|
inst._zod.check = (payload) => {
|
|
293
|
-
const
|
|
348
|
+
const parts = payload.value.split("/");
|
|
294
349
|
try {
|
|
350
|
+
if (parts.length !== 2)
|
|
351
|
+
throw new Error();
|
|
352
|
+
const [address, prefix] = parts;
|
|
295
353
|
if (!prefix)
|
|
296
354
|
throw new Error();
|
|
297
355
|
const prefixNum = Number(prefix);
|
|
@@ -299,6 +357,7 @@ export const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor("$ZodCIDRv6", (inst, d
|
|
|
299
357
|
throw new Error();
|
|
300
358
|
if (prefixNum < 0 || prefixNum > 128)
|
|
301
359
|
throw new Error();
|
|
360
|
+
// @ts-ignore
|
|
302
361
|
new URL(`http://[${address}]`);
|
|
303
362
|
}
|
|
304
363
|
catch {
|
|
@@ -316,9 +375,13 @@ export const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor("$ZodCIDRv6", (inst, d
|
|
|
316
375
|
export function isValidBase64(data) {
|
|
317
376
|
if (data === "")
|
|
318
377
|
return true;
|
|
378
|
+
// atob ignores whitespace, so reject it up front.
|
|
379
|
+
if (/\s/.test(data))
|
|
380
|
+
return false;
|
|
319
381
|
if (data.length % 4 !== 0)
|
|
320
382
|
return false;
|
|
321
383
|
try {
|
|
384
|
+
// @ts-ignore
|
|
322
385
|
atob(data);
|
|
323
386
|
return true;
|
|
324
387
|
}
|
|
@@ -329,9 +392,7 @@ export function isValidBase64(data) {
|
|
|
329
392
|
export const $ZodBase64 = /*@__PURE__*/ core.$constructor("$ZodBase64", (inst, def) => {
|
|
330
393
|
def.pattern ?? (def.pattern = regexes.base64);
|
|
331
394
|
$ZodStringFormat.init(inst, def);
|
|
332
|
-
inst._zod.
|
|
333
|
-
inst._zod.bag.contentEncoding = "base64";
|
|
334
|
-
});
|
|
395
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
335
396
|
inst._zod.check = (payload) => {
|
|
336
397
|
if (isValidBase64(payload.value))
|
|
337
398
|
return;
|
|
@@ -355,9 +416,7 @@ export function isValidBase64URL(data) {
|
|
|
355
416
|
export const $ZodBase64URL = /*@__PURE__*/ core.$constructor("$ZodBase64URL", (inst, def) => {
|
|
356
417
|
def.pattern ?? (def.pattern = regexes.base64url);
|
|
357
418
|
$ZodStringFormat.init(inst, def);
|
|
358
|
-
inst._zod.
|
|
359
|
-
inst._zod.bag.contentEncoding = "base64url";
|
|
360
|
-
});
|
|
419
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
361
420
|
inst._zod.check = (payload) => {
|
|
362
421
|
if (isValidBase64URL(payload.value))
|
|
363
422
|
return;
|
|
@@ -383,6 +442,7 @@ export function isValidJWT(token, algorithm = null) {
|
|
|
383
442
|
const [header] = tokensParts;
|
|
384
443
|
if (!header)
|
|
385
444
|
return false;
|
|
445
|
+
// @ts-ignore
|
|
386
446
|
const parsedHeader = JSON.parse(atob(header));
|
|
387
447
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
|
|
388
448
|
return false;
|
|
@@ -454,9 +514,9 @@ export const $ZodNumber = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, d
|
|
|
454
514
|
return payload;
|
|
455
515
|
};
|
|
456
516
|
});
|
|
457
|
-
export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$
|
|
517
|
+
export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$ZodNumberFormat", (inst, def) => {
|
|
458
518
|
checks.$ZodCheckNumberFormat.init(inst, def);
|
|
459
|
-
$ZodNumber.init(inst, def); // no format
|
|
519
|
+
$ZodNumber.init(inst, def); // no format checks
|
|
460
520
|
});
|
|
461
521
|
export const $ZodBoolean = /*@__PURE__*/ core.$constructor("$ZodBoolean", (inst, def) => {
|
|
462
522
|
$ZodType.init(inst, def);
|
|
@@ -499,7 +559,7 @@ export const $ZodBigInt = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, d
|
|
|
499
559
|
return payload;
|
|
500
560
|
};
|
|
501
561
|
});
|
|
502
|
-
export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$
|
|
562
|
+
export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodBigIntFormat", (inst, def) => {
|
|
503
563
|
checks.$ZodCheckBigIntFormat.init(inst, def);
|
|
504
564
|
$ZodBigInt.init(inst, def); // no format checks
|
|
505
565
|
});
|
|
@@ -522,8 +582,6 @@ export const $ZodUndefined = /*@__PURE__*/ core.$constructor("$ZodUndefined", (i
|
|
|
522
582
|
$ZodType.init(inst, def);
|
|
523
583
|
inst._zod.pattern = regexes.undefined;
|
|
524
584
|
inst._zod.values = new Set([undefined]);
|
|
525
|
-
inst._zod.optin = "optional";
|
|
526
|
-
inst._zod.optout = "optional";
|
|
527
585
|
inst._zod.parse = (payload, _ctx) => {
|
|
528
586
|
const input = payload.value;
|
|
529
587
|
if (typeof input === "undefined")
|
|
@@ -653,58 +711,109 @@ export const $ZodArray = /*@__PURE__*/ core.$constructor("$ZodArray", (inst, def
|
|
|
653
711
|
return payload; //handleArrayResultsAsync(parseResults, final);
|
|
654
712
|
};
|
|
655
713
|
});
|
|
656
|
-
function
|
|
657
|
-
|
|
714
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
715
|
+
const isPresent = key in input;
|
|
658
716
|
if (result.issues.length) {
|
|
717
|
+
// For optional-in/out schemas, ignore errors on absent keys.
|
|
718
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
659
721
|
final.issues.push(...util.prefixIssues(key, result.issues));
|
|
660
722
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
final.value[key] = undefined;
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
final.value[key] = result.value;
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
else {
|
|
676
|
-
final.issues.push(...util.prefixIssues(key, result.issues));
|
|
723
|
+
if (!isPresent && !isOptionalIn) {
|
|
724
|
+
if (!result.issues.length) {
|
|
725
|
+
final.issues.push({
|
|
726
|
+
code: "invalid_type",
|
|
727
|
+
expected: "nonoptional",
|
|
728
|
+
input: undefined,
|
|
729
|
+
path: [key],
|
|
730
|
+
});
|
|
677
731
|
}
|
|
732
|
+
return;
|
|
678
733
|
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
if (key in input)
|
|
734
|
+
if (result.value === undefined) {
|
|
735
|
+
if (isPresent) {
|
|
682
736
|
final.value[key] = undefined;
|
|
737
|
+
}
|
|
683
738
|
}
|
|
684
739
|
else {
|
|
685
|
-
// non-undefined value
|
|
686
740
|
final.value[key] = result.value;
|
|
687
741
|
}
|
|
688
742
|
}
|
|
743
|
+
function normalizeDef(def) {
|
|
744
|
+
const keys = Object.keys(def.shape);
|
|
745
|
+
for (const k of keys) {
|
|
746
|
+
if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
|
|
747
|
+
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
const okeys = util.optionalKeys(def.shape);
|
|
751
|
+
return {
|
|
752
|
+
...def,
|
|
753
|
+
keys,
|
|
754
|
+
keySet: new Set(keys),
|
|
755
|
+
numKeys: keys.length,
|
|
756
|
+
optionalKeys: new Set(okeys),
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
760
|
+
const unrecognized = [];
|
|
761
|
+
const keySet = def.keySet;
|
|
762
|
+
const _catchall = def.catchall._zod;
|
|
763
|
+
const t = _catchall.def.type;
|
|
764
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
765
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
766
|
+
for (const key in input) {
|
|
767
|
+
// skip __proto__ so it can't replace the result prototype via the
|
|
768
|
+
// assignment setter on the plain {} we build into
|
|
769
|
+
if (key === "__proto__")
|
|
770
|
+
continue;
|
|
771
|
+
if (keySet.has(key))
|
|
772
|
+
continue;
|
|
773
|
+
if (t === "never") {
|
|
774
|
+
unrecognized.push(key);
|
|
775
|
+
continue;
|
|
776
|
+
}
|
|
777
|
+
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
778
|
+
if (r instanceof Promise) {
|
|
779
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
if (unrecognized.length) {
|
|
786
|
+
payload.issues.push({
|
|
787
|
+
code: "unrecognized_keys",
|
|
788
|
+
keys: unrecognized,
|
|
789
|
+
input,
|
|
790
|
+
inst,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
if (!proms.length)
|
|
794
|
+
return payload;
|
|
795
|
+
return Promise.all(proms).then(() => {
|
|
796
|
+
return payload;
|
|
797
|
+
});
|
|
798
|
+
}
|
|
689
799
|
export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, def) => {
|
|
690
800
|
// requires cast because technically $ZodObject doesn't extend
|
|
691
801
|
$ZodType.init(inst, def);
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
});
|
|
802
|
+
// const sh = def.shape;
|
|
803
|
+
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
|
804
|
+
if (!desc?.get) {
|
|
805
|
+
const sh = def.shape;
|
|
806
|
+
Object.defineProperty(def, "shape", {
|
|
807
|
+
get: () => {
|
|
808
|
+
const newSh = { ...sh };
|
|
809
|
+
Object.defineProperty(def, "shape", {
|
|
810
|
+
value: newSh,
|
|
811
|
+
});
|
|
812
|
+
return newSh;
|
|
813
|
+
},
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
const _normalized = util.cached(() => normalizeDef(def));
|
|
708
817
|
util.defineLazy(inst._zod, "propValues", () => {
|
|
709
818
|
const shape = def.shape;
|
|
710
819
|
const propValues = {};
|
|
@@ -718,6 +827,47 @@ export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, d
|
|
|
718
827
|
}
|
|
719
828
|
return propValues;
|
|
720
829
|
});
|
|
830
|
+
const isObject = util.isObject;
|
|
831
|
+
const catchall = def.catchall;
|
|
832
|
+
let value;
|
|
833
|
+
inst._zod.parse = (payload, ctx) => {
|
|
834
|
+
value ?? (value = _normalized.value);
|
|
835
|
+
const input = payload.value;
|
|
836
|
+
if (!isObject(input)) {
|
|
837
|
+
payload.issues.push({
|
|
838
|
+
expected: "object",
|
|
839
|
+
code: "invalid_type",
|
|
840
|
+
input,
|
|
841
|
+
inst,
|
|
842
|
+
});
|
|
843
|
+
return payload;
|
|
844
|
+
}
|
|
845
|
+
payload.value = {};
|
|
846
|
+
const proms = [];
|
|
847
|
+
const shape = value.shape;
|
|
848
|
+
for (const key of value.keys) {
|
|
849
|
+
const el = shape[key];
|
|
850
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
851
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
852
|
+
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
853
|
+
if (r instanceof Promise) {
|
|
854
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
855
|
+
}
|
|
856
|
+
else {
|
|
857
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
if (!catchall) {
|
|
861
|
+
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
862
|
+
}
|
|
863
|
+
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
864
|
+
};
|
|
865
|
+
});
|
|
866
|
+
export const $ZodObjectJIT = /*@__PURE__*/ core.$constructor("$ZodObjectJIT", (inst, def) => {
|
|
867
|
+
// requires cast because technically $ZodObject doesn't extend
|
|
868
|
+
$ZodObject.init(inst, def);
|
|
869
|
+
const superParse = inst._zod.parse;
|
|
870
|
+
const _normalized = util.cached(() => normalizeDef(def));
|
|
721
871
|
const generateFastpass = (shape) => {
|
|
722
872
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
723
873
|
const normalized = _normalized.value;
|
|
@@ -732,43 +882,82 @@ export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, d
|
|
|
732
882
|
ids[key] = `key_${counter++}`;
|
|
733
883
|
}
|
|
734
884
|
// A: preserve key order {
|
|
735
|
-
doc.write(`const newResult = {}
|
|
885
|
+
doc.write(`const newResult = {};`);
|
|
736
886
|
for (const key of normalized.keys) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
887
|
+
const id = ids[key];
|
|
888
|
+
const k = util.esc(key);
|
|
889
|
+
const schema = shape[key];
|
|
890
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
891
|
+
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
892
|
+
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
893
|
+
if (isOptionalIn && isOptionalOut) {
|
|
894
|
+
// For optional-in/out schemas, ignore errors on absent keys
|
|
741
895
|
doc.write(`
|
|
742
896
|
if (${id}.issues.length) {
|
|
743
|
-
if (
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
897
|
+
if (${k} in input) {
|
|
898
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
899
|
+
...iss,
|
|
900
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
901
|
+
})));
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
if (${id}.value === undefined) {
|
|
906
|
+
if (${k} in input) {
|
|
907
|
+
newResult[${k}] = undefined;
|
|
754
908
|
}
|
|
755
|
-
} else if (${id}.value === undefined) {
|
|
756
|
-
if (${k} in input) newResult[${k}] = undefined;
|
|
757
909
|
} else {
|
|
758
910
|
newResult[${k}] = ${id}.value;
|
|
759
911
|
}
|
|
760
|
-
|
|
912
|
+
|
|
913
|
+
`);
|
|
914
|
+
}
|
|
915
|
+
else if (!isOptionalIn) {
|
|
916
|
+
doc.write(`
|
|
917
|
+
const ${id}_present = ${k} in input;
|
|
918
|
+
if (${id}.issues.length) {
|
|
919
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
920
|
+
...iss,
|
|
921
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
922
|
+
})));
|
|
923
|
+
}
|
|
924
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
925
|
+
payload.issues.push({
|
|
926
|
+
code: "invalid_type",
|
|
927
|
+
expected: "nonoptional",
|
|
928
|
+
input: undefined,
|
|
929
|
+
path: [${k}]
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
if (${id}_present) {
|
|
934
|
+
if (${id}.value === undefined) {
|
|
935
|
+
newResult[${k}] = undefined;
|
|
936
|
+
} else {
|
|
937
|
+
newResult[${k}] = ${id}.value;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
`);
|
|
761
942
|
}
|
|
762
943
|
else {
|
|
763
|
-
const id = ids[key];
|
|
764
|
-
// const id = ids[key];
|
|
765
|
-
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
766
944
|
doc.write(`
|
|
767
|
-
|
|
945
|
+
if (${id}.issues.length) {
|
|
946
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
768
947
|
...iss,
|
|
769
|
-
path: iss.path ? [${
|
|
770
|
-
})))
|
|
771
|
-
|
|
948
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
949
|
+
})));
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
if (${id}.value === undefined) {
|
|
953
|
+
if (${k} in input) {
|
|
954
|
+
newResult[${k}] = undefined;
|
|
955
|
+
}
|
|
956
|
+
} else {
|
|
957
|
+
newResult[${k}] = ${id}.value;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
`);
|
|
772
961
|
}
|
|
773
962
|
}
|
|
774
963
|
doc.write(`payload.value = newResult;`);
|
|
@@ -795,80 +984,16 @@ export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, d
|
|
|
795
984
|
});
|
|
796
985
|
return payload;
|
|
797
986
|
}
|
|
798
|
-
const proms = [];
|
|
799
987
|
if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
|
|
800
988
|
// always synchronous
|
|
801
989
|
if (!fastpass)
|
|
802
990
|
fastpass = generateFastpass(def.shape);
|
|
803
991
|
payload = fastpass(payload, ctx);
|
|
992
|
+
if (!catchall)
|
|
993
|
+
return payload;
|
|
994
|
+
return handleCatchall([], input, payload, ctx, value, inst);
|
|
804
995
|
}
|
|
805
|
-
|
|
806
|
-
payload.value = {};
|
|
807
|
-
const shape = value.shape;
|
|
808
|
-
for (const key of value.keys) {
|
|
809
|
-
const el = shape[key];
|
|
810
|
-
// do not add omitted optional keys
|
|
811
|
-
// if (!(key in input)) {
|
|
812
|
-
// if (optionalKeys.has(key)) continue;
|
|
813
|
-
// payload.issues.push({
|
|
814
|
-
// code: "invalid_type",
|
|
815
|
-
// path: [key],
|
|
816
|
-
// expected: "nonoptional",
|
|
817
|
-
// note: `Missing required key: "${key}"`,
|
|
818
|
-
// input,
|
|
819
|
-
// inst,
|
|
820
|
-
// });
|
|
821
|
-
// }
|
|
822
|
-
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
823
|
-
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
824
|
-
if (r instanceof Promise) {
|
|
825
|
-
proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
|
|
826
|
-
}
|
|
827
|
-
else if (isOptional) {
|
|
828
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
829
|
-
}
|
|
830
|
-
else {
|
|
831
|
-
handleObjectResult(r, payload, key);
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
if (!catchall) {
|
|
836
|
-
// return payload;
|
|
837
|
-
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
838
|
-
}
|
|
839
|
-
const unrecognized = [];
|
|
840
|
-
// iterate over input keys
|
|
841
|
-
const keySet = value.keySet;
|
|
842
|
-
const _catchall = catchall._zod;
|
|
843
|
-
const t = _catchall.def.type;
|
|
844
|
-
for (const key of Object.keys(input)) {
|
|
845
|
-
if (keySet.has(key))
|
|
846
|
-
continue;
|
|
847
|
-
if (t === "never") {
|
|
848
|
-
unrecognized.push(key);
|
|
849
|
-
continue;
|
|
850
|
-
}
|
|
851
|
-
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
852
|
-
if (r instanceof Promise) {
|
|
853
|
-
proms.push(r.then((r) => handleObjectResult(r, payload, key)));
|
|
854
|
-
}
|
|
855
|
-
else {
|
|
856
|
-
handleObjectResult(r, payload, key);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
if (unrecognized.length) {
|
|
860
|
-
payload.issues.push({
|
|
861
|
-
code: "unrecognized_keys",
|
|
862
|
-
keys: unrecognized,
|
|
863
|
-
input,
|
|
864
|
-
inst,
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
if (!proms.length)
|
|
868
|
-
return payload;
|
|
869
|
-
return Promise.all(proms).then(() => {
|
|
870
|
-
return payload;
|
|
871
|
-
});
|
|
996
|
+
return superParse(payload, ctx);
|
|
872
997
|
};
|
|
873
998
|
});
|
|
874
999
|
function handleUnionResults(results, final, inst, ctx) {
|
|
@@ -878,6 +1003,11 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
878
1003
|
return final;
|
|
879
1004
|
}
|
|
880
1005
|
}
|
|
1006
|
+
const nonaborted = results.filter((r) => !util.aborted(r));
|
|
1007
|
+
if (nonaborted.length === 1) {
|
|
1008
|
+
final.value = nonaborted[0].value;
|
|
1009
|
+
return nonaborted[0];
|
|
1010
|
+
}
|
|
881
1011
|
final.issues.push({
|
|
882
1012
|
code: "invalid_union",
|
|
883
1013
|
input: final.value,
|
|
@@ -903,7 +1033,11 @@ export const $ZodUnion = /*@__PURE__*/ core.$constructor("$ZodUnion", (inst, def
|
|
|
903
1033
|
}
|
|
904
1034
|
return undefined;
|
|
905
1035
|
});
|
|
1036
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
906
1037
|
inst._zod.parse = (payload, ctx) => {
|
|
1038
|
+
if (first) {
|
|
1039
|
+
return first(payload, ctx);
|
|
1040
|
+
}
|
|
907
1041
|
let async = false;
|
|
908
1042
|
const results = [];
|
|
909
1043
|
for (const option of def.options) {
|
|
@@ -928,9 +1062,67 @@ export const $ZodUnion = /*@__PURE__*/ core.$constructor("$ZodUnion", (inst, def
|
|
|
928
1062
|
});
|
|
929
1063
|
};
|
|
930
1064
|
});
|
|
1065
|
+
function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
1066
|
+
const successes = results.filter((r) => r.issues.length === 0);
|
|
1067
|
+
if (successes.length === 1) {
|
|
1068
|
+
final.value = successes[0].value;
|
|
1069
|
+
return final;
|
|
1070
|
+
}
|
|
1071
|
+
if (successes.length === 0) {
|
|
1072
|
+
// No matches - same as regular union
|
|
1073
|
+
final.issues.push({
|
|
1074
|
+
code: "invalid_union",
|
|
1075
|
+
input: final.value,
|
|
1076
|
+
inst,
|
|
1077
|
+
errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
else {
|
|
1081
|
+
// Multiple matches - exclusive union failure
|
|
1082
|
+
final.issues.push({
|
|
1083
|
+
code: "invalid_union",
|
|
1084
|
+
input: final.value,
|
|
1085
|
+
inst,
|
|
1086
|
+
errors: [],
|
|
1087
|
+
inclusive: false,
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
return final;
|
|
1091
|
+
}
|
|
1092
|
+
export const $ZodXor = /*@__PURE__*/ core.$constructor("$ZodXor", (inst, def) => {
|
|
1093
|
+
$ZodUnion.init(inst, def);
|
|
1094
|
+
def.inclusive = false;
|
|
1095
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1096
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1097
|
+
if (first) {
|
|
1098
|
+
return first(payload, ctx);
|
|
1099
|
+
}
|
|
1100
|
+
let async = false;
|
|
1101
|
+
const results = [];
|
|
1102
|
+
for (const option of def.options) {
|
|
1103
|
+
const result = option._zod.run({
|
|
1104
|
+
value: payload.value,
|
|
1105
|
+
issues: [],
|
|
1106
|
+
}, ctx);
|
|
1107
|
+
if (result instanceof Promise) {
|
|
1108
|
+
results.push(result);
|
|
1109
|
+
async = true;
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
results.push(result);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
if (!async)
|
|
1116
|
+
return handleExclusiveUnionResults(results, payload, inst, ctx);
|
|
1117
|
+
return Promise.all(results).then((results) => {
|
|
1118
|
+
return handleExclusiveUnionResults(results, payload, inst, ctx);
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
});
|
|
931
1122
|
export const $ZodDiscriminatedUnion =
|
|
932
1123
|
/*@__PURE__*/
|
|
933
1124
|
core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
1125
|
+
def.inclusive = false;
|
|
934
1126
|
$ZodUnion.init(inst, def);
|
|
935
1127
|
const _super = inst._zod.parse;
|
|
936
1128
|
util.defineLazy(inst._zod, "propValues", () => {
|
|
@@ -953,7 +1145,7 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
953
1145
|
const opts = def.options;
|
|
954
1146
|
const map = new Map();
|
|
955
1147
|
for (const o of opts) {
|
|
956
|
-
const values = o._zod.propValues[def.discriminator];
|
|
1148
|
+
const values = o._zod.propValues?.[def.discriminator];
|
|
957
1149
|
if (!values || values.size === 0)
|
|
958
1150
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
959
1151
|
for (const v of values) {
|
|
@@ -980,7 +1172,11 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
980
1172
|
if (opt) {
|
|
981
1173
|
return opt._zod.run(payload, ctx);
|
|
982
1174
|
}
|
|
983
|
-
|
|
1175
|
+
// Fall back to union matching when the fast discriminator path fails:
|
|
1176
|
+
// - explicitly enabled via unionFallback, or
|
|
1177
|
+
// - during backward direction (encode), since codec-based discriminators
|
|
1178
|
+
// have different values in forward vs backward directions
|
|
1179
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
984
1180
|
return _super(payload, ctx);
|
|
985
1181
|
}
|
|
986
1182
|
// no matching discriminator
|
|
@@ -988,6 +1184,8 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
988
1184
|
code: "invalid_union",
|
|
989
1185
|
errors: [],
|
|
990
1186
|
note: "No matching discriminator",
|
|
1187
|
+
discriminator: def.discriminator,
|
|
1188
|
+
options: Array.from(disc.value.keys()),
|
|
991
1189
|
input,
|
|
992
1190
|
path: [def.discriminator],
|
|
993
1191
|
inst,
|
|
@@ -1057,11 +1255,38 @@ function mergeValues(a, b) {
|
|
|
1057
1255
|
return { valid: false, mergeErrorPath: [] };
|
|
1058
1256
|
}
|
|
1059
1257
|
function handleIntersectionResults(result, left, right) {
|
|
1060
|
-
|
|
1061
|
-
|
|
1258
|
+
// Track which side(s) report each key as unrecognized
|
|
1259
|
+
const unrecKeys = new Map();
|
|
1260
|
+
let unrecIssue;
|
|
1261
|
+
for (const iss of left.issues) {
|
|
1262
|
+
if (iss.code === "unrecognized_keys") {
|
|
1263
|
+
unrecIssue ?? (unrecIssue = iss);
|
|
1264
|
+
for (const k of iss.keys) {
|
|
1265
|
+
if (!unrecKeys.has(k))
|
|
1266
|
+
unrecKeys.set(k, {});
|
|
1267
|
+
unrecKeys.get(k).l = true;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
else {
|
|
1271
|
+
result.issues.push(iss);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
for (const iss of right.issues) {
|
|
1275
|
+
if (iss.code === "unrecognized_keys") {
|
|
1276
|
+
for (const k of iss.keys) {
|
|
1277
|
+
if (!unrecKeys.has(k))
|
|
1278
|
+
unrecKeys.set(k, {});
|
|
1279
|
+
unrecKeys.get(k).r = true;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
result.issues.push(iss);
|
|
1284
|
+
}
|
|
1062
1285
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1286
|
+
// Report only keys unrecognized by BOTH sides
|
|
1287
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
1288
|
+
if (bothKeys.length && unrecIssue) {
|
|
1289
|
+
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
1065
1290
|
}
|
|
1066
1291
|
if (util.aborted(result))
|
|
1067
1292
|
return result;
|
|
@@ -1075,7 +1300,6 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1075
1300
|
export const $ZodTuple = /*@__PURE__*/ core.$constructor("$ZodTuple", (inst, def) => {
|
|
1076
1301
|
$ZodType.init(inst, def);
|
|
1077
1302
|
const items = def.items;
|
|
1078
|
-
const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
1079
1303
|
inst._zod.parse = (payload, ctx) => {
|
|
1080
1304
|
const input = payload.value;
|
|
1081
1305
|
if (!Array.isArray(input)) {
|
|
@@ -1089,63 +1313,112 @@ export const $ZodTuple = /*@__PURE__*/ core.$constructor("$ZodTuple", (inst, def
|
|
|
1089
1313
|
}
|
|
1090
1314
|
payload.value = [];
|
|
1091
1315
|
const proms = [];
|
|
1316
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
1317
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
1092
1318
|
if (!def.rest) {
|
|
1093
|
-
|
|
1094
|
-
const tooSmall = input.length < optStart - 1;
|
|
1095
|
-
if (tooBig || tooSmall) {
|
|
1319
|
+
if (input.length < optinStart) {
|
|
1096
1320
|
payload.issues.push({
|
|
1321
|
+
code: "too_small",
|
|
1322
|
+
minimum: optinStart,
|
|
1323
|
+
inclusive: true,
|
|
1097
1324
|
input,
|
|
1098
1325
|
inst,
|
|
1099
1326
|
origin: "array",
|
|
1100
|
-
...(tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }),
|
|
1101
1327
|
});
|
|
1102
1328
|
return payload;
|
|
1103
1329
|
}
|
|
1330
|
+
if (input.length > items.length) {
|
|
1331
|
+
payload.issues.push({
|
|
1332
|
+
code: "too_big",
|
|
1333
|
+
maximum: items.length,
|
|
1334
|
+
inclusive: true,
|
|
1335
|
+
input,
|
|
1336
|
+
inst,
|
|
1337
|
+
origin: "array",
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1104
1340
|
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
proms.push(result.then((result) => handleTupleResult(result, payload, i)));
|
|
1341
|
+
// Run every item in parallel, collecting results into an indexed
|
|
1342
|
+
// array. The post-processing in `handleTupleResults` walks them in
|
|
1343
|
+
// order so it can decide whether an absent optional-output error can
|
|
1344
|
+
// truncate the tail or must be reported to preserve required output.
|
|
1345
|
+
const itemResults = new Array(items.length);
|
|
1346
|
+
for (let i = 0; i < items.length; i++) {
|
|
1347
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
1348
|
+
if (r instanceof Promise) {
|
|
1349
|
+
proms.push(r.then((rr) => {
|
|
1350
|
+
itemResults[i] = rr;
|
|
1351
|
+
}));
|
|
1117
1352
|
}
|
|
1118
1353
|
else {
|
|
1119
|
-
|
|
1354
|
+
itemResults[i] = r;
|
|
1120
1355
|
}
|
|
1121
1356
|
}
|
|
1122
1357
|
if (def.rest) {
|
|
1358
|
+
let i = items.length - 1;
|
|
1123
1359
|
const rest = input.slice(items.length);
|
|
1124
1360
|
for (const el of rest) {
|
|
1125
1361
|
i++;
|
|
1126
|
-
const result = def.rest._zod.run({
|
|
1127
|
-
value: el,
|
|
1128
|
-
issues: [],
|
|
1129
|
-
}, ctx);
|
|
1362
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
1130
1363
|
if (result instanceof Promise) {
|
|
1131
|
-
proms.push(result.then((
|
|
1364
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
1132
1365
|
}
|
|
1133
1366
|
else {
|
|
1134
1367
|
handleTupleResult(result, payload, i);
|
|
1135
1368
|
}
|
|
1136
1369
|
}
|
|
1137
1370
|
}
|
|
1138
|
-
if (proms.length)
|
|
1139
|
-
return Promise.all(proms).then(() => payload);
|
|
1140
|
-
|
|
1371
|
+
if (proms.length) {
|
|
1372
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
1373
|
+
}
|
|
1374
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
1141
1375
|
};
|
|
1142
1376
|
});
|
|
1377
|
+
function getTupleOptStart(items, key) {
|
|
1378
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
1379
|
+
if (items[i]._zod[key] !== "optional")
|
|
1380
|
+
return i + 1;
|
|
1381
|
+
}
|
|
1382
|
+
return 0;
|
|
1383
|
+
}
|
|
1143
1384
|
function handleTupleResult(result, final, index) {
|
|
1144
1385
|
if (result.issues.length) {
|
|
1145
1386
|
final.issues.push(...util.prefixIssues(index, result.issues));
|
|
1146
1387
|
}
|
|
1147
1388
|
final.value[index] = result.value;
|
|
1148
1389
|
}
|
|
1390
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
1391
|
+
// Walk results in order. Mirror $ZodObject's swallow-on-absent-optional
|
|
1392
|
+
// rule, but only after `optoutStart`: the first index where the output
|
|
1393
|
+
// tuple tail can be absent.
|
|
1394
|
+
for (let i = 0; i < items.length; i++) {
|
|
1395
|
+
const r = itemResults[i];
|
|
1396
|
+
const isPresent = i < input.length;
|
|
1397
|
+
if (r.issues.length) {
|
|
1398
|
+
if (!isPresent && i >= optoutStart) {
|
|
1399
|
+
final.value.length = i;
|
|
1400
|
+
break;
|
|
1401
|
+
}
|
|
1402
|
+
final.issues.push(...util.prefixIssues(i, r.issues));
|
|
1403
|
+
}
|
|
1404
|
+
final.value[i] = r.value;
|
|
1405
|
+
}
|
|
1406
|
+
// Drop trailing slots that produced `undefined` for absent input
|
|
1407
|
+
// (the array analog of an absent optional key on an object). The
|
|
1408
|
+
// `i >= input.length` floor is critical: an explicit `undefined`
|
|
1409
|
+
// *inside* the input must be preserved even when the schema is
|
|
1410
|
+
// optional-out (e.g. `z.string().or(z.undefined())` accepting an
|
|
1411
|
+
// explicit undefined value).
|
|
1412
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
1413
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
1414
|
+
final.value.length = i;
|
|
1415
|
+
}
|
|
1416
|
+
else {
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
return final;
|
|
1421
|
+
}
|
|
1149
1422
|
export const $ZodRecord = /*@__PURE__*/ core.$constructor("$ZodRecord", (inst, def) => {
|
|
1150
1423
|
$ZodType.init(inst, def);
|
|
1151
1424
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1160,31 +1433,49 @@ export const $ZodRecord = /*@__PURE__*/ core.$constructor("$ZodRecord", (inst, d
|
|
|
1160
1433
|
return payload;
|
|
1161
1434
|
}
|
|
1162
1435
|
const proms = [];
|
|
1163
|
-
|
|
1164
|
-
|
|
1436
|
+
const values = def.keyType._zod.values;
|
|
1437
|
+
if (values) {
|
|
1165
1438
|
payload.value = {};
|
|
1439
|
+
const recordKeys = new Set();
|
|
1166
1440
|
for (const key of values) {
|
|
1167
1441
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
1442
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
1443
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1444
|
+
if (keyResult instanceof Promise) {
|
|
1445
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1446
|
+
}
|
|
1447
|
+
if (keyResult.issues.length) {
|
|
1448
|
+
payload.issues.push({
|
|
1449
|
+
code: "invalid_key",
|
|
1450
|
+
origin: "record",
|
|
1451
|
+
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
1452
|
+
input: key,
|
|
1453
|
+
path: [key],
|
|
1454
|
+
inst,
|
|
1455
|
+
});
|
|
1456
|
+
continue;
|
|
1457
|
+
}
|
|
1458
|
+
const outKey = keyResult.value;
|
|
1168
1459
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1169
1460
|
if (result instanceof Promise) {
|
|
1170
1461
|
proms.push(result.then((result) => {
|
|
1171
1462
|
if (result.issues.length) {
|
|
1172
1463
|
payload.issues.push(...util.prefixIssues(key, result.issues));
|
|
1173
1464
|
}
|
|
1174
|
-
payload.value[
|
|
1465
|
+
payload.value[outKey] = result.value;
|
|
1175
1466
|
}));
|
|
1176
1467
|
}
|
|
1177
1468
|
else {
|
|
1178
1469
|
if (result.issues.length) {
|
|
1179
1470
|
payload.issues.push(...util.prefixIssues(key, result.issues));
|
|
1180
1471
|
}
|
|
1181
|
-
payload.value[
|
|
1472
|
+
payload.value[outKey] = result.value;
|
|
1182
1473
|
}
|
|
1183
1474
|
}
|
|
1184
1475
|
}
|
|
1185
1476
|
let unrecognized;
|
|
1186
1477
|
for (const key in input) {
|
|
1187
|
-
if (!
|
|
1478
|
+
if (!recordKeys.has(key)) {
|
|
1188
1479
|
unrecognized = unrecognized ?? [];
|
|
1189
1480
|
unrecognized.push(key);
|
|
1190
1481
|
}
|
|
@@ -1200,23 +1491,44 @@ export const $ZodRecord = /*@__PURE__*/ core.$constructor("$ZodRecord", (inst, d
|
|
|
1200
1491
|
}
|
|
1201
1492
|
else {
|
|
1202
1493
|
payload.value = {};
|
|
1494
|
+
// Reflect.ownKeys for Symbol-key support; filter non-enumerable to match z.object()
|
|
1203
1495
|
for (const key of Reflect.ownKeys(input)) {
|
|
1204
1496
|
if (key === "__proto__")
|
|
1205
1497
|
continue;
|
|
1206
|
-
|
|
1498
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
1499
|
+
continue;
|
|
1500
|
+
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1207
1501
|
if (keyResult instanceof Promise) {
|
|
1208
1502
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1209
1503
|
}
|
|
1504
|
+
// Numeric string fallback: if key is a numeric string and failed, retry with Number(key)
|
|
1505
|
+
// This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals
|
|
1506
|
+
const checkNumericKey = typeof key === "string" && regexes.number.test(key) && keyResult.issues.length;
|
|
1507
|
+
if (checkNumericKey) {
|
|
1508
|
+
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
1509
|
+
if (retryResult instanceof Promise) {
|
|
1510
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1511
|
+
}
|
|
1512
|
+
if (retryResult.issues.length === 0) {
|
|
1513
|
+
keyResult = retryResult;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1210
1516
|
if (keyResult.issues.length) {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1517
|
+
if (def.mode === "loose") {
|
|
1518
|
+
// Pass through unchanged
|
|
1519
|
+
payload.value[key] = input[key];
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
// Default "strict" behavior: error on invalid key
|
|
1523
|
+
payload.issues.push({
|
|
1524
|
+
code: "invalid_key",
|
|
1525
|
+
origin: "record",
|
|
1526
|
+
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
1527
|
+
input: key,
|
|
1528
|
+
path: [key],
|
|
1529
|
+
inst,
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1220
1532
|
continue;
|
|
1221
1533
|
}
|
|
1222
1534
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
@@ -1281,8 +1593,8 @@ function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
|
|
|
1281
1593
|
}
|
|
1282
1594
|
else {
|
|
1283
1595
|
final.issues.push({
|
|
1284
|
-
origin: "map",
|
|
1285
1596
|
code: "invalid_key",
|
|
1597
|
+
origin: "map",
|
|
1286
1598
|
input,
|
|
1287
1599
|
inst,
|
|
1288
1600
|
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
@@ -1343,14 +1655,15 @@ function handleSetResult(result, final) {
|
|
|
1343
1655
|
export const $ZodEnum = /*@__PURE__*/ core.$constructor("$ZodEnum", (inst, def) => {
|
|
1344
1656
|
$ZodType.init(inst, def);
|
|
1345
1657
|
const values = util.getEnumValues(def.entries);
|
|
1346
|
-
|
|
1658
|
+
const valuesSet = new Set(values);
|
|
1659
|
+
inst._zod.values = valuesSet;
|
|
1347
1660
|
inst._zod.pattern = new RegExp(`^(${values
|
|
1348
1661
|
.filter((k) => util.propertyKeyTypes.has(typeof k))
|
|
1349
1662
|
.map((o) => (typeof o === "string" ? util.escapeRegex(o) : o.toString()))
|
|
1350
1663
|
.join("|")})$`);
|
|
1351
1664
|
inst._zod.parse = (payload, _ctx) => {
|
|
1352
1665
|
const input = payload.value;
|
|
1353
|
-
if (
|
|
1666
|
+
if (valuesSet.has(input)) {
|
|
1354
1667
|
return payload;
|
|
1355
1668
|
}
|
|
1356
1669
|
payload.issues.push({
|
|
@@ -1364,13 +1677,17 @@ export const $ZodEnum = /*@__PURE__*/ core.$constructor("$ZodEnum", (inst, def)
|
|
|
1364
1677
|
});
|
|
1365
1678
|
export const $ZodLiteral = /*@__PURE__*/ core.$constructor("$ZodLiteral", (inst, def) => {
|
|
1366
1679
|
$ZodType.init(inst, def);
|
|
1367
|
-
|
|
1680
|
+
if (def.values.length === 0) {
|
|
1681
|
+
throw new Error("Cannot create literal schema with no valid values");
|
|
1682
|
+
}
|
|
1683
|
+
const values = new Set(def.values);
|
|
1684
|
+
inst._zod.values = values;
|
|
1368
1685
|
inst._zod.pattern = new RegExp(`^(${def.values
|
|
1369
|
-
.map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? o.toString() : String(o)))
|
|
1686
|
+
.map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o)))
|
|
1370
1687
|
.join("|")})$`);
|
|
1371
1688
|
inst._zod.parse = (payload, _ctx) => {
|
|
1372
1689
|
const input = payload.value;
|
|
1373
|
-
if (
|
|
1690
|
+
if (values.has(input)) {
|
|
1374
1691
|
return payload;
|
|
1375
1692
|
}
|
|
1376
1693
|
payload.issues.push({
|
|
@@ -1386,6 +1703,7 @@ export const $ZodFile = /*@__PURE__*/ core.$constructor("$ZodFile", (inst, def)
|
|
|
1386
1703
|
$ZodType.init(inst, def);
|
|
1387
1704
|
inst._zod.parse = (payload, _ctx) => {
|
|
1388
1705
|
const input = payload.value;
|
|
1706
|
+
// @ts-ignore
|
|
1389
1707
|
if (input instanceof File)
|
|
1390
1708
|
return payload;
|
|
1391
1709
|
payload.issues.push({
|
|
@@ -1399,12 +1717,17 @@ export const $ZodFile = /*@__PURE__*/ core.$constructor("$ZodFile", (inst, def)
|
|
|
1399
1717
|
});
|
|
1400
1718
|
export const $ZodTransform = /*@__PURE__*/ core.$constructor("$ZodTransform", (inst, def) => {
|
|
1401
1719
|
$ZodType.init(inst, def);
|
|
1402
|
-
inst._zod.
|
|
1720
|
+
inst._zod.optin = "optional";
|
|
1721
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1722
|
+
if (ctx.direction === "backward") {
|
|
1723
|
+
throw new core.$ZodEncodeError(inst.constructor.name);
|
|
1724
|
+
}
|
|
1403
1725
|
const _out = def.transform(payload.value, payload);
|
|
1404
|
-
if (
|
|
1726
|
+
if (ctx.async) {
|
|
1405
1727
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
1406
1728
|
return output.then((output) => {
|
|
1407
1729
|
payload.value = output;
|
|
1730
|
+
payload.fallback = true;
|
|
1408
1731
|
return payload;
|
|
1409
1732
|
});
|
|
1410
1733
|
}
|
|
@@ -1412,9 +1735,16 @@ export const $ZodTransform = /*@__PURE__*/ core.$constructor("$ZodTransform", (i
|
|
|
1412
1735
|
throw new core.$ZodAsyncError();
|
|
1413
1736
|
}
|
|
1414
1737
|
payload.value = _out;
|
|
1738
|
+
payload.fallback = true;
|
|
1415
1739
|
return payload;
|
|
1416
1740
|
};
|
|
1417
1741
|
});
|
|
1742
|
+
function handleOptionalResult(result, input) {
|
|
1743
|
+
if (input === undefined && (result.issues.length || result.fallback)) {
|
|
1744
|
+
return { issues: [], value: undefined };
|
|
1745
|
+
}
|
|
1746
|
+
return result;
|
|
1747
|
+
}
|
|
1418
1748
|
export const $ZodOptional = /*@__PURE__*/ core.$constructor("$ZodOptional", (inst, def) => {
|
|
1419
1749
|
$ZodType.init(inst, def);
|
|
1420
1750
|
inst._zod.optin = "optional";
|
|
@@ -1428,7 +1758,11 @@ export const $ZodOptional = /*@__PURE__*/ core.$constructor("$ZodOptional", (ins
|
|
|
1428
1758
|
});
|
|
1429
1759
|
inst._zod.parse = (payload, ctx) => {
|
|
1430
1760
|
if (def.innerType._zod.optin === "optional") {
|
|
1431
|
-
|
|
1761
|
+
const input = payload.value;
|
|
1762
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1763
|
+
if (result instanceof Promise)
|
|
1764
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
1765
|
+
return handleOptionalResult(result, input);
|
|
1432
1766
|
}
|
|
1433
1767
|
if (payload.value === undefined) {
|
|
1434
1768
|
return payload;
|
|
@@ -1436,6 +1770,17 @@ export const $ZodOptional = /*@__PURE__*/ core.$constructor("$ZodOptional", (ins
|
|
|
1436
1770
|
return def.innerType._zod.run(payload, ctx);
|
|
1437
1771
|
};
|
|
1438
1772
|
});
|
|
1773
|
+
export const $ZodExactOptional = /*@__PURE__*/ core.$constructor("$ZodExactOptional", (inst, def) => {
|
|
1774
|
+
// Call parent init - inherits optin/optout = "optional"
|
|
1775
|
+
$ZodOptional.init(inst, def);
|
|
1776
|
+
// Override values/pattern to NOT add undefined
|
|
1777
|
+
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1778
|
+
util.defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
1779
|
+
// Override parse to just delegate (no undefined handling)
|
|
1780
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1781
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1782
|
+
};
|
|
1783
|
+
});
|
|
1439
1784
|
export const $ZodNullable = /*@__PURE__*/ core.$constructor("$ZodNullable", (inst, def) => {
|
|
1440
1785
|
$ZodType.init(inst, def);
|
|
1441
1786
|
util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
@@ -1448,6 +1793,7 @@ export const $ZodNullable = /*@__PURE__*/ core.$constructor("$ZodNullable", (ins
|
|
|
1448
1793
|
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;
|
|
1449
1794
|
});
|
|
1450
1795
|
inst._zod.parse = (payload, ctx) => {
|
|
1796
|
+
// Forward direction (decode): allow null to pass through
|
|
1451
1797
|
if (payload.value === null)
|
|
1452
1798
|
return payload;
|
|
1453
1799
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -1459,13 +1805,18 @@ export const $ZodDefault = /*@__PURE__*/ core.$constructor("$ZodDefault", (inst,
|
|
|
1459
1805
|
inst._zod.optin = "optional";
|
|
1460
1806
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1461
1807
|
inst._zod.parse = (payload, ctx) => {
|
|
1808
|
+
if (ctx.direction === "backward") {
|
|
1809
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1810
|
+
}
|
|
1811
|
+
// Forward direction (decode): apply defaults for undefined input
|
|
1462
1812
|
if (payload.value === undefined) {
|
|
1463
1813
|
payload.value = def.defaultValue;
|
|
1464
1814
|
/**
|
|
1465
|
-
* $ZodDefault
|
|
1815
|
+
* $ZodDefault returns the default value immediately in forward direction.
|
|
1466
1816
|
* It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
|
|
1467
1817
|
return payload;
|
|
1468
1818
|
}
|
|
1819
|
+
// Forward direction: continue with default handling
|
|
1469
1820
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1470
1821
|
if (result instanceof Promise) {
|
|
1471
1822
|
return result.then((result) => handleDefaultResult(result, def));
|
|
@@ -1484,6 +1835,10 @@ export const $ZodPrefault = /*@__PURE__*/ core.$constructor("$ZodPrefault", (ins
|
|
|
1484
1835
|
inst._zod.optin = "optional";
|
|
1485
1836
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1486
1837
|
inst._zod.parse = (payload, ctx) => {
|
|
1838
|
+
if (ctx.direction === "backward") {
|
|
1839
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1840
|
+
}
|
|
1841
|
+
// Forward direction (decode): apply prefault for undefined input
|
|
1487
1842
|
if (payload.value === undefined) {
|
|
1488
1843
|
payload.value = def.defaultValue;
|
|
1489
1844
|
}
|
|
@@ -1518,6 +1873,9 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
1518
1873
|
export const $ZodSuccess = /*@__PURE__*/ core.$constructor("$ZodSuccess", (inst, def) => {
|
|
1519
1874
|
$ZodType.init(inst, def);
|
|
1520
1875
|
inst._zod.parse = (payload, ctx) => {
|
|
1876
|
+
if (ctx.direction === "backward") {
|
|
1877
|
+
throw new core.$ZodEncodeError("ZodSuccess");
|
|
1878
|
+
}
|
|
1521
1879
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1522
1880
|
if (result instanceof Promise) {
|
|
1523
1881
|
return result.then((result) => {
|
|
@@ -1535,6 +1893,10 @@ export const $ZodCatch = /*@__PURE__*/ core.$constructor("$ZodCatch", (inst, def
|
|
|
1535
1893
|
util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1536
1894
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1537
1895
|
inst._zod.parse = (payload, ctx) => {
|
|
1896
|
+
if (ctx.direction === "backward") {
|
|
1897
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1898
|
+
}
|
|
1899
|
+
// Forward direction (decode): apply catch logic
|
|
1538
1900
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1539
1901
|
if (result instanceof Promise) {
|
|
1540
1902
|
return result.then((result) => {
|
|
@@ -1548,6 +1910,7 @@ export const $ZodCatch = /*@__PURE__*/ core.$constructor("$ZodCatch", (inst, def
|
|
|
1548
1910
|
input: payload.value,
|
|
1549
1911
|
});
|
|
1550
1912
|
payload.issues = [];
|
|
1913
|
+
payload.fallback = true;
|
|
1551
1914
|
}
|
|
1552
1915
|
return payload;
|
|
1553
1916
|
});
|
|
@@ -1562,6 +1925,7 @@ export const $ZodCatch = /*@__PURE__*/ core.$constructor("$ZodCatch", (inst, def
|
|
|
1562
1925
|
input: payload.value,
|
|
1563
1926
|
});
|
|
1564
1927
|
payload.issues = [];
|
|
1928
|
+
payload.fallback = true;
|
|
1565
1929
|
}
|
|
1566
1930
|
return payload;
|
|
1567
1931
|
};
|
|
@@ -1586,27 +1950,97 @@ export const $ZodPipe = /*@__PURE__*/ core.$constructor("$ZodPipe", (inst, def)
|
|
|
1586
1950
|
util.defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
1587
1951
|
util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
1588
1952
|
util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
1953
|
+
util.defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
1589
1954
|
inst._zod.parse = (payload, ctx) => {
|
|
1955
|
+
if (ctx.direction === "backward") {
|
|
1956
|
+
const right = def.out._zod.run(payload, ctx);
|
|
1957
|
+
if (right instanceof Promise) {
|
|
1958
|
+
return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
1959
|
+
}
|
|
1960
|
+
return handlePipeResult(right, def.in, ctx);
|
|
1961
|
+
}
|
|
1590
1962
|
const left = def.in._zod.run(payload, ctx);
|
|
1591
1963
|
if (left instanceof Promise) {
|
|
1592
|
-
return left.then((left) => handlePipeResult(left, def, ctx));
|
|
1964
|
+
return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
1593
1965
|
}
|
|
1594
|
-
return handlePipeResult(left, def, ctx);
|
|
1966
|
+
return handlePipeResult(left, def.out, ctx);
|
|
1595
1967
|
};
|
|
1596
1968
|
});
|
|
1597
|
-
function handlePipeResult(left,
|
|
1598
|
-
if (
|
|
1969
|
+
function handlePipeResult(left, next, ctx) {
|
|
1970
|
+
if (left.issues.length) {
|
|
1971
|
+
// prevent further checks
|
|
1972
|
+
left.aborted = true;
|
|
1599
1973
|
return left;
|
|
1600
1974
|
}
|
|
1601
|
-
return
|
|
1975
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
1602
1976
|
}
|
|
1977
|
+
export const $ZodCodec = /*@__PURE__*/ core.$constructor("$ZodCodec", (inst, def) => {
|
|
1978
|
+
$ZodType.init(inst, def);
|
|
1979
|
+
util.defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
1980
|
+
util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
1981
|
+
util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
1982
|
+
util.defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
1983
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1984
|
+
const direction = ctx.direction || "forward";
|
|
1985
|
+
if (direction === "forward") {
|
|
1986
|
+
const left = def.in._zod.run(payload, ctx);
|
|
1987
|
+
if (left instanceof Promise) {
|
|
1988
|
+
return left.then((left) => handleCodecAResult(left, def, ctx));
|
|
1989
|
+
}
|
|
1990
|
+
return handleCodecAResult(left, def, ctx);
|
|
1991
|
+
}
|
|
1992
|
+
else {
|
|
1993
|
+
const right = def.out._zod.run(payload, ctx);
|
|
1994
|
+
if (right instanceof Promise) {
|
|
1995
|
+
return right.then((right) => handleCodecAResult(right, def, ctx));
|
|
1996
|
+
}
|
|
1997
|
+
return handleCodecAResult(right, def, ctx);
|
|
1998
|
+
}
|
|
1999
|
+
};
|
|
2000
|
+
});
|
|
2001
|
+
function handleCodecAResult(result, def, ctx) {
|
|
2002
|
+
if (result.issues.length) {
|
|
2003
|
+
// prevent further checks
|
|
2004
|
+
result.aborted = true;
|
|
2005
|
+
return result;
|
|
2006
|
+
}
|
|
2007
|
+
const direction = ctx.direction || "forward";
|
|
2008
|
+
if (direction === "forward") {
|
|
2009
|
+
const transformed = def.transform(result.value, result);
|
|
2010
|
+
if (transformed instanceof Promise) {
|
|
2011
|
+
return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
|
|
2012
|
+
}
|
|
2013
|
+
return handleCodecTxResult(result, transformed, def.out, ctx);
|
|
2014
|
+
}
|
|
2015
|
+
else {
|
|
2016
|
+
const transformed = def.reverseTransform(result.value, result);
|
|
2017
|
+
if (transformed instanceof Promise) {
|
|
2018
|
+
return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
|
|
2019
|
+
}
|
|
2020
|
+
return handleCodecTxResult(result, transformed, def.in, ctx);
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
2024
|
+
// Check if transform added any issues
|
|
2025
|
+
if (left.issues.length) {
|
|
2026
|
+
left.aborted = true;
|
|
2027
|
+
return left;
|
|
2028
|
+
}
|
|
2029
|
+
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
2030
|
+
}
|
|
2031
|
+
export const $ZodPreprocess = /*@__PURE__*/ core.$constructor("$ZodPreprocess", (inst, def) => {
|
|
2032
|
+
$ZodPipe.init(inst, def);
|
|
2033
|
+
});
|
|
1603
2034
|
export const $ZodReadonly = /*@__PURE__*/ core.$constructor("$ZodReadonly", (inst, def) => {
|
|
1604
2035
|
$ZodType.init(inst, def);
|
|
1605
2036
|
util.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
1606
2037
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1607
|
-
util.defineLazy(inst._zod, "optin", () => def.innerType
|
|
1608
|
-
util.defineLazy(inst._zod, "optout", () => def.innerType
|
|
2038
|
+
util.defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
2039
|
+
util.defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
1609
2040
|
inst._zod.parse = (payload, ctx) => {
|
|
2041
|
+
if (ctx.direction === "backward") {
|
|
2042
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2043
|
+
}
|
|
1610
2044
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1611
2045
|
if (result instanceof Promise) {
|
|
1612
2046
|
return result.then(handleReadonlyResult);
|
|
@@ -1622,7 +2056,8 @@ export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplate
|
|
|
1622
2056
|
$ZodType.init(inst, def);
|
|
1623
2057
|
const regexParts = [];
|
|
1624
2058
|
for (const part of def.parts) {
|
|
1625
|
-
if (part
|
|
2059
|
+
if (typeof part === "object" && part !== null) {
|
|
2060
|
+
// is Zod schema
|
|
1626
2061
|
if (!part._zod.pattern) {
|
|
1627
2062
|
// if (!source)
|
|
1628
2063
|
throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
|
|
@@ -1647,7 +2082,7 @@ export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplate
|
|
|
1647
2082
|
payload.issues.push({
|
|
1648
2083
|
input: payload.value,
|
|
1649
2084
|
inst,
|
|
1650
|
-
expected: "
|
|
2085
|
+
expected: "string",
|
|
1651
2086
|
code: "invalid_type",
|
|
1652
2087
|
});
|
|
1653
2088
|
return payload;
|
|
@@ -1658,7 +2093,7 @@ export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplate
|
|
|
1658
2093
|
input: payload.value,
|
|
1659
2094
|
inst,
|
|
1660
2095
|
code: "invalid_format",
|
|
1661
|
-
format: "template_literal",
|
|
2096
|
+
format: def.format ?? "template_literal",
|
|
1662
2097
|
pattern: inst._zod.pattern.source,
|
|
1663
2098
|
});
|
|
1664
2099
|
return payload;
|
|
@@ -1666,6 +2101,85 @@ export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplate
|
|
|
1666
2101
|
return payload;
|
|
1667
2102
|
};
|
|
1668
2103
|
});
|
|
2104
|
+
export const $ZodFunction = /*@__PURE__*/ core.$constructor("$ZodFunction", (inst, def) => {
|
|
2105
|
+
$ZodType.init(inst, def);
|
|
2106
|
+
inst._def = def;
|
|
2107
|
+
inst._zod.def = def;
|
|
2108
|
+
inst.implement = (func) => {
|
|
2109
|
+
if (typeof func !== "function") {
|
|
2110
|
+
throw new Error("implement() must be called with a function");
|
|
2111
|
+
}
|
|
2112
|
+
return function (...args) {
|
|
2113
|
+
const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;
|
|
2114
|
+
const result = Reflect.apply(func, this, parsedArgs);
|
|
2115
|
+
if (inst._def.output) {
|
|
2116
|
+
return parse(inst._def.output, result);
|
|
2117
|
+
}
|
|
2118
|
+
return result;
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
inst.implementAsync = (func) => {
|
|
2122
|
+
if (typeof func !== "function") {
|
|
2123
|
+
throw new Error("implementAsync() must be called with a function");
|
|
2124
|
+
}
|
|
2125
|
+
return async function (...args) {
|
|
2126
|
+
const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args;
|
|
2127
|
+
const result = await Reflect.apply(func, this, parsedArgs);
|
|
2128
|
+
if (inst._def.output) {
|
|
2129
|
+
return await parseAsync(inst._def.output, result);
|
|
2130
|
+
}
|
|
2131
|
+
return result;
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
2135
|
+
if (typeof payload.value !== "function") {
|
|
2136
|
+
payload.issues.push({
|
|
2137
|
+
code: "invalid_type",
|
|
2138
|
+
expected: "function",
|
|
2139
|
+
input: payload.value,
|
|
2140
|
+
inst,
|
|
2141
|
+
});
|
|
2142
|
+
return payload;
|
|
2143
|
+
}
|
|
2144
|
+
// Check if output is a promise type to determine if we should use async implementation
|
|
2145
|
+
const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise";
|
|
2146
|
+
if (hasPromiseOutput) {
|
|
2147
|
+
payload.value = inst.implementAsync(payload.value);
|
|
2148
|
+
}
|
|
2149
|
+
else {
|
|
2150
|
+
payload.value = inst.implement(payload.value);
|
|
2151
|
+
}
|
|
2152
|
+
return payload;
|
|
2153
|
+
};
|
|
2154
|
+
inst.input = (...args) => {
|
|
2155
|
+
const F = inst.constructor;
|
|
2156
|
+
if (Array.isArray(args[0])) {
|
|
2157
|
+
return new F({
|
|
2158
|
+
type: "function",
|
|
2159
|
+
input: new $ZodTuple({
|
|
2160
|
+
type: "tuple",
|
|
2161
|
+
items: args[0],
|
|
2162
|
+
rest: args[1],
|
|
2163
|
+
}),
|
|
2164
|
+
output: inst._def.output,
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
return new F({
|
|
2168
|
+
type: "function",
|
|
2169
|
+
input: args[0],
|
|
2170
|
+
output: inst._def.output,
|
|
2171
|
+
});
|
|
2172
|
+
};
|
|
2173
|
+
inst.output = (output) => {
|
|
2174
|
+
const F = inst.constructor;
|
|
2175
|
+
return new F({
|
|
2176
|
+
type: "function",
|
|
2177
|
+
input: inst._def.input,
|
|
2178
|
+
output,
|
|
2179
|
+
});
|
|
2180
|
+
};
|
|
2181
|
+
return inst;
|
|
2182
|
+
});
|
|
1669
2183
|
export const $ZodPromise = /*@__PURE__*/ core.$constructor("$ZodPromise", (inst, def) => {
|
|
1670
2184
|
$ZodType.init(inst, def);
|
|
1671
2185
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1674,11 +2188,19 @@ export const $ZodPromise = /*@__PURE__*/ core.$constructor("$ZodPromise", (inst,
|
|
|
1674
2188
|
});
|
|
1675
2189
|
export const $ZodLazy = /*@__PURE__*/ core.$constructor("$ZodLazy", (inst, def) => {
|
|
1676
2190
|
$ZodType.init(inst, def);
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
util.defineLazy(inst._zod, "
|
|
1681
|
-
|
|
2191
|
+
// Cache the resolved inner type on the shared `def` so all clones of this
|
|
2192
|
+
// lazy (e.g. via `.describe()`/`.meta()`) share the same inner instance,
|
|
2193
|
+
// preserving identity for cycle detection on recursive schemas.
|
|
2194
|
+
util.defineLazy(inst._zod, "innerType", () => {
|
|
2195
|
+
const d = def;
|
|
2196
|
+
if (!d._cachedInner)
|
|
2197
|
+
d._cachedInner = def.getter();
|
|
2198
|
+
return d._cachedInner;
|
|
2199
|
+
});
|
|
2200
|
+
util.defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
2201
|
+
util.defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
2202
|
+
util.defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
2203
|
+
util.defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? undefined);
|
|
1682
2204
|
inst._zod.parse = (payload, ctx) => {
|
|
1683
2205
|
const inner = inst._zod.innerType;
|
|
1684
2206
|
return inner._zod.run(payload, ctx);
|