@n8n/n8n-nodes-langchain 2.16.0 → 2.17.1

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 (222) hide show
  1. package/dist/credentials/MinimaxApi.credentials.d.ts +9 -0
  2. package/dist/credentials/MinimaxApi.credentials.js +79 -0
  3. package/dist/credentials/MinimaxApi.credentials.js.map +1 -0
  4. package/dist/credentials/MoonshotApi.credentials.d.ts +9 -0
  5. package/dist/credentials/MoonshotApi.credentials.js +60 -0
  6. package/dist/credentials/MoonshotApi.credentials.js.map +1 -0
  7. package/dist/known/credentials.json +16 -0
  8. package/dist/known/nodes.json +16 -0
  9. package/dist/node-definitions/.nodes-hash +1 -1
  10. package/dist/node-definitions/index.ts +16 -0
  11. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/index.ts +12 -0
  12. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/index.schema.js +24 -0
  13. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/index.ts +18 -0
  14. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/index.schema.js +22 -0
  15. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/index.ts +15 -0
  16. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_analyze.schema.js +34 -0
  17. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_analyze.ts +71 -0
  18. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_generate.schema.js +31 -0
  19. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_generate.ts +60 -0
  20. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/index.schema.js +18 -0
  21. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/index.ts +10 -0
  22. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/operation_message.schema.js +31 -0
  23. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/operation_message.ts +97 -0
  24. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/index.schema.js +22 -0
  25. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/index.ts +15 -0
  26. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_image_to_video.schema.js +38 -0
  27. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_image_to_video.ts +105 -0
  28. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_text_to_video.schema.js +35 -0
  29. package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_text_to_video.ts +88 -0
  30. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/index.ts +12 -0
  31. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v1.schema.js +25 -0
  32. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v1.ts +60 -0
  33. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMoonshot/index.ts +12 -0
  34. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMoonshot/v1.schema.js +25 -0
  35. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMoonshot/v1.ts +68 -0
  36. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/index.ts +12 -0
  37. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/index.schema.js +22 -0
  38. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/index.ts +15 -0
  39. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/index.schema.js +18 -0
  40. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/index.ts +10 -0
  41. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/operation_analyze.schema.js +32 -0
  42. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/operation_analyze.ts +58 -0
  43. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/index.schema.js +18 -0
  44. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/index.ts +10 -0
  45. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/operation_message.schema.js +33 -0
  46. package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/operation_message.ts +114 -0
  47. package/dist/nodes/Guardrails/Guardrails.node.js +2 -1
  48. package/dist/nodes/Guardrails/Guardrails.node.js.map +1 -1
  49. package/dist/nodes/ModelSelector/ModelSelector.node.js +2 -2
  50. package/dist/nodes/ModelSelector/ModelSelector.node.js.map +1 -1
  51. package/dist/nodes/agents/Agent/Agent.node.js +1 -1
  52. package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
  53. package/dist/nodes/agents/Agent/V1/AgentV1.node.js +4 -0
  54. package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +1 -1
  55. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js +1 -1
  56. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js.map +1 -1
  57. package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +1 -2
  58. package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
  59. package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +1 -2
  60. package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
  61. package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js +1 -1
  62. package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js.map +1 -1
  63. package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js +1 -1
  64. package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js.map +1 -1
  65. package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js +1 -1
  66. package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js.map +1 -1
  67. package/dist/nodes/chains/TextClassifier/TextClassifier.node.js +1 -1
  68. package/dist/nodes/chains/TextClassifier/TextClassifier.node.js.map +1 -1
  69. package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +2 -1
  70. package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
  71. package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.d.ts +1 -0
  72. package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.js +22 -10
  73. package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.js.map +1 -1
  74. package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.d.ts +5 -0
  75. package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js +155 -0
  76. package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js.map +1 -0
  77. package/dist/nodes/llms/LmChatMinimax/minimax.svg +10 -0
  78. package/dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.d.ts +5 -0
  79. package/dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.js +226 -0
  80. package/dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.js.map +1 -0
  81. package/dist/nodes/llms/LmChatMoonshot/moonshot.dark.svg +4 -0
  82. package/dist/nodes/llms/LmChatMoonshot/moonshot.svg +4 -0
  83. package/dist/nodes/mcp/McpClient/McpClient.node.js +64 -59
  84. package/dist/nodes/mcp/McpClient/McpClient.node.js.map +1 -1
  85. package/dist/nodes/mcp/McpClient/listSearch.js +18 -13
  86. package/dist/nodes/mcp/McpClient/listSearch.js.map +1 -1
  87. package/dist/nodes/mcp/McpClient/resourceMapping.js +13 -8
  88. package/dist/nodes/mcp/McpClient/resourceMapping.js.map +1 -1
  89. package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js +74 -41
  90. package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js.map +1 -1
  91. package/dist/nodes/mcp/McpClientTool/loadOptions.js +12 -7
  92. package/dist/nodes/mcp/McpClientTool/loadOptions.js.map +1 -1
  93. package/dist/nodes/mcp/McpClientTool/utils.d.ts +2 -1
  94. package/dist/nodes/mcp/McpClientTool/utils.js +20 -1
  95. package/dist/nodes/mcp/McpClientTool/utils.js.map +1 -1
  96. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +1 -1
  97. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
  98. package/dist/nodes/memory/MemoryManager/MemoryManager.node.js +1 -1
  99. package/dist/nodes/memory/MemoryManager/MemoryManager.node.js.map +1 -1
  100. package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +1 -1
  101. package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
  102. package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +1 -1
  103. package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
  104. package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +1 -1
  105. package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
  106. package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +1 -1
  107. package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
  108. package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +1 -1
  109. package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
  110. package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +1 -1
  111. package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
  112. package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +1 -1
  113. package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
  114. package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +1 -1
  115. package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
  116. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +1 -1
  117. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
  118. package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +1 -1
  119. package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
  120. package/dist/nodes/tools/ToolThink/ToolThink.node.js +1 -1
  121. package/dist/nodes/tools/ToolThink/ToolThink.node.js.map +1 -1
  122. package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +1 -1
  123. package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
  124. package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +1 -1
  125. package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
  126. package/dist/nodes/trigger/ChatTrigger/Chat.node.js +1 -1
  127. package/dist/nodes/trigger/ChatTrigger/Chat.node.js.map +1 -1
  128. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +5 -2
  129. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
  130. package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +1 -1
  131. package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
  132. package/dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.d.ts +5 -0
  133. package/dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.js +15 -0
  134. package/dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.js.map +1 -0
  135. package/dist/nodes/vendors/AlibabaCloud/actions/image/analyze.operation.d.ts +29 -0
  136. package/dist/nodes/vendors/AlibabaCloud/actions/image/analyze.operation.js +188 -0
  137. package/dist/nodes/vendors/AlibabaCloud/actions/image/analyze.operation.js.map +1 -0
  138. package/dist/nodes/vendors/AlibabaCloud/actions/image/generate.operation.d.ts +29 -0
  139. package/dist/nodes/vendors/AlibabaCloud/actions/image/generate.operation.js +204 -0
  140. package/dist/nodes/vendors/AlibabaCloud/actions/image/generate.operation.js.map +1 -0
  141. package/dist/nodes/vendors/AlibabaCloud/actions/image/index.d.ts +5 -0
  142. package/dist/nodes/vendors/AlibabaCloud/actions/image/index.js +71 -0
  143. package/dist/nodes/vendors/AlibabaCloud/actions/image/index.js.map +1 -0
  144. package/dist/nodes/vendors/AlibabaCloud/actions/router.d.ts +2 -0
  145. package/dist/nodes/vendors/AlibabaCloud/actions/router.js +106 -0
  146. package/dist/nodes/vendors/AlibabaCloud/actions/router.js.map +1 -0
  147. package/dist/nodes/vendors/AlibabaCloud/actions/text/index.d.ts +4 -0
  148. package/dist/nodes/vendors/AlibabaCloud/actions/text/index.js +62 -0
  149. package/dist/nodes/vendors/AlibabaCloud/actions/text/index.js.map +1 -0
  150. package/dist/nodes/vendors/AlibabaCloud/actions/text/message.operation.d.ts +29 -0
  151. package/dist/nodes/vendors/AlibabaCloud/actions/text/message.operation.js +403 -0
  152. package/dist/nodes/vendors/AlibabaCloud/actions/text/message.operation.js.map +1 -0
  153. package/dist/nodes/vendors/AlibabaCloud/actions/versionDescription.d.ts +2 -0
  154. package/dist/nodes/vendors/AlibabaCloud/actions/versionDescription.js +112 -0
  155. package/dist/nodes/vendors/AlibabaCloud/actions/versionDescription.js.map +1 -0
  156. package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.i2v.operation.d.ts +30 -0
  157. package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.i2v.operation.js +312 -0
  158. package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.i2v.operation.js.map +1 -0
  159. package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.t2v.operation.d.ts +30 -0
  160. package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.t2v.operation.js +251 -0
  161. package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.t2v.operation.js.map +1 -0
  162. package/dist/nodes/vendors/AlibabaCloud/actions/video/index.d.ts +5 -0
  163. package/dist/nodes/vendors/AlibabaCloud/actions/video/index.js +71 -0
  164. package/dist/nodes/vendors/AlibabaCloud/actions/video/index.js.map +1 -0
  165. package/dist/nodes/vendors/AlibabaCloud/alibaba.svg +1 -0
  166. package/dist/nodes/vendors/AlibabaCloud/helpers/interfaces.d.ts +53 -0
  167. package/dist/nodes/vendors/AlibabaCloud/helpers/interfaces.js +3 -0
  168. package/dist/nodes/vendors/AlibabaCloud/helpers/interfaces.js.map +1 -0
  169. package/dist/nodes/vendors/AlibabaCloud/transport/index.d.ts +11 -0
  170. package/dist/nodes/vendors/AlibabaCloud/transport/index.js +60 -0
  171. package/dist/nodes/vendors/AlibabaCloud/transport/index.js.map +1 -0
  172. package/dist/nodes/vendors/Microsoft/microsoft-utils.d.ts +2 -1
  173. package/dist/nodes/vendors/Microsoft/microsoft-utils.js +3 -13
  174. package/dist/nodes/vendors/Microsoft/microsoft-utils.js.map +1 -1
  175. package/dist/nodes/vendors/Moonshot/Moonshot.node.d.ts +9 -0
  176. package/dist/nodes/vendors/Moonshot/Moonshot.node.js +19 -0
  177. package/dist/nodes/vendors/Moonshot/Moonshot.node.js.map +1 -0
  178. package/dist/nodes/vendors/Moonshot/actions/descriptions.d.ts +2 -0
  179. package/dist/nodes/vendors/Moonshot/actions/descriptions.js +28 -0
  180. package/dist/nodes/vendors/Moonshot/actions/descriptions.js.map +1 -0
  181. package/dist/nodes/vendors/Moonshot/actions/image/analyze.operation.d.ts +29 -0
  182. package/dist/nodes/vendors/Moonshot/actions/image/analyze.operation.js +114 -0
  183. package/dist/nodes/vendors/Moonshot/actions/image/analyze.operation.js.map +1 -0
  184. package/dist/nodes/vendors/Moonshot/actions/image/index.d.ts +4 -0
  185. package/dist/nodes/vendors/Moonshot/actions/image/index.js +62 -0
  186. package/dist/nodes/vendors/Moonshot/actions/image/index.js.map +1 -0
  187. package/dist/nodes/vendors/Moonshot/actions/node.type.d.ts +7 -0
  188. package/dist/nodes/vendors/Moonshot/actions/node.type.js +3 -0
  189. package/dist/nodes/vendors/Moonshot/actions/node.type.js.map +1 -0
  190. package/dist/nodes/vendors/Moonshot/actions/router.d.ts +2 -0
  191. package/dist/nodes/vendors/Moonshot/actions/router.js +78 -0
  192. package/dist/nodes/vendors/Moonshot/actions/router.js.map +1 -0
  193. package/dist/nodes/vendors/Moonshot/actions/text/index.d.ts +4 -0
  194. package/dist/nodes/vendors/Moonshot/actions/text/index.js +62 -0
  195. package/dist/nodes/vendors/Moonshot/actions/text/index.js.map +1 -0
  196. package/dist/nodes/vendors/Moonshot/actions/text/message.operation.d.ts +29 -0
  197. package/dist/nodes/vendors/Moonshot/actions/text/message.operation.js +390 -0
  198. package/dist/nodes/vendors/Moonshot/actions/text/message.operation.js.map +1 -0
  199. package/dist/nodes/vendors/Moonshot/actions/versionDescription.d.ts +2 -0
  200. package/dist/nodes/vendors/Moonshot/actions/versionDescription.js +106 -0
  201. package/dist/nodes/vendors/Moonshot/actions/versionDescription.js.map +1 -0
  202. package/dist/nodes/vendors/Moonshot/helpers/interfaces.d.ts +60 -0
  203. package/dist/nodes/vendors/Moonshot/helpers/interfaces.js +3 -0
  204. package/dist/nodes/vendors/Moonshot/helpers/interfaces.js.map +1 -0
  205. package/dist/nodes/vendors/Moonshot/helpers/utils.d.ts +2 -0
  206. package/dist/nodes/vendors/Moonshot/helpers/utils.js +14 -0
  207. package/dist/nodes/vendors/Moonshot/helpers/utils.js.map +1 -0
  208. package/dist/nodes/vendors/Moonshot/methods/index.d.ts +1 -0
  209. package/dist/nodes/vendors/Moonshot/methods/index.js +38 -0
  210. package/dist/nodes/vendors/Moonshot/methods/index.js.map +1 -0
  211. package/dist/nodes/vendors/Moonshot/methods/listSearch.d.ts +2 -0
  212. package/dist/nodes/vendors/Moonshot/methods/listSearch.js +18 -0
  213. package/dist/nodes/vendors/Moonshot/methods/listSearch.js.map +1 -0
  214. package/dist/nodes/vendors/Moonshot/moonshot.dark.svg +4 -0
  215. package/dist/nodes/vendors/Moonshot/moonshot.svg +4 -0
  216. package/dist/nodes/vendors/Moonshot/transport/index.d.ts +9 -0
  217. package/dist/nodes/vendors/Moonshot/transport/index.js +22 -0
  218. package/dist/nodes/vendors/Moonshot/transport/index.js.map +1 -0
  219. package/dist/typecheck.tsbuildinfo +1 -1
  220. package/dist/types/credentials.json +3 -1
  221. package/dist/types/nodes.json +38 -34
  222. package/package.json +17 -11
@@ -0,0 +1,9 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class MinimaxApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MinimaxApi = void 0;
4
+ class MinimaxApi {
5
+ constructor() {
6
+ this.name = 'minimaxApi';
7
+ this.displayName = 'MiniMax';
8
+ this.documentationUrl = 'minimax';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ required: true,
16
+ default: '',
17
+ },
18
+ {
19
+ displayName: 'Region',
20
+ name: 'region',
21
+ type: 'options',
22
+ options: [
23
+ {
24
+ name: 'International',
25
+ value: 'international',
26
+ description: 'platform.minimax.io - international endpoint',
27
+ },
28
+ {
29
+ name: 'China',
30
+ value: 'china',
31
+ description: 'platform.minimaxi.com - mainland China endpoint',
32
+ },
33
+ ],
34
+ default: 'international',
35
+ },
36
+ {
37
+ displayName: 'Base URL',
38
+ name: 'url',
39
+ type: 'hidden',
40
+ default: '={{ $self.region === "china" ? "https://api.minimaxi.com/v1" : "https://api.minimax.io/v1" }}',
41
+ },
42
+ ];
43
+ this.authenticate = {
44
+ type: 'generic',
45
+ properties: {
46
+ headers: {
47
+ Authorization: '=Bearer {{$credentials.apiKey}}',
48
+ },
49
+ },
50
+ };
51
+ this.test = {
52
+ request: {
53
+ baseURL: '={{ $credentials.url }}',
54
+ url: '/files/list',
55
+ qs: { purpose: 'voice_clone' },
56
+ },
57
+ rules: [
58
+ {
59
+ type: 'responseSuccessBody',
60
+ properties: {
61
+ key: 'base_resp.status_code',
62
+ value: 1004,
63
+ message: 'Authentication failed. Please check your API key.',
64
+ },
65
+ },
66
+ {
67
+ type: 'responseSuccessBody',
68
+ properties: {
69
+ key: 'base_resp.status_code',
70
+ value: 2049,
71
+ message: 'Invalid API key. Please verify your key matches the selected region.',
72
+ },
73
+ },
74
+ ],
75
+ };
76
+ }
77
+ }
78
+ exports.MinimaxApi = MinimaxApi;
79
+ //# sourceMappingURL=MinimaxApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MinimaxApi.credentials.js","sourceRoot":"","sources":["../../credentials/MinimaxApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,SAAS,CAAC;QAExB,qBAAgB,GAAG,SAAS,CAAC;QAE7B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,eAAe;wBACtB,WAAW,EAAE,8CAA8C;qBAC3D;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,iDAAiD;qBAC9D;iBACD;gBACD,OAAO,EAAE,eAAe;aACxB;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EACN,+FAA+F;aAChG;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,yBAAyB;gBAClC,GAAG,EAAE,aAAa;gBAClB,EAAE,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;aAC9B;YACD,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,uBAAuB;wBAC5B,KAAK,EAAE,IAAI;wBACX,OAAO,EAAE,mDAAmD;qBAC5D;iBACD;gBACD;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,uBAAuB;wBAC5B,KAAK,EAAE,IAAI;wBACX,OAAO,EAAE,sEAAsE;qBAC/E;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA7ED,gCA6EC"}
@@ -0,0 +1,9 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class MoonshotApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MoonshotApi = void 0;
4
+ class MoonshotApi {
5
+ constructor() {
6
+ this.name = 'moonshotApi';
7
+ this.displayName = 'Moonshot';
8
+ this.documentationUrl = 'moonshot';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ required: true,
16
+ default: '',
17
+ },
18
+ {
19
+ displayName: 'Region',
20
+ name: 'region',
21
+ type: 'options',
22
+ options: [
23
+ {
24
+ name: 'International',
25
+ value: 'international',
26
+ description: 'platform.kimi.ai - international endpoint',
27
+ },
28
+ {
29
+ name: 'China',
30
+ value: 'china',
31
+ description: 'platform.moonshot.cn - mainland China endpoint',
32
+ },
33
+ ],
34
+ default: 'international',
35
+ },
36
+ {
37
+ displayName: 'Base URL',
38
+ name: 'url',
39
+ type: 'hidden',
40
+ default: '={{ $self.region === "china" ? "https://api.moonshot.cn/v1" : "https://api.moonshot.ai/v1" }}',
41
+ },
42
+ ];
43
+ this.authenticate = {
44
+ type: 'generic',
45
+ properties: {
46
+ headers: {
47
+ Authorization: '=Bearer {{$credentials.apiKey}}',
48
+ },
49
+ },
50
+ };
51
+ this.test = {
52
+ request: {
53
+ baseURL: '={{ $credentials.url }}',
54
+ url: '/models',
55
+ },
56
+ };
57
+ }
58
+ }
59
+ exports.MoonshotApi = MoonshotApi;
60
+ //# sourceMappingURL=MoonshotApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoonshotApi.credentials.js","sourceRoot":"","sources":["../../credentials/MoonshotApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,UAAU,CAAC;QAEzB,qBAAgB,GAAG,UAAU,CAAC;QAE9B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,eAAe;wBACtB,WAAW,EAAE,2CAA2C;qBACxD;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,gDAAgD;qBAC7D;iBACD;gBACD,OAAO,EAAE,eAAe;aACxB;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EACN,+FAA+F;aAChG;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,yBAAyB;gBAClC,GAAG,EAAE,SAAS;aACd;SACD,CAAC;IACH,CAAC;CAAA;AA1DD,kCA0DC"}
@@ -3,6 +3,7 @@
3
3
  "className": "AlibabaCloudApi",
4
4
  "sourcePath": "dist/credentials/AlibabaCloudApi.credentials.js",
5
5
  "supportedNodes": [
6
+ "alibabaCloud",
6
7
  "lmChatAlibabaCloud"
7
8
  ]
8
9
  },
@@ -134,6 +135,21 @@
134
135
  "lmChatMistralCloud"
135
136
  ]
136
137
  },
138
+ "minimaxApi": {
139
+ "className": "MinimaxApi",
140
+ "sourcePath": "dist/credentials/MinimaxApi.credentials.js",
141
+ "supportedNodes": [
142
+ "lmChatMinimax"
143
+ ]
144
+ },
145
+ "moonshotApi": {
146
+ "className": "MoonshotApi",
147
+ "sourcePath": "dist/credentials/MoonshotApi.credentials.js",
148
+ "supportedNodes": [
149
+ "moonshot",
150
+ "lmChatMoonshot"
151
+ ]
152
+ },
137
153
  "lemonadeApi": {
138
154
  "className": "LemonadeApi",
139
155
  "sourcePath": "dist/credentials/LemonadeApi.credentials.js",
@@ -1,4 +1,8 @@
1
1
  {
2
+ "alibabaCloud": {
3
+ "className": "AlibabaCloud",
4
+ "sourcePath": "dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.js"
5
+ },
2
6
  "anthropic": {
3
7
  "className": "Anthropic",
4
8
  "sourcePath": "dist/nodes/vendors/Anthropic/Anthropic.node.js"
@@ -7,6 +11,10 @@
7
11
  "className": "GoogleGemini",
8
12
  "sourcePath": "dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js"
9
13
  },
14
+ "moonshot": {
15
+ "className": "Moonshot",
16
+ "sourcePath": "dist/nodes/vendors/Moonshot/Moonshot.node.js"
17
+ },
10
18
  "ollama": {
11
19
  "className": "Ollama",
12
20
  "sourcePath": "dist/nodes/vendors/Ollama/Ollama.node.js"
@@ -155,6 +163,14 @@
155
163
  "className": "LmChatMistralCloud",
156
164
  "sourcePath": "dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js"
157
165
  },
166
+ "lmChatMinimax": {
167
+ "className": "LmChatMinimax",
168
+ "sourcePath": "dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js"
169
+ },
170
+ "lmChatMoonshot": {
171
+ "className": "LmChatMoonshot",
172
+ "sourcePath": "dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.js"
173
+ },
158
174
  "lmChatLemonade": {
159
175
  "className": "LmChatLemonade",
160
176
  "sourcePath": "dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js"
@@ -1 +1 @@
1
- 1e8871ce0f5058d32d7670b472e290d98d49a3444f770f6c0a7ffbaeb589e2b8
1
+ c2a7a94bdea05bf80f83b0f732284febaf022c4d815c89108f7121ca8357373d
@@ -11,6 +11,7 @@
11
11
  // Import node types for AllNodeTypes union
12
12
  import type { LcAgentNode } from './nodes/n8n-nodes-langchain/agent';
13
13
  import type { LcAgentToolNode } from './nodes/n8n-nodes-langchain/agentTool';
14
+ import type { LcAlibabaCloudNode } from './nodes/n8n-nodes-langchain/alibabaCloud';
14
15
  import type { LcAnthropicNode } from './nodes/n8n-nodes-langchain/anthropic';
15
16
  import type { LcChainLlmNode } from './nodes/n8n-nodes-langchain/chainLlm';
16
17
  import type { LcChainRetrievalQaNode } from './nodes/n8n-nodes-langchain/chainRetrievalQa';
@@ -42,7 +43,9 @@ import type { LcLmChatGoogleGeminiNode } from './nodes/n8n-nodes-langchain/lmCha
42
43
  import type { LcLmChatGoogleVertexNode } from './nodes/n8n-nodes-langchain/lmChatGoogleVertex';
43
44
  import type { LcLmChatGroqNode } from './nodes/n8n-nodes-langchain/lmChatGroq';
44
45
  import type { LcLmChatLemonadeNode } from './nodes/n8n-nodes-langchain/lmChatLemonade';
46
+ import type { LcLmChatMinimaxNode } from './nodes/n8n-nodes-langchain/lmChatMinimax';
45
47
  import type { LcLmChatMistralCloudNode } from './nodes/n8n-nodes-langchain/lmChatMistralCloud';
48
+ import type { LcLmChatMoonshotNode } from './nodes/n8n-nodes-langchain/lmChatMoonshot';
46
49
  import type { LcLmChatOllamaNode } from './nodes/n8n-nodes-langchain/lmChatOllama';
47
50
  import type { LcLmChatOpenAiNode } from './nodes/n8n-nodes-langchain/lmChatOpenAi';
48
51
  import type { LcLmChatOpenRouterNode } from './nodes/n8n-nodes-langchain/lmChatOpenRouter';
@@ -63,6 +66,7 @@ import type { LcMemoryRedisChatNode } from './nodes/n8n-nodes-langchain/memoryRe
63
66
  import type { LcMemoryXataNode } from './nodes/n8n-nodes-langchain/memoryXata';
64
67
  import type { LcMicrosoftAgent365TriggerNode } from './nodes/n8n-nodes-langchain/microsoftAgent365Trigger';
65
68
  import type { LcModelSelectorNode } from './nodes/n8n-nodes-langchain/modelSelector';
69
+ import type { LcMoonshotNode } from './nodes/n8n-nodes-langchain/moonshot';
66
70
  import type { LcOllamaNode } from './nodes/n8n-nodes-langchain/ollama';
67
71
  import type { LcOpenAiNode } from './nodes/n8n-nodes-langchain/openAi';
68
72
  import type { LcOutputParserAutofixingNode } from './nodes/n8n-nodes-langchain/outputParserAutofixing';
@@ -103,6 +107,7 @@ import type { LcVectorStoreZepNode } from './nodes/n8n-nodes-langchain/vectorSto
103
107
  // n8n-nodes-langchain
104
108
  export * from './nodes/n8n-nodes-langchain/agent';
105
109
  export * from './nodes/n8n-nodes-langchain/agentTool';
110
+ export * from './nodes/n8n-nodes-langchain/alibabaCloud';
106
111
  export * from './nodes/n8n-nodes-langchain/anthropic';
107
112
  export * from './nodes/n8n-nodes-langchain/chainLlm';
108
113
  export * from './nodes/n8n-nodes-langchain/chainRetrievalQa';
@@ -134,7 +139,9 @@ export * from './nodes/n8n-nodes-langchain/lmChatGoogleGemini';
134
139
  export * from './nodes/n8n-nodes-langchain/lmChatGoogleVertex';
135
140
  export * from './nodes/n8n-nodes-langchain/lmChatGroq';
136
141
  export * from './nodes/n8n-nodes-langchain/lmChatLemonade';
142
+ export * from './nodes/n8n-nodes-langchain/lmChatMinimax';
137
143
  export * from './nodes/n8n-nodes-langchain/lmChatMistralCloud';
144
+ export * from './nodes/n8n-nodes-langchain/lmChatMoonshot';
138
145
  export * from './nodes/n8n-nodes-langchain/lmChatOllama';
139
146
  export * from './nodes/n8n-nodes-langchain/lmChatOpenAi';
140
147
  export * from './nodes/n8n-nodes-langchain/lmChatOpenRouter';
@@ -155,6 +162,7 @@ export * from './nodes/n8n-nodes-langchain/memoryRedisChat';
155
162
  export * from './nodes/n8n-nodes-langchain/memoryXata';
156
163
  export * from './nodes/n8n-nodes-langchain/microsoftAgent365Trigger';
157
164
  export * from './nodes/n8n-nodes-langchain/modelSelector';
165
+ export * from './nodes/n8n-nodes-langchain/moonshot';
158
166
  export * from './nodes/n8n-nodes-langchain/ollama';
159
167
  export * from './nodes/n8n-nodes-langchain/openAi';
160
168
  export * from './nodes/n8n-nodes-langchain/outputParserAutofixing';
@@ -194,8 +202,10 @@ export * from './nodes/n8n-nodes-langchain/vectorStoreZep';
194
202
 
195
203
  // Combined type union of node type strings
196
204
  export type KnownNodeType =
205
+ | '@n8n/n8n-nodes-langchain.alibabaCloud'
197
206
  | '@n8n/n8n-nodes-langchain.anthropic'
198
207
  | '@n8n/n8n-nodes-langchain.googleGemini'
208
+ | '@n8n/n8n-nodes-langchain.moonshot'
199
209
  | '@n8n/n8n-nodes-langchain.ollama'
200
210
  | '@n8n/n8n-nodes-langchain.openAi'
201
211
  | '@n8n/n8n-nodes-langchain.microsoftAgent365Trigger'
@@ -229,6 +239,8 @@ export type KnownNodeType =
229
239
  | '@n8n/n8n-nodes-langchain.lmChatGoogleVertex'
230
240
  | '@n8n/n8n-nodes-langchain.lmChatGroq'
231
241
  | '@n8n/n8n-nodes-langchain.lmChatMistralCloud'
242
+ | '@n8n/n8n-nodes-langchain.lmChatMinimax'
243
+ | '@n8n/n8n-nodes-langchain.lmChatMoonshot'
232
244
  | '@n8n/n8n-nodes-langchain.lmChatLemonade'
233
245
  | '@n8n/n8n-nodes-langchain.lmChatOllama'
234
246
  | '@n8n/n8n-nodes-langchain.lmChatOpenRouter'
@@ -290,6 +302,7 @@ export type KnownNodeType =
290
302
  export type AllNodeTypes =
291
303
  | LcAgentNode
292
304
  | LcAgentToolNode
305
+ | LcAlibabaCloudNode
293
306
  | LcAnthropicNode
294
307
  | LcChainLlmNode
295
308
  | LcChainRetrievalQaNode
@@ -321,7 +334,9 @@ export type AllNodeTypes =
321
334
  | LcLmChatGoogleVertexNode
322
335
  | LcLmChatGroqNode
323
336
  | LcLmChatLemonadeNode
337
+ | LcLmChatMinimaxNode
324
338
  | LcLmChatMistralCloudNode
339
+ | LcLmChatMoonshotNode
325
340
  | LcLmChatOllamaNode
326
341
  | LcLmChatOpenAiNode
327
342
  | LcLmChatOpenRouterNode
@@ -342,6 +357,7 @@ export type AllNodeTypes =
342
357
  | LcMemoryXataNode
343
358
  | LcMicrosoftAgent365TriggerNode
344
359
  | LcModelSelectorNode
360
+ | LcMoonshotNode
345
361
  | LcOllamaNode
346
362
  | LcOpenAiNode
347
363
  | LcOutputParserAutofixingNode
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node Types
3
+ *
4
+ * Re-exports all version-specific types and provides combined union type.
5
+ */
6
+
7
+ import type { LcAlibabaCloudV1Node } from './v1';
8
+
9
+ export * from './v1';
10
+
11
+ // Combined union type for all versions
12
+ export type LcAlibabaCloudNode = LcAlibabaCloudV1Node;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1 - Zod Schema Factory
3
+ * Exports a factory that unions all discriminator schemas.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getTextSchema = require('./resource_text/index.schema');
12
+ const getImageSchema = require('./resource_image/index.schema');
13
+ const getVideoSchema = require('./resource_video/index.schema');
14
+
15
+ module.exports = function getSchema(helpers) {
16
+ const { parameters, z } = helpers;
17
+ // Apply discriminator default if not set
18
+ const effectiveParams = parameters.resource === undefined ? { ...parameters, resource: 'text' } : parameters;
19
+ return z.union([
20
+ getTextSchema({ ...helpers, parameters: effectiveParams }),
21
+ getImageSchema({ ...helpers, parameters: effectiveParams }),
22
+ getVideoSchema({ ...helpers, parameters: effectiveParams }),
23
+ ]);
24
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1
3
+ * Re-exports all discriminator combinations.
4
+ */
5
+
6
+ import type { LcAlibabaCloudV1TextNode } from './resource_text';
7
+ import type { LcAlibabaCloudV1ImageNode } from './resource_image';
8
+ import type { LcAlibabaCloudV1VideoNode } from './resource_video';
9
+
10
+ export * from './resource_text';
11
+ export * from './resource_image';
12
+ export * from './resource_video';
13
+
14
+ export type LcAlibabaCloudV1Node =
15
+ | LcAlibabaCloudV1TextNode
16
+ | LcAlibabaCloudV1ImageNode
17
+ | LcAlibabaCloudV1VideoNode
18
+ ;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio - Image Resource - Zod Schema Factory
3
+ * Exports a factory that unions all operation schemas for this resource.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getAnalyzeSchema = require('./operation_analyze.schema');
12
+ const getGenerateSchema = require('./operation_generate.schema');
13
+
14
+ module.exports = function getSchema(helpers) {
15
+ const { parameters, z } = helpers;
16
+ // Apply operation default if not set
17
+ const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'message' } : parameters;
18
+ return z.union([
19
+ getAnalyzeSchema({ ...helpers, parameters: effectiveParams }),
20
+ getGenerateSchema({ ...helpers, parameters: effectiveParams }),
21
+ ]);
22
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio - Image Resource
3
+ * Re-exports all operation types for this resource.
4
+ */
5
+
6
+ import type { LcAlibabaCloudV1ImageAnalyzeNode } from './operation_analyze';
7
+ import type { LcAlibabaCloudV1ImageGenerateNode } from './operation_generate';
8
+
9
+ export * from './operation_analyze';
10
+ export * from './operation_generate';
11
+
12
+ export type LcAlibabaCloudV1ImageNode =
13
+ | LcAlibabaCloudV1ImageAnalyzeNode
14
+ | LcAlibabaCloudV1ImageGenerateNode
15
+ ;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
3
+ * Discriminator: resource=image, operation=analyze
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, toolInstanceSchema }) {
14
+
15
+ // Static subnode schema
16
+ const subnodesSchema = z.object({
17
+ tools: z.array(toolInstanceSchema).optional(),
18
+ }).strict();
19
+
20
+ return z.object({
21
+ parameters: z.object({
22
+ resource: z.literal('image'),
23
+ operation: z.literal('analyze'),
24
+ modelId: z.union([z.literal('qwen3-vl-flash'), z.literal('qwen3-vl-plus'), expressionSchema]).optional(),
25
+ inputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(),
26
+ imageUrl: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"inputType":["url"]}}, defaults: {"inputType":"url"} }),
27
+ binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"inputType":["binary"]}}, defaults: {"inputType":"url"} }),
28
+ question: stringOrExpression.optional(),
29
+ simplify: booleanOrExpression.optional(),
30
+ visionOptions: z.object({ temperature: numberOrExpression.optional(), maxTokens: numberOrExpression.optional() }).optional(),
31
+ }).optional(),
32
+ subnodes: subnodesSchema.optional(),
33
+ });
34
+ };
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1
3
+ * Discriminator: resource=image, operation=analyze
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ alibabaCloudApi: CredentialReference;
9
+ }
10
+
11
+ /** Take in images and answer questions about them */
12
+ export type LcAlibabaCloudV1ImageAnalyzeParams = {
13
+ resource: 'image';
14
+ operation: 'analyze';
15
+ /**
16
+ * The model to use for image analysis
17
+ * @default qwen3-vl-flash
18
+ */
19
+ modelId?: 'qwen3-vl-flash' | 'qwen3-vl-plus' | Expression<string>;
20
+ /**
21
+ * How to provide the image for analysis
22
+ * @default url
23
+ */
24
+ inputType?: 'url' | 'binary' | Expression<string>;
25
+ /**
26
+ * The URL of the image to analyze
27
+ * @displayOptions.show { inputType: ["url"] }
28
+ */
29
+ imageUrl?: string | Expression<string> | PlaceholderValue;
30
+ /**
31
+ * Input Data Field Name
32
+ * @hint The name of the input field containing the binary file data to be processed
33
+ * @displayOptions.show { inputType: ["binary"] }
34
+ * @default data
35
+ */
36
+ binaryPropertyName?: string | Expression<string> | PlaceholderValue;
37
+ /**
38
+ * The question or instruction about the image
39
+ */
40
+ question?: string | Expression<string> | PlaceholderValue;
41
+ /**
42
+ * Whether to return a simplified version of the response instead of the raw data
43
+ * @default true
44
+ */
45
+ simplify?: boolean | Expression<boolean>;
46
+ /**
47
+ * Options
48
+ * @default {}
49
+ */
50
+ visionOptions?: {
51
+ /** Controls randomness in the output. Lower values make output more focused and deterministic.
52
+ * @default 1
53
+ */
54
+ temperature?: number | Expression<number>;
55
+ /** Maximum number of tokens to generate
56
+ * @default 2000
57
+ */
58
+ maxTokens?: number | Expression<number>;
59
+ };
60
+ };
61
+
62
+ export interface LcAlibabaCloudV1ImageAnalyzeSubnodeConfig {
63
+ tools?: ToolInstance[];
64
+ }
65
+
66
+ export type LcAlibabaCloudV1ImageAnalyzeNode = {
67
+ type: '@n8n/n8n-nodes-langchain.alibabaCloud';
68
+ version: 1;
69
+ credentials?: Credentials;
70
+ config: NodeConfig<LcAlibabaCloudV1ImageAnalyzeParams> & { subnodes?: LcAlibabaCloudV1ImageAnalyzeSubnodeConfig };
71
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
3
+ * Discriminator: resource=image, operation=generate
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, toolInstanceSchema }) {
14
+
15
+ // Static subnode schema
16
+ const subnodesSchema = z.object({
17
+ tools: z.array(toolInstanceSchema).optional(),
18
+ }).strict();
19
+
20
+ return z.object({
21
+ parameters: z.object({
22
+ resource: z.literal('image'),
23
+ operation: z.literal('generate'),
24
+ modelId: z.union([z.literal('qwen-image'), z.literal('qwen-image-max'), z.literal('qwen-image-plus'), z.literal('wan2.6-t2i'), z.literal('z-image-turbo'), expressionSchema]).optional(),
25
+ prompt: stringOrExpression.optional(),
26
+ downloadImage: booleanOrExpression.optional(),
27
+ imageOptions: z.object({ size: z.union([z.literal('1024*1024'), z.literal('720*1280'), z.literal('1280*720'), expressionSchema]).optional(), size: z.union([z.literal('1104*1472'), z.literal('1328*1328'), z.literal('1472*1104'), z.literal('1664*928'), z.literal('928*1664'), expressionSchema]).optional(), promptExtend: booleanOrExpression.optional() }).optional(),
28
+ }).optional(),
29
+ subnodes: subnodesSchema.optional(),
30
+ });
31
+ };
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1
3
+ * Discriminator: resource=image, operation=generate
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ alibabaCloudApi: CredentialReference;
9
+ }
10
+
11
+ /** Creates an image from a text prompt */
12
+ export type LcAlibabaCloudV1ImageGenerateParams = {
13
+ resource: 'image';
14
+ operation: 'generate';
15
+ /**
16
+ * The model to use for image generation
17
+ * @default z-image-turbo
18
+ */
19
+ modelId?: 'qwen-image' | 'qwen-image-max' | 'qwen-image-plus' | 'wan2.6-t2i' | 'z-image-turbo' | Expression<string>;
20
+ /**
21
+ * The text prompt describing the image to generate
22
+ */
23
+ prompt?: string | Expression<string> | PlaceholderValue;
24
+ /**
25
+ * Whether to download the generated image as binary data. When disabled, only the image URL is returned.
26
+ * @default true
27
+ */
28
+ downloadImage?: boolean | Expression<boolean>;
29
+ /**
30
+ * Options
31
+ * @default {}
32
+ */
33
+ imageOptions?: {
34
+ /** The size of the generated image
35
+ * @displayOptions.show { /modelId: ["z-image-turbo", "wan2.6-t2i"] }
36
+ * @default 1024*1024
37
+ */
38
+ size?: '1024*1024' | '720*1280' | '1280*720' | Expression<string>;
39
+ /** The size of the generated image
40
+ * @displayOptions.show { /modelId: ["qwen-image", "qwen-image-plus", "qwen-image-max"] }
41
+ * @default 1664*928
42
+ */
43
+ size?: '1104*1472' | '1328*1328' | '1472*1104' | '1664*928' | '928*1664' | Expression<string>;
44
+ /** Whether to automatically extend and enhance the prompt
45
+ * @default false
46
+ */
47
+ promptExtend?: boolean | Expression<boolean>;
48
+ };
49
+ };
50
+
51
+ export interface LcAlibabaCloudV1ImageGenerateSubnodeConfig {
52
+ tools?: ToolInstance[];
53
+ }
54
+
55
+ export type LcAlibabaCloudV1ImageGenerateNode = {
56
+ type: '@n8n/n8n-nodes-langchain.alibabaCloud';
57
+ version: 1;
58
+ credentials?: Credentials;
59
+ config: NodeConfig<LcAlibabaCloudV1ImageGenerateParams> & { subnodes?: LcAlibabaCloudV1ImageGenerateSubnodeConfig };
60
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio - Text Resource - Zod Schema Factory
3
+ * Exports a factory that unions all operation schemas for this resource.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getMessageSchema = require('./operation_message.schema');
12
+
13
+ module.exports = function getSchema(helpers) {
14
+ const { parameters, z } = helpers;
15
+ // Apply operation default if not set
16
+ const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'message' } : parameters;
17
+ return getMessageSchema({ ...helpers, parameters: effectiveParams });
18
+ };