@exulu/backend 1.21.0 → 1.23.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
@@ -2,7 +2,7 @@ import * as _opentelemetry_sdk_node from '@opentelemetry/sdk-node';
2
2
  import * as bullmq from 'bullmq';
3
3
  import { Queue } from 'bullmq';
4
4
  import { RedisClientType } from 'redis';
5
- import { ZodSchema, z } from 'zod';
5
+ import { ZodSchema } from 'zod';
6
6
  import { Tool, LanguageModel, UIMessage } from 'ai';
7
7
  import { Response, Request, Express } from 'express';
8
8
  import { Knex } from 'knex';
@@ -64,18 +64,6 @@ interface RateLimiterRule {
64
64
  limit: number;
65
65
  };
66
66
  }
67
- declare const ExuluZodFileType: ({ name, label, description, allowedFileTypes }: {
68
- name: string;
69
- label: string;
70
- description: string;
71
- allowedFileTypes: (".mp4" | ".m4a" | ".mp3" | ".pdf" | ".jpeg" | ".png" | ".plain" | ".mpeg" | ".wav" | ".docx" | ".xlsx" | ".xls" | ".csv" | ".pptx" | ".ppt")[];
72
- }) => z.ZodObject<{
73
- [x: string]: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- [x: string]: string;
76
- }, {
77
- [x: string]: string;
78
- }>;
79
67
  type ExuluAgentConfig = {
80
68
  name: string;
81
69
  instructions: string;
@@ -109,10 +97,10 @@ interface ExuluAgentParams {
109
97
  config?: ExuluAgentConfig | undefined;
110
98
  capabilities?: {
111
99
  text: boolean;
112
- images: string[];
113
- files: string[];
114
- audio: string[];
115
- video: string[];
100
+ images: ('.png' | '.jpg' | '.jpeg' | '.gif' | '.webp')[];
101
+ files: ('.pdf' | '.docx' | '.xlsx' | '.xls' | '.csv' | '.pptx' | '.ppt')[];
102
+ audio: ('.mp3' | '.wav' | '.m4a' | '.mp4' | '.mpeg')[];
103
+ video: ('.mp4' | '.m4a' | '.mp3' | '.mpeg' | '.wav')[];
116
104
  };
117
105
  evals?: ExuluAgentEval[];
118
106
  outputSchema?: ZodSchema;
@@ -245,20 +233,21 @@ interface ExuluWorkflow {
245
233
  id: string;
246
234
  name: string;
247
235
  description?: string;
248
- rights_mode?: 'private' | 'users' | 'roles' | 'public';
249
- RBAC?: {
250
- users?: Array<{
251
- id: string;
252
- rights: 'read' | 'write';
253
- }>;
254
- roles?: Array<{
255
- id: string;
256
- rights: 'read' | 'write';
257
- }>;
258
- };
236
+ rights_mode?: ExuluRightsMode;
237
+ RBAC?: ExuluRBAC;
259
238
  variables?: WorkflowVariable[];
260
239
  steps_json?: WorkflowStep[];
261
240
  }
241
+ interface ExuluRBAC {
242
+ users?: Array<{
243
+ id: string;
244
+ rights: 'read' | 'write';
245
+ }>;
246
+ roles?: Array<{
247
+ id: string;
248
+ rights: 'read' | 'write';
249
+ }>;
250
+ }
262
251
  type ExuluEvalRunnerInstance = {
263
252
  name: string;
264
253
  description: string;
@@ -472,6 +461,13 @@ type ExuluConfig = {
472
461
  MCP: {
473
462
  enabled: boolean;
474
463
  };
464
+ fileUploads: {
465
+ s3region: string;
466
+ s3key: string;
467
+ s3secret: string;
468
+ s3Bucket: string;
469
+ s3endpoint?: string;
470
+ };
475
471
  };
476
472
  declare class ExuluApp {
477
473
  private _agents;
@@ -1458,4 +1454,4 @@ declare const ExuluChunkers: {
1458
1454
  };
1459
1455
  };
1460
1456
 
1461
- export { type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, ExuluAgent, ExuluApp, authentication as ExuluAuthentication, ExuluChunkers, ExuluContext, ExuluEmbedder, ExuluEval, ExuluJobs, ExuluOtel, queues as ExuluQueues, ExuluTool, ExuluZodFileType, db };
1457
+ export { type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, ExuluAgent, ExuluApp, authentication as ExuluAuthentication, ExuluChunkers, ExuluContext, ExuluEmbedder, ExuluEval, ExuluJobs, ExuluOtel, queues as ExuluQueues, ExuluTool, db };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _opentelemetry_sdk_node from '@opentelemetry/sdk-node';
2
2
  import * as bullmq from 'bullmq';
3
3
  import { Queue } from 'bullmq';
4
4
  import { RedisClientType } from 'redis';
5
- import { ZodSchema, z } from 'zod';
5
+ import { ZodSchema } from 'zod';
6
6
  import { Tool, LanguageModel, UIMessage } from 'ai';
7
7
  import { Response, Request, Express } from 'express';
8
8
  import { Knex } from 'knex';
@@ -64,18 +64,6 @@ interface RateLimiterRule {
64
64
  limit: number;
65
65
  };
66
66
  }
67
- declare const ExuluZodFileType: ({ name, label, description, allowedFileTypes }: {
68
- name: string;
69
- label: string;
70
- description: string;
71
- allowedFileTypes: (".mp4" | ".m4a" | ".mp3" | ".pdf" | ".jpeg" | ".png" | ".plain" | ".mpeg" | ".wav" | ".docx" | ".xlsx" | ".xls" | ".csv" | ".pptx" | ".ppt")[];
72
- }) => z.ZodObject<{
73
- [x: string]: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- [x: string]: string;
76
- }, {
77
- [x: string]: string;
78
- }>;
79
67
  type ExuluAgentConfig = {
80
68
  name: string;
81
69
  instructions: string;
@@ -109,10 +97,10 @@ interface ExuluAgentParams {
109
97
  config?: ExuluAgentConfig | undefined;
110
98
  capabilities?: {
111
99
  text: boolean;
112
- images: string[];
113
- files: string[];
114
- audio: string[];
115
- video: string[];
100
+ images: ('.png' | '.jpg' | '.jpeg' | '.gif' | '.webp')[];
101
+ files: ('.pdf' | '.docx' | '.xlsx' | '.xls' | '.csv' | '.pptx' | '.ppt')[];
102
+ audio: ('.mp3' | '.wav' | '.m4a' | '.mp4' | '.mpeg')[];
103
+ video: ('.mp4' | '.m4a' | '.mp3' | '.mpeg' | '.wav')[];
116
104
  };
117
105
  evals?: ExuluAgentEval[];
118
106
  outputSchema?: ZodSchema;
@@ -245,20 +233,21 @@ interface ExuluWorkflow {
245
233
  id: string;
246
234
  name: string;
247
235
  description?: string;
248
- rights_mode?: 'private' | 'users' | 'roles' | 'public';
249
- RBAC?: {
250
- users?: Array<{
251
- id: string;
252
- rights: 'read' | 'write';
253
- }>;
254
- roles?: Array<{
255
- id: string;
256
- rights: 'read' | 'write';
257
- }>;
258
- };
236
+ rights_mode?: ExuluRightsMode;
237
+ RBAC?: ExuluRBAC;
259
238
  variables?: WorkflowVariable[];
260
239
  steps_json?: WorkflowStep[];
261
240
  }
241
+ interface ExuluRBAC {
242
+ users?: Array<{
243
+ id: string;
244
+ rights: 'read' | 'write';
245
+ }>;
246
+ roles?: Array<{
247
+ id: string;
248
+ rights: 'read' | 'write';
249
+ }>;
250
+ }
262
251
  type ExuluEvalRunnerInstance = {
263
252
  name: string;
264
253
  description: string;
@@ -472,6 +461,13 @@ type ExuluConfig = {
472
461
  MCP: {
473
462
  enabled: boolean;
474
463
  };
464
+ fileUploads: {
465
+ s3region: string;
466
+ s3key: string;
467
+ s3secret: string;
468
+ s3Bucket: string;
469
+ s3endpoint?: string;
470
+ };
475
471
  };
476
472
  declare class ExuluApp {
477
473
  private _agents;
@@ -1458,4 +1454,4 @@ declare const ExuluChunkers: {
1458
1454
  };
1459
1455
  };
1460
1456
 
1461
- export { type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, ExuluAgent, ExuluApp, authentication as ExuluAuthentication, ExuluChunkers, ExuluContext, ExuluEmbedder, ExuluEval, ExuluJobs, ExuluOtel, queues as ExuluQueues, ExuluTool, ExuluZodFileType, db };
1457
+ export { type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, ExuluAgent, ExuluApp, authentication as ExuluAuthentication, ExuluChunkers, ExuluContext, ExuluEmbedder, ExuluEval, ExuluJobs, ExuluOtel, queues as ExuluQueues, ExuluTool, db };