@songtonyli/dsh-cli 0.1.91 → 0.1.93

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.
Files changed (957) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +1 -4
  4. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  5. package/node_modules/@aws-sdk/core/package.json +3 -3
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  9. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  10. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  11. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  12. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  13. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  14. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
  15. package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
  16. package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +8 -1
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  21. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  23. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  24. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  25. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  26. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
  27. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  28. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +18 -12
  29. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +5 -5
  30. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +5 -5
  31. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +16 -8
  32. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -0
  33. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +2 -2
  34. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +2 -0
  35. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +2 -0
  36. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +18 -6
  37. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +2 -1
  38. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +19 -4
  39. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +14 -14
  40. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +8 -8
  41. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +8 -8
  42. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +47 -1
  43. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +1 -0
  44. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +2 -2
  45. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +3 -1
  46. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +3 -1
  47. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +27 -5
  48. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
  49. package/node_modules/@deepseek-ai/dsh-subagent/README.md +1 -1
  50. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +1 -1
  51. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +7 -0
  52. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +7 -0
  53. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +3 -2
  54. package/node_modules/@earendil-works/pi-ai/README.md +35 -35
  55. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +59 -71
  56. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +0 -6
  57. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +125 -103
  58. package/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js +51 -18
  59. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +0 -6
  60. package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +57 -2
  61. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +0 -6
  62. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +17 -44
  63. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +0 -5
  64. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +42 -54
  65. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +58 -57
  66. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +0 -6
  67. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -0
  68. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +24 -9
  69. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +4 -11
  70. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +4 -22
  71. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +1 -14
  72. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +9 -3
  73. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/trusted-url.js +12 -0
  74. package/node_modules/@earendil-works/pi-ai/dist/cli.js +6 -2
  75. package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -2
  76. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +1 -1
  77. package/node_modules/@earendil-works/pi-ai/dist/models.js +1 -0
  78. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +1 -1
  79. package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +1 -1
  80. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +1 -1
  81. package/node_modules/@earendil-works/pi-ai/dist/providers/azure.models.js +1 -1
  82. package/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +1 -1
  83. package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +1 -1
  84. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +1 -1
  85. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +1 -1
  86. package/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +144 -111
  87. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  88. package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  89. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  90. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure.json +1 -1
  91. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  92. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  93. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  94. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  95. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  96. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  97. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  98. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  99. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  100. package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  101. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  102. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
  103. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  104. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  105. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  106. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  107. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  108. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  109. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  110. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  111. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  112. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  113. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  114. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  115. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  116. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  117. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  118. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  119. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  120. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  121. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  122. package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +1 -1
  123. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +7 -2
  124. package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +1 -1
  125. package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +1 -1
  126. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +1 -1
  127. package/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +1 -1
  128. package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -1
  129. package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +1 -1
  130. package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +1 -1
  131. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +1 -1
  132. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +1 -1
  133. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +1 -1
  134. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +1 -1
  135. package/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.js +41 -30
  136. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +1 -1
  137. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +1 -1
  138. package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +1 -1
  139. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +1 -1
  140. package/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +1 -1
  141. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +1 -1
  142. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +1 -1
  143. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +1 -1
  144. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +1 -1
  145. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +1 -1
  146. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +1 -1
  147. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +1 -1
  148. package/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +2 -1
  149. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +1 -1
  150. package/node_modules/@earendil-works/pi-ai/dist/providers/schema-builders.js +18 -0
  151. package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +1 -1
  152. package/node_modules/@earendil-works/pi-ai/dist/providers/typesafe.models.js +1 -1
  153. package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +1 -1
  154. package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +1 -1
  155. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +1 -1
  156. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +1 -1
  157. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +1 -1
  158. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +1 -1
  159. package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +1 -1
  160. package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +1 -1
  161. package/node_modules/@earendil-works/pi-ai/dist/telemetry.js +2 -1
  162. package/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +2 -1
  163. package/node_modules/@earendil-works/pi-ai/dist/utils/openrouter-cost.js +34 -0
  164. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +2 -0
  165. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +3 -0
  166. package/node_modules/@earendil-works/pi-ai/dist/utils/streaming-json.js +513 -0
  167. package/node_modules/@earendil-works/pi-ai/dist/utils/{typebox-helpers.js → string-enum.js} +5 -6
  168. package/node_modules/@earendil-works/pi-ai/dist/utils/text.js +9 -0
  169. package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +1 -1
  170. package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +27 -277
  171. package/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
  172. package/node_modules/@earendil-works/pi-ai/package.json +6 -5
  173. package/node_modules/@earendil-works/pi-schema/CHANGELOG.md +13 -0
  174. package/node_modules/@earendil-works/pi-schema/README.md +296 -0
  175. package/node_modules/@earendil-works/pi-schema/dist/annotations.js +193 -0
  176. package/node_modules/@earendil-works/pi-schema/dist/builders.js +98 -0
  177. package/node_modules/@earendil-works/pi-schema/dist/checks.js +447 -0
  178. package/node_modules/@earendil-works/pi-schema/dist/coerce.js +585 -0
  179. package/node_modules/@earendil-works/pi-schema/dist/compiler.js +532 -0
  180. package/node_modules/@earendil-works/pi-schema/dist/explain.js +381 -0
  181. package/node_modules/@earendil-works/pi-schema/dist/formats/index.js +51 -0
  182. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/date.js +47 -0
  183. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/date_time.js +39 -0
  184. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/duration.js +36 -0
  185. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/email.js +36 -0
  186. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/hostname.js +38 -0
  187. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idn_email.js +36 -0
  188. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idn_hostname.js +39 -0
  189. package/node_modules/{typebox/build/format/idna/format/bidi.mjs → @earendil-works/pi-schema/dist/formats/typebox/idna/format/bidi.js} +49 -15
  190. package/node_modules/{typebox/build/format/idna/format/puny.mjs → @earendil-works/pi-schema/dist/formats/typebox/idna/format/puny.js} +36 -8
  191. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/hostname.js +43 -0
  192. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/idn-hostname.js +71 -0
  193. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/index.js +30 -0
  194. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/ascii.js +37 -0
  195. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/puny.js +56 -0
  196. package/node_modules/{typebox/build/format/idna/label/unicode.mjs → @earendil-works/pi-schema/dist/formats/typebox/idna/label/unicode.js} +34 -6
  197. package/node_modules/{typebox/build/format/idna/pattern/pattern.mjs → @earendil-works/pi-schema/dist/formats/typebox/idna/pattern/pattern.js} +34 -6
  198. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/ipv4.js +36 -0
  199. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/ipv6.js +36 -0
  200. package/node_modules/{typebox/build/format/iri.mjs → @earendil-works/pi-schema/dist/formats/typebox/iri.js} +30 -2
  201. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/iri_reference.js +40 -0
  202. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/json_pointer.js +37 -0
  203. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/json_pointer_uri_fragment.js +37 -0
  204. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/regex.js +41 -0
  205. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/relative_json_pointer.js +37 -0
  206. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/time.js +60 -0
  207. package/node_modules/{typebox/build/format/uri.mjs → @earendil-works/pi-schema/dist/formats/typebox/uri.js} +28 -0
  208. package/node_modules/{typebox/build/format/uri_reference.mjs → @earendil-works/pi-schema/dist/formats/typebox/uri_reference.js} +28 -0
  209. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri_template.js +37 -0
  210. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/url.js +36 -0
  211. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uuid.js +37 -0
  212. package/node_modules/@earendil-works/pi-schema/dist/index.js +5 -0
  213. package/node_modules/@earendil-works/pi-schema/dist/resolver.js +202 -0
  214. package/node_modules/@earendil-works/pi-schema/dist/shared.js +33 -0
  215. package/node_modules/@earendil-works/pi-schema/dist/typebox-static.js +5 -0
  216. package/node_modules/@earendil-works/pi-schema/dist/types.js +3 -0
  217. package/node_modules/@earendil-works/pi-schema/dist/validator.js +71 -0
  218. package/node_modules/@earendil-works/pi-schema/package.json +53 -0
  219. package/node_modules/@earendil-works/pi-telemetry/package.json +4 -2
  220. package/node_modules/@shikijs/core/dist/index.mjs +57 -43
  221. package/node_modules/@shikijs/core/package.json +5 -5
  222. package/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +2 -3
  223. package/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +2 -3
  224. package/node_modules/@shikijs/engine-javascript/dist/index.mjs +1 -1
  225. package/node_modules/@shikijs/engine-javascript/dist/{string-TLTPtCPs.mjs → string-CFc1qfdw.mjs} +2 -4
  226. package/node_modules/@shikijs/engine-javascript/package.json +3 -3
  227. package/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +1 -1
  228. package/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +6 -4
  229. package/node_modules/@shikijs/engine-oniguruma/package.json +3 -3
  230. package/node_modules/@shikijs/langs/package.json +2 -2
  231. package/node_modules/@shikijs/primitive/dist/index.mjs +30 -33
  232. package/node_modules/@shikijs/primitive/package.json +3 -3
  233. package/node_modules/@shikijs/themes/package.json +2 -2
  234. package/node_modules/@shikijs/types/dist/index.mjs +1 -2
  235. package/node_modules/@shikijs/types/package.json +2 -2
  236. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +10 -4
  237. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  238. package/node_modules/@smithy/core/package.json +1 -1
  239. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -2
  240. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -2
  241. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  242. package/node_modules/http2-wrapper/package.json +2 -23
  243. package/node_modules/http2-wrapper/source/agent.js +70 -4
  244. package/node_modules/jose/dist/webapi/jwks/remote.js +3 -1
  245. package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
  246. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -1
  247. package/node_modules/jose/package.json +1 -1
  248. package/node_modules/semver/classes/range.js +2 -2
  249. package/node_modules/semver/internal/constants.js +30 -0
  250. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  251. package/node_modules/semver/package.json +1 -1
  252. package/node_modules/shiki/dist/bundle-full.mjs +4 -5
  253. package/node_modules/shiki/dist/bundle-web.mjs +4 -6
  254. package/node_modules/shiki/dist/core-unwasm.mjs +1 -2
  255. package/node_modules/shiki/dist/core.mjs +1 -1
  256. package/node_modules/shiki/dist/engine-oniguruma-XLVxwJtN.mjs +6 -0
  257. package/node_modules/shiki/dist/engine-oniguruma.mjs +2 -7
  258. package/node_modules/shiki/dist/index.mjs +2 -2
  259. package/node_modules/shiki/dist/{langs-bundle-full-xQVO1Cek.mjs → langs-bundle-full-CSdmXkDy.mjs} +1 -2
  260. package/node_modules/shiki/dist/langs.mjs +1 -2
  261. package/node_modules/shiki/dist/{rolldown-runtime-BBjsoOtd.mjs → rolldown-runtime-782esTHO.mjs} +1 -2
  262. package/node_modules/shiki/dist/themes.mjs +1 -2
  263. package/node_modules/shiki/dist/wasm.mjs +1 -2
  264. package/node_modules/shiki/package.json +8 -8
  265. package/node_modules/tslib/README.md +3 -8
  266. package/node_modules/tslib/package.json +1 -1
  267. package/node_modules/tslib/tslib.es6.js +10 -1
  268. package/node_modules/tslib/tslib.es6.mjs +10 -1
  269. package/node_modules/tslib/tslib.js +10 -1
  270. package/package.json +34 -34
  271. package/node_modules/typebox/build/compile/code.mjs +0 -65
  272. package/node_modules/typebox/build/compile/compile.mjs +0 -12
  273. package/node_modules/typebox/build/compile/index.mjs +0 -14
  274. package/node_modules/typebox/build/compile/validator.mjs +0 -91
  275. package/node_modules/typebox/build/error/errors.mjs +0 -18
  276. package/node_modules/typebox/build/error/index.mjs +0 -1
  277. package/node_modules/typebox/build/format/_registry.mjs +0 -96
  278. package/node_modules/typebox/build/format/date.mjs +0 -19
  279. package/node_modules/typebox/build/format/date_time.mjs +0 -11
  280. package/node_modules/typebox/build/format/duration.mjs +0 -8
  281. package/node_modules/typebox/build/format/email.mjs +0 -8
  282. package/node_modules/typebox/build/format/format.mjs +0 -22
  283. package/node_modules/typebox/build/format/hostname.mjs +0 -10
  284. package/node_modules/typebox/build/format/idn_email.mjs +0 -8
  285. package/node_modules/typebox/build/format/idn_hostname.mjs +0 -11
  286. package/node_modules/typebox/build/format/idna/hostname.mjs +0 -16
  287. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +0 -43
  288. package/node_modules/typebox/build/format/idna/index.mjs +0 -2
  289. package/node_modules/typebox/build/format/idna/label/ascii.mjs +0 -9
  290. package/node_modules/typebox/build/format/idna/label/puny.mjs +0 -28
  291. package/node_modules/typebox/build/format/index.mjs +0 -4
  292. package/node_modules/typebox/build/format/ipv4.mjs +0 -8
  293. package/node_modules/typebox/build/format/ipv6.mjs +0 -8
  294. package/node_modules/typebox/build/format/iri_reference.mjs +0 -14
  295. package/node_modules/typebox/build/format/json_pointer.mjs +0 -9
  296. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +0 -9
  297. package/node_modules/typebox/build/format/regex.mjs +0 -13
  298. package/node_modules/typebox/build/format/relative_json_pointer.mjs +0 -9
  299. package/node_modules/typebox/build/format/time.mjs +0 -32
  300. package/node_modules/typebox/build/format/uri_template.mjs +0 -9
  301. package/node_modules/typebox/build/format/url.mjs +0 -8
  302. package/node_modules/typebox/build/format/uuid.mjs +0 -9
  303. package/node_modules/typebox/build/guard/emit.mjs +0 -191
  304. package/node_modules/typebox/build/guard/globals.mjs +0 -90
  305. package/node_modules/typebox/build/guard/guard.mjs +0 -221
  306. package/node_modules/typebox/build/guard/index.mjs +0 -6
  307. package/node_modules/typebox/build/guard/native.mjs +0 -60
  308. package/node_modules/typebox/build/guard/string.mjs +0 -168
  309. package/node_modules/typebox/build/index.mjs +0 -14
  310. package/node_modules/typebox/build/schema/build.mjs +0 -118
  311. package/node_modules/typebox/build/schema/check.mjs +0 -14
  312. package/node_modules/typebox/build/schema/compile.mjs +0 -46
  313. package/node_modules/typebox/build/schema/engine/_context.mjs +0 -124
  314. package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +0 -20
  315. package/node_modules/typebox/build/schema/engine/_externals.mjs +0 -25
  316. package/node_modules/typebox/build/schema/engine/_functions.mjs +0 -65
  317. package/node_modules/typebox/build/schema/engine/_reducer.mjs +0 -45
  318. package/node_modules/typebox/build/schema/engine/_refine.mjs +0 -29
  319. package/node_modules/typebox/build/schema/engine/_regexp.mjs +0 -4
  320. package/node_modules/typebox/build/schema/engine/_stack.mjs +0 -209
  321. package/node_modules/typebox/build/schema/engine/_unique.mjs +0 -5
  322. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +0 -60
  323. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +0 -123
  324. package/node_modules/typebox/build/schema/engine/allOf.mjs +0 -47
  325. package/node_modules/typebox/build/schema/engine/anyOf.mjs +0 -52
  326. package/node_modules/typebox/build/schema/engine/boolean.mjs +0 -25
  327. package/node_modules/typebox/build/schema/engine/const.mjs +0 -30
  328. package/node_modules/typebox/build/schema/engine/contains.mjs +0 -54
  329. package/node_modules/typebox/build/schema/engine/dependencies.mjs +0 -45
  330. package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +0 -40
  331. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +0 -38
  332. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +0 -25
  333. package/node_modules/typebox/build/schema/engine/enum.mjs +0 -33
  334. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +0 -25
  335. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +0 -25
  336. package/node_modules/typebox/build/schema/engine/format.mjs +0 -26
  337. package/node_modules/typebox/build/schema/engine/if.mjs +0 -47
  338. package/node_modules/typebox/build/schema/engine/index.mjs +0 -54
  339. package/node_modules/typebox/build/schema/engine/items.mjs +0 -88
  340. package/node_modules/typebox/build/schema/engine/maxContains.mjs +0 -42
  341. package/node_modules/typebox/build/schema/engine/maxItems.mjs +0 -25
  342. package/node_modules/typebox/build/schema/engine/maxLength.mjs +0 -25
  343. package/node_modules/typebox/build/schema/engine/maxProperties.mjs +0 -25
  344. package/node_modules/typebox/build/schema/engine/maximum.mjs +0 -25
  345. package/node_modules/typebox/build/schema/engine/minContains.mjs +0 -51
  346. package/node_modules/typebox/build/schema/engine/minItems.mjs +0 -25
  347. package/node_modules/typebox/build/schema/engine/minLength.mjs +0 -25
  348. package/node_modules/typebox/build/schema/engine/minProperties.mjs +0 -25
  349. package/node_modules/typebox/build/schema/engine/minimum.mjs +0 -25
  350. package/node_modules/typebox/build/schema/engine/multipleOf.mjs +0 -25
  351. package/node_modules/typebox/build/schema/engine/not.mjs +0 -39
  352. package/node_modules/typebox/build/schema/engine/oneOf.mjs +0 -59
  353. package/node_modules/typebox/build/schema/engine/pattern.mjs +0 -29
  354. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +0 -45
  355. package/node_modules/typebox/build/schema/engine/prefixItems.mjs +0 -35
  356. package/node_modules/typebox/build/schema/engine/properties.mjs +0 -75
  357. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +0 -37
  358. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +0 -25
  359. package/node_modules/typebox/build/schema/engine/ref.mjs +0 -52
  360. package/node_modules/typebox/build/schema/engine/required.mjs +0 -32
  361. package/node_modules/typebox/build/schema/engine/schema.mjs +0 -362
  362. package/node_modules/typebox/build/schema/engine/type.mjs +0 -70
  363. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +0 -51
  364. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +0 -51
  365. package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +0 -51
  366. package/node_modules/typebox/build/schema/errors.mjs +0 -18
  367. package/node_modules/typebox/build/schema/index.mjs +0 -9
  368. package/node_modules/typebox/build/schema/intern/index.mjs +0 -1
  369. package/node_modules/typebox/build/schema/intern/intern.mjs +0 -259
  370. package/node_modules/typebox/build/schema/parse.mjs +0 -32
  371. package/node_modules/typebox/build/schema/pointer/index.mjs +0 -2
  372. package/node_modules/typebox/build/schema/pointer/pointer.mjs +0 -106
  373. package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +0 -2
  374. package/node_modules/typebox/build/schema/resolve/index.mjs +0 -1
  375. package/node_modules/typebox/build/schema/resolve/resolve.mjs +0 -327
  376. package/node_modules/typebox/build/schema/schema.mjs +0 -11
  377. package/node_modules/typebox/build/schema/static/_canonical.mjs +0 -2
  378. package/node_modules/typebox/build/schema/static/_comparer.mjs +0 -2
  379. package/node_modules/typebox/build/schema/static/_elements.mjs +0 -2
  380. package/node_modules/typebox/build/schema/static/additionalProperties.mjs +0 -3
  381. package/node_modules/typebox/build/schema/static/allOf.mjs +0 -2
  382. package/node_modules/typebox/build/schema/static/anyOf.mjs +0 -2
  383. package/node_modules/typebox/build/schema/static/const.mjs +0 -2
  384. package/node_modules/typebox/build/schema/static/enum.mjs +0 -2
  385. package/node_modules/typebox/build/schema/static/if.mjs +0 -2
  386. package/node_modules/typebox/build/schema/static/index.mjs +0 -1
  387. package/node_modules/typebox/build/schema/static/items.mjs +0 -2
  388. package/node_modules/typebox/build/schema/static/oneOf.mjs +0 -2
  389. package/node_modules/typebox/build/schema/static/patternProperties.mjs +0 -2
  390. package/node_modules/typebox/build/schema/static/prefixItems.mjs +0 -2
  391. package/node_modules/typebox/build/schema/static/properties.mjs +0 -2
  392. package/node_modules/typebox/build/schema/static/propertyNames.mjs +0 -3
  393. package/node_modules/typebox/build/schema/static/ref.mjs +0 -3
  394. package/node_modules/typebox/build/schema/static/required.mjs +0 -3
  395. package/node_modules/typebox/build/schema/static/schema.mjs +0 -2
  396. package/node_modules/typebox/build/schema/static/static.mjs +0 -3
  397. package/node_modules/typebox/build/schema/static/type.mjs +0 -3
  398. package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +0 -3
  399. package/node_modules/typebox/build/schema/types/_refine.mjs +0 -18
  400. package/node_modules/typebox/build/schema/types/additionalItems.mjs +0 -14
  401. package/node_modules/typebox/build/schema/types/additionalProperties.mjs +0 -14
  402. package/node_modules/typebox/build/schema/types/allOf.mjs +0 -15
  403. package/node_modules/typebox/build/schema/types/anchor.mjs +0 -12
  404. package/node_modules/typebox/build/schema/types/anyOf.mjs +0 -15
  405. package/node_modules/typebox/build/schema/types/const.mjs +0 -12
  406. package/node_modules/typebox/build/schema/types/contains.mjs +0 -14
  407. package/node_modules/typebox/build/schema/types/default.mjs +0 -12
  408. package/node_modules/typebox/build/schema/types/defs.mjs +0 -12
  409. package/node_modules/typebox/build/schema/types/dependencies.mjs +0 -16
  410. package/node_modules/typebox/build/schema/types/dependentRequired.mjs +0 -15
  411. package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +0 -15
  412. package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +0 -12
  413. package/node_modules/typebox/build/schema/types/dynamicRef.mjs +0 -12
  414. package/node_modules/typebox/build/schema/types/else.mjs +0 -14
  415. package/node_modules/typebox/build/schema/types/enum.mjs +0 -13
  416. package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +0 -13
  417. package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +0 -13
  418. package/node_modules/typebox/build/schema/types/format.mjs +0 -13
  419. package/node_modules/typebox/build/schema/types/id.mjs +0 -13
  420. package/node_modules/typebox/build/schema/types/if.mjs +0 -14
  421. package/node_modules/typebox/build/schema/types/index.mjs +0 -57
  422. package/node_modules/typebox/build/schema/types/items.mjs +0 -26
  423. package/node_modules/typebox/build/schema/types/maxContains.mjs +0 -13
  424. package/node_modules/typebox/build/schema/types/maxItems.mjs +0 -13
  425. package/node_modules/typebox/build/schema/types/maxLength.mjs +0 -13
  426. package/node_modules/typebox/build/schema/types/maxProperties.mjs +0 -13
  427. package/node_modules/typebox/build/schema/types/maximum.mjs +0 -13
  428. package/node_modules/typebox/build/schema/types/minContains.mjs +0 -13
  429. package/node_modules/typebox/build/schema/types/minItems.mjs +0 -13
  430. package/node_modules/typebox/build/schema/types/minLength.mjs +0 -13
  431. package/node_modules/typebox/build/schema/types/minProperties.mjs +0 -13
  432. package/node_modules/typebox/build/schema/types/minimum.mjs +0 -13
  433. package/node_modules/typebox/build/schema/types/multipleOf.mjs +0 -13
  434. package/node_modules/typebox/build/schema/types/not.mjs +0 -14
  435. package/node_modules/typebox/build/schema/types/oneOf.mjs +0 -15
  436. package/node_modules/typebox/build/schema/types/pattern.mjs +0 -14
  437. package/node_modules/typebox/build/schema/types/patternProperties.mjs +0 -15
  438. package/node_modules/typebox/build/schema/types/prefixItems.mjs +0 -14
  439. package/node_modules/typebox/build/schema/types/properties.mjs +0 -15
  440. package/node_modules/typebox/build/schema/types/propertyNames.mjs +0 -15
  441. package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +0 -19
  442. package/node_modules/typebox/build/schema/types/recursiveRef.mjs +0 -12
  443. package/node_modules/typebox/build/schema/types/ref.mjs +0 -13
  444. package/node_modules/typebox/build/schema/types/required.mjs +0 -14
  445. package/node_modules/typebox/build/schema/types/schema.mjs +0 -14
  446. package/node_modules/typebox/build/schema/types/then.mjs +0 -14
  447. package/node_modules/typebox/build/schema/types/type.mjs +0 -15
  448. package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +0 -14
  449. package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +0 -14
  450. package/node_modules/typebox/build/schema/types/uniqueItems.mjs +0 -13
  451. package/node_modules/typebox/build/system/arguments/arguments.mjs +0 -9
  452. package/node_modules/typebox/build/system/arguments/index.mjs +0 -1
  453. package/node_modules/typebox/build/system/environment/environment.mjs +0 -1
  454. package/node_modules/typebox/build/system/environment/evaluate.mjs +0 -37
  455. package/node_modules/typebox/build/system/environment/index.mjs +0 -1
  456. package/node_modules/typebox/build/system/hashing/hash.mjs +0 -232
  457. package/node_modules/typebox/build/system/hashing/index.mjs +0 -1
  458. package/node_modules/typebox/build/system/index.mjs +0 -4
  459. package/node_modules/typebox/build/system/locale/_config.mjs +0 -15
  460. package/node_modules/typebox/build/system/locale/_locale.mjs +0 -40
  461. package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -40
  462. package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -40
  463. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -40
  464. package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -40
  465. package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -40
  466. package/node_modules/typebox/build/system/locale/en_US.mjs +0 -39
  467. package/node_modules/typebox/build/system/locale/es_419.mjs +0 -40
  468. package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -40
  469. package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -40
  470. package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -40
  471. package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -40
  472. package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -40
  473. package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -40
  474. package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -40
  475. package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -40
  476. package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -40
  477. package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -40
  478. package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -40
  479. package/node_modules/typebox/build/system/locale/index.mjs +0 -1
  480. package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -40
  481. package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -40
  482. package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -40
  483. package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -40
  484. package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -40
  485. package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -40
  486. package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -40
  487. package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -40
  488. package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -40
  489. package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -40
  490. package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -40
  491. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -40
  492. package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -40
  493. package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -40
  494. package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -40
  495. package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -40
  496. package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -40
  497. package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -40
  498. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -40
  499. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -40
  500. package/node_modules/typebox/build/system/memory/assign.mjs +0 -12
  501. package/node_modules/typebox/build/system/memory/clone.mjs +0 -113
  502. package/node_modules/typebox/build/system/memory/create.mjs +0 -29
  503. package/node_modules/typebox/build/system/memory/discard.mjs +0 -18
  504. package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
  505. package/node_modules/typebox/build/system/memory/index.mjs +0 -1
  506. package/node_modules/typebox/build/system/memory/memory.mjs +0 -7
  507. package/node_modules/typebox/build/system/memory/metrics.mjs +0 -8
  508. package/node_modules/typebox/build/system/memory/update.mjs +0 -33
  509. package/node_modules/typebox/build/system/settings/index.mjs +0 -1
  510. package/node_modules/typebox/build/system/settings/settings.mjs +0 -36
  511. package/node_modules/typebox/build/system/system.mjs +0 -6
  512. package/node_modules/typebox/build/system/unreachable/index.mjs +0 -1
  513. package/node_modules/typebox/build/system/unreachable/unreachable.mjs +0 -6
  514. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -11
  515. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -11
  516. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -11
  517. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -11
  518. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -11
  519. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -11
  520. package/node_modules/typebox/build/type/action/capitalize.mjs +0 -11
  521. package/node_modules/typebox/build/type/action/conditional.mjs +0 -13
  522. package/node_modules/typebox/build/type/action/constructor_parameters.mjs +0 -11
  523. package/node_modules/typebox/build/type/action/evaluate.mjs +0 -11
  524. package/node_modules/typebox/build/type/action/exclude.mjs +0 -11
  525. package/node_modules/typebox/build/type/action/extract.mjs +0 -11
  526. package/node_modules/typebox/build/type/action/index.mjs +0 -30
  527. package/node_modules/typebox/build/type/action/indexed.mjs +0 -14
  528. package/node_modules/typebox/build/type/action/instance_type.mjs +0 -11
  529. package/node_modules/typebox/build/type/action/interface.mjs +0 -22
  530. package/node_modules/typebox/build/type/action/keyof.mjs +0 -11
  531. package/node_modules/typebox/build/type/action/lowercase.mjs +0 -11
  532. package/node_modules/typebox/build/type/action/mapped.mjs +0 -13
  533. package/node_modules/typebox/build/type/action/module.mjs +0 -13
  534. package/node_modules/typebox/build/type/action/non_nullable.mjs +0 -11
  535. package/node_modules/typebox/build/type/action/omit.mjs +0 -14
  536. package/node_modules/typebox/build/type/action/parameters.mjs +0 -11
  537. package/node_modules/typebox/build/type/action/partial.mjs +0 -11
  538. package/node_modules/typebox/build/type/action/pick.mjs +0 -14
  539. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -19
  540. package/node_modules/typebox/build/type/action/required.mjs +0 -11
  541. package/node_modules/typebox/build/type/action/return_type.mjs +0 -11
  542. package/node_modules/typebox/build/type/action/uncapitalize.mjs +0 -11
  543. package/node_modules/typebox/build/type/action/uppercase.mjs +0 -11
  544. package/node_modules/typebox/build/type/action/with.mjs +0 -11
  545. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +0 -66
  546. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +0 -79
  547. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +0 -33
  548. package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +0 -27
  549. package/node_modules/typebox/build/type/engine/conditional/index.mjs +0 -1
  550. package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +0 -23
  551. package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +0 -1
  552. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +0 -25
  553. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +0 -16
  554. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +0 -45
  555. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +0 -47
  556. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +0 -47
  557. package/node_modules/typebox/build/type/engine/cyclic/index.mjs +0 -6
  558. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +0 -31
  559. package/node_modules/typebox/build/type/engine/cyclic/target.mjs +0 -16
  560. package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
  561. package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +0 -9
  562. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +0 -37
  563. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +0 -18
  564. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +0 -60
  565. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +0 -33
  566. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +0 -56
  567. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +0 -10
  568. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +0 -8
  569. package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +0 -12
  570. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +0 -31
  571. package/node_modules/typebox/build/type/engine/exclude/index.mjs +0 -1
  572. package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +0 -16
  573. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +0 -22
  574. package/node_modules/typebox/build/type/engine/extract/index.mjs +0 -1
  575. package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +0 -16
  576. package/node_modules/typebox/build/type/engine/extract/operation.mjs +0 -22
  577. package/node_modules/typebox/build/type/engine/helpers/index.mjs +0 -3
  578. package/node_modules/typebox/build/type/engine/helpers/keys.mjs +0 -8
  579. package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +0 -15
  580. package/node_modules/typebox/build/type/engine/helpers/union.mjs +0 -3
  581. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -14
  582. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -14
  583. package/node_modules/typebox/build/type/engine/index.mjs +0 -37
  584. package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +0 -8
  585. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -8
  586. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +0 -8
  587. package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +0 -8
  588. package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +0 -5
  589. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +0 -8
  590. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +0 -25
  591. package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +0 -7
  592. package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +0 -14
  593. package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +0 -12
  594. package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +0 -18
  595. package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +0 -35
  596. package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +0 -40
  597. package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +0 -35
  598. package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +0 -14
  599. package/node_modules/typebox/build/type/engine/indexed/index.mjs +0 -1
  600. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +0 -28
  601. package/node_modules/typebox/build/type/engine/instance_type/index.mjs +0 -1
  602. package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +0 -21
  603. package/node_modules/typebox/build/type/engine/instantiate.mjs +0 -158
  604. package/node_modules/typebox/build/type/engine/interface/index.mjs +0 -1
  605. package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +0 -23
  606. package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +0 -9
  607. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +0 -8
  608. package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +0 -13
  609. package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +0 -7
  610. package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +0 -1
  611. package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +0 -52
  612. package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +0 -4
  613. package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +0 -8
  614. package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +0 -5
  615. package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +0 -20
  616. package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +0 -5
  617. package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +0 -7
  618. package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +0 -23
  619. package/node_modules/typebox/build/type/engine/keyof/index.mjs +0 -1
  620. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +0 -29
  621. package/node_modules/typebox/build/type/engine/mapped/index.mjs +0 -1
  622. package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +0 -15
  623. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +0 -42
  624. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +0 -39
  625. package/node_modules/typebox/build/type/engine/module/index.mjs +0 -1
  626. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +0 -36
  627. package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +0 -1
  628. package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +0 -22
  629. package/node_modules/typebox/build/type/engine/object/collapse.mjs +0 -14
  630. package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +0 -8
  631. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -8
  632. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +0 -22
  633. package/node_modules/typebox/build/type/engine/object/from_object.mjs +0 -4
  634. package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +0 -9
  635. package/node_modules/typebox/build/type/engine/object/from_type.mjs +0 -23
  636. package/node_modules/typebox/build/type/engine/object/from_union.mjs +0 -19
  637. package/node_modules/typebox/build/type/engine/object/index.mjs +0 -1
  638. package/node_modules/typebox/build/type/engine/omit/from_type.mjs +0 -18
  639. package/node_modules/typebox/build/type/engine/omit/index.mjs +0 -1
  640. package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +0 -16
  641. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -14
  642. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -14
  643. package/node_modules/typebox/build/type/engine/parameters/index.mjs +0 -1
  644. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +0 -25
  645. package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +0 -11
  646. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -8
  647. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +0 -8
  648. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +0 -11
  649. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +0 -20
  650. package/node_modules/typebox/build/type/engine/partial/from_union.mjs +0 -7
  651. package/node_modules/typebox/build/type/engine/partial/index.mjs +0 -1
  652. package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +0 -15
  653. package/node_modules/typebox/build/type/engine/patterns/index.mjs +0 -2
  654. package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +0 -11
  655. package/node_modules/typebox/build/type/engine/patterns/template.mjs +0 -20
  656. package/node_modules/typebox/build/type/engine/pick/from_type.mjs +0 -20
  657. package/node_modules/typebox/build/type/engine/pick/index.mjs +0 -1
  658. package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +0 -16
  659. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  660. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -27
  661. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -14
  662. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -14
  663. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +0 -7
  664. package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +0 -11
  665. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -8
  666. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +0 -8
  667. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +0 -11
  668. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +0 -7
  669. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +0 -25
  670. package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +0 -7
  671. package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +0 -1
  672. package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +0 -15
  673. package/node_modules/typebox/build/type/engine/record/from_key.mjs +0 -40
  674. package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +0 -6
  675. package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +0 -5
  676. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +0 -8
  677. package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +0 -7
  678. package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +0 -8
  679. package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +0 -10
  680. package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +0 -7
  681. package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +0 -12
  682. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +0 -12
  683. package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +0 -39
  684. package/node_modules/typebox/build/type/engine/record/index.mjs +0 -1
  685. package/node_modules/typebox/build/type/engine/record/instantiate.mjs +0 -17
  686. package/node_modules/typebox/build/type/engine/record/record_create.mjs +0 -7
  687. package/node_modules/typebox/build/type/engine/ref/index.mjs +0 -1
  688. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +0 -10
  689. package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +0 -11
  690. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -8
  691. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +0 -8
  692. package/node_modules/typebox/build/type/engine/required/from_object.mjs +0 -11
  693. package/node_modules/typebox/build/type/engine/required/from_type.mjs +0 -20
  694. package/node_modules/typebox/build/type/engine/required/from_union.mjs +0 -7
  695. package/node_modules/typebox/build/type/engine/required/index.mjs +0 -1
  696. package/node_modules/typebox/build/type/engine/required/instantiate.mjs +0 -15
  697. package/node_modules/typebox/build/type/engine/rest/index.mjs +0 -1
  698. package/node_modules/typebox/build/type/engine/rest/spread.mjs +0 -19
  699. package/node_modules/typebox/build/type/engine/return_type/index.mjs +0 -1
  700. package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +0 -21
  701. package/node_modules/typebox/build/type/engine/template_literal/create.mjs +0 -5
  702. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +0 -81
  703. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +0 -81
  704. package/node_modules/typebox/build/type/engine/template_literal/index.mjs +0 -6
  705. package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +0 -15
  706. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +0 -26
  707. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +0 -10
  708. package/node_modules/typebox/build/type/engine/template_literal/static.mjs +0 -2
  709. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +0 -26
  710. package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +0 -14
  711. package/node_modules/typebox/build/type/engine/with/index.mjs +0 -1
  712. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -14
  713. package/node_modules/typebox/build/type/extends/any.mjs +0 -12
  714. package/node_modules/typebox/build/type/extends/array.mjs +0 -21
  715. package/node_modules/typebox/build/type/extends/bigint.mjs +0 -9
  716. package/node_modules/typebox/build/type/extends/boolean.mjs +0 -9
  717. package/node_modules/typebox/build/type/extends/constructor.mjs +0 -17
  718. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -6
  719. package/node_modules/typebox/build/type/extends/enum.mjs +0 -7
  720. package/node_modules/typebox/build/type/extends/extends.mjs +0 -17
  721. package/node_modules/typebox/build/type/extends/extends_left.mjs +0 -80
  722. package/node_modules/typebox/build/type/extends/extends_right.mjs +0 -49
  723. package/node_modules/typebox/build/type/extends/function.mjs +0 -17
  724. package/node_modules/typebox/build/type/extends/index.mjs +0 -2
  725. package/node_modules/typebox/build/type/extends/inference.mjs +0 -62
  726. package/node_modules/typebox/build/type/extends/integer.mjs +0 -10
  727. package/node_modules/typebox/build/type/extends/intersect.mjs +0 -15
  728. package/node_modules/typebox/build/type/extends/literal.mjs +0 -44
  729. package/node_modules/typebox/build/type/extends/never.mjs +0 -9
  730. package/node_modules/typebox/build/type/extends/null.mjs +0 -9
  731. package/node_modules/typebox/build/type/extends/number.mjs +0 -9
  732. package/node_modules/typebox/build/type/extends/object.mjs +0 -109
  733. package/node_modules/typebox/build/type/extends/parameters.mjs +0 -28
  734. package/node_modules/typebox/build/type/extends/record.mjs +0 -23
  735. package/node_modules/typebox/build/type/extends/result.mjs +0 -36
  736. package/node_modules/typebox/build/type/extends/return_type.mjs +0 -9
  737. package/node_modules/typebox/build/type/extends/string.mjs +0 -9
  738. package/node_modules/typebox/build/type/extends/symbol.mjs +0 -9
  739. package/node_modules/typebox/build/type/extends/template_literal.mjs +0 -7
  740. package/node_modules/typebox/build/type/extends/tuple.mjs +0 -61
  741. package/node_modules/typebox/build/type/extends/undefined.mjs +0 -10
  742. package/node_modules/typebox/build/type/extends/union.mjs +0 -24
  743. package/node_modules/typebox/build/type/extends/unknown.mjs +0 -12
  744. package/node_modules/typebox/build/type/extends/void.mjs +0 -9
  745. package/node_modules/typebox/build/type/index.mjs +0 -5
  746. package/node_modules/typebox/build/type/script/index.mjs +0 -1
  747. package/node_modules/typebox/build/type/script/mapping.mjs +0 -528
  748. package/node_modules/typebox/build/type/script/parser.mjs +0 -140
  749. package/node_modules/typebox/build/type/script/script.mjs +0 -22
  750. package/node_modules/typebox/build/type/script/token/bigint.mjs +0 -14
  751. package/node_modules/typebox/build/type/script/token/const.mjs +0 -18
  752. package/node_modules/typebox/build/type/script/token/ident.mjs +0 -26
  753. package/node_modules/typebox/build/type/script/token/index.mjs +0 -12
  754. package/node_modules/typebox/build/type/script/token/integer.mjs +0 -19
  755. package/node_modules/typebox/build/type/script/token/internal/char.mjs +0 -26
  756. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +0 -15
  757. package/node_modules/typebox/build/type/script/token/internal/many.mjs +0 -14
  758. package/node_modules/typebox/build/type/script/token/internal/match.mjs +0 -11
  759. package/node_modules/typebox/build/type/script/token/internal/optional.mjs +0 -9
  760. package/node_modules/typebox/build/type/script/token/internal/take.mjs +0 -30
  761. package/node_modules/typebox/build/type/script/token/internal/trim.mjs +0 -34
  762. package/node_modules/typebox/build/type/script/token/number.mjs +0 -19
  763. package/node_modules/typebox/build/type/script/token/rest.mjs +0 -9
  764. package/node_modules/typebox/build/type/script/token/span.mjs +0 -24
  765. package/node_modules/typebox/build/type/script/token/string.mjs +0 -20
  766. package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +0 -26
  767. package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +0 -38
  768. package/node_modules/typebox/build/type/script/token/until.mjs +0 -21
  769. package/node_modules/typebox/build/type/script/token/until_1.mjs +0 -12
  770. package/node_modules/typebox/build/type/types/_codec.mjs +0 -60
  771. package/node_modules/typebox/build/type/types/_immutable.mjs +0 -18
  772. package/node_modules/typebox/build/type/types/_optional.mjs +0 -18
  773. package/node_modules/typebox/build/type/types/_readonly.mjs +0 -18
  774. package/node_modules/typebox/build/type/types/_refine.mjs +0 -36
  775. package/node_modules/typebox/build/type/types/any.mjs +0 -18
  776. package/node_modules/typebox/build/type/types/array.mjs +0 -25
  777. package/node_modules/typebox/build/type/types/bigint.mjs +0 -21
  778. package/node_modules/typebox/build/type/types/boolean.mjs +0 -17
  779. package/node_modules/typebox/build/type/types/call.mjs +0 -23
  780. package/node_modules/typebox/build/type/types/constructor.mjs +0 -24
  781. package/node_modules/typebox/build/type/types/cyclic.mjs +0 -29
  782. package/node_modules/typebox/build/type/types/deferred.mjs +0 -16
  783. package/node_modules/typebox/build/type/types/dependent.mjs +0 -24
  784. package/node_modules/typebox/build/type/types/enum.mjs +0 -22
  785. package/node_modules/typebox/build/type/types/function.mjs +0 -25
  786. package/node_modules/typebox/build/type/types/generic.mjs +0 -17
  787. package/node_modules/typebox/build/type/types/identifier.mjs +0 -17
  788. package/node_modules/typebox/build/type/types/index.mjs +0 -51
  789. package/node_modules/typebox/build/type/types/infer.mjs +0 -20
  790. package/node_modules/typebox/build/type/types/integer.mjs +0 -21
  791. package/node_modules/typebox/build/type/types/intersect.mjs +0 -24
  792. package/node_modules/typebox/build/type/types/literal.mjs +0 -62
  793. package/node_modules/typebox/build/type/types/never.mjs +0 -22
  794. package/node_modules/typebox/build/type/types/null.mjs +0 -17
  795. package/node_modules/typebox/build/type/types/number.mjs +0 -21
  796. package/node_modules/typebox/build/type/types/object.mjs +0 -28
  797. package/node_modules/typebox/build/type/types/parameter.mjs +0 -21
  798. package/node_modules/typebox/build/type/types/properties.mjs +0 -15
  799. package/node_modules/typebox/build/type/types/record.mjs +0 -66
  800. package/node_modules/typebox/build/type/types/ref.mjs +0 -18
  801. package/node_modules/typebox/build/type/types/rest.mjs +0 -17
  802. package/node_modules/typebox/build/type/types/schema.mjs +0 -15
  803. package/node_modules/typebox/build/type/types/static.mjs +0 -3
  804. package/node_modules/typebox/build/type/types/string.mjs +0 -22
  805. package/node_modules/typebox/build/type/types/symbol.mjs +0 -17
  806. package/node_modules/typebox/build/type/types/template_literal.mjs +0 -37
  807. package/node_modules/typebox/build/type/types/this.mjs +0 -17
  808. package/node_modules/typebox/build/type/types/tuple.mjs +0 -25
  809. package/node_modules/typebox/build/type/types/undefined.mjs +0 -17
  810. package/node_modules/typebox/build/type/types/union.mjs +0 -24
  811. package/node_modules/typebox/build/type/types/unknown.mjs +0 -17
  812. package/node_modules/typebox/build/type/types/unsafe.mjs +0 -20
  813. package/node_modules/typebox/build/type/types/void.mjs +0 -17
  814. package/node_modules/typebox/build/typebox.mjs +0 -85
  815. package/node_modules/typebox/build/value/assert/assert.mjs +0 -28
  816. package/node_modules/typebox/build/value/assert/index.mjs +0 -1
  817. package/node_modules/typebox/build/value/check/check.mjs +0 -11
  818. package/node_modules/typebox/build/value/check/index.mjs +0 -1
  819. package/node_modules/typebox/build/value/clean/additional.mjs +0 -6
  820. package/node_modules/typebox/build/value/clean/clean.mjs +0 -17
  821. package/node_modules/typebox/build/value/clean/from_array.mjs +0 -8
  822. package/node_modules/typebox/build/value/clean/from_cyclic.mjs +0 -6
  823. package/node_modules/typebox/build/value/clean/from_intersect.mjs +0 -26
  824. package/node_modules/typebox/build/value/clean/from_object.mjs +0 -31
  825. package/node_modules/typebox/build/value/clean/from_record.mjs +0 -32
  826. package/node_modules/typebox/build/value/clean/from_ref.mjs +0 -8
  827. package/node_modules/typebox/build/value/clean/from_tuple.mjs +0 -14
  828. package/node_modules/typebox/build/value/clean/from_type.mjs +0 -21
  829. package/node_modules/typebox/build/value/clean/from_union.mjs +0 -12
  830. package/node_modules/typebox/build/value/clean/index.mjs +0 -1
  831. package/node_modules/typebox/build/value/clone/clone.mjs +0 -12
  832. package/node_modules/typebox/build/value/clone/index.mjs +0 -1
  833. package/node_modules/typebox/build/value/codec/callback.mjs +0 -25
  834. package/node_modules/typebox/build/value/codec/decode.mjs +0 -52
  835. package/node_modules/typebox/build/value/codec/encode.mjs +0 -52
  836. package/node_modules/typebox/build/value/codec/from_array.mjs +0 -35
  837. package/node_modules/typebox/build/value/codec/from_cyclic.mjs +0 -8
  838. package/node_modules/typebox/build/value/codec/from_intersect.mjs +0 -58
  839. package/node_modules/typebox/build/value/codec/from_object.mjs +0 -42
  840. package/node_modules/typebox/build/value/codec/from_record.mjs +0 -39
  841. package/node_modules/typebox/build/value/codec/from_ref.mjs +0 -31
  842. package/node_modules/typebox/build/value/codec/from_tuple.mjs +0 -32
  843. package/node_modules/typebox/build/value/codec/from_type.mjs +0 -22
  844. package/node_modules/typebox/build/value/codec/from_union.mjs +0 -39
  845. package/node_modules/typebox/build/value/codec/has.mjs +0 -93
  846. package/node_modules/typebox/build/value/codec/index.mjs +0 -3
  847. package/node_modules/typebox/build/value/convert/convert.mjs +0 -15
  848. package/node_modules/typebox/build/value/convert/from_additional.mjs +0 -18
  849. package/node_modules/typebox/build/value/convert/from_array.mjs +0 -7
  850. package/node_modules/typebox/build/value/convert/from_bigint.mjs +0 -6
  851. package/node_modules/typebox/build/value/convert/from_boolean.mjs +0 -6
  852. package/node_modules/typebox/build/value/convert/from_cyclic.mjs +0 -6
  853. package/node_modules/typebox/build/value/convert/from_enum.mjs +0 -6
  854. package/node_modules/typebox/build/value/convert/from_integer.mjs +0 -6
  855. package/node_modules/typebox/build/value/convert/from_intersect.mjs +0 -8
  856. package/node_modules/typebox/build/value/convert/from_literal.mjs +0 -44
  857. package/node_modules/typebox/build/value/convert/from_null.mjs +0 -6
  858. package/node_modules/typebox/build/value/convert/from_number.mjs +0 -6
  859. package/node_modules/typebox/build/value/convert/from_object.mjs +0 -28
  860. package/node_modules/typebox/build/value/convert/from_record.mjs +0 -23
  861. package/node_modules/typebox/build/value/convert/from_ref.mjs +0 -8
  862. package/node_modules/typebox/build/value/convert/from_string.mjs +0 -6
  863. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +0 -6
  864. package/node_modules/typebox/build/value/convert/from_tuple.mjs +0 -11
  865. package/node_modules/typebox/build/value/convert/from_type.mjs +0 -43
  866. package/node_modules/typebox/build/value/convert/from_undefined.mjs +0 -6
  867. package/node_modules/typebox/build/value/convert/from_union.mjs +0 -13
  868. package/node_modules/typebox/build/value/convert/from_void.mjs +0 -6
  869. package/node_modules/typebox/build/value/convert/index.mjs +0 -1
  870. package/node_modules/typebox/build/value/convert/try/index.mjs +0 -1
  871. package/node_modules/typebox/build/value/convert/try/try.mjs +0 -8
  872. package/node_modules/typebox/build/value/convert/try/try_array.mjs +0 -6
  873. package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +0 -45
  874. package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +0 -41
  875. package/node_modules/typebox/build/value/convert/try/try_null.mjs +0 -44
  876. package/node_modules/typebox/build/value/convert/try/try_number.mjs +0 -44
  877. package/node_modules/typebox/build/value/convert/try/try_result.mjs +0 -17
  878. package/node_modules/typebox/build/value/convert/try/try_string.mjs +0 -12
  879. package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +0 -44
  880. package/node_modules/typebox/build/value/create/create.mjs +0 -11
  881. package/node_modules/typebox/build/value/create/error.mjs +0 -7
  882. package/node_modules/typebox/build/value/create/from_array.mjs +0 -10
  883. package/node_modules/typebox/build/value/create/from_bigint.mjs +0 -7
  884. package/node_modules/typebox/build/value/create/from_boolean.mjs +0 -4
  885. package/node_modules/typebox/build/value/create/from_constructor.mjs +0 -10
  886. package/node_modules/typebox/build/value/create/from_cyclic.mjs +0 -6
  887. package/node_modules/typebox/build/value/create/from_default.mjs +0 -10
  888. package/node_modules/typebox/build/value/create/from_enum.mjs +0 -6
  889. package/node_modules/typebox/build/value/create/from_function.mjs +0 -6
  890. package/node_modules/typebox/build/value/create/from_integer.mjs +0 -8
  891. package/node_modules/typebox/build/value/create/from_intersect.mjs +0 -8
  892. package/node_modules/typebox/build/value/create/from_literal.mjs +0 -4
  893. package/node_modules/typebox/build/value/create/from_never.mjs +0 -5
  894. package/node_modules/typebox/build/value/create/from_null.mjs +0 -4
  895. package/node_modules/typebox/build/value/create/from_number.mjs +0 -8
  896. package/node_modules/typebox/build/value/create/from_object.mjs +0 -9
  897. package/node_modules/typebox/build/value/create/from_record.mjs +0 -8
  898. package/node_modules/typebox/build/value/create/from_ref.mjs +0 -9
  899. package/node_modules/typebox/build/value/create/from_string.mjs +0 -9
  900. package/node_modules/typebox/build/value/create/from_symbol.mjs +0 -4
  901. package/node_modules/typebox/build/value/create/from_template_literal.mjs +0 -11
  902. package/node_modules/typebox/build/value/create/from_tuple.mjs +0 -5
  903. package/node_modules/typebox/build/value/create/from_type.mjs +0 -61
  904. package/node_modules/typebox/build/value/create/from_undefined.mjs +0 -4
  905. package/node_modules/typebox/build/value/create/from_union.mjs +0 -9
  906. package/node_modules/typebox/build/value/create/from_void.mjs +0 -4
  907. package/node_modules/typebox/build/value/create/index.mjs +0 -2
  908. package/node_modules/typebox/build/value/default/default.mjs +0 -15
  909. package/node_modules/typebox/build/value/default/from_array.mjs +0 -12
  910. package/node_modules/typebox/build/value/default/from_cyclic.mjs +0 -7
  911. package/node_modules/typebox/build/value/default/from_default.mjs +0 -13
  912. package/node_modules/typebox/build/value/default/from_intersect.mjs +0 -9
  913. package/node_modules/typebox/build/value/default/from_object.mjs +0 -32
  914. package/node_modules/typebox/build/value/default/from_record.mjs +0 -26
  915. package/node_modules/typebox/build/value/default/from_ref.mjs +0 -9
  916. package/node_modules/typebox/build/value/default/from_tuple.mjs +0 -14
  917. package/node_modules/typebox/build/value/default/from_type.mjs +0 -25
  918. package/node_modules/typebox/build/value/default/from_union.mjs +0 -14
  919. package/node_modules/typebox/build/value/default/index.mjs +0 -1
  920. package/node_modules/typebox/build/value/delta/diff.mjs +0 -135
  921. package/node_modules/typebox/build/value/delta/edit.mjs +0 -17
  922. package/node_modules/typebox/build/value/delta/index.mjs +0 -3
  923. package/node_modules/typebox/build/value/delta/patch.mjs +0 -42
  924. package/node_modules/typebox/build/value/equal/equal.mjs +0 -6
  925. package/node_modules/typebox/build/value/equal/index.mjs +0 -1
  926. package/node_modules/typebox/build/value/errors/errors.mjs +0 -12
  927. package/node_modules/typebox/build/value/errors/index.mjs +0 -1
  928. package/node_modules/typebox/build/value/hash/hash.mjs +0 -10
  929. package/node_modules/typebox/build/value/hash/index.mjs +0 -1
  930. package/node_modules/typebox/build/value/index.mjs +0 -29
  931. package/node_modules/typebox/build/value/parse/index.mjs +0 -1
  932. package/node_modules/typebox/build/value/parse/parse.mjs +0 -47
  933. package/node_modules/typebox/build/value/pipeline/index.mjs +0 -1
  934. package/node_modules/typebox/build/value/pipeline/pipeline.mjs +0 -15
  935. package/node_modules/typebox/build/value/pointer/index.mjs +0 -1
  936. package/node_modules/typebox/build/value/repair/error.mjs +0 -8
  937. package/node_modules/typebox/build/value/repair/from_array.mjs +0 -39
  938. package/node_modules/typebox/build/value/repair/from_enum.mjs +0 -6
  939. package/node_modules/typebox/build/value/repair/from_intersect.mjs +0 -8
  940. package/node_modules/typebox/build/value/repair/from_object.mjs +0 -33
  941. package/node_modules/typebox/build/value/repair/from_record.mjs +0 -33
  942. package/node_modules/typebox/build/value/repair/from_ref.mjs +0 -9
  943. package/node_modules/typebox/build/value/repair/from_template_literal.mjs +0 -7
  944. package/node_modules/typebox/build/value/repair/from_tuple.mjs +0 -12
  945. package/node_modules/typebox/build/value/repair/from_type.mjs +0 -88
  946. package/node_modules/typebox/build/value/repair/from_union.mjs +0 -24
  947. package/node_modules/typebox/build/value/repair/from_unknown.mjs +0 -12
  948. package/node_modules/typebox/build/value/repair/index.mjs +0 -1
  949. package/node_modules/typebox/build/value/repair/repair.mjs +0 -20
  950. package/node_modules/typebox/build/value/shared/index.mjs +0 -4
  951. package/node_modules/typebox/build/value/shared/optional_undefined.mjs +0 -15
  952. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +0 -72
  953. package/node_modules/typebox/build/value/shared/union_score_select.mjs +0 -51
  954. package/node_modules/typebox/build/value/value.mjs +0 -15
  955. package/node_modules/typebox/package.json +0 -87
  956. package/node_modules/typebox/readme.md +0 -371
  957. /package/node_modules/{typebox/license → @earendil-works/pi-schema/LICENSES/typebox-LICENSE} +0 -0
@@ -1,44 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../../guard/index.mjs';
3
- import { Ok, Fail, IsOk } from './try_result.mjs';
4
- import { TryBigInt } from './try_bigint.mjs';
5
- // ------------------------------------------------------------------
6
- // BigInt
7
- // ------------------------------------------------------------------
8
- const maxBigInt = BigInt(Number.MAX_SAFE_INTEGER);
9
- const minBigInt = BigInt(Number.MIN_SAFE_INTEGER);
10
- function FromBigInt(value) {
11
- return (value <= maxBigInt && value >= minBigInt) ? Ok(Number(value)) : Fail();
12
- }
13
- function FromBoolean(value) {
14
- return Ok(value ? 1 : 0);
15
- }
16
- // ------------------------------------------------------------------
17
- // String
18
- // ------------------------------------------------------------------
19
- function FromString(value) {
20
- const coerced = +value;
21
- if (Guard.IsNumber(coerced))
22
- return Ok(coerced);
23
- const lowercase = value.toLowerCase();
24
- if (Guard.IsEqual(lowercase, 'false'))
25
- return Ok(0);
26
- if (Guard.IsEqual(lowercase, 'true'))
27
- return Ok(1);
28
- const result = TryBigInt(value);
29
- if (IsOk(result))
30
- return (result.value <= maxBigInt && result.value >= minBigInt) ? Ok(Number(result.value)) : Fail();
31
- return Fail();
32
- }
33
- // ------------------------------------------------------------------
34
- // Try
35
- // ------------------------------------------------------------------
36
- export function TryNumber(value) {
37
- return (Guard.IsBigInt(value) ? FromBigInt(value) :
38
- Guard.IsBoolean(value) ? FromBoolean(value) :
39
- Guard.IsNumber(value) ? Ok(value) :
40
- Guard.IsNull(value) ? Ok(0) :
41
- Guard.IsString(value) ? FromString(value) :
42
- Guard.IsUndefined(value) ? Ok(0) :
43
- Fail());
44
- }
@@ -1,17 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../../guard/index.mjs';
3
- // ------------------------------------------------------------------
4
- // Guard
5
- // ------------------------------------------------------------------
6
- export function IsOk(value) {
7
- return Guard.IsObject(value) && Guard.HasPropertyKey(value, 'value');
8
- }
9
- // ------------------------------------------------------------------
10
- // Factory
11
- // ------------------------------------------------------------------
12
- export function Ok(value) {
13
- return { value };
14
- }
15
- export function Fail() {
16
- return undefined;
17
- }
@@ -1,12 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../../guard/index.mjs';
3
- import { Ok, Fail } from './try_result.mjs';
4
- export function TryString(value) {
5
- return (Guard.IsBigInt(value) ? Ok(value.toString()) :
6
- Guard.IsBoolean(value) ? Ok(value.toString()) :
7
- Guard.IsNumber(value) ? Ok(value.toString()) :
8
- Guard.IsNull(value) ? Ok('null') :
9
- Guard.IsString(value) ? Ok(value) :
10
- Guard.IsUndefined(value) ? Ok('') :
11
- Fail());
12
- }
@@ -1,44 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../../guard/index.mjs';
3
- import { Ok, Fail } from './try_result.mjs';
4
- // ------------------------------------------------------------------
5
- // BigInt
6
- // ------------------------------------------------------------------
7
- function FromBigInt(value) {
8
- return Guard.IsEqual(value, BigInt(0)) ? Ok(undefined) : Fail();
9
- }
10
- // ------------------------------------------------------------------
11
- // Boolean
12
- // ------------------------------------------------------------------
13
- function FromBoolean(value) {
14
- return Guard.IsEqual(value, false) ? Ok(undefined) : Fail();
15
- }
16
- // ------------------------------------------------------------------
17
- // Number
18
- // ------------------------------------------------------------------
19
- function FromNumber(value) {
20
- return Guard.IsEqual(value, 0) ? Ok(undefined) : Fail();
21
- }
22
- // ------------------------------------------------------------------
23
- // String
24
- // ------------------------------------------------------------------
25
- function FromString(value) {
26
- const lowercase = value.toLowerCase();
27
- const predicate = Guard.IsEqual(lowercase, 'undefined')
28
- || Guard.IsEqual(lowercase, 'null')
29
- || Guard.IsEqual(value, '')
30
- || Guard.IsEqual(value, '0');
31
- return predicate ? Ok(undefined) : Fail();
32
- }
33
- // ------------------------------------------------------------------
34
- // Try
35
- // ------------------------------------------------------------------
36
- export function TryUndefined(value) {
37
- return (Guard.IsBigInt(value) ? FromBigInt(value) :
38
- Guard.IsBoolean(value) ? FromBoolean(value) :
39
- Guard.IsNumber(value) ? FromNumber(value) :
40
- Guard.IsNull(value) ? Ok(undefined) :
41
- Guard.IsString(value) ? FromString(value) :
42
- Guard.IsUndefined(value) ? Ok(value) :
43
- Fail());
44
- }
@@ -1,11 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Arguments } from '../../system/arguments/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- /** Creates a value from the provided type. This function will use `default` annotations if present. */
5
- export function Create(...args) {
6
- const [context, type] = Arguments.Match(args, {
7
- 2: (context, type) => [context, type],
8
- 1: (type) => [{}, type],
9
- });
10
- return FromType(context, type);
11
- }
@@ -1,7 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export class CreateError extends Error {
3
- constructor(type, message) {
4
- super(message);
5
- this.type = type;
6
- }
7
- }
@@ -1,10 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { IsUniqueItems, IsDefault, IsMinItems } from '../../schema/types/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- import { CreateError } from './error.mjs';
5
- export function FromArray(context, type) {
6
- if (IsUniqueItems(type) && !IsDefault(type))
7
- throw new CreateError(type, 'Arrays with uniqueItems constraints must specify a default annotation');
8
- const length = IsMinItems(type) ? type.minItems : 0;
9
- return Array.from({ length }, () => FromType(context, type.items));
10
- }
@@ -1,7 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { IsExclusiveMinimum, IsMinimum } from '../../schema/types/index.mjs';
3
- export function FromBigInt(_context, type) {
4
- return (IsExclusiveMinimum(type) ? BigInt(type.exclusiveMinimum) + BigInt(1) :
5
- IsMinimum(type) ? BigInt(type.minimum) :
6
- BigInt(0));
7
- }
@@ -1,4 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export function FromBoolean(_context, _type) {
3
- return false;
4
- }
@@ -1,10 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { FromType } from './from_type.mjs';
3
- export function FromConstructor(context, type) {
4
- const instanceType = FromType(context, type.instanceType);
5
- return class {
6
- constructor() {
7
- Object.assign(this, instanceType);
8
- }
9
- };
10
- }
@@ -1,6 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Ref } from '../../type/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- export function FromCyclic(context, type) {
5
- return FromType({ ...context, ...type.$defs }, Ref(type.$ref));
6
- }
@@ -1,10 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- import { Clone } from '../clone/index.mjs';
4
- export function FromDefault(_context, schema) {
5
- return Guard.IsFunction(schema.default)
6
- ? schema.default(schema)
7
- : Guard.IsObject(schema.default)
8
- ? Clone(schema.default)
9
- : schema.default;
10
- }
@@ -1,6 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Evaluate } from '../../type/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- export function FromEnum(context, type) {
5
- return FromType(context, Evaluate(type));
6
- }
@@ -1,6 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { FromType } from './from_type.mjs';
3
- export function FromFunction(context, type) {
4
- const returnType = FromType(context, type.returnType);
5
- return () => returnType;
6
- }
@@ -1,8 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- import { IsExclusiveMinimum, IsMinimum } from '../../schema/types/index.mjs';
4
- export function FromInteger(_context, type) {
5
- return ((IsExclusiveMinimum(type) && Guard.IsNumber(type.exclusiveMinimum)) ? type.exclusiveMinimum + 1 :
6
- IsMinimum(type) ? type.minimum :
7
- 0);
8
- }
@@ -1,8 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Evaluate, Instantiate } from '../../type/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- export function FromIntersect(context, type) {
5
- const instantiated = Instantiate(context, type);
6
- const evaluated = Evaluate(instantiated);
7
- return FromType(context, evaluated);
8
- }
@@ -1,4 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export function FromLiteral(_context, type) {
3
- return type.const;
4
- }
@@ -1,5 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { CreateError } from './error.mjs';
3
- export function FromNever(_context, type) {
4
- throw new CreateError(type, 'Cannot create TNever types');
5
- }
@@ -1,4 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export function FromNull(_context, _type) {
3
- return null;
4
- }
@@ -1,8 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- import { IsExclusiveMinimum, IsMinimum } from '../../schema/types/index.mjs';
4
- export function FromNumber(_context, type) {
5
- return (IsExclusiveMinimum(type) && Guard.IsNumber(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 :
6
- IsMinimum(type) ? type.minimum :
7
- 0);
8
- }
@@ -1,9 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- export function FromObject(context, type) {
5
- const required = Guard.IsUndefined(type.required) ? [] : type.required;
6
- return required.reduce((result, key) => {
7
- return { ...result, [key]: FromType(context, type.properties[key]) };
8
- }, {});
9
- }
@@ -1,8 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { IsMinProperties, IsDefault } from '../../schema/types/index.mjs';
3
- import { CreateError } from './error.mjs';
4
- export function FromRecord(_context, type) {
5
- if (IsMinProperties(type) && !IsDefault(type))
6
- throw new CreateError(type, 'Record with the minProperties constraint must have a default annotation');
7
- return {};
8
- }
@@ -1,9 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- import { CreateError } from './error.mjs';
5
- export function FromRef(context, type) {
6
- return Guard.HasPropertyKey(context, type.$ref)
7
- ? FromType(context, context[type.$ref])
8
- : (() => { throw new CreateError(type, 'Unable to deref Ref'); })();
9
- }
@@ -1,9 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { IsPattern, IsFormat, IsDefault, IsMinLength } from '../../schema/types/index.mjs';
3
- export function FromString(_context, type) {
4
- const needsDefault = (IsPattern(type) || IsFormat(type)) && !IsDefault(type);
5
- if (needsDefault)
6
- throw Error('Strings with format or pattern constraints must specify default');
7
- const minLength = IsMinLength(type) ? type.minLength : 0;
8
- return ''.padEnd(minLength);
9
- }
@@ -1,4 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export function FromSymbol(_context, _type) {
3
- return Symbol();
4
- }
@@ -1,11 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { IsString } from '../../type/index.mjs';
3
- import { TemplateLiteralDecode } from '../../type/engine/template_literal/index.mjs';
4
- import { FromType } from './from_type.mjs';
5
- import { CreateError } from './error.mjs';
6
- export function FromTemplateLiteral(context, type) {
7
- const decoded = TemplateLiteralDecode(type.pattern);
8
- if (IsString(decoded))
9
- throw new CreateError(type, 'Unable to create TemplateLiteral due to infinite type expansion');
10
- return FromType(context, decoded);
11
- }
@@ -1,5 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { FromType } from './from_type.mjs';
3
- export function FromTuple(context, type) {
4
- return Array.from({ length: type.minItems }, (_, i) => FromType(context, type.items[i]));
5
- }
@@ -1,61 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import * as T from '../../type/index.mjs';
3
- import * as S from '../../schema/types/index.mjs';
4
- import { FromDefault } from './from_default.mjs';
5
- import { FromArray } from './from_array.mjs';
6
- import { FromBigInt } from './from_bigint.mjs';
7
- import { FromBoolean } from './from_boolean.mjs';
8
- import { FromConstructor } from './from_constructor.mjs';
9
- import { FromCyclic } from './from_cyclic.mjs';
10
- import { FromEnum } from './from_enum.mjs';
11
- import { FromFunction } from './from_function.mjs';
12
- import { FromInteger } from './from_integer.mjs';
13
- import { FromIntersect } from './from_intersect.mjs';
14
- import { FromLiteral } from './from_literal.mjs';
15
- import { FromNever } from './from_never.mjs';
16
- import { FromNull } from './from_null.mjs';
17
- import { FromNumber } from './from_number.mjs';
18
- import { FromObject } from './from_object.mjs';
19
- import { FromRecord } from './from_record.mjs';
20
- import { FromRef } from './from_ref.mjs';
21
- import { FromString } from './from_string.mjs';
22
- import { FromSymbol } from './from_symbol.mjs';
23
- import { FromTemplateLiteral } from './from_template_literal.mjs';
24
- import { FromTuple } from './from_tuple.mjs';
25
- import { FromUndefined } from './from_undefined.mjs';
26
- import { FromUnion } from './from_union.mjs';
27
- import { FromVoid } from './from_void.mjs';
28
- export function FromType(context, type) {
29
- return (
30
- // -----------------------------------------------------
31
- // Default
32
- // -----------------------------------------------------
33
- S.IsDefault(type) ? FromDefault(context, type) :
34
- // -----------------------------------------------------
35
- // Types
36
- // -----------------------------------------------------
37
- T.IsArray(type) ? FromArray(context, type) :
38
- T.IsBigInt(type) ? FromBigInt(context, type) :
39
- T.IsBoolean(type) ? FromBoolean(context, type) :
40
- T.IsConstructor(type) ? FromConstructor(context, type) :
41
- T.IsCyclic(type) ? FromCyclic(context, type) :
42
- T.IsEnum(type) ? FromEnum(context, type) :
43
- T.IsFunction(type) ? FromFunction(context, type) :
44
- T.IsInteger(type) ? FromInteger(context, type) :
45
- T.IsIntersect(type) ? FromIntersect(context, type) :
46
- T.IsLiteral(type) ? FromLiteral(context, type) :
47
- T.IsNever(type) ? FromNever(context, type) :
48
- T.IsNull(type) ? FromNull(context, type) :
49
- T.IsNumber(type) ? FromNumber(context, type) :
50
- T.IsObject(type) ? FromObject(context, type) :
51
- T.IsRecord(type) ? FromRecord(context, type) :
52
- T.IsRef(type) ? FromRef(context, type) :
53
- T.IsString(type) ? FromString(context, type) :
54
- T.IsSymbol(type) ? FromSymbol(context, type) :
55
- T.IsTemplateLiteral(type) ? FromTemplateLiteral(context, type) :
56
- T.IsTuple(type) ? FromTuple(context, type) :
57
- T.IsUndefined(type) ? FromUndefined(context, type) :
58
- T.IsUnion(type) ? FromUnion(context, type) :
59
- T.IsVoid(type) ? FromVoid(context, type) :
60
- undefined);
61
- }
@@ -1,4 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export function FromUndefined(_context, _type) {
3
- return undefined;
4
- }
@@ -1,9 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- export function FromUnion(context, type) {
5
- if (Guard.IsEqual(type.anyOf.length, 0)) {
6
- throw Error('Unable to create Union with no variants');
7
- }
8
- return FromType(context, type.anyOf[0]);
9
- }
@@ -1,4 +0,0 @@
1
- // deno-fmt-ignore-file
2
- export function FromVoid(_context, _type) {
3
- return void 0;
4
- }
@@ -1,2 +0,0 @@
1
- export * from './error.mjs';
2
- export * from './create.mjs';
@@ -1,15 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Arguments } from '../../system/arguments/index.mjs';
3
- import { FromType } from './from_type.mjs';
4
- /**
5
- * Patches missing properties on the value using default annotations specified on the provided type. This
6
- * function returns unknown so callers should Check the return value before use. This function mutates the
7
- * provided value. If mutation is not wanted, you should Clone the value before passing to this function.
8
- */
9
- export function Default(...args) {
10
- const [context, type, value] = Arguments.Match(args, {
11
- 3: (context, type, value) => [context, type, value],
12
- 2: (type, value) => [{}, type, value],
13
- });
14
- return FromType(context, type, value);
15
- }
@@ -1,12 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Guard } from '../../guard/index.mjs';
4
- import { FromType } from './from_type.mjs';
5
- export function FromArray(context, type, value) {
6
- if (!Guard.IsArray(value))
7
- return value;
8
- for (let i = 0; i < value.length; i++) {
9
- value[i] = FromType(context, type.items, value[i]);
10
- }
11
- return value;
12
- }
@@ -1,7 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Ref } from '../../type/index.mjs';
4
- import { FromType } from './from_type.mjs';
5
- export function FromCyclic(context, type, value) {
6
- return FromType({ ...context, ...type.$defs }, Ref(type.$ref), value);
7
- }
@@ -1,13 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Guard } from '../../guard/index.mjs';
4
- import { Clone } from '../clone/index.mjs';
5
- // ------------------------------------------------------------------
6
- // FromDefault
7
- // ------------------------------------------------------------------
8
- export function FromDefault(type, value) {
9
- // we only use defaults when values are undefined, exit early
10
- if (!Guard.IsUndefined(value))
11
- return value;
12
- return Guard.IsFunction(type.default) ? type.default() : Clone(type.default);
13
- }
@@ -1,9 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Evaluate, Instantiate } from '../../type/index.mjs';
4
- import { FromType } from './from_type.mjs';
5
- export function FromIntersect(context, type, value) {
6
- const instantiated = Instantiate(context, type);
7
- const evaluated = Evaluate(instantiated);
8
- return FromType(context, evaluated, value);
9
- }
@@ -1,32 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { IsOptional } from '../../type/index.mjs';
4
- import { Guard } from '../../guard/index.mjs';
5
- import { FromType } from './from_type.mjs';
6
- import { IsAdditionalProperties } from '../../schema/types/index.mjs';
7
- export function FromObject(context, type, value) {
8
- if (!Guard.IsObject(value))
9
- return value;
10
- const knownPropertyKeys = Guard.Keys(type.properties);
11
- // Properties
12
- for (const key of knownPropertyKeys) {
13
- // Resolve Value for Property
14
- const propertyValue = FromType(context, type.properties[key], value[key]);
15
- // Ambiguious Undefined: If the value is undefined, the type is optional there's no default. ignore.
16
- const isUnassignableUndefined = Guard.IsUndefined(propertyValue) && (IsOptional(type.properties[key]) || !Guard.HasPropertyKey(type.properties[key], 'default'));
17
- if (isUnassignableUndefined)
18
- continue;
19
- // Assign
20
- value[key] = propertyValue;
21
- }
22
- // return if not additional properties
23
- if (!IsAdditionalProperties(type) || Guard.IsBoolean(type.additionalProperties))
24
- return value;
25
- // AdditionalProperties
26
- for (const key of Guard.Keys(value)) {
27
- if (knownPropertyKeys.includes(key))
28
- continue;
29
- value[key] = FromType(context, type.additionalProperties, value[key]);
30
- }
31
- return value;
32
- }
@@ -1,26 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { RecordPattern, RecordValue } from '../../type/index.mjs';
4
- import { IsAdditionalProperties, IsDefault } from '../../schema/types/index.mjs';
5
- import { Guard } from '../../guard/index.mjs';
6
- import { FromType } from './from_type.mjs';
7
- export function FromRecord(context, type, value) {
8
- if (!Guard.IsObject(value))
9
- return value;
10
- // PatternProperties
11
- const [recordKey, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)];
12
- for (const key of Guard.Keys(value)) {
13
- if (!(recordKey.test(key) && IsDefault(recordValue)))
14
- continue;
15
- value[key] = FromType(context, recordValue, value[key]);
16
- }
17
- // AdditionalProperties
18
- if (!IsAdditionalProperties(type))
19
- return value;
20
- for (const key of Guard.Keys(value)) {
21
- if (recordKey.test(key))
22
- continue;
23
- value[key] = FromType(context, type.additionalProperties, value[key]);
24
- }
25
- return value;
26
- }
@@ -1,9 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Guard } from '../../guard/index.mjs';
4
- import { FromType } from './from_type.mjs';
5
- export function FromRef(context, type, value) {
6
- return Guard.HasPropertyKey(context, type.$ref)
7
- ? FromType(context, context[type.$ref], value)
8
- : value;
9
- }
@@ -1,14 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Guard } from '../../guard/index.mjs';
4
- import { FromType } from './from_type.mjs';
5
- export function FromTuple(context, schema, value) {
6
- if (!Guard.IsArray(value))
7
- return value;
8
- const [items, max] = [schema.items, Math.max(schema.items.length, value.length)];
9
- for (let i = 0; i < max; i++) {
10
- if (i < items.length)
11
- value[i] = FromType(context, items[i], value[i]);
12
- }
13
- return value;
14
- }
@@ -1,25 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { IsDefault } from '../../schema/index.mjs';
4
- import * as T from '../../type/index.mjs';
5
- import { FromArray } from './from_array.mjs';
6
- import { FromCyclic } from './from_cyclic.mjs';
7
- import { FromDefault } from './from_default.mjs';
8
- import { FromIntersect } from './from_intersect.mjs';
9
- import { FromObject } from './from_object.mjs';
10
- import { FromRecord } from './from_record.mjs';
11
- import { FromRef } from './from_ref.mjs';
12
- import { FromTuple } from './from_tuple.mjs';
13
- import { FromUnion } from './from_union.mjs';
14
- export function FromType(context, type, value) {
15
- const defaulted = IsDefault(type) ? FromDefault(type, value) : value;
16
- return (T.IsArray(type) ? FromArray(context, type, defaulted) :
17
- T.IsCyclic(type) ? FromCyclic(context, type, defaulted) :
18
- T.IsIntersect(type) ? FromIntersect(context, type, defaulted) :
19
- T.IsObject(type) ? FromObject(context, type, defaulted) :
20
- T.IsRecord(type) ? FromRecord(context, type, defaulted) :
21
- T.IsRef(type) ? FromRef(context, type, defaulted) :
22
- T.IsTuple(type) ? FromTuple(context, type, defaulted) :
23
- T.IsUnion(type) ? FromUnion(context, type, defaulted) :
24
- defaulted);
25
- }
@@ -1,14 +0,0 @@
1
- // deno-fmt-ignore-file
2
- // deno-lint-ignore-file
3
- import { Check } from '../check/index.mjs';
4
- import { Clone } from '../clone/index.mjs';
5
- import { FromType } from './from_type.mjs';
6
- export function FromUnion(context, schema, value) {
7
- for (const inner of schema.anyOf) {
8
- const result = FromType(context, inner, Clone(value));
9
- if (Check(context, inner, result)) {
10
- return result;
11
- }
12
- }
13
- return value;
14
- }
@@ -1 +0,0 @@
1
- export * from './default.mjs';