@n8n/n8n-nodes-langchain 2.11.2 → 2.12.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.
Files changed (49) hide show
  1. package/dist/credentials/ChatHubVectorStorePGVectorApi.credentials.d.ts +8 -0
  2. package/dist/credentials/ChatHubVectorStorePGVectorApi.credentials.js +22 -0
  3. package/dist/credentials/ChatHubVectorStorePGVectorApi.credentials.js.map +1 -0
  4. package/dist/credentials/ChatHubVectorStorePineconeApi.credentials.d.ts +8 -0
  5. package/dist/credentials/ChatHubVectorStorePineconeApi.credentials.js +30 -0
  6. package/dist/credentials/ChatHubVectorStorePineconeApi.credentials.js.map +1 -0
  7. package/dist/credentials/ChatHubVectorStoreQdrantApi.credentials.d.ts +8 -0
  8. package/dist/credentials/ChatHubVectorStoreQdrantApi.credentials.js +22 -0
  9. package/dist/credentials/ChatHubVectorStoreQdrantApi.credentials.js.map +1 -0
  10. package/dist/known/credentials.json +30 -0
  11. package/dist/known/nodes.json +12 -0
  12. package/dist/node-definitions/.nodes-hash +1 -1
  13. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/index.ts +3 -1
  14. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/v13.schema.js +38 -0
  15. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/v13.ts +303 -0
  16. package/dist/nodes/tools/ToolCode/ToolCode.node.js +4 -21
  17. package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
  18. package/dist/nodes/trigger/ChatTrigger/Chat.node.js +4 -2
  19. package/dist/nodes/trigger/ChatTrigger/Chat.node.js.map +1 -1
  20. package/dist/nodes/vector_store/ChatHubVectorStorePGVector/ChatHubVectorStorePGVector.node.d.ts +20 -0
  21. package/dist/nodes/vector_store/ChatHubVectorStorePGVector/ChatHubVectorStorePGVector.node.js +132 -0
  22. package/dist/nodes/vector_store/ChatHubVectorStorePGVector/ChatHubVectorStorePGVector.node.js.map +1 -0
  23. package/dist/nodes/vector_store/ChatHubVectorStorePinecone/ChatHubVectorStorePinecone.node.d.ts +20 -0
  24. package/dist/nodes/vector_store/ChatHubVectorStorePinecone/ChatHubVectorStorePinecone.node.js +97 -0
  25. package/dist/nodes/vector_store/ChatHubVectorStorePinecone/ChatHubVectorStorePinecone.node.js.map +1 -0
  26. package/dist/nodes/vector_store/ChatHubVectorStoreQdrant/ChatHubVectorStoreQdrant.node.d.ts +20 -0
  27. package/dist/nodes/vector_store/ChatHubVectorStoreQdrant/ChatHubVectorStoreQdrant.node.js +103 -0
  28. package/dist/nodes/vector_store/ChatHubVectorStoreQdrant/ChatHubVectorStoreQdrant.node.js.map +1 -0
  29. package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.d.ts +3 -0
  30. package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.d.ts +3 -0
  31. package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.d.ts +3 -0
  32. package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.d.ts +3 -0
  33. package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.d.ts +3 -0
  34. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.d.ts +11 -0
  35. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js +2 -1
  36. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js.map +1 -1
  37. package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.d.ts +3 -0
  38. package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.d.ts +3 -0
  39. package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.d.ts +3 -0
  40. package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.d.ts +3 -0
  41. package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.d.ts +3 -0
  42. package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.d.ts +3 -0
  43. package/dist/nodes/vector_store/shared/userScoped.d.ts +3 -0
  44. package/dist/nodes/vector_store/shared/userScoped.js +22 -0
  45. package/dist/nodes/vector_store/shared/userScoped.js.map +1 -0
  46. package/dist/typecheck.tsbuildinfo +1 -1
  47. package/dist/types/credentials.json +4 -1
  48. package/dist/types/nodes.json +4 -1
  49. package/package.json +17 -11
@@ -7,6 +7,9 @@ declare const VectorStoreSupabase_base: new () => {
7
7
  actionHandler?: {
8
8
  [functionName: string]: (this: import("n8n-workflow").ILoadOptionsFunctions, payload: import("n8n-workflow").IDataObject | string | undefined) => Promise<import("n8n-workflow").NodeParameterValueType>;
9
9
  };
10
+ credentialTest?: {
11
+ [functionName: string]: import("n8n-workflow").ICredentialTestFunction;
12
+ };
10
13
  } | undefined;
11
14
  execute(this: import("n8n-workflow").IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
12
15
  supplyData(this: import("n8n-workflow").ISupplyDataFunctions, itemIndex: number): Promise<import("n8n-workflow").SupplyData>;
@@ -8,6 +8,9 @@ declare const VectorStoreWeaviate_base: new () => {
8
8
  actionHandler?: {
9
9
  [functionName: string]: (this: import("n8n-workflow").ILoadOptionsFunctions, payload: import("n8n-workflow").IDataObject | string | undefined) => Promise<import("n8n-workflow").NodeParameterValueType>;
10
10
  };
11
+ credentialTest?: {
12
+ [functionName: string]: import("n8n-workflow").ICredentialTestFunction;
13
+ };
11
14
  } | undefined;
12
15
  execute(this: import("n8n-workflow").IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
13
16
  supplyData(this: import("n8n-workflow").ISupplyDataFunctions, itemIndex: number): Promise<import("n8n-workflow").SupplyData>;
@@ -8,6 +8,9 @@ declare const VectorStoreZep_base: new () => {
8
8
  actionHandler?: {
9
9
  [functionName: string]: (this: import("n8n-workflow").ILoadOptionsFunctions, payload: import("n8n-workflow").IDataObject | string | undefined) => Promise<import("n8n-workflow").NodeParameterValueType>;
10
10
  };
11
+ credentialTest?: {
12
+ [functionName: string]: import("n8n-workflow").ICredentialTestFunction;
13
+ };
11
14
  } | undefined;
12
15
  execute(this: import("n8n-workflow").IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
13
16
  supplyData(this: import("n8n-workflow").ISupplyDataFunctions, itemIndex: number): Promise<import("n8n-workflow").SupplyData>;
@@ -0,0 +1,3 @@
1
+ import type { IExecuteFunctions, ILoadOptionsFunctions, ISupplyDataFunctions } from 'n8n-workflow';
2
+ export declare function getUserScopedSlot(context: IExecuteFunctions | ISupplyDataFunctions | ILoadOptionsFunctions, prefix: string, itemIndex?: number): string;
3
+ export declare function ensureUserId(context: IExecuteFunctions | ISupplyDataFunctions | ILoadOptionsFunctions, itemIndex?: number): string;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserScopedSlot = getUserScopedSlot;
4
+ exports.ensureUserId = ensureUserId;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ function getUserScopedSlot(context, prefix, itemIndex) {
7
+ const userId = ensureUserId(context, itemIndex);
8
+ return `${prefix}_${userId}`.replace(/[^a-zA-Z0-9_]/g, '_');
9
+ }
10
+ function ensureUserId(context, itemIndex) {
11
+ const userId = 'additionalData' in context &&
12
+ typeof context.additionalData === 'object' &&
13
+ context.additionalData !== null &&
14
+ 'userId' in context.additionalData
15
+ ? context.additionalData.userId
16
+ : undefined;
17
+ if (typeof userId !== 'string' || !userId) {
18
+ throw new n8n_workflow_1.NodeOperationError(context.getNode(), 'User ID is not available. This node requires an authenticated user session.', { itemIndex });
19
+ }
20
+ return userId;
21
+ }
22
+ //# sourceMappingURL=userScoped.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userScoped.js","sourceRoot":"","sources":["../../../../nodes/vector_store/shared/userScoped.ts"],"names":[],"mappings":";;AAYA,8CAOC;AAED,oCAqBC;AAzCD,+CAAkD;AAWlD,SAAgB,iBAAiB,CAChC,OAAyE,EACzE,MAAc,EACd,SAAkB;IAElB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAChD,OAAO,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,YAAY,CAC3B,OAAyE,EACzE,SAAkB;IAElB,MAAM,MAAM,GACX,gBAAgB,IAAI,OAAO;QAC3B,OAAO,OAAO,CAAC,cAAc,KAAK,QAAQ;QAC1C,OAAO,CAAC,cAAc,KAAK,IAAI;QAC/B,QAAQ,IAAI,OAAO,CAAC,cAAc;QACjC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM;QAC/B,CAAC,CAAC,SAAS,CAAC;IAEd,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC;QAC3C,MAAM,IAAI,iCAAkB,CAC3B,OAAO,CAAC,OAAO,EAAE,EACjB,6EAA6E,EAC7E,EAAE,SAAS,EAAE,CACb,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC"}