@n8n/n8n-nodes-langchain 2.22.0 → 2.22.2

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 (54) hide show
  1. package/dist/node-definitions/.nodes-hash +1 -1
  2. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +7 -2
  3. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
  4. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js +7 -2
  5. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js.map +1 -1
  6. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js +7 -2
  7. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js.map +1 -1
  8. package/dist/nodes/mcp/McpClient/McpClient.node.js +3 -6
  9. package/dist/nodes/mcp/McpClient/McpClient.node.js.map +1 -1
  10. package/dist/nodes/mcp/McpClient/listSearch.js +3 -6
  11. package/dist/nodes/mcp/McpClient/listSearch.js.map +1 -1
  12. package/dist/nodes/mcp/McpClient/resourceMapping.js +3 -6
  13. package/dist/nodes/mcp/McpClient/resourceMapping.js.map +1 -1
  14. package/dist/nodes/mcp/shared/runtime.js +6 -13
  15. package/dist/nodes/mcp/shared/runtime.js.map +1 -1
  16. package/dist/nodes/mcp/shared/utils.d.ts +10 -2
  17. package/dist/nodes/mcp/shared/utils.js +54 -16
  18. package/dist/nodes/mcp/shared/utils.js.map +1 -1
  19. package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js +7 -1
  20. package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js.map +1 -1
  21. package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.d.ts +1 -1
  22. package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js +6 -0
  23. package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js.map +1 -1
  24. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js +5 -0
  25. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js.map +1 -1
  26. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js +5 -0
  27. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js.map +1 -1
  28. package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js +7 -1
  29. package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js.map +1 -1
  30. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js +5 -0
  31. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js.map +1 -1
  32. package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js +5 -0
  33. package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js.map +1 -1
  34. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js +7 -2
  35. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js.map +1 -1
  36. package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js +5 -0
  37. package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js.map +1 -1
  38. package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js +5 -0
  39. package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js.map +1 -1
  40. package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js +5 -0
  41. package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js.map +1 -1
  42. package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js +5 -0
  43. package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js.map +1 -1
  44. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js +5 -0
  45. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js.map +1 -1
  46. package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js +6 -0
  47. package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js.map +1 -1
  48. package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js +5 -0
  49. package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js.map +1 -1
  50. package/dist/typecheck.tsbuildinfo +1 -1
  51. package/package.json +11 -11
  52. package/dist/utils/checkDomainRestrictions.d.ts +0 -2
  53. package/dist/utils/checkDomainRestrictions.js +0 -24
  54. package/dist/utils/checkDomainRestrictions.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/n8n-nodes-langchain",
3
- "version": "2.22.0",
3
+ "version": "2.22.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "files": [
27
27
  "dist",
28
- "LICENSE_EE.md",
29
- "LICENSE.md"
28
+ "LICENSE.md",
29
+ "LICENSE_EE.md"
30
30
  ],
31
31
  "n8n": {
32
32
  "n8nNodesApiVersion": 1,
@@ -206,7 +206,7 @@
206
206
  "vitest": "^4.1.1",
207
207
  "vitest-mock-extended": "^3.1.0",
208
208
  "@n8n/eslint-plugin-community-nodes": "0.17.0",
209
- "n8n-core": "2.22.0",
209
+ "n8n-core": "2.22.2",
210
210
  "@n8n/vitest-config": "1.11.0"
211
211
  },
212
212
  "dependencies": {
@@ -282,15 +282,15 @@
282
282
  "weaviate-client": "3.9.0",
283
283
  "zod": "3.25.67",
284
284
  "zod-to-json-schema": "3.23.3",
285
- "@n8n/di": "0.12.0",
286
- "@n8n/ai-utilities": "0.16.0",
287
- "@n8n/config": "2.21.0",
285
+ "@n8n/ai-utilities": "0.16.1",
288
286
  "@n8n/client-oauth2": "1.6.0",
289
- "@n8n/errors": "0.8.0",
287
+ "@n8n/config": "2.21.0",
288
+ "@n8n/di": "0.12.0",
289
+ "@n8n/json-schema-to-zod": "1.9.0",
290
290
  "@n8n/typescript-config": "1.4.0",
291
- "n8n-workflow": "2.22.0",
292
- "n8n-nodes-base": "2.22.0",
293
- "@n8n/json-schema-to-zod": "1.9.0"
291
+ "n8n-workflow": "2.22.1",
292
+ "n8n-nodes-base": "2.22.1",
293
+ "@n8n/errors": "0.8.0"
294
294
  },
295
295
  "license": "SEE LICENSE IN LICENSE.md",
296
296
  "homepage": "https://n8n.io",
@@ -1,2 +0,0 @@
1
- import type { ICredentialDataDecryptedObject, ISupplyDataFunctions, IExecuteFunctions } from 'n8n-workflow';
2
- export declare const checkDomainRestrictions: (ctx: ISupplyDataFunctions | IExecuteFunctions, credentials: ICredentialDataDecryptedObject, url: string, credentialsUrlKey?: string) => void;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkDomainRestrictions = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- const checkDomainRestrictions = (ctx, credentials, url, credentialsUrlKey = 'url') => {
6
- const allowedDomainsType = credentials.allowedHttpRequestDomains;
7
- const restrictedMessage = `Domain not allowed: This credential is restricted from accessing ${url}. `;
8
- if (allowedDomainsType === 'domains') {
9
- const allowedDomains = credentials.allowedDomains;
10
- if (!allowedDomains || allowedDomains.trim() === '') {
11
- throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), 'No allowed domains specified. Configure allowed domains or change restriction setting.');
12
- }
13
- if (!(0, n8n_workflow_1.isDomainAllowed)(url, { allowedDomains })) {
14
- throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), restrictedMessage + `Only the following domains are allowed: ${allowedDomains}`);
15
- }
16
- }
17
- if (allowedDomainsType === 'none' && credentials[credentialsUrlKey]) {
18
- if (url !== credentials[credentialsUrlKey]) {
19
- throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), restrictedMessage);
20
- }
21
- }
22
- };
23
- exports.checkDomainRestrictions = checkDomainRestrictions;
24
- //# sourceMappingURL=checkDomainRestrictions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkDomainRestrictions.js","sourceRoot":"","sources":["../../utils/checkDomainRestrictions.ts"],"names":[],"mappings":";;;AAKA,+CAAmE;AAW5D,MAAM,uBAAuB,GAAG,CACtC,GAA6C,EAC7C,WAA2C,EAC3C,GAAW,EACX,oBAA4B,KAAK,EAC1B,EAAE;IACT,MAAM,kBAAkB,GAAG,WAAW,CAAC,yBAAyB,CAAC;IACjE,MAAM,iBAAiB,GAAG,oEAAoE,GAAG,IAAI,CAAC;IACtG,IAAI,kBAAkB,KAAK,SAAS,EAAE,CAAC;QACtC,MAAM,cAAc,GAAG,WAAW,CAAC,cAAwB,CAAC;QAE5D,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YACrD,MAAM,IAAI,iCAAkB,CAC3B,GAAG,CAAC,OAAO,EAAE,EACb,wFAAwF,CACxF,CAAC;QACH,CAAC;QAED,IAAI,CAAC,IAAA,8BAAe,EAAC,GAAG,EAAE,EAAE,cAAc,EAAE,CAAC,EAAE,CAAC;YAC/C,MAAM,IAAI,iCAAkB,CAC3B,GAAG,CAAC,OAAO,EAAE,EACb,iBAAiB,GAAG,2CAA2C,cAAc,EAAE,CAC/E,CAAC;QACH,CAAC;IACF,CAAC;IACD,IAAI,kBAAkB,KAAK,MAAM,IAAI,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACrE,IAAI,GAAG,KAAK,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,iCAAkB,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;QAChE,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AA9BW,QAAA,uBAAuB,2BA8BlC"}