@exulu/backend 1.23.3 → 1.24.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.23.3",
4
+ "version": "1.24.0",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {
@@ -49,7 +49,7 @@
49
49
  "typescript": "^5.8.3"
50
50
  },
51
51
  "dependencies": {
52
- "@ai-sdk/anthropic": "^2.0.4",
52
+ "@ai-sdk/anthropic": "^2.0.17",
53
53
  "@ai-sdk/openai": "^2.0.27",
54
54
  "@anthropic-ai/sdk": "^0.56.0",
55
55
  "@as-integrations/express5": "^1.0.0",
@@ -66,7 +66,7 @@
66
66
  "@opentelemetry/sdk-node": "^0.203.0",
67
67
  "@opentelemetry/semantic-conventions": "^1.36.0",
68
68
  "@opentelemetry/winston-transport": "^0.14.1",
69
- "ai": "^5.0.15",
69
+ "ai": "^5.0.44",
70
70
  "apollo-server": "^3.13.0",
71
71
  "bcryptjs": "^3.0.2",
72
72
  "body-parser": "^2.2.0",
@@ -83,20 +83,20 @@
83
83
  "graphql-type-json": "^0.3.2",
84
84
  "http-proxy-middleware": "^3.0.5",
85
85
  "jose": "^6.0.10",
86
+ "json-schema-to-zod": "^2.6.1",
86
87
  "jsonwebtoken": "^9.0.2",
87
88
  "knex": "^3.1.0",
88
89
  "link": "^2.1.1",
89
- "openai": "^4.94.0",
90
+ "openai": "^5.21.0",
90
91
  "papaparse": "^5.5.2",
91
92
  "pg": "^8.16.3",
92
93
  "pgvector": "^0.2.0",
93
94
  "redis": "^4.7.0",
94
95
  "reflect-metadata": "^0.2.2",
95
96
  "tiktoken": "^1.0.21",
96
- "uninstall": "^0.0.0",
97
97
  "uuid": "^11.1.0",
98
98
  "winston": "^3.17.0",
99
- "zod": "^3.24.2",
99
+ "zod": "^3.25.76",
100
100
  "zodex": "^0.18.2"
101
101
  }
102
102
  }
@@ -1 +1 @@
1
- export type ExuluFieldTypes = "text" | "longText" | "shortText" | "number" | "boolean" | "code" | "json" | "enum"
1
+ export type ExuluFieldTypes = "text" | "longText" | "shortText" | "number" | "boolean" | "code" | "json" | "enum" | "markdown"
@@ -3,10 +3,10 @@ export interface Agent {
3
3
  modelName?: string;
4
4
  providerName?: string;
5
5
  backend: string;
6
- type: "chat" | "flow" | "custom";
6
+ type: "agent";
7
7
  name: string;
8
8
  image?: string;
9
- providerApiKey?: string;
9
+ providerapikey?: string;
10
10
  firewall?: {
11
11
  enabled: boolean;
12
12
  scanners?: {
@@ -19,9 +19,11 @@ export interface Agent {
19
19
  }
20
20
  active?: boolean;
21
21
  description?: string;
22
+ instructions?: string;
22
23
  slug?: string;
23
24
  tools?: {
24
- toolId: string;
25
+ id: string;
26
+ type: string;
25
27
  config: {
26
28
  name: string;
27
29
  variable: string;
@@ -29,22 +31,29 @@ export interface Agent {
29
31
  name: string;
30
32
  description: string;
31
33
  }[];
34
+ maxContextLength?: number;
32
35
  capabilities?: {
33
36
  text: boolean;
34
- images: string[];
35
- files: string[];
36
- audio: string[];
37
- video: string[];
37
+ images: imageTypes[];
38
+ files: fileTypes[];
39
+ audio: audioTypes[];
40
+ video: videoTypes[];
38
41
  }
39
42
  // New RBAC fields
40
43
  rights_mode?: 'private' | 'users' | 'roles' | 'public' | 'projects';
41
44
  created_by?: string;
42
45
  RBAC?: {
43
46
  type?: string;
44
- users?: Array<{ id: string; rights: 'read' | 'write' }>;
47
+ users?: Array<{ id: number; rights: 'read' | 'write' }>;
45
48
  roles?: Array<{ id: string; rights: 'read' | 'write' }>;
46
49
  projects?: Array<{ id: string; rights: 'read' | 'write' }>;
47
50
  };
48
51
  createdAt?: string;
49
52
  updatedAt?: string;
50
- }
53
+ }
54
+
55
+ export type imageTypes = '.png' | '.jpg' | '.jpeg' | '.gif' | '.webp';
56
+ export type fileTypes = '.pdf' | '.docx' | '.xlsx' | '.xls' | '.csv' | '.pptx' | '.ppt';
57
+ export type audioTypes = '.mp3' | '.wav' | '.m4a' | '.mp4' | '.mpeg';
58
+ export type videoTypes = '.mp4' | '.m4a' | '.mp3' | '.mpeg' | '.wav';
59
+ export type allFileTypes = imageTypes | fileTypes | audioTypes | videoTypes;
@@ -5,6 +5,7 @@ export interface Project {
5
5
  custom_instructions: string;
6
6
  rights_mode?: 'private' | 'users' | 'roles' | 'public';
7
7
  created_by?: string;
8
+ project_items?: string[]; // array of items as global ids ('<context_id>/<item_id>')
8
9
  RBAC?: {
9
10
  type?: string;
10
11
  users?: Array<{ id: string; rights: 'read' | 'write' }>;
@@ -1,5 +1,5 @@
1
1
  export type User = {
2
- id: string;
2
+ id: number;
3
3
  email: string;
4
4
  emailVerified?: string;
5
5
  type?: "api" | "user"