@breign/db-schemas 0.1.23 → 0.1.25
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/types/advanced-flow-editor.d.ts +21 -0
- package/dist/types/advanced-flow-editor.js +2 -0
- package/dist/types/app.d.ts +84 -0
- package/dist/types/app.js +2 -0
- package/dist/types/flow-editor.d.ts +11 -0
- package/dist/types/flow-editor.js +2 -0
- package/dist/types/flow.d.ts +3 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +4 -0
- package/dist/types/role.d.ts +10 -0
- package/dist/types/role.js +2 -0
- package/dist/types/user.d.ts +1 -0
- package/package.json +2 -2
- package/src/types/advanced-flow-editor.ts +20 -0
- package/src/types/app.ts +76 -0
- package/src/types/flow-editor.ts +12 -0
- package/src/types/flow.ts +4 -2
- package/src/types/index.ts +4 -0
- package/src/types/role.ts +11 -0
- package/src/types/user.ts +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type AdvancedFlowEditorNode = {
|
|
2
|
+
id: string;
|
|
3
|
+
position: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
type: string;
|
|
8
|
+
data: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
export type AdvancedFlowEditorEdge = {
|
|
11
|
+
id: string;
|
|
12
|
+
source: string;
|
|
13
|
+
sourceHandle?: string;
|
|
14
|
+
target: string;
|
|
15
|
+
targetHandle?: string;
|
|
16
|
+
};
|
|
17
|
+
export type AdvancedFlowEditor = {
|
|
18
|
+
agentId: string;
|
|
19
|
+
nodes: AdvancedFlowEditorNode[];
|
|
20
|
+
edges: AdvancedFlowEditorEdge[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export type AppStatus = 'IDLE' | 'BUSY';
|
|
2
|
+
export type AppConfiguration = {
|
|
3
|
+
date: string;
|
|
4
|
+
} & Record<string, unknown>;
|
|
5
|
+
export type AppLipsync = {
|
|
6
|
+
provider: string;
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
endpoint?: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
export type AppInstance = {
|
|
12
|
+
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
status: AppStatus;
|
|
16
|
+
};
|
|
17
|
+
export type AppAnimation = {
|
|
18
|
+
category?: string;
|
|
19
|
+
type: string;
|
|
20
|
+
animationId: string;
|
|
21
|
+
code: string;
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
export type AppSequence = {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
contents: {
|
|
28
|
+
text?: string;
|
|
29
|
+
code?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type AppCommand = {
|
|
33
|
+
name: string;
|
|
34
|
+
command: Record<string, unknown>;
|
|
35
|
+
category?: string;
|
|
36
|
+
};
|
|
37
|
+
export type AppFiller = {
|
|
38
|
+
id: string;
|
|
39
|
+
text: string;
|
|
40
|
+
checked: boolean;
|
|
41
|
+
};
|
|
42
|
+
export type App = {
|
|
43
|
+
id: string;
|
|
44
|
+
agentId: string;
|
|
45
|
+
name: string;
|
|
46
|
+
authSecret: string;
|
|
47
|
+
streamingEnabled: boolean;
|
|
48
|
+
voiceProvider?: string;
|
|
49
|
+
voiceProviderApiKey?: string;
|
|
50
|
+
voiceProviderOrganization?: string;
|
|
51
|
+
voiceId: string;
|
|
52
|
+
type: string;
|
|
53
|
+
voiceModelId: string;
|
|
54
|
+
voice?: Record<string, string | number>;
|
|
55
|
+
lipsync?: AppLipsync;
|
|
56
|
+
status: AppStatus;
|
|
57
|
+
persona?: {
|
|
58
|
+
[lang: string]: string;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
promptInit?: {
|
|
62
|
+
[lang: string]: string;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
probe?: {
|
|
66
|
+
id: string;
|
|
67
|
+
date: string;
|
|
68
|
+
} & Record<string, unknown>;
|
|
69
|
+
appConfiguration?: AppConfiguration;
|
|
70
|
+
profilePicture?: string;
|
|
71
|
+
disableFillers?: boolean;
|
|
72
|
+
instances?: AppInstance[];
|
|
73
|
+
favoriteOutfit?: Record<string, unknown>;
|
|
74
|
+
animations?: AppAnimation[];
|
|
75
|
+
sequences?: AppSequence[];
|
|
76
|
+
commands?: AppCommand[];
|
|
77
|
+
fillers?: {
|
|
78
|
+
[lang: string]: AppFiller[];
|
|
79
|
+
};
|
|
80
|
+
ephemeralInstances?: {
|
|
81
|
+
allowed: boolean;
|
|
82
|
+
maxInstances: number;
|
|
83
|
+
};
|
|
84
|
+
};
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type FlowNode = {
|
|
2
|
+
name?: string;
|
|
2
3
|
id: string;
|
|
3
|
-
|
|
4
|
+
agentId: string;
|
|
4
5
|
entrypoints?: {
|
|
5
6
|
nodes?: string[];
|
|
6
7
|
intents: string[];
|
|
@@ -20,6 +21,7 @@ export type FlowNodeContents = {
|
|
|
20
21
|
text?: string;
|
|
21
22
|
texts?: string[];
|
|
22
23
|
instructions?: string;
|
|
24
|
+
instructionItems?: string[];
|
|
23
25
|
tools?: {
|
|
24
26
|
/**
|
|
25
27
|
* Prevents the agent from using any tools other than those listed when at this node.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from './agent';
|
|
2
|
+
export * from './app';
|
|
2
3
|
export * from './flow';
|
|
4
|
+
export * from './flow-editor';
|
|
5
|
+
export * from './advanced-flow-editor';
|
|
3
6
|
export * from './file';
|
|
4
7
|
export * from './engine';
|
|
5
8
|
export * from './knowledge';
|
|
6
9
|
export * from './organization';
|
|
7
10
|
export * from './user';
|
|
11
|
+
export * from './role';
|
|
8
12
|
export * from './tool';
|
package/dist/types/index.js
CHANGED
|
@@ -15,10 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./agent"), exports);
|
|
18
|
+
__exportStar(require("./app"), exports);
|
|
18
19
|
__exportStar(require("./flow"), exports);
|
|
20
|
+
__exportStar(require("./flow-editor"), exports);
|
|
21
|
+
__exportStar(require("./advanced-flow-editor"), exports);
|
|
19
22
|
__exportStar(require("./file"), exports);
|
|
20
23
|
__exportStar(require("./engine"), exports);
|
|
21
24
|
__exportStar(require("./knowledge"), exports);
|
|
22
25
|
__exportStar(require("./organization"), exports);
|
|
23
26
|
__exportStar(require("./user"), exports);
|
|
27
|
+
__exportStar(require("./role"), exports);
|
|
24
28
|
__exportStar(require("./tool"), exports);
|
package/dist/types/user.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breign/db-schemas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"typescript": "^5.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@breign/client": "1.0.
|
|
17
|
+
"@breign/client": "1.0.76",
|
|
18
18
|
"prettier": "^3.5.3",
|
|
19
19
|
"zx": "^8.5.5"
|
|
20
20
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type AdvancedFlowEditorNode = {
|
|
2
|
+
id: string;
|
|
3
|
+
position: { x: number; y: number };
|
|
4
|
+
type: string;
|
|
5
|
+
data: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type AdvancedFlowEditorEdge = {
|
|
9
|
+
id: string;
|
|
10
|
+
source: string;
|
|
11
|
+
sourceHandle?: string;
|
|
12
|
+
target: string;
|
|
13
|
+
targetHandle?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type AdvancedFlowEditor = {
|
|
17
|
+
agentId: string;
|
|
18
|
+
nodes: AdvancedFlowEditorNode[];
|
|
19
|
+
edges: AdvancedFlowEditorEdge[];
|
|
20
|
+
};
|
package/src/types/app.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type AppStatus = 'IDLE' | 'BUSY';
|
|
2
|
+
|
|
3
|
+
export type AppConfiguration = { date: string } & Record<string, unknown>;
|
|
4
|
+
|
|
5
|
+
export type AppLipsync = {
|
|
6
|
+
provider: string;
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
endpoint?: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type AppInstance = {
|
|
13
|
+
name: string;
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
status: AppStatus;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type AppAnimation = {
|
|
20
|
+
category?: string;
|
|
21
|
+
type: string;
|
|
22
|
+
animationId: string;
|
|
23
|
+
code: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type AppSequence = {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
contents: { text?: string; code?: string };
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type AppCommand = {
|
|
34
|
+
name: string;
|
|
35
|
+
command: Record<string, unknown>;
|
|
36
|
+
category?: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type AppFiller = {
|
|
40
|
+
id: string;
|
|
41
|
+
text: string;
|
|
42
|
+
checked: boolean;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type App = {
|
|
46
|
+
id: string;
|
|
47
|
+
agentId: string;
|
|
48
|
+
name: string;
|
|
49
|
+
authSecret: string;
|
|
50
|
+
streamingEnabled: boolean;
|
|
51
|
+
voiceProvider?: string;
|
|
52
|
+
voiceProviderApiKey?: string;
|
|
53
|
+
voiceProviderOrganization?: string;
|
|
54
|
+
voiceId: string;
|
|
55
|
+
type: string;
|
|
56
|
+
voiceModelId: string;
|
|
57
|
+
voice?: Record<string, string | number>;
|
|
58
|
+
lipsync?: AppLipsync;
|
|
59
|
+
status: AppStatus;
|
|
60
|
+
persona?: { [lang: string]: string; default: string };
|
|
61
|
+
promptInit?: { [lang: string]: string; default: string };
|
|
62
|
+
probe?: { id: string; date: string } & Record<string, unknown>;
|
|
63
|
+
appConfiguration?: AppConfiguration;
|
|
64
|
+
profilePicture?: string;
|
|
65
|
+
disableFillers?: boolean;
|
|
66
|
+
instances?: AppInstance[];
|
|
67
|
+
favoriteOutfit?: Record<string, unknown>;
|
|
68
|
+
animations?: AppAnimation[];
|
|
69
|
+
sequences?: AppSequence[];
|
|
70
|
+
commands?: AppCommand[];
|
|
71
|
+
fillers?: { [lang: string]: AppFiller[] };
|
|
72
|
+
ephemeralInstances?: {
|
|
73
|
+
allowed: boolean;
|
|
74
|
+
maxInstances: number;
|
|
75
|
+
};
|
|
76
|
+
};
|
package/src/types/flow.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type FlowNode = {
|
|
2
|
+
name?: string;
|
|
2
3
|
id: string;
|
|
3
|
-
|
|
4
|
+
agentId: string;
|
|
4
5
|
entrypoints?: {
|
|
5
6
|
nodes?: string[];
|
|
6
7
|
intents: string[];
|
|
@@ -19,6 +20,7 @@ export type FlowNodeContents = {
|
|
|
19
20
|
text?: string;
|
|
20
21
|
texts?: string[];
|
|
21
22
|
instructions?: string;
|
|
23
|
+
instructionItems?: string[];
|
|
22
24
|
tools?: {
|
|
23
25
|
/**
|
|
24
26
|
* Prevents the agent from using any tools other than those listed when at this node.
|
|
@@ -66,7 +68,7 @@ export type FlowNodeExits = {
|
|
|
66
68
|
*/
|
|
67
69
|
onFailure?: string;
|
|
68
70
|
evaluation: {
|
|
69
|
-
instructions: string[]; //
|
|
71
|
+
instructions: string[]; // A set of instructions to evaluate the requirements. If each instruction is satisfied (check by AI), the agent can leave the node.
|
|
70
72
|
};
|
|
71
73
|
};
|
|
72
74
|
};
|
package/src/types/index.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from './agent';
|
|
2
|
+
export * from './app';
|
|
2
3
|
export * from './flow';
|
|
4
|
+
export * from './flow-editor';
|
|
5
|
+
export * from './advanced-flow-editor';
|
|
3
6
|
export * from './file';
|
|
4
7
|
export * from './engine';
|
|
5
8
|
export * from './knowledge';
|
|
6
9
|
export * from './organization';
|
|
7
10
|
export * from './user';
|
|
11
|
+
export * from './role';
|
|
8
12
|
export * from './tool';
|