@n8n/chat-hub 1.4.0 → 1.5.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.
@@ -0,0 +1,7 @@
1
+ import { type ChatHubLLMProvider, type ChatHubSemanticSearchSettings } from '@n8n/api-types';
2
+ export type NodeTypeNameVersion = {
3
+ name: string;
4
+ version: number;
5
+ };
6
+ export declare const EMBEDDINGS_NODE_TYPE_MAP: Partial<Record<ChatHubLLMProvider, NodeTypeNameVersion>>;
7
+ export declare const DEFAULT_SEMANTIC_SEARCH_SETTINGS: ChatHubSemanticSearchSettings;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_SEMANTIC_SEARCH_SETTINGS = exports.EMBEDDINGS_NODE_TYPE_MAP = void 0;
4
+ const api_types_1 = require("@n8n/api-types");
5
+ exports.EMBEDDINGS_NODE_TYPE_MAP = {
6
+ openai: {
7
+ name: '@n8n/n8n-nodes-langchain.embeddingsOpenAi',
8
+ version: 1.2,
9
+ },
10
+ google: {
11
+ name: '@n8n/n8n-nodes-langchain.embeddingsGoogleGemini',
12
+ version: 1,
13
+ },
14
+ azureOpenAi: {
15
+ name: '@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi',
16
+ version: 1,
17
+ },
18
+ azureEntraId: {
19
+ name: '@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi',
20
+ version: 1,
21
+ },
22
+ ollama: {
23
+ name: '@n8n/n8n-nodes-langchain.embeddingsOllama',
24
+ version: 1,
25
+ },
26
+ awsBedrock: {
27
+ name: '@n8n/n8n-nodes-langchain.embeddingsAwsBedrock',
28
+ version: 1,
29
+ },
30
+ cohere: {
31
+ name: '@n8n/n8n-nodes-langchain.embeddingsCohere',
32
+ version: 1,
33
+ },
34
+ mistralCloud: {
35
+ name: '@n8n/n8n-nodes-langchain.embeddingsMistralCloud',
36
+ version: 1,
37
+ },
38
+ };
39
+ exports.DEFAULT_SEMANTIC_SEARCH_SETTINGS = {
40
+ embeddingModel: {
41
+ credentialId: null,
42
+ provider: api_types_1.chatHubLLMProviderSchema.options.filter((provider) => provider in exports.EMBEDDINGS_NODE_TYPE_MAP)[0],
43
+ },
44
+ vectorStore: { credentialId: null, provider: api_types_1.chatHubVectorStoreProviderSchema.options[0] },
45
+ };
46
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA,8CAKwB;AAIX,QAAA,wBAAwB,GAA6D;IACjG,MAAM,EAAE;QACP,IAAI,EAAE,2CAA2C;QACjD,OAAO,EAAE,GAAG;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,iDAAiD;QACvD,OAAO,EAAE,CAAC;KACV;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,gDAAgD;QACtD,OAAO,EAAE,CAAC;KACV;IACD,YAAY,EAAE;QACb,IAAI,EAAE,gDAAgD;QACtD,OAAO,EAAE,CAAC;KACV;IACD,MAAM,EAAE;QACP,IAAI,EAAE,2CAA2C;QACjD,OAAO,EAAE,CAAC;KACV;IACD,UAAU,EAAE;QACX,IAAI,EAAE,+CAA+C;QACrD,OAAO,EAAE,CAAC;KACV;IACD,MAAM,EAAE;QACP,IAAI,EAAE,2CAA2C;QACjD,OAAO,EAAE,CAAC;KACV;IACD,YAAY,EAAE;QACb,IAAI,EAAE,iDAAiD;QACvD,OAAO,EAAE,CAAC;KACV;CACD,CAAC;AAEW,QAAA,gCAAgC,GAAkC;IAC9E,cAAc,EAAE;QACf,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,oCAAwB,CAAC,OAAO,CAAC,MAAM,CAChD,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,IAAI,gCAAwB,CAClD,CAAC,CAAC,CAAC;KACJ;IACD,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,4CAAgC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;CAC1F,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './parser';
2
2
  export * from './artifact';
3
+ export * from './constants';
package/dist/index.js CHANGED
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./parser"), exports);
18
18
  __exportStar(require("./artifact"), exports);
19
+ __exportStar(require("./constants"), exports);
19
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,8CAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/chat-hub",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "@n8n/typescript-config": "1.3.0"
14
14
  },
15
15
  "dependencies": {
16
- "@n8n/api-types": "1.11.0"
16
+ "@n8n/api-types": "1.12.0"
17
17
  },
18
18
  "license": "SEE LICENSE IN LICENSE.md",
19
19
  "homepage": "https://n8n.io",