@qqbrowser/openclaw-qbot 0.0.148 → 0.10.1
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-lookup-CW-_CL7y.js +0 -1
- package/dist/acp-cli-BHsTg1ac.js +0 -1
- package/dist/acp-cli-D_WC9SZX.js +0 -1
- package/dist/active-listener-1MJXk3Iq.js +0 -1
- package/dist/active-listener-D8VOdVx3.js +0 -1
- package/dist/active-listener-D8uP0H5W.js +0 -1
- package/dist/active-listener-DeKRt_UV.js +0 -1
- package/dist/agent-scope-DAWJwFfl.js +0 -1
- package/dist/agent-scope-DXZc3eNT.js +0 -1
- package/dist/agents-Cd1yL8fG.js +0 -1
- package/dist/agents.config-CaRMmWS8.js +0 -1
- package/dist/agents.config-DSCcdYtv.js +0 -1
- package/dist/allow-from-B6dI7oz8.js +0 -1
- package/dist/allow-from-DEeVIPKS.js +0 -1
- package/dist/api-BeG0ObSq.js +0 -1
- package/dist/api-Dx8x1KTs.js +0 -1
- package/dist/api-key-rotation-BLt5E2Cw.js +0 -1
- package/dist/api-key-rotation-BpEL4aeX.js +0 -1
- package/dist/api-key-rotation-DayEfYpa.js +0 -1
- package/dist/api-key-rotation-Rz2ESQSA.js +0 -1
- package/dist/arg-split-BOqSMBuf.js +0 -1
- package/dist/arg-split-DE5RqDHq.js +0 -1
- package/dist/audio-preflight-8WB1LJBS.js +0 -1
- package/dist/audio-preflight-BcPHPfr_.js +0 -1
- package/dist/audio-preflight-DTO631Yb.js +0 -1
- package/dist/audio-preflight-O-0lDeKh.js +0 -1
- package/dist/audio-transcription-runner-9H9eUZ1D.js +0 -1
- package/dist/audio-transcription-runner-BIKj1CBU.js +0 -1
- package/dist/audio-transcription-runner-BwjMhAUa.js +0 -1
- package/dist/audio-transcription-runner-CQ7rq0d_.js +0 -1
- package/dist/audit-9I53EvMQ.js +0 -1
- package/dist/audit-BGsUfJzD.js +0 -1
- package/dist/audit-membership-runtime-BpRsMj5-.js +0 -1
- package/dist/audit-membership-runtime-BsfLZNBj.js +0 -1
- package/dist/audit-membership-runtime-DRHirRmx.js +0 -1
- package/dist/audit-membership-runtime-g0dEWJTp.js +0 -1
- package/dist/audit-membership-runtime-kdyToskD.js +0 -1
- package/dist/auth-choice-BmI4sIGs.js +0 -1
- package/dist/auth-choice-DDsPJF6F.js +0 -1
- package/dist/auth-choice-Dy0jIOLV.js +0 -1
- package/dist/auth-choice-MqcWuVyu.js +0 -1
- package/dist/auth-choice-options-B3WQyS7I.js +0 -1
- package/dist/auth-choice-options-Dw14noox.js +0 -1
- package/dist/auth-choice-prompt-uegl56cf.js +0 -1
- package/dist/auth-choice-prompt-xYj13czb.js +0 -1
- package/dist/auth-choice.apply-helpers-D911bYcw.js +0 -1
- package/dist/auth-choice.apply-helpers-pJ4CPZCk.js +0 -1
- package/dist/auth-profiles-C8rZRS0X.js +0 -1
- package/dist/auth-token-DZLZ3d_I.js +0 -1
- package/dist/auth-token-Dp6bxT29.js +0 -1
- package/dist/banner-CAtilyXr.js +0 -1
- package/dist/bonjour-discovery-ClTijpMw.js +0 -1
- package/dist/bonjour-discovery-DMB6yrOF.js +0 -1
- package/dist/boolean-Ch3DfXPy.js +0 -1
- package/dist/boolean-D15s2V33.js +0 -1
- package/dist/boolean-DypnRoRK.js +0 -1
- package/dist/brew-COcDl8CB.js +0 -1
- package/dist/brew-DDPm_HfE.js +0 -1
- package/dist/browser-cli-Bf-Pzjxs.js +0 -1
- package/dist/browser-cli-DkrBCfYg.js +0 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +0 -1
- package/dist/bundled/bootstrap-extra-files/handler.js +0 -1
- package/dist/bundled/command-logger/handler.js +0 -1
- package/dist/bundled/session-memory/handler.js +0 -1
- package/dist/call-BWx7hNtl.js +0 -1
- package/dist/call-JB-cGR9n.js +0 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-account-context-BMPAMZEv.js +0 -1
- package/dist/channel-account-context-DAcarnqW.js +0 -1
- package/dist/channel-activity-B04WbrrK.js +0 -1
- package/dist/channel-activity-BhiLsKvM.js +0 -1
- package/dist/channel-activity-DmgWmSAG.js +0 -1
- package/dist/channel-activity-Dw6F-ehJ.js +0 -1
- package/dist/channel-activity-htoVXTET.js +0 -1
- package/dist/channel-options-CCqtIYCc.js +0 -1
- package/dist/channel-options-CKoyPq8p.js +0 -1
- package/dist/channel-selection-BPxE8JR7.js +0 -1
- package/dist/channel-selection-si1OzWyQ.js +0 -1
- package/dist/channel-web-CCSMlUux.js +0 -1
- package/dist/channel-web-CwUfYqjg.js +0 -1
- package/dist/channels/plugins/actions/discord.js +0 -1
- package/dist/channels/plugins/actions/signal.js +0 -1
- package/dist/channels/plugins/actions/telegram.js +0 -1
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +0 -1
- package/dist/channels-cli-BfgVv5jH.js +0 -1
- package/dist/channels-cli-BvGXgERj.js +0 -1
- package/dist/channels-status-issues-8eFrGKyf.js +0 -1
- package/dist/channels-status-issues-PRgOT90w.js +0 -1
- package/dist/chat-envelope-Bznn2SoS.js +0 -1
- package/dist/chat-envelope-HVpKusFc.js +0 -1
- package/dist/clack-prompter-DBPdGdqp.js +0 -1
- package/dist/clack-prompter-Dq0aY6iM.js +0 -1
- package/dist/clawbot-cli-B0iTJ-pm.js +0 -1
- package/dist/clawbot-cli-BcEtQbFY.js +0 -1
- package/dist/cleanup-utils-BWm70DoD.js +0 -1
- package/dist/cleanup-utils-D-RhEX6F.js +0 -1
- package/dist/cli-Bt--1dhL.js +0 -1
- package/dist/cli-CBg8KhmQ.js +0 -1
- package/dist/cli-utils-BY7dLMFy.js +0 -1
- package/dist/cli-utils-BleB1eys.js +0 -1
- package/dist/clipboard-Bk8cviBt.js +0 -1
- package/dist/clipboard-CKT_VIkG.js +0 -1
- package/dist/cmd-argv-BBT5l8AV.js +0 -1
- package/dist/cmd-argv-Bh-KpaZ0.js +0 -1
- package/dist/command-format-BbDT1tlm.js +0 -1
- package/dist/command-format-CLxIPuLR.js +0 -1
- package/dist/command-options-BpOUDl2S.js +0 -1
- package/dist/command-options-Bq5nQxz6.js +0 -1
- package/dist/command-poll-backoff-BZLHYB2k.js +0 -1
- package/dist/command-poll-backoff-Cww_r-24.js +0 -1
- package/dist/command-poll-backoff-Df6cOQrX.js +0 -1
- package/dist/command-poll-backoff-endAPdwn.js +0 -1
- package/dist/{command-registry-BxNiXs5w.js → command-registry-D_jtBegA.js} +1 -2
- package/dist/command-secret-targets-BEjtBf5Z.js +0 -1
- package/dist/command-secret-targets-CfXtLkLF.js +0 -1
- package/dist/commands-CGpM84iR.js +0 -1
- package/dist/commands-Dy7duWlt.js +0 -1
- package/dist/commands-registry-C5Hg7gyk.js +0 -1
- package/dist/commands-registry-DT6FDUev.js +0 -1
- package/dist/commands-registry-DlvNUkXz.js +0 -1
- package/dist/commands-registry-gvMK7Pw9.js +0 -1
- package/dist/compact-CYbPi7_-.js +0 -1
- package/dist/{completion-cli-Yg5BF97F.js → completion-cli-BVbT_aR2.js} +1 -2
- package/dist/{completion-cli-BRE0F8Tu.js → completion-cli-Bw_hBrlA.js} +1 -2
- package/dist/config-BqW5S1xL.js +0 -1
- package/dist/config-Cji73to5.js +0 -1
- package/dist/config-cli-CwW76_j_.js +0 -1
- package/dist/config-cli-F-lkPjjz.js +0 -1
- package/dist/config-guard-0_afzaJz.js +0 -1
- package/dist/config-guard-CqUJ8uaF.js +0 -1
- package/dist/config-validation-6hk_fxD8.js +0 -1
- package/dist/config-validation-BAmmD9p4.js +0 -1
- package/dist/configure--c4tTVPz.js +0 -1
- package/dist/configure-DFlnM_zh.js +0 -1
- package/dist/connection-auth-CjaeEu5D.js +0 -1
- package/dist/connection-auth-smZlFWxD.js +0 -1
- package/dist/context-window-guard-7crlatf9.js +0 -1
- package/dist/context-window-guard-CPChk363.js +0 -1
- package/dist/control-ui-assets-BIa0GGDg.js +0 -1
- package/dist/control-ui-assets-CTHGGgaX.js +0 -1
- package/dist/cron-cli-BKS4L-uW.js +0 -1
- package/dist/cron-cli-L9wLLocl.js +0 -1
- package/dist/daemon-cli-BdDHNRqp.js +0 -1
- package/dist/daemon-cli-CEHkT-54.js +0 -1
- package/dist/daemon-cli.js +0 -1
- package/dist/daemon-install-CMNtsW5o.js +0 -1
- package/dist/daemon-install-D2gMiA0p.js +0 -1
- package/dist/daemon-install-plan.shared-BkwZgIAY.js +0 -1
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +0 -1
- package/dist/daemon-runtime-DHiDbRuC.js +0 -1
- package/dist/daemon-runtime-VcpeBRJV.js +0 -1
- package/dist/dangerous-name-matching-BOmvAibz.js +0 -1
- package/dist/dangerous-name-matching-DtllRqBD.js +0 -1
- package/dist/dangerous-tools-CFRYQJ6V.js +0 -1
- package/dist/dangerous-tools-oYCu5wfC.js +0 -1
- package/dist/deliver-AM3FP5rj.js +0 -1
- package/dist/deliver-BhWhLvQO.js +0 -1
- package/dist/deliver-DUNkj4hy.js +0 -1
- package/dist/deliver-SqSusZP3.js +0 -1
- package/dist/delivery-queue-CKbauSFq.js +0 -1
- package/dist/delivery-queue-nkPJu0fY.js +0 -1
- package/dist/device-pairing-DAzYy3vX.js +0 -1
- package/dist/device-pairing-DknI3IDo.js +0 -1
- package/dist/devices-cli-BYD6Sq88.js +0 -1
- package/dist/devices-cli-Dl-0fQmR.js +0 -1
- package/dist/diagnostic-BEZszppF.js +0 -1
- package/dist/diagnostic-D1H7_8QG.js +0 -1
- package/dist/diagnostic-DtuQPRbp.js +0 -1
- package/dist/diagnostic-VBPCgF9l.js +0 -1
- package/dist/diagnostics-BgbeL9KE.js +0 -1
- package/dist/diagnostics-Cdctg9K_.js +0 -1
- package/dist/directory-cli-CpMjutQb.js +0 -1
- package/dist/directory-cli-b_l3qJI_.js +0 -1
- package/dist/dns-cli-C7L4RYOm.js +0 -1
- package/dist/dns-cli-wKg6nn6f.js +0 -1
- package/dist/docs-cli-CwW4sqbC.js +0 -1
- package/dist/docs-cli-DnLLU7eX.js +0 -1
- package/dist/{doctor-completion-II0Wb435.js → doctor-completion-C9CPhCor.js} +1 -2
- package/dist/{doctor-completion-Bu-98ocm.js → doctor-completion-DI7mGC3D.js} +1 -2
- package/dist/doctor-config-flow-BVpr8-q9.js +0 -1
- package/dist/doctor-config-flow-Dio3s4x6.js +0 -1
- package/dist/enable-CjFPAUgo.js +0 -1
- package/dist/enable-PO3qN4Lf.js +0 -1
- package/dist/entry-status-CCwwKO43.js +0 -1
- package/dist/entry-status-CoXkbJcX.js +0 -1
- package/dist/entry.js +1 -2
- package/dist/env-D7wNuBx1.js +0 -1
- package/dist/env-overrides-DHtB4kK3.js +0 -1
- package/dist/env-overrides-DXJbFrwI.js +0 -1
- package/dist/errors-6SQWM9dj.js +0 -1
- package/dist/errors-Bunti32V.js +0 -1
- package/dist/exec-B3eleY5O.js +0 -1
- package/dist/exec-DHqLtFYt.js +0 -1
- package/dist/exec-approvals-BXO9Cezj.js +0 -1
- package/dist/exec-approvals-BpBNEy6i.js +0 -1
- package/dist/exec-approvals-allowlist-B-Yf6RsU.js +0 -1
- package/dist/exec-approvals-allowlist-CGjRWREs.js +0 -1
- package/dist/exec-approvals-cli-BokGzWFo.js +0 -1
- package/dist/exec-approvals-cli-CsUGu6m3.js +0 -1
- package/dist/exec-safe-bin-runtime-policy-CRPHdPbF.js +0 -1
- package/dist/exec-safe-bin-runtime-policy-v44u39fl.js +0 -1
- package/dist/fetch-B4bz67_N.js +0 -1
- package/dist/fetch-BJT3BrkJ.js +0 -1
- package/dist/fetch-Bn0mWg6a.js +0 -1
- package/dist/fetch-Ce-scEU-.js +0 -1
- package/dist/fetch-D0rZDHKO.js +0 -1
- package/dist/fetch-D5wrJ0AX.js +0 -1
- package/dist/fetch-DBat25iG.js +0 -1
- package/dist/fetch-DHo17YmK.js +0 -1
- package/dist/fetch-Dh-apy46.js +0 -1
- package/dist/fetch-Dikjvc5M.js +0 -1
- package/dist/fetch-DsjPfQlp.js +0 -1
- package/dist/fetch-_g8lZ8K8.js +0 -1
- package/dist/fetch-guard-7BAwnP4a.js +0 -1
- package/dist/fetch-guard-DaZmvp-L.js +0 -1
- package/dist/fetch-guard-DvaNcypz.js +0 -1
- package/dist/fetch-guard-oWKGrwV4.js +0 -1
- package/dist/fetch-hy0JKSsm.js +0 -1
- package/dist/fetch-timeout-CdYxWG9w.js +0 -1
- package/dist/fetch-timeout-Cj8_oAls.js +0 -1
- package/dist/fetch-timeout-DoOI_izT.js +0 -1
- package/dist/fetch-timeout-u8g99Ax0.js +0 -1
- package/dist/format-Bn1bwJKX.js +0 -1
- package/dist/format-Ce7I7s-k.js +0 -1
- package/dist/format-duration-C8AzNqKh.js +0 -1
- package/dist/format-duration-D5AMtmHa.js +0 -1
- package/dist/format-relative-B9pSIdGe.js +0 -1
- package/dist/format-relative-DkMjYy7z.js +0 -1
- package/dist/frontmatter-BkZkwkVO.js +0 -1
- package/dist/frontmatter-C7mzDNxd.js +0 -1
- package/dist/frontmatter-CzpfPBFl.js +0 -1
- package/dist/{gateway-cli-DBjTjdhJ.js → gateway-cli-BMmU2dsG.js} +1 -2
- package/dist/{gateway-cli-B-AX4-uD.js → gateway-cli-Kp-caOwI.js} +1 -2
- package/dist/gateway-install-token-Dt7hDXoR.js +0 -1
- package/dist/gateway-install-token-cSJrfU_1.js +0 -1
- package/dist/gateway-rpc-C78PzdZR.js +0 -1
- package/dist/gateway-rpc-CecloWA1.js +0 -1
- package/dist/github-copilot-token-C79yeDKS.js +0 -1
- package/dist/github-copilot-token-DGYAlOmV.js +0 -1
- package/dist/github-copilot-token-DePP-lIf.js +0 -1
- package/dist/github-copilot-token-wm6mbypz.js +0 -1
- package/dist/gmail-setup-utils-CYOH3zzx.js +0 -1
- package/dist/gmail-setup-utils-S-MyEGuj.js +0 -1
- package/dist/group-access-BHKVOhrj.js +0 -1
- package/dist/group-access-D2DOYMfr.js +0 -1
- package/dist/health-B_-ZE5FK.js +0 -1
- package/dist/health-CIZFVJEG.js +0 -1
- package/dist/health-format-B1nj3Wfn.js +0 -1
- package/dist/health-format-VBr6LEpt.js +0 -1
- package/dist/heartbeat-visibility-BQ_esv2m.js +0 -1
- package/dist/heartbeat-visibility-q74UdY8O.js +0 -1
- package/dist/help-format-B4aEI7V9.js +0 -1
- package/dist/help-format-BRbF_INg.js +0 -1
- package/dist/helpers-COz1ghcB.js +0 -1
- package/dist/helpers-Cp8gcO6u.js +0 -1
- package/dist/hooks-cli-BoxAnC-E.js +0 -1
- package/dist/hooks-cli-CnCOjVv0.js +0 -1
- package/dist/hooks-status-BHt-Xvh4.js +0 -1
- package/dist/hooks-status-CRJ4J0ZW.js +0 -1
- package/dist/image-BBO-0uLG.js +0 -1
- package/dist/image-BP1cfEh1.js +0 -1
- package/dist/image-BVbOr9yV.js +0 -1
- package/dist/image-CcsuUB1B.js +0 -1
- package/dist/index.js +1 -2
- package/dist/inspect-BKV-I1UE.js +0 -1
- package/dist/inspect-z59cgmYc.js +0 -1
- package/dist/install-safe-path-C6kc_8NW.js +0 -1
- package/dist/install-safe-path-iesxijn2.js +0 -1
- package/dist/installs-CKzq-YqL.js +0 -1
- package/dist/installs-DzSskdtJ.js +0 -1
- package/dist/ipv4-B05QVStj.js +0 -1
- package/dist/ipv4-SeeyR-DH.js +0 -1
- package/dist/ir-B7mdG27k.js +0 -1
- package/dist/ir-BTfsA9Dd.js +0 -1
- package/dist/ir-CNTx85qV.js +0 -1
- package/dist/ir-DdjufzKF.js +0 -1
- package/dist/is-main-DG5ueqhF.js +0 -1
- package/dist/issue-format-BtMzMXtZ.js +0 -1
- package/dist/issue-format-CN9PHzXY.js +0 -1
- package/dist/kill-tree-D6nPx1_o.js +0 -1
- package/dist/lifecycle-core-B1nrgJCw.js +0 -1
- package/dist/lifecycle-core-D_LWJeD_.js +0 -1
- package/dist/line/accounts.js +0 -1
- package/dist/line/send.js +0 -1
- package/dist/line/template-messages.js +0 -1
- package/dist/links-CBnmRP9D.js +0 -1
- package/dist/links-CySwdMcF.js +0 -1
- package/dist/llm-slug-generator.js +0 -1
- package/dist/load-options-BsOW74dp.js +0 -1
- package/dist/load-options-C7dLuybp.js +0 -1
- package/dist/load-options-DV4j6Aqb.js +0 -1
- package/dist/load-options-Dwt0CeEg.js +0 -1
- package/dist/local-roots-aA-4ohTq.js +0 -1
- package/dist/logger-5W0OocJW.js +0 -1
- package/dist/logger-Bl8URnrW.js +0 -1
- package/dist/logger-DwWqfo66.js +0 -1
- package/dist/logger-kQAOe3qp.js +0 -1
- package/dist/logging-B7XHbCNn.js +0 -1
- package/dist/logging-CbMVr2MA.js +0 -1
- package/dist/login-BGLWiksP.js +0 -1
- package/dist/login-CcYeF5T_.js +0 -1
- package/dist/login-DSZdCiDx.js +0 -1
- package/dist/login-DWZzj-P1.js +0 -1
- package/dist/login-qr-BGpGVMES.js +0 -1
- package/dist/login-qr-BUdgvi3v.js +0 -1
- package/dist/login-qr-Bx8skPB-.js +0 -1
- package/dist/login-qr-DYUCmP-W.js +0 -1
- package/dist/login-qr-_79eoRb4.js +0 -1
- package/dist/logs-cli-C52caOop.js +0 -1
- package/dist/logs-cli-Ch50TE-J.js +0 -1
- package/dist/manager-CI6O4QH6.js +0 -1
- package/dist/manager-CN_rQm1L.js +0 -1
- package/dist/manager-CxZRoQkE.js +0 -1
- package/dist/manager-iFi--Fru.js +0 -1
- package/dist/memory-cli-BouV_wyL.js +0 -1
- package/dist/memory-cli-C8fBBPgv.js +0 -1
- package/dist/model-catalog-D-hkNWin.js +0 -1
- package/dist/model-catalog-mt0IcDfR.js +0 -1
- package/dist/model-param-b-B0r2cPDw.js +0 -1
- package/dist/model-param-b-BqIr5rY5.js +0 -1
- package/dist/model-picker-BB0Zdvyu.js +0 -1
- package/dist/model-picker-DeiWyW0N.js +0 -1
- package/dist/model-selection-BLbnMb5E.js +0 -1
- package/dist/model-selection-D7mdJmGK.js +0 -1
- package/dist/model-selection-DvekK9rZ.js +0 -1
- package/dist/models-BBYqej07.js +0 -1
- package/dist/models-cli-CMMhnlHo.js +0 -1
- package/dist/models-cli-CqbDyDn2.js +0 -1
- package/dist/models-config-BlQ39qlq.js +0 -1
- package/dist/models-config-DZzS67GS.js +0 -1
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +0 -1
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +0 -1
- package/dist/node-cli-Bzu1efMB.js +0 -1
- package/dist/node-cli-Dv-Eib4o.js +0 -1
- package/dist/node-command-policy-D9yZu9zq.js +0 -1
- package/dist/node-command-policy-DyWp3Bjz.js +0 -1
- package/dist/node-commands-8GBOiktk.js +0 -1
- package/dist/node-commands-DdkziOTx.js +0 -1
- package/dist/node-resolve-B3BJbmQX.js +0 -1
- package/dist/node-resolve-DLZf3-1V.js +0 -1
- package/dist/node-service-BRfrNp8l.js +0 -1
- package/dist/node-service-C0bl7jcZ.js +0 -1
- package/dist/node-shell-BVZylVP6.js +0 -1
- package/dist/nodes-cli-B3aNQG30.js +0 -1
- package/dist/nodes-cli-DzO6PSFw.js +0 -1
- package/dist/nodes-screen-8nRBsfID.js +0 -1
- package/dist/note-D4GAwgha.js +0 -1
- package/dist/note-Dp-d_utk.js +0 -1
- package/dist/npm-pack-install-B23L-AtF.js +0 -1
- package/dist/npm-pack-install-C0te3Oap.js +0 -1
- package/dist/npm-resolution--_-0q2ks.js +0 -1
- package/dist/npm-resolution-CBlwQq3a.js +0 -1
- package/dist/oauth-env-DAamJ1oz.js +0 -1
- package/dist/oauth-env-DSLBTWb1.js +0 -1
- package/dist/oauth-tls-preflight-BSBRDIfC.js +0 -1
- package/dist/oauth-tls-preflight-ByNjbUR5.js +0 -1
- package/dist/ollama-setup-CGuyH3Ey.js +0 -1
- package/dist/ollama-setup-LVRPefmV.js +0 -1
- package/dist/{onboard-DMmLqys5.js → onboard-DZG0HnuP.js} +1 -2
- package/dist/{onboard-C2Ofvb_A.js → onboard-DlCEww7K.js} +1 -2
- package/dist/onboard-channels-BDMtq3ex.js +0 -1
- package/dist/onboard-channels-BO3AN_eA.js +0 -1
- package/dist/onboard-config-B7U20YRw.js +0 -1
- package/dist/onboard-config-DS9dUv8M.js +0 -1
- package/dist/onboard-custom--OylwoHQ.js +0 -1
- package/dist/onboard-custom-_Df_ciX2.js +0 -1
- package/dist/onboard-helpers-D90u4wVK.js +0 -1
- package/dist/onboard-helpers-DOlI17Ac.js +0 -1
- package/dist/onboard-hooks-CERzXObm.js +0 -1
- package/dist/onboard-hooks-gQ3sxBNi.js +0 -1
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +0 -1
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +0 -1
- package/dist/onboard-remote-B1-SlmUN.js +0 -1
- package/dist/onboard-remote-C7Eg49Uf.js +0 -1
- package/dist/onboard-search-f2tJD4hg.js +0 -1
- package/dist/onboard-search-fslKKhyg.js +0 -1
- package/dist/onboard-skills-DCgTr6hW.js +0 -1
- package/dist/onboard-skills-_TBzISd2.js +0 -1
- package/dist/{onboarding-C82cKKNI.js → onboarding-CxRTJCBM.js} +1 -2
- package/dist/{onboarding-M80apW9t.js → onboarding-m-m__16h.js} +1 -2
- package/dist/{onboarding.finalize-D9nrrI1J.js → onboarding.finalize-BJxMhYUa.js} +1 -2
- package/dist/{onboarding.finalize-CVvwI1Qg.js → onboarding.finalize-UiX3YmbI.js} +1 -2
- package/dist/onboarding.gateway-config-CXjzrfwL.js +0 -1
- package/dist/onboarding.gateway-config-TSq70E-S.js +0 -1
- package/dist/onboarding.secret-input-BSmFS1Px.js +0 -1
- package/dist/onboarding.secret-input-CUD0t7Pk.js +0 -1
- package/dist/openai-codex-model-default-Bx8i3bOg.js +0 -1
- package/dist/openai-codex-model-default-DuRfnfUm.js +0 -1
- package/dist/openai-model-default-Bm9b0oR0.js +0 -1
- package/dist/openai-model-default-KMCphvoO.js +0 -1
- package/dist/openclaw-exec-env-BWbOu_YC.js +0 -1
- package/dist/openclaw-root-CnsBf6ZU.js +0 -1
- package/dist/openclaw-root-D_0Q6--h.js +0 -1
- package/dist/outbound-BevYwvMh.js +0 -1
- package/dist/outbound-CqDxMWLZ.js +0 -1
- package/dist/outbound-DmwQEFu0.js +0 -1
- package/dist/outbound-attachment-9-8VNvRG.js +0 -1
- package/dist/outbound-attachment-Bah4dvuM.js +0 -1
- package/dist/outbound-attachment-CVcDBkAD.js +0 -1
- package/dist/outbound-attachment-E89zumcH.js +0 -1
- package/dist/outbound-xlG_RqEu.js +0 -1
- package/dist/pairing-cli-ByPhOBWo.js +0 -1
- package/dist/pairing-cli-CxJy8LPo.js +0 -1
- package/dist/pairing-labels-CZ-aX-up.js +0 -1
- package/dist/pairing-labels-PIuZfthz.js +0 -1
- package/dist/pairing-store-BaaVy1zB.js +0 -1
- package/dist/pairing-store-EmfFQVcs.js +0 -1
- package/dist/pairing-token-B8RdfK2y.js +0 -1
- package/dist/pairing-token-zdbQ951y.js +0 -1
- package/dist/parse-duration-XTjMKl8s.js +0 -1
- package/dist/parse-finite-number-DqzUM-_s.js +0 -1
- package/dist/parse-finite-number-dBmDLLKL.js +0 -1
- package/dist/parse-log-line-CsYLg7Qu.js +0 -1
- package/dist/parse-log-line-NV-cipB_.js +0 -1
- package/dist/parse-port-Bv1Y9Wk5.js +0 -1
- package/dist/parse-port-JVwkxcZ8.js +0 -1
- package/dist/parse-timeout-DWSGfCkQ.js +0 -1
- package/dist/parse-timeout-Dx4QnVzo.js +0 -1
- package/dist/path-alias-guards-kY_ZbWs-.js +0 -1
- package/dist/path-alias-guards-mvyLCPlN.js +0 -1
- package/dist/path-env-BPd1Yd-i.js +0 -1
- package/dist/path-env-emdAQejM.js +0 -1
- package/dist/path-safety-BukYK8Kd.js +0 -1
- package/dist/path-safety-DaaMJFdt.js +0 -1
- package/dist/paths-B4IRk3wi.js +0 -1
- package/dist/paths-BfjJY2VL.js +0 -1
- package/dist/paths-BjD3T_xq.js +0 -1
- package/dist/paths-BpQOWYiT.js +0 -1
- package/dist/paths-CChBdtE8.js +0 -1
- package/dist/paths-CrCoPIVK.js +0 -1
- package/dist/paths-piJASC5k.js +0 -1
- package/dist/paths-yLEk_25I.js +0 -1
- package/dist/pi-embedded-6yGEd2xd.js +0 -1
- package/dist/pi-embedded-X_Svd4Wi.js +0 -1
- package/dist/pi-model-discovery-BPkhPDMr.js +0 -1
- package/dist/pi-model-discovery-BonZ1N3x.js +0 -1
- package/dist/pi-model-discovery-DVKXkQTR.js +0 -1
- package/dist/pi-model-discovery-DnJkNRc-.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-2-IJ8xox.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-CNesNgq0.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-CmtITCPP.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-VUjwIYJ7.js +0 -1
- package/dist/pi-tools.policy-B6q8YOfg.js +0 -1
- package/dist/plugin-auto-enable-CTgkkJK7.js +0 -1
- package/dist/plugin-auto-enable-adba5Evb.js +0 -1
- package/dist/plugin-install-plan-BmyB3dR1.js +0 -1
- package/dist/plugin-install-plan-sIOiMBS1.js +0 -1
- package/dist/plugin-registry-CN2aCPP7.js +0 -1
- package/dist/plugin-registry-DYwEy5eM.js +0 -1
- package/dist/plugin-sdk/account-id.cjs +0 -1
- package/dist/plugin-sdk/account-id.js +0 -1
- package/dist/plugin-sdk/acpx.cjs +0 -1
- package/dist/plugin-sdk/acpx.js +0 -1
- package/dist/plugin-sdk/active-listener-B1sd5Yrr.cjs +0 -1
- package/dist/plugin-sdk/active-listener-CVvtj4nc.cjs +0 -1
- package/dist/plugin-sdk/active-listener-D0Pag-jN.js +0 -1
- package/dist/plugin-sdk/active-listener-DIzG1nGC.js +0 -1
- package/dist/plugin-sdk/active-listener-DUT4_v5r.cjs +0 -1
- package/dist/plugin-sdk/active-listener-D_Cq4Tuy.cjs +0 -1
- package/dist/plugin-sdk/active-listener-HBuXCjdG.js +0 -1
- package/dist/plugin-sdk/active-listener-V7whA3d_.js +0 -1
- package/dist/plugin-sdk/active-listener-YOWDFFGG.js +0 -1
- package/dist/plugin-sdk/active-listener-kJidH-KZ.js +0 -1
- package/dist/plugin-sdk/active-listener-kmJHqUWY.cjs +0 -1
- package/dist/plugin-sdk/active-listener-vpxSd-kW.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-BEhJdmXN.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-BcDAQISn.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-Bua813IH.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-C7_ooC3N.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-CiFfWYgL.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-CrVpqlS6.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-D-zSLAf_.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-DInDOH-A.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-DKp72Rw4.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-YRRtbk9Y.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-tVSHRH8D.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-ta953lKF.js +0 -1
- package/dist/plugin-sdk/audio-preflight-5ZbcO1qy.js +0 -1
- package/dist/plugin-sdk/audio-preflight-BrAX9j6r.js +0 -1
- package/dist/plugin-sdk/audio-preflight-C2NpU5hR.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-CtWGsCje.js +0 -1
- package/dist/plugin-sdk/audio-preflight-CwjNHDro.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-D22cCCmn.js +0 -1
- package/dist/plugin-sdk/audio-preflight-DyK2q8OQ.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-F7lfchEO.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-ItHD-3bi.js +0 -1
- package/dist/plugin-sdk/audio-preflight-QWsN9gcK.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-k7Qt2rDs.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-wcMT_iUA.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-B3bLoVvU.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-BDfW3xeJ.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-BZLASCWO.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-CiRKTRED.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-Cxs7u0B3.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-D2IxJCfd.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DA6TwXrV.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DZIEX1Rl.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DZRGn6-f.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-Dc-WF6zu.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DuBgVmcT.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-nKI1rQ0R.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +0 -1
- package/dist/plugin-sdk/bluebubbles.cjs +0 -1
- package/dist/plugin-sdk/bluebubbles.js +0 -1
- package/dist/plugin-sdk/channel-activity--Ax2m0qQ.js +0 -1
- package/dist/plugin-sdk/channel-activity-BCsNxxNa.js +0 -1
- package/dist/plugin-sdk/channel-activity-BUieXBdg.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-BXffAklf.js +0 -1
- package/dist/plugin-sdk/channel-activity-BlYTUiU4.js +0 -1
- package/dist/plugin-sdk/channel-activity-Bm-pvlXw.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-Bnai3H2M.js +0 -1
- package/dist/plugin-sdk/channel-activity-CC3JLAxD.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-CTmfXwYn.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-D98aY9ZF.js +0 -1
- package/dist/plugin-sdk/channel-activity-DymcGybX.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-gZBQEyOK.cjs +0 -1
- package/dist/plugin-sdk/channel-web-B795Ild9.cjs +0 -1
- package/dist/plugin-sdk/channel-web-Bg8DNyeb.js +0 -1
- package/dist/plugin-sdk/channel-web-CW42ALB5.cjs +0 -1
- package/dist/plugin-sdk/channel-web-D5zxPW-x.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +0 -1
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +0 -1
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-BIGWymiv.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-Bnadsir-.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-C1Gb98lg.js +0 -1
- package/dist/plugin-sdk/commands-registry-CZcNTwNs.js +0 -1
- package/dist/plugin-sdk/commands-registry-CeJQPXIR.js +0 -1
- package/dist/plugin-sdk/commands-registry-CehvtLBA.js +0 -1
- package/dist/plugin-sdk/commands-registry-Cf8DaBmw.js +0 -1
- package/dist/plugin-sdk/commands-registry-Cfv6gDoQ.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-D734s8r7.js +0 -1
- package/dist/plugin-sdk/commands-registry-DWx89vtR.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-DviWu8J8.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-wA0CkHGk.cjs +0 -1
- package/dist/plugin-sdk/common-BJ0tHoNJ.cjs +0 -1
- package/dist/plugin-sdk/common-CxLmdAIn.js +0 -1
- package/dist/plugin-sdk/compat.cjs +0 -1
- package/dist/plugin-sdk/compat.js +0 -1
- package/dist/plugin-sdk/config-C2-9m5-M.cjs +0 -1
- package/dist/plugin-sdk/config-Cx3SFBFW.js +0 -1
- package/dist/plugin-sdk/copilot-proxy.cjs +0 -1
- package/dist/plugin-sdk/copilot-proxy.js +0 -1
- package/dist/plugin-sdk/core.cjs +0 -1
- package/dist/plugin-sdk/core.js +0 -1
- package/dist/plugin-sdk/deliver--pOntbRC.cjs +0 -1
- package/dist/plugin-sdk/deliver-BLMe2eBS.js +0 -1
- package/dist/plugin-sdk/deliver-BcHzZPc2.js +0 -1
- package/dist/plugin-sdk/deliver-CSGTRHt1.js +0 -1
- package/dist/plugin-sdk/deliver-Cm8yUsWK.cjs +0 -1
- package/dist/plugin-sdk/deliver-DQDZRjZ0.js +0 -1
- package/dist/plugin-sdk/deliver-DRintVMn.js +0 -1
- package/dist/plugin-sdk/deliver-DehGdLxT.js +0 -1
- package/dist/plugin-sdk/deliver-EThzALwn.cjs +0 -1
- package/dist/plugin-sdk/deliver-d7VfVmTa.cjs +0 -1
- package/dist/plugin-sdk/deliver-rACJj8E9.cjs +0 -1
- package/dist/plugin-sdk/deliver-wteCze09.cjs +0 -1
- package/dist/plugin-sdk/device-pair.cjs +0 -1
- package/dist/plugin-sdk/device-pair.js +0 -1
- package/dist/plugin-sdk/diagnostic-BcBlExSy.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-Bmp3zWQp.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-BvrdTMl3.js +0 -1
- package/dist/plugin-sdk/diagnostic-C2jKFixS.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-CSfBcIOI.js +0 -1
- package/dist/plugin-sdk/diagnostic-CYR5dxDE.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-CdNZNyNv.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-DE5k6C1E.js +0 -1
- package/dist/plugin-sdk/diagnostic-DMpxa640.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-DSgf5Z4H.js +0 -1
- package/dist/plugin-sdk/diagnostic-DbRdunVt.js +0 -1
- package/dist/plugin-sdk/diagnostic-zCrcFAbJ.js +0 -1
- package/dist/plugin-sdk/diagnostics-otel.cjs +0 -1
- package/dist/plugin-sdk/diagnostics-otel.js +0 -1
- package/dist/plugin-sdk/diffs.cjs +0 -1
- package/dist/plugin-sdk/diffs.js +0 -1
- package/dist/plugin-sdk/discord.cjs +0 -1
- package/dist/plugin-sdk/discord.js +0 -1
- package/dist/plugin-sdk/dispatch-B13B2T1k.js +0 -1
- package/dist/plugin-sdk/dispatch-BaBcLOry.js +0 -1
- package/dist/plugin-sdk/dispatch-BlOkbw2U.js +0 -1
- package/dist/plugin-sdk/dispatch-D2Km7gvG.cjs +0 -1
- package/dist/plugin-sdk/dispatch-DAaOM5c1.cjs +0 -1
- package/dist/plugin-sdk/dispatch-DYRrW05S.js +0 -1
- package/dist/plugin-sdk/dispatch-Dap2ZPC9.js +0 -1
- package/dist/plugin-sdk/dispatch-Dl0eaYcY.cjs +0 -1
- package/dist/plugin-sdk/dispatch-_tJF5hSh.cjs +0 -1
- package/dist/plugin-sdk/dispatch-cPg1rBWu.cjs +0 -1
- package/dist/plugin-sdk/feishu.cjs +0 -1
- package/dist/plugin-sdk/feishu.js +0 -1
- package/dist/plugin-sdk/fetch-7Iq9POda.js +0 -1
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +0 -1
- package/dist/plugin-sdk/fetch-B27H-XCf.js +0 -1
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +0 -1
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +0 -1
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +0 -1
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +0 -1
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +0 -1
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +0 -1
- package/dist/plugin-sdk/fetch-BtZY623f.js +0 -1
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +0 -1
- package/dist/plugin-sdk/fetch-C3LEMysf.js +0 -1
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +0 -1
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +0 -1
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +0 -1
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +0 -1
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +0 -1
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +0 -1
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +0 -1
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +0 -1
- package/dist/plugin-sdk/fetch-guard-7tObWdgY.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-ACKeLHgB.js +0 -1
- package/dist/plugin-sdk/fetch-guard-BI5z5sCg.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-BUOtcki7.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-BZi5e63X.js +0 -1
- package/dist/plugin-sdk/fetch-guard-CVnIQ0nI.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-DKS4LY4o.js +0 -1
- package/dist/plugin-sdk/fetch-guard-DcAQBHbg.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-Dj-DlPBS.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-Dm1nAvhl.js +0 -1
- package/dist/plugin-sdk/fetch-guard-GfhPo1Fa.js +0 -1
- package/dist/plugin-sdk/fetch-guard-nFWUH1s9.js +0 -1
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +0 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +0 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.js +0 -1
- package/dist/plugin-sdk/googlechat.cjs +0 -1
- package/dist/plugin-sdk/googlechat.js +0 -1
- package/dist/plugin-sdk/image-BLG2OrjE.cjs +0 -1
- package/dist/plugin-sdk/image-BPUmI-kx.cjs +0 -1
- package/dist/plugin-sdk/image-Bt_w0o87.js +0 -1
- package/dist/plugin-sdk/image-CMeyJO2-.js +0 -1
- package/dist/plugin-sdk/image-CMiT6Fvk.cjs +0 -1
- package/dist/plugin-sdk/image-CNMuTe0Z.js +0 -1
- package/dist/plugin-sdk/image-CO9zxV0G.js +0 -1
- package/dist/plugin-sdk/image-CjVyB61p.cjs +0 -1
- package/dist/plugin-sdk/image-CkWikcPf.cjs +0 -1
- package/dist/plugin-sdk/image-Dk2gzO1U.js +0 -1
- package/dist/plugin-sdk/image-Jmj-a1pv.js +0 -1
- package/dist/plugin-sdk/image-UKq4Bn2r.cjs +0 -1
- package/dist/plugin-sdk/imessage.cjs +0 -1
- package/dist/plugin-sdk/imessage.js +0 -1
- package/dist/plugin-sdk/index.cjs +0 -1
- package/dist/plugin-sdk/index.js +0 -1
- package/dist/plugin-sdk/ir-Bg_avpt0.cjs +0 -1
- package/dist/plugin-sdk/ir-BiiaNbB9.cjs +0 -1
- package/dist/plugin-sdk/ir-CYJPM1_I.cjs +0 -1
- package/dist/plugin-sdk/ir-Ca3EdqFl.js +0 -1
- package/dist/plugin-sdk/ir-Cl_S_VBR.cjs +0 -1
- package/dist/plugin-sdk/ir-Cq7b_9v8.cjs +0 -1
- package/dist/plugin-sdk/ir-DcWa7gsX.cjs +0 -1
- package/dist/plugin-sdk/ir-DdA08iXJ.js +0 -1
- package/dist/plugin-sdk/ir-DqBwrJJd.js +0 -1
- package/dist/plugin-sdk/ir-EUD0qDem.js +0 -1
- package/dist/plugin-sdk/ir-c1MS26Ci.js +0 -1
- package/dist/plugin-sdk/ir-vhCxHELh.js +0 -1
- package/dist/plugin-sdk/irc.cjs +0 -1
- package/dist/plugin-sdk/irc.js +0 -1
- package/dist/plugin-sdk/keyed-async-queue.cjs +0 -1
- package/dist/plugin-sdk/keyed-async-queue.js +0 -1
- package/dist/plugin-sdk/line.cjs +0 -1
- package/dist/plugin-sdk/line.js +0 -1
- package/dist/plugin-sdk/llm-task.cjs +0 -1
- package/dist/plugin-sdk/llm-task.js +0 -1
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +0 -1
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +0 -1
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +0 -1
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +0 -1
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +0 -1
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +0 -1
- package/dist/plugin-sdk/lobster.cjs +0 -1
- package/dist/plugin-sdk/lobster.js +0 -1
- package/dist/plugin-sdk/local-roots-2OcKjfzk.js +0 -1
- package/dist/plugin-sdk/local-roots-ByrRvVBc.cjs +0 -1
- package/dist/plugin-sdk/local-roots-CXPxvx0J.js +0 -1
- package/dist/plugin-sdk/local-roots-CzbssMW1.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DIijr8mK.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DRv9Y_41.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DTC7BJct.js +0 -1
- package/dist/plugin-sdk/local-roots-DU8RuiRi.js +0 -1
- package/dist/plugin-sdk/local-roots-DprQ5M3b.js +0 -1
- package/dist/plugin-sdk/local-roots-GqNj3vMl.cjs +0 -1
- package/dist/plugin-sdk/local-roots-I2icTm2P.cjs +0 -1
- package/dist/plugin-sdk/local-roots-qEhx-D42.js +0 -1
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +0 -1
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +0 -1
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +0 -1
- package/dist/plugin-sdk/logger-BtrWb0dj.js +0 -1
- package/dist/plugin-sdk/logger-C210xuWx.js +0 -1
- package/dist/plugin-sdk/logger-DJGHvDbX.js +0 -1
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +0 -1
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +0 -1
- package/dist/plugin-sdk/logger-DwWqfo66.js +0 -1
- package/dist/plugin-sdk/logger-vBDTZWl3.js +0 -1
- package/dist/plugin-sdk/login-0ui1gfZM.cjs +0 -1
- package/dist/plugin-sdk/login-B0lIdwss.cjs +0 -1
- package/dist/plugin-sdk/login-B43p990Y.cjs +0 -1
- package/dist/plugin-sdk/login-DHBcWg4R.cjs +0 -1
- package/dist/plugin-sdk/login-DUCNg4lV.js +0 -1
- package/dist/plugin-sdk/login-DqVo92p1.js +0 -1
- package/dist/plugin-sdk/login-Dt4KiLgP.js +0 -1
- package/dist/plugin-sdk/login-IVBk3GwG.cjs +0 -1
- package/dist/plugin-sdk/login-T6tSC1Xl.js +0 -1
- package/dist/plugin-sdk/login-XruRHZe5.js +0 -1
- package/dist/plugin-sdk/login-p9hWVYO6.cjs +0 -1
- package/dist/plugin-sdk/login-qr-B4wf-15u.js +0 -1
- package/dist/plugin-sdk/login-qr-BQMm3yV_.cjs +0 -1
- package/dist/plugin-sdk/login-qr-BreyhXFQ.cjs +0 -1
- package/dist/plugin-sdk/login-qr-C6RPK8ld.js +0 -1
- package/dist/plugin-sdk/login-qr-C6cQueYq.js +0 -1
- package/dist/plugin-sdk/login-qr-CxznBK7s.cjs +0 -1
- package/dist/plugin-sdk/login-qr-D0dmb3Gr.js +0 -1
- package/dist/plugin-sdk/login-qr-DWW1FC-n.cjs +0 -1
- package/dist/plugin-sdk/login-qr-DjC-P7Vy.cjs +0 -1
- package/dist/plugin-sdk/login-qr-KeBTY1Mb.js +0 -1
- package/dist/plugin-sdk/login-qr-gQsVZ8en.js +0 -1
- package/dist/plugin-sdk/login-qr-xkqmSKC8.cjs +0 -1
- package/dist/plugin-sdk/login-x9vN5UnR.js +0 -1
- package/dist/plugin-sdk/manager-B38IH03I.cjs +0 -1
- package/dist/plugin-sdk/manager-BZVFXygg.cjs +0 -1
- package/dist/plugin-sdk/manager-BuNveORY.cjs +0 -1
- package/dist/plugin-sdk/manager-C4FEmxjq.cjs +0 -1
- package/dist/plugin-sdk/manager-CHnzSMNG.js +0 -1
- package/dist/plugin-sdk/manager-CN4wiVFz.js +0 -1
- package/dist/plugin-sdk/manager-D9RwKYCX.js +0 -1
- package/dist/plugin-sdk/manager-DAmjm61U.cjs +0 -1
- package/dist/plugin-sdk/manager-DJSpJkev.js +0 -1
- package/dist/plugin-sdk/manager-EO7deQzm.js +0 -1
- package/dist/plugin-sdk/manager-vyHAgafh.cjs +0 -1
- package/dist/plugin-sdk/manager-zyDhj7B-.js +0 -1
- package/dist/plugin-sdk/matrix.cjs +0 -1
- package/dist/plugin-sdk/matrix.js +0 -1
- package/dist/plugin-sdk/mattermost.cjs +0 -1
- package/dist/plugin-sdk/mattermost.js +0 -1
- package/dist/plugin-sdk/memory-core.cjs +0 -1
- package/dist/plugin-sdk/memory-core.js +0 -1
- package/dist/plugin-sdk/minimax-portal-auth.cjs +0 -1
- package/dist/plugin-sdk/minimax-portal-auth.js +0 -1
- package/dist/plugin-sdk/model-auth-1RA9nkQH.js +0 -1
- package/dist/plugin-sdk/model-auth-Cgqd2_sP.cjs +0 -1
- package/dist/plugin-sdk/model-auth-Cp2GSJwZ.js +0 -1
- package/dist/plugin-sdk/model-auth-Lv74A-Si.cjs +0 -1
- package/dist/plugin-sdk/model-auth-RI6NYvTO.js +0 -1
- package/dist/plugin-sdk/model-auth-exDkzEDR.js +0 -1
- package/dist/plugin-sdk/model-auth-igOM3blS.cjs +0 -1
- package/dist/plugin-sdk/model-auth-sjKLUCCz.cjs +0 -1
- package/dist/plugin-sdk/model-selection-C9HlFaXF.js +0 -1
- package/dist/plugin-sdk/model-selection-DpGE9eNM.cjs +0 -1
- package/dist/plugin-sdk/msteams.cjs +0 -1
- package/dist/plugin-sdk/msteams.js +0 -1
- package/dist/plugin-sdk/nextcloud-talk.cjs +0 -1
- package/dist/plugin-sdk/nextcloud-talk.js +0 -1
- package/dist/plugin-sdk/nostr.cjs +0 -1
- package/dist/plugin-sdk/nostr.js +0 -1
- package/dist/plugin-sdk/outbound-BO0tyeUH.js +0 -1
- package/dist/plugin-sdk/outbound-BYU5HTrX.js +0 -1
- package/dist/plugin-sdk/outbound-CBVlxGRf.cjs +0 -1
- package/dist/plugin-sdk/outbound-CTyu_gZh.js +0 -1
- package/dist/plugin-sdk/outbound-CwWXHNwp.cjs +0 -1
- package/dist/plugin-sdk/outbound-CySyQcmE.js +0 -1
- package/dist/plugin-sdk/outbound-DDPxEpHH.cjs +0 -1
- package/dist/plugin-sdk/outbound-DZhl7sHt.cjs +0 -1
- package/dist/plugin-sdk/outbound-DmeUAXdA.js +0 -1
- package/dist/plugin-sdk/outbound-DvFQ_6wQ.cjs +0 -1
- package/dist/plugin-sdk/outbound-Dy87UlCV.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-5H1iYkTb.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-BAHrn3r7.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-BBJPbiLF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-BIGvZREF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-B_OTB3A8.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-C94-r948.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CJatgPbm.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CLUVyl5e.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CTR1-VEH.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CmQ0SNgK.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-Dbja7LQF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-DwzJ2l3T.cjs +0 -1
- package/dist/plugin-sdk/outbound-xMr8Xsxe.js +0 -1
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +0 -1
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +0 -1
- package/dist/plugin-sdk/paths-BpQOWYiT.js +0 -1
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +0 -1
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +0 -1
- package/dist/plugin-sdk/paths-CXgWvWAM.js +0 -1
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +0 -1
- package/dist/plugin-sdk/paths-CnHSNSeR.js +0 -1
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +0 -1
- package/dist/plugin-sdk/paths-CtrEseGU.js +0 -1
- package/dist/plugin-sdk/paths-D55o_j8-.js +0 -1
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +0 -1
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +0 -1
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +0 -1
- package/dist/plugin-sdk/paths-DhSjTRMz.js +0 -1
- package/dist/plugin-sdk/paths-Do0djuaj.js +0 -1
- package/dist/plugin-sdk/paths-J4JUiRsa.js +0 -1
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +0 -1
- package/dist/plugin-sdk/paths-piJASC5k.js +0 -1
- package/dist/plugin-sdk/paths-rO4ehkyU.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-5wc5qlmB.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BQiHbl8F.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BZZVGcJl.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-Ba70onAm.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BfuqD_Rv.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BsdlRK-w.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-CAYSx-Lw.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-CyBFRafV.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-D1WW5m-Q.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DRYpUnOa.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DUbDLlc7.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DcUDwgMg.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DrZsxLaJ.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-gaVoL7I2.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BWmteuHS.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BmznXclG.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BzTifHML.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CEPsGtJk.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CYleOK1-.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Ctbk1Pq8.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D-hwiLUl.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DDuUTLh8.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DLfogXKU.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dd-VFim_.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dvmcwf-j.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-i-IGFbqI.js +0 -1
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +0 -1
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +0 -1
- package/dist/plugin-sdk/polls-CSKMbBIS.js +0 -1
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +0 -1
- package/dist/plugin-sdk/polls-PGxiE05J.js +0 -1
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-B765haXA.js +0 -1
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +0 -1
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +0 -1
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +0 -1
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +0 -1
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-B9PkuA_R.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-BMJV0Hqt.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-BRasSDsB.js +0 -1
- package/dist/plugin-sdk/pw-ai-BY57aH_o.js +0 -1
- package/dist/plugin-sdk/pw-ai-BbpImC35.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-D7d16RB-.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-DF7TX5Lc.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-DHN1pktj.js +0 -1
- package/dist/plugin-sdk/pw-ai-QzImh8G0.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-V1CVJi48.js +0 -1
- package/dist/plugin-sdk/pw-ai-mvXkpTxf.js +0 -1
- package/dist/plugin-sdk/pw-ai-tdgA-KlG.js +0 -1
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +0 -1
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +0 -1
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +0 -1
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +0 -1
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +0 -1
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +0 -1
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +0 -1
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +0 -1
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +0 -1
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +0 -1
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +0 -1
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +0 -1
- package/dist/plugin-sdk/qwen-portal-auth.cjs +0 -1
- package/dist/plugin-sdk/qwen-portal-auth.js +0 -1
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +0 -1
- package/dist/plugin-sdk/render-CBsnn-2A.js +0 -1
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +0 -1
- package/dist/plugin-sdk/render-DGmfCIRG.js +0 -1
- package/dist/plugin-sdk/render-DhTJXP1U.js +0 -1
- package/dist/plugin-sdk/render-Djx15dPh.js +0 -1
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +0 -1
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +0 -1
- package/dist/plugin-sdk/reply-73PF8kN_.js +0 -1
- package/dist/plugin-sdk/reply-JD6VIW5N.cjs +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-BNv_T3Bk.js +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-CDM7_xfU.cjs +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-CvKfootv.js +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-Fq8une1d.cjs +0 -1
- package/dist/plugin-sdk/send-0TzQg7Eo.js +0 -1
- package/dist/plugin-sdk/send-AyV5r86J.js +0 -1
- package/dist/plugin-sdk/send-B-GqqrNy.js +0 -1
- package/dist/plugin-sdk/send-B03So6fs.cjs +0 -1
- package/dist/plugin-sdk/send-B0oV0qgS.js +0 -1
- package/dist/plugin-sdk/send-B31Tjl_I.cjs +0 -1
- package/dist/plugin-sdk/send-B4LTVhTd.cjs +0 -1
- package/dist/plugin-sdk/send-BGXPpAqy.cjs +0 -1
- package/dist/plugin-sdk/send-BJ957TYU.js +0 -1
- package/dist/plugin-sdk/send-BJmf3HVn.cjs +0 -1
- package/dist/plugin-sdk/send-BW3UECzm.js +0 -1
- package/dist/plugin-sdk/send-BWEZ_8nL.cjs +0 -1
- package/dist/plugin-sdk/send-BXrh73qh.cjs +0 -1
- package/dist/plugin-sdk/send-BbudHjUi.cjs +0 -1
- package/dist/plugin-sdk/send-BkjnUdWv.cjs +0 -1
- package/dist/plugin-sdk/send-BxIt-s7G.cjs +0 -1
- package/dist/plugin-sdk/send-ByKNfU2S.js +0 -1
- package/dist/plugin-sdk/send-Bz2Loz_Q.cjs +0 -1
- package/dist/plugin-sdk/send-CAreQYLU.cjs +0 -1
- package/dist/plugin-sdk/send-CGMqeSaY.cjs +0 -1
- package/dist/plugin-sdk/send-CJmor6eC.js +0 -1
- package/dist/plugin-sdk/send-CL2pl8br.cjs +0 -1
- package/dist/plugin-sdk/send-CMeGMLko.js +0 -1
- package/dist/plugin-sdk/send-CceHBxiK.js +0 -1
- package/dist/plugin-sdk/send-Cdx_KGYb.js +0 -1
- package/dist/plugin-sdk/send-Cer1bA2g.cjs +0 -1
- package/dist/plugin-sdk/send-CimU95QQ.cjs +0 -1
- package/dist/plugin-sdk/send-CoEAieJt.cjs +0 -1
- package/dist/plugin-sdk/send-Cob_bnT32.js +0 -1
- package/dist/plugin-sdk/send-Cyp5hOpt.js +0 -1
- package/dist/plugin-sdk/send-CzEFjTpi.js +0 -1
- package/dist/plugin-sdk/send-D2LjU2py.js +0 -1
- package/dist/plugin-sdk/send-D9Gbseeh.cjs +0 -1
- package/dist/plugin-sdk/send-DIjQ2vB4.js +0 -1
- package/dist/plugin-sdk/send-DJ419AIX.cjs +0 -1
- package/dist/plugin-sdk/send-DLtYxO1e.cjs +0 -1
- package/dist/plugin-sdk/send-DMk529J8.js +0 -1
- package/dist/plugin-sdk/send-DMxohaL_.cjs +0 -1
- package/dist/plugin-sdk/send-DQlKz6Bj.js +0 -1
- package/dist/plugin-sdk/send-DTUW-YBy.js +0 -1
- package/dist/plugin-sdk/send-Dc43nN-I.js +0 -1
- package/dist/plugin-sdk/send-DcRj8DUU.cjs +0 -1
- package/dist/plugin-sdk/send-DmxxJFZd.cjs +0 -1
- package/dist/plugin-sdk/send-DnwN1vBU.cjs +0 -1
- package/dist/plugin-sdk/send-DogBiU4n.cjs +0 -1
- package/dist/plugin-sdk/send-MEvv6c7w.js +0 -1
- package/dist/plugin-sdk/send-TRwokuAm.cjs +0 -1
- package/dist/plugin-sdk/send-VUSa_wkg.js +0 -1
- package/dist/plugin-sdk/send-X1b7Cj9U.cjs +0 -1
- package/dist/plugin-sdk/send-XX5rP5bI.js +0 -1
- package/dist/plugin-sdk/send-_ZGBA2sz.js +0 -1
- package/dist/plugin-sdk/send-d5RoIkxA.js +0 -1
- package/dist/plugin-sdk/send-dCbQnCLx.js +0 -1
- package/dist/plugin-sdk/send-gSV6SR6F.cjs +0 -1
- package/dist/plugin-sdk/send-pC6ctwfQ.cjs +0 -1
- package/dist/plugin-sdk/send-pq2hNOwv.cjs +0 -1
- package/dist/plugin-sdk/send-q6C-1cdJ.js +0 -1
- package/dist/plugin-sdk/send-vnIJSD5l.js +0 -1
- package/dist/plugin-sdk/send-vtYROJNd.js +0 -1
- package/dist/plugin-sdk/send-wk_Y38Eq.js +0 -1
- package/dist/plugin-sdk/session-BSLJWzVk.cjs +0 -1
- package/dist/plugin-sdk/session-BfWC0c92.js +0 -1
- package/dist/plugin-sdk/session-BjsaXe-G.js +0 -1
- package/dist/plugin-sdk/session-C20nSfk5.cjs +0 -1
- package/dist/plugin-sdk/session-CR8fsPgs.js +0 -1
- package/dist/plugin-sdk/session-CwinrWG4.cjs +0 -1
- package/dist/plugin-sdk/session-DAtRSLdw.cjs +0 -1
- package/dist/plugin-sdk/session-Djo63EGV.cjs +0 -1
- package/dist/plugin-sdk/session-EJZkCm6l.js +0 -1
- package/dist/plugin-sdk/session-UIRgeq02.cjs +0 -1
- package/dist/plugin-sdk/session-aOZKTEyZ.js +0 -1
- package/dist/plugin-sdk/session-nUw21fi0.js +0 -1
- package/dist/plugin-sdk/sessions-B06a3AKE.js +0 -1
- package/dist/plugin-sdk/sessions-BmhjMXlm.cjs +0 -1
- package/dist/plugin-sdk/signal.cjs +0 -1
- package/dist/plugin-sdk/signal.js +0 -1
- package/dist/plugin-sdk/skill-commands-2LXH0aZR.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-B4AbCkKe.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-B_xNpuH_.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-BbAfKA1R.js +0 -1
- package/dist/plugin-sdk/skill-commands-BcKIgHAP.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-C9g2UiKr.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-CPZ9Jvbj.js +0 -1
- package/dist/plugin-sdk/skill-commands-CgDUjb3J.js +0 -1
- package/dist/plugin-sdk/skill-commands-D83BLBEG.js +0 -1
- package/dist/plugin-sdk/skill-commands-DI1TMUxQ.js +0 -1
- package/dist/plugin-sdk/skill-commands-DldIiKD1.js +0 -1
- package/dist/plugin-sdk/skill-commands-LCW6nWWC.cjs +0 -1
- package/dist/plugin-sdk/slack.cjs +0 -1
- package/dist/plugin-sdk/slack.js +0 -1
- package/dist/plugin-sdk/synology-chat.cjs +0 -1
- package/dist/plugin-sdk/synology-chat.js +0 -1
- package/dist/plugin-sdk/tables-BXY1ms0X.js +0 -1
- package/dist/plugin-sdk/tables-BlhpY72l.cjs +0 -1
- package/dist/plugin-sdk/tables-BltHUi44.cjs +0 -1
- package/dist/plugin-sdk/tables-Bp6t_Jkb.js +0 -1
- package/dist/plugin-sdk/tables-BszYJkqX.cjs +0 -1
- package/dist/plugin-sdk/tables-CAZJt5bp.js +0 -1
- package/dist/plugin-sdk/tables-CcuiVH-P.cjs +0 -1
- package/dist/plugin-sdk/tables-CuSMtUxt.cjs +0 -1
- package/dist/plugin-sdk/tables-DOLEnfD6.js +0 -1
- package/dist/plugin-sdk/tables-DiiF7bbj.cjs +0 -1
- package/dist/plugin-sdk/tables-aSJP6Sef.js +0 -1
- package/dist/plugin-sdk/tables-ib4GZqYB.js +0 -1
- package/dist/plugin-sdk/target-errors--anbEDnm.js +0 -1
- package/dist/plugin-sdk/target-errors-4q9SUsM_.js +0 -1
- package/dist/plugin-sdk/target-errors-BFOTHcjO.js +0 -1
- package/dist/plugin-sdk/target-errors-Bw4tI2Lc.cjs +0 -1
- package/dist/plugin-sdk/target-errors-CAgwWHUv.js +0 -1
- package/dist/plugin-sdk/target-errors-CUDKM0z-.js +0 -1
- package/dist/plugin-sdk/target-errors-DIOJ6Eun.cjs +0 -1
- package/dist/plugin-sdk/target-errors-DnZq9h4B.cjs +0 -1
- package/dist/plugin-sdk/target-errors-DwAKh8KU.cjs +0 -1
- package/dist/plugin-sdk/target-errors-QGzfLvuU.cjs +0 -1
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +0 -1
- package/dist/plugin-sdk/targets-BSkiizml.js +0 -1
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +0 -1
- package/dist/plugin-sdk/targets-CL5fYQi7.js +0 -1
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +0 -1
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +0 -1
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +0 -1
- package/dist/plugin-sdk/targets-CrkJkzil.js +0 -1
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +0 -1
- package/dist/plugin-sdk/targets-D8HTxbo4.js +0 -1
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +0 -1
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +0 -1
- package/dist/plugin-sdk/targets-X28mff4s.cjs +0 -1
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +0 -1
- package/dist/plugin-sdk/telegram.cjs +0 -1
- package/dist/plugin-sdk/telegram.js +0 -1
- package/dist/plugin-sdk/test-utils.cjs +0 -1
- package/dist/plugin-sdk/test-utils.js +0 -1
- package/dist/plugin-sdk/tlon.cjs +0 -1
- package/dist/plugin-sdk/tlon.js +0 -1
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +0 -1
- package/dist/plugin-sdk/tokens-B20KNIDD.js +0 -1
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +0 -1
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +0 -1
- package/dist/plugin-sdk/tokens-BqABmXSe.js +0 -1
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +0 -1
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +0 -1
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +0 -1
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +0 -1
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +0 -1
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +0 -1
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +0 -1
- package/dist/plugin-sdk/twitch.cjs +0 -1
- package/dist/plugin-sdk/twitch.js +0 -1
- package/dist/plugin-sdk/utils-BJtJR72k.js +0 -1
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +0 -1
- package/dist/plugin-sdk/voice-call.cjs +0 -1
- package/dist/plugin-sdk/voice-call.js +0 -1
- package/dist/plugin-sdk/web--8MBOleK.js +0 -1
- package/dist/plugin-sdk/web-B7d3p3kx.cjs +0 -1
- package/dist/plugin-sdk/web-BEuW8Yqw.js +0 -1
- package/dist/plugin-sdk/web-Bg2LIMdb.cjs +0 -1
- package/dist/plugin-sdk/web-DFDao2So.cjs +0 -1
- package/dist/plugin-sdk/web-DjbeDvyv.js +0 -1
- package/dist/plugin-sdk/web-JciOW43P.js +0 -1
- package/dist/plugin-sdk/web-vSFigMHz.cjs +0 -1
- package/dist/plugin-sdk/weixin.cjs +0 -1
- package/dist/plugin-sdk/weixin.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-B67oFfeq.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-BB0eACkf.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-BIgrB0j5.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CFve14ju.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CdRkPw-b.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CtIBOGpJ.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CwAU7FuE.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DQ1t5QTc.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DkrN4BcG.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DnkKzVrU.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-YcBsDZ88.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-wk1U2IVU.cjs +0 -1
- package/dist/plugin-sdk/whatsapp.cjs +0 -1
- package/dist/plugin-sdk/whatsapp.js +0 -1
- package/dist/plugin-sdk/zalo.cjs +0 -1
- package/dist/plugin-sdk/zalo.js +0 -1
- package/dist/plugin-sdk/zalouser.cjs +0 -1
- package/dist/plugin-sdk/zalouser.js +0 -1
- package/dist/plugins-CYLrFT4h.js +0 -1
- package/dist/plugins-DNlgeTTc.js +0 -1
- package/dist/plugins-cli-CnXgwZzI.js +0 -1
- package/dist/plugins-cli-PVHBZeb8.js +0 -1
- package/dist/polls-BIVz6a4F.js +0 -1
- package/dist/polls-Bh5wc9-6.js +0 -1
- package/dist/polls-C_XSFz3d.js +0 -1
- package/dist/polls-DKJOFSzJ.js +0 -1
- package/dist/ports-BAaLOkJp.js +2 -0
- package/dist/ports-DDWP1p0X.js +2 -0
- package/dist/probe-auth-C5nWfMS9.js +0 -1
- package/dist/probe-auth-x4OHS_wa.js +0 -1
- package/dist/profile-utils-CWmra1aY.js +0 -1
- package/dist/{program-ppBAyCNf.js → program-D53eGuSf.js} +1 -2
- package/dist/program-context-CH9p6anW.js +0 -1
- package/dist/{program-context-BXNpM3b4.js → program-context-n-ovYq69.js} +1 -2
- package/dist/progress-LNttnI-y.js +0 -1
- package/dist/progress-d1m2sqR1.js +0 -1
- package/dist/{prompt-select-styled-947JghKF.js → prompt-select-styled-DZnefcrY.js} +1 -2
- package/dist/{prompt-select-styled-1abs2MvK.js → prompt-select-styled-DolCW-_j.js} +1 -2
- package/dist/prompt-style-BThRSQJR.js +0 -1
- package/dist/prompt-style-CXKekIBY.js +0 -1
- package/dist/prompts-CMzglboN.js +0 -1
- package/dist/prompts-wv-lfVrJ.js +0 -1
- package/dist/provider-auth-helpers-BLm2bdp5.js +0 -1
- package/dist/provider-auth-helpers-DPz0vN_c.js +0 -1
- package/dist/provider-env-vars-D8p6Ohpj.js +0 -1
- package/dist/provider-env-vars-Dt0Q29Su.js +0 -1
- package/dist/proxy-env-BNhTHkd_.js +0 -1
- package/dist/proxy-env-DcmW_urA.js +0 -1
- package/dist/proxy-env-DrC3TIGh.js +0 -1
- package/dist/proxy-env-FJr5nlvs.js +0 -1
- package/dist/proxy-fetch-BADsUK4d.js +0 -1
- package/dist/proxy-fetch-BZ9O8Dvj.js +0 -1
- package/dist/proxy-fetch-DnjU1fEB.js +0 -1
- package/dist/proxy-fetch-gWETR3cl.js +0 -1
- package/dist/push-apns-BBv62ncV.js +0 -1
- package/dist/push-apns-DIV5dBPP.js +0 -1
- package/dist/pw-ai-C0gM3d-6.js +0 -1
- package/dist/pw-ai-CQd14BQa.js +0 -1
- package/dist/pw-ai-DiQuOf4W.js +0 -1
- package/dist/pw-ai-jlhIn-aA.js +0 -1
- package/dist/qmd-manager-C_e04BNg.js +0 -1
- package/dist/qmd-manager-DSQ_mDCl.js +0 -1
- package/dist/qmd-manager-DcBYbt_V.js +0 -1
- package/dist/qmd-manager-NLI0R6kp.js +0 -1
- package/dist/qr-cli-D06YZurm.js +0 -1
- package/dist/qr-cli-ZtDsXyLO.js +0 -1
- package/dist/query-expansion-0OxEb1Io.js +0 -1
- package/dist/query-expansion-BUUx_oWg.js +0 -1
- package/dist/query-expansion-r_iXkNzt.js +0 -1
- package/dist/reaction-level-DVPHL14p.js +0 -1
- package/dist/reaction-message-id-BEEe7X3D.js +0 -1
- package/dist/read-only-account-inspect-B0cm8yrv.js +0 -1
- package/dist/redact-3_CiXMY6.js +0 -1
- package/dist/redact-CnRxK70G.js +0 -1
- package/dist/register.agent-DHOTtB8X.js +0 -1
- package/dist/register.agent-DQdoMfmw.js +0 -1
- package/dist/register.backup-BDO3V0so.js +0 -1
- package/dist/register.backup-Vh8RK6fp.js +0 -1
- package/dist/register.configure-C2N82brC.js +0 -1
- package/dist/register.configure-C6zjzaEo.js +0 -1
- package/dist/{register.maintenance-Br9uoFKo.js → register.maintenance-CStaPxaB.js} +1 -2
- package/dist/{register.maintenance-Cm3wq9bt.js → register.maintenance-aKBTd9Zp.js} +1 -2
- package/dist/register.message-DHDcOA8X.js +0 -1
- package/dist/register.message-Dh72QHKA.js +0 -1
- package/dist/{register.onboard-AjrSlfCb.js → register.onboard-Bu9gpFlA.js} +1 -2
- package/dist/{register.onboard-zCG1PNWc.js → register.onboard-DB9FWAKT.js} +1 -2
- package/dist/{register.setup-DN0y_pth.js → register.setup-CeG2ETmr.js} +1 -2
- package/dist/{register.setup-Blyl_QsK.js → register.setup-D76IRs4s.js} +1 -2
- package/dist/register.status-health-sessions-Dtpd1P2M.js +0 -1
- package/dist/register.status-health-sessions-mPGKFjIz.js +0 -1
- package/dist/{register.subclis-5Pb-uEHk.js → register.subclis-Drp2dGBe.js} +1 -2
- package/dist/registry-BptzrW8D.js +0 -1
- package/dist/registry-hFAtCSWG.js +0 -1
- package/dist/render-BXEUPIHe.js +0 -1
- package/dist/render-CBsnn-2A.js +0 -1
- package/dist/render-D8OWO2hT.js +0 -1
- package/dist/render-DrrPmnMI.js +0 -1
- package/dist/reply-DwfVhea1.js +0 -1
- package/dist/restart-BeJuoXCx.js +0 -1
- package/dist/rpc-BBdeIvn0.js +0 -1
- package/dist/rpc-f85A4Ib_.js +0 -1
- package/dist/{run-main-DGwq5DIc.js → run-main-CjwjyWA6.js} +1 -2
- package/dist/runtime-CK7gqwEF.js +0 -1
- package/dist/runtime-DYttInEE.js +0 -1
- package/dist/runtime-guard-DFYBaYZS.js +0 -1
- package/dist/runtime-guard-DX2Ie4ri.js +0 -1
- package/dist/runtime-status-CqFBmdRd.js +0 -1
- package/dist/runtime-status-DszMjvJK.js +0 -1
- package/dist/runtime-web-tools-BYhCkBV8.js +0 -1
- package/dist/runtime-web-tools-C4F6aaRh.js +0 -1
- package/dist/sandbox-cli-BR0Lsru-.js +0 -1
- package/dist/sandbox-cli-Jo5nYeug.js +0 -1
- package/dist/scan-paths-C13EseXp.js +0 -1
- package/dist/scan-paths-CWtvWW40.js +0 -1
- package/dist/search-manager-CV2YsAym.js +0 -1
- package/dist/secret-file-C7JffiM_.js +0 -1
- package/dist/secret-file-D60EFEOe.js +0 -1
- package/dist/secret-file-DuWm26jS.js +0 -1
- package/dist/secrets-cli-B8kwyZFo.js +0 -1
- package/dist/secrets-cli-BstBe0UA.js +0 -1
- package/dist/secure-random-D7JQgiK-.js +0 -1
- package/dist/security-cli-C6t8OxaE.js +0 -1
- package/dist/security-cli-Cuc8IQKB.js +0 -1
- package/dist/send--9G8eXo4.js +0 -1
- package/dist/send-4h1tQwX3.js +0 -1
- package/dist/send-7qgAI0ap.js +0 -1
- package/dist/send-AQ3CJLpI.js +0 -1
- package/dist/send-BjrfjBn9.js +0 -1
- package/dist/send-BwblpWbK.js +0 -1
- package/dist/send-C4Lm4nmt.js +0 -1
- package/dist/send-C7rOdjPO.js +0 -1
- package/dist/send-COpehmAB.js +0 -1
- package/dist/send-CWVTcDAW.js +0 -1
- package/dist/send-CciNyaWL.js +0 -1
- package/dist/send-ChILboDj.js +0 -1
- package/dist/send-CyarIb2w.js +0 -1
- package/dist/send-DiHS8tKf.js +0 -1
- package/dist/send-Dj7NBAWg.js +0 -1
- package/dist/send-DmHpf5Fz.js +0 -1
- package/dist/send-NbU9-scF2.js +0 -1
- package/dist/send-hlES-kRl2.js +0 -1
- package/dist/send-swTiQAeK2.js +0 -1
- package/dist/send-vNcod64S.js +0 -1
- package/dist/server-C-lb98FO.js +0 -1
- package/dist/server-DwSkpKgC.js +0 -1
- package/dist/server-node-events-CL0pWoMa.js +0 -1
- package/dist/server-node-events-ChPQ984b.js +0 -1
- package/dist/service-BtB9epJk.js +0 -1
- package/dist/service-DZ9EbS15.js +0 -1
- package/dist/session-BSRnpwSq.js +0 -1
- package/dist/session-CfHCnrXh.js +0 -1
- package/dist/session-JqCxWBM8.js +0 -1
- package/dist/session-bk3gFwO4.js +0 -1
- package/dist/session-cost-usage-BgqKixv0.js +0 -1
- package/dist/session-cost-usage-CHtVgnE8.js +0 -1
- package/dist/session-key-C7F_iqYg.js +0 -1
- package/dist/session-key-D3P0tf5P.js +0 -1
- package/dist/session-utils-Bpdyx2A2.js +0 -1
- package/dist/sessions-Ca6ozRCQ.js +0 -1
- package/dist/shared-9x5sqYRb.js +0 -1
- package/dist/shared-BKWhOp64.js +0 -1
- package/dist/shared-Ca5BFwta.js +0 -1
- package/dist/skill-commands-CPZcaV8-.js +0 -1
- package/dist/skill-commands-CtprBvm0.js +0 -1
- package/dist/skill-commands-DCqPy_Aa.js +0 -1
- package/dist/skill-commands-DlHVddAk.js +0 -1
- package/dist/skill-scanner-CUUF3Fvo.js +0 -1
- package/dist/skill-scanner-CkxXNioD.js +0 -1
- package/dist/skills-Bz_S4lPh.js +0 -1
- package/dist/skills-CzUpDbU-.js +0 -1
- package/dist/skills-cli-DK0QDfln.js +0 -1
- package/dist/skills-cli-DLmqhAB-.js +0 -1
- package/dist/skills-install-D3YB2C-S.js +0 -1
- package/dist/skills-install-cEcqzaX8.js +0 -1
- package/dist/skills-status-D4Y1BJYL.js +0 -1
- package/dist/skills-status-DpSboPY1.js +0 -1
- package/dist/sqlite-CILF3z9U.js +0 -1
- package/dist/stagger-DmFYysrJ.js +0 -1
- package/dist/stagger-DxzgG2jd.js +0 -1
- package/dist/status-BAat65xo.js +0 -1
- package/dist/status-BSHWBrg0.js +0 -1
- package/dist/status-o3Gfr-6l.js +0 -1
- package/dist/status-w4NsjW2R.js +0 -1
- package/dist/status.update-B_8Gumuc.js +0 -1
- package/dist/status.update-_2r0S6Re.js +0 -1
- package/dist/string-normalization-BrUPaXaM.js +0 -1
- package/dist/string-normalization-DJT5zuUF.js +0 -1
- package/dist/subsystem-BLbY429l.js +0 -1
- package/dist/subsystem-Bc2XrjUz.js +0 -1
- package/dist/subsystem-C5XF2Fy5.js +0 -1
- package/dist/system-cli-Ddixb0SQ.js +0 -1
- package/dist/system-cli-NAH97F2s.js +0 -1
- package/dist/system-run-command-DsWBVvSK.js +0 -1
- package/dist/system-run-command-E8ymBXHh.js +0 -1
- package/dist/systemd-D7odsu4K.js +0 -1
- package/dist/systemd-DbevZh65.js +0 -1
- package/dist/systemd-hints-CEQj6yrs.js +0 -1
- package/dist/systemd-hints-lXpMy-kY.js +0 -1
- package/dist/systemd-linger-C2MJD6KG.js +0 -1
- package/dist/systemd-linger-cWKbFNpu.js +0 -1
- package/dist/table-CR7TFMew.js +0 -1
- package/dist/table-CY440fI1.js +0 -1
- package/dist/tables-D6J-isob.js +0 -1
- package/dist/tables-DENKrP-W.js +0 -1
- package/dist/tables-_t5V36m9.js +0 -1
- package/dist/tables-fl9iXahm.js +0 -1
- package/dist/target-errors-CoEHv_2r.js +0 -1
- package/dist/target-errors-D6wejRd6.js +0 -1
- package/dist/target-errors-Dnkqss9y.js +0 -1
- package/dist/target-errors-sMFXKeAY.js +0 -1
- package/dist/targets-4EaxWBal.js +0 -1
- package/dist/targets-BJTo7bqu.js +0 -1
- package/dist/targets-BYVMrXDf.js +0 -1
- package/dist/targets-Bq6rS6-Z.js +0 -1
- package/dist/targets-CL5fYQi7.js +0 -1
- package/dist/targets-fozeWOOg.js +0 -1
- package/dist/targets-m_41k_Mv.js +0 -1
- package/dist/telegram/audit.js +0 -1
- package/dist/text-format-CvrvBBre.js +0 -1
- package/dist/text-format-DEWK6oCT.js +0 -1
- package/dist/token-DnTmiyJu.js +0 -1
- package/dist/tokens-B2fq-rL6.js +0 -1
- package/dist/tokens-CL2fSjGl.js +0 -1
- package/dist/tokens-DRM8vzJx.js +0 -1
- package/dist/tokens-XGbQGn67.js +0 -1
- package/dist/tool-display-DJDtttQg.js +0 -1
- package/dist/tool-display-DjuSUUbH.js +0 -1
- package/dist/tui-5Znjl2Rb.js +0 -1
- package/dist/tui-Tlww_AcE.js +0 -1
- package/dist/tui-cli-C9QPsw50.js +0 -1
- package/dist/tui-cli-FxvETbln.js +0 -1
- package/dist/types.secrets-C-5U96pc.js +0 -1
- package/dist/types.secrets-D4tbc3Wq.js +0 -1
- package/dist/update-CMneH_48.js +0 -1
- package/dist/update-D9EwPybG.js +0 -1
- package/dist/{update-cli-BQGwMpHe.js → update-cli-CL_cUjuq.js} +1 -2
- package/dist/{update-cli-C7pZTXS8.js → update-cli-DU5tRH3c.js} +1 -2
- package/dist/update-runner-DABdlxfN.js +0 -1
- package/dist/update-runner-DG-1TYYc.js +0 -1
- package/dist/usage-format-BWD8FJFL.js +0 -1
- package/dist/usage-format-yPwal8Iz.js +0 -1
- package/dist/utils-CGdo13HV.js +0 -1
- package/dist/utils-D3t-vPka.js +0 -1
- package/dist/utils-R-mFyVJi.js +0 -1
- package/dist/utils-UGOV_184.js +0 -1
- package/dist/version-q3SkUw2K.js +0 -1
- package/dist/warning-filter.js +0 -1
- package/dist/web-Dfi2WjvN.js +0 -1
- package/dist/web-u71NbOpT.js +0 -1
- package/dist/webhooks-cli-DMTzhfTv.js +0 -1
- package/dist/webhooks-cli-ICOwBPSv.js +0 -1
- package/dist/whatsapp-actions-Bdf-3-ne.js +0 -1
- package/dist/whatsapp-actions-D2qMOK3a.js +0 -1
- package/dist/whatsapp-actions-f5CsM5EM.js +0 -1
- package/dist/whatsapp-actions-t88tyNUT.js +0 -1
- package/dist/widearea-dns-BDx7vkV2.js +0 -1
- package/dist/widearea-dns-BFjqKXu_.js +0 -1
- package/dist/windows-spawn-7oINn5ao.js +0 -1
- package/dist/windows-spawn-AB7ItGAE.js +0 -1
- package/dist/with-timeout-WveKxvFV.js +0 -1
- package/dist/with-timeout-c1CzdShT.js +0 -1
- package/dist/workspace-B0ZQeHXg.js +0 -1
- package/dist/workspace-C45T1Cxg.js +0 -1
- package/dist/workspace-dirs-A8Vib9_B.js +0 -1
- package/dist/workspace-dirs-BhF1Dzxt.js +0 -1
- package/dist/workspace-xNEpaJvu.js +0 -1
- package/dist/wsl-DHxB2Ew_.js +0 -1
- package/dist/wsl-Ok7GaSJ6.js +0 -1
- package/extensions/qqbrowser-skill-control/index.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/@google/genai/dist/index.cjs +341 -180
- package/node_modules/@google/genai/dist/index.mjs +341 -180
- package/node_modules/@google/genai/dist/node/index.cjs +341 -180
- package/node_modules/@google/genai/dist/node/index.mjs +341 -180
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +100 -0
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +100 -0
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +103 -2
- package/node_modules/@google/genai/dist/vertex_internal/index.js +103 -2
- package/node_modules/@google/genai/dist/web/index.mjs +342 -180
- package/node_modules/@google/genai/package.json +1 -1
- package/node_modules/@slack/web-api/dist/instrument.js +13 -1
- package/node_modules/@slack/web-api/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
- package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
- package/node_modules/@smithy/util-endpoints/package.json +1 -1
- package/node_modules/discord-api-types/package.json +1 -1
- package/node_modules/discord-api-types/payloads/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v10/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v10/message.js +55 -2
- package/node_modules/discord-api-types/payloads/v10/user.js +2 -0
- package/node_modules/discord-api-types/payloads/v9/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v9/message.js +55 -2
- package/node_modules/discord-api-types/payloads/v9/user.js +2 -0
- package/node_modules/discord-api-types/rest/v10/channel.js +6 -0
- package/node_modules/discord-api-types/rest/v9/channel.js +6 -0
- package/node_modules/discord-api-types/v10.mjs +3 -0
- package/node_modules/discord-api-types/v9.mjs +3 -0
- package/node_modules/undici/package.json +1 -1
- package/package.json +2 -1
- package/dist/ports-Dylc6TrH.js +0 -3
- package/dist/ports-hkqQXSus.js +0 -3
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/LICENSE +0 -22
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/Readme.md +0 -1157
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/LICENSE +0 -21
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/README.md +0 -208
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
- package/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
- package/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
- package/node_modules/@buape/carbon/node_modules/@discordjs/voice/LICENSE +0 -191
- package/node_modules/@buape/carbon/node_modules/@discordjs/voice/README.md +0 -112
- package/node_modules/@buape/carbon/node_modules/discord-api-types/LICENSE +0 -21
- package/node_modules/@buape/carbon/node_modules/discord-api-types/README.md +0 -102
- package/node_modules/@buape/carbon/node_modules/ws/LICENSE +0 -20
- package/node_modules/@buape/carbon/node_modules/ws/README.md +0 -548
- package/node_modules/@line/bot-sdk/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +0 -15
- package/node_modules/@line/bot-sdk/node_modules/undici-types/LICENSE +0 -21
- package/node_modules/@line/bot-sdk/node_modules/undici-types/README.md +0 -6
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@sinclair/typebox/license +0 -25
- package/node_modules/@sinclair/typebox/readme.md +0 -1865
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/license +0 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/readme.md +0 -1077
- package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/license +0 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/readme.md +0 -192
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/readme.md +0 -66
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/atomic-sleep/readme.md +0 -58
- package/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/bytes/History.md +0 -97
- package/node_modules/bytes/Readme.md +0 -152
- package/node_modules/chalk/license +0 -9
- package/node_modules/chalk/readme.md +0 -297
- package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
- package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
- package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
- package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/combined-stream/License +0 -19
- package/node_modules/combined-stream/Readme.md +0 -138
- package/node_modules/commander/Readme.md +0 -1176
- package/node_modules/cookie-signature/History.md +0 -70
- package/node_modules/cookie-signature/Readme.md +0 -23
- package/node_modules/css-what/readme.md +0 -69
- package/node_modules/delayed-stream/License +0 -19
- package/node_modules/delayed-stream/Readme.md +0 -141
- package/node_modules/depd/History.md +0 -103
- package/node_modules/depd/Readme.md +0 -280
- package/node_modules/domelementtype/readme.md +0 -1
- package/node_modules/domhandler/readme.md +0 -92
- package/node_modules/domutils/readme.md +0 -31
- package/node_modules/entities/readme.md +0 -122
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escape-html/Readme.md +0 -43
- package/node_modules/express/Readme.md +0 -276
- package/node_modules/express-rate-limit/license.md +0 -20
- package/node_modules/express-rate-limit/readme.md +0 -136
- package/node_modules/extract-zip/readme.md +0 -57
- package/node_modules/fast-string-truncated-width/license +0 -21
- package/node_modules/fast-string-truncated-width/readme.md +0 -60
- package/node_modules/fast-string-width/license +0 -21
- package/node_modules/fast-string-width/readme.md +0 -45
- package/node_modules/file-type/license +0 -9
- package/node_modules/file-type/readme.md +0 -667
- package/node_modules/form-data/License +0 -19
- package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
- package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
- package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
- package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
- package/node_modules/gaxios/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/gaxios/node_modules/agent-base/README.md +0 -69
- package/node_modules/gaxios/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/gaxios/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/get-east-asian-width/license +0 -9
- package/node_modules/get-east-asian-width/readme.md +0 -65
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
- package/node_modules/grammy/node_modules/node-fetch/LICENSE.md +0 -22
- package/node_modules/grammy/node_modules/node-fetch/README.md +0 -634
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/readme.md +0 -89
- package/node_modules/htmlparser2/node_modules/entities/LICENSE +0 -11
- package/node_modules/htmlparser2/node_modules/entities/readme.md +0 -143
- package/node_modules/http-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/http-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/jws/readme.md +0 -255
- package/node_modules/libsignal/native/ed25519/sha512/LICENSE.txt +0 -20
- package/node_modules/libsignal/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/@types/node/README.md +0 -16
- package/node_modules/libsignal/node_modules/long/LICENSE +0 -202
- package/node_modules/libsignal/node_modules/long/README.md +0 -246
- package/node_modules/libsignal/node_modules/protobufjs/LICENSE +0 -39
- package/node_modules/libsignal/node_modules/protobufjs/README.md +0 -879
- package/node_modules/libsignal/node_modules/protobufjs/cli/LICENSE +0 -33
- package/node_modules/libsignal/node_modules/protobufjs/cli/README.md +0 -11
- package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/license +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/README.md +0 -314
- package/node_modules/libsignal/node_modules/protobufjs/dist/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/dist/light/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/dist/minimal/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/libsignal/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/libsignal/node_modules/protobufjs/google/LICENSE +0 -27
- package/node_modules/libsignal/node_modules/protobufjs/google/README.md +0 -1
- package/node_modules/lie/license.md +0 -7
- package/node_modules/linkedom/node_modules/html-escaper/LICENSE.txt +0 -19
- package/node_modules/linkedom/node_modules/html-escaper/README.md +0 -110
- package/node_modules/merge-descriptors/license +0 -11
- package/node_modules/merge-descriptors/readme.md +0 -55
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/node-edge-tts/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/node-edge-tts/node_modules/agent-base/README.md +0 -69
- package/node_modules/node-edge-tts/node_modules/ansi-regex/license +0 -9
- package/node_modules/node-edge-tts/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/node-edge-tts/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/node-edge-tts/node_modules/cliui/README.md +0 -141
- package/node_modules/node-edge-tts/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/node-edge-tts/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/node-edge-tts/node_modules/strip-ansi/license +0 -9
- package/node_modules/node-edge-tts/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/node-edge-tts/node_modules/yargs/LICENSE +0 -21
- package/node_modules/node-edge-tts/node_modules/yargs/README.md +0 -204
- package/node_modules/node-edge-tts/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/node-edge-tts/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/object-inspect/readme.markdown +0 -84
- package/node_modules/openai/src/_vendor/partial-json-parser/README.md +0 -3
- package/node_modules/openai/src/_vendor/zod-to-json-schema/LICENSE +0 -15
- package/node_modules/openai/src/_vendor/zod-to-json-schema/README.md +0 -3
- package/node_modules/openai/src/core/README.md +0 -3
- package/node_modules/openai/src/internal/README.md +0 -3
- package/node_modules/openai/src/internal/qs/LICENSE.md +0 -13
- package/node_modules/openai/src/internal/qs/README.md +0 -3
- package/node_modules/p-finally/license +0 -21
- package/node_modules/p-finally/readme.md +0 -47
- package/node_modules/p-queue/license +0 -9
- package/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
- package/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
- package/node_modules/p-queue/readme.md +0 -400
- package/node_modules/p-retry/license +0 -9
- package/node_modules/p-retry/readme.md +0 -148
- package/node_modules/p-timeout/license +0 -9
- package/node_modules/p-timeout/readme.md +0 -87
- package/node_modules/pac-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/path-to-regexp/Readme.md +0 -224
- package/node_modules/pino-std-serializers/Readme.md +0 -182
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/proper-lockfile/node_modules/retry/License +0 -21
- package/node_modules/proper-lockfile/node_modules/retry/README.md +0 -227
- package/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +0 -19
- package/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +0 -233
- package/node_modules/proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
- package/node_modules/proxy-agent/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-agent/node_modules/proxy-from-env/README.md +0 -131
- package/node_modules/qified/node_modules/hookified/LICENSE +0 -19
- package/node_modules/qified/node_modules/hookified/README.md +0 -1682
- package/node_modules/quick-format-unescaped/readme.md +0 -66
- package/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/require-from-string/license +0 -21
- package/node_modules/require-from-string/readme.md +0 -56
- package/node_modules/retry/License +0 -21
- package/node_modules/router/node_modules/is-promise/LICENSE +0 -19
- package/node_modules/router/node_modules/is-promise/readme.md +0 -33
- package/node_modules/safe-stable-stringify/readme.md +0 -179
- package/node_modules/safer-buffer/Readme.md +0 -156
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/sisteransi/license +0 -21
- package/node_modules/sisteransi/readme.md +0 -113
- package/node_modules/socks-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/socks-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/readme.md +0 -37
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/readme.md +0 -76
- package/node_modules/uint8array-extras/license +0 -9
- package/node_modules/uint8array-extras/readme.md +0 -318
- package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/yoctocolors/license +0 -9
- package/node_modules/yoctocolors/readme.md +0 -138
- package/node_modules/zod-to-json-schema/changelog.md +0 -83
|
@@ -1,1865 +0,0 @@
|
|
|
1
|
-
<div align='center'>
|
|
2
|
-
|
|
3
|
-
<h1>TypeBox 0.34.x</h1>
|
|
4
|
-
|
|
5
|
-
<p>Json Schema Type Builder with Static Type Resolution for TypeScript</p>
|
|
6
|
-
|
|
7
|
-
<img src="https://raw.githubusercontent.com/sinclairzx81/typebox-legacy/refs/heads/main/typebox.png" />
|
|
8
|
-
|
|
9
|
-
<br />
|
|
10
|
-
<br />
|
|
11
|
-
|
|
12
|
-
[](https://badge.fury.io/js/%40sinclair%2Ftypebox)
|
|
13
|
-
[](https://www.npmjs.com/package/%40sinclair%2Ftypebox)
|
|
14
|
-
[](https://github.com/sinclairzx81/typebox/actions/workflows/build.yml)
|
|
15
|
-
[](https://opensource.org/licenses/MIT)
|
|
16
|
-
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<a name="Install"></a>
|
|
20
|
-
|
|
21
|
-
## Install
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
$ npm install @sinclair/typebox # TypeBox-Legacy | 0.34.x
|
|
25
|
-
|
|
26
|
-
$ npm install typebox # TypeBox | 1.0.x
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Example
|
|
30
|
-
|
|
31
|
-
```typescript
|
|
32
|
-
import { Type, type Static } from '@sinclair/typebox'
|
|
33
|
-
|
|
34
|
-
const T = Type.Object({ // const T = {
|
|
35
|
-
x: Type.Number(), // type: 'object',
|
|
36
|
-
y: Type.Number(), // required: ['x', 'y', 'z'],
|
|
37
|
-
z: Type.Number() // properties: {
|
|
38
|
-
}) // x: { type: 'number' },
|
|
39
|
-
// y: { type: 'number' },
|
|
40
|
-
// z: { type: 'number' }
|
|
41
|
-
// }
|
|
42
|
-
// }
|
|
43
|
-
|
|
44
|
-
type T = Static<typeof T> // type T = {
|
|
45
|
-
// x: number,
|
|
46
|
-
// y: number,
|
|
47
|
-
// z: number
|
|
48
|
-
// }
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<a name="Overview"></a>
|
|
53
|
-
|
|
54
|
-
## Overview
|
|
55
|
-
|
|
56
|
-
> ⚠️ TypeBox versions (pre-1.0) will continue active maintenance through 2026 and beyond. This repository services as the OIDC publishing environment for the `@sinclair/typebox` package scope on NPM. For TypeBox versions 1.0 and above, refer to https://github.com/sinclairzx81/typebox
|
|
57
|
-
|
|
58
|
-
TypeBox is a runtime type builder that creates in-memory Json Schema objects that infer as TypeScript types. The schematics produced by this library are designed to match the static type checking rules of the TypeScript compiler. TypeBox offers a unified type that can be statically checked by TypeScript and runtime asserted using standard Json Schema validation.
|
|
59
|
-
|
|
60
|
-
This library is designed to allow Json Schema to compose similar to how types compose within TypeScript's type system. It can be used as a simple tool to build up complex schematics or integrated into REST and RPC services to help validate data received over the wire.
|
|
61
|
-
|
|
62
|
-
License MIT
|
|
63
|
-
|
|
64
|
-
## Contents
|
|
65
|
-
- [Install](#install)
|
|
66
|
-
- [Overview](#overview)
|
|
67
|
-
- [Usage](#usage)
|
|
68
|
-
- [Types](#types)
|
|
69
|
-
- [Json](#types-json)
|
|
70
|
-
- [JavaScript](#types-javascript)
|
|
71
|
-
- [Options](#types-options)
|
|
72
|
-
- [Properties](#types-properties)
|
|
73
|
-
- [Generics](#types-generics)
|
|
74
|
-
- [Recursive](#types-recursive)
|
|
75
|
-
- [Modules](#types-modules)
|
|
76
|
-
- [Template Literal](#types-template-literal)
|
|
77
|
-
- [Indexed](#types-indexed)
|
|
78
|
-
- [Mapped](#types-mapped)
|
|
79
|
-
- [Conditional](#types-conditional)
|
|
80
|
-
- [Transform](#types-transform)
|
|
81
|
-
- [Guard](#types-guard)
|
|
82
|
-
- [Unsafe](#types-unsafe)
|
|
83
|
-
- [Values](#values)
|
|
84
|
-
- [Assert](#values-assert)
|
|
85
|
-
- [Create](#values-create)
|
|
86
|
-
- [Clone](#values-clone)
|
|
87
|
-
- [Check](#values-check)
|
|
88
|
-
- [Convert](#values-convert)
|
|
89
|
-
- [Default](#values-default)
|
|
90
|
-
- [Clean](#values-clean)
|
|
91
|
-
- [Cast](#values-cast)
|
|
92
|
-
- [Decode](#values-decode)
|
|
93
|
-
- [Encode](#values-decode)
|
|
94
|
-
- [Parse](#values-parse)
|
|
95
|
-
- [Equal](#values-equal)
|
|
96
|
-
- [Hash](#values-hash)
|
|
97
|
-
- [Diff](#values-diff)
|
|
98
|
-
- [Patch](#values-patch)
|
|
99
|
-
- [Errors](#values-errors)
|
|
100
|
-
- [Mutate](#values-mutate)
|
|
101
|
-
- [Pointer](#values-pointer)
|
|
102
|
-
- [Syntax](#syntax)
|
|
103
|
-
- [Create](#syntax-create)
|
|
104
|
-
- [Parameters](#syntax-parameters)
|
|
105
|
-
- [Generics](#syntax-generics)
|
|
106
|
-
- [Options](#syntax-options)
|
|
107
|
-
- [NoInfer](#syntax-no-infer)
|
|
108
|
-
- [TypeRegistry](#typeregistry)
|
|
109
|
-
- [Type](#typeregistry-type)
|
|
110
|
-
- [Format](#typeregistry-format)
|
|
111
|
-
- [TypeCheck](#typecheck)
|
|
112
|
-
- [Ajv](#typecheck-ajv)
|
|
113
|
-
- [TypeCompiler](#typecheck-typecompiler)
|
|
114
|
-
- [TypeMap](#typemap)
|
|
115
|
-
- [Usage](#typemap-usage)
|
|
116
|
-
- [TypeSystem](#typesystem)
|
|
117
|
-
- [Policies](#typesystem-policies)
|
|
118
|
-
- [Error Function](#error-function)
|
|
119
|
-
- [Workbench](#workbench)
|
|
120
|
-
- [Codegen](#codegen)
|
|
121
|
-
- [Ecosystem](#ecosystem)
|
|
122
|
-
- [Benchmark](#benchmark)
|
|
123
|
-
- [Compile](#benchmark-compile)
|
|
124
|
-
- [Validate](#benchmark-validate)
|
|
125
|
-
- [Compression](#benchmark-compression)
|
|
126
|
-
- [Contribute](#contribute)
|
|
127
|
-
|
|
128
|
-
<a name="usage"></a>
|
|
129
|
-
|
|
130
|
-
## Usage
|
|
131
|
-
|
|
132
|
-
The following shows general usage.
|
|
133
|
-
|
|
134
|
-
```typescript
|
|
135
|
-
import { Type, type Static } from '@sinclair/typebox'
|
|
136
|
-
|
|
137
|
-
//--------------------------------------------------------------------------------------------
|
|
138
|
-
//
|
|
139
|
-
// Let's say you have the following type ...
|
|
140
|
-
//
|
|
141
|
-
//--------------------------------------------------------------------------------------------
|
|
142
|
-
|
|
143
|
-
type T = {
|
|
144
|
-
id: string,
|
|
145
|
-
name: string,
|
|
146
|
-
timestamp: number
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
//--------------------------------------------------------------------------------------------
|
|
150
|
-
//
|
|
151
|
-
// ... you can express this type in the following way.
|
|
152
|
-
//
|
|
153
|
-
//--------------------------------------------------------------------------------------------
|
|
154
|
-
|
|
155
|
-
const T = Type.Object({ // const T = {
|
|
156
|
-
id: Type.String(), // type: 'object',
|
|
157
|
-
name: Type.String(), // properties: {
|
|
158
|
-
timestamp: Type.Integer() // id: {
|
|
159
|
-
}) // type: 'string'
|
|
160
|
-
// },
|
|
161
|
-
// name: {
|
|
162
|
-
// type: 'string'
|
|
163
|
-
// },
|
|
164
|
-
// timestamp: {
|
|
165
|
-
// type: 'integer'
|
|
166
|
-
// }
|
|
167
|
-
// },
|
|
168
|
-
// required: [
|
|
169
|
-
// 'id',
|
|
170
|
-
// 'name',
|
|
171
|
-
// 'timestamp'
|
|
172
|
-
// ]
|
|
173
|
-
// }
|
|
174
|
-
|
|
175
|
-
//--------------------------------------------------------------------------------------------
|
|
176
|
-
//
|
|
177
|
-
// ... then infer back to the original static type this way.
|
|
178
|
-
//
|
|
179
|
-
//--------------------------------------------------------------------------------------------
|
|
180
|
-
|
|
181
|
-
type T = Static<typeof T> // type T = {
|
|
182
|
-
// id: string,
|
|
183
|
-
// name: string,
|
|
184
|
-
// timestamp: number
|
|
185
|
-
// }
|
|
186
|
-
|
|
187
|
-
//--------------------------------------------------------------------------------------------
|
|
188
|
-
//
|
|
189
|
-
// ... or use the type to parse JavaScript values.
|
|
190
|
-
//
|
|
191
|
-
//--------------------------------------------------------------------------------------------
|
|
192
|
-
|
|
193
|
-
import { Value } from '@sinclair/typebox/value'
|
|
194
|
-
|
|
195
|
-
const R = Value.Parse(T, value) // const R: {
|
|
196
|
-
// id: string,
|
|
197
|
-
// name: string,
|
|
198
|
-
// timestamp: number
|
|
199
|
-
// }
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
<a name='types'></a>
|
|
203
|
-
|
|
204
|
-
## Types
|
|
205
|
-
|
|
206
|
-
TypeBox types are Json Schema fragments that compose into more complex types. Each fragment is structured such that any Json Schema compliant validator can runtime assert a value the same way TypeScript will statically assert a type. TypeBox offers a set of Json Types which are used to create Json Schema compliant schematics as well as a JavaScript type set used to create schematics for constructs native to JavaScript.
|
|
207
|
-
|
|
208
|
-
<a name='types-json'></a>
|
|
209
|
-
|
|
210
|
-
### Json Types
|
|
211
|
-
|
|
212
|
-
The following table lists the supported Json types. These types are fully compatible with the Json Schema Draft 7 specification.
|
|
213
|
-
|
|
214
|
-
```typescript
|
|
215
|
-
┌────────────────────────────────┬─────────────────────────────┬────────────────────────────────┐
|
|
216
|
-
│ TypeBox │ TypeScript │ Json Schema │
|
|
217
|
-
│ │ │ │
|
|
218
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
219
|
-
│ const T = Type.Any() │ type T = any │ const T = { } │
|
|
220
|
-
│ │ │ │
|
|
221
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
222
|
-
│ const T = Type.Unknown() │ type T = unknown │ const T = { } │
|
|
223
|
-
│ │ │ │
|
|
224
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
225
|
-
│ const T = Type.String() │ type T = string │ const T = { │
|
|
226
|
-
│ │ │ type: 'string' │
|
|
227
|
-
│ │ │ } │
|
|
228
|
-
│ │ │ │
|
|
229
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
230
|
-
│ const T = Type.Number() │ type T = number │ const T = { │
|
|
231
|
-
│ │ │ type: 'number' │
|
|
232
|
-
│ │ │ } │
|
|
233
|
-
│ │ │ │
|
|
234
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
235
|
-
│ const T = Type.Integer() │ type T = number │ const T = { │
|
|
236
|
-
│ │ │ type: 'integer' │
|
|
237
|
-
│ │ │ } │
|
|
238
|
-
│ │ │ │
|
|
239
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
240
|
-
│ const T = Type.Boolean() │ type T = boolean │ const T = { │
|
|
241
|
-
│ │ │ type: 'boolean' │
|
|
242
|
-
│ │ │ } │
|
|
243
|
-
│ │ │ │
|
|
244
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
245
|
-
│ const T = Type.Null() │ type T = null │ const T = { │
|
|
246
|
-
│ │ │ type: 'null' │
|
|
247
|
-
│ │ │ } │
|
|
248
|
-
│ │ │ │
|
|
249
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
250
|
-
│ const T = Type.Literal(42) │ type T = 42 │ const T = { │
|
|
251
|
-
│ │ │ const: 42, │
|
|
252
|
-
│ │ │ type: 'number' │
|
|
253
|
-
│ │ │ } │
|
|
254
|
-
│ │ │ │
|
|
255
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
256
|
-
│ const T = Type.Array( │ type T = number[] │ const T = { │
|
|
257
|
-
│ Type.Number() │ │ type: 'array', │
|
|
258
|
-
│ ) │ │ items: { │
|
|
259
|
-
│ │ │ type: 'number' │
|
|
260
|
-
│ │ │ } │
|
|
261
|
-
│ │ │ } │
|
|
262
|
-
│ │ │ │
|
|
263
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
264
|
-
│ const T = Type.Object({ │ type T = { │ const T = { │
|
|
265
|
-
│ x: Type.Number(), │ x: number, │ type: 'object', │
|
|
266
|
-
│ y: Type.Number() │ y: number │ required: ['x', 'y'], │
|
|
267
|
-
│ }) │ } │ properties: { │
|
|
268
|
-
│ │ │ x: { │
|
|
269
|
-
│ │ │ type: 'number' │
|
|
270
|
-
│ │ │ }, │
|
|
271
|
-
│ │ │ y: { │
|
|
272
|
-
│ │ │ type: 'number' │
|
|
273
|
-
│ │ │ } │
|
|
274
|
-
│ │ │ } │
|
|
275
|
-
│ │ │ } │
|
|
276
|
-
│ │ │ │
|
|
277
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
278
|
-
│ const T = Type.Tuple([ │ type T = [number, number] │ const T = { │
|
|
279
|
-
│ Type.Number(), │ │ type: 'array', │
|
|
280
|
-
│ Type.Number() │ │ items: [{ │
|
|
281
|
-
│ ]) │ │ type: 'number' │
|
|
282
|
-
│ │ │ }, { │
|
|
283
|
-
│ │ │ type: 'number' │
|
|
284
|
-
│ │ │ }], │
|
|
285
|
-
│ │ │ additionalItems: false, │
|
|
286
|
-
│ │ │ minItems: 2, │
|
|
287
|
-
│ │ │ maxItems: 2 │
|
|
288
|
-
│ │ │ } │
|
|
289
|
-
│ │ │ │
|
|
290
|
-
│ │ │ │
|
|
291
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
292
|
-
│ enum Foo { │ enum Foo { │ const T = { │
|
|
293
|
-
│ A, │ A, │ anyOf: [{ │
|
|
294
|
-
│ B │ B │ type: 'number', │
|
|
295
|
-
│ } │ } │ const: 0 │
|
|
296
|
-
│ │ │ }, { │
|
|
297
|
-
│ const T = Type.Enum(Foo) │ type T = Foo │ type: 'number', │
|
|
298
|
-
│ │ │ const: 1 │
|
|
299
|
-
│ │ │ }] │
|
|
300
|
-
│ │ │ } │
|
|
301
|
-
│ │ │ │
|
|
302
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
303
|
-
│ const T = Type.Const({ │ type T = { │ const T = { │
|
|
304
|
-
│ x: 1, │ readonly x: 1, │ type: 'object', │
|
|
305
|
-
│ y: 2, │ readonly y: 2 │ required: ['x', 'y'], │
|
|
306
|
-
│ } as const) │ } │ properties: { │
|
|
307
|
-
│ │ │ x: { │
|
|
308
|
-
│ │ │ type: 'number', │
|
|
309
|
-
│ │ │ const: 1 │
|
|
310
|
-
│ │ │ }, │
|
|
311
|
-
│ │ │ y: { │
|
|
312
|
-
│ │ │ type: 'number', │
|
|
313
|
-
│ │ │ const: 2 │
|
|
314
|
-
│ │ │ } │
|
|
315
|
-
│ │ │ } │
|
|
316
|
-
│ │ │ } │
|
|
317
|
-
│ │ │ │
|
|
318
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
319
|
-
│ const T = Type.KeyOf( │ type T = keyof { │ const T = { │
|
|
320
|
-
│ Type.Object({ │ x: number, │ anyOf: [{ │
|
|
321
|
-
│ x: Type.Number(), │ y: number │ type: 'string', │
|
|
322
|
-
│ y: Type.Number() │ } │ const: 'x' │
|
|
323
|
-
│ }) │ │ }, { │
|
|
324
|
-
│ ) │ │ type: 'string', │
|
|
325
|
-
│ │ │ const: 'y' │
|
|
326
|
-
│ │ │ }] │
|
|
327
|
-
│ │ │ } │
|
|
328
|
-
│ │ │ │
|
|
329
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
330
|
-
│ const T = Type.Union([ │ type T = string | number │ const T = { │
|
|
331
|
-
│ Type.String(), │ │ anyOf: [{ │
|
|
332
|
-
│ Type.Number() │ │ type: 'string' │
|
|
333
|
-
│ ]) │ │ }, { │
|
|
334
|
-
│ │ │ type: 'number' │
|
|
335
|
-
│ │ │ }] │
|
|
336
|
-
│ │ │ } │
|
|
337
|
-
│ │ │ │
|
|
338
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
339
|
-
│ const T = Type.Intersect([ │ type T = { │ const T = { │
|
|
340
|
-
│ Type.Object({ │ x: number │ allOf: [{ │
|
|
341
|
-
│ x: Type.Number() │ } & { │ type: 'object', │
|
|
342
|
-
│ }), │ y: number │ required: ['x'], │
|
|
343
|
-
│ Type.Object({ │ } │ properties: { │
|
|
344
|
-
│ y: Type.Number() │ │ x: { │
|
|
345
|
-
│ }) │ │ type: 'number' │
|
|
346
|
-
│ ]) │ │ } │
|
|
347
|
-
│ │ │ } │
|
|
348
|
-
│ │ │ }, { │
|
|
349
|
-
│ │ │ type: 'object', |
|
|
350
|
-
│ │ │ required: ['y'], │
|
|
351
|
-
│ │ │ properties: { │
|
|
352
|
-
│ │ │ y: { │
|
|
353
|
-
│ │ │ type: 'number' │
|
|
354
|
-
│ │ │ } │
|
|
355
|
-
│ │ │ } │
|
|
356
|
-
│ │ │ }] │
|
|
357
|
-
│ │ │ } │
|
|
358
|
-
│ │ │ │
|
|
359
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
360
|
-
│ const T = Type.Composite([ │ type T = { │ const T = { │
|
|
361
|
-
│ Type.Object({ │ x: number, │ type: 'object', │
|
|
362
|
-
│ x: Type.Number() │ y: number │ required: ['x', 'y'], │
|
|
363
|
-
│ }), │ } │ properties: { │
|
|
364
|
-
│ Type.Object({ │ │ x: { │
|
|
365
|
-
│ y: Type.Number() │ │ type: 'number' │
|
|
366
|
-
│ }) │ │ }, │
|
|
367
|
-
│ ]) │ │ y: { │
|
|
368
|
-
│ │ │ type: 'number' │
|
|
369
|
-
│ │ │ } │
|
|
370
|
-
│ │ │ } │
|
|
371
|
-
│ │ │ } │
|
|
372
|
-
│ │ │ │
|
|
373
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
374
|
-
│ const T = Type.Never() │ type T = never │ const T = { │
|
|
375
|
-
│ │ │ not: {} │
|
|
376
|
-
│ │ │ } │
|
|
377
|
-
│ │ │ │
|
|
378
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
379
|
-
│ const T = Type.Not( | type T = unknown │ const T = { │
|
|
380
|
-
│ Type.String() │ │ not: { │
|
|
381
|
-
│ ) │ │ type: 'string' │
|
|
382
|
-
│ │ │ } │
|
|
383
|
-
│ │ │ } │
|
|
384
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
385
|
-
│ const T = Type.Extends( │ type T = │ const T = { │
|
|
386
|
-
│ Type.String(), │ string extends number │ const: false, │
|
|
387
|
-
│ Type.Number(), │ ? true │ type: 'boolean' │
|
|
388
|
-
│ Type.Literal(true), │ : false │ } │
|
|
389
|
-
│ Type.Literal(false) │ │ │
|
|
390
|
-
│ ) │ │ │
|
|
391
|
-
│ │ │ │
|
|
392
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
393
|
-
│ const T = Type.Extract( │ type T = Extract< │ const T = { │
|
|
394
|
-
│ Type.Union([ │ string | number, │ type: 'string' │
|
|
395
|
-
│ Type.String(), │ string │ } │
|
|
396
|
-
│ Type.Number(), │ > │ │
|
|
397
|
-
│ ]), │ │ │
|
|
398
|
-
│ Type.String() │ │ │
|
|
399
|
-
│ ) │ │ │
|
|
400
|
-
│ │ │ │
|
|
401
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
402
|
-
│ const T = Type.Exclude( │ type T = Exclude< │ const T = { │
|
|
403
|
-
│ Type.Union([ │ string | number, │ type: 'number' │
|
|
404
|
-
│ Type.String(), │ string │ } │
|
|
405
|
-
│ Type.Number(), │ > │ │
|
|
406
|
-
│ ]), │ │ │
|
|
407
|
-
│ Type.String() │ │ │
|
|
408
|
-
│ ) │ │ │
|
|
409
|
-
│ │ │ │
|
|
410
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
411
|
-
│ const T = Type.Mapped( │ type T = { │ const T = { │
|
|
412
|
-
│ Type.Union([ │ [_ in 'x' | 'y'] : number │ type: 'object', │
|
|
413
|
-
│ Type.Literal('x'), │ } │ required: ['x', 'y'], │
|
|
414
|
-
│ Type.Literal('y') │ │ properties: { │
|
|
415
|
-
│ ]), │ │ x: { │
|
|
416
|
-
│ () => Type.Number() │ │ type: 'number' │
|
|
417
|
-
│ ) │ │ }, │
|
|
418
|
-
│ │ │ y: { │
|
|
419
|
-
│ │ │ type: 'number' │
|
|
420
|
-
│ │ │ } │
|
|
421
|
-
│ │ │ } │
|
|
422
|
-
│ │ │ } │
|
|
423
|
-
│ │ │ │
|
|
424
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
425
|
-
│ const U = Type.Union([ │ type U = 'open' | 'close' │ const T = { │
|
|
426
|
-
│ Type.Literal('open'), │ │ type: 'string', │
|
|
427
|
-
│ Type.Literal('close') │ type T = `on${U}` │ pattern: '^on(open|close)$' │
|
|
428
|
-
│ ]) │ │ } │
|
|
429
|
-
│ │ │ │
|
|
430
|
-
│ const T = Type │ │ │
|
|
431
|
-
│ .TemplateLiteral([ │ │ │
|
|
432
|
-
│ Type.Literal('on'), │ │ │
|
|
433
|
-
│ U │ │ │
|
|
434
|
-
│ ]) │ │ │
|
|
435
|
-
│ │ │ │
|
|
436
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
437
|
-
│ const T = Type.Record( │ type T = Record< │ const T = { │
|
|
438
|
-
│ Type.String(), │ string, │ type: 'object', │
|
|
439
|
-
│ Type.Number() │ number │ patternProperties: { │
|
|
440
|
-
│ ) │ > │ '^.*$': { │
|
|
441
|
-
│ │ │ type: 'number' │
|
|
442
|
-
│ │ │ } │
|
|
443
|
-
│ │ │ } │
|
|
444
|
-
│ │ │ } │
|
|
445
|
-
│ │ │ │
|
|
446
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
447
|
-
│ const T = Type.Partial( │ type T = Partial<{ │ const T = { │
|
|
448
|
-
│ Type.Object({ │ x: number, │ type: 'object', │
|
|
449
|
-
│ x: Type.Number(), │ y: number │ properties: { │
|
|
450
|
-
│ y: Type.Number() | }> │ x: { │
|
|
451
|
-
│ }) │ │ type: 'number' │
|
|
452
|
-
│ ) │ │ }, │
|
|
453
|
-
│ │ │ y: { │
|
|
454
|
-
│ │ │ type: 'number' │
|
|
455
|
-
│ │ │ } │
|
|
456
|
-
│ │ │ } │
|
|
457
|
-
│ │ │ } │
|
|
458
|
-
│ │ │ │
|
|
459
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
460
|
-
│ const T = Type.Required( │ type T = Required<{ │ const T = { │
|
|
461
|
-
│ Type.Object({ │ x?: number, │ type: 'object', │
|
|
462
|
-
│ x: Type.Optional( │ y?: number │ required: ['x', 'y'], │
|
|
463
|
-
│ Type.Number() | }> │ properties: { │
|
|
464
|
-
│ ), │ │ x: { │
|
|
465
|
-
│ y: Type.Optional( │ │ type: 'number' │
|
|
466
|
-
│ Type.Number() │ │ }, │
|
|
467
|
-
│ ) │ │ y: { │
|
|
468
|
-
│ }) │ │ type: 'number' │
|
|
469
|
-
│ ) │ │ } │
|
|
470
|
-
│ │ │ } │
|
|
471
|
-
│ │ │ } │
|
|
472
|
-
│ │ │ │
|
|
473
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
474
|
-
│ const T = Type.Pick( │ type T = Pick<{ │ const T = { │
|
|
475
|
-
│ Type.Object({ │ x: number, │ type: 'object', │
|
|
476
|
-
│ x: Type.Number(), │ y: number │ required: ['x'], │
|
|
477
|
-
│ y: Type.Number() │ }, 'x'> │ properties: { │
|
|
478
|
-
│ }), ['x'] | │ x: { │
|
|
479
|
-
│ ) │ │ type: 'number' │
|
|
480
|
-
│ │ │ } │
|
|
481
|
-
│ │ │ } │
|
|
482
|
-
│ │ │ } │
|
|
483
|
-
│ │ │ │
|
|
484
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
485
|
-
│ const T = Type.Omit( │ type T = Omit<{ │ const T = { │
|
|
486
|
-
│ Type.Object({ │ x: number, │ type: 'object', │
|
|
487
|
-
│ x: Type.Number(), │ y: number │ required: ['y'], │
|
|
488
|
-
│ y: Type.Number() │ }, 'x'> │ properties: { │
|
|
489
|
-
│ }), ['x'] | │ y: { │
|
|
490
|
-
│ ) │ │ type: 'number' │
|
|
491
|
-
│ │ │ } │
|
|
492
|
-
│ │ │ } │
|
|
493
|
-
│ │ │ } │
|
|
494
|
-
│ │ │ │
|
|
495
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
496
|
-
│ const T = Type.Index( │ type T = { │ const T = { │
|
|
497
|
-
│ Type.Object({ │ x: number, │ type: 'number' │
|
|
498
|
-
│ x: Type.Number(), │ y: string │ } │
|
|
499
|
-
│ y: Type.String() │ }['x'] │ │
|
|
500
|
-
│ }), ['x'] │ │ │
|
|
501
|
-
│ ) │ │ │
|
|
502
|
-
│ │ │ │
|
|
503
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
504
|
-
│ const A = Type.Tuple([ │ type A = [0, 1] │ const T = { │
|
|
505
|
-
│ Type.Literal(0), │ type B = [2, 3] │ type: 'array', │
|
|
506
|
-
│ Type.Literal(1) │ type T = [ │ items: [ │
|
|
507
|
-
│ ]) │ ...A, │ { const: 0 }, │
|
|
508
|
-
│ const B = Type.Tuple([ │ ...B │ { const: 1 }, │
|
|
509
|
-
| Type.Literal(2), │ ] │ { const: 2 }, │
|
|
510
|
-
| Type.Literal(3) │ │ { const: 3 } │
|
|
511
|
-
│ ]) │ │ ], │
|
|
512
|
-
│ const T = Type.Tuple([ │ │ additionalItems: false, │
|
|
513
|
-
| ...Type.Rest(A), │ │ minItems: 4, │
|
|
514
|
-
| ...Type.Rest(B) │ │ maxItems: 4 │
|
|
515
|
-
│ ]) │ │ } │
|
|
516
|
-
│ │ │ │
|
|
517
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
518
|
-
│ const T = Type.Uncapitalize( │ type T = Uncapitalize< │ const T = { │
|
|
519
|
-
│ Type.Literal('Hello') │ 'Hello' │ type: 'string', │
|
|
520
|
-
│ ) │ > │ const: 'hello' │
|
|
521
|
-
│ │ │ } │
|
|
522
|
-
│ │ │ │
|
|
523
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
524
|
-
│ const T = Type.Capitalize( │ type T = Capitalize< │ const T = { │
|
|
525
|
-
│ Type.Literal('hello') │ 'hello' │ type: 'string', │
|
|
526
|
-
│ ) │ > │ const: 'Hello' │
|
|
527
|
-
│ │ │ } │
|
|
528
|
-
│ │ │ │
|
|
529
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
530
|
-
│ const T = Type.Uppercase( │ type T = Uppercase< │ const T = { │
|
|
531
|
-
│ Type.Literal('hello') │ 'hello' │ type: 'string', │
|
|
532
|
-
│ ) │ > │ const: 'HELLO' │
|
|
533
|
-
│ │ │ } │
|
|
534
|
-
│ │ │ │
|
|
535
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
536
|
-
│ const T = Type.Lowercase( │ type T = Lowercase< │ const T = { │
|
|
537
|
-
│ Type.Literal('HELLO') │ 'HELLO' │ type: 'string', │
|
|
538
|
-
│ ) │ > │ const: 'hello' │
|
|
539
|
-
│ │ │ } │
|
|
540
|
-
│ │ │ │
|
|
541
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
542
|
-
│ const R = Type.Ref('T') │ type R = unknown │ const R = { $ref: 'T' } │
|
|
543
|
-
│ │ │ │
|
|
544
|
-
└────────────────────────────────┴─────────────────────────────┴────────────────────────────────┘
|
|
545
|
-
```
|
|
546
|
-
|
|
547
|
-
<a name='types-javascript'></a>
|
|
548
|
-
|
|
549
|
-
### JavaScript Types
|
|
550
|
-
|
|
551
|
-
TypeBox provides an extended type set that can be used to create schematics for common JavaScript constructs. These types can not be used with any standard Json Schema validator; but can be used to frame schematics for interfaces that may receive Json validated data. JavaScript types are prefixed with the `[JavaScript]` JSDoc comment for convenience. The following table lists the supported types.
|
|
552
|
-
|
|
553
|
-
```typescript
|
|
554
|
-
┌────────────────────────────────┬─────────────────────────────┬────────────────────────────────┐
|
|
555
|
-
│ TypeBox │ TypeScript │ Extended Schema │
|
|
556
|
-
│ │ │ │
|
|
557
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
558
|
-
│ const T = Type.Constructor([ │ type T = new ( │ const T = { │
|
|
559
|
-
│ Type.String(), │ arg0: string, │ type: 'Constructor', │
|
|
560
|
-
│ Type.Number() │ arg0: number │ parameters: [{ │
|
|
561
|
-
│ ], Type.Boolean()) │ ) => boolean │ type: 'string' │
|
|
562
|
-
│ │ │ }, { │
|
|
563
|
-
│ │ │ type: 'number' │
|
|
564
|
-
│ │ │ }], │
|
|
565
|
-
│ │ │ returns: { │
|
|
566
|
-
│ │ │ type: 'boolean' │
|
|
567
|
-
│ │ │ } │
|
|
568
|
-
│ │ │ } │
|
|
569
|
-
│ │ │ │
|
|
570
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
571
|
-
│ const T = Type.Function([ │ type T = ( │ const T = { │
|
|
572
|
-
| Type.String(), │ arg0: string, │ type: 'Function', │
|
|
573
|
-
│ Type.Number() │ arg1: number │ parameters: [{ │
|
|
574
|
-
│ ], Type.Boolean()) │ ) => boolean │ type: 'string' │
|
|
575
|
-
│ │ │ }, { │
|
|
576
|
-
│ │ │ type: 'number' │
|
|
577
|
-
│ │ │ }], │
|
|
578
|
-
│ │ │ returns: { │
|
|
579
|
-
│ │ │ type: 'boolean' │
|
|
580
|
-
│ │ │ } │
|
|
581
|
-
│ │ │ } │
|
|
582
|
-
│ │ │ │
|
|
583
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
584
|
-
│ const T = Type.Promise( │ type T = Promise<string> │ const T = { │
|
|
585
|
-
│ Type.String() │ │ type: 'Promise', │
|
|
586
|
-
│ ) │ │ item: { │
|
|
587
|
-
│ │ │ type: 'string' │
|
|
588
|
-
│ │ │ } │
|
|
589
|
-
│ │ │ } │
|
|
590
|
-
│ │ │ │
|
|
591
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
592
|
-
│ const T = │ type T = │ const T = { │
|
|
593
|
-
│ Type.AsyncIterator( │ AsyncIterableIterator< │ type: 'AsyncIterator', │
|
|
594
|
-
│ Type.String() │ string │ items: { │
|
|
595
|
-
│ ) │ > │ type: 'string' │
|
|
596
|
-
│ │ │ } │
|
|
597
|
-
│ │ │ } │
|
|
598
|
-
│ │ │ │
|
|
599
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
600
|
-
│ const T = Type.Iterator( │ type T = │ const T = { │
|
|
601
|
-
│ Type.String() │ IterableIterator<string> │ type: 'Iterator', │
|
|
602
|
-
│ ) │ │ items: { │
|
|
603
|
-
│ │ │ type: 'string' │
|
|
604
|
-
│ │ │ } │
|
|
605
|
-
│ │ │ } │
|
|
606
|
-
│ │ │ │
|
|
607
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
608
|
-
│ const T = Type.RegExp(/abc/i) │ type T = string │ const T = { │
|
|
609
|
-
│ │ │ type: 'RegExp' │
|
|
610
|
-
│ │ │ source: 'abc' │
|
|
611
|
-
│ │ │ flags: 'i' │
|
|
612
|
-
│ │ │ } │
|
|
613
|
-
│ │ │ │
|
|
614
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
615
|
-
│ const T = Type.Uint8Array() │ type T = Uint8Array │ const T = { │
|
|
616
|
-
│ │ │ type: 'Uint8Array' │
|
|
617
|
-
│ │ │ } │
|
|
618
|
-
│ │ │ │
|
|
619
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
620
|
-
│ const T = Type.Date() │ type T = Date │ const T = { │
|
|
621
|
-
│ │ │ type: 'Date' │
|
|
622
|
-
│ │ │ } │
|
|
623
|
-
│ │ │ │
|
|
624
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
625
|
-
│ const T = Type.Undefined() │ type T = undefined │ const T = { │
|
|
626
|
-
│ │ │ type: 'undefined' │
|
|
627
|
-
│ │ │ } │
|
|
628
|
-
│ │ │ │
|
|
629
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
630
|
-
│ const T = Type.Symbol() │ type T = symbol │ const T = { │
|
|
631
|
-
│ │ │ type: 'symbol' │
|
|
632
|
-
│ │ │ } │
|
|
633
|
-
│ │ │ │
|
|
634
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
635
|
-
│ const T = Type.BigInt() │ type T = bigint │ const T = { │
|
|
636
|
-
│ │ │ type: 'bigint' │
|
|
637
|
-
│ │ │ } │
|
|
638
|
-
│ │ │ │
|
|
639
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
640
|
-
│ const T = Type.Void() │ type T = void │ const T = { │
|
|
641
|
-
│ │ │ type: 'void' │
|
|
642
|
-
│ │ │ } │
|
|
643
|
-
│ │ │ │
|
|
644
|
-
└────────────────────────────────┴─────────────────────────────┴────────────────────────────────┘
|
|
645
|
-
```
|
|
646
|
-
|
|
647
|
-
<a name='types-options'></a>
|
|
648
|
-
|
|
649
|
-
### Options
|
|
650
|
-
|
|
651
|
-
You can pass Json Schema options on the last argument of any given type. Option hints specific to each type are provided for convenience.
|
|
652
|
-
|
|
653
|
-
```typescript
|
|
654
|
-
// String must be an email
|
|
655
|
-
const T = Type.String({ // const T = {
|
|
656
|
-
format: 'email' // type: 'string',
|
|
657
|
-
}) // format: 'email'
|
|
658
|
-
// }
|
|
659
|
-
|
|
660
|
-
// Number must be a multiple of 2
|
|
661
|
-
const T = Type.Number({ // const T = {
|
|
662
|
-
multipleOf: 2 // type: 'number',
|
|
663
|
-
}) // multipleOf: 2
|
|
664
|
-
// }
|
|
665
|
-
|
|
666
|
-
// Array must have at least 5 integer values
|
|
667
|
-
const T = Type.Array(Type.Integer(), { // const T = {
|
|
668
|
-
minItems: 5 // type: 'array',
|
|
669
|
-
}) // minItems: 5,
|
|
670
|
-
// items: {
|
|
671
|
-
// type: 'integer'
|
|
672
|
-
// }
|
|
673
|
-
// }
|
|
674
|
-
```
|
|
675
|
-
|
|
676
|
-
<a name='types-properties'></a>
|
|
677
|
-
|
|
678
|
-
### Properties
|
|
679
|
-
|
|
680
|
-
Object properties can be modified with Readonly and Optional. The following table shows how these modifiers map between TypeScript and Json Schema.
|
|
681
|
-
|
|
682
|
-
```typescript
|
|
683
|
-
┌────────────────────────────────┬─────────────────────────────┬────────────────────────────────┐
|
|
684
|
-
│ TypeBox │ TypeScript │ Json Schema │
|
|
685
|
-
│ │ │ │
|
|
686
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
687
|
-
│ const T = Type.Object({ │ type T = { │ const T = { │
|
|
688
|
-
│ name: Type.ReadonlyOptional( │ readonly name?: string │ type: 'object', │
|
|
689
|
-
│ Type.String() │ } │ properties: { │
|
|
690
|
-
│ ) │ │ name: { │
|
|
691
|
-
│ }) │ │ type: 'string' │
|
|
692
|
-
│ │ │ } │
|
|
693
|
-
│ │ │ } │
|
|
694
|
-
│ │ │ } │
|
|
695
|
-
│ │ │ │
|
|
696
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
697
|
-
│ const T = Type.Object({ │ type T = { │ const T = { │
|
|
698
|
-
│ name: Type.Readonly( │ readonly name: string │ type: 'object', │
|
|
699
|
-
│ Type.String() │ } │ properties: { │
|
|
700
|
-
│ ) │ │ name: { │
|
|
701
|
-
│ }) │ │ type: 'string' │
|
|
702
|
-
│ │ │ } │
|
|
703
|
-
│ │ │ }, │
|
|
704
|
-
│ │ │ required: ['name'] │
|
|
705
|
-
│ │ │ } │
|
|
706
|
-
│ │ │ │
|
|
707
|
-
├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
|
|
708
|
-
│ const T = Type.Object({ │ type T = { │ const T = { │
|
|
709
|
-
│ name: Type.Optional( │ name?: string │ type: 'object', │
|
|
710
|
-
│ Type.String() │ } │ properties: { │
|
|
711
|
-
│ ) │ │ name: { │
|
|
712
|
-
│ }) │ │ type: 'string' │
|
|
713
|
-
│ │ │ } │
|
|
714
|
-
│ │ │ } │
|
|
715
|
-
│ │ │ } │
|
|
716
|
-
│ │ │ │
|
|
717
|
-
└────────────────────────────────┴─────────────────────────────┴────────────────────────────────┘
|
|
718
|
-
```
|
|
719
|
-
|
|
720
|
-
<a name='types-generics'></a>
|
|
721
|
-
|
|
722
|
-
### Generic Types
|
|
723
|
-
|
|
724
|
-
Generic types can be created with generic functions.
|
|
725
|
-
|
|
726
|
-
```typescript
|
|
727
|
-
const Nullable = <T extends TSchema>(T: T) => { // type Nullable<T> = T | null
|
|
728
|
-
return Type.Union([T, Type.Null()])
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
const T = Nullable(Type.String()) // type T = Nullable<string>
|
|
732
|
-
```
|
|
733
|
-
|
|
734
|
-
<a name='types-recursive'></a>
|
|
735
|
-
|
|
736
|
-
### Recursive Types
|
|
737
|
-
|
|
738
|
-
Use the Recursive function to create recursive types.
|
|
739
|
-
|
|
740
|
-
```typescript
|
|
741
|
-
const Node = Type.Recursive(This => Type.Object({ // const Node = {
|
|
742
|
-
id: Type.String(), // $id: 'Node',
|
|
743
|
-
nodes: Type.Array(This) // type: 'object',
|
|
744
|
-
}), { $id: 'Node' }) // properties: {
|
|
745
|
-
// id: {
|
|
746
|
-
// type: 'string'
|
|
747
|
-
// },
|
|
748
|
-
// nodes: {
|
|
749
|
-
// type: 'array',
|
|
750
|
-
// items: {
|
|
751
|
-
// $ref: 'Node'
|
|
752
|
-
// }
|
|
753
|
-
// }
|
|
754
|
-
// },
|
|
755
|
-
// required: [
|
|
756
|
-
// 'id',
|
|
757
|
-
// 'nodes'
|
|
758
|
-
// ]
|
|
759
|
-
// }
|
|
760
|
-
|
|
761
|
-
type Node = Static<typeof Node> // type Node = {
|
|
762
|
-
// id: string
|
|
763
|
-
// nodes: Node[]
|
|
764
|
-
// }
|
|
765
|
-
|
|
766
|
-
function test(node: Node) {
|
|
767
|
-
const id = node.nodes[0].nodes[0].id // id is string
|
|
768
|
-
}
|
|
769
|
-
```
|
|
770
|
-
|
|
771
|
-
<a name='types-modules'></a>
|
|
772
|
-
|
|
773
|
-
### Module Types
|
|
774
|
-
|
|
775
|
-
Module types are containers for a set of referential types. Modules act as namespaces, enabling types to reference one another via string identifiers. Modules support both singular and mutually recursive references, as well as deferred dereferencing for computed types such as Partial. Types imported from a module are expressed using the Json Schema `$defs` keyword.
|
|
776
|
-
|
|
777
|
-
```typescript
|
|
778
|
-
const Module = Type.Module({
|
|
779
|
-
PartialUser: Type.Partial(Type.Ref('User')), // TComputed<'Partial', [TRef<'User'>]>
|
|
780
|
-
|
|
781
|
-
User: Type.Object({ // TObject<{
|
|
782
|
-
id: Type.String(), // user: TString,
|
|
783
|
-
name: Type.String(), // name: TString,
|
|
784
|
-
email: Type.String() // email: TString
|
|
785
|
-
}), // }>
|
|
786
|
-
})
|
|
787
|
-
const User = Module.Import('User') // const User: TImport<{...}, 'User'>
|
|
788
|
-
|
|
789
|
-
type User = Static<typeof User> // type User = {
|
|
790
|
-
// id: string,
|
|
791
|
-
// name: string,
|
|
792
|
-
// email: string
|
|
793
|
-
// }
|
|
794
|
-
|
|
795
|
-
const PartialUser = Module.Import('PartialUser') // const PartialUser: TImport<{...}, 'PartialUser'>
|
|
796
|
-
|
|
797
|
-
type PartialUser = Static<typeof PartialUser> // type PartialUser = {
|
|
798
|
-
// id?: string,
|
|
799
|
-
// name?: string,
|
|
800
|
-
// email?: string
|
|
801
|
-
// }
|
|
802
|
-
```
|
|
803
|
-
|
|
804
|
-
<a name='types-template-literal'></a>
|
|
805
|
-
|
|
806
|
-
### Template Literal Types
|
|
807
|
-
|
|
808
|
-
TypeBox supports template literal types with the TemplateLiteral function. This type can be created using a syntax similar to the TypeScript template literal syntax or composed from exterior types. TypeBox encodes template literals as regular expressions which enables the template to be checked by Json Schema validators. This type also supports regular expression parsing that enables template patterns to be used for generative types. The following shows both TypeScript and TypeBox usage.
|
|
809
|
-
|
|
810
|
-
```typescript
|
|
811
|
-
// TypeScript
|
|
812
|
-
|
|
813
|
-
type K = `prop${'A'|'B'|'C'}` // type T = 'propA' | 'propB' | 'propC'
|
|
814
|
-
|
|
815
|
-
type R = Record<K, string> // type R = {
|
|
816
|
-
// propA: string
|
|
817
|
-
// propB: string
|
|
818
|
-
// propC: string
|
|
819
|
-
// }
|
|
820
|
-
|
|
821
|
-
// TypeBox
|
|
822
|
-
|
|
823
|
-
const K = Type.TemplateLiteral('prop${A|B|C}') // const K: TTemplateLiteral<[
|
|
824
|
-
// TLiteral<'prop'>,
|
|
825
|
-
// TUnion<[
|
|
826
|
-
// TLiteral<'A'>,
|
|
827
|
-
// TLiteral<'B'>,
|
|
828
|
-
// TLiteral<'C'>,
|
|
829
|
-
// ]>
|
|
830
|
-
// ]>
|
|
831
|
-
|
|
832
|
-
const R = Type.Record(K, Type.String()) // const R: TObject<{
|
|
833
|
-
// propA: TString,
|
|
834
|
-
// propB: TString,
|
|
835
|
-
// propC: TString,
|
|
836
|
-
// }>
|
|
837
|
-
```
|
|
838
|
-
|
|
839
|
-
<a name='types-indexed'></a>
|
|
840
|
-
|
|
841
|
-
### Indexed Access Types
|
|
842
|
-
|
|
843
|
-
TypeBox supports indexed access types with the Index function. This function enables uniform access to interior property and element types without having to extract them from the underlying schema representation. Index types are supported for Object, Array, Tuple, Union and Intersect types.
|
|
844
|
-
|
|
845
|
-
```typescript
|
|
846
|
-
const T = Type.Object({ // type T = {
|
|
847
|
-
x: Type.Number(), // x: number,
|
|
848
|
-
y: Type.String(), // y: string,
|
|
849
|
-
z: Type.Boolean() // z: boolean
|
|
850
|
-
}) // }
|
|
851
|
-
|
|
852
|
-
const A = Type.Index(T, ['x']) // type A = T['x']
|
|
853
|
-
//
|
|
854
|
-
// ... evaluated as
|
|
855
|
-
//
|
|
856
|
-
// const A: TNumber
|
|
857
|
-
|
|
858
|
-
const B = Type.Index(T, ['x', 'y']) // type B = T['x' | 'y']
|
|
859
|
-
//
|
|
860
|
-
// ... evaluated as
|
|
861
|
-
//
|
|
862
|
-
// const B: TUnion<[
|
|
863
|
-
// TNumber,
|
|
864
|
-
// TString,
|
|
865
|
-
// ]>
|
|
866
|
-
|
|
867
|
-
const C = Type.Index(T, Type.KeyOf(T)) // type C = T[keyof T]
|
|
868
|
-
//
|
|
869
|
-
// ... evaluated as
|
|
870
|
-
//
|
|
871
|
-
// const C: TUnion<[
|
|
872
|
-
// TNumber,
|
|
873
|
-
// TString,
|
|
874
|
-
// TBoolean
|
|
875
|
-
// ]>
|
|
876
|
-
```
|
|
877
|
-
|
|
878
|
-
<a name='types-mapped'></a>
|
|
879
|
-
|
|
880
|
-
### Mapped Types
|
|
881
|
-
|
|
882
|
-
TypeBox supports mapped types with the Mapped function. This function accepts two arguments, the first is a union type typically derived from KeyOf, the second is a mapping function that receives a mapping key `K` that can be used to index properties of a type. The following implements a mapped type that remaps each property to be `T | null`.
|
|
883
|
-
|
|
884
|
-
```typescript
|
|
885
|
-
const T = Type.Object({ // type T = {
|
|
886
|
-
x: Type.Number(), // x: number,
|
|
887
|
-
y: Type.String(), // y: string,
|
|
888
|
-
z: Type.Boolean() // z: boolean
|
|
889
|
-
}) // }
|
|
890
|
-
|
|
891
|
-
const M = Type.Mapped(Type.KeyOf(T), K => { // type M = { [K in keyof T]: T[K] | null }
|
|
892
|
-
return Type.Union([Type.Index(T, K), Type.Null()]) //
|
|
893
|
-
}) // ... evaluated as
|
|
894
|
-
//
|
|
895
|
-
// const M: TObject<{
|
|
896
|
-
// x: TUnion<[TNumber, TNull]>,
|
|
897
|
-
// y: TUnion<[TString, TNull]>,
|
|
898
|
-
// z: TUnion<[TBoolean, TNull]>
|
|
899
|
-
// }>
|
|
900
|
-
```
|
|
901
|
-
|
|
902
|
-
<a name='types-conditional'></a>
|
|
903
|
-
|
|
904
|
-
### Conditional Types
|
|
905
|
-
|
|
906
|
-
TypeBox supports runtime conditional types with the Extends function. This function performs a structural assignability check against the first (`left`) and second (`right`) arguments and will return either the third (`true`) or fourth (`false`) argument based on the result. The conditional types Exclude and Extract are also supported. The following shows both TypeScript and TypeBox examples of conditional types.
|
|
907
|
-
|
|
908
|
-
```typescript
|
|
909
|
-
// Extends
|
|
910
|
-
const A = Type.Extends( // type A = string extends number ? 1 : 2
|
|
911
|
-
Type.String(), //
|
|
912
|
-
Type.Number(), // ... evaluated as
|
|
913
|
-
Type.Literal(1), //
|
|
914
|
-
Type.Literal(2) // const A: TLiteral<2>
|
|
915
|
-
)
|
|
916
|
-
|
|
917
|
-
// Extract
|
|
918
|
-
const B = Type.Extract( // type B = Extract<1 | 2 | 3, 1>
|
|
919
|
-
Type.Union([ //
|
|
920
|
-
Type.Literal(1), // ... evaluated as
|
|
921
|
-
Type.Literal(2), //
|
|
922
|
-
Type.Literal(3) // const B: TLiteral<1>
|
|
923
|
-
]),
|
|
924
|
-
Type.Literal(1)
|
|
925
|
-
)
|
|
926
|
-
|
|
927
|
-
// Exclude
|
|
928
|
-
const C = Type.Exclude( // type C = Exclude<1 | 2 | 3, 1>
|
|
929
|
-
Type.Union([ //
|
|
930
|
-
Type.Literal(1), // ... evaluated as
|
|
931
|
-
Type.Literal(2), //
|
|
932
|
-
Type.Literal(3) // const C: TUnion<[
|
|
933
|
-
]), // TLiteral<2>,
|
|
934
|
-
Type.Literal(1) // TLiteral<3>,
|
|
935
|
-
) // ]>
|
|
936
|
-
```
|
|
937
|
-
|
|
938
|
-
<a name='types-transform'></a>
|
|
939
|
-
|
|
940
|
-
### Transform Types
|
|
941
|
-
|
|
942
|
-
TypeBox supports value decoding and encoding with Transform types. These types work in tandem with the Encode and Decode functions available on the Value and TypeCompiler submodules. Transform types can be used to convert Json encoded values into constructs more natural to JavaScript. The following creates a Transform type to decode numbers into Dates using the Value submodule.
|
|
943
|
-
|
|
944
|
-
```typescript
|
|
945
|
-
import { Value } from '@sinclair/typebox/value'
|
|
946
|
-
|
|
947
|
-
const T = Type.Transform(Type.Number())
|
|
948
|
-
.Decode(value => new Date(value)) // decode: number to Date
|
|
949
|
-
.Encode(value => value.getTime()) // encode: Date to number
|
|
950
|
-
|
|
951
|
-
const D = Value.Decode(T, 0) // const D = Date(1970-01-01T00:00:00.000Z)
|
|
952
|
-
const E = Value.Encode(T, D) // const E = 0
|
|
953
|
-
```
|
|
954
|
-
Use the StaticEncode or StaticDecode types to infer a Transform type.
|
|
955
|
-
```typescript
|
|
956
|
-
import { Static, StaticDecode, StaticEncode } from '@sinclair/typebox'
|
|
957
|
-
|
|
958
|
-
const T = Type.Transform(Type.Array(Type.Number(), { uniqueItems: true }))
|
|
959
|
-
.Decode(value => new Set(value))
|
|
960
|
-
.Encode(value => [...value])
|
|
961
|
-
|
|
962
|
-
type D = StaticDecode<typeof T> // type D = Set<number>
|
|
963
|
-
type E = StaticEncode<typeof T> // type E = Array<number>
|
|
964
|
-
type T = Static<typeof T> // type T = Array<number>
|
|
965
|
-
```
|
|
966
|
-
|
|
967
|
-
<a name='types-unsafe'></a>
|
|
968
|
-
|
|
969
|
-
### Unsafe Types
|
|
970
|
-
|
|
971
|
-
TypeBox supports user defined types with Unsafe. This type allows you to specify both schema representation and inference type. The following creates an Unsafe type with a number schema that infers as string.
|
|
972
|
-
|
|
973
|
-
```typescript
|
|
974
|
-
const T = Type.Unsafe<string>({ type: 'number' }) // const T = { type: 'number' }
|
|
975
|
-
|
|
976
|
-
type T = Static<typeof T> // type T = string - ?
|
|
977
|
-
```
|
|
978
|
-
The Unsafe type is often used to create schematics for extended specifications like OpenAPI.
|
|
979
|
-
```typescript
|
|
980
|
-
|
|
981
|
-
const Nullable = <T extends TSchema>(schema: T) => Type.Unsafe<Static<T> | null>({
|
|
982
|
-
...schema, nullable: true
|
|
983
|
-
})
|
|
984
|
-
|
|
985
|
-
const T = Nullable(Type.String()) // const T = {
|
|
986
|
-
// type: 'string',
|
|
987
|
-
// nullable: true
|
|
988
|
-
// }
|
|
989
|
-
|
|
990
|
-
type T = Static<typeof T> // type T = string | null
|
|
991
|
-
|
|
992
|
-
const StringEnum = <T extends string[]>(values: [...T]) => Type.Unsafe<T[number]>({
|
|
993
|
-
type: 'string', enum: values
|
|
994
|
-
})
|
|
995
|
-
const S = StringEnum(['A', 'B', 'C']) // const S = {
|
|
996
|
-
// enum: ['A', 'B', 'C']
|
|
997
|
-
// }
|
|
998
|
-
|
|
999
|
-
type S = Static<typeof T> // type S = 'A' | 'B' | 'C'
|
|
1000
|
-
```
|
|
1001
|
-
<a name='types-guard'></a>
|
|
1002
|
-
|
|
1003
|
-
### TypeGuard
|
|
1004
|
-
|
|
1005
|
-
TypeBox can check its own types with the TypeGuard module. This module is written for type introspection and provides structural tests for every built-in TypeBox type. Functions of this module return `is` guards which can be used with control flow assertions to obtain schema inference for unknown values. The following guards that the value `T` is TString.
|
|
1006
|
-
|
|
1007
|
-
```typescript
|
|
1008
|
-
import { TypeGuard, Kind } from '@sinclair/typebox'
|
|
1009
|
-
|
|
1010
|
-
const T = { [Kind]: 'String', type: 'string' }
|
|
1011
|
-
|
|
1012
|
-
if(TypeGuard.IsString(T)) {
|
|
1013
|
-
|
|
1014
|
-
// T is TString
|
|
1015
|
-
}
|
|
1016
|
-
```
|
|
1017
|
-
|
|
1018
|
-
<a name='values'></a>
|
|
1019
|
-
|
|
1020
|
-
## Values
|
|
1021
|
-
|
|
1022
|
-
TypeBox provides an optional Value submodule that can be used to perform structural operations on JavaScript values. This submodule includes functionality to create, check and cast values from types as well as check equality, clone, diff and patch JavaScript values. This submodule is provided via optional import.
|
|
1023
|
-
|
|
1024
|
-
```typescript
|
|
1025
|
-
import { Value } from '@sinclair/typebox/value'
|
|
1026
|
-
```
|
|
1027
|
-
|
|
1028
|
-
<a name='values-assert'></a>
|
|
1029
|
-
|
|
1030
|
-
### Assert
|
|
1031
|
-
|
|
1032
|
-
Use the Assert function to assert a value is valid.
|
|
1033
|
-
|
|
1034
|
-
```typescript
|
|
1035
|
-
let value: unknown = 1
|
|
1036
|
-
|
|
1037
|
-
Value.Assert(Type.Number(), value) // throws AssertError if invalid
|
|
1038
|
-
```
|
|
1039
|
-
|
|
1040
|
-
<a name='values-create'></a>
|
|
1041
|
-
|
|
1042
|
-
### Create
|
|
1043
|
-
|
|
1044
|
-
Use the Create function to create a value from a type. TypeBox will use default values if specified.
|
|
1045
|
-
|
|
1046
|
-
```typescript
|
|
1047
|
-
const T = Type.Object({ x: Type.Number(), y: Type.Number({ default: 42 }) })
|
|
1048
|
-
|
|
1049
|
-
const A = Value.Create(T) // const A = { x: 0, y: 42 }
|
|
1050
|
-
```
|
|
1051
|
-
|
|
1052
|
-
<a name='values-clone'></a>
|
|
1053
|
-
|
|
1054
|
-
### Clone
|
|
1055
|
-
|
|
1056
|
-
Use the Clone function to deeply clone a value.
|
|
1057
|
-
|
|
1058
|
-
```typescript
|
|
1059
|
-
const A = Value.Clone({ x: 1, y: 2, z: 3 }) // const A = { x: 1, y: 2, z: 3 }
|
|
1060
|
-
```
|
|
1061
|
-
|
|
1062
|
-
<a name='values-check'></a>
|
|
1063
|
-
|
|
1064
|
-
### Check
|
|
1065
|
-
|
|
1066
|
-
Use the Check function to type check a value.
|
|
1067
|
-
|
|
1068
|
-
```typescript
|
|
1069
|
-
const T = Type.Object({ x: Type.Number() })
|
|
1070
|
-
|
|
1071
|
-
const R = Value.Check(T, { x: 1 }) // const R = true
|
|
1072
|
-
```
|
|
1073
|
-
|
|
1074
|
-
<a name='values-convert'></a>
|
|
1075
|
-
|
|
1076
|
-
### Convert
|
|
1077
|
-
|
|
1078
|
-
Use the Convert function to convert a value into its target type if a reasonable conversion is possible. This function may return an invalid value and should be checked before use. Its return type is `unknown`.
|
|
1079
|
-
|
|
1080
|
-
```typescript
|
|
1081
|
-
const T = Type.Object({ x: Type.Number() })
|
|
1082
|
-
|
|
1083
|
-
const R1 = Value.Convert(T, { x: '3.14' }) // const R1 = { x: 3.14 }
|
|
1084
|
-
|
|
1085
|
-
const R2 = Value.Convert(T, { x: 'not a number' }) // const R2 = { x: 'not a number' }
|
|
1086
|
-
```
|
|
1087
|
-
|
|
1088
|
-
<a name='values-clean'></a>
|
|
1089
|
-
|
|
1090
|
-
### Clean
|
|
1091
|
-
|
|
1092
|
-
Use Clean to remove excess properties from a value. This function does not check the value and returns an unknown type. You should Check the result before use. Clean is a mutable operation. To avoid mutation, Clone the value first.
|
|
1093
|
-
|
|
1094
|
-
```typescript
|
|
1095
|
-
const T = Type.Object({
|
|
1096
|
-
x: Type.Number(),
|
|
1097
|
-
y: Type.Number()
|
|
1098
|
-
})
|
|
1099
|
-
|
|
1100
|
-
const X = Value.Clean(T, null) // const 'X = null
|
|
1101
|
-
|
|
1102
|
-
const Y = Value.Clean(T, { x: 1 }) // const 'Y = { x: 1 }
|
|
1103
|
-
|
|
1104
|
-
const Z = Value.Clean(T, { x: 1, y: 2, z: 3 }) // const 'Z = { x: 1, y: 2 }
|
|
1105
|
-
```
|
|
1106
|
-
|
|
1107
|
-
<a name='values-default'></a>
|
|
1108
|
-
|
|
1109
|
-
### Default
|
|
1110
|
-
|
|
1111
|
-
Use Default to generate missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first.
|
|
1112
|
-
|
|
1113
|
-
```typescript
|
|
1114
|
-
const T = Type.Object({
|
|
1115
|
-
x: Type.Number({ default: 0 }),
|
|
1116
|
-
y: Type.Number({ default: 0 })
|
|
1117
|
-
})
|
|
1118
|
-
|
|
1119
|
-
const X = Value.Default(T, null) // const 'X = null - non-enumerable
|
|
1120
|
-
|
|
1121
|
-
const Y = Value.Default(T, { }) // const 'Y = { x: 0, y: 0 }
|
|
1122
|
-
|
|
1123
|
-
const Z = Value.Default(T, { x: 1 }) // const 'Z = { x: 1, y: 0 }
|
|
1124
|
-
```
|
|
1125
|
-
|
|
1126
|
-
<a name='values-cast'></a>
|
|
1127
|
-
|
|
1128
|
-
### Cast
|
|
1129
|
-
|
|
1130
|
-
Use the Cast function to upcast a value into a target type. This function will retain as much information as possible from the original value. The Cast function is intended to be used in data migration scenarios where existing values need to be upgraded to match a modified type.
|
|
1131
|
-
|
|
1132
|
-
```typescript
|
|
1133
|
-
const T = Type.Object({ x: Type.Number(), y: Type.Number() }, { additionalProperties: false })
|
|
1134
|
-
|
|
1135
|
-
const X = Value.Cast(T, null) // const X = { x: 0, y: 0 }
|
|
1136
|
-
|
|
1137
|
-
const Y = Value.Cast(T, { x: 1 }) // const Y = { x: 1, y: 0 }
|
|
1138
|
-
|
|
1139
|
-
const Z = Value.Cast(T, { x: 1, y: 2, z: 3 }) // const Z = { x: 1, y: 2 }
|
|
1140
|
-
```
|
|
1141
|
-
|
|
1142
|
-
<a name='values-decode'></a>
|
|
1143
|
-
|
|
1144
|
-
### Decode
|
|
1145
|
-
|
|
1146
|
-
Use the Decode function to decode a value from a type or throw if the value is invalid. The return value will infer as the decoded type. This function will run Transform codecs if available.
|
|
1147
|
-
|
|
1148
|
-
```typescript
|
|
1149
|
-
const A = Value.Decode(Type.String(), 'hello') // const A = 'hello'
|
|
1150
|
-
|
|
1151
|
-
const B = Value.Decode(Type.String(), 42) // throw
|
|
1152
|
-
```
|
|
1153
|
-
<a name='values-decode'></a>
|
|
1154
|
-
|
|
1155
|
-
### Encode
|
|
1156
|
-
|
|
1157
|
-
Use the Encode function to encode a value to a type or throw if the value is invalid. The return value will infer as the encoded type. This function will run Transform codecs if available.
|
|
1158
|
-
|
|
1159
|
-
```typescript
|
|
1160
|
-
const A = Value.Encode(Type.String(), 'hello') // const A = 'hello'
|
|
1161
|
-
|
|
1162
|
-
const B = Value.Encode(Type.String(), 42) // throw
|
|
1163
|
-
```
|
|
1164
|
-
|
|
1165
|
-
<a name='values-parse'></a>
|
|
1166
|
-
|
|
1167
|
-
### Parse
|
|
1168
|
-
|
|
1169
|
-
Use the Parse function to parse a value. This function calls the `Clone` `Clean`, `Default`, `Convert`, `Assert` and `Decode` Value functions in this exact order to process a value.
|
|
1170
|
-
|
|
1171
|
-
```typescript
|
|
1172
|
-
const R = Value.Parse(Type.String(), 'hello') // const R: string = "hello"
|
|
1173
|
-
|
|
1174
|
-
const E = Value.Parse(Type.String(), undefined) // throws AssertError
|
|
1175
|
-
```
|
|
1176
|
-
|
|
1177
|
-
You can override the order in which functions are run, or omit functions entirely using the following.
|
|
1178
|
-
|
|
1179
|
-
```typescript
|
|
1180
|
-
// Runs no functions.
|
|
1181
|
-
|
|
1182
|
-
const R = Value.Parse([], Type.String(), 12345)
|
|
1183
|
-
|
|
1184
|
-
// Runs the Assert() function.
|
|
1185
|
-
|
|
1186
|
-
const E = Value.Parse(['Assert'], Type.String(), 12345)
|
|
1187
|
-
|
|
1188
|
-
// Runs the Convert() function followed by the Assert() function.
|
|
1189
|
-
|
|
1190
|
-
const S = Value.Parse(['Convert', 'Assert'], Type.String(), 12345)
|
|
1191
|
-
```
|
|
1192
|
-
|
|
1193
|
-
<a name='values-equal'></a>
|
|
1194
|
-
|
|
1195
|
-
### Equal
|
|
1196
|
-
|
|
1197
|
-
Use the Equal function to deeply check for value equality.
|
|
1198
|
-
|
|
1199
|
-
```typescript
|
|
1200
|
-
const R = Value.Equal( // const R = true
|
|
1201
|
-
{ x: 1, y: 2, z: 3 },
|
|
1202
|
-
{ x: 1, y: 2, z: 3 }
|
|
1203
|
-
)
|
|
1204
|
-
```
|
|
1205
|
-
|
|
1206
|
-
<a name='values-hash'></a>
|
|
1207
|
-
|
|
1208
|
-
### Hash
|
|
1209
|
-
|
|
1210
|
-
Use the Hash function to create a [FNV1A-64](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function) non-cryptographic hash of a value.
|
|
1211
|
-
|
|
1212
|
-
```typescript
|
|
1213
|
-
const A = Value.Hash({ x: 1, y: 2, z: 3 }) // const A = 2910466848807138541n
|
|
1214
|
-
|
|
1215
|
-
const B = Value.Hash({ x: 1, y: 4, z: 3 }) // const B = 1418369778807423581n
|
|
1216
|
-
```
|
|
1217
|
-
|
|
1218
|
-
<a name='values-diff'></a>
|
|
1219
|
-
|
|
1220
|
-
### Diff
|
|
1221
|
-
|
|
1222
|
-
Use the Diff function to generate a sequence of edits that will transform one value into another.
|
|
1223
|
-
|
|
1224
|
-
```typescript
|
|
1225
|
-
const E = Value.Diff( // const E = [
|
|
1226
|
-
{ x: 1, y: 2, z: 3 }, // { type: 'update', path: '/y', value: 4 },
|
|
1227
|
-
{ y: 4, z: 5, w: 6 } // { type: 'update', path: '/z', value: 5 },
|
|
1228
|
-
) // { type: 'insert', path: '/w', value: 6 },
|
|
1229
|
-
// { type: 'delete', path: '/x' }
|
|
1230
|
-
// ]
|
|
1231
|
-
```
|
|
1232
|
-
|
|
1233
|
-
<a name='values-patch'></a>
|
|
1234
|
-
|
|
1235
|
-
### Patch
|
|
1236
|
-
|
|
1237
|
-
Use the Patch function to apply a sequence of edits.
|
|
1238
|
-
|
|
1239
|
-
```typescript
|
|
1240
|
-
const A = { x: 1, y: 2 }
|
|
1241
|
-
|
|
1242
|
-
const B = { x: 3 }
|
|
1243
|
-
|
|
1244
|
-
const E = Value.Diff(A, B) // const E = [
|
|
1245
|
-
// { type: 'update', path: '/x', value: 3 },
|
|
1246
|
-
// { type: 'delete', path: '/y' }
|
|
1247
|
-
// ]
|
|
1248
|
-
|
|
1249
|
-
const C = Value.Patch<typeof B>(A, E) // const C = { x: 3 }
|
|
1250
|
-
```
|
|
1251
|
-
|
|
1252
|
-
<a name='values-errors'></a>
|
|
1253
|
-
|
|
1254
|
-
### Errors
|
|
1255
|
-
|
|
1256
|
-
Use the Errors function to enumerate validation errors.
|
|
1257
|
-
|
|
1258
|
-
```typescript
|
|
1259
|
-
const T = Type.Object({ x: Type.Number(), y: Type.Number() })
|
|
1260
|
-
|
|
1261
|
-
const R = [...Value.Errors(T, { x: '42' })] // const R = [{
|
|
1262
|
-
// schema: { type: 'number' },
|
|
1263
|
-
// path: '/x',
|
|
1264
|
-
// value: '42',
|
|
1265
|
-
// message: 'Expected number'
|
|
1266
|
-
// }, {
|
|
1267
|
-
// schema: { type: 'number' },
|
|
1268
|
-
// path: '/y',
|
|
1269
|
-
// value: undefined,
|
|
1270
|
-
// message: 'Expected number'
|
|
1271
|
-
// }]
|
|
1272
|
-
```
|
|
1273
|
-
|
|
1274
|
-
<a name='values-mutate'></a>
|
|
1275
|
-
|
|
1276
|
-
### Mutate
|
|
1277
|
-
|
|
1278
|
-
Use the Mutate function to perform a deep mutable value assignment while retaining internal references.
|
|
1279
|
-
|
|
1280
|
-
```typescript
|
|
1281
|
-
const Y = { z: 1 } // const Y = { z: 1 }
|
|
1282
|
-
const X = { y: Y } // const X = { y: { z: 1 } }
|
|
1283
|
-
const A = { x: X } // const A = { x: { y: { z: 1 } } }
|
|
1284
|
-
|
|
1285
|
-
Value.Mutate(A, { x: { y: { z: 2 } } }) // A' = { x: { y: { z: 2 } } }
|
|
1286
|
-
|
|
1287
|
-
const R0 = A.x.y.z === 2 // const R0 = true
|
|
1288
|
-
const R1 = A.x.y === Y // const R1 = true
|
|
1289
|
-
const R2 = A.x === X // const R2 = true
|
|
1290
|
-
```
|
|
1291
|
-
|
|
1292
|
-
<a name='values-pointer'></a>
|
|
1293
|
-
|
|
1294
|
-
### Pointer
|
|
1295
|
-
|
|
1296
|
-
Use ValuePointer to perform mutable updates on existing values using [RFC6901](https://www.rfc-editor.org/rfc/rfc6901) Json Pointers.
|
|
1297
|
-
|
|
1298
|
-
```typescript
|
|
1299
|
-
import { ValuePointer } from '@sinclair/typebox/value'
|
|
1300
|
-
|
|
1301
|
-
const A = { x: 0, y: 0, z: 0 }
|
|
1302
|
-
|
|
1303
|
-
ValuePointer.Set(A, '/x', 1) // A' = { x: 1, y: 0, z: 0 }
|
|
1304
|
-
ValuePointer.Set(A, '/y', 1) // A' = { x: 1, y: 1, z: 0 }
|
|
1305
|
-
ValuePointer.Set(A, '/z', 1) // A' = { x: 1, y: 1, z: 1 }
|
|
1306
|
-
```
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
<a name='syntax'></a>
|
|
1311
|
-
|
|
1312
|
-
## Syntax Types
|
|
1313
|
-
|
|
1314
|
-
TypeBox provides experimental support for parsing TypeScript annotation syntax into TypeBox types.
|
|
1315
|
-
|
|
1316
|
-
This feature is provided via optional import.
|
|
1317
|
-
|
|
1318
|
-
```typescript
|
|
1319
|
-
import { Syntax } from '@sinclair/typebox/syntax'
|
|
1320
|
-
```
|
|
1321
|
-
|
|
1322
|
-
<a name='syntax-create'></a>
|
|
1323
|
-
|
|
1324
|
-
### Create
|
|
1325
|
-
|
|
1326
|
-
Use the Syntax function to create TypeBox types from TypeScript syntax ([Example](https://www.typescriptlang.org/play/?moduleResolution=99&module=199&ts=5.8.0-beta#code/JYWwDg9gTgLgBAbzgZQJ4DsYEMAecC+cAZlBCHAOQACAzsOgMYA2WwUA9DKmAKYBGEHOxoZsOCgChQkWIhTYYwBgWKly1OoxZtO3foMkSGEdDXgAVOAF4Uo3AAoABkhwAuOOgCuIPjygAaOFR3Lx8-AkcASjgY2Jj2djhjUwt3cwB5PgArHgYYAB4ECTiS0rLyisrYhNi3OHMAOW9fAOKq9o7OuBqY4PqmsKg2rpHR+MT8AD4JCS5eeut5LEUGfLmeCCJ6ybHKmvWFmyLdk86euDrQlv9h07uy876rv1v7t-GCIA))
|
|
1327
|
-
|
|
1328
|
-
```typescript
|
|
1329
|
-
const T = Syntax(`{ x: number, y: number }`) // const T: TObject<{
|
|
1330
|
-
// x: TNumber,
|
|
1331
|
-
// y: TNumber
|
|
1332
|
-
// }>
|
|
1333
|
-
|
|
1334
|
-
type T = Static<typeof T> // type T = {
|
|
1335
|
-
// x: number,
|
|
1336
|
-
// y: number
|
|
1337
|
-
// }
|
|
1338
|
-
```
|
|
1339
|
-
|
|
1340
|
-
<a name="syntax-parameters"></a>
|
|
1341
|
-
|
|
1342
|
-
### Parameters
|
|
1343
|
-
|
|
1344
|
-
Syntax types can be parameterized to receive exterior types ([Example](https://www.typescriptlang.org/play/?moduleResolution=99&module=199&ts=5.8.0-beta#code/JYWwDg9gTgLgBAbzgZQJ4DsYEMAecC+cAZlBCHAOQACAzsOgMYA2WwUA9DKmAKYBGEHOxoZsOCgCgJDCOhrwAKnAC8KUbgAUAAyQ4AXHHQBXEHx5QANHFQHjp8wS0BKOK7ev27ODLmKDCgHk+ACseBhgAHgQJd1i4+ITEpLdPN304BQA5EzNLGOSCwqK4VNcbDOz7KHzi2rqPL3wAPikfeRQVNUxNJCV8Ky0ABSxYYCwmCIUm52LUtvhkfyDQ8Kia+o2C0rh0wLAYYFlxycrcpot1zav47fK9g6OJrJzzFuv3m8amoA))
|
|
1345
|
-
|
|
1346
|
-
```typescript
|
|
1347
|
-
const T = Syntax(`{ x: number, y: number }`) // const T: TObject<{
|
|
1348
|
-
// x: TNumber,
|
|
1349
|
-
// y: TNumber
|
|
1350
|
-
// }>
|
|
1351
|
-
|
|
1352
|
-
const S = Syntax({ T }, `Partial<T>`) // const S: TObject<{
|
|
1353
|
-
// x: TOptional<TNumber>,
|
|
1354
|
-
// y: TOptional<TNumber>
|
|
1355
|
-
// }>
|
|
1356
|
-
```
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
<a name="syntax-generics"></a>
|
|
1361
|
-
|
|
1362
|
-
### Generics
|
|
1363
|
-
|
|
1364
|
-
Syntax types support generic parameters in the following way ([Example](https://www.typescriptlang.org/play/?moduleResolution=99&module=199&ts=5.8.0-beta#code/JYWwDg9gTgLgBAbzgZQJ4DsYEMAecC+cAZlBCHAOQACAzsOgMYA2WwUA9DKmAKYBGEHOxoZsOCgChQkWIhTYYwBgWKly1OoxZtO3foMkSGEdDXgA1HgxjQ4AXhSjcACgAGAHgAaAGjgBNXwAtAD45CTg4HAAuOB84cLhUGID4iIAvGMD4-FcASgkjEzM4ACEsOhpLa2gae0dMFyQqmygCX1cEBOi4Zuh3AEZfAAZh4O8EpJ6rFvcRuEG4IbGEjKnqqFnh337lnPyJLl5S8uBK6Zq65AUld0OeCCJjit6oGlCIiPZ2ODun05fag5Oh8QaCweCIZCoV8Pt0kN0FpM5qshm0ElCMZisSCYRFJvCYnNJgsUWjseSKeDcXBVgTFr4kb5Vv0COjKezsTD8EA))
|
|
1365
|
-
|
|
1366
|
-
```typescript
|
|
1367
|
-
const Vector = Syntax(`<X, Y, Z> {
|
|
1368
|
-
x: X,
|
|
1369
|
-
y: Y,
|
|
1370
|
-
z: Z
|
|
1371
|
-
}`)
|
|
1372
|
-
|
|
1373
|
-
const BasisVectors = Syntax({ Vector }, `{
|
|
1374
|
-
x: Vector<1, 0, 0>,
|
|
1375
|
-
y: Vector<0, 1, 0>,
|
|
1376
|
-
z: Vector<0, 0, 1>,
|
|
1377
|
-
}`)
|
|
1378
|
-
|
|
1379
|
-
type BasisVectors = Static<typeof BasisVectors> // type BasisVectors = {
|
|
1380
|
-
// x: { x: 1, y: 0, z: 0 },
|
|
1381
|
-
// y: { x: 0, y: 1, z: 0 },
|
|
1382
|
-
// z: { x: 0, y: 0, z: 1 }
|
|
1383
|
-
// }
|
|
1384
|
-
```
|
|
1385
|
-
|
|
1386
|
-
<a name='syntax-options'></a>
|
|
1387
|
-
|
|
1388
|
-
### Options
|
|
1389
|
-
|
|
1390
|
-
Options can be passed via the last parameter.
|
|
1391
|
-
|
|
1392
|
-
```typescript
|
|
1393
|
-
const T = Syntax(`number`, { minimum: 42 }) // const T = {
|
|
1394
|
-
// type: 'number',
|
|
1395
|
-
// minimum: 42
|
|
1396
|
-
// }
|
|
1397
|
-
```
|
|
1398
|
-
|
|
1399
|
-
<a name='syntax-no-infer'></a>
|
|
1400
|
-
|
|
1401
|
-
### NoInfer
|
|
1402
|
-
|
|
1403
|
-
Syntax parsing is an expensive type level operation and can impact on language service performance. Use the NoInfer function parse syntax at runtime only.
|
|
1404
|
-
|
|
1405
|
-
```typescript
|
|
1406
|
-
import { NoInfer } from '@sinclair/typebox/syntax'
|
|
1407
|
-
|
|
1408
|
-
const T = NoInfer(`number | string`) // const T: TSchema = {
|
|
1409
|
-
// anyOf: [
|
|
1410
|
-
// { type: 'number' },
|
|
1411
|
-
// { type: 'string' }
|
|
1412
|
-
// ]
|
|
1413
|
-
// }
|
|
1414
|
-
```
|
|
1415
|
-
|
|
1416
|
-
<a name='typeregistry'></a>
|
|
1417
|
-
|
|
1418
|
-
## TypeRegistry
|
|
1419
|
-
|
|
1420
|
-
The TypeBox type system can be extended with additional types and formats using the TypeRegistry and FormatRegistry modules. These modules integrate deeply with TypeBox's internal type checking infrastructure and can be used to create application specific types, or register schematics for alternative specifications.
|
|
1421
|
-
|
|
1422
|
-
<a name='typeregistry-type'></a>
|
|
1423
|
-
|
|
1424
|
-
### TypeRegistry
|
|
1425
|
-
|
|
1426
|
-
Use the TypeRegistry to register a type. The Kind must match the registered type name.
|
|
1427
|
-
|
|
1428
|
-
```typescript
|
|
1429
|
-
import { TSchema, Kind, TypeRegistry } from '@sinclair/typebox'
|
|
1430
|
-
|
|
1431
|
-
TypeRegistry.Set('Foo', (schema, value) => value === 'foo')
|
|
1432
|
-
|
|
1433
|
-
const Foo = { [Kind]: 'Foo' } as TSchema
|
|
1434
|
-
|
|
1435
|
-
const A = Value.Check(Foo, 'foo') // const A = true
|
|
1436
|
-
|
|
1437
|
-
const B = Value.Check(Foo, 'bar') // const B = false
|
|
1438
|
-
```
|
|
1439
|
-
|
|
1440
|
-
<a name='typeregistry-format'></a>
|
|
1441
|
-
|
|
1442
|
-
### FormatRegistry
|
|
1443
|
-
|
|
1444
|
-
Use the FormatRegistry to register a string format.
|
|
1445
|
-
|
|
1446
|
-
```typescript
|
|
1447
|
-
import { FormatRegistry } from '@sinclair/typebox'
|
|
1448
|
-
|
|
1449
|
-
FormatRegistry.Set('foo', (value) => value === 'foo')
|
|
1450
|
-
|
|
1451
|
-
const T = Type.String({ format: 'foo' })
|
|
1452
|
-
|
|
1453
|
-
const A = Value.Check(T, 'foo') // const A = true
|
|
1454
|
-
|
|
1455
|
-
const B = Value.Check(T, 'bar') // const B = false
|
|
1456
|
-
```
|
|
1457
|
-
|
|
1458
|
-
<a name='typecheck'></a>
|
|
1459
|
-
|
|
1460
|
-
## TypeCheck
|
|
1461
|
-
|
|
1462
|
-
TypeBox types target Json Schema Draft 7 and are compatible with any validator that supports this specification. TypeBox also provides a built-in type checking compiler designed specifically for TypeBox types that offers high performance compilation and value checking.
|
|
1463
|
-
|
|
1464
|
-
The following sections detail using Ajv and the TypeBox compiler infrastructure.
|
|
1465
|
-
|
|
1466
|
-
<a name='typecheck-ajv'></a>
|
|
1467
|
-
|
|
1468
|
-
## Ajv
|
|
1469
|
-
|
|
1470
|
-
The following shows the recommended setup for Ajv.
|
|
1471
|
-
|
|
1472
|
-
```bash
|
|
1473
|
-
$ npm install ajv ajv-formats --save
|
|
1474
|
-
```
|
|
1475
|
-
|
|
1476
|
-
```typescript
|
|
1477
|
-
import { Type } from '@sinclair/typebox'
|
|
1478
|
-
import addFormats from 'ajv-formats'
|
|
1479
|
-
import Ajv from 'ajv'
|
|
1480
|
-
|
|
1481
|
-
const ajv = addFormats(new Ajv({}), [
|
|
1482
|
-
'date-time',
|
|
1483
|
-
'time',
|
|
1484
|
-
'date',
|
|
1485
|
-
'email',
|
|
1486
|
-
'hostname',
|
|
1487
|
-
'ipv4',
|
|
1488
|
-
'ipv6',
|
|
1489
|
-
'uri',
|
|
1490
|
-
'uri-reference',
|
|
1491
|
-
'uuid',
|
|
1492
|
-
'uri-template',
|
|
1493
|
-
'json-pointer',
|
|
1494
|
-
'relative-json-pointer',
|
|
1495
|
-
'regex'
|
|
1496
|
-
])
|
|
1497
|
-
|
|
1498
|
-
const validate = ajv.compile(Type.Object({
|
|
1499
|
-
x: Type.Number(),
|
|
1500
|
-
y: Type.Number(),
|
|
1501
|
-
z: Type.Number()
|
|
1502
|
-
}))
|
|
1503
|
-
|
|
1504
|
-
const R = validate({ x: 1, y: 2, z: 3 }) // const R = true
|
|
1505
|
-
```
|
|
1506
|
-
|
|
1507
|
-
<a name='typecheck-typecompiler'></a>
|
|
1508
|
-
|
|
1509
|
-
### TypeCompiler
|
|
1510
|
-
|
|
1511
|
-
The TypeBox TypeCompiler is a high performance JIT validation compiler that transforms TypeBox types into optimized JavaScript validation routines. The compiler is tuned for fast compilation as well as fast value assertion. It is built to serve as a validation backend that can be integrated into larger applications. It can also be used for code generation.
|
|
1512
|
-
|
|
1513
|
-
The TypeCompiler is provided as an optional import.
|
|
1514
|
-
|
|
1515
|
-
```typescript
|
|
1516
|
-
import { TypeCompiler } from '@sinclair/typebox/compiler'
|
|
1517
|
-
```
|
|
1518
|
-
|
|
1519
|
-
Use the Compile function to JIT compile a type. Note that compilation is generally an expensive operation and should only be performed once per type during application start up. TypeBox does not cache previously compiled types, and applications are expected to hold references to each compiled type for the lifetime of the application.
|
|
1520
|
-
|
|
1521
|
-
```typescript
|
|
1522
|
-
const C = TypeCompiler.Compile(Type.Object({ // const C: TypeCheck<TObject<{
|
|
1523
|
-
x: Type.Number(), // x: TNumber;
|
|
1524
|
-
y: Type.Number(), // y: TNumber;
|
|
1525
|
-
z: Type.Number() // z: TNumber;
|
|
1526
|
-
})) // }>>
|
|
1527
|
-
|
|
1528
|
-
const R = C.Check({ x: 1, y: 2, z: 3 }) // const R = true
|
|
1529
|
-
```
|
|
1530
|
-
|
|
1531
|
-
Use the Errors function to generate diagnostic errors for a value. The Errors function will return an iterator that when enumerated; will perform an exhaustive check across the entire value yielding any error found. For performance, this function should only be called after a failed Check. Applications may also choose to yield only the first value to avoid exhaustive error generation.
|
|
1532
|
-
|
|
1533
|
-
```typescript
|
|
1534
|
-
const C = TypeCompiler.Compile(Type.Object({ // const C: TypeCheck<TObject<{
|
|
1535
|
-
x: Type.Number(), // x: TNumber;
|
|
1536
|
-
y: Type.Number(), // y: TNumber;
|
|
1537
|
-
z: Type.Number() // z: TNumber;
|
|
1538
|
-
})) // }>>
|
|
1539
|
-
|
|
1540
|
-
const value = { }
|
|
1541
|
-
|
|
1542
|
-
const first = C.Errors(value).First() // const first = {
|
|
1543
|
-
// schema: { type: 'number' },
|
|
1544
|
-
// path: '/x',
|
|
1545
|
-
// value: undefined,
|
|
1546
|
-
// message: 'Expected number'
|
|
1547
|
-
// }
|
|
1548
|
-
|
|
1549
|
-
const all = [...C.Errors(value)] // const all = [{
|
|
1550
|
-
// schema: { type: 'number' },
|
|
1551
|
-
// path: '/x',
|
|
1552
|
-
// value: undefined,
|
|
1553
|
-
// message: 'Expected number'
|
|
1554
|
-
// }, {
|
|
1555
|
-
// schema: { type: 'number' },
|
|
1556
|
-
// path: '/y',
|
|
1557
|
-
// value: undefined,
|
|
1558
|
-
// message: 'Expected number'
|
|
1559
|
-
// }, {
|
|
1560
|
-
// schema: { type: 'number' },
|
|
1561
|
-
// path: '/z',
|
|
1562
|
-
// value: undefined,
|
|
1563
|
-
// message: 'Expected number'
|
|
1564
|
-
// }]
|
|
1565
|
-
```
|
|
1566
|
-
|
|
1567
|
-
Use the Code function to generate assertion functions as strings. This function can be used to generate code that can be written to disk as importable modules. This technique is sometimes referred to as Ahead of Time (AOT) compilation. The following generates code to check a string.
|
|
1568
|
-
|
|
1569
|
-
```typescript
|
|
1570
|
-
const C = TypeCompiler.Code(Type.String()) // const C = `return function check(value) {
|
|
1571
|
-
// return (
|
|
1572
|
-
// (typeof value === 'string')
|
|
1573
|
-
// )
|
|
1574
|
-
// }`
|
|
1575
|
-
```
|
|
1576
|
-
|
|
1577
|
-
<a name='typemap'></a>
|
|
1578
|
-
|
|
1579
|
-
## TypeMap
|
|
1580
|
-
|
|
1581
|
-
TypeBox offers an external package for bidirectional mapping between TypeBox, Valibot, and Zod type libraries. It also includes syntax parsing support for Valibot and Zod and supports the Standard Schema specification. For more details on TypeMap, refer to the project repository.
|
|
1582
|
-
|
|
1583
|
-
[TypeMap Repository](https://github.com/sinclairzx81/typemap)
|
|
1584
|
-
|
|
1585
|
-
<a name='typemap-usage'></a>
|
|
1586
|
-
|
|
1587
|
-
### Usage
|
|
1588
|
-
|
|
1589
|
-
TypeMap needs to be installed separately
|
|
1590
|
-
|
|
1591
|
-
```bash
|
|
1592
|
-
$ npm install @sinclair/typemap
|
|
1593
|
-
```
|
|
1594
|
-
|
|
1595
|
-
Once installed it offers advanced structural remapping between various runtime type libraries ([Example](https://www.typescriptlang.org/play/?moduleResolution=99&module=199&ts=5.8.0-beta#code/JYWwDg9gTgLgBAbzgFQJ5gKYCEIA8A0cAyqgHYwCGBcAWhACZwC+cAZlBCHAOQACAzsFIBjADYVgUAPQx0GEBTDcAUMuERS-eMjgBeFHJy4AFAAMkuAFxxSAVxAAjDFEKprdx88IAvd-adQzKYAlHBwUlJw6pra1sgA8g4AVhjCMAA8CMphObl5+QWFRcW5ETlWKABy-s4A3NkljU3NBWVhblU1UPUtvX3FbXC+nZ7dDf0TE2VMAHyq0VrEesRklCbIoS1lC-BE1twWfqOuRwE+p87MKmoaiwBKy3T0xkTBAHRgFFD8GMZ2oqJNnltrd4HdrFlJltImEKh4Aj0oU1Bh14XVxkiBjChhcxpjGtMwkA))
|
|
1596
|
-
|
|
1597
|
-
```typescript
|
|
1598
|
-
import { TypeBox, Syntax, Zod } from '@sinclair/typemap'
|
|
1599
|
-
|
|
1600
|
-
const T = TypeBox(`{ x: number, y: number, z: number }`) // const T: TObject<{
|
|
1601
|
-
// x: TNumber;
|
|
1602
|
-
// y: TNumber;
|
|
1603
|
-
// z: TNumber;
|
|
1604
|
-
// }>
|
|
1605
|
-
|
|
1606
|
-
const S = Syntax(T) // const S: '{ x: number, y: number, z: number }'
|
|
1607
|
-
|
|
1608
|
-
const R = Zod(S).parse(null) // const R: {
|
|
1609
|
-
// x: number;
|
|
1610
|
-
// y: number;
|
|
1611
|
-
// z: number;
|
|
1612
|
-
// }
|
|
1613
|
-
```
|
|
1614
|
-
|
|
1615
|
-
<a name='typesystem'></a>
|
|
1616
|
-
|
|
1617
|
-
## TypeSystem
|
|
1618
|
-
|
|
1619
|
-
The TypeBox TypeSystem module provides configurations to use either Json Schema or TypeScript type checking semantics. Configurations made to the TypeSystem module are observed by the TypeCompiler, Value and Error modules.
|
|
1620
|
-
|
|
1621
|
-
<a name='typesystem-policies'></a>
|
|
1622
|
-
|
|
1623
|
-
### Policies
|
|
1624
|
-
|
|
1625
|
-
TypeBox validates using standard Json Schema assertion policies by default. The TypeSystemPolicy module can override some of these to have TypeBox assert values inline with TypeScript static checks. It also provides overrides for certain checking rules related to non-serializable values (such as void) which can be helpful in Json based protocols such as Json Rpc 2.0.
|
|
1626
|
-
|
|
1627
|
-
The following overrides are available.
|
|
1628
|
-
|
|
1629
|
-
```typescript
|
|
1630
|
-
import { TypeSystemPolicy } from '@sinclair/typebox/system'
|
|
1631
|
-
|
|
1632
|
-
// Disallow undefined values for optional properties (default is false)
|
|
1633
|
-
//
|
|
1634
|
-
// const A: { x?: number } = { x: undefined } - disallowed when enabled
|
|
1635
|
-
|
|
1636
|
-
TypeSystemPolicy.ExactOptionalPropertyTypes = true
|
|
1637
|
-
|
|
1638
|
-
// Allow arrays to validate as object types (default is false)
|
|
1639
|
-
//
|
|
1640
|
-
// const A: {} = [] - allowed in TS
|
|
1641
|
-
|
|
1642
|
-
TypeSystemPolicy.AllowArrayObject = true
|
|
1643
|
-
|
|
1644
|
-
// Allow numeric values to be NaN or + or - Infinity (default is false)
|
|
1645
|
-
//
|
|
1646
|
-
// const A: number = NaN - allowed in TS
|
|
1647
|
-
|
|
1648
|
-
TypeSystemPolicy.AllowNaN = true
|
|
1649
|
-
|
|
1650
|
-
// Allow void types to check with undefined and null (default is false)
|
|
1651
|
-
//
|
|
1652
|
-
// Used to signal void return on Json-Rpc 2.0 protocol
|
|
1653
|
-
|
|
1654
|
-
TypeSystemPolicy.AllowNullVoid = true
|
|
1655
|
-
```
|
|
1656
|
-
|
|
1657
|
-
<a name='error-function'></a>
|
|
1658
|
-
|
|
1659
|
-
## Error Function
|
|
1660
|
-
|
|
1661
|
-
Error messages in TypeBox can be customized by defining an ErrorFunction. This function allows for the localization of error messages as well as enabling custom error messages for custom types. By default, TypeBox will generate messages using the `en-US` locale. To support additional locales, you can replicate the function found in `src/errors/function.ts` and create a locale specific translation. The function can then be set via SetErrorFunction.
|
|
1662
|
-
|
|
1663
|
-
The following example shows an inline error function that intercepts errors for String, Number and Boolean only. The DefaultErrorFunction is used to return a default error message.
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
```typescript
|
|
1667
|
-
import { SetErrorFunction, DefaultErrorFunction, ValueErrorType } from '@sinclair/typebox/errors'
|
|
1668
|
-
|
|
1669
|
-
SetErrorFunction((error) => { // i18n override
|
|
1670
|
-
switch(error.errorType) {
|
|
1671
|
-
/* en-US */ case ValueErrorType.String: return 'Expected string'
|
|
1672
|
-
/* fr-FR */ case ValueErrorType.Number: return 'Nombre attendu'
|
|
1673
|
-
/* ko-KR */ case ValueErrorType.Boolean: return '예상 부울'
|
|
1674
|
-
/* en-US */ default: return DefaultErrorFunction(error)
|
|
1675
|
-
}
|
|
1676
|
-
})
|
|
1677
|
-
const T = Type.Object({ // const T: TObject<{
|
|
1678
|
-
x: Type.String(), // TString,
|
|
1679
|
-
y: Type.Number(), // TNumber,
|
|
1680
|
-
z: Type.Boolean() // TBoolean
|
|
1681
|
-
}) // }>
|
|
1682
|
-
|
|
1683
|
-
const E = [...Value.Errors(T, { // const E = [{
|
|
1684
|
-
x: null, // type: 48,
|
|
1685
|
-
y: null, // schema: { ... },
|
|
1686
|
-
z: null // path: '/x',
|
|
1687
|
-
})] // value: null,
|
|
1688
|
-
// message: 'Expected string'
|
|
1689
|
-
// }, {
|
|
1690
|
-
// type: 34,
|
|
1691
|
-
// schema: { ... },
|
|
1692
|
-
// path: '/y',
|
|
1693
|
-
// value: null,
|
|
1694
|
-
// message: 'Nombre attendu'
|
|
1695
|
-
// }, {
|
|
1696
|
-
// type: 14,
|
|
1697
|
-
// schema: { ... },
|
|
1698
|
-
// path: '/z',
|
|
1699
|
-
// value: null,
|
|
1700
|
-
// message: '예상 부울'
|
|
1701
|
-
// }]
|
|
1702
|
-
```
|
|
1703
|
-
|
|
1704
|
-
<a name='workbench'></a>
|
|
1705
|
-
|
|
1706
|
-
## TypeBox Workbench
|
|
1707
|
-
|
|
1708
|
-
TypeBox offers a web based code generation tool that can convert TypeScript types into TypeBox types as well as several other ecosystem libraries.
|
|
1709
|
-
|
|
1710
|
-
[TypeBox Workbench Link Here](https://sinclairzx81.github.io/typebox-workbench/)
|
|
1711
|
-
|
|
1712
|
-
<a name='codegen'></a>
|
|
1713
|
-
|
|
1714
|
-
## TypeBox Codegen
|
|
1715
|
-
|
|
1716
|
-
TypeBox provides a code generation library that can be integrated into toolchains to automate type translation between TypeScript and TypeBox. This library also includes functionality to transform TypeScript types to other ecosystem libraries.
|
|
1717
|
-
|
|
1718
|
-
[TypeBox Codegen Link Here](https://github.com/sinclairzx81/typebox-codegen)
|
|
1719
|
-
|
|
1720
|
-
<a name='ecosystem'></a>
|
|
1721
|
-
|
|
1722
|
-
## Ecosystem
|
|
1723
|
-
|
|
1724
|
-
The following is a list of community packages that offer general tooling, extended functionality and framework integration support for TypeBox.
|
|
1725
|
-
|
|
1726
|
-
| Package | Description |
|
|
1727
|
-
| ------------- | ------------- |
|
|
1728
|
-
| [drizzle-typebox](https://www.npmjs.com/package/drizzle-typebox) | Generates TypeBox types from Drizzle ORM schemas |
|
|
1729
|
-
| [elysia](https://github.com/elysiajs/elysia) | Fast and friendly Bun web framework |
|
|
1730
|
-
| [fastify-type-provider-typebox](https://github.com/fastify/fastify-type-provider-typebox) | Fastify TypeBox integration with the Fastify Type Provider |
|
|
1731
|
-
| [feathersjs](https://github.com/feathersjs/feathers) | The API and real-time application framework |
|
|
1732
|
-
| [fetch-typebox](https://github.com/erfanium/fetch-typebox) | Drop-in replacement for fetch that brings easy integration with TypeBox |
|
|
1733
|
-
| [@lonli-lokli/fetcher-typebox](https://github.com/Lonli-Lokli/fetcher-ts/tree/master/packages/fetcher-typebox) | A strongly-typed fetch wrapper for TypeScript applications with optional runtime validation using TypeBox |
|
|
1734
|
-
| [h3-typebox](https://github.com/kevinmarrec/h3-typebox) | Schema validation utilities for h3 using TypeBox & Ajv |
|
|
1735
|
-
| [http-wizard](https://github.com/flodlc/http-wizard) | Type safe http client library for Fastify |
|
|
1736
|
-
| [json2typebox](https://github.com/hacxy/json2typebox) | Creating TypeBox code from Json Data |
|
|
1737
|
-
| [nominal-typebox](https://github.com/Coder-Spirit/nominal/tree/main/%40coderspirit/nominal-typebox) | Allows devs to integrate nominal types into TypeBox schemas |
|
|
1738
|
-
| [openapi-box](https://github.com/geut/openapi-box) | Generate TypeBox types from OpenApi IDL + Http client library |
|
|
1739
|
-
| [prismabox](https://github.com/m1212e/prismabox) | Converts a prisma.schema to TypeBox schema matching the database models |
|
|
1740
|
-
| [schema2typebox](https://github.com/xddq/schema2typebox) | Creating TypeBox code from Json Schemas |
|
|
1741
|
-
| [sveltekit-superforms](https://github.com/ciscoheat/sveltekit-superforms) | A comprehensive SvelteKit form library for server and client validation |
|
|
1742
|
-
| [ts2typebox](https://github.com/xddq/ts2typebox) | Creating TypeBox code from Typescript types |
|
|
1743
|
-
| [typebox-cli](https://github.com/gsuess/typebox-cli) | Generate Schema with TypeBox from the CLI |
|
|
1744
|
-
| [typebox-form-parser](https://github.com/jtlapp/typebox-form-parser) | Parses form and query data based on TypeBox schemas |
|
|
1745
|
-
| [typebox-schema-faker](https://github.com/iam-medvedev/typebox-schema-faker) | Generate fake data from TypeBox schemas for testing, prototyping and development |
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
<a name='benchmark'></a>
|
|
1749
|
-
|
|
1750
|
-
## Benchmark
|
|
1751
|
-
|
|
1752
|
-
This project maintains a set of benchmarks that measure Ajv, Value and TypeCompiler compilation and validation performance. These benchmarks can be run locally by cloning this repository and running `npm run benchmark`. The results below show for Ajv version 8.12.0 running on Node 20.10.0.
|
|
1753
|
-
|
|
1754
|
-
For additional comparative benchmarks, please refer to [typescript-runtime-type-benchmarks](https://moltar.github.io/typescript-runtime-type-benchmarks/).
|
|
1755
|
-
|
|
1756
|
-
<a name='benchmark-compile'></a>
|
|
1757
|
-
|
|
1758
|
-
### Compile
|
|
1759
|
-
|
|
1760
|
-
This benchmark measures compilation performance for varying types.
|
|
1761
|
-
|
|
1762
|
-
```typescript
|
|
1763
|
-
┌────────────────────────────┬────────────┬──────────────┬──────────────┬──────────────┐
|
|
1764
|
-
│ (index) │ Iterations │ Ajv │ TypeCompiler │ Performance │
|
|
1765
|
-
├────────────────────────────┼────────────┼──────────────┼──────────────┼──────────────┤
|
|
1766
|
-
│ Literal_String │ 1000 │ ' 211 ms' │ ' 8 ms' │ ' 26.38 x' │
|
|
1767
|
-
│ Literal_Number │ 1000 │ ' 185 ms' │ ' 5 ms' │ ' 37.00 x' │
|
|
1768
|
-
│ Literal_Boolean │ 1000 │ ' 195 ms' │ ' 4 ms' │ ' 48.75 x' │
|
|
1769
|
-
│ Primitive_Number │ 1000 │ ' 149 ms' │ ' 7 ms' │ ' 21.29 x' │
|
|
1770
|
-
│ Primitive_String │ 1000 │ ' 135 ms' │ ' 5 ms' │ ' 27.00 x' │
|
|
1771
|
-
│ Primitive_String_Pattern │ 1000 │ ' 193 ms' │ ' 10 ms' │ ' 19.30 x' │
|
|
1772
|
-
│ Primitive_Boolean │ 1000 │ ' 152 ms' │ ' 4 ms' │ ' 38.00 x' │
|
|
1773
|
-
│ Primitive_Null │ 1000 │ ' 147 ms' │ ' 4 ms' │ ' 36.75 x' │
|
|
1774
|
-
│ Object_Unconstrained │ 1000 │ ' 1065 ms' │ ' 26 ms' │ ' 40.96 x' │
|
|
1775
|
-
│ Object_Constrained │ 1000 │ ' 1183 ms' │ ' 26 ms' │ ' 45.50 x' │
|
|
1776
|
-
│ Object_Vector3 │ 1000 │ ' 407 ms' │ ' 9 ms' │ ' 45.22 x' │
|
|
1777
|
-
│ Object_Box3D │ 1000 │ ' 1777 ms' │ ' 24 ms' │ ' 74.04 x' │
|
|
1778
|
-
│ Tuple_Primitive │ 1000 │ ' 485 ms' │ ' 11 ms' │ ' 44.09 x' │
|
|
1779
|
-
│ Tuple_Object │ 1000 │ ' 1344 ms' │ ' 17 ms' │ ' 79.06 x' │
|
|
1780
|
-
│ Composite_Intersect │ 1000 │ ' 606 ms' │ ' 14 ms' │ ' 43.29 x' │
|
|
1781
|
-
│ Composite_Union │ 1000 │ ' 522 ms' │ ' 17 ms' │ ' 30.71 x' │
|
|
1782
|
-
│ Math_Vector4 │ 1000 │ ' 851 ms' │ ' 9 ms' │ ' 94.56 x' │
|
|
1783
|
-
│ Math_Matrix4 │ 1000 │ ' 406 ms' │ ' 10 ms' │ ' 40.60 x' │
|
|
1784
|
-
│ Array_Primitive_Number │ 1000 │ ' 367 ms' │ ' 6 ms' │ ' 61.17 x' │
|
|
1785
|
-
│ Array_Primitive_String │ 1000 │ ' 339 ms' │ ' 7 ms' │ ' 48.43 x' │
|
|
1786
|
-
│ Array_Primitive_Boolean │ 1000 │ ' 325 ms' │ ' 5 ms' │ ' 65.00 x' │
|
|
1787
|
-
│ Array_Object_Unconstrained │ 1000 │ ' 1863 ms' │ ' 21 ms' │ ' 88.71 x' │
|
|
1788
|
-
│ Array_Object_Constrained │ 1000 │ ' 1535 ms' │ ' 18 ms' │ ' 85.28 x' │
|
|
1789
|
-
│ Array_Tuple_Primitive │ 1000 │ ' 829 ms' │ ' 14 ms' │ ' 59.21 x' │
|
|
1790
|
-
│ Array_Tuple_Object │ 1000 │ ' 1674 ms' │ ' 14 ms' │ ' 119.57 x' │
|
|
1791
|
-
│ Array_Composite_Intersect │ 1000 │ ' 789 ms' │ ' 13 ms' │ ' 60.69 x' │
|
|
1792
|
-
│ Array_Composite_Union │ 1000 │ ' 822 ms' │ ' 15 ms' │ ' 54.80 x' │
|
|
1793
|
-
│ Array_Math_Vector4 │ 1000 │ ' 1129 ms' │ ' 14 ms' │ ' 80.64 x' │
|
|
1794
|
-
│ Array_Math_Matrix4 │ 1000 │ ' 673 ms' │ ' 9 ms' │ ' 74.78 x' │
|
|
1795
|
-
└────────────────────────────┴────────────┴──────────────┴──────────────┴──────────────┘
|
|
1796
|
-
```
|
|
1797
|
-
|
|
1798
|
-
<a name='benchmark-validate'></a>
|
|
1799
|
-
|
|
1800
|
-
### Validate
|
|
1801
|
-
|
|
1802
|
-
This benchmark measures validation performance for varying types.
|
|
1803
|
-
|
|
1804
|
-
```typescript
|
|
1805
|
-
┌────────────────────────────┬────────────┬──────────────┬──────────────┬──────────────┬──────────────┐
|
|
1806
|
-
│ (index) │ Iterations │ ValueCheck │ Ajv │ TypeCompiler │ Performance │
|
|
1807
|
-
├────────────────────────────┼────────────┼──────────────┼──────────────┼──────────────┼──────────────┤
|
|
1808
|
-
│ Literal_String │ 1000000 │ ' 17 ms' │ ' 5 ms' │ ' 5 ms' │ ' 1.00 x' │
|
|
1809
|
-
│ Literal_Number │ 1000000 │ ' 14 ms' │ ' 18 ms' │ ' 9 ms' │ ' 2.00 x' │
|
|
1810
|
-
│ Literal_Boolean │ 1000000 │ ' 14 ms' │ ' 20 ms' │ ' 9 ms' │ ' 2.22 x' │
|
|
1811
|
-
│ Primitive_Number │ 1000000 │ ' 17 ms' │ ' 19 ms' │ ' 9 ms' │ ' 2.11 x' │
|
|
1812
|
-
│ Primitive_String │ 1000000 │ ' 17 ms' │ ' 18 ms' │ ' 10 ms' │ ' 1.80 x' │
|
|
1813
|
-
│ Primitive_String_Pattern │ 1000000 │ ' 172 ms' │ ' 46 ms' │ ' 41 ms' │ ' 1.12 x' │
|
|
1814
|
-
│ Primitive_Boolean │ 1000000 │ ' 14 ms' │ ' 19 ms' │ ' 10 ms' │ ' 1.90 x' │
|
|
1815
|
-
│ Primitive_Null │ 1000000 │ ' 16 ms' │ ' 19 ms' │ ' 9 ms' │ ' 2.11 x' │
|
|
1816
|
-
│ Object_Unconstrained │ 1000000 │ ' 437 ms' │ ' 28 ms' │ ' 14 ms' │ ' 2.00 x' │
|
|
1817
|
-
│ Object_Constrained │ 1000000 │ ' 653 ms' │ ' 46 ms' │ ' 37 ms' │ ' 1.24 x' │
|
|
1818
|
-
│ Object_Vector3 │ 1000000 │ ' 201 ms' │ ' 22 ms' │ ' 12 ms' │ ' 1.83 x' │
|
|
1819
|
-
│ Object_Box3D │ 1000000 │ ' 961 ms' │ ' 37 ms' │ ' 19 ms' │ ' 1.95 x' │
|
|
1820
|
-
│ Object_Recursive │ 1000000 │ ' 3715 ms' │ ' 363 ms' │ ' 174 ms' │ ' 2.09 x' │
|
|
1821
|
-
│ Tuple_Primitive │ 1000000 │ ' 107 ms' │ ' 23 ms' │ ' 11 ms' │ ' 2.09 x' │
|
|
1822
|
-
│ Tuple_Object │ 1000000 │ ' 375 ms' │ ' 28 ms' │ ' 15 ms' │ ' 1.87 x' │
|
|
1823
|
-
│ Composite_Intersect │ 1000000 │ ' 377 ms' │ ' 22 ms' │ ' 12 ms' │ ' 1.83 x' │
|
|
1824
|
-
│ Composite_Union │ 1000000 │ ' 337 ms' │ ' 30 ms' │ ' 17 ms' │ ' 1.76 x' │
|
|
1825
|
-
│ Math_Vector4 │ 1000000 │ ' 137 ms' │ ' 23 ms' │ ' 11 ms' │ ' 2.09 x' │
|
|
1826
|
-
│ Math_Matrix4 │ 1000000 │ ' 576 ms' │ ' 37 ms' │ ' 28 ms' │ ' 1.32 x' │
|
|
1827
|
-
│ Array_Primitive_Number │ 1000000 │ ' 145 ms' │ ' 23 ms' │ ' 12 ms' │ ' 1.92 x' │
|
|
1828
|
-
│ Array_Primitive_String │ 1000000 │ ' 152 ms' │ ' 22 ms' │ ' 13 ms' │ ' 1.69 x' │
|
|
1829
|
-
│ Array_Primitive_Boolean │ 1000000 │ ' 131 ms' │ ' 20 ms' │ ' 13 ms' │ ' 1.54 x' │
|
|
1830
|
-
│ Array_Object_Unconstrained │ 1000000 │ ' 2821 ms' │ ' 62 ms' │ ' 45 ms' │ ' 1.38 x' │
|
|
1831
|
-
│ Array_Object_Constrained │ 1000000 │ ' 2958 ms' │ ' 119 ms' │ ' 134 ms' │ ' 0.89 x' │
|
|
1832
|
-
│ Array_Object_Recursive │ 1000000 │ ' 14695 ms' │ ' 1621 ms' │ ' 635 ms' │ ' 2.55 x' │
|
|
1833
|
-
│ Array_Tuple_Primitive │ 1000000 │ ' 478 ms' │ ' 35 ms' │ ' 28 ms' │ ' 1.25 x' │
|
|
1834
|
-
│ Array_Tuple_Object │ 1000000 │ ' 1623 ms' │ ' 63 ms' │ ' 48 ms' │ ' 1.31 x' │
|
|
1835
|
-
│ Array_Composite_Intersect │ 1000000 │ ' 1582 ms' │ ' 43 ms' │ ' 30 ms' │ ' 1.43 x' │
|
|
1836
|
-
│ Array_Composite_Union │ 1000000 │ ' 1331 ms' │ ' 76 ms' │ ' 40 ms' │ ' 1.90 x' │
|
|
1837
|
-
│ Array_Math_Vector4 │ 1000000 │ ' 564 ms' │ ' 38 ms' │ ' 24 ms' │ ' 1.58 x' │
|
|
1838
|
-
│ Array_Math_Matrix4 │ 1000000 │ ' 2382 ms' │ ' 111 ms' │ ' 83 ms' │ ' 1.34 x' │
|
|
1839
|
-
└────────────────────────────┴────────────┴──────────────┴──────────────┴──────────────┴──────────────┘
|
|
1840
|
-
```
|
|
1841
|
-
|
|
1842
|
-
<a name='benchmark-compression'></a>
|
|
1843
|
-
|
|
1844
|
-
### Compression
|
|
1845
|
-
|
|
1846
|
-
The following table lists esbuild compiled and minified sizes for each TypeBox module.
|
|
1847
|
-
|
|
1848
|
-
```typescript
|
|
1849
|
-
┌──────────────────────┬────────────┬────────────┬─────────────┐
|
|
1850
|
-
│ (index) │ Compiled │ Minified │ Compression │
|
|
1851
|
-
├──────────────────────┼────────────┼────────────┼─────────────┤
|
|
1852
|
-
│ typebox/compiler │ '122.4 kb' │ ' 53.4 kb' │ '2.29 x' │
|
|
1853
|
-
│ typebox/errors │ ' 67.6 kb' │ ' 29.6 kb' │ '2.28 x' │
|
|
1854
|
-
│ typebox/syntax │ '132.9 kb' │ ' 54.2 kb' │ '2.45 x' │
|
|
1855
|
-
│ typebox/system │ ' 7.4 kb' │ ' 3.2 kb' │ '2.33 x' │
|
|
1856
|
-
│ typebox/value │ '150.1 kb' │ ' 62.2 kb' │ '2.41 x' │
|
|
1857
|
-
│ typebox │ '106.8 kb' │ ' 43.2 kb' │ '2.47 x' │
|
|
1858
|
-
└──────────────────────┴────────────┴────────────┴─────────────┘
|
|
1859
|
-
```
|
|
1860
|
-
|
|
1861
|
-
<a name='contribute'></a>
|
|
1862
|
-
|
|
1863
|
-
## Contribute
|
|
1864
|
-
|
|
1865
|
-
TypeBox is open to community contribution. Please ensure you submit an open issue before submitting your pull request. The TypeBox project prefers open community discussion before accepting new features.
|