@breign/db-schemas 0.1.42 → 0.1.44

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.
@@ -1,6 +1,7 @@
1
1
  import { AgentModuleTypeUio, AgentTypeUio } from '@breign/client';
2
2
  import { FlowNode } from './flow';
3
3
  import { EngineOptions } from './engine';
4
+ import { SpeechToTextConfig } from './speech-to-text';
4
5
  export type Agent = {
5
6
  id: string;
6
7
  name: string;
@@ -40,6 +41,7 @@ export type Agent = {
40
41
  hideConversationsInHistory?: boolean;
41
42
  maxToolSteps?: number;
42
43
  contextualKnowledgeConversation?: ContextualKnowledgeConversationConfig;
44
+ speechToText?: SpeechToTextConfig;
43
45
  };
44
46
  export type ContextualKnowledgeConversationBackend = 'weaviate' | 'qdrant' | 'colpali';
45
47
  export type ContextualKnowledgeConversationConfig = {
@@ -1,3 +1,4 @@
1
+ import { SpeechToTextConfig } from './speech-to-text';
1
2
  export type AppStatus = 'IDLE' | 'BUSY';
2
3
  export type AppConfiguration = {
3
4
  date: string;
@@ -57,6 +58,7 @@ export type App = {
57
58
  voiceId: string;
58
59
  type: string;
59
60
  voiceModelId: string;
61
+ speechToText?: SpeechToTextConfig;
60
62
  voice?: Record<string, string | number>;
61
63
  lipsync?: AppLipsync;
62
64
  status: AppStatus;
@@ -15,3 +15,4 @@ export * from './tool';
15
15
  export * from './skill';
16
16
  export * from './scheduled-task';
17
17
  export * from './scheduled-task-run';
18
+ export * from './speech-to-text';
@@ -31,3 +31,4 @@ __exportStar(require("./tool"), exports);
31
31
  __exportStar(require("./skill"), exports);
32
32
  __exportStar(require("./scheduled-task"), exports);
33
33
  __exportStar(require("./scheduled-task-run"), exports);
34
+ __exportStar(require("./speech-to-text"), exports);
@@ -7,9 +7,41 @@ export type Skill = {
7
7
  content: string;
8
8
  isActive: boolean;
9
9
  createdBy?: string | null;
10
+ librarySlug?: string | null;
11
+ libraryVersionId?: string | null;
10
12
  createdAt: string;
11
13
  updatedAt: string;
12
14
  };
15
+ export type LibrarySkillVersion = {
16
+ id: string;
17
+ slug: string;
18
+ version: string;
19
+ name: string;
20
+ description: string;
21
+ content: string;
22
+ category?: string | null;
23
+ isLatest: boolean;
24
+ sourceSkillId: string | null;
25
+ publishedAt: string;
26
+ publishedBy: string | null;
27
+ publishedByName?: string | null;
28
+ files?: {
29
+ filename: string;
30
+ content: string;
31
+ }[];
32
+ };
33
+ export type LibrarySkillEntry = {
34
+ id: string;
35
+ slug: string;
36
+ name: string;
37
+ description: string;
38
+ sourceSkillId: string | null;
39
+ latestVersionId: string | null;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ versions: LibrarySkillVersion[];
43
+ latestVersion: LibrarySkillVersion | null;
44
+ };
13
45
  export type AgentSkill = {
14
46
  agentId: string;
15
47
  skillId: string;
@@ -0,0 +1,4 @@
1
+ export type SpeechToTextConfig = {
2
+ providerId: string;
3
+ modelId: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/db-schemas",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,6 +1,7 @@
1
1
  import { AgentModuleTypeUio, AgentTypeUio } from '@breign/client';
2
2
  import { FlowNode } from './flow';
3
3
  import { EngineOptions } from './engine';
4
+ import { SpeechToTextConfig } from './speech-to-text';
4
5
 
5
6
  export type Agent = {
6
7
  id: string;
@@ -36,6 +37,7 @@ export type Agent = {
36
37
  hideConversationsInHistory?: boolean;
37
38
  maxToolSteps?: number;
38
39
  contextualKnowledgeConversation?: ContextualKnowledgeConversationConfig;
40
+ speechToText?: SpeechToTextConfig;
39
41
  };
40
42
 
41
43
  export type ContextualKnowledgeConversationBackend = 'weaviate' | 'qdrant' | 'colpali';
package/src/types/app.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { SpeechToTextConfig } from './speech-to-text';
2
+
1
3
  export type AppStatus = 'IDLE' | 'BUSY';
2
4
 
3
5
  export type AppConfiguration = { date: string } & Record<string, unknown>;
@@ -61,6 +63,7 @@ export type App = {
61
63
  voiceId: string;
62
64
  type: string;
63
65
  voiceModelId: string;
66
+ speechToText?: SpeechToTextConfig;
64
67
  voice?: Record<string, string | number>;
65
68
  lipsync?: AppLipsync;
66
69
  status: AppStatus;
@@ -15,3 +15,4 @@ export * from './tool';
15
15
  export * from './skill';
16
16
  export * from './scheduled-task';
17
17
  export * from './scheduled-task-run';
18
+ export * from './speech-to-text';
@@ -7,10 +7,41 @@ export type Skill = {
7
7
  content: string;
8
8
  isActive: boolean;
9
9
  createdBy?: string | null;
10
+ librarySlug?: string | null;
11
+ libraryVersionId?: string | null;
10
12
  createdAt: string;
11
13
  updatedAt: string;
12
14
  };
13
15
 
16
+ export type LibrarySkillVersion = {
17
+ id: string;
18
+ slug: string;
19
+ version: string;
20
+ name: string;
21
+ description: string;
22
+ content: string;
23
+ category?: string | null;
24
+ isLatest: boolean;
25
+ sourceSkillId: string | null;
26
+ publishedAt: string;
27
+ publishedBy: string | null;
28
+ publishedByName?: string | null;
29
+ files?: { filename: string; content: string }[];
30
+ };
31
+
32
+ export type LibrarySkillEntry = {
33
+ id: string;
34
+ slug: string;
35
+ name: string;
36
+ description: string;
37
+ sourceSkillId: string | null;
38
+ latestVersionId: string | null;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ versions: LibrarySkillVersion[];
42
+ latestVersion: LibrarySkillVersion | null;
43
+ };
44
+
14
45
  export type AgentSkill = {
15
46
  agentId: string;
16
47
  skillId: string;
@@ -0,0 +1,4 @@
1
+ export type SpeechToTextConfig = {
2
+ providerId: string;
3
+ modelId: string;
4
+ };