@nocobase/plugin-ai 2.0.10 → 2.0.12

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 (3684) hide show
  1. package/build.config.ts +7 -169
  2. package/dist/client/ai-employees/types.d.ts +4 -0
  3. package/dist/client/debug-logger.d.ts +1 -1
  4. package/dist/client/ec49f77e01b20f2f.js +10 -0
  5. package/dist/client/index.js +2 -2
  6. package/dist/externalVersion.js +24 -14
  7. package/dist/locale/en-US.json +3 -1
  8. package/dist/locale/zh-CN.json +3 -1
  9. package/dist/node_modules/fast-glob/out/index.d.ts +40 -0
  10. package/dist/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  11. package/dist/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  12. package/dist/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  13. package/dist/node_modules/fast-glob/out/providers/filters/entry.d.ts +16 -0
  14. package/dist/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  15. package/dist/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  16. package/dist/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  17. package/dist/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  18. package/dist/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  19. package/dist/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  20. package/dist/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  21. package/dist/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  22. package/dist/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  23. package/dist/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  24. package/dist/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  25. package/dist/node_modules/fast-glob/out/settings.d.ts +164 -0
  26. package/dist/node_modules/fast-glob/out/types/index.d.ts +31 -0
  27. package/dist/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  28. package/dist/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  29. package/dist/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  30. package/dist/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  31. package/dist/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  32. package/dist/node_modules/fast-glob/out/utils/pattern.d.ts +47 -0
  33. package/dist/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  34. package/dist/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  35. package/dist/node_modules/fast-glob/package.json +1 -1
  36. package/dist/node_modules/flexsearch/index.d.ts +1140 -0
  37. package/dist/node_modules/flexsearch/package.json +1 -1
  38. package/dist/node_modules/fs-extra/package.json +1 -1
  39. package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.d.ts +62 -0
  40. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  41. package/dist/node_modules/openai/LICENSE +201 -0
  42. package/dist/node_modules/openai/_vendor/partial-json-parser/parser.d.mts +7 -0
  43. package/dist/node_modules/openai/_vendor/partial-json-parser/parser.d.ts +7 -0
  44. package/dist/node_modules/openai/_vendor/partial-json-parser/parser.js +246 -0
  45. package/dist/node_modules/openai/_vendor/zod-to-json-schema/Options.d.mts +32 -0
  46. package/dist/node_modules/openai/_vendor/zod-to-json-schema/Options.d.ts +32 -0
  47. package/dist/node_modules/openai/_vendor/zod-to-json-schema/Options.js +42 -0
  48. package/dist/node_modules/openai/_vendor/zod-to-json-schema/Refs.d.mts +21 -0
  49. package/dist/node_modules/openai/_vendor/zod-to-json-schema/Refs.d.ts +21 -0
  50. package/dist/node_modules/openai/_vendor/zod-to-json-schema/Refs.js +28 -0
  51. package/dist/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.d.mts +12 -0
  52. package/dist/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.d.ts +12 -0
  53. package/dist/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.js +19 -0
  54. package/dist/node_modules/openai/_vendor/zod-to-json-schema/index.d.mts +38 -0
  55. package/dist/node_modules/openai/_vendor/zod-to-json-schema/index.d.ts +38 -0
  56. package/dist/node_modules/openai/_vendor/zod-to-json-schema/index.js +41 -0
  57. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.mts +38 -0
  58. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.ts +38 -0
  59. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parseDef.js +186 -0
  60. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts +3 -0
  61. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts +3 -0
  62. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js +7 -0
  63. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts +13 -0
  64. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts +13 -0
  65. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js +29 -0
  66. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts +15 -0
  67. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts +15 -0
  68. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js +53 -0
  69. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts +5 -0
  70. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts +5 -0
  71. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js +9 -0
  72. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts +4 -0
  73. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts +4 -0
  74. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js +8 -0
  75. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts +4 -0
  76. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts +4 -0
  77. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js +9 -0
  78. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts +16 -0
  79. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts +16 -0
  80. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js +50 -0
  81. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts +7 -0
  82. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts +7 -0
  83. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js +11 -0
  84. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts +5 -0
  85. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts +5 -0
  86. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js +8 -0
  87. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts +7 -0
  88. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts +7 -0
  89. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js +10 -0
  90. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts +9 -0
  91. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts +9 -0
  92. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js +53 -0
  93. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts +10 -0
  94. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts +10 -0
  95. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js +25 -0
  96. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts +16 -0
  97. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts +16 -0
  98. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.js +29 -0
  99. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +7 -0
  100. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +7 -0
  101. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js +20 -0
  102. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.mts +5 -0
  103. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts +5 -0
  104. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.js +9 -0
  105. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.mts +6 -0
  106. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts +6 -0
  107. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js +14 -0
  108. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.mts +11 -0
  109. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts +11 -0
  110. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js +34 -0
  111. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.d.mts +14 -0
  112. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.d.ts +14 -0
  113. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.js +56 -0
  114. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.d.mts +11 -0
  115. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.d.ts +11 -0
  116. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.js +57 -0
  117. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.mts +5 -0
  118. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.ts +5 -0
  119. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.js +26 -0
  120. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +6 -0
  121. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +6 -0
  122. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.js +25 -0
  123. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.mts +5 -0
  124. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.ts +5 -0
  125. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.js +8 -0
  126. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts +4 -0
  127. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts +4 -0
  128. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.js +9 -0
  129. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.d.mts +14 -0
  130. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.d.ts +14 -0
  131. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.js +49 -0
  132. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.d.mts +14 -0
  133. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.d.ts +14 -0
  134. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.js +24 -0
  135. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.d.mts +70 -0
  136. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.d.ts +70 -0
  137. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.js +316 -0
  138. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.d.mts +14 -0
  139. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.d.ts +14 -0
  140. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.js +36 -0
  141. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.d.mts +5 -0
  142. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.d.ts +5 -0
  143. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.js +9 -0
  144. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.d.mts +24 -0
  145. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.d.ts +24 -0
  146. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.js +77 -0
  147. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.d.mts +3 -0
  148. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.d.ts +3 -0
  149. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.js +7 -0
  150. package/dist/node_modules/openai/_vendor/zod-to-json-schema/util.d.mts +4 -0
  151. package/dist/node_modules/openai/_vendor/zod-to-json-schema/util.d.ts +4 -0
  152. package/dist/node_modules/openai/_vendor/zod-to-json-schema/util.js +16 -0
  153. package/dist/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +11 -0
  154. package/dist/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +11 -0
  155. package/dist/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.js +82 -0
  156. package/dist/node_modules/openai/api-promise.d.mts +2 -0
  157. package/dist/node_modules/openai/api-promise.d.ts +2 -0
  158. package/dist/node_modules/openai/api-promise.js +6 -0
  159. package/dist/node_modules/openai/azure.d.mts +63 -0
  160. package/dist/node_modules/openai/azure.d.ts +63 -0
  161. package/dist/node_modules/openai/azure.js +97 -0
  162. package/dist/node_modules/openai/beta/realtime/index.d.mts +2 -0
  163. package/dist/node_modules/openai/beta/realtime/index.d.ts +2 -0
  164. package/dist/node_modules/openai/beta/realtime/index.js +6 -0
  165. package/dist/node_modules/openai/beta/realtime/internal-base.d.mts +45 -0
  166. package/dist/node_modules/openai/beta/realtime/internal-base.d.ts +45 -0
  167. package/dist/node_modules/openai/beta/realtime/internal-base.js +55 -0
  168. package/dist/node_modules/openai/beta/realtime/websocket.d.mts +36 -0
  169. package/dist/node_modules/openai/beta/realtime/websocket.d.ts +36 -0
  170. package/dist/node_modules/openai/beta/realtime/websocket.js +110 -0
  171. package/dist/node_modules/openai/beta/realtime/ws.d.mts +27 -0
  172. package/dist/node_modules/openai/beta/realtime/ws.d.ts +27 -0
  173. package/dist/node_modules/openai/beta/realtime/ws.js +93 -0
  174. package/dist/node_modules/openai/bin/cli +52 -0
  175. package/dist/node_modules/openai/bin/migration-config.json +1038 -0
  176. package/dist/node_modules/openai/client.d.mts +304 -0
  177. package/dist/node_modules/openai/client.d.ts +304 -0
  178. package/dist/node_modules/openai/client.js +574 -0
  179. package/dist/node_modules/openai/core/api-promise.d.mts +49 -0
  180. package/dist/node_modules/openai/core/api-promise.d.ts +49 -0
  181. package/dist/node_modules/openai/core/api-promise.js +76 -0
  182. package/dist/node_modules/openai/core/error.d.mts +59 -0
  183. package/dist/node_modules/openai/core/error.d.ts +59 -0
  184. package/dist/node_modules/openai/core/error.js +136 -0
  185. package/dist/node_modules/openai/core/pagination.d.mts +89 -0
  186. package/dist/node_modules/openai/core/pagination.d.ts +89 -0
  187. package/dist/node_modules/openai/core/pagination.js +156 -0
  188. package/dist/node_modules/openai/core/resource.d.mts +6 -0
  189. package/dist/node_modules/openai/core/resource.d.ts +6 -0
  190. package/dist/node_modules/openai/core/resource.js +11 -0
  191. package/dist/node_modules/openai/core/streaming.d.mts +33 -0
  192. package/dist/node_modules/openai/core/streaming.d.ts +33 -0
  193. package/dist/node_modules/openai/core/streaming.js +293 -0
  194. package/dist/node_modules/openai/core/uploads.d.mts +3 -0
  195. package/dist/node_modules/openai/core/uploads.d.ts +3 -0
  196. package/dist/node_modules/openai/core/uploads.js +6 -0
  197. package/dist/node_modules/openai/error.d.mts +2 -0
  198. package/dist/node_modules/openai/error.d.ts +2 -0
  199. package/dist/node_modules/openai/error.js +6 -0
  200. package/dist/node_modules/openai/helpers/audio.d.mts +9 -0
  201. package/dist/node_modules/openai/helpers/audio.d.ts +9 -0
  202. package/dist/node_modules/openai/helpers/audio.js +122 -0
  203. package/dist/node_modules/openai/helpers/zod.d.mts +73 -0
  204. package/dist/node_modules/openai/helpers/zod.d.ts +73 -0
  205. package/dist/node_modules/openai/helpers/zod.js +123 -0
  206. package/dist/node_modules/openai/index.d.mts +8 -0
  207. package/dist/node_modules/openai/index.d.ts +8 -0
  208. package/dist/node_modules/openai/index.js +1 -0
  209. package/dist/node_modules/openai/internal/builtin-types.d.mts +73 -0
  210. package/dist/node_modules/openai/internal/builtin-types.d.ts +73 -0
  211. package/dist/node_modules/openai/internal/builtin-types.js +4 -0
  212. package/dist/node_modules/openai/internal/decoders/line.d.mts +17 -0
  213. package/dist/node_modules/openai/internal/decoders/line.d.ts +17 -0
  214. package/dist/node_modules/openai/internal/decoders/line.js +113 -0
  215. package/dist/node_modules/openai/internal/detect-platform.d.mts +15 -0
  216. package/dist/node_modules/openai/internal/detect-platform.d.ts +15 -0
  217. package/dist/node_modules/openai/internal/detect-platform.js +162 -0
  218. package/dist/node_modules/openai/internal/errors.d.mts +3 -0
  219. package/dist/node_modules/openai/internal/errors.d.ts +3 -0
  220. package/dist/node_modules/openai/internal/errors.js +41 -0
  221. package/dist/node_modules/openai/internal/headers.d.mts +20 -0
  222. package/dist/node_modules/openai/internal/headers.d.ts +20 -0
  223. package/dist/node_modules/openai/internal/headers.js +79 -0
  224. package/dist/node_modules/openai/internal/parse.d.mts +17 -0
  225. package/dist/node_modules/openai/internal/parse.d.ts +17 -0
  226. package/dist/node_modules/openai/internal/parse.js +60 -0
  227. package/dist/node_modules/openai/internal/qs/formats.d.mts +7 -0
  228. package/dist/node_modules/openai/internal/qs/formats.d.ts +7 -0
  229. package/dist/node_modules/openai/internal/qs/formats.js +13 -0
  230. package/dist/node_modules/openai/internal/qs/index.d.mts +10 -0
  231. package/dist/node_modules/openai/internal/qs/index.d.ts +10 -0
  232. package/dist/node_modules/openai/internal/qs/index.js +14 -0
  233. package/dist/node_modules/openai/internal/qs/stringify.d.mts +3 -0
  234. package/dist/node_modules/openai/internal/qs/stringify.d.ts +3 -0
  235. package/dist/node_modules/openai/internal/qs/stringify.js +277 -0
  236. package/dist/node_modules/openai/internal/qs/types.d.mts +57 -0
  237. package/dist/node_modules/openai/internal/qs/types.d.ts +57 -0
  238. package/dist/node_modules/openai/internal/qs/types.js +3 -0
  239. package/dist/node_modules/openai/internal/qs/utils.d.mts +15 -0
  240. package/dist/node_modules/openai/internal/qs/utils.d.ts +15 -0
  241. package/dist/node_modules/openai/internal/qs/utils.js +230 -0
  242. package/dist/node_modules/openai/internal/request-options.d.mts +78 -0
  243. package/dist/node_modules/openai/internal/request-options.d.ts +78 -0
  244. package/dist/node_modules/openai/internal/request-options.js +14 -0
  245. package/dist/node_modules/openai/internal/shim-types.d.mts +17 -0
  246. package/dist/node_modules/openai/internal/shim-types.d.ts +17 -0
  247. package/dist/node_modules/openai/internal/shim-types.js +4 -0
  248. package/dist/node_modules/openai/internal/shims.d.mts +20 -0
  249. package/dist/node_modules/openai/internal/shims.d.ts +20 -0
  250. package/dist/node_modules/openai/internal/shims.js +92 -0
  251. package/dist/node_modules/openai/internal/stream-utils.d.mts +8 -0
  252. package/dist/node_modules/openai/internal/stream-utils.d.ts +8 -0
  253. package/dist/node_modules/openai/internal/stream-utils.js +38 -0
  254. package/dist/node_modules/openai/internal/to-file.d.mts +45 -0
  255. package/dist/node_modules/openai/internal/to-file.d.ts +45 -0
  256. package/dist/node_modules/openai/internal/to-file.js +91 -0
  257. package/dist/node_modules/openai/internal/tslib.js +81 -0
  258. package/dist/node_modules/openai/internal/types.d.mts +69 -0
  259. package/dist/node_modules/openai/internal/types.d.ts +69 -0
  260. package/dist/node_modules/openai/internal/types.js +4 -0
  261. package/dist/node_modules/openai/internal/uploads.d.mts +42 -0
  262. package/dist/node_modules/openai/internal/uploads.d.ts +42 -0
  263. package/dist/node_modules/openai/internal/uploads.js +141 -0
  264. package/dist/node_modules/openai/internal/utils/base64.d.mts +9 -0
  265. package/dist/node_modules/openai/internal/utils/base64.d.ts +9 -0
  266. package/dist/node_modules/openai/internal/utils/base64.js +61 -0
  267. package/dist/node_modules/openai/internal/utils/bytes.d.mts +4 -0
  268. package/dist/node_modules/openai/internal/utils/bytes.d.ts +4 -0
  269. package/dist/node_modules/openai/internal/utils/bytes.js +31 -0
  270. package/dist/node_modules/openai/internal/utils/env.d.mts +9 -0
  271. package/dist/node_modules/openai/internal/utils/env.d.ts +9 -0
  272. package/dist/node_modules/openai/internal/utils/env.js +22 -0
  273. package/dist/node_modules/openai/internal/utils/log.d.mts +37 -0
  274. package/dist/node_modules/openai/internal/utils/log.d.ts +37 -0
  275. package/dist/node_modules/openai/internal/utils/log.js +85 -0
  276. package/dist/node_modules/openai/internal/utils/path.d.mts +15 -0
  277. package/dist/node_modules/openai/internal/utils/path.d.ts +15 -0
  278. package/dist/node_modules/openai/internal/utils/path.js +79 -0
  279. package/dist/node_modules/openai/internal/utils/sleep.d.mts +2 -0
  280. package/dist/node_modules/openai/internal/utils/sleep.d.ts +2 -0
  281. package/dist/node_modules/openai/internal/utils/sleep.js +7 -0
  282. package/dist/node_modules/openai/internal/utils/uuid.d.mts +5 -0
  283. package/dist/node_modules/openai/internal/utils/uuid.d.ts +5 -0
  284. package/dist/node_modules/openai/internal/utils/uuid.js +19 -0
  285. package/dist/node_modules/openai/internal/utils/values.d.mts +18 -0
  286. package/dist/node_modules/openai/internal/utils/values.d.ts +18 -0
  287. package/dist/node_modules/openai/internal/utils/values.js +112 -0
  288. package/dist/node_modules/openai/internal/utils.d.mts +7 -0
  289. package/dist/node_modules/openai/internal/utils.d.ts +7 -0
  290. package/dist/node_modules/openai/internal/utils.js +11 -0
  291. package/dist/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +59 -0
  292. package/dist/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +59 -0
  293. package/dist/node_modules/openai/lib/AbstractChatCompletionRunner.js +291 -0
  294. package/dist/node_modules/openai/lib/AssistantStream.d.mts +60 -0
  295. package/dist/node_modules/openai/lib/AssistantStream.d.ts +60 -0
  296. package/dist/node_modules/openai/lib/AssistantStream.js +553 -0
  297. package/dist/node_modules/openai/lib/ChatCompletionRunner.d.mts +16 -0
  298. package/dist/node_modules/openai/lib/ChatCompletionRunner.d.ts +16 -0
  299. package/dist/node_modules/openai/lib/ChatCompletionRunner.js +24 -0
  300. package/dist/node_modules/openai/lib/ChatCompletionStream.d.mts +208 -0
  301. package/dist/node_modules/openai/lib/ChatCompletionStream.d.ts +208 -0
  302. package/dist/node_modules/openai/lib/ChatCompletionStream.js +493 -0
  303. package/dist/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +19 -0
  304. package/dist/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +19 -0
  305. package/dist/node_modules/openai/lib/ChatCompletionStreamingRunner.js +24 -0
  306. package/dist/node_modules/openai/lib/EventEmitter.d.mts +45 -0
  307. package/dist/node_modules/openai/lib/EventEmitter.d.ts +45 -0
  308. package/dist/node_modules/openai/lib/EventEmitter.js +79 -0
  309. package/dist/node_modules/openai/lib/EventStream.d.mts +62 -0
  310. package/dist/node_modules/openai/lib/EventStream.d.ts +62 -0
  311. package/dist/node_modules/openai/lib/EventStream.js +190 -0
  312. package/dist/node_modules/openai/lib/ResponsesParser.d.mts +36 -0
  313. package/dist/node_modules/openai/lib/ResponsesParser.d.ts +36 -0
  314. package/dist/node_modules/openai/lib/ResponsesParser.js +170 -0
  315. package/dist/node_modules/openai/lib/RunnableFunction.d.mts +83 -0
  316. package/dist/node_modules/openai/lib/RunnableFunction.d.ts +83 -0
  317. package/dist/node_modules/openai/lib/RunnableFunction.js +19 -0
  318. package/dist/node_modules/openai/lib/Util.d.mts +5 -0
  319. package/dist/node_modules/openai/lib/Util.d.ts +5 -0
  320. package/dist/node_modules/openai/lib/Util.js +26 -0
  321. package/dist/node_modules/openai/lib/chatCompletionUtils.d.mts +5 -0
  322. package/dist/node_modules/openai/lib/chatCompletionUtils.d.ts +5 -0
  323. package/dist/node_modules/openai/lib/chatCompletionUtils.js +16 -0
  324. package/dist/node_modules/openai/lib/jsonschema.d.mts +123 -0
  325. package/dist/node_modules/openai/lib/jsonschema.d.ts +123 -0
  326. package/dist/node_modules/openai/lib/jsonschema.js +11 -0
  327. package/dist/node_modules/openai/lib/parser.d.mts +47 -0
  328. package/dist/node_modules/openai/lib/parser.d.ts +47 -0
  329. package/dist/node_modules/openai/lib/parser.js +176 -0
  330. package/dist/node_modules/openai/lib/responses/EventTypes.d.mts +9 -0
  331. package/dist/node_modules/openai/lib/responses/EventTypes.d.ts +9 -0
  332. package/dist/node_modules/openai/lib/responses/EventTypes.js +3 -0
  333. package/dist/node_modules/openai/lib/responses/ResponseStream.d.mts +59 -0
  334. package/dist/node_modules/openai/lib/responses/ResponseStream.d.ts +59 -0
  335. package/dist/node_modules/openai/lib/responses/ResponseStream.js +265 -0
  336. package/dist/node_modules/openai/lib/transform.d.mts +3 -0
  337. package/dist/node_modules/openai/lib/transform.d.ts +3 -0
  338. package/dist/node_modules/openai/lib/transform.js +154 -0
  339. package/dist/node_modules/openai/package.json +1 -0
  340. package/dist/node_modules/openai/pagination.d.mts +2 -0
  341. package/dist/node_modules/openai/pagination.d.ts +2 -0
  342. package/dist/node_modules/openai/pagination.js +6 -0
  343. package/dist/node_modules/openai/realtime/index.d.mts +2 -0
  344. package/dist/node_modules/openai/realtime/index.d.ts +2 -0
  345. package/dist/node_modules/openai/realtime/index.js +6 -0
  346. package/dist/node_modules/openai/realtime/internal-base.d.mts +45 -0
  347. package/dist/node_modules/openai/realtime/internal-base.d.ts +45 -0
  348. package/dist/node_modules/openai/realtime/internal-base.js +55 -0
  349. package/dist/node_modules/openai/realtime/websocket.d.mts +36 -0
  350. package/dist/node_modules/openai/realtime/websocket.d.ts +36 -0
  351. package/dist/node_modules/openai/realtime/websocket.js +109 -0
  352. package/dist/node_modules/openai/realtime/ws.d.mts +27 -0
  353. package/dist/node_modules/openai/realtime/ws.d.ts +27 -0
  354. package/dist/node_modules/openai/realtime/ws.js +92 -0
  355. package/dist/node_modules/openai/resource.d.mts +2 -0
  356. package/dist/node_modules/openai/resource.d.ts +2 -0
  357. package/dist/node_modules/openai/resource.js +6 -0
  358. package/dist/node_modules/openai/resources/audio/audio.d.mts +28 -0
  359. package/dist/node_modules/openai/resources/audio/audio.d.ts +28 -0
  360. package/dist/node_modules/openai/resources/audio/audio.js +25 -0
  361. package/dist/node_modules/openai/resources/audio/index.d.mts +5 -0
  362. package/dist/node_modules/openai/resources/audio/index.d.ts +5 -0
  363. package/dist/node_modules/openai/resources/audio/index.js +13 -0
  364. package/dist/node_modules/openai/resources/audio/speech.d.mts +65 -0
  365. package/dist/node_modules/openai/resources/audio/speech.d.ts +65 -0
  366. package/dist/node_modules/openai/resources/audio/speech.js +33 -0
  367. package/dist/node_modules/openai/resources/audio/transcriptions.d.mts +656 -0
  368. package/dist/node_modules/openai/resources/audio/transcriptions.d.ts +656 -0
  369. package/dist/node_modules/openai/resources/audio/transcriptions.js +18 -0
  370. package/dist/node_modules/openai/resources/audio/translations.d.mts +81 -0
  371. package/dist/node_modules/openai/resources/audio/translations.d.ts +81 -0
  372. package/dist/node_modules/openai/resources/audio/translations.js +13 -0
  373. package/dist/node_modules/openai/resources/audio.d.mts +2 -0
  374. package/dist/node_modules/openai/resources/audio.d.ts +2 -0
  375. package/dist/node_modules/openai/resources/audio.js +6 -0
  376. package/dist/node_modules/openai/resources/batches.d.mts +280 -0
  377. package/dist/node_modules/openai/resources/batches.d.ts +280 -0
  378. package/dist/node_modules/openai/resources/batches.js +37 -0
  379. package/dist/node_modules/openai/resources/beta/assistants.d.mts +1223 -0
  380. package/dist/node_modules/openai/resources/beta/assistants.d.ts +1223 -0
  381. package/dist/node_modules/openai/resources/beta/assistants.js +70 -0
  382. package/dist/node_modules/openai/resources/beta/beta.d.mts +21 -0
  383. package/dist/node_modules/openai/resources/beta/beta.d.ts +21 -0
  384. package/dist/node_modules/openai/resources/beta/beta.js +29 -0
  385. package/dist/node_modules/openai/resources/beta/chatkit/chatkit.d.mts +51 -0
  386. package/dist/node_modules/openai/resources/beta/chatkit/chatkit.d.ts +51 -0
  387. package/dist/node_modules/openai/resources/beta/chatkit/chatkit.js +21 -0
  388. package/dist/node_modules/openai/resources/beta/chatkit/index.d.mts +4 -0
  389. package/dist/node_modules/openai/resources/beta/chatkit/index.d.ts +4 -0
  390. package/dist/node_modules/openai/resources/beta/chatkit/index.js +11 -0
  391. package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.mts +57 -0
  392. package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.ts +57 -0
  393. package/dist/node_modules/openai/resources/beta/chatkit/sessions.js +45 -0
  394. package/dist/node_modules/openai/resources/beta/chatkit/threads.d.mts +811 -0
  395. package/dist/node_modules/openai/resources/beta/chatkit/threads.d.ts +811 -0
  396. package/dist/node_modules/openai/resources/beta/chatkit/threads.js +77 -0
  397. package/dist/node_modules/openai/resources/beta/chatkit.d.mts +2 -0
  398. package/dist/node_modules/openai/resources/beta/chatkit.d.ts +2 -0
  399. package/dist/node_modules/openai/resources/beta/chatkit.js +6 -0
  400. package/dist/node_modules/openai/resources/beta/index.d.mts +6 -0
  401. package/dist/node_modules/openai/resources/beta/index.d.ts +6 -0
  402. package/dist/node_modules/openai/resources/beta/index.js +15 -0
  403. package/dist/node_modules/openai/resources/beta/realtime/index.d.mts +4 -0
  404. package/dist/node_modules/openai/resources/beta/realtime/index.d.ts +4 -0
  405. package/dist/node_modules/openai/resources/beta/realtime/index.js +11 -0
  406. package/dist/node_modules/openai/resources/beta/realtime/realtime.d.mts +2332 -0
  407. package/dist/node_modules/openai/resources/beta/realtime/realtime.d.ts +2332 -0
  408. package/dist/node_modules/openai/resources/beta/realtime/realtime.js +24 -0
  409. package/dist/node_modules/openai/resources/beta/realtime/sessions.d.mts +744 -0
  410. package/dist/node_modules/openai/resources/beta/realtime/sessions.d.ts +744 -0
  411. package/dist/node_modules/openai/resources/beta/realtime/sessions.js +32 -0
  412. package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts +299 -0
  413. package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts +299 -0
  414. package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.js +32 -0
  415. package/dist/node_modules/openai/resources/beta/realtime.d.mts +2 -0
  416. package/dist/node_modules/openai/resources/beta/realtime.d.ts +2 -0
  417. package/dist/node_modules/openai/resources/beta/realtime.js +6 -0
  418. package/dist/node_modules/openai/resources/beta/threads/index.d.mts +4 -0
  419. package/dist/node_modules/openai/resources/beta/threads/index.d.ts +4 -0
  420. package/dist/node_modules/openai/resources/beta/threads/index.js +11 -0
  421. package/dist/node_modules/openai/resources/beta/threads/messages.d.mts +594 -0
  422. package/dist/node_modules/openai/resources/beta/threads/messages.d.ts +594 -0
  423. package/dist/node_modules/openai/resources/beta/threads/messages.js +76 -0
  424. package/dist/node_modules/openai/resources/beta/threads/runs/index.d.mts +3 -0
  425. package/dist/node_modules/openai/resources/beta/threads/runs/index.d.ts +3 -0
  426. package/dist/node_modules/openai/resources/beta/threads/runs/index.js +9 -0
  427. package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.mts +741 -0
  428. package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.ts +741 -0
  429. package/dist/node_modules/openai/resources/beta/threads/runs/runs.js +182 -0
  430. package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.mts +615 -0
  431. package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.ts +615 -0
  432. package/dist/node_modules/openai/resources/beta/threads/runs/steps.js +41 -0
  433. package/dist/node_modules/openai/resources/beta/threads/runs.d.mts +2 -0
  434. package/dist/node_modules/openai/resources/beta/threads/runs.d.ts +2 -0
  435. package/dist/node_modules/openai/resources/beta/threads/runs.js +6 -0
  436. package/dist/node_modules/openai/resources/beta/threads/threads.d.mts +1044 -0
  437. package/dist/node_modules/openai/resources/beta/threads/threads.d.ts +1044 -0
  438. package/dist/node_modules/openai/resources/beta/threads/threads.js +96 -0
  439. package/dist/node_modules/openai/resources/beta/threads.d.mts +2 -0
  440. package/dist/node_modules/openai/resources/beta/threads.d.ts +2 -0
  441. package/dist/node_modules/openai/resources/beta/threads.js +6 -0
  442. package/dist/node_modules/openai/resources/beta.d.mts +2 -0
  443. package/dist/node_modules/openai/resources/beta.d.ts +2 -0
  444. package/dist/node_modules/openai/resources/beta.js +6 -0
  445. package/dist/node_modules/openai/resources/chat/chat.d.mts +13 -0
  446. package/dist/node_modules/openai/resources/chat/chat.d.ts +13 -0
  447. package/dist/node_modules/openai/resources/chat/chat.js +17 -0
  448. package/dist/node_modules/openai/resources/chat/completions/completions.d.mts +1640 -0
  449. package/dist/node_modules/openai/resources/chat/completions/completions.d.ts +1640 -0
  450. package/dist/node_modules/openai/resources/chat/completions/completions.js +115 -0
  451. package/dist/node_modules/openai/resources/chat/completions/index.d.mts +4 -0
  452. package/dist/node_modules/openai/resources/chat/completions/index.d.ts +4 -0
  453. package/dist/node_modules/openai/resources/chat/completions/index.js +11 -0
  454. package/dist/node_modules/openai/resources/chat/completions/messages.d.mts +34 -0
  455. package/dist/node_modules/openai/resources/chat/completions/messages.d.ts +34 -0
  456. package/dist/node_modules/openai/resources/chat/completions/messages.js +28 -0
  457. package/dist/node_modules/openai/resources/chat/completions.d.mts +2 -0
  458. package/dist/node_modules/openai/resources/chat/completions.d.ts +2 -0
  459. package/dist/node_modules/openai/resources/chat/completions.js +6 -0
  460. package/dist/node_modules/openai/resources/chat/index.d.mts +3 -0
  461. package/dist/node_modules/openai/resources/chat/index.d.ts +3 -0
  462. package/dist/node_modules/openai/resources/chat/index.js +9 -0
  463. package/dist/node_modules/openai/resources/chat.d.mts +2 -0
  464. package/dist/node_modules/openai/resources/chat.d.ts +2 -0
  465. package/dist/node_modules/openai/resources/chat.js +6 -0
  466. package/dist/node_modules/openai/resources/completions.d.mts +329 -0
  467. package/dist/node_modules/openai/resources/completions.d.ts +329 -0
  468. package/dist/node_modules/openai/resources/completions.js +12 -0
  469. package/dist/node_modules/openai/resources/containers/containers.d.mts +292 -0
  470. package/dist/node_modules/openai/resources/containers/containers.d.ts +292 -0
  471. package/dist/node_modules/openai/resources/containers/containers.js +47 -0
  472. package/dist/node_modules/openai/resources/containers/files/content.d.mts +16 -0
  473. package/dist/node_modules/openai/resources/containers/files/content.d.ts +16 -0
  474. package/dist/node_modules/openai/resources/containers/files/content.js +22 -0
  475. package/dist/node_modules/openai/resources/containers/files/files.d.mts +148 -0
  476. package/dist/node_modules/openai/resources/containers/files/files.d.ts +148 -0
  477. package/dist/node_modules/openai/resources/containers/files/files.js +56 -0
  478. package/dist/node_modules/openai/resources/containers/files/index.d.mts +3 -0
  479. package/dist/node_modules/openai/resources/containers/files/index.d.ts +3 -0
  480. package/dist/node_modules/openai/resources/containers/files/index.js +9 -0
  481. package/dist/node_modules/openai/resources/containers/files.d.mts +2 -0
  482. package/dist/node_modules/openai/resources/containers/files.d.ts +2 -0
  483. package/dist/node_modules/openai/resources/containers/files.js +6 -0
  484. package/dist/node_modules/openai/resources/containers/index.d.mts +3 -0
  485. package/dist/node_modules/openai/resources/containers/index.d.ts +3 -0
  486. package/dist/node_modules/openai/resources/containers/index.js +9 -0
  487. package/dist/node_modules/openai/resources/containers.d.mts +2 -0
  488. package/dist/node_modules/openai/resources/containers.d.ts +2 -0
  489. package/dist/node_modules/openai/resources/containers.js +6 -0
  490. package/dist/node_modules/openai/resources/conversations/conversations.d.mts +176 -0
  491. package/dist/node_modules/openai/resources/conversations/conversations.d.ts +176 -0
  492. package/dist/node_modules/openai/resources/conversations/conversations.js +42 -0
  493. package/dist/node_modules/openai/resources/conversations/index.d.mts +3 -0
  494. package/dist/node_modules/openai/resources/conversations/index.d.ts +3 -0
  495. package/dist/node_modules/openai/resources/conversations/index.js +9 -0
  496. package/dist/node_modules/openai/resources/conversations/items.d.mts +367 -0
  497. package/dist/node_modules/openai/resources/conversations/items.d.ts +367 -0
  498. package/dist/node_modules/openai/resources/conversations/items.js +42 -0
  499. package/dist/node_modules/openai/resources/conversations.d.mts +2 -0
  500. package/dist/node_modules/openai/resources/conversations.d.ts +2 -0
  501. package/dist/node_modules/openai/resources/conversations.js +6 -0
  502. package/dist/node_modules/openai/resources/embeddings.d.mts +113 -0
  503. package/dist/node_modules/openai/resources/embeddings.d.ts +113 -0
  504. package/dist/node_modules/openai/resources/embeddings.js +56 -0
  505. package/dist/node_modules/openai/resources/evals/evals.d.mts +736 -0
  506. package/dist/node_modules/openai/resources/evals/evals.d.ts +736 -0
  507. package/dist/node_modules/openai/resources/evals/evals.js +54 -0
  508. package/dist/node_modules/openai/resources/evals/index.d.mts +3 -0
  509. package/dist/node_modules/openai/resources/evals/index.d.ts +3 -0
  510. package/dist/node_modules/openai/resources/evals/index.js +9 -0
  511. package/dist/node_modules/openai/resources/evals/runs/index.d.mts +3 -0
  512. package/dist/node_modules/openai/resources/evals/runs/index.d.ts +3 -0
  513. package/dist/node_modules/openai/resources/evals/runs/index.js +9 -0
  514. package/dist/node_modules/openai/resources/evals/runs/output-items.d.mts +382 -0
  515. package/dist/node_modules/openai/resources/evals/runs/output-items.d.ts +382 -0
  516. package/dist/node_modules/openai/resources/evals/runs/output-items.js +25 -0
  517. package/dist/node_modules/openai/resources/evals/runs/runs.d.mts +2385 -0
  518. package/dist/node_modules/openai/resources/evals/runs/runs.d.ts +2385 -0
  519. package/dist/node_modules/openai/resources/evals/runs/runs.js +57 -0
  520. package/dist/node_modules/openai/resources/evals/runs.d.mts +2 -0
  521. package/dist/node_modules/openai/resources/evals/runs.d.ts +2 -0
  522. package/dist/node_modules/openai/resources/evals/runs.js +6 -0
  523. package/dist/node_modules/openai/resources/evals.d.mts +2 -0
  524. package/dist/node_modules/openai/resources/evals.d.ts +2 -0
  525. package/dist/node_modules/openai/resources/evals.js +6 -0
  526. package/dist/node_modules/openai/resources/files.d.mts +171 -0
  527. package/dist/node_modules/openai/resources/files.d.ts +171 -0
  528. package/dist/node_modules/openai/resources/files.js +86 -0
  529. package/dist/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts +10 -0
  530. package/dist/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts +10 -0
  531. package/dist/node_modules/openai/resources/fine-tuning/alpha/alpha.js +17 -0
  532. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +119 -0
  533. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts +119 -0
  534. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.js +49 -0
  535. package/dist/node_modules/openai/resources/fine-tuning/alpha/index.d.mts +3 -0
  536. package/dist/node_modules/openai/resources/fine-tuning/alpha/index.d.ts +3 -0
  537. package/dist/node_modules/openai/resources/fine-tuning/alpha/index.js +9 -0
  538. package/dist/node_modules/openai/resources/fine-tuning/alpha.d.mts +2 -0
  539. package/dist/node_modules/openai/resources/fine-tuning/alpha.d.ts +2 -0
  540. package/dist/node_modules/openai/resources/fine-tuning/alpha.js +6 -0
  541. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +10 -0
  542. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.ts +10 -0
  543. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +17 -0
  544. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.mts +3 -0
  545. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.ts +3 -0
  546. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.js +9 -0
  547. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +160 -0
  548. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.ts +160 -0
  549. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +73 -0
  550. package/dist/node_modules/openai/resources/fine-tuning/checkpoints.d.mts +2 -0
  551. package/dist/node_modules/openai/resources/fine-tuning/checkpoints.d.ts +2 -0
  552. package/dist/node_modules/openai/resources/fine-tuning/checkpoints.js +6 -0
  553. package/dist/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts +22 -0
  554. package/dist/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts +22 -0
  555. package/dist/node_modules/openai/resources/fine-tuning/fine-tuning.js +29 -0
  556. package/dist/node_modules/openai/resources/fine-tuning/index.d.mts +6 -0
  557. package/dist/node_modules/openai/resources/fine-tuning/index.d.ts +6 -0
  558. package/dist/node_modules/openai/resources/fine-tuning/index.js +15 -0
  559. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +74 -0
  560. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +74 -0
  561. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +27 -0
  562. package/dist/node_modules/openai/resources/fine-tuning/jobs/index.d.mts +3 -0
  563. package/dist/node_modules/openai/resources/fine-tuning/jobs/index.d.ts +3 -0
  564. package/dist/node_modules/openai/resources/fine-tuning/jobs/index.js +9 -0
  565. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +528 -0
  566. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +528 -0
  567. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.js +123 -0
  568. package/dist/node_modules/openai/resources/fine-tuning/jobs.d.mts +2 -0
  569. package/dist/node_modules/openai/resources/fine-tuning/jobs.d.ts +2 -0
  570. package/dist/node_modules/openai/resources/fine-tuning/jobs.js +6 -0
  571. package/dist/node_modules/openai/resources/fine-tuning/methods.d.mts +120 -0
  572. package/dist/node_modules/openai/resources/fine-tuning/methods.d.ts +120 -0
  573. package/dist/node_modules/openai/resources/fine-tuning/methods.js +9 -0
  574. package/dist/node_modules/openai/resources/fine-tuning.d.mts +2 -0
  575. package/dist/node_modules/openai/resources/fine-tuning.d.ts +2 -0
  576. package/dist/node_modules/openai/resources/fine-tuning.js +6 -0
  577. package/dist/node_modules/openai/resources/graders/grader-models.d.mts +354 -0
  578. package/dist/node_modules/openai/resources/graders/grader-models.d.ts +354 -0
  579. package/dist/node_modules/openai/resources/graders/grader-models.js +9 -0
  580. package/dist/node_modules/openai/resources/graders/graders.d.mts +10 -0
  581. package/dist/node_modules/openai/resources/graders/graders.d.ts +10 -0
  582. package/dist/node_modules/openai/resources/graders/graders.js +17 -0
  583. package/dist/node_modules/openai/resources/graders/index.d.mts +3 -0
  584. package/dist/node_modules/openai/resources/graders/index.d.ts +3 -0
  585. package/dist/node_modules/openai/resources/graders/index.js +9 -0
  586. package/dist/node_modules/openai/resources/graders.d.mts +2 -0
  587. package/dist/node_modules/openai/resources/graders.d.ts +2 -0
  588. package/dist/node_modules/openai/resources/graders.js +6 -0
  589. package/dist/node_modules/openai/resources/images.d.mts +676 -0
  590. package/dist/node_modules/openai/resources/images.d.ts +676 -0
  591. package/dist/node_modules/openai/resources/images.js +29 -0
  592. package/dist/node_modules/openai/resources/index.d.mts +24 -0
  593. package/dist/node_modules/openai/resources/index.d.ts +24 -0
  594. package/dist/node_modules/openai/resources/index.js +50 -0
  595. package/dist/node_modules/openai/resources/models.d.mts +52 -0
  596. package/dist/node_modules/openai/resources/models.d.ts +52 -0
  597. package/dist/node_modules/openai/resources/models.js +32 -0
  598. package/dist/node_modules/openai/resources/moderations.d.mts +295 -0
  599. package/dist/node_modules/openai/resources/moderations.d.ts +295 -0
  600. package/dist/node_modules/openai/resources/moderations.js +16 -0
  601. package/dist/node_modules/openai/resources/realtime/calls.d.mts +158 -0
  602. package/dist/node_modules/openai/resources/realtime/calls.d.ts +158 -0
  603. package/dist/node_modules/openai/resources/realtime/calls.js +75 -0
  604. package/dist/node_modules/openai/resources/realtime/client-secrets.d.mts +624 -0
  605. package/dist/node_modules/openai/resources/realtime/client-secrets.d.ts +624 -0
  606. package/dist/node_modules/openai/resources/realtime/client-secrets.js +21 -0
  607. package/dist/node_modules/openai/resources/realtime/index.d.mts +4 -0
  608. package/dist/node_modules/openai/resources/realtime/index.d.ts +4 -0
  609. package/dist/node_modules/openai/resources/realtime/index.js +11 -0
  610. package/dist/node_modules/openai/resources/realtime/realtime.d.mts +3941 -0
  611. package/dist/node_modules/openai/resources/realtime/realtime.d.ts +3941 -0
  612. package/dist/node_modules/openai/resources/realtime/realtime.js +21 -0
  613. package/dist/node_modules/openai/resources/realtime.d.mts +2 -0
  614. package/dist/node_modules/openai/resources/realtime.d.ts +2 -0
  615. package/dist/node_modules/openai/resources/realtime.js +6 -0
  616. package/dist/node_modules/openai/resources/responses/index.d.mts +4 -0
  617. package/dist/node_modules/openai/resources/responses/index.d.ts +4 -0
  618. package/dist/node_modules/openai/resources/responses/index.js +11 -0
  619. package/dist/node_modules/openai/resources/responses/input-items.d.mts +65 -0
  620. package/dist/node_modules/openai/resources/responses/input-items.d.ts +65 -0
  621. package/dist/node_modules/openai/resources/responses/input-items.js +27 -0
  622. package/dist/node_modules/openai/resources/responses/input-tokens.d.mts +126 -0
  623. package/dist/node_modules/openai/resources/responses/input-tokens.d.ts +126 -0
  624. package/dist/node_modules/openai/resources/responses/input-tokens.js +20 -0
  625. package/dist/node_modules/openai/resources/responses/responses.d.mts +5559 -0
  626. package/dist/node_modules/openai/resources/responses/responses.d.ts +5559 -0
  627. package/dist/node_modules/openai/resources/responses/responses.js +100 -0
  628. package/dist/node_modules/openai/resources/responses.d.mts +2 -0
  629. package/dist/node_modules/openai/resources/responses.d.ts +2 -0
  630. package/dist/node_modules/openai/resources/responses.js +6 -0
  631. package/dist/node_modules/openai/resources/shared.d.mts +287 -0
  632. package/dist/node_modules/openai/resources/shared.d.ts +287 -0
  633. package/dist/node_modules/openai/resources/shared.js +4 -0
  634. package/dist/node_modules/openai/resources/skills/content.d.mts +10 -0
  635. package/dist/node_modules/openai/resources/skills/content.d.ts +10 -0
  636. package/dist/node_modules/openai/resources/skills/content.js +21 -0
  637. package/dist/node_modules/openai/resources/skills/index.d.mts +4 -0
  638. package/dist/node_modules/openai/resources/skills/index.d.ts +4 -0
  639. package/dist/node_modules/openai/resources/skills/index.js +11 -0
  640. package/dist/node_modules/openai/resources/skills/skills.d.mts +116 -0
  641. package/dist/node_modules/openai/resources/skills/skills.d.ts +116 -0
  642. package/dist/node_modules/openai/resources/skills/skills.js +54 -0
  643. package/dist/node_modules/openai/resources/skills/versions/content.d.mts +19 -0
  644. package/dist/node_modules/openai/resources/skills/versions/content.d.ts +19 -0
  645. package/dist/node_modules/openai/resources/skills/versions/content.js +22 -0
  646. package/dist/node_modules/openai/resources/skills/versions/index.d.mts +3 -0
  647. package/dist/node_modules/openai/resources/skills/versions/index.d.ts +3 -0
  648. package/dist/node_modules/openai/resources/skills/versions/index.js +9 -0
  649. package/dist/node_modules/openai/resources/skills/versions/versions.d.mts +121 -0
  650. package/dist/node_modules/openai/resources/skills/versions/versions.d.ts +121 -0
  651. package/dist/node_modules/openai/resources/skills/versions/versions.js +49 -0
  652. package/dist/node_modules/openai/resources/skills/versions.d.mts +2 -0
  653. package/dist/node_modules/openai/resources/skills/versions.d.ts +2 -0
  654. package/dist/node_modules/openai/resources/skills/versions.js +6 -0
  655. package/dist/node_modules/openai/resources/skills.d.mts +2 -0
  656. package/dist/node_modules/openai/resources/skills.d.ts +2 -0
  657. package/dist/node_modules/openai/resources/skills.js +6 -0
  658. package/dist/node_modules/openai/resources/uploads/index.d.mts +3 -0
  659. package/dist/node_modules/openai/resources/uploads/index.d.ts +3 -0
  660. package/dist/node_modules/openai/resources/uploads/index.js +9 -0
  661. package/dist/node_modules/openai/resources/uploads/parts.d.mts +51 -0
  662. package/dist/node_modules/openai/resources/uploads/parts.d.ts +51 -0
  663. package/dist/node_modules/openai/resources/uploads/parts.js +27 -0
  664. package/dist/node_modules/openai/resources/uploads/uploads.d.mts +157 -0
  665. package/dist/node_modules/openai/resources/uploads/uploads.d.ts +157 -0
  666. package/dist/node_modules/openai/resources/uploads/uploads.js +66 -0
  667. package/dist/node_modules/openai/resources/uploads.d.mts +2 -0
  668. package/dist/node_modules/openai/resources/uploads.d.ts +2 -0
  669. package/dist/node_modules/openai/resources/uploads.js +6 -0
  670. package/dist/node_modules/openai/resources/vector-stores/file-batches.d.mts +205 -0
  671. package/dist/node_modules/openai/resources/vector-stores/file-batches.d.ts +205 -0
  672. package/dist/node_modules/openai/resources/vector-stores/file-batches.js +133 -0
  673. package/dist/node_modules/openai/resources/vector-stores/files.d.mts +231 -0
  674. package/dist/node_modules/openai/resources/vector-stores/files.d.ts +231 -0
  675. package/dist/node_modules/openai/resources/vector-stores/files.js +142 -0
  676. package/dist/node_modules/openai/resources/vector-stores/index.d.mts +4 -0
  677. package/dist/node_modules/openai/resources/vector-stores/index.d.ts +4 -0
  678. package/dist/node_modules/openai/resources/vector-stores/index.js +11 -0
  679. package/dist/node_modules/openai/resources/vector-stores/vector-stores.d.mts +378 -0
  680. package/dist/node_modules/openai/resources/vector-stores/vector-stores.d.ts +378 -0
  681. package/dist/node_modules/openai/resources/vector-stores/vector-stores.js +84 -0
  682. package/dist/node_modules/openai/resources/vector-stores.d.mts +2 -0
  683. package/dist/node_modules/openai/resources/vector-stores.d.ts +2 -0
  684. package/dist/node_modules/openai/resources/vector-stores.js +6 -0
  685. package/dist/node_modules/openai/resources/videos.d.mts +169 -0
  686. package/dist/node_modules/openai/resources/videos.d.ts +169 -0
  687. package/dist/node_modules/openai/resources/videos.js +54 -0
  688. package/dist/node_modules/openai/resources/webhooks/index.d.mts +2 -0
  689. package/dist/node_modules/openai/resources/webhooks/index.d.ts +2 -0
  690. package/dist/node_modules/openai/resources/webhooks/index.js +6 -0
  691. package/dist/node_modules/openai/resources/webhooks/webhooks.d.mts +587 -0
  692. package/dist/node_modules/openai/resources/webhooks/webhooks.d.ts +587 -0
  693. package/dist/node_modules/openai/resources/webhooks/webhooks.js +101 -0
  694. package/dist/node_modules/openai/resources/webhooks.d.mts +2 -0
  695. package/dist/node_modules/openai/resources/webhooks.d.ts +2 -0
  696. package/dist/node_modules/openai/resources/webhooks.js +6 -0
  697. package/dist/node_modules/openai/resources.d.mts +2 -0
  698. package/dist/node_modules/openai/resources.d.ts +2 -0
  699. package/dist/node_modules/openai/resources.js +5 -0
  700. package/dist/node_modules/openai/src/_vendor/partial-json-parser/parser.ts +247 -0
  701. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/Options.ts +80 -0
  702. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/Refs.ts +47 -0
  703. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/errorMessages.ts +31 -0
  704. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/index.ts +37 -0
  705. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parseDef.ts +258 -0
  706. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/any.ts +5 -0
  707. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/array.ts +36 -0
  708. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/bigint.ts +60 -0
  709. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/boolean.ts +9 -0
  710. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/branded.ts +7 -0
  711. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/catch.ts +7 -0
  712. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/date.ts +83 -0
  713. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/default.ts +10 -0
  714. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/effects.ts +11 -0
  715. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/enum.ts +13 -0
  716. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/intersection.ts +64 -0
  717. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/literal.ts +37 -0
  718. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/map.ts +42 -0
  719. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +27 -0
  720. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/never.ts +9 -0
  721. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/null.ts +16 -0
  722. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nullable.ts +49 -0
  723. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/number.ts +62 -0
  724. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/object.ts +76 -0
  725. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/optional.ts +28 -0
  726. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +28 -0
  727. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/promise.ts +7 -0
  728. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/readonly.ts +7 -0
  729. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/record.ts +73 -0
  730. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/set.ts +36 -0
  731. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/string.ts +400 -0
  732. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/tuple.ts +54 -0
  733. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/undefined.ts +9 -0
  734. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/union.ts +119 -0
  735. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/unknown.ts +5 -0
  736. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/util.ts +11 -0
  737. package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +120 -0
  738. package/dist/node_modules/openai/src/api-promise.ts +2 -0
  739. package/dist/node_modules/openai/src/azure.ts +158 -0
  740. package/dist/node_modules/openai/src/beta/realtime/index.ts +1 -0
  741. package/dist/node_modules/openai/src/beta/realtime/internal-base.ts +93 -0
  742. package/dist/node_modules/openai/src/beta/realtime/websocket.ts +158 -0
  743. package/dist/node_modules/openai/src/beta/realtime/ws.ts +114 -0
  744. package/dist/node_modules/openai/src/client.ts +1321 -0
  745. package/dist/node_modules/openai/src/core/api-promise.ts +101 -0
  746. package/dist/node_modules/openai/src/core/error.ts +160 -0
  747. package/dist/node_modules/openai/src/core/pagination.ts +269 -0
  748. package/dist/node_modules/openai/src/core/resource.ts +11 -0
  749. package/dist/node_modules/openai/src/core/streaming.ts +348 -0
  750. package/dist/node_modules/openai/src/core/uploads.ts +2 -0
  751. package/dist/node_modules/openai/src/error.ts +2 -0
  752. package/dist/node_modules/openai/src/helpers/audio.ts +146 -0
  753. package/dist/node_modules/openai/src/helpers/zod.ts +180 -0
  754. package/dist/node_modules/openai/src/index.ts +26 -0
  755. package/dist/node_modules/openai/src/internal/builtin-types.ts +93 -0
  756. package/dist/node_modules/openai/src/internal/decoders/line.ts +135 -0
  757. package/dist/node_modules/openai/src/internal/detect-platform.ts +196 -0
  758. package/dist/node_modules/openai/src/internal/errors.ts +33 -0
  759. package/dist/node_modules/openai/src/internal/headers.ts +97 -0
  760. package/dist/node_modules/openai/src/internal/parse.ts +90 -0
  761. package/dist/node_modules/openai/src/internal/qs/formats.ts +10 -0
  762. package/dist/node_modules/openai/src/internal/qs/index.ts +13 -0
  763. package/dist/node_modules/openai/src/internal/qs/stringify.ts +385 -0
  764. package/dist/node_modules/openai/src/internal/qs/types.ts +71 -0
  765. package/dist/node_modules/openai/src/internal/qs/utils.ts +265 -0
  766. package/dist/node_modules/openai/src/internal/request-options.ts +94 -0
  767. package/dist/node_modules/openai/src/internal/shim-types.ts +26 -0
  768. package/dist/node_modules/openai/src/internal/shims.ts +107 -0
  769. package/dist/node_modules/openai/src/internal/stream-utils.ts +32 -0
  770. package/dist/node_modules/openai/src/internal/to-file.ts +154 -0
  771. package/dist/node_modules/openai/src/internal/types.ts +95 -0
  772. package/dist/node_modules/openai/src/internal/uploads.ts +187 -0
  773. package/dist/node_modules/openai/src/internal/utils/base64.ts +64 -0
  774. package/dist/node_modules/openai/src/internal/utils/bytes.ts +32 -0
  775. package/dist/node_modules/openai/src/internal/utils/env.ts +18 -0
  776. package/dist/node_modules/openai/src/internal/utils/log.ts +126 -0
  777. package/dist/node_modules/openai/src/internal/utils/path.ts +88 -0
  778. package/dist/node_modules/openai/src/internal/utils/sleep.ts +3 -0
  779. package/dist/node_modules/openai/src/internal/utils/uuid.ts +17 -0
  780. package/dist/node_modules/openai/src/internal/utils/values.ts +105 -0
  781. package/dist/node_modules/openai/src/internal/utils.ts +8 -0
  782. package/dist/node_modules/openai/src/lib/.keep +4 -0
  783. package/dist/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +404 -0
  784. package/dist/node_modules/openai/src/lib/AssistantStream.ts +778 -0
  785. package/dist/node_modules/openai/src/lib/ChatCompletionRunner.ts +54 -0
  786. package/dist/node_modules/openai/src/lib/ChatCompletionStream.ts +872 -0
  787. package/dist/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +50 -0
  788. package/dist/node_modules/openai/src/lib/EventEmitter.ts +98 -0
  789. package/dist/node_modules/openai/src/lib/EventStream.ts +239 -0
  790. package/dist/node_modules/openai/src/lib/ResponsesParser.ts +265 -0
  791. package/dist/node_modules/openai/src/lib/RunnableFunction.ts +114 -0
  792. package/dist/node_modules/openai/src/lib/Util.ts +23 -0
  793. package/dist/node_modules/openai/src/lib/chatCompletionUtils.ts +21 -0
  794. package/dist/node_modules/openai/src/lib/jsonschema.ts +172 -0
  795. package/dist/node_modules/openai/src/lib/parser.ts +311 -0
  796. package/dist/node_modules/openai/src/lib/responses/EventTypes.ts +74 -0
  797. package/dist/node_modules/openai/src/lib/responses/ResponseStream.ts +368 -0
  798. package/dist/node_modules/openai/src/lib/transform.ts +193 -0
  799. package/dist/node_modules/openai/src/pagination.ts +2 -0
  800. package/dist/node_modules/openai/src/realtime/index.ts +1 -0
  801. package/dist/node_modules/openai/src/realtime/internal-base.ts +98 -0
  802. package/dist/node_modules/openai/src/realtime/websocket.ts +157 -0
  803. package/dist/node_modules/openai/src/realtime/ws.ts +113 -0
  804. package/dist/node_modules/openai/src/resource.ts +2 -0
  805. package/dist/node_modules/openai/src/resources/audio/audio.ts +91 -0
  806. package/dist/node_modules/openai/src/resources/audio/index.ts +29 -0
  807. package/dist/node_modules/openai/src/resources/audio/speech.ts +95 -0
  808. package/dist/node_modules/openai/src/resources/audio/transcriptions.ts +823 -0
  809. package/dist/node_modules/openai/src/resources/audio/translations.ts +118 -0
  810. package/dist/node_modules/openai/src/resources/audio.ts +3 -0
  811. package/dist/node_modules/openai/src/resources/batches.ts +367 -0
  812. package/dist/node_modules/openai/src/resources/beta/assistants.ts +1541 -0
  813. package/dist/node_modules/openai/src/resources/beta/beta.ts +199 -0
  814. package/dist/node_modules/openai/src/resources/beta/chatkit/chatkit.ts +112 -0
  815. package/dist/node_modules/openai/src/resources/beta/chatkit/index.ts +30 -0
  816. package/dist/node_modules/openai/src/resources/beta/chatkit/sessions.ts +79 -0
  817. package/dist/node_modules/openai/src/resources/beta/chatkit/threads.ts +1037 -0
  818. package/dist/node_modules/openai/src/resources/beta/chatkit.ts +3 -0
  819. package/dist/node_modules/openai/src/resources/beta/index.ts +39 -0
  820. package/dist/node_modules/openai/src/resources/beta/realtime/index.ts +9 -0
  821. package/dist/node_modules/openai/src/resources/beta/realtime/realtime.ts +2829 -0
  822. package/dist/node_modules/openai/src/resources/beta/realtime/sessions.ts +869 -0
  823. package/dist/node_modules/openai/src/resources/beta/realtime/transcription-sessions.ts +347 -0
  824. package/dist/node_modules/openai/src/resources/beta/realtime.ts +3 -0
  825. package/dist/node_modules/openai/src/resources/beta/threads/index.ts +77 -0
  826. package/dist/node_modules/openai/src/resources/beta/threads/messages.ts +792 -0
  827. package/dist/node_modules/openai/src/resources/beta/threads/runs/index.ts +48 -0
  828. package/dist/node_modules/openai/src/resources/beta/threads/runs/runs.ts +1080 -0
  829. package/dist/node_modules/openai/src/resources/beta/threads/runs/steps.ts +756 -0
  830. package/dist/node_modules/openai/src/resources/beta/threads/runs.ts +3 -0
  831. package/dist/node_modules/openai/src/resources/beta/threads/threads.ts +1397 -0
  832. package/dist/node_modules/openai/src/resources/beta/threads.ts +3 -0
  833. package/dist/node_modules/openai/src/resources/beta.ts +3 -0
  834. package/dist/node_modules/openai/src/resources/chat/chat.ts +110 -0
  835. package/dist/node_modules/openai/src/resources/chat/completions/completions.ts +2034 -0
  836. package/dist/node_modules/openai/src/resources/chat/completions/index.ts +50 -0
  837. package/dist/node_modules/openai/src/resources/chat/completions/messages.ts +50 -0
  838. package/dist/node_modules/openai/src/resources/chat/completions.ts +3 -0
  839. package/dist/node_modules/openai/src/resources/chat/index.ts +49 -0
  840. package/dist/node_modules/openai/src/resources/chat.ts +3 -0
  841. package/dist/node_modules/openai/src/resources/completions.ts +394 -0
  842. package/dist/node_modules/openai/src/resources/containers/containers.ts +395 -0
  843. package/dist/node_modules/openai/src/resources/containers/files/content.ts +29 -0
  844. package/dist/node_modules/openai/src/resources/containers/files/files.ts +228 -0
  845. package/dist/node_modules/openai/src/resources/containers/files/index.ts +14 -0
  846. package/dist/node_modules/openai/src/resources/containers/files.ts +3 -0
  847. package/dist/node_modules/openai/src/resources/containers/index.ts +22 -0
  848. package/dist/node_modules/openai/src/resources/containers.ts +3 -0
  849. package/dist/node_modules/openai/src/resources/conversations/conversations.ts +277 -0
  850. package/dist/node_modules/openai/src/resources/conversations/index.ts +13 -0
  851. package/dist/node_modules/openai/src/resources/conversations/items.ts +502 -0
  852. package/dist/node_modules/openai/src/resources/conversations.ts +3 -0
  853. package/dist/node_modules/openai/src/resources/embeddings.ts +177 -0
  854. package/dist/node_modules/openai/src/resources/evals/evals.ts +930 -0
  855. package/dist/node_modules/openai/src/resources/evals/index.ts +33 -0
  856. package/dist/node_modules/openai/src/resources/evals/runs/index.ts +27 -0
  857. package/dist/node_modules/openai/src/resources/evals/runs/output-items.ts +477 -0
  858. package/dist/node_modules/openai/src/resources/evals/runs/runs.ts +2869 -0
  859. package/dist/node_modules/openai/src/resources/evals/runs.ts +3 -0
  860. package/dist/node_modules/openai/src/resources/evals.ts +3 -0
  861. package/dist/node_modules/openai/src/resources/files.ts +257 -0
  862. package/dist/node_modules/openai/src/resources/fine-tuning/alpha/alpha.ts +27 -0
  863. package/dist/node_modules/openai/src/resources/fine-tuning/alpha/graders.ts +171 -0
  864. package/dist/node_modules/openai/src/resources/fine-tuning/alpha/index.ts +10 -0
  865. package/dist/node_modules/openai/src/resources/fine-tuning/alpha.ts +3 -0
  866. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/checkpoints.ts +33 -0
  867. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/index.ts +13 -0
  868. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/permissions.ts +227 -0
  869. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints.ts +3 -0
  870. package/dist/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +73 -0
  871. package/dist/node_modules/openai/src/resources/fine-tuning/index.ts +27 -0
  872. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +107 -0
  873. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +21 -0
  874. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +654 -0
  875. package/dist/node_modules/openai/src/resources/fine-tuning/jobs.ts +3 -0
  876. package/dist/node_modules/openai/src/resources/fine-tuning/methods.ts +152 -0
  877. package/dist/node_modules/openai/src/resources/fine-tuning.ts +3 -0
  878. package/dist/node_modules/openai/src/resources/graders/grader-models.ts +450 -0
  879. package/dist/node_modules/openai/src/resources/graders/graders.ts +33 -0
  880. package/dist/node_modules/openai/src/resources/graders/index.ts +13 -0
  881. package/dist/node_modules/openai/src/resources/graders.ts +3 -0
  882. package/dist/node_modules/openai/src/resources/images.ts +848 -0
  883. package/dist/node_modules/openai/src/resources/index.ts +145 -0
  884. package/dist/node_modules/openai/src/resources/models.ts +73 -0
  885. package/dist/node_modules/openai/src/resources/moderations.ts +367 -0
  886. package/dist/node_modules/openai/src/resources/realtime/calls.ts +226 -0
  887. package/dist/node_modules/openai/src/resources/realtime/client-secrets.ts +747 -0
  888. package/dist/node_modules/openai/src/resources/realtime/index.ts +13 -0
  889. package/dist/node_modules/openai/src/resources/realtime/realtime.ts +4844 -0
  890. package/dist/node_modules/openai/src/resources/realtime.ts +3 -0
  891. package/dist/node_modules/openai/src/resources/responses/index.ts +5 -0
  892. package/dist/node_modules/openai/src/resources/responses/input-items.ts +87 -0
  893. package/dist/node_modules/openai/src/resources/responses/input-tokens.ts +161 -0
  894. package/dist/node_modules/openai/src/resources/responses/responses.ts +7057 -0
  895. package/dist/node_modules/openai/src/resources/responses.ts +3 -0
  896. package/dist/node_modules/openai/src/resources/shared.ts +423 -0
  897. package/dist/node_modules/openai/src/resources/skills/content.ts +20 -0
  898. package/dist/node_modules/openai/src/resources/skills/index.ts +24 -0
  899. package/dist/node_modules/openai/src/resources/skills/skills.ts +191 -0
  900. package/dist/node_modules/openai/src/resources/skills/versions/content.ts +32 -0
  901. package/dist/node_modules/openai/src/resources/skills/versions/index.ts +14 -0
  902. package/dist/node_modules/openai/src/resources/skills/versions/versions.ts +196 -0
  903. package/dist/node_modules/openai/src/resources/skills/versions.ts +3 -0
  904. package/dist/node_modules/openai/src/resources/skills.ts +3 -0
  905. package/dist/node_modules/openai/src/resources/uploads/index.ts +4 -0
  906. package/dist/node_modules/openai/src/resources/uploads/parts.ts +66 -0
  907. package/dist/node_modules/openai/src/resources/uploads/uploads.ts +195 -0
  908. package/dist/node_modules/openai/src/resources/uploads.ts +3 -0
  909. package/dist/node_modules/openai/src/resources/vector-stores/file-batches.ts +367 -0
  910. package/dist/node_modules/openai/src/resources/vector-stores/files.ts +394 -0
  911. package/dist/node_modules/openai/src/resources/vector-stores/index.ts +43 -0
  912. package/dist/node_modules/openai/src/resources/vector-stores/vector-stores.ts +562 -0
  913. package/dist/node_modules/openai/src/resources/vector-stores.ts +3 -0
  914. package/dist/node_modules/openai/src/resources/videos.ts +255 -0
  915. package/dist/node_modules/openai/src/resources/webhooks/index.ts +3 -0
  916. package/dist/node_modules/openai/src/resources/webhooks/webhooks.ts +833 -0
  917. package/dist/node_modules/openai/src/resources/webhooks.ts +3 -0
  918. package/dist/node_modules/openai/src/resources.ts +1 -0
  919. package/dist/node_modules/openai/src/streaming.ts +2 -0
  920. package/dist/node_modules/openai/src/uploads.ts +2 -0
  921. package/dist/node_modules/openai/src/version.ts +1 -0
  922. package/dist/node_modules/openai/streaming.d.mts +2 -0
  923. package/dist/node_modules/openai/streaming.d.ts +2 -0
  924. package/dist/node_modules/openai/streaming.js +6 -0
  925. package/dist/node_modules/openai/uploads.d.mts +2 -0
  926. package/dist/node_modules/openai/uploads.d.ts +2 -0
  927. package/dist/node_modules/openai/uploads.js +6 -0
  928. package/dist/node_modules/openai/version.d.mts +2 -0
  929. package/dist/node_modules/openai/version.d.ts +2 -0
  930. package/dist/node_modules/openai/version.js +5 -0
  931. package/dist/node_modules/zod/index.d.cts +4 -0
  932. package/dist/node_modules/zod/locales/index.d.cts +1 -0
  933. package/dist/node_modules/zod/mini/index.d.cts +1 -0
  934. package/dist/node_modules/zod/package.json +1 -1
  935. package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
  936. package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
  937. package/dist/node_modules/zod/v3/errors.d.cts +5 -0
  938. package/dist/node_modules/zod/v3/errors.d.ts +5 -0
  939. package/dist/node_modules/zod/v3/external.d.cts +6 -0
  940. package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  941. package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  942. package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  943. package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  944. package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  945. package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  946. package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  947. package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  948. package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
  949. package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
  950. package/dist/node_modules/zod/v3/index.d.cts +4 -0
  951. package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
  952. package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
  953. package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
  954. package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
  955. package/dist/node_modules/zod/v3/types.d.cts +1034 -0
  956. package/dist/node_modules/zod/v3/types.d.ts +1034 -0
  957. package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
  958. package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
  959. package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  960. package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  961. package/dist/node_modules/zod/v4/classic/compat.d.cts +50 -0
  962. package/dist/node_modules/zod/v4/classic/compat.d.ts +50 -0
  963. package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
  964. package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
  965. package/dist/node_modules/zod/v4/classic/external.d.cts +15 -0
  966. package/dist/node_modules/zod/v4/classic/external.d.ts +15 -0
  967. package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  968. package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  969. package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
  970. package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
  971. package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
  972. package/dist/node_modules/zod/v4/classic/parse.d.cts +31 -0
  973. package/dist/node_modules/zod/v4/classic/parse.d.ts +31 -0
  974. package/dist/node_modules/zod/v4/classic/schemas.d.cts +739 -0
  975. package/dist/node_modules/zod/v4/classic/schemas.d.ts +739 -0
  976. package/dist/node_modules/zod/v4/core/api.d.cts +304 -0
  977. package/dist/node_modules/zod/v4/core/api.d.ts +304 -0
  978. package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
  979. package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
  980. package/dist/node_modules/zod/v4/core/core.d.cts +70 -0
  981. package/dist/node_modules/zod/v4/core/core.d.ts +70 -0
  982. package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
  983. package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
  984. package/dist/node_modules/zod/v4/core/errors.d.cts +220 -0
  985. package/dist/node_modules/zod/v4/core/errors.d.ts +220 -0
  986. package/dist/node_modules/zod/v4/core/index.d.cts +16 -0
  987. package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  988. package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  989. package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  990. package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  991. package/dist/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  992. package/dist/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  993. package/dist/node_modules/zod/v4/core/parse.d.cts +49 -0
  994. package/dist/node_modules/zod/v4/core/parse.d.ts +49 -0
  995. package/dist/node_modules/zod/v4/core/regexes.d.cts +79 -0
  996. package/dist/node_modules/zod/v4/core/regexes.d.ts +79 -0
  997. package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
  998. package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
  999. package/dist/node_modules/zod/v4/core/schemas.d.cts +1146 -0
  1000. package/dist/node_modules/zod/v4/core/schemas.d.ts +1146 -0
  1001. package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1002. package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1003. package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  1004. package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  1005. package/dist/node_modules/zod/v4/core/util.d.cts +199 -0
  1006. package/dist/node_modules/zod/v4/core/util.d.ts +199 -0
  1007. package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
  1008. package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
  1009. package/dist/node_modules/zod/v4/index.d.cts +3 -0
  1010. package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1011. package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1012. package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
  1013. package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
  1014. package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
  1015. package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
  1016. package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1017. package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1018. package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1019. package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1020. package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1021. package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1022. package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
  1023. package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
  1024. package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
  1025. package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
  1026. package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
  1027. package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
  1028. package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1029. package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1030. package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
  1031. package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
  1032. package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1033. package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1034. package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1035. package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1036. package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1037. package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1038. package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1039. package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1040. package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
  1041. package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
  1042. package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1043. package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1044. package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1045. package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1046. package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
  1047. package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
  1048. package/dist/node_modules/zod/v4/locales/index.d.cts +49 -0
  1049. package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
  1050. package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
  1051. package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
  1052. package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
  1053. package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1054. package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1055. package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1056. package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1057. package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1058. package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1059. package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
  1060. package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
  1061. package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1062. package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1063. package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1064. package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1065. package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1066. package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1067. package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1068. package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1069. package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1070. package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1071. package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
  1072. package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
  1073. package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1074. package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1075. package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1076. package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1077. package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1078. package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1079. package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1080. package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1081. package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1082. package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1083. package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1084. package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1085. package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1086. package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1087. package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1088. package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1089. package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
  1090. package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
  1091. package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1092. package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1093. package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1094. package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1095. package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1096. package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1097. package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1098. package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1099. package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1100. package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1101. package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1102. package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1103. package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1104. package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1105. package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1106. package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1107. package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1108. package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1109. package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1110. package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1111. package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1112. package/dist/node_modules/zod/v4/mini/external.d.cts +12 -0
  1113. package/dist/node_modules/zod/v4/mini/external.d.ts +12 -0
  1114. package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
  1115. package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1116. package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1117. package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1118. package/dist/node_modules/zod/v4/mini/schemas.d.cts +427 -0
  1119. package/dist/node_modules/zod/v4/mini/schemas.d.ts +427 -0
  1120. package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
  1121. package/dist/server/ai-employees/ai-employee.d.ts +2 -0
  1122. package/dist/server/ai-employees/ai-employee.js +75 -2
  1123. package/dist/server/document-loader/cached.d.ts +34 -0
  1124. package/dist/server/document-loader/cached.js +237 -0
  1125. package/dist/server/document-loader/constants.d.ts +11 -0
  1126. package/dist/server/document-loader/constants.js +46 -0
  1127. package/dist/server/document-loader/index.d.ts +22 -0
  1128. package/dist/server/document-loader/index.js +65 -0
  1129. package/dist/server/document-loader/loader.d.ts +18 -0
  1130. package/dist/server/document-loader/loader.js +112 -0
  1131. package/dist/server/document-loader/loader.worker.d.ts +9 -0
  1132. package/dist/server/document-loader/loader.worker.js +68 -0
  1133. package/dist/server/document-loader/types.d.ts +43 -0
  1134. package/dist/server/document-loader/types.js +24 -0
  1135. package/dist/server/document-loader/utils.d.ts +10 -0
  1136. package/dist/server/document-loader/utils.js +49 -0
  1137. package/dist/server/document-loader/vendor/langchain/document_loaders/fs/text.d.ts +20 -0
  1138. package/dist/server/document-loader/vendor/langchain/document_loaders/fs/text.js +96 -0
  1139. package/dist/server/index.d.ts +2 -0
  1140. package/dist/server/index.js +3 -0
  1141. package/dist/server/llm-providers/anthropic.js +14 -8
  1142. package/dist/server/llm-providers/common/reasoning.d.ts +29 -0
  1143. package/dist/server/llm-providers/common/reasoning.js +144 -0
  1144. package/dist/server/llm-providers/dashscope.d.ts +17 -3
  1145. package/dist/server/llm-providers/dashscope.js +70 -1
  1146. package/dist/server/llm-providers/deepseek.d.ts +23 -1
  1147. package/dist/server/llm-providers/deepseek.js +96 -1
  1148. package/dist/server/llm-providers/google-genai.d.ts +13 -7
  1149. package/dist/server/llm-providers/google-genai.js +11 -5
  1150. package/dist/server/llm-providers/kimi/document-loader.d.ts +25 -0
  1151. package/dist/server/llm-providers/kimi/document-loader.js +136 -0
  1152. package/dist/server/llm-providers/kimi/index.d.ts +9 -0
  1153. package/dist/server/llm-providers/kimi/index.js +38 -0
  1154. package/dist/server/llm-providers/kimi/provider.d.ts +33 -0
  1155. package/dist/server/llm-providers/kimi/provider.js +162 -0
  1156. package/dist/server/llm-providers/provider.d.ts +9 -1
  1157. package/dist/server/llm-providers/provider.js +18 -9
  1158. package/dist/server/plugin.d.ts +4 -0
  1159. package/dist/server/plugin.js +5 -0
  1160. package/package.json +3 -2
  1161. package/dist/client/f36cbdd2680ceeba.js +0 -10
  1162. package/dist/node_modules/@langchain/anthropic/LICENSE +0 -21
  1163. package/dist/node_modules/@langchain/anthropic/dist/_virtual/rolldown_runtime.cjs +0 -25
  1164. package/dist/node_modules/@langchain/anthropic/dist/chat_models.cjs +0 -1057
  1165. package/dist/node_modules/@langchain/anthropic/dist/chat_models.js +0 -1055
  1166. package/dist/node_modules/@langchain/anthropic/dist/index.cjs +0 -8
  1167. package/dist/node_modules/@langchain/anthropic/dist/index.js +0 -5
  1168. package/dist/node_modules/@langchain/anthropic/dist/output_parsers.cjs +0 -67
  1169. package/dist/node_modules/@langchain/anthropic/dist/output_parsers.js +0 -65
  1170. package/dist/node_modules/@langchain/anthropic/dist/profiles.cjs +0 -332
  1171. package/dist/node_modules/@langchain/anthropic/dist/profiles.js +0 -331
  1172. package/dist/node_modules/@langchain/anthropic/dist/tools/bash.cjs +0 -95
  1173. package/dist/node_modules/@langchain/anthropic/dist/tools/bash.js +0 -94
  1174. package/dist/node_modules/@langchain/anthropic/dist/tools/codeExecution.cjs +0 -70
  1175. package/dist/node_modules/@langchain/anthropic/dist/tools/codeExecution.js +0 -69
  1176. package/dist/node_modules/@langchain/anthropic/dist/tools/computer.cjs +0 -161
  1177. package/dist/node_modules/@langchain/anthropic/dist/tools/computer.js +0 -159
  1178. package/dist/node_modules/@langchain/anthropic/dist/tools/index.cjs +0 -28
  1179. package/dist/node_modules/@langchain/anthropic/dist/tools/index.js +0 -28
  1180. package/dist/node_modules/@langchain/anthropic/dist/tools/mcpToolset.cjs +0 -111
  1181. package/dist/node_modules/@langchain/anthropic/dist/tools/mcpToolset.js +0 -110
  1182. package/dist/node_modules/@langchain/anthropic/dist/tools/memory.cjs +0 -56
  1183. package/dist/node_modules/@langchain/anthropic/dist/tools/memory.js +0 -55
  1184. package/dist/node_modules/@langchain/anthropic/dist/tools/textEditor.cjs +0 -79
  1185. package/dist/node_modules/@langchain/anthropic/dist/tools/textEditor.js +0 -78
  1186. package/dist/node_modules/@langchain/anthropic/dist/tools/toolSearch.cjs +0 -110
  1187. package/dist/node_modules/@langchain/anthropic/dist/tools/toolSearch.js +0 -108
  1188. package/dist/node_modules/@langchain/anthropic/dist/tools/types.cjs +0 -204
  1189. package/dist/node_modules/@langchain/anthropic/dist/tools/types.js +0 -199
  1190. package/dist/node_modules/@langchain/anthropic/dist/tools/webFetch.cjs +0 -70
  1191. package/dist/node_modules/@langchain/anthropic/dist/tools/webFetch.js +0 -69
  1192. package/dist/node_modules/@langchain/anthropic/dist/tools/webSearch.cjs +0 -57
  1193. package/dist/node_modules/@langchain/anthropic/dist/tools/webSearch.js +0 -56
  1194. package/dist/node_modules/@langchain/anthropic/dist/utils/content.cjs +0 -155
  1195. package/dist/node_modules/@langchain/anthropic/dist/utils/content.js +0 -149
  1196. package/dist/node_modules/@langchain/anthropic/dist/utils/errors.cjs +0 -20
  1197. package/dist/node_modules/@langchain/anthropic/dist/utils/errors.js +0 -19
  1198. package/dist/node_modules/@langchain/anthropic/dist/utils/index.cjs +0 -7
  1199. package/dist/node_modules/@langchain/anthropic/dist/utils/index.js +0 -6
  1200. package/dist/node_modules/@langchain/anthropic/dist/utils/message_inputs.cjs +0 -346
  1201. package/dist/node_modules/@langchain/anthropic/dist/utils/message_inputs.js +0 -344
  1202. package/dist/node_modules/@langchain/anthropic/dist/utils/message_outputs.cjs +0 -203
  1203. package/dist/node_modules/@langchain/anthropic/dist/utils/message_outputs.js +0 -201
  1204. package/dist/node_modules/@langchain/anthropic/dist/utils/prompts.cjs +0 -49
  1205. package/dist/node_modules/@langchain/anthropic/dist/utils/prompts.js +0 -49
  1206. package/dist/node_modules/@langchain/anthropic/dist/utils/standard.cjs +0 -285
  1207. package/dist/node_modules/@langchain/anthropic/dist/utils/standard.js +0 -285
  1208. package/dist/node_modules/@langchain/anthropic/dist/utils/tools.cjs +0 -44
  1209. package/dist/node_modules/@langchain/anthropic/dist/utils/tools.js +0 -41
  1210. package/dist/node_modules/@langchain/anthropic/package.json +0 -1
  1211. package/dist/node_modules/@langchain/core/LICENSE +0 -21
  1212. package/dist/node_modules/@langchain/core/agents.cjs +0 -1
  1213. package/dist/node_modules/@langchain/core/agents.js +0 -1
  1214. package/dist/node_modules/@langchain/core/caches.cjs +0 -1
  1215. package/dist/node_modules/@langchain/core/caches.js +0 -1
  1216. package/dist/node_modules/@langchain/core/callbacks/base.cjs +0 -1
  1217. package/dist/node_modules/@langchain/core/callbacks/base.js +0 -1
  1218. package/dist/node_modules/@langchain/core/callbacks/dispatch/web.cjs +0 -1
  1219. package/dist/node_modules/@langchain/core/callbacks/dispatch/web.js +0 -1
  1220. package/dist/node_modules/@langchain/core/callbacks/dispatch.cjs +0 -1
  1221. package/dist/node_modules/@langchain/core/callbacks/dispatch.js +0 -1
  1222. package/dist/node_modules/@langchain/core/callbacks/manager.cjs +0 -1
  1223. package/dist/node_modules/@langchain/core/callbacks/manager.js +0 -1
  1224. package/dist/node_modules/@langchain/core/callbacks/promises.cjs +0 -1
  1225. package/dist/node_modules/@langchain/core/callbacks/promises.js +0 -1
  1226. package/dist/node_modules/@langchain/core/chat_history.cjs +0 -1
  1227. package/dist/node_modules/@langchain/core/chat_history.js +0 -1
  1228. package/dist/node_modules/@langchain/core/context.cjs +0 -1
  1229. package/dist/node_modules/@langchain/core/context.js +0 -1
  1230. package/dist/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.cjs +0 -32
  1231. package/dist/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.js +0 -11
  1232. package/dist/node_modules/@langchain/core/dist/agents.cjs +0 -12
  1233. package/dist/node_modules/@langchain/core/dist/agents.js +0 -6
  1234. package/dist/node_modules/@langchain/core/dist/caches/index.cjs +0 -94
  1235. package/dist/node_modules/@langchain/core/dist/caches/index.js +0 -84
  1236. package/dist/node_modules/@langchain/core/dist/callbacks/base.cjs +0 -120
  1237. package/dist/node_modules/@langchain/core/dist/callbacks/base.js +0 -112
  1238. package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/index.cjs +0 -50
  1239. package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/index.js +0 -49
  1240. package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/web.cjs +0 -53
  1241. package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/web.js +0 -53
  1242. package/dist/node_modules/@langchain/core/dist/callbacks/manager.cjs +0 -538
  1243. package/dist/node_modules/@langchain/core/dist/callbacks/manager.js +0 -524
  1244. package/dist/node_modules/@langchain/core/dist/callbacks/promises.cjs +0 -20
  1245. package/dist/node_modules/@langchain/core/dist/callbacks/promises.js +0 -13
  1246. package/dist/node_modules/@langchain/core/dist/chat_history.cjs +0 -126
  1247. package/dist/node_modules/@langchain/core/dist/chat_history.js +0 -118
  1248. package/dist/node_modules/@langchain/core/dist/context.cjs +0 -16
  1249. package/dist/node_modules/@langchain/core/dist/context.js +0 -12
  1250. package/dist/node_modules/@langchain/core/dist/document_loaders/base.cjs +0 -21
  1251. package/dist/node_modules/@langchain/core/dist/document_loaders/base.js +0 -15
  1252. package/dist/node_modules/@langchain/core/dist/document_loaders/langsmith.cjs +0 -131
  1253. package/dist/node_modules/@langchain/core/dist/document_loaders/langsmith.js +0 -125
  1254. package/dist/node_modules/@langchain/core/dist/documents/document.cjs +0 -25
  1255. package/dist/node_modules/@langchain/core/dist/documents/document.js +0 -24
  1256. package/dist/node_modules/@langchain/core/dist/documents/index.cjs +0 -23
  1257. package/dist/node_modules/@langchain/core/dist/documents/index.js +0 -15
  1258. package/dist/node_modules/@langchain/core/dist/documents/transformers.cjs +0 -49
  1259. package/dist/node_modules/@langchain/core/dist/documents/transformers.js +0 -48
  1260. package/dist/node_modules/@langchain/core/dist/embeddings.cjs +0 -30
  1261. package/dist/node_modules/@langchain/core/dist/embeddings.js +0 -24
  1262. package/dist/node_modules/@langchain/core/dist/errors/index.cjs +0 -49
  1263. package/dist/node_modules/@langchain/core/dist/errors/index.js +0 -42
  1264. package/dist/node_modules/@langchain/core/dist/example_selectors/base.cjs +0 -17
  1265. package/dist/node_modules/@langchain/core/dist/example_selectors/base.js +0 -17
  1266. package/dist/node_modules/@langchain/core/dist/example_selectors/conditional.cjs +0 -64
  1267. package/dist/node_modules/@langchain/core/dist/example_selectors/conditional.js +0 -60
  1268. package/dist/node_modules/@langchain/core/dist/example_selectors/index.cjs +0 -33
  1269. package/dist/node_modules/@langchain/core/dist/example_selectors/index.js +0 -21
  1270. package/dist/node_modules/@langchain/core/dist/example_selectors/length_based.cjs +0 -123
  1271. package/dist/node_modules/@langchain/core/dist/example_selectors/length_based.js +0 -123
  1272. package/dist/node_modules/@langchain/core/dist/example_selectors/semantic_similarity.cjs +0 -122
  1273. package/dist/node_modules/@langchain/core/dist/example_selectors/semantic_similarity.js +0 -122
  1274. package/dist/node_modules/@langchain/core/dist/index.cjs +0 -1
  1275. package/dist/node_modules/@langchain/core/dist/index.js +0 -6
  1276. package/dist/node_modules/@langchain/core/dist/indexing/base.cjs +0 -219
  1277. package/dist/node_modules/@langchain/core/dist/indexing/base.js +0 -213
  1278. package/dist/node_modules/@langchain/core/dist/indexing/index.cjs +0 -33
  1279. package/dist/node_modules/@langchain/core/dist/indexing/index.js +0 -20
  1280. package/dist/node_modules/@langchain/core/dist/indexing/record_manager.cjs +0 -12
  1281. package/dist/node_modules/@langchain/core/dist/indexing/record_manager.js +0 -11
  1282. package/dist/node_modules/@langchain/core/dist/language_models/base.cjs +0 -285
  1283. package/dist/node_modules/@langchain/core/dist/language_models/base.js +0 -273
  1284. package/dist/node_modules/@langchain/core/dist/language_models/chat_models.cjs +0 -447
  1285. package/dist/node_modules/@langchain/core/dist/language_models/chat_models.js +0 -440
  1286. package/dist/node_modules/@langchain/core/dist/language_models/llms.cjs +0 -275
  1287. package/dist/node_modules/@langchain/core/dist/language_models/llms.js +0 -268
  1288. package/dist/node_modules/@langchain/core/dist/language_models/profile.cjs +0 -12
  1289. package/dist/node_modules/@langchain/core/dist/language_models/profile.js +0 -6
  1290. package/dist/node_modules/@langchain/core/dist/language_models/utils.cjs +0 -19
  1291. package/dist/node_modules/@langchain/core/dist/language_models/utils.js +0 -17
  1292. package/dist/node_modules/@langchain/core/dist/load/import_constants.cjs +0 -8
  1293. package/dist/node_modules/@langchain/core/dist/load/import_constants.js +0 -7
  1294. package/dist/node_modules/@langchain/core/dist/load/import_map.cjs +0 -133
  1295. package/dist/node_modules/@langchain/core/dist/load/import_map.js +0 -128
  1296. package/dist/node_modules/@langchain/core/dist/load/index.cjs +0 -151
  1297. package/dist/node_modules/@langchain/core/dist/load/index.js +0 -151
  1298. package/dist/node_modules/@langchain/core/dist/load/map_keys.cjs +0 -22
  1299. package/dist/node_modules/@langchain/core/dist/load/map_keys.js +0 -19
  1300. package/dist/node_modules/@langchain/core/dist/load/serializable.cjs +0 -157
  1301. package/dist/node_modules/@langchain/core/dist/load/serializable.js +0 -150
  1302. package/dist/node_modules/@langchain/core/dist/load/validation.cjs +0 -121
  1303. package/dist/node_modules/@langchain/core/dist/load/validation.js +0 -118
  1304. package/dist/node_modules/@langchain/core/dist/memory.cjs +0 -72
  1305. package/dist/node_modules/@langchain/core/dist/memory.js +0 -63
  1306. package/dist/node_modules/@langchain/core/dist/messages/ai.cjs +0 -231
  1307. package/dist/node_modules/@langchain/core/dist/messages/ai.js +0 -228
  1308. package/dist/node_modules/@langchain/core/dist/messages/base.cjs +0 -307
  1309. package/dist/node_modules/@langchain/core/dist/messages/base.js +0 -296
  1310. package/dist/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs +0 -367
  1311. package/dist/node_modules/@langchain/core/dist/messages/block_translators/anthropic.js +0 -366
  1312. package/dist/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs +0 -213
  1313. package/dist/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.js +0 -213
  1314. package/dist/node_modules/@langchain/core/dist/messages/block_translators/data.cjs +0 -71
  1315. package/dist/node_modules/@langchain/core/dist/messages/block_translators/data.js +0 -69
  1316. package/dist/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs +0 -59
  1317. package/dist/node_modules/@langchain/core/dist/messages/block_translators/deepseek.js +0 -59
  1318. package/dist/node_modules/@langchain/core/dist/messages/block_translators/google.cjs +0 -86
  1319. package/dist/node_modules/@langchain/core/dist/messages/block_translators/google.js +0 -86
  1320. package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs +0 -80
  1321. package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_genai.js +0 -80
  1322. package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs +0 -81
  1323. package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.js +0 -81
  1324. package/dist/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs +0 -97
  1325. package/dist/node_modules/@langchain/core/dist/messages/block_translators/groq.js +0 -97
  1326. package/dist/node_modules/@langchain/core/dist/messages/block_translators/index.cjs +0 -31
  1327. package/dist/node_modules/@langchain/core/dist/messages/block_translators/index.js +0 -31
  1328. package/dist/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs +0 -59
  1329. package/dist/node_modules/@langchain/core/dist/messages/block_translators/ollama.js +0 -59
  1330. package/dist/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs +0 -413
  1331. package/dist/node_modules/@langchain/core/dist/messages/block_translators/openai.js +0 -412
  1332. package/dist/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs +0 -39
  1333. package/dist/node_modules/@langchain/core/dist/messages/block_translators/utils.js +0 -31
  1334. package/dist/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs +0 -95
  1335. package/dist/node_modules/@langchain/core/dist/messages/block_translators/xai.js +0 -95
  1336. package/dist/node_modules/@langchain/core/dist/messages/chat.cjs +0 -90
  1337. package/dist/node_modules/@langchain/core/dist/messages/chat.js +0 -87
  1338. package/dist/node_modules/@langchain/core/dist/messages/content/data.cjs +0 -146
  1339. package/dist/node_modules/@langchain/core/dist/messages/content/data.js +0 -137
  1340. package/dist/node_modules/@langchain/core/dist/messages/content/index.cjs +0 -14
  1341. package/dist/node_modules/@langchain/core/dist/messages/content/index.js +0 -14
  1342. package/dist/node_modules/@langchain/core/dist/messages/content/multimodal.cjs +0 -13
  1343. package/dist/node_modules/@langchain/core/dist/messages/content/multimodal.js +0 -12
  1344. package/dist/node_modules/@langchain/core/dist/messages/content/tools.cjs +0 -14
  1345. package/dist/node_modules/@langchain/core/dist/messages/content/tools.js +0 -13
  1346. package/dist/node_modules/@langchain/core/dist/messages/format.cjs +0 -39
  1347. package/dist/node_modules/@langchain/core/dist/messages/format.js +0 -38
  1348. package/dist/node_modules/@langchain/core/dist/messages/function.cjs +0 -50
  1349. package/dist/node_modules/@langchain/core/dist/messages/function.js +0 -47
  1350. package/dist/node_modules/@langchain/core/dist/messages/human.cjs +0 -62
  1351. package/dist/node_modules/@langchain/core/dist/messages/human.js +0 -59
  1352. package/dist/node_modules/@langchain/core/dist/messages/index.cjs +0 -157
  1353. package/dist/node_modules/@langchain/core/dist/messages/index.js +0 -88
  1354. package/dist/node_modules/@langchain/core/dist/messages/message.cjs +0 -15
  1355. package/dist/node_modules/@langchain/core/dist/messages/message.js +0 -14
  1356. package/dist/node_modules/@langchain/core/dist/messages/metadata.cjs +0 -41
  1357. package/dist/node_modules/@langchain/core/dist/messages/metadata.js +0 -40
  1358. package/dist/node_modules/@langchain/core/dist/messages/modifier.cjs +0 -33
  1359. package/dist/node_modules/@langchain/core/dist/messages/modifier.js +0 -33
  1360. package/dist/node_modules/@langchain/core/dist/messages/system.cjs +0 -86
  1361. package/dist/node_modules/@langchain/core/dist/messages/system.js +0 -83
  1362. package/dist/node_modules/@langchain/core/dist/messages/tool.cjs +0 -166
  1363. package/dist/node_modules/@langchain/core/dist/messages/tool.js +0 -155
  1364. package/dist/node_modules/@langchain/core/dist/messages/transformers.cjs +0 -314
  1365. package/dist/node_modules/@langchain/core/dist/messages/transformers.js +0 -311
  1366. package/dist/node_modules/@langchain/core/dist/messages/utils.cjs +0 -296
  1367. package/dist/node_modules/@langchain/core/dist/messages/utils.js +0 -289
  1368. package/dist/node_modules/@langchain/core/dist/output_parsers/base.cjs +0 -108
  1369. package/dist/node_modules/@langchain/core/dist/output_parsers/base.js +0 -106
  1370. package/dist/node_modules/@langchain/core/dist/output_parsers/bytes.cjs +0 -29
  1371. package/dist/node_modules/@langchain/core/dist/output_parsers/bytes.js +0 -29
  1372. package/dist/node_modules/@langchain/core/dist/output_parsers/index.cjs +0 -66
  1373. package/dist/node_modules/@langchain/core/dist/output_parsers/index.js +0 -40
  1374. package/dist/node_modules/@langchain/core/dist/output_parsers/json.cjs +0 -53
  1375. package/dist/node_modules/@langchain/core/dist/output_parsers/json.js +0 -53
  1376. package/dist/node_modules/@langchain/core/dist/output_parsers/list.cjs +0 -160
  1377. package/dist/node_modules/@langchain/core/dist/output_parsers/list.js +0 -156
  1378. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/index.cjs +0 -22
  1379. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/index.js +0 -14
  1380. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/json_output_functions_parsers.cjs +0 -144
  1381. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/json_output_functions_parsers.js +0 -142
  1382. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/index.cjs +0 -26
  1383. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/index.js +0 -16
  1384. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.cjs +0 -183
  1385. package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.js +0 -179
  1386. package/dist/node_modules/@langchain/core/dist/output_parsers/string.cjs +0 -72
  1387. package/dist/node_modules/@langchain/core/dist/output_parsers/string.js +0 -72
  1388. package/dist/node_modules/@langchain/core/dist/output_parsers/structured.cjs +0 -165
  1389. package/dist/node_modules/@langchain/core/dist/output_parsers/structured.js +0 -162
  1390. package/dist/node_modules/@langchain/core/dist/output_parsers/transform.cjs +0 -82
  1391. package/dist/node_modules/@langchain/core/dist/output_parsers/transform.js +0 -80
  1392. package/dist/node_modules/@langchain/core/dist/output_parsers/xml.cjs +0 -112
  1393. package/dist/node_modules/@langchain/core/dist/output_parsers/xml.js +0 -110
  1394. package/dist/node_modules/@langchain/core/dist/outputs.cjs +0 -59
  1395. package/dist/node_modules/@langchain/core/dist/outputs.js +0 -51
  1396. package/dist/node_modules/@langchain/core/dist/prompt_values.cjs +0 -106
  1397. package/dist/node_modules/@langchain/core/dist/prompt_values.js +0 -97
  1398. package/dist/node_modules/@langchain/core/dist/prompts/base.cjs +0 -72
  1399. package/dist/node_modules/@langchain/core/dist/prompts/base.js +0 -72
  1400. package/dist/node_modules/@langchain/core/dist/prompts/chat.cjs +0 -551
  1401. package/dist/node_modules/@langchain/core/dist/prompts/chat.js +0 -543
  1402. package/dist/node_modules/@langchain/core/dist/prompts/dict.cjs +0 -64
  1403. package/dist/node_modules/@langchain/core/dist/prompts/dict.js +0 -64
  1404. package/dist/node_modules/@langchain/core/dist/prompts/few_shot.cjs +0 -242
  1405. package/dist/node_modules/@langchain/core/dist/prompts/few_shot.js +0 -241
  1406. package/dist/node_modules/@langchain/core/dist/prompts/image.cjs +0 -94
  1407. package/dist/node_modules/@langchain/core/dist/prompts/image.js +0 -94
  1408. package/dist/node_modules/@langchain/core/dist/prompts/index.cjs +0 -79
  1409. package/dist/node_modules/@langchain/core/dist/prompts/index.js +0 -47
  1410. package/dist/node_modules/@langchain/core/dist/prompts/pipeline.cjs +0 -130
  1411. package/dist/node_modules/@langchain/core/dist/prompts/pipeline.js +0 -130
  1412. package/dist/node_modules/@langchain/core/dist/prompts/prompt.cjs +0 -133
  1413. package/dist/node_modules/@langchain/core/dist/prompts/prompt.js +0 -133
  1414. package/dist/node_modules/@langchain/core/dist/prompts/string.cjs +0 -25
  1415. package/dist/node_modules/@langchain/core/dist/prompts/string.js +0 -25
  1416. package/dist/node_modules/@langchain/core/dist/prompts/structured.cjs +0 -50
  1417. package/dist/node_modules/@langchain/core/dist/prompts/structured.js +0 -50
  1418. package/dist/node_modules/@langchain/core/dist/prompts/template.cjs +0 -158
  1419. package/dist/node_modules/@langchain/core/dist/prompts/template.js +0 -149
  1420. package/dist/node_modules/@langchain/core/dist/retrievers/document_compressors/index.cjs +0 -23
  1421. package/dist/node_modules/@langchain/core/dist/retrievers/document_compressors/index.js +0 -17
  1422. package/dist/node_modules/@langchain/core/dist/retrievers/index.cjs +0 -106
  1423. package/dist/node_modules/@langchain/core/dist/retrievers/index.js +0 -100
  1424. package/dist/node_modules/@langchain/core/dist/runnables/base.cjs +0 -1790
  1425. package/dist/node_modules/@langchain/core/dist/runnables/base.js +0 -1776
  1426. package/dist/node_modules/@langchain/core/dist/runnables/branch.cjs +0 -153
  1427. package/dist/node_modules/@langchain/core/dist/runnables/branch.js +0 -153
  1428. package/dist/node_modules/@langchain/core/dist/runnables/config.cjs +0 -163
  1429. package/dist/node_modules/@langchain/core/dist/runnables/config.js +0 -158
  1430. package/dist/node_modules/@langchain/core/dist/runnables/graph.cjs +0 -225
  1431. package/dist/node_modules/@langchain/core/dist/runnables/graph.js +0 -219
  1432. package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.cjs +0 -117
  1433. package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.js +0 -116
  1434. package/dist/node_modules/@langchain/core/dist/runnables/history.cjs +0 -162
  1435. package/dist/node_modules/@langchain/core/dist/runnables/history.js +0 -162
  1436. package/dist/node_modules/@langchain/core/dist/runnables/index.cjs +0 -68
  1437. package/dist/node_modules/@langchain/core/dist/runnables/index.js +0 -40
  1438. package/dist/node_modules/@langchain/core/dist/runnables/iter.cjs +0 -35
  1439. package/dist/node_modules/@langchain/core/dist/runnables/iter.js +0 -31
  1440. package/dist/node_modules/@langchain/core/dist/runnables/passthrough.cjs +0 -99
  1441. package/dist/node_modules/@langchain/core/dist/runnables/passthrough.js +0 -99
  1442. package/dist/node_modules/@langchain/core/dist/runnables/router.cjs +0 -76
  1443. package/dist/node_modules/@langchain/core/dist/runnables/router.js +0 -76
  1444. package/dist/node_modules/@langchain/core/dist/runnables/utils.cjs +0 -49
  1445. package/dist/node_modules/@langchain/core/dist/runnables/utils.js +0 -46
  1446. package/dist/node_modules/@langchain/core/dist/runnables/wrappers.cjs +0 -16
  1447. package/dist/node_modules/@langchain/core/dist/runnables/wrappers.js +0 -16
  1448. package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/context.cjs +0 -179
  1449. package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/context.js +0 -175
  1450. package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.cjs +0 -16
  1451. package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.js +0 -13
  1452. package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/index.cjs +0 -59
  1453. package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/index.js +0 -57
  1454. package/dist/node_modules/@langchain/core/dist/singletons/callbacks.cjs +0 -55
  1455. package/dist/node_modules/@langchain/core/dist/singletons/callbacks.js +0 -53
  1456. package/dist/node_modules/@langchain/core/dist/singletons/index.cjs +0 -23
  1457. package/dist/node_modules/@langchain/core/dist/singletons/index.js +0 -15
  1458. package/dist/node_modules/@langchain/core/dist/singletons/tracer.cjs +0 -17
  1459. package/dist/node_modules/@langchain/core/dist/singletons/tracer.js +0 -16
  1460. package/dist/node_modules/@langchain/core/dist/stores.cjs +0 -81
  1461. package/dist/node_modules/@langchain/core/dist/stores.js +0 -74
  1462. package/dist/node_modules/@langchain/core/dist/structured_query/base.cjs +0 -89
  1463. package/dist/node_modules/@langchain/core/dist/structured_query/base.js +0 -88
  1464. package/dist/node_modules/@langchain/core/dist/structured_query/functional.cjs +0 -165
  1465. package/dist/node_modules/@langchain/core/dist/structured_query/functional.js +0 -165
  1466. package/dist/node_modules/@langchain/core/dist/structured_query/index.cjs +0 -55
  1467. package/dist/node_modules/@langchain/core/dist/structured_query/index.js +0 -32
  1468. package/dist/node_modules/@langchain/core/dist/structured_query/ir.cjs +0 -85
  1469. package/dist/node_modules/@langchain/core/dist/structured_query/ir.js +0 -77
  1470. package/dist/node_modules/@langchain/core/dist/structured_query/utils.cjs +0 -78
  1471. package/dist/node_modules/@langchain/core/dist/structured_query/utils.js +0 -71
  1472. package/dist/node_modules/@langchain/core/dist/tools/index.cjs +0 -366
  1473. package/dist/node_modules/@langchain/core/dist/tools/index.js +0 -350
  1474. package/dist/node_modules/@langchain/core/dist/tools/types.cjs +0 -56
  1475. package/dist/node_modules/@langchain/core/dist/tools/types.js +0 -53
  1476. package/dist/node_modules/@langchain/core/dist/tools/utils.cjs +0 -26
  1477. package/dist/node_modules/@langchain/core/dist/tools/utils.js +0 -23
  1478. package/dist/node_modules/@langchain/core/dist/tracers/base.cjs +0 -452
  1479. package/dist/node_modules/@langchain/core/dist/tracers/base.js +0 -445
  1480. package/dist/node_modules/@langchain/core/dist/tracers/console.cjs +0 -216
  1481. package/dist/node_modules/@langchain/core/dist/tracers/console.js +0 -210
  1482. package/dist/node_modules/@langchain/core/dist/tracers/event_stream.cjs +0 -382
  1483. package/dist/node_modules/@langchain/core/dist/tracers/event_stream.js +0 -381
  1484. package/dist/node_modules/@langchain/core/dist/tracers/log_stream.cjs +0 -275
  1485. package/dist/node_modules/@langchain/core/dist/tracers/log_stream.js +0 -266
  1486. package/dist/node_modules/@langchain/core/dist/tracers/root_listener.cjs +0 -42
  1487. package/dist/node_modules/@langchain/core/dist/tracers/root_listener.js +0 -42
  1488. package/dist/node_modules/@langchain/core/dist/tracers/run_collector.cjs +0 -46
  1489. package/dist/node_modules/@langchain/core/dist/tracers/run_collector.js +0 -40
  1490. package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.cjs +0 -121
  1491. package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.js +0 -115
  1492. package/dist/node_modules/@langchain/core/dist/types/stream.cjs +0 -12
  1493. package/dist/node_modules/@langchain/core/dist/types/stream.js +0 -6
  1494. package/dist/node_modules/@langchain/core/dist/utils/async_caller.cjs +0 -102
  1495. package/dist/node_modules/@langchain/core/dist/utils/async_caller.js +0 -96
  1496. package/dist/node_modules/@langchain/core/dist/utils/callbacks.cjs +0 -17
  1497. package/dist/node_modules/@langchain/core/dist/utils/callbacks.js +0 -17
  1498. package/dist/node_modules/@langchain/core/dist/utils/chunk_array.cjs +0 -21
  1499. package/dist/node_modules/@langchain/core/dist/utils/chunk_array.js +0 -15
  1500. package/dist/node_modules/@langchain/core/dist/utils/context.cjs +0 -107
  1501. package/dist/node_modules/@langchain/core/dist/utils/context.js +0 -101
  1502. package/dist/node_modules/@langchain/core/dist/utils/env.cjs +0 -66
  1503. package/dist/node_modules/@langchain/core/dist/utils/env.js +0 -53
  1504. package/dist/node_modules/@langchain/core/dist/utils/event_source_parse.cjs +0 -188
  1505. package/dist/node_modules/@langchain/core/dist/utils/event_source_parse.js +0 -178
  1506. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs +0 -15
  1507. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/index.js +0 -15
  1508. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs +0 -346
  1509. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.js +0 -334
  1510. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.cjs +0 -77
  1511. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.js +0 -77
  1512. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs +0 -122
  1513. package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js +0 -114
  1514. package/dist/node_modules/@langchain/core/dist/utils/format.cjs +0 -12
  1515. package/dist/node_modules/@langchain/core/dist/utils/format.js +0 -6
  1516. package/dist/node_modules/@langchain/core/dist/utils/function_calling.cjs +0 -67
  1517. package/dist/node_modules/@langchain/core/dist/utils/function_calling.js +0 -56
  1518. package/dist/node_modules/@langchain/core/dist/utils/hash.cjs +0 -16
  1519. package/dist/node_modules/@langchain/core/dist/utils/hash.js +0 -10
  1520. package/dist/node_modules/@langchain/core/dist/utils/is-network-error/index.cjs +0 -27
  1521. package/dist/node_modules/@langchain/core/dist/utils/is-network-error/index.js +0 -26
  1522. package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.cjs +0 -341
  1523. package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.js +0 -339
  1524. package/dist/node_modules/@langchain/core/dist/utils/json.cjs +0 -211
  1525. package/dist/node_modules/@langchain/core/dist/utils/json.js +0 -209
  1526. package/dist/node_modules/@langchain/core/dist/utils/json_patch.cjs +0 -22
  1527. package/dist/node_modules/@langchain/core/dist/utils/json_patch.js +0 -15
  1528. package/dist/node_modules/@langchain/core/dist/utils/json_schema.cjs +0 -85
  1529. package/dist/node_modules/@langchain/core/dist/utils/json_schema.js +0 -66
  1530. package/dist/node_modules/@langchain/core/dist/utils/math.cjs +0 -130
  1531. package/dist/node_modules/@langchain/core/dist/utils/math.js +0 -119
  1532. package/dist/node_modules/@langchain/core/dist/utils/ml-distance/distances.cjs +0 -18
  1533. package/dist/node_modules/@langchain/core/dist/utils/ml-distance/distances.js +0 -17
  1534. package/dist/node_modules/@langchain/core/dist/utils/ml-distance/similarities.cjs +0 -23
  1535. package/dist/node_modules/@langchain/core/dist/utils/ml-distance/similarities.js +0 -22
  1536. package/dist/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.cjs +0 -14
  1537. package/dist/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.js +0 -13
  1538. package/dist/node_modules/@langchain/core/dist/utils/p-retry/index.cjs +0 -141
  1539. package/dist/node_modules/@langchain/core/dist/utils/p-retry/index.js +0 -141
  1540. package/dist/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs +0 -1208
  1541. package/dist/node_modules/@langchain/core/dist/utils/sax-js/sax.js +0 -1207
  1542. package/dist/node_modules/@langchain/core/dist/utils/signal.cjs +0 -41
  1543. package/dist/node_modules/@langchain/core/dist/utils/signal.js +0 -39
  1544. package/dist/node_modules/@langchain/core/dist/utils/ssrf.cjs +0 -271
  1545. package/dist/node_modules/@langchain/core/dist/utils/ssrf.js +0 -260
  1546. package/dist/node_modules/@langchain/core/dist/utils/stream.cjs +0 -192
  1547. package/dist/node_modules/@langchain/core/dist/utils/stream.js +0 -182
  1548. package/dist/node_modules/@langchain/core/dist/utils/testing/chat_models.cjs +0 -298
  1549. package/dist/node_modules/@langchain/core/dist/utils/testing/chat_models.js +0 -296
  1550. package/dist/node_modules/@langchain/core/dist/utils/testing/embeddings.cjs +0 -90
  1551. package/dist/node_modules/@langchain/core/dist/utils/testing/embeddings.js +0 -89
  1552. package/dist/node_modules/@langchain/core/dist/utils/testing/index.cjs +0 -57
  1553. package/dist/node_modules/@langchain/core/dist/utils/testing/index.js +0 -36
  1554. package/dist/node_modules/@langchain/core/dist/utils/testing/llms.cjs +0 -59
  1555. package/dist/node_modules/@langchain/core/dist/utils/testing/llms.js +0 -58
  1556. package/dist/node_modules/@langchain/core/dist/utils/testing/message_history.cjs +0 -67
  1557. package/dist/node_modules/@langchain/core/dist/utils/testing/message_history.js +0 -65
  1558. package/dist/node_modules/@langchain/core/dist/utils/testing/output_parsers.cjs +0 -20
  1559. package/dist/node_modules/@langchain/core/dist/utils/testing/output_parsers.js +0 -20
  1560. package/dist/node_modules/@langchain/core/dist/utils/testing/retrievers.cjs +0 -19
  1561. package/dist/node_modules/@langchain/core/dist/utils/testing/retrievers.js +0 -19
  1562. package/dist/node_modules/@langchain/core/dist/utils/testing/runnables.cjs +0 -19
  1563. package/dist/node_modules/@langchain/core/dist/utils/testing/runnables.js +0 -19
  1564. package/dist/node_modules/@langchain/core/dist/utils/testing/tools.cjs +0 -21
  1565. package/dist/node_modules/@langchain/core/dist/utils/testing/tools.js +0 -21
  1566. package/dist/node_modules/@langchain/core/dist/utils/testing/tracers.cjs +0 -25
  1567. package/dist/node_modules/@langchain/core/dist/utils/testing/tracers.js +0 -25
  1568. package/dist/node_modules/@langchain/core/dist/utils/testing/vectorstores.cjs +0 -129
  1569. package/dist/node_modules/@langchain/core/dist/utils/testing/vectorstores.js +0 -129
  1570. package/dist/node_modules/@langchain/core/dist/utils/tiktoken.cjs +0 -33
  1571. package/dist/node_modules/@langchain/core/dist/utils/tiktoken.js +0 -26
  1572. package/dist/node_modules/@langchain/core/dist/utils/types/index.cjs +0 -74
  1573. package/dist/node_modules/@langchain/core/dist/utils/types/index.js +0 -40
  1574. package/dist/node_modules/@langchain/core/dist/utils/types/zod.cjs +0 -535
  1575. package/dist/node_modules/@langchain/core/dist/utils/types/zod.js +0 -506
  1576. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.cjs +0 -40
  1577. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.js +0 -37
  1578. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.cjs +0 -30
  1579. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.js +0 -30
  1580. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.cjs +0 -18
  1581. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.js +0 -16
  1582. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.cjs +0 -11
  1583. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.js +0 -10
  1584. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/index.cjs +0 -37
  1585. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/index.js +0 -37
  1586. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.cjs +0 -57
  1587. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.js +0 -57
  1588. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.cjs +0 -17
  1589. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.js +0 -17
  1590. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.cjs +0 -24
  1591. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.js +0 -23
  1592. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.cjs +0 -36
  1593. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.js +0 -36
  1594. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.cjs +0 -9
  1595. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.js +0 -8
  1596. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.cjs +0 -10
  1597. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.js +0 -10
  1598. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.cjs +0 -10
  1599. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.js +0 -10
  1600. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.cjs +0 -39
  1601. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.js +0 -39
  1602. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.cjs +0 -13
  1603. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.js +0 -13
  1604. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.cjs +0 -11
  1605. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.js +0 -11
  1606. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.cjs +0 -12
  1607. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.js +0 -11
  1608. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.cjs +0 -47
  1609. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.js +0 -47
  1610. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.cjs +0 -18
  1611. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.js +0 -17
  1612. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.cjs +0 -40
  1613. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.js +0 -40
  1614. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.cjs +0 -18
  1615. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.js +0 -17
  1616. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.cjs +0 -13
  1617. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.js +0 -13
  1618. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.cjs +0 -12
  1619. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.js +0 -11
  1620. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.cjs +0 -46
  1621. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.js +0 -46
  1622. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.cjs +0 -37
  1623. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.js +0 -37
  1624. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.cjs +0 -64
  1625. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.js +0 -64
  1626. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.cjs +0 -20
  1627. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.js +0 -20
  1628. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.cjs +0 -28
  1629. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.js +0 -28
  1630. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.cjs +0 -10
  1631. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.js +0 -10
  1632. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.cjs +0 -10
  1633. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.js +0 -10
  1634. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.cjs +0 -57
  1635. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.js +0 -56
  1636. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.cjs +0 -22
  1637. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.js +0 -22
  1638. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.cjs +0 -255
  1639. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.js +0 -254
  1640. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.cjs +0 -38
  1641. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.js +0 -38
  1642. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.cjs +0 -10
  1643. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.js +0 -10
  1644. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.cjs +0 -67
  1645. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.js +0 -66
  1646. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.cjs +0 -10
  1647. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.js +0 -10
  1648. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.cjs +0 -81
  1649. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.js +0 -80
  1650. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.cjs +0 -70
  1651. package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.js +0 -70
  1652. package/dist/node_modules/@langchain/core/dist/vectorstores.cjs +0 -395
  1653. package/dist/node_modules/@langchain/core/dist/vectorstores.js +0 -387
  1654. package/dist/node_modules/@langchain/core/document_loaders/base.cjs +0 -1
  1655. package/dist/node_modules/@langchain/core/document_loaders/base.js +0 -1
  1656. package/dist/node_modules/@langchain/core/document_loaders/langsmith.cjs +0 -1
  1657. package/dist/node_modules/@langchain/core/document_loaders/langsmith.js +0 -1
  1658. package/dist/node_modules/@langchain/core/documents.cjs +0 -1
  1659. package/dist/node_modules/@langchain/core/documents.js +0 -1
  1660. package/dist/node_modules/@langchain/core/embeddings.cjs +0 -1
  1661. package/dist/node_modules/@langchain/core/embeddings.js +0 -1
  1662. package/dist/node_modules/@langchain/core/example_selectors.cjs +0 -1
  1663. package/dist/node_modules/@langchain/core/example_selectors.js +0 -1
  1664. package/dist/node_modules/@langchain/core/indexing.cjs +0 -1
  1665. package/dist/node_modules/@langchain/core/indexing.js +0 -1
  1666. package/dist/node_modules/@langchain/core/language_models/base.cjs +0 -1
  1667. package/dist/node_modules/@langchain/core/language_models/base.js +0 -1
  1668. package/dist/node_modules/@langchain/core/language_models/chat_models.cjs +0 -1
  1669. package/dist/node_modules/@langchain/core/language_models/chat_models.js +0 -1
  1670. package/dist/node_modules/@langchain/core/language_models/llms.cjs +0 -1
  1671. package/dist/node_modules/@langchain/core/language_models/llms.js +0 -1
  1672. package/dist/node_modules/@langchain/core/language_models/profile.cjs +0 -1
  1673. package/dist/node_modules/@langchain/core/language_models/profile.js +0 -1
  1674. package/dist/node_modules/@langchain/core/load/serializable.cjs +0 -1
  1675. package/dist/node_modules/@langchain/core/load/serializable.js +0 -1
  1676. package/dist/node_modules/@langchain/core/load.cjs +0 -1
  1677. package/dist/node_modules/@langchain/core/load.js +0 -1
  1678. package/dist/node_modules/@langchain/core/memory.cjs +0 -1
  1679. package/dist/node_modules/@langchain/core/memory.js +0 -1
  1680. package/dist/node_modules/@langchain/core/messages/tool.cjs +0 -1
  1681. package/dist/node_modules/@langchain/core/messages/tool.js +0 -1
  1682. package/dist/node_modules/@langchain/core/messages.cjs +0 -1
  1683. package/dist/node_modules/@langchain/core/messages.js +0 -1
  1684. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/README.md +0 -75
  1685. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/deep-compare-strict.js +0 -42
  1686. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/dereference.js +0 -147
  1687. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/format.js +0 -111
  1688. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/index.js +0 -24
  1689. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/package.json +0 -3
  1690. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/pointer.js +0 -10
  1691. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/types.js +0 -9
  1692. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/ucs2-length.js +0 -20
  1693. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/validate.js +0 -805
  1694. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/validator.js +0 -27
  1695. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js +0 -39
  1696. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/dereference.js +0 -143
  1697. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/format.js +0 -108
  1698. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/index.js +0 -8
  1699. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/package.json +0 -3
  1700. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/pointer.js +0 -6
  1701. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/types.js +0 -6
  1702. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js +0 -17
  1703. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/validate.js +0 -802
  1704. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/validator.js +0 -23
  1705. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/package.json +0 -68
  1706. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/deep-compare-strict.ts +0 -39
  1707. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/dereference.ts +0 -188
  1708. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/format.ts +0 -164
  1709. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/index.ts +0 -8
  1710. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/pointer.ts +0 -7
  1711. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/types.ts +0 -92
  1712. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/ucs2-length.ts +0 -24
  1713. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/validate.ts +0 -1168
  1714. package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/validator.ts +0 -32
  1715. package/dist/node_modules/@langchain/core/node_modules/ansi-styles/index.js +0 -164
  1716. package/dist/node_modules/@langchain/core/node_modules/ansi-styles/license +0 -9
  1717. package/dist/node_modules/@langchain/core/node_modules/ansi-styles/package.json +0 -52
  1718. package/dist/node_modules/@langchain/core/node_modules/camelcase/index.js +0 -113
  1719. package/dist/node_modules/@langchain/core/node_modules/camelcase/license +0 -9
  1720. package/dist/node_modules/@langchain/core/node_modules/camelcase/package.json +0 -44
  1721. package/dist/node_modules/@langchain/core/node_modules/decamelize/index.js +0 -13
  1722. package/dist/node_modules/@langchain/core/node_modules/decamelize/license +0 -21
  1723. package/dist/node_modules/@langchain/core/node_modules/decamelize/package.json +0 -38
  1724. package/dist/node_modules/@langchain/core/node_modules/decamelize/readme.md +0 -48
  1725. package/dist/node_modules/@langchain/core/node_modules/js-tiktoken/lite.cjs +0 -256
  1726. package/dist/node_modules/@langchain/core/node_modules/js-tiktoken/lite.js +0 -1
  1727. package/dist/node_modules/@langchain/core/node_modules/langsmith/README.md +0 -475
  1728. package/dist/node_modules/@langchain/core/node_modules/langsmith/anonymizer.cjs +0 -1
  1729. package/dist/node_modules/@langchain/core/node_modules/langsmith/anonymizer.js +0 -1
  1730. package/dist/node_modules/@langchain/core/node_modules/langsmith/client.cjs +0 -1
  1731. package/dist/node_modules/@langchain/core/node_modules/langsmith/client.js +0 -1
  1732. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/anonymizer/index.cjs +0 -101
  1733. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/anonymizer/index.js +0 -95
  1734. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.cjs +0 -4181
  1735. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.js +0 -4142
  1736. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/env.cjs +0 -12
  1737. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/env.js +0 -8
  1738. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_random_name.cjs +0 -729
  1739. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_random_name.js +0 -726
  1740. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_runner.cjs +0 -985
  1741. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_runner.js +0 -978
  1742. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.cjs +0 -228
  1743. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.js +0 -222
  1744. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluator.cjs +0 -116
  1745. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluator.js +0 -111
  1746. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/index.cjs +0 -9
  1747. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/index.js +0 -3
  1748. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/string_evaluator.cjs +0 -66
  1749. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/string_evaluator.js +0 -62
  1750. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/context.cjs +0 -187
  1751. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/context.js +0 -183
  1752. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/index.cjs +0 -188
  1753. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/index.js +0 -185
  1754. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/messages.cjs +0 -102
  1755. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/messages.js +0 -96
  1756. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/types.cjs +0 -3
  1757. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/types.js +0 -2
  1758. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/usage.cjs +0 -180
  1759. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/usage.js +0 -175
  1760. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/utils.cjs +0 -24
  1761. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/utils.js +0 -20
  1762. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.cjs +0 -60
  1763. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.js +0 -57
  1764. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.cjs +0 -222
  1765. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.js +0 -185
  1766. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.cjs +0 -90
  1767. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.js +0 -85
  1768. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.cjs +0 -95
  1769. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.js +0 -91
  1770. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.cjs +0 -447
  1771. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.js +0 -410
  1772. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.cjs +0 -5
  1773. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.js +0 -4
  1774. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.cjs +0 -23
  1775. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.js +0 -19
  1776. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/client.cjs +0 -639
  1777. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/client.js +0 -635
  1778. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/errors.cjs +0 -306
  1779. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/errors.js +0 -288
  1780. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/helpers.cjs +0 -315
  1781. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/helpers.js +0 -303
  1782. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/index.cjs +0 -56
  1783. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/index.js +0 -40
  1784. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/sandbox.cjs +0 -233
  1785. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/sandbox.js +0 -229
  1786. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/types.cjs +0 -7
  1787. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/types.js +0 -6
  1788. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.cjs +0 -627
  1789. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.js +0 -623
  1790. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.cjs +0 -286
  1791. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.js +0 -283
  1792. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.cjs +0 -173
  1793. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.js +0 -168
  1794. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.cjs +0 -21
  1795. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.js +0 -8
  1796. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.cjs +0 -111
  1797. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.js +0 -388
  1798. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/reporter.cjs +0 -37
  1799. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/reporter.js +0 -35
  1800. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.cjs +0 -143
  1801. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.js +0 -138
  1802. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.cjs +0 -1045
  1803. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.js +0 -1038
  1804. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/schemas.cjs +0 -2
  1805. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/schemas.js +0 -1
  1806. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/constants.cjs +0 -6
  1807. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/constants.js +0 -3
  1808. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.cjs +0 -53
  1809. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.js +0 -46
  1810. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.cjs +0 -155
  1811. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.js +0 -147
  1812. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.cjs +0 -50
  1813. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.js +0 -44
  1814. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.cjs +0 -3
  1815. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.js +0 -1
  1816. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.cjs +0 -853
  1817. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.js +0 -845
  1818. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_git.cjs +0 -72
  1819. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_git.js +0 -67
  1820. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.cjs +0 -179
  1821. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.js +0 -172
  1822. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/asserts.cjs +0 -47
  1823. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/asserts.js +0 -37
  1824. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.cjs +0 -160
  1825. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.js +0 -153
  1826. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/atee.cjs +0 -23
  1827. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/atee.js +0 -20
  1828. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/context_vars.cjs +0 -31
  1829. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/context_vars.js +0 -27
  1830. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.cjs +0 -220
  1831. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.js +0 -203
  1832. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.cjs +0 -179
  1833. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.js +0 -169
  1834. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +0 -283
  1835. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +0 -280
  1836. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/is-network-error/index.cjs +0 -42
  1837. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/is-network-error/index.js +0 -39
  1838. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/constants.cjs +0 -9
  1839. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/constants.js +0 -6
  1840. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/globals.cjs +0 -40
  1841. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/globals.js +0 -35
  1842. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.cjs +0 -694
  1843. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.js +0 -646
  1844. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/matchers.cjs +0 -103
  1845. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/matchers.js +0 -98
  1846. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/reporter.cjs +0 -295
  1847. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/reporter.js +0 -256
  1848. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/types.cjs +0 -2
  1849. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/types.js +0 -1
  1850. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/chain.cjs +0 -92
  1851. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/chain.js +0 -89
  1852. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/evaluatedBy.cjs +0 -96
  1853. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/evaluatedBy.js +0 -92
  1854. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/assignValue.cjs +0 -29
  1855. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/assignValue.js +0 -24
  1856. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseAssignValue.cjs +0 -25
  1857. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseAssignValue.js +0 -23
  1858. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseSet.cjs +0 -50
  1859. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseSet.js +0 -45
  1860. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/castPath.cjs +0 -22
  1861. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/castPath.js +0 -17
  1862. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/eq.cjs +0 -36
  1863. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/eq.js +0 -34
  1864. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/getTag.cjs +0 -18
  1865. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/getTag.js +0 -16
  1866. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isIndex.cjs +0 -25
  1867. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isIndex.js +0 -23
  1868. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isKey.cjs +0 -34
  1869. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isKey.js +0 -29
  1870. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isObject.cjs +0 -31
  1871. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isObject.js +0 -29
  1872. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isSymbol.cjs +0 -28
  1873. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isSymbol.js +0 -23
  1874. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/memoizeCapped.cjs +0 -65
  1875. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/memoizeCapped.js +0 -63
  1876. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/set.cjs +0 -41
  1877. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/set.js +0 -36
  1878. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/stringToPath.cjs +0 -49
  1879. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/stringToPath.js +0 -44
  1880. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/toKey.cjs +0 -24
  1881. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/toKey.js +0 -19
  1882. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.cjs +0 -21
  1883. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.js +0 -17
  1884. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-queue.cjs +0 -9
  1885. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-queue.js +0 -3
  1886. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-retry/index.cjs +0 -200
  1887. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-retry/index.js +0 -191
  1888. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.cjs +0 -10
  1889. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.js +0 -6
  1890. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.browser.cjs +0 -24
  1891. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.browser.js +0 -20
  1892. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.cjs +0 -86
  1893. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.js +0 -49
  1894. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/index.cjs +0 -335
  1895. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/index.js +0 -329
  1896. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.cjs +0 -37
  1897. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.js +0 -33
  1898. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/shuffle.cjs +0 -14
  1899. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/shuffle.js +0 -11
  1900. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/usage.cjs +0 -28
  1901. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/usage.js +0 -24
  1902. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.cjs +0 -225
  1903. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.js +0 -220
  1904. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.cjs +0 -10
  1905. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.js +0 -7
  1906. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs +0 -331
  1907. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/xxhash/xxhash.js +0 -327
  1908. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/uuid.cjs +0 -13
  1909. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/uuid.js +0 -8
  1910. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.cjs +0 -46
  1911. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.d.mts +0 -392
  1912. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.js +0 -323
  1913. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.mjs +0 -324
  1914. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.cjs +0 -20
  1915. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.d.mts +0 -11
  1916. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.js +0 -18
  1917. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.mjs +0 -31
  1918. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/esm.d.mts +0 -8
  1919. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/esm.mjs +0 -38
  1920. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.cjs +0 -38
  1921. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.js +0 -33
  1922. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.cjs +0 -63
  1923. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.js +0 -59
  1924. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/anthropic.cjs +0 -340
  1925. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/anthropic.js +0 -336
  1926. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/gemini.cjs +0 -445
  1927. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/gemini.js +0 -442
  1928. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/generic.cjs +0 -49
  1929. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/generic.js +0 -44
  1930. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/index.cjs +0 -20
  1931. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/index.js +0 -2
  1932. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.cjs +0 -470
  1933. package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.js +0 -466
  1934. package/dist/node_modules/@langchain/core/node_modules/langsmith/evaluation.cjs +0 -1
  1935. package/dist/node_modules/@langchain/core/node_modules/langsmith/evaluation.js +0 -1
  1936. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/anthropic.cjs +0 -1
  1937. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/anthropic.js +0 -1
  1938. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.cjs +0 -1
  1939. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.js +0 -1
  1940. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.cjs +0 -1
  1941. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.js +0 -1
  1942. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.cjs +0 -1
  1943. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.js +0 -1
  1944. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/sandbox.cjs +0 -1
  1945. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/sandbox.js +0 -1
  1946. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.cjs +0 -1
  1947. package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.js +0 -1
  1948. package/dist/node_modules/@langchain/core/node_modules/langsmith/index.cjs +0 -1
  1949. package/dist/node_modules/@langchain/core/node_modules/langsmith/index.js +0 -1
  1950. package/dist/node_modules/@langchain/core/node_modules/langsmith/jest/reporter.cjs +0 -1
  1951. package/dist/node_modules/@langchain/core/node_modules/langsmith/jest/reporter.js +0 -1
  1952. package/dist/node_modules/@langchain/core/node_modules/langsmith/jest.cjs +0 -1
  1953. package/dist/node_modules/@langchain/core/node_modules/langsmith/jest.js +0 -1
  1954. package/dist/node_modules/@langchain/core/node_modules/langsmith/langchain.cjs +0 -1
  1955. package/dist/node_modules/@langchain/core/node_modules/langsmith/langchain.js +0 -1
  1956. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/LICENSE +0 -15
  1957. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/README.md +0 -654
  1958. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/bin/semver.js +0 -188
  1959. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/comparator.js +0 -141
  1960. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/index.js +0 -5
  1961. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/range.js +0 -554
  1962. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/semver.js +0 -302
  1963. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/clean.js +0 -6
  1964. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/cmp.js +0 -52
  1965. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/coerce.js +0 -60
  1966. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/compare-build.js +0 -7
  1967. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/compare-loose.js +0 -3
  1968. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/compare.js +0 -5
  1969. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/diff.js +0 -65
  1970. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/eq.js +0 -3
  1971. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/gt.js +0 -3
  1972. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/gte.js +0 -3
  1973. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/inc.js +0 -19
  1974. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/lt.js +0 -3
  1975. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/lte.js +0 -3
  1976. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/major.js +0 -3
  1977. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/minor.js +0 -3
  1978. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/neq.js +0 -3
  1979. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/parse.js +0 -16
  1980. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/patch.js +0 -3
  1981. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/prerelease.js +0 -6
  1982. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/rcompare.js +0 -3
  1983. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/rsort.js +0 -3
  1984. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/satisfies.js +0 -10
  1985. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/sort.js +0 -3
  1986. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/valid.js +0 -6
  1987. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/index.js +0 -89
  1988. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/constants.js +0 -35
  1989. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/debug.js +0 -9
  1990. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/identifiers.js +0 -23
  1991. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/lrucache.js +0 -40
  1992. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/parse-options.js +0 -15
  1993. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/re.js +0 -217
  1994. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/package.json +0 -77
  1995. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/preload.js +0 -2
  1996. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/range.bnf +0 -16
  1997. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/gtr.js +0 -4
  1998. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/intersects.js +0 -7
  1999. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/ltr.js +0 -4
  2000. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/max-satisfying.js +0 -25
  2001. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/min-satisfying.js +0 -24
  2002. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/min-version.js +0 -61
  2003. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/outside.js +0 -80
  2004. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/simplify.js +0 -47
  2005. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/subset.js +0 -247
  2006. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/to-comparators.js +0 -8
  2007. package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/valid.js +0 -11
  2008. package/dist/node_modules/@langchain/core/node_modules/langsmith/package.json +0 -454
  2009. package/dist/node_modules/@langchain/core/node_modules/langsmith/run_trees.cjs +0 -1
  2010. package/dist/node_modules/@langchain/core/node_modules/langsmith/run_trees.js +0 -1
  2011. package/dist/node_modules/@langchain/core/node_modules/langsmith/schemas.cjs +0 -1
  2012. package/dist/node_modules/@langchain/core/node_modules/langsmith/schemas.js +0 -1
  2013. package/dist/node_modules/@langchain/core/node_modules/langsmith/singletons/traceable.cjs +0 -1
  2014. package/dist/node_modules/@langchain/core/node_modules/langsmith/singletons/traceable.js +0 -1
  2015. package/dist/node_modules/@langchain/core/node_modules/langsmith/traceable.cjs +0 -1
  2016. package/dist/node_modules/@langchain/core/node_modules/langsmith/traceable.js +0 -1
  2017. package/dist/node_modules/@langchain/core/node_modules/langsmith/utils/jestlike.cjs +0 -1
  2018. package/dist/node_modules/@langchain/core/node_modules/langsmith/utils/jestlike.js +0 -1
  2019. package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest/reporter.cjs +0 -1
  2020. package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest/reporter.js +0 -1
  2021. package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest.cjs +0 -1
  2022. package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest.js +0 -1
  2023. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/anthropic.cjs +0 -1
  2024. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/anthropic.js +0 -1
  2025. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/gemini.cjs +0 -1
  2026. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/gemini.js +0 -1
  2027. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/openai.cjs +0 -1
  2028. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/openai.js +0 -1
  2029. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers.cjs +0 -1
  2030. package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers.js +0 -1
  2031. package/dist/node_modules/@langchain/core/node_modules/mustache/CHANGELOG.md +0 -618
  2032. package/dist/node_modules/@langchain/core/node_modules/mustache/LICENSE +0 -11
  2033. package/dist/node_modules/@langchain/core/node_modules/mustache/README.md +0 -621
  2034. package/dist/node_modules/@langchain/core/node_modules/mustache/bin/mustache +0 -150
  2035. package/dist/node_modules/@langchain/core/node_modules/mustache/mustache.js +0 -772
  2036. package/dist/node_modules/@langchain/core/node_modules/mustache/mustache.min.js +0 -1
  2037. package/dist/node_modules/@langchain/core/node_modules/mustache/mustache.mjs +0 -764
  2038. package/dist/node_modules/@langchain/core/node_modules/mustache/package.json +0 -67
  2039. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/dojo/mustache.js.post +0 -4
  2040. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/dojo/mustache.js.pre +0 -9
  2041. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/jquery/mustache.js.post +0 -13
  2042. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/jquery/mustache.js.pre +0 -9
  2043. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/mootools/mustache.js.post +0 -5
  2044. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/mootools/mustache.js.pre +0 -2
  2045. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/qooxdoo/mustache.js.post +0 -9
  2046. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre +0 -172
  2047. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/yui3/mustache.js.post +0 -4
  2048. package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/yui3/mustache.js.pre +0 -1
  2049. package/dist/node_modules/@langchain/core/node_modules/p-finally/index.js +0 -15
  2050. package/dist/node_modules/@langchain/core/node_modules/p-finally/license +0 -21
  2051. package/dist/node_modules/@langchain/core/node_modules/p-finally/package.json +0 -42
  2052. package/dist/node_modules/@langchain/core/node_modules/p-finally/readme.md +0 -47
  2053. package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/index.js +0 -279
  2054. package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/lower-bound.js +0 -21
  2055. package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/options.js +0 -2
  2056. package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/priority-queue.js +0 -32
  2057. package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/queue.js +0 -2
  2058. package/dist/node_modules/@langchain/core/node_modules/p-queue/license +0 -9
  2059. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
  2060. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
  2061. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/index.js +0 -336
  2062. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/package.json +0 -56
  2063. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.js +0 -340
  2064. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.min.js +0 -1
  2065. package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.min.js.map +0 -1
  2066. package/dist/node_modules/@langchain/core/node_modules/p-queue/package.json +0 -92
  2067. package/dist/node_modules/@langchain/core/node_modules/p-queue/readme.md +0 -400
  2068. package/dist/node_modules/@langchain/core/node_modules/p-retry/index.js +0 -223
  2069. package/dist/node_modules/@langchain/core/node_modules/p-retry/license +0 -9
  2070. package/dist/node_modules/@langchain/core/node_modules/p-retry/package.json +0 -62
  2071. package/dist/node_modules/@langchain/core/node_modules/p-retry/readme.md +0 -310
  2072. package/dist/node_modules/@langchain/core/node_modules/p-timeout/index.js +0 -57
  2073. package/dist/node_modules/@langchain/core/node_modules/p-timeout/license +0 -9
  2074. package/dist/node_modules/@langchain/core/node_modules/p-timeout/package.json +0 -45
  2075. package/dist/node_modules/@langchain/core/node_modules/p-timeout/readme.md +0 -87
  2076. package/dist/node_modules/@langchain/core/node_modules/zod/LICENSE +0 -21
  2077. package/dist/node_modules/@langchain/core/node_modules/zod/README.md +0 -208
  2078. package/dist/node_modules/@langchain/core/node_modules/zod/index.cjs +0 -33
  2079. package/dist/node_modules/@langchain/core/node_modules/zod/locales/index.cjs +0 -17
  2080. package/dist/node_modules/@langchain/core/node_modules/zod/locales/package.json +0 -6
  2081. package/dist/node_modules/@langchain/core/node_modules/zod/mini/index.cjs +0 -17
  2082. package/dist/node_modules/@langchain/core/node_modules/zod/mini/package.json +0 -6
  2083. package/dist/node_modules/@langchain/core/node_modules/zod/package.json +0 -135
  2084. package/dist/node_modules/@langchain/core/node_modules/zod/src/index.ts +0 -4
  2085. package/dist/node_modules/@langchain/core/node_modules/zod/src/locales/index.ts +0 -1
  2086. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/ZodError.ts +0 -330
  2087. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  2088. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  2089. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  2090. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  2091. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  2092. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  2093. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  2094. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  2095. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  2096. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/errors.ts +0 -13
  2097. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  2098. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  2099. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  2100. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  2101. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/util.ts +0 -224
  2102. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/locales/en.ts +0 -124
  2103. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/standard-schema.ts +0 -113
  2104. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  2105. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  2106. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  2107. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  2108. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  2109. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  2110. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  2111. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  2112. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  2113. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  2114. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  2115. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  2116. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  2117. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  2118. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  2119. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  2120. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  2121. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  2122. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  2123. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  2124. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  2125. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  2126. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  2127. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  2128. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  2129. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  2130. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  2131. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  2132. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  2133. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  2134. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  2135. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  2136. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  2137. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  2138. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  2139. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  2140. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  2141. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  2142. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  2143. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  2144. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  2145. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  2146. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  2147. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  2148. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  2149. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  2150. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  2151. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  2152. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  2153. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  2154. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  2155. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  2156. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  2157. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  2158. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  2159. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  2160. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  2161. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  2162. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  2163. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  2164. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  2165. package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/types.ts +0 -5138
  2166. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/checks.ts +0 -32
  2167. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  2168. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/compat.ts +0 -70
  2169. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/errors.ts +0 -82
  2170. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/external.ts +0 -51
  2171. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
  2172. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/index.ts +0 -5
  2173. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/iso.ts +0 -90
  2174. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/parse.ts +0 -82
  2175. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
  2176. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  2177. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  2178. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  2179. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  2180. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  2181. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  2182. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  2183. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  2184. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  2185. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
  2186. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  2187. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  2188. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
  2189. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  2190. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  2191. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  2192. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  2193. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  2194. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
  2195. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  2196. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  2197. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
  2198. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  2199. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
  2200. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  2201. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  2202. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  2203. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  2204. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
  2205. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  2206. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  2207. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  2208. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  2209. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  2210. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  2211. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  2212. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  2213. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  2214. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  2215. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  2216. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  2217. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  2218. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  2219. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
  2220. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
  2221. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
  2222. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
  2223. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  2224. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  2225. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  2226. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
  2227. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  2228. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  2229. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  2230. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  2231. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -600
  2232. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
  2233. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
  2234. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  2235. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  2236. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  2237. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  2238. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
  2239. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  2240. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  2241. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  2242. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2975
  2243. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
  2244. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
  2245. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
  2246. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  2247. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  2248. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  2249. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/api.ts +0 -1798
  2250. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/checks.ts +0 -1293
  2251. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/config.ts +0 -15
  2252. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/core.ts +0 -138
  2253. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/doc.ts +0 -44
  2254. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/errors.ts +0 -448
  2255. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  2256. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
  2257. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  2258. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/parse.ts +0 -195
  2259. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/regexes.ts +0 -183
  2260. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/registries.ts +0 -105
  2261. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/schemas.ts +0 -4543
  2262. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  2263. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  2264. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  2265. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  2266. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  2267. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  2268. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  2269. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  2270. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  2271. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  2272. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
  2273. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
  2274. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  2275. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
  2276. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/util.ts +0 -966
  2277. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/versions.ts +0 -5
  2278. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/zsf.ts +0 -323
  2279. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/index.ts +0 -4
  2280. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ar.ts +0 -115
  2281. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/az.ts +0 -111
  2282. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/be.ts +0 -176
  2283. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/bg.ts +0 -128
  2284. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ca.ts +0 -116
  2285. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/cs.ts +0 -118
  2286. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/da.ts +0 -123
  2287. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/de.ts +0 -116
  2288. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/en.ts +0 -119
  2289. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/eo.ts +0 -118
  2290. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/es.ts +0 -141
  2291. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fa.ts +0 -126
  2292. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fi.ts +0 -121
  2293. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  2294. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fr.ts +0 -116
  2295. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/he.ts +0 -246
  2296. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/hu.ts +0 -117
  2297. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/hy.ts +0 -164
  2298. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/id.ts +0 -115
  2299. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/is.ts +0 -119
  2300. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/it.ts +0 -116
  2301. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ja.ts +0 -114
  2302. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ka.ts +0 -123
  2303. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/kh.ts +0 -7
  2304. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/km.ts +0 -119
  2305. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ko.ts +0 -121
  2306. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/lt.ts +0 -239
  2307. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/mk.ts +0 -118
  2308. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ms.ts +0 -115
  2309. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/nl.ts +0 -121
  2310. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/no.ts +0 -116
  2311. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ota.ts +0 -117
  2312. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/pl.ts +0 -118
  2313. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ps.ts +0 -126
  2314. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/pt.ts +0 -116
  2315. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ru.ts +0 -176
  2316. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/sl.ts +0 -118
  2317. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/sv.ts +0 -119
  2318. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ta.ts +0 -118
  2319. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/th.ts +0 -119
  2320. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/tr.ts +0 -111
  2321. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ua.ts +0 -7
  2322. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/uk.ts +0 -117
  2323. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ur.ts +0 -119
  2324. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/uz.ts +0 -116
  2325. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/vi.ts +0 -117
  2326. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/yo.ts +0 -124
  2327. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  2328. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  2329. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/checks.ts +0 -32
  2330. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  2331. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/external.ts +0 -40
  2332. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/iso.ts +0 -66
  2333. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/parse.ts +0 -14
  2334. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
  2335. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  2336. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  2337. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  2338. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  2339. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
  2340. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  2341. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  2342. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  2343. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
  2344. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  2345. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  2346. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  2347. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  2348. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  2349. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
  2350. package/dist/node_modules/@langchain/core/node_modules/zod/src/v4-mini/index.ts +0 -1
  2351. package/dist/node_modules/@langchain/core/node_modules/zod/v3/ZodError.cjs +0 -138
  2352. package/dist/node_modules/@langchain/core/node_modules/zod/v3/ZodError.js +0 -133
  2353. package/dist/node_modules/@langchain/core/node_modules/zod/v3/errors.cjs +0 -17
  2354. package/dist/node_modules/@langchain/core/node_modules/zod/v3/errors.js +0 -9
  2355. package/dist/node_modules/@langchain/core/node_modules/zod/v3/external.cjs +0 -22
  2356. package/dist/node_modules/@langchain/core/node_modules/zod/v3/external.js +0 -6
  2357. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  2358. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  2359. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  2360. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  2361. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  2362. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  2363. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  2364. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  2365. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  2366. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  2367. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/util.cjs +0 -137
  2368. package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/util.js +0 -133
  2369. package/dist/node_modules/@langchain/core/node_modules/zod/v3/index.cjs +0 -33
  2370. package/dist/node_modules/@langchain/core/node_modules/zod/v3/index.js +0 -4
  2371. package/dist/node_modules/@langchain/core/node_modules/zod/v3/locales/en.cjs +0 -112
  2372. package/dist/node_modules/@langchain/core/node_modules/zod/v3/locales/en.js +0 -109
  2373. package/dist/node_modules/@langchain/core/node_modules/zod/v3/package.json +0 -6
  2374. package/dist/node_modules/@langchain/core/node_modules/zod/v3/standard-schema.cjs +0 -2
  2375. package/dist/node_modules/@langchain/core/node_modules/zod/v3/standard-schema.js +0 -1
  2376. package/dist/node_modules/@langchain/core/node_modules/zod/v3/types.cjs +0 -3777
  2377. package/dist/node_modules/@langchain/core/node_modules/zod/v3/types.js +0 -3695
  2378. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/checks.cjs +0 -33
  2379. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/checks.js +0 -1
  2380. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/coerce.cjs +0 -47
  2381. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/coerce.js +0 -17
  2382. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/compat.cjs +0 -61
  2383. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/compat.js +0 -31
  2384. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/errors.cjs +0 -74
  2385. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/errors.js +0 -48
  2386. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/external.cjs +0 -73
  2387. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/external.js +0 -20
  2388. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/from-json-schema.cjs +0 -610
  2389. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/from-json-schema.js +0 -584
  2390. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/index.cjs +0 -33
  2391. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/iso.cjs +0 -60
  2392. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/iso.js +0 -30
  2393. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/package.json +0 -6
  2394. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/parse.cjs +0 -41
  2395. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/parse.js +0 -15
  2396. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/schemas.cjs +0 -1272
  2397. package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/schemas.js +0 -1157
  2398. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/api.cjs +0 -1222
  2399. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/api.js +0 -1082
  2400. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/checks.cjs +0 -601
  2401. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/checks.js +0 -575
  2402. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/core.cjs +0 -83
  2403. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/core.js +0 -76
  2404. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/doc.cjs +0 -39
  2405. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/doc.js +0 -35
  2406. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/errors.cjs +0 -213
  2407. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/errors.js +0 -182
  2408. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/index.cjs +0 -47
  2409. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/index.js +0 -16
  2410. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  2411. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  2412. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-processors.cjs +0 -648
  2413. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-processors.js +0 -605
  2414. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema.cjs +0 -2
  2415. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema.js +0 -1
  2416. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/package.json +0 -6
  2417. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/parse.cjs +0 -131
  2418. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/parse.js +0 -93
  2419. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/regexes.cjs +0 -166
  2420. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/regexes.js +0 -133
  2421. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/registries.cjs +0 -56
  2422. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/registries.js +0 -51
  2423. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/schemas.cjs +0 -2126
  2424. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/schemas.js +0 -2095
  2425. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  2426. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/standard-schema.js +0 -1
  2427. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/to-json-schema.cjs +0 -446
  2428. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/to-json-schema.js +0 -437
  2429. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/util.cjs +0 -710
  2430. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/util.js +0 -651
  2431. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/versions.cjs +0 -8
  2432. package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/versions.js +0 -5
  2433. package/dist/node_modules/@langchain/core/node_modules/zod/v4/index.cjs +0 -22
  2434. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ar.cjs +0 -133
  2435. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ar.js +0 -106
  2436. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/az.cjs +0 -132
  2437. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/az.js +0 -105
  2438. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/be.cjs +0 -183
  2439. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/be.js +0 -156
  2440. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/bg.cjs +0 -147
  2441. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/bg.js +0 -120
  2442. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ca.cjs +0 -134
  2443. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ca.js +0 -107
  2444. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/cs.cjs +0 -138
  2445. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/cs.js +0 -111
  2446. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/da.cjs +0 -142
  2447. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/da.js +0 -115
  2448. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/de.cjs +0 -135
  2449. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/de.js +0 -108
  2450. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/en.cjs +0 -136
  2451. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/en.js +0 -109
  2452. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/eo.cjs +0 -136
  2453. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/eo.js +0 -109
  2454. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/es.cjs +0 -159
  2455. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/es.js +0 -132
  2456. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fa.cjs +0 -141
  2457. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fa.js +0 -114
  2458. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fi.cjs +0 -139
  2459. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fi.js +0 -112
  2460. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  2461. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr-CA.js +0 -107
  2462. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr.cjs +0 -135
  2463. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr.js +0 -108
  2464. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/he.cjs +0 -241
  2465. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/he.js +0 -214
  2466. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hu.cjs +0 -135
  2467. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hu.js +0 -108
  2468. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hy.cjs +0 -174
  2469. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hy.js +0 -147
  2470. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/id.cjs +0 -133
  2471. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/id.js +0 -106
  2472. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/index.cjs +0 -104
  2473. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/index.js +0 -49
  2474. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/is.cjs +0 -136
  2475. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/is.js +0 -109
  2476. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/it.cjs +0 -135
  2477. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/it.js +0 -108
  2478. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ja.cjs +0 -134
  2479. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ja.js +0 -107
  2480. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ka.cjs +0 -139
  2481. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ka.js +0 -112
  2482. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/kh.cjs +0 -12
  2483. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/kh.js +0 -5
  2484. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/km.cjs +0 -137
  2485. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/km.js +0 -110
  2486. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ko.cjs +0 -138
  2487. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ko.js +0 -111
  2488. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/lt.cjs +0 -230
  2489. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/lt.js +0 -203
  2490. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/mk.cjs +0 -136
  2491. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/mk.js +0 -109
  2492. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ms.cjs +0 -134
  2493. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ms.js +0 -107
  2494. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/nl.cjs +0 -137
  2495. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/nl.js +0 -110
  2496. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/no.cjs +0 -135
  2497. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/no.js +0 -108
  2498. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ota.cjs +0 -136
  2499. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ota.js +0 -109
  2500. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/package.json +0 -6
  2501. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pl.cjs +0 -136
  2502. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pl.js +0 -109
  2503. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ps.cjs +0 -141
  2504. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ps.js +0 -114
  2505. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pt.cjs +0 -135
  2506. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pt.js +0 -108
  2507. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ru.cjs +0 -183
  2508. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ru.js +0 -156
  2509. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sl.cjs +0 -136
  2510. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sl.js +0 -109
  2511. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sv.cjs +0 -137
  2512. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sv.js +0 -110
  2513. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ta.cjs +0 -137
  2514. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ta.js +0 -110
  2515. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/th.cjs +0 -137
  2516. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/th.js +0 -110
  2517. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/tr.cjs +0 -132
  2518. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/tr.js +0 -105
  2519. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ua.cjs +0 -12
  2520. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ua.js +0 -5
  2521. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uk.cjs +0 -135
  2522. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uk.js +0 -108
  2523. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ur.cjs +0 -137
  2524. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ur.js +0 -110
  2525. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uz.cjs +0 -136
  2526. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uz.js +0 -109
  2527. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/vi.cjs +0 -135
  2528. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/vi.js +0 -108
  2529. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/yo.cjs +0 -134
  2530. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/yo.js +0 -107
  2531. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  2532. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-CN.js +0 -109
  2533. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  2534. package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-TW.js +0 -107
  2535. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/checks.cjs +0 -34
  2536. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/coerce.cjs +0 -52
  2537. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/coerce.js +0 -22
  2538. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/external.cjs +0 -63
  2539. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/external.js +0 -14
  2540. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/index.cjs +0 -32
  2541. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/index.js +0 -3
  2542. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/iso.cjs +0 -64
  2543. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/iso.js +0 -34
  2544. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/package.json +0 -6
  2545. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/parse.cjs +0 -16
  2546. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/schemas.cjs +0 -1046
  2547. package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/schemas.js +0 -925
  2548. package/dist/node_modules/@langchain/core/node_modules/zod/v4/package.json +0 -6
  2549. package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/index.cjs +0 -17
  2550. package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/index.js +0 -1
  2551. package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/package.json +0 -6
  2552. package/dist/node_modules/@langchain/core/output_parsers/openai_functions.cjs +0 -1
  2553. package/dist/node_modules/@langchain/core/output_parsers/openai_functions.js +0 -1
  2554. package/dist/node_modules/@langchain/core/output_parsers/openai_tools.cjs +0 -1
  2555. package/dist/node_modules/@langchain/core/output_parsers/openai_tools.js +0 -1
  2556. package/dist/node_modules/@langchain/core/output_parsers.cjs +0 -1
  2557. package/dist/node_modules/@langchain/core/output_parsers.js +0 -1
  2558. package/dist/node_modules/@langchain/core/outputs.cjs +0 -1
  2559. package/dist/node_modules/@langchain/core/outputs.js +0 -1
  2560. package/dist/node_modules/@langchain/core/package.json +0 -1
  2561. package/dist/node_modules/@langchain/core/prompt_values.cjs +0 -1
  2562. package/dist/node_modules/@langchain/core/prompt_values.js +0 -1
  2563. package/dist/node_modules/@langchain/core/prompts.cjs +0 -1
  2564. package/dist/node_modules/@langchain/core/prompts.js +0 -1
  2565. package/dist/node_modules/@langchain/core/retrievers/document_compressors.cjs +0 -1
  2566. package/dist/node_modules/@langchain/core/retrievers/document_compressors.js +0 -1
  2567. package/dist/node_modules/@langchain/core/retrievers.cjs +0 -1
  2568. package/dist/node_modules/@langchain/core/retrievers.js +0 -1
  2569. package/dist/node_modules/@langchain/core/runnables/graph.cjs +0 -1
  2570. package/dist/node_modules/@langchain/core/runnables/graph.js +0 -1
  2571. package/dist/node_modules/@langchain/core/runnables.cjs +0 -1
  2572. package/dist/node_modules/@langchain/core/runnables.js +0 -1
  2573. package/dist/node_modules/@langchain/core/singletons.cjs +0 -1
  2574. package/dist/node_modules/@langchain/core/singletons.js +0 -1
  2575. package/dist/node_modules/@langchain/core/stores.cjs +0 -1
  2576. package/dist/node_modules/@langchain/core/stores.js +0 -1
  2577. package/dist/node_modules/@langchain/core/structured_query.cjs +0 -1
  2578. package/dist/node_modules/@langchain/core/structured_query.js +0 -1
  2579. package/dist/node_modules/@langchain/core/tools.cjs +0 -1
  2580. package/dist/node_modules/@langchain/core/tools.js +0 -1
  2581. package/dist/node_modules/@langchain/core/tracers/base.cjs +0 -1
  2582. package/dist/node_modules/@langchain/core/tracers/base.js +0 -1
  2583. package/dist/node_modules/@langchain/core/tracers/console.cjs +0 -1
  2584. package/dist/node_modules/@langchain/core/tracers/console.js +0 -1
  2585. package/dist/node_modules/@langchain/core/tracers/log_stream.cjs +0 -1
  2586. package/dist/node_modules/@langchain/core/tracers/log_stream.js +0 -1
  2587. package/dist/node_modules/@langchain/core/tracers/run_collector.cjs +0 -1
  2588. package/dist/node_modules/@langchain/core/tracers/run_collector.js +0 -1
  2589. package/dist/node_modules/@langchain/core/tracers/tracer_langchain.cjs +0 -1
  2590. package/dist/node_modules/@langchain/core/tracers/tracer_langchain.js +0 -1
  2591. package/dist/node_modules/@langchain/core/types/stream.cjs +0 -1
  2592. package/dist/node_modules/@langchain/core/types/stream.js +0 -1
  2593. package/dist/node_modules/@langchain/core/utils/async_caller.cjs +0 -1
  2594. package/dist/node_modules/@langchain/core/utils/async_caller.js +0 -1
  2595. package/dist/node_modules/@langchain/core/utils/chunk_array.cjs +0 -1
  2596. package/dist/node_modules/@langchain/core/utils/chunk_array.js +0 -1
  2597. package/dist/node_modules/@langchain/core/utils/context.cjs +0 -1
  2598. package/dist/node_modules/@langchain/core/utils/context.js +0 -1
  2599. package/dist/node_modules/@langchain/core/utils/env.cjs +0 -1
  2600. package/dist/node_modules/@langchain/core/utils/env.js +0 -1
  2601. package/dist/node_modules/@langchain/core/utils/event_source_parse.cjs +0 -1
  2602. package/dist/node_modules/@langchain/core/utils/event_source_parse.js +0 -1
  2603. package/dist/node_modules/@langchain/core/utils/format.cjs +0 -1
  2604. package/dist/node_modules/@langchain/core/utils/format.js +0 -1
  2605. package/dist/node_modules/@langchain/core/utils/function_calling.cjs +0 -1
  2606. package/dist/node_modules/@langchain/core/utils/function_calling.js +0 -1
  2607. package/dist/node_modules/@langchain/core/utils/hash.cjs +0 -1
  2608. package/dist/node_modules/@langchain/core/utils/hash.js +0 -1
  2609. package/dist/node_modules/@langchain/core/utils/json_patch.cjs +0 -1
  2610. package/dist/node_modules/@langchain/core/utils/json_patch.js +0 -1
  2611. package/dist/node_modules/@langchain/core/utils/json_schema.cjs +0 -1
  2612. package/dist/node_modules/@langchain/core/utils/json_schema.js +0 -1
  2613. package/dist/node_modules/@langchain/core/utils/math.cjs +0 -1
  2614. package/dist/node_modules/@langchain/core/utils/math.js +0 -1
  2615. package/dist/node_modules/@langchain/core/utils/ssrf.cjs +0 -1
  2616. package/dist/node_modules/@langchain/core/utils/ssrf.js +0 -1
  2617. package/dist/node_modules/@langchain/core/utils/stream.cjs +0 -1
  2618. package/dist/node_modules/@langchain/core/utils/stream.js +0 -1
  2619. package/dist/node_modules/@langchain/core/utils/testing.cjs +0 -1
  2620. package/dist/node_modules/@langchain/core/utils/testing.js +0 -1
  2621. package/dist/node_modules/@langchain/core/utils/tiktoken.cjs +0 -1
  2622. package/dist/node_modules/@langchain/core/utils/tiktoken.js +0 -1
  2623. package/dist/node_modules/@langchain/core/utils/types.cjs +0 -1
  2624. package/dist/node_modules/@langchain/core/utils/types.js +0 -1
  2625. package/dist/node_modules/@langchain/core/vectorstores.cjs +0 -1
  2626. package/dist/node_modules/@langchain/core/vectorstores.js +0 -1
  2627. package/dist/node_modules/@langchain/deepseek/LICENSE +0 -21
  2628. package/dist/node_modules/@langchain/deepseek/dist/_virtual/rolldown_runtime.cjs +0 -25
  2629. package/dist/node_modules/@langchain/deepseek/dist/chat_models.cjs +0 -617
  2630. package/dist/node_modules/@langchain/deepseek/dist/chat_models.js +0 -616
  2631. package/dist/node_modules/@langchain/deepseek/dist/index.cjs +0 -8
  2632. package/dist/node_modules/@langchain/deepseek/dist/index.js +0 -3
  2633. package/dist/node_modules/@langchain/deepseek/dist/profiles.cjs +0 -37
  2634. package/dist/node_modules/@langchain/deepseek/dist/profiles.js +0 -36
  2635. package/dist/node_modules/@langchain/deepseek/package.json +0 -1
  2636. package/dist/node_modules/@langchain/google-genai/LICENSE +0 -21
  2637. package/dist/node_modules/@langchain/google-genai/dist/_virtual/rolldown_runtime.cjs +0 -25
  2638. package/dist/node_modules/@langchain/google-genai/dist/chat_models.cjs +0 -685
  2639. package/dist/node_modules/@langchain/google-genai/dist/chat_models.js +0 -684
  2640. package/dist/node_modules/@langchain/google-genai/dist/embeddings.cjs +0 -99
  2641. package/dist/node_modules/@langchain/google-genai/dist/embeddings.js +0 -98
  2642. package/dist/node_modules/@langchain/google-genai/dist/index.cjs +0 -232
  2643. package/dist/node_modules/@langchain/google-genai/dist/index.js +0 -4
  2644. package/dist/node_modules/@langchain/google-genai/dist/output_parsers.cjs +0 -48
  2645. package/dist/node_modules/@langchain/google-genai/dist/output_parsers.js +0 -47
  2646. package/dist/node_modules/@langchain/google-genai/dist/profiles.cjs +0 -345
  2647. package/dist/node_modules/@langchain/google-genai/dist/profiles.js +0 -344
  2648. package/dist/node_modules/@langchain/google-genai/dist/utils/common.cjs +0 -460
  2649. package/dist/node_modules/@langchain/google-genai/dist/utils/common.js +0 -455
  2650. package/dist/node_modules/@langchain/google-genai/dist/utils/tools.cjs +0 -73
  2651. package/dist/node_modules/@langchain/google-genai/dist/utils/tools.js +0 -72
  2652. package/dist/node_modules/@langchain/google-genai/dist/utils/validate_schema.cjs +0 -28
  2653. package/dist/node_modules/@langchain/google-genai/dist/utils/validate_schema.js +0 -27
  2654. package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.cjs +0 -35
  2655. package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.js +0 -32
  2656. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/index.js +0 -31
  2657. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/max.js +0 -3
  2658. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/md5.js +0 -13
  2659. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/native.js +0 -4
  2660. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/nil.js +0 -3
  2661. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/package.json +0 -1
  2662. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/parse.js +0 -11
  2663. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/regex.js +0 -3
  2664. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/rng.js +0 -13
  2665. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/sha1.js +0 -13
  2666. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/stringify.js +0 -39
  2667. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/types.js +0 -2
  2668. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
  2669. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v1.js +0 -87
  2670. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
  2671. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v3.js +0 -14
  2672. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v35.js +0 -41
  2673. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v4.js +0 -29
  2674. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v5.js +0 -14
  2675. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v6.js +0 -19
  2676. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
  2677. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v7.js +0 -69
  2678. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/validate.js +0 -7
  2679. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/version.js +0 -10
  2680. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/index.js +0 -31
  2681. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/max.js +0 -3
  2682. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
  2683. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/native.js +0 -4
  2684. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
  2685. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/package.json +0 -1
  2686. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
  2687. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
  2688. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
  2689. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
  2690. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
  2691. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/types.js +0 -2
  2692. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
  2693. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
  2694. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
  2695. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
  2696. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
  2697. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
  2698. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
  2699. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
  2700. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
  2701. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
  2702. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
  2703. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/version.js +0 -10
  2704. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/bin/uuid +0 -2
  2705. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/index.js +0 -14
  2706. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/max.js +0 -1
  2707. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/md5.js +0 -11
  2708. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/native.js +0 -2
  2709. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/nil.js +0 -1
  2710. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/parse.js +0 -9
  2711. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/regex.js +0 -1
  2712. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/rng.js +0 -10
  2713. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/sha1.js +0 -11
  2714. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/stringify.js +0 -35
  2715. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/types.js +0 -1
  2716. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
  2717. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v1.js +0 -83
  2718. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
  2719. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v3.js +0 -9
  2720. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v35.js +0 -36
  2721. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v4.js +0 -27
  2722. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v5.js +0 -9
  2723. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v6.js +0 -17
  2724. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
  2725. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v7.js +0 -65
  2726. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/validate.js +0 -5
  2727. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/version.js +0 -8
  2728. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/index.js +0 -14
  2729. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/max.js +0 -1
  2730. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/md5.js +0 -135
  2731. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/native.js +0 -2
  2732. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  2733. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/parse.js +0 -9
  2734. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  2735. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/rng.js +0 -11
  2736. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
  2737. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
  2738. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/types.js +0 -1
  2739. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
  2740. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v1.js +0 -83
  2741. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
  2742. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v3.js +0 -9
  2743. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v35.js +0 -36
  2744. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v4.js +0 -27
  2745. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v5.js +0 -9
  2746. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v6.js +0 -17
  2747. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
  2748. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v7.js +0 -65
  2749. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/validate.js +0 -5
  2750. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/version.js +0 -8
  2751. package/dist/node_modules/@langchain/google-genai/node_modules/uuid/package.json +0 -132
  2752. package/dist/node_modules/@langchain/google-genai/package.json +0 -1
  2753. package/dist/node_modules/@langchain/langgraph/LICENSE +0 -21
  2754. package/dist/node_modules/@langchain/langgraph/dist/channels/any_value.cjs +0 -46
  2755. package/dist/node_modules/@langchain/langgraph/dist/channels/any_value.js +0 -46
  2756. package/dist/node_modules/@langchain/langgraph/dist/channels/base.cjs +0 -112
  2757. package/dist/node_modules/@langchain/langgraph/dist/channels/base.js +0 -108
  2758. package/dist/node_modules/@langchain/langgraph/dist/channels/binop.cjs +0 -62
  2759. package/dist/node_modules/@langchain/langgraph/dist/channels/binop.js +0 -62
  2760. package/dist/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.cjs +0 -75
  2761. package/dist/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.js +0 -75
  2762. package/dist/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.cjs +0 -46
  2763. package/dist/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.js +0 -46
  2764. package/dist/node_modules/@langchain/langgraph/dist/channels/index.cjs +0 -24
  2765. package/dist/node_modules/@langchain/langgraph/dist/channels/index.js +0 -11
  2766. package/dist/node_modules/@langchain/langgraph/dist/channels/last_value.cjs +0 -98
  2767. package/dist/node_modules/@langchain/langgraph/dist/channels/last_value.js +0 -97
  2768. package/dist/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.cjs +0 -116
  2769. package/dist/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.js +0 -114
  2770. package/dist/node_modules/@langchain/langgraph/dist/channels/topic.cjs +0 -65
  2771. package/dist/node_modules/@langchain/langgraph/dist/channels/topic.js +0 -65
  2772. package/dist/node_modules/@langchain/langgraph/dist/channels/untracked_value.cjs +0 -83
  2773. package/dist/node_modules/@langchain/langgraph/dist/channels/untracked_value.js +0 -83
  2774. package/dist/node_modules/@langchain/langgraph/dist/constants.cjs +0 -406
  2775. package/dist/node_modules/@langchain/langgraph/dist/constants.js +0 -362
  2776. package/dist/node_modules/@langchain/langgraph/dist/errors.cjs +0 -199
  2777. package/dist/node_modules/@langchain/langgraph/dist/errors.js +0 -181
  2778. package/dist/node_modules/@langchain/langgraph/dist/func/index.cjs +0 -299
  2779. package/dist/node_modules/@langchain/langgraph/dist/func/index.js +0 -297
  2780. package/dist/node_modules/@langchain/langgraph/dist/graph/annotation.cjs +0 -104
  2781. package/dist/node_modules/@langchain/langgraph/dist/graph/annotation.js +0 -102
  2782. package/dist/node_modules/@langchain/langgraph/dist/graph/graph.cjs +0 -420
  2783. package/dist/node_modules/@langchain/langgraph/dist/graph/graph.js +0 -418
  2784. package/dist/node_modules/@langchain/langgraph/dist/graph/index.cjs +0 -6
  2785. package/dist/node_modules/@langchain/langgraph/dist/graph/index.js +0 -8
  2786. package/dist/node_modules/@langchain/langgraph/dist/graph/message.cjs +0 -52
  2787. package/dist/node_modules/@langchain/langgraph/dist/graph/message.js +0 -51
  2788. package/dist/node_modules/@langchain/langgraph/dist/graph/messages_annotation.cjs +0 -109
  2789. package/dist/node_modules/@langchain/langgraph/dist/graph/messages_annotation.js +0 -107
  2790. package/dist/node_modules/@langchain/langgraph/dist/graph/messages_reducer.cjs +0 -85
  2791. package/dist/node_modules/@langchain/langgraph/dist/graph/messages_reducer.js +0 -84
  2792. package/dist/node_modules/@langchain/langgraph/dist/graph/state.cjs +0 -593
  2793. package/dist/node_modules/@langchain/langgraph/dist/graph/state.js +0 -592
  2794. package/dist/node_modules/@langchain/langgraph/dist/graph/types.cjs +0 -41
  2795. package/dist/node_modules/@langchain/langgraph/dist/graph/types.js +0 -40
  2796. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/index.cjs +0 -11
  2797. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/index.js +0 -5
  2798. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/meta.cjs +0 -144
  2799. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/meta.js +0 -141
  2800. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/plugin.cjs +0 -39
  2801. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/plugin.js +0 -40
  2802. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/schema.cjs +0 -99
  2803. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/schema.js +0 -94
  2804. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.cjs +0 -42
  2805. package/dist/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.js +0 -41
  2806. package/dist/node_modules/@langchain/langgraph/dist/hash.cjs +0 -265
  2807. package/dist/node_modules/@langchain/langgraph/dist/hash.js +0 -263
  2808. package/dist/node_modules/@langchain/langgraph/dist/index.cjs +0 -12
  2809. package/dist/node_modules/@langchain/langgraph/dist/index.js +0 -30
  2810. package/dist/node_modules/@langchain/langgraph/dist/interrupt.cjs +0 -79
  2811. package/dist/node_modules/@langchain/langgraph/dist/interrupt.js +0 -79
  2812. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agentName.cjs +0 -148
  2813. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agentName.js +0 -148
  2814. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.cjs +0 -41
  2815. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.js +0 -41
  2816. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.cjs +0 -62
  2817. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.js +0 -62
  2818. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/index.cjs +0 -16
  2819. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/index.js +0 -8
  2820. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.cjs +0 -340
  2821. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.js +0 -339
  2822. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.cjs +0 -43
  2823. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.js +0 -43
  2824. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.cjs +0 -247
  2825. package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.js +0 -246
  2826. package/dist/node_modules/@langchain/langgraph/dist/pregel/algo.cjs +0 -584
  2827. package/dist/node_modules/@langchain/langgraph/dist/pregel/algo.js +0 -578
  2828. package/dist/node_modules/@langchain/langgraph/dist/pregel/call.cjs +0 -50
  2829. package/dist/node_modules/@langchain/langgraph/dist/pregel/call.js +0 -48
  2830. package/dist/node_modules/@langchain/langgraph/dist/pregel/debug.cjs +0 -172
  2831. package/dist/node_modules/@langchain/langgraph/dist/pregel/debug.js +0 -166
  2832. package/dist/node_modules/@langchain/langgraph/dist/pregel/index.cjs +0 -1164
  2833. package/dist/node_modules/@langchain/langgraph/dist/pregel/index.js +0 -1162
  2834. package/dist/node_modules/@langchain/langgraph/dist/pregel/io.cjs +0 -140
  2835. package/dist/node_modules/@langchain/langgraph/dist/pregel/io.js +0 -135
  2836. package/dist/node_modules/@langchain/langgraph/dist/pregel/loop.cjs +0 -560
  2837. package/dist/node_modules/@langchain/langgraph/dist/pregel/loop.js +0 -560
  2838. package/dist/node_modules/@langchain/langgraph/dist/pregel/messages.cjs +0 -107
  2839. package/dist/node_modules/@langchain/langgraph/dist/pregel/messages.js +0 -107
  2840. package/dist/node_modules/@langchain/langgraph/dist/pregel/read.cjs +0 -151
  2841. package/dist/node_modules/@langchain/langgraph/dist/pregel/read.js +0 -150
  2842. package/dist/node_modules/@langchain/langgraph/dist/pregel/remote.cjs +0 -341
  2843. package/dist/node_modules/@langchain/langgraph/dist/pregel/remote.js +0 -341
  2844. package/dist/node_modules/@langchain/langgraph/dist/pregel/retry.cjs +0 -91
  2845. package/dist/node_modules/@langchain/langgraph/dist/pregel/retry.js +0 -91
  2846. package/dist/node_modules/@langchain/langgraph/dist/pregel/runner.cjs +0 -228
  2847. package/dist/node_modules/@langchain/langgraph/dist/pregel/runner.js +0 -228
  2848. package/dist/node_modules/@langchain/langgraph/dist/pregel/stream.cjs +0 -197
  2849. package/dist/node_modules/@langchain/langgraph/dist/pregel/stream.js +0 -195
  2850. package/dist/node_modules/@langchain/langgraph/dist/pregel/types.cjs +0 -27
  2851. package/dist/node_modules/@langchain/langgraph/dist/pregel/types.js +0 -25
  2852. package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/config.cjs +0 -121
  2853. package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/config.js +0 -115
  2854. package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/index.cjs +0 -102
  2855. package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/index.js +0 -96
  2856. package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.cjs +0 -18
  2857. package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.js +0 -16
  2858. package/dist/node_modules/@langchain/langgraph/dist/pregel/validate.cjs +0 -45
  2859. package/dist/node_modules/@langchain/langgraph/dist/pregel/validate.js +0 -44
  2860. package/dist/node_modules/@langchain/langgraph/dist/pregel/write.cjs +0 -96
  2861. package/dist/node_modules/@langchain/langgraph/dist/pregel/write.js +0 -95
  2862. package/dist/node_modules/@langchain/langgraph/dist/remote.cjs +0 -4
  2863. package/dist/node_modules/@langchain/langgraph/dist/remote.js +0 -3
  2864. package/dist/node_modules/@langchain/langgraph/dist/setup/async_local_storage.cjs +0 -11
  2865. package/dist/node_modules/@langchain/langgraph/dist/setup/async_local_storage.js +0 -11
  2866. package/dist/node_modules/@langchain/langgraph/dist/state/adapter.cjs +0 -53
  2867. package/dist/node_modules/@langchain/langgraph/dist/state/adapter.js +0 -52
  2868. package/dist/node_modules/@langchain/langgraph/dist/state/index.cjs +0 -8
  2869. package/dist/node_modules/@langchain/langgraph/dist/state/index.js +0 -10
  2870. package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/index.cjs +0 -1
  2871. package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/index.js +0 -3
  2872. package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.cjs +0 -19
  2873. package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.js +0 -19
  2874. package/dist/node_modules/@langchain/langgraph/dist/state/schema.cjs +0 -170
  2875. package/dist/node_modules/@langchain/langgraph/dist/state/schema.js +0 -170
  2876. package/dist/node_modules/@langchain/langgraph/dist/state/types.cjs +0 -17
  2877. package/dist/node_modules/@langchain/langgraph/dist/state/types.js +0 -14
  2878. package/dist/node_modules/@langchain/langgraph/dist/state/values/index.cjs +0 -2
  2879. package/dist/node_modules/@langchain/langgraph/dist/state/values/index.js +0 -4
  2880. package/dist/node_modules/@langchain/langgraph/dist/state/values/reduced.cjs +0 -72
  2881. package/dist/node_modules/@langchain/langgraph/dist/state/values/reduced.js +0 -71
  2882. package/dist/node_modules/@langchain/langgraph/dist/state/values/untracked.cjs +0 -64
  2883. package/dist/node_modules/@langchain/langgraph/dist/state/values/untracked.js +0 -63
  2884. package/dist/node_modules/@langchain/langgraph/dist/utils.cjs +0 -86
  2885. package/dist/node_modules/@langchain/langgraph/dist/utils.js +0 -80
  2886. package/dist/node_modules/@langchain/langgraph/dist/web.cjs +0 -115
  2887. package/dist/node_modules/@langchain/langgraph/dist/web.js +0 -24
  2888. package/dist/node_modules/@langchain/langgraph/dist/writer.cjs +0 -14
  2889. package/dist/node_modules/@langchain/langgraph/dist/writer.js +0 -14
  2890. package/dist/node_modules/@langchain/langgraph/package.json +0 -1
  2891. package/dist/node_modules/@langchain/langgraph-checkpoint/LICENSE +0 -21
  2892. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/_virtual/rolldown_runtime.cjs +0 -25
  2893. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/base.cjs +0 -90
  2894. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/base.js +0 -83
  2895. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/base.cjs +0 -18
  2896. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/base.js +0 -18
  2897. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/index.cjs +0 -2
  2898. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/index.js +0 -4
  2899. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/memory.cjs +0 -54
  2900. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/memory.js +0 -54
  2901. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/id.cjs +0 -16
  2902. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/id.js +0 -14
  2903. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/index.cjs +0 -12
  2904. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/index.js +0 -12
  2905. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/memory.cjs +0 -199
  2906. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/memory.js +0 -199
  2907. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.cjs +0 -101
  2908. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.js +0 -100
  2909. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.cjs +0 -15
  2910. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.js +0 -10
  2911. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/utils/fast-safe-stringify/index.cjs +0 -102
  2912. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/utils/fast-safe-stringify/index.js +0 -101
  2913. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/base.cjs +0 -212
  2914. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/base.js +0 -208
  2915. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/batch.cjs +0 -120
  2916. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/batch.js +0 -120
  2917. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/memory.cjs +0 -265
  2918. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/memory.js +0 -264
  2919. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/utils.cjs +0 -153
  2920. package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/utils.js +0 -150
  2921. package/dist/node_modules/@langchain/langgraph-checkpoint/package.json +0 -1
  2922. package/dist/node_modules/@langchain/ollama/LICENSE +0 -21
  2923. package/dist/node_modules/@langchain/ollama/dist/_virtual/rolldown_runtime.cjs +0 -25
  2924. package/dist/node_modules/@langchain/ollama/dist/chat_models.cjs +0 -645
  2925. package/dist/node_modules/@langchain/ollama/dist/chat_models.js +0 -644
  2926. package/dist/node_modules/@langchain/ollama/dist/embeddings.cjs +0 -99
  2927. package/dist/node_modules/@langchain/ollama/dist/embeddings.js +0 -98
  2928. package/dist/node_modules/@langchain/ollama/dist/index.cjs +0 -8
  2929. package/dist/node_modules/@langchain/ollama/dist/index.js +0 -5
  2930. package/dist/node_modules/@langchain/ollama/dist/llms.cjs +0 -195
  2931. package/dist/node_modules/@langchain/ollama/dist/llms.js +0 -194
  2932. package/dist/node_modules/@langchain/ollama/dist/utils.cjs +0 -112
  2933. package/dist/node_modules/@langchain/ollama/dist/utils.js +0 -110
  2934. package/dist/node_modules/@langchain/ollama/package.json +0 -1
  2935. package/dist/node_modules/@langchain/openai/LICENSE +0 -21
  2936. package/dist/node_modules/@langchain/openai/dist/_virtual/rolldown_runtime.cjs +0 -25
  2937. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/common.cjs +0 -125
  2938. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/common.js +0 -119
  2939. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/completions.cjs +0 -50
  2940. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/completions.js +0 -50
  2941. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/index.cjs +0 -473
  2942. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/index.js +0 -473
  2943. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/responses.cjs +0 -50
  2944. package/dist/node_modules/@langchain/openai/dist/azure/chat_models/responses.js +0 -50
  2945. package/dist/node_modules/@langchain/openai/dist/azure/embeddings.cjs +0 -79
  2946. package/dist/node_modules/@langchain/openai/dist/azure/embeddings.js +0 -78
  2947. package/dist/node_modules/@langchain/openai/dist/azure/llms.cjs +0 -107
  2948. package/dist/node_modules/@langchain/openai/dist/azure/llms.js +0 -106
  2949. package/dist/node_modules/@langchain/openai/dist/chat_models/base.cjs +0 -625
  2950. package/dist/node_modules/@langchain/openai/dist/chat_models/base.js +0 -624
  2951. package/dist/node_modules/@langchain/openai/dist/chat_models/completions.cjs +0 -261
  2952. package/dist/node_modules/@langchain/openai/dist/chat_models/completions.js +0 -260
  2953. package/dist/node_modules/@langchain/openai/dist/chat_models/index.cjs +0 -609
  2954. package/dist/node_modules/@langchain/openai/dist/chat_models/index.js +0 -609
  2955. package/dist/node_modules/@langchain/openai/dist/chat_models/profiles.cjs +0 -567
  2956. package/dist/node_modules/@langchain/openai/dist/chat_models/profiles.js +0 -566
  2957. package/dist/node_modules/@langchain/openai/dist/chat_models/responses.cjs +0 -193
  2958. package/dist/node_modules/@langchain/openai/dist/chat_models/responses.js +0 -192
  2959. package/dist/node_modules/@langchain/openai/dist/converters/completions.cjs +0 -611
  2960. package/dist/node_modules/@langchain/openai/dist/converters/completions.js +0 -605
  2961. package/dist/node_modules/@langchain/openai/dist/converters/index.cjs +0 -2
  2962. package/dist/node_modules/@langchain/openai/dist/converters/index.js +0 -2
  2963. package/dist/node_modules/@langchain/openai/dist/converters/responses.cjs +0 -1086
  2964. package/dist/node_modules/@langchain/openai/dist/converters/responses.js +0 -1080
  2965. package/dist/node_modules/@langchain/openai/dist/embeddings.cjs +0 -144
  2966. package/dist/node_modules/@langchain/openai/dist/embeddings.js +0 -143
  2967. package/dist/node_modules/@langchain/openai/dist/index.cjs +0 -8
  2968. package/dist/node_modules/@langchain/openai/dist/index.js +0 -24
  2969. package/dist/node_modules/@langchain/openai/dist/llms.cjs +0 -315
  2970. package/dist/node_modules/@langchain/openai/dist/llms.js +0 -314
  2971. package/dist/node_modules/@langchain/openai/dist/tools/applyPatch.cjs +0 -116
  2972. package/dist/node_modules/@langchain/openai/dist/tools/applyPatch.js +0 -115
  2973. package/dist/node_modules/@langchain/openai/dist/tools/codeInterpreter.cjs +0 -95
  2974. package/dist/node_modules/@langchain/openai/dist/tools/codeInterpreter.js +0 -94
  2975. package/dist/node_modules/@langchain/openai/dist/tools/computerUse.cjs +0 -240
  2976. package/dist/node_modules/@langchain/openai/dist/tools/computerUse.js +0 -239
  2977. package/dist/node_modules/@langchain/openai/dist/tools/custom.cjs +0 -27
  2978. package/dist/node_modules/@langchain/openai/dist/tools/custom.js +0 -26
  2979. package/dist/node_modules/@langchain/openai/dist/tools/dalle.cjs +0 -106
  2980. package/dist/node_modules/@langchain/openai/dist/tools/dalle.js +0 -105
  2981. package/dist/node_modules/@langchain/openai/dist/tools/fileSearch.cjs +0 -137
  2982. package/dist/node_modules/@langchain/openai/dist/tools/fileSearch.js +0 -136
  2983. package/dist/node_modules/@langchain/openai/dist/tools/imageGeneration.cjs +0 -129
  2984. package/dist/node_modules/@langchain/openai/dist/tools/imageGeneration.js +0 -128
  2985. package/dist/node_modules/@langchain/openai/dist/tools/index.cjs +0 -27
  2986. package/dist/node_modules/@langchain/openai/dist/tools/index.js +0 -27
  2987. package/dist/node_modules/@langchain/openai/dist/tools/localShell.cjs +0 -145
  2988. package/dist/node_modules/@langchain/openai/dist/tools/localShell.js +0 -144
  2989. package/dist/node_modules/@langchain/openai/dist/tools/mcp.cjs +0 -53
  2990. package/dist/node_modules/@langchain/openai/dist/tools/mcp.js +0 -52
  2991. package/dist/node_modules/@langchain/openai/dist/tools/shell.cjs +0 -163
  2992. package/dist/node_modules/@langchain/openai/dist/tools/shell.js +0 -162
  2993. package/dist/node_modules/@langchain/openai/dist/tools/webSearch.cjs +0 -73
  2994. package/dist/node_modules/@langchain/openai/dist/tools/webSearch.js +0 -72
  2995. package/dist/node_modules/@langchain/openai/dist/utils/azure.cjs +0 -107
  2996. package/dist/node_modules/@langchain/openai/dist/utils/azure.js +0 -102
  2997. package/dist/node_modules/@langchain/openai/dist/utils/client.cjs +0 -25
  2998. package/dist/node_modules/@langchain/openai/dist/utils/client.js +0 -24
  2999. package/dist/node_modules/@langchain/openai/dist/utils/errors.cjs +0 -11
  3000. package/dist/node_modules/@langchain/openai/dist/utils/errors.js +0 -10
  3001. package/dist/node_modules/@langchain/openai/dist/utils/misc.cjs +0 -51
  3002. package/dist/node_modules/@langchain/openai/dist/utils/misc.js +0 -45
  3003. package/dist/node_modules/@langchain/openai/dist/utils/output.cjs +0 -100
  3004. package/dist/node_modules/@langchain/openai/dist/utils/output.js +0 -97
  3005. package/dist/node_modules/@langchain/openai/dist/utils/prompts.cjs +0 -42
  3006. package/dist/node_modules/@langchain/openai/dist/utils/prompts.js +0 -42
  3007. package/dist/node_modules/@langchain/openai/dist/utils/tools.cjs +0 -205
  3008. package/dist/node_modules/@langchain/openai/dist/utils/tools.js +0 -191
  3009. package/dist/node_modules/@langchain/openai/package.json +0 -1
  3010. package/dist/node_modules/langchain/LICENSE +0 -21
  3011. package/dist/node_modules/langchain/chat_models/universal.cjs +0 -1
  3012. package/dist/node_modules/langchain/chat_models/universal.js +0 -1
  3013. package/dist/node_modules/langchain/dist/_virtual/rolldown_runtime.cjs +0 -34
  3014. package/dist/node_modules/langchain/dist/_virtual/rolldown_runtime.js +0 -25
  3015. package/dist/node_modules/langchain/dist/agents/ReactAgent.cjs +0 -721
  3016. package/dist/node_modules/langchain/dist/agents/ReactAgent.js +0 -720
  3017. package/dist/node_modules/langchain/dist/agents/RunnableCallable.cjs +0 -45
  3018. package/dist/node_modules/langchain/dist/agents/RunnableCallable.js +0 -44
  3019. package/dist/node_modules/langchain/dist/agents/annotation.cjs +0 -92
  3020. package/dist/node_modules/langchain/dist/agents/annotation.js +0 -91
  3021. package/dist/node_modules/langchain/dist/agents/errors.cjs +0 -88
  3022. package/dist/node_modules/langchain/dist/agents/errors.js +0 -83
  3023. package/dist/node_modules/langchain/dist/agents/index.cjs +0 -15
  3024. package/dist/node_modules/langchain/dist/agents/index.js +0 -15
  3025. package/dist/node_modules/langchain/dist/agents/middleware/constants.cjs +0 -16
  3026. package/dist/node_modules/langchain/dist/agents/middleware/constants.js +0 -15
  3027. package/dist/node_modules/langchain/dist/agents/middleware/contextEditing.cjs +0 -547
  3028. package/dist/node_modules/langchain/dist/agents/middleware/contextEditing.js +0 -545
  3029. package/dist/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.cjs +0 -61
  3030. package/dist/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.js +0 -60
  3031. package/dist/node_modules/langchain/dist/agents/middleware/error.cjs +0 -20
  3032. package/dist/node_modules/langchain/dist/agents/middleware/error.js +0 -19
  3033. package/dist/node_modules/langchain/dist/agents/middleware/hitl.cjs +0 -411
  3034. package/dist/node_modules/langchain/dist/agents/middleware/hitl.js +0 -410
  3035. package/dist/node_modules/langchain/dist/agents/middleware/index.cjs +0 -17
  3036. package/dist/node_modules/langchain/dist/agents/middleware/index.js +0 -17
  3037. package/dist/node_modules/langchain/dist/agents/middleware/llmToolSelector.cjs +0 -193
  3038. package/dist/node_modules/langchain/dist/agents/middleware/llmToolSelector.js +0 -192
  3039. package/dist/node_modules/langchain/dist/agents/middleware/modelCallLimit.cjs +0 -149
  3040. package/dist/node_modules/langchain/dist/agents/middleware/modelCallLimit.js +0 -148
  3041. package/dist/node_modules/langchain/dist/agents/middleware/modelFallback.cjs +0 -74
  3042. package/dist/node_modules/langchain/dist/agents/middleware/modelFallback.js +0 -74
  3043. package/dist/node_modules/langchain/dist/agents/middleware/modelRetry.cjs +0 -162
  3044. package/dist/node_modules/langchain/dist/agents/middleware/modelRetry.js +0 -161
  3045. package/dist/node_modules/langchain/dist/agents/middleware/pii.cjs +0 -445
  3046. package/dist/node_modules/langchain/dist/agents/middleware/pii.js +0 -436
  3047. package/dist/node_modules/langchain/dist/agents/middleware/piiRedaction.cjs +0 -334
  3048. package/dist/node_modules/langchain/dist/agents/middleware/piiRedaction.js +0 -333
  3049. package/dist/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.cjs +0 -191
  3050. package/dist/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.js +0 -190
  3051. package/dist/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.cjs +0 -299
  3052. package/dist/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.js +0 -298
  3053. package/dist/node_modules/langchain/dist/agents/middleware/summarization.cjs +0 -543
  3054. package/dist/node_modules/langchain/dist/agents/middleware/summarization.js +0 -539
  3055. package/dist/node_modules/langchain/dist/agents/middleware/todoListMiddleware.cjs +0 -354
  3056. package/dist/node_modules/langchain/dist/agents/middleware/todoListMiddleware.js +0 -352
  3057. package/dist/node_modules/langchain/dist/agents/middleware/toolCallLimit.cjs +0 -366
  3058. package/dist/node_modules/langchain/dist/agents/middleware/toolCallLimit.js +0 -364
  3059. package/dist/node_modules/langchain/dist/agents/middleware/toolEmulator.cjs +0 -118
  3060. package/dist/node_modules/langchain/dist/agents/middleware/toolEmulator.js +0 -117
  3061. package/dist/node_modules/langchain/dist/agents/middleware/toolRetry.cjs +0 -212
  3062. package/dist/node_modules/langchain/dist/agents/middleware/toolRetry.js +0 -211
  3063. package/dist/node_modules/langchain/dist/agents/middleware/types.cjs +0 -12
  3064. package/dist/node_modules/langchain/dist/agents/middleware/types.js +0 -11
  3065. package/dist/node_modules/langchain/dist/agents/middleware/utils.cjs +0 -87
  3066. package/dist/node_modules/langchain/dist/agents/middleware/utils.js +0 -82
  3067. package/dist/node_modules/langchain/dist/agents/middleware.cjs +0 -75
  3068. package/dist/node_modules/langchain/dist/agents/middleware.js +0 -75
  3069. package/dist/node_modules/langchain/dist/agents/model.cjs +0 -13
  3070. package/dist/node_modules/langchain/dist/agents/model.js +0 -11
  3071. package/dist/node_modules/langchain/dist/agents/nodes/AfterAgentNode.cjs +0 -29
  3072. package/dist/node_modules/langchain/dist/agents/nodes/AfterAgentNode.js +0 -29
  3073. package/dist/node_modules/langchain/dist/agents/nodes/AfterModelNode.cjs +0 -29
  3074. package/dist/node_modules/langchain/dist/agents/nodes/AfterModelNode.js +0 -29
  3075. package/dist/node_modules/langchain/dist/agents/nodes/AgentNode.cjs +0 -489
  3076. package/dist/node_modules/langchain/dist/agents/nodes/AgentNode.js +0 -487
  3077. package/dist/node_modules/langchain/dist/agents/nodes/BeforeAgentNode.cjs +0 -29
  3078. package/dist/node_modules/langchain/dist/agents/nodes/BeforeAgentNode.js +0 -29
  3079. package/dist/node_modules/langchain/dist/agents/nodes/BeforeModelNode.cjs +0 -29
  3080. package/dist/node_modules/langchain/dist/agents/nodes/BeforeModelNode.js +0 -29
  3081. package/dist/node_modules/langchain/dist/agents/nodes/ToolNode.cjs +0 -328
  3082. package/dist/node_modules/langchain/dist/agents/nodes/ToolNode.js +0 -326
  3083. package/dist/node_modules/langchain/dist/agents/nodes/middleware.cjs +0 -126
  3084. package/dist/node_modules/langchain/dist/agents/nodes/middleware.js +0 -125
  3085. package/dist/node_modules/langchain/dist/agents/nodes/utils.cjs +0 -120
  3086. package/dist/node_modules/langchain/dist/agents/nodes/utils.js +0 -115
  3087. package/dist/node_modules/langchain/dist/agents/responses.cjs +0 -297
  3088. package/dist/node_modules/langchain/dist/agents/responses.js +0 -292
  3089. package/dist/node_modules/langchain/dist/agents/state.cjs +0 -45
  3090. package/dist/node_modules/langchain/dist/agents/state.js +0 -44
  3091. package/dist/node_modules/langchain/dist/agents/tests/utils.cjs +0 -94
  3092. package/dist/node_modules/langchain/dist/agents/tests/utils.js +0 -93
  3093. package/dist/node_modules/langchain/dist/agents/utils.cjs +0 -394
  3094. package/dist/node_modules/langchain/dist/agents/utils.js +0 -386
  3095. package/dist/node_modules/langchain/dist/agents/withAgentName.cjs +0 -39
  3096. package/dist/node_modules/langchain/dist/agents/withAgentName.js +0 -38
  3097. package/dist/node_modules/langchain/dist/chat_models/universal.cjs +0 -611
  3098. package/dist/node_modules/langchain/dist/chat_models/universal.js +0 -601
  3099. package/dist/node_modules/langchain/dist/hub/base.cjs +0 -103
  3100. package/dist/node_modules/langchain/dist/hub/base.js +0 -98
  3101. package/dist/node_modules/langchain/dist/hub/index.cjs +0 -58
  3102. package/dist/node_modules/langchain/dist/hub/index.js +0 -57
  3103. package/dist/node_modules/langchain/dist/hub/node.cjs +0 -90
  3104. package/dist/node_modules/langchain/dist/hub/node.js +0 -88
  3105. package/dist/node_modules/langchain/dist/index.cjs +0 -12
  3106. package/dist/node_modules/langchain/dist/index.js +0 -102
  3107. package/dist/node_modules/langchain/dist/load/import_constants.cjs +0 -14
  3108. package/dist/node_modules/langchain/dist/load/import_constants.js +0 -13
  3109. package/dist/node_modules/langchain/dist/load/import_map.cjs +0 -87
  3110. package/dist/node_modules/langchain/dist/load/import_map.js +0 -82
  3111. package/dist/node_modules/langchain/dist/load/index.cjs +0 -33
  3112. package/dist/node_modules/langchain/dist/load/index.js +0 -32
  3113. package/dist/node_modules/langchain/dist/load/serializable.cjs +0 -22
  3114. package/dist/node_modules/langchain/dist/load/serializable.js +0 -12
  3115. package/dist/node_modules/langchain/dist/storage/encoder_backed.cjs +0 -94
  3116. package/dist/node_modules/langchain/dist/storage/encoder_backed.js +0 -87
  3117. package/dist/node_modules/langchain/dist/storage/file_system.cjs +0 -157
  3118. package/dist/node_modules/langchain/dist/storage/file_system.js +0 -151
  3119. package/dist/node_modules/langchain/dist/storage/in_memory.cjs +0 -21
  3120. package/dist/node_modules/langchain/dist/storage/in_memory.js +0 -10
  3121. package/dist/node_modules/langchain/hub/node.cjs +0 -1
  3122. package/dist/node_modules/langchain/hub/node.js +0 -1
  3123. package/dist/node_modules/langchain/hub.cjs +0 -1
  3124. package/dist/node_modules/langchain/hub.js +0 -1
  3125. package/dist/node_modules/langchain/load/serializable.cjs +0 -1
  3126. package/dist/node_modules/langchain/load/serializable.js +0 -1
  3127. package/dist/node_modules/langchain/load.cjs +0 -1
  3128. package/dist/node_modules/langchain/load.js +0 -1
  3129. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/any_value.cjs +0 -46
  3130. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/any_value.js +0 -46
  3131. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/base.cjs +0 -112
  3132. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/base.js +0 -108
  3133. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/binop.cjs +0 -62
  3134. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/binop.js +0 -62
  3135. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.cjs +0 -75
  3136. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.js +0 -75
  3137. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.cjs +0 -46
  3138. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.js +0 -46
  3139. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/index.cjs +0 -23
  3140. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/index.js +0 -11
  3141. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/last_value.cjs +0 -98
  3142. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/last_value.js +0 -97
  3143. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.cjs +0 -116
  3144. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.js +0 -114
  3145. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/topic.cjs +0 -65
  3146. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/topic.js +0 -65
  3147. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/untracked_value.cjs +0 -83
  3148. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/untracked_value.js +0 -83
  3149. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/constants.cjs +0 -406
  3150. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/constants.js +0 -362
  3151. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/errors.cjs +0 -199
  3152. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/errors.js +0 -181
  3153. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/func/index.cjs +0 -299
  3154. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/func/index.js +0 -297
  3155. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/annotation.cjs +0 -104
  3156. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/annotation.js +0 -102
  3157. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/graph.cjs +0 -420
  3158. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/graph.js +0 -418
  3159. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/index.cjs +0 -6
  3160. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/index.js +0 -8
  3161. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/message.cjs +0 -52
  3162. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/message.js +0 -51
  3163. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_annotation.cjs +0 -109
  3164. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_annotation.js +0 -107
  3165. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_reducer.cjs +0 -85
  3166. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_reducer.js +0 -84
  3167. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/state.cjs +0 -534
  3168. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/state.js +0 -533
  3169. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/types.cjs +0 -41
  3170. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/types.js +0 -40
  3171. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/index.cjs +0 -10
  3172. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/index.js +0 -5
  3173. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/meta.cjs +0 -144
  3174. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/meta.js +0 -141
  3175. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/plugin.cjs +0 -39
  3176. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/plugin.js +0 -40
  3177. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/schema.cjs +0 -98
  3178. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/schema.js +0 -94
  3179. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.cjs +0 -42
  3180. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.js +0 -41
  3181. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/hash.cjs +0 -265
  3182. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/hash.js +0 -263
  3183. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/index.cjs +0 -129
  3184. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/index.js +0 -30
  3185. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/interrupt.cjs +0 -79
  3186. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/interrupt.js +0 -79
  3187. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agentName.cjs +0 -148
  3188. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agentName.js +0 -148
  3189. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.cjs +0 -41
  3190. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.js +0 -41
  3191. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.cjs +0 -62
  3192. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.js +0 -62
  3193. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/index.cjs +0 -15
  3194. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/index.js +0 -8
  3195. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.cjs +0 -340
  3196. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.js +0 -339
  3197. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.cjs +0 -43
  3198. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.js +0 -43
  3199. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.cjs +0 -247
  3200. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.js +0 -246
  3201. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/algo.cjs +0 -584
  3202. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/algo.js +0 -578
  3203. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/call.cjs +0 -50
  3204. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/call.js +0 -48
  3205. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/debug.cjs +0 -172
  3206. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/debug.js +0 -166
  3207. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/index.cjs +0 -1163
  3208. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/index.js +0 -1162
  3209. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/io.cjs +0 -140
  3210. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/io.js +0 -135
  3211. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/loop.cjs +0 -560
  3212. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/loop.js +0 -560
  3213. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/messages.cjs +0 -107
  3214. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/messages.js +0 -107
  3215. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/read.cjs +0 -151
  3216. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/read.js +0 -150
  3217. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/remote.cjs +0 -341
  3218. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/remote.js +0 -341
  3219. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/retry.cjs +0 -91
  3220. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/retry.js +0 -91
  3221. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/runner.cjs +0 -228
  3222. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/runner.js +0 -228
  3223. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/stream.cjs +0 -197
  3224. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/stream.js +0 -195
  3225. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/types.cjs +0 -27
  3226. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/types.js +0 -25
  3227. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/config.cjs +0 -121
  3228. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/config.js +0 -115
  3229. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/index.cjs +0 -102
  3230. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/index.js +0 -96
  3231. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.cjs +0 -18
  3232. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.js +0 -16
  3233. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/validate.cjs +0 -45
  3234. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/validate.js +0 -44
  3235. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/write.cjs +0 -96
  3236. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/write.js +0 -95
  3237. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/remote.cjs +0 -3
  3238. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/remote.js +0 -3
  3239. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/setup/async_local_storage.cjs +0 -11
  3240. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/setup/async_local_storage.js +0 -11
  3241. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/adapter.cjs +0 -53
  3242. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/adapter.js +0 -52
  3243. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/index.cjs +0 -8
  3244. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/index.js +0 -10
  3245. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/index.cjs +0 -1
  3246. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/index.js +0 -3
  3247. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.cjs +0 -19
  3248. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.js +0 -19
  3249. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/schema.cjs +0 -170
  3250. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/schema.js +0 -170
  3251. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/types.cjs +0 -17
  3252. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/types.js +0 -14
  3253. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/index.cjs +0 -2
  3254. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/index.js +0 -4
  3255. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/reduced.cjs +0 -72
  3256. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/reduced.js +0 -71
  3257. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/untracked.cjs +0 -64
  3258. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/untracked.js +0 -63
  3259. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/utils.cjs +0 -86
  3260. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/utils.js +0 -80
  3261. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/web.cjs +0 -114
  3262. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/web.js +0 -24
  3263. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/writer.cjs +0 -14
  3264. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/writer.js +0 -14
  3265. package/dist/node_modules/langchain/node_modules/@langchain/langgraph/package.json +0 -194
  3266. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/_virtual/rolldown_runtime.cjs +0 -29
  3267. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/error.cjs +0 -79
  3268. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/error.js +0 -78
  3269. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/index.cjs +0 -39
  3270. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/index.js +0 -37
  3271. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/client.cjs +0 -1212
  3272. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/client.js +0 -1205
  3273. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/index.cjs +0 -6
  3274. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/index.js +0 -4
  3275. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/logging/index.cjs +0 -35
  3276. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/logging/index.js +0 -34
  3277. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/index.cjs +0 -5
  3278. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/index.js +0 -4
  3279. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.cjs +0 -18
  3280. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.custom.cjs +0 -135
  3281. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.custom.js +0 -133
  3282. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.js +0 -17
  3283. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.lgp.cjs +0 -449
  3284. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.lgp.js +0 -448
  3285. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/thread.cjs +0 -21
  3286. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/thread.js +0 -20
  3287. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/client.cjs +0 -138
  3288. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/client.js +0 -132
  3289. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/index.cjs +0 -14
  3290. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/index.js +0 -9
  3291. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/index.cjs +0 -5
  3292. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/index.js +0 -4
  3293. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/server.cjs +0 -57
  3294. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/server.js +0 -56
  3295. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/types.cjs +0 -38
  3296. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/types.js +0 -35
  3297. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/singletons/fetch.cjs +0 -24
  3298. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/singletons/fetch.js +0 -22
  3299. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/branching.cjs +0 -153
  3300. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/branching.js +0 -152
  3301. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/errors.cjs +0 -15
  3302. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/errors.js +0 -14
  3303. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/manager.cjs +0 -189
  3304. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/manager.js +0 -189
  3305. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/messages.cjs +0 -70
  3306. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/messages.js +0 -68
  3307. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/utils.cjs +0 -21
  3308. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/utils.js +0 -18
  3309. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/async_caller.cjs +0 -119
  3310. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/async_caller.js +0 -116
  3311. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/env.cjs +0 -13
  3312. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/env.js +0 -12
  3313. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/error.cjs +0 -24
  3314. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/error.js +0 -23
  3315. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/signals.cjs +0 -20
  3316. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/signals.js +0 -19
  3317. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/sse.cjs +0 -124
  3318. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/sse.js +0 -122
  3319. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/stream.cjs +0 -174
  3320. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/stream.js +0 -173
  3321. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/tools.cjs +0 -52
  3322. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/tools.js +0 -51
  3323. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/index.js +0 -14
  3324. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/max.js +0 -1
  3325. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/md5.js +0 -135
  3326. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/native.js +0 -2
  3327. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/nil.js +0 -1
  3328. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/parse.js +0 -9
  3329. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/regex.js +0 -1
  3330. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/rng.js +0 -11
  3331. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/sha1.js +0 -70
  3332. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/stringify.js +0 -35
  3333. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/types.js +0 -1
  3334. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/uuid-bin.js +0 -70
  3335. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v1.js +0 -83
  3336. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v1ToV6.js +0 -10
  3337. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v3.js +0 -9
  3338. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v35.js +0 -36
  3339. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v4.js +0 -30
  3340. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v5.js +0 -9
  3341. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v6.js +0 -17
  3342. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v6ToV1.js +0 -10
  3343. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v7.js +0 -65
  3344. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/validate.js +0 -5
  3345. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/version.js +0 -8
  3346. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/bin/uuid +0 -2
  3347. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/index.js +0 -14
  3348. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/max.js +0 -1
  3349. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/md5.js +0 -11
  3350. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/native.js +0 -2
  3351. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/nil.js +0 -1
  3352. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/parse.js +0 -9
  3353. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/regex.js +0 -1
  3354. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/rng.js +0 -10
  3355. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/sha1.js +0 -11
  3356. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/stringify.js +0 -35
  3357. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/types.js +0 -1
  3358. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/uuid-bin.js +0 -70
  3359. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v1.js +0 -83
  3360. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v1ToV6.js +0 -10
  3361. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v3.js +0 -9
  3362. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v35.js +0 -36
  3363. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v4.js +0 -30
  3364. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v5.js +0 -9
  3365. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v6.js +0 -17
  3366. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v6ToV1.js +0 -10
  3367. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v7.js +0 -65
  3368. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/validate.js +0 -5
  3369. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/version.js +0 -8
  3370. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/package.json +0 -119
  3371. package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/package.json +0 -161
  3372. package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -347
  3373. package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -1
  3374. package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -355
  3375. package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -1
  3376. package/dist/node_modules/langchain/node_modules/eventemitter3/index.js +0 -336
  3377. package/dist/node_modules/langchain/node_modules/eventemitter3/package.json +0 -67
  3378. package/dist/node_modules/langchain/node_modules/p-queue/dist/index.js +0 -754
  3379. package/dist/node_modules/langchain/node_modules/p-queue/dist/lower-bound.js +0 -18
  3380. package/dist/node_modules/langchain/node_modules/p-queue/dist/options.js +0 -1
  3381. package/dist/node_modules/langchain/node_modules/p-queue/dist/priority-queue.js +0 -36
  3382. package/dist/node_modules/langchain/node_modules/p-queue/dist/queue.js +0 -1
  3383. package/dist/node_modules/langchain/node_modules/p-queue/license +0 -9
  3384. package/dist/node_modules/langchain/node_modules/p-queue/package.json +0 -81
  3385. package/dist/node_modules/langchain/node_modules/p-timeout/index.js +0 -95
  3386. package/dist/node_modules/langchain/node_modules/p-timeout/license +0 -9
  3387. package/dist/node_modules/langchain/node_modules/p-timeout/package.json +0 -52
  3388. package/dist/node_modules/langchain/package.json +0 -1
  3389. package/dist/node_modules/langchain/storage/encoder_backed.cjs +0 -1
  3390. package/dist/node_modules/langchain/storage/encoder_backed.js +0 -1
  3391. package/dist/node_modules/langchain/storage/file_system.cjs +0 -1
  3392. package/dist/node_modules/langchain/storage/file_system.js +0 -1
  3393. package/dist/node_modules/langchain/storage/in_memory.cjs +0 -1
  3394. package/dist/node_modules/langchain/storage/in_memory.js +0 -1
  3395. package/dist/node_modules/zod/src/index.ts +0 -4
  3396. package/dist/node_modules/zod/src/locales/index.ts +0 -1
  3397. package/dist/node_modules/zod/src/mini/index.ts +0 -1
  3398. package/dist/node_modules/zod/src/v3/ZodError.ts +0 -330
  3399. package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  3400. package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  3401. package/dist/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  3402. package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  3403. package/dist/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  3404. package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  3405. package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  3406. package/dist/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  3407. package/dist/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  3408. package/dist/node_modules/zod/src/v3/errors.ts +0 -13
  3409. package/dist/node_modules/zod/src/v3/external.ts +0 -6
  3410. package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  3411. package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  3412. package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  3413. package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  3414. package/dist/node_modules/zod/src/v3/helpers/util.ts +0 -224
  3415. package/dist/node_modules/zod/src/v3/index.ts +0 -4
  3416. package/dist/node_modules/zod/src/v3/locales/en.ts +0 -124
  3417. package/dist/node_modules/zod/src/v3/standard-schema.ts +0 -113
  3418. package/dist/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  3419. package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  3420. package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  3421. package/dist/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  3422. package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  3423. package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  3424. package/dist/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  3425. package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  3426. package/dist/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  3427. package/dist/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  3428. package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  3429. package/dist/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  3430. package/dist/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  3431. package/dist/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  3432. package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  3433. package/dist/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  3434. package/dist/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  3435. package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  3436. package/dist/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  3437. package/dist/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  3438. package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  3439. package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  3440. package/dist/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  3441. package/dist/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  3442. package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  3443. package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  3444. package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  3445. package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  3446. package/dist/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  3447. package/dist/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  3448. package/dist/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  3449. package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  3450. package/dist/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  3451. package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  3452. package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  3453. package/dist/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  3454. package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  3455. package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  3456. package/dist/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  3457. package/dist/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  3458. package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  3459. package/dist/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  3460. package/dist/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  3461. package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  3462. package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  3463. package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  3464. package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  3465. package/dist/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  3466. package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  3467. package/dist/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  3468. package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  3469. package/dist/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  3470. package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  3471. package/dist/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  3472. package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  3473. package/dist/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  3474. package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  3475. package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  3476. package/dist/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  3477. package/dist/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  3478. package/dist/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  3479. package/dist/node_modules/zod/src/v3/types.ts +0 -5138
  3480. package/dist/node_modules/zod/src/v4/classic/checks.ts +0 -32
  3481. package/dist/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  3482. package/dist/node_modules/zod/src/v4/classic/compat.ts +0 -70
  3483. package/dist/node_modules/zod/src/v4/classic/errors.ts +0 -82
  3484. package/dist/node_modules/zod/src/v4/classic/external.ts +0 -51
  3485. package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
  3486. package/dist/node_modules/zod/src/v4/classic/index.ts +0 -5
  3487. package/dist/node_modules/zod/src/v4/classic/iso.ts +0 -90
  3488. package/dist/node_modules/zod/src/v4/classic/parse.ts +0 -82
  3489. package/dist/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
  3490. package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  3491. package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  3492. package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  3493. package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  3494. package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  3495. package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  3496. package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  3497. package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  3498. package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  3499. package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
  3500. package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  3501. package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  3502. package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
  3503. package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  3504. package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  3505. package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  3506. package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  3507. package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  3508. package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
  3509. package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  3510. package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  3511. package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
  3512. package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  3513. package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
  3514. package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  3515. package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  3516. package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  3517. package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  3518. package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
  3519. package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  3520. package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  3521. package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  3522. package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  3523. package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  3524. package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  3525. package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  3526. package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  3527. package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  3528. package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  3529. package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  3530. package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  3531. package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  3532. package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  3533. package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
  3534. package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
  3535. package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
  3536. package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
  3537. package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  3538. package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  3539. package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  3540. package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
  3541. package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  3542. package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  3543. package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  3544. package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  3545. package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -600
  3546. package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
  3547. package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
  3548. package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  3549. package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  3550. package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  3551. package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  3552. package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
  3553. package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  3554. package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  3555. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  3556. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2975
  3557. package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
  3558. package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
  3559. package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
  3560. package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  3561. package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  3562. package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  3563. package/dist/node_modules/zod/src/v4/core/api.ts +0 -1798
  3564. package/dist/node_modules/zod/src/v4/core/checks.ts +0 -1293
  3565. package/dist/node_modules/zod/src/v4/core/config.ts +0 -15
  3566. package/dist/node_modules/zod/src/v4/core/core.ts +0 -138
  3567. package/dist/node_modules/zod/src/v4/core/doc.ts +0 -44
  3568. package/dist/node_modules/zod/src/v4/core/errors.ts +0 -448
  3569. package/dist/node_modules/zod/src/v4/core/index.ts +0 -16
  3570. package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  3571. package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
  3572. package/dist/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  3573. package/dist/node_modules/zod/src/v4/core/parse.ts +0 -195
  3574. package/dist/node_modules/zod/src/v4/core/regexes.ts +0 -183
  3575. package/dist/node_modules/zod/src/v4/core/registries.ts +0 -105
  3576. package/dist/node_modules/zod/src/v4/core/schemas.ts +0 -4543
  3577. package/dist/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  3578. package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  3579. package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  3580. package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  3581. package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  3582. package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  3583. package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  3584. package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  3585. package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  3586. package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  3587. package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
  3588. package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
  3589. package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  3590. package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
  3591. package/dist/node_modules/zod/src/v4/core/util.ts +0 -966
  3592. package/dist/node_modules/zod/src/v4/core/versions.ts +0 -5
  3593. package/dist/node_modules/zod/src/v4/core/zsf.ts +0 -323
  3594. package/dist/node_modules/zod/src/v4/index.ts +0 -4
  3595. package/dist/node_modules/zod/src/v4/locales/ar.ts +0 -115
  3596. package/dist/node_modules/zod/src/v4/locales/az.ts +0 -111
  3597. package/dist/node_modules/zod/src/v4/locales/be.ts +0 -176
  3598. package/dist/node_modules/zod/src/v4/locales/bg.ts +0 -128
  3599. package/dist/node_modules/zod/src/v4/locales/ca.ts +0 -116
  3600. package/dist/node_modules/zod/src/v4/locales/cs.ts +0 -118
  3601. package/dist/node_modules/zod/src/v4/locales/da.ts +0 -123
  3602. package/dist/node_modules/zod/src/v4/locales/de.ts +0 -116
  3603. package/dist/node_modules/zod/src/v4/locales/en.ts +0 -119
  3604. package/dist/node_modules/zod/src/v4/locales/eo.ts +0 -118
  3605. package/dist/node_modules/zod/src/v4/locales/es.ts +0 -141
  3606. package/dist/node_modules/zod/src/v4/locales/fa.ts +0 -126
  3607. package/dist/node_modules/zod/src/v4/locales/fi.ts +0 -121
  3608. package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  3609. package/dist/node_modules/zod/src/v4/locales/fr.ts +0 -116
  3610. package/dist/node_modules/zod/src/v4/locales/he.ts +0 -246
  3611. package/dist/node_modules/zod/src/v4/locales/hu.ts +0 -117
  3612. package/dist/node_modules/zod/src/v4/locales/hy.ts +0 -164
  3613. package/dist/node_modules/zod/src/v4/locales/id.ts +0 -115
  3614. package/dist/node_modules/zod/src/v4/locales/index.ts +0 -49
  3615. package/dist/node_modules/zod/src/v4/locales/is.ts +0 -119
  3616. package/dist/node_modules/zod/src/v4/locales/it.ts +0 -116
  3617. package/dist/node_modules/zod/src/v4/locales/ja.ts +0 -114
  3618. package/dist/node_modules/zod/src/v4/locales/ka.ts +0 -123
  3619. package/dist/node_modules/zod/src/v4/locales/kh.ts +0 -7
  3620. package/dist/node_modules/zod/src/v4/locales/km.ts +0 -119
  3621. package/dist/node_modules/zod/src/v4/locales/ko.ts +0 -121
  3622. package/dist/node_modules/zod/src/v4/locales/lt.ts +0 -239
  3623. package/dist/node_modules/zod/src/v4/locales/mk.ts +0 -118
  3624. package/dist/node_modules/zod/src/v4/locales/ms.ts +0 -115
  3625. package/dist/node_modules/zod/src/v4/locales/nl.ts +0 -121
  3626. package/dist/node_modules/zod/src/v4/locales/no.ts +0 -116
  3627. package/dist/node_modules/zod/src/v4/locales/ota.ts +0 -117
  3628. package/dist/node_modules/zod/src/v4/locales/pl.ts +0 -118
  3629. package/dist/node_modules/zod/src/v4/locales/ps.ts +0 -126
  3630. package/dist/node_modules/zod/src/v4/locales/pt.ts +0 -116
  3631. package/dist/node_modules/zod/src/v4/locales/ru.ts +0 -176
  3632. package/dist/node_modules/zod/src/v4/locales/sl.ts +0 -118
  3633. package/dist/node_modules/zod/src/v4/locales/sv.ts +0 -119
  3634. package/dist/node_modules/zod/src/v4/locales/ta.ts +0 -118
  3635. package/dist/node_modules/zod/src/v4/locales/th.ts +0 -119
  3636. package/dist/node_modules/zod/src/v4/locales/tr.ts +0 -111
  3637. package/dist/node_modules/zod/src/v4/locales/ua.ts +0 -7
  3638. package/dist/node_modules/zod/src/v4/locales/uk.ts +0 -117
  3639. package/dist/node_modules/zod/src/v4/locales/ur.ts +0 -119
  3640. package/dist/node_modules/zod/src/v4/locales/uz.ts +0 -116
  3641. package/dist/node_modules/zod/src/v4/locales/vi.ts +0 -117
  3642. package/dist/node_modules/zod/src/v4/locales/yo.ts +0 -124
  3643. package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  3644. package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  3645. package/dist/node_modules/zod/src/v4/mini/checks.ts +0 -32
  3646. package/dist/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  3647. package/dist/node_modules/zod/src/v4/mini/external.ts +0 -40
  3648. package/dist/node_modules/zod/src/v4/mini/index.ts +0 -3
  3649. package/dist/node_modules/zod/src/v4/mini/iso.ts +0 -66
  3650. package/dist/node_modules/zod/src/v4/mini/parse.ts +0 -14
  3651. package/dist/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
  3652. package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  3653. package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  3654. package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  3655. package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  3656. package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
  3657. package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  3658. package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  3659. package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  3660. package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
  3661. package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  3662. package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  3663. package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  3664. package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  3665. package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  3666. package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
  3667. package/dist/node_modules/zod/src/v4-mini/index.ts +0 -1
  3668. package/dist/server/llm-providers/kimi.d.ts +0 -17
  3669. package/dist/server/llm-providers/kimi.js +0 -75
  3670. /package/dist/node_modules/{@langchain/core/node_modules/zod/index.js → zod/index.d.ts} +0 -0
  3671. /package/dist/node_modules/{@langchain/core/node_modules/zod/locales/index.js → zod/locales/index.d.ts} +0 -0
  3672. /package/dist/node_modules/{@langchain/core/node_modules/zod/mini/index.js → zod/mini/index.d.ts} +0 -0
  3673. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v3/external.ts → zod/v3/external.d.ts} +0 -0
  3674. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v3/helpers/typeAliases.ts → zod/v3/helpers/typeAliases.d.cts} +0 -0
  3675. /package/dist/node_modules/zod/{src/v3/helpers/typeAliases.ts → v3/helpers/typeAliases.d.ts} +0 -0
  3676. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v3/index.ts → zod/v3/index.d.ts} +0 -0
  3677. /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/classic/index.js → zod/v4/classic/index.d.ts} +0 -0
  3678. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v4/core/index.ts → zod/v4/core/index.d.ts} +0 -0
  3679. /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/index.js → zod/v4/index.d.ts} +0 -0
  3680. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v4/locales/index.ts → zod/v4/locales/index.d.ts} +0 -0
  3681. /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/mini/checks.js → zod/v4/mini/checks.d.ts} +0 -0
  3682. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v4/mini/index.ts → zod/v4/mini/index.d.ts} +0 -0
  3683. /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/mini/parse.js → zod/v4/mini/parse.d.ts} +0 -0
  3684. /package/dist/node_modules/{@langchain/core/node_modules/zod/src/mini/index.ts → zod/v4-mini/index.d.ts} +0 -0
@@ -1,3777 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.discriminatedUnion = exports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;
4
- exports.NEVER = exports.void = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports.null = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports.instanceof = exports.function = exports.enum = exports.effect = void 0;
5
- exports.datetimeRegex = datetimeRegex;
6
- exports.custom = custom;
7
- const ZodError_js_1 = require("./ZodError.cjs");
8
- const errors_js_1 = require("./errors.cjs");
9
- const errorUtil_js_1 = require("./helpers/errorUtil.cjs");
10
- const parseUtil_js_1 = require("./helpers/parseUtil.cjs");
11
- const util_js_1 = require("./helpers/util.cjs");
12
- class ParseInputLazyPath {
13
- constructor(parent, value, path, key) {
14
- this._cachedPath = [];
15
- this.parent = parent;
16
- this.data = value;
17
- this._path = path;
18
- this._key = key;
19
- }
20
- get path() {
21
- if (!this._cachedPath.length) {
22
- if (Array.isArray(this._key)) {
23
- this._cachedPath.push(...this._path, ...this._key);
24
- }
25
- else {
26
- this._cachedPath.push(...this._path, this._key);
27
- }
28
- }
29
- return this._cachedPath;
30
- }
31
- }
32
- const handleResult = (ctx, result) => {
33
- if ((0, parseUtil_js_1.isValid)(result)) {
34
- return { success: true, data: result.value };
35
- }
36
- else {
37
- if (!ctx.common.issues.length) {
38
- throw new Error("Validation failed but no issues detected.");
39
- }
40
- return {
41
- success: false,
42
- get error() {
43
- if (this._error)
44
- return this._error;
45
- const error = new ZodError_js_1.ZodError(ctx.common.issues);
46
- this._error = error;
47
- return this._error;
48
- },
49
- };
50
- }
51
- };
52
- function processCreateParams(params) {
53
- if (!params)
54
- return {};
55
- const { errorMap, invalid_type_error, required_error, description } = params;
56
- if (errorMap && (invalid_type_error || required_error)) {
57
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
58
- }
59
- if (errorMap)
60
- return { errorMap: errorMap, description };
61
- const customMap = (iss, ctx) => {
62
- const { message } = params;
63
- if (iss.code === "invalid_enum_value") {
64
- return { message: message ?? ctx.defaultError };
65
- }
66
- if (typeof ctx.data === "undefined") {
67
- return { message: message ?? required_error ?? ctx.defaultError };
68
- }
69
- if (iss.code !== "invalid_type")
70
- return { message: ctx.defaultError };
71
- return { message: message ?? invalid_type_error ?? ctx.defaultError };
72
- };
73
- return { errorMap: customMap, description };
74
- }
75
- class ZodType {
76
- get description() {
77
- return this._def.description;
78
- }
79
- _getType(input) {
80
- return (0, util_js_1.getParsedType)(input.data);
81
- }
82
- _getOrReturnCtx(input, ctx) {
83
- return (ctx || {
84
- common: input.parent.common,
85
- data: input.data,
86
- parsedType: (0, util_js_1.getParsedType)(input.data),
87
- schemaErrorMap: this._def.errorMap,
88
- path: input.path,
89
- parent: input.parent,
90
- });
91
- }
92
- _processInputParams(input) {
93
- return {
94
- status: new parseUtil_js_1.ParseStatus(),
95
- ctx: {
96
- common: input.parent.common,
97
- data: input.data,
98
- parsedType: (0, util_js_1.getParsedType)(input.data),
99
- schemaErrorMap: this._def.errorMap,
100
- path: input.path,
101
- parent: input.parent,
102
- },
103
- };
104
- }
105
- _parseSync(input) {
106
- const result = this._parse(input);
107
- if ((0, parseUtil_js_1.isAsync)(result)) {
108
- throw new Error("Synchronous parse encountered promise.");
109
- }
110
- return result;
111
- }
112
- _parseAsync(input) {
113
- const result = this._parse(input);
114
- return Promise.resolve(result);
115
- }
116
- parse(data, params) {
117
- const result = this.safeParse(data, params);
118
- if (result.success)
119
- return result.data;
120
- throw result.error;
121
- }
122
- safeParse(data, params) {
123
- const ctx = {
124
- common: {
125
- issues: [],
126
- async: params?.async ?? false,
127
- contextualErrorMap: params?.errorMap,
128
- },
129
- path: params?.path || [],
130
- schemaErrorMap: this._def.errorMap,
131
- parent: null,
132
- data,
133
- parsedType: (0, util_js_1.getParsedType)(data),
134
- };
135
- const result = this._parseSync({ data, path: ctx.path, parent: ctx });
136
- return handleResult(ctx, result);
137
- }
138
- "~validate"(data) {
139
- const ctx = {
140
- common: {
141
- issues: [],
142
- async: !!this["~standard"].async,
143
- },
144
- path: [],
145
- schemaErrorMap: this._def.errorMap,
146
- parent: null,
147
- data,
148
- parsedType: (0, util_js_1.getParsedType)(data),
149
- };
150
- if (!this["~standard"].async) {
151
- try {
152
- const result = this._parseSync({ data, path: [], parent: ctx });
153
- return (0, parseUtil_js_1.isValid)(result)
154
- ? {
155
- value: result.value,
156
- }
157
- : {
158
- issues: ctx.common.issues,
159
- };
160
- }
161
- catch (err) {
162
- if (err?.message?.toLowerCase()?.includes("encountered")) {
163
- this["~standard"].async = true;
164
- }
165
- ctx.common = {
166
- issues: [],
167
- async: true,
168
- };
169
- }
170
- }
171
- return this._parseAsync({ data, path: [], parent: ctx }).then((result) => (0, parseUtil_js_1.isValid)(result)
172
- ? {
173
- value: result.value,
174
- }
175
- : {
176
- issues: ctx.common.issues,
177
- });
178
- }
179
- async parseAsync(data, params) {
180
- const result = await this.safeParseAsync(data, params);
181
- if (result.success)
182
- return result.data;
183
- throw result.error;
184
- }
185
- async safeParseAsync(data, params) {
186
- const ctx = {
187
- common: {
188
- issues: [],
189
- contextualErrorMap: params?.errorMap,
190
- async: true,
191
- },
192
- path: params?.path || [],
193
- schemaErrorMap: this._def.errorMap,
194
- parent: null,
195
- data,
196
- parsedType: (0, util_js_1.getParsedType)(data),
197
- };
198
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
199
- const result = await ((0, parseUtil_js_1.isAsync)(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
200
- return handleResult(ctx, result);
201
- }
202
- refine(check, message) {
203
- const getIssueProperties = (val) => {
204
- if (typeof message === "string" || typeof message === "undefined") {
205
- return { message };
206
- }
207
- else if (typeof message === "function") {
208
- return message(val);
209
- }
210
- else {
211
- return message;
212
- }
213
- };
214
- return this._refinement((val, ctx) => {
215
- const result = check(val);
216
- const setError = () => ctx.addIssue({
217
- code: ZodError_js_1.ZodIssueCode.custom,
218
- ...getIssueProperties(val),
219
- });
220
- if (typeof Promise !== "undefined" && result instanceof Promise) {
221
- return result.then((data) => {
222
- if (!data) {
223
- setError();
224
- return false;
225
- }
226
- else {
227
- return true;
228
- }
229
- });
230
- }
231
- if (!result) {
232
- setError();
233
- return false;
234
- }
235
- else {
236
- return true;
237
- }
238
- });
239
- }
240
- refinement(check, refinementData) {
241
- return this._refinement((val, ctx) => {
242
- if (!check(val)) {
243
- ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
244
- return false;
245
- }
246
- else {
247
- return true;
248
- }
249
- });
250
- }
251
- _refinement(refinement) {
252
- return new ZodEffects({
253
- schema: this,
254
- typeName: ZodFirstPartyTypeKind.ZodEffects,
255
- effect: { type: "refinement", refinement },
256
- });
257
- }
258
- superRefine(refinement) {
259
- return this._refinement(refinement);
260
- }
261
- constructor(def) {
262
- /** Alias of safeParseAsync */
263
- this.spa = this.safeParseAsync;
264
- this._def = def;
265
- this.parse = this.parse.bind(this);
266
- this.safeParse = this.safeParse.bind(this);
267
- this.parseAsync = this.parseAsync.bind(this);
268
- this.safeParseAsync = this.safeParseAsync.bind(this);
269
- this.spa = this.spa.bind(this);
270
- this.refine = this.refine.bind(this);
271
- this.refinement = this.refinement.bind(this);
272
- this.superRefine = this.superRefine.bind(this);
273
- this.optional = this.optional.bind(this);
274
- this.nullable = this.nullable.bind(this);
275
- this.nullish = this.nullish.bind(this);
276
- this.array = this.array.bind(this);
277
- this.promise = this.promise.bind(this);
278
- this.or = this.or.bind(this);
279
- this.and = this.and.bind(this);
280
- this.transform = this.transform.bind(this);
281
- this.brand = this.brand.bind(this);
282
- this.default = this.default.bind(this);
283
- this.catch = this.catch.bind(this);
284
- this.describe = this.describe.bind(this);
285
- this.pipe = this.pipe.bind(this);
286
- this.readonly = this.readonly.bind(this);
287
- this.isNullable = this.isNullable.bind(this);
288
- this.isOptional = this.isOptional.bind(this);
289
- this["~standard"] = {
290
- version: 1,
291
- vendor: "zod",
292
- validate: (data) => this["~validate"](data),
293
- };
294
- }
295
- optional() {
296
- return ZodOptional.create(this, this._def);
297
- }
298
- nullable() {
299
- return ZodNullable.create(this, this._def);
300
- }
301
- nullish() {
302
- return this.nullable().optional();
303
- }
304
- array() {
305
- return ZodArray.create(this);
306
- }
307
- promise() {
308
- return ZodPromise.create(this, this._def);
309
- }
310
- or(option) {
311
- return ZodUnion.create([this, option], this._def);
312
- }
313
- and(incoming) {
314
- return ZodIntersection.create(this, incoming, this._def);
315
- }
316
- transform(transform) {
317
- return new ZodEffects({
318
- ...processCreateParams(this._def),
319
- schema: this,
320
- typeName: ZodFirstPartyTypeKind.ZodEffects,
321
- effect: { type: "transform", transform },
322
- });
323
- }
324
- default(def) {
325
- const defaultValueFunc = typeof def === "function" ? def : () => def;
326
- return new ZodDefault({
327
- ...processCreateParams(this._def),
328
- innerType: this,
329
- defaultValue: defaultValueFunc,
330
- typeName: ZodFirstPartyTypeKind.ZodDefault,
331
- });
332
- }
333
- brand() {
334
- return new ZodBranded({
335
- typeName: ZodFirstPartyTypeKind.ZodBranded,
336
- type: this,
337
- ...processCreateParams(this._def),
338
- });
339
- }
340
- catch(def) {
341
- const catchValueFunc = typeof def === "function" ? def : () => def;
342
- return new ZodCatch({
343
- ...processCreateParams(this._def),
344
- innerType: this,
345
- catchValue: catchValueFunc,
346
- typeName: ZodFirstPartyTypeKind.ZodCatch,
347
- });
348
- }
349
- describe(description) {
350
- const This = this.constructor;
351
- return new This({
352
- ...this._def,
353
- description,
354
- });
355
- }
356
- pipe(target) {
357
- return ZodPipeline.create(this, target);
358
- }
359
- readonly() {
360
- return ZodReadonly.create(this);
361
- }
362
- isOptional() {
363
- return this.safeParse(undefined).success;
364
- }
365
- isNullable() {
366
- return this.safeParse(null).success;
367
- }
368
- }
369
- exports.ZodType = ZodType;
370
- exports.Schema = ZodType;
371
- exports.ZodSchema = ZodType;
372
- const cuidRegex = /^c[^\s-]{8,}$/i;
373
- const cuid2Regex = /^[0-9a-z]+$/;
374
- const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
375
- // const uuidRegex =
376
- // /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
377
- const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
378
- const nanoidRegex = /^[a-z0-9_-]{21}$/i;
379
- const jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
380
- const durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
381
- // from https://stackoverflow.com/a/46181/1550155
382
- // old version: too slow, didn't support unicode
383
- // const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
384
- //old email regex
385
- // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
386
- // eslint-disable-next-line
387
- // const emailRegex =
388
- // /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
389
- // const emailRegex =
390
- // /^[a-zA-Z0-9\.\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
391
- // const emailRegex =
392
- // /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
393
- const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
394
- // const emailRegex =
395
- // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
396
- // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
397
- const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
398
- let emojiRegex;
399
- // faster, simpler, safer
400
- const ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
401
- const ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
402
- // const ipv6Regex =
403
- // /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
404
- const ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
405
- const ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
406
- // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
407
- const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
408
- // https://base64.guru/standards/base64url
409
- const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
410
- // simple
411
- // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
412
- // no leap year validation
413
- // const dateRegexSource = `\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\d|2\\d))`;
414
- // with leap year validation
415
- const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
416
- const dateRegex = new RegExp(`^${dateRegexSource}$`);
417
- function timeRegexSource(args) {
418
- let secondsRegexSource = `[0-5]\\d`;
419
- if (args.precision) {
420
- secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
421
- }
422
- else if (args.precision == null) {
423
- secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
424
- }
425
- const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
426
- return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
427
- }
428
- function timeRegex(args) {
429
- return new RegExp(`^${timeRegexSource(args)}$`);
430
- }
431
- // Adapted from https://stackoverflow.com/a/3143231
432
- function datetimeRegex(args) {
433
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
434
- const opts = [];
435
- opts.push(args.local ? `Z?` : `Z`);
436
- if (args.offset)
437
- opts.push(`([+-]\\d{2}:?\\d{2})`);
438
- regex = `${regex}(${opts.join("|")})`;
439
- return new RegExp(`^${regex}$`);
440
- }
441
- function isValidIP(ip, version) {
442
- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
443
- return true;
444
- }
445
- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
446
- return true;
447
- }
448
- return false;
449
- }
450
- function isValidJWT(jwt, alg) {
451
- if (!jwtRegex.test(jwt))
452
- return false;
453
- try {
454
- const [header] = jwt.split(".");
455
- if (!header)
456
- return false;
457
- // Convert base64url to base64
458
- const base64 = header
459
- .replace(/-/g, "+")
460
- .replace(/_/g, "/")
461
- .padEnd(header.length + ((4 - (header.length % 4)) % 4), "=");
462
- // @ts-ignore
463
- const decoded = JSON.parse(atob(base64));
464
- if (typeof decoded !== "object" || decoded === null)
465
- return false;
466
- if ("typ" in decoded && decoded?.typ !== "JWT")
467
- return false;
468
- if (!decoded.alg)
469
- return false;
470
- if (alg && decoded.alg !== alg)
471
- return false;
472
- return true;
473
- }
474
- catch {
475
- return false;
476
- }
477
- }
478
- function isValidCidr(ip, version) {
479
- if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
480
- return true;
481
- }
482
- if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
483
- return true;
484
- }
485
- return false;
486
- }
487
- class ZodString extends ZodType {
488
- _parse(input) {
489
- if (this._def.coerce) {
490
- input.data = String(input.data);
491
- }
492
- const parsedType = this._getType(input);
493
- if (parsedType !== util_js_1.ZodParsedType.string) {
494
- const ctx = this._getOrReturnCtx(input);
495
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
496
- code: ZodError_js_1.ZodIssueCode.invalid_type,
497
- expected: util_js_1.ZodParsedType.string,
498
- received: ctx.parsedType,
499
- });
500
- return parseUtil_js_1.INVALID;
501
- }
502
- const status = new parseUtil_js_1.ParseStatus();
503
- let ctx = undefined;
504
- for (const check of this._def.checks) {
505
- if (check.kind === "min") {
506
- if (input.data.length < check.value) {
507
- ctx = this._getOrReturnCtx(input, ctx);
508
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
509
- code: ZodError_js_1.ZodIssueCode.too_small,
510
- minimum: check.value,
511
- type: "string",
512
- inclusive: true,
513
- exact: false,
514
- message: check.message,
515
- });
516
- status.dirty();
517
- }
518
- }
519
- else if (check.kind === "max") {
520
- if (input.data.length > check.value) {
521
- ctx = this._getOrReturnCtx(input, ctx);
522
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
523
- code: ZodError_js_1.ZodIssueCode.too_big,
524
- maximum: check.value,
525
- type: "string",
526
- inclusive: true,
527
- exact: false,
528
- message: check.message,
529
- });
530
- status.dirty();
531
- }
532
- }
533
- else if (check.kind === "length") {
534
- const tooBig = input.data.length > check.value;
535
- const tooSmall = input.data.length < check.value;
536
- if (tooBig || tooSmall) {
537
- ctx = this._getOrReturnCtx(input, ctx);
538
- if (tooBig) {
539
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
540
- code: ZodError_js_1.ZodIssueCode.too_big,
541
- maximum: check.value,
542
- type: "string",
543
- inclusive: true,
544
- exact: true,
545
- message: check.message,
546
- });
547
- }
548
- else if (tooSmall) {
549
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
550
- code: ZodError_js_1.ZodIssueCode.too_small,
551
- minimum: check.value,
552
- type: "string",
553
- inclusive: true,
554
- exact: true,
555
- message: check.message,
556
- });
557
- }
558
- status.dirty();
559
- }
560
- }
561
- else if (check.kind === "email") {
562
- if (!emailRegex.test(input.data)) {
563
- ctx = this._getOrReturnCtx(input, ctx);
564
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
565
- validation: "email",
566
- code: ZodError_js_1.ZodIssueCode.invalid_string,
567
- message: check.message,
568
- });
569
- status.dirty();
570
- }
571
- }
572
- else if (check.kind === "emoji") {
573
- if (!emojiRegex) {
574
- emojiRegex = new RegExp(_emojiRegex, "u");
575
- }
576
- if (!emojiRegex.test(input.data)) {
577
- ctx = this._getOrReturnCtx(input, ctx);
578
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
579
- validation: "emoji",
580
- code: ZodError_js_1.ZodIssueCode.invalid_string,
581
- message: check.message,
582
- });
583
- status.dirty();
584
- }
585
- }
586
- else if (check.kind === "uuid") {
587
- if (!uuidRegex.test(input.data)) {
588
- ctx = this._getOrReturnCtx(input, ctx);
589
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
590
- validation: "uuid",
591
- code: ZodError_js_1.ZodIssueCode.invalid_string,
592
- message: check.message,
593
- });
594
- status.dirty();
595
- }
596
- }
597
- else if (check.kind === "nanoid") {
598
- if (!nanoidRegex.test(input.data)) {
599
- ctx = this._getOrReturnCtx(input, ctx);
600
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
601
- validation: "nanoid",
602
- code: ZodError_js_1.ZodIssueCode.invalid_string,
603
- message: check.message,
604
- });
605
- status.dirty();
606
- }
607
- }
608
- else if (check.kind === "cuid") {
609
- if (!cuidRegex.test(input.data)) {
610
- ctx = this._getOrReturnCtx(input, ctx);
611
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
612
- validation: "cuid",
613
- code: ZodError_js_1.ZodIssueCode.invalid_string,
614
- message: check.message,
615
- });
616
- status.dirty();
617
- }
618
- }
619
- else if (check.kind === "cuid2") {
620
- if (!cuid2Regex.test(input.data)) {
621
- ctx = this._getOrReturnCtx(input, ctx);
622
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
623
- validation: "cuid2",
624
- code: ZodError_js_1.ZodIssueCode.invalid_string,
625
- message: check.message,
626
- });
627
- status.dirty();
628
- }
629
- }
630
- else if (check.kind === "ulid") {
631
- if (!ulidRegex.test(input.data)) {
632
- ctx = this._getOrReturnCtx(input, ctx);
633
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
634
- validation: "ulid",
635
- code: ZodError_js_1.ZodIssueCode.invalid_string,
636
- message: check.message,
637
- });
638
- status.dirty();
639
- }
640
- }
641
- else if (check.kind === "url") {
642
- try {
643
- // @ts-ignore
644
- new URL(input.data);
645
- }
646
- catch {
647
- ctx = this._getOrReturnCtx(input, ctx);
648
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
649
- validation: "url",
650
- code: ZodError_js_1.ZodIssueCode.invalid_string,
651
- message: check.message,
652
- });
653
- status.dirty();
654
- }
655
- }
656
- else if (check.kind === "regex") {
657
- check.regex.lastIndex = 0;
658
- const testResult = check.regex.test(input.data);
659
- if (!testResult) {
660
- ctx = this._getOrReturnCtx(input, ctx);
661
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
662
- validation: "regex",
663
- code: ZodError_js_1.ZodIssueCode.invalid_string,
664
- message: check.message,
665
- });
666
- status.dirty();
667
- }
668
- }
669
- else if (check.kind === "trim") {
670
- input.data = input.data.trim();
671
- }
672
- else if (check.kind === "includes") {
673
- if (!input.data.includes(check.value, check.position)) {
674
- ctx = this._getOrReturnCtx(input, ctx);
675
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
676
- code: ZodError_js_1.ZodIssueCode.invalid_string,
677
- validation: { includes: check.value, position: check.position },
678
- message: check.message,
679
- });
680
- status.dirty();
681
- }
682
- }
683
- else if (check.kind === "toLowerCase") {
684
- input.data = input.data.toLowerCase();
685
- }
686
- else if (check.kind === "toUpperCase") {
687
- input.data = input.data.toUpperCase();
688
- }
689
- else if (check.kind === "startsWith") {
690
- if (!input.data.startsWith(check.value)) {
691
- ctx = this._getOrReturnCtx(input, ctx);
692
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
693
- code: ZodError_js_1.ZodIssueCode.invalid_string,
694
- validation: { startsWith: check.value },
695
- message: check.message,
696
- });
697
- status.dirty();
698
- }
699
- }
700
- else if (check.kind === "endsWith") {
701
- if (!input.data.endsWith(check.value)) {
702
- ctx = this._getOrReturnCtx(input, ctx);
703
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
704
- code: ZodError_js_1.ZodIssueCode.invalid_string,
705
- validation: { endsWith: check.value },
706
- message: check.message,
707
- });
708
- status.dirty();
709
- }
710
- }
711
- else if (check.kind === "datetime") {
712
- const regex = datetimeRegex(check);
713
- if (!regex.test(input.data)) {
714
- ctx = this._getOrReturnCtx(input, ctx);
715
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
716
- code: ZodError_js_1.ZodIssueCode.invalid_string,
717
- validation: "datetime",
718
- message: check.message,
719
- });
720
- status.dirty();
721
- }
722
- }
723
- else if (check.kind === "date") {
724
- const regex = dateRegex;
725
- if (!regex.test(input.data)) {
726
- ctx = this._getOrReturnCtx(input, ctx);
727
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
728
- code: ZodError_js_1.ZodIssueCode.invalid_string,
729
- validation: "date",
730
- message: check.message,
731
- });
732
- status.dirty();
733
- }
734
- }
735
- else if (check.kind === "time") {
736
- const regex = timeRegex(check);
737
- if (!regex.test(input.data)) {
738
- ctx = this._getOrReturnCtx(input, ctx);
739
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
740
- code: ZodError_js_1.ZodIssueCode.invalid_string,
741
- validation: "time",
742
- message: check.message,
743
- });
744
- status.dirty();
745
- }
746
- }
747
- else if (check.kind === "duration") {
748
- if (!durationRegex.test(input.data)) {
749
- ctx = this._getOrReturnCtx(input, ctx);
750
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
751
- validation: "duration",
752
- code: ZodError_js_1.ZodIssueCode.invalid_string,
753
- message: check.message,
754
- });
755
- status.dirty();
756
- }
757
- }
758
- else if (check.kind === "ip") {
759
- if (!isValidIP(input.data, check.version)) {
760
- ctx = this._getOrReturnCtx(input, ctx);
761
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
762
- validation: "ip",
763
- code: ZodError_js_1.ZodIssueCode.invalid_string,
764
- message: check.message,
765
- });
766
- status.dirty();
767
- }
768
- }
769
- else if (check.kind === "jwt") {
770
- if (!isValidJWT(input.data, check.alg)) {
771
- ctx = this._getOrReturnCtx(input, ctx);
772
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
773
- validation: "jwt",
774
- code: ZodError_js_1.ZodIssueCode.invalid_string,
775
- message: check.message,
776
- });
777
- status.dirty();
778
- }
779
- }
780
- else if (check.kind === "cidr") {
781
- if (!isValidCidr(input.data, check.version)) {
782
- ctx = this._getOrReturnCtx(input, ctx);
783
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
784
- validation: "cidr",
785
- code: ZodError_js_1.ZodIssueCode.invalid_string,
786
- message: check.message,
787
- });
788
- status.dirty();
789
- }
790
- }
791
- else if (check.kind === "base64") {
792
- if (!base64Regex.test(input.data)) {
793
- ctx = this._getOrReturnCtx(input, ctx);
794
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
795
- validation: "base64",
796
- code: ZodError_js_1.ZodIssueCode.invalid_string,
797
- message: check.message,
798
- });
799
- status.dirty();
800
- }
801
- }
802
- else if (check.kind === "base64url") {
803
- if (!base64urlRegex.test(input.data)) {
804
- ctx = this._getOrReturnCtx(input, ctx);
805
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
806
- validation: "base64url",
807
- code: ZodError_js_1.ZodIssueCode.invalid_string,
808
- message: check.message,
809
- });
810
- status.dirty();
811
- }
812
- }
813
- else {
814
- util_js_1.util.assertNever(check);
815
- }
816
- }
817
- return { status: status.value, value: input.data };
818
- }
819
- _regex(regex, validation, message) {
820
- return this.refinement((data) => regex.test(data), {
821
- validation,
822
- code: ZodError_js_1.ZodIssueCode.invalid_string,
823
- ...errorUtil_js_1.errorUtil.errToObj(message),
824
- });
825
- }
826
- _addCheck(check) {
827
- return new ZodString({
828
- ...this._def,
829
- checks: [...this._def.checks, check],
830
- });
831
- }
832
- email(message) {
833
- return this._addCheck({ kind: "email", ...errorUtil_js_1.errorUtil.errToObj(message) });
834
- }
835
- url(message) {
836
- return this._addCheck({ kind: "url", ...errorUtil_js_1.errorUtil.errToObj(message) });
837
- }
838
- emoji(message) {
839
- return this._addCheck({ kind: "emoji", ...errorUtil_js_1.errorUtil.errToObj(message) });
840
- }
841
- uuid(message) {
842
- return this._addCheck({ kind: "uuid", ...errorUtil_js_1.errorUtil.errToObj(message) });
843
- }
844
- nanoid(message) {
845
- return this._addCheck({ kind: "nanoid", ...errorUtil_js_1.errorUtil.errToObj(message) });
846
- }
847
- cuid(message) {
848
- return this._addCheck({ kind: "cuid", ...errorUtil_js_1.errorUtil.errToObj(message) });
849
- }
850
- cuid2(message) {
851
- return this._addCheck({ kind: "cuid2", ...errorUtil_js_1.errorUtil.errToObj(message) });
852
- }
853
- ulid(message) {
854
- return this._addCheck({ kind: "ulid", ...errorUtil_js_1.errorUtil.errToObj(message) });
855
- }
856
- base64(message) {
857
- return this._addCheck({ kind: "base64", ...errorUtil_js_1.errorUtil.errToObj(message) });
858
- }
859
- base64url(message) {
860
- // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
861
- return this._addCheck({
862
- kind: "base64url",
863
- ...errorUtil_js_1.errorUtil.errToObj(message),
864
- });
865
- }
866
- jwt(options) {
867
- return this._addCheck({ kind: "jwt", ...errorUtil_js_1.errorUtil.errToObj(options) });
868
- }
869
- ip(options) {
870
- return this._addCheck({ kind: "ip", ...errorUtil_js_1.errorUtil.errToObj(options) });
871
- }
872
- cidr(options) {
873
- return this._addCheck({ kind: "cidr", ...errorUtil_js_1.errorUtil.errToObj(options) });
874
- }
875
- datetime(options) {
876
- if (typeof options === "string") {
877
- return this._addCheck({
878
- kind: "datetime",
879
- precision: null,
880
- offset: false,
881
- local: false,
882
- message: options,
883
- });
884
- }
885
- return this._addCheck({
886
- kind: "datetime",
887
- precision: typeof options?.precision === "undefined" ? null : options?.precision,
888
- offset: options?.offset ?? false,
889
- local: options?.local ?? false,
890
- ...errorUtil_js_1.errorUtil.errToObj(options?.message),
891
- });
892
- }
893
- date(message) {
894
- return this._addCheck({ kind: "date", message });
895
- }
896
- time(options) {
897
- if (typeof options === "string") {
898
- return this._addCheck({
899
- kind: "time",
900
- precision: null,
901
- message: options,
902
- });
903
- }
904
- return this._addCheck({
905
- kind: "time",
906
- precision: typeof options?.precision === "undefined" ? null : options?.precision,
907
- ...errorUtil_js_1.errorUtil.errToObj(options?.message),
908
- });
909
- }
910
- duration(message) {
911
- return this._addCheck({ kind: "duration", ...errorUtil_js_1.errorUtil.errToObj(message) });
912
- }
913
- regex(regex, message) {
914
- return this._addCheck({
915
- kind: "regex",
916
- regex: regex,
917
- ...errorUtil_js_1.errorUtil.errToObj(message),
918
- });
919
- }
920
- includes(value, options) {
921
- return this._addCheck({
922
- kind: "includes",
923
- value: value,
924
- position: options?.position,
925
- ...errorUtil_js_1.errorUtil.errToObj(options?.message),
926
- });
927
- }
928
- startsWith(value, message) {
929
- return this._addCheck({
930
- kind: "startsWith",
931
- value: value,
932
- ...errorUtil_js_1.errorUtil.errToObj(message),
933
- });
934
- }
935
- endsWith(value, message) {
936
- return this._addCheck({
937
- kind: "endsWith",
938
- value: value,
939
- ...errorUtil_js_1.errorUtil.errToObj(message),
940
- });
941
- }
942
- min(minLength, message) {
943
- return this._addCheck({
944
- kind: "min",
945
- value: minLength,
946
- ...errorUtil_js_1.errorUtil.errToObj(message),
947
- });
948
- }
949
- max(maxLength, message) {
950
- return this._addCheck({
951
- kind: "max",
952
- value: maxLength,
953
- ...errorUtil_js_1.errorUtil.errToObj(message),
954
- });
955
- }
956
- length(len, message) {
957
- return this._addCheck({
958
- kind: "length",
959
- value: len,
960
- ...errorUtil_js_1.errorUtil.errToObj(message),
961
- });
962
- }
963
- /**
964
- * Equivalent to `.min(1)`
965
- */
966
- nonempty(message) {
967
- return this.min(1, errorUtil_js_1.errorUtil.errToObj(message));
968
- }
969
- trim() {
970
- return new ZodString({
971
- ...this._def,
972
- checks: [...this._def.checks, { kind: "trim" }],
973
- });
974
- }
975
- toLowerCase() {
976
- return new ZodString({
977
- ...this._def,
978
- checks: [...this._def.checks, { kind: "toLowerCase" }],
979
- });
980
- }
981
- toUpperCase() {
982
- return new ZodString({
983
- ...this._def,
984
- checks: [...this._def.checks, { kind: "toUpperCase" }],
985
- });
986
- }
987
- get isDatetime() {
988
- return !!this._def.checks.find((ch) => ch.kind === "datetime");
989
- }
990
- get isDate() {
991
- return !!this._def.checks.find((ch) => ch.kind === "date");
992
- }
993
- get isTime() {
994
- return !!this._def.checks.find((ch) => ch.kind === "time");
995
- }
996
- get isDuration() {
997
- return !!this._def.checks.find((ch) => ch.kind === "duration");
998
- }
999
- get isEmail() {
1000
- return !!this._def.checks.find((ch) => ch.kind === "email");
1001
- }
1002
- get isURL() {
1003
- return !!this._def.checks.find((ch) => ch.kind === "url");
1004
- }
1005
- get isEmoji() {
1006
- return !!this._def.checks.find((ch) => ch.kind === "emoji");
1007
- }
1008
- get isUUID() {
1009
- return !!this._def.checks.find((ch) => ch.kind === "uuid");
1010
- }
1011
- get isNANOID() {
1012
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
1013
- }
1014
- get isCUID() {
1015
- return !!this._def.checks.find((ch) => ch.kind === "cuid");
1016
- }
1017
- get isCUID2() {
1018
- return !!this._def.checks.find((ch) => ch.kind === "cuid2");
1019
- }
1020
- get isULID() {
1021
- return !!this._def.checks.find((ch) => ch.kind === "ulid");
1022
- }
1023
- get isIP() {
1024
- return !!this._def.checks.find((ch) => ch.kind === "ip");
1025
- }
1026
- get isCIDR() {
1027
- return !!this._def.checks.find((ch) => ch.kind === "cidr");
1028
- }
1029
- get isBase64() {
1030
- return !!this._def.checks.find((ch) => ch.kind === "base64");
1031
- }
1032
- get isBase64url() {
1033
- // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
1034
- return !!this._def.checks.find((ch) => ch.kind === "base64url");
1035
- }
1036
- get minLength() {
1037
- let min = null;
1038
- for (const ch of this._def.checks) {
1039
- if (ch.kind === "min") {
1040
- if (min === null || ch.value > min)
1041
- min = ch.value;
1042
- }
1043
- }
1044
- return min;
1045
- }
1046
- get maxLength() {
1047
- let max = null;
1048
- for (const ch of this._def.checks) {
1049
- if (ch.kind === "max") {
1050
- if (max === null || ch.value < max)
1051
- max = ch.value;
1052
- }
1053
- }
1054
- return max;
1055
- }
1056
- }
1057
- exports.ZodString = ZodString;
1058
- ZodString.create = (params) => {
1059
- return new ZodString({
1060
- checks: [],
1061
- typeName: ZodFirstPartyTypeKind.ZodString,
1062
- coerce: params?.coerce ?? false,
1063
- ...processCreateParams(params),
1064
- });
1065
- };
1066
- // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
1067
- function floatSafeRemainder(val, step) {
1068
- const valDecCount = (val.toString().split(".")[1] || "").length;
1069
- const stepDecCount = (step.toString().split(".")[1] || "").length;
1070
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1071
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1072
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1073
- return (valInt % stepInt) / 10 ** decCount;
1074
- }
1075
- class ZodNumber extends ZodType {
1076
- constructor() {
1077
- super(...arguments);
1078
- this.min = this.gte;
1079
- this.max = this.lte;
1080
- this.step = this.multipleOf;
1081
- }
1082
- _parse(input) {
1083
- if (this._def.coerce) {
1084
- input.data = Number(input.data);
1085
- }
1086
- const parsedType = this._getType(input);
1087
- if (parsedType !== util_js_1.ZodParsedType.number) {
1088
- const ctx = this._getOrReturnCtx(input);
1089
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1090
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1091
- expected: util_js_1.ZodParsedType.number,
1092
- received: ctx.parsedType,
1093
- });
1094
- return parseUtil_js_1.INVALID;
1095
- }
1096
- let ctx = undefined;
1097
- const status = new parseUtil_js_1.ParseStatus();
1098
- for (const check of this._def.checks) {
1099
- if (check.kind === "int") {
1100
- if (!util_js_1.util.isInteger(input.data)) {
1101
- ctx = this._getOrReturnCtx(input, ctx);
1102
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1103
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1104
- expected: "integer",
1105
- received: "float",
1106
- message: check.message,
1107
- });
1108
- status.dirty();
1109
- }
1110
- }
1111
- else if (check.kind === "min") {
1112
- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1113
- if (tooSmall) {
1114
- ctx = this._getOrReturnCtx(input, ctx);
1115
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1116
- code: ZodError_js_1.ZodIssueCode.too_small,
1117
- minimum: check.value,
1118
- type: "number",
1119
- inclusive: check.inclusive,
1120
- exact: false,
1121
- message: check.message,
1122
- });
1123
- status.dirty();
1124
- }
1125
- }
1126
- else if (check.kind === "max") {
1127
- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1128
- if (tooBig) {
1129
- ctx = this._getOrReturnCtx(input, ctx);
1130
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1131
- code: ZodError_js_1.ZodIssueCode.too_big,
1132
- maximum: check.value,
1133
- type: "number",
1134
- inclusive: check.inclusive,
1135
- exact: false,
1136
- message: check.message,
1137
- });
1138
- status.dirty();
1139
- }
1140
- }
1141
- else if (check.kind === "multipleOf") {
1142
- if (floatSafeRemainder(input.data, check.value) !== 0) {
1143
- ctx = this._getOrReturnCtx(input, ctx);
1144
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1145
- code: ZodError_js_1.ZodIssueCode.not_multiple_of,
1146
- multipleOf: check.value,
1147
- message: check.message,
1148
- });
1149
- status.dirty();
1150
- }
1151
- }
1152
- else if (check.kind === "finite") {
1153
- if (!Number.isFinite(input.data)) {
1154
- ctx = this._getOrReturnCtx(input, ctx);
1155
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1156
- code: ZodError_js_1.ZodIssueCode.not_finite,
1157
- message: check.message,
1158
- });
1159
- status.dirty();
1160
- }
1161
- }
1162
- else {
1163
- util_js_1.util.assertNever(check);
1164
- }
1165
- }
1166
- return { status: status.value, value: input.data };
1167
- }
1168
- gte(value, message) {
1169
- return this.setLimit("min", value, true, errorUtil_js_1.errorUtil.toString(message));
1170
- }
1171
- gt(value, message) {
1172
- return this.setLimit("min", value, false, errorUtil_js_1.errorUtil.toString(message));
1173
- }
1174
- lte(value, message) {
1175
- return this.setLimit("max", value, true, errorUtil_js_1.errorUtil.toString(message));
1176
- }
1177
- lt(value, message) {
1178
- return this.setLimit("max", value, false, errorUtil_js_1.errorUtil.toString(message));
1179
- }
1180
- setLimit(kind, value, inclusive, message) {
1181
- return new ZodNumber({
1182
- ...this._def,
1183
- checks: [
1184
- ...this._def.checks,
1185
- {
1186
- kind,
1187
- value,
1188
- inclusive,
1189
- message: errorUtil_js_1.errorUtil.toString(message),
1190
- },
1191
- ],
1192
- });
1193
- }
1194
- _addCheck(check) {
1195
- return new ZodNumber({
1196
- ...this._def,
1197
- checks: [...this._def.checks, check],
1198
- });
1199
- }
1200
- int(message) {
1201
- return this._addCheck({
1202
- kind: "int",
1203
- message: errorUtil_js_1.errorUtil.toString(message),
1204
- });
1205
- }
1206
- positive(message) {
1207
- return this._addCheck({
1208
- kind: "min",
1209
- value: 0,
1210
- inclusive: false,
1211
- message: errorUtil_js_1.errorUtil.toString(message),
1212
- });
1213
- }
1214
- negative(message) {
1215
- return this._addCheck({
1216
- kind: "max",
1217
- value: 0,
1218
- inclusive: false,
1219
- message: errorUtil_js_1.errorUtil.toString(message),
1220
- });
1221
- }
1222
- nonpositive(message) {
1223
- return this._addCheck({
1224
- kind: "max",
1225
- value: 0,
1226
- inclusive: true,
1227
- message: errorUtil_js_1.errorUtil.toString(message),
1228
- });
1229
- }
1230
- nonnegative(message) {
1231
- return this._addCheck({
1232
- kind: "min",
1233
- value: 0,
1234
- inclusive: true,
1235
- message: errorUtil_js_1.errorUtil.toString(message),
1236
- });
1237
- }
1238
- multipleOf(value, message) {
1239
- return this._addCheck({
1240
- kind: "multipleOf",
1241
- value: value,
1242
- message: errorUtil_js_1.errorUtil.toString(message),
1243
- });
1244
- }
1245
- finite(message) {
1246
- return this._addCheck({
1247
- kind: "finite",
1248
- message: errorUtil_js_1.errorUtil.toString(message),
1249
- });
1250
- }
1251
- safe(message) {
1252
- return this._addCheck({
1253
- kind: "min",
1254
- inclusive: true,
1255
- value: Number.MIN_SAFE_INTEGER,
1256
- message: errorUtil_js_1.errorUtil.toString(message),
1257
- })._addCheck({
1258
- kind: "max",
1259
- inclusive: true,
1260
- value: Number.MAX_SAFE_INTEGER,
1261
- message: errorUtil_js_1.errorUtil.toString(message),
1262
- });
1263
- }
1264
- get minValue() {
1265
- let min = null;
1266
- for (const ch of this._def.checks) {
1267
- if (ch.kind === "min") {
1268
- if (min === null || ch.value > min)
1269
- min = ch.value;
1270
- }
1271
- }
1272
- return min;
1273
- }
1274
- get maxValue() {
1275
- let max = null;
1276
- for (const ch of this._def.checks) {
1277
- if (ch.kind === "max") {
1278
- if (max === null || ch.value < max)
1279
- max = ch.value;
1280
- }
1281
- }
1282
- return max;
1283
- }
1284
- get isInt() {
1285
- return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util_js_1.util.isInteger(ch.value)));
1286
- }
1287
- get isFinite() {
1288
- let max = null;
1289
- let min = null;
1290
- for (const ch of this._def.checks) {
1291
- if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
1292
- return true;
1293
- }
1294
- else if (ch.kind === "min") {
1295
- if (min === null || ch.value > min)
1296
- min = ch.value;
1297
- }
1298
- else if (ch.kind === "max") {
1299
- if (max === null || ch.value < max)
1300
- max = ch.value;
1301
- }
1302
- }
1303
- return Number.isFinite(min) && Number.isFinite(max);
1304
- }
1305
- }
1306
- exports.ZodNumber = ZodNumber;
1307
- ZodNumber.create = (params) => {
1308
- return new ZodNumber({
1309
- checks: [],
1310
- typeName: ZodFirstPartyTypeKind.ZodNumber,
1311
- coerce: params?.coerce || false,
1312
- ...processCreateParams(params),
1313
- });
1314
- };
1315
- class ZodBigInt extends ZodType {
1316
- constructor() {
1317
- super(...arguments);
1318
- this.min = this.gte;
1319
- this.max = this.lte;
1320
- }
1321
- _parse(input) {
1322
- if (this._def.coerce) {
1323
- try {
1324
- input.data = BigInt(input.data);
1325
- }
1326
- catch {
1327
- return this._getInvalidInput(input);
1328
- }
1329
- }
1330
- const parsedType = this._getType(input);
1331
- if (parsedType !== util_js_1.ZodParsedType.bigint) {
1332
- return this._getInvalidInput(input);
1333
- }
1334
- let ctx = undefined;
1335
- const status = new parseUtil_js_1.ParseStatus();
1336
- for (const check of this._def.checks) {
1337
- if (check.kind === "min") {
1338
- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1339
- if (tooSmall) {
1340
- ctx = this._getOrReturnCtx(input, ctx);
1341
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1342
- code: ZodError_js_1.ZodIssueCode.too_small,
1343
- type: "bigint",
1344
- minimum: check.value,
1345
- inclusive: check.inclusive,
1346
- message: check.message,
1347
- });
1348
- status.dirty();
1349
- }
1350
- }
1351
- else if (check.kind === "max") {
1352
- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1353
- if (tooBig) {
1354
- ctx = this._getOrReturnCtx(input, ctx);
1355
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1356
- code: ZodError_js_1.ZodIssueCode.too_big,
1357
- type: "bigint",
1358
- maximum: check.value,
1359
- inclusive: check.inclusive,
1360
- message: check.message,
1361
- });
1362
- status.dirty();
1363
- }
1364
- }
1365
- else if (check.kind === "multipleOf") {
1366
- if (input.data % check.value !== BigInt(0)) {
1367
- ctx = this._getOrReturnCtx(input, ctx);
1368
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1369
- code: ZodError_js_1.ZodIssueCode.not_multiple_of,
1370
- multipleOf: check.value,
1371
- message: check.message,
1372
- });
1373
- status.dirty();
1374
- }
1375
- }
1376
- else {
1377
- util_js_1.util.assertNever(check);
1378
- }
1379
- }
1380
- return { status: status.value, value: input.data };
1381
- }
1382
- _getInvalidInput(input) {
1383
- const ctx = this._getOrReturnCtx(input);
1384
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1385
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1386
- expected: util_js_1.ZodParsedType.bigint,
1387
- received: ctx.parsedType,
1388
- });
1389
- return parseUtil_js_1.INVALID;
1390
- }
1391
- gte(value, message) {
1392
- return this.setLimit("min", value, true, errorUtil_js_1.errorUtil.toString(message));
1393
- }
1394
- gt(value, message) {
1395
- return this.setLimit("min", value, false, errorUtil_js_1.errorUtil.toString(message));
1396
- }
1397
- lte(value, message) {
1398
- return this.setLimit("max", value, true, errorUtil_js_1.errorUtil.toString(message));
1399
- }
1400
- lt(value, message) {
1401
- return this.setLimit("max", value, false, errorUtil_js_1.errorUtil.toString(message));
1402
- }
1403
- setLimit(kind, value, inclusive, message) {
1404
- return new ZodBigInt({
1405
- ...this._def,
1406
- checks: [
1407
- ...this._def.checks,
1408
- {
1409
- kind,
1410
- value,
1411
- inclusive,
1412
- message: errorUtil_js_1.errorUtil.toString(message),
1413
- },
1414
- ],
1415
- });
1416
- }
1417
- _addCheck(check) {
1418
- return new ZodBigInt({
1419
- ...this._def,
1420
- checks: [...this._def.checks, check],
1421
- });
1422
- }
1423
- positive(message) {
1424
- return this._addCheck({
1425
- kind: "min",
1426
- value: BigInt(0),
1427
- inclusive: false,
1428
- message: errorUtil_js_1.errorUtil.toString(message),
1429
- });
1430
- }
1431
- negative(message) {
1432
- return this._addCheck({
1433
- kind: "max",
1434
- value: BigInt(0),
1435
- inclusive: false,
1436
- message: errorUtil_js_1.errorUtil.toString(message),
1437
- });
1438
- }
1439
- nonpositive(message) {
1440
- return this._addCheck({
1441
- kind: "max",
1442
- value: BigInt(0),
1443
- inclusive: true,
1444
- message: errorUtil_js_1.errorUtil.toString(message),
1445
- });
1446
- }
1447
- nonnegative(message) {
1448
- return this._addCheck({
1449
- kind: "min",
1450
- value: BigInt(0),
1451
- inclusive: true,
1452
- message: errorUtil_js_1.errorUtil.toString(message),
1453
- });
1454
- }
1455
- multipleOf(value, message) {
1456
- return this._addCheck({
1457
- kind: "multipleOf",
1458
- value,
1459
- message: errorUtil_js_1.errorUtil.toString(message),
1460
- });
1461
- }
1462
- get minValue() {
1463
- let min = null;
1464
- for (const ch of this._def.checks) {
1465
- if (ch.kind === "min") {
1466
- if (min === null || ch.value > min)
1467
- min = ch.value;
1468
- }
1469
- }
1470
- return min;
1471
- }
1472
- get maxValue() {
1473
- let max = null;
1474
- for (const ch of this._def.checks) {
1475
- if (ch.kind === "max") {
1476
- if (max === null || ch.value < max)
1477
- max = ch.value;
1478
- }
1479
- }
1480
- return max;
1481
- }
1482
- }
1483
- exports.ZodBigInt = ZodBigInt;
1484
- ZodBigInt.create = (params) => {
1485
- return new ZodBigInt({
1486
- checks: [],
1487
- typeName: ZodFirstPartyTypeKind.ZodBigInt,
1488
- coerce: params?.coerce ?? false,
1489
- ...processCreateParams(params),
1490
- });
1491
- };
1492
- class ZodBoolean extends ZodType {
1493
- _parse(input) {
1494
- if (this._def.coerce) {
1495
- input.data = Boolean(input.data);
1496
- }
1497
- const parsedType = this._getType(input);
1498
- if (parsedType !== util_js_1.ZodParsedType.boolean) {
1499
- const ctx = this._getOrReturnCtx(input);
1500
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1501
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1502
- expected: util_js_1.ZodParsedType.boolean,
1503
- received: ctx.parsedType,
1504
- });
1505
- return parseUtil_js_1.INVALID;
1506
- }
1507
- return (0, parseUtil_js_1.OK)(input.data);
1508
- }
1509
- }
1510
- exports.ZodBoolean = ZodBoolean;
1511
- ZodBoolean.create = (params) => {
1512
- return new ZodBoolean({
1513
- typeName: ZodFirstPartyTypeKind.ZodBoolean,
1514
- coerce: params?.coerce || false,
1515
- ...processCreateParams(params),
1516
- });
1517
- };
1518
- class ZodDate extends ZodType {
1519
- _parse(input) {
1520
- if (this._def.coerce) {
1521
- input.data = new Date(input.data);
1522
- }
1523
- const parsedType = this._getType(input);
1524
- if (parsedType !== util_js_1.ZodParsedType.date) {
1525
- const ctx = this._getOrReturnCtx(input);
1526
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1527
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1528
- expected: util_js_1.ZodParsedType.date,
1529
- received: ctx.parsedType,
1530
- });
1531
- return parseUtil_js_1.INVALID;
1532
- }
1533
- if (Number.isNaN(input.data.getTime())) {
1534
- const ctx = this._getOrReturnCtx(input);
1535
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1536
- code: ZodError_js_1.ZodIssueCode.invalid_date,
1537
- });
1538
- return parseUtil_js_1.INVALID;
1539
- }
1540
- const status = new parseUtil_js_1.ParseStatus();
1541
- let ctx = undefined;
1542
- for (const check of this._def.checks) {
1543
- if (check.kind === "min") {
1544
- if (input.data.getTime() < check.value) {
1545
- ctx = this._getOrReturnCtx(input, ctx);
1546
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1547
- code: ZodError_js_1.ZodIssueCode.too_small,
1548
- message: check.message,
1549
- inclusive: true,
1550
- exact: false,
1551
- minimum: check.value,
1552
- type: "date",
1553
- });
1554
- status.dirty();
1555
- }
1556
- }
1557
- else if (check.kind === "max") {
1558
- if (input.data.getTime() > check.value) {
1559
- ctx = this._getOrReturnCtx(input, ctx);
1560
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1561
- code: ZodError_js_1.ZodIssueCode.too_big,
1562
- message: check.message,
1563
- inclusive: true,
1564
- exact: false,
1565
- maximum: check.value,
1566
- type: "date",
1567
- });
1568
- status.dirty();
1569
- }
1570
- }
1571
- else {
1572
- util_js_1.util.assertNever(check);
1573
- }
1574
- }
1575
- return {
1576
- status: status.value,
1577
- value: new Date(input.data.getTime()),
1578
- };
1579
- }
1580
- _addCheck(check) {
1581
- return new ZodDate({
1582
- ...this._def,
1583
- checks: [...this._def.checks, check],
1584
- });
1585
- }
1586
- min(minDate, message) {
1587
- return this._addCheck({
1588
- kind: "min",
1589
- value: minDate.getTime(),
1590
- message: errorUtil_js_1.errorUtil.toString(message),
1591
- });
1592
- }
1593
- max(maxDate, message) {
1594
- return this._addCheck({
1595
- kind: "max",
1596
- value: maxDate.getTime(),
1597
- message: errorUtil_js_1.errorUtil.toString(message),
1598
- });
1599
- }
1600
- get minDate() {
1601
- let min = null;
1602
- for (const ch of this._def.checks) {
1603
- if (ch.kind === "min") {
1604
- if (min === null || ch.value > min)
1605
- min = ch.value;
1606
- }
1607
- }
1608
- return min != null ? new Date(min) : null;
1609
- }
1610
- get maxDate() {
1611
- let max = null;
1612
- for (const ch of this._def.checks) {
1613
- if (ch.kind === "max") {
1614
- if (max === null || ch.value < max)
1615
- max = ch.value;
1616
- }
1617
- }
1618
- return max != null ? new Date(max) : null;
1619
- }
1620
- }
1621
- exports.ZodDate = ZodDate;
1622
- ZodDate.create = (params) => {
1623
- return new ZodDate({
1624
- checks: [],
1625
- coerce: params?.coerce || false,
1626
- typeName: ZodFirstPartyTypeKind.ZodDate,
1627
- ...processCreateParams(params),
1628
- });
1629
- };
1630
- class ZodSymbol extends ZodType {
1631
- _parse(input) {
1632
- const parsedType = this._getType(input);
1633
- if (parsedType !== util_js_1.ZodParsedType.symbol) {
1634
- const ctx = this._getOrReturnCtx(input);
1635
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1636
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1637
- expected: util_js_1.ZodParsedType.symbol,
1638
- received: ctx.parsedType,
1639
- });
1640
- return parseUtil_js_1.INVALID;
1641
- }
1642
- return (0, parseUtil_js_1.OK)(input.data);
1643
- }
1644
- }
1645
- exports.ZodSymbol = ZodSymbol;
1646
- ZodSymbol.create = (params) => {
1647
- return new ZodSymbol({
1648
- typeName: ZodFirstPartyTypeKind.ZodSymbol,
1649
- ...processCreateParams(params),
1650
- });
1651
- };
1652
- class ZodUndefined extends ZodType {
1653
- _parse(input) {
1654
- const parsedType = this._getType(input);
1655
- if (parsedType !== util_js_1.ZodParsedType.undefined) {
1656
- const ctx = this._getOrReturnCtx(input);
1657
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1658
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1659
- expected: util_js_1.ZodParsedType.undefined,
1660
- received: ctx.parsedType,
1661
- });
1662
- return parseUtil_js_1.INVALID;
1663
- }
1664
- return (0, parseUtil_js_1.OK)(input.data);
1665
- }
1666
- }
1667
- exports.ZodUndefined = ZodUndefined;
1668
- ZodUndefined.create = (params) => {
1669
- return new ZodUndefined({
1670
- typeName: ZodFirstPartyTypeKind.ZodUndefined,
1671
- ...processCreateParams(params),
1672
- });
1673
- };
1674
- class ZodNull extends ZodType {
1675
- _parse(input) {
1676
- const parsedType = this._getType(input);
1677
- if (parsedType !== util_js_1.ZodParsedType.null) {
1678
- const ctx = this._getOrReturnCtx(input);
1679
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1680
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1681
- expected: util_js_1.ZodParsedType.null,
1682
- received: ctx.parsedType,
1683
- });
1684
- return parseUtil_js_1.INVALID;
1685
- }
1686
- return (0, parseUtil_js_1.OK)(input.data);
1687
- }
1688
- }
1689
- exports.ZodNull = ZodNull;
1690
- ZodNull.create = (params) => {
1691
- return new ZodNull({
1692
- typeName: ZodFirstPartyTypeKind.ZodNull,
1693
- ...processCreateParams(params),
1694
- });
1695
- };
1696
- class ZodAny extends ZodType {
1697
- constructor() {
1698
- super(...arguments);
1699
- // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
1700
- this._any = true;
1701
- }
1702
- _parse(input) {
1703
- return (0, parseUtil_js_1.OK)(input.data);
1704
- }
1705
- }
1706
- exports.ZodAny = ZodAny;
1707
- ZodAny.create = (params) => {
1708
- return new ZodAny({
1709
- typeName: ZodFirstPartyTypeKind.ZodAny,
1710
- ...processCreateParams(params),
1711
- });
1712
- };
1713
- class ZodUnknown extends ZodType {
1714
- constructor() {
1715
- super(...arguments);
1716
- // required
1717
- this._unknown = true;
1718
- }
1719
- _parse(input) {
1720
- return (0, parseUtil_js_1.OK)(input.data);
1721
- }
1722
- }
1723
- exports.ZodUnknown = ZodUnknown;
1724
- ZodUnknown.create = (params) => {
1725
- return new ZodUnknown({
1726
- typeName: ZodFirstPartyTypeKind.ZodUnknown,
1727
- ...processCreateParams(params),
1728
- });
1729
- };
1730
- class ZodNever extends ZodType {
1731
- _parse(input) {
1732
- const ctx = this._getOrReturnCtx(input);
1733
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1734
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1735
- expected: util_js_1.ZodParsedType.never,
1736
- received: ctx.parsedType,
1737
- });
1738
- return parseUtil_js_1.INVALID;
1739
- }
1740
- }
1741
- exports.ZodNever = ZodNever;
1742
- ZodNever.create = (params) => {
1743
- return new ZodNever({
1744
- typeName: ZodFirstPartyTypeKind.ZodNever,
1745
- ...processCreateParams(params),
1746
- });
1747
- };
1748
- class ZodVoid extends ZodType {
1749
- _parse(input) {
1750
- const parsedType = this._getType(input);
1751
- if (parsedType !== util_js_1.ZodParsedType.undefined) {
1752
- const ctx = this._getOrReturnCtx(input);
1753
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1754
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1755
- expected: util_js_1.ZodParsedType.void,
1756
- received: ctx.parsedType,
1757
- });
1758
- return parseUtil_js_1.INVALID;
1759
- }
1760
- return (0, parseUtil_js_1.OK)(input.data);
1761
- }
1762
- }
1763
- exports.ZodVoid = ZodVoid;
1764
- ZodVoid.create = (params) => {
1765
- return new ZodVoid({
1766
- typeName: ZodFirstPartyTypeKind.ZodVoid,
1767
- ...processCreateParams(params),
1768
- });
1769
- };
1770
- class ZodArray extends ZodType {
1771
- _parse(input) {
1772
- const { ctx, status } = this._processInputParams(input);
1773
- const def = this._def;
1774
- if (ctx.parsedType !== util_js_1.ZodParsedType.array) {
1775
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1776
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1777
- expected: util_js_1.ZodParsedType.array,
1778
- received: ctx.parsedType,
1779
- });
1780
- return parseUtil_js_1.INVALID;
1781
- }
1782
- if (def.exactLength !== null) {
1783
- const tooBig = ctx.data.length > def.exactLength.value;
1784
- const tooSmall = ctx.data.length < def.exactLength.value;
1785
- if (tooBig || tooSmall) {
1786
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1787
- code: tooBig ? ZodError_js_1.ZodIssueCode.too_big : ZodError_js_1.ZodIssueCode.too_small,
1788
- minimum: (tooSmall ? def.exactLength.value : undefined),
1789
- maximum: (tooBig ? def.exactLength.value : undefined),
1790
- type: "array",
1791
- inclusive: true,
1792
- exact: true,
1793
- message: def.exactLength.message,
1794
- });
1795
- status.dirty();
1796
- }
1797
- }
1798
- if (def.minLength !== null) {
1799
- if (ctx.data.length < def.minLength.value) {
1800
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1801
- code: ZodError_js_1.ZodIssueCode.too_small,
1802
- minimum: def.minLength.value,
1803
- type: "array",
1804
- inclusive: true,
1805
- exact: false,
1806
- message: def.minLength.message,
1807
- });
1808
- status.dirty();
1809
- }
1810
- }
1811
- if (def.maxLength !== null) {
1812
- if (ctx.data.length > def.maxLength.value) {
1813
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1814
- code: ZodError_js_1.ZodIssueCode.too_big,
1815
- maximum: def.maxLength.value,
1816
- type: "array",
1817
- inclusive: true,
1818
- exact: false,
1819
- message: def.maxLength.message,
1820
- });
1821
- status.dirty();
1822
- }
1823
- }
1824
- if (ctx.common.async) {
1825
- return Promise.all([...ctx.data].map((item, i) => {
1826
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1827
- })).then((result) => {
1828
- return parseUtil_js_1.ParseStatus.mergeArray(status, result);
1829
- });
1830
- }
1831
- const result = [...ctx.data].map((item, i) => {
1832
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1833
- });
1834
- return parseUtil_js_1.ParseStatus.mergeArray(status, result);
1835
- }
1836
- get element() {
1837
- return this._def.type;
1838
- }
1839
- min(minLength, message) {
1840
- return new ZodArray({
1841
- ...this._def,
1842
- minLength: { value: minLength, message: errorUtil_js_1.errorUtil.toString(message) },
1843
- });
1844
- }
1845
- max(maxLength, message) {
1846
- return new ZodArray({
1847
- ...this._def,
1848
- maxLength: { value: maxLength, message: errorUtil_js_1.errorUtil.toString(message) },
1849
- });
1850
- }
1851
- length(len, message) {
1852
- return new ZodArray({
1853
- ...this._def,
1854
- exactLength: { value: len, message: errorUtil_js_1.errorUtil.toString(message) },
1855
- });
1856
- }
1857
- nonempty(message) {
1858
- return this.min(1, message);
1859
- }
1860
- }
1861
- exports.ZodArray = ZodArray;
1862
- ZodArray.create = (schema, params) => {
1863
- return new ZodArray({
1864
- type: schema,
1865
- minLength: null,
1866
- maxLength: null,
1867
- exactLength: null,
1868
- typeName: ZodFirstPartyTypeKind.ZodArray,
1869
- ...processCreateParams(params),
1870
- });
1871
- };
1872
- function deepPartialify(schema) {
1873
- if (schema instanceof ZodObject) {
1874
- const newShape = {};
1875
- for (const key in schema.shape) {
1876
- const fieldSchema = schema.shape[key];
1877
- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
1878
- }
1879
- return new ZodObject({
1880
- ...schema._def,
1881
- shape: () => newShape,
1882
- });
1883
- }
1884
- else if (schema instanceof ZodArray) {
1885
- return new ZodArray({
1886
- ...schema._def,
1887
- type: deepPartialify(schema.element),
1888
- });
1889
- }
1890
- else if (schema instanceof ZodOptional) {
1891
- return ZodOptional.create(deepPartialify(schema.unwrap()));
1892
- }
1893
- else if (schema instanceof ZodNullable) {
1894
- return ZodNullable.create(deepPartialify(schema.unwrap()));
1895
- }
1896
- else if (schema instanceof ZodTuple) {
1897
- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
1898
- }
1899
- else {
1900
- return schema;
1901
- }
1902
- }
1903
- class ZodObject extends ZodType {
1904
- constructor() {
1905
- super(...arguments);
1906
- this._cached = null;
1907
- /**
1908
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1909
- * If you want to pass through unknown properties, use `.passthrough()` instead.
1910
- */
1911
- this.nonstrict = this.passthrough;
1912
- // extend<
1913
- // Augmentation extends ZodRawShape,
1914
- // NewOutput extends util.flatten<{
1915
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1916
- // ? Augmentation[k]["_output"]
1917
- // : k extends keyof Output
1918
- // ? Output[k]
1919
- // : never;
1920
- // }>,
1921
- // NewInput extends util.flatten<{
1922
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1923
- // ? Augmentation[k]["_input"]
1924
- // : k extends keyof Input
1925
- // ? Input[k]
1926
- // : never;
1927
- // }>
1928
- // >(
1929
- // augmentation: Augmentation
1930
- // ): ZodObject<
1931
- // extendShape<T, Augmentation>,
1932
- // UnknownKeys,
1933
- // Catchall,
1934
- // NewOutput,
1935
- // NewInput
1936
- // > {
1937
- // return new ZodObject({
1938
- // ...this._def,
1939
- // shape: () => ({
1940
- // ...this._def.shape(),
1941
- // ...augmentation,
1942
- // }),
1943
- // }) as any;
1944
- // }
1945
- /**
1946
- * @deprecated Use `.extend` instead
1947
- * */
1948
- this.augment = this.extend;
1949
- }
1950
- _getCached() {
1951
- if (this._cached !== null)
1952
- return this._cached;
1953
- const shape = this._def.shape();
1954
- const keys = util_js_1.util.objectKeys(shape);
1955
- this._cached = { shape, keys };
1956
- return this._cached;
1957
- }
1958
- _parse(input) {
1959
- const parsedType = this._getType(input);
1960
- if (parsedType !== util_js_1.ZodParsedType.object) {
1961
- const ctx = this._getOrReturnCtx(input);
1962
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1963
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1964
- expected: util_js_1.ZodParsedType.object,
1965
- received: ctx.parsedType,
1966
- });
1967
- return parseUtil_js_1.INVALID;
1968
- }
1969
- const { status, ctx } = this._processInputParams(input);
1970
- const { shape, keys: shapeKeys } = this._getCached();
1971
- const extraKeys = [];
1972
- if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
1973
- for (const key in ctx.data) {
1974
- if (!shapeKeys.includes(key)) {
1975
- extraKeys.push(key);
1976
- }
1977
- }
1978
- }
1979
- const pairs = [];
1980
- for (const key of shapeKeys) {
1981
- const keyValidator = shape[key];
1982
- const value = ctx.data[key];
1983
- pairs.push({
1984
- key: { status: "valid", value: key },
1985
- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1986
- alwaysSet: key in ctx.data,
1987
- });
1988
- }
1989
- if (this._def.catchall instanceof ZodNever) {
1990
- const unknownKeys = this._def.unknownKeys;
1991
- if (unknownKeys === "passthrough") {
1992
- for (const key of extraKeys) {
1993
- pairs.push({
1994
- key: { status: "valid", value: key },
1995
- value: { status: "valid", value: ctx.data[key] },
1996
- });
1997
- }
1998
- }
1999
- else if (unknownKeys === "strict") {
2000
- if (extraKeys.length > 0) {
2001
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2002
- code: ZodError_js_1.ZodIssueCode.unrecognized_keys,
2003
- keys: extraKeys,
2004
- });
2005
- status.dirty();
2006
- }
2007
- }
2008
- else if (unknownKeys === "strip") {
2009
- }
2010
- else {
2011
- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2012
- }
2013
- }
2014
- else {
2015
- // run catchall validation
2016
- const catchall = this._def.catchall;
2017
- for (const key of extraKeys) {
2018
- const value = ctx.data[key];
2019
- pairs.push({
2020
- key: { status: "valid", value: key },
2021
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
2022
- ),
2023
- alwaysSet: key in ctx.data,
2024
- });
2025
- }
2026
- }
2027
- if (ctx.common.async) {
2028
- return Promise.resolve()
2029
- .then(async () => {
2030
- const syncPairs = [];
2031
- for (const pair of pairs) {
2032
- const key = await pair.key;
2033
- const value = await pair.value;
2034
- syncPairs.push({
2035
- key,
2036
- value,
2037
- alwaysSet: pair.alwaysSet,
2038
- });
2039
- }
2040
- return syncPairs;
2041
- })
2042
- .then((syncPairs) => {
2043
- return parseUtil_js_1.ParseStatus.mergeObjectSync(status, syncPairs);
2044
- });
2045
- }
2046
- else {
2047
- return parseUtil_js_1.ParseStatus.mergeObjectSync(status, pairs);
2048
- }
2049
- }
2050
- get shape() {
2051
- return this._def.shape();
2052
- }
2053
- strict(message) {
2054
- errorUtil_js_1.errorUtil.errToObj;
2055
- return new ZodObject({
2056
- ...this._def,
2057
- unknownKeys: "strict",
2058
- ...(message !== undefined
2059
- ? {
2060
- errorMap: (issue, ctx) => {
2061
- const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
2062
- if (issue.code === "unrecognized_keys")
2063
- return {
2064
- message: errorUtil_js_1.errorUtil.errToObj(message).message ?? defaultError,
2065
- };
2066
- return {
2067
- message: defaultError,
2068
- };
2069
- },
2070
- }
2071
- : {}),
2072
- });
2073
- }
2074
- strip() {
2075
- return new ZodObject({
2076
- ...this._def,
2077
- unknownKeys: "strip",
2078
- });
2079
- }
2080
- passthrough() {
2081
- return new ZodObject({
2082
- ...this._def,
2083
- unknownKeys: "passthrough",
2084
- });
2085
- }
2086
- // const AugmentFactory =
2087
- // <Def extends ZodObjectDef>(def: Def) =>
2088
- // <Augmentation extends ZodRawShape>(
2089
- // augmentation: Augmentation
2090
- // ): ZodObject<
2091
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2092
- // Def["unknownKeys"],
2093
- // Def["catchall"]
2094
- // > => {
2095
- // return new ZodObject({
2096
- // ...def,
2097
- // shape: () => ({
2098
- // ...def.shape(),
2099
- // ...augmentation,
2100
- // }),
2101
- // }) as any;
2102
- // };
2103
- extend(augmentation) {
2104
- return new ZodObject({
2105
- ...this._def,
2106
- shape: () => ({
2107
- ...this._def.shape(),
2108
- ...augmentation,
2109
- }),
2110
- });
2111
- }
2112
- /**
2113
- * Prior to zod@1.0.12 there was a bug in the
2114
- * inferred type of merged objects. Please
2115
- * upgrade if you are experiencing issues.
2116
- */
2117
- merge(merging) {
2118
- const merged = new ZodObject({
2119
- unknownKeys: merging._def.unknownKeys,
2120
- catchall: merging._def.catchall,
2121
- shape: () => ({
2122
- ...this._def.shape(),
2123
- ...merging._def.shape(),
2124
- }),
2125
- typeName: ZodFirstPartyTypeKind.ZodObject,
2126
- });
2127
- return merged;
2128
- }
2129
- // merge<
2130
- // Incoming extends AnyZodObject,
2131
- // Augmentation extends Incoming["shape"],
2132
- // NewOutput extends {
2133
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2134
- // ? Augmentation[k]["_output"]
2135
- // : k extends keyof Output
2136
- // ? Output[k]
2137
- // : never;
2138
- // },
2139
- // NewInput extends {
2140
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2141
- // ? Augmentation[k]["_input"]
2142
- // : k extends keyof Input
2143
- // ? Input[k]
2144
- // : never;
2145
- // }
2146
- // >(
2147
- // merging: Incoming
2148
- // ): ZodObject<
2149
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2150
- // Incoming["_def"]["unknownKeys"],
2151
- // Incoming["_def"]["catchall"],
2152
- // NewOutput,
2153
- // NewInput
2154
- // > {
2155
- // const merged: any = new ZodObject({
2156
- // unknownKeys: merging._def.unknownKeys,
2157
- // catchall: merging._def.catchall,
2158
- // shape: () =>
2159
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2160
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2161
- // }) as any;
2162
- // return merged;
2163
- // }
2164
- setKey(key, schema) {
2165
- return this.augment({ [key]: schema });
2166
- }
2167
- // merge<Incoming extends AnyZodObject>(
2168
- // merging: Incoming
2169
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2170
- // ZodObject<
2171
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2172
- // Incoming["_def"]["unknownKeys"],
2173
- // Incoming["_def"]["catchall"]
2174
- // > {
2175
- // // const mergedShape = objectUtil.mergeShapes(
2176
- // // this._def.shape(),
2177
- // // merging._def.shape()
2178
- // // );
2179
- // const merged: any = new ZodObject({
2180
- // unknownKeys: merging._def.unknownKeys,
2181
- // catchall: merging._def.catchall,
2182
- // shape: () =>
2183
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2184
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2185
- // }) as any;
2186
- // return merged;
2187
- // }
2188
- catchall(index) {
2189
- return new ZodObject({
2190
- ...this._def,
2191
- catchall: index,
2192
- });
2193
- }
2194
- pick(mask) {
2195
- const shape = {};
2196
- for (const key of util_js_1.util.objectKeys(mask)) {
2197
- if (mask[key] && this.shape[key]) {
2198
- shape[key] = this.shape[key];
2199
- }
2200
- }
2201
- return new ZodObject({
2202
- ...this._def,
2203
- shape: () => shape,
2204
- });
2205
- }
2206
- omit(mask) {
2207
- const shape = {};
2208
- for (const key of util_js_1.util.objectKeys(this.shape)) {
2209
- if (!mask[key]) {
2210
- shape[key] = this.shape[key];
2211
- }
2212
- }
2213
- return new ZodObject({
2214
- ...this._def,
2215
- shape: () => shape,
2216
- });
2217
- }
2218
- /**
2219
- * @deprecated
2220
- */
2221
- deepPartial() {
2222
- return deepPartialify(this);
2223
- }
2224
- partial(mask) {
2225
- const newShape = {};
2226
- for (const key of util_js_1.util.objectKeys(this.shape)) {
2227
- const fieldSchema = this.shape[key];
2228
- if (mask && !mask[key]) {
2229
- newShape[key] = fieldSchema;
2230
- }
2231
- else {
2232
- newShape[key] = fieldSchema.optional();
2233
- }
2234
- }
2235
- return new ZodObject({
2236
- ...this._def,
2237
- shape: () => newShape,
2238
- });
2239
- }
2240
- required(mask) {
2241
- const newShape = {};
2242
- for (const key of util_js_1.util.objectKeys(this.shape)) {
2243
- if (mask && !mask[key]) {
2244
- newShape[key] = this.shape[key];
2245
- }
2246
- else {
2247
- const fieldSchema = this.shape[key];
2248
- let newField = fieldSchema;
2249
- while (newField instanceof ZodOptional) {
2250
- newField = newField._def.innerType;
2251
- }
2252
- newShape[key] = newField;
2253
- }
2254
- }
2255
- return new ZodObject({
2256
- ...this._def,
2257
- shape: () => newShape,
2258
- });
2259
- }
2260
- keyof() {
2261
- return createZodEnum(util_js_1.util.objectKeys(this.shape));
2262
- }
2263
- }
2264
- exports.ZodObject = ZodObject;
2265
- ZodObject.create = (shape, params) => {
2266
- return new ZodObject({
2267
- shape: () => shape,
2268
- unknownKeys: "strip",
2269
- catchall: ZodNever.create(),
2270
- typeName: ZodFirstPartyTypeKind.ZodObject,
2271
- ...processCreateParams(params),
2272
- });
2273
- };
2274
- ZodObject.strictCreate = (shape, params) => {
2275
- return new ZodObject({
2276
- shape: () => shape,
2277
- unknownKeys: "strict",
2278
- catchall: ZodNever.create(),
2279
- typeName: ZodFirstPartyTypeKind.ZodObject,
2280
- ...processCreateParams(params),
2281
- });
2282
- };
2283
- ZodObject.lazycreate = (shape, params) => {
2284
- return new ZodObject({
2285
- shape,
2286
- unknownKeys: "strip",
2287
- catchall: ZodNever.create(),
2288
- typeName: ZodFirstPartyTypeKind.ZodObject,
2289
- ...processCreateParams(params),
2290
- });
2291
- };
2292
- class ZodUnion extends ZodType {
2293
- _parse(input) {
2294
- const { ctx } = this._processInputParams(input);
2295
- const options = this._def.options;
2296
- function handleResults(results) {
2297
- // return first issue-free validation if it exists
2298
- for (const result of results) {
2299
- if (result.result.status === "valid") {
2300
- return result.result;
2301
- }
2302
- }
2303
- for (const result of results) {
2304
- if (result.result.status === "dirty") {
2305
- // add issues from dirty option
2306
- ctx.common.issues.push(...result.ctx.common.issues);
2307
- return result.result;
2308
- }
2309
- }
2310
- // return invalid
2311
- const unionErrors = results.map((result) => new ZodError_js_1.ZodError(result.ctx.common.issues));
2312
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2313
- code: ZodError_js_1.ZodIssueCode.invalid_union,
2314
- unionErrors,
2315
- });
2316
- return parseUtil_js_1.INVALID;
2317
- }
2318
- if (ctx.common.async) {
2319
- return Promise.all(options.map(async (option) => {
2320
- const childCtx = {
2321
- ...ctx,
2322
- common: {
2323
- ...ctx.common,
2324
- issues: [],
2325
- },
2326
- parent: null,
2327
- };
2328
- return {
2329
- result: await option._parseAsync({
2330
- data: ctx.data,
2331
- path: ctx.path,
2332
- parent: childCtx,
2333
- }),
2334
- ctx: childCtx,
2335
- };
2336
- })).then(handleResults);
2337
- }
2338
- else {
2339
- let dirty = undefined;
2340
- const issues = [];
2341
- for (const option of options) {
2342
- const childCtx = {
2343
- ...ctx,
2344
- common: {
2345
- ...ctx.common,
2346
- issues: [],
2347
- },
2348
- parent: null,
2349
- };
2350
- const result = option._parseSync({
2351
- data: ctx.data,
2352
- path: ctx.path,
2353
- parent: childCtx,
2354
- });
2355
- if (result.status === "valid") {
2356
- return result;
2357
- }
2358
- else if (result.status === "dirty" && !dirty) {
2359
- dirty = { result, ctx: childCtx };
2360
- }
2361
- if (childCtx.common.issues.length) {
2362
- issues.push(childCtx.common.issues);
2363
- }
2364
- }
2365
- if (dirty) {
2366
- ctx.common.issues.push(...dirty.ctx.common.issues);
2367
- return dirty.result;
2368
- }
2369
- const unionErrors = issues.map((issues) => new ZodError_js_1.ZodError(issues));
2370
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2371
- code: ZodError_js_1.ZodIssueCode.invalid_union,
2372
- unionErrors,
2373
- });
2374
- return parseUtil_js_1.INVALID;
2375
- }
2376
- }
2377
- get options() {
2378
- return this._def.options;
2379
- }
2380
- }
2381
- exports.ZodUnion = ZodUnion;
2382
- ZodUnion.create = (types, params) => {
2383
- return new ZodUnion({
2384
- options: types,
2385
- typeName: ZodFirstPartyTypeKind.ZodUnion,
2386
- ...processCreateParams(params),
2387
- });
2388
- };
2389
- /////////////////////////////////////////////////////
2390
- /////////////////////////////////////////////////////
2391
- ////////// //////////
2392
- ////////// ZodDiscriminatedUnion //////////
2393
- ////////// //////////
2394
- /////////////////////////////////////////////////////
2395
- /////////////////////////////////////////////////////
2396
- const getDiscriminator = (type) => {
2397
- if (type instanceof ZodLazy) {
2398
- return getDiscriminator(type.schema);
2399
- }
2400
- else if (type instanceof ZodEffects) {
2401
- return getDiscriminator(type.innerType());
2402
- }
2403
- else if (type instanceof ZodLiteral) {
2404
- return [type.value];
2405
- }
2406
- else if (type instanceof ZodEnum) {
2407
- return type.options;
2408
- }
2409
- else if (type instanceof ZodNativeEnum) {
2410
- // eslint-disable-next-line ban/ban
2411
- return util_js_1.util.objectValues(type.enum);
2412
- }
2413
- else if (type instanceof ZodDefault) {
2414
- return getDiscriminator(type._def.innerType);
2415
- }
2416
- else if (type instanceof ZodUndefined) {
2417
- return [undefined];
2418
- }
2419
- else if (type instanceof ZodNull) {
2420
- return [null];
2421
- }
2422
- else if (type instanceof ZodOptional) {
2423
- return [undefined, ...getDiscriminator(type.unwrap())];
2424
- }
2425
- else if (type instanceof ZodNullable) {
2426
- return [null, ...getDiscriminator(type.unwrap())];
2427
- }
2428
- else if (type instanceof ZodBranded) {
2429
- return getDiscriminator(type.unwrap());
2430
- }
2431
- else if (type instanceof ZodReadonly) {
2432
- return getDiscriminator(type.unwrap());
2433
- }
2434
- else if (type instanceof ZodCatch) {
2435
- return getDiscriminator(type._def.innerType);
2436
- }
2437
- else {
2438
- return [];
2439
- }
2440
- };
2441
- class ZodDiscriminatedUnion extends ZodType {
2442
- _parse(input) {
2443
- const { ctx } = this._processInputParams(input);
2444
- if (ctx.parsedType !== util_js_1.ZodParsedType.object) {
2445
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2446
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2447
- expected: util_js_1.ZodParsedType.object,
2448
- received: ctx.parsedType,
2449
- });
2450
- return parseUtil_js_1.INVALID;
2451
- }
2452
- const discriminator = this.discriminator;
2453
- const discriminatorValue = ctx.data[discriminator];
2454
- const option = this.optionsMap.get(discriminatorValue);
2455
- if (!option) {
2456
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2457
- code: ZodError_js_1.ZodIssueCode.invalid_union_discriminator,
2458
- options: Array.from(this.optionsMap.keys()),
2459
- path: [discriminator],
2460
- });
2461
- return parseUtil_js_1.INVALID;
2462
- }
2463
- if (ctx.common.async) {
2464
- return option._parseAsync({
2465
- data: ctx.data,
2466
- path: ctx.path,
2467
- parent: ctx,
2468
- });
2469
- }
2470
- else {
2471
- return option._parseSync({
2472
- data: ctx.data,
2473
- path: ctx.path,
2474
- parent: ctx,
2475
- });
2476
- }
2477
- }
2478
- get discriminator() {
2479
- return this._def.discriminator;
2480
- }
2481
- get options() {
2482
- return this._def.options;
2483
- }
2484
- get optionsMap() {
2485
- return this._def.optionsMap;
2486
- }
2487
- /**
2488
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2489
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2490
- * have a different value for each object in the union.
2491
- * @param discriminator the name of the discriminator property
2492
- * @param types an array of object schemas
2493
- * @param params
2494
- */
2495
- static create(discriminator, options, params) {
2496
- // Get all the valid discriminator values
2497
- const optionsMap = new Map();
2498
- // try {
2499
- for (const type of options) {
2500
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2501
- if (!discriminatorValues.length) {
2502
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2503
- }
2504
- for (const value of discriminatorValues) {
2505
- if (optionsMap.has(value)) {
2506
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2507
- }
2508
- optionsMap.set(value, type);
2509
- }
2510
- }
2511
- return new ZodDiscriminatedUnion({
2512
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2513
- discriminator,
2514
- options,
2515
- optionsMap,
2516
- ...processCreateParams(params),
2517
- });
2518
- }
2519
- }
2520
- exports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;
2521
- function mergeValues(a, b) {
2522
- const aType = (0, util_js_1.getParsedType)(a);
2523
- const bType = (0, util_js_1.getParsedType)(b);
2524
- if (a === b) {
2525
- return { valid: true, data: a };
2526
- }
2527
- else if (aType === util_js_1.ZodParsedType.object && bType === util_js_1.ZodParsedType.object) {
2528
- const bKeys = util_js_1.util.objectKeys(b);
2529
- const sharedKeys = util_js_1.util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2530
- const newObj = { ...a, ...b };
2531
- for (const key of sharedKeys) {
2532
- const sharedValue = mergeValues(a[key], b[key]);
2533
- if (!sharedValue.valid) {
2534
- return { valid: false };
2535
- }
2536
- newObj[key] = sharedValue.data;
2537
- }
2538
- return { valid: true, data: newObj };
2539
- }
2540
- else if (aType === util_js_1.ZodParsedType.array && bType === util_js_1.ZodParsedType.array) {
2541
- if (a.length !== b.length) {
2542
- return { valid: false };
2543
- }
2544
- const newArray = [];
2545
- for (let index = 0; index < a.length; index++) {
2546
- const itemA = a[index];
2547
- const itemB = b[index];
2548
- const sharedValue = mergeValues(itemA, itemB);
2549
- if (!sharedValue.valid) {
2550
- return { valid: false };
2551
- }
2552
- newArray.push(sharedValue.data);
2553
- }
2554
- return { valid: true, data: newArray };
2555
- }
2556
- else if (aType === util_js_1.ZodParsedType.date && bType === util_js_1.ZodParsedType.date && +a === +b) {
2557
- return { valid: true, data: a };
2558
- }
2559
- else {
2560
- return { valid: false };
2561
- }
2562
- }
2563
- class ZodIntersection extends ZodType {
2564
- _parse(input) {
2565
- const { status, ctx } = this._processInputParams(input);
2566
- const handleParsed = (parsedLeft, parsedRight) => {
2567
- if ((0, parseUtil_js_1.isAborted)(parsedLeft) || (0, parseUtil_js_1.isAborted)(parsedRight)) {
2568
- return parseUtil_js_1.INVALID;
2569
- }
2570
- const merged = mergeValues(parsedLeft.value, parsedRight.value);
2571
- if (!merged.valid) {
2572
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2573
- code: ZodError_js_1.ZodIssueCode.invalid_intersection_types,
2574
- });
2575
- return parseUtil_js_1.INVALID;
2576
- }
2577
- if ((0, parseUtil_js_1.isDirty)(parsedLeft) || (0, parseUtil_js_1.isDirty)(parsedRight)) {
2578
- status.dirty();
2579
- }
2580
- return { status: status.value, value: merged.data };
2581
- };
2582
- if (ctx.common.async) {
2583
- return Promise.all([
2584
- this._def.left._parseAsync({
2585
- data: ctx.data,
2586
- path: ctx.path,
2587
- parent: ctx,
2588
- }),
2589
- this._def.right._parseAsync({
2590
- data: ctx.data,
2591
- path: ctx.path,
2592
- parent: ctx,
2593
- }),
2594
- ]).then(([left, right]) => handleParsed(left, right));
2595
- }
2596
- else {
2597
- return handleParsed(this._def.left._parseSync({
2598
- data: ctx.data,
2599
- path: ctx.path,
2600
- parent: ctx,
2601
- }), this._def.right._parseSync({
2602
- data: ctx.data,
2603
- path: ctx.path,
2604
- parent: ctx,
2605
- }));
2606
- }
2607
- }
2608
- }
2609
- exports.ZodIntersection = ZodIntersection;
2610
- ZodIntersection.create = (left, right, params) => {
2611
- return new ZodIntersection({
2612
- left: left,
2613
- right: right,
2614
- typeName: ZodFirstPartyTypeKind.ZodIntersection,
2615
- ...processCreateParams(params),
2616
- });
2617
- };
2618
- // type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
2619
- class ZodTuple extends ZodType {
2620
- _parse(input) {
2621
- const { status, ctx } = this._processInputParams(input);
2622
- if (ctx.parsedType !== util_js_1.ZodParsedType.array) {
2623
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2624
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2625
- expected: util_js_1.ZodParsedType.array,
2626
- received: ctx.parsedType,
2627
- });
2628
- return parseUtil_js_1.INVALID;
2629
- }
2630
- if (ctx.data.length < this._def.items.length) {
2631
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2632
- code: ZodError_js_1.ZodIssueCode.too_small,
2633
- minimum: this._def.items.length,
2634
- inclusive: true,
2635
- exact: false,
2636
- type: "array",
2637
- });
2638
- return parseUtil_js_1.INVALID;
2639
- }
2640
- const rest = this._def.rest;
2641
- if (!rest && ctx.data.length > this._def.items.length) {
2642
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2643
- code: ZodError_js_1.ZodIssueCode.too_big,
2644
- maximum: this._def.items.length,
2645
- inclusive: true,
2646
- exact: false,
2647
- type: "array",
2648
- });
2649
- status.dirty();
2650
- }
2651
- const items = [...ctx.data]
2652
- .map((item, itemIndex) => {
2653
- const schema = this._def.items[itemIndex] || this._def.rest;
2654
- if (!schema)
2655
- return null;
2656
- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2657
- })
2658
- .filter((x) => !!x); // filter nulls
2659
- if (ctx.common.async) {
2660
- return Promise.all(items).then((results) => {
2661
- return parseUtil_js_1.ParseStatus.mergeArray(status, results);
2662
- });
2663
- }
2664
- else {
2665
- return parseUtil_js_1.ParseStatus.mergeArray(status, items);
2666
- }
2667
- }
2668
- get items() {
2669
- return this._def.items;
2670
- }
2671
- rest(rest) {
2672
- return new ZodTuple({
2673
- ...this._def,
2674
- rest,
2675
- });
2676
- }
2677
- }
2678
- exports.ZodTuple = ZodTuple;
2679
- ZodTuple.create = (schemas, params) => {
2680
- if (!Array.isArray(schemas)) {
2681
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2682
- }
2683
- return new ZodTuple({
2684
- items: schemas,
2685
- typeName: ZodFirstPartyTypeKind.ZodTuple,
2686
- rest: null,
2687
- ...processCreateParams(params),
2688
- });
2689
- };
2690
- class ZodRecord extends ZodType {
2691
- get keySchema() {
2692
- return this._def.keyType;
2693
- }
2694
- get valueSchema() {
2695
- return this._def.valueType;
2696
- }
2697
- _parse(input) {
2698
- const { status, ctx } = this._processInputParams(input);
2699
- if (ctx.parsedType !== util_js_1.ZodParsedType.object) {
2700
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2701
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2702
- expected: util_js_1.ZodParsedType.object,
2703
- received: ctx.parsedType,
2704
- });
2705
- return parseUtil_js_1.INVALID;
2706
- }
2707
- const pairs = [];
2708
- const keyType = this._def.keyType;
2709
- const valueType = this._def.valueType;
2710
- for (const key in ctx.data) {
2711
- pairs.push({
2712
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
2713
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
2714
- alwaysSet: key in ctx.data,
2715
- });
2716
- }
2717
- if (ctx.common.async) {
2718
- return parseUtil_js_1.ParseStatus.mergeObjectAsync(status, pairs);
2719
- }
2720
- else {
2721
- return parseUtil_js_1.ParseStatus.mergeObjectSync(status, pairs);
2722
- }
2723
- }
2724
- get element() {
2725
- return this._def.valueType;
2726
- }
2727
- static create(first, second, third) {
2728
- if (second instanceof ZodType) {
2729
- return new ZodRecord({
2730
- keyType: first,
2731
- valueType: second,
2732
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2733
- ...processCreateParams(third),
2734
- });
2735
- }
2736
- return new ZodRecord({
2737
- keyType: ZodString.create(),
2738
- valueType: first,
2739
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2740
- ...processCreateParams(second),
2741
- });
2742
- }
2743
- }
2744
- exports.ZodRecord = ZodRecord;
2745
- class ZodMap extends ZodType {
2746
- get keySchema() {
2747
- return this._def.keyType;
2748
- }
2749
- get valueSchema() {
2750
- return this._def.valueType;
2751
- }
2752
- _parse(input) {
2753
- const { status, ctx } = this._processInputParams(input);
2754
- if (ctx.parsedType !== util_js_1.ZodParsedType.map) {
2755
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2756
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2757
- expected: util_js_1.ZodParsedType.map,
2758
- received: ctx.parsedType,
2759
- });
2760
- return parseUtil_js_1.INVALID;
2761
- }
2762
- const keyType = this._def.keyType;
2763
- const valueType = this._def.valueType;
2764
- const pairs = [...ctx.data.entries()].map(([key, value], index) => {
2765
- return {
2766
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
2767
- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
2768
- };
2769
- });
2770
- if (ctx.common.async) {
2771
- const finalMap = new Map();
2772
- return Promise.resolve().then(async () => {
2773
- for (const pair of pairs) {
2774
- const key = await pair.key;
2775
- const value = await pair.value;
2776
- if (key.status === "aborted" || value.status === "aborted") {
2777
- return parseUtil_js_1.INVALID;
2778
- }
2779
- if (key.status === "dirty" || value.status === "dirty") {
2780
- status.dirty();
2781
- }
2782
- finalMap.set(key.value, value.value);
2783
- }
2784
- return { status: status.value, value: finalMap };
2785
- });
2786
- }
2787
- else {
2788
- const finalMap = new Map();
2789
- for (const pair of pairs) {
2790
- const key = pair.key;
2791
- const value = pair.value;
2792
- if (key.status === "aborted" || value.status === "aborted") {
2793
- return parseUtil_js_1.INVALID;
2794
- }
2795
- if (key.status === "dirty" || value.status === "dirty") {
2796
- status.dirty();
2797
- }
2798
- finalMap.set(key.value, value.value);
2799
- }
2800
- return { status: status.value, value: finalMap };
2801
- }
2802
- }
2803
- }
2804
- exports.ZodMap = ZodMap;
2805
- ZodMap.create = (keyType, valueType, params) => {
2806
- return new ZodMap({
2807
- valueType,
2808
- keyType,
2809
- typeName: ZodFirstPartyTypeKind.ZodMap,
2810
- ...processCreateParams(params),
2811
- });
2812
- };
2813
- class ZodSet extends ZodType {
2814
- _parse(input) {
2815
- const { status, ctx } = this._processInputParams(input);
2816
- if (ctx.parsedType !== util_js_1.ZodParsedType.set) {
2817
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2818
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2819
- expected: util_js_1.ZodParsedType.set,
2820
- received: ctx.parsedType,
2821
- });
2822
- return parseUtil_js_1.INVALID;
2823
- }
2824
- const def = this._def;
2825
- if (def.minSize !== null) {
2826
- if (ctx.data.size < def.minSize.value) {
2827
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2828
- code: ZodError_js_1.ZodIssueCode.too_small,
2829
- minimum: def.minSize.value,
2830
- type: "set",
2831
- inclusive: true,
2832
- exact: false,
2833
- message: def.minSize.message,
2834
- });
2835
- status.dirty();
2836
- }
2837
- }
2838
- if (def.maxSize !== null) {
2839
- if (ctx.data.size > def.maxSize.value) {
2840
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2841
- code: ZodError_js_1.ZodIssueCode.too_big,
2842
- maximum: def.maxSize.value,
2843
- type: "set",
2844
- inclusive: true,
2845
- exact: false,
2846
- message: def.maxSize.message,
2847
- });
2848
- status.dirty();
2849
- }
2850
- }
2851
- const valueType = this._def.valueType;
2852
- function finalizeSet(elements) {
2853
- const parsedSet = new Set();
2854
- for (const element of elements) {
2855
- if (element.status === "aborted")
2856
- return parseUtil_js_1.INVALID;
2857
- if (element.status === "dirty")
2858
- status.dirty();
2859
- parsedSet.add(element.value);
2860
- }
2861
- return { status: status.value, value: parsedSet };
2862
- }
2863
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2864
- if (ctx.common.async) {
2865
- return Promise.all(elements).then((elements) => finalizeSet(elements));
2866
- }
2867
- else {
2868
- return finalizeSet(elements);
2869
- }
2870
- }
2871
- min(minSize, message) {
2872
- return new ZodSet({
2873
- ...this._def,
2874
- minSize: { value: minSize, message: errorUtil_js_1.errorUtil.toString(message) },
2875
- });
2876
- }
2877
- max(maxSize, message) {
2878
- return new ZodSet({
2879
- ...this._def,
2880
- maxSize: { value: maxSize, message: errorUtil_js_1.errorUtil.toString(message) },
2881
- });
2882
- }
2883
- size(size, message) {
2884
- return this.min(size, message).max(size, message);
2885
- }
2886
- nonempty(message) {
2887
- return this.min(1, message);
2888
- }
2889
- }
2890
- exports.ZodSet = ZodSet;
2891
- ZodSet.create = (valueType, params) => {
2892
- return new ZodSet({
2893
- valueType,
2894
- minSize: null,
2895
- maxSize: null,
2896
- typeName: ZodFirstPartyTypeKind.ZodSet,
2897
- ...processCreateParams(params),
2898
- });
2899
- };
2900
- class ZodFunction extends ZodType {
2901
- constructor() {
2902
- super(...arguments);
2903
- this.validate = this.implement;
2904
- }
2905
- _parse(input) {
2906
- const { ctx } = this._processInputParams(input);
2907
- if (ctx.parsedType !== util_js_1.ZodParsedType.function) {
2908
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2909
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2910
- expected: util_js_1.ZodParsedType.function,
2911
- received: ctx.parsedType,
2912
- });
2913
- return parseUtil_js_1.INVALID;
2914
- }
2915
- function makeArgsIssue(args, error) {
2916
- return (0, parseUtil_js_1.makeIssue)({
2917
- data: args,
2918
- path: ctx.path,
2919
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, (0, errors_js_1.getErrorMap)(), errors_js_1.defaultErrorMap].filter((x) => !!x),
2920
- issueData: {
2921
- code: ZodError_js_1.ZodIssueCode.invalid_arguments,
2922
- argumentsError: error,
2923
- },
2924
- });
2925
- }
2926
- function makeReturnsIssue(returns, error) {
2927
- return (0, parseUtil_js_1.makeIssue)({
2928
- data: returns,
2929
- path: ctx.path,
2930
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, (0, errors_js_1.getErrorMap)(), errors_js_1.defaultErrorMap].filter((x) => !!x),
2931
- issueData: {
2932
- code: ZodError_js_1.ZodIssueCode.invalid_return_type,
2933
- returnTypeError: error,
2934
- },
2935
- });
2936
- }
2937
- const params = { errorMap: ctx.common.contextualErrorMap };
2938
- const fn = ctx.data;
2939
- if (this._def.returns instanceof ZodPromise) {
2940
- // Would love a way to avoid disabling this rule, but we need
2941
- // an alias (using an arrow function was what caused 2651).
2942
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2943
- const me = this;
2944
- return (0, parseUtil_js_1.OK)(async function (...args) {
2945
- const error = new ZodError_js_1.ZodError([]);
2946
- const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
2947
- error.addIssue(makeArgsIssue(args, e));
2948
- throw error;
2949
- });
2950
- const result = await Reflect.apply(fn, this, parsedArgs);
2951
- const parsedReturns = await me._def.returns._def.type
2952
- .parseAsync(result, params)
2953
- .catch((e) => {
2954
- error.addIssue(makeReturnsIssue(result, e));
2955
- throw error;
2956
- });
2957
- return parsedReturns;
2958
- });
2959
- }
2960
- else {
2961
- // Would love a way to avoid disabling this rule, but we need
2962
- // an alias (using an arrow function was what caused 2651).
2963
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2964
- const me = this;
2965
- return (0, parseUtil_js_1.OK)(function (...args) {
2966
- const parsedArgs = me._def.args.safeParse(args, params);
2967
- if (!parsedArgs.success) {
2968
- throw new ZodError_js_1.ZodError([makeArgsIssue(args, parsedArgs.error)]);
2969
- }
2970
- const result = Reflect.apply(fn, this, parsedArgs.data);
2971
- const parsedReturns = me._def.returns.safeParse(result, params);
2972
- if (!parsedReturns.success) {
2973
- throw new ZodError_js_1.ZodError([makeReturnsIssue(result, parsedReturns.error)]);
2974
- }
2975
- return parsedReturns.data;
2976
- });
2977
- }
2978
- }
2979
- parameters() {
2980
- return this._def.args;
2981
- }
2982
- returnType() {
2983
- return this._def.returns;
2984
- }
2985
- args(...items) {
2986
- return new ZodFunction({
2987
- ...this._def,
2988
- args: ZodTuple.create(items).rest(ZodUnknown.create()),
2989
- });
2990
- }
2991
- returns(returnType) {
2992
- return new ZodFunction({
2993
- ...this._def,
2994
- returns: returnType,
2995
- });
2996
- }
2997
- implement(func) {
2998
- const validatedFunc = this.parse(func);
2999
- return validatedFunc;
3000
- }
3001
- strictImplement(func) {
3002
- const validatedFunc = this.parse(func);
3003
- return validatedFunc;
3004
- }
3005
- static create(args, returns, params) {
3006
- return new ZodFunction({
3007
- args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
3008
- returns: returns || ZodUnknown.create(),
3009
- typeName: ZodFirstPartyTypeKind.ZodFunction,
3010
- ...processCreateParams(params),
3011
- });
3012
- }
3013
- }
3014
- exports.ZodFunction = ZodFunction;
3015
- class ZodLazy extends ZodType {
3016
- get schema() {
3017
- return this._def.getter();
3018
- }
3019
- _parse(input) {
3020
- const { ctx } = this._processInputParams(input);
3021
- const lazySchema = this._def.getter();
3022
- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
3023
- }
3024
- }
3025
- exports.ZodLazy = ZodLazy;
3026
- ZodLazy.create = (getter, params) => {
3027
- return new ZodLazy({
3028
- getter: getter,
3029
- typeName: ZodFirstPartyTypeKind.ZodLazy,
3030
- ...processCreateParams(params),
3031
- });
3032
- };
3033
- class ZodLiteral extends ZodType {
3034
- _parse(input) {
3035
- if (input.data !== this._def.value) {
3036
- const ctx = this._getOrReturnCtx(input);
3037
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3038
- received: ctx.data,
3039
- code: ZodError_js_1.ZodIssueCode.invalid_literal,
3040
- expected: this._def.value,
3041
- });
3042
- return parseUtil_js_1.INVALID;
3043
- }
3044
- return { status: "valid", value: input.data };
3045
- }
3046
- get value() {
3047
- return this._def.value;
3048
- }
3049
- }
3050
- exports.ZodLiteral = ZodLiteral;
3051
- ZodLiteral.create = (value, params) => {
3052
- return new ZodLiteral({
3053
- value: value,
3054
- typeName: ZodFirstPartyTypeKind.ZodLiteral,
3055
- ...processCreateParams(params),
3056
- });
3057
- };
3058
- function createZodEnum(values, params) {
3059
- return new ZodEnum({
3060
- values,
3061
- typeName: ZodFirstPartyTypeKind.ZodEnum,
3062
- ...processCreateParams(params),
3063
- });
3064
- }
3065
- class ZodEnum extends ZodType {
3066
- _parse(input) {
3067
- if (typeof input.data !== "string") {
3068
- const ctx = this._getOrReturnCtx(input);
3069
- const expectedValues = this._def.values;
3070
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3071
- expected: util_js_1.util.joinValues(expectedValues),
3072
- received: ctx.parsedType,
3073
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3074
- });
3075
- return parseUtil_js_1.INVALID;
3076
- }
3077
- if (!this._cache) {
3078
- this._cache = new Set(this._def.values);
3079
- }
3080
- if (!this._cache.has(input.data)) {
3081
- const ctx = this._getOrReturnCtx(input);
3082
- const expectedValues = this._def.values;
3083
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3084
- received: ctx.data,
3085
- code: ZodError_js_1.ZodIssueCode.invalid_enum_value,
3086
- options: expectedValues,
3087
- });
3088
- return parseUtil_js_1.INVALID;
3089
- }
3090
- return (0, parseUtil_js_1.OK)(input.data);
3091
- }
3092
- get options() {
3093
- return this._def.values;
3094
- }
3095
- get enum() {
3096
- const enumValues = {};
3097
- for (const val of this._def.values) {
3098
- enumValues[val] = val;
3099
- }
3100
- return enumValues;
3101
- }
3102
- get Values() {
3103
- const enumValues = {};
3104
- for (const val of this._def.values) {
3105
- enumValues[val] = val;
3106
- }
3107
- return enumValues;
3108
- }
3109
- get Enum() {
3110
- const enumValues = {};
3111
- for (const val of this._def.values) {
3112
- enumValues[val] = val;
3113
- }
3114
- return enumValues;
3115
- }
3116
- extract(values, newDef = this._def) {
3117
- return ZodEnum.create(values, {
3118
- ...this._def,
3119
- ...newDef,
3120
- });
3121
- }
3122
- exclude(values, newDef = this._def) {
3123
- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3124
- ...this._def,
3125
- ...newDef,
3126
- });
3127
- }
3128
- }
3129
- exports.ZodEnum = ZodEnum;
3130
- ZodEnum.create = createZodEnum;
3131
- class ZodNativeEnum extends ZodType {
3132
- _parse(input) {
3133
- const nativeEnumValues = util_js_1.util.getValidEnumValues(this._def.values);
3134
- const ctx = this._getOrReturnCtx(input);
3135
- if (ctx.parsedType !== util_js_1.ZodParsedType.string && ctx.parsedType !== util_js_1.ZodParsedType.number) {
3136
- const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
3137
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3138
- expected: util_js_1.util.joinValues(expectedValues),
3139
- received: ctx.parsedType,
3140
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3141
- });
3142
- return parseUtil_js_1.INVALID;
3143
- }
3144
- if (!this._cache) {
3145
- this._cache = new Set(util_js_1.util.getValidEnumValues(this._def.values));
3146
- }
3147
- if (!this._cache.has(input.data)) {
3148
- const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
3149
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3150
- received: ctx.data,
3151
- code: ZodError_js_1.ZodIssueCode.invalid_enum_value,
3152
- options: expectedValues,
3153
- });
3154
- return parseUtil_js_1.INVALID;
3155
- }
3156
- return (0, parseUtil_js_1.OK)(input.data);
3157
- }
3158
- get enum() {
3159
- return this._def.values;
3160
- }
3161
- }
3162
- exports.ZodNativeEnum = ZodNativeEnum;
3163
- ZodNativeEnum.create = (values, params) => {
3164
- return new ZodNativeEnum({
3165
- values: values,
3166
- typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
3167
- ...processCreateParams(params),
3168
- });
3169
- };
3170
- class ZodPromise extends ZodType {
3171
- unwrap() {
3172
- return this._def.type;
3173
- }
3174
- _parse(input) {
3175
- const { ctx } = this._processInputParams(input);
3176
- if (ctx.parsedType !== util_js_1.ZodParsedType.promise && ctx.common.async === false) {
3177
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3178
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3179
- expected: util_js_1.ZodParsedType.promise,
3180
- received: ctx.parsedType,
3181
- });
3182
- return parseUtil_js_1.INVALID;
3183
- }
3184
- const promisified = ctx.parsedType === util_js_1.ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
3185
- return (0, parseUtil_js_1.OK)(promisified.then((data) => {
3186
- return this._def.type.parseAsync(data, {
3187
- path: ctx.path,
3188
- errorMap: ctx.common.contextualErrorMap,
3189
- });
3190
- }));
3191
- }
3192
- }
3193
- exports.ZodPromise = ZodPromise;
3194
- ZodPromise.create = (schema, params) => {
3195
- return new ZodPromise({
3196
- type: schema,
3197
- typeName: ZodFirstPartyTypeKind.ZodPromise,
3198
- ...processCreateParams(params),
3199
- });
3200
- };
3201
- class ZodEffects extends ZodType {
3202
- innerType() {
3203
- return this._def.schema;
3204
- }
3205
- sourceType() {
3206
- return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
3207
- ? this._def.schema.sourceType()
3208
- : this._def.schema;
3209
- }
3210
- _parse(input) {
3211
- const { status, ctx } = this._processInputParams(input);
3212
- const effect = this._def.effect || null;
3213
- const checkCtx = {
3214
- addIssue: (arg) => {
3215
- (0, parseUtil_js_1.addIssueToContext)(ctx, arg);
3216
- if (arg.fatal) {
3217
- status.abort();
3218
- }
3219
- else {
3220
- status.dirty();
3221
- }
3222
- },
3223
- get path() {
3224
- return ctx.path;
3225
- },
3226
- };
3227
- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3228
- if (effect.type === "preprocess") {
3229
- const processed = effect.transform(ctx.data, checkCtx);
3230
- if (ctx.common.async) {
3231
- return Promise.resolve(processed).then(async (processed) => {
3232
- if (status.value === "aborted")
3233
- return parseUtil_js_1.INVALID;
3234
- const result = await this._def.schema._parseAsync({
3235
- data: processed,
3236
- path: ctx.path,
3237
- parent: ctx,
3238
- });
3239
- if (result.status === "aborted")
3240
- return parseUtil_js_1.INVALID;
3241
- if (result.status === "dirty")
3242
- return (0, parseUtil_js_1.DIRTY)(result.value);
3243
- if (status.value === "dirty")
3244
- return (0, parseUtil_js_1.DIRTY)(result.value);
3245
- return result;
3246
- });
3247
- }
3248
- else {
3249
- if (status.value === "aborted")
3250
- return parseUtil_js_1.INVALID;
3251
- const result = this._def.schema._parseSync({
3252
- data: processed,
3253
- path: ctx.path,
3254
- parent: ctx,
3255
- });
3256
- if (result.status === "aborted")
3257
- return parseUtil_js_1.INVALID;
3258
- if (result.status === "dirty")
3259
- return (0, parseUtil_js_1.DIRTY)(result.value);
3260
- if (status.value === "dirty")
3261
- return (0, parseUtil_js_1.DIRTY)(result.value);
3262
- return result;
3263
- }
3264
- }
3265
- if (effect.type === "refinement") {
3266
- const executeRefinement = (acc) => {
3267
- const result = effect.refinement(acc, checkCtx);
3268
- if (ctx.common.async) {
3269
- return Promise.resolve(result);
3270
- }
3271
- if (result instanceof Promise) {
3272
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3273
- }
3274
- return acc;
3275
- };
3276
- if (ctx.common.async === false) {
3277
- const inner = this._def.schema._parseSync({
3278
- data: ctx.data,
3279
- path: ctx.path,
3280
- parent: ctx,
3281
- });
3282
- if (inner.status === "aborted")
3283
- return parseUtil_js_1.INVALID;
3284
- if (inner.status === "dirty")
3285
- status.dirty();
3286
- // return value is ignored
3287
- executeRefinement(inner.value);
3288
- return { status: status.value, value: inner.value };
3289
- }
3290
- else {
3291
- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
3292
- if (inner.status === "aborted")
3293
- return parseUtil_js_1.INVALID;
3294
- if (inner.status === "dirty")
3295
- status.dirty();
3296
- return executeRefinement(inner.value).then(() => {
3297
- return { status: status.value, value: inner.value };
3298
- });
3299
- });
3300
- }
3301
- }
3302
- if (effect.type === "transform") {
3303
- if (ctx.common.async === false) {
3304
- const base = this._def.schema._parseSync({
3305
- data: ctx.data,
3306
- path: ctx.path,
3307
- parent: ctx,
3308
- });
3309
- if (!(0, parseUtil_js_1.isValid)(base))
3310
- return parseUtil_js_1.INVALID;
3311
- const result = effect.transform(base.value, checkCtx);
3312
- if (result instanceof Promise) {
3313
- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3314
- }
3315
- return { status: status.value, value: result };
3316
- }
3317
- else {
3318
- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
3319
- if (!(0, parseUtil_js_1.isValid)(base))
3320
- return parseUtil_js_1.INVALID;
3321
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3322
- status: status.value,
3323
- value: result,
3324
- }));
3325
- });
3326
- }
3327
- }
3328
- util_js_1.util.assertNever(effect);
3329
- }
3330
- }
3331
- exports.ZodEffects = ZodEffects;
3332
- exports.ZodTransformer = ZodEffects;
3333
- ZodEffects.create = (schema, effect, params) => {
3334
- return new ZodEffects({
3335
- schema,
3336
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3337
- effect,
3338
- ...processCreateParams(params),
3339
- });
3340
- };
3341
- ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3342
- return new ZodEffects({
3343
- schema,
3344
- effect: { type: "preprocess", transform: preprocess },
3345
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3346
- ...processCreateParams(params),
3347
- });
3348
- };
3349
- class ZodOptional extends ZodType {
3350
- _parse(input) {
3351
- const parsedType = this._getType(input);
3352
- if (parsedType === util_js_1.ZodParsedType.undefined) {
3353
- return (0, parseUtil_js_1.OK)(undefined);
3354
- }
3355
- return this._def.innerType._parse(input);
3356
- }
3357
- unwrap() {
3358
- return this._def.innerType;
3359
- }
3360
- }
3361
- exports.ZodOptional = ZodOptional;
3362
- ZodOptional.create = (type, params) => {
3363
- return new ZodOptional({
3364
- innerType: type,
3365
- typeName: ZodFirstPartyTypeKind.ZodOptional,
3366
- ...processCreateParams(params),
3367
- });
3368
- };
3369
- class ZodNullable extends ZodType {
3370
- _parse(input) {
3371
- const parsedType = this._getType(input);
3372
- if (parsedType === util_js_1.ZodParsedType.null) {
3373
- return (0, parseUtil_js_1.OK)(null);
3374
- }
3375
- return this._def.innerType._parse(input);
3376
- }
3377
- unwrap() {
3378
- return this._def.innerType;
3379
- }
3380
- }
3381
- exports.ZodNullable = ZodNullable;
3382
- ZodNullable.create = (type, params) => {
3383
- return new ZodNullable({
3384
- innerType: type,
3385
- typeName: ZodFirstPartyTypeKind.ZodNullable,
3386
- ...processCreateParams(params),
3387
- });
3388
- };
3389
- class ZodDefault extends ZodType {
3390
- _parse(input) {
3391
- const { ctx } = this._processInputParams(input);
3392
- let data = ctx.data;
3393
- if (ctx.parsedType === util_js_1.ZodParsedType.undefined) {
3394
- data = this._def.defaultValue();
3395
- }
3396
- return this._def.innerType._parse({
3397
- data,
3398
- path: ctx.path,
3399
- parent: ctx,
3400
- });
3401
- }
3402
- removeDefault() {
3403
- return this._def.innerType;
3404
- }
3405
- }
3406
- exports.ZodDefault = ZodDefault;
3407
- ZodDefault.create = (type, params) => {
3408
- return new ZodDefault({
3409
- innerType: type,
3410
- typeName: ZodFirstPartyTypeKind.ZodDefault,
3411
- defaultValue: typeof params.default === "function" ? params.default : () => params.default,
3412
- ...processCreateParams(params),
3413
- });
3414
- };
3415
- class ZodCatch extends ZodType {
3416
- _parse(input) {
3417
- const { ctx } = this._processInputParams(input);
3418
- // newCtx is used to not collect issues from inner types in ctx
3419
- const newCtx = {
3420
- ...ctx,
3421
- common: {
3422
- ...ctx.common,
3423
- issues: [],
3424
- },
3425
- };
3426
- const result = this._def.innerType._parse({
3427
- data: newCtx.data,
3428
- path: newCtx.path,
3429
- parent: {
3430
- ...newCtx,
3431
- },
3432
- });
3433
- if ((0, parseUtil_js_1.isAsync)(result)) {
3434
- return result.then((result) => {
3435
- return {
3436
- status: "valid",
3437
- value: result.status === "valid"
3438
- ? result.value
3439
- : this._def.catchValue({
3440
- get error() {
3441
- return new ZodError_js_1.ZodError(newCtx.common.issues);
3442
- },
3443
- input: newCtx.data,
3444
- }),
3445
- };
3446
- });
3447
- }
3448
- else {
3449
- return {
3450
- status: "valid",
3451
- value: result.status === "valid"
3452
- ? result.value
3453
- : this._def.catchValue({
3454
- get error() {
3455
- return new ZodError_js_1.ZodError(newCtx.common.issues);
3456
- },
3457
- input: newCtx.data,
3458
- }),
3459
- };
3460
- }
3461
- }
3462
- removeCatch() {
3463
- return this._def.innerType;
3464
- }
3465
- }
3466
- exports.ZodCatch = ZodCatch;
3467
- ZodCatch.create = (type, params) => {
3468
- return new ZodCatch({
3469
- innerType: type,
3470
- typeName: ZodFirstPartyTypeKind.ZodCatch,
3471
- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3472
- ...processCreateParams(params),
3473
- });
3474
- };
3475
- class ZodNaN extends ZodType {
3476
- _parse(input) {
3477
- const parsedType = this._getType(input);
3478
- if (parsedType !== util_js_1.ZodParsedType.nan) {
3479
- const ctx = this._getOrReturnCtx(input);
3480
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3481
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3482
- expected: util_js_1.ZodParsedType.nan,
3483
- received: ctx.parsedType,
3484
- });
3485
- return parseUtil_js_1.INVALID;
3486
- }
3487
- return { status: "valid", value: input.data };
3488
- }
3489
- }
3490
- exports.ZodNaN = ZodNaN;
3491
- ZodNaN.create = (params) => {
3492
- return new ZodNaN({
3493
- typeName: ZodFirstPartyTypeKind.ZodNaN,
3494
- ...processCreateParams(params),
3495
- });
3496
- };
3497
- exports.BRAND = Symbol("zod_brand");
3498
- class ZodBranded extends ZodType {
3499
- _parse(input) {
3500
- const { ctx } = this._processInputParams(input);
3501
- const data = ctx.data;
3502
- return this._def.type._parse({
3503
- data,
3504
- path: ctx.path,
3505
- parent: ctx,
3506
- });
3507
- }
3508
- unwrap() {
3509
- return this._def.type;
3510
- }
3511
- }
3512
- exports.ZodBranded = ZodBranded;
3513
- class ZodPipeline extends ZodType {
3514
- _parse(input) {
3515
- const { status, ctx } = this._processInputParams(input);
3516
- if (ctx.common.async) {
3517
- const handleAsync = async () => {
3518
- const inResult = await this._def.in._parseAsync({
3519
- data: ctx.data,
3520
- path: ctx.path,
3521
- parent: ctx,
3522
- });
3523
- if (inResult.status === "aborted")
3524
- return parseUtil_js_1.INVALID;
3525
- if (inResult.status === "dirty") {
3526
- status.dirty();
3527
- return (0, parseUtil_js_1.DIRTY)(inResult.value);
3528
- }
3529
- else {
3530
- return this._def.out._parseAsync({
3531
- data: inResult.value,
3532
- path: ctx.path,
3533
- parent: ctx,
3534
- });
3535
- }
3536
- };
3537
- return handleAsync();
3538
- }
3539
- else {
3540
- const inResult = this._def.in._parseSync({
3541
- data: ctx.data,
3542
- path: ctx.path,
3543
- parent: ctx,
3544
- });
3545
- if (inResult.status === "aborted")
3546
- return parseUtil_js_1.INVALID;
3547
- if (inResult.status === "dirty") {
3548
- status.dirty();
3549
- return {
3550
- status: "dirty",
3551
- value: inResult.value,
3552
- };
3553
- }
3554
- else {
3555
- return this._def.out._parseSync({
3556
- data: inResult.value,
3557
- path: ctx.path,
3558
- parent: ctx,
3559
- });
3560
- }
3561
- }
3562
- }
3563
- static create(a, b) {
3564
- return new ZodPipeline({
3565
- in: a,
3566
- out: b,
3567
- typeName: ZodFirstPartyTypeKind.ZodPipeline,
3568
- });
3569
- }
3570
- }
3571
- exports.ZodPipeline = ZodPipeline;
3572
- class ZodReadonly extends ZodType {
3573
- _parse(input) {
3574
- const result = this._def.innerType._parse(input);
3575
- const freeze = (data) => {
3576
- if ((0, parseUtil_js_1.isValid)(data)) {
3577
- data.value = Object.freeze(data.value);
3578
- }
3579
- return data;
3580
- };
3581
- return (0, parseUtil_js_1.isAsync)(result) ? result.then((data) => freeze(data)) : freeze(result);
3582
- }
3583
- unwrap() {
3584
- return this._def.innerType;
3585
- }
3586
- }
3587
- exports.ZodReadonly = ZodReadonly;
3588
- ZodReadonly.create = (type, params) => {
3589
- return new ZodReadonly({
3590
- innerType: type,
3591
- typeName: ZodFirstPartyTypeKind.ZodReadonly,
3592
- ...processCreateParams(params),
3593
- });
3594
- };
3595
- ////////////////////////////////////////
3596
- ////////////////////////////////////////
3597
- ////////// //////////
3598
- ////////// z.custom //////////
3599
- ////////// //////////
3600
- ////////////////////////////////////////
3601
- ////////////////////////////////////////
3602
- function cleanParams(params, data) {
3603
- const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
3604
- const p2 = typeof p === "string" ? { message: p } : p;
3605
- return p2;
3606
- }
3607
- function custom(check, _params = {},
3608
- /**
3609
- * @deprecated
3610
- *
3611
- * Pass `fatal` into the params object instead:
3612
- *
3613
- * ```ts
3614
- * z.string().custom((val) => val.length > 5, { fatal: false })
3615
- * ```
3616
- *
3617
- */
3618
- fatal) {
3619
- if (check)
3620
- return ZodAny.create().superRefine((data, ctx) => {
3621
- const r = check(data);
3622
- if (r instanceof Promise) {
3623
- return r.then((r) => {
3624
- if (!r) {
3625
- const params = cleanParams(_params, data);
3626
- const _fatal = params.fatal ?? fatal ?? true;
3627
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3628
- }
3629
- });
3630
- }
3631
- if (!r) {
3632
- const params = cleanParams(_params, data);
3633
- const _fatal = params.fatal ?? fatal ?? true;
3634
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3635
- }
3636
- return;
3637
- });
3638
- return ZodAny.create();
3639
- }
3640
- exports.late = {
3641
- object: ZodObject.lazycreate,
3642
- };
3643
- var ZodFirstPartyTypeKind;
3644
- (function (ZodFirstPartyTypeKind) {
3645
- ZodFirstPartyTypeKind["ZodString"] = "ZodString";
3646
- ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
3647
- ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
3648
- ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
3649
- ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
3650
- ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
3651
- ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
3652
- ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
3653
- ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
3654
- ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
3655
- ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
3656
- ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
3657
- ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
3658
- ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
3659
- ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
3660
- ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
3661
- ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
3662
- ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
3663
- ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
3664
- ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
3665
- ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
3666
- ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
3667
- ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
3668
- ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
3669
- ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
3670
- ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
3671
- ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
3672
- ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
3673
- ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
3674
- ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
3675
- ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
3676
- ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
3677
- ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
3678
- ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
3679
- ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
3680
- ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
3681
- })(ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = ZodFirstPartyTypeKind = {}));
3682
- // requires TS 4.4+
3683
- class Class {
3684
- constructor(..._) { }
3685
- }
3686
- const instanceOfType = (
3687
- // const instanceOfType = <T extends new (...args: any[]) => any>(
3688
- cls, params = {
3689
- message: `Input not instance of ${cls.name}`,
3690
- }) => custom((data) => data instanceof cls, params);
3691
- exports.instanceof = instanceOfType;
3692
- const stringType = ZodString.create;
3693
- exports.string = stringType;
3694
- const numberType = ZodNumber.create;
3695
- exports.number = numberType;
3696
- const nanType = ZodNaN.create;
3697
- exports.nan = nanType;
3698
- const bigIntType = ZodBigInt.create;
3699
- exports.bigint = bigIntType;
3700
- const booleanType = ZodBoolean.create;
3701
- exports.boolean = booleanType;
3702
- const dateType = ZodDate.create;
3703
- exports.date = dateType;
3704
- const symbolType = ZodSymbol.create;
3705
- exports.symbol = symbolType;
3706
- const undefinedType = ZodUndefined.create;
3707
- exports.undefined = undefinedType;
3708
- const nullType = ZodNull.create;
3709
- exports.null = nullType;
3710
- const anyType = ZodAny.create;
3711
- exports.any = anyType;
3712
- const unknownType = ZodUnknown.create;
3713
- exports.unknown = unknownType;
3714
- const neverType = ZodNever.create;
3715
- exports.never = neverType;
3716
- const voidType = ZodVoid.create;
3717
- exports.void = voidType;
3718
- const arrayType = ZodArray.create;
3719
- exports.array = arrayType;
3720
- const objectType = ZodObject.create;
3721
- exports.object = objectType;
3722
- const strictObjectType = ZodObject.strictCreate;
3723
- exports.strictObject = strictObjectType;
3724
- const unionType = ZodUnion.create;
3725
- exports.union = unionType;
3726
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
3727
- exports.discriminatedUnion = discriminatedUnionType;
3728
- const intersectionType = ZodIntersection.create;
3729
- exports.intersection = intersectionType;
3730
- const tupleType = ZodTuple.create;
3731
- exports.tuple = tupleType;
3732
- const recordType = ZodRecord.create;
3733
- exports.record = recordType;
3734
- const mapType = ZodMap.create;
3735
- exports.map = mapType;
3736
- const setType = ZodSet.create;
3737
- exports.set = setType;
3738
- const functionType = ZodFunction.create;
3739
- exports.function = functionType;
3740
- const lazyType = ZodLazy.create;
3741
- exports.lazy = lazyType;
3742
- const literalType = ZodLiteral.create;
3743
- exports.literal = literalType;
3744
- const enumType = ZodEnum.create;
3745
- exports.enum = enumType;
3746
- const nativeEnumType = ZodNativeEnum.create;
3747
- exports.nativeEnum = nativeEnumType;
3748
- const promiseType = ZodPromise.create;
3749
- exports.promise = promiseType;
3750
- const effectsType = ZodEffects.create;
3751
- exports.effect = effectsType;
3752
- exports.transformer = effectsType;
3753
- const optionalType = ZodOptional.create;
3754
- exports.optional = optionalType;
3755
- const nullableType = ZodNullable.create;
3756
- exports.nullable = nullableType;
3757
- const preprocessType = ZodEffects.createWithPreprocess;
3758
- exports.preprocess = preprocessType;
3759
- const pipelineType = ZodPipeline.create;
3760
- exports.pipeline = pipelineType;
3761
- const ostring = () => stringType().optional();
3762
- exports.ostring = ostring;
3763
- const onumber = () => numberType().optional();
3764
- exports.onumber = onumber;
3765
- const oboolean = () => booleanType().optional();
3766
- exports.oboolean = oboolean;
3767
- exports.coerce = {
3768
- string: ((arg) => ZodString.create({ ...arg, coerce: true })),
3769
- number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
3770
- boolean: ((arg) => ZodBoolean.create({
3771
- ...arg,
3772
- coerce: true,
3773
- })),
3774
- bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
3775
- date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
3776
- };
3777
- exports.NEVER = parseUtil_js_1.INVALID;