@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
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.$
|
|
27
|
-
exports.$ZodCustom = exports.$ZodLazy = exports.$ZodPromise = exports.$ZodTemplateLiteral = exports.$ZodReadonly = exports.$ZodPipe = exports.$ZodNaN = exports.$ZodCatch = exports.$ZodSuccess = exports.$ZodNonOptional = exports.$ZodPrefault = exports.$ZodDefault = exports.$ZodNullable = exports.$ZodOptional = exports.$ZodTransform = exports.$ZodFile = exports.$ZodLiteral = exports.$ZodEnum = void 0;
|
|
26
|
+
exports.$ZodTuple = exports.$ZodIntersection = exports.$ZodDiscriminatedUnion = exports.$ZodXor = exports.$ZodUnion = exports.$ZodObjectJIT = exports.$ZodObject = exports.$ZodArray = exports.$ZodDate = exports.$ZodVoid = exports.$ZodNever = exports.$ZodUnknown = exports.$ZodAny = exports.$ZodNull = exports.$ZodUndefined = exports.$ZodSymbol = exports.$ZodBigIntFormat = exports.$ZodBigInt = exports.$ZodBoolean = exports.$ZodNumberFormat = exports.$ZodNumber = exports.$ZodCustomStringFormat = exports.$ZodJWT = exports.$ZodE164 = exports.$ZodBase64URL = exports.$ZodBase64 = exports.$ZodCIDRv6 = exports.$ZodCIDRv4 = exports.$ZodMAC = exports.$ZodIPv6 = exports.$ZodIPv4 = exports.$ZodISODuration = exports.$ZodISOTime = exports.$ZodISODate = exports.$ZodISODateTime = exports.$ZodKSUID = exports.$ZodXID = exports.$ZodULID = exports.$ZodCUID2 = exports.$ZodCUID = exports.$ZodNanoID = exports.$ZodEmoji = exports.$ZodURL = exports.$ZodEmail = exports.$ZodUUID = exports.$ZodGUID = exports.$ZodStringFormat = exports.$ZodString = exports.clone = exports.$ZodType = void 0;
|
|
27
|
+
exports.$ZodCustom = exports.$ZodLazy = exports.$ZodPromise = exports.$ZodFunction = exports.$ZodTemplateLiteral = exports.$ZodReadonly = exports.$ZodPreprocess = exports.$ZodCodec = exports.$ZodPipe = exports.$ZodNaN = exports.$ZodCatch = exports.$ZodSuccess = exports.$ZodNonOptional = exports.$ZodPrefault = exports.$ZodDefault = exports.$ZodNullable = exports.$ZodExactOptional = exports.$ZodOptional = exports.$ZodTransform = exports.$ZodFile = exports.$ZodLiteral = exports.$ZodEnum = exports.$ZodSet = exports.$ZodMap = exports.$ZodRecord = void 0;
|
|
28
28
|
exports.isValidBase64 = isValidBase64;
|
|
29
29
|
exports.isValidBase64URL = isValidBase64URL;
|
|
30
30
|
exports.isValidJWT = isValidJWT;
|
|
@@ -46,7 +46,6 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
46
46
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
47
47
|
checks.unshift(inst);
|
|
48
48
|
}
|
|
49
|
-
//
|
|
50
49
|
for (const ch of checks) {
|
|
51
50
|
for (const fn of ch._zod.onattach) {
|
|
52
51
|
fn(inst);
|
|
@@ -66,6 +65,8 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
66
65
|
let asyncResult;
|
|
67
66
|
for (const ch of checks) {
|
|
68
67
|
if (ch._zod.def.when) {
|
|
68
|
+
if (util.explicitlyAborted(payload))
|
|
69
|
+
continue;
|
|
69
70
|
const shouldRun = ch._zod.def.when(payload);
|
|
70
71
|
if (!shouldRun)
|
|
71
72
|
continue;
|
|
@@ -103,7 +104,37 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
103
104
|
}
|
|
104
105
|
return payload;
|
|
105
106
|
};
|
|
107
|
+
const handleCanaryResult = (canary, payload, ctx) => {
|
|
108
|
+
// abort if the canary is aborted
|
|
109
|
+
if (util.aborted(canary)) {
|
|
110
|
+
canary.aborted = true;
|
|
111
|
+
return canary;
|
|
112
|
+
}
|
|
113
|
+
// run checks first, then
|
|
114
|
+
const checkResult = runChecks(payload, checks, ctx);
|
|
115
|
+
if (checkResult instanceof Promise) {
|
|
116
|
+
if (ctx.async === false)
|
|
117
|
+
throw new core.$ZodAsyncError();
|
|
118
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
119
|
+
}
|
|
120
|
+
return inst._zod.parse(checkResult, ctx);
|
|
121
|
+
};
|
|
106
122
|
inst._zod.run = (payload, ctx) => {
|
|
123
|
+
if (ctx.skipChecks) {
|
|
124
|
+
return inst._zod.parse(payload, ctx);
|
|
125
|
+
}
|
|
126
|
+
if (ctx.direction === "backward") {
|
|
127
|
+
// run canary
|
|
128
|
+
// initial pass (no checks)
|
|
129
|
+
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
130
|
+
if (canary instanceof Promise) {
|
|
131
|
+
return canary.then((canary) => {
|
|
132
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
136
|
+
}
|
|
137
|
+
// forward
|
|
107
138
|
const result = inst._zod.parse(payload, ctx);
|
|
108
139
|
if (result instanceof Promise) {
|
|
109
140
|
if (ctx.async === false)
|
|
@@ -113,7 +144,8 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
113
144
|
return runChecks(result, checks, ctx);
|
|
114
145
|
};
|
|
115
146
|
}
|
|
116
|
-
|
|
147
|
+
// Lazy initialize ~standard to avoid creating objects for every schema
|
|
148
|
+
util.defineLazy(inst, "~standard", () => ({
|
|
117
149
|
validate: (value) => {
|
|
118
150
|
try {
|
|
119
151
|
const r = (0, parse_js_1.safeParse)(inst, value);
|
|
@@ -125,7 +157,7 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
125
157
|
},
|
|
126
158
|
vendor: "zod",
|
|
127
159
|
version: 1,
|
|
128
|
-
};
|
|
160
|
+
}));
|
|
129
161
|
});
|
|
130
162
|
var util_js_1 = require("./util.cjs");
|
|
131
163
|
Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return util_js_1.clone; } });
|
|
@@ -187,9 +219,25 @@ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
|
|
|
187
219
|
exports.$ZodStringFormat.init(inst, def);
|
|
188
220
|
inst._zod.check = (payload) => {
|
|
189
221
|
try {
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
|
|
222
|
+
// Trim whitespace from input
|
|
223
|
+
const trimmed = payload.value.trim();
|
|
224
|
+
// When normalize is off, require :// for http/https URLs
|
|
225
|
+
// This prevents strings like "http:example.com" or "https:/path" from being silently accepted
|
|
226
|
+
if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source) {
|
|
227
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
228
|
+
payload.issues.push({
|
|
229
|
+
code: "invalid_format",
|
|
230
|
+
format: "url",
|
|
231
|
+
note: "Invalid URL format",
|
|
232
|
+
input: payload.value,
|
|
233
|
+
inst,
|
|
234
|
+
continue: !def.abort,
|
|
235
|
+
});
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
// @ts-ignore
|
|
240
|
+
const url = new URL(trimmed);
|
|
193
241
|
if (def.hostname) {
|
|
194
242
|
def.hostname.lastIndex = 0;
|
|
195
243
|
if (!def.hostname.test(url.hostname)) {
|
|
@@ -197,7 +245,7 @@ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
|
|
|
197
245
|
code: "invalid_format",
|
|
198
246
|
format: "url",
|
|
199
247
|
note: "Invalid hostname",
|
|
200
|
-
pattern:
|
|
248
|
+
pattern: def.hostname.source,
|
|
201
249
|
input: payload.value,
|
|
202
250
|
inst,
|
|
203
251
|
continue: !def.abort,
|
|
@@ -218,12 +266,14 @@ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
|
|
|
218
266
|
});
|
|
219
267
|
}
|
|
220
268
|
}
|
|
221
|
-
//
|
|
222
|
-
if (
|
|
223
|
-
|
|
269
|
+
// Set the output value based on normalize flag
|
|
270
|
+
if (def.normalize) {
|
|
271
|
+
// Use normalized URL
|
|
272
|
+
payload.value = url.href;
|
|
224
273
|
}
|
|
225
274
|
else {
|
|
226
|
-
|
|
275
|
+
// Preserve the original input (trimmed)
|
|
276
|
+
payload.value = trimmed;
|
|
227
277
|
}
|
|
228
278
|
return;
|
|
229
279
|
}
|
|
@@ -246,6 +296,11 @@ exports.$ZodNanoID = core.$constructor("$ZodNanoID", (inst, def) => {
|
|
|
246
296
|
def.pattern ?? (def.pattern = regexes.nanoid);
|
|
247
297
|
exports.$ZodStringFormat.init(inst, def);
|
|
248
298
|
});
|
|
299
|
+
/**
|
|
300
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
301
|
+
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
302
|
+
* See https://github.com/paralleldrive/cuid.
|
|
303
|
+
*/
|
|
249
304
|
exports.$ZodCUID = core.$constructor("$ZodCUID", (inst, def) => {
|
|
250
305
|
def.pattern ?? (def.pattern = regexes.cuid);
|
|
251
306
|
exports.$ZodStringFormat.init(inst, def);
|
|
@@ -285,20 +340,15 @@ exports.$ZodISODuration = core.$constructor("$ZodISODuration", (inst, def) => {
|
|
|
285
340
|
exports.$ZodIPv4 = core.$constructor("$ZodIPv4", (inst, def) => {
|
|
286
341
|
def.pattern ?? (def.pattern = regexes.ipv4);
|
|
287
342
|
exports.$ZodStringFormat.init(inst, def);
|
|
288
|
-
inst._zod.
|
|
289
|
-
const bag = inst._zod.bag;
|
|
290
|
-
bag.format = `ipv4`;
|
|
291
|
-
});
|
|
343
|
+
inst._zod.bag.format = `ipv4`;
|
|
292
344
|
});
|
|
293
345
|
exports.$ZodIPv6 = core.$constructor("$ZodIPv6", (inst, def) => {
|
|
294
346
|
def.pattern ?? (def.pattern = regexes.ipv6);
|
|
295
347
|
exports.$ZodStringFormat.init(inst, def);
|
|
296
|
-
inst._zod.
|
|
297
|
-
const bag = inst._zod.bag;
|
|
298
|
-
bag.format = `ipv6`;
|
|
299
|
-
});
|
|
348
|
+
inst._zod.bag.format = `ipv6`;
|
|
300
349
|
inst._zod.check = (payload) => {
|
|
301
350
|
try {
|
|
351
|
+
// @ts-ignore
|
|
302
352
|
new URL(`http://[${payload.value}]`);
|
|
303
353
|
// return;
|
|
304
354
|
}
|
|
@@ -313,6 +363,11 @@ exports.$ZodIPv6 = core.$constructor("$ZodIPv6", (inst, def) => {
|
|
|
313
363
|
}
|
|
314
364
|
};
|
|
315
365
|
});
|
|
366
|
+
exports.$ZodMAC = core.$constructor("$ZodMAC", (inst, def) => {
|
|
367
|
+
def.pattern ?? (def.pattern = regexes.mac(def.delimiter));
|
|
368
|
+
exports.$ZodStringFormat.init(inst, def);
|
|
369
|
+
inst._zod.bag.format = `mac`;
|
|
370
|
+
});
|
|
316
371
|
exports.$ZodCIDRv4 = core.$constructor("$ZodCIDRv4", (inst, def) => {
|
|
317
372
|
def.pattern ?? (def.pattern = regexes.cidrv4);
|
|
318
373
|
exports.$ZodStringFormat.init(inst, def);
|
|
@@ -321,8 +376,11 @@ exports.$ZodCIDRv6 = core.$constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
321
376
|
def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
|
|
322
377
|
exports.$ZodStringFormat.init(inst, def);
|
|
323
378
|
inst._zod.check = (payload) => {
|
|
324
|
-
const
|
|
379
|
+
const parts = payload.value.split("/");
|
|
325
380
|
try {
|
|
381
|
+
if (parts.length !== 2)
|
|
382
|
+
throw new Error();
|
|
383
|
+
const [address, prefix] = parts;
|
|
326
384
|
if (!prefix)
|
|
327
385
|
throw new Error();
|
|
328
386
|
const prefixNum = Number(prefix);
|
|
@@ -330,6 +388,7 @@ exports.$ZodCIDRv6 = core.$constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
330
388
|
throw new Error();
|
|
331
389
|
if (prefixNum < 0 || prefixNum > 128)
|
|
332
390
|
throw new Error();
|
|
391
|
+
// @ts-ignore
|
|
333
392
|
new URL(`http://[${address}]`);
|
|
334
393
|
}
|
|
335
394
|
catch {
|
|
@@ -347,9 +406,13 @@ exports.$ZodCIDRv6 = core.$constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
347
406
|
function isValidBase64(data) {
|
|
348
407
|
if (data === "")
|
|
349
408
|
return true;
|
|
409
|
+
// atob ignores whitespace, so reject it up front.
|
|
410
|
+
if (/\s/.test(data))
|
|
411
|
+
return false;
|
|
350
412
|
if (data.length % 4 !== 0)
|
|
351
413
|
return false;
|
|
352
414
|
try {
|
|
415
|
+
// @ts-ignore
|
|
353
416
|
atob(data);
|
|
354
417
|
return true;
|
|
355
418
|
}
|
|
@@ -360,9 +423,7 @@ function isValidBase64(data) {
|
|
|
360
423
|
exports.$ZodBase64 = core.$constructor("$ZodBase64", (inst, def) => {
|
|
361
424
|
def.pattern ?? (def.pattern = regexes.base64);
|
|
362
425
|
exports.$ZodStringFormat.init(inst, def);
|
|
363
|
-
inst._zod.
|
|
364
|
-
inst._zod.bag.contentEncoding = "base64";
|
|
365
|
-
});
|
|
426
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
366
427
|
inst._zod.check = (payload) => {
|
|
367
428
|
if (isValidBase64(payload.value))
|
|
368
429
|
return;
|
|
@@ -386,9 +447,7 @@ function isValidBase64URL(data) {
|
|
|
386
447
|
exports.$ZodBase64URL = core.$constructor("$ZodBase64URL", (inst, def) => {
|
|
387
448
|
def.pattern ?? (def.pattern = regexes.base64url);
|
|
388
449
|
exports.$ZodStringFormat.init(inst, def);
|
|
389
|
-
inst._zod.
|
|
390
|
-
inst._zod.bag.contentEncoding = "base64url";
|
|
391
|
-
});
|
|
450
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
392
451
|
inst._zod.check = (payload) => {
|
|
393
452
|
if (isValidBase64URL(payload.value))
|
|
394
453
|
return;
|
|
@@ -414,6 +473,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
414
473
|
const [header] = tokensParts;
|
|
415
474
|
if (!header)
|
|
416
475
|
return false;
|
|
476
|
+
// @ts-ignore
|
|
417
477
|
const parsedHeader = JSON.parse(atob(header));
|
|
418
478
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
|
|
419
479
|
return false;
|
|
@@ -485,9 +545,9 @@ exports.$ZodNumber = core.$constructor("$ZodNumber", (inst, def) => {
|
|
|
485
545
|
return payload;
|
|
486
546
|
};
|
|
487
547
|
});
|
|
488
|
-
exports.$ZodNumberFormat = core.$constructor("$
|
|
548
|
+
exports.$ZodNumberFormat = core.$constructor("$ZodNumberFormat", (inst, def) => {
|
|
489
549
|
checks.$ZodCheckNumberFormat.init(inst, def);
|
|
490
|
-
exports.$ZodNumber.init(inst, def); // no format
|
|
550
|
+
exports.$ZodNumber.init(inst, def); // no format checks
|
|
491
551
|
});
|
|
492
552
|
exports.$ZodBoolean = core.$constructor("$ZodBoolean", (inst, def) => {
|
|
493
553
|
exports.$ZodType.init(inst, def);
|
|
@@ -530,7 +590,7 @@ exports.$ZodBigInt = core.$constructor("$ZodBigInt", (inst, def) => {
|
|
|
530
590
|
return payload;
|
|
531
591
|
};
|
|
532
592
|
});
|
|
533
|
-
exports.$ZodBigIntFormat = core.$constructor("$
|
|
593
|
+
exports.$ZodBigIntFormat = core.$constructor("$ZodBigIntFormat", (inst, def) => {
|
|
534
594
|
checks.$ZodCheckBigIntFormat.init(inst, def);
|
|
535
595
|
exports.$ZodBigInt.init(inst, def); // no format checks
|
|
536
596
|
});
|
|
@@ -553,8 +613,6 @@ exports.$ZodUndefined = core.$constructor("$ZodUndefined", (inst, def) => {
|
|
|
553
613
|
exports.$ZodType.init(inst, def);
|
|
554
614
|
inst._zod.pattern = regexes.undefined;
|
|
555
615
|
inst._zod.values = new Set([undefined]);
|
|
556
|
-
inst._zod.optin = "optional";
|
|
557
|
-
inst._zod.optout = "optional";
|
|
558
616
|
inst._zod.parse = (payload, _ctx) => {
|
|
559
617
|
const input = payload.value;
|
|
560
618
|
if (typeof input === "undefined")
|
|
@@ -684,58 +742,109 @@ exports.$ZodArray = core.$constructor("$ZodArray", (inst, def) => {
|
|
|
684
742
|
return payload; //handleArrayResultsAsync(parseResults, final);
|
|
685
743
|
};
|
|
686
744
|
});
|
|
687
|
-
function
|
|
688
|
-
|
|
745
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
746
|
+
const isPresent = key in input;
|
|
689
747
|
if (result.issues.length) {
|
|
748
|
+
// For optional-in/out schemas, ignore errors on absent keys.
|
|
749
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
690
752
|
final.issues.push(...util.prefixIssues(key, result.issues));
|
|
691
753
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
final.value[key] = undefined;
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
final.value[key] = result.value;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
else {
|
|
707
|
-
final.issues.push(...util.prefixIssues(key, result.issues));
|
|
754
|
+
if (!isPresent && !isOptionalIn) {
|
|
755
|
+
if (!result.issues.length) {
|
|
756
|
+
final.issues.push({
|
|
757
|
+
code: "invalid_type",
|
|
758
|
+
expected: "nonoptional",
|
|
759
|
+
input: undefined,
|
|
760
|
+
path: [key],
|
|
761
|
+
});
|
|
708
762
|
}
|
|
763
|
+
return;
|
|
709
764
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
if (key in input)
|
|
765
|
+
if (result.value === undefined) {
|
|
766
|
+
if (isPresent) {
|
|
713
767
|
final.value[key] = undefined;
|
|
768
|
+
}
|
|
714
769
|
}
|
|
715
770
|
else {
|
|
716
|
-
// non-undefined value
|
|
717
771
|
final.value[key] = result.value;
|
|
718
772
|
}
|
|
719
773
|
}
|
|
774
|
+
function normalizeDef(def) {
|
|
775
|
+
const keys = Object.keys(def.shape);
|
|
776
|
+
for (const k of keys) {
|
|
777
|
+
if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
|
|
778
|
+
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
const okeys = util.optionalKeys(def.shape);
|
|
782
|
+
return {
|
|
783
|
+
...def,
|
|
784
|
+
keys,
|
|
785
|
+
keySet: new Set(keys),
|
|
786
|
+
numKeys: keys.length,
|
|
787
|
+
optionalKeys: new Set(okeys),
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
791
|
+
const unrecognized = [];
|
|
792
|
+
const keySet = def.keySet;
|
|
793
|
+
const _catchall = def.catchall._zod;
|
|
794
|
+
const t = _catchall.def.type;
|
|
795
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
796
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
797
|
+
for (const key in input) {
|
|
798
|
+
// skip __proto__ so it can't replace the result prototype via the
|
|
799
|
+
// assignment setter on the plain {} we build into
|
|
800
|
+
if (key === "__proto__")
|
|
801
|
+
continue;
|
|
802
|
+
if (keySet.has(key))
|
|
803
|
+
continue;
|
|
804
|
+
if (t === "never") {
|
|
805
|
+
unrecognized.push(key);
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
809
|
+
if (r instanceof Promise) {
|
|
810
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
811
|
+
}
|
|
812
|
+
else {
|
|
813
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
if (unrecognized.length) {
|
|
817
|
+
payload.issues.push({
|
|
818
|
+
code: "unrecognized_keys",
|
|
819
|
+
keys: unrecognized,
|
|
820
|
+
input,
|
|
821
|
+
inst,
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
if (!proms.length)
|
|
825
|
+
return payload;
|
|
826
|
+
return Promise.all(proms).then(() => {
|
|
827
|
+
return payload;
|
|
828
|
+
});
|
|
829
|
+
}
|
|
720
830
|
exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
|
|
721
831
|
// requires cast because technically $ZodObject doesn't extend
|
|
722
832
|
exports.$ZodType.init(inst, def);
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
});
|
|
833
|
+
// const sh = def.shape;
|
|
834
|
+
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
|
835
|
+
if (!desc?.get) {
|
|
836
|
+
const sh = def.shape;
|
|
837
|
+
Object.defineProperty(def, "shape", {
|
|
838
|
+
get: () => {
|
|
839
|
+
const newSh = { ...sh };
|
|
840
|
+
Object.defineProperty(def, "shape", {
|
|
841
|
+
value: newSh,
|
|
842
|
+
});
|
|
843
|
+
return newSh;
|
|
844
|
+
},
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
const _normalized = util.cached(() => normalizeDef(def));
|
|
739
848
|
util.defineLazy(inst._zod, "propValues", () => {
|
|
740
849
|
const shape = def.shape;
|
|
741
850
|
const propValues = {};
|
|
@@ -749,6 +858,47 @@ exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
|
|
|
749
858
|
}
|
|
750
859
|
return propValues;
|
|
751
860
|
});
|
|
861
|
+
const isObject = util.isObject;
|
|
862
|
+
const catchall = def.catchall;
|
|
863
|
+
let value;
|
|
864
|
+
inst._zod.parse = (payload, ctx) => {
|
|
865
|
+
value ?? (value = _normalized.value);
|
|
866
|
+
const input = payload.value;
|
|
867
|
+
if (!isObject(input)) {
|
|
868
|
+
payload.issues.push({
|
|
869
|
+
expected: "object",
|
|
870
|
+
code: "invalid_type",
|
|
871
|
+
input,
|
|
872
|
+
inst,
|
|
873
|
+
});
|
|
874
|
+
return payload;
|
|
875
|
+
}
|
|
876
|
+
payload.value = {};
|
|
877
|
+
const proms = [];
|
|
878
|
+
const shape = value.shape;
|
|
879
|
+
for (const key of value.keys) {
|
|
880
|
+
const el = shape[key];
|
|
881
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
882
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
883
|
+
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
884
|
+
if (r instanceof Promise) {
|
|
885
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
886
|
+
}
|
|
887
|
+
else {
|
|
888
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
if (!catchall) {
|
|
892
|
+
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
893
|
+
}
|
|
894
|
+
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
895
|
+
};
|
|
896
|
+
});
|
|
897
|
+
exports.$ZodObjectJIT = core.$constructor("$ZodObjectJIT", (inst, def) => {
|
|
898
|
+
// requires cast because technically $ZodObject doesn't extend
|
|
899
|
+
exports.$ZodObject.init(inst, def);
|
|
900
|
+
const superParse = inst._zod.parse;
|
|
901
|
+
const _normalized = util.cached(() => normalizeDef(def));
|
|
752
902
|
const generateFastpass = (shape) => {
|
|
753
903
|
const doc = new doc_js_1.Doc(["shape", "payload", "ctx"]);
|
|
754
904
|
const normalized = _normalized.value;
|
|
@@ -763,43 +913,82 @@ exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
|
|
|
763
913
|
ids[key] = `key_${counter++}`;
|
|
764
914
|
}
|
|
765
915
|
// A: preserve key order {
|
|
766
|
-
doc.write(`const newResult = {}
|
|
916
|
+
doc.write(`const newResult = {};`);
|
|
767
917
|
for (const key of normalized.keys) {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
918
|
+
const id = ids[key];
|
|
919
|
+
const k = util.esc(key);
|
|
920
|
+
const schema = shape[key];
|
|
921
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
922
|
+
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
923
|
+
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
924
|
+
if (isOptionalIn && isOptionalOut) {
|
|
925
|
+
// For optional-in/out schemas, ignore errors on absent keys
|
|
772
926
|
doc.write(`
|
|
773
927
|
if (${id}.issues.length) {
|
|
774
|
-
if (
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
928
|
+
if (${k} in input) {
|
|
929
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
930
|
+
...iss,
|
|
931
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
932
|
+
})));
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
if (${id}.value === undefined) {
|
|
937
|
+
if (${k} in input) {
|
|
938
|
+
newResult[${k}] = undefined;
|
|
785
939
|
}
|
|
786
|
-
} else if (${id}.value === undefined) {
|
|
787
|
-
if (${k} in input) newResult[${k}] = undefined;
|
|
788
940
|
} else {
|
|
789
941
|
newResult[${k}] = ${id}.value;
|
|
790
942
|
}
|
|
791
|
-
|
|
943
|
+
|
|
944
|
+
`);
|
|
945
|
+
}
|
|
946
|
+
else if (!isOptionalIn) {
|
|
947
|
+
doc.write(`
|
|
948
|
+
const ${id}_present = ${k} in input;
|
|
949
|
+
if (${id}.issues.length) {
|
|
950
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
951
|
+
...iss,
|
|
952
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
953
|
+
})));
|
|
954
|
+
}
|
|
955
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
956
|
+
payload.issues.push({
|
|
957
|
+
code: "invalid_type",
|
|
958
|
+
expected: "nonoptional",
|
|
959
|
+
input: undefined,
|
|
960
|
+
path: [${k}]
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
if (${id}_present) {
|
|
965
|
+
if (${id}.value === undefined) {
|
|
966
|
+
newResult[${k}] = undefined;
|
|
967
|
+
} else {
|
|
968
|
+
newResult[${k}] = ${id}.value;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
`);
|
|
792
973
|
}
|
|
793
974
|
else {
|
|
794
|
-
const id = ids[key];
|
|
795
|
-
// const id = ids[key];
|
|
796
|
-
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
797
975
|
doc.write(`
|
|
798
|
-
|
|
976
|
+
if (${id}.issues.length) {
|
|
977
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
799
978
|
...iss,
|
|
800
|
-
path: iss.path ? [${
|
|
801
|
-
})))
|
|
802
|
-
|
|
979
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
980
|
+
})));
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
if (${id}.value === undefined) {
|
|
984
|
+
if (${k} in input) {
|
|
985
|
+
newResult[${k}] = undefined;
|
|
986
|
+
}
|
|
987
|
+
} else {
|
|
988
|
+
newResult[${k}] = ${id}.value;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
`);
|
|
803
992
|
}
|
|
804
993
|
}
|
|
805
994
|
doc.write(`payload.value = newResult;`);
|
|
@@ -826,80 +1015,16 @@ exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
|
|
|
826
1015
|
});
|
|
827
1016
|
return payload;
|
|
828
1017
|
}
|
|
829
|
-
const proms = [];
|
|
830
1018
|
if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
|
|
831
1019
|
// always synchronous
|
|
832
1020
|
if (!fastpass)
|
|
833
1021
|
fastpass = generateFastpass(def.shape);
|
|
834
1022
|
payload = fastpass(payload, ctx);
|
|
1023
|
+
if (!catchall)
|
|
1024
|
+
return payload;
|
|
1025
|
+
return handleCatchall([], input, payload, ctx, value, inst);
|
|
835
1026
|
}
|
|
836
|
-
|
|
837
|
-
payload.value = {};
|
|
838
|
-
const shape = value.shape;
|
|
839
|
-
for (const key of value.keys) {
|
|
840
|
-
const el = shape[key];
|
|
841
|
-
// do not add omitted optional keys
|
|
842
|
-
// if (!(key in input)) {
|
|
843
|
-
// if (optionalKeys.has(key)) continue;
|
|
844
|
-
// payload.issues.push({
|
|
845
|
-
// code: "invalid_type",
|
|
846
|
-
// path: [key],
|
|
847
|
-
// expected: "nonoptional",
|
|
848
|
-
// note: `Missing required key: "${key}"`,
|
|
849
|
-
// input,
|
|
850
|
-
// inst,
|
|
851
|
-
// });
|
|
852
|
-
// }
|
|
853
|
-
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
854
|
-
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
855
|
-
if (r instanceof Promise) {
|
|
856
|
-
proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
|
|
857
|
-
}
|
|
858
|
-
else if (isOptional) {
|
|
859
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
860
|
-
}
|
|
861
|
-
else {
|
|
862
|
-
handleObjectResult(r, payload, key);
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
if (!catchall) {
|
|
867
|
-
// return payload;
|
|
868
|
-
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
869
|
-
}
|
|
870
|
-
const unrecognized = [];
|
|
871
|
-
// iterate over input keys
|
|
872
|
-
const keySet = value.keySet;
|
|
873
|
-
const _catchall = catchall._zod;
|
|
874
|
-
const t = _catchall.def.type;
|
|
875
|
-
for (const key of Object.keys(input)) {
|
|
876
|
-
if (keySet.has(key))
|
|
877
|
-
continue;
|
|
878
|
-
if (t === "never") {
|
|
879
|
-
unrecognized.push(key);
|
|
880
|
-
continue;
|
|
881
|
-
}
|
|
882
|
-
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
883
|
-
if (r instanceof Promise) {
|
|
884
|
-
proms.push(r.then((r) => handleObjectResult(r, payload, key)));
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
handleObjectResult(r, payload, key);
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
if (unrecognized.length) {
|
|
891
|
-
payload.issues.push({
|
|
892
|
-
code: "unrecognized_keys",
|
|
893
|
-
keys: unrecognized,
|
|
894
|
-
input,
|
|
895
|
-
inst,
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
if (!proms.length)
|
|
899
|
-
return payload;
|
|
900
|
-
return Promise.all(proms).then(() => {
|
|
901
|
-
return payload;
|
|
902
|
-
});
|
|
1027
|
+
return superParse(payload, ctx);
|
|
903
1028
|
};
|
|
904
1029
|
});
|
|
905
1030
|
function handleUnionResults(results, final, inst, ctx) {
|
|
@@ -909,6 +1034,11 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
909
1034
|
return final;
|
|
910
1035
|
}
|
|
911
1036
|
}
|
|
1037
|
+
const nonaborted = results.filter((r) => !util.aborted(r));
|
|
1038
|
+
if (nonaborted.length === 1) {
|
|
1039
|
+
final.value = nonaborted[0].value;
|
|
1040
|
+
return nonaborted[0];
|
|
1041
|
+
}
|
|
912
1042
|
final.issues.push({
|
|
913
1043
|
code: "invalid_union",
|
|
914
1044
|
input: final.value,
|
|
@@ -934,7 +1064,11 @@ exports.$ZodUnion = core.$constructor("$ZodUnion", (inst, def) => {
|
|
|
934
1064
|
}
|
|
935
1065
|
return undefined;
|
|
936
1066
|
});
|
|
1067
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
937
1068
|
inst._zod.parse = (payload, ctx) => {
|
|
1069
|
+
if (first) {
|
|
1070
|
+
return first(payload, ctx);
|
|
1071
|
+
}
|
|
938
1072
|
let async = false;
|
|
939
1073
|
const results = [];
|
|
940
1074
|
for (const option of def.options) {
|
|
@@ -959,9 +1093,67 @@ exports.$ZodUnion = core.$constructor("$ZodUnion", (inst, def) => {
|
|
|
959
1093
|
});
|
|
960
1094
|
};
|
|
961
1095
|
});
|
|
1096
|
+
function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
1097
|
+
const successes = results.filter((r) => r.issues.length === 0);
|
|
1098
|
+
if (successes.length === 1) {
|
|
1099
|
+
final.value = successes[0].value;
|
|
1100
|
+
return final;
|
|
1101
|
+
}
|
|
1102
|
+
if (successes.length === 0) {
|
|
1103
|
+
// No matches - same as regular union
|
|
1104
|
+
final.issues.push({
|
|
1105
|
+
code: "invalid_union",
|
|
1106
|
+
input: final.value,
|
|
1107
|
+
inst,
|
|
1108
|
+
errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
// Multiple matches - exclusive union failure
|
|
1113
|
+
final.issues.push({
|
|
1114
|
+
code: "invalid_union",
|
|
1115
|
+
input: final.value,
|
|
1116
|
+
inst,
|
|
1117
|
+
errors: [],
|
|
1118
|
+
inclusive: false,
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
return final;
|
|
1122
|
+
}
|
|
1123
|
+
exports.$ZodXor = core.$constructor("$ZodXor", (inst, def) => {
|
|
1124
|
+
exports.$ZodUnion.init(inst, def);
|
|
1125
|
+
def.inclusive = false;
|
|
1126
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1127
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1128
|
+
if (first) {
|
|
1129
|
+
return first(payload, ctx);
|
|
1130
|
+
}
|
|
1131
|
+
let async = false;
|
|
1132
|
+
const results = [];
|
|
1133
|
+
for (const option of def.options) {
|
|
1134
|
+
const result = option._zod.run({
|
|
1135
|
+
value: payload.value,
|
|
1136
|
+
issues: [],
|
|
1137
|
+
}, ctx);
|
|
1138
|
+
if (result instanceof Promise) {
|
|
1139
|
+
results.push(result);
|
|
1140
|
+
async = true;
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
results.push(result);
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
if (!async)
|
|
1147
|
+
return handleExclusiveUnionResults(results, payload, inst, ctx);
|
|
1148
|
+
return Promise.all(results).then((results) => {
|
|
1149
|
+
return handleExclusiveUnionResults(results, payload, inst, ctx);
|
|
1150
|
+
});
|
|
1151
|
+
};
|
|
1152
|
+
});
|
|
962
1153
|
exports.$ZodDiscriminatedUnion =
|
|
963
1154
|
/*@__PURE__*/
|
|
964
1155
|
core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
1156
|
+
def.inclusive = false;
|
|
965
1157
|
exports.$ZodUnion.init(inst, def);
|
|
966
1158
|
const _super = inst._zod.parse;
|
|
967
1159
|
util.defineLazy(inst._zod, "propValues", () => {
|
|
@@ -984,7 +1176,7 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
984
1176
|
const opts = def.options;
|
|
985
1177
|
const map = new Map();
|
|
986
1178
|
for (const o of opts) {
|
|
987
|
-
const values = o._zod.propValues[def.discriminator];
|
|
1179
|
+
const values = o._zod.propValues?.[def.discriminator];
|
|
988
1180
|
if (!values || values.size === 0)
|
|
989
1181
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
990
1182
|
for (const v of values) {
|
|
@@ -1011,7 +1203,11 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
1011
1203
|
if (opt) {
|
|
1012
1204
|
return opt._zod.run(payload, ctx);
|
|
1013
1205
|
}
|
|
1014
|
-
|
|
1206
|
+
// Fall back to union matching when the fast discriminator path fails:
|
|
1207
|
+
// - explicitly enabled via unionFallback, or
|
|
1208
|
+
// - during backward direction (encode), since codec-based discriminators
|
|
1209
|
+
// have different values in forward vs backward directions
|
|
1210
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
1015
1211
|
return _super(payload, ctx);
|
|
1016
1212
|
}
|
|
1017
1213
|
// no matching discriminator
|
|
@@ -1019,6 +1215,8 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
1019
1215
|
code: "invalid_union",
|
|
1020
1216
|
errors: [],
|
|
1021
1217
|
note: "No matching discriminator",
|
|
1218
|
+
discriminator: def.discriminator,
|
|
1219
|
+
options: Array.from(disc.value.keys()),
|
|
1022
1220
|
input,
|
|
1023
1221
|
path: [def.discriminator],
|
|
1024
1222
|
inst,
|
|
@@ -1088,11 +1286,38 @@ function mergeValues(a, b) {
|
|
|
1088
1286
|
return { valid: false, mergeErrorPath: [] };
|
|
1089
1287
|
}
|
|
1090
1288
|
function handleIntersectionResults(result, left, right) {
|
|
1091
|
-
|
|
1092
|
-
|
|
1289
|
+
// Track which side(s) report each key as unrecognized
|
|
1290
|
+
const unrecKeys = new Map();
|
|
1291
|
+
let unrecIssue;
|
|
1292
|
+
for (const iss of left.issues) {
|
|
1293
|
+
if (iss.code === "unrecognized_keys") {
|
|
1294
|
+
unrecIssue ?? (unrecIssue = iss);
|
|
1295
|
+
for (const k of iss.keys) {
|
|
1296
|
+
if (!unrecKeys.has(k))
|
|
1297
|
+
unrecKeys.set(k, {});
|
|
1298
|
+
unrecKeys.get(k).l = true;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
result.issues.push(iss);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
for (const iss of right.issues) {
|
|
1306
|
+
if (iss.code === "unrecognized_keys") {
|
|
1307
|
+
for (const k of iss.keys) {
|
|
1308
|
+
if (!unrecKeys.has(k))
|
|
1309
|
+
unrecKeys.set(k, {});
|
|
1310
|
+
unrecKeys.get(k).r = true;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
else {
|
|
1314
|
+
result.issues.push(iss);
|
|
1315
|
+
}
|
|
1093
1316
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1317
|
+
// Report only keys unrecognized by BOTH sides
|
|
1318
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
1319
|
+
if (bothKeys.length && unrecIssue) {
|
|
1320
|
+
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
1096
1321
|
}
|
|
1097
1322
|
if (util.aborted(result))
|
|
1098
1323
|
return result;
|
|
@@ -1106,7 +1331,6 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1106
1331
|
exports.$ZodTuple = core.$constructor("$ZodTuple", (inst, def) => {
|
|
1107
1332
|
exports.$ZodType.init(inst, def);
|
|
1108
1333
|
const items = def.items;
|
|
1109
|
-
const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
1110
1334
|
inst._zod.parse = (payload, ctx) => {
|
|
1111
1335
|
const input = payload.value;
|
|
1112
1336
|
if (!Array.isArray(input)) {
|
|
@@ -1120,63 +1344,112 @@ exports.$ZodTuple = core.$constructor("$ZodTuple", (inst, def) => {
|
|
|
1120
1344
|
}
|
|
1121
1345
|
payload.value = [];
|
|
1122
1346
|
const proms = [];
|
|
1347
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
1348
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
1123
1349
|
if (!def.rest) {
|
|
1124
|
-
|
|
1125
|
-
const tooSmall = input.length < optStart - 1;
|
|
1126
|
-
if (tooBig || tooSmall) {
|
|
1350
|
+
if (input.length < optinStart) {
|
|
1127
1351
|
payload.issues.push({
|
|
1352
|
+
code: "too_small",
|
|
1353
|
+
minimum: optinStart,
|
|
1354
|
+
inclusive: true,
|
|
1128
1355
|
input,
|
|
1129
1356
|
inst,
|
|
1130
1357
|
origin: "array",
|
|
1131
|
-
...(tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }),
|
|
1132
1358
|
});
|
|
1133
1359
|
return payload;
|
|
1134
1360
|
}
|
|
1361
|
+
if (input.length > items.length) {
|
|
1362
|
+
payload.issues.push({
|
|
1363
|
+
code: "too_big",
|
|
1364
|
+
maximum: items.length,
|
|
1365
|
+
inclusive: true,
|
|
1366
|
+
input,
|
|
1367
|
+
inst,
|
|
1368
|
+
origin: "array",
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1135
1371
|
}
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
proms.push(result.then((result) => handleTupleResult(result, payload, i)));
|
|
1372
|
+
// Run every item in parallel, collecting results into an indexed
|
|
1373
|
+
// array. The post-processing in `handleTupleResults` walks them in
|
|
1374
|
+
// order so it can decide whether an absent optional-output error can
|
|
1375
|
+
// truncate the tail or must be reported to preserve required output.
|
|
1376
|
+
const itemResults = new Array(items.length);
|
|
1377
|
+
for (let i = 0; i < items.length; i++) {
|
|
1378
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
1379
|
+
if (r instanceof Promise) {
|
|
1380
|
+
proms.push(r.then((rr) => {
|
|
1381
|
+
itemResults[i] = rr;
|
|
1382
|
+
}));
|
|
1148
1383
|
}
|
|
1149
1384
|
else {
|
|
1150
|
-
|
|
1385
|
+
itemResults[i] = r;
|
|
1151
1386
|
}
|
|
1152
1387
|
}
|
|
1153
1388
|
if (def.rest) {
|
|
1389
|
+
let i = items.length - 1;
|
|
1154
1390
|
const rest = input.slice(items.length);
|
|
1155
1391
|
for (const el of rest) {
|
|
1156
1392
|
i++;
|
|
1157
|
-
const result = def.rest._zod.run({
|
|
1158
|
-
value: el,
|
|
1159
|
-
issues: [],
|
|
1160
|
-
}, ctx);
|
|
1393
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
1161
1394
|
if (result instanceof Promise) {
|
|
1162
|
-
proms.push(result.then((
|
|
1395
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
1163
1396
|
}
|
|
1164
1397
|
else {
|
|
1165
1398
|
handleTupleResult(result, payload, i);
|
|
1166
1399
|
}
|
|
1167
1400
|
}
|
|
1168
1401
|
}
|
|
1169
|
-
if (proms.length)
|
|
1170
|
-
return Promise.all(proms).then(() => payload);
|
|
1171
|
-
|
|
1402
|
+
if (proms.length) {
|
|
1403
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
1404
|
+
}
|
|
1405
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
1172
1406
|
};
|
|
1173
1407
|
});
|
|
1408
|
+
function getTupleOptStart(items, key) {
|
|
1409
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
1410
|
+
if (items[i]._zod[key] !== "optional")
|
|
1411
|
+
return i + 1;
|
|
1412
|
+
}
|
|
1413
|
+
return 0;
|
|
1414
|
+
}
|
|
1174
1415
|
function handleTupleResult(result, final, index) {
|
|
1175
1416
|
if (result.issues.length) {
|
|
1176
1417
|
final.issues.push(...util.prefixIssues(index, result.issues));
|
|
1177
1418
|
}
|
|
1178
1419
|
final.value[index] = result.value;
|
|
1179
1420
|
}
|
|
1421
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
1422
|
+
// Walk results in order. Mirror $ZodObject's swallow-on-absent-optional
|
|
1423
|
+
// rule, but only after `optoutStart`: the first index where the output
|
|
1424
|
+
// tuple tail can be absent.
|
|
1425
|
+
for (let i = 0; i < items.length; i++) {
|
|
1426
|
+
const r = itemResults[i];
|
|
1427
|
+
const isPresent = i < input.length;
|
|
1428
|
+
if (r.issues.length) {
|
|
1429
|
+
if (!isPresent && i >= optoutStart) {
|
|
1430
|
+
final.value.length = i;
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1433
|
+
final.issues.push(...util.prefixIssues(i, r.issues));
|
|
1434
|
+
}
|
|
1435
|
+
final.value[i] = r.value;
|
|
1436
|
+
}
|
|
1437
|
+
// Drop trailing slots that produced `undefined` for absent input
|
|
1438
|
+
// (the array analog of an absent optional key on an object). The
|
|
1439
|
+
// `i >= input.length` floor is critical: an explicit `undefined`
|
|
1440
|
+
// *inside* the input must be preserved even when the schema is
|
|
1441
|
+
// optional-out (e.g. `z.string().or(z.undefined())` accepting an
|
|
1442
|
+
// explicit undefined value).
|
|
1443
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
1444
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
1445
|
+
final.value.length = i;
|
|
1446
|
+
}
|
|
1447
|
+
else {
|
|
1448
|
+
break;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
return final;
|
|
1452
|
+
}
|
|
1180
1453
|
exports.$ZodRecord = core.$constructor("$ZodRecord", (inst, def) => {
|
|
1181
1454
|
exports.$ZodType.init(inst, def);
|
|
1182
1455
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1191,31 +1464,49 @@ exports.$ZodRecord = core.$constructor("$ZodRecord", (inst, def) => {
|
|
|
1191
1464
|
return payload;
|
|
1192
1465
|
}
|
|
1193
1466
|
const proms = [];
|
|
1194
|
-
|
|
1195
|
-
|
|
1467
|
+
const values = def.keyType._zod.values;
|
|
1468
|
+
if (values) {
|
|
1196
1469
|
payload.value = {};
|
|
1470
|
+
const recordKeys = new Set();
|
|
1197
1471
|
for (const key of values) {
|
|
1198
1472
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
1473
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
1474
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1475
|
+
if (keyResult instanceof Promise) {
|
|
1476
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1477
|
+
}
|
|
1478
|
+
if (keyResult.issues.length) {
|
|
1479
|
+
payload.issues.push({
|
|
1480
|
+
code: "invalid_key",
|
|
1481
|
+
origin: "record",
|
|
1482
|
+
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
1483
|
+
input: key,
|
|
1484
|
+
path: [key],
|
|
1485
|
+
inst,
|
|
1486
|
+
});
|
|
1487
|
+
continue;
|
|
1488
|
+
}
|
|
1489
|
+
const outKey = keyResult.value;
|
|
1199
1490
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1200
1491
|
if (result instanceof Promise) {
|
|
1201
1492
|
proms.push(result.then((result) => {
|
|
1202
1493
|
if (result.issues.length) {
|
|
1203
1494
|
payload.issues.push(...util.prefixIssues(key, result.issues));
|
|
1204
1495
|
}
|
|
1205
|
-
payload.value[
|
|
1496
|
+
payload.value[outKey] = result.value;
|
|
1206
1497
|
}));
|
|
1207
1498
|
}
|
|
1208
1499
|
else {
|
|
1209
1500
|
if (result.issues.length) {
|
|
1210
1501
|
payload.issues.push(...util.prefixIssues(key, result.issues));
|
|
1211
1502
|
}
|
|
1212
|
-
payload.value[
|
|
1503
|
+
payload.value[outKey] = result.value;
|
|
1213
1504
|
}
|
|
1214
1505
|
}
|
|
1215
1506
|
}
|
|
1216
1507
|
let unrecognized;
|
|
1217
1508
|
for (const key in input) {
|
|
1218
|
-
if (!
|
|
1509
|
+
if (!recordKeys.has(key)) {
|
|
1219
1510
|
unrecognized = unrecognized ?? [];
|
|
1220
1511
|
unrecognized.push(key);
|
|
1221
1512
|
}
|
|
@@ -1231,23 +1522,44 @@ exports.$ZodRecord = core.$constructor("$ZodRecord", (inst, def) => {
|
|
|
1231
1522
|
}
|
|
1232
1523
|
else {
|
|
1233
1524
|
payload.value = {};
|
|
1525
|
+
// Reflect.ownKeys for Symbol-key support; filter non-enumerable to match z.object()
|
|
1234
1526
|
for (const key of Reflect.ownKeys(input)) {
|
|
1235
1527
|
if (key === "__proto__")
|
|
1236
1528
|
continue;
|
|
1237
|
-
|
|
1529
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
1530
|
+
continue;
|
|
1531
|
+
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1238
1532
|
if (keyResult instanceof Promise) {
|
|
1239
1533
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1240
1534
|
}
|
|
1535
|
+
// Numeric string fallback: if key is a numeric string and failed, retry with Number(key)
|
|
1536
|
+
// This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals
|
|
1537
|
+
const checkNumericKey = typeof key === "string" && regexes.number.test(key) && keyResult.issues.length;
|
|
1538
|
+
if (checkNumericKey) {
|
|
1539
|
+
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
1540
|
+
if (retryResult instanceof Promise) {
|
|
1541
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1542
|
+
}
|
|
1543
|
+
if (retryResult.issues.length === 0) {
|
|
1544
|
+
keyResult = retryResult;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1241
1547
|
if (keyResult.issues.length) {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1548
|
+
if (def.mode === "loose") {
|
|
1549
|
+
// Pass through unchanged
|
|
1550
|
+
payload.value[key] = input[key];
|
|
1551
|
+
}
|
|
1552
|
+
else {
|
|
1553
|
+
// Default "strict" behavior: error on invalid key
|
|
1554
|
+
payload.issues.push({
|
|
1555
|
+
code: "invalid_key",
|
|
1556
|
+
origin: "record",
|
|
1557
|
+
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
1558
|
+
input: key,
|
|
1559
|
+
path: [key],
|
|
1560
|
+
inst,
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1251
1563
|
continue;
|
|
1252
1564
|
}
|
|
1253
1565
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
@@ -1312,8 +1624,8 @@ function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
|
|
|
1312
1624
|
}
|
|
1313
1625
|
else {
|
|
1314
1626
|
final.issues.push({
|
|
1315
|
-
origin: "map",
|
|
1316
1627
|
code: "invalid_key",
|
|
1628
|
+
origin: "map",
|
|
1317
1629
|
input,
|
|
1318
1630
|
inst,
|
|
1319
1631
|
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
@@ -1374,14 +1686,15 @@ function handleSetResult(result, final) {
|
|
|
1374
1686
|
exports.$ZodEnum = core.$constructor("$ZodEnum", (inst, def) => {
|
|
1375
1687
|
exports.$ZodType.init(inst, def);
|
|
1376
1688
|
const values = util.getEnumValues(def.entries);
|
|
1377
|
-
|
|
1689
|
+
const valuesSet = new Set(values);
|
|
1690
|
+
inst._zod.values = valuesSet;
|
|
1378
1691
|
inst._zod.pattern = new RegExp(`^(${values
|
|
1379
1692
|
.filter((k) => util.propertyKeyTypes.has(typeof k))
|
|
1380
1693
|
.map((o) => (typeof o === "string" ? util.escapeRegex(o) : o.toString()))
|
|
1381
1694
|
.join("|")})$`);
|
|
1382
1695
|
inst._zod.parse = (payload, _ctx) => {
|
|
1383
1696
|
const input = payload.value;
|
|
1384
|
-
if (
|
|
1697
|
+
if (valuesSet.has(input)) {
|
|
1385
1698
|
return payload;
|
|
1386
1699
|
}
|
|
1387
1700
|
payload.issues.push({
|
|
@@ -1395,13 +1708,17 @@ exports.$ZodEnum = core.$constructor("$ZodEnum", (inst, def) => {
|
|
|
1395
1708
|
});
|
|
1396
1709
|
exports.$ZodLiteral = core.$constructor("$ZodLiteral", (inst, def) => {
|
|
1397
1710
|
exports.$ZodType.init(inst, def);
|
|
1398
|
-
|
|
1711
|
+
if (def.values.length === 0) {
|
|
1712
|
+
throw new Error("Cannot create literal schema with no valid values");
|
|
1713
|
+
}
|
|
1714
|
+
const values = new Set(def.values);
|
|
1715
|
+
inst._zod.values = values;
|
|
1399
1716
|
inst._zod.pattern = new RegExp(`^(${def.values
|
|
1400
|
-
.map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? o.toString() : String(o)))
|
|
1717
|
+
.map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o)))
|
|
1401
1718
|
.join("|")})$`);
|
|
1402
1719
|
inst._zod.parse = (payload, _ctx) => {
|
|
1403
1720
|
const input = payload.value;
|
|
1404
|
-
if (
|
|
1721
|
+
if (values.has(input)) {
|
|
1405
1722
|
return payload;
|
|
1406
1723
|
}
|
|
1407
1724
|
payload.issues.push({
|
|
@@ -1417,6 +1734,7 @@ exports.$ZodFile = core.$constructor("$ZodFile", (inst, def) => {
|
|
|
1417
1734
|
exports.$ZodType.init(inst, def);
|
|
1418
1735
|
inst._zod.parse = (payload, _ctx) => {
|
|
1419
1736
|
const input = payload.value;
|
|
1737
|
+
// @ts-ignore
|
|
1420
1738
|
if (input instanceof File)
|
|
1421
1739
|
return payload;
|
|
1422
1740
|
payload.issues.push({
|
|
@@ -1430,12 +1748,17 @@ exports.$ZodFile = core.$constructor("$ZodFile", (inst, def) => {
|
|
|
1430
1748
|
});
|
|
1431
1749
|
exports.$ZodTransform = core.$constructor("$ZodTransform", (inst, def) => {
|
|
1432
1750
|
exports.$ZodType.init(inst, def);
|
|
1433
|
-
inst._zod.
|
|
1751
|
+
inst._zod.optin = "optional";
|
|
1752
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1753
|
+
if (ctx.direction === "backward") {
|
|
1754
|
+
throw new core.$ZodEncodeError(inst.constructor.name);
|
|
1755
|
+
}
|
|
1434
1756
|
const _out = def.transform(payload.value, payload);
|
|
1435
|
-
if (
|
|
1757
|
+
if (ctx.async) {
|
|
1436
1758
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
1437
1759
|
return output.then((output) => {
|
|
1438
1760
|
payload.value = output;
|
|
1761
|
+
payload.fallback = true;
|
|
1439
1762
|
return payload;
|
|
1440
1763
|
});
|
|
1441
1764
|
}
|
|
@@ -1443,9 +1766,16 @@ exports.$ZodTransform = core.$constructor("$ZodTransform", (inst, def) => {
|
|
|
1443
1766
|
throw new core.$ZodAsyncError();
|
|
1444
1767
|
}
|
|
1445
1768
|
payload.value = _out;
|
|
1769
|
+
payload.fallback = true;
|
|
1446
1770
|
return payload;
|
|
1447
1771
|
};
|
|
1448
1772
|
});
|
|
1773
|
+
function handleOptionalResult(result, input) {
|
|
1774
|
+
if (input === undefined && (result.issues.length || result.fallback)) {
|
|
1775
|
+
return { issues: [], value: undefined };
|
|
1776
|
+
}
|
|
1777
|
+
return result;
|
|
1778
|
+
}
|
|
1449
1779
|
exports.$ZodOptional = core.$constructor("$ZodOptional", (inst, def) => {
|
|
1450
1780
|
exports.$ZodType.init(inst, def);
|
|
1451
1781
|
inst._zod.optin = "optional";
|
|
@@ -1459,7 +1789,11 @@ exports.$ZodOptional = core.$constructor("$ZodOptional", (inst, def) => {
|
|
|
1459
1789
|
});
|
|
1460
1790
|
inst._zod.parse = (payload, ctx) => {
|
|
1461
1791
|
if (def.innerType._zod.optin === "optional") {
|
|
1462
|
-
|
|
1792
|
+
const input = payload.value;
|
|
1793
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1794
|
+
if (result instanceof Promise)
|
|
1795
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
1796
|
+
return handleOptionalResult(result, input);
|
|
1463
1797
|
}
|
|
1464
1798
|
if (payload.value === undefined) {
|
|
1465
1799
|
return payload;
|
|
@@ -1467,6 +1801,17 @@ exports.$ZodOptional = core.$constructor("$ZodOptional", (inst, def) => {
|
|
|
1467
1801
|
return def.innerType._zod.run(payload, ctx);
|
|
1468
1802
|
};
|
|
1469
1803
|
});
|
|
1804
|
+
exports.$ZodExactOptional = core.$constructor("$ZodExactOptional", (inst, def) => {
|
|
1805
|
+
// Call parent init - inherits optin/optout = "optional"
|
|
1806
|
+
exports.$ZodOptional.init(inst, def);
|
|
1807
|
+
// Override values/pattern to NOT add undefined
|
|
1808
|
+
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1809
|
+
util.defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
1810
|
+
// Override parse to just delegate (no undefined handling)
|
|
1811
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1812
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1813
|
+
};
|
|
1814
|
+
});
|
|
1470
1815
|
exports.$ZodNullable = core.$constructor("$ZodNullable", (inst, def) => {
|
|
1471
1816
|
exports.$ZodType.init(inst, def);
|
|
1472
1817
|
util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
@@ -1479,6 +1824,7 @@ exports.$ZodNullable = core.$constructor("$ZodNullable", (inst, def) => {
|
|
|
1479
1824
|
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;
|
|
1480
1825
|
});
|
|
1481
1826
|
inst._zod.parse = (payload, ctx) => {
|
|
1827
|
+
// Forward direction (decode): allow null to pass through
|
|
1482
1828
|
if (payload.value === null)
|
|
1483
1829
|
return payload;
|
|
1484
1830
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -1490,13 +1836,18 @@ exports.$ZodDefault = core.$constructor("$ZodDefault", (inst, def) => {
|
|
|
1490
1836
|
inst._zod.optin = "optional";
|
|
1491
1837
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1492
1838
|
inst._zod.parse = (payload, ctx) => {
|
|
1839
|
+
if (ctx.direction === "backward") {
|
|
1840
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1841
|
+
}
|
|
1842
|
+
// Forward direction (decode): apply defaults for undefined input
|
|
1493
1843
|
if (payload.value === undefined) {
|
|
1494
1844
|
payload.value = def.defaultValue;
|
|
1495
1845
|
/**
|
|
1496
|
-
* $ZodDefault
|
|
1846
|
+
* $ZodDefault returns the default value immediately in forward direction.
|
|
1497
1847
|
* 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. */
|
|
1498
1848
|
return payload;
|
|
1499
1849
|
}
|
|
1850
|
+
// Forward direction: continue with default handling
|
|
1500
1851
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1501
1852
|
if (result instanceof Promise) {
|
|
1502
1853
|
return result.then((result) => handleDefaultResult(result, def));
|
|
@@ -1515,6 +1866,10 @@ exports.$ZodPrefault = core.$constructor("$ZodPrefault", (inst, def) => {
|
|
|
1515
1866
|
inst._zod.optin = "optional";
|
|
1516
1867
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1517
1868
|
inst._zod.parse = (payload, ctx) => {
|
|
1869
|
+
if (ctx.direction === "backward") {
|
|
1870
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1871
|
+
}
|
|
1872
|
+
// Forward direction (decode): apply prefault for undefined input
|
|
1518
1873
|
if (payload.value === undefined) {
|
|
1519
1874
|
payload.value = def.defaultValue;
|
|
1520
1875
|
}
|
|
@@ -1549,6 +1904,9 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
1549
1904
|
exports.$ZodSuccess = core.$constructor("$ZodSuccess", (inst, def) => {
|
|
1550
1905
|
exports.$ZodType.init(inst, def);
|
|
1551
1906
|
inst._zod.parse = (payload, ctx) => {
|
|
1907
|
+
if (ctx.direction === "backward") {
|
|
1908
|
+
throw new core.$ZodEncodeError("ZodSuccess");
|
|
1909
|
+
}
|
|
1552
1910
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1553
1911
|
if (result instanceof Promise) {
|
|
1554
1912
|
return result.then((result) => {
|
|
@@ -1566,6 +1924,10 @@ exports.$ZodCatch = core.$constructor("$ZodCatch", (inst, def) => {
|
|
|
1566
1924
|
util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1567
1925
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1568
1926
|
inst._zod.parse = (payload, ctx) => {
|
|
1927
|
+
if (ctx.direction === "backward") {
|
|
1928
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1929
|
+
}
|
|
1930
|
+
// Forward direction (decode): apply catch logic
|
|
1569
1931
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1570
1932
|
if (result instanceof Promise) {
|
|
1571
1933
|
return result.then((result) => {
|
|
@@ -1579,6 +1941,7 @@ exports.$ZodCatch = core.$constructor("$ZodCatch", (inst, def) => {
|
|
|
1579
1941
|
input: payload.value,
|
|
1580
1942
|
});
|
|
1581
1943
|
payload.issues = [];
|
|
1944
|
+
payload.fallback = true;
|
|
1582
1945
|
}
|
|
1583
1946
|
return payload;
|
|
1584
1947
|
});
|
|
@@ -1593,6 +1956,7 @@ exports.$ZodCatch = core.$constructor("$ZodCatch", (inst, def) => {
|
|
|
1593
1956
|
input: payload.value,
|
|
1594
1957
|
});
|
|
1595
1958
|
payload.issues = [];
|
|
1959
|
+
payload.fallback = true;
|
|
1596
1960
|
}
|
|
1597
1961
|
return payload;
|
|
1598
1962
|
};
|
|
@@ -1617,27 +1981,97 @@ exports.$ZodPipe = core.$constructor("$ZodPipe", (inst, def) => {
|
|
|
1617
1981
|
util.defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
1618
1982
|
util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
1619
1983
|
util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
1984
|
+
util.defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
1620
1985
|
inst._zod.parse = (payload, ctx) => {
|
|
1986
|
+
if (ctx.direction === "backward") {
|
|
1987
|
+
const right = def.out._zod.run(payload, ctx);
|
|
1988
|
+
if (right instanceof Promise) {
|
|
1989
|
+
return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
1990
|
+
}
|
|
1991
|
+
return handlePipeResult(right, def.in, ctx);
|
|
1992
|
+
}
|
|
1621
1993
|
const left = def.in._zod.run(payload, ctx);
|
|
1622
1994
|
if (left instanceof Promise) {
|
|
1623
|
-
return left.then((left) => handlePipeResult(left, def, ctx));
|
|
1995
|
+
return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
1624
1996
|
}
|
|
1625
|
-
return handlePipeResult(left, def, ctx);
|
|
1997
|
+
return handlePipeResult(left, def.out, ctx);
|
|
1626
1998
|
};
|
|
1627
1999
|
});
|
|
1628
|
-
function handlePipeResult(left,
|
|
1629
|
-
if (
|
|
2000
|
+
function handlePipeResult(left, next, ctx) {
|
|
2001
|
+
if (left.issues.length) {
|
|
2002
|
+
// prevent further checks
|
|
2003
|
+
left.aborted = true;
|
|
1630
2004
|
return left;
|
|
1631
2005
|
}
|
|
1632
|
-
return
|
|
2006
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
1633
2007
|
}
|
|
2008
|
+
exports.$ZodCodec = core.$constructor("$ZodCodec", (inst, def) => {
|
|
2009
|
+
exports.$ZodType.init(inst, def);
|
|
2010
|
+
util.defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2011
|
+
util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
2012
|
+
util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
2013
|
+
util.defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
2014
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2015
|
+
const direction = ctx.direction || "forward";
|
|
2016
|
+
if (direction === "forward") {
|
|
2017
|
+
const left = def.in._zod.run(payload, ctx);
|
|
2018
|
+
if (left instanceof Promise) {
|
|
2019
|
+
return left.then((left) => handleCodecAResult(left, def, ctx));
|
|
2020
|
+
}
|
|
2021
|
+
return handleCodecAResult(left, def, ctx);
|
|
2022
|
+
}
|
|
2023
|
+
else {
|
|
2024
|
+
const right = def.out._zod.run(payload, ctx);
|
|
2025
|
+
if (right instanceof Promise) {
|
|
2026
|
+
return right.then((right) => handleCodecAResult(right, def, ctx));
|
|
2027
|
+
}
|
|
2028
|
+
return handleCodecAResult(right, def, ctx);
|
|
2029
|
+
}
|
|
2030
|
+
};
|
|
2031
|
+
});
|
|
2032
|
+
function handleCodecAResult(result, def, ctx) {
|
|
2033
|
+
if (result.issues.length) {
|
|
2034
|
+
// prevent further checks
|
|
2035
|
+
result.aborted = true;
|
|
2036
|
+
return result;
|
|
2037
|
+
}
|
|
2038
|
+
const direction = ctx.direction || "forward";
|
|
2039
|
+
if (direction === "forward") {
|
|
2040
|
+
const transformed = def.transform(result.value, result);
|
|
2041
|
+
if (transformed instanceof Promise) {
|
|
2042
|
+
return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
|
|
2043
|
+
}
|
|
2044
|
+
return handleCodecTxResult(result, transformed, def.out, ctx);
|
|
2045
|
+
}
|
|
2046
|
+
else {
|
|
2047
|
+
const transformed = def.reverseTransform(result.value, result);
|
|
2048
|
+
if (transformed instanceof Promise) {
|
|
2049
|
+
return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
|
|
2050
|
+
}
|
|
2051
|
+
return handleCodecTxResult(result, transformed, def.in, ctx);
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
2055
|
+
// Check if transform added any issues
|
|
2056
|
+
if (left.issues.length) {
|
|
2057
|
+
left.aborted = true;
|
|
2058
|
+
return left;
|
|
2059
|
+
}
|
|
2060
|
+
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
2061
|
+
}
|
|
2062
|
+
exports.$ZodPreprocess = core.$constructor("$ZodPreprocess", (inst, def) => {
|
|
2063
|
+
exports.$ZodPipe.init(inst, def);
|
|
2064
|
+
});
|
|
1634
2065
|
exports.$ZodReadonly = core.$constructor("$ZodReadonly", (inst, def) => {
|
|
1635
2066
|
exports.$ZodType.init(inst, def);
|
|
1636
2067
|
util.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
1637
2068
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1638
|
-
util.defineLazy(inst._zod, "optin", () => def.innerType
|
|
1639
|
-
util.defineLazy(inst._zod, "optout", () => def.innerType
|
|
2069
|
+
util.defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
2070
|
+
util.defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
1640
2071
|
inst._zod.parse = (payload, ctx) => {
|
|
2072
|
+
if (ctx.direction === "backward") {
|
|
2073
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2074
|
+
}
|
|
1641
2075
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1642
2076
|
if (result instanceof Promise) {
|
|
1643
2077
|
return result.then(handleReadonlyResult);
|
|
@@ -1653,7 +2087,8 @@ exports.$ZodTemplateLiteral = core.$constructor("$ZodTemplateLiteral", (inst, de
|
|
|
1653
2087
|
exports.$ZodType.init(inst, def);
|
|
1654
2088
|
const regexParts = [];
|
|
1655
2089
|
for (const part of def.parts) {
|
|
1656
|
-
if (part
|
|
2090
|
+
if (typeof part === "object" && part !== null) {
|
|
2091
|
+
// is Zod schema
|
|
1657
2092
|
if (!part._zod.pattern) {
|
|
1658
2093
|
// if (!source)
|
|
1659
2094
|
throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
|
|
@@ -1678,7 +2113,7 @@ exports.$ZodTemplateLiteral = core.$constructor("$ZodTemplateLiteral", (inst, de
|
|
|
1678
2113
|
payload.issues.push({
|
|
1679
2114
|
input: payload.value,
|
|
1680
2115
|
inst,
|
|
1681
|
-
expected: "
|
|
2116
|
+
expected: "string",
|
|
1682
2117
|
code: "invalid_type",
|
|
1683
2118
|
});
|
|
1684
2119
|
return payload;
|
|
@@ -1689,7 +2124,7 @@ exports.$ZodTemplateLiteral = core.$constructor("$ZodTemplateLiteral", (inst, de
|
|
|
1689
2124
|
input: payload.value,
|
|
1690
2125
|
inst,
|
|
1691
2126
|
code: "invalid_format",
|
|
1692
|
-
format: "template_literal",
|
|
2127
|
+
format: def.format ?? "template_literal",
|
|
1693
2128
|
pattern: inst._zod.pattern.source,
|
|
1694
2129
|
});
|
|
1695
2130
|
return payload;
|
|
@@ -1697,6 +2132,85 @@ exports.$ZodTemplateLiteral = core.$constructor("$ZodTemplateLiteral", (inst, de
|
|
|
1697
2132
|
return payload;
|
|
1698
2133
|
};
|
|
1699
2134
|
});
|
|
2135
|
+
exports.$ZodFunction = core.$constructor("$ZodFunction", (inst, def) => {
|
|
2136
|
+
exports.$ZodType.init(inst, def);
|
|
2137
|
+
inst._def = def;
|
|
2138
|
+
inst._zod.def = def;
|
|
2139
|
+
inst.implement = (func) => {
|
|
2140
|
+
if (typeof func !== "function") {
|
|
2141
|
+
throw new Error("implement() must be called with a function");
|
|
2142
|
+
}
|
|
2143
|
+
return function (...args) {
|
|
2144
|
+
const parsedArgs = inst._def.input ? (0, parse_js_1.parse)(inst._def.input, args) : args;
|
|
2145
|
+
const result = Reflect.apply(func, this, parsedArgs);
|
|
2146
|
+
if (inst._def.output) {
|
|
2147
|
+
return (0, parse_js_1.parse)(inst._def.output, result);
|
|
2148
|
+
}
|
|
2149
|
+
return result;
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
inst.implementAsync = (func) => {
|
|
2153
|
+
if (typeof func !== "function") {
|
|
2154
|
+
throw new Error("implementAsync() must be called with a function");
|
|
2155
|
+
}
|
|
2156
|
+
return async function (...args) {
|
|
2157
|
+
const parsedArgs = inst._def.input ? await (0, parse_js_1.parseAsync)(inst._def.input, args) : args;
|
|
2158
|
+
const result = await Reflect.apply(func, this, parsedArgs);
|
|
2159
|
+
if (inst._def.output) {
|
|
2160
|
+
return await (0, parse_js_1.parseAsync)(inst._def.output, result);
|
|
2161
|
+
}
|
|
2162
|
+
return result;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
2166
|
+
if (typeof payload.value !== "function") {
|
|
2167
|
+
payload.issues.push({
|
|
2168
|
+
code: "invalid_type",
|
|
2169
|
+
expected: "function",
|
|
2170
|
+
input: payload.value,
|
|
2171
|
+
inst,
|
|
2172
|
+
});
|
|
2173
|
+
return payload;
|
|
2174
|
+
}
|
|
2175
|
+
// Check if output is a promise type to determine if we should use async implementation
|
|
2176
|
+
const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise";
|
|
2177
|
+
if (hasPromiseOutput) {
|
|
2178
|
+
payload.value = inst.implementAsync(payload.value);
|
|
2179
|
+
}
|
|
2180
|
+
else {
|
|
2181
|
+
payload.value = inst.implement(payload.value);
|
|
2182
|
+
}
|
|
2183
|
+
return payload;
|
|
2184
|
+
};
|
|
2185
|
+
inst.input = (...args) => {
|
|
2186
|
+
const F = inst.constructor;
|
|
2187
|
+
if (Array.isArray(args[0])) {
|
|
2188
|
+
return new F({
|
|
2189
|
+
type: "function",
|
|
2190
|
+
input: new exports.$ZodTuple({
|
|
2191
|
+
type: "tuple",
|
|
2192
|
+
items: args[0],
|
|
2193
|
+
rest: args[1],
|
|
2194
|
+
}),
|
|
2195
|
+
output: inst._def.output,
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
return new F({
|
|
2199
|
+
type: "function",
|
|
2200
|
+
input: args[0],
|
|
2201
|
+
output: inst._def.output,
|
|
2202
|
+
});
|
|
2203
|
+
};
|
|
2204
|
+
inst.output = (output) => {
|
|
2205
|
+
const F = inst.constructor;
|
|
2206
|
+
return new F({
|
|
2207
|
+
type: "function",
|
|
2208
|
+
input: inst._def.input,
|
|
2209
|
+
output,
|
|
2210
|
+
});
|
|
2211
|
+
};
|
|
2212
|
+
return inst;
|
|
2213
|
+
});
|
|
1700
2214
|
exports.$ZodPromise = core.$constructor("$ZodPromise", (inst, def) => {
|
|
1701
2215
|
exports.$ZodType.init(inst, def);
|
|
1702
2216
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1705,11 +2219,19 @@ exports.$ZodPromise = core.$constructor("$ZodPromise", (inst, def) => {
|
|
|
1705
2219
|
});
|
|
1706
2220
|
exports.$ZodLazy = core.$constructor("$ZodLazy", (inst, def) => {
|
|
1707
2221
|
exports.$ZodType.init(inst, def);
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
util.defineLazy(inst._zod, "
|
|
1712
|
-
|
|
2222
|
+
// Cache the resolved inner type on the shared `def` so all clones of this
|
|
2223
|
+
// lazy (e.g. via `.describe()`/`.meta()`) share the same inner instance,
|
|
2224
|
+
// preserving identity for cycle detection on recursive schemas.
|
|
2225
|
+
util.defineLazy(inst._zod, "innerType", () => {
|
|
2226
|
+
const d = def;
|
|
2227
|
+
if (!d._cachedInner)
|
|
2228
|
+
d._cachedInner = def.getter();
|
|
2229
|
+
return d._cachedInner;
|
|
2230
|
+
});
|
|
2231
|
+
util.defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
2232
|
+
util.defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
2233
|
+
util.defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
2234
|
+
util.defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? undefined);
|
|
1713
2235
|
inst._zod.parse = (payload, ctx) => {
|
|
1714
2236
|
const inner = inst._zod.innerType;
|
|
1715
2237
|
return inner._zod.run(payload, ctx);
|