@kyuda/n8n-nodes-databricks 1.2.2 → 1.3.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.

Potentially problematic release.


This version of @kyuda/n8n-nodes-databricks might be problematic. Click here for more details.

Files changed (227) hide show
  1. package/dist/package.json +6 -30
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +6 -30
  4. package/dist/nodes/agents/DatabricksAiAgent/CallbackHandler.d.ts +0 -66
  5. package/dist/nodes/agents/DatabricksAiAgent/CallbackHandler.js +0 -531
  6. package/dist/nodes/agents/DatabricksAiAgent/CallbackHandler.js.map +0 -1
  7. package/dist/nodes/agents/DatabricksAiAgent/DatabricksAiAgent.node.d.ts +0 -5
  8. package/dist/nodes/agents/DatabricksAiAgent/DatabricksAiAgent.node.js +0 -133
  9. package/dist/nodes/agents/DatabricksAiAgent/DatabricksAiAgent.node.js.map +0 -1
  10. package/dist/nodes/agents/DatabricksAiAgent/DatabricksAiAgentDark.icon.svg +0 -9
  11. package/dist/nodes/agents/DatabricksAiAgent/DatabricksAiAgentLight.icon.svg +0 -9
  12. package/dist/nodes/agents/DatabricksAiAgent/description.d.ts +0 -4
  13. package/dist/nodes/agents/DatabricksAiAgent/description.js +0 -28
  14. package/dist/nodes/agents/DatabricksAiAgent/description.js.map +0 -1
  15. package/dist/nodes/agents/DatabricksAiAgent/execute.d.ts +0 -2
  16. package/dist/nodes/agents/DatabricksAiAgent/execute.js +0 -418
  17. package/dist/nodes/agents/DatabricksAiAgent/execute.js.map +0 -1
  18. package/dist/nodes/agents/DatabricksAiAgent/src/constants.d.ts +0 -82
  19. package/dist/nodes/agents/DatabricksAiAgent/src/constants.js +0 -105
  20. package/dist/nodes/agents/DatabricksAiAgent/src/constants.js.map +0 -1
  21. package/dist/nodes/agents/DatabricksAiAgent/src/types/types.d.ts +0 -6
  22. package/dist/nodes/agents/DatabricksAiAgent/src/types/types.js +0 -3
  23. package/dist/nodes/agents/DatabricksAiAgent/src/types/types.js.map +0 -1
  24. package/dist/nodes/agents/DatabricksAiAgent/src/utils/N8nOutputParser.d.ts +0 -5
  25. package/dist/nodes/agents/DatabricksAiAgent/src/utils/N8nOutputParser.js +0 -13
  26. package/dist/nodes/agents/DatabricksAiAgent/src/utils/N8nOutputParser.js.map +0 -1
  27. package/dist/nodes/agents/DatabricksAiAgent/src/utils/N8nTool.d.ts +0 -10
  28. package/dist/nodes/agents/DatabricksAiAgent/src/utils/N8nTool.js +0 -88
  29. package/dist/nodes/agents/DatabricksAiAgent/src/utils/N8nTool.js.map +0 -1
  30. package/dist/nodes/agents/DatabricksAiAgent/src/utils/common.d.ts +0 -28
  31. package/dist/nodes/agents/DatabricksAiAgent/src/utils/common.js +0 -207
  32. package/dist/nodes/agents/DatabricksAiAgent/src/utils/common.js.map +0 -1
  33. package/dist/nodes/agents/DatabricksAiAgent/src/utils/descriptions.d.ts +0 -17
  34. package/dist/nodes/agents/DatabricksAiAgent/src/utils/descriptions.js +0 -135
  35. package/dist/nodes/agents/DatabricksAiAgent/src/utils/descriptions.js.map +0 -1
  36. package/dist/nodes/agents/DatabricksAiAgent/src/utils/helpers.d.ts +0 -24
  37. package/dist/nodes/agents/DatabricksAiAgent/src/utils/helpers.js +0 -221
  38. package/dist/nodes/agents/DatabricksAiAgent/src/utils/helpers.js.map +0 -1
  39. package/dist/nodes/agents/DatabricksAiAgent/src/utils/options.d.ts +0 -2
  40. package/dist/nodes/agents/DatabricksAiAgent/src/utils/options.js +0 -38
  41. package/dist/nodes/agents/DatabricksAiAgent/src/utils/options.js.map +0 -1
  42. package/dist/nodes/agents/DatabricksAiAgent/src/utils/output_parsers/N8nStructuredOutputParser.d.ts +0 -12
  43. package/dist/nodes/agents/DatabricksAiAgent/src/utils/output_parsers/N8nStructuredOutputParser.js +0 -106
  44. package/dist/nodes/agents/DatabricksAiAgent/src/utils/output_parsers/N8nStructuredOutputParser.js.map +0 -1
  45. package/dist/nodes/agents/DatabricksAiAgent/src/utils/prompt.d.ts +0 -1
  46. package/dist/nodes/agents/DatabricksAiAgent/src/utils/prompt.js +0 -5
  47. package/dist/nodes/agents/DatabricksAiAgent/src/utils/prompt.js.map +0 -1
  48. package/dist/nodes/agents/DatabricksAiAgent/src/utils/retry.d.ts +0 -16
  49. package/dist/nodes/agents/DatabricksAiAgent/src/utils/retry.js +0 -132
  50. package/dist/nodes/agents/DatabricksAiAgent/src/utils/retry.js.map +0 -1
  51. package/dist/nodes/agents/DatabricksAiAgent/src/utils/security.d.ts +0 -18
  52. package/dist/nodes/agents/DatabricksAiAgent/src/utils/security.js +0 -150
  53. package/dist/nodes/agents/DatabricksAiAgent/src/utils/security.js.map +0 -1
  54. package/dist/nodes/agents/DatabricksAiAgent/src/utils/sharedFields.d.ts +0 -7
  55. package/dist/nodes/agents/DatabricksAiAgent/src/utils/sharedFields.js +0 -150
  56. package/dist/nodes/agents/DatabricksAiAgent/src/utils/sharedFields.js.map +0 -1
  57. package/dist/nodes/agents/DatabricksAiAgent/utils.d.ts +0 -2
  58. package/dist/nodes/agents/DatabricksAiAgent/utils.js +0 -52
  59. package/dist/nodes/agents/DatabricksAiAgent/utils.js.map +0 -1
  60. package/dist/nodes/embeddings/EmbeddingsDatabricks/EmbeddingsDatabricks.node.d.ts +0 -5
  61. package/dist/nodes/embeddings/EmbeddingsDatabricks/EmbeddingsDatabricks.node.js +0 -155
  62. package/dist/nodes/embeddings/EmbeddingsDatabricks/EmbeddingsDatabricks.node.js.map +0 -1
  63. package/dist/nodes/embeddings/EmbeddingsDatabricks/databricks.dark.svg +0 -19
  64. package/dist/nodes/embeddings/EmbeddingsDatabricks/databricks.svg +0 -19
  65. package/dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.d.ts +0 -10
  66. package/dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.js +0 -265
  67. package/dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.js.map +0 -1
  68. package/dist/nodes/llms/LmChatDatabricks/databricks.dark.svg +0 -19
  69. package/dist/nodes/llms/LmChatDatabricks/databricks.svg +0 -19
  70. package/dist/nodes/llms/N8nLlmTracing.d.ts +0 -44
  71. package/dist/nodes/llms/N8nLlmTracing.js +0 -140
  72. package/dist/nodes/llms/N8nLlmTracing.js.map +0 -1
  73. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.d.ts +0 -1
  74. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js +0 -31
  75. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js.map +0 -1
  76. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.test.d.ts +0 -1
  77. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.test.js +0 -53
  78. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.test.js.map +0 -1
  79. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.d.ts +0 -3
  80. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js +0 -28
  81. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js.map +0 -1
  82. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.test.d.ts +0 -1
  83. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.test.js +0 -50
  84. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.test.js.map +0 -1
  85. package/dist/nodes/vector_store/VectorStoreDatabricks/VectorStoreDatabricks.node.d.ts +0 -15
  86. package/dist/nodes/vector_store/VectorStoreDatabricks/VectorStoreDatabricks.node.js +0 -98
  87. package/dist/nodes/vector_store/VectorStoreDatabricks/VectorStoreDatabricks.node.js.map +0 -1
  88. package/dist/nodes/vector_store/VectorStoreDatabricks/databricks.dark.svg +0 -19
  89. package/dist/nodes/vector_store/VectorStoreDatabricks/databricks.svg +0 -19
  90. package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.d.ts +0 -7
  91. package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js +0 -50
  92. package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js.map +0 -1
  93. package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.d.ts +0 -32
  94. package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js +0 -175
  95. package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js.map +0 -1
  96. package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.d.ts +0 -16
  97. package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js +0 -95
  98. package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js.map +0 -1
  99. package/dist/nodes/vector_store/shared/MemoryManager/config.d.ts +0 -4
  100. package/dist/nodes/vector_store/shared/MemoryManager/config.js +0 -38
  101. package/dist/nodes/vector_store/shared/MemoryManager/config.js.map +0 -1
  102. package/dist/nodes/vector_store/shared/MemoryManager/test/MemoryCalculator.test.d.ts +0 -1
  103. package/dist/nodes/vector_store/shared/MemoryManager/test/MemoryCalculator.test.js +0 -158
  104. package/dist/nodes/vector_store/shared/MemoryManager/test/MemoryCalculator.test.js.map +0 -1
  105. package/dist/nodes/vector_store/shared/MemoryManager/test/MemoryVectorStoreManager.test.d.ts +0 -1
  106. package/dist/nodes/vector_store/shared/MemoryManager/test/MemoryVectorStoreManager.test.js +0 -204
  107. package/dist/nodes/vector_store/shared/MemoryManager/test/MemoryVectorStoreManager.test.js.map +0 -1
  108. package/dist/nodes/vector_store/shared/MemoryManager/test/StoreCleanupService.test.d.ts +0 -1
  109. package/dist/nodes/vector_store/shared/MemoryManager/test/StoreCleanupService.test.js +0 -138
  110. package/dist/nodes/vector_store/shared/MemoryManager/test/StoreCleanupService.test.js.map +0 -1
  111. package/dist/nodes/vector_store/shared/MemoryManager/test/config.test.d.ts +0 -1
  112. package/dist/nodes/vector_store/shared/MemoryManager/test/config.test.js +0 -57
  113. package/dist/nodes/vector_store/shared/MemoryManager/test/config.test.js.map +0 -1
  114. package/dist/nodes/vector_store/shared/MemoryManager/types.d.ts +0 -39
  115. package/dist/nodes/vector_store/shared/MemoryManager/types.js +0 -3
  116. package/dist/nodes/vector_store/shared/MemoryManager/types.js.map +0 -1
  117. package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.d.ts +0 -1
  118. package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.js +0 -156
  119. package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.js.map +0 -1
  120. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +0 -4
  121. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +0 -45
  122. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +0 -1
  123. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +0 -15
  124. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +0 -227
  125. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +0 -1
  126. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.d.ts +0 -1
  127. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.js +0 -131
  128. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.js.map +0 -1
  129. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.d.ts +0 -7
  130. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js +0 -32
  131. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +0 -1
  132. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.d.ts +0 -1
  133. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.js +0 -190
  134. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.js.map +0 -1
  135. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.d.ts +0 -1
  136. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.js +0 -101
  137. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.js.map +0 -1
  138. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.d.ts +0 -1
  139. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.js +0 -93
  140. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.js.map +0 -1
  141. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.d.ts +0 -1
  142. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.js +0 -109
  143. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.js.map +0 -1
  144. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.d.ts +0 -1
  145. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.js +0 -60
  146. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.js.map +0 -1
  147. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.d.ts +0 -1
  148. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.js +0 -108
  149. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.js.map +0 -1
  150. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +0 -5
  151. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +0 -22
  152. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +0 -1
  153. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +0 -5
  154. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +0 -36
  155. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +0 -1
  156. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +0 -5
  157. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +0 -34
  158. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +0 -1
  159. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +0 -5
  160. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +0 -43
  161. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +0 -1
  162. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +0 -5
  163. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +0 -17
  164. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +0 -1
  165. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +0 -5
  166. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +0 -40
  167. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +0 -1
  168. package/dist/nodes/vector_store/shared/createVectorStoreNode/test-helpers.d.ts +0 -0
  169. package/dist/nodes/vector_store/shared/createVectorStoreNode/test-helpers.js +0 -2
  170. package/dist/nodes/vector_store/shared/createVectorStoreNode/test-helpers.js.map +0 -1
  171. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.d.ts +0 -31
  172. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +0 -3
  173. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +0 -1
  174. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +0 -6
  175. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +0 -22
  176. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +0 -1
  177. package/dist/nodes/vector_store/shared/descriptions.d.ts +0 -4
  178. package/dist/nodes/vector_store/shared/descriptions.js +0 -70
  179. package/dist/nodes/vector_store/shared/descriptions.js.map +0 -1
  180. package/dist/nodes/vector_store/shared/processDocuments.d.ts +0 -25
  181. package/dist/nodes/vector_store/shared/processDocuments.js +0 -42
  182. package/dist/nodes/vector_store/shared/processDocuments.js.map +0 -1
  183. package/dist/utils/DatabricksVectorStoreLangChain.d.ts +0 -26
  184. package/dist/utils/DatabricksVectorStoreLangChain.js +0 -116
  185. package/dist/utils/DatabricksVectorStoreLangChain.js.map +0 -1
  186. package/dist/utils/N8nBinaryLoader.d.ts +0 -18
  187. package/dist/utils/N8nBinaryLoader.js +0 -159
  188. package/dist/utils/N8nBinaryLoader.js.map +0 -1
  189. package/dist/utils/N8nJsonLoader.d.ts +0 -11
  190. package/dist/utils/N8nJsonLoader.js +0 -67
  191. package/dist/utils/N8nJsonLoader.js.map +0 -1
  192. package/dist/utils/N8nTool.d.ts +0 -10
  193. package/dist/utils/N8nTool.js +0 -88
  194. package/dist/utils/N8nTool.js.map +0 -1
  195. package/dist/utils/descriptions.d.ts +0 -13
  196. package/dist/utils/descriptions.js +0 -112
  197. package/dist/utils/descriptions.js.map +0 -1
  198. package/dist/utils/helpers.d.ts +0 -23
  199. package/dist/utils/helpers.js +0 -172
  200. package/dist/utils/helpers.js.map +0 -1
  201. package/dist/utils/logWrapper.d.ts +0 -27
  202. package/dist/utils/logWrapper.js +0 -297
  203. package/dist/utils/logWrapper.js.map +0 -1
  204. package/dist/utils/output_parsers/N8nItemListOutputParser.d.ts +0 -13
  205. package/dist/utils/output_parsers/N8nItemListOutputParser.js +0 -43
  206. package/dist/utils/output_parsers/N8nItemListOutputParser.js.map +0 -1
  207. package/dist/utils/output_parsers/N8nOutputFixingParser.d.ts +0 -18
  208. package/dist/utils/output_parsers/N8nOutputFixingParser.js +0 -68
  209. package/dist/utils/output_parsers/N8nOutputFixingParser.js.map +0 -1
  210. package/dist/utils/output_parsers/N8nOutputParser.d.ts +0 -7
  211. package/dist/utils/output_parsers/N8nOutputParser.js +0 -19
  212. package/dist/utils/output_parsers/N8nOutputParser.js.map +0 -1
  213. package/dist/utils/output_parsers/N8nStructuredOutputParser.d.ts +0 -12
  214. package/dist/utils/output_parsers/N8nStructuredOutputParser.js +0 -84
  215. package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +0 -1
  216. package/dist/utils/output_parsers/prompt.d.ts +0 -3
  217. package/dist/utils/output_parsers/prompt.js +0 -22
  218. package/dist/utils/output_parsers/prompt.js.map +0 -1
  219. package/dist/utils/schemaParsing.d.ts +0 -6
  220. package/dist/utils/schemaParsing.js +0 -23
  221. package/dist/utils/schemaParsing.js.map +0 -1
  222. package/dist/utils/sharedFields.d.ts +0 -6
  223. package/dist/utils/sharedFields.js +0 -122
  224. package/dist/utils/sharedFields.js.map +0 -1
  225. package/dist/utils/tracing.d.ts +0 -7
  226. package/dist/utils/tracing.js +0 -20
  227. package/dist/utils/tracing.js.map +0 -1
@@ -1,150 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RateLimiter = void 0;
4
- exports.validateExperimentName = validateExperimentName;
5
- exports.validateDatabricksHost = validateDatabricksHost;
6
- exports.sanitizeExperimentId = sanitizeExperimentId;
7
- exports.validateApiResponse = validateApiResponse;
8
- const constants_1 = require("../constants");
9
- function validateExperimentName(experimentName) {
10
- if (!experimentName || experimentName.trim().length === 0) {
11
- return {
12
- isValid: false,
13
- error: 'Experiment name cannot be empty',
14
- };
15
- }
16
- if (experimentName.length > constants_1.SECURITY_PATTERNS.MAX_EXPERIMENT_NAME_LENGTH) {
17
- return {
18
- isValid: false,
19
- error: `Experiment name too long. Maximum ${constants_1.SECURITY_PATTERNS.MAX_EXPERIMENT_NAME_LENGTH} characters allowed`,
20
- };
21
- }
22
- if (constants_1.SECURITY_PATTERNS.PATH_TRAVERSAL.test(experimentName)) {
23
- return {
24
- isValid: false,
25
- error: 'Experiment name contains path traversal patterns (e.g., "..", "../"). ' +
26
- 'Please use only alphanumeric characters, spaces, hyphens, underscores, and forward slashes.',
27
- };
28
- }
29
- if (!constants_1.SECURITY_PATTERNS.SAFE_EXPERIMENT_NAME.test(experimentName)) {
30
- return {
31
- isValid: false,
32
- error: 'Experiment name contains invalid characters. ' +
33
- 'Allowed characters: letters, numbers, spaces, hyphens (-), underscores (_), and forward slashes (/).',
34
- };
35
- }
36
- const sanitized = experimentName
37
- .trim()
38
- .replace(/\/+/g, '/')
39
- .replace(/^\/|\/$/g, '');
40
- return {
41
- isValid: true,
42
- sanitized,
43
- };
44
- }
45
- function validateDatabricksHost(host) {
46
- if (!host || host.trim().length === 0) {
47
- return {
48
- isValid: false,
49
- error: 'Host URL cannot be empty',
50
- };
51
- }
52
- if (host.length > constants_1.SECURITY_PATTERNS.MAX_HOST_LENGTH) {
53
- return {
54
- isValid: false,
55
- error: `Host URL too long. Maximum ${constants_1.SECURITY_PATTERNS.MAX_HOST_LENGTH} characters allowed`,
56
- };
57
- }
58
- const trimmedHost = host.trim();
59
- if (!constants_1.SECURITY_PATTERNS.VALID_DATABRICKS_HOST.test(trimmedHost)) {
60
- return {
61
- isValid: false,
62
- error: 'Host URL is not a valid Databricks workspace URL. ' +
63
- 'Expected format: https://adb-xxxxx.xx.azuredatabricks.net or ' +
64
- 'https://xxxxx.cloud.databricks.com',
65
- };
66
- }
67
- try {
68
- const url = new URL(trimmedHost);
69
- const hostname = url.hostname;
70
- if (constants_1.SECURITY_PATTERNS.PRIVATE_IP.test(hostname)) {
71
- if (hostname === 'localhost' || hostname === '127.0.0.1') {
72
- return {
73
- isValid: true,
74
- sanitized: trimmedHost,
75
- };
76
- }
77
- return {
78
- isValid: false,
79
- error: 'Host URL resolves to a private IP address. ' +
80
- 'This may indicate an SSRF attack attempt.',
81
- };
82
- }
83
- }
84
- catch (error) {
85
- return {
86
- isValid: false,
87
- error: 'Host URL is not a valid URL',
88
- };
89
- }
90
- return {
91
- isValid: true,
92
- sanitized: trimmedHost,
93
- };
94
- }
95
- function sanitizeExperimentId(experimentId) {
96
- if (!/^\d+$/.test(experimentId)) {
97
- return null;
98
- }
99
- if (experimentId.length > 20) {
100
- return null;
101
- }
102
- return experimentId;
103
- }
104
- function validateApiResponse(response, expectedFields) {
105
- if (!response || typeof response !== 'object') {
106
- return {
107
- isValid: false,
108
- error: 'API response is not an object',
109
- };
110
- }
111
- for (const field of expectedFields) {
112
- if (!(field in response)) {
113
- return {
114
- isValid: false,
115
- error: `API response missing required field: ${field}`,
116
- };
117
- }
118
- }
119
- return {
120
- isValid: true,
121
- };
122
- }
123
- class RateLimiter {
124
- constructor(maxRequests = 100, windowMs = 60000) {
125
- this.requests = [];
126
- this.maxRequests = maxRequests;
127
- this.windowMs = windowMs;
128
- }
129
- isAllowed() {
130
- const now = Date.now();
131
- const windowStart = now - this.windowMs;
132
- this.requests = this.requests.filter((timestamp) => timestamp > windowStart);
133
- if (this.requests.length >= this.maxRequests) {
134
- return false;
135
- }
136
- this.requests.push(now);
137
- return true;
138
- }
139
- getRemaining() {
140
- const now = Date.now();
141
- const windowStart = now - this.windowMs;
142
- const recentRequests = this.requests.filter((timestamp) => timestamp > windowStart);
143
- return Math.max(0, this.maxRequests - recentRequests.length);
144
- }
145
- reset() {
146
- this.requests = [];
147
- }
148
- }
149
- exports.RateLimiter = RateLimiter;
150
- //# sourceMappingURL=security.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"security.js","sourceRoot":"","sources":["../../../../../../nodes/agents/DatabricksAiAgent/src/utils/security.ts"],"names":[],"mappings":";;;AA6BA,wDA+CC;AAcD,wDAgEC;AAiBD,oDAYC;AAiBD,kDAyBC;AA3ND,4CAAiD;AAuBjD,SAAgB,sBAAsB,CAAC,cAAsB;IAE5D,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3D,OAAO;YACN,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,iCAAiC;SACxC,CAAC;IACH,CAAC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,GAAG,WAAW,CAAC,CAAC;QACpF,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAKM,KAAK;QACX,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACpB,CAAC;CACD;AAtDD,kCAsDC"}
@@ -1,7 +0,0 @@
1
- import type { IDisplayOptions, INodeProperties } from 'n8n-workflow';
2
- export declare const metadataFilterField: INodeProperties;
3
- export declare function getTemplateNoticeField(templateId: number): INodeProperties;
4
- export declare function getBatchingOptionFields(displayOptions: IDisplayOptions | undefined, defaultBatchSize?: number): INodeProperties;
5
- type AllowedConnectionTypes = 'ai_agent' | 'ai_chain' | 'ai_document' | 'ai_vectorStore' | 'ai_retriever';
6
- export declare function getConnectionHintNoticeField(connectionTypes: AllowedConnectionTypes[]): INodeProperties;
7
- export {};
@@ -1,150 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.metadataFilterField = void 0;
4
- exports.getTemplateNoticeField = getTemplateNoticeField;
5
- exports.getBatchingOptionFields = getBatchingOptionFields;
6
- exports.getConnectionHintNoticeField = getConnectionHintNoticeField;
7
- exports.metadataFilterField = {
8
- displayName: 'Metadata Filter',
9
- name: 'metadata',
10
- type: 'fixedCollection',
11
- description: 'Metadata to filter the document by',
12
- typeOptions: {
13
- multipleValues: true,
14
- },
15
- default: {},
16
- placeholder: 'Add filter field',
17
- options: [
18
- {
19
- name: 'metadataValues',
20
- displayName: 'Fields to Set',
21
- values: [
22
- {
23
- displayName: 'Name',
24
- name: 'name',
25
- type: 'string',
26
- default: '',
27
- required: true,
28
- },
29
- {
30
- displayName: 'Value',
31
- name: 'value',
32
- type: 'string',
33
- default: '',
34
- },
35
- ],
36
- },
37
- ],
38
- };
39
- function getTemplateNoticeField(templateId) {
40
- return {
41
- displayName: `Save time with an <a href="/templates/${templateId}" target="_blank">example</a> of how this node works`,
42
- name: 'notice',
43
- type: 'notice',
44
- default: '',
45
- };
46
- }
47
- function getBatchingOptionFields(displayOptions, defaultBatchSize = 5) {
48
- return {
49
- displayName: 'Batch Processing',
50
- name: 'batching',
51
- type: 'collection',
52
- placeholder: 'Add Batch Processing Option',
53
- description: 'Batch processing options for rate limiting',
54
- default: {},
55
- options: [
56
- {
57
- displayName: 'Batch Size',
58
- name: 'batchSize',
59
- default: defaultBatchSize,
60
- type: 'number',
61
- description: 'How many items to process in parallel. This is useful for rate limiting, but might impact the log output ordering.',
62
- },
63
- {
64
- displayName: 'Delay Between Batches',
65
- name: 'delayBetweenBatches',
66
- default: 0,
67
- type: 'number',
68
- description: 'Delay in milliseconds between batches. This is useful for rate limiting.',
69
- },
70
- ],
71
- displayOptions,
72
- };
73
- }
74
- const connectionsString = {
75
- ['ai_agent']: {
76
- connection: '',
77
- locale: 'AI Agent',
78
- },
79
- ['ai_chain']: {
80
- connection: '',
81
- locale: 'AI Chain',
82
- },
83
- ['ai_document']: {
84
- connection: 'ai_document',
85
- locale: 'Document Loader',
86
- },
87
- ['ai_vectorStore']: {
88
- connection: 'ai_vectorStore',
89
- locale: 'Vector Store',
90
- },
91
- ['ai_retriever']: {
92
- connection: 'ai_retriever',
93
- locale: 'Vector Store Retriever',
94
- },
95
- };
96
- function determineArticle(nextWord) {
97
- const vowels = /^[aeiouAEIOU]/;
98
- return vowels.test(nextWord) ? 'an' : 'a';
99
- }
100
- const getConnectionParameterString = (connectionType) => {
101
- if (connectionType === '')
102
- return "data-action-parameter-creatorview='AI'";
103
- return `data-action-parameter-connectiontype='${connectionType}'`;
104
- };
105
- const getAhref = (connectionType) => `<a class="test" data-action='openSelectiveNodeCreator'${getConnectionParameterString(connectionType.connection)}'>${connectionType.locale}</a>`;
106
- function getConnectionHintNoticeField(connectionTypes) {
107
- const groupedConnections = new Map();
108
- connectionTypes.forEach((connectionType) => {
109
- var _a;
110
- const connectionString = connectionsString[connectionType].connection;
111
- const localeString = connectionsString[connectionType].locale;
112
- if (!groupedConnections.has(connectionString)) {
113
- groupedConnections.set(connectionString, [localeString]);
114
- return;
115
- }
116
- (_a = groupedConnections.get(connectionString)) === null || _a === void 0 ? void 0 : _a.push(localeString);
117
- });
118
- let displayName;
119
- if (groupedConnections.size === 1) {
120
- const [[connection, locales]] = Array.from(groupedConnections);
121
- const locale = locales[0] || '';
122
- displayName = `This node must be connected to ${determineArticle(locale)} ${locale
123
- .toLowerCase()
124
- .replace(/^ai /, 'AI ')}. <a data-action='openSelectiveNodeCreator' ${getConnectionParameterString(connection)}>Insert one</a>`;
125
- }
126
- else {
127
- const ahrefs = Array.from(groupedConnections, ([connection, locales]) => {
128
- const locale = locales.length > 1
129
- ? locales
130
- .map((localeString, index, { length }) => {
131
- return ((index === 0 ? `${determineArticle(localeString)} ` : '') +
132
- (index < length - 1 ? `${localeString} or ` : localeString));
133
- })
134
- .join('')
135
- : `${determineArticle(locales[0])} ${locales[0]}`;
136
- return getAhref({ connection, locale });
137
- });
138
- displayName = `This node needs to be connected to ${ahrefs.join(' or ')}.`;
139
- }
140
- return {
141
- displayName,
142
- name: 'notice',
143
- type: 'notice',
144
- default: '',
145
- typeOptions: {
146
- containerClass: 'ndv-connection-hint-notice',
147
- },
148
- };
149
- }
150
- //# sourceMappingURL=sharedFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedFields.js","sourceRoot":"","sources":["../../../../../../nodes/agents/DatabricksAiAgent/src/utils/sharedFields.ts"],"names":[],"mappings":";;;AAmCA,wDAOC;AAED,0DA8BC;AAiDD,oEA+DC;AAxLY,QAAA,mBAAmB,GAAoB;IAChD,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,oCAAoC;IACjD,WAAW,EAAE;QACT,cAAc,EAAE,IAAI;KACvB;IACD,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,kBAAkB;IAC/B,OAAO,EAAE;QACL;YACI,IAAI,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IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1D,OAAO,QAAQ,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,WAAW,GAAG,sCAAsC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;IAC/E,CAAC;IAED,OAAO;QACH,WAAW;QACX,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACT,cAAc,EAAE,4BAA4B;SAC/C;KACJ,CAAC;AACN,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type INodeInputConfiguration, type NodeConnectionType } from 'n8n-workflow';
2
- export declare function getInputs(hasMainInput?: boolean, hasOutputParser?: boolean, needsFallback?: boolean): Array<NodeConnectionType | INodeInputConfiguration>;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getInputs = getInputs;
4
- function getInputs(hasMainInput, hasOutputParser, needsFallback) {
5
- const getInputData = (inputs) => {
6
- return inputs.map(({ type, filter, displayName, required }) => {
7
- const input = {
8
- type,
9
- displayName,
10
- required,
11
- maxConnections: ['ai_languageModel', 'ai_memory', 'ai_outputParser'].includes(type)
12
- ? 1
13
- : undefined,
14
- };
15
- if (filter) {
16
- input.filter = filter;
17
- }
18
- return input;
19
- });
20
- };
21
- let specialInputs = [
22
- {
23
- type: 'ai_languageModel',
24
- displayName: 'Chat Model',
25
- },
26
- {
27
- type: 'ai_languageModel',
28
- displayName: 'Fallback Model',
29
- },
30
- {
31
- displayName: 'Memory',
32
- type: 'ai_memory',
33
- },
34
- {
35
- displayName: 'Tool',
36
- type: 'ai_tool',
37
- },
38
- {
39
- displayName: 'Output Parser',
40
- type: 'ai_outputParser',
41
- },
42
- ];
43
- if (hasOutputParser !== true) {
44
- specialInputs = specialInputs.filter((input) => input.type !== 'ai_outputParser');
45
- }
46
- if (needsFallback !== true) {
47
- specialInputs = specialInputs.filter((input) => input.displayName !== 'Fallback Model');
48
- }
49
- const mainInputs = hasMainInput ? ['main'] : [];
50
- return [...mainInputs, ...getInputData(specialInputs)];
51
- }
52
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../nodes/agents/DatabricksAiAgent/utils.ts"],"names":[],"mappings":";;AASA,8BAmEC;AAnED,SAAgB,SAAS,CACrB,YAAsB,EACtB,eAAyB,EACzB,aAAuB;IASvB,MAAM,YAAY,GAAG,CACjB,MAAsB,EAC6B,EAAE;QACrD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC1D,MAAM,KAAK,GAA4B;gBACnC,IAAI;gBACJ,WAAW;gBACX,QAAQ;gBACR,cAAc,EAAE,CAAC,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAC/E,CAAC,CAAC,CAAC;oBACH,CAAC,CAAC,SAAS;aAClB,CAAC;YAEF,IAAI,MAAM,EAAE,CAAC;gBACT,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;YAC1B,CAAC;YAED,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,IAAI,aAAa,GAAmB;QAChC;YACI,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,YAAY;SAC5B;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,gBAAgB;SAChC;QACD;YACI,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,WAAW;SACpB;QACD;YACI,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,SAAS;SAClB;QACD;YACI,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,iBAAiB;SAC1B;KACJ,CAAC;IAEF,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;QAC3B,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,iBAAiB,CAAC,CAAC;IACtF,CAAC;IACD,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;QACzB,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,gBAAgB,CAAC,CAAC;IAC5F,CAAC;IAID,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,MAA4B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3D,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type INodeType, type INodeTypeDescription, type ISupplyDataFunctions, type SupplyData } from 'n8n-workflow';
2
- export declare class EmbeddingsDatabricks implements INodeType {
3
- description: INodeTypeDescription;
4
- supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
5
- }
@@ -1,155 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbeddingsDatabricks = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- const embeddings_1 = require("@langchain/core/embeddings");
6
- const logWrapper_1 = require("../../../utils/logWrapper");
7
- const sharedFields_1 = require("../../../utils/sharedFields");
8
- class DatabricksEmbeddings extends embeddings_1.Embeddings {
9
- constructor(fields) {
10
- super({});
11
- this.apiKey = fields.apiKey;
12
- this.host = fields.host;
13
- this.endpoint = fields.endpoint;
14
- }
15
- async embedDocuments(texts) {
16
- const response = await fetch(`${this.host}/serving-endpoints/${this.endpoint}/invocations`, {
17
- method: 'POST',
18
- headers: {
19
- 'Authorization': `Bearer ${this.apiKey}`,
20
- 'Content-Type': 'application/json',
21
- },
22
- body: JSON.stringify({
23
- input: texts,
24
- }),
25
- });
26
- if (!response.ok) {
27
- const error = await response.text();
28
- throw new Error(`Databricks API error (${response.status}): ${error}`);
29
- }
30
- const result = await response.json();
31
- if (Array.isArray(result.data)) {
32
- return result.data.map((item) => item.embedding);
33
- }
34
- if (Array.isArray(result.predictions)) {
35
- return result.predictions;
36
- }
37
- throw new Error('Unexpected Databricks embeddings API response format.');
38
- }
39
- async embedQuery(text) {
40
- const embeddings = await this.embedDocuments([text]);
41
- if (!embeddings || !embeddings[0]) {
42
- throw new Error('No embedding returned from Databricks API. Check your endpoint and input.');
43
- }
44
- return embeddings[0];
45
- }
46
- }
47
- class EmbeddingsDatabricks {
48
- constructor() {
49
- this.description = {
50
- displayName: 'Embeddings Databricks',
51
- name: 'embeddingsDatabricks',
52
- icon: { light: 'file:databricks.svg', dark: 'file:databricks.dark.svg' },
53
- group: ['transform'],
54
- version: 1,
55
- description: 'Use Embeddings Databricks',
56
- defaults: {
57
- name: 'Embeddings Databricks',
58
- },
59
- credentials: [
60
- {
61
- name: 'databricks',
62
- required: true,
63
- },
64
- ],
65
- requestDefaults: {
66
- baseURL: '={{$credentials.host}}',
67
- headers: {
68
- Authorization: '=Bearer {{$credentials.token}}',
69
- },
70
- },
71
- codex: {
72
- categories: ['AI'],
73
- subcategories: {
74
- AI: ['Embeddings'],
75
- },
76
- resources: {
77
- primaryDocumentation: [
78
- {
79
- url: 'https://docs.databricks.com/aws/en/generative-ai/create-query-vector-search',
80
- },
81
- ],
82
- },
83
- },
84
- inputs: [],
85
- outputs: [n8n_workflow_1.NodeConnectionTypes.AiEmbedding],
86
- outputNames: ['Embeddings'],
87
- properties: [
88
- (0, sharedFields_1.getConnectionHintNoticeField)([n8n_workflow_1.NodeConnectionTypes.AiVectorStore]),
89
- {
90
- displayName: 'Make sure the vector store and embedding model have the same dimensionality.',
91
- name: 'notice',
92
- type: 'notice',
93
- default: '',
94
- },
95
- {
96
- displayName: 'Serving Endpoint',
97
- name: 'servingEndpoint',
98
- type: 'options',
99
- typeOptions: {
100
- loadOptions: {
101
- routing: {
102
- request: {
103
- method: 'GET',
104
- url: '/api/2.0/serving-endpoints',
105
- },
106
- output: {
107
- postReceive: [
108
- {
109
- type: 'rootProperty',
110
- properties: {
111
- property: 'endpoints',
112
- },
113
- },
114
- {
115
- type: 'setKeyValue',
116
- properties: {
117
- name: '={{$responseItem.name}}',
118
- value: '={{$responseItem.name}}',
119
- description: '={{($responseItem.config.served_entities || []).map(entity => entity.external_model?.name || entity.foundation_model?.name).filter(Boolean).join(", ")}}',
120
- },
121
- },
122
- {
123
- type: 'sort',
124
- properties: {
125
- key: 'name',
126
- },
127
- },
128
- ],
129
- },
130
- },
131
- },
132
- },
133
- default: '',
134
- required: true,
135
- description: 'Name of the embeddings serving endpoint',
136
- },
137
- ],
138
- };
139
- }
140
- async supplyData(itemIndex) {
141
- this.logger.debug('Supply data for embeddings Databricks');
142
- const servingEndpoint = this.getNodeParameter('servingEndpoint', itemIndex);
143
- const credentials = await this.getCredentials('databricks');
144
- const embeddings = new DatabricksEmbeddings({
145
- apiKey: credentials.token,
146
- host: credentials.host,
147
- endpoint: servingEndpoint,
148
- });
149
- return {
150
- response: (0, logWrapper_1.logWrapper)(embeddings, this),
151
- };
152
- }
153
- }
154
- exports.EmbeddingsDatabricks = EmbeddingsDatabricks;
155
- //# sourceMappingURL=EmbeddingsDatabricks.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbeddingsDatabricks.node.js","sourceRoot":"","sources":["../../../../nodes/embeddings/EmbeddingsDatabricks/EmbeddingsDatabricks.node.ts"],"names":[],"mappings":";;;AACA,+CAMsB;AACtB,2DAAwD;AAExD,kDAA+C;AAC/C,sDAAmE;AAEnE,MAAM,oBAAqB,SAAQ,uBAAU;IAK5C,YAAY,MAIX;QACA,KAAK,CAAC,EAAE,CAAC,CAAC;QACV,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,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+0,0 @@
1
- <svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40.1 42" style="enable-background:new 0 0 40.1 42;" xml:space="preserve">
2
- <style type="text/css">
3
- .st0{fill:#FF3621;}
4
- </style>
5
- <metadata>
6
- <sfw xmlns="ns_sfw;">
7
- <slices>
8
- </slices>
9
- <sliceSourceBounds bottomLeftOrigin="true" height="42" width="40.1" x="-69.1" y="-10.5">
10
- </sliceSourceBounds>
11
- </sfw>
12
- </metadata>
13
- <g>
14
- <path class="st0" d="M40.1,31.1v-7.4l-0.8-0.5L20.1,33.7l-18.2-10l0-4.3l18.2,9.9l20.1-10.9v-7.3l-0.8-0.5L20.1,21.2L2.6,11.6
15
- L20.1,2l14.1,7.7l1.1-0.6V8.3L20.1,0L0,10.9V12L20.1,23l18.2-10v4.4l-18.2,10L0.8,16.8L0,17.3v7.4l20.1,10.9l18.2-9.9v4.3l-18.2,10
16
- L0.8,29.5L0,30v1.1L20.1,42L40.1,31.1z">
17
- </path>
18
- </g>
19
- </svg>
@@ -1,19 +0,0 @@
1
- <svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40.1 42" style="enable-background:new 0 0 40.1 42;" xml:space="preserve">
2
- <style type="text/css">
3
- .st0{fill:#FF3621;}
4
- </style>
5
- <metadata>
6
- <sfw xmlns="ns_sfw;">
7
- <slices>
8
- </slices>
9
- <sliceSourceBounds bottomLeftOrigin="true" height="42" width="40.1" x="-69.1" y="-10.5">
10
- </sliceSourceBounds>
11
- </sfw>
12
- </metadata>
13
- <g>
14
- <path class="st0" d="M40.1,31.1v-7.4l-0.8-0.5L20.1,33.7l-18.2-10l0-4.3l18.2,9.9l20.1-10.9v-7.3l-0.8-0.5L20.1,21.2L2.6,11.6
15
- L20.1,2l14.1,7.7l1.1-0.6V8.3L20.1,0L0,10.9V12L20.1,23l18.2-10v4.4l-18.2,10L0.8,16.8L0,17.3v7.4l20.1,10.9l18.2-9.9v4.3l-18.2,10
16
- L0.8,29.5L0,30v1.1L20.1,42L40.1,31.1z">
17
- </path>
18
- </g>
19
- </svg>
@@ -1,10 +0,0 @@
1
- import { type INodeType, type INodeTypeDescription, type ISupplyDataFunctions, type SupplyData, type ILoadOptionsFunctions, type INodeListSearchResult } from 'n8n-workflow';
2
- export declare class LmChatDatabricks implements INodeType {
3
- description: INodeTypeDescription;
4
- methods: {
5
- listSearch: {
6
- getModels(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
7
- };
8
- };
9
- supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
10
- }