@exulu/backend 1.39.2 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -311,7 +311,10 @@ type ExuluQueueConfig = {
311
311
  queue: Queue;
312
312
  ratelimit: number;
313
313
  timeoutInSeconds?: number;
314
- concurrency: number;
314
+ concurrency: {
315
+ worker: number;
316
+ queue: number;
317
+ };
315
318
  retries?: number;
316
319
  backoff?: {
317
320
  type: 'exponential' | 'linear';
@@ -542,14 +545,9 @@ type ExuluContextFieldProcessor = {
542
545
  role?: string;
543
546
  utils: {
544
547
  storage: ExuluStorage;
545
- items: {
546
- update: ExuluContext['updateItem'];
547
- create: ExuluContext['createItem'];
548
- delete: ExuluContext['deleteItem'];
549
- };
550
548
  };
551
549
  exuluConfig: ExuluConfig;
552
- }) => Promise<string>;
550
+ }) => Promise<Item>;
553
551
  config?: {
554
552
  queue?: Promise<ExuluQueueConfig>;
555
553
  timeoutInSeconds?: number;
@@ -576,7 +574,7 @@ declare class ExuluStorage {
576
574
  config: ExuluConfig;
577
575
  });
578
576
  getPresignedUrl: (key: string) => Promise<string>;
579
- uploadFile: (file: Buffer | Uint8Array, key: string, type: string, user?: number, metadata?: Record<string, string>) => Promise<string>;
577
+ uploadFile: (file: Buffer | Uint8Array, fileName: string, type: string, user?: number, metadata?: Record<string, string>, customBucket?: string) => Promise<string>;
580
578
  }
581
579
  type ExuluContextSource = {
582
580
  id: string;
@@ -638,7 +636,7 @@ declare class ExuluContext {
638
636
  processField: (trigger: STATISTICS_LABELS, item: Item & {
639
637
  field: string;
640
638
  }, exuluConfig: ExuluConfig, user?: number, role?: string) => Promise<{
641
- result: string;
639
+ result: Item;
642
640
  job?: string;
643
641
  }>;
644
642
  search: (options: {
@@ -713,7 +711,7 @@ declare class ExuluContext {
713
711
  createChunksTable: () => Promise<void>;
714
712
  tool: () => ExuluTool;
715
713
  }
716
- type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user";
714
+ type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user" | "processor";
717
715
  type ExuluStatistic = {
718
716
  name: string;
719
717
  label: string;
@@ -739,21 +737,33 @@ declare class ExuluQueues {
739
737
  queues: {
740
738
  queue: Queue;
741
739
  ratelimit: number;
742
- concurrency: number;
740
+ concurrency: {
741
+ worker: number;
742
+ queue: number;
743
+ };
743
744
  }[];
744
745
  constructor();
745
746
  list: Map<string, {
746
747
  name: string;
747
- concurrency: number;
748
+ concurrency: {
749
+ worker: number;
750
+ queue: number;
751
+ };
748
752
  ratelimit: number;
749
753
  use: () => Promise<ExuluQueueConfig>;
750
754
  }>;
751
755
  queue(name: string): {
752
756
  queue: Queue;
753
757
  ratelimit: number;
754
- concurrency: number;
758
+ concurrency: {
759
+ worker: number;
760
+ queue: number;
761
+ };
755
762
  } | undefined;
756
- register: (name: string, concurrency?: number, ratelimit?: number) => {
763
+ register: (name: string, concurrency: {
764
+ worker: number;
765
+ queue: number;
766
+ }, ratelimit?: number) => {
757
767
  use: () => Promise<ExuluQueueConfig>;
758
768
  };
759
769
  }
package/dist/index.d.ts CHANGED
@@ -311,7 +311,10 @@ type ExuluQueueConfig = {
311
311
  queue: Queue;
312
312
  ratelimit: number;
313
313
  timeoutInSeconds?: number;
314
- concurrency: number;
314
+ concurrency: {
315
+ worker: number;
316
+ queue: number;
317
+ };
315
318
  retries?: number;
316
319
  backoff?: {
317
320
  type: 'exponential' | 'linear';
@@ -542,14 +545,9 @@ type ExuluContextFieldProcessor = {
542
545
  role?: string;
543
546
  utils: {
544
547
  storage: ExuluStorage;
545
- items: {
546
- update: ExuluContext['updateItem'];
547
- create: ExuluContext['createItem'];
548
- delete: ExuluContext['deleteItem'];
549
- };
550
548
  };
551
549
  exuluConfig: ExuluConfig;
552
- }) => Promise<string>;
550
+ }) => Promise<Item>;
553
551
  config?: {
554
552
  queue?: Promise<ExuluQueueConfig>;
555
553
  timeoutInSeconds?: number;
@@ -576,7 +574,7 @@ declare class ExuluStorage {
576
574
  config: ExuluConfig;
577
575
  });
578
576
  getPresignedUrl: (key: string) => Promise<string>;
579
- uploadFile: (file: Buffer | Uint8Array, key: string, type: string, user?: number, metadata?: Record<string, string>) => Promise<string>;
577
+ uploadFile: (file: Buffer | Uint8Array, fileName: string, type: string, user?: number, metadata?: Record<string, string>, customBucket?: string) => Promise<string>;
580
578
  }
581
579
  type ExuluContextSource = {
582
580
  id: string;
@@ -638,7 +636,7 @@ declare class ExuluContext {
638
636
  processField: (trigger: STATISTICS_LABELS, item: Item & {
639
637
  field: string;
640
638
  }, exuluConfig: ExuluConfig, user?: number, role?: string) => Promise<{
641
- result: string;
639
+ result: Item;
642
640
  job?: string;
643
641
  }>;
644
642
  search: (options: {
@@ -713,7 +711,7 @@ declare class ExuluContext {
713
711
  createChunksTable: () => Promise<void>;
714
712
  tool: () => ExuluTool;
715
713
  }
716
- type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user";
714
+ type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user" | "processor";
717
715
  type ExuluStatistic = {
718
716
  name: string;
719
717
  label: string;
@@ -739,21 +737,33 @@ declare class ExuluQueues {
739
737
  queues: {
740
738
  queue: Queue;
741
739
  ratelimit: number;
742
- concurrency: number;
740
+ concurrency: {
741
+ worker: number;
742
+ queue: number;
743
+ };
743
744
  }[];
744
745
  constructor();
745
746
  list: Map<string, {
746
747
  name: string;
747
- concurrency: number;
748
+ concurrency: {
749
+ worker: number;
750
+ queue: number;
751
+ };
748
752
  ratelimit: number;
749
753
  use: () => Promise<ExuluQueueConfig>;
750
754
  }>;
751
755
  queue(name: string): {
752
756
  queue: Queue;
753
757
  ratelimit: number;
754
- concurrency: number;
758
+ concurrency: {
759
+ worker: number;
760
+ queue: number;
761
+ };
755
762
  } | undefined;
756
- register: (name: string, concurrency?: number, ratelimit?: number) => {
763
+ register: (name: string, concurrency: {
764
+ worker: number;
765
+ queue: number;
766
+ }, ratelimit?: number) => {
757
767
  use: () => Promise<ExuluQueueConfig>;
758
768
  };
759
769
  }