@nocobase/plugin-ai-gigachat 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +99 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +10 -0
- package/dist/client/llm-providers/gigachat/ModelSettings.d.ts +10 -0
- package/dist/client/llm-providers/gigachat/ProviderSettings.d.ts +10 -0
- package/dist/client/llm-providers/gigachat/index.d.ts +10 -0
- package/dist/client/locale.d.ts +3 -0
- package/dist/externalVersion.js +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +48 -0
- package/dist/locale/de-DE.json +1 -0
- package/dist/locale/en-US.json +1 -0
- package/dist/locale/es-ES.json +1 -0
- package/dist/locale/fr-FR.json +1 -0
- package/dist/locale/hu-HU.json +1 -0
- package/dist/locale/id-ID.json +1 -0
- package/dist/locale/it-IT.json +1 -0
- package/dist/locale/ja-JP.json +1 -0
- package/dist/locale/ko-KR.json +1 -0
- package/dist/locale/nl-NL.json +1 -0
- package/dist/locale/pt-BR.json +1 -0
- package/dist/locale/ru-RU.json +1 -0
- package/dist/locale/tr-TR.json +1 -0
- package/dist/locale/uk-UA.json +1 -0
- package/dist/locale/vi-VN.json +1 -0
- package/dist/locale/zh-CN.json +1 -0
- package/dist/locale/zh-TW.json +1 -0
- package/dist/node_modules/gigachat/api/get_balance.d.ts +8 -0
- package/dist/node_modules/gigachat/api/get_balance.js +33 -0
- package/dist/node_modules/gigachat/api/get_file.d.ts +9 -0
- package/dist/node_modules/gigachat/api/get_file.js +32 -0
- package/dist/node_modules/gigachat/api/get_files.d.ts +8 -0
- package/dist/node_modules/gigachat/api/get_files.js +32 -0
- package/dist/node_modules/gigachat/api/get_image.d.ts +10 -0
- package/dist/node_modules/gigachat/api/get_image.js +34 -0
- package/dist/node_modules/gigachat/api/get_model.d.ts +9 -0
- package/dist/node_modules/gigachat/api/get_model.js +32 -0
- package/dist/node_modules/gigachat/api/get_models.d.ts +8 -0
- package/dist/node_modules/gigachat/api/get_models.js +32 -0
- package/dist/node_modules/gigachat/api/index.d.ts +16 -0
- package/dist/node_modules/gigachat/api/index.js +35 -0
- package/dist/node_modules/gigachat/api/post_ai_check.d.ts +10 -0
- package/dist/node_modules/gigachat/api/post_ai_check.js +33 -0
- package/dist/node_modules/gigachat/api/post_auth.d.ts +10 -0
- package/dist/node_modules/gigachat/api/post_auth.js +47 -0
- package/dist/node_modules/gigachat/api/post_chat.d.ts +11 -0
- package/dist/node_modules/gigachat/api/post_chat.js +33 -0
- package/dist/node_modules/gigachat/api/post_embeddings.d.ts +10 -0
- package/dist/node_modules/gigachat/api/post_embeddings.js +33 -0
- package/dist/node_modules/gigachat/api/post_files.d.ts +10 -0
- package/dist/node_modules/gigachat/api/post_files.js +36 -0
- package/dist/node_modules/gigachat/api/post_files_delete.d.ts +9 -0
- package/dist/node_modules/gigachat/api/post_files_delete.js +33 -0
- package/dist/node_modules/gigachat/api/post_token.d.ts +10 -0
- package/dist/node_modules/gigachat/api/post_token.js +36 -0
- package/dist/node_modules/gigachat/api/post_tokens_count.d.ts +10 -0
- package/dist/node_modules/gigachat/api/post_tokens_count.js +34 -0
- package/dist/node_modules/gigachat/api/stream_chat.d.ts +11 -0
- package/dist/node_modules/gigachat/api/stream_chat.js +140 -0
- package/dist/node_modules/gigachat/api/utils.d.ts +9 -0
- package/dist/node_modules/gigachat/api/utils.js +67 -0
- package/dist/node_modules/gigachat/constants.d.ts +3 -0
- package/dist/node_modules/gigachat/constants.js +6 -0
- package/dist/node_modules/gigachat/exceptions.d.ts +12 -0
- package/dist/node_modules/gigachat/exceptions.js +26 -0
- package/dist/node_modules/gigachat/index.d.mts +78 -0
- package/dist/node_modules/gigachat/index.d.ts +78 -0
- package/dist/node_modules/gigachat/index.js +1 -0
- package/dist/node_modules/gigachat/interfaces/access_token.d.ts +8 -0
- package/dist/node_modules/gigachat/interfaces/access_token.js +3 -0
- package/dist/node_modules/gigachat/interfaces/ai_check_result.d.ts +13 -0
- package/dist/node_modules/gigachat/interfaces/ai_check_result.js +3 -0
- package/dist/node_modules/gigachat/interfaces/balance.d.ts +11 -0
- package/dist/node_modules/gigachat/interfaces/balance.js +3 -0
- package/dist/node_modules/gigachat/interfaces/chat.d.ts +33 -0
- package/dist/node_modules/gigachat/interfaces/chat.js +3 -0
- package/dist/node_modules/gigachat/interfaces/chat_completion.d.ts +16 -0
- package/dist/node_modules/gigachat/interfaces/chat_completion.js +3 -0
- package/dist/node_modules/gigachat/interfaces/chat_completion_chunk.d.ts +13 -0
- package/dist/node_modules/gigachat/interfaces/chat_completion_chunk.js +3 -0
- package/dist/node_modules/gigachat/interfaces/chat_function_call.d.ts +11 -0
- package/dist/node_modules/gigachat/interfaces/chat_function_call.js +3 -0
- package/dist/node_modules/gigachat/interfaces/choices.d.ts +11 -0
- package/dist/node_modules/gigachat/interfaces/choices.js +3 -0
- package/dist/node_modules/gigachat/interfaces/choices_chunk.d.ts +11 -0
- package/dist/node_modules/gigachat/interfaces/choices_chunk.js +3 -0
- package/dist/node_modules/gigachat/interfaces/deleted_file.d.ts +8 -0
- package/dist/node_modules/gigachat/interfaces/deleted_file.js +3 -0
- package/dist/node_modules/gigachat/interfaces/embedding.d.ts +13 -0
- package/dist/node_modules/gigachat/interfaces/embedding.js +3 -0
- package/dist/node_modules/gigachat/interfaces/embeddings.d.ts +11 -0
- package/dist/node_modules/gigachat/interfaces/embeddings.js +3 -0
- package/dist/node_modules/gigachat/interfaces/embeddings_usage.d.ts +6 -0
- package/dist/node_modules/gigachat/interfaces/embeddings_usage.js +3 -0
- package/dist/node_modules/gigachat/interfaces/few_shot_example.d.ts +10 -0
- package/dist/node_modules/gigachat/interfaces/few_shot_example.js +3 -0
- package/dist/node_modules/gigachat/interfaces/function.d.ts +18 -0
- package/dist/node_modules/gigachat/interfaces/function.js +3 -0
- package/dist/node_modules/gigachat/interfaces/function_call.d.ts +10 -0
- package/dist/node_modules/gigachat/interfaces/function_call.js +3 -0
- package/dist/node_modules/gigachat/interfaces/function_parameters.d.ts +13 -0
- package/dist/node_modules/gigachat/interfaces/function_parameters.js +3 -0
- package/dist/node_modules/gigachat/interfaces/function_parameters_property.d.ts +18 -0
- package/dist/node_modules/gigachat/interfaces/function_parameters_property.js +3 -0
- package/dist/node_modules/gigachat/interfaces/image.d.ts +6 -0
- package/dist/node_modules/gigachat/interfaces/image.js +3 -0
- package/dist/node_modules/gigachat/interfaces/index.d.ts +31 -0
- package/dist/node_modules/gigachat/interfaces/index.js +47 -0
- package/dist/node_modules/gigachat/interfaces/message.d.ts +22 -0
- package/dist/node_modules/gigachat/interfaces/message.js +3 -0
- package/dist/node_modules/gigachat/interfaces/message_chunk.d.ts +12 -0
- package/dist/node_modules/gigachat/interfaces/message_chunk.js +3 -0
- package/dist/node_modules/gigachat/interfaces/message_role.d.ts +2 -0
- package/dist/node_modules/gigachat/interfaces/message_role.js +3 -0
- package/dist/node_modules/gigachat/interfaces/model.d.ts +10 -0
- package/dist/node_modules/gigachat/interfaces/model.js +3 -0
- package/dist/node_modules/gigachat/interfaces/models.d.ts +9 -0
- package/dist/node_modules/gigachat/interfaces/models.js +3 -0
- package/dist/node_modules/gigachat/interfaces/token.d.ts +8 -0
- package/dist/node_modules/gigachat/interfaces/token.js +3 -0
- package/dist/node_modules/gigachat/interfaces/tokens_count.d.ts +13 -0
- package/dist/node_modules/gigachat/interfaces/tokens_count.js +3 -0
- package/dist/node_modules/gigachat/interfaces/uploaded_file.d.ts +18 -0
- package/dist/node_modules/gigachat/interfaces/uploaded_file.js +3 -0
- package/dist/node_modules/gigachat/interfaces/uploaded_files.d.ts +7 -0
- package/dist/node_modules/gigachat/interfaces/uploaded_files.js +3 -0
- package/dist/node_modules/gigachat/interfaces/usage.d.ts +10 -0
- package/dist/node_modules/gigachat/interfaces/usage.js +3 -0
- package/dist/node_modules/gigachat/interfaces/with_x_headers.d.ts +5 -0
- package/dist/node_modules/gigachat/interfaces/with_x_headers.js +3 -0
- package/dist/node_modules/gigachat/node_modules/axios/dist/axios.js +4353 -0
- package/dist/node_modules/gigachat/node_modules/axios/dist/axios.min.js +5 -0
- package/dist/node_modules/gigachat/node_modules/axios/dist/browser/axios.cjs +3979 -0
- package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.js +4002 -0
- package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/dist/node_modules/gigachat/node_modules/axios/dist/node/axios.cjs +5315 -0
- package/dist/node_modules/gigachat/node_modules/axios/index.d.cts +591 -0
- package/dist/node_modules/gigachat/node_modules/axios/index.d.ts +810 -0
- package/dist/node_modules/gigachat/node_modules/axios/index.js +43 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/adapters.js +126 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/fetch.js +288 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/http.js +898 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/xhr.js +200 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/axios.js +89 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/Axios.js +249 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosError.js +73 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosHeaders.js +314 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/InterceptorManager.js +72 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/buildFullPath.js +22 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/dispatchRequest.js +81 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/mergeConfig.js +119 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/settle.js +27 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/transformData.js +28 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/index.js +161 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/env/data.js +1 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/bind.js +14 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/buildURL.js +64 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/callbackify.js +16 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/combineURLs.js +15 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/composeSignals.js +48 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/cookies.js +53 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToStream.js +112 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAbsoluteURL.js +20 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isURLSameOrigin.js +14 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/null.js +2 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/resolveConfig.js +61 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/spread.js +28 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/throttle.js +44 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toFormData.js +223 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/trackStream.js +87 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/validator.js +99 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/common/utils.js +51 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/index.js +7 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/index.js +38 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/utils.js +863 -0
- package/dist/node_modules/gigachat/node_modules/axios/package.json +220 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/.eslintrc +13 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/.nycrc +9 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/index.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/index.js +14 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/package.json +81 -0
- package/dist/node_modules/gigachat/node_modules/es-define-property/test/index.js +56 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/.eslintrc +16 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/ToObject.js +10 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/index.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/index.js +4 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/isObject.js +6 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/package.json +80 -0
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/test/index.js +38 -0
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/index.js +35 -0
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/package.json +78 -0
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/dist/node_modules/gigachat/node_modules/follow-redirects/debug.js +15 -0
- package/dist/node_modules/gigachat/node_modules/follow-redirects/http.js +1 -0
- package/dist/node_modules/gigachat/node_modules/follow-redirects/https.js +1 -0
- package/dist/node_modules/gigachat/node_modules/follow-redirects/index.js +686 -0
- package/dist/node_modules/gigachat/node_modules/follow-redirects/package.json +58 -0
- package/dist/node_modules/gigachat/node_modules/form-data/License +19 -0
- package/dist/node_modules/gigachat/node_modules/form-data/index.d.ts +62 -0
- package/dist/node_modules/gigachat/node_modules/form-data/lib/browser.js +4 -0
- package/dist/node_modules/gigachat/node_modules/form-data/lib/form_data.js +494 -0
- package/dist/node_modules/gigachat/node_modules/form-data/lib/populate.js +10 -0
- package/dist/node_modules/gigachat/node_modules/form-data/package.json +82 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/.eslintrc +42 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/.nycrc +9 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/index.js +378 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.eslintrc +11 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.nycrc +9 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/index.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/index.js +14 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/package.json +111 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/shams.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/shams.js +45 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/index.js +22 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/tests.js +58 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/package.json +97 -0
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/dist/node_modules/gigachat/node_modules/gopd/.eslintrc +16 -0
- package/dist/node_modules/gigachat/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/dist/node_modules/gigachat/node_modules/gopd/gOPD.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/gopd/gOPD.js +4 -0
- package/dist/node_modules/gigachat/node_modules/gopd/index.d.ts +5 -0
- package/dist/node_modules/gigachat/node_modules/gopd/index.js +15 -0
- package/dist/node_modules/gigachat/node_modules/gopd/package.json +77 -0
- package/dist/node_modules/gigachat/node_modules/gopd/test/index.js +36 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/.eslintrc +5 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/.nycrc +13 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/index.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/index.js +8 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/package.json +108 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/shams.js +8 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/index.js +21 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/tests.js +15 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/index.js +31 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/max.js +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/native.d.ts +6 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/native.js +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/package.json +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/stringify.js +39 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/types.js +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1.js +87 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v4.js +29 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v7.js +69 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/version.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/index.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/max.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/md5.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/md5.js +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/native.d.ts +6 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/native.js +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/nil.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/parse.js +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/regex.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/rng.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/types.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1.js +83 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v3.js +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v35.js +36 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v4.js +27 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v5.js +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6.js +17 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v7.js +65 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/validate.js +5 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/version.js +8 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/index.js +14 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/md5.js +135 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/parse.js +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/rng.js +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1.js +83 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v3.js +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v35.js +36 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v4.js +27 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v5.js +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6.js +17 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v7.js +65 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/validate.js +5 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/version.js +8 -0
- package/dist/node_modules/gigachat/node_modules/uuid/package.json +132 -0
- package/dist/node_modules/gigachat/package.json +1 -0
- package/dist/node_modules/gigachat/settings.d.ts +35 -0
- package/dist/node_modules/gigachat/settings.js +27 -0
- package/dist/node_modules/gigachat/src/api/get_balance.ts +37 -0
- package/dist/node_modules/gigachat/src/api/get_file.ts +40 -0
- package/dist/node_modules/gigachat/src/api/get_files.ts +39 -0
- package/dist/node_modules/gigachat/src/api/get_image.ts +40 -0
- package/dist/node_modules/gigachat/src/api/get_model.ts +37 -0
- package/dist/node_modules/gigachat/src/api/get_models.ts +36 -0
- package/dist/node_modules/gigachat/src/api/index.ts +15 -0
- package/dist/node_modules/gigachat/src/api/post_ai_check.ts +42 -0
- package/dist/node_modules/gigachat/src/api/post_auth.ts +56 -0
- package/dist/node_modules/gigachat/src/api/post_chat.ts +43 -0
- package/dist/node_modules/gigachat/src/api/post_embeddings.ts +42 -0
- package/dist/node_modules/gigachat/src/api/post_files.ts +46 -0
- package/dist/node_modules/gigachat/src/api/post_files_delete.ts +41 -0
- package/dist/node_modules/gigachat/src/api/post_token.ts +42 -0
- package/dist/node_modules/gigachat/src/api/post_tokens_count.ts +44 -0
- package/dist/node_modules/gigachat/src/api/stream_chat.ts +164 -0
- package/dist/node_modules/gigachat/src/api/utils.ts +66 -0
- package/dist/node_modules/gigachat/src/constants.ts +3 -0
- package/dist/node_modules/gigachat/src/exceptions.ts +25 -0
- package/dist/node_modules/gigachat/src/index.ts +389 -0
- package/dist/node_modules/gigachat/src/interfaces/access_token.ts +9 -0
- package/dist/node_modules/gigachat/src/interfaces/ai_check_result.ts +16 -0
- package/dist/node_modules/gigachat/src/interfaces/balance.ts +11 -0
- package/dist/node_modules/gigachat/src/interfaces/chat.ts +46 -0
- package/dist/node_modules/gigachat/src/interfaces/chat_completion.ts +21 -0
- package/dist/node_modules/gigachat/src/interfaces/chat_completion_chunk.ts +17 -0
- package/dist/node_modules/gigachat/src/interfaces/chat_function_call.ts +11 -0
- package/dist/node_modules/gigachat/src/interfaces/choices.ts +14 -0
- package/dist/node_modules/gigachat/src/interfaces/choices_chunk.ts +14 -0
- package/dist/node_modules/gigachat/src/interfaces/deleted_file.ts +8 -0
- package/dist/node_modules/gigachat/src/interfaces/embedding.ts +17 -0
- package/dist/node_modules/gigachat/src/interfaces/embeddings.ts +14 -0
- package/dist/node_modules/gigachat/src/interfaces/embeddings_usage.ts +6 -0
- package/dist/node_modules/gigachat/src/interfaces/few_shot_example.ts +9 -0
- package/dist/node_modules/gigachat/src/interfaces/function.ts +21 -0
- package/dist/node_modules/gigachat/src/interfaces/function_call.ts +9 -0
- package/dist/node_modules/gigachat/src/interfaces/function_parameters.ts +14 -0
- package/dist/node_modules/gigachat/src/interfaces/function_parameters_property.ts +18 -0
- package/dist/node_modules/gigachat/src/interfaces/image.ts +6 -0
- package/dist/node_modules/gigachat/src/interfaces/index.ts +30 -0
- package/dist/node_modules/gigachat/src/interfaces/message.ts +30 -0
- package/dist/node_modules/gigachat/src/interfaces/message_chunk.ts +15 -0
- package/dist/node_modules/gigachat/src/interfaces/message_role.ts +7 -0
- package/dist/node_modules/gigachat/src/interfaces/model.ts +12 -0
- package/dist/node_modules/gigachat/src/interfaces/models.ts +11 -0
- package/dist/node_modules/gigachat/src/interfaces/token.ts +9 -0
- package/dist/node_modules/gigachat/src/interfaces/tokens_count.ts +16 -0
- package/dist/node_modules/gigachat/src/interfaces/uploaded_file.ts +24 -0
- package/dist/node_modules/gigachat/src/interfaces/uploaded_files.ts +8 -0
- package/dist/node_modules/gigachat/src/interfaces/usage.ts +10 -0
- package/dist/node_modules/gigachat/src/interfaces/with_x_headers.ts +5 -0
- package/dist/node_modules/gigachat/src/settings.ts +71 -0
- package/dist/node_modules/langchain-gigachat/LICENSE +21 -0
- package/dist/node_modules/langchain-gigachat/chat_models.cjs +1 -0
- package/dist/node_modules/langchain-gigachat/chat_models.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/chat_models.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/chat_models.js +1 -0
- package/dist/node_modules/langchain-gigachat/dist/chat_models.cjs +628 -0
- package/dist/node_modules/langchain-gigachat/dist/chat_models.d.ts +126 -0
- package/dist/node_modules/langchain-gigachat/dist/chat_models.js +624 -0
- package/dist/node_modules/langchain-gigachat/dist/embeddings.cjs +153 -0
- package/dist/node_modules/langchain-gigachat/dist/embeddings.d.ts +77 -0
- package/dist/node_modules/langchain-gigachat/dist/embeddings.js +149 -0
- package/dist/node_modules/langchain-gigachat/dist/index.cjs +18 -0
- package/dist/node_modules/langchain-gigachat/dist/index.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/dist/index.js +2 -0
- package/dist/node_modules/langchain-gigachat/embeddings.cjs +1 -0
- package/dist/node_modules/langchain-gigachat/embeddings.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/embeddings.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/embeddings.js +1 -0
- package/dist/node_modules/langchain-gigachat/index.cjs +7 -0
- package/dist/node_modules/langchain-gigachat/index.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/index.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/index.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/index.js +31 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/max.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/native.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/native.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/package.json +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/stringify.js +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/types.js +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1.js +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v4.js +29 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v7.js +69 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/version.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/index.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/max.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/md5.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/md5.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/native.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/native.js +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/nil.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/parse.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/regex.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/rng.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/types.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1.js +83 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v3.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v35.js +36 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v4.js +27 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v5.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6.js +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v7.js +65 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/validate.js +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/version.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/index.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/md5.js +135 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/parse.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/rng.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1.js +83 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v3.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v35.js +36 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v4.js +27 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v5.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6.js +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v7.js +65 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/validate.js +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/version.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/package.json +132 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/index.cjs +33 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/index.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/index.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/index.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/package.json +118 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/index.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/types.ts +5136 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/config.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/core.ts +134 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/function.ts +176 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/index.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/util.ts +775 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.cjs +138 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.js +133 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.cjs +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.cjs +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.cjs +33 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.cjs +111 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.cjs +3775 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.d.cts +1031 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.d.ts +1031 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.js +3693 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.js +27 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.js +41 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.cjs +70 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.js +18 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.cjs +33 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.js +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.js +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.cjs +1039 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.d.cts +284 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.d.ts +284 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.js +906 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.cjs +591 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.js +565 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.cjs +67 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.d.cts +49 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.d.ts +49 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.js +61 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.cjs +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.js +35 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.cjs +226 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.js +195 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.cjs +102 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.d.cts +52 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.d.ts +52 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.js +75 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.cjs +44 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.d.cts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.js +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.cjs +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.js +57 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.js +95 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.cjs +56 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.js +1717 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.cjs +539 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.d.cts +183 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.d.ts +183 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.js +493 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.cjs +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.cjs +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.cjs +141 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.js +115 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.cjs +190 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.js +164 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.js +118 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.js +135 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.cjs +145 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.js +122 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.js +122 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.cjs +84 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.js +39 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.js +115 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.js +121 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.js +118 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.js +122 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.js +164 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.js +118 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.js +115 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.js +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.cjs +62 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.js +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.cjs +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.js +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.js +732 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.cjs +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/createIndex.ts +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/package.json +78 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/postcjs.ts +3 -0
- package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/postesm.ts +3 -0
- package/dist/node_modules/langchain-gigachat/package.json +1 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +42 -0
- package/dist/server/llm-providers/gigachat.d.ts +24 -0
- package/dist/server/llm-providers/gigachat.js +109 -0
- package/dist/server/plugin.d.ts +12 -0
- package/dist/server/plugin.js +59 -0
- package/package.json +26 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
var url = require("url");
|
|
2
|
+
var URL = url.URL;
|
|
3
|
+
var http = require("http");
|
|
4
|
+
var https = require("https");
|
|
5
|
+
var Writable = require("stream").Writable;
|
|
6
|
+
var assert = require("assert");
|
|
7
|
+
var debug = require("./debug");
|
|
8
|
+
|
|
9
|
+
// Preventive platform detection
|
|
10
|
+
// istanbul ignore next
|
|
11
|
+
(function detectUnsupportedEnvironment() {
|
|
12
|
+
var looksLikeNode = typeof process !== "undefined";
|
|
13
|
+
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
14
|
+
var looksLikeV8 = isFunction(Error.captureStackTrace);
|
|
15
|
+
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
16
|
+
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
17
|
+
}
|
|
18
|
+
}());
|
|
19
|
+
|
|
20
|
+
// Whether to use the native URL object or the legacy url module
|
|
21
|
+
var useNativeURL = false;
|
|
22
|
+
try {
|
|
23
|
+
assert(new URL(""));
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// URL fields to preserve in copy operations
|
|
30
|
+
var preservedUrlFields = [
|
|
31
|
+
"auth",
|
|
32
|
+
"host",
|
|
33
|
+
"hostname",
|
|
34
|
+
"href",
|
|
35
|
+
"path",
|
|
36
|
+
"pathname",
|
|
37
|
+
"port",
|
|
38
|
+
"protocol",
|
|
39
|
+
"query",
|
|
40
|
+
"search",
|
|
41
|
+
"hash",
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
// Create handlers that pass events from native requests
|
|
45
|
+
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
46
|
+
var eventHandlers = Object.create(null);
|
|
47
|
+
events.forEach(function (event) {
|
|
48
|
+
eventHandlers[event] = function (arg1, arg2, arg3) {
|
|
49
|
+
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// Error types with codes
|
|
54
|
+
var InvalidUrlError = createErrorType(
|
|
55
|
+
"ERR_INVALID_URL",
|
|
56
|
+
"Invalid URL",
|
|
57
|
+
TypeError
|
|
58
|
+
);
|
|
59
|
+
var RedirectionError = createErrorType(
|
|
60
|
+
"ERR_FR_REDIRECTION_FAILURE",
|
|
61
|
+
"Redirected request failed"
|
|
62
|
+
);
|
|
63
|
+
var TooManyRedirectsError = createErrorType(
|
|
64
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
65
|
+
"Maximum number of redirects exceeded",
|
|
66
|
+
RedirectionError
|
|
67
|
+
);
|
|
68
|
+
var MaxBodyLengthExceededError = createErrorType(
|
|
69
|
+
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
70
|
+
"Request body larger than maxBodyLength limit"
|
|
71
|
+
);
|
|
72
|
+
var WriteAfterEndError = createErrorType(
|
|
73
|
+
"ERR_STREAM_WRITE_AFTER_END",
|
|
74
|
+
"write after end"
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
// istanbul ignore next
|
|
78
|
+
var destroy = Writable.prototype.destroy || noop;
|
|
79
|
+
|
|
80
|
+
// An HTTP(S) request that can be redirected
|
|
81
|
+
function RedirectableRequest(options, responseCallback) {
|
|
82
|
+
// Initialize the request
|
|
83
|
+
Writable.call(this);
|
|
84
|
+
this._sanitizeOptions(options);
|
|
85
|
+
this._options = options;
|
|
86
|
+
this._ended = false;
|
|
87
|
+
this._ending = false;
|
|
88
|
+
this._redirectCount = 0;
|
|
89
|
+
this._redirects = [];
|
|
90
|
+
this._requestBodyLength = 0;
|
|
91
|
+
this._requestBodyBuffers = [];
|
|
92
|
+
|
|
93
|
+
// Attach a callback if passed
|
|
94
|
+
if (responseCallback) {
|
|
95
|
+
this.on("response", responseCallback);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// React to responses of native requests
|
|
99
|
+
var self = this;
|
|
100
|
+
this._onNativeResponse = function (response) {
|
|
101
|
+
try {
|
|
102
|
+
self._processResponse(response);
|
|
103
|
+
}
|
|
104
|
+
catch (cause) {
|
|
105
|
+
self.emit("error", cause instanceof RedirectionError ?
|
|
106
|
+
cause : new RedirectionError({ cause: cause }));
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// Perform the first request
|
|
111
|
+
this._performRequest();
|
|
112
|
+
}
|
|
113
|
+
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
114
|
+
|
|
115
|
+
RedirectableRequest.prototype.abort = function () {
|
|
116
|
+
destroyRequest(this._currentRequest);
|
|
117
|
+
this._currentRequest.abort();
|
|
118
|
+
this.emit("abort");
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
RedirectableRequest.prototype.destroy = function (error) {
|
|
122
|
+
destroyRequest(this._currentRequest, error);
|
|
123
|
+
destroy.call(this, error);
|
|
124
|
+
return this;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// Writes buffered data to the current native request
|
|
128
|
+
RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
129
|
+
// Writing is not allowed if end has been called
|
|
130
|
+
if (this._ending) {
|
|
131
|
+
throw new WriteAfterEndError();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Validate input and shift parameters if necessary
|
|
135
|
+
if (!isString(data) && !isBuffer(data)) {
|
|
136
|
+
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
137
|
+
}
|
|
138
|
+
if (isFunction(encoding)) {
|
|
139
|
+
callback = encoding;
|
|
140
|
+
encoding = null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Ignore empty buffers, since writing them doesn't invoke the callback
|
|
144
|
+
// https://github.com/nodejs/node/issues/22066
|
|
145
|
+
if (data.length === 0) {
|
|
146
|
+
if (callback) {
|
|
147
|
+
callback();
|
|
148
|
+
}
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
// Only write when we don't exceed the maximum body length
|
|
152
|
+
if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {
|
|
153
|
+
this._requestBodyLength += data.length;
|
|
154
|
+
this._requestBodyBuffers.push({ data: data, encoding: encoding });
|
|
155
|
+
this._currentRequest.write(data, encoding, callback);
|
|
156
|
+
}
|
|
157
|
+
// Error when we exceed the maximum body length
|
|
158
|
+
else {
|
|
159
|
+
this.emit("error", new MaxBodyLengthExceededError());
|
|
160
|
+
this.abort();
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// Ends the current native request
|
|
165
|
+
RedirectableRequest.prototype.end = function (data, encoding, callback) {
|
|
166
|
+
// Shift parameters if necessary
|
|
167
|
+
if (isFunction(data)) {
|
|
168
|
+
callback = data;
|
|
169
|
+
data = encoding = null;
|
|
170
|
+
}
|
|
171
|
+
else if (isFunction(encoding)) {
|
|
172
|
+
callback = encoding;
|
|
173
|
+
encoding = null;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Write data if needed and end
|
|
177
|
+
if (!data) {
|
|
178
|
+
this._ended = this._ending = true;
|
|
179
|
+
this._currentRequest.end(null, null, callback);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
var self = this;
|
|
183
|
+
var currentRequest = this._currentRequest;
|
|
184
|
+
this.write(data, encoding, function () {
|
|
185
|
+
self._ended = true;
|
|
186
|
+
currentRequest.end(null, null, callback);
|
|
187
|
+
});
|
|
188
|
+
this._ending = true;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// Sets a header value on the current native request
|
|
193
|
+
RedirectableRequest.prototype.setHeader = function (name, value) {
|
|
194
|
+
this._options.headers[name] = value;
|
|
195
|
+
this._currentRequest.setHeader(name, value);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// Clears a header value on the current native request
|
|
199
|
+
RedirectableRequest.prototype.removeHeader = function (name) {
|
|
200
|
+
delete this._options.headers[name];
|
|
201
|
+
this._currentRequest.removeHeader(name);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// Global timeout for all underlying requests
|
|
205
|
+
RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
|
|
206
|
+
var self = this;
|
|
207
|
+
|
|
208
|
+
// Destroys the socket on timeout
|
|
209
|
+
function destroyOnTimeout(socket) {
|
|
210
|
+
socket.setTimeout(msecs);
|
|
211
|
+
socket.removeListener("timeout", socket.destroy);
|
|
212
|
+
socket.addListener("timeout", socket.destroy);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Sets up a timer to trigger a timeout event
|
|
216
|
+
function startTimer(socket) {
|
|
217
|
+
if (self._timeout) {
|
|
218
|
+
clearTimeout(self._timeout);
|
|
219
|
+
}
|
|
220
|
+
self._timeout = setTimeout(function () {
|
|
221
|
+
self.emit("timeout");
|
|
222
|
+
clearTimer();
|
|
223
|
+
}, msecs);
|
|
224
|
+
destroyOnTimeout(socket);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Stops a timeout from triggering
|
|
228
|
+
function clearTimer() {
|
|
229
|
+
// Clear the timeout
|
|
230
|
+
if (self._timeout) {
|
|
231
|
+
clearTimeout(self._timeout);
|
|
232
|
+
self._timeout = null;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Clean up all attached listeners
|
|
236
|
+
self.removeListener("abort", clearTimer);
|
|
237
|
+
self.removeListener("error", clearTimer);
|
|
238
|
+
self.removeListener("response", clearTimer);
|
|
239
|
+
self.removeListener("close", clearTimer);
|
|
240
|
+
if (callback) {
|
|
241
|
+
self.removeListener("timeout", callback);
|
|
242
|
+
}
|
|
243
|
+
if (!self.socket) {
|
|
244
|
+
self._currentRequest.removeListener("socket", startTimer);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Attach callback if passed
|
|
249
|
+
if (callback) {
|
|
250
|
+
this.on("timeout", callback);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Start the timer if or when the socket is opened
|
|
254
|
+
if (this.socket) {
|
|
255
|
+
startTimer(this.socket);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
this._currentRequest.once("socket", startTimer);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// Clean up on events
|
|
262
|
+
this.on("socket", destroyOnTimeout);
|
|
263
|
+
this.on("abort", clearTimer);
|
|
264
|
+
this.on("error", clearTimer);
|
|
265
|
+
this.on("response", clearTimer);
|
|
266
|
+
this.on("close", clearTimer);
|
|
267
|
+
|
|
268
|
+
return this;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
// Proxy all other public ClientRequest methods
|
|
272
|
+
[
|
|
273
|
+
"flushHeaders", "getHeader",
|
|
274
|
+
"setNoDelay", "setSocketKeepAlive",
|
|
275
|
+
].forEach(function (method) {
|
|
276
|
+
RedirectableRequest.prototype[method] = function (a, b) {
|
|
277
|
+
return this._currentRequest[method](a, b);
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
// Proxy all public ClientRequest properties
|
|
282
|
+
["aborted", "connection", "socket"].forEach(function (property) {
|
|
283
|
+
Object.defineProperty(RedirectableRequest.prototype, property, {
|
|
284
|
+
get: function () { return this._currentRequest[property]; },
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
RedirectableRequest.prototype._sanitizeOptions = function (options) {
|
|
289
|
+
// Ensure headers are always present
|
|
290
|
+
if (!options.headers) {
|
|
291
|
+
options.headers = {};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// Since http.request treats host as an alias of hostname,
|
|
295
|
+
// but the url module interprets host as hostname plus port,
|
|
296
|
+
// eliminate the host property to avoid confusion.
|
|
297
|
+
if (options.host) {
|
|
298
|
+
// Use hostname if set, because it has precedence
|
|
299
|
+
if (!options.hostname) {
|
|
300
|
+
options.hostname = options.host;
|
|
301
|
+
}
|
|
302
|
+
delete options.host;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Complete the URL object when necessary
|
|
306
|
+
if (!options.pathname && options.path) {
|
|
307
|
+
var searchPos = options.path.indexOf("?");
|
|
308
|
+
if (searchPos < 0) {
|
|
309
|
+
options.pathname = options.path;
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
options.pathname = options.path.substring(0, searchPos);
|
|
313
|
+
options.search = options.path.substring(searchPos);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
// Executes the next native request (initial or redirect)
|
|
320
|
+
RedirectableRequest.prototype._performRequest = function () {
|
|
321
|
+
// Load the native protocol
|
|
322
|
+
var protocol = this._options.protocol;
|
|
323
|
+
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
324
|
+
if (!nativeProtocol) {
|
|
325
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// If specified, use the agent corresponding to the protocol
|
|
329
|
+
// (HTTP and HTTPS use different types of agents)
|
|
330
|
+
if (this._options.agents) {
|
|
331
|
+
var scheme = protocol.slice(0, -1);
|
|
332
|
+
this._options.agent = this._options.agents[scheme];
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// Create the native request and set up its event handlers
|
|
336
|
+
var request = this._currentRequest =
|
|
337
|
+
nativeProtocol.request(this._options, this._onNativeResponse);
|
|
338
|
+
request._redirectable = this;
|
|
339
|
+
for (var event of events) {
|
|
340
|
+
request.on(event, eventHandlers[event]);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// RFC7230§5.3.1: When making a request directly to an origin server, […]
|
|
344
|
+
// a client MUST send only the absolute path […] as the request-target.
|
|
345
|
+
this._currentUrl = /^\//.test(this._options.path) ?
|
|
346
|
+
url.format(this._options) :
|
|
347
|
+
// When making a request to a proxy, […]
|
|
348
|
+
// a client MUST send the target URI in absolute-form […].
|
|
349
|
+
this._options.path;
|
|
350
|
+
|
|
351
|
+
// End a redirected request
|
|
352
|
+
// (The first request must be ended explicitly with RedirectableRequest#end)
|
|
353
|
+
if (this._isRedirect) {
|
|
354
|
+
// Write the request entity and end
|
|
355
|
+
var i = 0;
|
|
356
|
+
var self = this;
|
|
357
|
+
var buffers = this._requestBodyBuffers;
|
|
358
|
+
(function writeNext(error) {
|
|
359
|
+
// Only write if this request has not been redirected yet
|
|
360
|
+
// istanbul ignore else
|
|
361
|
+
if (request === self._currentRequest) {
|
|
362
|
+
// Report any write errors
|
|
363
|
+
// istanbul ignore if
|
|
364
|
+
if (error) {
|
|
365
|
+
self.emit("error", error);
|
|
366
|
+
}
|
|
367
|
+
// Write the next buffer if there are still left
|
|
368
|
+
else if (i < buffers.length) {
|
|
369
|
+
var buffer = buffers[i++];
|
|
370
|
+
// istanbul ignore else
|
|
371
|
+
if (!request.finished) {
|
|
372
|
+
request.write(buffer.data, buffer.encoding, writeNext);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
// End the request if `end` has been called on us
|
|
376
|
+
else if (self._ended) {
|
|
377
|
+
request.end();
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}());
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
// Processes a response from the current native request
|
|
385
|
+
RedirectableRequest.prototype._processResponse = function (response) {
|
|
386
|
+
// Store the redirected response
|
|
387
|
+
var statusCode = response.statusCode;
|
|
388
|
+
if (this._options.trackRedirects) {
|
|
389
|
+
this._redirects.push({
|
|
390
|
+
url: this._currentUrl,
|
|
391
|
+
headers: response.headers,
|
|
392
|
+
statusCode: statusCode,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// RFC7231§6.4: The 3xx (Redirection) class of status code indicates
|
|
397
|
+
// that further action needs to be taken by the user agent in order to
|
|
398
|
+
// fulfill the request. If a Location header field is provided,
|
|
399
|
+
// the user agent MAY automatically redirect its request to the URI
|
|
400
|
+
// referenced by the Location field value,
|
|
401
|
+
// even if the specific status code is not understood.
|
|
402
|
+
|
|
403
|
+
// If the response is not a redirect; return it as-is
|
|
404
|
+
var location = response.headers.location;
|
|
405
|
+
if (!location || this._options.followRedirects === false ||
|
|
406
|
+
statusCode < 300 || statusCode >= 400) {
|
|
407
|
+
response.responseUrl = this._currentUrl;
|
|
408
|
+
response.redirects = this._redirects;
|
|
409
|
+
this.emit("response", response);
|
|
410
|
+
|
|
411
|
+
// Clean up
|
|
412
|
+
this._requestBodyBuffers = [];
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// The response is a redirect, so abort the current request
|
|
417
|
+
destroyRequest(this._currentRequest);
|
|
418
|
+
// Discard the remainder of the response to avoid waiting for data
|
|
419
|
+
response.destroy();
|
|
420
|
+
|
|
421
|
+
// RFC7231§6.4: A client SHOULD detect and intervene
|
|
422
|
+
// in cyclical redirections (i.e., "infinite" redirection loops).
|
|
423
|
+
if (++this._redirectCount > this._options.maxRedirects) {
|
|
424
|
+
throw new TooManyRedirectsError();
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// Store the request headers if applicable
|
|
428
|
+
var requestHeaders;
|
|
429
|
+
var beforeRedirect = this._options.beforeRedirect;
|
|
430
|
+
if (beforeRedirect) {
|
|
431
|
+
requestHeaders = Object.assign({
|
|
432
|
+
// The Host header was set by nativeProtocol.request
|
|
433
|
+
Host: response.req.getHeader("host"),
|
|
434
|
+
}, this._options.headers);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// RFC7231§6.4: Automatic redirection needs to done with
|
|
438
|
+
// care for methods not known to be safe, […]
|
|
439
|
+
// RFC7231§6.4.2–3: For historical reasons, a user agent MAY change
|
|
440
|
+
// the request method from POST to GET for the subsequent request.
|
|
441
|
+
var method = this._options.method;
|
|
442
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" ||
|
|
443
|
+
// RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
444
|
+
// the server is redirecting the user agent to a different resource […]
|
|
445
|
+
// A user agent can perform a retrieval request targeting that URI
|
|
446
|
+
// (a GET or HEAD request if using HTTP) […]
|
|
447
|
+
(statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
448
|
+
this._options.method = "GET";
|
|
449
|
+
// Drop a possible entity and headers related to it
|
|
450
|
+
this._requestBodyBuffers = [];
|
|
451
|
+
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// Drop the Host header, as the redirect might lead to a different host
|
|
455
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
456
|
+
|
|
457
|
+
// If the redirect is relative, carry over the host of the last request
|
|
458
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
459
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
460
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl :
|
|
461
|
+
url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
462
|
+
|
|
463
|
+
// Create the redirected request
|
|
464
|
+
var redirectUrl = resolveUrl(location, currentUrl);
|
|
465
|
+
debug("redirecting to", redirectUrl.href);
|
|
466
|
+
this._isRedirect = true;
|
|
467
|
+
spreadUrlObject(redirectUrl, this._options);
|
|
468
|
+
|
|
469
|
+
// Drop confidential headers when redirecting to a less secure protocol
|
|
470
|
+
// or to a different domain that is not a superdomain
|
|
471
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol &&
|
|
472
|
+
redirectUrl.protocol !== "https:" ||
|
|
473
|
+
redirectUrl.host !== currentHost &&
|
|
474
|
+
!isSubdomain(redirectUrl.host, currentHost)) {
|
|
475
|
+
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// Evaluate the beforeRedirect callback
|
|
479
|
+
if (isFunction(beforeRedirect)) {
|
|
480
|
+
var responseDetails = {
|
|
481
|
+
headers: response.headers,
|
|
482
|
+
statusCode: statusCode,
|
|
483
|
+
};
|
|
484
|
+
var requestDetails = {
|
|
485
|
+
url: currentUrl,
|
|
486
|
+
method: method,
|
|
487
|
+
headers: requestHeaders,
|
|
488
|
+
};
|
|
489
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
490
|
+
this._sanitizeOptions(this._options);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// Perform the redirected request
|
|
494
|
+
this._performRequest();
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
// Wraps the key/value object of protocols with redirect functionality
|
|
498
|
+
function wrap(protocols) {
|
|
499
|
+
// Default settings
|
|
500
|
+
var exports = {
|
|
501
|
+
maxRedirects: 21,
|
|
502
|
+
maxBodyLength: 10 * 1024 * 1024,
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
// Wrap each protocol
|
|
506
|
+
var nativeProtocols = {};
|
|
507
|
+
Object.keys(protocols).forEach(function (scheme) {
|
|
508
|
+
var protocol = scheme + ":";
|
|
509
|
+
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
510
|
+
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
|
511
|
+
|
|
512
|
+
// Executes a request, following redirects
|
|
513
|
+
function request(input, options, callback) {
|
|
514
|
+
// Parse parameters, ensuring that input is an object
|
|
515
|
+
if (isURL(input)) {
|
|
516
|
+
input = spreadUrlObject(input);
|
|
517
|
+
}
|
|
518
|
+
else if (isString(input)) {
|
|
519
|
+
input = spreadUrlObject(parseUrl(input));
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
callback = options;
|
|
523
|
+
options = validateUrl(input);
|
|
524
|
+
input = { protocol: protocol };
|
|
525
|
+
}
|
|
526
|
+
if (isFunction(options)) {
|
|
527
|
+
callback = options;
|
|
528
|
+
options = null;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// Set defaults
|
|
532
|
+
options = Object.assign({
|
|
533
|
+
maxRedirects: exports.maxRedirects,
|
|
534
|
+
maxBodyLength: exports.maxBodyLength,
|
|
535
|
+
}, input, options);
|
|
536
|
+
options.nativeProtocols = nativeProtocols;
|
|
537
|
+
if (!isString(options.host) && !isString(options.hostname)) {
|
|
538
|
+
options.hostname = "::1";
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
542
|
+
debug("options", options);
|
|
543
|
+
return new RedirectableRequest(options, callback);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// Executes a GET request, following redirects
|
|
547
|
+
function get(input, options, callback) {
|
|
548
|
+
var wrappedRequest = wrappedProtocol.request(input, options, callback);
|
|
549
|
+
wrappedRequest.end();
|
|
550
|
+
return wrappedRequest;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
// Expose the properties on the wrapped protocol
|
|
554
|
+
Object.defineProperties(wrappedProtocol, {
|
|
555
|
+
request: { value: request, configurable: true, enumerable: true, writable: true },
|
|
556
|
+
get: { value: get, configurable: true, enumerable: true, writable: true },
|
|
557
|
+
});
|
|
558
|
+
});
|
|
559
|
+
return exports;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
function noop() { /* empty */ }
|
|
563
|
+
|
|
564
|
+
function parseUrl(input) {
|
|
565
|
+
var parsed;
|
|
566
|
+
// istanbul ignore else
|
|
567
|
+
if (useNativeURL) {
|
|
568
|
+
parsed = new URL(input);
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
// Ensure the URL is valid and absolute
|
|
572
|
+
parsed = validateUrl(url.parse(input));
|
|
573
|
+
if (!isString(parsed.protocol)) {
|
|
574
|
+
throw new InvalidUrlError({ input });
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
return parsed;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function resolveUrl(relative, base) {
|
|
581
|
+
// istanbul ignore next
|
|
582
|
+
return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
function validateUrl(input) {
|
|
586
|
+
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
587
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
588
|
+
}
|
|
589
|
+
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
590
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
591
|
+
}
|
|
592
|
+
return input;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
function spreadUrlObject(urlObject, target) {
|
|
596
|
+
var spread = target || {};
|
|
597
|
+
for (var key of preservedUrlFields) {
|
|
598
|
+
spread[key] = urlObject[key];
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// Fix IPv6 hostname
|
|
602
|
+
if (spread.hostname.startsWith("[")) {
|
|
603
|
+
spread.hostname = spread.hostname.slice(1, -1);
|
|
604
|
+
}
|
|
605
|
+
// Ensure port is a number
|
|
606
|
+
if (spread.port !== "") {
|
|
607
|
+
spread.port = Number(spread.port);
|
|
608
|
+
}
|
|
609
|
+
// Concatenate path
|
|
610
|
+
spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;
|
|
611
|
+
|
|
612
|
+
return spread;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
function removeMatchingHeaders(regex, headers) {
|
|
616
|
+
var lastValue;
|
|
617
|
+
for (var header in headers) {
|
|
618
|
+
if (regex.test(header)) {
|
|
619
|
+
lastValue = headers[header];
|
|
620
|
+
delete headers[header];
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
return (lastValue === null || typeof lastValue === "undefined") ?
|
|
624
|
+
undefined : String(lastValue).trim();
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
function createErrorType(code, message, baseClass) {
|
|
628
|
+
// Create constructor
|
|
629
|
+
function CustomError(properties) {
|
|
630
|
+
// istanbul ignore else
|
|
631
|
+
if (isFunction(Error.captureStackTrace)) {
|
|
632
|
+
Error.captureStackTrace(this, this.constructor);
|
|
633
|
+
}
|
|
634
|
+
Object.assign(this, properties || {});
|
|
635
|
+
this.code = code;
|
|
636
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// Attach constructor and set default properties
|
|
640
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
641
|
+
Object.defineProperties(CustomError.prototype, {
|
|
642
|
+
constructor: {
|
|
643
|
+
value: CustomError,
|
|
644
|
+
enumerable: false,
|
|
645
|
+
},
|
|
646
|
+
name: {
|
|
647
|
+
value: "Error [" + code + "]",
|
|
648
|
+
enumerable: false,
|
|
649
|
+
},
|
|
650
|
+
});
|
|
651
|
+
return CustomError;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
function destroyRequest(request, error) {
|
|
655
|
+
for (var event of events) {
|
|
656
|
+
request.removeListener(event, eventHandlers[event]);
|
|
657
|
+
}
|
|
658
|
+
request.on("error", noop);
|
|
659
|
+
request.destroy(error);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
function isSubdomain(subdomain, domain) {
|
|
663
|
+
assert(isString(subdomain) && isString(domain));
|
|
664
|
+
var dot = subdomain.length - domain.length - 1;
|
|
665
|
+
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
function isString(value) {
|
|
669
|
+
return typeof value === "string" || value instanceof String;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
function isFunction(value) {
|
|
673
|
+
return typeof value === "function";
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
function isBuffer(value) {
|
|
677
|
+
return typeof value === "object" && ("length" in value);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
function isURL(value) {
|
|
681
|
+
return URL && value instanceof URL;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
// Exports
|
|
685
|
+
module.exports = wrap({ http: http, https: https });
|
|
686
|
+
module.exports.wrap = wrap;
|