@okf/ootils 1.26.2 → 1.26.3

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.
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
502
502
  }
503
503
  export { workerConfig_5 as workerConfig };
504
504
  }
505
- namespace AI_AUTO_ANNOTATE_QUEUE {
505
+ namespace SENTIMENT_AND_NER_QUEUE {
506
506
  let id_6: string;
507
507
  export { id_6 as id };
508
508
  export namespace queueConfig_6 {
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
539
539
  export { lockDuration_6 as lockDuration };
540
540
  let maxStalledCount_6: number;
541
541
  export { maxStalledCount_6 as maxStalledCount };
542
+ export namespace limiter_3 {
543
+ let max_3: number;
544
+ export { max_3 as max };
545
+ let duration_3: number;
546
+ export { duration_3 as duration };
547
+ }
548
+ export { limiter_3 as limiter };
542
549
  }
543
550
  export { workerConfig_6 as workerConfig };
544
551
  }
545
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
552
+ namespace AI_AUTO_ANNOTATE_QUEUE {
546
553
  let id_7: string;
547
554
  export { id_7 as id };
548
555
  export namespace queueConfig_7 {
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
582
589
  }
583
590
  export { workerConfig_7 as workerConfig };
584
591
  }
585
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
592
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
586
593
  let id_8: string;
587
594
  export { id_8 as id };
588
595
  export namespace queueConfig_8 {
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
622
629
  }
623
630
  export { workerConfig_8 as workerConfig };
624
631
  }
625
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
632
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
626
633
  let id_9: string;
627
634
  export { id_9 as id };
628
635
  export namespace queueConfig_9 {
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
662
669
  }
663
670
  export { workerConfig_9 as workerConfig };
664
671
  }
665
- namespace REINDEX_QUEUE {
672
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
666
673
  let id_10: string;
667
674
  export { id_10 as id };
668
675
  export namespace queueConfig_10 {
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
676
683
  export { delay_10 as delay };
677
684
  }
678
685
  export { backoff_10 as backoff };
679
- let delay_11: number;
680
- export { delay_11 as delay };
681
686
  let removeOnComplete_10: number;
682
687
  export { removeOnComplete_10 as removeOnComplete };
683
688
  let removeOnFail_10: number;
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
704
709
  }
705
710
  export { workerConfig_10 as workerConfig };
706
711
  }
712
+ namespace REINDEX_QUEUE {
713
+ let id_11: string;
714
+ export { id_11 as id };
715
+ export namespace queueConfig_11 {
716
+ export namespace defaultJobOptions_11 {
717
+ let attempts_11: number;
718
+ export { attempts_11 as attempts };
719
+ export namespace backoff_11 {
720
+ let type_11: string;
721
+ export { type_11 as type };
722
+ let delay_11: number;
723
+ export { delay_11 as delay };
724
+ }
725
+ export { backoff_11 as backoff };
726
+ let delay_12: number;
727
+ export { delay_12 as delay };
728
+ let removeOnComplete_11: number;
729
+ export { removeOnComplete_11 as removeOnComplete };
730
+ let removeOnFail_11: number;
731
+ export { removeOnFail_11 as removeOnFail };
732
+ }
733
+ export { defaultJobOptions_11 as defaultJobOptions };
734
+ export namespace streams_11 {
735
+ export namespace events_11 {
736
+ let maxLen_11: number;
737
+ export { maxLen_11 as maxLen };
738
+ }
739
+ export { events_11 as events };
740
+ }
741
+ export { streams_11 as streams };
742
+ }
743
+ export { queueConfig_11 as queueConfig };
744
+ export namespace workerConfig_11 {
745
+ let concurrency_11: number;
746
+ export { concurrency_11 as concurrency };
747
+ let lockDuration_11: number;
748
+ export { lockDuration_11 as lockDuration };
749
+ let maxStalledCount_11: number;
750
+ export { maxStalledCount_11 as maxStalledCount };
751
+ }
752
+ export { workerConfig_11 as workerConfig };
753
+ }
707
754
  }
708
755
 
709
756
  interface PlatformContextContentItem {
package/dist/browser.d.ts CHANGED
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
502
502
  }
503
503
  export { workerConfig_5 as workerConfig };
504
504
  }
505
- namespace AI_AUTO_ANNOTATE_QUEUE {
505
+ namespace SENTIMENT_AND_NER_QUEUE {
506
506
  let id_6: string;
507
507
  export { id_6 as id };
508
508
  export namespace queueConfig_6 {
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
539
539
  export { lockDuration_6 as lockDuration };
540
540
  let maxStalledCount_6: number;
541
541
  export { maxStalledCount_6 as maxStalledCount };
542
+ export namespace limiter_3 {
543
+ let max_3: number;
544
+ export { max_3 as max };
545
+ let duration_3: number;
546
+ export { duration_3 as duration };
547
+ }
548
+ export { limiter_3 as limiter };
542
549
  }
543
550
  export { workerConfig_6 as workerConfig };
544
551
  }
545
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
552
+ namespace AI_AUTO_ANNOTATE_QUEUE {
546
553
  let id_7: string;
547
554
  export { id_7 as id };
548
555
  export namespace queueConfig_7 {
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
582
589
  }
583
590
  export { workerConfig_7 as workerConfig };
584
591
  }
585
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
592
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
586
593
  let id_8: string;
587
594
  export { id_8 as id };
588
595
  export namespace queueConfig_8 {
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
622
629
  }
623
630
  export { workerConfig_8 as workerConfig };
624
631
  }
625
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
632
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
626
633
  let id_9: string;
627
634
  export { id_9 as id };
628
635
  export namespace queueConfig_9 {
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
662
669
  }
663
670
  export { workerConfig_9 as workerConfig };
664
671
  }
665
- namespace REINDEX_QUEUE {
672
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
666
673
  let id_10: string;
667
674
  export { id_10 as id };
668
675
  export namespace queueConfig_10 {
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
676
683
  export { delay_10 as delay };
677
684
  }
678
685
  export { backoff_10 as backoff };
679
- let delay_11: number;
680
- export { delay_11 as delay };
681
686
  let removeOnComplete_10: number;
682
687
  export { removeOnComplete_10 as removeOnComplete };
683
688
  let removeOnFail_10: number;
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
704
709
  }
705
710
  export { workerConfig_10 as workerConfig };
706
711
  }
712
+ namespace REINDEX_QUEUE {
713
+ let id_11: string;
714
+ export { id_11 as id };
715
+ export namespace queueConfig_11 {
716
+ export namespace defaultJobOptions_11 {
717
+ let attempts_11: number;
718
+ export { attempts_11 as attempts };
719
+ export namespace backoff_11 {
720
+ let type_11: string;
721
+ export { type_11 as type };
722
+ let delay_11: number;
723
+ export { delay_11 as delay };
724
+ }
725
+ export { backoff_11 as backoff };
726
+ let delay_12: number;
727
+ export { delay_12 as delay };
728
+ let removeOnComplete_11: number;
729
+ export { removeOnComplete_11 as removeOnComplete };
730
+ let removeOnFail_11: number;
731
+ export { removeOnFail_11 as removeOnFail };
732
+ }
733
+ export { defaultJobOptions_11 as defaultJobOptions };
734
+ export namespace streams_11 {
735
+ export namespace events_11 {
736
+ let maxLen_11: number;
737
+ export { maxLen_11 as maxLen };
738
+ }
739
+ export { events_11 as events };
740
+ }
741
+ export { streams_11 as streams };
742
+ }
743
+ export { queueConfig_11 as queueConfig };
744
+ export namespace workerConfig_11 {
745
+ let concurrency_11: number;
746
+ export { concurrency_11 as concurrency };
747
+ let lockDuration_11: number;
748
+ export { lockDuration_11 as lockDuration };
749
+ let maxStalledCount_11: number;
750
+ export { maxStalledCount_11 as maxStalledCount };
751
+ }
752
+ export { workerConfig_11 as workerConfig };
753
+ }
707
754
  }
708
755
 
709
756
  interface PlatformContextContentItem {
package/dist/browser.js CHANGED
@@ -632,6 +632,34 @@ var BASE_BULLMQ_CONFIG = {
632
632
  }
633
633
  }
634
634
  },
635
+ SENTIMENT_AND_NER_QUEUE: {
636
+ id: "sentiment-and-ner-queue",
637
+ queueConfig: {
638
+ defaultJobOptions: {
639
+ attempts: 3,
640
+ backoff: {
641
+ type: "exponential",
642
+ delay: 2e3
643
+ },
644
+ removeOnComplete: 30,
645
+ removeOnFail: 100
646
+ },
647
+ streams: {
648
+ events: {
649
+ maxLen: 10
650
+ }
651
+ }
652
+ },
653
+ workerConfig: {
654
+ concurrency: 1,
655
+ lockDuration: 9e4,
656
+ maxStalledCount: 3,
657
+ limiter: {
658
+ max: 100,
659
+ duration: 6e4
660
+ }
661
+ }
662
+ },
635
663
  AI_AUTO_ANNOTATE_QUEUE: {
636
664
  id: "ai-auto-annotate-queue",
637
665
  queueConfig: {
package/dist/browser.mjs CHANGED
@@ -578,6 +578,34 @@ var BASE_BULLMQ_CONFIG = {
578
578
  }
579
579
  }
580
580
  },
581
+ SENTIMENT_AND_NER_QUEUE: {
582
+ id: "sentiment-and-ner-queue",
583
+ queueConfig: {
584
+ defaultJobOptions: {
585
+ attempts: 3,
586
+ backoff: {
587
+ type: "exponential",
588
+ delay: 2e3
589
+ },
590
+ removeOnComplete: 30,
591
+ removeOnFail: 100
592
+ },
593
+ streams: {
594
+ events: {
595
+ maxLen: 10
596
+ }
597
+ }
598
+ },
599
+ workerConfig: {
600
+ concurrency: 1,
601
+ lockDuration: 9e4,
602
+ maxStalledCount: 3,
603
+ limiter: {
604
+ max: 100,
605
+ duration: 6e4
606
+ }
607
+ }
608
+ },
581
609
  AI_AUTO_ANNOTATE_QUEUE: {
582
610
  id: "ai-auto-annotate-queue",
583
611
  queueConfig: {
package/dist/node.d.mts CHANGED
@@ -509,7 +509,7 @@ declare namespace BASE_BULLMQ_CONFIG {
509
509
  }
510
510
  export { workerConfig_5 as workerConfig };
511
511
  }
512
- namespace AI_AUTO_ANNOTATE_QUEUE {
512
+ namespace SENTIMENT_AND_NER_QUEUE {
513
513
  let id_6: string;
514
514
  export { id_6 as id };
515
515
  export namespace queueConfig_6 {
@@ -546,10 +546,17 @@ declare namespace BASE_BULLMQ_CONFIG {
546
546
  export { lockDuration_6 as lockDuration };
547
547
  let maxStalledCount_6: number;
548
548
  export { maxStalledCount_6 as maxStalledCount };
549
+ export namespace limiter_3 {
550
+ let max_3: number;
551
+ export { max_3 as max };
552
+ let duration_3: number;
553
+ export { duration_3 as duration };
554
+ }
555
+ export { limiter_3 as limiter };
549
556
  }
550
557
  export { workerConfig_6 as workerConfig };
551
558
  }
552
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
559
+ namespace AI_AUTO_ANNOTATE_QUEUE {
553
560
  let id_7: string;
554
561
  export { id_7 as id };
555
562
  export namespace queueConfig_7 {
@@ -589,7 +596,7 @@ declare namespace BASE_BULLMQ_CONFIG {
589
596
  }
590
597
  export { workerConfig_7 as workerConfig };
591
598
  }
592
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
599
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
593
600
  let id_8: string;
594
601
  export { id_8 as id };
595
602
  export namespace queueConfig_8 {
@@ -629,7 +636,7 @@ declare namespace BASE_BULLMQ_CONFIG {
629
636
  }
630
637
  export { workerConfig_8 as workerConfig };
631
638
  }
632
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
639
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
633
640
  let id_9: string;
634
641
  export { id_9 as id };
635
642
  export namespace queueConfig_9 {
@@ -669,7 +676,7 @@ declare namespace BASE_BULLMQ_CONFIG {
669
676
  }
670
677
  export { workerConfig_9 as workerConfig };
671
678
  }
672
- namespace REINDEX_QUEUE {
679
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
673
680
  let id_10: string;
674
681
  export { id_10 as id };
675
682
  export namespace queueConfig_10 {
@@ -683,8 +690,6 @@ declare namespace BASE_BULLMQ_CONFIG {
683
690
  export { delay_10 as delay };
684
691
  }
685
692
  export { backoff_10 as backoff };
686
- let delay_11: number;
687
- export { delay_11 as delay };
688
693
  let removeOnComplete_10: number;
689
694
  export { removeOnComplete_10 as removeOnComplete };
690
695
  let removeOnFail_10: number;
@@ -711,6 +716,48 @@ declare namespace BASE_BULLMQ_CONFIG {
711
716
  }
712
717
  export { workerConfig_10 as workerConfig };
713
718
  }
719
+ namespace REINDEX_QUEUE {
720
+ let id_11: string;
721
+ export { id_11 as id };
722
+ export namespace queueConfig_11 {
723
+ export namespace defaultJobOptions_11 {
724
+ let attempts_11: number;
725
+ export { attempts_11 as attempts };
726
+ export namespace backoff_11 {
727
+ let type_11: string;
728
+ export { type_11 as type };
729
+ let delay_11: number;
730
+ export { delay_11 as delay };
731
+ }
732
+ export { backoff_11 as backoff };
733
+ let delay_12: number;
734
+ export { delay_12 as delay };
735
+ let removeOnComplete_11: number;
736
+ export { removeOnComplete_11 as removeOnComplete };
737
+ let removeOnFail_11: number;
738
+ export { removeOnFail_11 as removeOnFail };
739
+ }
740
+ export { defaultJobOptions_11 as defaultJobOptions };
741
+ export namespace streams_11 {
742
+ export namespace events_11 {
743
+ let maxLen_11: number;
744
+ export { maxLen_11 as maxLen };
745
+ }
746
+ export { events_11 as events };
747
+ }
748
+ export { streams_11 as streams };
749
+ }
750
+ export { queueConfig_11 as queueConfig };
751
+ export namespace workerConfig_11 {
752
+ let concurrency_11: number;
753
+ export { concurrency_11 as concurrency };
754
+ let lockDuration_11: number;
755
+ export { lockDuration_11 as lockDuration };
756
+ let maxStalledCount_11: number;
757
+ export { maxStalledCount_11 as maxStalledCount };
758
+ }
759
+ export { workerConfig_11 as workerConfig };
760
+ }
714
761
  }
715
762
 
716
763
  interface PlatformContextContentItem {
@@ -1463,6 +1510,10 @@ declare function getGeneratedTopicsModelByTenant({ tenant, env }: {
1463
1510
  tenant: any;
1464
1511
  env: any;
1465
1512
  }): any;
1513
+ declare function getGeneratedEntitiesModelByTenant({ tenant, env }: {
1514
+ tenant: any;
1515
+ env: any;
1516
+ }): any;
1466
1517
 
1467
1518
  interface ITagData {
1468
1519
  _id?: Types.ObjectId;
@@ -1698,6 +1749,24 @@ declare const GeneratedTopicsSchema: Schema<IGeneratedTopic, mongoose.Model<IGen
1698
1749
  __v: number;
1699
1750
  }>;
1700
1751
 
1752
+ interface IGeneratedEntity {
1753
+ canonicalName: string;
1754
+ type: string;
1755
+ embeddings: number[];
1756
+ aliases: string[];
1757
+ createdAt: Date;
1758
+ updatedAt: Date;
1759
+ }
1760
+ declare const GeneratedEntitiesSchema: Schema<IGeneratedEntity, mongoose.Model<IGeneratedEntity, any, any, any, mongoose.Document<unknown, any, IGeneratedEntity, any, {}> & IGeneratedEntity & {
1761
+ _id: mongoose.Types.ObjectId;
1762
+ } & {
1763
+ __v: number;
1764
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IGeneratedEntity, mongoose.Document<unknown, {}, mongoose.FlatRecord<IGeneratedEntity>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<IGeneratedEntity> & {
1765
+ _id: mongoose.Types.ObjectId;
1766
+ } & {
1767
+ __v: number;
1768
+ }>;
1769
+
1701
1770
  declare class WorkerManager {
1702
1771
  constructor(workers?: any[]);
1703
1772
  workers: any[];
@@ -1851,4 +1920,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
1851
1920
  };
1852
1921
  }): Object;
1853
1922
 
1854
- export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1923
+ export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/node.d.ts CHANGED
@@ -509,7 +509,7 @@ declare namespace BASE_BULLMQ_CONFIG {
509
509
  }
510
510
  export { workerConfig_5 as workerConfig };
511
511
  }
512
- namespace AI_AUTO_ANNOTATE_QUEUE {
512
+ namespace SENTIMENT_AND_NER_QUEUE {
513
513
  let id_6: string;
514
514
  export { id_6 as id };
515
515
  export namespace queueConfig_6 {
@@ -546,10 +546,17 @@ declare namespace BASE_BULLMQ_CONFIG {
546
546
  export { lockDuration_6 as lockDuration };
547
547
  let maxStalledCount_6: number;
548
548
  export { maxStalledCount_6 as maxStalledCount };
549
+ export namespace limiter_3 {
550
+ let max_3: number;
551
+ export { max_3 as max };
552
+ let duration_3: number;
553
+ export { duration_3 as duration };
554
+ }
555
+ export { limiter_3 as limiter };
549
556
  }
550
557
  export { workerConfig_6 as workerConfig };
551
558
  }
552
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
559
+ namespace AI_AUTO_ANNOTATE_QUEUE {
553
560
  let id_7: string;
554
561
  export { id_7 as id };
555
562
  export namespace queueConfig_7 {
@@ -589,7 +596,7 @@ declare namespace BASE_BULLMQ_CONFIG {
589
596
  }
590
597
  export { workerConfig_7 as workerConfig };
591
598
  }
592
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
599
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
593
600
  let id_8: string;
594
601
  export { id_8 as id };
595
602
  export namespace queueConfig_8 {
@@ -629,7 +636,7 @@ declare namespace BASE_BULLMQ_CONFIG {
629
636
  }
630
637
  export { workerConfig_8 as workerConfig };
631
638
  }
632
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
639
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
633
640
  let id_9: string;
634
641
  export { id_9 as id };
635
642
  export namespace queueConfig_9 {
@@ -669,7 +676,7 @@ declare namespace BASE_BULLMQ_CONFIG {
669
676
  }
670
677
  export { workerConfig_9 as workerConfig };
671
678
  }
672
- namespace REINDEX_QUEUE {
679
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
673
680
  let id_10: string;
674
681
  export { id_10 as id };
675
682
  export namespace queueConfig_10 {
@@ -683,8 +690,6 @@ declare namespace BASE_BULLMQ_CONFIG {
683
690
  export { delay_10 as delay };
684
691
  }
685
692
  export { backoff_10 as backoff };
686
- let delay_11: number;
687
- export { delay_11 as delay };
688
693
  let removeOnComplete_10: number;
689
694
  export { removeOnComplete_10 as removeOnComplete };
690
695
  let removeOnFail_10: number;
@@ -711,6 +716,48 @@ declare namespace BASE_BULLMQ_CONFIG {
711
716
  }
712
717
  export { workerConfig_10 as workerConfig };
713
718
  }
719
+ namespace REINDEX_QUEUE {
720
+ let id_11: string;
721
+ export { id_11 as id };
722
+ export namespace queueConfig_11 {
723
+ export namespace defaultJobOptions_11 {
724
+ let attempts_11: number;
725
+ export { attempts_11 as attempts };
726
+ export namespace backoff_11 {
727
+ let type_11: string;
728
+ export { type_11 as type };
729
+ let delay_11: number;
730
+ export { delay_11 as delay };
731
+ }
732
+ export { backoff_11 as backoff };
733
+ let delay_12: number;
734
+ export { delay_12 as delay };
735
+ let removeOnComplete_11: number;
736
+ export { removeOnComplete_11 as removeOnComplete };
737
+ let removeOnFail_11: number;
738
+ export { removeOnFail_11 as removeOnFail };
739
+ }
740
+ export { defaultJobOptions_11 as defaultJobOptions };
741
+ export namespace streams_11 {
742
+ export namespace events_11 {
743
+ let maxLen_11: number;
744
+ export { maxLen_11 as maxLen };
745
+ }
746
+ export { events_11 as events };
747
+ }
748
+ export { streams_11 as streams };
749
+ }
750
+ export { queueConfig_11 as queueConfig };
751
+ export namespace workerConfig_11 {
752
+ let concurrency_11: number;
753
+ export { concurrency_11 as concurrency };
754
+ let lockDuration_11: number;
755
+ export { lockDuration_11 as lockDuration };
756
+ let maxStalledCount_11: number;
757
+ export { maxStalledCount_11 as maxStalledCount };
758
+ }
759
+ export { workerConfig_11 as workerConfig };
760
+ }
714
761
  }
715
762
 
716
763
  interface PlatformContextContentItem {
@@ -1463,6 +1510,10 @@ declare function getGeneratedTopicsModelByTenant({ tenant, env }: {
1463
1510
  tenant: any;
1464
1511
  env: any;
1465
1512
  }): any;
1513
+ declare function getGeneratedEntitiesModelByTenant({ tenant, env }: {
1514
+ tenant: any;
1515
+ env: any;
1516
+ }): any;
1466
1517
 
1467
1518
  interface ITagData {
1468
1519
  _id?: Types.ObjectId;
@@ -1698,6 +1749,24 @@ declare const GeneratedTopicsSchema: Schema<IGeneratedTopic, mongoose.Model<IGen
1698
1749
  __v: number;
1699
1750
  }>;
1700
1751
 
1752
+ interface IGeneratedEntity {
1753
+ canonicalName: string;
1754
+ type: string;
1755
+ embeddings: number[];
1756
+ aliases: string[];
1757
+ createdAt: Date;
1758
+ updatedAt: Date;
1759
+ }
1760
+ declare const GeneratedEntitiesSchema: Schema<IGeneratedEntity, mongoose.Model<IGeneratedEntity, any, any, any, mongoose.Document<unknown, any, IGeneratedEntity, any, {}> & IGeneratedEntity & {
1761
+ _id: mongoose.Types.ObjectId;
1762
+ } & {
1763
+ __v: number;
1764
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IGeneratedEntity, mongoose.Document<unknown, {}, mongoose.FlatRecord<IGeneratedEntity>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<IGeneratedEntity> & {
1765
+ _id: mongoose.Types.ObjectId;
1766
+ } & {
1767
+ __v: number;
1768
+ }>;
1769
+
1701
1770
  declare class WorkerManager {
1702
1771
  constructor(workers?: any[]);
1703
1772
  workers: any[];
@@ -1851,4 +1920,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
1851
1920
  };
1852
1921
  }): Object;
1853
1922
 
1854
- export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1923
+ export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/node.js CHANGED
@@ -218,6 +218,34 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
218
218
  }
219
219
  }
220
220
  },
221
+ SENTIMENT_AND_NER_QUEUE: {
222
+ id: "sentiment-and-ner-queue",
223
+ queueConfig: {
224
+ defaultJobOptions: {
225
+ attempts: 3,
226
+ backoff: {
227
+ type: "exponential",
228
+ delay: 2e3
229
+ },
230
+ removeOnComplete: 30,
231
+ removeOnFail: 100
232
+ },
233
+ streams: {
234
+ events: {
235
+ maxLen: 10
236
+ }
237
+ }
238
+ },
239
+ workerConfig: {
240
+ concurrency: 1,
241
+ lockDuration: 9e4,
242
+ maxStalledCount: 3,
243
+ limiter: {
244
+ max: 100,
245
+ duration: 6e4
246
+ }
247
+ }
248
+ },
221
249
  AI_AUTO_ANNOTATE_QUEUE: {
222
250
  id: "ai-auto-annotate-queue",
223
251
  queueConfig: {
@@ -1110,11 +1138,55 @@ var init_GeneratedTopics = __esm({
1110
1138
  }
1111
1139
  });
1112
1140
 
1141
+ // src/models/GeneratedEntities.ts
1142
+ var import_mongoose6, GeneratedEntitiesSchema, GeneratedEntities_default;
1143
+ var init_GeneratedEntities = __esm({
1144
+ "src/models/GeneratedEntities.ts"() {
1145
+ "use strict";
1146
+ import_mongoose6 = require("mongoose");
1147
+ GeneratedEntitiesSchema = new import_mongoose6.Schema(
1148
+ {
1149
+ canonicalName: {
1150
+ type: String,
1151
+ trim: true,
1152
+ required: true
1153
+ },
1154
+ type: {
1155
+ type: String,
1156
+ required: true,
1157
+ trim: true
1158
+ },
1159
+ embeddings: {
1160
+ type: [Number],
1161
+ required: true
1162
+ },
1163
+ aliases: {
1164
+ type: [String],
1165
+ default: []
1166
+ }
1167
+ },
1168
+ { timestamps: true, collection: "SYSTEM_generatedEntities" }
1169
+ );
1170
+ GeneratedEntitiesSchema.index(
1171
+ {
1172
+ canonicalName: 1,
1173
+ type: 1
1174
+ },
1175
+ {
1176
+ unique: true,
1177
+ name: "unique_entity_per_type"
1178
+ }
1179
+ );
1180
+ GeneratedEntities_default = GeneratedEntitiesSchema;
1181
+ }
1182
+ });
1183
+
1113
1184
  // src/models/index.ts
1114
1185
  var models_exports = {};
1115
1186
  __export(models_exports, {
1116
1187
  AIChatSchema: () => AIChat_default,
1117
1188
  AnnotationSchema: () => Annotations_default,
1189
+ GeneratedEntitiesSchema: () => GeneratedEntities_default,
1118
1190
  GeneratedTopicsSchema: () => GeneratedTopics_default,
1119
1191
  PlatformConfigsSchema: () => PlatformConfigs_default,
1120
1192
  TplSchema: () => Tpl_default
@@ -1127,6 +1199,7 @@ var init_models = __esm({
1127
1199
  init_PlatformConfigs();
1128
1200
  init_Tpl();
1129
1201
  init_GeneratedTopics();
1202
+ init_GeneratedEntities();
1130
1203
  }
1131
1204
  });
1132
1205
 
@@ -1135,11 +1208,11 @@ var getDbByTenant_exports = {};
1135
1208
  __export(getDbByTenant_exports, {
1136
1209
  getDbByTenant: () => getDbByTenant
1137
1210
  });
1138
- var import_mongoose6, import_MongoConnector, getDbByTenant;
1211
+ var import_mongoose7, import_MongoConnector, getDbByTenant;
1139
1212
  var init_getDbByTenant = __esm({
1140
1213
  "src/db/getDbByTenant.js"() {
1141
1214
  "use strict";
1142
- import_mongoose6 = require("mongoose");
1215
+ import_mongoose7 = require("mongoose");
1143
1216
  import_MongoConnector = __toESM(require_MongoConnector());
1144
1217
  getDbByTenant = ({
1145
1218
  tenant,
@@ -1167,7 +1240,7 @@ var require_getModelByTenant = __commonJS({
1167
1240
  "src/db/getModelByTenant.js"(exports2, module2) {
1168
1241
  "use strict";
1169
1242
  var { getDbByTenant: getDbByTenant2 } = (init_getDbByTenant(), __toCommonJS(getDbByTenant_exports));
1170
- var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2 } = (init_models(), __toCommonJS(models_exports));
1243
+ var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2, GeneratedEntitiesSchema: GeneratedEntitiesSchema2 } = (init_models(), __toCommonJS(models_exports));
1171
1244
  var getModelByTenant3 = ({ tenant, modelName, schema, env }) => {
1172
1245
  if (!tenant) {
1173
1246
  throw new Error("tenant id has not been provided");
@@ -1208,13 +1281,20 @@ var require_getModelByTenant = __commonJS({
1208
1281
  schema: GeneratedTopicsSchema2,
1209
1282
  env
1210
1283
  });
1284
+ var getGeneratedEntitiesModelByTenant2 = ({ tenant, env }) => getModelByTenant3({
1285
+ tenant,
1286
+ modelName: "generatedEntities",
1287
+ schema: GeneratedEntitiesSchema2,
1288
+ env
1289
+ });
1211
1290
  module2.exports = {
1212
1291
  getModelByTenant: getModelByTenant3,
1213
1292
  getAIChatModelByTenant: getAIChatModelByTenant2,
1214
1293
  getAnnotationsModelByTenant: getAnnotationsModelByTenant2,
1215
1294
  getPlatformConfigsModelByTenant: getPlatformConfigsModelByTenant2,
1216
1295
  getTplModelByTenant: getTplModelByTenant2,
1217
- getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2
1296
+ getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2,
1297
+ getGeneratedEntitiesModelByTenant: getGeneratedEntitiesModelByTenant2
1218
1298
  };
1219
1299
  }
1220
1300
  });
@@ -1836,6 +1916,7 @@ __export(node_exports, {
1836
1916
  ElasticSearchConnector: () => import_ElasticSearchConnector.ElasticSearchConnector,
1837
1917
  FILTER_IDS: () => FILTER_IDS,
1838
1918
  GET_GLOBAL_BULLMQ_CONFIG: () => import_GET_GLOBAL_BULLMQ_CONFIG.GET_GLOBAL_BULLMQ_CONFIG,
1919
+ GeneratedEntitiesSchema: () => GeneratedEntities_default,
1839
1920
  GeneratedTopicsSchema: () => GeneratedTopics_default,
1840
1921
  MongoConnector: () => import_MongoConnector3.MongoConnector,
1841
1922
  PlatformConfigsSchema: () => PlatformConfigs_default,
@@ -1861,6 +1942,7 @@ __export(node_exports, {
1861
1942
  getAnnotationsModelByTenant: () => import_getModelByTenant2.getAnnotationsModelByTenant,
1862
1943
  getDbByTenant: () => getDbByTenant,
1863
1944
  getFilterKeyForBlock: () => getFilterKeyForBlock,
1945
+ getGeneratedEntitiesModelByTenant: () => import_getModelByTenant2.getGeneratedEntitiesModelByTenant,
1864
1946
  getGeneratedTopicsModelByTenant: () => import_getModelByTenant2.getGeneratedTopicsModelByTenant,
1865
1947
  getModelByTenant: () => import_getModelByTenant2.getModelByTenant,
1866
1948
  getPlatformConfigsModelByTenant: () => import_getModelByTenant2.getPlatformConfigsModelByTenant,
@@ -3757,6 +3839,7 @@ var import_GET_GLOBAL_BULLMQ_CONFIG = __toESM(require_GET_GLOBAL_BULLMQ_CONFIG()
3757
3839
  ElasticSearchConnector,
3758
3840
  FILTER_IDS,
3759
3841
  GET_GLOBAL_BULLMQ_CONFIG,
3842
+ GeneratedEntitiesSchema,
3760
3843
  GeneratedTopicsSchema,
3761
3844
  MongoConnector,
3762
3845
  PlatformConfigsSchema,
@@ -3782,6 +3865,7 @@ var import_GET_GLOBAL_BULLMQ_CONFIG = __toESM(require_GET_GLOBAL_BULLMQ_CONFIG()
3782
3865
  getAnnotationsModelByTenant,
3783
3866
  getDbByTenant,
3784
3867
  getFilterKeyForBlock,
3868
+ getGeneratedEntitiesModelByTenant,
3785
3869
  getGeneratedTopicsModelByTenant,
3786
3870
  getModelByTenant,
3787
3871
  getPlatformConfigsModelByTenant,
package/dist/node.mjs CHANGED
@@ -223,6 +223,34 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
223
223
  }
224
224
  }
225
225
  },
226
+ SENTIMENT_AND_NER_QUEUE: {
227
+ id: "sentiment-and-ner-queue",
228
+ queueConfig: {
229
+ defaultJobOptions: {
230
+ attempts: 3,
231
+ backoff: {
232
+ type: "exponential",
233
+ delay: 2e3
234
+ },
235
+ removeOnComplete: 30,
236
+ removeOnFail: 100
237
+ },
238
+ streams: {
239
+ events: {
240
+ maxLen: 10
241
+ }
242
+ }
243
+ },
244
+ workerConfig: {
245
+ concurrency: 1,
246
+ lockDuration: 9e4,
247
+ maxStalledCount: 3,
248
+ limiter: {
249
+ max: 100,
250
+ duration: 6e4
251
+ }
252
+ }
253
+ },
226
254
  AI_AUTO_ANNOTATE_QUEUE: {
227
255
  id: "ai-auto-annotate-queue",
228
256
  queueConfig: {
@@ -1115,11 +1143,55 @@ var init_GeneratedTopics = __esm({
1115
1143
  }
1116
1144
  });
1117
1145
 
1146
+ // src/models/GeneratedEntities.ts
1147
+ import { Schema as Schema3 } from "mongoose";
1148
+ var GeneratedEntitiesSchema, GeneratedEntities_default;
1149
+ var init_GeneratedEntities = __esm({
1150
+ "src/models/GeneratedEntities.ts"() {
1151
+ "use strict";
1152
+ GeneratedEntitiesSchema = new Schema3(
1153
+ {
1154
+ canonicalName: {
1155
+ type: String,
1156
+ trim: true,
1157
+ required: true
1158
+ },
1159
+ type: {
1160
+ type: String,
1161
+ required: true,
1162
+ trim: true
1163
+ },
1164
+ embeddings: {
1165
+ type: [Number],
1166
+ required: true
1167
+ },
1168
+ aliases: {
1169
+ type: [String],
1170
+ default: []
1171
+ }
1172
+ },
1173
+ { timestamps: true, collection: "SYSTEM_generatedEntities" }
1174
+ );
1175
+ GeneratedEntitiesSchema.index(
1176
+ {
1177
+ canonicalName: 1,
1178
+ type: 1
1179
+ },
1180
+ {
1181
+ unique: true,
1182
+ name: "unique_entity_per_type"
1183
+ }
1184
+ );
1185
+ GeneratedEntities_default = GeneratedEntitiesSchema;
1186
+ }
1187
+ });
1188
+
1118
1189
  // src/models/index.ts
1119
1190
  var models_exports = {};
1120
1191
  __export(models_exports, {
1121
1192
  AIChatSchema: () => AIChat_default,
1122
1193
  AnnotationSchema: () => Annotations_default,
1194
+ GeneratedEntitiesSchema: () => GeneratedEntities_default,
1123
1195
  GeneratedTopicsSchema: () => GeneratedTopics_default,
1124
1196
  PlatformConfigsSchema: () => PlatformConfigs_default,
1125
1197
  TplSchema: () => Tpl_default
@@ -1132,6 +1204,7 @@ var init_models = __esm({
1132
1204
  init_PlatformConfigs();
1133
1205
  init_Tpl();
1134
1206
  init_GeneratedTopics();
1207
+ init_GeneratedEntities();
1135
1208
  }
1136
1209
  });
1137
1210
 
@@ -1172,7 +1245,7 @@ var require_getModelByTenant = __commonJS({
1172
1245
  "src/db/getModelByTenant.js"(exports, module) {
1173
1246
  "use strict";
1174
1247
  var { getDbByTenant: getDbByTenant2 } = (init_getDbByTenant(), __toCommonJS(getDbByTenant_exports));
1175
- var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2 } = (init_models(), __toCommonJS(models_exports));
1248
+ var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2, GeneratedEntitiesSchema: GeneratedEntitiesSchema2 } = (init_models(), __toCommonJS(models_exports));
1176
1249
  var getModelByTenant3 = ({ tenant, modelName, schema, env }) => {
1177
1250
  if (!tenant) {
1178
1251
  throw new Error("tenant id has not been provided");
@@ -1213,13 +1286,20 @@ var require_getModelByTenant = __commonJS({
1213
1286
  schema: GeneratedTopicsSchema2,
1214
1287
  env
1215
1288
  });
1289
+ var getGeneratedEntitiesModelByTenant2 = ({ tenant, env }) => getModelByTenant3({
1290
+ tenant,
1291
+ modelName: "generatedEntities",
1292
+ schema: GeneratedEntitiesSchema2,
1293
+ env
1294
+ });
1216
1295
  module.exports = {
1217
1296
  getModelByTenant: getModelByTenant3,
1218
1297
  getAIChatModelByTenant: getAIChatModelByTenant2,
1219
1298
  getAnnotationsModelByTenant: getAnnotationsModelByTenant2,
1220
1299
  getPlatformConfigsModelByTenant: getPlatformConfigsModelByTenant2,
1221
1300
  getTplModelByTenant: getTplModelByTenant2,
1222
- getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2
1301
+ getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2,
1302
+ getGeneratedEntitiesModelByTenant: getGeneratedEntitiesModelByTenant2
1223
1303
  };
1224
1304
  }
1225
1305
  });
@@ -3703,6 +3783,7 @@ var export_ProducerManager = import_ProducerManager.ProducerManager;
3703
3783
  var export_WorkerManager = import_WorkerManager.WorkerManager;
3704
3784
  var export_getAIChatModelByTenant = import_getModelByTenant2.getAIChatModelByTenant;
3705
3785
  var export_getAnnotationsModelByTenant = import_getModelByTenant2.getAnnotationsModelByTenant;
3786
+ var export_getGeneratedEntitiesModelByTenant = import_getModelByTenant2.getGeneratedEntitiesModelByTenant;
3706
3787
  var export_getGeneratedTopicsModelByTenant = import_getModelByTenant2.getGeneratedTopicsModelByTenant;
3707
3788
  var export_getModelByTenant = import_getModelByTenant2.getModelByTenant;
3708
3789
  var export_getPlatformConfigsModelByTenant = import_getModelByTenant2.getPlatformConfigsModelByTenant;
@@ -3718,6 +3799,7 @@ export {
3718
3799
  export_ElasticSearchConnector as ElasticSearchConnector,
3719
3800
  FILTER_IDS,
3720
3801
  export_GET_GLOBAL_BULLMQ_CONFIG as GET_GLOBAL_BULLMQ_CONFIG,
3802
+ GeneratedEntities_default as GeneratedEntitiesSchema,
3721
3803
  GeneratedTopics_default as GeneratedTopicsSchema,
3722
3804
  export_MongoConnector as MongoConnector,
3723
3805
  PlatformConfigs_default as PlatformConfigsSchema,
@@ -3743,6 +3825,7 @@ export {
3743
3825
  export_getAnnotationsModelByTenant as getAnnotationsModelByTenant,
3744
3826
  getDbByTenant,
3745
3827
  getFilterKeyForBlock,
3828
+ export_getGeneratedEntitiesModelByTenant as getGeneratedEntitiesModelByTenant,
3746
3829
  export_getGeneratedTopicsModelByTenant as getGeneratedTopicsModelByTenant,
3747
3830
  export_getModelByTenant as getModelByTenant,
3748
3831
  export_getPlatformConfigsModelByTenant as getPlatformConfigsModelByTenant,
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
502
502
  }
503
503
  export { workerConfig_5 as workerConfig };
504
504
  }
505
- namespace AI_AUTO_ANNOTATE_QUEUE {
505
+ namespace SENTIMENT_AND_NER_QUEUE {
506
506
  let id_6: string;
507
507
  export { id_6 as id };
508
508
  export namespace queueConfig_6 {
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
539
539
  export { lockDuration_6 as lockDuration };
540
540
  let maxStalledCount_6: number;
541
541
  export { maxStalledCount_6 as maxStalledCount };
542
+ export namespace limiter_3 {
543
+ let max_3: number;
544
+ export { max_3 as max };
545
+ let duration_3: number;
546
+ export { duration_3 as duration };
547
+ }
548
+ export { limiter_3 as limiter };
542
549
  }
543
550
  export { workerConfig_6 as workerConfig };
544
551
  }
545
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
552
+ namespace AI_AUTO_ANNOTATE_QUEUE {
546
553
  let id_7: string;
547
554
  export { id_7 as id };
548
555
  export namespace queueConfig_7 {
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
582
589
  }
583
590
  export { workerConfig_7 as workerConfig };
584
591
  }
585
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
592
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
586
593
  let id_8: string;
587
594
  export { id_8 as id };
588
595
  export namespace queueConfig_8 {
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
622
629
  }
623
630
  export { workerConfig_8 as workerConfig };
624
631
  }
625
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
632
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
626
633
  let id_9: string;
627
634
  export { id_9 as id };
628
635
  export namespace queueConfig_9 {
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
662
669
  }
663
670
  export { workerConfig_9 as workerConfig };
664
671
  }
665
- namespace REINDEX_QUEUE {
672
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
666
673
  let id_10: string;
667
674
  export { id_10 as id };
668
675
  export namespace queueConfig_10 {
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
676
683
  export { delay_10 as delay };
677
684
  }
678
685
  export { backoff_10 as backoff };
679
- let delay_11: number;
680
- export { delay_11 as delay };
681
686
  let removeOnComplete_10: number;
682
687
  export { removeOnComplete_10 as removeOnComplete };
683
688
  let removeOnFail_10: number;
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
704
709
  }
705
710
  export { workerConfig_10 as workerConfig };
706
711
  }
712
+ namespace REINDEX_QUEUE {
713
+ let id_11: string;
714
+ export { id_11 as id };
715
+ export namespace queueConfig_11 {
716
+ export namespace defaultJobOptions_11 {
717
+ let attempts_11: number;
718
+ export { attempts_11 as attempts };
719
+ export namespace backoff_11 {
720
+ let type_11: string;
721
+ export { type_11 as type };
722
+ let delay_11: number;
723
+ export { delay_11 as delay };
724
+ }
725
+ export { backoff_11 as backoff };
726
+ let delay_12: number;
727
+ export { delay_12 as delay };
728
+ let removeOnComplete_11: number;
729
+ export { removeOnComplete_11 as removeOnComplete };
730
+ let removeOnFail_11: number;
731
+ export { removeOnFail_11 as removeOnFail };
732
+ }
733
+ export { defaultJobOptions_11 as defaultJobOptions };
734
+ export namespace streams_11 {
735
+ export namespace events_11 {
736
+ let maxLen_11: number;
737
+ export { maxLen_11 as maxLen };
738
+ }
739
+ export { events_11 as events };
740
+ }
741
+ export { streams_11 as streams };
742
+ }
743
+ export { queueConfig_11 as queueConfig };
744
+ export namespace workerConfig_11 {
745
+ let concurrency_11: number;
746
+ export { concurrency_11 as concurrency };
747
+ let lockDuration_11: number;
748
+ export { lockDuration_11 as lockDuration };
749
+ let maxStalledCount_11: number;
750
+ export { maxStalledCount_11 as maxStalledCount };
751
+ }
752
+ export { workerConfig_11 as workerConfig };
753
+ }
707
754
  }
708
755
 
709
756
  interface PlatformContextContentItem {
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
502
502
  }
503
503
  export { workerConfig_5 as workerConfig };
504
504
  }
505
- namespace AI_AUTO_ANNOTATE_QUEUE {
505
+ namespace SENTIMENT_AND_NER_QUEUE {
506
506
  let id_6: string;
507
507
  export { id_6 as id };
508
508
  export namespace queueConfig_6 {
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
539
539
  export { lockDuration_6 as lockDuration };
540
540
  let maxStalledCount_6: number;
541
541
  export { maxStalledCount_6 as maxStalledCount };
542
+ export namespace limiter_3 {
543
+ let max_3: number;
544
+ export { max_3 as max };
545
+ let duration_3: number;
546
+ export { duration_3 as duration };
547
+ }
548
+ export { limiter_3 as limiter };
542
549
  }
543
550
  export { workerConfig_6 as workerConfig };
544
551
  }
545
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
552
+ namespace AI_AUTO_ANNOTATE_QUEUE {
546
553
  let id_7: string;
547
554
  export { id_7 as id };
548
555
  export namespace queueConfig_7 {
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
582
589
  }
583
590
  export { workerConfig_7 as workerConfig };
584
591
  }
585
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
592
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
586
593
  let id_8: string;
587
594
  export { id_8 as id };
588
595
  export namespace queueConfig_8 {
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
622
629
  }
623
630
  export { workerConfig_8 as workerConfig };
624
631
  }
625
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
632
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
626
633
  let id_9: string;
627
634
  export { id_9 as id };
628
635
  export namespace queueConfig_9 {
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
662
669
  }
663
670
  export { workerConfig_9 as workerConfig };
664
671
  }
665
- namespace REINDEX_QUEUE {
672
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
666
673
  let id_10: string;
667
674
  export { id_10 as id };
668
675
  export namespace queueConfig_10 {
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
676
683
  export { delay_10 as delay };
677
684
  }
678
685
  export { backoff_10 as backoff };
679
- let delay_11: number;
680
- export { delay_11 as delay };
681
686
  let removeOnComplete_10: number;
682
687
  export { removeOnComplete_10 as removeOnComplete };
683
688
  let removeOnFail_10: number;
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
704
709
  }
705
710
  export { workerConfig_10 as workerConfig };
706
711
  }
712
+ namespace REINDEX_QUEUE {
713
+ let id_11: string;
714
+ export { id_11 as id };
715
+ export namespace queueConfig_11 {
716
+ export namespace defaultJobOptions_11 {
717
+ let attempts_11: number;
718
+ export { attempts_11 as attempts };
719
+ export namespace backoff_11 {
720
+ let type_11: string;
721
+ export { type_11 as type };
722
+ let delay_11: number;
723
+ export { delay_11 as delay };
724
+ }
725
+ export { backoff_11 as backoff };
726
+ let delay_12: number;
727
+ export { delay_12 as delay };
728
+ let removeOnComplete_11: number;
729
+ export { removeOnComplete_11 as removeOnComplete };
730
+ let removeOnFail_11: number;
731
+ export { removeOnFail_11 as removeOnFail };
732
+ }
733
+ export { defaultJobOptions_11 as defaultJobOptions };
734
+ export namespace streams_11 {
735
+ export namespace events_11 {
736
+ let maxLen_11: number;
737
+ export { maxLen_11 as maxLen };
738
+ }
739
+ export { events_11 as events };
740
+ }
741
+ export { streams_11 as streams };
742
+ }
743
+ export { queueConfig_11 as queueConfig };
744
+ export namespace workerConfig_11 {
745
+ let concurrency_11: number;
746
+ export { concurrency_11 as concurrency };
747
+ let lockDuration_11: number;
748
+ export { lockDuration_11 as lockDuration };
749
+ let maxStalledCount_11: number;
750
+ export { maxStalledCount_11 as maxStalledCount };
751
+ }
752
+ export { workerConfig_11 as workerConfig };
753
+ }
707
754
  }
708
755
 
709
756
  interface PlatformContextContentItem {
package/dist/universal.js CHANGED
@@ -632,6 +632,34 @@ var BASE_BULLMQ_CONFIG = {
632
632
  }
633
633
  }
634
634
  },
635
+ SENTIMENT_AND_NER_QUEUE: {
636
+ id: "sentiment-and-ner-queue",
637
+ queueConfig: {
638
+ defaultJobOptions: {
639
+ attempts: 3,
640
+ backoff: {
641
+ type: "exponential",
642
+ delay: 2e3
643
+ },
644
+ removeOnComplete: 30,
645
+ removeOnFail: 100
646
+ },
647
+ streams: {
648
+ events: {
649
+ maxLen: 10
650
+ }
651
+ }
652
+ },
653
+ workerConfig: {
654
+ concurrency: 1,
655
+ lockDuration: 9e4,
656
+ maxStalledCount: 3,
657
+ limiter: {
658
+ max: 100,
659
+ duration: 6e4
660
+ }
661
+ }
662
+ },
635
663
  AI_AUTO_ANNOTATE_QUEUE: {
636
664
  id: "ai-auto-annotate-queue",
637
665
  queueConfig: {
@@ -578,6 +578,34 @@ var BASE_BULLMQ_CONFIG = {
578
578
  }
579
579
  }
580
580
  },
581
+ SENTIMENT_AND_NER_QUEUE: {
582
+ id: "sentiment-and-ner-queue",
583
+ queueConfig: {
584
+ defaultJobOptions: {
585
+ attempts: 3,
586
+ backoff: {
587
+ type: "exponential",
588
+ delay: 2e3
589
+ },
590
+ removeOnComplete: 30,
591
+ removeOnFail: 100
592
+ },
593
+ streams: {
594
+ events: {
595
+ maxLen: 10
596
+ }
597
+ }
598
+ },
599
+ workerConfig: {
600
+ concurrency: 1,
601
+ lockDuration: 9e4,
602
+ maxStalledCount: 3,
603
+ limiter: {
604
+ max: 100,
605
+ duration: 6e4
606
+ }
607
+ }
608
+ },
581
609
  AI_AUTO_ANNOTATE_QUEUE: {
582
610
  id: "ai-auto-annotate-queue",
583
611
  queueConfig: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.26.2",
6
+ "version": "1.26.3",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",