@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,10 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio - Text Resource
3
+ * Re-exports all operation types for this resource.
4
+ */
5
+
6
+ import type { LcAlibabaCloudV1TextMessageNode } from './operation_message';
7
+
8
+ export * from './operation_message';
9
+
10
+ export type LcAlibabaCloudV1TextNode = LcAlibabaCloudV1TextMessageNode;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
3
+ * Discriminator: resource=text, operation=message
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('text').default('text'),
23
+ operation: z.literal('message').default('message'),
24
+ modelId: z.union([z.literal('qwen3-max'), z.literal('qwen3-max-2026-01-23'), z.literal('qwen3.5-122b-a10b'), z.literal('qwen3.5-27b'), z.literal('qwen3.5-35b-a3b'), z.literal('qwen3.5-397b-a17b'), z.literal('qwen3.5-flash'), z.literal('qwen3.5-flash-2026-02-23'), z.literal('qwen3.5-plus'), z.literal('qwen3.5-plus-2026-02-15'), expressionSchema]).optional(),
25
+ messages: z.object({ messageValues: z.array(z.object({ content: stringOrExpression.optional(), role: z.union([z.literal('user'), z.literal('assistant'), expressionSchema]).optional() })).optional() }).optional(),
26
+ simplify: booleanOrExpression.optional(),
27
+ options: z.object({ enableSearch: booleanOrExpression.optional(), maxTokens: numberOrExpression.optional(), maxToolsIterations: numberOrExpression.optional(), repetitionPenalty: numberOrExpression.optional(), seed: numberOrExpression.optional(), stop: stringOrExpression.optional(), system: stringOrExpression.optional(), temperature: numberOrExpression.optional(), topK: numberOrExpression.optional(), topP: numberOrExpression.optional() }).optional(),
28
+ }).optional(),
29
+ subnodes: subnodesSchema.optional(),
30
+ });
31
+ };
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1
3
+ * Discriminator: resource=text, operation=message
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ alibabaCloudApi: CredentialReference;
9
+ }
10
+
11
+ /** Create a completion with a Qwen model */
12
+ export type LcAlibabaCloudV1TextMessageParams = {
13
+ resource: 'text';
14
+ operation: 'message';
15
+ /**
16
+ * The model to use for generation
17
+ * @default qwen3.5-flash
18
+ */
19
+ modelId?: 'qwen3-max' | 'qwen3-max-2026-01-23' | 'qwen3.5-122b-a10b' | 'qwen3.5-27b' | 'qwen3.5-35b-a3b' | 'qwen3.5-397b-a17b' | 'qwen3.5-flash' | 'qwen3.5-flash-2026-02-23' | 'qwen3.5-plus' | 'qwen3.5-plus-2026-02-15' | Expression<string>;
20
+ /**
21
+ * Messages
22
+ * @default {"messageValues":[{"content":"","role":"user"}]}
23
+ */
24
+ messages?: {
25
+ /** Message
26
+ */
27
+ messageValues?: Array<{
28
+ /** The content of the message
29
+ */
30
+ content?: string | Expression<string> | PlaceholderValue;
31
+ /** The role of the message sender
32
+ * @default user
33
+ */
34
+ role?: 'user' | 'assistant' | Expression<string>;
35
+ }>;
36
+ };
37
+ /**
38
+ * Whether to return a simplified version of the response instead of the raw data
39
+ * @default true
40
+ */
41
+ simplify?: boolean | Expression<boolean>;
42
+ /**
43
+ * Options
44
+ * @default {}
45
+ */
46
+ options?: {
47
+ /** Whether to enable web search for up-to-date information
48
+ * @default false
49
+ */
50
+ enableSearch?: boolean | Expression<boolean>;
51
+ /** Maximum number of tokens to generate
52
+ * @default 2000
53
+ */
54
+ maxTokens?: number | Expression<number>;
55
+ /** Maximum number of tool-calling iterations before stopping. Set to 0 for unlimited.
56
+ * @default 15
57
+ */
58
+ maxToolsIterations?: number | Expression<number>;
59
+ /** Penalty for token repetition. Higher values reduce repetition.
60
+ * @default 1.1
61
+ */
62
+ repetitionPenalty?: number | Expression<number>;
63
+ /** Random seed for reproducible outputs
64
+ * @default 1234
65
+ */
66
+ seed?: number | Expression<number>;
67
+ /** Comma-separated list of sequences where the API will stop generating
68
+ */
69
+ stop?: string | Expression<string> | PlaceholderValue;
70
+ /** System Message
71
+ */
72
+ system?: string | Expression<string> | PlaceholderValue;
73
+ /** Controls randomness in the output. Lower values make output more focused and deterministic.
74
+ * @default 1
75
+ */
76
+ temperature?: number | Expression<number>;
77
+ /** Limits the sampling pool to top K tokens
78
+ * @default 50
79
+ */
80
+ topK?: number | Expression<number>;
81
+ /** Nucleus sampling parameter. Lower values make output more focused.
82
+ * @default 0.9
83
+ */
84
+ topP?: number | Expression<number>;
85
+ };
86
+ };
87
+
88
+ export interface LcAlibabaCloudV1TextMessageSubnodeConfig {
89
+ tools?: ToolInstance[];
90
+ }
91
+
92
+ export type LcAlibabaCloudV1TextMessageNode = {
93
+ type: '@n8n/n8n-nodes-langchain.alibabaCloud';
94
+ version: 1;
95
+ credentials?: Credentials;
96
+ config: NodeConfig<LcAlibabaCloudV1TextMessageParams> & { subnodes?: LcAlibabaCloudV1TextMessageSubnodeConfig };
97
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio - Video 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 getImageToVideoSchema = require('./operation_image_to_video.schema');
12
+ const getTextToVideoSchema = require('./operation_text_to_video.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
+ getImageToVideoSchema({ ...helpers, parameters: effectiveParams }),
20
+ getTextToVideoSchema({ ...helpers, parameters: effectiveParams }),
21
+ ]);
22
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio - Video Resource
3
+ * Re-exports all operation types for this resource.
4
+ */
5
+
6
+ import type { LcAlibabaCloudV1VideoImageToVideoNode } from './operation_image_to_video';
7
+ import type { LcAlibabaCloudV1VideoTextToVideoNode } from './operation_text_to_video';
8
+
9
+ export * from './operation_image_to_video';
10
+ export * from './operation_text_to_video';
11
+
12
+ export type LcAlibabaCloudV1VideoNode =
13
+ | LcAlibabaCloudV1VideoImageToVideoNode
14
+ | LcAlibabaCloudV1VideoTextToVideoNode
15
+ ;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
3
+ * Discriminator: resource=video, operation=imageToVideo
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('video'),
23
+ operation: z.literal('imageToVideo'),
24
+ modelId: z.union([z.literal('wan2.6-i2v-flash'), z.literal('wan2.6-i2v'), expressionSchema]).optional(),
25
+ inputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(),
26
+ imgUrl: 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
+ prompt: stringOrExpression.optional(),
29
+ resolution: z.union([z.literal('720P'), z.literal('1080P'), expressionSchema]).optional(),
30
+ duration: numberOrExpression.optional(),
31
+ shotType: z.union([z.literal('single'), z.literal('multi'), expressionSchema]).optional(),
32
+ downloadVideo: booleanOrExpression.optional(),
33
+ simplify: booleanOrExpression.optional(),
34
+ imageToVideoOptions: z.object({ promptExtend: booleanOrExpression.optional(), audio: booleanOrExpression.optional(), audioInputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(), audioUrl: stringOrExpression.optional(), audioBinaryPropertyName: stringOrExpression.optional() }).optional(),
35
+ }).optional(),
36
+ subnodes: subnodesSchema.optional(),
37
+ });
38
+ };
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1
3
+ * Discriminator: resource=video, operation=imageToVideo
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ alibabaCloudApi: CredentialReference;
9
+ }
10
+
11
+ /** Generate a video from one or more images using Wan models */
12
+ export type LcAlibabaCloudV1VideoImageToVideoParams = {
13
+ resource: 'video';
14
+ operation: 'imageToVideo';
15
+ /**
16
+ * The model to use for image-to-video generation
17
+ * @default wan2.6-i2v-flash
18
+ */
19
+ modelId?: 'wan2.6-i2v-flash' | 'wan2.6-i2v' | Expression<string>;
20
+ /**
21
+ * Input Type
22
+ * @default url
23
+ */
24
+ inputType?: 'url' | 'binary' | Expression<string>;
25
+ /**
26
+ * The URL of the first-frame image to generate video from
27
+ * @displayOptions.show { inputType: ["url"] }
28
+ */
29
+ imgUrl?: 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
+ * A text prompt describing the desired content and visual characteristics for the generated video
39
+ */
40
+ prompt?: string | Expression<string> | PlaceholderValue;
41
+ /**
42
+ * Resolution tier of the generated video
43
+ * @default 1080P
44
+ */
45
+ resolution?: '720P' | '1080P' | Expression<string>;
46
+ /**
47
+ * Duration of the generated video in seconds (2–15)
48
+ * @default 5
49
+ */
50
+ duration?: number | Expression<number>;
51
+ /**
52
+ * Whether to generate a single-shot or multi-shot narrative video
53
+ * @default single
54
+ */
55
+ shotType?: 'single' | 'multi' | Expression<string>;
56
+ /**
57
+ * Whether to download the generated video as binary data. When disabled, only the video URL is returned.
58
+ * @default true
59
+ */
60
+ downloadVideo?: boolean | Expression<boolean>;
61
+ /**
62
+ * Whether to return a simplified version of the response instead of the raw data
63
+ * @default true
64
+ */
65
+ simplify?: boolean | Expression<boolean>;
66
+ /**
67
+ * Options
68
+ * @default {}
69
+ */
70
+ imageToVideoOptions?: {
71
+ /** Whether to automatically extend and enhance the prompt
72
+ * @default false
73
+ */
74
+ promptExtend?: boolean | Expression<boolean>;
75
+ /** Whether to generate audio for the video
76
+ * @default true
77
+ */
78
+ audio?: boolean | Expression<boolean>;
79
+ /** Audio Input Type
80
+ * @default url
81
+ */
82
+ audioInputType?: 'url' | 'binary' | Expression<string>;
83
+ /** URL of the audio file to use for the video
84
+ * @displayOptions.show { audioInputType: ["url"] }
85
+ */
86
+ audioUrl?: string | Expression<string> | PlaceholderValue;
87
+ /** Audio Data Field Name
88
+ * @hint The name of the input field containing the binary audio data
89
+ * @displayOptions.show { audioInputType: ["binary"] }
90
+ * @default audio
91
+ */
92
+ audioBinaryPropertyName?: string | Expression<string> | PlaceholderValue;
93
+ };
94
+ };
95
+
96
+ export interface LcAlibabaCloudV1VideoImageToVideoSubnodeConfig {
97
+ tools?: ToolInstance[];
98
+ }
99
+
100
+ export type LcAlibabaCloudV1VideoImageToVideoNode = {
101
+ type: '@n8n/n8n-nodes-langchain.alibabaCloud';
102
+ version: 1;
103
+ credentials?: Credentials;
104
+ config: NodeConfig<LcAlibabaCloudV1VideoImageToVideoParams> & { subnodes?: LcAlibabaCloudV1VideoImageToVideoSubnodeConfig };
105
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
3
+ * Discriminator: resource=video, operation=textToVideo
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('video'),
23
+ operation: z.literal('textToVideo'),
24
+ modelId: z.union([z.literal('wan2.6-t2v'), expressionSchema]).optional(),
25
+ prompt: stringOrExpression.optional(),
26
+ resolution: z.union([z.literal('720P'), z.literal('1080P'), expressionSchema]).optional(),
27
+ duration: numberOrExpression.optional(),
28
+ shotType: z.union([z.literal('single'), z.literal('multi'), expressionSchema]).optional(),
29
+ downloadVideo: booleanOrExpression.optional(),
30
+ simplify: booleanOrExpression.optional(),
31
+ videoOptions: z.object({ promptExtend: booleanOrExpression.optional(), audio: booleanOrExpression.optional(), audioInputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(), audioUrl: stringOrExpression.optional(), audioBinaryPropertyName: stringOrExpression.optional() }).optional(),
32
+ }).optional(),
33
+ subnodes: subnodesSchema.optional(),
34
+ });
35
+ };
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Alibaba Cloud Model Studio Node - Version 1
3
+ * Discriminator: resource=video, operation=textToVideo
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ alibabaCloudApi: CredentialReference;
9
+ }
10
+
11
+ /** Generate a video from a text prompt */
12
+ export type LcAlibabaCloudV1VideoTextToVideoParams = {
13
+ resource: 'video';
14
+ operation: 'textToVideo';
15
+ /**
16
+ * The model to use for text-to-video generation
17
+ * @default wan2.6-t2v
18
+ */
19
+ modelId?: 'wan2.6-t2v' | Expression<string>;
20
+ /**
21
+ * The text prompt to generate video from
22
+ */
23
+ prompt?: string | Expression<string> | PlaceholderValue;
24
+ /**
25
+ * Resolution tier of the generated video
26
+ * @default 1080P
27
+ */
28
+ resolution?: '720P' | '1080P' | Expression<string>;
29
+ /**
30
+ * Duration of the generated video in seconds (2–15)
31
+ * @default 5
32
+ */
33
+ duration?: number | Expression<number>;
34
+ /**
35
+ * Whether to generate a single-shot or multi-shot narrative video
36
+ * @default single
37
+ */
38
+ shotType?: 'single' | 'multi' | Expression<string>;
39
+ /**
40
+ * Whether to download the generated video as binary data. When disabled, only the video URL is returned.
41
+ * @default true
42
+ */
43
+ downloadVideo?: boolean | Expression<boolean>;
44
+ /**
45
+ * Whether to return a simplified version of the response instead of the raw data
46
+ * @default true
47
+ */
48
+ simplify?: boolean | Expression<boolean>;
49
+ /**
50
+ * Options
51
+ * @default {}
52
+ */
53
+ videoOptions?: {
54
+ /** Whether to automatically extend and enhance the prompt
55
+ * @default false
56
+ */
57
+ promptExtend?: boolean | Expression<boolean>;
58
+ /** Whether to generate audio for the video
59
+ * @default true
60
+ */
61
+ audio?: boolean | Expression<boolean>;
62
+ /** Audio Input Type
63
+ * @default url
64
+ */
65
+ audioInputType?: 'url' | 'binary' | Expression<string>;
66
+ /** URL of the audio file to use for the video
67
+ * @displayOptions.show { audioInputType: ["url"] }
68
+ */
69
+ audioUrl?: string | Expression<string> | PlaceholderValue;
70
+ /** Audio Data Field Name
71
+ * @hint The name of the input field containing the binary audio data
72
+ * @displayOptions.show { audioInputType: ["binary"] }
73
+ * @default audio
74
+ */
75
+ audioBinaryPropertyName?: string | Expression<string> | PlaceholderValue;
76
+ };
77
+ };
78
+
79
+ export interface LcAlibabaCloudV1VideoTextToVideoSubnodeConfig {
80
+ tools?: ToolInstance[];
81
+ }
82
+
83
+ export type LcAlibabaCloudV1VideoTextToVideoNode = {
84
+ type: '@n8n/n8n-nodes-langchain.alibabaCloud';
85
+ version: 1;
86
+ credentials?: Credentials;
87
+ config: NodeConfig<LcAlibabaCloudV1VideoTextToVideoParams> & { subnodes?: LcAlibabaCloudV1VideoTextToVideoSubnodeConfig };
88
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * MiniMax Chat Model Node Types
3
+ *
4
+ * Re-exports all version-specific types and provides combined union type.
5
+ */
6
+
7
+ import type { LcLmChatMinimaxV1Node } from './v1';
8
+
9
+ export * from './v1';
10
+
11
+ // Combined union type for all versions
12
+ export type LcLmChatMinimaxNode = LcLmChatMinimaxV1Node;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * MiniMax Chat Model Node - Version 1 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
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 }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ model: z.union([z.literal('MiniMax-M2'), z.literal('MiniMax-M2.1'), z.literal('MiniMax-M2.1-highspeed'), z.literal('MiniMax-M2.5'), z.literal('MiniMax-M2.5-highspeed'), z.literal('MiniMax-M2.7'), z.literal('MiniMax-M2.7-highspeed'), expressionSchema]).optional(),
18
+ options: z.object({ hideThinking: booleanOrExpression.optional(), maxTokens: numberOrExpression.optional(), temperature: numberOrExpression.optional(), timeout: numberOrExpression.optional(), maxRetries: numberOrExpression.optional(), topP: numberOrExpression.optional() }).optional(),
19
+ });
20
+
21
+ // Return combined config schema
22
+ return z.object({
23
+ parameters: parametersSchema.nullable().optional(),
24
+ });
25
+ };
@@ -0,0 +1,60 @@
1
+ /**
2
+ * MiniMax Chat Model Node - Version 1
3
+ * For advanced usage with an AI chain
4
+ */
5
+
6
+
7
+ export interface LcLmChatMinimaxV1Params {
8
+ /**
9
+ * The model which will generate the completion. &lt;a href="https://platform.minimax.io/docs/api-reference/text-openai-api"&gt;Learn more&lt;/a&gt;.
10
+ * @default MiniMax-M2.7
11
+ */
12
+ model?: 'MiniMax-M2' | 'MiniMax-M2.1' | 'MiniMax-M2.1-highspeed' | 'MiniMax-M2.5' | 'MiniMax-M2.5-highspeed' | 'MiniMax-M2.7' | 'MiniMax-M2.7-highspeed' | Expression<string>;
13
+ /**
14
+ * Additional options to add
15
+ * @default {}
16
+ */
17
+ options?: {
18
+ /** Whether to strip chain-of-thought reasoning from the response, returning only the final answer
19
+ * @default true
20
+ */
21
+ hideThinking?: boolean | Expression<boolean>;
22
+ /** The maximum number of tokens to generate in the completion. The limit depends on the selected model.
23
+ * @default -1
24
+ */
25
+ maxTokens?: number | Expression<number>;
26
+ /** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
27
+ * @default 0.7
28
+ */
29
+ temperature?: number | Expression<number>;
30
+ /** Maximum amount of time a request is allowed to take in milliseconds
31
+ * @default 360000
32
+ */
33
+ timeout?: number | Expression<number>;
34
+ /** Maximum number of retries to attempt
35
+ * @default 2
36
+ */
37
+ maxRetries?: number | Expression<number>;
38
+ /** Controls diversity via nucleus sampling: 0.5 means half of all likelihood-weighted options are considered. We generally recommend altering this or temperature but not both.
39
+ * @default 1
40
+ */
41
+ topP?: number | Expression<number>;
42
+ };
43
+ }
44
+
45
+ export interface LcLmChatMinimaxV1Credentials {
46
+ minimaxApi: CredentialReference;
47
+ }
48
+
49
+ interface LcLmChatMinimaxV1NodeBase {
50
+ type: '@n8n/n8n-nodes-langchain.lmChatMinimax';
51
+ version: 1;
52
+ credentials?: LcLmChatMinimaxV1Credentials;
53
+ isTrigger: true;
54
+ }
55
+
56
+ export type LcLmChatMinimaxV1ParamsNode = LcLmChatMinimaxV1NodeBase & {
57
+ config: NodeConfig<LcLmChatMinimaxV1Params>;
58
+ };
59
+
60
+ export type LcLmChatMinimaxV1Node = LcLmChatMinimaxV1ParamsNode;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Moonshot Kimi Chat Model Node Types
3
+ *
4
+ * Re-exports all version-specific types and provides combined union type.
5
+ */
6
+
7
+ import type { LcLmChatMoonshotV1Node } from './v1';
8
+
9
+ export * from './v1';
10
+
11
+ // Combined union type for all versions
12
+ export type LcLmChatMoonshotNode = LcLmChatMoonshotV1Node;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Moonshot Kimi Chat Model Node - Version 1 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
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 }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ model: stringOrExpression.optional(),
18
+ options: z.object({ frequencyPenalty: numberOrExpression.optional(), maxTokens: numberOrExpression.optional(), responseFormat: z.union([z.literal('text'), z.literal('json_object'), expressionSchema]).optional(), presencePenalty: numberOrExpression.optional(), temperature: numberOrExpression.optional(), timeout: numberOrExpression.optional(), maxRetries: numberOrExpression.optional(), topP: numberOrExpression.optional() }).optional(),
19
+ });
20
+
21
+ // Return combined config schema
22
+ return z.object({
23
+ parameters: parametersSchema.nullable().optional(),
24
+ });
25
+ };
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Moonshot Kimi Chat Model Node - Version 1
3
+ * For advanced usage with an AI chain
4
+ */
5
+
6
+
7
+ export interface LcLmChatMoonshotV1Params {
8
+ /**
9
+ * The model which will generate the completion. &lt;a href="https://platform.kimi.ai/docs/api/chat"&gt;Learn more&lt;/a&gt;.
10
+ * @default kimi-k2.5
11
+ */
12
+ model?: string | Expression<string>;
13
+ /**
14
+ * Additional options to add
15
+ * @default {}
16
+ */
17
+ options?: {
18
+ /** Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim
19
+ * @default 0
20
+ */
21
+ frequencyPenalty?: number | Expression<number>;
22
+ /** The maximum number of tokens to generate in the completion. The limit depends on the selected model.
23
+ * @default -1
24
+ */
25
+ maxTokens?: number | Expression<number>;
26
+ /** Response Format
27
+ * @default text
28
+ */
29
+ responseFormat?: 'text' | 'json_object' | Expression<string>;
30
+ /** Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics
31
+ * @default 0
32
+ */
33
+ presencePenalty?: number | Expression<number>;
34
+ /** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
35
+ * @default 0.7
36
+ */
37
+ temperature?: number | Expression<number>;
38
+ /** Maximum amount of time a request is allowed to take in milliseconds
39
+ * @default 360000
40
+ */
41
+ timeout?: number | Expression<number>;
42
+ /** Maximum number of retries to attempt
43
+ * @default 2
44
+ */
45
+ maxRetries?: number | Expression<number>;
46
+ /** Controls diversity via nucleus sampling: 0.5 means half of all likelihood-weighted options are considered. We generally recommend altering this or temperature but not both.
47
+ * @default 1
48
+ */
49
+ topP?: number | Expression<number>;
50
+ };
51
+ }
52
+
53
+ export interface LcLmChatMoonshotV1Credentials {
54
+ moonshotApi: CredentialReference;
55
+ }
56
+
57
+ interface LcLmChatMoonshotV1NodeBase {
58
+ type: '@n8n/n8n-nodes-langchain.lmChatMoonshot';
59
+ version: 1;
60
+ credentials?: LcLmChatMoonshotV1Credentials;
61
+ isTrigger: true;
62
+ }
63
+
64
+ export type LcLmChatMoonshotV1ParamsNode = LcLmChatMoonshotV1NodeBase & {
65
+ config: NodeConfig<LcLmChatMoonshotV1Params>;
66
+ };
67
+
68
+ export type LcLmChatMoonshotV1Node = LcLmChatMoonshotV1ParamsNode;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Moonshot Kimi Node Types
3
+ *
4
+ * Re-exports all version-specific types and provides combined union type.
5
+ */
6
+
7
+ import type { LcMoonshotV1Node } from './v1';
8
+
9
+ export * from './v1';
10
+
11
+ // Combined union type for all versions
12
+ export type LcMoonshotNode = LcMoonshotV1Node;