@gaia-framework/backend-core 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/build/openapi/openapi.json +502 -2
  3. package/build/openapi/openapi.yaml +362 -9
  4. package/build/openapi/voice-media-worker.json +1 -1
  5. package/build/openapi/voice-media-worker.yaml +1 -1
  6. package/build/openapi/worker-health.json +1 -1
  7. package/build/openapi/worker-health.yaml +1 -1
  8. package/build/src/config/schema.d.ts +87 -0
  9. package/build/src/config/schema.d.ts.map +1 -1
  10. package/build/src/config/schema.js +57 -1
  11. package/build/src/config/schema.js.map +1 -1
  12. package/build/src/core/application/dtos/llms/responses/LLMInfoDto.d.ts +2 -1
  13. package/build/src/core/application/dtos/llms/responses/LLMInfoDto.d.ts.map +1 -1
  14. package/build/src/core/application/mappers/llms/LLMInfoMapper.d.ts.map +1 -1
  15. package/build/src/core/application/mappers/llms/LLMInfoMapper.js +2 -0
  16. package/build/src/core/application/mappers/llms/LLMInfoMapper.js.map +1 -1
  17. package/build/src/core/application/services/media/VideoGenerationRequestService.js +2 -2
  18. package/build/src/core/application/services/media/VideoGenerationRequestService.js.map +1 -1
  19. package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts.map +1 -1
  20. package/build/src/core/application/services/runs/RunAppServiceImpl.js +16 -4
  21. package/build/src/core/application/services/runs/RunAppServiceImpl.js.map +1 -1
  22. package/build/src/core/application/services/tasks/ScheduledRunDispatchService.d.ts.map +1 -1
  23. package/build/src/core/application/services/tasks/ScheduledRunDispatchService.js +9 -2
  24. package/build/src/core/application/services/tasks/ScheduledRunDispatchService.js.map +1 -1
  25. package/build/src/core/application/services/voice/session/VoiceContextService.js +1 -1
  26. package/build/src/core/application/services/voice/session/VoiceContextService.js.map +1 -1
  27. package/build/src/core/domain/models/llms/LLMInfo.d.ts +2 -1
  28. package/build/src/core/domain/models/llms/LLMInfo.d.ts.map +1 -1
  29. package/build/src/core/domain/models/runs/RunApproval.d.ts +1 -1
  30. package/build/src/core/domain/models/runs/RunApproval.d.ts.map +1 -1
  31. package/build/src/core/domain/models/runs/RunApproval.js.map +1 -1
  32. package/build/src/core/domain/models/speech/Transcription.d.ts +1 -0
  33. package/build/src/core/domain/models/speech/Transcription.d.ts.map +1 -1
  34. package/build/src/core/domain/models/videos/VideoGenerationRequest.d.ts +2 -0
  35. package/build/src/core/domain/models/videos/VideoGenerationRequest.d.ts.map +1 -1
  36. package/build/src/core/domain/models/videos/VideoGenerationRequest.js +5 -1
  37. package/build/src/core/domain/models/videos/VideoGenerationRequest.js.map +1 -1
  38. package/build/src/core/domain/services/chat/ConversationContextService.d.ts +1 -1
  39. package/build/src/core/domain/services/chat/ConversationContextService.d.ts.map +1 -1
  40. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.d.ts +1 -1
  41. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.d.ts.map +1 -1
  42. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.js +12 -3
  43. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.js.map +1 -1
  44. package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.d.ts.map +1 -1
  45. package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js +4 -1
  46. package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js.map +1 -1
  47. package/build/src/core/domain/services/chat/VideoInputPolicy.d.ts +5 -0
  48. package/build/src/core/domain/services/chat/VideoInputPolicy.d.ts.map +1 -0
  49. package/build/src/core/domain/services/chat/VideoInputPolicy.js +14 -0
  50. package/build/src/core/domain/services/chat/VideoInputPolicy.js.map +1 -0
  51. package/build/src/core/domain/services/media/TranscriptionPolicy.js +1 -1
  52. package/build/src/core/domain/services/media/TranscriptionPolicy.js.map +1 -1
  53. package/build/src/core/domain/services/models/ModelServiceImpl.d.ts.map +1 -1
  54. package/build/src/core/domain/services/models/ModelServiceImpl.js +4 -2
  55. package/build/src/core/domain/services/models/ModelServiceImpl.js.map +1 -1
  56. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts.map +1 -1
  57. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js +4 -2
  58. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js.map +1 -1
  59. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.d.ts +8 -0
  60. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.d.ts.map +1 -0
  61. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.js +16 -0
  62. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.js.map +1 -0
  63. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.d.ts +2 -3
  64. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.d.ts.map +1 -1
  65. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.js +42 -17
  66. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.js.map +1 -1
  67. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.d.ts +15 -0
  68. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.d.ts.map +1 -0
  69. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.js +21 -0
  70. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.js.map +1 -0
  71. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.d.ts +36 -0
  72. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.d.ts.map +1 -0
  73. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.js +108 -0
  74. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.js.map +1 -0
  75. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.d.ts +3 -3
  76. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.d.ts.map +1 -1
  77. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.js +36 -25
  78. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.js.map +1 -1
  79. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.d.ts +12 -0
  80. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.d.ts.map +1 -0
  81. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.js +97 -0
  82. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.js.map +1 -0
  83. package/build/src/core/infrastructure/ai/llm/context/codecs/RunMediaContextCodecs.js +3 -1
  84. package/build/src/core/infrastructure/ai/llm/context/codecs/RunMediaContextCodecs.js.map +1 -1
  85. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.d.ts +12 -0
  86. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.d.ts.map +1 -0
  87. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.js +46 -0
  88. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.js.map +1 -0
  89. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.d.ts +24 -0
  90. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.d.ts.map +1 -0
  91. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.js +100 -0
  92. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.js.map +1 -0
  93. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.d.ts +53 -0
  94. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.d.ts.map +1 -0
  95. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.js +178 -0
  96. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.js.map +1 -0
  97. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.d.ts +19 -0
  98. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.d.ts.map +1 -0
  99. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.js +59 -0
  100. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.js.map +1 -0
  101. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.d.ts +8 -0
  102. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.d.ts.map +1 -0
  103. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.js +72 -0
  104. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.js.map +1 -0
  105. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.d.ts +28 -0
  106. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.d.ts.map +1 -0
  107. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.js +117 -0
  108. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.js.map +1 -0
  109. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.d.ts +44 -0
  110. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.d.ts.map +1 -0
  111. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.js +148 -0
  112. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.js.map +1 -0
  113. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.d.ts +6 -2
  114. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.d.ts.map +1 -1
  115. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.js +47 -37
  116. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.js.map +1 -1
  117. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.d.ts +3 -1
  118. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.d.ts.map +1 -1
  119. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.js +16 -8
  120. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.js.map +1 -1
  121. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.d.ts +12 -0
  122. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.d.ts.map +1 -0
  123. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.js +12 -0
  124. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.js.map +1 -0
  125. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.d.ts.map +1 -1
  126. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js +6 -1
  127. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js.map +1 -1
  128. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.d.ts +1 -1
  129. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.d.ts.map +1 -1
  130. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.js +12 -6
  131. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.js.map +1 -1
  132. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.d.ts.map +1 -1
  133. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js +3 -0
  134. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js.map +1 -1
  135. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.d.ts +1 -1
  136. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.d.ts.map +1 -1
  137. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.js +14 -1
  138. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.js.map +1 -1
  139. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.d.ts +1 -0
  140. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.d.ts.map +1 -1
  141. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.js +2 -2
  142. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.js.map +1 -1
  143. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.d.ts +19 -0
  144. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.d.ts.map +1 -0
  145. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.js +170 -0
  146. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.js.map +1 -0
  147. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.d.ts +4 -0
  148. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.d.ts.map +1 -0
  149. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.js +42 -0
  150. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.js.map +1 -0
  151. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.d.ts +25 -0
  152. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.d.ts.map +1 -0
  153. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.js +106 -0
  154. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.js.map +1 -0
  155. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts +5 -1
  156. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts.map +1 -1
  157. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js +37 -5
  158. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js.map +1 -1
  159. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts +2 -2
  160. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts.map +1 -1
  161. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js +4 -0
  162. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js.map +1 -1
  163. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts +1 -1
  164. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts.map +1 -1
  165. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js +2 -2
  166. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js.map +1 -1
  167. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts +6 -1
  168. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts.map +1 -1
  169. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js +29 -12
  170. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js.map +1 -1
  171. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts +1 -1
  172. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts.map +1 -1
  173. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js +2 -2
  174. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js.map +1 -1
  175. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts +13 -2
  176. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts.map +1 -1
  177. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js +22 -9
  178. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js.map +1 -1
  179. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.d.ts +10 -0
  180. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.d.ts.map +1 -0
  181. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.js +74 -0
  182. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.js.map +1 -0
  183. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.d.ts +25 -0
  184. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.d.ts.map +1 -0
  185. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.js +104 -0
  186. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.js.map +1 -0
  187. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.d.ts +40 -0
  188. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.d.ts.map +1 -0
  189. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.js +39 -0
  190. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.js.map +1 -0
  191. package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.d.ts.map +1 -1
  192. package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.js +2 -30
  193. package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.js.map +1 -1
  194. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.d.ts +9 -0
  195. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.d.ts.map +1 -0
  196. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.js +87 -0
  197. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.js.map +1 -0
  198. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.d.ts +2 -2
  199. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.d.ts.map +1 -1
  200. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.js +7 -10
  201. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.js.map +1 -1
  202. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.d.ts +5 -0
  203. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.d.ts.map +1 -0
  204. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.js +33 -0
  205. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.js.map +1 -0
  206. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.d.ts +13 -0
  207. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.d.ts.map +1 -0
  208. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.js +95 -0
  209. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.js.map +1 -0
  210. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.d.ts +29 -0
  211. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.d.ts.map +1 -0
  212. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.js +167 -0
  213. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.js.map +1 -0
  214. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.d.ts +5 -0
  215. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.d.ts.map +1 -0
  216. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.js +26 -0
  217. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.js.map +1 -0
  218. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.d.ts +7 -7
  219. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.d.ts.map +1 -1
  220. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.js +159 -63
  221. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.js.map +1 -1
  222. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.d.ts +6 -2
  223. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.d.ts.map +1 -1
  224. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.js +22 -13
  225. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.js.map +1 -1
  226. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.d.ts +12 -6
  227. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.d.ts.map +1 -1
  228. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.js +64 -15
  229. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.js.map +1 -1
  230. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.d.ts +15 -0
  231. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.d.ts.map +1 -0
  232. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.js +81 -0
  233. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.js.map +1 -0
  234. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.d.ts +26 -0
  235. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.d.ts.map +1 -0
  236. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.js +80 -0
  237. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.js.map +1 -0
  238. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.d.ts +20 -17
  239. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.d.ts.map +1 -1
  240. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.js +20 -9
  241. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.js.map +1 -1
  242. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.d.ts +2 -1
  243. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.d.ts.map +1 -1
  244. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.js +6 -4
  245. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.js.map +1 -1
  246. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.js +24 -8
  247. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.js.map +1 -1
  248. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js +1 -1
  249. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js.map +1 -1
  250. package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.d.ts +2 -2
  251. package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js +2 -2
  252. package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js.map +1 -1
  253. package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.d.ts.map +1 -1
  254. package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js +5 -4
  255. package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js.map +1 -1
  256. package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.d.ts.map +1 -1
  257. package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.js +4 -1
  258. package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.js.map +1 -1
  259. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.d.ts +18 -0
  260. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.d.ts.map +1 -0
  261. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.js +88 -0
  262. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.js.map +1 -0
  263. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts +4 -2
  264. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts.map +1 -1
  265. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.js +109 -45
  266. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.js.map +1 -1
  267. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.d.ts +10 -0
  268. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.d.ts.map +1 -0
  269. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.js +43 -0
  270. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.js.map +1 -0
  271. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.d.ts +3 -2
  272. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.d.ts.map +1 -1
  273. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.js +7 -7
  274. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.js.map +1 -1
  275. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.d.ts.map +1 -1
  276. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.js +4 -4
  277. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.js.map +1 -1
  278. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.d.ts +3 -2
  279. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.d.ts.map +1 -1
  280. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.js +13 -4
  281. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.js.map +1 -1
  282. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.js +27 -23
  283. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.js.map +1 -1
  284. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.d.ts +14 -0
  285. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.d.ts.map +1 -0
  286. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.js +113 -0
  287. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.js.map +1 -0
  288. package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.d.ts.map +1 -1
  289. package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.js +12 -2
  290. package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.js.map +1 -1
  291. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts +1 -0
  292. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts.map +1 -1
  293. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js +1 -0
  294. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js.map +1 -1
  295. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.d.ts +36 -34
  296. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.d.ts.map +1 -1
  297. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.js +51 -17
  298. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.js.map +1 -1
  299. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.d.ts +4 -0
  300. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.d.ts.map +1 -0
  301. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.js +4 -0
  302. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.js.map +1 -0
  303. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.js +1 -1
  304. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.js.map +1 -1
  305. package/build/src/core/infrastructure/di/builtInLLMProviders.d.ts.map +1 -1
  306. package/build/src/core/infrastructure/di/builtInLLMProviders.js +17 -2
  307. package/build/src/core/infrastructure/di/builtInLLMProviders.js.map +1 -1
  308. package/build/src/core/infrastructure/di/index.d.ts.map +1 -1
  309. package/build/src/core/infrastructure/di/index.js +56 -8
  310. package/build/src/core/infrastructure/di/index.js.map +1 -1
  311. package/build/src/core/infrastructure/di/types.d.ts +1 -0
  312. package/build/src/core/infrastructure/di/types.d.ts.map +1 -1
  313. package/build/src/core/infrastructure/di/types.js +1 -0
  314. package/build/src/core/infrastructure/di/types.js.map +1 -1
  315. package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.d.ts.map +1 -1
  316. package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.js +4 -6
  317. package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.js.map +1 -1
  318. package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.d.ts.map +1 -1
  319. package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.js +9 -0
  320. package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.js.map +1 -1
  321. package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.d.ts.map +1 -1
  322. package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.js +6 -0
  323. package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.js.map +1 -1
  324. package/build/src/core/infrastructure/services/audio/TranscriptionWav.js +1 -1
  325. package/build/src/core/infrastructure/services/audio/TranscriptionWav.js.map +1 -1
  326. package/build/src/core/infrastructure/services/chat/ProviderRequestUsage.js +1 -1
  327. package/build/src/core/infrastructure/services/chat/ProviderRequestUsage.js.map +1 -1
  328. package/build/src/core/infrastructure/services/runs/approval/RunToolInvocationLifecycleImpl.js +1 -0
  329. package/build/src/core/infrastructure/services/runs/approval/RunToolInvocationLifecycleImpl.js.map +1 -1
  330. package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.d.ts.map +1 -1
  331. package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.js +2 -1
  332. package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.js.map +1 -1
  333. package/build/src/modules/workspaces/infrastructure/recovery/operator/authority/observer/ExecutionSources.js +1 -1
  334. package/package.json +2 -1
  335. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts +0 -3
  336. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts.map +0 -1
  337. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js +0 -27
  338. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js.map +0 -1
@@ -197,6 +197,7 @@ function requireNonEmpty(ctx, path, value, message) {
197
197
  }
198
198
  }
199
199
  const Enabled = z.object({ enabled: zBool.optional() }).passthrough();
200
+ const AlibabaWorkspaceProvider = Enabled.extend({ baseUrl: z.string().optional(), apiKey: z.string().optional() });
200
201
  const hasControlCharacters = (value) => Array.from(value).some(character => {
201
202
  const code = character.codePointAt(0) ?? 0;
202
203
  return code <= 0x1f || code === 0x7f;
@@ -1749,7 +1750,15 @@ const AzureLlmProviderSchema = Enabled.extend({
1749
1750
  const apiKey = process.env.AZURE_FOUNDRY_PROJECT_API_KEY;
1750
1751
  return endpoint || apiKey ? { ...azure, project: { endpoint, apiKey, ...azure.project } } : azure;
1751
1752
  });
1753
+ const VertexLocation = z.union([z.literal(''), z.string().trim().regex(/^[a-z][a-z0-9-]{0,62}$/)]);
1754
+ const VertexBucket = z.union([z.literal(''), z.string().trim().regex(/^[a-z0-9][a-z0-9._-]{1,220}[a-z0-9]$/)]);
1755
+ const VertexConnection = z.object({
1756
+ project: z.union([z.literal(''), z.string().trim().regex(/^[a-z0-9][a-z0-9.:-]{0,127}$/)]).optional(),
1757
+ location: VertexLocation.optional(),
1758
+ stagingBucket: VertexBucket.optional(),
1759
+ }).strict();
1752
1760
  const LlmProvidersSchema = z.object({
1761
+ vertex: Enabled.strict().optional(),
1753
1762
  meta: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1754
1763
  openai: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1755
1764
  anthropic: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
@@ -1772,6 +1781,8 @@ const LlmProvidersSchema = z.object({
1772
1781
  maximumRetries: LocalProviderRetries.default(1),
1773
1782
  }).passthrough().optional(),
1774
1783
  mistral: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1784
+ huggingface: Enabled.extend({ apiKey: z.string().optional() }).strict().optional(),
1785
+ alibaba: AlibabaWorkspaceProvider.optional(),
1775
1786
  nvidia: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1776
1787
  ollama: Enabled.extend({
1777
1788
  baseUrl: LocalProviderBaseUrl.default("http://localhost:11434"),
@@ -1789,6 +1800,17 @@ const LlmProvidersSchema = z.object({
1789
1800
  path: ["apiKey"],
1790
1801
  message: "An API key is required when Ollama Cloud is enabled",
1791
1802
  }).optional(),
1803
+ togetherai: Enabled.extend({ apiKey: z.string().trim().default("") }).strict()
1804
+ .refine(provider => !provider.enabled || Boolean(provider.apiKey), {
1805
+ path: ["apiKey"],
1806
+ message: "An API key is required when Together AI is enabled",
1807
+ }).optional(),
1808
+ amazon: Enabled.extend({
1809
+ region: z.string().regex(/^[a-z]{2}(?:-[a-z0-9]+)+-\d+$/).default("us-east-2"),
1810
+ apiKey: z.string().trim().default(""),
1811
+ }).strict().refine(provider => !provider.enabled || Boolean(provider.apiKey), {
1812
+ path: ["apiKey"], message: "An API key is required when Amazon Bedrock is enabled",
1813
+ }).optional(),
1792
1814
  opencode: Enabled.extend({
1793
1815
  apiKey: z.string().trim().default(""),
1794
1816
  requestTimeoutMs: LocalProviderRequestTimeout.default(120_000),
@@ -1800,7 +1822,17 @@ const LlmProvidersSchema = z.object({
1800
1822
  openrouter: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1801
1823
  xai: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1802
1824
  }).passthrough();
1825
+ const AzureSpeechResourceName = z.string().trim().regex(/^[a-z0-9][a-z0-9-]{1,62}$/);
1826
+ const AzureMaiTranscriptionModel = z.object({
1827
+ enabled: zBool.default(false),
1828
+ resource: z.object({
1829
+ region: z.string().trim().regex(/^[a-z0-9-]{1,64}$/),
1830
+ apiKey: z.string().trim().min(1),
1831
+ resourceName: AzureSpeechResourceName.optional(),
1832
+ }).optional(),
1833
+ });
1803
1834
  const AiSchema = z.object({
1835
+ vertex: VertexConnection.optional(),
1804
1836
  llm: z.object({
1805
1837
  options: z.object({
1806
1838
  maxToolCallIterations: zNum.default(10),
@@ -1884,6 +1916,7 @@ const AiSchema = z.object({
1884
1916
  openai: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1885
1917
  google: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1886
1918
  cohere: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1919
+ vertex: Enabled.extend({ location: VertexLocation.optional() }).strict().optional(),
1887
1920
  }).passthrough().optional(),
1888
1921
  }).passthrough().optional(),
1889
1922
  images: z.object({
@@ -1891,7 +1924,7 @@ const AiSchema = z.object({
1891
1924
  editing: z.object({
1892
1925
  enabled: zBool.default(false),
1893
1926
  defaultModel: z.enum(['openai/gpt-image-2', 'openai/gpt-image-2.5-flare', 'openai/gpt-image-2.5-sunburst',
1894
- 'openai/gpt-image-2.6-flare', 'openai/gpt-image-2.6-sunburst', 'meta/muse-image-1.0', 'bfl/flux-3.1-image'])
1927
+ 'openai/gpt-image-2.6-flare', 'openai/gpt-image-2.6-sunburst', 'meta/muse-image-1.0', 'bfl/flux-3.1-image', 'alibaba/qwen-image-3.0'])
1895
1928
  .default('openai/gpt-image-2.5-sunburst'),
1896
1929
  maxInputImages: zNum.pipe(z.number().int().min(1).max(4)).default(4),
1897
1930
  maxOutputImages: zNum.pipe(z.number().int().min(1).max(4)).default(4),
@@ -1904,6 +1937,9 @@ const AiSchema = z.object({
1904
1937
  providers: z.object({
1905
1938
  meta: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1906
1939
  google: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1940
+ alibaba: AlibabaWorkspaceProvider.optional(),
1941
+ togetherai: Enabled.extend({ apiKey: z.string().optional() }).strict().optional(),
1942
+ vertex: Enabled.extend({ location: VertexLocation.optional() }).strict().optional(),
1907
1943
  blackforestlabs: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1908
1944
  }).passthrough().optional(),
1909
1945
  }).passthrough().optional(),
@@ -1912,7 +1948,14 @@ const AiSchema = z.object({
1912
1948
  }).strict().optional(),
1913
1949
  videos: z.object({
1914
1950
  providers: z.object({
1951
+ togetherai: Enabled.extend({ apiKey: z.string().optional() }).strict().optional(),
1915
1952
  google: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1953
+ alibaba: AlibabaWorkspaceProvider.optional(),
1954
+ vertex: Enabled.extend({
1955
+ veoLocation: VertexLocation.optional(),
1956
+ omniLocation: VertexLocation.optional(),
1957
+ outputBucket: VertexBucket.optional(),
1958
+ }).strict().optional(),
1916
1959
  azure: Enabled.extend({ endpoint: z.string().optional(), apiKey: z.string().optional() }).passthrough().optional(),
1917
1960
  }).passthrough().optional(),
1918
1961
  }).passthrough().optional(),
@@ -1945,9 +1988,11 @@ const AiSchema = z.object({
1945
1988
  }).optional(),
1946
1989
  }).passthrough().default({ maxUploadBytes: 26_214_400 }),
1947
1990
  providers: z.object({
1991
+ togetherai: Enabled.extend({ apiKey: z.string().optional() }).strict().optional(),
1948
1992
  meta: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1949
1993
  deepgram: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1950
1994
  elevenlabs: Enabled.extend({ apiKey: z.string().optional() }).passthrough().optional(),
1995
+ vertex: Enabled.extend({ location: VertexLocation.optional(), realtimeLocation: VertexLocation.optional() }).strict().optional(),
1951
1996
  polly: z.object({
1952
1997
  accessKeyId: z.string().optional(),
1953
1998
  secretAccessKey: z.string().optional(),
@@ -1957,6 +2002,11 @@ const AiSchema = z.object({
1957
2002
  region: z.string().optional(),
1958
2003
  apiKey: z.string().optional(),
1959
2004
  speechToText: z.object({
2005
+ resourceName: AzureSpeechResourceName.optional(),
2006
+ mai: z.object({
2007
+ transcribe25: AzureMaiTranscriptionModel.optional(),
2008
+ transcribe2: AzureMaiTranscriptionModel.optional(),
2009
+ }).optional(),
1960
2010
  enabled: zBool.default(false),
1961
2011
  requestTimeoutMs: zNum.pipe(z.number().int().min(1_000).max(600_000)).default(120_000),
1962
2012
  }).passthrough().default({ enabled: false, requestTimeoutMs: 120_000 }),
@@ -2065,6 +2115,12 @@ export const BackendConfigSchema = z.object({
2065
2115
  const runtimeExecutorMode = cfg.runtimeExecutorMode ?? cfg.runtimeExecutor.mode;
2066
2116
  const runtime = cfg.runtime;
2067
2117
  validateVoiceHostingConfiguration(cfg, ctx);
2118
+ if (['llm', 'embeddings', 'images', 'videos', 'speech'].some(kind => cfg.ai[kind]?.providers?.vertex?.enabled)) {
2119
+ for (const field of ['project', 'location']) {
2120
+ if (!cfg.ai.vertex?.[field])
2121
+ ctx.addIssue({ code: 'custom', path: ['ai', 'vertex', field], message: `Set ai.vertex.${field} when enabling a Vertex AI provider.` });
2122
+ }
2123
+ }
2068
2124
  const desktop = cfg['workspace-execution']?.desktopStreaming;
2069
2125
  const execution = cfg['workspace-execution'];
2070
2126
  if (Object.values(execution?.profiles ?? {}).some(profile => profile.enabled && profile.kubernetes)) {