From 94c84d8dea474fc04d653dc45229c7be648f26cf Mon Sep 17 00:00:00 2001 From: IamZhenHong <109903639+IamZhenHong@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:29:04 +0800 Subject: [PATCH 1/2] Implement AI Copilot for collab --- backend/collaboration-service/consumer.js | 139 + .../controllers/copilotControllers.js | 16 + backend/collaboration-service/index.js | 10 + backend/collaboration-service/mq.js | 33 + .../collaboration-service/package-lock.json | 196 +- backend/collaboration-service/package.json | 6 +- backend/collaboration-service/routes/room.js | 6 + backend/collaboration-service/ws.js | 18 +- backend/matching-service/consumer.js | 41 +- frontend/src/api/CopilotApi.js | 21 + .../src/pages/student/CollaborationRoom.js | 288 ++ node_modules/.package-lock.json | 23 + node_modules/.yarn-integrity | 16 + .../mistralai/.devcontainer/README.md | 35 + node_modules/@mistralai/mistralai/LICENSE | 201 + node_modules/@mistralai/mistralai/README.md | 646 +++ node_modules/@mistralai/mistralai/core.d.ts | 10 + .../@mistralai/mistralai/core.d.ts.map | 1 + node_modules/@mistralai/mistralai/core.js | 17 + node_modules/@mistralai/mistralai/core.js.map | 1 + .../mistralai/docs/sdks/agents/README.md | 194 + .../mistralai/docs/sdks/chat/README.md | 194 + .../mistralai/docs/sdks/embeddings/README.md | 89 + .../mistralai/docs/sdks/files/README.md | 321 ++ .../mistralai/docs/sdks/fim/README.md | 178 + .../mistralai/docs/sdks/finetuning/README.md | 2 + .../mistralai/docs/sdks/jobs/README.md | 394 ++ .../mistralai/docs/sdks/mistral/README.md | 5 + .../mistralai/docs/sdks/models/README.md | 476 ++ .../@mistralai/mistralai/examples/README.md | 29 + .../examples/src/async_chat_no_streaming.ts | 15 + .../examples/src/async_chat_streaming.ts | 27 + .../examples/src/async_embeddings.ts | 20 + .../mistralai/examples/src/async_files.ts | 36 + .../examples/src/async_function_calling.ts | 147 + .../src/async_function_calling_streaming.ts | 180 + .../mistralai/examples/src/async_jobs.ts | 42 + .../examples/src/async_json_format.ts | 16 + .../examples/src/async_list_models.ts | 14 + .../src/azure/async_chat_no_streaming.ts | 27 + .../src/gcp/async_chat_no_streaming.ts | 23 + .../@mistralai/mistralai/examples/test.ts | 35 + .../mistralai/funcs/agentsComplete.d.ts | 13 + .../mistralai/funcs/agentsComplete.d.ts.map | 1 + .../mistralai/funcs/agentsComplete.js | 93 + .../mistralai/funcs/agentsComplete.js.map | 1 + .../mistralai/funcs/agentsStream.d.ts | 17 + .../mistralai/funcs/agentsStream.d.ts.map | 1 + .../mistralai/funcs/agentsStream.js | 106 + .../mistralai/funcs/agentsStream.js.map | 1 + .../mistralai/funcs/chatComplete.d.ts | 13 + .../mistralai/funcs/chatComplete.d.ts.map | 1 + .../mistralai/funcs/chatComplete.js | 93 + .../mistralai/funcs/chatComplete.js.map | 1 + .../mistralai/funcs/chatStream.d.ts | 17 + .../mistralai/funcs/chatStream.d.ts.map | 1 + .../@mistralai/mistralai/funcs/chatStream.js | 106 + .../mistralai/funcs/chatStream.js.map | 1 + .../mistralai/funcs/embeddingsCreate.d.ts | 16 + .../mistralai/funcs/embeddingsCreate.d.ts.map | 1 + .../mistralai/funcs/embeddingsCreate.js | 96 + .../mistralai/funcs/embeddingsCreate.js.map | 1 + .../mistralai/funcs/filesDelete.d.ts | 16 + .../mistralai/funcs/filesDelete.d.ts.map | 1 + .../@mistralai/mistralai/funcs/filesDelete.js | 98 + .../mistralai/funcs/filesDelete.js.map | 1 + .../@mistralai/mistralai/funcs/filesList.d.ts | 15 + .../mistralai/funcs/filesList.d.ts.map | 1 + .../@mistralai/mistralai/funcs/filesList.js | 81 + .../mistralai/funcs/filesList.js.map | 1 + .../mistralai/funcs/filesRetrieve.d.ts | 16 + .../mistralai/funcs/filesRetrieve.d.ts.map | 1 + .../mistralai/funcs/filesRetrieve.js | 98 + .../mistralai/funcs/filesRetrieve.js.map | 1 + .../mistralai/funcs/filesUpload.d.ts | 20 + .../mistralai/funcs/filesUpload.d.ts.map | 1 + .../@mistralai/mistralai/funcs/filesUpload.js | 113 + .../mistralai/funcs/filesUpload.js.map | 1 + .../mistralai/funcs/fimComplete.d.ts | 16 + .../mistralai/funcs/fimComplete.d.ts.map | 1 + .../@mistralai/mistralai/funcs/fimComplete.js | 96 + .../mistralai/funcs/fimComplete.js.map | 1 + .../@mistralai/mistralai/funcs/fimStream.d.ts | 17 + .../mistralai/funcs/fimStream.d.ts.map | 1 + .../@mistralai/mistralai/funcs/fimStream.js | 106 + .../mistralai/funcs/fimStream.js.map | 1 + .../mistralai/funcs/fineTuningJobsCancel.d.ts | 16 + .../funcs/fineTuningJobsCancel.d.ts.map | 1 + .../mistralai/funcs/fineTuningJobsCancel.js | 99 + .../funcs/fineTuningJobsCancel.js.map | 1 + .../mistralai/funcs/fineTuningJobsCreate.d.ts | 16 + .../funcs/fineTuningJobsCreate.d.ts.map | 1 + .../mistralai/funcs/fineTuningJobsCreate.js | 94 + .../funcs/fineTuningJobsCreate.js.map | 1 + .../mistralai/funcs/fineTuningJobsGet.d.ts | 16 + .../funcs/fineTuningJobsGet.d.ts.map | 1 + .../mistralai/funcs/fineTuningJobsGet.js | 99 + .../mistralai/funcs/fineTuningJobsGet.js.map | 1 + .../mistralai/funcs/fineTuningJobsList.d.ts | 16 + .../funcs/fineTuningJobsList.d.ts.map | 1 + .../mistralai/funcs/fineTuningJobsList.js | 105 + .../mistralai/funcs/fineTuningJobsList.js.map | 1 + .../mistralai/funcs/fineTuningJobsStart.d.ts | 16 + .../funcs/fineTuningJobsStart.d.ts.map | 1 + .../mistralai/funcs/fineTuningJobsStart.js | 99 + .../funcs/fineTuningJobsStart.js.map | 1 + .../mistralai/funcs/modelsArchive.d.ts | 16 + .../mistralai/funcs/modelsArchive.d.ts.map | 1 + .../mistralai/funcs/modelsArchive.js | 100 + .../mistralai/funcs/modelsArchive.js.map | 1 + .../mistralai/funcs/modelsDelete.d.ts | 17 + .../mistralai/funcs/modelsDelete.d.ts.map | 1 + .../mistralai/funcs/modelsDelete.js | 102 + .../mistralai/funcs/modelsDelete.js.map | 1 + .../mistralai/funcs/modelsList.d.ts | 16 + .../mistralai/funcs/modelsList.d.ts.map | 1 + .../@mistralai/mistralai/funcs/modelsList.js | 85 + .../mistralai/funcs/modelsList.js.map | 1 + .../mistralai/funcs/modelsRetrieve.d.ts | 16 + .../mistralai/funcs/modelsRetrieve.d.ts.map | 1 + .../mistralai/funcs/modelsRetrieve.js | 102 + .../mistralai/funcs/modelsRetrieve.js.map | 1 + .../mistralai/funcs/modelsUnarchive.d.ts | 16 + .../mistralai/funcs/modelsUnarchive.d.ts.map | 1 + .../mistralai/funcs/modelsUnarchive.js | 100 + .../mistralai/funcs/modelsUnarchive.js.map | 1 + .../mistralai/funcs/modelsUpdate.d.ts | 16 + .../mistralai/funcs/modelsUpdate.d.ts.map | 1 + .../mistralai/funcs/modelsUpdate.js | 103 + .../mistralai/funcs/modelsUpdate.js.map | 1 + .../mistralai/hooks/custom_user_agent.d.ts | 5 + .../hooks/custom_user_agent.d.ts.map | 1 + .../mistralai/hooks/custom_user_agent.js | 20 + .../mistralai/hooks/custom_user_agent.js.map | 1 + .../mistralai/hooks/deprecation_warning.d.ts | 5 + .../hooks/deprecation_warning.d.ts.map | 1 + .../mistralai/hooks/deprecation_warning.js | 17 + .../hooks/deprecation_warning.js.map | 1 + .../@mistralai/mistralai/hooks/hooks.d.ts | 24 + .../@mistralai/mistralai/hooks/hooks.d.ts.map | 1 + .../@mistralai/mistralai/hooks/hooks.js | 68 + .../@mistralai/mistralai/hooks/hooks.js.map | 1 + .../@mistralai/mistralai/hooks/index.d.ts | 3 + .../@mistralai/mistralai/hooks/index.d.ts.map | 1 + .../@mistralai/mistralai/hooks/index.js | 22 + .../@mistralai/mistralai/hooks/index.js.map | 1 + .../mistralai/hooks/registration.d.ts | 3 + .../mistralai/hooks/registration.d.ts.map | 1 + .../mistralai/hooks/registration.js | 20 + .../mistralai/hooks/registration.js.map | 1 + .../@mistralai/mistralai/hooks/types.d.ts | 72 + .../@mistralai/mistralai/hooks/types.d.ts.map | 1 + .../@mistralai/mistralai/hooks/types.js | 6 + .../@mistralai/mistralai/hooks/types.js.map | 1 + node_modules/@mistralai/mistralai/index.d.ts | 4 + .../@mistralai/mistralai/index.d.ts.map | 1 + node_modules/@mistralai/mistralai/index.js | 36 + .../@mistralai/mistralai/index.js.map | 1 + .../@mistralai/mistralai/lib/base64.d.ts | 10 + .../@mistralai/mistralai/lib/base64.d.ts.map | 1 + .../@mistralai/mistralai/lib/base64.js | 61 + .../@mistralai/mistralai/lib/base64.js.map | 1 + .../@mistralai/mistralai/lib/config.d.ts | 40 + .../@mistralai/mistralai/lib/config.d.ts.map | 1 + .../@mistralai/mistralai/lib/config.js | 37 + .../@mistralai/mistralai/lib/config.js.map | 1 + .../@mistralai/mistralai/lib/dlv.d.ts | 14 + .../@mistralai/mistralai/lib/dlv.d.ts.map | 1 + node_modules/@mistralai/mistralai/lib/dlv.js | 49 + .../@mistralai/mistralai/lib/dlv.js.map | 1 + .../@mistralai/mistralai/lib/encodings.d.ts | 51 + .../mistralai/lib/encodings.d.ts.map | 1 + .../@mistralai/mistralai/lib/encodings.js | 343 ++ .../@mistralai/mistralai/lib/encodings.js.map | 1 + .../@mistralai/mistralai/lib/env.d.ts | 15 + .../@mistralai/mistralai/lib/env.d.ts.map | 1 + node_modules/@mistralai/mistralai/lib/env.js | 57 + .../@mistralai/mistralai/lib/env.js.map | 1 + .../mistralai/lib/event-streams.d.ts | 17 + .../mistralai/lib/event-streams.d.ts.map | 1 + .../@mistralai/mistralai/lib/event-streams.js | 215 + .../mistralai/lib/event-streams.js.map | 1 + .../@mistralai/mistralai/lib/files.d.ts | 8 + .../@mistralai/mistralai/lib/files.d.ts.map | 1 + .../@mistralai/mistralai/lib/files.js | 36 + .../@mistralai/mistralai/lib/files.js.map | 1 + .../@mistralai/mistralai/lib/http.d.ts | 67 + .../@mistralai/mistralai/lib/http.d.ts.map | 1 + node_modules/@mistralai/mistralai/lib/http.js | 218 + .../@mistralai/mistralai/lib/http.js.map | 1 + .../mistralai/lib/is-plain-object.d.ts | 2 + .../mistralai/lib/is-plain-object.d.ts.map | 1 + .../mistralai/lib/is-plain-object.js | 41 + .../mistralai/lib/is-plain-object.js.map | 1 + .../@mistralai/mistralai/lib/logger.d.ts | 6 + .../@mistralai/mistralai/lib/logger.d.ts.map | 1 + .../@mistralai/mistralai/lib/logger.js | 6 + .../@mistralai/mistralai/lib/logger.js.map | 1 + .../@mistralai/mistralai/lib/matchers.d.ts | 64 + .../mistralai/lib/matchers.d.ts.map | 1 + .../@mistralai/mistralai/lib/matchers.js | 208 + .../@mistralai/mistralai/lib/matchers.js.map | 1 + .../@mistralai/mistralai/lib/primitives.d.ts | 16 + .../mistralai/lib/primitives.d.ts.map | 1 + .../@mistralai/mistralai/lib/primitives.js | 29 + .../mistralai/lib/primitives.js.map | 1 + .../@mistralai/mistralai/lib/retries.d.ts | 18 + .../@mistralai/mistralai/lib/retries.d.ts.map | 1 + .../@mistralai/mistralai/lib/retries.js | 130 + .../@mistralai/mistralai/lib/retries.js.map | 1 + .../@mistralai/mistralai/lib/schemas.d.ts | 19 + .../@mistralai/mistralai/lib/schemas.d.ts.map | 1 + .../@mistralai/mistralai/lib/schemas.js | 59 + .../@mistralai/mistralai/lib/schemas.js.map | 1 + .../@mistralai/mistralai/lib/sdks.d.ts | 59 + .../@mistralai/mistralai/lib/sdks.d.ts.map | 1 + node_modules/@mistralai/mistralai/lib/sdks.js | 259 + .../@mistralai/mistralai/lib/sdks.js.map | 1 + .../@mistralai/mistralai/lib/security.d.ts | 63 + .../mistralai/lib/security.d.ts.map | 1 + .../@mistralai/mistralai/lib/security.js | 130 + .../@mistralai/mistralai/lib/security.js.map | 1 + .../@mistralai/mistralai/lib/url.d.ts | 5 + .../@mistralai/mistralai/lib/url.d.ts.map | 1 + node_modules/@mistralai/mistralai/lib/url.js | 25 + .../@mistralai/mistralai/lib/url.js.map | 1 + .../components/agentscompletionrequest.d.ts | 155 + .../agentscompletionrequest.d.ts.map | 1 + .../components/agentscompletionrequest.js | 175 + .../components/agentscompletionrequest.js.map | 1 + .../agentscompletionstreamrequest.d.ts | 152 + .../agentscompletionstreamrequest.d.ts.map | 1 + .../agentscompletionstreamrequest.js | 175 + .../agentscompletionstreamrequest.js.map | 1 + .../models/components/archiveftmodelout.d.ts | 52 + .../components/archiveftmodelout.d.ts.map | 1 + .../models/components/archiveftmodelout.js | 72 + .../components/archiveftmodelout.js.map | 1 + .../models/components/assistantmessage.d.ts | 58 + .../components/assistantmessage.d.ts.map | 1 + .../models/components/assistantmessage.js | 84 + .../models/components/assistantmessage.js.map | 1 + .../models/components/basemodelcard.d.ts | 46 + .../models/components/basemodelcard.d.ts.map | 1 + .../models/components/basemodelcard.js | 82 + .../models/components/basemodelcard.js.map | 1 + .../components/chatcompletionchoice.d.ts | 65 + .../components/chatcompletionchoice.d.ts.map | 1 + .../models/components/chatcompletionchoice.js | 86 + .../components/chatcompletionchoice.js.map | 1 + .../components/chatcompletionrequest.d.ts | 179 + .../components/chatcompletionrequest.d.ts.map | 1 + .../components/chatcompletionrequest.js | 197 + .../components/chatcompletionrequest.js.map | 1 + .../components/chatcompletionresponse.d.ts | 37 + .../chatcompletionresponse.d.ts.map | 1 + .../components/chatcompletionresponse.js | 62 + .../components/chatcompletionresponse.js.map | 1 + .../chatcompletionstreamrequest.d.ts | 176 + .../chatcompletionstreamrequest.d.ts.map | 1 + .../components/chatcompletionstreamrequest.js | 196 + .../chatcompletionstreamrequest.js.map | 1 + .../models/components/checkpointout.d.ts | 39 + .../models/components/checkpointout.d.ts.map | 1 + .../models/components/checkpointout.js | 66 + .../models/components/checkpointout.js.map | 1 + .../models/components/completionchunk.d.ts | 37 + .../components/completionchunk.d.ts.map | 1 + .../models/components/completionchunk.js | 62 + .../models/components/completionchunk.js.map | 1 + .../models/components/completionevent.d.ts | 26 + .../components/completionevent.d.ts.map | 1 + .../models/components/completionevent.js | 62 + .../models/components/completionevent.js.map | 1 + .../completionresponsestreamchoice.d.ts | 62 + .../completionresponsestreamchoice.d.ts.map | 1 + .../completionresponsestreamchoice.js | 86 + .../completionresponsestreamchoice.js.map | 1 + .../models/components/contentchunk.d.ts | 31 + .../models/components/contentchunk.d.ts.map | 1 + .../models/components/contentchunk.js | 58 + .../models/components/contentchunk.js.map | 1 + .../models/components/deletefileout.d.ts | 38 + .../models/components/deletefileout.d.ts.map | 1 + .../models/components/deletefileout.js | 54 + .../models/components/deletefileout.js.map | 1 + .../models/components/deletemodelout.d.ts | 38 + .../models/components/deletemodelout.d.ts.map | 1 + .../models/components/deletemodelout.js | 54 + .../models/components/deletemodelout.js.map | 1 + .../models/components/deltamessage.d.ts | 30 + .../models/components/deltamessage.d.ts.map | 1 + .../models/components/deltamessage.js | 64 + .../models/components/deltamessage.js.map | 1 + .../models/components/detailedjobout.d.ts | 184 + .../models/components/detailedjobout.d.ts.map | 1 + .../models/components/detailedjobout.js | 193 + .../models/components/detailedjobout.js.map | 1 + .../models/components/embeddingrequest.d.ts | 60 + .../components/embeddingrequest.d.ts.map | 1 + .../models/components/embeddingrequest.js | 81 + .../models/components/embeddingrequest.js.map | 1 + .../models/components/embeddingresponse.d.ts | 35 + .../components/embeddingresponse.d.ts.map | 1 + .../models/components/embeddingresponse.js | 60 + .../components/embeddingresponse.js.map | 1 + .../components/embeddingresponsedata.d.ts | 29 + .../components/embeddingresponsedata.d.ts.map | 1 + .../components/embeddingresponsedata.js | 54 + .../components/embeddingresponsedata.js.map | 1 + .../mistralai/models/components/eventout.d.ts | 39 + .../models/components/eventout.d.ts.map | 1 + .../mistralai/models/components/eventout.js | 63 + .../models/components/eventout.js.map | 1 + .../models/components/fileschema.d.ts | 86 + .../models/components/fileschema.d.ts.map | 1 + .../mistralai/models/components/fileschema.js | 110 + .../models/components/fileschema.js.map | 1 + .../components/fimcompletionrequest.d.ts | 99 + .../components/fimcompletionrequest.d.ts.map | 1 + .../models/components/fimcompletionrequest.js | 98 + .../components/fimcompletionrequest.js.map | 1 + .../components/fimcompletionresponse.d.ts | 37 + .../components/fimcompletionresponse.d.ts.map | 1 + .../components/fimcompletionresponse.js | 62 + .../components/fimcompletionresponse.js.map | 1 + .../fimcompletionstreamrequest.d.ts | 96 + .../fimcompletionstreamrequest.d.ts.map | 1 + .../components/fimcompletionstreamrequest.js | 98 + .../fimcompletionstreamrequest.js.map | 1 + .../models/components/finetuneablemodel.d.ts | 43 + .../components/finetuneablemodel.d.ts.map | 1 + .../models/components/finetuneablemodel.js | 56 + .../components/finetuneablemodel.js.map | 1 + .../components/ftmodelcapabilitiesout.d.ts | 31 + .../ftmodelcapabilitiesout.d.ts.map | 1 + .../components/ftmodelcapabilitiesout.js | 71 + .../components/ftmodelcapabilitiesout.js.map | 1 + .../models/components/ftmodelcard.d.ts | 55 + .../models/components/ftmodelcard.d.ts.map | 1 + .../models/components/ftmodelcard.js | 88 + .../models/components/ftmodelcard.js.map | 1 + .../models/components/ftmodelout.d.ts | 71 + .../models/components/ftmodelout.d.ts.map | 1 + .../mistralai/models/components/ftmodelout.js | 102 + .../models/components/ftmodelout.js.map | 1 + .../mistralai/models/components/function.d.ts | 33 + .../models/components/function.d.ts.map | 1 + .../mistralai/models/components/function.js | 54 + .../models/components/function.js.map | 1 + .../models/components/functioncall.d.ts | 54 + .../models/components/functioncall.d.ts.map | 1 + .../models/components/functioncall.js | 67 + .../models/components/functioncall.js.map | 1 + .../models/components/functionname.d.ts | 28 + .../models/components/functionname.d.ts.map | 1 + .../models/components/functionname.js | 50 + .../models/components/functionname.js.map | 1 + .../models/components/githubrepositoryin.d.ts | 58 + .../components/githubrepositoryin.d.ts.map | 1 + .../models/components/githubrepositoryin.js | 78 + .../components/githubrepositoryin.js.map | 1 + .../components/githubrepositoryout.d.ts | 58 + .../components/githubrepositoryout.d.ts.map | 1 + .../models/components/githubrepositoryout.js | 87 + .../components/githubrepositoryout.js.map | 1 + .../mistralai/models/components/imageurl.d.ts | 27 + .../models/components/imageurl.d.ts.map | 1 + .../mistralai/models/components/imageurl.js | 52 + .../models/components/imageurl.js.map | 1 + .../models/components/imageurlchunk.d.ts | 73 + .../models/components/imageurlchunk.d.ts.map | 1 + .../models/components/imageurlchunk.js | 95 + .../models/components/imageurlchunk.js.map | 1 + .../mistralai/models/components/index.d.ts | 72 + .../models/components/index.d.ts.map | 1 + .../mistralai/models/components/index.js | 91 + .../mistralai/models/components/index.js.map | 1 + .../mistralai/models/components/jobin.d.ts | 100 + .../models/components/jobin.d.ts.map | 1 + .../mistralai/models/components/jobin.js | 114 + .../mistralai/models/components/jobin.js.map | 1 + .../models/components/jobmetadataout.d.ts | 37 + .../models/components/jobmetadataout.d.ts.map | 1 + .../models/components/jobmetadataout.js | 81 + .../models/components/jobmetadataout.js.map | 1 + .../mistralai/models/components/jobout.d.ts | 223 + .../models/components/jobout.d.ts.map | 1 + .../mistralai/models/components/jobout.js | 196 + .../mistralai/models/components/jobout.js.map | 1 + .../mistralai/models/components/jobsout.d.ts | 53 + .../models/components/jobsout.d.ts.map | 1 + .../mistralai/models/components/jobsout.js | 73 + .../models/components/jobsout.js.map | 1 + .../components/legacyjobmetadataout.d.ts | 94 + .../components/legacyjobmetadataout.d.ts.map | 1 + .../models/components/legacyjobmetadataout.js | 111 + .../components/legacyjobmetadataout.js.map | 1 + .../models/components/listfilesout.d.ts | 28 + .../models/components/listfilesout.d.ts.map | 1 + .../models/components/listfilesout.js | 53 + .../models/components/listfilesout.js.map | 1 + .../models/components/metricout.d.ts | 32 + .../models/components/metricout.d.ts.map | 1 + .../mistralai/models/components/metricout.js | 67 + .../models/components/metricout.js.map | 1 + .../models/components/modelcapabilities.d.ts | 33 + .../components/modelcapabilities.d.ts.map | 1 + .../models/components/modelcapabilities.js | 73 + .../components/modelcapabilities.js.map | 1 + .../models/components/modellist.d.ts | 64 + .../models/components/modellist.d.ts.map | 1 + .../mistralai/models/components/modellist.js | 98 + .../models/components/modellist.js.map | 1 + .../models/components/responseformat.d.ts | 29 + .../models/components/responseformat.d.ts.map | 1 + .../models/components/responseformat.js | 51 + .../models/components/responseformat.js.map | 1 + .../models/components/responseformats.d.ts | 34 + .../components/responseformats.d.ts.map | 1 + .../models/components/responseformats.js | 53 + .../models/components/responseformats.js.map | 1 + .../models/components/retrievefileout.d.ts | 86 + .../components/retrievefileout.d.ts.map | 1 + .../models/components/retrievefileout.js | 110 + .../models/components/retrievefileout.js.map | 1 + .../models/components/sampletype.d.ts | 28 + .../models/components/sampletype.d.ts.map | 1 + .../mistralai/models/components/sampletype.js | 51 + .../models/components/sampletype.js.map | 1 + .../mistralai/models/components/security.d.ts | 25 + .../models/components/security.d.ts.map | 1 + .../mistralai/models/components/security.js | 59 + .../models/components/security.js.map | 1 + .../mistralai/models/components/source.d.ts | 28 + .../models/components/source.d.ts.map | 1 + .../mistralai/models/components/source.js | 51 + .../mistralai/models/components/source.js.map | 1 + .../models/components/systemmessage.d.ts | 70 + .../models/components/systemmessage.d.ts.map | 1 + .../models/components/systemmessage.js | 86 + .../models/components/systemmessage.js.map | 1 + .../models/components/textchunk.d.ts | 50 + .../models/components/textchunk.d.ts.map | 1 + .../mistralai/models/components/textchunk.js | 70 + .../models/components/textchunk.js.map | 1 + .../mistralai/models/components/tool.d.ts | 29 + .../mistralai/models/components/tool.d.ts.map | 1 + .../mistralai/models/components/tool.js | 55 + .../mistralai/models/components/tool.js.map | 1 + .../mistralai/models/components/toolcall.d.ts | 31 + .../models/components/toolcall.d.ts.map | 1 + .../mistralai/models/components/toolcall.js | 56 + .../models/components/toolcall.js.map | 1 + .../models/components/toolchoice.d.ts | 35 + .../models/components/toolchoice.d.ts.map | 1 + .../mistralai/models/components/toolchoice.js | 54 + .../models/components/toolchoice.js.map | 1 + .../models/components/toolchoiceenum.d.ts | 34 + .../models/components/toolchoiceenum.d.ts.map | 1 + .../models/components/toolchoiceenum.js | 52 + .../models/components/toolchoiceenum.js.map | 1 + .../models/components/toolmessage.d.ts | 54 + .../models/components/toolmessage.d.ts.map | 1 + .../models/components/toolmessage.js | 83 + .../models/components/toolmessage.js.map | 1 + .../models/components/tooltypes.d.ts | 21 + .../models/components/tooltypes.d.ts.map | 1 + .../mistralai/models/components/tooltypes.js | 57 + .../models/components/tooltypes.js.map | 1 + .../models/components/trainingfile.d.ts | 27 + .../models/components/trainingfile.d.ts.map | 1 + .../models/components/trainingfile.js | 61 + .../models/components/trainingfile.js.map | 1 + .../models/components/trainingparameters.d.ts | 35 + .../components/trainingparameters.d.ts.map | 1 + .../models/components/trainingparameters.js | 77 + .../components/trainingparameters.js.map | 1 + .../components/trainingparametersin.d.ts | 50 + .../components/trainingparametersin.d.ts.map | 1 + .../models/components/trainingparametersin.js | 77 + .../components/trainingparametersin.js.map | 1 + .../components/unarchiveftmodelout.d.ts | 52 + .../components/unarchiveftmodelout.d.ts.map | 1 + .../models/components/unarchiveftmodelout.js | 72 + .../components/unarchiveftmodelout.js.map | 1 + .../models/components/updateftmodelin.d.ts | 27 + .../components/updateftmodelin.d.ts.map | 1 + .../models/components/updateftmodelin.js | 52 + .../models/components/updateftmodelin.js.map | 1 + .../models/components/uploadfileout.d.ts | 86 + .../models/components/uploadfileout.d.ts.map | 1 + .../models/components/uploadfileout.js | 110 + .../models/components/uploadfileout.js.map | 1 + .../models/components/usageinfo.d.ts | 29 + .../models/components/usageinfo.d.ts.map | 1 + .../mistralai/models/components/usageinfo.js | 67 + .../models/components/usageinfo.js.map | 1 + .../models/components/usermessage.d.ts | 70 + .../models/components/usermessage.d.ts.map | 1 + .../models/components/usermessage.js | 86 + .../models/components/usermessage.js.map | 1 + .../models/components/validationerror.d.ts | 48 + .../components/validationerror.d.ts.map | 1 + .../models/components/validationerror.js | 70 + .../models/components/validationerror.js.map | 1 + .../models/components/wandbintegration.d.ts | 65 + .../components/wandbintegration.d.ts.map | 1 + .../models/components/wandbintegration.js | 87 + .../models/components/wandbintegration.js.map | 1 + .../components/wandbintegrationout.d.ts | 60 + .../components/wandbintegrationout.d.ts.map | 1 + .../models/components/wandbintegrationout.js | 83 + .../components/wandbintegrationout.js.map | 1 + .../models/errors/httpclienterrors.d.ts | 44 + .../models/errors/httpclienterrors.d.ts.map | 1 + .../models/errors/httpclienterrors.js | 78 + .../models/errors/httpclienterrors.js.map | 1 + .../models/errors/httpvalidationerror.d.ts | 38 + .../errors/httpvalidationerror.d.ts.map | 1 + .../models/errors/httpvalidationerror.js | 72 + .../models/errors/httpvalidationerror.js.map | 1 + .../mistralai/models/errors/index.d.ts | 5 + .../mistralai/models/errors/index.d.ts.map | 1 + .../mistralai/models/errors/index.js | 24 + .../mistralai/models/errors/index.js.map | 1 + .../mistralai/models/errors/sdkerror.d.ts | 8 + .../mistralai/models/errors/sdkerror.d.ts.map | 1 + .../mistralai/models/errors/sdkerror.js | 21 + .../mistralai/models/errors/sdkerror.js.map | 1 + .../models/errors/sdkvalidationerror.d.ts | 20 + .../models/errors/sdkvalidationerror.d.ts.map | 1 + .../models/errors/sdkvalidationerror.js | 105 + .../models/errors/sdkvalidationerror.js.map | 1 + .../deletemodelv1modelsmodeliddelete.d.ts | 28 + .../deletemodelv1modelsmodeliddelete.d.ts.map | 1 + .../deletemodelv1modelsmodeliddelete.js | 59 + .../deletemodelv1modelsmodeliddelete.js.map | 1 + .../operations/filesapiroutesdeletefile.d.ts | 25 + .../filesapiroutesdeletefile.d.ts.map | 1 + .../operations/filesapiroutesdeletefile.js | 59 + .../filesapiroutesdeletefile.js.map | 1 + .../filesapiroutesretrievefile.d.ts | 25 + .../filesapiroutesretrievefile.d.ts.map | 1 + .../operations/filesapiroutesretrievefile.js | 59 + .../filesapiroutesretrievefile.js.map | 1 + .../operations/filesapiroutesuploadfile.d.ts | 84 + .../filesapiroutesuploadfile.d.ts.map | 1 + .../operations/filesapiroutesuploadfile.js | 111 + .../filesapiroutesuploadfile.js.map | 1 + .../mistralai/models/operations/index.d.ts | 14 + .../models/operations/index.d.ts.map | 1 + .../mistralai/models/operations/index.js | 33 + .../mistralai/models/operations/index.js.map | 1 + ...routesfinetuningarchivefinetunedmodel.d.ts | 28 + ...esfinetuningarchivefinetunedmodel.d.ts.map | 1 + ...piroutesfinetuningarchivefinetunedmodel.js | 59 + ...utesfinetuningarchivefinetunedmodel.js.map | 1 + ...piroutesfinetuningcancelfinetuningjob.d.ts | 28 + ...utesfinetuningcancelfinetuningjob.d.ts.map | 1 + ...sapiroutesfinetuningcancelfinetuningjob.js | 59 + ...routesfinetuningcancelfinetuningjob.js.map | 1 + ...piroutesfinetuningcreatefinetuningjob.d.ts | 25 + ...utesfinetuningcreatefinetuningjob.d.ts.map | 1 + ...sapiroutesfinetuningcreatefinetuningjob.js | 53 + ...routesfinetuningcreatefinetuningjob.js.map | 1 + ...bsapiroutesfinetuninggetfinetuningjob.d.ts | 28 + ...iroutesfinetuninggetfinetuningjob.d.ts.map | 1 + ...jobsapiroutesfinetuninggetfinetuningjob.js | 59 + ...apiroutesfinetuninggetfinetuningjob.js.map | 1 + ...sapiroutesfinetuninggetfinetuningjobs.d.ts | 124 + ...routesfinetuninggetfinetuningjobs.d.ts.map | 1 + ...obsapiroutesfinetuninggetfinetuningjobs.js | 115 + ...piroutesfinetuninggetfinetuningjobs.js.map | 1 + ...apiroutesfinetuningstartfinetuningjob.d.ts | 25 + ...outesfinetuningstartfinetuningjob.d.ts.map | 1 + ...bsapiroutesfinetuningstartfinetuningjob.js | 59 + ...iroutesfinetuningstartfinetuningjob.js.map | 1 + ...utesfinetuningunarchivefinetunedmodel.d.ts | 28 + ...finetuningunarchivefinetunedmodel.d.ts.map | 1 + ...routesfinetuningunarchivefinetunedmodel.js | 59 + ...esfinetuningunarchivefinetunedmodel.js.map | 1 + ...iroutesfinetuningupdatefinetunedmodel.d.ts | 31 + ...tesfinetuningupdatefinetunedmodel.d.ts.map | 1 + ...apiroutesfinetuningupdatefinetunedmodel.js | 64 + ...outesfinetuningupdatefinetunedmodel.js.map | 1 + .../retrievemodelv1modelsmodelidget.d.ts | 59 + .../retrievemodelv1modelsmodelidget.d.ts.map | 1 + .../retrievemodelv1modelsmodelidget.js | 89 + .../retrievemodelv1modelsmodelidget.js.map | 1 + .../@mistralai/mistralai/package.json | 31 + .../packages/mistralai-azure/LICENSE | 201 + .../packages/mistralai-azure/README.md | 447 ++ .../mistralai-azure/docs/sdks/chat/README.md | 114 + .../docs/sdks/mistralazure/README.md | 9 + .../packages/mistralai-azure/src/core.ts | 13 + .../mistralai-azure/src/funcs/chatComplete.ts | 123 + .../mistralai-azure/src/funcs/chatStream.ts | 141 + .../src/hooks/custom_user_agent.ts | 11 + .../mistralai-azure/src/hooks/hooks.ts | 112 + .../mistralai-azure/src/hooks/index.ts | 6 + .../mistralai-azure/src/hooks/registration.ts | 15 + .../mistralai-azure/src/hooks/types.ts | 98 + .../packages/mistralai-azure/src/index.ts | 7 + .../mistralai-azure/src/lib/base64.ts | 37 + .../mistralai-azure/src/lib/config.ts | 62 + .../packages/mistralai-azure/src/lib/dlv.ts | 53 + .../mistralai-azure/src/lib/encodings.ts | 449 ++ .../packages/mistralai-azure/src/lib/env.ts | 42 + .../mistralai-azure/src/lib/event-streams.ts | 258 + .../packages/mistralai-azure/src/lib/files.ts | 40 + .../packages/mistralai-azure/src/lib/http.ts | 323 ++ .../src/lib/is-plain-object.ts | 43 + .../mistralai-azure/src/lib/logger.ts | 9 + .../mistralai-azure/src/lib/matchers.ts | 325 ++ .../mistralai-azure/src/lib/primitives.ts | 40 + .../mistralai-azure/src/lib/retries.ts | 187 + .../mistralai-azure/src/lib/schemas.ts | 86 + .../packages/mistralai-azure/src/lib/sdks.ts | 388 ++ .../mistralai-azure/src/lib/security.ts | 218 + .../packages/mistralai-azure/src/lib/url.ts | 33 + .../src/models/components/assistantmessage.ts | 102 + .../models/components/chatcompletionchoice.ts | 101 + .../components/chatcompletionrequest.ts | 394 ++ .../components/chatcompletionresponse.ts | 77 + .../components/chatcompletionstreamrequest.ts | 387 ++ .../src/models/components/completionchunk.ts | 77 + .../src/models/components/completionevent.ts | 61 + .../completionresponsestreamchoice.ts | 96 + .../src/models/components/contentchunk.ts | 43 + .../src/models/components/deltamessage.ts | 68 + .../src/models/components/function.ts | 53 + .../src/models/components/functioncall.ts | 81 + .../src/models/components/functionname.ts | 48 + .../src/models/components/index.ts | 31 + .../src/models/components/responseformat.ts | 53 + .../src/models/components/responseformats.ts | 39 + .../src/models/components/security.ts | 54 + .../src/models/components/systemmessage.ts | 110 + .../src/models/components/textchunk.ts | 75 + .../src/models/components/tool.ts | 54 + .../src/models/components/toolcall.ts | 64 + .../src/models/components/toolchoice.ts | 66 + .../src/models/components/toolchoiceenum.ts | 35 + .../src/models/components/toolmessage.ts | 93 + .../src/models/components/tooltypes.ts | 47 + .../src/models/components/usageinfo.ts | 66 + .../src/models/components/usermessage.ts | 114 + .../src/models/components/validationerror.ts | 80 + .../src/models/errors/httpclienterrors.ts | 62 + .../src/models/errors/httpvalidationerror.ts | 76 + .../src/models/errors/index.ts | 8 + .../src/models/errors/sdkerror.ts | 27 + .../src/models/errors/sdkvalidationerror.ts | 97 + .../packages/mistralai-azure/src/sdk/chat.ts | 43 + .../packages/mistralai-azure/src/sdk/index.ts | 5 + .../packages/mistralai-azure/src/sdk/sdk.ts | 28 + .../mistralai-azure/src/types/blobs.ts | 31 + .../src/types/constdatetime.ts | 15 + .../mistralai-azure/src/types/enums.ts | 16 + .../packages/mistralai-azure/src/types/fp.ts | 50 + .../mistralai-azure/src/types/index.ts | 11 + .../mistralai-azure/src/types/operations.ts | 99 + .../mistralai-azure/src/types/rfcdate.ts | 54 + .../mistralai-azure/src/types/streams.ts | 21 + .../mistralai/packages/mistralai-gcp/LICENSE | 201 + .../packages/mistralai-gcp/README.md | 455 ++ .../mistralai-gcp/docs/sdks/chat/README.md | 115 + .../mistralai-gcp/docs/sdks/fim/README.md | 58 + .../docs/sdks/mistralgcp/README.md | 9 + .../packages/mistralai-gcp/src/core.ts | 13 + .../mistralai-gcp/src/funcs/chatComplete.ts | 123 + .../mistralai-gcp/src/funcs/chatStream.ts | 141 + .../mistralai-gcp/src/funcs/fimComplete.ts | 126 + .../mistralai-gcp/src/funcs/fimStream.ts | 141 + .../src/hooks/custom_user_agent.ts | 11 + .../packages/mistralai-gcp/src/hooks/hooks.ts | 112 + .../packages/mistralai-gcp/src/hooks/index.ts | 6 + .../mistralai-gcp/src/hooks/registration.ts | 16 + .../packages/mistralai-gcp/src/hooks/types.ts | 98 + .../packages/mistralai-gcp/src/index.ts | 7 + .../packages/mistralai-gcp/src/lib/base64.ts | 37 + .../packages/mistralai-gcp/src/lib/config.ts | 62 + .../packages/mistralai-gcp/src/lib/dlv.ts | 53 + .../mistralai-gcp/src/lib/encodings.ts | 449 ++ .../mistralai-gcp/src/lib/event-streams.ts | 258 + .../packages/mistralai-gcp/src/lib/files.ts | 40 + .../packages/mistralai-gcp/src/lib/http.ts | 323 ++ .../mistralai-gcp/src/lib/is-plain-object.ts | 43 + .../packages/mistralai-gcp/src/lib/logger.ts | 9 + .../mistralai-gcp/src/lib/matchers.ts | 325 ++ .../mistralai-gcp/src/lib/primitives.ts | 40 + .../packages/mistralai-gcp/src/lib/retries.ts | 187 + .../packages/mistralai-gcp/src/lib/schemas.ts | 86 + .../packages/mistralai-gcp/src/lib/sdks.ts | 384 ++ .../mistralai-gcp/src/lib/security.ts | 217 + .../packages/mistralai-gcp/src/lib/url.ts | 33 + .../src/models/components/assistantmessage.ts | 102 + .../models/components/chatcompletionchoice.ts | 101 + .../components/chatcompletionrequest.ts | 385 ++ .../components/chatcompletionresponse.ts | 77 + .../components/chatcompletionstreamrequest.ts | 378 ++ .../src/models/components/completionchunk.ts | 77 + .../src/models/components/completionevent.ts | 61 + .../completionresponsestreamchoice.ts | 96 + .../src/models/components/contentchunk.ts | 43 + .../src/models/components/deltamessage.ts | 68 + .../models/components/fimcompletionrequest.ts | 165 + .../components/fimcompletionresponse.ts | 77 + .../components/fimcompletionstreamrequest.ts | 162 + .../src/models/components/function.ts | 53 + .../src/models/components/functioncall.ts | 81 + .../src/models/components/functionname.ts | 48 + .../src/models/components/index.ts | 34 + .../src/models/components/responseformat.ts | 53 + .../src/models/components/responseformats.ts | 39 + .../src/models/components/security.ts | 54 + .../src/models/components/systemmessage.ts | 110 + .../src/models/components/textchunk.ts | 75 + .../src/models/components/tool.ts | 54 + .../src/models/components/toolcall.ts | 64 + .../src/models/components/toolchoice.ts | 66 + .../src/models/components/toolchoiceenum.ts | 35 + .../src/models/components/toolmessage.ts | 93 + .../src/models/components/tooltypes.ts | 47 + .../src/models/components/usageinfo.ts | 66 + .../src/models/components/usermessage.ts | 114 + .../src/models/components/validationerror.ts | 80 + .../src/models/errors/httpclienterrors.ts | 62 + .../src/models/errors/httpvalidationerror.ts | 76 + .../mistralai-gcp/src/models/errors/index.ts | 8 + .../src/models/errors/sdkerror.ts | 27 + .../src/models/errors/sdkvalidationerror.ts | 97 + .../packages/mistralai-gcp/src/sdk/chat.ts | 43 + .../packages/mistralai-gcp/src/sdk/fim.ts | 46 + .../packages/mistralai-gcp/src/sdk/index.ts | 5 + .../packages/mistralai-gcp/src/sdk/sdk.ts | 113 + .../packages/mistralai-gcp/src/types/blobs.ts | 31 + .../mistralai-gcp/src/types/constdatetime.ts | 15 + .../packages/mistralai-gcp/src/types/enums.ts | 16 + .../packages/mistralai-gcp/src/types/fp.ts | 50 + .../packages/mistralai-gcp/src/types/index.ts | 11 + .../mistralai-gcp/src/types/operations.ts | 99 + .../mistralai-gcp/src/types/rfcdate.ts | 54 + .../mistralai-gcp/src/types/streams.ts | 21 + .../@mistralai/mistralai/sdk/agents.d.ts | 17 + .../@mistralai/mistralai/sdk/agents.d.ts.map | 1 + .../@mistralai/mistralai/sdk/agents.js | 29 + .../@mistralai/mistralai/sdk/agents.js.map | 1 + .../@mistralai/mistralai/sdk/chat.d.ts | 17 + .../@mistralai/mistralai/sdk/chat.d.ts.map | 1 + node_modules/@mistralai/mistralai/sdk/chat.js | 29 + .../@mistralai/mistralai/sdk/chat.js.map | 1 + .../@mistralai/mistralai/sdk/embeddings.d.ts | 12 + .../mistralai/sdk/embeddings.d.ts.map | 1 + .../@mistralai/mistralai/sdk/embeddings.js | 22 + .../mistralai/sdk/embeddings.js.map | 1 + .../@mistralai/mistralai/sdk/files.d.ts | 38 + .../@mistralai/mistralai/sdk/files.d.ts.map | 1 + .../@mistralai/mistralai/sdk/files.js | 56 + .../@mistralai/mistralai/sdk/files.js.map | 1 + .../@mistralai/mistralai/sdk/fim.d.ts | 20 + .../@mistralai/mistralai/sdk/fim.d.ts.map | 1 + node_modules/@mistralai/mistralai/sdk/fim.js | 32 + .../@mistralai/mistralai/sdk/fim.js.map | 1 + .../@mistralai/mistralai/sdk/finetuning.d.ts | 7 + .../mistralai/sdk/finetuning.d.ts.map | 1 + .../@mistralai/mistralai/sdk/finetuning.js | 16 + .../mistralai/sdk/finetuning.js.map | 1 + .../@mistralai/mistralai/sdk/index.d.ts | 2 + .../@mistralai/mistralai/sdk/index.d.ts.map | 1 + .../@mistralai/mistralai/sdk/index.js | 21 + .../@mistralai/mistralai/sdk/index.js.map | 1 + .../@mistralai/mistralai/sdk/jobs.d.ts | 41 + .../@mistralai/mistralai/sdk/jobs.d.ts.map | 1 + node_modules/@mistralai/mistralai/sdk/jobs.js | 62 + .../@mistralai/mistralai/sdk/jobs.js.map | 1 + .../@mistralai/mistralai/sdk/models.d.ts | 48 + .../@mistralai/mistralai/sdk/models.d.ts.map | 1 + .../@mistralai/mistralai/sdk/models.js | 72 + .../@mistralai/mistralai/sdk/models.js.map | 1 + .../@mistralai/mistralai/sdk/oldclient.d.ts | 4 + .../mistralai/sdk/oldclient.d.ts.map | 1 + .../@mistralai/mistralai/sdk/oldclient.js | 10 + .../@mistralai/mistralai/sdk/oldclient.js.map | 1 + .../@mistralai/mistralai/sdk/sdk.d.ts | 25 + .../@mistralai/mistralai/sdk/sdk.d.ts.map | 1 + node_modules/@mistralai/mistralai/sdk/sdk.js | 46 + .../@mistralai/mistralai/sdk/sdk.js.map | 1 + node_modules/@mistralai/mistralai/src/core.ts | 13 + .../mistralai/src/funcs/agentsComplete.ts | 123 + .../mistralai/src/funcs/agentsStream.ts | 141 + .../mistralai/src/funcs/chatComplete.ts | 123 + .../mistralai/src/funcs/chatStream.ts | 141 + .../mistralai/src/funcs/embeddingsCreate.ts | 126 + .../mistralai/src/funcs/filesDelete.ts | 126 + .../mistralai/src/funcs/filesList.ts | 100 + .../mistralai/src/funcs/filesRetrieve.ts | 126 + .../mistralai/src/funcs/filesUpload.ts | 143 + .../mistralai/src/funcs/fimComplete.ts | 126 + .../mistralai/src/funcs/fimStream.ts | 141 + .../src/funcs/fineTuningJobsCancel.ts | 129 + .../src/funcs/fineTuningJobsCreate.ts | 123 + .../mistralai/src/funcs/fineTuningJobsGet.ts | 127 + .../mistralai/src/funcs/fineTuningJobsList.ts | 135 + .../src/funcs/fineTuningJobsStart.ts | 127 + .../mistralai/src/funcs/modelsArchive.ts | 130 + .../mistralai/src/funcs/modelsDelete.ts | 136 + .../mistralai/src/funcs/modelsList.ts | 108 + .../mistralai/src/funcs/modelsRetrieve.ts | 139 + .../mistralai/src/funcs/modelsUnarchive.ts | 130 + .../mistralai/src/funcs/modelsUpdate.ts | 134 + .../mistralai/src/hooks/custom_user_agent.ts | 20 + .../src/hooks/deprecation_warning.ts | 19 + .../@mistralai/mistralai/src/hooks/hooks.ts | 112 + .../@mistralai/mistralai/src/hooks/index.ts | 6 + .../mistralai/src/hooks/registration.ts | 22 + .../@mistralai/mistralai/src/hooks/types.ts | 98 + .../@mistralai/mistralai/src/index.ts | 7 + .../@mistralai/mistralai/src/lib/base64.ts | 37 + .../@mistralai/mistralai/src/lib/config.ts | 62 + .../@mistralai/mistralai/src/lib/dlv.ts | 53 + .../@mistralai/mistralai/src/lib/encodings.ts | 449 ++ .../@mistralai/mistralai/src/lib/env.ts | 42 + .../mistralai/src/lib/event-streams.ts | 258 + .../@mistralai/mistralai/src/lib/files.ts | 40 + .../@mistralai/mistralai/src/lib/http.ts | 323 ++ .../mistralai/src/lib/is-plain-object.ts | 43 + .../@mistralai/mistralai/src/lib/logger.ts | 9 + .../@mistralai/mistralai/src/lib/matchers.ts | 325 ++ .../mistralai/src/lib/primitives.ts | 40 + .../@mistralai/mistralai/src/lib/retries.ts | 187 + .../@mistralai/mistralai/src/lib/schemas.ts | 86 + .../@mistralai/mistralai/src/lib/sdks.ts | 388 ++ .../@mistralai/mistralai/src/lib/security.ts | 218 + .../@mistralai/mistralai/src/lib/url.ts | 33 + .../components/agentscompletionrequest.ts | 342 ++ .../agentscompletionstreamrequest.ts | 345 ++ .../models/components/archiveftmodelout.ts | 82 + .../src/models/components/assistantmessage.ts | 102 + .../src/models/components/basemodelcard.ts | 104 + .../models/components/chatcompletionchoice.ts | 97 + .../components/chatcompletionrequest.ts | 388 ++ .../components/chatcompletionresponse.ts | 77 + .../components/chatcompletionstreamrequest.ts | 395 ++ .../src/models/components/checkpointout.ts | 79 + .../src/models/components/completionchunk.ts | 77 + .../src/models/components/completionevent.ts | 61 + .../completionresponsestreamchoice.ts | 106 + .../src/models/components/contentchunk.ts | 71 + .../src/models/components/deletefileout.ts | 62 + .../src/models/components/deletemodelout.ts | 62 + .../src/models/components/deltamessage.ts | 68 + .../src/models/components/detailedjobout.ts | 315 ++ .../src/models/components/embeddingrequest.ts | 105 + .../models/components/embeddingresponse.ts | 73 + .../components/embeddingresponsedata.ts | 53 + .../src/models/components/eventout.ts | 68 + .../src/models/components/fileschema.ts | 166 + .../models/components/fimcompletionrequest.ts | 165 + .../components/fimcompletionresponse.ts | 77 + .../components/fimcompletionstreamrequest.ts | 162 + .../models/components/finetuneablemodel.ts | 42 + .../components/ftmodelcapabilitiesout.ts | 72 + .../src/models/components/ftmodelcard.ts | 119 + .../src/models/components/ftmodelout.ts | 133 + .../src/models/components/function.ts | 53 + .../src/models/components/functioncall.ts | 81 + .../src/models/components/functionname.ts | 48 + .../models/components/githubrepositoryin.ts | 92 + .../models/components/githubrepositoryout.ts | 103 + .../src/models/components/imageurl.ts | 49 + .../src/models/components/imageurlchunk.ts | 126 + .../mistralai/src/models/components/index.ts | 75 + .../mistralai/src/models/components/jobin.ts | 195 + .../src/models/components/jobmetadataout.ts | 88 + .../mistralai/src/models/components/jobout.ts | 333 ++ .../src/models/components/jobsout.ts | 83 + .../models/components/legacyjobmetadataout.ts | 163 + .../src/models/components/listfilesout.ts | 55 + .../src/models/components/metricout.ts | 69 + .../models/components/modelcapabilities.ts | 76 + .../src/models/components/modellist.ts | 149 + .../src/models/components/responseformat.ts | 53 + .../src/models/components/responseformats.ts | 39 + .../src/models/components/retrievefileout.ts | 166 + .../src/models/components/sampletype.ts | 31 + .../src/models/components/security.ts | 54 + .../mistralai/src/models/components/source.ts | 31 + .../src/models/components/systemmessage.ts | 110 + .../src/models/components/textchunk.ts | 76 + .../mistralai/src/models/components/tool.ts | 54 + .../src/models/components/toolcall.ts | 64 + .../src/models/components/toolchoice.ts | 66 + .../src/models/components/toolchoiceenum.ts | 35 + .../src/models/components/toolmessage.ts | 93 + .../src/models/components/tooltypes.ts | 47 + .../src/models/components/trainingfile.ts | 58 + .../models/components/trainingparameters.ts | 82 + .../models/components/trainingparametersin.ts | 97 + .../models/components/unarchiveftmodelout.ts | 82 + .../src/models/components/updateftmodelin.ts | 49 + .../src/models/components/uploadfileout.ts | 160 + .../src/models/components/usageinfo.ts | 66 + .../src/models/components/usermessage.ts | 114 + .../src/models/components/validationerror.ts | 80 + .../src/models/components/wandbintegration.ts | 108 + .../models/components/wandbintegrationout.ts | 98 + .../src/models/errors/httpclienterrors.ts | 62 + .../src/models/errors/httpvalidationerror.ts | 76 + .../mistralai/src/models/errors/index.ts | 8 + .../mistralai/src/models/errors/sdkerror.ts | 27 + .../src/models/errors/sdkvalidationerror.ts | 97 + .../deletemodelv1modelsmodeliddelete.ts | 59 + .../operations/filesapiroutesdeletefile.ts | 54 + .../operations/filesapiroutesretrievefile.ts | 55 + .../operations/filesapiroutesuploadfile.ts | 154 + .../mistralai/src/models/operations/index.ts | 17 + ...piroutesfinetuningarchivefinetunedmodel.ts | 62 + ...sapiroutesfinetuningcancelfinetuningjob.ts | 62 + ...sapiroutesfinetuningcreatefinetuningjob.ts | 56 + ...jobsapiroutesfinetuninggetfinetuningjob.ts | 62 + ...obsapiroutesfinetuninggetfinetuningjobs.ts | 169 + ...bsapiroutesfinetuningstartfinetuningjob.ts | 59 + ...routesfinetuningunarchivefinetunedmodel.ts | 62 + ...apiroutesfinetuningupdatefinetunedmodel.ts | 69 + .../retrievemodelv1modelsmodelidget.ts | 126 + .../@mistralai/mistralai/src/sdk/agents.ts | 43 + .../@mistralai/mistralai/src/sdk/chat.ts | 43 + .../mistralai/src/sdk/embeddings.ts | 27 + .../@mistralai/mistralai/src/sdk/files.ts | 84 + .../@mistralai/mistralai/src/sdk/fim.ts | 46 + .../mistralai/src/sdk/finetuning.ts | 13 + .../@mistralai/mistralai/src/sdk/index.ts | 5 + .../@mistralai/mistralai/src/sdk/jobs.ts | 102 + .../@mistralai/mistralai/src/sdk/models.ts | 118 + .../@mistralai/mistralai/src/sdk/oldclient.ts | 5 + .../@mistralai/mistralai/src/sdk/sdk.ts | 49 + .../@mistralai/mistralai/src/types/blobs.ts | 31 + .../mistralai/src/types/constdatetime.ts | 15 + .../@mistralai/mistralai/src/types/enums.ts | 16 + .../@mistralai/mistralai/src/types/fp.ts | 50 + .../@mistralai/mistralai/src/types/index.ts | 11 + .../mistralai/src/types/operations.ts | 99 + .../@mistralai/mistralai/src/types/rfcdate.ts | 54 + .../@mistralai/mistralai/src/types/streams.ts | 21 + .../@mistralai/mistralai/types/blobs.d.ts | 4 + .../@mistralai/mistralai/types/blobs.d.ts.map | 1 + .../@mistralai/mistralai/types/blobs.js | 52 + .../@mistralai/mistralai/types/blobs.js.map | 1 + .../mistralai/types/constdatetime.d.ts | 3 + .../mistralai/types/constdatetime.d.ts.map | 1 + .../mistralai/types/constdatetime.js | 36 + .../mistralai/types/constdatetime.js.map | 1 + .../@mistralai/mistralai/types/enums.d.ts | 12 + .../@mistralai/mistralai/types/enums.d.ts.map | 1 + .../@mistralai/mistralai/types/enums.js | 10 + .../@mistralai/mistralai/types/enums.js.map | 1 + .../@mistralai/mistralai/types/fp.d.ts | 31 + .../@mistralai/mistralai/types/fp.d.ts.map | 1 + node_modules/@mistralai/mistralai/types/fp.js | 37 + .../@mistralai/mistralai/types/fp.js.map | 1 + .../@mistralai/mistralai/types/index.d.ts | 8 + .../@mistralai/mistralai/types/index.d.ts.map | 1 + .../@mistralai/mistralai/types/index.js | 16 + .../@mistralai/mistralai/types/index.js.map | 1 + .../mistralai/types/operations.d.ts | 25 + .../mistralai/types/operations.d.ts.map | 1 + .../@mistralai/mistralai/types/operations.js | 80 + .../mistralai/types/operations.js.map | 1 + .../@mistralai/mistralai/types/rfcdate.d.ts | 21 + .../mistralai/types/rfcdate.d.ts.map | 1 + .../@mistralai/mistralai/types/rfcdate.js | 46 + .../@mistralai/mistralai/types/rfcdate.js.map | 1 + .../@mistralai/mistralai/types/streams.d.ts | 2 + .../mistralai/types/streams.d.ts.map | 1 + .../@mistralai/mistralai/types/streams.js | 18 + .../@mistralai/mistralai/types/streams.js.map | 1 + node_modules/zod/LICENSE | 21 + node_modules/zod/README.md | 2876 +++++++++++ node_modules/zod/index.d.ts | 2 + node_modules/zod/lib/ZodError.d.ts | 164 + node_modules/zod/lib/ZodError.js | 137 + node_modules/zod/lib/__tests__/Mocker.d.ts | 17 + node_modules/zod/lib/__tests__/Mocker.js | 57 + node_modules/zod/lib/benchmarks/datetime.d.ts | 5 + node_modules/zod/lib/benchmarks/datetime.js | 54 + .../lib/benchmarks/discriminatedUnion.d.ts | 5 + .../zod/lib/benchmarks/discriminatedUnion.js | 79 + node_modules/zod/lib/benchmarks/index.d.ts | 1 + node_modules/zod/lib/benchmarks/index.js | 59 + node_modules/zod/lib/benchmarks/ipv4.d.ts | 5 + node_modules/zod/lib/benchmarks/ipv4.js | 54 + node_modules/zod/lib/benchmarks/object.d.ts | 5 + node_modules/zod/lib/benchmarks/object.js | 70 + .../zod/lib/benchmarks/primitives.d.ts | 5 + node_modules/zod/lib/benchmarks/primitives.js | 170 + .../zod/lib/benchmarks/realworld.d.ts | 5 + node_modules/zod/lib/benchmarks/realworld.js | 56 + node_modules/zod/lib/benchmarks/string.d.ts | 5 + node_modules/zod/lib/benchmarks/string.js | 55 + node_modules/zod/lib/benchmarks/union.d.ts | 5 + node_modules/zod/lib/benchmarks/union.js | 79 + node_modules/zod/lib/errors.d.ts | 5 + node_modules/zod/lib/errors.js | 17 + node_modules/zod/lib/external.d.ts | 6 + node_modules/zod/lib/external.js | 18 + node_modules/zod/lib/helpers/enumUtil.d.ts | 8 + node_modules/zod/lib/helpers/enumUtil.js | 2 + node_modules/zod/lib/helpers/errorUtil.d.ts | 9 + node_modules/zod/lib/helpers/errorUtil.js | 8 + node_modules/zod/lib/helpers/parseUtil.d.ts | 78 + node_modules/zod/lib/helpers/parseUtil.js | 125 + node_modules/zod/lib/helpers/partialUtil.d.ts | 8 + node_modules/zod/lib/helpers/partialUtil.js | 2 + node_modules/zod/lib/helpers/typeAliases.d.ts | 2 + node_modules/zod/lib/helpers/typeAliases.js | 2 + node_modules/zod/lib/helpers/util.d.ts | 82 + node_modules/zod/lib/helpers/util.js | 142 + node_modules/zod/lib/index.d.ts | 4 + node_modules/zod/lib/index.js | 29 + node_modules/zod/lib/index.mjs | 4236 ++++++++++++++++ node_modules/zod/lib/index.umd.js | 4351 +++++++++++++++++ node_modules/zod/lib/locales/en.d.ts | 3 + node_modules/zod/lib/locales/en.js | 129 + node_modules/zod/lib/types.d.ts | 1127 +++++ node_modules/zod/lib/types.js | 3677 ++++++++++++++ node_modules/zod/package.json | 119 + package-lock.json | 40 +- package.json | 6 + yarn.lock | 13 + 1031 files changed, 71819 insertions(+), 11 deletions(-) create mode 100644 backend/collaboration-service/consumer.js create mode 100644 backend/collaboration-service/controllers/copilotControllers.js create mode 100644 backend/collaboration-service/mq.js create mode 100644 frontend/src/api/CopilotApi.js create mode 100644 node_modules/.package-lock.json create mode 100644 node_modules/.yarn-integrity create mode 100644 node_modules/@mistralai/mistralai/.devcontainer/README.md create mode 100644 node_modules/@mistralai/mistralai/LICENSE create mode 100644 node_modules/@mistralai/mistralai/README.md create mode 100644 node_modules/@mistralai/mistralai/core.d.ts create mode 100644 node_modules/@mistralai/mistralai/core.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/core.js create mode 100644 node_modules/@mistralai/mistralai/core.js.map create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/agents/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/chat/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/embeddings/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/files/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/fim/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/finetuning/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/jobs/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/mistral/README.md create mode 100644 node_modules/@mistralai/mistralai/docs/sdks/models/README.md create mode 100644 node_modules/@mistralai/mistralai/examples/README.md create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_chat_no_streaming.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_chat_streaming.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_embeddings.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_files.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_function_calling.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_function_calling_streaming.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_jobs.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_json_format.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/async_list_models.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/azure/async_chat_no_streaming.ts create mode 100644 node_modules/@mistralai/mistralai/examples/src/gcp/async_chat_no_streaming.ts create mode 100644 node_modules/@mistralai/mistralai/examples/test.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsComplete.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsComplete.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsComplete.js create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsComplete.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsStream.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsStream.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsStream.js create mode 100644 node_modules/@mistralai/mistralai/funcs/agentsStream.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/chatComplete.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/chatComplete.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/chatComplete.js create mode 100644 node_modules/@mistralai/mistralai/funcs/chatComplete.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/chatStream.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/chatStream.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/chatStream.js create mode 100644 node_modules/@mistralai/mistralai/funcs/chatStream.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/embeddingsCreate.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/embeddingsCreate.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/embeddingsCreate.js create mode 100644 node_modules/@mistralai/mistralai/funcs/embeddingsCreate.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesDelete.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/filesDelete.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesDelete.js create mode 100644 node_modules/@mistralai/mistralai/funcs/filesDelete.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesList.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/filesList.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesList.js create mode 100644 node_modules/@mistralai/mistralai/funcs/filesList.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesRetrieve.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/filesRetrieve.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesRetrieve.js create mode 100644 node_modules/@mistralai/mistralai/funcs/filesRetrieve.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesUpload.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/filesUpload.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/filesUpload.js create mode 100644 node_modules/@mistralai/mistralai/funcs/filesUpload.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fimComplete.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fimComplete.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fimComplete.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fimComplete.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fimStream.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fimStream.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fimStream.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fimStream.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCancel.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCancel.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCancel.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCancel.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCreate.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCreate.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCreate.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsCreate.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsGet.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsGet.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsGet.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsGet.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsList.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsList.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsList.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsList.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsStart.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsStart.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsStart.js create mode 100644 node_modules/@mistralai/mistralai/funcs/fineTuningJobsStart.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsArchive.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsArchive.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsArchive.js create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsArchive.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsDelete.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsDelete.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsDelete.js create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsDelete.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsList.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsList.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsList.js create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsList.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsRetrieve.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsRetrieve.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsRetrieve.js create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsRetrieve.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUnarchive.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUnarchive.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUnarchive.js create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUnarchive.js.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUpdate.d.ts create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUpdate.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUpdate.js create mode 100644 node_modules/@mistralai/mistralai/funcs/modelsUpdate.js.map create mode 100644 node_modules/@mistralai/mistralai/hooks/custom_user_agent.d.ts create mode 100644 node_modules/@mistralai/mistralai/hooks/custom_user_agent.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/hooks/custom_user_agent.js create mode 100644 node_modules/@mistralai/mistralai/hooks/custom_user_agent.js.map create mode 100644 node_modules/@mistralai/mistralai/hooks/deprecation_warning.d.ts create mode 100644 node_modules/@mistralai/mistralai/hooks/deprecation_warning.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/hooks/deprecation_warning.js create mode 100644 node_modules/@mistralai/mistralai/hooks/deprecation_warning.js.map create mode 100644 node_modules/@mistralai/mistralai/hooks/hooks.d.ts create mode 100644 node_modules/@mistralai/mistralai/hooks/hooks.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/hooks/hooks.js create mode 100644 node_modules/@mistralai/mistralai/hooks/hooks.js.map create mode 100644 node_modules/@mistralai/mistralai/hooks/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/hooks/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/hooks/index.js create mode 100644 node_modules/@mistralai/mistralai/hooks/index.js.map create mode 100644 node_modules/@mistralai/mistralai/hooks/registration.d.ts create mode 100644 node_modules/@mistralai/mistralai/hooks/registration.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/hooks/registration.js create mode 100644 node_modules/@mistralai/mistralai/hooks/registration.js.map create mode 100644 node_modules/@mistralai/mistralai/hooks/types.d.ts create mode 100644 node_modules/@mistralai/mistralai/hooks/types.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/hooks/types.js create mode 100644 node_modules/@mistralai/mistralai/hooks/types.js.map create mode 100644 node_modules/@mistralai/mistralai/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/index.js create mode 100644 node_modules/@mistralai/mistralai/index.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/base64.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/base64.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/base64.js create mode 100644 node_modules/@mistralai/mistralai/lib/base64.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/config.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/config.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/config.js create mode 100644 node_modules/@mistralai/mistralai/lib/config.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/dlv.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/dlv.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/dlv.js create mode 100644 node_modules/@mistralai/mistralai/lib/dlv.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/encodings.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/encodings.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/encodings.js create mode 100644 node_modules/@mistralai/mistralai/lib/encodings.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/env.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/env.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/env.js create mode 100644 node_modules/@mistralai/mistralai/lib/env.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/event-streams.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/event-streams.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/event-streams.js create mode 100644 node_modules/@mistralai/mistralai/lib/event-streams.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/files.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/files.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/files.js create mode 100644 node_modules/@mistralai/mistralai/lib/files.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/http.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/http.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/http.js create mode 100644 node_modules/@mistralai/mistralai/lib/http.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/is-plain-object.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/is-plain-object.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/is-plain-object.js create mode 100644 node_modules/@mistralai/mistralai/lib/is-plain-object.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/logger.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/logger.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/logger.js create mode 100644 node_modules/@mistralai/mistralai/lib/logger.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/matchers.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/matchers.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/matchers.js create mode 100644 node_modules/@mistralai/mistralai/lib/matchers.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/primitives.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/primitives.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/primitives.js create mode 100644 node_modules/@mistralai/mistralai/lib/primitives.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/retries.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/retries.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/retries.js create mode 100644 node_modules/@mistralai/mistralai/lib/retries.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/schemas.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/schemas.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/schemas.js create mode 100644 node_modules/@mistralai/mistralai/lib/schemas.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/sdks.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/sdks.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/sdks.js create mode 100644 node_modules/@mistralai/mistralai/lib/sdks.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/security.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/security.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/security.js create mode 100644 node_modules/@mistralai/mistralai/lib/security.js.map create mode 100644 node_modules/@mistralai/mistralai/lib/url.d.ts create mode 100644 node_modules/@mistralai/mistralai/lib/url.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/lib/url.js create mode 100644 node_modules/@mistralai/mistralai/lib/url.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionstreamrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionstreamrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionstreamrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/agentscompletionstreamrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/archiveftmodelout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/archiveftmodelout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/archiveftmodelout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/archiveftmodelout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/assistantmessage.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/assistantmessage.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/assistantmessage.js create mode 100644 node_modules/@mistralai/mistralai/models/components/assistantmessage.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/basemodelcard.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/basemodelcard.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/basemodelcard.js create mode 100644 node_modules/@mistralai/mistralai/models/components/basemodelcard.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionchoice.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionchoice.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionchoice.js create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionchoice.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionresponse.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionresponse.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionresponse.js create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionresponse.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionstreamrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionstreamrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionstreamrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/chatcompletionstreamrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/checkpointout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/checkpointout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/checkpointout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/checkpointout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/completionchunk.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/completionchunk.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/completionchunk.js create mode 100644 node_modules/@mistralai/mistralai/models/components/completionchunk.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/completionevent.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/completionevent.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/completionevent.js create mode 100644 node_modules/@mistralai/mistralai/models/components/completionevent.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/completionresponsestreamchoice.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/completionresponsestreamchoice.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/completionresponsestreamchoice.js create mode 100644 node_modules/@mistralai/mistralai/models/components/completionresponsestreamchoice.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/contentchunk.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/contentchunk.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/contentchunk.js create mode 100644 node_modules/@mistralai/mistralai/models/components/contentchunk.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/deletefileout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/deletefileout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/deletefileout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/deletefileout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/deletemodelout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/deletemodelout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/deletemodelout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/deletemodelout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/deltamessage.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/deltamessage.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/deltamessage.js create mode 100644 node_modules/@mistralai/mistralai/models/components/deltamessage.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/detailedjobout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/detailedjobout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/detailedjobout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/detailedjobout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponse.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponse.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponse.js create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponse.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponsedata.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponsedata.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponsedata.js create mode 100644 node_modules/@mistralai/mistralai/models/components/embeddingresponsedata.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/eventout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/eventout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/eventout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/eventout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fileschema.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/fileschema.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fileschema.js create mode 100644 node_modules/@mistralai/mistralai/models/components/fileschema.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionresponse.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionresponse.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionresponse.js create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionresponse.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionstreamrequest.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionstreamrequest.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionstreamrequest.js create mode 100644 node_modules/@mistralai/mistralai/models/components/fimcompletionstreamrequest.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/finetuneablemodel.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/finetuneablemodel.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/finetuneablemodel.js create mode 100644 node_modules/@mistralai/mistralai/models/components/finetuneablemodel.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcapabilitiesout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcapabilitiesout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcapabilitiesout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcapabilitiesout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcard.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcard.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcard.js create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelcard.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/ftmodelout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/function.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/function.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/function.js create mode 100644 node_modules/@mistralai/mistralai/models/components/function.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/functioncall.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/functioncall.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/functioncall.js create mode 100644 node_modules/@mistralai/mistralai/models/components/functioncall.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/functionname.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/functionname.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/functionname.js create mode 100644 node_modules/@mistralai/mistralai/models/components/functionname.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryin.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryin.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryin.js create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryin.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/githubrepositoryout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurl.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurl.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurl.js create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurl.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurlchunk.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurlchunk.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurlchunk.js create mode 100644 node_modules/@mistralai/mistralai/models/components/imageurlchunk.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/index.js create mode 100644 node_modules/@mistralai/mistralai/models/components/index.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobin.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/jobin.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobin.js create mode 100644 node_modules/@mistralai/mistralai/models/components/jobin.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobmetadataout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/jobmetadataout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobmetadataout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/jobmetadataout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/jobout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/jobout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobsout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/jobsout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/jobsout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/jobsout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/legacyjobmetadataout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/legacyjobmetadataout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/legacyjobmetadataout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/legacyjobmetadataout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/listfilesout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/listfilesout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/listfilesout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/listfilesout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/metricout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/metricout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/metricout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/metricout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/modelcapabilities.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/modelcapabilities.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/modelcapabilities.js create mode 100644 node_modules/@mistralai/mistralai/models/components/modelcapabilities.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/modellist.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/modellist.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/modellist.js create mode 100644 node_modules/@mistralai/mistralai/models/components/modellist.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformat.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformat.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformat.js create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformat.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformats.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformats.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformats.js create mode 100644 node_modules/@mistralai/mistralai/models/components/responseformats.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/retrievefileout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/retrievefileout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/retrievefileout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/retrievefileout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/sampletype.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/sampletype.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/sampletype.js create mode 100644 node_modules/@mistralai/mistralai/models/components/sampletype.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/security.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/security.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/security.js create mode 100644 node_modules/@mistralai/mistralai/models/components/security.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/source.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/source.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/source.js create mode 100644 node_modules/@mistralai/mistralai/models/components/source.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/systemmessage.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/systemmessage.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/systemmessage.js create mode 100644 node_modules/@mistralai/mistralai/models/components/systemmessage.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/textchunk.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/textchunk.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/textchunk.js create mode 100644 node_modules/@mistralai/mistralai/models/components/textchunk.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/tool.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/tool.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/tool.js create mode 100644 node_modules/@mistralai/mistralai/models/components/tool.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolcall.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/toolcall.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolcall.js create mode 100644 node_modules/@mistralai/mistralai/models/components/toolcall.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoice.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoice.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoice.js create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoice.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoiceenum.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoiceenum.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoiceenum.js create mode 100644 node_modules/@mistralai/mistralai/models/components/toolchoiceenum.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolmessage.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/toolmessage.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/toolmessage.js create mode 100644 node_modules/@mistralai/mistralai/models/components/toolmessage.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/tooltypes.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/tooltypes.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/tooltypes.js create mode 100644 node_modules/@mistralai/mistralai/models/components/tooltypes.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingfile.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingfile.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingfile.js create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingfile.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparameters.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparameters.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparameters.js create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparameters.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparametersin.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparametersin.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparametersin.js create mode 100644 node_modules/@mistralai/mistralai/models/components/trainingparametersin.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/unarchiveftmodelout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/unarchiveftmodelout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/unarchiveftmodelout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/unarchiveftmodelout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/updateftmodelin.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/updateftmodelin.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/updateftmodelin.js create mode 100644 node_modules/@mistralai/mistralai/models/components/updateftmodelin.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/uploadfileout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/uploadfileout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/uploadfileout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/uploadfileout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/usageinfo.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/usageinfo.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/usageinfo.js create mode 100644 node_modules/@mistralai/mistralai/models/components/usageinfo.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/usermessage.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/usermessage.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/usermessage.js create mode 100644 node_modules/@mistralai/mistralai/models/components/usermessage.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/validationerror.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/validationerror.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/validationerror.js create mode 100644 node_modules/@mistralai/mistralai/models/components/validationerror.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegration.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegration.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegration.js create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegration.js.map create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegrationout.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegrationout.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegrationout.js create mode 100644 node_modules/@mistralai/mistralai/models/components/wandbintegrationout.js.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpclienterrors.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpclienterrors.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpclienterrors.js create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpclienterrors.js.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpvalidationerror.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpvalidationerror.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpvalidationerror.js create mode 100644 node_modules/@mistralai/mistralai/models/errors/httpvalidationerror.js.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/errors/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/index.js create mode 100644 node_modules/@mistralai/mistralai/models/errors/index.js.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkerror.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkerror.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkerror.js create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkerror.js.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkvalidationerror.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkvalidationerror.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkvalidationerror.js create mode 100644 node_modules/@mistralai/mistralai/models/errors/sdkvalidationerror.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/deletemodelv1modelsmodeliddelete.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/deletemodelv1modelsmodeliddelete.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/deletemodelv1modelsmodeliddelete.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/deletemodelv1modelsmodeliddelete.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesdeletefile.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesdeletefile.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesdeletefile.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesdeletefile.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesretrievefile.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesretrievefile.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesretrievefile.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesretrievefile.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesuploadfile.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesuploadfile.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesuploadfile.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/filesapiroutesuploadfile.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/index.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/index.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningarchivefinetunedmodel.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningarchivefinetunedmodel.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningarchivefinetunedmodel.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningarchivefinetunedmodel.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjob.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjob.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjob.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjob.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningstartfinetuningjob.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningstartfinetuningjob.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningstartfinetuningjob.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningstartfinetuningjob.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningunarchivefinetunedmodel.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningunarchivefinetunedmodel.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningunarchivefinetunedmodel.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningunarchivefinetunedmodel.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningupdatefinetunedmodel.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningupdatefinetunedmodel.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningupdatefinetunedmodel.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/jobsapiroutesfinetuningupdatefinetunedmodel.js.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/retrievemodelv1modelsmodelidget.d.ts create mode 100644 node_modules/@mistralai/mistralai/models/operations/retrievemodelv1modelsmodelidget.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/models/operations/retrievemodelv1modelsmodelidget.js create mode 100644 node_modules/@mistralai/mistralai/models/operations/retrievemodelv1modelsmodelidget.js.map create mode 100644 node_modules/@mistralai/mistralai/package.json create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/LICENSE create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/docs/sdks/chat/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/docs/sdks/mistralazure/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/core.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/funcs/chatComplete.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/funcs/chatStream.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/hooks/custom_user_agent.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/hooks/hooks.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/hooks/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/hooks/registration.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/hooks/types.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/base64.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/config.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/dlv.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/encodings.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/env.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/event-streams.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/files.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/http.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/is-plain-object.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/logger.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/matchers.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/primitives.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/retries.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/schemas.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/sdks.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/security.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/url.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/assistantmessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionchoice.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionrequest.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionresponse.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionstreamrequest.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/completionchunk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/completionevent.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/completionresponsestreamchoice.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/contentchunk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/deltamessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/function.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/functioncall.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/functionname.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/responseformat.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/responseformats.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/security.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/systemmessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/textchunk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/tool.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolcall.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolchoice.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolchoiceenum.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolmessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/tooltypes.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/usageinfo.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/usermessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/validationerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/errors/httpclienterrors.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/errors/httpvalidationerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/errors/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/errors/sdkerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/errors/sdkvalidationerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/sdk/chat.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/sdk/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/sdk/sdk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/blobs.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/constdatetime.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/enums.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/fp.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/operations.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/rfcdate.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/streams.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/LICENSE create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/docs/sdks/chat/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/docs/sdks/fim/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/docs/sdks/mistralgcp/README.md create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/core.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/chatComplete.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/chatStream.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/fimComplete.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/fimStream.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/hooks/custom_user_agent.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/hooks/hooks.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/hooks/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/hooks/registration.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/hooks/types.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/base64.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/config.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/dlv.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/encodings.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/event-streams.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/files.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/http.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/is-plain-object.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/logger.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/matchers.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/primitives.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/retries.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/schemas.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/sdks.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/security.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/url.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/assistantmessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionchoice.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionrequest.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionresponse.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionstreamrequest.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/completionchunk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/completionevent.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/completionresponsestreamchoice.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/contentchunk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/deltamessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/fimcompletionrequest.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/fimcompletionresponse.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/fimcompletionstreamrequest.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/function.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/functioncall.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/functionname.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/responseformat.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/responseformats.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/security.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/systemmessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/textchunk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/tool.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolcall.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolchoice.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolchoiceenum.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolmessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/tooltypes.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/usageinfo.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/usermessage.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/validationerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/httpclienterrors.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/sdkerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/sdkvalidationerror.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/sdk/chat.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/sdk/fim.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/sdk/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/sdk/sdk.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/blobs.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/constdatetime.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/enums.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/fp.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/index.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/operations.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/rfcdate.ts create mode 100644 node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/streams.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/agents.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/agents.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/agents.js create mode 100644 node_modules/@mistralai/mistralai/sdk/agents.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/chat.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/chat.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/chat.js create mode 100644 node_modules/@mistralai/mistralai/sdk/chat.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/embeddings.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/embeddings.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/embeddings.js create mode 100644 node_modules/@mistralai/mistralai/sdk/embeddings.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/files.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/files.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/files.js create mode 100644 node_modules/@mistralai/mistralai/sdk/files.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/fim.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/fim.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/fim.js create mode 100644 node_modules/@mistralai/mistralai/sdk/fim.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/finetuning.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/finetuning.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/finetuning.js create mode 100644 node_modules/@mistralai/mistralai/sdk/finetuning.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/index.js create mode 100644 node_modules/@mistralai/mistralai/sdk/index.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/jobs.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/jobs.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/jobs.js create mode 100644 node_modules/@mistralai/mistralai/sdk/jobs.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/models.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/models.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/models.js create mode 100644 node_modules/@mistralai/mistralai/sdk/models.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/oldclient.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/oldclient.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/oldclient.js create mode 100644 node_modules/@mistralai/mistralai/sdk/oldclient.js.map create mode 100644 node_modules/@mistralai/mistralai/sdk/sdk.d.ts create mode 100644 node_modules/@mistralai/mistralai/sdk/sdk.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/sdk/sdk.js create mode 100644 node_modules/@mistralai/mistralai/sdk/sdk.js.map create mode 100644 node_modules/@mistralai/mistralai/src/core.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/agentsComplete.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/agentsStream.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/chatComplete.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/chatStream.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/embeddingsCreate.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/filesDelete.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/filesList.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/filesRetrieve.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/filesUpload.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fimComplete.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fimStream.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsCancel.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsCreate.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsGet.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsList.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsStart.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/modelsArchive.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/modelsDelete.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/modelsList.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/modelsRetrieve.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/modelsUnarchive.ts create mode 100644 node_modules/@mistralai/mistralai/src/funcs/modelsUpdate.ts create mode 100644 node_modules/@mistralai/mistralai/src/hooks/custom_user_agent.ts create mode 100644 node_modules/@mistralai/mistralai/src/hooks/deprecation_warning.ts create mode 100644 node_modules/@mistralai/mistralai/src/hooks/hooks.ts create mode 100644 node_modules/@mistralai/mistralai/src/hooks/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/hooks/registration.ts create mode 100644 node_modules/@mistralai/mistralai/src/hooks/types.ts create mode 100644 node_modules/@mistralai/mistralai/src/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/base64.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/config.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/dlv.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/encodings.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/env.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/event-streams.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/files.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/http.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/is-plain-object.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/logger.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/matchers.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/primitives.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/retries.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/schemas.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/sdks.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/security.ts create mode 100644 node_modules/@mistralai/mistralai/src/lib/url.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/agentscompletionrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/agentscompletionstreamrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/archiveftmodelout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/assistantmessage.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/basemodelcard.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/chatcompletionchoice.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/chatcompletionrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/chatcompletionresponse.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/chatcompletionstreamrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/checkpointout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/completionchunk.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/completionevent.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/completionresponsestreamchoice.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/contentchunk.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/deletefileout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/deletemodelout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/deltamessage.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/detailedjobout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/embeddingrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/embeddingresponse.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/embeddingresponsedata.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/eventout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/fileschema.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/fimcompletionrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/fimcompletionresponse.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/fimcompletionstreamrequest.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/finetuneablemodel.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/ftmodelcapabilitiesout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/ftmodelcard.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/ftmodelout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/function.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/functioncall.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/functionname.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/githubrepositoryin.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/githubrepositoryout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/imageurl.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/imageurlchunk.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/jobin.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/jobmetadataout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/jobout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/jobsout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/legacyjobmetadataout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/listfilesout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/metricout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/modelcapabilities.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/modellist.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/responseformat.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/responseformats.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/retrievefileout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/sampletype.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/security.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/source.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/systemmessage.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/textchunk.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/tool.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/toolcall.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/toolchoice.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/toolchoiceenum.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/toolmessage.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/tooltypes.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/trainingfile.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/trainingparameters.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/trainingparametersin.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/unarchiveftmodelout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/updateftmodelin.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/uploadfileout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/usageinfo.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/usermessage.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/validationerror.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/wandbintegration.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/components/wandbintegrationout.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/errors/httpclienterrors.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/errors/httpvalidationerror.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/errors/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/errors/sdkerror.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/errors/sdkvalidationerror.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/deletemodelv1modelsmodeliddelete.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/filesapiroutesdeletefile.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/filesapiroutesretrievefile.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/filesapiroutesuploadfile.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuningarchivefinetunedmodel.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuninggetfinetuningjob.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuningstartfinetuningjob.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuningunarchivefinetunedmodel.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/jobsapiroutesfinetuningupdatefinetunedmodel.ts create mode 100644 node_modules/@mistralai/mistralai/src/models/operations/retrievemodelv1modelsmodelidget.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/agents.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/chat.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/embeddings.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/files.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/fim.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/finetuning.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/jobs.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/models.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/oldclient.ts create mode 100644 node_modules/@mistralai/mistralai/src/sdk/sdk.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/blobs.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/constdatetime.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/enums.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/fp.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/index.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/operations.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/rfcdate.ts create mode 100644 node_modules/@mistralai/mistralai/src/types/streams.ts create mode 100644 node_modules/@mistralai/mistralai/types/blobs.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/blobs.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/blobs.js create mode 100644 node_modules/@mistralai/mistralai/types/blobs.js.map create mode 100644 node_modules/@mistralai/mistralai/types/constdatetime.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/constdatetime.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/constdatetime.js create mode 100644 node_modules/@mistralai/mistralai/types/constdatetime.js.map create mode 100644 node_modules/@mistralai/mistralai/types/enums.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/enums.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/enums.js create mode 100644 node_modules/@mistralai/mistralai/types/enums.js.map create mode 100644 node_modules/@mistralai/mistralai/types/fp.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/fp.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/fp.js create mode 100644 node_modules/@mistralai/mistralai/types/fp.js.map create mode 100644 node_modules/@mistralai/mistralai/types/index.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/index.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/index.js create mode 100644 node_modules/@mistralai/mistralai/types/index.js.map create mode 100644 node_modules/@mistralai/mistralai/types/operations.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/operations.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/operations.js create mode 100644 node_modules/@mistralai/mistralai/types/operations.js.map create mode 100644 node_modules/@mistralai/mistralai/types/rfcdate.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/rfcdate.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/rfcdate.js create mode 100644 node_modules/@mistralai/mistralai/types/rfcdate.js.map create mode 100644 node_modules/@mistralai/mistralai/types/streams.d.ts create mode 100644 node_modules/@mistralai/mistralai/types/streams.d.ts.map create mode 100644 node_modules/@mistralai/mistralai/types/streams.js create mode 100644 node_modules/@mistralai/mistralai/types/streams.js.map create mode 100644 node_modules/zod/LICENSE create mode 100644 node_modules/zod/README.md create mode 100644 node_modules/zod/index.d.ts create mode 100644 node_modules/zod/lib/ZodError.d.ts create mode 100644 node_modules/zod/lib/ZodError.js create mode 100644 node_modules/zod/lib/__tests__/Mocker.d.ts create mode 100644 node_modules/zod/lib/__tests__/Mocker.js create mode 100644 node_modules/zod/lib/benchmarks/datetime.d.ts create mode 100644 node_modules/zod/lib/benchmarks/datetime.js create mode 100644 node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts create mode 100644 node_modules/zod/lib/benchmarks/discriminatedUnion.js create mode 100644 node_modules/zod/lib/benchmarks/index.d.ts create mode 100644 node_modules/zod/lib/benchmarks/index.js create mode 100644 node_modules/zod/lib/benchmarks/ipv4.d.ts create mode 100644 node_modules/zod/lib/benchmarks/ipv4.js create mode 100644 node_modules/zod/lib/benchmarks/object.d.ts create mode 100644 node_modules/zod/lib/benchmarks/object.js create mode 100644 node_modules/zod/lib/benchmarks/primitives.d.ts create mode 100644 node_modules/zod/lib/benchmarks/primitives.js create mode 100644 node_modules/zod/lib/benchmarks/realworld.d.ts create mode 100644 node_modules/zod/lib/benchmarks/realworld.js create mode 100644 node_modules/zod/lib/benchmarks/string.d.ts create mode 100644 node_modules/zod/lib/benchmarks/string.js create mode 100644 node_modules/zod/lib/benchmarks/union.d.ts create mode 100644 node_modules/zod/lib/benchmarks/union.js create mode 100644 node_modules/zod/lib/errors.d.ts create mode 100644 node_modules/zod/lib/errors.js create mode 100644 node_modules/zod/lib/external.d.ts create mode 100644 node_modules/zod/lib/external.js create mode 100644 node_modules/zod/lib/helpers/enumUtil.d.ts create mode 100644 node_modules/zod/lib/helpers/enumUtil.js create mode 100644 node_modules/zod/lib/helpers/errorUtil.d.ts create mode 100644 node_modules/zod/lib/helpers/errorUtil.js create mode 100644 node_modules/zod/lib/helpers/parseUtil.d.ts create mode 100644 node_modules/zod/lib/helpers/parseUtil.js create mode 100644 node_modules/zod/lib/helpers/partialUtil.d.ts create mode 100644 node_modules/zod/lib/helpers/partialUtil.js create mode 100644 node_modules/zod/lib/helpers/typeAliases.d.ts create mode 100644 node_modules/zod/lib/helpers/typeAliases.js create mode 100644 node_modules/zod/lib/helpers/util.d.ts create mode 100644 node_modules/zod/lib/helpers/util.js create mode 100644 node_modules/zod/lib/index.d.ts create mode 100644 node_modules/zod/lib/index.js create mode 100644 node_modules/zod/lib/index.mjs create mode 100644 node_modules/zod/lib/index.umd.js create mode 100644 node_modules/zod/lib/locales/en.d.ts create mode 100644 node_modules/zod/lib/locales/en.js create mode 100644 node_modules/zod/lib/types.d.ts create mode 100644 node_modules/zod/lib/types.js create mode 100644 node_modules/zod/package.json create mode 100644 package.json create mode 100644 yarn.lock diff --git a/backend/collaboration-service/consumer.js b/backend/collaboration-service/consumer.js new file mode 100644 index 0000000000..16d9ca83bd --- /dev/null +++ b/backend/collaboration-service/consumer.js @@ -0,0 +1,139 @@ +const { Mistral } = require('@mistralai/mistralai'); + +const amqp = require('amqplib/callback_api'); +const { sendWsMessage, broadcastToRoom } = require('./ws'); +const axios = require('axios'); +const dotenv = require('dotenv'); +dotenv.config(); + +const CLOUDAMQP_URL = process.env.CLOUDAMQP_URL; +const COLLAB_SERVICE_URL = "http://localhost:8003"; + +function arrayEquals(a, b) { + return Array.isArray(a) && + Array.isArray(b) && + a.length === b.length && + a.every((val, index) => val === b[index]); +} + +function checkSubset(parentArray, subsetArray) { + return subsetArray.every((el) => { + return parentArray.includes(el) + }); +} + +// In-memory store to track unmatched users +let unmatchedUsers = []; + +// Function to set up RabbitMQ consumer +const setupConsumer = () => { + amqp.connect(CLOUDAMQP_URL, (err, conn) => { + if (err) { + console.error('Connection error in consumer.js:', err); + return; + } + + conn.createChannel((err, ch) => { + if (err) throw err; + const queue = 'collab_queue'; + ch.assertQueue(queue, { durable: false }); + + console.log('Listening for messages in RabbitMQ queue for collab...'); + ch.consume(queue, async (msg) => { + const userRequest = JSON.parse(msg.content.toString()); + console.log('Received user request:', userRequest); + console.log('User request type:', userRequest.type); + if (userRequest.status === 'cancel') { + // Handle cancel request + const userIndex = unmatchedUsers.findIndex(u => u.userId === userRequest.userId); + if (userIndex !== -1) { + console.log(`Cancelling request for user ${userRequest.userId}`); + clearTimeout(unmatchedUsers[userIndex].timeoutId); // Clear any pending timeout + unmatchedUsers.splice(userIndex, 1); // Remove user from unmatched list + sendWsMessage(userRequest.userId, { status: 'CANCELLED' }); + console.log(`Cancelled matching request for user ${userRequest.userId}`); + } else { + console.log(`No unmatched request found for user ${userRequest.userId}`); + } + sendWsMessage(userRequest.userId, { status: 'CANCELLED' }); + console.log(`Cancelled matching request for user ${userRequest.userId}`); + } else if (userRequest.type === 'ASK_COPILOT') { + // Function to make the API call with retry logic + + try { + const apiKey = process.env.MISTRAL_API_KEY; + const client = new Mistral({ apiKey: apiKey }); + prompt = userRequest.prompt; + currentCode = userRequest.code; + + const chatResponse = await client.chat.complete({ + model: 'mistral-large-latest', + messages: [{role: 'user', content: currentCode + '\n' + prompt}], + }); + console.log('Asking Copilot:', chatResponse); + + broadcastToRoom(userRequest.roomId, { type: 'ASK_COPILOT', response: chatResponse.choices[0].message.content }); + } catch (error) { + console.error("Failed to fetch chat response:", error); + broadcastToRoom(userRequest.roomId, { type: 'ASK_COPILOT', response: "Error fetching response from assistant." }); + } + } + else { + // Handle match request + const match = unmatchedUsers.find(u => + checkSubset(u.category, userRequest.category) || + checkSubset(userRequest.category, u.category) + ) || unmatchedUsers.find(u => u.difficulty === userRequest.difficulty); + + if (match) { + try { + console.log(`Matched user ${userRequest.userId} with user ${match.userId}`); + + // Create room in collaboration service + const response = await axios.post(`${COLLAB_SERVICE_URL}/rooms/create`, { + users: [userRequest.userId, match.userId], + difficulty: userRequest.difficulty, + category: userRequest.category + }); + console.log(response.data); + const { roomId } = response.data; + + // Notify both users + [userRequest, match].forEach(user => { + sendWsMessage(user.userId, { + status: 'MATCH_FOUND', + roomId, + matchedUserId: user === userRequest ? match.userId : userRequest.userId, + difficulty: userRequest.difficulty, + category: userRequest.category + }); + }); + + // Clear the timeouts for both users + clearTimeout(match.timeoutId); + + // Remove matched user from unmatchedUsers + unmatchedUsers = unmatchedUsers.filter(u => u.userId !== match.userId); + } catch (error) { + console.error('Error creating room:', error); + } + } else { + // Set a timeout to remove unmatched users after 30 seconds + const timeoutId = setTimeout(() => { + unmatchedUsers = unmatchedUsers.filter(u => u.userId !== userRequest.userId); + sendWsMessage(userRequest.userId, { status: 'timeout' }); + }, 30000); // 30 seconds timeout + + // Add the new user with their timeout ID + unmatchedUsers.push({ ...userRequest, timeoutId }); + } + } + + ch.ack(msg); // Acknowledge message processing + }); + }); + }); +}; + + +module.exports = { setupConsumer }; diff --git a/backend/collaboration-service/controllers/copilotControllers.js b/backend/collaboration-service/controllers/copilotControllers.js new file mode 100644 index 0000000000..29f862dd8c --- /dev/null +++ b/backend/collaboration-service/controllers/copilotControllers.js @@ -0,0 +1,16 @@ +const { sendToQueue } = require("../../collaboration-service/mq"); + +const askCopilot = async (req, res) => { + + const { code, prompt, type, roomId } = req.body; + console.log(`Received request to ask Copilot for prompt: ${prompt}`); + + sendToQueue({ code, prompt, type, roomId }); + + res.status(200).send({ status: 'Request received. Waiting for Copilot response.' }); + +}; + +module.exports = { + askCopilot, +}; \ No newline at end of file diff --git a/backend/collaboration-service/index.js b/backend/collaboration-service/index.js index 266c9b41d7..0e14454414 100644 --- a/backend/collaboration-service/index.js +++ b/backend/collaboration-service/index.js @@ -1,7 +1,13 @@ +const dotenv = require('dotenv'); +dotenv.config(); const express = require('express'); const cors = require('cors'); const { setupWebSocket } = require('./ws'); const roomRoutes = require('./routes/room'); +const { setupConsumer } = require('./consumer'); +require('dotenv').config(); +const amqp = require('amqplib/callback_api'); + const app = express(); const PORT = process.env.PORT || 8003; @@ -17,3 +23,7 @@ const server = app.listen(PORT, () => { app.use('/rooms', roomRoutes); setupWebSocket(server); + +setupConsumer(); + + diff --git a/backend/collaboration-service/mq.js b/backend/collaboration-service/mq.js new file mode 100644 index 0000000000..886a139075 --- /dev/null +++ b/backend/collaboration-service/mq.js @@ -0,0 +1,33 @@ +const amqp = require('amqplib/callback_api'); +const dotenv = require('dotenv'); +dotenv.config(); + +const CLOUDAMQP_URL = process.env.CLOUDAMQP_URL; + +let channel; + +// Establish connection to RabbitMQ and create a channel +amqp.connect(CLOUDAMQP_URL, (err, conn) => { + if (err) throw err; + + conn.createChannel((err, ch) => { + if (err) throw err; + channel = ch; + const queue = 'collab_queue'; + ch.assertQueue(queue, { durable: false }); + console.log('RabbitMQ connected, queue asserted:', queue); + }); +}); + +// Function to send messages to the queue +const sendToQueue = (message) => { + const queue = 'collab_queue'; + if (!channel) { + console.error('RabbitMQ channel not initialised'); + return; + } + channel.sendToQueue(queue, Buffer.from(JSON.stringify(message))); + console.log('Sent message to RabbitMQ for collab:', message); +}; + +module.exports = { sendToQueue }; diff --git a/backend/collaboration-service/package-lock.json b/backend/collaboration-service/package-lock.json index 0fdf945a21..a5a919c15b 100644 --- a/backend/collaboration-service/package-lock.json +++ b/backend/collaboration-service/package-lock.json @@ -9,17 +9,68 @@ "version": "1.0.0", "license": "ISC", "dependencies": { + "@mistralai/mistralai": "^1.1.0", + "amqplib": "^0.10.4", + "axios": "^1.7.7", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.21.1", "http": "^0.0.1-security", "uuid": "^10.0.0", - "ws": "^8.18.0" + "ws": "^8.18.0", + "zod": "^3.23.8" }, "devDependencies": { "nodemon": "^3.1.7" } }, + "node_modules/@acuminous/bitsyntax": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@acuminous/bitsyntax/-/bitsyntax-0.1.2.tgz", + "integrity": "sha512-29lUK80d1muEQqiUsSo+3A0yP6CdspgC95EnKBMi22Xlwt79i/En4Vr67+cXhU+cZjbti3TgGGC5wy1stIywVQ==", + "dependencies": { + "buffer-more-ints": "~1.0.0", + "debug": "^4.3.4", + "safe-buffer": "~5.1.2" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/@acuminous/bitsyntax/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@acuminous/bitsyntax/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/@acuminous/bitsyntax/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/@mistralai/mistralai": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@mistralai/mistralai/-/mistralai-1.1.0.tgz", + "integrity": "sha512-YueaIX+g4+QTX6ERLjZLZMOhlC0/EoqwpayWrUKfTM9EGTyiOPdxFLpLpg5B9PsaxOrmZDC88pOp4QgSMqVr8w==", + "peerDependencies": { + "zod": ">= 3" + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -33,6 +84,20 @@ "node": ">= 0.6" } }, + "node_modules/amqplib": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.4.tgz", + "integrity": "sha512-DMZ4eCEjAVdX1II2TfIUpJhfKAuoCeDIo/YyETbfAqehHTXxxs7WOOd+N1Xxr4cKhx12y23zk8/os98FxlZHrw==", + "dependencies": { + "@acuminous/bitsyntax": "^0.1.2", + "buffer-more-ints": "~1.0.0", + "readable-stream": "1.x >=1.1.9", + "url-parse": "~1.5.10" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -53,6 +118,21 @@ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", "license": "MIT" }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -121,6 +201,11 @@ "node": ">=8" } }, + "node_modules/buffer-more-ints": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-1.0.0.tgz", + "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==" + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -174,6 +259,17 @@ "fsevents": "~2.3.2" } }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -217,6 +313,11 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "license": "MIT" }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", @@ -256,6 +357,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -411,6 +520,38 @@ "node": ">= 0.8" } }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -656,6 +797,11 @@ "node": ">=0.12.0" } }, + "node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" + }, "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", @@ -882,6 +1028,11 @@ "node": ">= 0.10" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/pstree.remy": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", @@ -904,6 +1055,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -928,6 +1084,17 @@ "node": ">= 0.8" } }, + "node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -941,6 +1108,11 @@ "node": ">=8.10.0" } }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -1097,6 +1269,11 @@ "node": ">= 0.8" } }, + "node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" + }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -1171,6 +1348,15 @@ "node": ">= 0.8" } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -1222,6 +1408,14 @@ "optional": true } } + }, + "node_modules/zod": { + "version": "3.23.8", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", + "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } } } } diff --git a/backend/collaboration-service/package.json b/backend/collaboration-service/package.json index 672f42109c..30df885cb8 100644 --- a/backend/collaboration-service/package.json +++ b/backend/collaboration-service/package.json @@ -10,12 +10,16 @@ "license": "ISC", "description": "", "dependencies": { + "@mistralai/mistralai": "^1.1.0", + "amqplib": "^0.10.4", + "axios": "^1.7.7", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.21.1", "http": "^0.0.1-security", "uuid": "^10.0.0", - "ws": "^8.18.0" + "ws": "^8.18.0", + "zod": "^3.23.8" }, "devDependencies": { "nodemon": "^3.1.7" diff --git a/backend/collaboration-service/routes/room.js b/backend/collaboration-service/routes/room.js index 2674b511b5..e3a2ea40d6 100644 --- a/backend/collaboration-service/routes/room.js +++ b/backend/collaboration-service/routes/room.js @@ -7,6 +7,12 @@ const { leaveRoom } = require('../controllers/roomControllers'); +const { + askCopilot +} = require('../controllers/copilotControllers'); + +router.post('/', askCopilot); + router.post('/create', createRoom); router.get('/:roomId', getRoomInfo); router.post('/:roomId/join', joinRoom); diff --git a/backend/collaboration-service/ws.js b/backend/collaboration-service/ws.js index 251119f209..ac8f16763d 100644 --- a/backend/collaboration-service/ws.js +++ b/backend/collaboration-service/ws.js @@ -156,8 +156,18 @@ function broadcastToRoom(roomId, message, excludeUserId = null) { } } +// Helper function to send a message to a specific user by userId +const sendWsMessage = (userId, message) => { + const ws = wsClients.get(userId); + if (ws) { + ws.send(JSON.stringify(message)); + console.log(`Sent WebSocket message to user ${userId}:`, message); + } else { + console.log(`No WebSocket connection found for user ${userId}`); + } +}; + + module.exports = { - setupWebSocket, - rooms, - broadcastToRoom -}; \ No newline at end of file + setupWebSocket, sendWsMessage, broadcastToRoom +}; diff --git a/backend/matching-service/consumer.js b/backend/matching-service/consumer.js index 62747a0cb4..679935270d 100644 --- a/backend/matching-service/consumer.js +++ b/backend/matching-service/consumer.js @@ -1,3 +1,6 @@ +const { Mistral } = require('@mistralai/mistralai'); + + const amqp = require('amqplib/callback_api'); const { sendWsMessage } = require('./ws'); const axios = require('axios'); @@ -40,9 +43,41 @@ const setupConsumer = () => { if (userRequest.action === 'cancel') { // Handle cancel request - unmatchedUsers = unmatchedUsers.filter(u => u.userId !== userRequest.userId); - sendWsMessage(userRequest.userId, { status: 'CANCELLED' }); - console.log(`Cancelled matching request for user ${userRequest.userId}`); + const userIndex = unmatchedUsers.findIndex(u => u.userId === userRequest.userId); + if (userIndex !== -1) { + console.log(`Cancelling request for user ${userRequest.userId}`); + clearTimeout(unmatchedUsers[userIndex].timeoutId); // Clear any pending timeout + unmatchedUsers.splice(userIndex, 1); // Remove user from unmatched list + sendWsMessage(userRequest.userId, { status: 'CANCELLED' }); + console.log(`Cancelled matching request for user ${userRequest.userId}`); + } else { + console.log(`No unmatched request found for user ${userRequest.userId}`); + } + sendWsMessage(userRequest.userId, { status: 'CANCELLED' }); + console.log(`Cancelled matching request for user ${userRequest.userId}`); + } else if (userRequest.status === 'askcopilot') { + // Handle askcopilot request: Call LLM API with the data + const apiKey = process.env.Mistral_API_KEY; + const client = new Mistral ({apiKey: apiKey}); + const prompt = userRequest.data.prompt; + const code = userRequest.data.code; + model = 'mistral-large-latest' + chat_response = await client.chat.complete( + + model=model, + messages=[ + { + "role": "system", + "content": "You are an experienced developer. Please provide detailed and accurate responses." + }, + { + "role": "user", + "content": "Prompt: ${prompt}\nCode: ${code}" + } + ] + ) + + sendWsMessage(userRequest.userId, { status: 'askcopilot', response: chat_response }); } else { // Handle match request const match = unmatchedUsers.find(u => diff --git a/frontend/src/api/CopilotApi.js b/frontend/src/api/CopilotApi.js new file mode 100644 index 0000000000..c7cce564c4 --- /dev/null +++ b/frontend/src/api/CopilotApi.js @@ -0,0 +1,21 @@ +import axios from 'axios'; + +const API_URL = 'http://localhost:8003/rooms'; + +export const askCopilot = async (data) => { + try { + const response = await axios.post(API_URL, data); + if (response.status === 200) { + return response.data; + } else { + throw new Error('No match found.'); + } + } catch (error) { + if (error.response) { + console.error('Error finding match:', error.response.data); + throw new Error(error.response.data.message); + } + console.error('Error finding match:', error); + throw error; // Re-throw the error to handle it in component + } +} \ No newline at end of file diff --git a/frontend/src/pages/student/CollaborationRoom.js b/frontend/src/pages/student/CollaborationRoom.js index bfa7b0242c..0b820057e2 100644 --- a/frontend/src/pages/student/CollaborationRoom.js +++ b/frontend/src/pages/student/CollaborationRoom.js @@ -1,4 +1,292 @@ +import React, { useState, useEffect, useRef } from "react"; +import Editor from "@monaco-editor/react"; +import { useParams, useLocation } from "react-router-dom"; +import { askCopilot } from "../../api/CopilotApi"; +const languages = [ + { label: "JavaScript", value: "javascript" }, + { label: "Python", value: "python" }, + { label: "Java", value: "java" }, + { label: "C++", value: "cpp" }, + { label: "HTML", value: "html" }, +]; + const CollaborationRoom = () => { + const [status, setStatus] = useState("Connecting..."); + const { roomId } = useParams(); + // const [userId, setUserId] = useState( + // `user-${Math.random().toString(36).substr(2, 9)}` + // ); // Create a unique user ID. + const [message, setMessage] = useState(""); // Track the input message + const [messages, setMessages] = useState([]); // Store all chat messages + const location = useLocation(); + const { difficulty, category, userId, matchedUserId } = location.state || {}; + + // Generate the userId only once when the component is first mounted + // const userId = useRef(`user-${Math.random().toString(36).substr(2, 9)}`).current; + + const [ws, setWs] = useState(null); // Manage the WebSocket connection here. + const [code, setCode] = useState("// Start coding..."); + const [language, setLanguage] = useState("javascript"); + + const [userPrompt, setUserPrompt] = useState(""); // Track the user input for the prompt + const [copilotResponse, setCopilotResponse] = useState(""); // Store the response from Copilot API + + const monacoRef = useRef(null); // Store reference to Monaco instance + const editorRef = useRef(null); // Store reference to Monaco Editor instance + + // Store the cursor positions of other users + const [userCursors, setUserCursors] = useState({}); + + // Create a WebSocket connection when the component mounts. + useEffect(() => { + const websocket = new WebSocket("ws://localhost:8003"); + + let pingInterval; + + websocket.onopen = () => { + console.log("WebSocket connected."); + setStatus("Connected to the server."); + + // Send a message to create the room + websocket.send( + JSON.stringify({ + type: "CREATE_ROOM", + roomId: roomId, + users: [userId, matchedUserId], + difficulty: difficulty, + category: category, + }) + ); + }; + + websocket.onmessage = (message) => { + console.log("Received message:", message.data); + const result = JSON.parse(message.data); + + if (result.type === "MESSAGE") { + // Add the message to the chat + setMessages((prev) => [ + ...prev, + { userId: result.userId, message: result.message }, + ]); + console.log(userId); + } else if (result.type === "CREATE_SUCCESS") { + // Room created successfully, now join the room + websocket.send( + JSON.stringify({ + type: "JOIN_ROOM", + roomId, + userId, + }) + ); + } else if (result.type === "CODE_UPDATE") { + setCode(result.code); + } else if (result.type === "CREATE_FAILURE") { + setStatus(`Failed to create room: ${result.message}`); + } else if (result.type === "LANGUAGE_CHANGE") { + setLanguage(result.language); + } else if (result.type === "ASK_COPILOT") { + setCopilotResponse(result.response); + } + }; + + websocket.onerror = (error) => { + setStatus("WebSocket connection error."); + console.error("WebSocket error:", error); + }; + + websocket.onclose = (event) => { + clearInterval(pingInterval); // Clear the ping interval + setStatus( + `WebSocket closed: Code = ${event.code}, Reason = ${event.reason}` + ); + console.log( + `WebSocket closed: Code = ${event.code}, Reason = ${event.reason}` + ); + }; + + setWs(websocket); // Store the WebSocket connection. + + // Cleanup WebSocket when the component unmounts + return () => { + websocket.close(); // Properly close the WebSocket on unmount to prevent multiple connections + }; + }, [roomId, matchedUserId, difficulty, category, userId]); // Ensure userId is stable and consistent + + const onCodeChange = (newCode) => { + setCode(newCode); + if (ws && ws.readyState === WebSocket.OPEN) { + ws.send( + JSON.stringify({ + type: "CODE_CHANGE", + roomId: roomId, + code: newCode, + userId: userId, + }) + ); + } + }; + + // Handle cursor position updates and send them to the WebSocket server + const onLanguageChange = (language) => { + if (ws && ws.readyState === WebSocket.OPEN) { + ws.send( + JSON.stringify({ + type: "LANGUAGE_CHANGE", + roomId: roomId, + language: language, + userId: userId, + }) + ); + } + }; + + // // Save reference to Monaco editor and set up cursor position listener + // const handleEditorDidMount = (editor, monaco) => { + // editorRef.current = editor; + // monacoRef.current = monaco; // Save monaco instance for later use + + // // Listen for cursor position changes + // editor.onDidChangeCursorPosition((event) => { + // const position = editor.getPosition(); // { lineNumber, column } + // onCursorChange(position); // Send the new cursor position to the WebSocket server + // }); + // }; + + // // Display the other users' cursor positions + // const renderUserCursors = () => { + // const editor = editorRef.current; + // const monaco = monacoRef.current; + // if (!editor || !monaco) return null; + + // Object.keys(userCursors).forEach((userId) => { + // const cursorPosition = userCursors[userId]; + // if (cursorPosition) { + // const { lineNumber, column } = cursorPosition; + + // // Add a decoration for other users' cursor positions + // editor.deltaDecorations([], [{ + // range: new monaco.Range(lineNumber, column, lineNumber, column), + // options: { + // className: 'other-user-cursor', + // isWholeLine: false + // } + // }]); + // } + // }); + // }; + + // useEffect(() => { + // if (editorRef.current) { + // renderUserCursors(); + // } + // }, [userCursors]); + + const sendMessage = (event) => { + event.preventDefault(); + if (ws && message) { + ws.send( + JSON.stringify({ + type: "SEND_MESSAGE", + roomId, + userId, + message, + }) + ); + setMessage(""); // Clear the message input + } + }; + + const handleSubmitPrompt = async () => { + const promptData = { + code: code, + prompt: userPrompt, + type: "ASK_COPILOT", + roomId: roomId, + }; + + try { + const response = await askCopilot(promptData); + + } catch (error) { + console.error("Error calling Copilot API:", error); + setCopilotResponse("Error: " + error); + } + }; + + + console.log("Message:", message); + console.log("Messages:", messages); + + return ( +
+

Collaboration Room: {roomId}

+

Status: {status}

+
+
Questions
+
+
+ + +
+ +
+ +
+
+
+
+ setMessage(event.target.value)} + onKeyDown={(event) => { + event.key === "Enter" && sendMessage(event); + }} + > +
+
+
+