@exado/n8n-nodes-exado 0.1.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.
- package/LICENSE +21 -0
- package/README.md +132 -0
- package/dist/credentials/ExadoApi.credentials.d.ts +9 -0
- package/dist/credentials/ExadoApi.credentials.js +48 -0
- package/dist/credentials/ExadoApi.credentials.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Exado/Exado.node.d.ts +17 -0
- package/dist/nodes/Exado/Exado.node.js +709 -0
- package/dist/nodes/Exado/Exado.node.js.map +1 -0
- package/dist/nodes/Exado/ExadoTrigger.node.d.ts +5 -0
- package/dist/nodes/Exado/ExadoTrigger.node.js +123 -0
- package/dist/nodes/Exado/ExadoTrigger.node.js.map +1 -0
- package/dist/nodes/Exado/descriptions/ChatCompletionDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/ChatCompletionDescription.js +181 -0
- package/dist/nodes/Exado/descriptions/ChatCompletionDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/ChatDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/ChatDescription.js +78 -0
- package/dist/nodes/Exado/descriptions/ChatDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/ConversationConfigDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/ConversationConfigDescription.js +115 -0
- package/dist/nodes/Exado/descriptions/ConversationConfigDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/ConversationDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/ConversationDescription.js +102 -0
- package/dist/nodes/Exado/descriptions/ConversationDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/ConversationTemplateDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/ConversationTemplateDescription.js +97 -0
- package/dist/nodes/Exado/descriptions/ConversationTemplateDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/DocumentDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/DocumentDescription.js +221 -0
- package/dist/nodes/Exado/descriptions/DocumentDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/EmbeddingDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/EmbeddingDescription.js +56 -0
- package/dist/nodes/Exado/descriptions/EmbeddingDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/FaqTopicDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/FaqTopicDescription.js +89 -0
- package/dist/nodes/Exado/descriptions/FaqTopicDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/FolderDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/FolderDescription.js +81 -0
- package/dist/nodes/Exado/descriptions/FolderDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/GroupDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/GroupDescription.js +29 -0
- package/dist/nodes/Exado/descriptions/GroupDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/MetadataDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/MetadataDescription.js +116 -0
- package/dist/nodes/Exado/descriptions/MetadataDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/ModelDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/ModelDescription.js +30 -0
- package/dist/nodes/Exado/descriptions/ModelDescription.js.map +1 -0
- package/dist/nodes/Exado/descriptions/QuickDescription.d.ts +3 -0
- package/dist/nodes/Exado/descriptions/QuickDescription.js +35 -0
- package/dist/nodes/Exado/descriptions/QuickDescription.js.map +1 -0
- package/dist/nodes/Exado/exado.svg +4 -0
- package/dist/nodes/Exado/helpers/pagination.d.ts +4 -0
- package/dist/nodes/Exado/helpers/pagination.js +33 -0
- package/dist/nodes/Exado/helpers/pagination.js.map +1 -0
- package/dist/nodes/Exado/helpers/request.d.ts +15 -0
- package/dist/nodes/Exado/helpers/request.js +101 -0
- package/dist/nodes/Exado/helpers/request.js.map +1 -0
- package/dist/nodes/Exado/helpers/sse.d.ts +12 -0
- package/dist/nodes/Exado/helpers/sse.js +87 -0
- package/dist/nodes/Exado/helpers/sse.js.map +1 -0
- package/dist/nodes/Exado/helpers/upload.d.ts +2 -0
- package/dist/nodes/Exado/helpers/upload.js +24 -0
- package/dist/nodes/Exado/helpers/upload.js.map +1 -0
- package/dist/nodes/Exado/methods/loadOptions.d.ts +8 -0
- package/dist/nodes/Exado/methods/loadOptions.js +95 -0
- package/dist/nodes/Exado/methods/loadOptions.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conversationFields = exports.conversationOperations = void 0;
|
|
4
|
+
const SHOW = { resource: ['conversation'] };
|
|
5
|
+
exports.conversationOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: { show: SHOW },
|
|
12
|
+
options: [
|
|
13
|
+
{ name: 'Ask', value: 'ask', action: 'Ask a question in a conversation' },
|
|
14
|
+
{
|
|
15
|
+
name: 'Cancel Generation',
|
|
16
|
+
value: 'cancel',
|
|
17
|
+
action: 'Cancel an in flight generation',
|
|
18
|
+
},
|
|
19
|
+
{ name: 'Get', value: 'get', action: 'Get a conversation' },
|
|
20
|
+
{ name: 'Get Many', value: 'getAll', action: 'Get many conversations' },
|
|
21
|
+
{
|
|
22
|
+
name: 'Get Status',
|
|
23
|
+
value: 'getStatus',
|
|
24
|
+
action: 'Get the generation status',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
default: 'getAll',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
exports.conversationFields = [
|
|
31
|
+
{
|
|
32
|
+
displayName: 'Conversation ID',
|
|
33
|
+
name: 'conversationId',
|
|
34
|
+
type: 'string',
|
|
35
|
+
default: '',
|
|
36
|
+
required: true,
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: { ...SHOW, operation: ['get', 'ask', 'getStatus', 'cancel'] },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Query',
|
|
43
|
+
name: 'query',
|
|
44
|
+
type: 'string',
|
|
45
|
+
typeOptions: { rows: 3 },
|
|
46
|
+
default: '',
|
|
47
|
+
required: true,
|
|
48
|
+
displayOptions: { show: { ...SHOW, operation: ['ask'] } },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Stream Response',
|
|
52
|
+
name: 'stream',
|
|
53
|
+
type: 'boolean',
|
|
54
|
+
default: false,
|
|
55
|
+
displayOptions: { show: { ...SHOW, operation: ['ask'] } },
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Emit Each Chunk',
|
|
59
|
+
name: 'emitEachChunk',
|
|
60
|
+
type: 'boolean',
|
|
61
|
+
default: false,
|
|
62
|
+
displayOptions: { show: { ...SHOW, operation: ['ask'], stream: [true] } },
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Return All',
|
|
66
|
+
name: 'returnAll',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
69
|
+
default: false,
|
|
70
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'] } },
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Limit',
|
|
74
|
+
name: 'limit',
|
|
75
|
+
type: 'number',
|
|
76
|
+
typeOptions: {
|
|
77
|
+
minValue: 1,
|
|
78
|
+
},
|
|
79
|
+
description: 'Max number of results to return',
|
|
80
|
+
default: 50,
|
|
81
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'], returnAll: [false] } },
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Filters',
|
|
85
|
+
name: 'filters',
|
|
86
|
+
type: 'collection',
|
|
87
|
+
placeholder: 'Add Filter',
|
|
88
|
+
default: {},
|
|
89
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'] } },
|
|
90
|
+
options: [
|
|
91
|
+
{ displayName: 'Search', name: 'search', type: 'string', default: '' },
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Status',
|
|
94
|
+
name: 'status',
|
|
95
|
+
type: 'string',
|
|
96
|
+
default: '',
|
|
97
|
+
description: 'Comma-separated list (e.g. "active,archived")',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
//# sourceMappingURL=ConversationDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationDescription.js","sourceRoot":"","sources":["../../../../nodes/Exado/descriptions/ConversationDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;AAE/B,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;QAC9B,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,kCAAkC,EAAE;YACzE;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gCAAgC;aACxC;YACD,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE;YAC3D,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,wBAAwB,EAAE;YACvE;gBACC,IAAI,EAAE,YAAY;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DAA2D;QACxE,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAC5D;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KAChF;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC5D,OAAO,EAAE;YACR,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;YACtE;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+CAA+C;aAC5D;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conversationTemplateFields = exports.conversationTemplateOperations = void 0;
|
|
4
|
+
const SHOW = { resource: ['conversationTemplate'] };
|
|
5
|
+
exports.conversationTemplateOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: { show: SHOW },
|
|
12
|
+
options: [
|
|
13
|
+
{ name: 'Create', value: 'create', action: 'Create a conversation template' },
|
|
14
|
+
{
|
|
15
|
+
name: 'Create Conversation From Template',
|
|
16
|
+
value: 'createConversation',
|
|
17
|
+
action: 'Start a new conversation from a template',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
default: 'create',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
exports.conversationTemplateFields = [
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Label',
|
|
26
|
+
name: 'label',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
required: true,
|
|
30
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Emoji',
|
|
34
|
+
name: 'emoji',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: '',
|
|
37
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Language',
|
|
41
|
+
name: 'language',
|
|
42
|
+
type: 'string',
|
|
43
|
+
default: 'fr',
|
|
44
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Instructions',
|
|
48
|
+
name: 'instructions',
|
|
49
|
+
type: 'string',
|
|
50
|
+
typeOptions: { rows: 4 },
|
|
51
|
+
default: '',
|
|
52
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'LLM Model Name or ID',
|
|
56
|
+
name: 'llmModel',
|
|
57
|
+
type: 'options',
|
|
58
|
+
typeOptions: { loadOptionsMethod: 'getModels' },
|
|
59
|
+
default: '',
|
|
60
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
61
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Files',
|
|
65
|
+
name: 'files',
|
|
66
|
+
type: 'string',
|
|
67
|
+
default: '',
|
|
68
|
+
placeholder: 'doc1,doc2',
|
|
69
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
70
|
+
description: 'Comma-separated document IDs',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Group Names or IDs',
|
|
74
|
+
name: 'groups',
|
|
75
|
+
type: 'multiOptions',
|
|
76
|
+
typeOptions: { loadOptionsMethod: 'getGroups' },
|
|
77
|
+
default: [],
|
|
78
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
79
|
+
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Number of Sources',
|
|
83
|
+
name: 'numberOfSources',
|
|
84
|
+
type: 'number',
|
|
85
|
+
default: 5,
|
|
86
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Template ID',
|
|
90
|
+
name: 'conversationTemplateId',
|
|
91
|
+
type: 'string',
|
|
92
|
+
default: '',
|
|
93
|
+
required: true,
|
|
94
|
+
displayOptions: { show: { ...SHOW, operation: ['createConversation'] } },
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
//# sourceMappingURL=ConversationTemplateDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationTemplateDescription.js","sourceRoot":"","sources":["../../../../nodes/Ex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EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAC5D;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,oBAAoB,CAAC,EAAE,EAAE;KACxE;CACD,CAAC"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentFields = exports.documentOperations = void 0;
|
|
4
|
+
const SHOW = { resource: ['document'] };
|
|
5
|
+
exports.documentOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: { show: SHOW },
|
|
12
|
+
options: [
|
|
13
|
+
{ name: 'Bulk Delete', value: 'bulkDelete', action: 'Bulk delete documents' },
|
|
14
|
+
{ name: 'Delete', value: 'delete', action: 'Delete a document or folder' },
|
|
15
|
+
{ name: 'Get', value: 'get', action: 'Get a document' },
|
|
16
|
+
{ name: 'Get Content', value: 'getContent', action: 'Get the parsed document text' },
|
|
17
|
+
{ name: 'Get Many', value: 'getAll', action: 'Get many documents' },
|
|
18
|
+
{ name: 'Get Status', value: 'getStatus', action: 'Get the document ingestion status' },
|
|
19
|
+
{
|
|
20
|
+
name: 'Get Translation Result',
|
|
21
|
+
value: 'getTranslationResult',
|
|
22
|
+
action: 'Get a translation result',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get Translation Status',
|
|
26
|
+
value: 'getTranslationStatus',
|
|
27
|
+
action: 'Get a translation status',
|
|
28
|
+
},
|
|
29
|
+
{ name: 'Translate', value: 'translate', action: 'Queue a translation job' },
|
|
30
|
+
{ name: 'Update', value: 'update', action: 'Update a document' },
|
|
31
|
+
{
|
|
32
|
+
name: 'Upload (Async)',
|
|
33
|
+
value: 'uploadAsync',
|
|
34
|
+
description: 'Recommended. Returns immediately with a doc ID; ingestion happens in the background.',
|
|
35
|
+
action: 'Upload a document asynchronously',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Upload (Sync)',
|
|
39
|
+
value: 'uploadSync',
|
|
40
|
+
description: 'Blocks until parsing + ingestion finishes. May time out (~600s cap).',
|
|
41
|
+
action: 'Upload a document synchronously',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
default: 'uploadAsync',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
const BINARY_FIELD = {
|
|
48
|
+
displayName: 'Binary Property',
|
|
49
|
+
name: 'binaryPropertyName',
|
|
50
|
+
type: 'string',
|
|
51
|
+
default: 'data',
|
|
52
|
+
required: true,
|
|
53
|
+
displayOptions: { show: { ...SHOW, operation: ['uploadAsync', 'uploadSync'] } },
|
|
54
|
+
description: 'Name of the binary property on the input item that holds the file to upload. The Read Binary File node produces "data" by default.',
|
|
55
|
+
};
|
|
56
|
+
const UPLOAD_OPTIONS = {
|
|
57
|
+
displayName: 'Options',
|
|
58
|
+
name: 'options',
|
|
59
|
+
type: 'collection',
|
|
60
|
+
placeholder: 'Add Option',
|
|
61
|
+
default: {},
|
|
62
|
+
displayOptions: { show: { ...SHOW, operation: ['uploadAsync', 'uploadSync'] } },
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Folder Path Name or ID',
|
|
66
|
+
name: 'path',
|
|
67
|
+
type: 'options',
|
|
68
|
+
typeOptions: { loadOptionsMethod: 'getFolders' },
|
|
69
|
+
default: '/',
|
|
70
|
+
description: 'Destination folder in the Exado library. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Parsing Mode',
|
|
74
|
+
name: 'mode',
|
|
75
|
+
type: 'options',
|
|
76
|
+
options: [
|
|
77
|
+
{ name: 'Local (Docling)', value: 'local' },
|
|
78
|
+
{ name: 'LlamaParse', value: 'llama' },
|
|
79
|
+
{ name: 'AWS Textract', value: 'aws' },
|
|
80
|
+
],
|
|
81
|
+
default: 'local',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Extract Metadata',
|
|
85
|
+
name: 'metadata',
|
|
86
|
+
type: 'boolean',
|
|
87
|
+
default: false,
|
|
88
|
+
description: 'Whether to run metadata generation after ingestion completes',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
};
|
|
92
|
+
exports.documentFields = [
|
|
93
|
+
BINARY_FIELD,
|
|
94
|
+
UPLOAD_OPTIONS,
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Document ID',
|
|
97
|
+
name: 'documentId',
|
|
98
|
+
type: 'string',
|
|
99
|
+
default: '',
|
|
100
|
+
required: true,
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
...SHOW,
|
|
104
|
+
operation: [
|
|
105
|
+
'get',
|
|
106
|
+
'getContent',
|
|
107
|
+
'getStatus',
|
|
108
|
+
'update',
|
|
109
|
+
'delete',
|
|
110
|
+
'translate',
|
|
111
|
+
'getTranslationStatus',
|
|
112
|
+
'getTranslationResult',
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Recursive',
|
|
119
|
+
name: 'recursive',
|
|
120
|
+
type: 'boolean',
|
|
121
|
+
default: false,
|
|
122
|
+
displayOptions: { show: { ...SHOW, operation: ['delete'] } },
|
|
123
|
+
description: 'Whether to recursively delete folder contents. Required when the ID points to a folder rather than a document.',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Update Fields',
|
|
127
|
+
name: 'updateFields',
|
|
128
|
+
type: 'collection',
|
|
129
|
+
placeholder: 'Add Field',
|
|
130
|
+
default: {},
|
|
131
|
+
displayOptions: { show: { ...SHOW, operation: ['update'] } },
|
|
132
|
+
options: [
|
|
133
|
+
{
|
|
134
|
+
displayName: 'New Path',
|
|
135
|
+
name: 'path',
|
|
136
|
+
type: 'string',
|
|
137
|
+
default: '',
|
|
138
|
+
description: 'Move the document to this folder path',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Group ID Names or IDs',
|
|
142
|
+
name: 'group_ids',
|
|
143
|
+
type: 'multiOptions',
|
|
144
|
+
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
145
|
+
typeOptions: { loadOptionsMethod: 'getGroups' },
|
|
146
|
+
default: [],
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Document IDs',
|
|
152
|
+
name: 'documentIds',
|
|
153
|
+
type: 'string',
|
|
154
|
+
default: '',
|
|
155
|
+
required: true,
|
|
156
|
+
displayOptions: { show: { ...SHOW, operation: ['bulkDelete'] } },
|
|
157
|
+
description: 'Comma-separated list of document IDs to delete',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Recursive',
|
|
161
|
+
name: 'recursive',
|
|
162
|
+
type: 'boolean',
|
|
163
|
+
default: false,
|
|
164
|
+
displayOptions: { show: { ...SHOW, operation: ['bulkDelete'] } },
|
|
165
|
+
description: 'Whether to recursively delete folder children',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Target Language',
|
|
169
|
+
name: 'targetLanguage',
|
|
170
|
+
type: 'string',
|
|
171
|
+
default: '',
|
|
172
|
+
required: true,
|
|
173
|
+
placeholder: 'en',
|
|
174
|
+
displayOptions: { show: { ...SHOW, operation: ['translate'] } },
|
|
175
|
+
description: 'ISO-639-1 language code, e.g. "en", "fr", "es"',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Return All',
|
|
179
|
+
name: 'returnAll',
|
|
180
|
+
type: 'boolean',
|
|
181
|
+
default: false,
|
|
182
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'] } },
|
|
183
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
displayName: 'Limit',
|
|
187
|
+
name: 'limit',
|
|
188
|
+
type: 'number',
|
|
189
|
+
typeOptions: {
|
|
190
|
+
minValue: 1,
|
|
191
|
+
},
|
|
192
|
+
default: 50,
|
|
193
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'], returnAll: [false] } },
|
|
194
|
+
description: 'Max number of results to return',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Filters',
|
|
198
|
+
name: 'filters',
|
|
199
|
+
type: 'collection',
|
|
200
|
+
placeholder: 'Add Filter',
|
|
201
|
+
default: {},
|
|
202
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'] } },
|
|
203
|
+
options: [
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Search',
|
|
206
|
+
name: 'search',
|
|
207
|
+
type: 'string',
|
|
208
|
+
default: '',
|
|
209
|
+
description: 'Full-text filename / content match',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
displayName: 'Folder Path',
|
|
213
|
+
name: 'path',
|
|
214
|
+
type: 'string',
|
|
215
|
+
default: '',
|
|
216
|
+
description: 'Restrict to a specific folder',
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
];
|
|
221
|
+
//# sourceMappingURL=DocumentDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentDescription.js","sourceRoot":"","sources":["../../../../nodes/Exado/descriptions/DocumentDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAE3B,Q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D,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;QAChF,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC5D,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aACjD;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+BAA+B;aAC5C;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.embeddingFields = exports.embeddingOperations = void 0;
|
|
4
|
+
const SHOW = { resource: ['embedding'] };
|
|
5
|
+
exports.embeddingOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: { show: SHOW },
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'Create',
|
|
15
|
+
value: 'create',
|
|
16
|
+
description: 'Generate vector embeddings for a string or array of strings',
|
|
17
|
+
action: 'Create embeddings',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
default: 'create',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
exports.embeddingFields = [
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Input',
|
|
26
|
+
name: 'input',
|
|
27
|
+
type: 'string',
|
|
28
|
+
typeOptions: { rows: 3 },
|
|
29
|
+
default: '',
|
|
30
|
+
required: true,
|
|
31
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
32
|
+
description: 'Text to embed. For multiple inputs separate with newlines — the node sends them as an array.',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Model Name or ID',
|
|
36
|
+
name: 'model',
|
|
37
|
+
type: 'options',
|
|
38
|
+
typeOptions: { loadOptionsMethod: 'getOpenAiModels' },
|
|
39
|
+
default: '',
|
|
40
|
+
required: true,
|
|
41
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
42
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Encoding Format',
|
|
46
|
+
name: 'encoding_format',
|
|
47
|
+
type: 'options',
|
|
48
|
+
options: [
|
|
49
|
+
{ name: 'Float', value: 'float' },
|
|
50
|
+
{ name: 'Base64', value: 'base64' },
|
|
51
|
+
],
|
|
52
|
+
default: 'float',
|
|
53
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
//# sourceMappingURL=EmbeddingDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddingDescription.js","sourceRoot":"","sources":["../../../../nodes/Exado/descriptions/EmbeddingDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAE5B,Q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OAAO,EAAE,OAAO;QAChB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAC5D;CACD,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.faqTopicFields = exports.faqTopicOperations = void 0;
|
|
4
|
+
const SHOW = { resource: ['faqTopic'] };
|
|
5
|
+
exports.faqTopicOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: { show: SHOW },
|
|
12
|
+
options: [
|
|
13
|
+
{ name: 'Create', value: 'create', action: 'Create an FAQ topic' },
|
|
14
|
+
{ name: 'Delete', value: 'delete', action: 'Delete an FAQ topic' },
|
|
15
|
+
{ name: 'Get', value: 'get', action: 'Get an FAQ topic' },
|
|
16
|
+
{ name: 'Get Many', value: 'getAll', action: 'List FAQ topics' },
|
|
17
|
+
{ name: 'Update', value: 'update', action: 'Update an FAQ topic' },
|
|
18
|
+
],
|
|
19
|
+
default: 'getAll',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.faqTopicFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Topic ID',
|
|
25
|
+
name: 'topicId',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
required: true,
|
|
29
|
+
displayOptions: { show: { ...SHOW, operation: ['get', 'update', 'delete'] } },
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: 'Title',
|
|
33
|
+
name: 'title',
|
|
34
|
+
type: 'string',
|
|
35
|
+
default: '',
|
|
36
|
+
required: true,
|
|
37
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Description',
|
|
41
|
+
name: 'description',
|
|
42
|
+
type: 'string',
|
|
43
|
+
typeOptions: { rows: 3 },
|
|
44
|
+
default: '',
|
|
45
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Keywords',
|
|
49
|
+
name: 'keywords',
|
|
50
|
+
type: 'string',
|
|
51
|
+
default: '',
|
|
52
|
+
placeholder: 'keyword1,keyword2',
|
|
53
|
+
displayOptions: { show: { ...SHOW, operation: ['create'] } },
|
|
54
|
+
description: 'Comma-separated list',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Update Fields',
|
|
58
|
+
name: 'updateFields',
|
|
59
|
+
type: 'collection',
|
|
60
|
+
placeholder: 'Add Field',
|
|
61
|
+
default: {},
|
|
62
|
+
displayOptions: { show: { ...SHOW, operation: ['update'] } },
|
|
63
|
+
options: [
|
|
64
|
+
{ displayName: 'Title', name: 'title', type: 'string', default: '' },
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Description',
|
|
67
|
+
name: 'description',
|
|
68
|
+
type: 'string',
|
|
69
|
+
typeOptions: { rows: 3 },
|
|
70
|
+
default: '',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Keywords',
|
|
74
|
+
name: 'keywords',
|
|
75
|
+
type: 'string',
|
|
76
|
+
default: '',
|
|
77
|
+
description: 'Comma-separated list',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Search',
|
|
83
|
+
name: 'search',
|
|
84
|
+
type: 'string',
|
|
85
|
+
default: '',
|
|
86
|
+
displayOptions: { show: { ...SHOW, operation: ['getAll'] } },
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
//# sourceMappingURL=FaqTopicDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FaqTopicDescription.js","sourceRoot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