@gaia-framework/backend-core 7.0.0 → 7.1.0-rc.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 +13 -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
@@ -1,19 +1,28 @@
1
1
  import { parentPort, workerData } from 'node:worker_threads';
2
- import { GoogleGenAI } from '@google/genai';
3
- import { OMNI_VIDEO_DEADLINE_MS } from '../../../../../domain/models/videos/VideoGenerationRequest.js';
2
+ import { createGoogleGenAiClient } from '../../../google/GoogleGenAiConnection.js';
3
+ import { OMNI_VIDEO_DEADLINE_MS, VERTEX_OMNI_VIDEO_MODEL, VideoGenerationFailure } from '../../../../../domain/models/videos/VideoGenerationRequest.js';
4
4
  import { normalizeOmniFailure } from './OmniVideoFailure.js';
5
5
  import { awaitOmniFile, downloadOmniVideo } from './OmniVideoDelivery.js';
6
- import { buildOmniRequest, decodeOmniVideo, extractOmniVideo, OMNI_JSON_LIMIT, omniOutputByteLimit, readBoundedResponse, validateOmniDeliveryUrl, } from './OmniVideoProtocol.js';
6
+ import { buildOmniRequest, decodeOmniVideo, extractOmniVideo, OMNI_JSON_LIMIT, OMNI_NATIVE_MODEL, omniOutputByteLimit, boundedVideoJson, validateOmniDeliveryUrl, } from './OmniVideoProtocol.js';
7
7
  const input = workerData;
8
8
  const maximumBytes = omniOutputByteLimit(input.maximumBytes);
9
9
  const deadline = AbortSignal.timeout(OMNI_VIDEO_DEADLINE_MS);
10
- const nativeFetch = globalThis.fetch;
11
- // The SDK has no public per-client fetch hook. This override is confined to this request's worker.
12
- globalThis.fetch = async (resource, init) => {
10
+ const connection = input.connection;
11
+ const boundedFetch = async (resource, init) => {
13
12
  const url = resource instanceof Request ? resource.url : String(resource);
14
- validateOmniDeliveryUrl(url);
13
+ if (connection.kind === 'developer') {
14
+ validateOmniDeliveryUrl(url);
15
+ }
16
+ else {
17
+ const endpoint = new URL(url);
18
+ const hostname = connection.location === 'global' ? 'aiplatform.googleapis.com' : connection.location + '-aiplatform.googleapis.com';
19
+ const path = '/projects/' + connection.project + '/locations/' + connection.location + '/interactions';
20
+ if (endpoint.origin !== 'https://' + hostname || !endpoint.pathname.endsWith(path)) {
21
+ throw new VideoGenerationFailure('video_invalid_output', 502, 'Unexpected Vertex API endpoint.', true);
22
+ }
23
+ }
15
24
  const signal = init?.signal ?? (resource instanceof Request ? resource.signal : undefined);
16
- const response = await nativeFetch(resource, {
25
+ const response = await fetch(resource, {
17
26
  ...init,
18
27
  redirect: 'error',
19
28
  signal: signal ? AbortSignal.any([signal, deadline]) : deadline,
@@ -21,32 +30,27 @@ globalThis.fetch = async (resource, init) => {
21
30
  const limit = response.ok && new URL(url).pathname.endsWith('/interactions')
22
31
  ? Math.ceil(maximumBytes / 3) * 4 + OMNI_JSON_LIMIT
23
32
  : OMNI_JSON_LIMIT;
24
- const bytes = await readBoundedResponse(response, limit);
25
- const headers = new Headers(response.headers);
26
- headers.delete('content-encoding');
27
- headers.set('content-length', String(bytes.length));
28
- return new Response(Buffer.from(bytes), {
29
- status: response.status,
30
- statusText: response.statusText,
31
- headers,
32
- });
33
+ return boundedVideoJson(response, limit);
33
34
  };
34
35
  async function run() {
35
- const ai = new GoogleGenAI({
36
- apiKey: input.apiKey,
37
- httpOptions: { timeout: OMNI_VIDEO_DEADLINE_MS, retryOptions: { attempts: 1 } },
36
+ const ai = createGoogleGenAiClient(connection, {
37
+ httpOptions: { timeout: OMNI_VIDEO_DEADLINE_MS, retryOptions: { attempts: 1 }, fetch: boundedFetch },
38
38
  });
39
- const response = await ai.interactions.create(buildOmniRequest(input.params), {
39
+ const model = connection.kind === 'vertex' ? VERTEX_OMNI_VIDEO_MODEL.split('/')[1] : OMNI_NATIVE_MODEL;
40
+ const response = await ai.interactions.create(buildOmniRequest(input.params, model), {
40
41
  timeout: OMNI_VIDEO_DEADLINE_MS,
41
42
  fetchOptions: { signal: deadline },
42
43
  maxRetries: 0,
43
44
  });
44
- const video = extractOmniVideo(response);
45
+ const video = extractOmniVideo(response, model);
45
46
  if (video.data) {
46
47
  return decodeOmniVideo(video.data, maximumBytes);
47
48
  }
49
+ if (connection.kind === 'vertex') {
50
+ throw new VideoGenerationFailure('video_invalid_output', 502, 'Vertex did not return the requested inline video.', true);
51
+ }
48
52
  await awaitOmniFile((name, signal) => ai.files.get({ name, config: { abortSignal: signal } }), video.uri, deadline, undefined, maximumBytes);
49
- return downloadOmniVideo(video.uri, input.apiKey, deadline, nativeFetch, maximumBytes);
53
+ return downloadOmniVideo(video.uri, connection.apiKey, deadline, fetch, maximumBytes);
50
54
  }
51
55
  try {
52
56
  const bytes = await run();
@@ -1 +1 @@
1
- {"version":3,"file":"OmniVideoWorker.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,iBAAiB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CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC,EACzE,KAAK,CAAC,GAAI,EACV,QAAQ,EACR,SAAS,EACT,YAAY,CACb,CAAC;IAEF,OAAO,iBAAiB,CAAC,KAAK,CAAC,GAAI,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AAC1F,CAAC;AAED,IAAI,CAAC;IACH,MAAM,KAAK,GAAG,MAAM,GAAG,EAAE,CAAC;IAE1B,UAAU,EAAE,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACrC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,MAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9D,UAAU,EAAE,WAAW,CAAC;QACtB,OAAO,EAAE;YACP,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B;KACF,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"OmniVideoWorker.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAA8B,MAAM,0CAA0C,CAAC;AAE/G,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AACxJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,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C,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ConfigService } from '@gaia-framework/config';
2
+ import type { GenerateVideoParams, VideoGenerationProvider } from '../../../../domain/ports/ai/videos/VideoGenerationProvider.js';
3
+ import type { VideoGenerationModelInfo } from '../../../../domain/models/videos/VideoGenerationModelInfo.js';
4
+ export declare class TogetherVideoGenerationProvider implements VideoGenerationProvider {
5
+ private readonly config;
6
+ readonly id = "togetherai";
7
+ constructor(config: ConfigService);
8
+ private get key();
9
+ getModels(): VideoGenerationModelInfo[];
10
+ generateVideo(params: GenerateVideoParams): Promise<Uint8Array>;
11
+ private request;
12
+ private download;
13
+ }
14
+ //# sourceMappingURL=TogetherVideoGenerationProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TogetherVideoGenerationProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAIvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,+DAA+D,CAAC;AAClI,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AAgB7G,qBACa,+BAAgC,YAAW,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFpE,QAAQ,CAAC,EAAE,gBAAgB;gBAEmC,MAAM,EAAE,aAAa;IAEnF,OAAO,KAAK,GAAG,GAGd;IAED,SAAS;IAEH,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;YA+BvD,OAAO;YASP,QAAQ;CAyBvB"}
@@ -0,0 +1,113 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
11
+ return function (target, key) { decorator(target, key, paramIndex); }
12
+ };
13
+ import { inject, injectable } from 'inversify';
14
+ import { ConfigService } from '@gaia-framework/config';
15
+ import { setTimeout as wait } from 'node:timers/promises';
16
+ import { z } from 'zod';
17
+ import CoreTypes from '../../../di/types.js';
18
+ import { validateVideoOptions, VideoGenerationFailure } from '../../../../domain/models/videos/VideoGenerationRequest.js';
19
+ import { videoCreationFailure, videoProviderRequest } from '../VideoProviderRequest.js';
20
+ const endpoint = 'https://api.together.ai/v2/videos';
21
+ const model = {
22
+ id: 'togetherai/ByteDance/Seedance-1.0-lite', providerModel: 'ByteDance/Seedance-1.0-lite',
23
+ displayName: 'Seedance 1.0 Lite (Together AI)', provider: 'Together AI', type: 'video',
24
+ };
25
+ const job = z.object({
26
+ id: z.string().min(1),
27
+ status: z.enum(['queued', 'in_progress', 'completed', 'failed', 'cancelled']),
28
+ outputs: z.object({ video_url: z.string() }).nullish(),
29
+ });
30
+ const maxVideoBytes = 64 * 1024 * 1024;
31
+ let TogetherVideoGenerationProvider = class TogetherVideoGenerationProvider {
32
+ config;
33
+ id = 'togetherai';
34
+ constructor(config) {
35
+ this.config = config;
36
+ }
37
+ get key() {
38
+ return this.config.getOptionalBoolean('ai.videos.providers.togetherai.enabled')
39
+ ? this.config.getOptionalString('ai.videos.providers.togetherai.apiKey')?.trim() : undefined;
40
+ }
41
+ getModels() { return this.key ? [model] : []; }
42
+ async generateVideo(params) {
43
+ const key = this.key;
44
+ if (!key)
45
+ throw new VideoGenerationFailure('video_provider_disabled', 503, 'Together AI video is disabled.');
46
+ const selected = params.model ?? model.id;
47
+ if (selected !== model.id)
48
+ throw new VideoGenerationFailure('video_model_unavailable', 400, 'The selected video model is unavailable.');
49
+ validateVideoOptions(selected, params);
50
+ if (params.input_reference !== undefined) {
51
+ throw new VideoGenerationFailure('invalid_video_options', 400, 'This Together AI video model accepts a text prompt only.');
52
+ }
53
+ const deadline = AbortSignal.timeout(600_000);
54
+ const signal = params.abortSignal ? AbortSignal.any([deadline, params.abortSignal]) : deadline;
55
+ const headers = { Authorization: 'Bearer ' + key, 'Content-Type': 'application/json' };
56
+ let result = await videoProviderRequest(() => this.request(endpoint, {
57
+ method: 'POST', headers, signal,
58
+ body: JSON.stringify({ model: model.providerModel, prompt: params.prompt, width: 864, height: 480, seconds: '5' }),
59
+ }), signal, 'creation');
60
+ return videoProviderRequest(async () => {
61
+ const poll = endpoint + '/' + encodeURIComponent(result.id);
62
+ while (result.status === 'queued' || result.status === 'in_progress') {
63
+ await wait(5000, undefined, { signal });
64
+ result = await this.request(poll, { headers, signal });
65
+ }
66
+ if (result.status !== 'completed' || !result.outputs?.video_url) {
67
+ throw new VideoGenerationFailure('video_provider_failed', 502, 'Together AI did not complete the video job.');
68
+ }
69
+ return this.download(result.outputs.video_url, signal);
70
+ }, signal, 'completion');
71
+ }
72
+ async request(url, init) {
73
+ const response = await fetch(url, { ...init, redirect: 'error' });
74
+ if (!response.ok) {
75
+ await response.body?.cancel();
76
+ throw videoCreationFailure(response.status);
77
+ }
78
+ return job.parse(await response.json());
79
+ }
80
+ async download(source, signal) {
81
+ const url = URL.parse(source);
82
+ const failure = () => new VideoGenerationFailure('video_delivery_failed', 502, 'The Together AI video could not be downloaded.');
83
+ if (url?.origin !== 'https://api.together.ai' || url.username || url.password || !url.pathname.startsWith('/shrt/')) {
84
+ throw failure();
85
+ }
86
+ // The hosted short link is signed. Never forward the provider key to the download.
87
+ const response = await fetch(url, { signal, redirect: 'error' });
88
+ if (!response.ok || !response.body || !response.headers.get('Content-Type')?.startsWith('video/mp4')
89
+ || Number(response.headers.get('Content-Length')) > maxVideoBytes) {
90
+ await response.body?.cancel();
91
+ throw failure();
92
+ }
93
+ let size = 0;
94
+ const chunks = [];
95
+ for await (const chunk of response.body) {
96
+ size += chunk.length;
97
+ if (size > maxVideoBytes)
98
+ throw failure();
99
+ chunks.push(chunk);
100
+ }
101
+ const video = Buffer.concat(chunks, size);
102
+ if (video.toString('ascii', 4, 8) !== 'ftyp')
103
+ throw failure();
104
+ return video;
105
+ }
106
+ };
107
+ TogetherVideoGenerationProvider = __decorate([
108
+ injectable(),
109
+ __param(0, inject(CoreTypes.ConfigService)),
110
+ __metadata("design:paramtypes", [ConfigService])
111
+ ], TogetherVideoGenerationProvider);
112
+ export { TogetherVideoGenerationProvider };
113
+ //# sourceMappingURL=TogetherVideoGenerationProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TogetherVideoGenerationProvider.js","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAC1H,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAExF,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AACrD,MAAM,KAAK,GAA6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AAC,EAAE,CAAC,CAAC,KAAK,MAAM;YAAE,MAAM,OAAO,EAAE,CAAC;QAC9D,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAA;AA7EY,+BAA+B;IAD3C,UAAU,EAAE;IAIE,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;qCAA0B,aAAa;GAHxE,+BAA+B,CA6E3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModelsController.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/controllers/models/ModelsController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAIhG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI5C,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qBACa,gBAAgB;IAEU,OAAO,CAAC,QAAQ,CAAC,eAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADX,eAAe,EAAE,eAAe,EAClC,aAAa,EAAE,aAAa;IAInE,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ;IAyB5C,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAUxD,kBAAkB,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAU5D,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IActD,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/D"}
1
+ {"version":3,"file":"ModelsController.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/controllers/models/ModelsController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAIhG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI5C,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAG7E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qBACa,gBAAgB;IAEU,OAAO,CAAC,QAAQ,CAAC,eAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADX,eAAe,EAAE,eAAe,EAClC,aAAa,EAAE,aAAa;IAInE,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ;IAiC5C,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAUxD,kBAAkB,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAU5D,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IActD,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/D"}
@@ -13,6 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  import { inject, injectable } from "inversify";
14
14
  import { ModelType } from "../../../../../domain/types/ModelType.js";
15
15
  import CoreTypes from "../../../../di/types.js";
16
+ import { legacyInputModalities, modelCatalogMediaType } from "../../routers/models/catalogRepresentation.js";
16
17
  let ModelsController = class ModelsController {
17
18
  modelAppService;
18
19
  loggerService;
@@ -32,11 +33,20 @@ let ModelsController = class ModelsController {
32
33
  type = req.query.type;
33
34
  }
34
35
  const models = await this.modelAppService.getModels(type);
36
+ const expanded = req.accepts(['application/json', modelCatalogMediaType]) === modelCatalogMediaType;
35
37
  const modelsResponse = {
36
- models,
38
+ models: expanded ? models : models.map(model => {
39
+ if (model.type !== 'llm')
40
+ return model;
41
+ const { supportsAgenticVideo: _agenticVideo, inputModalities, ...legacy } = model;
42
+ return inputModalities
43
+ ? { ...legacy, inputModalities: inputModalities.filter(value => legacyInputModalities.some(known => known === value)) }
44
+ : legacy;
45
+ }),
37
46
  defaultModel: this.modelAppService.getDefaultModel(),
38
47
  };
39
- res.status(200).send(modelsResponse);
48
+ res.vary('Accept');
49
+ res.type(expanded ? modelCatalogMediaType : 'application/json').status(200).send(modelsResponse);
40
50
  }
41
51
  catch (error) {
42
52
  this.loggerService.error('Error getting models:', error);
@@ -1 +1 @@
1
- {"version":3,"file":"ModelsController.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/controllers/models/ModelsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAczC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAE2B;IACF;IAFpD,YACsD,eAAgC,EAClC,aAA4B;QAD1B,oBAAe,GAAf,eAAe,CAAiB;QAClC,kBAAa,GAAb,aAAa,CAAe;IAEhF,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,GAAY,EAAE,GAAa;QAChD,IAAI,CAAC;YACH,IAAI,IAA2B,CAAC;YAChC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAE9C,IAAI,OAAO,GA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C,CAAC;QAC1F,CAAC;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,CAAU,EAAE,GAAa;QAC5C,IAAI,CAAC;YACH,MAAM,MAAM,GAA+B,MAAM,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC;YACvF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;YAC/D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,qDAAqD,KAAK,EAAE,EAAE,CAAC,CAAC;QAChG,CAAC;IACH,CAAC;CACF,CAAA;AA3EY,gBAAgB;IAD5B,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;;GAHvB,gBAAgB,CA2E5B"}
1
+ {"version":3,"file":"ModelsController.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/controllers/models/ModelsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAOhD,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAQtG,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAE2B;IACF;IAFpD,YACsD,eAAgC,EAClC,aAA4B;QAD1B,oBAAe,GAAf,eAAe,CAAiB;QAClC,kBAAa,GAAb,aAAa,CAAe;IAEhF,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,G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AAa,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;YAC/D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,qDAAqD,KAAK,EAAE,EAAE,CAAC,CAAC;QAChG,CAAC;IACH,CAAC;CACF,CAAA;AAnFY,gBAAgB;IAD5B,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;;GAHvB,gBAAgB,CAmF5B"}
@@ -102,6 +102,7 @@ export declare const transcriptionCapabilities: z.ZodObject<{
102
102
  maxSessionMs: z.ZodOptional<z.ZodNumber>;
103
103
  diarizationRequiresTimestamps: z.ZodOptional<z.ZodBoolean>;
104
104
  annotationExcludesKeywords: z.ZodOptional<z.ZodBoolean>;
105
+ annotationsWithSmart: z.ZodOptional<z.ZodBoolean>;
105
106
  timestampGranularity: z.ZodOptional<z.ZodEnum<{
106
107
  word: "word";
107
108
  turn: "turn";
@@ -1 +1 @@
1
- {"version":3,"file":"SpeechRouter.openapi.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAC;AAmBtG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;iBAOM,CAAC;AACvC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAOM,CAAC;AAkCtC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBM,CAAC;AA8B7C,eAAO,MAAM,kBAAkB,EAAE,eA8DhC,CAAC"}
1
+ {"version":3,"file":"SpeechRouter.openapi.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAC;AAmBtG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;iBAOM,CAAC;AACvC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAOM,CAAC;AAmCtC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBM,CAAC;AA8B7C,eAAO,MAAM,kBAAkB,EAAE,eA8DhC,CAAC"}
@@ -37,6 +37,7 @@ const modelCapability = z.object({
37
37
  maxSessionMs: z.number().optional(),
38
38
  diarizationRequiresTimestamps: z.boolean().optional(),
39
39
  annotationExcludesKeywords: z.boolean().optional(),
40
+ annotationsWithSmart: z.boolean().optional(),
40
41
  timestampGranularity: z.enum(['word', 'turn']).optional(),
41
42
  supportedLanguages: z.array(z.object({ code: z.string(), name: z.string() })).optional(),
42
43
  formats: z.array(z.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"SpeechRouter.openapi.js","sourceRoot":"","sources":["../../../../../../../../../../src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,8DAA8D,CAAC;AAC7G,OAAO,EACL,aAAa,EACb,eAAe,EACf,cAAc,EACd,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,MAAM,0CAA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AE;gBACpF,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,SAAS,EAAE,EAAE,GAAG,EAAE,YAAY,CAAC,yBAAyB,CAAC,EAAE,GAAG,cAAc,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE;aAChG,CAAC;SACH;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,cAAc,CAAC,iBAAiB,EAAE,2BAA2B,EAAE;gBACnE,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,iBAAiB;gBAC3B,WAAW,EACT,uUAAuU;gBACzU,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,EAAE;gBAClG,SAAS,EAAE;oBACT,GAAG,EAAE;wBACH,WAAW,EAAE,2CAA2C;wBACxD,OAAO,EAAE;4BACP,kBAAkB,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;4BAChF,mBAAmB,EAAE;gCACnB,mBAAmB,EAAE,EAAE,IAAI,EAAE,yCAAyC,EAAE;gCACxE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gCAC1B,OAAO,EACL,mGAAmG;6BACtG;yBACF;qBACF;oBACD,GAAG,cAAc,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;oBAC/E,KAAK,EAAE,YAAY,CAAC,SAAS,EAAE,0EAA0E,CAAC;iBAC3G;aACF,CAAC;SACH;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"SpeechRouter.openapi.js","sourceRoot":"","sources":["../../../../../../../../../../src/core/infrastructure/api/v1/routers/media/audio/open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EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;oBAC/E,KAAK,EAAE,YAAY,CAAC,SAAS,EAAE,0EAA0E,CAAC;iBAC3G;aACF,CAAC;SACH;KACF;CACF,CAAC"}
@@ -1,23 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import type { HttpApiContract } from '../../../../../../shared/http/openapi/HttpApiContract.js';
3
3
  export declare const ModelInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
- type: z.ZodLiteral<"llm">;
5
- supportsTools: z.ZodOptional<z.ZodBoolean>;
6
- supportsConversationalImageEditing: z.ZodOptional<z.ZodBoolean>;
7
- supportsInstructions: z.ZodOptional<z.ZodBoolean>;
8
- supportsReasoning: z.ZodOptional<z.ZodBoolean>;
9
- supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
10
- none: "none";
11
- minimal: "minimal";
12
- low: "low";
13
- medium: "medium";
14
- high: "high";
15
- xhigh: "xhigh";
16
- max: "max";
17
- }>>>;
18
- maxContextLength: z.ZodOptional<z.ZodNumber>;
19
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
20
- inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodString | z.ZodEnum<{
21
5
  image: "image";
22
6
  text: "text";
23
7
  audio: "audio";
@@ -45,6 +29,23 @@ export declare const ModelInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
29
  }, z.core.$strip>>;
46
30
  disabled: z.ZodOptional<z.ZodBoolean>;
47
31
  deprecated: z.ZodOptional<z.ZodBoolean>;
32
+ supportsAgenticVideo?: z.ZodOptional<z.ZodBoolean> | undefined;
33
+ type: z.ZodLiteral<"llm">;
34
+ supportsTools: z.ZodOptional<z.ZodBoolean>;
35
+ supportsConversationalImageEditing: z.ZodOptional<z.ZodBoolean>;
36
+ supportsInstructions: z.ZodOptional<z.ZodBoolean>;
37
+ supportsReasoning: z.ZodOptional<z.ZodBoolean>;
38
+ supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
39
+ none: "none";
40
+ minimal: "minimal";
41
+ low: "low";
42
+ medium: "medium";
43
+ high: "high";
44
+ xhigh: "xhigh";
45
+ max: "max";
46
+ }>>>;
47
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
48
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
48
49
  id: z.ZodString;
49
50
  providerModel: z.ZodString;
50
51
  displayName: z.ZodString;
@@ -128,23 +129,7 @@ export declare const ModelInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
128
129
  }, z.core.$strip>], "type">;
129
130
  export declare const ModelsResponseSchema: z.ZodObject<{
130
131
  models: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
131
- type: z.ZodLiteral<"llm">;
132
- supportsTools: z.ZodOptional<z.ZodBoolean>;
133
- supportsConversationalImageEditing: z.ZodOptional<z.ZodBoolean>;
134
- supportsInstructions: z.ZodOptional<z.ZodBoolean>;
135
- supportsReasoning: z.ZodOptional<z.ZodBoolean>;
136
- supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
137
- none: "none";
138
- minimal: "minimal";
139
- low: "low";
140
- medium: "medium";
141
- high: "high";
142
- xhigh: "xhigh";
143
- max: "max";
144
- }>>>;
145
- maxContextLength: z.ZodOptional<z.ZodNumber>;
146
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
147
- inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
132
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodString | z.ZodEnum<{
148
133
  image: "image";
149
134
  text: "text";
150
135
  audio: "audio";
@@ -172,6 +157,23 @@ export declare const ModelsResponseSchema: z.ZodObject<{
172
157
  }, z.core.$strip>>;
173
158
  disabled: z.ZodOptional<z.ZodBoolean>;
174
159
  deprecated: z.ZodOptional<z.ZodBoolean>;
160
+ supportsAgenticVideo?: z.ZodOptional<z.ZodBoolean> | undefined;
161
+ type: z.ZodLiteral<"llm">;
162
+ supportsTools: z.ZodOptional<z.ZodBoolean>;
163
+ supportsConversationalImageEditing: z.ZodOptional<z.ZodBoolean>;
164
+ supportsInstructions: z.ZodOptional<z.ZodBoolean>;
165
+ supportsReasoning: z.ZodOptional<z.ZodBoolean>;
166
+ supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
167
+ none: "none";
168
+ minimal: "minimal";
169
+ low: "low";
170
+ medium: "medium";
171
+ high: "high";
172
+ xhigh: "xhigh";
173
+ max: "max";
174
+ }>>>;
175
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
176
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
175
177
  id: z.ZodString;
176
178
  providerModel: z.ZodString;
177
179
  displayName: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"ModelsRouter.openapi.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAWhG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4DI,CAAC;AACjC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2E,CAAC;AAE7G,eAAO,MAAM,cAAc,EAAE,eAiC5B,CAAC"}
1
+ {"version":3,"file":"ModelsRouter.openapi.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AA4EhG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAuD,CAAC;AACpF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2E,CAAC;AAK7G,eAAO,MAAM,cAAc,EAAE,eA0D5B,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { errorResponses, jsonResponse, queryParameter, readSecurity, } from '../../../../../../shared/http/openapi/contractHelpers.js';
2
+ import { errorResponses, queryParameter, readSecurity, } from '../../../../../../shared/http/openapi/contractHelpers.js';
3
3
  import { LLMSettingsSchema } from '../../requests/chat/LLMSettingsSchema.js';
4
4
  import { imageOutputCapabilitiesSchema } from '../../requests/images/ImageOutputOptionsSchema.js';
5
+ import { legacyInputModalities, modelCatalogMediaType } from './catalogRepresentation.js';
5
6
  const baseModel = { id: z.string(), providerModel: z.string(), displayName: z.string(), provider: z.string() };
6
- export const ModelInfoSchema = z
7
+ const modelInfoSchema = (expanded) => z
7
8
  .discriminatedUnion('type', [
8
9
  z.object({
9
10
  ...baseModel,
@@ -17,7 +18,12 @@ export const ModelInfoSchema = z
17
18
  .optional(),
18
19
  maxContextLength: z.number().optional(),
19
20
  maxOutputTokens: z.number().optional(),
20
- inputModalities: z.array(z.enum(['text', 'image', 'audio'])).optional(),
21
+ ...(expanded && {
22
+ supportsAgenticVideo: z.boolean().optional().describe('Supports model-directed inspection of the video timeline.'),
23
+ }),
24
+ inputModalities: z.array(expanded
25
+ ? z.string().describe('Input modality name. Ignore unrecognized values.')
26
+ : z.enum(legacyInputModalities)).optional(),
21
27
  outputModalities: z.array(z.enum(['text', 'image', 'audio'])).optional(),
22
28
  defaultSettings: LLMSettingsSchema.optional(),
23
29
  disabled: z.boolean().optional(),
@@ -62,9 +68,12 @@ export const ModelInfoSchema = z
62
68
  }),
63
69
  z.object({ ...baseModel, type: z.literal('speech_to_text') }),
64
70
  z.object({ ...baseModel, type: z.literal('text_to_speech'), supportsInstructions: z.boolean().optional() }),
65
- ])
66
- .meta({ id: 'CoreModelInfo' });
71
+ ]);
72
+ export const ModelInfoSchema = modelInfoSchema(false).meta({ id: 'CoreModelInfo' });
67
73
  export const ModelsResponseSchema = z.object({ models: z.array(ModelInfoSchema), defaultModel: z.string() });
74
+ const expandedCatalogSchema = ModelsResponseSchema.extend({
75
+ models: z.array(modelInfoSchema(true)),
76
+ });
68
77
  export const modelsContract = {
69
78
  router: 'ModelsRouter',
70
79
  tags: [{ name: 'Models', description: 'Configured provider models and capability metadata.' }],
@@ -74,25 +83,50 @@ export const modelsContract = {
74
83
  get: {
75
84
  operationId: 'listModels',
76
85
  summary: 'List configured models',
86
+ description: 'Request application/vnd.gaia.model-catalog+json for extensible LLM input modality names, including video. The default application/json representation retains the original v1 input modalities.',
77
87
  tags: ['Models'],
78
88
  security: readSecurity,
79
89
  parameters: [
80
90
  queryParameter('type', z.enum(['llm', 'embedding', 'image', 'video', 'speech_to_text', 'text_to_speech'])),
81
91
  ],
82
92
  responses: {
83
- 200: jsonResponse(ModelsResponseSchema, 'Models and default model identifier', {
84
- models: [
85
- {
86
- id: 'configured-model',
87
- providerModel: 'provider-model',
88
- displayName: 'Configured model',
89
- provider: 'openai',
90
- type: 'llm',
91
- supportsTools: true,
93
+ 200: {
94
+ description: 'Models and default model identifier',
95
+ headers: {
96
+ Vary: { schema: { type: 'string' }, description: 'Catalog responses vary by the Accept header.', example: 'Accept' },
97
+ },
98
+ content: {
99
+ 'application/json': {
100
+ schema: ModelsResponseSchema,
101
+ example: {
102
+ models: [{
103
+ id: 'configured-model',
104
+ providerModel: 'provider-model',
105
+ displayName: 'Configured model',
106
+ provider: 'openai',
107
+ type: 'llm',
108
+ supportsTools: true,
109
+ }],
110
+ defaultModel: 'configured-model',
111
+ },
92
112
  },
93
- ],
94
- defaultModel: 'configured-model',
95
- }),
113
+ [modelCatalogMediaType]: {
114
+ schema: expandedCatalogSchema,
115
+ example: {
116
+ models: [{
117
+ id: 'google/gemini-3.8-flash',
118
+ providerModel: 'gemini-3.8-flash',
119
+ displayName: 'Gemini 3.8 Flash',
120
+ provider: 'google',
121
+ type: 'llm',
122
+ inputModalities: ['text', 'image', 'video'],
123
+ supportsAgenticVideo: true,
124
+ }],
125
+ defaultModel: 'google/gemini-3.8-flash',
126
+ },
127
+ },
128
+ },
129
+ },
96
130
  ...errorResponses(400, 401, 403, 429, 500),
97
131
  },
98
132
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ModelsRouter.openapi.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,GACb,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAElG,MAAM,SAAS,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,WAAW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E;QACL,GAAG,EAAE;YACH,GAAG,EAAE;gBACH,WAAW,EAAE,YAAY;gBACzB,OAAO,EAAE,wBAAwB;gBACjC,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,YAAY;gBACtB,UAAU,EAAE;oBACV,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC;iBAC3G;gBACD,SAAS,EAAE;oBACT,GAAG,EAAE,YAAY,CAAC,oBAAoB,EAAE,qCAAqC,EAAE;wBAC7E,MAAM,EAAE;4BACN;gCACE,EAAE,EAAE,kBAAkB;gCACtB,aAAa,EAAE,gBAAgB;gCAC/B,WAAW,EAAE,kBAAkB;gCAC/B,QAAQ,EAAE,QAAQ;gCAClB,IAAI,EAAE,KAAK;gCACX,aAAa,EAAE,IAAI;6BACpB;yBACF;wBACD,YAAY,EAAE,kBAAkB;qBACjC,CAAC;oBACF,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;iBAC3C;aACF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"ModelsRouter.openapi.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,MAAM,SAAS,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,M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AAgB;4CAC/B,WAAW,EAAE,kBAAkB;4CAC/B,QAAQ,EAAE,QAAQ;4CAClB,IAAI,EAAE,KAAK;4CACX,aAAa,EAAE,IAAI;yCACpB,CAAC;oCACF,YAAY,EAAE,kBAAkB;iCACjC;6BACF;4BACD,CAAC,qBAAqB,CAAC,EAAE;gCACvB,MAAM,EAAE,qBAAqB;gCAC7B,OAAO,EAAE;oCACP,MAAM,EAAE,CAAC;4CACP,EAAE,EAAE,yBAAyB;4CAC7B,aAAa,EAAE,kBAAkB;4CACjC,WAAW,EAAE,kBAAkB;4CAC/B,QAAQ,EAAE,QAAQ;4CAClB,IAAI,EAAE,KAAK;4CACX,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;4CAC3C,oBAAoB,EAAE,IAAI;yCAC3B,CAAC;oCACF,YAAY,EAAE,yBAAyB;iCACxC;6BACF;yBACF;qBACF;oBACD,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;iBAC3C;aACF;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Wildcard requests use the original v1 JSON representation. */
2
+ export declare const modelCatalogMediaType = "application/vnd.gaia.model-catalog+json";
3
+ export declare const legacyInputModalities: readonly ["text", "image", "audio"];
4
+ //# sourceMappingURL=catalogRepresentation.d.ts.map