@n8n/n8n-nodes-langchain 2.35.2 → 2.36.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.
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_text_to_video.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v11/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v11/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v11/resource_video/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v11/resource_video/operation_text_to_video.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/anthropic/v1/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/anthropic/v1/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/anthropic/v1/resource_prompt/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/anthropic/v1/resource_prompt/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/anthropic/v1/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/anthropic/v1/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_document/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_document/operation_analyze.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_file_search/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_file_search/operation_create_store.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_video/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v1/resource_video/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_document/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_document/operation_analyze.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_file_search/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_file_search/operation_create_store.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_video/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v11/resource_video/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_document/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_document/operation_analyze.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_create_store.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v1.ts +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v11.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v11.ts +59 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatOpenRouter/v1.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatOpenRouter/v1.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v1.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v1.ts +4 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v11.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v11.ts +4 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v2.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v2.ts +4 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v21.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v21.ts +54 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_video/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_video/operation_image_to_video.schema.js +3 -3
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_video/operation_image_to_video.ts +8 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_video/operation_text_to_video.schema.js +6 -6
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v1/resource_video/operation_text_to_video.ts +4 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/index.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/index.ts +21 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_audio/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_audio/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_audio/operation_text_to_speech.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_audio/operation_text_to_speech.ts +75 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_image/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_image/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_image/operation_generate.schema.js +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_image/operation_generate.ts +64 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_text/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_text/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_text/operation_message.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_text/operation_message.ts +82 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_video/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_video/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_video/operation_image_to_video.schema.js +38 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_video/operation_image_to_video.ts +122 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_video/operation_text_to_video.schema.js +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/minimax/v11/resource_video/operation_text_to_video.ts +82 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/ollama/v1/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/ollama/v1/resource_text/operation_message.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_audio/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_audio/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_image/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_image/operation_generate.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_conversation/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_conversation/operation_create.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_text/operation_response.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_conversation/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_conversation/operation_create.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_text/operation_response.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_create.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/operation_response.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_create.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_upload.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/operation_response.schema.js +1 -1
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js +1 -4
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js +1 -4
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js.map +1 -1
- package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js +23 -11
- package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js.map +1 -1
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js +123 -5
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/CredentialGateTool.d.ts +4 -0
- package/dist/nodes/mcp/McpTrigger/CredentialGateTool.js +24 -0
- package/dist/nodes/mcp/McpTrigger/CredentialGateTool.js.map +1 -0
- package/dist/nodes/mcp/McpTrigger/McpServer.d.ts +3 -3
- package/dist/nodes/mcp/McpTrigger/McpServer.js +10 -10
- package/dist/nodes/mcp/McpTrigger/McpServer.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js +66 -8
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/audio/tts.operation.js +1 -1
- package/dist/nodes/vendors/MiniMax/actions/audio/tts.operation.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/image/generate.operation.js +1 -1
- package/dist/nodes/vendors/MiniMax/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/text/message.operation.js +22 -11
- package/dist/nodes/vendors/MiniMax/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/versionDescription.js +2 -1
- package/dist/nodes/vendors/MiniMax/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/video/generate.i2v.operation.d.ts +2 -2
- package/dist/nodes/vendors/MiniMax/actions/video/generate.i2v.operation.js +144 -92
- package/dist/nodes/vendors/MiniMax/actions/video/generate.i2v.operation.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/video/generate.t2v.operation.d.ts +2 -2
- package/dist/nodes/vendors/MiniMax/actions/video/generate.t2v.operation.js +117 -73
- package/dist/nodes/vendors/MiniMax/actions/video/generate.t2v.operation.js.map +1 -1
- package/dist/nodes/vendors/MiniMax/actions/video/helpers.d.ts +9 -0
- package/dist/nodes/vendors/MiniMax/actions/video/helpers.js +94 -0
- package/dist/nodes/vendors/MiniMax/actions/video/helpers.js.map +1 -0
- package/dist/nodes/vendors/MiniMax/helpers/interfaces.d.ts +15 -0
- package/dist/nodes/vendors/MiniMax/helpers/modelOptions.d.ts +5 -0
- package/dist/nodes/vendors/MiniMax/helpers/modelOptions.js +17 -0
- package/dist/nodes/vendors/MiniMax/helpers/modelOptions.js.map +1 -0
- package/dist/nodes/vendors/MiniMax/transport/index.d.ts +9 -0
- package/dist/nodes/vendors/MiniMax/transport/index.js +56 -3
- package/dist/nodes/vendors/MiniMax/transport/index.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/nodes.json +4 -4
- package/dist/utils/N8nTool.js +3 -1
- package/dist/utils/N8nTool.js.map +1 -1
- package/dist/utils/helpers.d.ts +4 -2
- package/dist/utils/helpers.js +4 -2
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +12 -12
|
@@ -4,35 +4,63 @@ exports.description = void 0;
|
|
|
4
4
|
exports.execute = execute;
|
|
5
5
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
6
|
const transport_1 = require("../../transport");
|
|
7
|
+
const helpers_1 = require("./helpers");
|
|
8
|
+
const modelOptionsV1 = [
|
|
9
|
+
{
|
|
10
|
+
name: 'MiniMax-Hailuo-2.3',
|
|
11
|
+
value: 'MiniMax-Hailuo-2.3',
|
|
12
|
+
description: 'Hailuo 2.3 video generation model with enhanced realism',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'MiniMax-Hailuo-02',
|
|
16
|
+
value: 'MiniMax-Hailuo-02',
|
|
17
|
+
description: 'Video model supporting higher resolution and longer duration',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'T2V-01-Director',
|
|
21
|
+
value: 'T2V-01-Director',
|
|
22
|
+
description: 'Text-to-video model with camera control commands',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'T2V-01',
|
|
26
|
+
value: 'T2V-01',
|
|
27
|
+
description: 'Standard text-to-video model',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
const modelOptionsV1_1 = [
|
|
31
|
+
{
|
|
32
|
+
name: helpers_1.H3_MODEL,
|
|
33
|
+
value: helpers_1.H3_MODEL,
|
|
34
|
+
description: 'Latest multimodal video generation model',
|
|
35
|
+
},
|
|
36
|
+
...modelOptionsV1,
|
|
37
|
+
];
|
|
7
38
|
const properties = [
|
|
8
39
|
{
|
|
9
40
|
displayName: 'Model',
|
|
10
41
|
name: 'modelId',
|
|
11
42
|
type: 'options',
|
|
12
|
-
options:
|
|
13
|
-
{
|
|
14
|
-
name: 'MiniMax-Hailuo-2.3',
|
|
15
|
-
value: 'MiniMax-Hailuo-2.3',
|
|
16
|
-
description: 'Latest video generation model with enhanced realism',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'MiniMax-Hailuo-02',
|
|
20
|
-
value: 'MiniMax-Hailuo-02',
|
|
21
|
-
description: 'Video model supporting higher resolution and longer duration',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'T2V-01-Director',
|
|
25
|
-
value: 'T2V-01-Director',
|
|
26
|
-
description: 'Text-to-video model with camera control commands',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'T2V-01',
|
|
30
|
-
value: 'T2V-01',
|
|
31
|
-
description: 'Standard text-to-video model',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
43
|
+
options: modelOptionsV1,
|
|
34
44
|
default: 'MiniMax-Hailuo-2.3',
|
|
35
45
|
description: 'The model to use for video generation',
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: {
|
|
48
|
+
'@version': [1],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Model',
|
|
54
|
+
name: 'modelId',
|
|
55
|
+
type: 'options',
|
|
56
|
+
options: modelOptionsV1_1,
|
|
57
|
+
default: helpers_1.H3_MODEL,
|
|
58
|
+
description: 'The model to use for video generation',
|
|
59
|
+
displayOptions: {
|
|
60
|
+
show: {
|
|
61
|
+
'@version': [{ _cnd: { gte: 1.1 } }],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
36
64
|
},
|
|
37
65
|
{
|
|
38
66
|
displayName: 'Prompt',
|
|
@@ -45,7 +73,13 @@ const properties = [
|
|
|
45
73
|
required: true,
|
|
46
74
|
description: 'Text description of the video (max 2000 characters). Camera movements can be controlled using [command] syntax, e.g. [Push in], [Pan left].',
|
|
47
75
|
placeholder: 'e.g. A cat playing with a ball of yarn [Static shot]',
|
|
76
|
+
displayOptions: {
|
|
77
|
+
hide: {
|
|
78
|
+
modelId: [helpers_1.H3_MODEL],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
48
81
|
},
|
|
82
|
+
...helpers_1.h3VideoProperties,
|
|
49
83
|
{
|
|
50
84
|
displayName: 'Duration (Seconds)',
|
|
51
85
|
name: 'duration',
|
|
@@ -56,6 +90,11 @@ const properties = [
|
|
|
56
90
|
],
|
|
57
91
|
default: 6,
|
|
58
92
|
description: 'Duration of the generated video',
|
|
93
|
+
displayOptions: {
|
|
94
|
+
hide: {
|
|
95
|
+
modelId: [helpers_1.H3_MODEL],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
59
98
|
},
|
|
60
99
|
{
|
|
61
100
|
displayName: 'Resolution',
|
|
@@ -68,6 +107,32 @@ const properties = [
|
|
|
68
107
|
],
|
|
69
108
|
default: '768P',
|
|
70
109
|
description: 'Resolution of the generated video. Available options depend on the model.',
|
|
110
|
+
displayOptions: {
|
|
111
|
+
hide: {
|
|
112
|
+
modelId: [helpers_1.H3_MODEL],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Aspect Ratio',
|
|
118
|
+
name: 'ratio',
|
|
119
|
+
type: 'options',
|
|
120
|
+
options: [
|
|
121
|
+
{ name: '1:1', value: '1:1' },
|
|
122
|
+
{ name: '16:9', value: '16:9' },
|
|
123
|
+
{ name: '21:9', value: '21:9' },
|
|
124
|
+
{ name: '3:4', value: '3:4' },
|
|
125
|
+
{ name: '4:3', value: '4:3' },
|
|
126
|
+
{ name: '9:16', value: '9:16' },
|
|
127
|
+
],
|
|
128
|
+
default: '16:9',
|
|
129
|
+
description: 'Aspect ratio of the generated video',
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
modelId: [helpers_1.H3_MODEL],
|
|
133
|
+
'@version': [{ _cnd: { gte: 1.1 } }],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
71
136
|
},
|
|
72
137
|
{
|
|
73
138
|
displayName: 'Download Video',
|
|
@@ -82,6 +147,11 @@ const properties = [
|
|
|
82
147
|
placeholder: 'Add Option',
|
|
83
148
|
type: 'collection',
|
|
84
149
|
default: {},
|
|
150
|
+
displayOptions: {
|
|
151
|
+
hide: {
|
|
152
|
+
modelId: [helpers_1.H3_MODEL],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
85
155
|
options: [
|
|
86
156
|
{
|
|
87
157
|
displayName: 'Prompt Optimizer',
|
|
@@ -103,59 +173,33 @@ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, p
|
|
|
103
173
|
async function execute(itemIndex) {
|
|
104
174
|
const model = this.getNodeParameter('modelId', itemIndex);
|
|
105
175
|
const prompt = this.getNodeParameter('prompt', itemIndex);
|
|
106
|
-
const duration = this.getNodeParameter('duration', itemIndex);
|
|
107
|
-
const resolution = this.getNodeParameter('resolution', itemIndex);
|
|
108
176
|
const downloadVideo = this.getNodeParameter('downloadVideo', itemIndex, true);
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
prompt
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}));
|
|
122
|
-
if (createResponse.base_resp?.status_code !== 0) {
|
|
123
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to create video task: ${createResponse.base_resp?.status_msg || 'Unknown error'}`);
|
|
124
|
-
}
|
|
125
|
-
const taskId = createResponse.task_id;
|
|
126
|
-
if (!taskId) {
|
|
127
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No task_id returned from video generation request');
|
|
177
|
+
const isH3 = model === helpers_1.H3_MODEL;
|
|
178
|
+
let body;
|
|
179
|
+
if (isH3) {
|
|
180
|
+
(0, helpers_1.assertH3Prompt)(this, prompt);
|
|
181
|
+
const ratio = this.getNodeParameter('ratio', itemIndex);
|
|
182
|
+
body = {
|
|
183
|
+
model,
|
|
184
|
+
content: [{ type: 'text', text: prompt }],
|
|
185
|
+
duration: this.getNodeParameter('h3Duration', itemIndex),
|
|
186
|
+
resolution: this.getNodeParameter('h3Resolution', itemIndex),
|
|
187
|
+
ratio,
|
|
188
|
+
};
|
|
128
189
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
encoding: 'arraybuffer',
|
|
141
|
-
returnFullResponse: true,
|
|
142
|
-
});
|
|
143
|
-
const contentType = videoResponse.headers?.['content-type'] || 'video/mp4';
|
|
144
|
-
const fileContent = Buffer.from(videoResponse.body);
|
|
145
|
-
const binaryData = await this.helpers.prepareBinaryData(fileContent, 'video.mp4', contentType);
|
|
146
|
-
return [
|
|
147
|
-
{
|
|
148
|
-
binary: { data: binaryData },
|
|
149
|
-
json: jsonData,
|
|
150
|
-
pairedItem: { item: itemIndex },
|
|
151
|
-
},
|
|
152
|
-
];
|
|
190
|
+
else {
|
|
191
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
192
|
+
body = {
|
|
193
|
+
model,
|
|
194
|
+
prompt,
|
|
195
|
+
duration: this.getNodeParameter('duration', itemIndex),
|
|
196
|
+
resolution: this.getNodeParameter('resolution', itemIndex),
|
|
197
|
+
};
|
|
198
|
+
if (options.promptOptimizer !== undefined) {
|
|
199
|
+
body.prompt_optimizer = options.promptOptimizer;
|
|
200
|
+
}
|
|
153
201
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
json: jsonData,
|
|
157
|
-
pairedItem: { item: itemIndex },
|
|
158
|
-
},
|
|
159
|
-
];
|
|
202
|
+
const result = await transport_1.generateVideo.call(this, isH3 ? 'v2' : 'v1', body);
|
|
203
|
+
return await (0, helpers_1.prepareVideoOutput)(this, itemIndex, result, downloadVideo);
|
|
160
204
|
}
|
|
161
205
|
//# sourceMappingURL=generate.t2v.operation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.t2v.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/MiniMax/actions/video/generate.t2v.operation.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"generate.t2v.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/MiniMax/actions/video/generate.t2v.operation.ts"],"names":[],"mappings":";;;;AAOA,+CAAoD;AAEpD,+CAAgD;AAChD,uCAA4F;AAE5F,MAAM,cAAc,GAA2B;IAC9C;QACC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EAAE,yDAAyD;KACtE;IACD;QACC,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,8DAA8D;KAC3E;IACD;QACC,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,kDAAkD;KAC/D;IACD;QACC,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,8BAA8B;KAC3C;CACD,CAAC;AAEF,MAAM,gBAAgB,GAA2B;IAChD;QACC,IAAI,EAAE,kBAAQ;QACd,KAAK,EAAE,kBAAQ;QACf,WAAW,EAAE,0CAA0C;KACvD;IACD,GAAG,cAAc;CACjB,CAAC;AAEF,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,cAAc;QACvB,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EAAE,uCAAuC;QACpD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL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AAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAE7D,CAAC;QACF,IAAI,GAAG;YACN,KAAK;YACL,MAAM;YACN,QAAQ,EAAE,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAW;YAChE,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,SAAS,CAAW;SACpE,CAAC;QAEF,IAAI,OAAO,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;YAC3C,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;QACjD,CAAC;IACF,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,yBAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxE,OAAO,MAAM,IAAA,4BAAkB,EAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const H3_MODEL = "MiniMax-H3";
|
|
3
|
+
export declare const h3VideoProperties: INodeProperties[];
|
|
4
|
+
export declare function assertH3Prompt(executeFunctions: IExecuteFunctions, prompt: string): void;
|
|
5
|
+
export declare function prepareVideoOutput(executeFunctions: IExecuteFunctions, itemIndex: number, result: {
|
|
6
|
+
videoUrl: string;
|
|
7
|
+
taskId: string;
|
|
8
|
+
fileId?: string;
|
|
9
|
+
}, downloadVideo: boolean): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.h3VideoProperties = exports.H3_MODEL = void 0;
|
|
4
|
+
exports.assertH3Prompt = assertH3Prompt;
|
|
5
|
+
exports.prepareVideoOutput = prepareVideoOutput;
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
exports.H3_MODEL = 'MiniMax-H3';
|
|
8
|
+
exports.h3VideoProperties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Prompt',
|
|
11
|
+
name: 'prompt',
|
|
12
|
+
type: 'string',
|
|
13
|
+
typeOptions: {
|
|
14
|
+
rows: 4,
|
|
15
|
+
},
|
|
16
|
+
default: '',
|
|
17
|
+
required: true,
|
|
18
|
+
description: 'Text description of the video (max 7000 characters)',
|
|
19
|
+
placeholder: 'A subject moves naturally through the scene',
|
|
20
|
+
displayOptions: {
|
|
21
|
+
show: {
|
|
22
|
+
modelId: [exports.H3_MODEL],
|
|
23
|
+
'@version': [{ _cnd: { gte: 1.1 } }],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Duration (Seconds)',
|
|
29
|
+
name: 'h3Duration',
|
|
30
|
+
type: 'options',
|
|
31
|
+
options: Array.from({ length: 12 }, (_, index) => {
|
|
32
|
+
const duration = index + 4;
|
|
33
|
+
return { name: `${duration} Seconds`, value: duration };
|
|
34
|
+
}),
|
|
35
|
+
default: 5,
|
|
36
|
+
description: 'Duration of the generated video',
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: {
|
|
39
|
+
modelId: [exports.H3_MODEL],
|
|
40
|
+
'@version': [{ _cnd: { gte: 1.1 } }],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Resolution',
|
|
46
|
+
name: 'h3Resolution',
|
|
47
|
+
type: 'options',
|
|
48
|
+
options: [
|
|
49
|
+
{ name: '768P', value: '768P' },
|
|
50
|
+
{ name: '2K', value: '2K' },
|
|
51
|
+
],
|
|
52
|
+
default: '2K',
|
|
53
|
+
description: 'Resolution of the generated video',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
modelId: [exports.H3_MODEL],
|
|
57
|
+
'@version': [{ _cnd: { gte: 1.1 } }],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
function assertH3Prompt(executeFunctions, prompt) {
|
|
63
|
+
if (!prompt.trim()) {
|
|
64
|
+
throw new n8n_workflow_1.NodeOperationError(executeFunctions.getNode(), 'Prompt is required for MiniMax-H3 video generation');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function prepareVideoOutput(executeFunctions, itemIndex, result, downloadVideo) {
|
|
68
|
+
const json = {
|
|
69
|
+
videoUrl: result.videoUrl,
|
|
70
|
+
taskId: result.taskId,
|
|
71
|
+
};
|
|
72
|
+
if (result.fileId)
|
|
73
|
+
json.fileId = result.fileId;
|
|
74
|
+
if (!downloadVideo) {
|
|
75
|
+
return [{ json, pairedItem: { item: itemIndex } }];
|
|
76
|
+
}
|
|
77
|
+
const response = await executeFunctions.helpers.httpRequest({
|
|
78
|
+
method: 'GET',
|
|
79
|
+
url: result.videoUrl,
|
|
80
|
+
encoding: 'arraybuffer',
|
|
81
|
+
returnFullResponse: true,
|
|
82
|
+
});
|
|
83
|
+
const contentType = response.headers?.['content-type'] || 'video/mp4';
|
|
84
|
+
const fileContent = Buffer.from(response.body);
|
|
85
|
+
const binaryData = await executeFunctions.helpers.prepareBinaryData(fileContent, 'video.mp4', contentType);
|
|
86
|
+
return [
|
|
87
|
+
{
|
|
88
|
+
binary: { data: binaryData },
|
|
89
|
+
json,
|
|
90
|
+
pairedItem: { item: itemIndex },
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/MiniMax/actions/video/helpers.ts"],"names":[],"mappings":";;;;;AAMA,+CAAkD;AAErC,QAAA,QAAQ,GAAG,Y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AU,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,iBAAiB,CAClE,WAAW,EACX,WAAW,EACX,WAAW,CACX,CAAC;IAEF,OAAO;QACN;YACC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,IAAI;YACJ,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC/B;KACD,CAAC;AACH,CAAC"}
|
|
@@ -65,6 +65,21 @@ export interface VideoGenerationResponse {
|
|
|
65
65
|
status_msg: string;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
+
export interface VideoGenerationV2Response {
|
|
69
|
+
task_id?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface VideoTaskV2QueryResponse {
|
|
72
|
+
task?: {
|
|
73
|
+
status?: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled';
|
|
74
|
+
content?: {
|
|
75
|
+
url?: string;
|
|
76
|
+
};
|
|
77
|
+
error?: {
|
|
78
|
+
code?: string;
|
|
79
|
+
message?: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
68
83
|
export interface T2AResponse {
|
|
69
84
|
data: {
|
|
70
85
|
audio: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.minimaxTextModelOptions = void 0;
|
|
4
|
+
const modelOptionsV1 = [
|
|
5
|
+
{ name: 'MiniMax-M2', value: 'MiniMax-M2' },
|
|
6
|
+
{ name: 'MiniMax-M2.1', value: 'MiniMax-M2.1' },
|
|
7
|
+
{ name: 'MiniMax-M2.1-Highspeed', value: 'MiniMax-M2.1-highspeed' },
|
|
8
|
+
{ name: 'MiniMax-M2.5', value: 'MiniMax-M2.5' },
|
|
9
|
+
{ name: 'MiniMax-M2.5-Highspeed', value: 'MiniMax-M2.5-highspeed' },
|
|
10
|
+
{ name: 'MiniMax-M2.7', value: 'MiniMax-M2.7' },
|
|
11
|
+
{ name: 'MiniMax-M2.7-Highspeed', value: 'MiniMax-M2.7-highspeed' },
|
|
12
|
+
];
|
|
13
|
+
exports.minimaxTextModelOptions = {
|
|
14
|
+
v1: modelOptionsV1,
|
|
15
|
+
v1_1: [...modelOptionsV1, { name: 'MiniMax-M3', value: 'MiniMax-M3' }],
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=modelOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelOptions.js","sourceRoot":"","sources":["../../../../../nodes/vendors/MiniMax/helpers/modelOptions.ts"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GAA2B;IAC9C,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/C,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,wBAAwB,EAAE;IACnE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/C,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,wBAAwB,EAAE;IACnE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/C,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,wBAAwB,EAAE;CACnE,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACtC,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,CAAC,GAAG,cAAc,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;CACd,CAAC"}
|
|
@@ -10,5 +10,14 @@ export declare function pollVideoTask(this: IExecuteFunctions, taskId: string, p
|
|
|
10
10
|
fileId: string;
|
|
11
11
|
status: string;
|
|
12
12
|
}>;
|
|
13
|
+
export declare function pollVideoTaskV2(this: IExecuteFunctions, taskId: string, pollIntervalMs?: number): Promise<{
|
|
14
|
+
videoUrl: string;
|
|
15
|
+
status: string;
|
|
16
|
+
}>;
|
|
13
17
|
export declare function getVideoDownloadUrl(this: IExecuteFunctions, fileId: string): Promise<string>;
|
|
18
|
+
export declare function generateVideo(this: IExecuteFunctions, apiVersion: 'v1' | 'v2', body: IDataObject): Promise<{
|
|
19
|
+
videoUrl: string;
|
|
20
|
+
taskId: string;
|
|
21
|
+
fileId?: string;
|
|
22
|
+
}>;
|
|
14
23
|
export {};
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.apiRequest = apiRequest;
|
|
4
4
|
exports.pollVideoTask = pollVideoTask;
|
|
5
|
+
exports.pollVideoTaskV2 = pollVideoTaskV2;
|
|
5
6
|
exports.getVideoDownloadUrl = getVideoDownloadUrl;
|
|
7
|
+
exports.generateVideo = generateVideo;
|
|
6
8
|
const sleep_1 = require("@n8n/utils/sleep");
|
|
7
9
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
10
|
async function apiRequest(method, endpoint, parameters) {
|
|
9
11
|
const { body, qs, option, headers } = parameters ?? {};
|
|
10
12
|
const credentials = await this.getCredentials('minimaxApi');
|
|
11
|
-
const
|
|
13
|
+
const versionedBaseUrl = credentials.url ?? 'https://api.minimax.io/v1';
|
|
14
|
+
const baseUrl = versionedBaseUrl.replace(/\/v1\/?$/, '');
|
|
12
15
|
const url = `${baseUrl}${endpoint}`;
|
|
13
16
|
const options = {
|
|
14
17
|
headers: headers ?? {},
|
|
@@ -24,11 +27,12 @@ async function apiRequest(method, endpoint, parameters) {
|
|
|
24
27
|
return await this.helpers.httpRequestWithAuthentication.call(this, 'minimaxApi', options);
|
|
25
28
|
}
|
|
26
29
|
const VIDEO_TERMINAL_STATUSES = ['Success', 'Fail'];
|
|
30
|
+
const VIDEO_V2_TERMINAL_STATUSES = ['succeeded', 'failed', 'cancelled'];
|
|
27
31
|
const DEFAULT_POLL_INTERVAL_MS = 15_000;
|
|
28
32
|
const MAX_POLL_ATTEMPTS = 60;
|
|
29
33
|
async function pollVideoTask(taskId, pollIntervalMs = DEFAULT_POLL_INTERVAL_MS) {
|
|
30
34
|
for (let attempt = 0; attempt < MAX_POLL_ATTEMPTS; attempt++) {
|
|
31
|
-
const response = await apiRequest.call(this, 'GET', '/query/video_generation', {
|
|
35
|
+
const response = await apiRequest.call(this, 'GET', '/v1/query/video_generation', {
|
|
32
36
|
qs: { task_id: taskId },
|
|
33
37
|
});
|
|
34
38
|
const status = response?.status;
|
|
@@ -48,8 +52,31 @@ async function pollVideoTask(taskId, pollIntervalMs = DEFAULT_POLL_INTERVAL_MS)
|
|
|
48
52
|
}
|
|
49
53
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Video task ${taskId} did not complete within the maximum polling time. You can query the task manually using the task ID.`);
|
|
50
54
|
}
|
|
55
|
+
async function pollVideoTaskV2(taskId, pollIntervalMs = DEFAULT_POLL_INTERVAL_MS) {
|
|
56
|
+
const abortSignal = this.getExecutionCancelSignal();
|
|
57
|
+
for (let attempt = 0; attempt < MAX_POLL_ATTEMPTS; attempt++) {
|
|
58
|
+
abortSignal?.throwIfAborted();
|
|
59
|
+
const response = (await apiRequest.call(this, 'GET', `/v2/query/video_generation/${taskId}`));
|
|
60
|
+
const task = response.task;
|
|
61
|
+
const status = task?.status;
|
|
62
|
+
if (status && VIDEO_V2_TERMINAL_STATUSES.includes(status)) {
|
|
63
|
+
if (status !== 'succeeded') {
|
|
64
|
+
const errorCode = task.error?.code ?? 'UNKNOWN';
|
|
65
|
+
const errorMessage = task.error?.message ?? `Video generation task was ${status}`;
|
|
66
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Task failed: [${errorCode}] ${errorMessage}`);
|
|
67
|
+
}
|
|
68
|
+
const videoUrl = task.content?.url;
|
|
69
|
+
if (!videoUrl) {
|
|
70
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Video generation succeeded but no video URL was returned');
|
|
71
|
+
}
|
|
72
|
+
return { videoUrl, status };
|
|
73
|
+
}
|
|
74
|
+
await (0, sleep_1.sleep)(pollIntervalMs, abortSignal);
|
|
75
|
+
}
|
|
76
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Video task ${taskId} did not complete within the maximum polling time. You can query the task manually using the task ID.`);
|
|
77
|
+
}
|
|
51
78
|
async function getVideoDownloadUrl(fileId) {
|
|
52
|
-
const response = await apiRequest.call(this, 'GET', '/files/retrieve', {
|
|
79
|
+
const response = await apiRequest.call(this, 'GET', '/v1/files/retrieve', {
|
|
53
80
|
qs: { file_id: fileId },
|
|
54
81
|
});
|
|
55
82
|
const downloadUrl = response?.file?.download_url;
|
|
@@ -58,4 +85,30 @@ async function getVideoDownloadUrl(fileId) {
|
|
|
58
85
|
}
|
|
59
86
|
return downloadUrl;
|
|
60
87
|
}
|
|
88
|
+
async function generateVideo(apiVersion, body) {
|
|
89
|
+
if (apiVersion === 'v2') {
|
|
90
|
+
const response = (await apiRequest.call(this, 'POST', '/v2/video_generation', {
|
|
91
|
+
body,
|
|
92
|
+
}));
|
|
93
|
+
const taskId = response.task_id;
|
|
94
|
+
if (!taskId) {
|
|
95
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No task_id returned from video generation request');
|
|
96
|
+
}
|
|
97
|
+
const { videoUrl } = await pollVideoTaskV2.call(this, taskId);
|
|
98
|
+
return { videoUrl, taskId };
|
|
99
|
+
}
|
|
100
|
+
const response = (await apiRequest.call(this, 'POST', '/v1/video_generation', {
|
|
101
|
+
body,
|
|
102
|
+
}));
|
|
103
|
+
if (response.base_resp?.status_code !== 0) {
|
|
104
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to create video task: ${response.base_resp?.status_msg || 'Unknown error'}`);
|
|
105
|
+
}
|
|
106
|
+
const taskId = response.task_id;
|
|
107
|
+
if (!taskId) {
|
|
108
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No task_id returned from video generation request');
|
|
109
|
+
}
|
|
110
|
+
const { fileId } = await pollVideoTask.call(this, taskId);
|
|
111
|
+
const videoUrl = await getVideoDownloadUrl.call(this, fileId);
|
|
112
|
+
return { videoUrl, taskId, fileId };
|
|
113
|
+
}
|
|
61
114
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/vendors/MiniMax/transport/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/vendors/MiniMax/transport/index.ts"],"names":[],"mappings":";;;;;;;AAMA,4CAAyC;AACzC,+CAAkD;AAe3C,KAAK,qBAEX,MAA2B,EAC3B,QAAgB,EAChB,UAA8B;IAE9B,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,IAAI,EAAE,CAAC;IAEvD,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,gBAAgB,GAAI,WAAW,CAAC,GAAc,IAAI,2BAA2B,CAAC;IACpF,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,GAAG,GAAG,GAAG,OAAO,GAAG,QAAQ,EAAE,CAAC;IAEpC,MAAM,OAAO,GAAG;QACf,OAAO,EAAE,OAAO,IAAI,EAAE;QACtB,MAAM;QACN,IAAI;QACJ,EAAE;QACF,GAAG;QACH,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChD,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YA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