@aiteza/n8n-nodes-aiteza 0.4.0 → 1.0.1

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.
@@ -83,20 +83,90 @@ class Aiteza {
83
83
  noDataExpression: true,
84
84
  displayOptions: { show: { resource: ['dataroom'] } },
85
85
  options: [
86
- { name: 'Create', value: 'create', action: 'Create a dataroom', description: 'Create a new dataroom' },
87
- { name: 'Delete', value: 'delete', action: 'Delete a dataroom', description: 'Delete one or more datarooms permanently' },
88
- { name: 'Get', value: 'get', action: 'Get a dataroom', description: 'Retrieve a dataroom by ID' },
89
- { name: 'Get Chats', value: 'getChats', action: 'Get chats in a dataroom', description: 'Retrieve a list of chats connected to a dataroom' },
90
- { name: 'Get Children', value: 'getChildren', action: 'Get children of a dataroom', description: 'Retrieve child datarooms within a dataroom' },
91
- { name: 'Get Connected', value: 'getConnected', action: 'Get connected datarooms', description: 'Retrieve the default connected datarooms for a dataroom' },
92
- { name: 'Get Models', value: 'getModels', action: 'Get models in a dataroom', description: 'Retrieve AI models available in a dataroom' },
93
- { name: 'Get Recent', value: 'getRecent', action: 'Get recent datarooms', description: 'Retrieve recently accessed datarooms' },
94
- { name: 'Get Starred', value: 'getStarred', action: 'Get starred datarooms', description: 'Retrieve your starred datarooms' },
95
- { name: 'Search', value: 'search', action: 'Search datarooms', description: 'Search for datarooms by name' },
96
- { name: 'Set Connected', value: 'setConnected', action: 'Set connected datarooms', description: 'Set the default connected datarooms for a dataroom' },
97
- { name: 'Star', value: 'star', action: 'Star a dataroom', description: 'Add a dataroom to your starred list' },
98
- { name: 'Unstar', value: 'unstar', action: 'Unstar a dataroom', description: 'Remove a dataroom from your starred list' },
99
- { name: 'Update', value: 'update', action: 'Update a dataroom', description: 'Update a dataroom\'s name and settings' },
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: { show: { resource: ['dataroom'], operation: ['get', 'update', 'star', 'unstar', 'getConnected', 'setConnected', 'getChats', 'getModels'] } },
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: { show: { resource: ['dataroom'], operation: ['get', 'search', 'getRecent', 'getStarred', 'getChildren'] } },
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
- { name: 'Private', value: 'private', description: 'Access is restricted to members only' },
198
- { name: 'Inherit', value: 'inherit', description: 'Inherit access settings from the parent dataroom' },
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
- { name: 'Add', value: 'add', action: 'Add member to a dataroom', description: 'Add one or more users as members of a dataroom' },
348
- { name: 'Get Many', value: 'getMany', action: 'Get members of a dataroom', description: 'Retrieve a list of members in a dataroom' },
349
- { name: 'Remove', value: 'remove', action: 'Remove member from a dataroom', description: 'Remove one or more members from a dataroom' },
350
- { name: 'Update Role', value: 'updateRole', action: 'Update member role in a dataroom', description: 'Update the role of one or more members in a dataroom' },
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: { show: { resource: ['dataroomMember'], operation: ['add', 'remove', 'updateRole'] } },
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: { show: { resource: ['dataroomMember'], operation: ['add', 'updateRole'] } },
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: { show: { resource: ['dataroomMember'], operation: ['add', 'remove', 'updateRole'] } },
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
- { name: 'Add', value: 'add', action: 'Add group to a dataroom', description: 'Assign a group to a dataroom with a role' },
413
- { name: 'Get Many', value: 'getMany', action: 'Get groups of a dataroom', description: 'Retrieve a list of groups assigned to a dataroom' },
414
- { name: 'Remove', value: 'remove', action: 'Remove group from a dataroom', description: 'Remove a group from a dataroom' },
415
- { name: 'Update Role', value: 'updateRole', action: 'Update group role in a dataroom', description: 'Update the role of a group in a dataroom' },
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: { show: { resource: ['dataroomGroup'], operation: ['add', 'remove', 'updateRole'] } },
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: { show: { resource: ['dataroomGroup'], operation: ['add', 'remove', 'updateRole'] } },
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
- { name: 'Assign to Dataroom', value: 'assign', action: 'Assign file to a dataroom', description: 'Assign a standalone file to a dataroom' },
478
- { name: 'Bulk Delete', value: 'bulkDelete', action: 'Delete files from a dataroom', description: 'Delete multiple files from a dataroom at once' },
479
- { name: 'Bulk Move', value: 'bulkMove', action: 'Move files to a dataroom', description: 'Move multiple files to another dataroom at once' },
480
- { name: 'Bulk Patch', value: 'bulkPatch', action: 'Patch files in a dataroom', description: 'Update or reprocess multiple files in a dataroom' },
481
- { name: 'Delete', value: 'delete', action: 'Delete file from a dataroom', description: 'Delete a file from a dataroom permanently' },
482
- { name: 'Delete All', value: 'deleteAllDataroom', action: 'Delete all files from a dataroom', description: 'Delete all files from a dataroom permanently' },
483
- { name: 'Delete Standalone', value: 'deleteStandalone', action: 'Delete a standalone file', description: 'Delete a standalone file permanently' },
484
- { name: 'Get', value: 'get', action: 'Get file from a dataroom', description: 'Retrieve a file from a dataroom' },
485
- { name: 'Get Chunks', value: 'getChunks', action: 'Get chunks of a standalone file', description: 'Retrieve the text chunks of a standalone file' },
486
- { name: 'Get Chunks (Dataroom)', value: 'getChunksDataroom', action: 'Get chunks of a dataroom file', description: 'Retrieve the text chunks of a file in a dataroom' },
487
- { name: 'Get Content', value: 'getContent', action: 'Get content of a standalone file', description: 'Retrieve the processed text content of a standalone file' },
488
- { name: 'Get Many', value: 'getMany', action: 'Get files in a dataroom', description: 'Retrieve a list of files in a dataroom' },
489
- { name: 'Get Many Standalone', value: 'getManyStandalone', action: 'Get standalone files', description: 'Retrieve a list of standalone files' },
490
- { name: 'Get Metadata', value: 'getMetadata', action: 'Get metadata of a standalone file', description: 'Retrieve the metadata of a standalone file' },
491
- { name: 'Get Original URL', value: 'getOriginalUrl', action: 'Get download URL of a standalone file', description: 'Retrieve the original download URL of a standalone file' },
492
- { name: 'Get Original URL (Dataroom)', value: 'getOriginalUrlDataroom', action: 'Get download URL of a dataroom file', description: 'Retrieve the original download URL of a file in a dataroom' },
493
- { name: 'Get Processing Status', value: 'getStatus', action: 'Get processing status of a file', description: 'Retrieve the current processing status of a standalone file' },
494
- { name: 'Move', value: 'move', action: 'Move file to a dataroom', description: 'Move a file to another dataroom' },
495
- { name: 'Reprocess', value: 'reprocess', action: 'Reprocess a dataroom file', description: 'Reprocess a file in a dataroom using a different pipeline' },
496
- { name: 'Upload', value: 'upload', action: 'Upload file to a dataroom', description: 'Upload a file to a dataroom' },
497
- { name: 'Upload Standalone', value: 'uploadStandalone', action: 'Upload a standalone file', description: 'Upload a file without assigning it to a dataroom' },
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: { resource: ['file'], operation: ['getMany', 'get', 'delete', 'upload', 'deleteAllDataroom', 'reprocess', 'move', 'getOriginalUrlDataroom', 'getChunksDataroom', 'bulkDelete', 'bulkMove', 'bulkPatch'] },
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: { show: { resource: ['file'], operation: ['get', 'getMany', 'getManyStandalone', 'getMetadata'] } },
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: { loadOptionsMethod: 'getFilesInDataroom', loadOptionsDependsOn: ['dataroomId'] },
798
+ typeOptions: {
799
+ loadOptionsMethod: 'getFilesInDataroom',
800
+ loadOptionsDependsOn: ['dataroomId'],
801
+ },
526
802
  required: true,
527
803
  default: '',
528
- displayOptions: { show: { resource: ['file'], operation: ['get', 'delete', 'reprocess', 'move', 'getOriginalUrlDataroom', 'getChunksDataroom'] } },
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: { resource: ['file'], operation: ['getStatus', 'getMetadata', 'getContent', 'deleteStandalone', 'assign', 'getOriginalUrl', 'getChunks'] },
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: { loadOptionsMethod: 'getFilesInDataroom', loadOptionsDependsOn: ['dataroomId'] },
846
+ typeOptions: {
847
+ loadOptionsMethod: 'getFilesInDataroom',
848
+ loadOptionsDependsOn: ['dataroomId'],
849
+ },
548
850
  required: true,
549
851
  default: [],
550
- displayOptions: { show: { resource: ['file'], operation: ['bulkDelete', 'bulkMove', 'bulkPatch'] } },
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: { show: { resource: ['file'], operation: ['bulkPatch'], reprocess: [true] } },
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
- { name: 'DOCLING Force OCR', value: 'DOCLING_FORCE_OCR', description: 'Docling with forced OCR for scanned documents' },
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: { show: { resource: ['file'], operation: ['bulkPatch'], reprocess: [true], processingPipeline: ['VLM'] } },
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: { show: { resource: ['file'], operation: ['getMany', 'getManyStandalone'] } },
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: { show: { resource: ['file'], operation: ['getChunks', 'getChunksDataroom'] } },
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: { show: { resource: ['file'], operation: ['upload', 'uploadStandalone', 'reprocess'] } },
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
- { name: 'DOCLING Force OCR', value: 'DOCLING_FORCE_OCR', description: 'Docling with forced OCR for scanned documents' },
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: { show: { resource: ['file'], operation: ['upload', 'uploadStandalone', 'reprocess'], processingPipeline: ['VLM'] } },
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
- { name: 'Assign to Dataroom', value: 'assign', action: 'Assign image to a dataroom', description: 'Assign a standalone image to a dataroom' },
711
- { name: 'Bulk Delete (Dataroom)', value: 'bulkDelete', action: 'Delete images from a dataroom', description: 'Delete multiple images from a dataroom at once' },
712
- { name: 'Bulk Move', value: 'bulkMove', action: 'Move images to a dataroom', description: 'Move multiple images to another dataroom at once' },
713
- { name: 'Bulk Patch', value: 'bulkPatch', action: 'Patch images in a dataroom', description: 'Update or reprocess multiple images in a dataroom' },
714
- { name: 'Delete (Dataroom)', value: 'deleteDataroom', action: 'Delete image from a dataroom', description: 'Delete an image from a dataroom permanently' },
715
- { name: 'Delete All (Dataroom)', value: 'deleteAllDataroom', action: 'Delete all images from a dataroom', description: 'Delete all images from a dataroom permanently' },
716
- { name: 'Delete Standalone', value: 'deleteStandalone', action: 'Delete a standalone image', description: 'Delete a standalone image permanently' },
717
- { name: 'Get (Dataroom)', value: 'getDataroom', action: 'Get image from a dataroom', description: 'Retrieve an image from a dataroom' },
718
- { name: 'Get Many (Dataroom)', value: 'getManyDataroom', action: 'Get images in a dataroom', description: 'Retrieve a list of images in a dataroom' },
719
- { name: 'Get Many Standalone', value: 'getManyStandalone', action: 'Get standalone images', description: 'Retrieve a list of standalone images' },
720
- { name: 'Get Metadata', value: 'getMetadata', action: 'Get metadata of a standalone image', description: 'Retrieve the metadata of a standalone image' },
721
- { name: 'Get Original URL', value: 'getOriginalUrl', action: 'Get download URL of a standalone image', description: 'Retrieve the original download URL of a standalone image' },
722
- { name: 'Get Original URL (Dataroom)', value: 'getOriginalUrlDataroom', action: 'Get download URL of a dataroom image', description: 'Retrieve the original download URL of an image in a dataroom' },
723
- { name: 'Get Processing Status', value: 'getStatus', action: 'Get processing status of an image', description: 'Retrieve the current processing status of a standalone image' },
724
- { name: 'Move', value: 'move', action: 'Move image to a dataroom', description: 'Move an image to another dataroom' },
725
- { name: 'Upload (Dataroom)', value: 'uploadDataroom', action: 'Upload image to a dataroom', description: 'Upload an image to a dataroom' },
726
- { name: 'Upload Standalone', value: 'uploadStandalone', action: 'Upload a standalone image', description: 'Upload an image without assigning it to a dataroom' },
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: { resource: ['image'], operation: ['getManyDataroom', 'getDataroom', 'deleteDataroom', 'uploadDataroom', 'deleteAllDataroom', 'move', 'getOriginalUrlDataroom', 'bulkDelete', 'bulkMove', 'bulkPatch'] },
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: { show: { resource: ['image'], operation: ['getDataroom', 'getManyDataroom', 'getManyStandalone', 'getMetadata'] } },
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: { loadOptionsMethod: 'getImagesInDataroom', loadOptionsDependsOn: ['dataroomId'] },
1191
+ typeOptions: {
1192
+ loadOptionsMethod: 'getImagesInDataroom',
1193
+ loadOptionsDependsOn: ['dataroomId'],
1194
+ },
755
1195
  required: true,
756
1196
  default: '',
757
- displayOptions: { show: { resource: ['image'], operation: ['getDataroom', 'deleteDataroom', 'move', 'getOriginalUrlDataroom'] } },
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: { resource: ['image'], operation: ['getMetadata', 'getStatus', 'deleteStandalone', 'assign', 'getOriginalUrl'] },
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: { show: { resource: ['image'], operation: ['assign', 'move', 'bulkMove'] } },
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: { loadOptionsMethod: 'getImagesInDataroom', loadOptionsDependsOn: ['dataroomId'] },
1236
+ typeOptions: {
1237
+ loadOptionsMethod: 'getImagesInDataroom',
1238
+ loadOptionsDependsOn: ['dataroomId'],
1239
+ },
787
1240
  required: true,
788
1241
  default: [],
789
- displayOptions: { show: { resource: ['image'], operation: ['bulkDelete', 'bulkMove', 'bulkPatch'] } },
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
- { displayName: 'Name', name: 'name', type: 'string', default: '', placeholder: 'e.g. Company Logo', description: 'Override the display name for all selected images' },
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: { show: { resource: ['image'], operation: ['getManyDataroom', 'getManyStandalone'] } },
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: { show: { resource: ['image'], operation: ['uploadDataroom', 'uploadStandalone'] } },
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
- { name: 'Add', value: 'add', action: 'Add web source to a dataroom', description: 'Add a web source (URL) to a dataroom for crawling' },
880
- { name: 'Bulk Delete', value: 'bulkDelete', action: 'Delete web sources from a dataroom', description: 'Delete multiple web sources from a dataroom at once' },
881
- { name: 'Bulk Move', value: 'bulkMove', action: 'Move web sources to a dataroom', description: 'Move multiple web sources to another dataroom at once' },
882
- { name: 'Bulk Patch', value: 'bulkPatch', action: 'Patch web sources in a dataroom', description: 'Update or rescan multiple web sources in a dataroom' },
883
- { name: 'Delete', value: 'delete', action: 'Delete a web source', description: 'Delete a web source from a dataroom permanently' },
884
- { name: 'Delete All', value: 'deleteAll', action: 'Delete all web sources from a dataroom', description: 'Delete all web sources from a dataroom permanently' },
885
- { name: 'Get', value: 'get', action: 'Get a web source', description: 'Retrieve a web source from a dataroom' },
886
- { name: 'Get Many', value: 'getMany', action: 'Get web sources in a dataroom', description: 'Retrieve a list of web sources in a dataroom' },
887
- { name: 'Get URLs', value: 'getUrls', action: 'Get crawled URLs of a web source', description: 'Retrieve all crawled URLs belonging to a web source' },
888
- { name: 'Move', value: 'move', action: 'Move web source to a dataroom', description: 'Move a web source to another dataroom' },
889
- { name: 'Rescan', value: 'rescan', action: 'Rescan a web source', description: 'Trigger a rescan of a web source to fetch updated content' },
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: { loadOptionsMethod: 'getWebSourcesInDataroom', loadOptionsDependsOn: ['dataroomId'] },
1428
+ typeOptions: {
1429
+ loadOptionsMethod: 'getWebSourcesInDataroom',
1430
+ loadOptionsDependsOn: ['dataroomId'],
1431
+ },
908
1432
  required: true,
909
1433
  default: '',
910
- displayOptions: { show: { resource: ['webSource'], operation: ['get', 'delete', 'rescan', 'move', 'getUrls'] } },
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: { loadOptionsMethod: 'getWebSourcesInDataroom', loadOptionsDependsOn: ['dataroomId'] },
1456
+ typeOptions: {
1457
+ loadOptionsMethod: 'getWebSourcesInDataroom',
1458
+ loadOptionsDependsOn: ['dataroomId'],
1459
+ },
928
1460
  required: true,
929
1461
  default: [],
930
- displayOptions: { show: { resource: ['webSource'], operation: ['bulkDelete', 'bulkMove', 'bulkPatch'] } },
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
- { displayName: 'Name', name: 'name', type: 'string', default: '', description: 'Override the display name for all selected web sources' },
950
- { displayName: 'Include Subpages', name: 'includeSubpages', type: 'boolean', default: false, description: 'Whether to crawl subpages of the URL' },
951
- { displayName: 'Max Subpages', name: 'maxSubpages', type: 'number', default: 10, description: 'Maximum number of subpages to crawl' },
952
- { displayName: 'Max Depth', name: 'maxDepth', type: 'number', default: 1, description: 'Maximum link depth to follow when crawling' },
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
- { name: 'Create', value: 'create', action: 'Create a chat', description: 'Create a new chat' },
1098
- { name: 'Delete', value: 'delete', action: 'Delete a chat', description: 'Delete a chat permanently' },
1099
- { name: 'Delete Messages', value: 'deleteMessages', action: 'Delete messages in a chat', description: 'Delete all messages in a chat' },
1100
- { name: 'Estimate Cost', value: 'estimate', action: 'Estimate cost of a chat request', description: 'Estimate the token cost before sending a prompt' },
1101
- { name: 'Generate', value: 'generate', action: 'Generate a response in a chat', description: 'Send a prompt and generate an AI response in a chat' },
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
- { name: 'Get Latest Message', value: 'getLatestMessage', action: 'Get latest message in a chat', description: 'Retrieve the most recent message in a chat' },
1104
- { name: 'Get Many', value: 'getMany', action: 'Get many chats', description: 'Retrieve a list of chats' },
1105
- { name: 'Get Message', value: 'getMessage', action: 'Get a message in a chat', description: 'Retrieve a specific message from a chat' },
1106
- { name: 'Get Messages', value: 'getMessages', action: 'Get messages in a chat', description: 'Retrieve all messages in a chat' },
1107
- { name: 'Rename', value: 'rename', action: 'Rename a chat', description: 'Update the name of a chat' },
1108
- { name: 'Temp Chat', value: 'tempChat', action: 'Run a temporary chat', description: 'Run an ephemeral AI query without saving the conversation' },
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: { resource: ['chat'], operation: ['get', 'getMessages', 'delete', 'generate', 'rename', 'deleteMessages', 'getLatestMessage', 'getMessage'] },
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: { show: { resource: ['chat'], operation: ['get', 'getMany', 'generate', 'tempChat'] } },
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
  {
@@ -1227,6 +1854,14 @@ class Aiteza {
1227
1854
  default: [],
1228
1855
  description: 'Datarooms to use as context. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
1229
1856
  },
1857
+ {
1858
+ displayName: 'Timeout (Minutes)',
1859
+ name: 'timeoutMinutes',
1860
+ type: 'number',
1861
+ default: 60,
1862
+ typeOptions: { minValue: 1 },
1863
+ description: 'Maximum time in minutes to wait for the AI response. Increase for complex or long-running queries.',
1864
+ },
1230
1865
  {
1231
1866
  displayName: 'File IDs',
1232
1867
  name: 'fileIds',
@@ -1319,6 +1954,14 @@ class Aiteza {
1319
1954
  default: [],
1320
1955
  description: 'Datarooms to search for context. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
1321
1956
  },
1957
+ {
1958
+ displayName: 'Timeout (Minutes)',
1959
+ name: 'timeoutMinutes',
1960
+ type: 'number',
1961
+ default: 60,
1962
+ typeOptions: { minValue: 1 },
1963
+ description: 'Maximum time in minutes to wait for the AI response. Increase for complex or long-running queries.',
1964
+ },
1322
1965
  {
1323
1966
  displayName: 'File IDs',
1324
1967
  name: 'fileIds',
@@ -1381,10 +2024,30 @@ class Aiteza {
1381
2024
  noDataExpression: true,
1382
2025
  displayOptions: { show: { resource: ['model'] } },
1383
2026
  options: [
1384
- { name: 'Get', value: 'get', action: 'Get a model', description: 'Retrieve an AI model by ID' },
1385
- { name: 'Get Many', value: 'getMany', action: 'Get many models', description: 'Retrieve a list of available AI models' },
1386
- { name: 'Get Processing Pipelines', value: 'getProcessing', action: 'Get processing pipelines', description: 'Retrieve a list of available document processing pipelines' },
1387
- { name: 'Get VLM Models', value: 'getVlm', action: 'Get VLM models', description: 'Retrieve a list of available vision language models' },
2027
+ {
2028
+ name: 'Get',
2029
+ value: 'get',
2030
+ action: 'Get a model',
2031
+ description: 'Retrieve an AI model by ID',
2032
+ },
2033
+ {
2034
+ name: 'Get Many',
2035
+ value: 'getMany',
2036
+ action: 'Get many models',
2037
+ description: 'Retrieve a list of available AI models',
2038
+ },
2039
+ {
2040
+ name: 'Get Processing Pipelines',
2041
+ value: 'getProcessing',
2042
+ action: 'Get processing pipelines',
2043
+ description: 'Retrieve a list of available document processing pipelines',
2044
+ },
2045
+ {
2046
+ name: 'Get VLM Models',
2047
+ value: 'getVlm',
2048
+ action: 'Get VLM models',
2049
+ description: 'Retrieve a list of available vision language models',
2050
+ },
1388
2051
  ],
1389
2052
  default: 'getMany',
1390
2053
  },
@@ -1405,7 +2068,12 @@ class Aiteza {
1405
2068
  noDataExpression: true,
1406
2069
  displayOptions: { show: { resource: ['search'] } },
1407
2070
  options: [
1408
- { name: 'Hybrid Search', value: 'hybridSearch', action: 'Run a hybrid search', description: 'Perform a hybrid (vector + full-text) search across datarooms' },
2071
+ {
2072
+ name: 'Hybrid Search',
2073
+ value: 'hybridSearch',
2074
+ action: 'Run a hybrid search',
2075
+ description: 'Perform a hybrid (vector + full-text) search across datarooms',
2076
+ },
1409
2077
  ],
1410
2078
  default: 'hybridSearch',
1411
2079
  },
@@ -1504,7 +2172,12 @@ class Aiteza {
1504
2172
  noDataExpression: true,
1505
2173
  displayOptions: { show: { resource: ['identity'] } },
1506
2174
  options: [
1507
- { name: 'Search', value: 'search', action: 'Search users and groups', description: 'Search for users and groups by name or username' },
2175
+ {
2176
+ name: 'Search',
2177
+ value: 'search',
2178
+ action: 'Search users and groups',
2179
+ description: 'Search for users and groups by name or username',
2180
+ },
1508
2181
  ],
1509
2182
  default: 'search',
1510
2183
  },
@@ -1559,7 +2232,7 @@ class Aiteza {
1559
2232
  async execute() {
1560
2233
  const items = this.getInputData();
1561
2234
  const returnData = [];
1562
- const CHAT_REQUEST_TIMEOUT_MS = 20 * 60 * 1000;
2235
+ const CHAT_REQUEST_TIMEOUT_MS = 60 * 60 * 1000;
1563
2236
  const resource = this.getNodeParameter('resource', 0);
1564
2237
  const operation = this.getNodeParameter('operation', 0);
1565
2238
  const authMode = this.getNodeParameter('authSource', 0, 'credentials');
@@ -1568,16 +2241,22 @@ class Aiteza {
1568
2241
  const triggerToken = (0, GenericFunctions_1.getUpstreamAuthToken)(this);
1569
2242
  if (!triggerToken) {
1570
2243
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No auth token was found in the input data. ' +
1571
- 'Make sure this node is connected to an Aiteza Trigger node so its \'_authToken\' is forwarded.', { description: 'Connect this node downstream of an Aiteza Trigger node, or switch the \'Authentication\' field to \'OAuth2 Credentials\'.' });
2244
+ "Make sure this node is connected to an Aiteza Trigger node so its '_authToken' is forwarded.", {
2245
+ description: "Connect this node downstream of an Aiteza Trigger node, or switch the 'Authentication' field to 'OAuth2 Credentials'.",
2246
+ });
1572
2247
  }
1573
2248
  if ((0, GenericFunctions_1.isJwtExpired)(triggerToken)) {
1574
2249
  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).', { description: 'Re-trigger the workflow, shorten its runtime, or have Aiteza mint a longer-lived token for delegated workflow execution.' });
2250
+ 'User tokens are short-lived (typically ~5 minutes).', {
2251
+ description: 'Re-trigger the workflow, shorten its runtime, or have Aiteza mint a longer-lived token for delegated workflow execution.',
2252
+ });
1576
2253
  }
1577
2254
  const paramBaseUrl = this.getNodeParameter('baseUrl', 0, '').replace(/\/+$/, '');
1578
2255
  const baseUrl = paramBaseUrl || (0, GenericFunctions_1.getUpstreamBaseUrl)(this) || '';
1579
2256
  if (!baseUrl) {
1580
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The \'AITEZA Base URL\' is required when using trigger authentication.', { 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\'.' });
2257
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), "The 'AITEZA Base URL' is required when using trigger authentication.", {
2258
+ 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'.",
2259
+ });
1581
2260
  }
1582
2261
  authCtx = { baseUrl, triggerToken };
1583
2262
  }
@@ -1590,7 +2269,10 @@ class Aiteza {
1590
2269
  };
1591
2270
  const uploadRequest = async (reqOpts) => {
1592
2271
  if (authCtx?.triggerToken) {
1593
- reqOpts.headers = { ...(reqOpts.headers ?? {}), Authorization: `Bearer ${authCtx.triggerToken}` };
2272
+ reqOpts.headers = {
2273
+ ...(reqOpts.headers ?? {}),
2274
+ Authorization: `Bearer ${authCtx.triggerToken}`,
2275
+ };
1594
2276
  }
1595
2277
  if (reqOpts.body instanceof form_data_1.default) {
1596
2278
  reqOpts.headers = { ...(reqOpts.headers ?? {}), ...reqOpts.body.getHeaders() };
@@ -1603,7 +2285,19 @@ class Aiteza {
1603
2285
  const buildPaginationQs = (idx, extraKeys = []) => {
1604
2286
  const fields = this.getNodeParameter('additionalFields', idx, {});
1605
2287
  const qs = {};
1606
- for (const key of ['page', 'size', 'search_term', 'q', 'sortBy', 'sortOrder', 'query', 'name', 'first', 'max', ...extraKeys]) {
2288
+ for (const key of [
2289
+ 'page',
2290
+ 'size',
2291
+ 'search_term',
2292
+ 'q',
2293
+ 'sortBy',
2294
+ 'sortOrder',
2295
+ 'query',
2296
+ 'name',
2297
+ 'first',
2298
+ 'max',
2299
+ ...extraKeys,
2300
+ ]) {
1607
2301
  if (fields[key] !== undefined && fields[key] !== '')
1608
2302
  qs[key] = fields[key];
1609
2303
  }
@@ -1633,7 +2327,10 @@ class Aiteza {
1633
2327
  url += `&vlmModel=${encodeURIComponent(vlmModel)}`;
1634
2328
  return url;
1635
2329
  };
1636
- const splitCsv = (val) => val.split(',').map((s) => s.trim()).filter(Boolean);
2330
+ const splitCsv = (val) => val
2331
+ .split(',')
2332
+ .map((s) => s.trim())
2333
+ .filter(Boolean);
1637
2334
  const toIdArray = (val) => {
1638
2335
  if (Array.isArray(val))
1639
2336
  return val.map((v) => String(v).trim()).filter(Boolean);
@@ -1721,7 +2418,9 @@ class Aiteza {
1721
2418
  const id = this.getNodeParameter('dataroomId', i);
1722
2419
  const idsRaw = this.getNodeParameter('connectedDataroomIds', i);
1723
2420
  const connectedDataroomIds = toIdArray(idsRaw);
1724
- responseData = await apiReq('PUT', `/api/dataroom/${id}/connected`, { connectedDataroomIds });
2421
+ responseData = await apiReq('PUT', `/api/dataroom/${id}/connected`, {
2422
+ connectedDataroomIds,
2423
+ });
1725
2424
  }
1726
2425
  else if (operation === 'getChats') {
1727
2426
  const id = this.getNodeParameter('dataroomId', i);
@@ -1745,19 +2444,30 @@ class Aiteza {
1745
2444
  const usernames = splitCsv(this.getNodeParameter('usernames', i));
1746
2445
  const role = this.getNodeParameter('role', i);
1747
2446
  const inherit = this.getNodeParameter('inherit', i, false);
1748
- responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/members`, { user: usernames, role, inherit });
2447
+ responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/members`, {
2448
+ user: usernames,
2449
+ role,
2450
+ inherit,
2451
+ });
1749
2452
  }
1750
2453
  else if (operation === 'remove') {
1751
2454
  const usernames = splitCsv(this.getNodeParameter('usernames', i));
1752
2455
  const inherit = this.getNodeParameter('inherit', i, false);
1753
- await apiReq('DELETE', `/api/dataroom/${dataroomId}/members`, { user: usernames, inherit });
2456
+ await apiReq('DELETE', `/api/dataroom/${dataroomId}/members`, {
2457
+ user: usernames,
2458
+ inherit,
2459
+ });
1754
2460
  responseData = { deleted: true };
1755
2461
  }
1756
2462
  else if (operation === 'updateRole') {
1757
2463
  const usernames = splitCsv(this.getNodeParameter('usernames', i));
1758
2464
  const role = this.getNodeParameter('role', i);
1759
2465
  const inherit = this.getNodeParameter('inherit', i, false);
1760
- responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/members`, { user: usernames, role, inherit });
2466
+ responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/members`, {
2467
+ user: usernames,
2468
+ role,
2469
+ inherit,
2470
+ });
1761
2471
  }
1762
2472
  }
1763
2473
  else if (resource === 'dataroomGroup') {
@@ -1773,19 +2483,30 @@ class Aiteza {
1773
2483
  const groupPath = this.getNodeParameter('groupPath', i);
1774
2484
  const role = this.getNodeParameter('role', i);
1775
2485
  const inherit = this.getNodeParameter('inherit', i, false);
1776
- responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/groups`, { group: groupPath, role, inherit });
2486
+ responseData = await apiReq('POST', `/api/dataroom/${dataroomId}/groups`, {
2487
+ group: groupPath,
2488
+ role,
2489
+ inherit,
2490
+ });
1777
2491
  }
1778
2492
  else if (operation === 'remove') {
1779
2493
  const groupPath = this.getNodeParameter('groupPath', i);
1780
2494
  const inherit = this.getNodeParameter('inherit', i, false);
1781
- await apiReq('DELETE', `/api/dataroom/${dataroomId}/groups`, { group: groupPath, inherit });
2495
+ await apiReq('DELETE', `/api/dataroom/${dataroomId}/groups`, {
2496
+ group: groupPath,
2497
+ inherit,
2498
+ });
1782
2499
  responseData = { deleted: true };
1783
2500
  }
1784
2501
  else if (operation === 'updateRole') {
1785
2502
  const groupPath = this.getNodeParameter('groupPath', i);
1786
2503
  const role = this.getNodeParameter('role', i);
1787
2504
  const inherit = this.getNodeParameter('inherit', i, false);
1788
- responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/groups`, { group: groupPath, role, inherit });
2505
+ responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/groups`, {
2506
+ group: groupPath,
2507
+ role,
2508
+ inherit,
2509
+ });
1789
2510
  }
1790
2511
  }
1791
2512
  else if (resource === 'file') {
@@ -1812,7 +2533,9 @@ class Aiteza {
1812
2533
  }
1813
2534
  else if (operation === 'getContent') {
1814
2535
  const fileId = this.getNodeParameter('fileId', i);
1815
- responseData = await apiReq('GET', `/api/files/${fileId}/content`, {}, {}, { json: false });
2536
+ responseData = await apiReq('GET', `/api/files/${fileId}/content`, {}, {}, {
2537
+ json: false,
2538
+ });
1816
2539
  if (typeof responseData === 'string') {
1817
2540
  responseData = { content: responseData };
1818
2541
  }
@@ -1864,7 +2587,9 @@ class Aiteza {
1864
2587
  else if (operation === 'assign') {
1865
2588
  const fileId = this.getNodeParameter('fileId', i);
1866
2589
  const targetDataroomId = this.getNodeParameter('targetDataroomId', i);
1867
- responseData = await apiReq('PATCH', `/api/files/${fileId}/assign`, { dataroomId: targetDataroomId });
2590
+ responseData = await apiReq('PATCH', `/api/files/${fileId}/assign`, {
2591
+ dataroomId: targetDataroomId,
2592
+ });
1868
2593
  }
1869
2594
  else if (operation === 'move') {
1870
2595
  const dataroomId = this.getNodeParameter('dataroomId', i);
@@ -1903,7 +2628,10 @@ class Aiteza {
1903
2628
  const ids = toIdArray(this.getNodeParameter('fileIds', i, []));
1904
2629
  const targetDataroom = this.getNodeParameter('targetDataroomId', i);
1905
2630
  (0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'File IDs');
1906
- responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/files/bulk`, { ids, targetDataroom });
2631
+ responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/files/bulk`, {
2632
+ ids,
2633
+ targetDataroom,
2634
+ });
1907
2635
  }
1908
2636
  else if (operation === 'bulkPatch') {
1909
2637
  const dataroomId = this.getNodeParameter('dataroomId', i);
@@ -1980,7 +2708,9 @@ class Aiteza {
1980
2708
  else if (operation === 'assign') {
1981
2709
  const imageId = this.getNodeParameter('imageId', i);
1982
2710
  const targetDataroomId = this.getNodeParameter('targetDataroomId', i);
1983
- responseData = await apiReq('PATCH', `/api/images/${imageId}/assign`, { dataroomId: targetDataroomId });
2711
+ responseData = await apiReq('PATCH', `/api/images/${imageId}/assign`, {
2712
+ dataroomId: targetDataroomId,
2713
+ });
1984
2714
  }
1985
2715
  else if (operation === 'move') {
1986
2716
  const dataroomId = this.getNodeParameter('dataroomId', i);
@@ -2009,7 +2739,10 @@ class Aiteza {
2009
2739
  const ids = toIdArray(this.getNodeParameter('imageIds', i, []));
2010
2740
  const targetDataroom = this.getNodeParameter('targetDataroomId', i);
2011
2741
  (0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Image IDs');
2012
- responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/images/bulk`, { ids, targetDataroom });
2742
+ responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/images/bulk`, {
2743
+ ids,
2744
+ targetDataroom,
2745
+ });
2013
2746
  }
2014
2747
  else if (operation === 'bulkPatch') {
2015
2748
  const dataroomId = this.getNodeParameter('dataroomId', i);
@@ -2017,7 +2750,11 @@ class Aiteza {
2017
2750
  const reprocess = this.getNodeParameter('reprocess', i, false);
2018
2751
  const patchOptions = this.getNodeParameter('patchOptions', i, {});
2019
2752
  (0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Image IDs');
2020
- responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/images/bulk`, { ids, reprocess, ...patchOptions });
2753
+ responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/images/bulk`, {
2754
+ ids,
2755
+ reprocess,
2756
+ ...patchOptions,
2757
+ });
2021
2758
  }
2022
2759
  }
2023
2760
  else if (resource === 'webSource') {
@@ -2068,14 +2805,21 @@ class Aiteza {
2068
2805
  const ids = toIdArray(this.getNodeParameter('webSourceIds', i, []));
2069
2806
  const targetDataroom = this.getNodeParameter('targetDataroomId', i);
2070
2807
  (0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Web Source IDs');
2071
- responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/websites/bulk`, { ids, targetDataroom });
2808
+ responseData = await apiReq('PUT', `/api/dataroom/${dataroomId}/websites/bulk`, {
2809
+ ids,
2810
+ targetDataroom,
2811
+ });
2072
2812
  }
2073
2813
  else if (operation === 'bulkPatch') {
2074
2814
  const ids = toIdArray(this.getNodeParameter('webSourceIds', i, []));
2075
2815
  const reprocess = this.getNodeParameter('reprocess', i, false);
2076
2816
  const patchOptions = this.getNodeParameter('patchOptions', i, {});
2077
2817
  (0, GenericFunctions_1.validateRequiredField)(this, ids.length > 0 ? 'ok' : '', 'Web Source IDs');
2078
- responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/websites/bulk`, { ids, reprocess, ...patchOptions });
2818
+ responseData = await apiReq('PATCH', `/api/dataroom/${dataroomId}/websites/bulk`, {
2819
+ ids,
2820
+ reprocess,
2821
+ ...patchOptions,
2822
+ });
2079
2823
  }
2080
2824
  }
2081
2825
  else if (resource === 'chat') {
@@ -2088,7 +2832,9 @@ class Aiteza {
2088
2832
  responseData = await apiReq('GET', `/api/chat/${chatId}`, {}, {}, { timeout: CHAT_REQUEST_TIMEOUT_MS });
2089
2833
  }
2090
2834
  else if (operation === 'getMany') {
2091
- responseData = await apiReq('GET', '/api/chat', {}, buildPaginationQs(i), { timeout: CHAT_REQUEST_TIMEOUT_MS });
2835
+ responseData = await apiReq('GET', '/api/chat', {}, buildPaginationQs(i), {
2836
+ timeout: CHAT_REQUEST_TIMEOUT_MS,
2837
+ });
2092
2838
  }
2093
2839
  else if (operation === 'getMessages') {
2094
2840
  const chatId = this.getNodeParameter('chatId', i);
@@ -2123,6 +2869,9 @@ class Aiteza {
2123
2869
  const prompt = this.getNodeParameter('prompt', i);
2124
2870
  const model = this.getNodeParameter('model', i);
2125
2871
  const additionalFields = this.getNodeParameter('additionalFields', i, {});
2872
+ const timeoutMs = additionalFields.timeoutMinutes
2873
+ ? additionalFields.timeoutMinutes * 60 * 1000
2874
+ : CHAT_REQUEST_TIMEOUT_MS;
2126
2875
  const form = new form_data_1.default();
2127
2876
  form.append('prompt', prompt);
2128
2877
  form.append('model', model);
@@ -2133,7 +2882,12 @@ class Aiteza {
2133
2882
  }
2134
2883
  }
2135
2884
  }
2136
- for (const key of ['parentDatarooms', 'subDatarooms', 'webSearchEnabled', 'workflowId']) {
2885
+ for (const key of [
2886
+ 'parentDatarooms',
2887
+ 'subDatarooms',
2888
+ 'webSearchEnabled',
2889
+ 'workflowId',
2890
+ ]) {
2137
2891
  if (additionalFields[key] !== undefined && additionalFields[key] !== '')
2138
2892
  form.append(key, String(additionalFields[key]));
2139
2893
  }
@@ -2142,10 +2896,13 @@ class Aiteza {
2142
2896
  method: 'POST',
2143
2897
  url: `${baseUrl}/api/chat/${chatId}/generate`,
2144
2898
  body: form,
2145
- timeout: CHAT_REQUEST_TIMEOUT_MS,
2899
+ timeout: timeoutMs,
2146
2900
  returnFullResponse: true,
2147
2901
  });
2148
- responseData = typeof response === 'object' && response.body !== undefined ? response.body : response;
2902
+ responseData =
2903
+ typeof response === 'object' && response.body !== undefined
2904
+ ? response.body
2905
+ : response;
2149
2906
  const xChatId = response?.headers?.['x-chat-id'];
2150
2907
  if (xChatId && typeof responseData === 'object' && responseData !== null) {
2151
2908
  responseData._chatId = xChatId;
@@ -2155,6 +2912,9 @@ class Aiteza {
2155
2912
  const prompt = this.getNodeParameter('prompt', i);
2156
2913
  const model = this.getNodeParameter('model', i);
2157
2914
  const additionalFields = this.getNodeParameter('additionalFields', i, {});
2915
+ const timeoutMs = additionalFields.timeoutMinutes
2916
+ ? additionalFields.timeoutMinutes * 60 * 1000
2917
+ : CHAT_REQUEST_TIMEOUT_MS;
2158
2918
  const form = new form_data_1.default();
2159
2919
  form.append('prompt', prompt);
2160
2920
  form.append('model', model);
@@ -2165,7 +2925,12 @@ class Aiteza {
2165
2925
  }
2166
2926
  }
2167
2927
  }
2168
- for (const key of ['parentDatarooms', 'subDatarooms', 'webSearchEnabled', 'workflowId']) {
2928
+ for (const key of [
2929
+ 'parentDatarooms',
2930
+ 'subDatarooms',
2931
+ 'webSearchEnabled',
2932
+ 'workflowId',
2933
+ ]) {
2169
2934
  if (additionalFields[key] !== undefined && additionalFields[key] !== '')
2170
2935
  form.append(key, String(additionalFields[key]));
2171
2936
  }
@@ -2174,13 +2939,16 @@ class Aiteza {
2174
2939
  method: 'POST',
2175
2940
  url: `${baseUrl}/api/chat/estimate`,
2176
2941
  body: form,
2177
- timeout: CHAT_REQUEST_TIMEOUT_MS,
2942
+ timeout: timeoutMs,
2178
2943
  });
2179
2944
  }
2180
2945
  else if (operation === 'tempChat') {
2181
2946
  const prompt = this.getNodeParameter('prompt', i);
2182
2947
  const model = this.getNodeParameter('model', i);
2183
2948
  const additionalFields = this.getNodeParameter('additionalFields', i, {});
2949
+ const timeoutMs = additionalFields.timeoutMinutes
2950
+ ? additionalFields.timeoutMinutes * 60 * 1000
2951
+ : CHAT_REQUEST_TIMEOUT_MS;
2184
2952
  const form = new form_data_1.default();
2185
2953
  form.append('prompt', prompt);
2186
2954
  form.append('model', model);
@@ -2191,7 +2959,12 @@ class Aiteza {
2191
2959
  }
2192
2960
  }
2193
2961
  }
2194
- for (const key of ['webSearchEnabled', 'subDatarooms', 'parentDatarooms', 'workflowId']) {
2962
+ for (const key of [
2963
+ 'webSearchEnabled',
2964
+ 'subDatarooms',
2965
+ 'parentDatarooms',
2966
+ 'workflowId',
2967
+ ]) {
2195
2968
  if (additionalFields[key] !== undefined && additionalFields[key] !== '')
2196
2969
  form.append(key, String(additionalFields[key]));
2197
2970
  }
@@ -2200,7 +2973,7 @@ class Aiteza {
2200
2973
  method: 'POST',
2201
2974
  url: `${baseUrl}/api/chat/temp`,
2202
2975
  body: form,
2203
- timeout: CHAT_REQUEST_TIMEOUT_MS,
2976
+ timeout: timeoutMs,
2204
2977
  });
2205
2978
  if (typeof responseData === 'string') {
2206
2979
  responseData = { result: responseData };
@@ -2229,9 +3002,13 @@ class Aiteza {
2229
3002
  const additionalFields = this.getNodeParameter('additionalFields', i, {});
2230
3003
  const body = { query };
2231
3004
  const dataroomIds = toIdArray(dataroomIdsRaw);
2232
- if (dataroomIds.length > 0)
2233
- body.dataroomIds = dataroomIds;
2234
- for (const key of ['topK', 'vectorThreshold', 'enableReranking', 'enableFullTextSearch']) {
3005
+ body.dataroomIds = dataroomIds;
3006
+ for (const key of [
3007
+ 'topK',
3008
+ 'vectorThreshold',
3009
+ 'enableReranking',
3010
+ 'enableFullTextSearch',
3011
+ ]) {
2235
3012
  if (additionalFields[key] !== undefined)
2236
3013
  body[key] = additionalFields[key];
2237
3014
  }
@@ -2269,11 +3046,23 @@ class Aiteza {
2269
3046
  try {
2270
3047
  shouldSimplify = this.getNodeParameter('simplify', i, true);
2271
3048
  }
2272
- catch { /* parameter may not exist for all operations */ }
3049
+ catch {
3050
+ /* parameter may not exist for all operations */
3051
+ }
2273
3052
  }
2274
3053
  const outputItems = Array.isArray(responseData)
2275
- ? responseData.map((item) => ({ json: shouldSimplify ? simplifyItem(item) : item }))
2276
- : [{ json: typeof responseData === 'object' ? (shouldSimplify ? simplifyItem(responseData) : responseData) : { result: responseData } }];
3054
+ ? responseData.map((item) => ({
3055
+ json: shouldSimplify ? simplifyItem(item) : item,
3056
+ }))
3057
+ : [
3058
+ {
3059
+ json: typeof responseData === 'object'
3060
+ ? shouldSimplify
3061
+ ? simplifyItem(responseData)
3062
+ : responseData
3063
+ : { result: responseData },
3064
+ },
3065
+ ];
2277
3066
  returnData.push(...outputItems);
2278
3067
  }
2279
3068
  }