@aiteza/n8n-nodes-aiteza 0.4.0 → 1.0.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/dist/credentials/AitezaOAuth2Api.credentials.js +1 -1
- package/dist/nodes/Aiteza/Aiteza.node.js +928 -163
- package/dist/nodes/Aiteza/AitezaProgress.node.js +15 -4
- package/dist/nodes/Aiteza/AitezaTrigger.node.js +2 -2
- package/dist/nodes/Aiteza/AitezaWorkflowResult.node.js +15 -4
- package/dist/nodes/Aiteza/GenericFunctions.d.ts +0 -4
- package/dist/nodes/Aiteza/GenericFunctions.js +35 -84
- package/package.json +1 -1
|
@@ -83,20 +83,90 @@ class Aiteza {
|
|
|
83
83
|
noDataExpression: true,
|
|
84
84
|
displayOptions: { show: { resource: ['dataroom'] } },
|
|
85
85
|
options: [
|
|
86
|
-
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
|
|
86
|
+
{
|
|
87
|
+
name: 'Create',
|
|
88
|
+
value: 'create',
|
|
89
|
+
action: 'Create a dataroom',
|
|
90
|
+
description: 'Create a new dataroom',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'Delete',
|
|
94
|
+
value: 'delete',
|
|
95
|
+
action: 'Delete a dataroom',
|
|
96
|
+
description: 'Delete one or more datarooms permanently',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Get',
|
|
100
|
+
value: 'get',
|
|
101
|
+
action: 'Get a dataroom',
|
|
102
|
+
description: 'Retrieve a dataroom by ID',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Get Chats',
|
|
106
|
+
value: 'getChats',
|
|
107
|
+
action: 'Get chats in a dataroom',
|
|
108
|
+
description: 'Retrieve a list of chats connected to a dataroom',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'Get Children',
|
|
112
|
+
value: 'getChildren',
|
|
113
|
+
action: 'Get children of a dataroom',
|
|
114
|
+
description: 'Retrieve child datarooms within a dataroom',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'Get Connected',
|
|
118
|
+
value: 'getConnected',
|
|
119
|
+
action: 'Get connected datarooms',
|
|
120
|
+
description: 'Retrieve the default connected datarooms for a dataroom',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'Get Models',
|
|
124
|
+
value: 'getModels',
|
|
125
|
+
action: 'Get models in a dataroom',
|
|
126
|
+
description: 'Retrieve AI models available in a dataroom',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'Get Recent',
|
|
130
|
+
value: 'getRecent',
|
|
131
|
+
action: 'Get recent datarooms',
|
|
132
|
+
description: 'Retrieve recently accessed datarooms',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'Get Starred',
|
|
136
|
+
value: 'getStarred',
|
|
137
|
+
action: 'Get starred datarooms',
|
|
138
|
+
description: 'Retrieve your starred datarooms',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'Search',
|
|
142
|
+
value: 'search',
|
|
143
|
+
action: 'Search datarooms',
|
|
144
|
+
description: 'Search for datarooms by name',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'Set Connected',
|
|
148
|
+
value: 'setConnected',
|
|
149
|
+
action: 'Set connected datarooms',
|
|
150
|
+
description: 'Set the default connected datarooms for a dataroom',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'Star',
|
|
154
|
+
value: 'star',
|
|
155
|
+
action: 'Star a dataroom',
|
|
156
|
+
description: 'Add a dataroom to your starred list',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'Unstar',
|
|
160
|
+
value: 'unstar',
|
|
161
|
+
action: 'Unstar a dataroom',
|
|
162
|
+
description: 'Remove a dataroom from your starred list',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'Update',
|
|
166
|
+
value: 'update',
|
|
167
|
+
action: 'Update a dataroom',
|
|
168
|
+
description: "Update a dataroom's name and settings",
|
|
169
|
+
},
|
|
100
170
|
],
|
|
101
171
|
default: 'get',
|
|
102
172
|
},
|
|
@@ -107,7 +177,21 @@ class Aiteza {
|
|
|
107
177
|
typeOptions: { loadOptionsMethod: 'getDatarooms' },
|
|
108
178
|
required: true,
|
|
109
179
|
default: '',
|
|
110
|
-
displayOptions: {
|
|
180
|
+
displayOptions: {
|
|
181
|
+
show: {
|
|
182
|
+
resource: ['dataroom'],
|
|
183
|
+
operation: [
|
|
184
|
+
'get',
|
|
185
|
+
'update',
|
|
186
|
+
'star',
|
|
187
|
+
'unstar',
|
|
188
|
+
'getConnected',
|
|
189
|
+
'setConnected',
|
|
190
|
+
'getChats',
|
|
191
|
+
'getModels',
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
},
|
|
111
195
|
description: 'The dataroom to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
112
196
|
},
|
|
113
197
|
{
|
|
@@ -115,7 +199,12 @@ class Aiteza {
|
|
|
115
199
|
name: 'simplify',
|
|
116
200
|
type: 'boolean',
|
|
117
201
|
default: true,
|
|
118
|
-
displayOptions: {
|
|
202
|
+
displayOptions: {
|
|
203
|
+
show: {
|
|
204
|
+
resource: ['dataroom'],
|
|
205
|
+
operation: ['get', 'search', 'getRecent', 'getStarred', 'getChildren'],
|
|
206
|
+
},
|
|
207
|
+
},
|
|
119
208
|
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
120
209
|
},
|
|
121
210
|
{
|
|
@@ -194,8 +283,16 @@ class Aiteza {
|
|
|
194
283
|
default: 'private',
|
|
195
284
|
displayOptions: { show: { resource: ['dataroom'], operation: ['create'] } },
|
|
196
285
|
options: [
|
|
197
|
-
{
|
|
198
|
-
|
|
286
|
+
{
|
|
287
|
+
name: 'Private',
|
|
288
|
+
value: 'private',
|
|
289
|
+
description: 'Access is restricted to members only',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: 'Inherit',
|
|
293
|
+
value: 'inherit',
|
|
294
|
+
description: 'Inherit access settings from the parent dataroom',
|
|
295
|
+
},
|
|
199
296
|
{ name: 'Custom', value: 'custom', description: 'Use a custom access configuration' },
|
|
200
297
|
],
|
|
201
298
|
description: 'Access control type for the dataroom',
|
|
@@ -344,10 +441,30 @@ class Aiteza {
|
|
|
344
441
|
noDataExpression: true,
|
|
345
442
|
displayOptions: { show: { resource: ['dataroomMember'] } },
|
|
346
443
|
options: [
|
|
347
|
-
{
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
444
|
+
{
|
|
445
|
+
name: 'Add',
|
|
446
|
+
value: 'add',
|
|
447
|
+
action: 'Add member to a dataroom',
|
|
448
|
+
description: 'Add one or more users as members of a dataroom',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: 'Get Many',
|
|
452
|
+
value: 'getMany',
|
|
453
|
+
action: 'Get members of a dataroom',
|
|
454
|
+
description: 'Retrieve a list of members in a dataroom',
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: 'Remove',
|
|
458
|
+
value: 'remove',
|
|
459
|
+
action: 'Remove member from a dataroom',
|
|
460
|
+
description: 'Remove one or more members from a dataroom',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
name: 'Update Role',
|
|
464
|
+
value: 'updateRole',
|
|
465
|
+
action: 'Update member role in a dataroom',
|
|
466
|
+
description: 'Update the role of one or more members in a dataroom',
|
|
467
|
+
},
|
|
351
468
|
],
|
|
352
469
|
default: 'getMany',
|
|
353
470
|
},
|
|
@@ -377,7 +494,9 @@ class Aiteza {
|
|
|
377
494
|
required: true,
|
|
378
495
|
default: '',
|
|
379
496
|
placeholder: 'e.g. john.doe, jane.smith',
|
|
380
|
-
displayOptions: {
|
|
497
|
+
displayOptions: {
|
|
498
|
+
show: { resource: ['dataroomMember'], operation: ['add', 'remove', 'updateRole'] },
|
|
499
|
+
},
|
|
381
500
|
description: 'Comma-separated list of usernames',
|
|
382
501
|
},
|
|
383
502
|
{
|
|
@@ -386,7 +505,9 @@ class Aiteza {
|
|
|
386
505
|
type: 'options',
|
|
387
506
|
required: true,
|
|
388
507
|
default: 'viewer',
|
|
389
|
-
displayOptions: {
|
|
508
|
+
displayOptions: {
|
|
509
|
+
show: { resource: ['dataroomMember'], operation: ['add', 'updateRole'] },
|
|
510
|
+
},
|
|
390
511
|
options: [
|
|
391
512
|
{ name: 'Owner', value: 'owner', description: 'Full access including managing members' },
|
|
392
513
|
{ name: 'Editor', value: 'editor', description: 'Can add and edit content' },
|
|
@@ -399,7 +520,9 @@ class Aiteza {
|
|
|
399
520
|
name: 'inherit',
|
|
400
521
|
type: 'boolean',
|
|
401
522
|
default: false,
|
|
402
|
-
displayOptions: {
|
|
523
|
+
displayOptions: {
|
|
524
|
+
show: { resource: ['dataroomMember'], operation: ['add', 'remove', 'updateRole'] },
|
|
525
|
+
},
|
|
403
526
|
description: 'Whether to apply this role assignment to all child datarooms as well',
|
|
404
527
|
},
|
|
405
528
|
{
|
|
@@ -409,10 +532,30 @@ class Aiteza {
|
|
|
409
532
|
noDataExpression: true,
|
|
410
533
|
displayOptions: { show: { resource: ['dataroomGroup'] } },
|
|
411
534
|
options: [
|
|
412
|
-
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
535
|
+
{
|
|
536
|
+
name: 'Add',
|
|
537
|
+
value: 'add',
|
|
538
|
+
action: 'Add group to a dataroom',
|
|
539
|
+
description: 'Assign a group to a dataroom with a role',
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
name: 'Get Many',
|
|
543
|
+
value: 'getMany',
|
|
544
|
+
action: 'Get groups of a dataroom',
|
|
545
|
+
description: 'Retrieve a list of groups assigned to a dataroom',
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: 'Remove',
|
|
549
|
+
value: 'remove',
|
|
550
|
+
action: 'Remove group from a dataroom',
|
|
551
|
+
description: 'Remove a group from a dataroom',
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: 'Update Role',
|
|
555
|
+
value: 'updateRole',
|
|
556
|
+
action: 'Update group role in a dataroom',
|
|
557
|
+
description: 'Update the role of a group in a dataroom',
|
|
558
|
+
},
|
|
416
559
|
],
|
|
417
560
|
default: 'getMany',
|
|
418
561
|
},
|
|
@@ -442,7 +585,9 @@ class Aiteza {
|
|
|
442
585
|
required: true,
|
|
443
586
|
default: '',
|
|
444
587
|
placeholder: 'e.g. /departments/engineering',
|
|
445
|
-
displayOptions: {
|
|
588
|
+
displayOptions: {
|
|
589
|
+
show: { resource: ['dataroomGroup'], operation: ['add', 'remove', 'updateRole'] },
|
|
590
|
+
},
|
|
446
591
|
description: 'The path of the group to assign or remove',
|
|
447
592
|
},
|
|
448
593
|
{
|
|
@@ -464,7 +609,9 @@ class Aiteza {
|
|
|
464
609
|
name: 'inherit',
|
|
465
610
|
type: 'boolean',
|
|
466
611
|
default: false,
|
|
467
|
-
displayOptions: {
|
|
612
|
+
displayOptions: {
|
|
613
|
+
show: { resource: ['dataroomGroup'], operation: ['add', 'remove', 'updateRole'] },
|
|
614
|
+
},
|
|
468
615
|
description: 'Whether to apply changes to child datarooms as well',
|
|
469
616
|
},
|
|
470
617
|
{
|
|
@@ -474,27 +621,132 @@ class Aiteza {
|
|
|
474
621
|
noDataExpression: true,
|
|
475
622
|
displayOptions: { show: { resource: ['file'] } },
|
|
476
623
|
options: [
|
|
477
|
-
{
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
{
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
{
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
{
|
|
496
|
-
|
|
497
|
-
|
|
624
|
+
{
|
|
625
|
+
name: 'Assign to Dataroom',
|
|
626
|
+
value: 'assign',
|
|
627
|
+
action: 'Assign file to a dataroom',
|
|
628
|
+
description: 'Assign a standalone file to a dataroom',
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
name: 'Bulk Delete',
|
|
632
|
+
value: 'bulkDelete',
|
|
633
|
+
action: 'Delete files from a dataroom',
|
|
634
|
+
description: 'Delete multiple files from a dataroom at once',
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: 'Bulk Move',
|
|
638
|
+
value: 'bulkMove',
|
|
639
|
+
action: 'Move files to a dataroom',
|
|
640
|
+
description: 'Move multiple files to another dataroom at once',
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: 'Bulk Patch',
|
|
644
|
+
value: 'bulkPatch',
|
|
645
|
+
action: 'Patch files in a dataroom',
|
|
646
|
+
description: 'Update or reprocess multiple files in a dataroom',
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
name: 'Delete',
|
|
650
|
+
value: 'delete',
|
|
651
|
+
action: 'Delete file from a dataroom',
|
|
652
|
+
description: 'Delete a file from a dataroom permanently',
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
name: 'Delete All',
|
|
656
|
+
value: 'deleteAllDataroom',
|
|
657
|
+
action: 'Delete all files from a dataroom',
|
|
658
|
+
description: 'Delete all files from a dataroom permanently',
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
name: 'Delete Standalone',
|
|
662
|
+
value: 'deleteStandalone',
|
|
663
|
+
action: 'Delete a standalone file',
|
|
664
|
+
description: 'Delete a standalone file permanently',
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: 'Get',
|
|
668
|
+
value: 'get',
|
|
669
|
+
action: 'Get file from a dataroom',
|
|
670
|
+
description: 'Retrieve a file from a dataroom',
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: 'Get Chunks',
|
|
674
|
+
value: 'getChunks',
|
|
675
|
+
action: 'Get chunks of a standalone file',
|
|
676
|
+
description: 'Retrieve the text chunks of a standalone file',
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
name: 'Get Chunks (Dataroom)',
|
|
680
|
+
value: 'getChunksDataroom',
|
|
681
|
+
action: 'Get chunks of a dataroom file',
|
|
682
|
+
description: 'Retrieve the text chunks of a file in a dataroom',
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
name: 'Get Content',
|
|
686
|
+
value: 'getContent',
|
|
687
|
+
action: 'Get content of a standalone file',
|
|
688
|
+
description: 'Retrieve the processed text content of a standalone file',
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: 'Get Many',
|
|
692
|
+
value: 'getMany',
|
|
693
|
+
action: 'Get files in a dataroom',
|
|
694
|
+
description: 'Retrieve a list of files in a dataroom',
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
name: 'Get Many Standalone',
|
|
698
|
+
value: 'getManyStandalone',
|
|
699
|
+
action: 'Get standalone files',
|
|
700
|
+
description: 'Retrieve a list of standalone files',
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: 'Get Metadata',
|
|
704
|
+
value: 'getMetadata',
|
|
705
|
+
action: 'Get metadata of a standalone file',
|
|
706
|
+
description: 'Retrieve the metadata of a standalone file',
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
name: 'Get Original URL',
|
|
710
|
+
value: 'getOriginalUrl',
|
|
711
|
+
action: 'Get download URL of a standalone file',
|
|
712
|
+
description: 'Retrieve the original download URL of a standalone file',
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: 'Get Original URL (Dataroom)',
|
|
716
|
+
value: 'getOriginalUrlDataroom',
|
|
717
|
+
action: 'Get download URL of a dataroom file',
|
|
718
|
+
description: 'Retrieve the original download URL of a file in a dataroom',
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
name: 'Get Processing Status',
|
|
722
|
+
value: 'getStatus',
|
|
723
|
+
action: 'Get processing status of a file',
|
|
724
|
+
description: 'Retrieve the current processing status of a standalone file',
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
name: 'Move',
|
|
728
|
+
value: 'move',
|
|
729
|
+
action: 'Move file to a dataroom',
|
|
730
|
+
description: 'Move a file to another dataroom',
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: 'Reprocess',
|
|
734
|
+
value: 'reprocess',
|
|
735
|
+
action: 'Reprocess a dataroom file',
|
|
736
|
+
description: 'Reprocess a file in a dataroom using a different pipeline',
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
name: 'Upload',
|
|
740
|
+
value: 'upload',
|
|
741
|
+
action: 'Upload file to a dataroom',
|
|
742
|
+
description: 'Upload a file to a dataroom',
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
name: 'Upload Standalone',
|
|
746
|
+
value: 'uploadStandalone',
|
|
747
|
+
action: 'Upload a standalone file',
|
|
748
|
+
description: 'Upload a file without assigning it to a dataroom',
|
|
749
|
+
},
|
|
498
750
|
],
|
|
499
751
|
default: 'getMany',
|
|
500
752
|
},
|
|
@@ -506,7 +758,23 @@ class Aiteza {
|
|
|
506
758
|
required: true,
|
|
507
759
|
default: '',
|
|
508
760
|
displayOptions: {
|
|
509
|
-
show: {
|
|
761
|
+
show: {
|
|
762
|
+
resource: ['file'],
|
|
763
|
+
operation: [
|
|
764
|
+
'getMany',
|
|
765
|
+
'get',
|
|
766
|
+
'delete',
|
|
767
|
+
'upload',
|
|
768
|
+
'deleteAllDataroom',
|
|
769
|
+
'reprocess',
|
|
770
|
+
'move',
|
|
771
|
+
'getOriginalUrlDataroom',
|
|
772
|
+
'getChunksDataroom',
|
|
773
|
+
'bulkDelete',
|
|
774
|
+
'bulkMove',
|
|
775
|
+
'bulkPatch',
|
|
776
|
+
],
|
|
777
|
+
},
|
|
510
778
|
},
|
|
511
779
|
description: 'The dataroom. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
512
780
|
},
|
|
@@ -515,17 +783,37 @@ class Aiteza {
|
|
|
515
783
|
name: 'simplify',
|
|
516
784
|
type: 'boolean',
|
|
517
785
|
default: true,
|
|
518
|
-
displayOptions: {
|
|
786
|
+
displayOptions: {
|
|
787
|
+
show: {
|
|
788
|
+
resource: ['file'],
|
|
789
|
+
operation: ['get', 'getMany', 'getManyStandalone', 'getMetadata'],
|
|
790
|
+
},
|
|
791
|
+
},
|
|
519
792
|
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
520
793
|
},
|
|
521
794
|
{
|
|
522
795
|
displayName: 'File Name or ID',
|
|
523
796
|
name: 'fileId',
|
|
524
797
|
type: 'options',
|
|
525
|
-
typeOptions: {
|
|
798
|
+
typeOptions: {
|
|
799
|
+
loadOptionsMethod: 'getFilesInDataroom',
|
|
800
|
+
loadOptionsDependsOn: ['dataroomId'],
|
|
801
|
+
},
|
|
526
802
|
required: true,
|
|
527
803
|
default: '',
|
|
528
|
-
displayOptions: {
|
|
804
|
+
displayOptions: {
|
|
805
|
+
show: {
|
|
806
|
+
resource: ['file'],
|
|
807
|
+
operation: [
|
|
808
|
+
'get',
|
|
809
|
+
'delete',
|
|
810
|
+
'reprocess',
|
|
811
|
+
'move',
|
|
812
|
+
'getOriginalUrlDataroom',
|
|
813
|
+
'getChunksDataroom',
|
|
814
|
+
],
|
|
815
|
+
},
|
|
816
|
+
},
|
|
529
817
|
description: 'The file. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
530
818
|
},
|
|
531
819
|
{
|
|
@@ -536,7 +824,18 @@ class Aiteza {
|
|
|
536
824
|
required: true,
|
|
537
825
|
default: '',
|
|
538
826
|
displayOptions: {
|
|
539
|
-
show: {
|
|
827
|
+
show: {
|
|
828
|
+
resource: ['file'],
|
|
829
|
+
operation: [
|
|
830
|
+
'getStatus',
|
|
831
|
+
'getMetadata',
|
|
832
|
+
'getContent',
|
|
833
|
+
'deleteStandalone',
|
|
834
|
+
'assign',
|
|
835
|
+
'getOriginalUrl',
|
|
836
|
+
'getChunks',
|
|
837
|
+
],
|
|
838
|
+
},
|
|
540
839
|
},
|
|
541
840
|
description: 'The standalone file. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
542
841
|
},
|
|
@@ -544,10 +843,15 @@ class Aiteza {
|
|
|
544
843
|
displayName: 'File Names or IDs',
|
|
545
844
|
name: 'fileIds',
|
|
546
845
|
type: 'multiOptions',
|
|
547
|
-
typeOptions: {
|
|
846
|
+
typeOptions: {
|
|
847
|
+
loadOptionsMethod: 'getFilesInDataroom',
|
|
848
|
+
loadOptionsDependsOn: ['dataroomId'],
|
|
849
|
+
},
|
|
548
850
|
required: true,
|
|
549
851
|
default: [],
|
|
550
|
-
displayOptions: {
|
|
852
|
+
displayOptions: {
|
|
853
|
+
show: { resource: ['file'], operation: ['bulkDelete', 'bulkMove', 'bulkPatch'] },
|
|
854
|
+
},
|
|
551
855
|
description: 'Files to operate on. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
552
856
|
},
|
|
553
857
|
{
|
|
@@ -563,11 +867,17 @@ class Aiteza {
|
|
|
563
867
|
name: 'processingPipeline',
|
|
564
868
|
type: 'options',
|
|
565
869
|
default: 'DOCLING',
|
|
566
|
-
displayOptions: {
|
|
870
|
+
displayOptions: {
|
|
871
|
+
show: { resource: ['file'], operation: ['bulkPatch'], reprocess: [true] },
|
|
872
|
+
},
|
|
567
873
|
options: [
|
|
568
874
|
{ name: 'TIKA', value: 'TIKA', description: 'Apache Tika extraction' },
|
|
569
875
|
{ name: 'DOCLING', value: 'DOCLING', description: 'Docling document processing' },
|
|
570
|
-
{
|
|
876
|
+
{
|
|
877
|
+
name: 'DOCLING Force OCR',
|
|
878
|
+
value: 'DOCLING_FORCE_OCR',
|
|
879
|
+
description: 'Docling with forced OCR for scanned documents',
|
|
880
|
+
},
|
|
571
881
|
{ name: 'VLM', value: 'VLM', description: 'Vision language model processing' },
|
|
572
882
|
],
|
|
573
883
|
description: 'Processing pipeline to use when reprocessing is enabled',
|
|
@@ -578,7 +888,14 @@ class Aiteza {
|
|
|
578
888
|
type: 'string',
|
|
579
889
|
default: '',
|
|
580
890
|
placeholder: 'e.g. llava',
|
|
581
|
-
displayOptions: {
|
|
891
|
+
displayOptions: {
|
|
892
|
+
show: {
|
|
893
|
+
resource: ['file'],
|
|
894
|
+
operation: ['bulkPatch'],
|
|
895
|
+
reprocess: [true],
|
|
896
|
+
processingPipeline: ['VLM'],
|
|
897
|
+
},
|
|
898
|
+
},
|
|
582
899
|
description: 'VLM model name to use (required when the pipeline is set to VLM)',
|
|
583
900
|
},
|
|
584
901
|
{
|
|
@@ -597,7 +914,9 @@ class Aiteza {
|
|
|
597
914
|
type: 'collection',
|
|
598
915
|
placeholder: 'Add Field',
|
|
599
916
|
default: {},
|
|
600
|
-
displayOptions: {
|
|
917
|
+
displayOptions: {
|
|
918
|
+
show: { resource: ['file'], operation: ['getMany', 'getManyStandalone'] },
|
|
919
|
+
},
|
|
601
920
|
options: [
|
|
602
921
|
{
|
|
603
922
|
displayName: 'Page',
|
|
@@ -648,7 +967,9 @@ class Aiteza {
|
|
|
648
967
|
type: 'collection',
|
|
649
968
|
placeholder: 'Add Field',
|
|
650
969
|
default: {},
|
|
651
|
-
displayOptions: {
|
|
970
|
+
displayOptions: {
|
|
971
|
+
show: { resource: ['file'], operation: ['getChunks', 'getChunksDataroom'] },
|
|
972
|
+
},
|
|
652
973
|
options: [
|
|
653
974
|
{
|
|
654
975
|
displayName: 'Page',
|
|
@@ -682,11 +1003,17 @@ class Aiteza {
|
|
|
682
1003
|
type: 'options',
|
|
683
1004
|
required: true,
|
|
684
1005
|
default: 'DOCLING',
|
|
685
|
-
displayOptions: {
|
|
1006
|
+
displayOptions: {
|
|
1007
|
+
show: { resource: ['file'], operation: ['upload', 'uploadStandalone', 'reprocess'] },
|
|
1008
|
+
},
|
|
686
1009
|
options: [
|
|
687
1010
|
{ name: 'TIKA', value: 'TIKA', description: 'Apache Tika extraction' },
|
|
688
1011
|
{ name: 'DOCLING', value: 'DOCLING', description: 'Docling document processing' },
|
|
689
|
-
{
|
|
1012
|
+
{
|
|
1013
|
+
name: 'DOCLING Force OCR',
|
|
1014
|
+
value: 'DOCLING_FORCE_OCR',
|
|
1015
|
+
description: 'Docling with forced OCR for scanned documents',
|
|
1016
|
+
},
|
|
690
1017
|
{ name: 'VLM', value: 'VLM', description: 'Vision language model processing' },
|
|
691
1018
|
],
|
|
692
1019
|
description: 'Processing pipeline to use for document analysis',
|
|
@@ -697,7 +1024,13 @@ class Aiteza {
|
|
|
697
1024
|
type: 'string',
|
|
698
1025
|
default: '',
|
|
699
1026
|
placeholder: 'e.g. llava',
|
|
700
|
-
displayOptions: {
|
|
1027
|
+
displayOptions: {
|
|
1028
|
+
show: {
|
|
1029
|
+
resource: ['file'],
|
|
1030
|
+
operation: ['upload', 'uploadStandalone', 'reprocess'],
|
|
1031
|
+
processingPipeline: ['VLM'],
|
|
1032
|
+
},
|
|
1033
|
+
},
|
|
701
1034
|
description: 'VLM model name to use (required when the pipeline is set to VLM)',
|
|
702
1035
|
},
|
|
703
1036
|
{
|
|
@@ -707,23 +1040,108 @@ class Aiteza {
|
|
|
707
1040
|
noDataExpression: true,
|
|
708
1041
|
displayOptions: { show: { resource: ['image'] } },
|
|
709
1042
|
options: [
|
|
710
|
-
{
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
{
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
{
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
1043
|
+
{
|
|
1044
|
+
name: 'Assign to Dataroom',
|
|
1045
|
+
value: 'assign',
|
|
1046
|
+
action: 'Assign image to a dataroom',
|
|
1047
|
+
description: 'Assign a standalone image to a dataroom',
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
name: 'Bulk Delete (Dataroom)',
|
|
1051
|
+
value: 'bulkDelete',
|
|
1052
|
+
action: 'Delete images from a dataroom',
|
|
1053
|
+
description: 'Delete multiple images from a dataroom at once',
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
name: 'Bulk Move',
|
|
1057
|
+
value: 'bulkMove',
|
|
1058
|
+
action: 'Move images to a dataroom',
|
|
1059
|
+
description: 'Move multiple images to another dataroom at once',
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
name: 'Bulk Patch',
|
|
1063
|
+
value: 'bulkPatch',
|
|
1064
|
+
action: 'Patch images in a dataroom',
|
|
1065
|
+
description: 'Update or reprocess multiple images in a dataroom',
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
name: 'Delete (Dataroom)',
|
|
1069
|
+
value: 'deleteDataroom',
|
|
1070
|
+
action: 'Delete image from a dataroom',
|
|
1071
|
+
description: 'Delete an image from a dataroom permanently',
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
name: 'Delete All (Dataroom)',
|
|
1075
|
+
value: 'deleteAllDataroom',
|
|
1076
|
+
action: 'Delete all images from a dataroom',
|
|
1077
|
+
description: 'Delete all images from a dataroom permanently',
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
name: 'Delete Standalone',
|
|
1081
|
+
value: 'deleteStandalone',
|
|
1082
|
+
action: 'Delete a standalone image',
|
|
1083
|
+
description: 'Delete a standalone image permanently',
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
name: 'Get (Dataroom)',
|
|
1087
|
+
value: 'getDataroom',
|
|
1088
|
+
action: 'Get image from a dataroom',
|
|
1089
|
+
description: 'Retrieve an image from a dataroom',
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
name: 'Get Many (Dataroom)',
|
|
1093
|
+
value: 'getManyDataroom',
|
|
1094
|
+
action: 'Get images in a dataroom',
|
|
1095
|
+
description: 'Retrieve a list of images in a dataroom',
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
name: 'Get Many Standalone',
|
|
1099
|
+
value: 'getManyStandalone',
|
|
1100
|
+
action: 'Get standalone images',
|
|
1101
|
+
description: 'Retrieve a list of standalone images',
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
name: 'Get Metadata',
|
|
1105
|
+
value: 'getMetadata',
|
|
1106
|
+
action: 'Get metadata of a standalone image',
|
|
1107
|
+
description: 'Retrieve the metadata of a standalone image',
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
name: 'Get Original URL',
|
|
1111
|
+
value: 'getOriginalUrl',
|
|
1112
|
+
action: 'Get download URL of a standalone image',
|
|
1113
|
+
description: 'Retrieve the original download URL of a standalone image',
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
name: 'Get Original URL (Dataroom)',
|
|
1117
|
+
value: 'getOriginalUrlDataroom',
|
|
1118
|
+
action: 'Get download URL of a dataroom image',
|
|
1119
|
+
description: 'Retrieve the original download URL of an image in a dataroom',
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
name: 'Get Processing Status',
|
|
1123
|
+
value: 'getStatus',
|
|
1124
|
+
action: 'Get processing status of an image',
|
|
1125
|
+
description: 'Retrieve the current processing status of a standalone image',
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
name: 'Move',
|
|
1129
|
+
value: 'move',
|
|
1130
|
+
action: 'Move image to a dataroom',
|
|
1131
|
+
description: 'Move an image to another dataroom',
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
name: 'Upload (Dataroom)',
|
|
1135
|
+
value: 'uploadDataroom',
|
|
1136
|
+
action: 'Upload image to a dataroom',
|
|
1137
|
+
description: 'Upload an image to a dataroom',
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
name: 'Upload Standalone',
|
|
1141
|
+
value: 'uploadStandalone',
|
|
1142
|
+
action: 'Upload a standalone image',
|
|
1143
|
+
description: 'Upload an image without assigning it to a dataroom',
|
|
1144
|
+
},
|
|
727
1145
|
],
|
|
728
1146
|
default: 'getManyDataroom',
|
|
729
1147
|
},
|
|
@@ -735,7 +1153,21 @@ class Aiteza {
|
|
|
735
1153
|
required: true,
|
|
736
1154
|
default: '',
|
|
737
1155
|
displayOptions: {
|
|
738
|
-
show: {
|
|
1156
|
+
show: {
|
|
1157
|
+
resource: ['image'],
|
|
1158
|
+
operation: [
|
|
1159
|
+
'getManyDataroom',
|
|
1160
|
+
'getDataroom',
|
|
1161
|
+
'deleteDataroom',
|
|
1162
|
+
'uploadDataroom',
|
|
1163
|
+
'deleteAllDataroom',
|
|
1164
|
+
'move',
|
|
1165
|
+
'getOriginalUrlDataroom',
|
|
1166
|
+
'bulkDelete',
|
|
1167
|
+
'bulkMove',
|
|
1168
|
+
'bulkPatch',
|
|
1169
|
+
],
|
|
1170
|
+
},
|
|
739
1171
|
},
|
|
740
1172
|
description: 'The dataroom. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
741
1173
|
},
|
|
@@ -744,17 +1176,30 @@ class Aiteza {
|
|
|
744
1176
|
name: 'simplify',
|
|
745
1177
|
type: 'boolean',
|
|
746
1178
|
default: true,
|
|
747
|
-
displayOptions: {
|
|
1179
|
+
displayOptions: {
|
|
1180
|
+
show: {
|
|
1181
|
+
resource: ['image'],
|
|
1182
|
+
operation: ['getDataroom', 'getManyDataroom', 'getManyStandalone', 'getMetadata'],
|
|
1183
|
+
},
|
|
1184
|
+
},
|
|
748
1185
|
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
749
1186
|
},
|
|
750
1187
|
{
|
|
751
1188
|
displayName: 'Image Name or ID',
|
|
752
1189
|
name: 'imageId',
|
|
753
1190
|
type: 'options',
|
|
754
|
-
typeOptions: {
|
|
1191
|
+
typeOptions: {
|
|
1192
|
+
loadOptionsMethod: 'getImagesInDataroom',
|
|
1193
|
+
loadOptionsDependsOn: ['dataroomId'],
|
|
1194
|
+
},
|
|
755
1195
|
required: true,
|
|
756
1196
|
default: '',
|
|
757
|
-
displayOptions: {
|
|
1197
|
+
displayOptions: {
|
|
1198
|
+
show: {
|
|
1199
|
+
resource: ['image'],
|
|
1200
|
+
operation: ['getDataroom', 'deleteDataroom', 'move', 'getOriginalUrlDataroom'],
|
|
1201
|
+
},
|
|
1202
|
+
},
|
|
758
1203
|
description: 'The image. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
759
1204
|
},
|
|
760
1205
|
{
|
|
@@ -765,7 +1210,10 @@ class Aiteza {
|
|
|
765
1210
|
required: true,
|
|
766
1211
|
default: '',
|
|
767
1212
|
displayOptions: {
|
|
768
|
-
show: {
|
|
1213
|
+
show: {
|
|
1214
|
+
resource: ['image'],
|
|
1215
|
+
operation: ['getMetadata', 'getStatus', 'deleteStandalone', 'assign', 'getOriginalUrl'],
|
|
1216
|
+
},
|
|
769
1217
|
},
|
|
770
1218
|
description: 'The standalone image. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
771
1219
|
},
|
|
@@ -776,17 +1224,24 @@ class Aiteza {
|
|
|
776
1224
|
typeOptions: { loadOptionsMethod: 'getDatarooms' },
|
|
777
1225
|
required: true,
|
|
778
1226
|
default: '',
|
|
779
|
-
displayOptions: {
|
|
1227
|
+
displayOptions: {
|
|
1228
|
+
show: { resource: ['image'], operation: ['assign', 'move', 'bulkMove'] },
|
|
1229
|
+
},
|
|
780
1230
|
description: 'The dataroom to assign/move the image(s) to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
781
1231
|
},
|
|
782
1232
|
{
|
|
783
1233
|
displayName: 'Image Names or IDs',
|
|
784
1234
|
name: 'imageIds',
|
|
785
1235
|
type: 'multiOptions',
|
|
786
|
-
typeOptions: {
|
|
1236
|
+
typeOptions: {
|
|
1237
|
+
loadOptionsMethod: 'getImagesInDataroom',
|
|
1238
|
+
loadOptionsDependsOn: ['dataroomId'],
|
|
1239
|
+
},
|
|
787
1240
|
required: true,
|
|
788
1241
|
default: [],
|
|
789
|
-
displayOptions: {
|
|
1242
|
+
displayOptions: {
|
|
1243
|
+
show: { resource: ['image'], operation: ['bulkDelete', 'bulkMove', 'bulkPatch'] },
|
|
1244
|
+
},
|
|
790
1245
|
description: 'Images to operate on. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
791
1246
|
},
|
|
792
1247
|
{
|
|
@@ -805,7 +1260,14 @@ class Aiteza {
|
|
|
805
1260
|
default: {},
|
|
806
1261
|
displayOptions: { show: { resource: ['image'], operation: ['bulkPatch'] } },
|
|
807
1262
|
options: [
|
|
808
|
-
{
|
|
1263
|
+
{
|
|
1264
|
+
displayName: 'Name',
|
|
1265
|
+
name: 'name',
|
|
1266
|
+
type: 'string',
|
|
1267
|
+
default: '',
|
|
1268
|
+
placeholder: 'e.g. Company Logo',
|
|
1269
|
+
description: 'Override the display name for all selected images',
|
|
1270
|
+
},
|
|
809
1271
|
],
|
|
810
1272
|
},
|
|
811
1273
|
{
|
|
@@ -814,7 +1276,9 @@ class Aiteza {
|
|
|
814
1276
|
type: 'collection',
|
|
815
1277
|
placeholder: 'Add Field',
|
|
816
1278
|
default: {},
|
|
817
|
-
displayOptions: {
|
|
1279
|
+
displayOptions: {
|
|
1280
|
+
show: { resource: ['image'], operation: ['getManyDataroom', 'getManyStandalone'] },
|
|
1281
|
+
},
|
|
818
1282
|
options: [
|
|
819
1283
|
{
|
|
820
1284
|
displayName: 'Page',
|
|
@@ -866,7 +1330,9 @@ class Aiteza {
|
|
|
866
1330
|
required: true,
|
|
867
1331
|
default: 'data',
|
|
868
1332
|
placeholder: 'e.g. data',
|
|
869
|
-
displayOptions: {
|
|
1333
|
+
displayOptions: {
|
|
1334
|
+
show: { resource: ['image'], operation: ['uploadDataroom', 'uploadStandalone'] },
|
|
1335
|
+
},
|
|
870
1336
|
description: 'Name of the binary field in the input data that contains the image to upload',
|
|
871
1337
|
},
|
|
872
1338
|
{
|
|
@@ -876,17 +1342,72 @@ class Aiteza {
|
|
|
876
1342
|
noDataExpression: true,
|
|
877
1343
|
displayOptions: { show: { resource: ['webSource'] } },
|
|
878
1344
|
options: [
|
|
879
|
-
{
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
{
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
1345
|
+
{
|
|
1346
|
+
name: 'Add',
|
|
1347
|
+
value: 'add',
|
|
1348
|
+
action: 'Add web source to a dataroom',
|
|
1349
|
+
description: 'Add a web source (URL) to a dataroom for crawling',
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
name: 'Bulk Delete',
|
|
1353
|
+
value: 'bulkDelete',
|
|
1354
|
+
action: 'Delete web sources from a dataroom',
|
|
1355
|
+
description: 'Delete multiple web sources from a dataroom at once',
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
name: 'Bulk Move',
|
|
1359
|
+
value: 'bulkMove',
|
|
1360
|
+
action: 'Move web sources to a dataroom',
|
|
1361
|
+
description: 'Move multiple web sources to another dataroom at once',
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
name: 'Bulk Patch',
|
|
1365
|
+
value: 'bulkPatch',
|
|
1366
|
+
action: 'Patch web sources in a dataroom',
|
|
1367
|
+
description: 'Update or rescan multiple web sources in a dataroom',
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
name: 'Delete',
|
|
1371
|
+
value: 'delete',
|
|
1372
|
+
action: 'Delete a web source',
|
|
1373
|
+
description: 'Delete a web source from a dataroom permanently',
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
name: 'Delete All',
|
|
1377
|
+
value: 'deleteAll',
|
|
1378
|
+
action: 'Delete all web sources from a dataroom',
|
|
1379
|
+
description: 'Delete all web sources from a dataroom permanently',
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
name: 'Get',
|
|
1383
|
+
value: 'get',
|
|
1384
|
+
action: 'Get a web source',
|
|
1385
|
+
description: 'Retrieve a web source from a dataroom',
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
name: 'Get Many',
|
|
1389
|
+
value: 'getMany',
|
|
1390
|
+
action: 'Get web sources in a dataroom',
|
|
1391
|
+
description: 'Retrieve a list of web sources in a dataroom',
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
name: 'Get URLs',
|
|
1395
|
+
value: 'getUrls',
|
|
1396
|
+
action: 'Get crawled URLs of a web source',
|
|
1397
|
+
description: 'Retrieve all crawled URLs belonging to a web source',
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
name: 'Move',
|
|
1401
|
+
value: 'move',
|
|
1402
|
+
action: 'Move web source to a dataroom',
|
|
1403
|
+
description: 'Move a web source to another dataroom',
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
name: 'Rescan',
|
|
1407
|
+
value: 'rescan',
|
|
1408
|
+
action: 'Rescan a web source',
|
|
1409
|
+
description: 'Trigger a rescan of a web source to fetch updated content',
|
|
1410
|
+
},
|
|
890
1411
|
],
|
|
891
1412
|
default: 'getMany',
|
|
892
1413
|
},
|
|
@@ -904,10 +1425,18 @@ class Aiteza {
|
|
|
904
1425
|
displayName: 'Web Source Name or ID',
|
|
905
1426
|
name: 'webSourceId',
|
|
906
1427
|
type: 'options',
|
|
907
|
-
typeOptions: {
|
|
1428
|
+
typeOptions: {
|
|
1429
|
+
loadOptionsMethod: 'getWebSourcesInDataroom',
|
|
1430
|
+
loadOptionsDependsOn: ['dataroomId'],
|
|
1431
|
+
},
|
|
908
1432
|
required: true,
|
|
909
1433
|
default: '',
|
|
910
|
-
displayOptions: {
|
|
1434
|
+
displayOptions: {
|
|
1435
|
+
show: {
|
|
1436
|
+
resource: ['webSource'],
|
|
1437
|
+
operation: ['get', 'delete', 'rescan', 'move', 'getUrls'],
|
|
1438
|
+
},
|
|
1439
|
+
},
|
|
911
1440
|
description: 'The web source. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
912
1441
|
},
|
|
913
1442
|
{
|
|
@@ -924,10 +1453,15 @@ class Aiteza {
|
|
|
924
1453
|
displayName: 'Web Source Names or IDs',
|
|
925
1454
|
name: 'webSourceIds',
|
|
926
1455
|
type: 'multiOptions',
|
|
927
|
-
typeOptions: {
|
|
1456
|
+
typeOptions: {
|
|
1457
|
+
loadOptionsMethod: 'getWebSourcesInDataroom',
|
|
1458
|
+
loadOptionsDependsOn: ['dataroomId'],
|
|
1459
|
+
},
|
|
928
1460
|
required: true,
|
|
929
1461
|
default: [],
|
|
930
|
-
displayOptions: {
|
|
1462
|
+
displayOptions: {
|
|
1463
|
+
show: { resource: ['webSource'], operation: ['bulkDelete', 'bulkMove', 'bulkPatch'] },
|
|
1464
|
+
},
|
|
931
1465
|
description: 'Web sources to operate on. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
932
1466
|
},
|
|
933
1467
|
{
|
|
@@ -946,10 +1480,34 @@ class Aiteza {
|
|
|
946
1480
|
default: {},
|
|
947
1481
|
displayOptions: { show: { resource: ['webSource'], operation: ['bulkPatch'] } },
|
|
948
1482
|
options: [
|
|
949
|
-
{
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1483
|
+
{
|
|
1484
|
+
displayName: 'Name',
|
|
1485
|
+
name: 'name',
|
|
1486
|
+
type: 'string',
|
|
1487
|
+
default: '',
|
|
1488
|
+
description: 'Override the display name for all selected web sources',
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
displayName: 'Include Subpages',
|
|
1492
|
+
name: 'includeSubpages',
|
|
1493
|
+
type: 'boolean',
|
|
1494
|
+
default: false,
|
|
1495
|
+
description: 'Whether to crawl subpages of the URL',
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
displayName: 'Max Subpages',
|
|
1499
|
+
name: 'maxSubpages',
|
|
1500
|
+
type: 'number',
|
|
1501
|
+
default: 10,
|
|
1502
|
+
description: 'Maximum number of subpages to crawl',
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
displayName: 'Max Depth',
|
|
1506
|
+
name: 'maxDepth',
|
|
1507
|
+
type: 'number',
|
|
1508
|
+
default: 1,
|
|
1509
|
+
description: 'Maximum link depth to follow when crawling',
|
|
1510
|
+
},
|
|
953
1511
|
],
|
|
954
1512
|
},
|
|
955
1513
|
{
|
|
@@ -1094,18 +1652,73 @@ class Aiteza {
|
|
|
1094
1652
|
noDataExpression: true,
|
|
1095
1653
|
displayOptions: { show: { resource: ['chat'] } },
|
|
1096
1654
|
options: [
|
|
1097
|
-
{
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1655
|
+
{
|
|
1656
|
+
name: 'Create',
|
|
1657
|
+
value: 'create',
|
|
1658
|
+
action: 'Create a chat',
|
|
1659
|
+
description: 'Create a new chat',
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
name: 'Delete',
|
|
1663
|
+
value: 'delete',
|
|
1664
|
+
action: 'Delete a chat',
|
|
1665
|
+
description: 'Delete a chat permanently',
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
name: 'Delete Messages',
|
|
1669
|
+
value: 'deleteMessages',
|
|
1670
|
+
action: 'Delete messages in a chat',
|
|
1671
|
+
description: 'Delete all messages in a chat',
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
name: 'Estimate Cost',
|
|
1675
|
+
value: 'estimate',
|
|
1676
|
+
action: 'Estimate cost of a chat request',
|
|
1677
|
+
description: 'Estimate the token cost before sending a prompt',
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
name: 'Generate',
|
|
1681
|
+
value: 'generate',
|
|
1682
|
+
action: 'Generate a response in a chat',
|
|
1683
|
+
description: 'Send a prompt and generate an AI response in a chat',
|
|
1684
|
+
},
|
|
1102
1685
|
{ name: 'Get', value: 'get', action: 'Get a chat', description: 'Retrieve a chat by ID' },
|
|
1103
|
-
{
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1686
|
+
{
|
|
1687
|
+
name: 'Get Latest Message',
|
|
1688
|
+
value: 'getLatestMessage',
|
|
1689
|
+
action: 'Get latest message in a chat',
|
|
1690
|
+
description: 'Retrieve the most recent message in a chat',
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
name: 'Get Many',
|
|
1694
|
+
value: 'getMany',
|
|
1695
|
+
action: 'Get many chats',
|
|
1696
|
+
description: 'Retrieve a list of chats',
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
name: 'Get Message',
|
|
1700
|
+
value: 'getMessage',
|
|
1701
|
+
action: 'Get a message in a chat',
|
|
1702
|
+
description: 'Retrieve a specific message from a chat',
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
name: 'Get Messages',
|
|
1706
|
+
value: 'getMessages',
|
|
1707
|
+
action: 'Get messages in a chat',
|
|
1708
|
+
description: 'Retrieve all messages in a chat',
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
name: 'Rename',
|
|
1712
|
+
value: 'rename',
|
|
1713
|
+
action: 'Rename a chat',
|
|
1714
|
+
description: 'Update the name of a chat',
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
name: 'Temp Chat',
|
|
1718
|
+
value: 'tempChat',
|
|
1719
|
+
action: 'Run a temporary chat',
|
|
1720
|
+
description: 'Run an ephemeral AI query without saving the conversation',
|
|
1721
|
+
},
|
|
1109
1722
|
],
|
|
1110
1723
|
default: 'generate',
|
|
1111
1724
|
},
|
|
@@ -1126,7 +1739,19 @@ class Aiteza {
|
|
|
1126
1739
|
required: true,
|
|
1127
1740
|
default: '',
|
|
1128
1741
|
displayOptions: {
|
|
1129
|
-
show: {
|
|
1742
|
+
show: {
|
|
1743
|
+
resource: ['chat'],
|
|
1744
|
+
operation: [
|
|
1745
|
+
'get',
|
|
1746
|
+
'getMessages',
|
|
1747
|
+
'delete',
|
|
1748
|
+
'generate',
|
|
1749
|
+
'rename',
|
|
1750
|
+
'deleteMessages',
|
|
1751
|
+
'getLatestMessage',
|
|
1752
|
+
'getMessage',
|
|
1753
|
+
],
|
|
1754
|
+
},
|
|
1130
1755
|
},
|
|
1131
1756
|
description: 'The chat to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
1132
1757
|
},
|
|
@@ -1135,7 +1760,9 @@ class Aiteza {
|
|
|
1135
1760
|
name: 'simplify',
|
|
1136
1761
|
type: 'boolean',
|
|
1137
1762
|
default: true,
|
|
1138
|
-
displayOptions: {
|
|
1763
|
+
displayOptions: {
|
|
1764
|
+
show: { resource: ['chat'], operation: ['get', 'getMany', 'generate', 'tempChat'] },
|
|
1765
|
+
},
|
|
1139
1766
|
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
1140
1767
|
},
|
|
1141
1768
|
{
|
|
@@ -1381,10 +2008,30 @@ class Aiteza {
|
|
|
1381
2008
|
noDataExpression: true,
|
|
1382
2009
|
displayOptions: { show: { resource: ['model'] } },
|
|
1383
2010
|
options: [
|
|
1384
|
-
{
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
2011
|
+
{
|
|
2012
|
+
name: 'Get',
|
|
2013
|
+
value: 'get',
|
|
2014
|
+
action: 'Get a model',
|
|
2015
|
+
description: 'Retrieve an AI model by ID',
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
name: 'Get Many',
|
|
2019
|
+
value: 'getMany',
|
|
2020
|
+
action: 'Get many models',
|
|
2021
|
+
description: 'Retrieve a list of available AI models',
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
name: 'Get Processing Pipelines',
|
|
2025
|
+
value: 'getProcessing',
|
|
2026
|
+
action: 'Get processing pipelines',
|
|
2027
|
+
description: 'Retrieve a list of available document processing pipelines',
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
name: 'Get VLM Models',
|
|
2031
|
+
value: 'getVlm',
|
|
2032
|
+
action: 'Get VLM models',
|
|
2033
|
+
description: 'Retrieve a list of available vision language models',
|
|
2034
|
+
},
|
|
1388
2035
|
],
|
|
1389
2036
|
default: 'getMany',
|
|
1390
2037
|
},
|
|
@@ -1405,7 +2052,12 @@ class Aiteza {
|
|
|
1405
2052
|
noDataExpression: true,
|
|
1406
2053
|
displayOptions: { show: { resource: ['search'] } },
|
|
1407
2054
|
options: [
|
|
1408
|
-
{
|
|
2055
|
+
{
|
|
2056
|
+
name: 'Hybrid Search',
|
|
2057
|
+
value: 'hybridSearch',
|
|
2058
|
+
action: 'Run a hybrid search',
|
|
2059
|
+
description: 'Perform a hybrid (vector + full-text) search across datarooms',
|
|
2060
|
+
},
|
|
1409
2061
|
],
|
|
1410
2062
|
default: 'hybridSearch',
|
|
1411
2063
|
},
|
|
@@ -1504,7 +2156,12 @@ class Aiteza {
|
|
|
1504
2156
|
noDataExpression: true,
|
|
1505
2157
|
displayOptions: { show: { resource: ['identity'] } },
|
|
1506
2158
|
options: [
|
|
1507
|
-
{
|
|
2159
|
+
{
|
|
2160
|
+
name: 'Search',
|
|
2161
|
+
value: 'search',
|
|
2162
|
+
action: 'Search users and groups',
|
|
2163
|
+
description: 'Search for users and groups by name or username',
|
|
2164
|
+
},
|
|
1508
2165
|
],
|
|
1509
2166
|
default: 'search',
|
|
1510
2167
|
},
|
|
@@ -1568,16 +2225,22 @@ class Aiteza {
|
|
|
1568
2225
|
const triggerToken = (0, GenericFunctions_1.getUpstreamAuthToken)(this);
|
|
1569
2226
|
if (!triggerToken) {
|
|
1570
2227
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No auth token was found in the input data. ' +
|
|
1571
|
-
|
|
2228
|
+
"Make sure this node is connected to an Aiteza Trigger node so its '_authToken' is forwarded.", {
|
|
2229
|
+
description: "Connect this node downstream of an Aiteza Trigger node, or switch the 'Authentication' field to 'OAuth2 Credentials'.",
|
|
2230
|
+
});
|
|
1572
2231
|
}
|
|
1573
2232
|
if ((0, GenericFunctions_1.isJwtExpired)(triggerToken)) {
|
|
1574
2233
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The auth token forwarded by the Aiteza Trigger has expired. ' +
|
|
1575
|
-
'User tokens are short-lived (typically ~5 minutes).', {
|
|
2234
|
+
'User tokens are short-lived (typically ~5 minutes).', {
|
|
2235
|
+
description: 'Re-trigger the workflow, shorten its runtime, or have Aiteza mint a longer-lived token for delegated workflow execution.',
|
|
2236
|
+
});
|
|
1576
2237
|
}
|
|
1577
2238
|
const paramBaseUrl = this.getNodeParameter('baseUrl', 0, '').replace(/\/+$/, '');
|
|
1578
2239
|
const baseUrl = paramBaseUrl || (0, GenericFunctions_1.getUpstreamBaseUrl)(this) || '';
|
|
1579
2240
|
if (!baseUrl) {
|
|
1580
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(),
|
|
2241
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), "The 'AITEZA Base URL' is required when using trigger authentication.", {
|
|
2242
|
+
description: "Set the 'AITEZA Base URL' field on this node, or configure it on the upstream Aiteza Trigger node so it gets forwarded as '_baseUrl'.",
|
|
2243
|
+
});
|
|
1581
2244
|
}
|
|
1582
2245
|
authCtx = { baseUrl, triggerToken };
|
|
1583
2246
|
}
|
|
@@ -1590,7 +2253,10 @@ class Aiteza {
|
|
|
1590
2253
|
};
|
|
1591
2254
|
const uploadRequest = async (reqOpts) => {
|
|
1592
2255
|
if (authCtx?.triggerToken) {
|
|
1593
|
-
reqOpts.headers = {
|
|
2256
|
+
reqOpts.headers = {
|
|
2257
|
+
...(reqOpts.headers ?? {}),
|
|
2258
|
+
Authorization: `Bearer ${authCtx.triggerToken}`,
|
|
2259
|
+
};
|
|
1594
2260
|
}
|
|
1595
2261
|
if (reqOpts.body instanceof form_data_1.default) {
|
|
1596
2262
|
reqOpts.headers = { ...(reqOpts.headers ?? {}), ...reqOpts.body.getHeaders() };
|
|
@@ -1603,7 +2269,19 @@ class Aiteza {
|
|
|
1603
2269
|
const buildPaginationQs = (idx, extraKeys = []) => {
|
|
1604
2270
|
const fields = this.getNodeParameter('additionalFields', idx, {});
|
|
1605
2271
|
const qs = {};
|
|
1606
|
-
for (const key of [
|
|
2272
|
+
for (const key of [
|
|
2273
|
+
'page',
|
|
2274
|
+
'size',
|
|
2275
|
+
'search_term',
|
|
2276
|
+
'q',
|
|
2277
|
+
'sortBy',
|
|
2278
|
+
'sortOrder',
|
|
2279
|
+
'query',
|
|
2280
|
+
'name',
|
|
2281
|
+
'first',
|
|
2282
|
+
'max',
|
|
2283
|
+
...extraKeys,
|
|
2284
|
+
]) {
|
|
1607
2285
|
if (fields[key] !== undefined && fields[key] !== '')
|
|
1608
2286
|
qs[key] = fields[key];
|
|
1609
2287
|
}
|
|
@@ -1633,7 +2311,10 @@ class Aiteza {
|
|
|
1633
2311
|
url += `&vlmModel=${encodeURIComponent(vlmModel)}`;
|
|
1634
2312
|
return url;
|
|
1635
2313
|
};
|
|
1636
|
-
const splitCsv = (val) => val
|
|
2314
|
+
const splitCsv = (val) => val
|
|
2315
|
+
.split(',')
|
|
2316
|
+
.map((s) => s.trim())
|
|
2317
|
+
.filter(Boolean);
|
|
1637
2318
|
const toIdArray = (val) => {
|
|
1638
2319
|
if (Array.isArray(val))
|
|
1639
2320
|
return val.map((v) => String(v).trim()).filter(Boolean);
|
|
@@ -1721,7 +2402,9 @@ class Aiteza {
|
|
|
1721
2402
|
const id = this.getNodeParameter('dataroomId', i);
|
|
1722
2403
|
const idsRaw = this.getNodeParameter('connectedDataroomIds', i);
|
|
1723
2404
|
const connectedDataroomIds = toIdArray(idsRaw);
|
|
1724
|
-
responseData = await apiReq('PUT', `/api/dataroom/${id}/connected`, {
|
|
2405
|
+
responseData = await apiReq('PUT', `/api/dataroom/${id}/connected`, {
|
|
2406
|
+
connectedDataroomIds,
|
|
2407
|
+
});
|
|
1725
2408
|
}
|
|
1726
2409
|
else if (operation === 'getChats') {
|
|
1727
2410
|
const id = this.getNodeParameter('dataroomId', i);
|
|
@@ -1745,19 +2428,30 @@ class Aiteza {
|
|
|
1745
2428
|
const usernames = splitCsv(this.getNodeParameter('usernames', i));
|
|
1746
2429
|
const role = this.getNodeParameter('role', i);
|
|
1747
2430
|
const inherit = this.getNodeParameter('inherit', i, false);
|
|
1748
|
-
responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/members`, {
|
|
2431
|
+
responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/members`, {
|
|
2432
|
+
user: usernames,
|
|
2433
|
+
role,
|
|
2434
|
+
inherit,
|
|
2435
|
+
});
|
|
1749
2436
|
}
|
|
1750
2437
|
else if (operation === 'remove') {
|
|
1751
2438
|
const usernames = splitCsv(this.getNodeParameter('usernames', i));
|
|
1752
2439
|
const inherit = this.getNodeParameter('inherit', i, false);
|
|
1753
|
-
await apiReq('DELETE', `/api/dataroom/${dataroomId}/members`, {
|
|
2440
|
+
await apiReq('DELETE', `/api/dataroom/${dataroomId}/members`, {
|
|
2441
|
+
user: usernames,
|
|
2442
|
+
inherit,
|
|
2443
|
+
});
|
|
1754
2444
|
responseData = { deleted: true };
|
|
1755
2445
|
}
|
|
1756
2446
|
else if (operation === 'updateRole') {
|
|
1757
2447
|
const usernames = splitCsv(this.getNodeParameter('usernames', i));
|
|
1758
2448
|
const role = this.getNodeParameter('role', i);
|
|
1759
2449
|
const inherit = this.getNodeParameter('inherit', i, false);
|
|
1760
|
-
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/members`, {
|
|
2450
|
+
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/members`, {
|
|
2451
|
+
user: usernames,
|
|
2452
|
+
role,
|
|
2453
|
+
inherit,
|
|
2454
|
+
});
|
|
1761
2455
|
}
|
|
1762
2456
|
}
|
|
1763
2457
|
else if (resource === 'dataroomGroup') {
|
|
@@ -1773,19 +2467,30 @@ class Aiteza {
|
|
|
1773
2467
|
const groupPath = this.getNodeParameter('groupPath', i);
|
|
1774
2468
|
const role = this.getNodeParameter('role', i);
|
|
1775
2469
|
const inherit = this.getNodeParameter('inherit', i, false);
|
|
1776
|
-
responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/groups`, {
|
|
2470
|
+
responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/groups`, {
|
|
2471
|
+
group: groupPath,
|
|
2472
|
+
role,
|
|
2473
|
+
inherit,
|
|
2474
|
+
});
|
|
1777
2475
|
}
|
|
1778
2476
|
else if (operation === 'remove') {
|
|
1779
2477
|
const groupPath = this.getNodeParameter('groupPath', i);
|
|
1780
2478
|
const inherit = this.getNodeParameter('inherit', i, false);
|
|
1781
|
-
await apiReq('DELETE', `/api/dataroom/${dataroomId}/groups`, {
|
|
2479
|
+
await apiReq('DELETE', `/api/dataroom/${dataroomId}/groups`, {
|
|
2480
|
+
group: groupPath,
|
|
2481
|
+
inherit,
|
|
2482
|
+
});
|
|
1782
2483
|
responseData = { deleted: true };
|
|
1783
2484
|
}
|
|
1784
2485
|
else if (operation === 'updateRole') {
|
|
1785
2486
|
const groupPath = this.getNodeParameter('groupPath', i);
|
|
1786
2487
|
const role = this.getNodeParameter('role', i);
|
|
1787
2488
|
const inherit = this.getNodeParameter('inherit', i, false);
|
|
1788
|
-
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/groups`, {
|
|
2489
|
+
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/groups`, {
|
|
2490
|
+
group: groupPath,
|
|
2491
|
+
role,
|
|
2492
|
+
inherit,
|
|
2493
|
+
});
|
|
1789
2494
|
}
|
|
1790
2495
|
}
|
|
1791
2496
|
else if (resource === 'file') {
|
|
@@ -1812,7 +2517,9 @@ class Aiteza {
|
|
|
1812
2517
|
}
|
|
1813
2518
|
else if (operation === 'getContent') {
|
|
1814
2519
|
const fileId = this.getNodeParameter('fileId', i);
|
|
1815
|
-
responseData = await apiReq('GET', `/api/files/${fileId}/content`, {}, {}, {
|
|
2520
|
+
responseData = await apiReq('GET', `/api/files/${fileId}/content`, {}, {}, {
|
|
2521
|
+
json: false,
|
|
2522
|
+
});
|
|
1816
2523
|
if (typeof responseData === 'string') {
|
|
1817
2524
|
responseData = { content: responseData };
|
|
1818
2525
|
}
|
|
@@ -1864,7 +2571,9 @@ class Aiteza {
|
|
|
1864
2571
|
else if (operation === 'assign') {
|
|
1865
2572
|
const fileId = this.getNodeParameter('fileId', i);
|
|
1866
2573
|
const targetDataroomId = this.getNodeParameter('targetDataroomId', i);
|
|
1867
|
-
responseData = await apiReq('PATCH', `/api/files/${fileId}/assign`, {
|
|
2574
|
+
responseData = await apiReq('PATCH', `/api/files/${fileId}/assign`, {
|
|
2575
|
+
dataroomId: targetDataroomId,
|
|
2576
|
+
});
|
|
1868
2577
|
}
|
|
1869
2578
|
else if (operation === 'move') {
|
|
1870
2579
|
const dataroomId = this.getNodeParameter('dataroomId', i);
|
|
@@ -1903,7 +2612,10 @@ class Aiteza {
|
|
|
1903
2612
|
const ids = toIdArray(this.getNodeParameter('fileIds', i, []));
|
|
1904
2613
|
const targetDataroom = this.getNodeParameter('targetDataroomId', i);
|
|
1905
2614
|
(0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'File IDs');
|
|
1906
|
-
responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/files/bulk`, {
|
|
2615
|
+
responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/files/bulk`, {
|
|
2616
|
+
ids,
|
|
2617
|
+
targetDataroom,
|
|
2618
|
+
});
|
|
1907
2619
|
}
|
|
1908
2620
|
else if (operation === 'bulkPatch') {
|
|
1909
2621
|
const dataroomId = this.getNodeParameter('dataroomId', i);
|
|
@@ -1980,7 +2692,9 @@ class Aiteza {
|
|
|
1980
2692
|
else if (operation === 'assign') {
|
|
1981
2693
|
const imageId = this.getNodeParameter('imageId', i);
|
|
1982
2694
|
const targetDataroomId = this.getNodeParameter('targetDataroomId', i);
|
|
1983
|
-
responseData = await apiReq('PATCH', `/api/images/${imageId}/assign`, {
|
|
2695
|
+
responseData = await apiReq('PATCH', `/api/images/${imageId}/assign`, {
|
|
2696
|
+
dataroomId: targetDataroomId,
|
|
2697
|
+
});
|
|
1984
2698
|
}
|
|
1985
2699
|
else if (operation === 'move') {
|
|
1986
2700
|
const dataroomId = this.getNodeParameter('dataroomId', i);
|
|
@@ -2009,7 +2723,10 @@ class Aiteza {
|
|
|
2009
2723
|
const ids = toIdArray(this.getNodeParameter('imageIds', i, []));
|
|
2010
2724
|
const targetDataroom = this.getNodeParameter('targetDataroomId', i);
|
|
2011
2725
|
(0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Image IDs');
|
|
2012
|
-
responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/images/bulk`, {
|
|
2726
|
+
responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/images/bulk`, {
|
|
2727
|
+
ids,
|
|
2728
|
+
targetDataroom,
|
|
2729
|
+
});
|
|
2013
2730
|
}
|
|
2014
2731
|
else if (operation === 'bulkPatch') {
|
|
2015
2732
|
const dataroomId = this.getNodeParameter('dataroomId', i);
|
|
@@ -2017,7 +2734,11 @@ class Aiteza {
|
|
|
2017
2734
|
const reprocess = this.getNodeParameter('reprocess', i, false);
|
|
2018
2735
|
const patchOptions = this.getNodeParameter('patchOptions', i, {});
|
|
2019
2736
|
(0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Image IDs');
|
|
2020
|
-
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/images/bulk`, {
|
|
2737
|
+
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/images/bulk`, {
|
|
2738
|
+
ids,
|
|
2739
|
+
reprocess,
|
|
2740
|
+
...patchOptions,
|
|
2741
|
+
});
|
|
2021
2742
|
}
|
|
2022
2743
|
}
|
|
2023
2744
|
else if (resource === 'webSource') {
|
|
@@ -2068,14 +2789,21 @@ class Aiteza {
|
|
|
2068
2789
|
const ids = toIdArray(this.getNodeParameter('webSourceIds', i, []));
|
|
2069
2790
|
const targetDataroom = this.getNodeParameter('targetDataroomId', i);
|
|
2070
2791
|
(0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Web Source IDs');
|
|
2071
|
-
responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/websites/bulk`, {
|
|
2792
|
+
responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/websites/bulk`, {
|
|
2793
|
+
ids,
|
|
2794
|
+
targetDataroom,
|
|
2795
|
+
});
|
|
2072
2796
|
}
|
|
2073
2797
|
else if (operation === 'bulkPatch') {
|
|
2074
2798
|
const ids = toIdArray(this.getNodeParameter('webSourceIds', i, []));
|
|
2075
2799
|
const reprocess = this.getNodeParameter('reprocess', i, false);
|
|
2076
2800
|
const patchOptions = this.getNodeParameter('patchOptions', i, {});
|
|
2077
2801
|
(0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Web Source IDs');
|
|
2078
|
-
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/websites/bulk`, {
|
|
2802
|
+
responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/websites/bulk`, {
|
|
2803
|
+
ids,
|
|
2804
|
+
reprocess,
|
|
2805
|
+
...patchOptions,
|
|
2806
|
+
});
|
|
2079
2807
|
}
|
|
2080
2808
|
}
|
|
2081
2809
|
else if (resource === 'chat') {
|
|
@@ -2088,7 +2816,9 @@ class Aiteza {
|
|
|
2088
2816
|
responseData = await apiReq('GET', `/api/chat/${chatId}`, {}, {}, { timeout: CHAT_REQUEST_TIMEOUT_MS });
|
|
2089
2817
|
}
|
|
2090
2818
|
else if (operation === 'getMany') {
|
|
2091
|
-
responseData = await apiReq('GET', '/api/chat', {}, buildPaginationQs(i), {
|
|
2819
|
+
responseData = await apiReq('GET', '/api/chat', {}, buildPaginationQs(i), {
|
|
2820
|
+
timeout: CHAT_REQUEST_TIMEOUT_MS,
|
|
2821
|
+
});
|
|
2092
2822
|
}
|
|
2093
2823
|
else if (operation === 'getMessages') {
|
|
2094
2824
|
const chatId = this.getNodeParameter('chatId', i);
|
|
@@ -2133,7 +2863,12 @@ class Aiteza {
|
|
|
2133
2863
|
}
|
|
2134
2864
|
}
|
|
2135
2865
|
}
|
|
2136
|
-
for (const key of [
|
|
2866
|
+
for (const key of [
|
|
2867
|
+
'parentDatarooms',
|
|
2868
|
+
'subDatarooms',
|
|
2869
|
+
'webSearchEnabled',
|
|
2870
|
+
'workflowId',
|
|
2871
|
+
]) {
|
|
2137
2872
|
if (additionalFields[key] !== undefined && additionalFields[key] !== '')
|
|
2138
2873
|
form.append(key, String(additionalFields[key]));
|
|
2139
2874
|
}
|
|
@@ -2145,7 +2880,10 @@ class Aiteza {
|
|
|
2145
2880
|
timeout: CHAT_REQUEST_TIMEOUT_MS,
|
|
2146
2881
|
returnFullResponse: true,
|
|
2147
2882
|
});
|
|
2148
|
-
responseData =
|
|
2883
|
+
responseData =
|
|
2884
|
+
typeof response === 'object' && response.body !== undefined
|
|
2885
|
+
? response.body
|
|
2886
|
+
: response;
|
|
2149
2887
|
const xChatId = response?.headers?.['x-chat-id'];
|
|
2150
2888
|
if (xChatId && typeof responseData === 'object' && responseData !== null) {
|
|
2151
2889
|
responseData._chatId = xChatId;
|
|
@@ -2165,7 +2903,12 @@ class Aiteza {
|
|
|
2165
2903
|
}
|
|
2166
2904
|
}
|
|
2167
2905
|
}
|
|
2168
|
-
for (const key of [
|
|
2906
|
+
for (const key of [
|
|
2907
|
+
'parentDatarooms',
|
|
2908
|
+
'subDatarooms',
|
|
2909
|
+
'webSearchEnabled',
|
|
2910
|
+
'workflowId',
|
|
2911
|
+
]) {
|
|
2169
2912
|
if (additionalFields[key] !== undefined && additionalFields[key] !== '')
|
|
2170
2913
|
form.append(key, String(additionalFields[key]));
|
|
2171
2914
|
}
|
|
@@ -2191,7 +2934,12 @@ class Aiteza {
|
|
|
2191
2934
|
}
|
|
2192
2935
|
}
|
|
2193
2936
|
}
|
|
2194
|
-
for (const key of [
|
|
2937
|
+
for (const key of [
|
|
2938
|
+
'webSearchEnabled',
|
|
2939
|
+
'subDatarooms',
|
|
2940
|
+
'parentDatarooms',
|
|
2941
|
+
'workflowId',
|
|
2942
|
+
]) {
|
|
2195
2943
|
if (additionalFields[key] !== undefined && additionalFields[key] !== '')
|
|
2196
2944
|
form.append(key, String(additionalFields[key]));
|
|
2197
2945
|
}
|
|
@@ -2231,7 +2979,12 @@ class Aiteza {
|
|
|
2231
2979
|
const dataroomIds = toIdArray(dataroomIdsRaw);
|
|
2232
2980
|
if (dataroomIds.length > 0)
|
|
2233
2981
|
body.dataroomIds = dataroomIds;
|
|
2234
|
-
for (const key of [
|
|
2982
|
+
for (const key of [
|
|
2983
|
+
'topK',
|
|
2984
|
+
'vectorThreshold',
|
|
2985
|
+
'enableReranking',
|
|
2986
|
+
'enableFullTextSearch',
|
|
2987
|
+
]) {
|
|
2235
2988
|
if (additionalFields[key] !== undefined)
|
|
2236
2989
|
body[key] = additionalFields[key];
|
|
2237
2990
|
}
|
|
@@ -2269,11 +3022,23 @@ class Aiteza {
|
|
|
2269
3022
|
try {
|
|
2270
3023
|
shouldSimplify = this.getNodeParameter('simplify', i, true);
|
|
2271
3024
|
}
|
|
2272
|
-
catch {
|
|
3025
|
+
catch {
|
|
3026
|
+
/* parameter may not exist for all operations */
|
|
3027
|
+
}
|
|
2273
3028
|
}
|
|
2274
3029
|
const outputItems = Array.isArray(responseData)
|
|
2275
|
-
? responseData.map((item) => ({
|
|
2276
|
-
|
|
3030
|
+
? responseData.map((item) => ({
|
|
3031
|
+
json: shouldSimplify ? simplifyItem(item) : item,
|
|
3032
|
+
}))
|
|
3033
|
+
: [
|
|
3034
|
+
{
|
|
3035
|
+
json: typeof responseData === 'object'
|
|
3036
|
+
? shouldSimplify
|
|
3037
|
+
? simplifyItem(responseData)
|
|
3038
|
+
: responseData
|
|
3039
|
+
: { result: responseData },
|
|
3040
|
+
},
|
|
3041
|
+
];
|
|
2277
3042
|
returnData.push(...outputItems);
|
|
2278
3043
|
}
|
|
2279
3044
|
}
|