@breign/client 1.0.5 → 1.0.7

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.
Files changed (104) hide show
  1. package/dist/apis/AgentApi.d.ts +5 -4
  2. package/dist/apis/AgentApi.js +6 -3
  3. package/dist/apis/EngineApi.d.ts +6 -5
  4. package/dist/apis/EngineApi.js +13 -7
  5. package/dist/apis/FilesApi.d.ts +21 -21
  6. package/dist/apis/FilesApi.js +42 -42
  7. package/dist/apis/GeneralApi.d.ts +2 -2
  8. package/dist/apis/GeneralApi.js +3 -3
  9. package/dist/apis/GuardiansApi.d.ts +54 -54
  10. package/dist/apis/GuardiansApi.js +91 -91
  11. package/dist/apis/KnowledgeApi.d.ts +72 -72
  12. package/dist/apis/KnowledgeApi.js +152 -152
  13. package/dist/apis/ManifestsApi.d.ts +28 -28
  14. package/dist/apis/ManifestsApi.js +45 -45
  15. package/dist/apis/MetricsApi.d.ts +14 -14
  16. package/dist/apis/MetricsApi.js +18 -18
  17. package/dist/apis/OrganizationsApi.d.ts +3 -3
  18. package/dist/apis/OrganizationsApi.js +4 -4
  19. package/dist/apis/PromptsApi.d.ts +31 -31
  20. package/dist/apis/PromptsApi.js +60 -60
  21. package/dist/apis/RemotesApi.d.ts +3 -3
  22. package/dist/apis/RemotesApi.js +4 -4
  23. package/dist/apis/ToolsApi.d.ts +6 -6
  24. package/dist/apis/ToolsApi.js +8 -8
  25. package/dist/models/AgentPatchEngineUio.d.ts +38 -0
  26. package/dist/models/AgentPatchEngineUio.js +54 -0
  27. package/dist/models/AgentPatchUio.d.ts +4 -4
  28. package/dist/models/AgentPatchUio.js +3 -3
  29. package/dist/models/AgentRequestUio.d.ts +10 -1
  30. package/dist/models/AgentRequestUio.js +5 -3
  31. package/dist/models/AgentUio.d.ts +10 -3
  32. package/dist/models/AgentUio.js +4 -3
  33. package/dist/models/AppCreateRequestUio.d.ts +6 -0
  34. package/dist/models/AppCreateRequestUio.js +2 -0
  35. package/dist/models/AppSequencesInnerUio.d.ts +38 -0
  36. package/dist/models/AppSequencesInnerUio.js +50 -0
  37. package/dist/models/AppUio.d.ts +24 -3
  38. package/dist/models/AppUio.js +11 -10
  39. package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
  40. package/dist/models/ChatMessageAudioInnerUio.js +54 -0
  41. package/dist/models/ChatMessageUio.d.ts +10 -2
  42. package/dist/models/ChatMessageUio.js +6 -2
  43. package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
  44. package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
  45. package/dist/models/ChatUio.d.ts +9 -3
  46. package/dist/models/ChatUio.js +5 -3
  47. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
  48. package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
  49. package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
  50. package/dist/models/ConversationFlowNodeUio.js +55 -0
  51. package/dist/models/ConversationUio.d.ts +7 -0
  52. package/dist/models/ConversationUio.js +5 -0
  53. package/dist/models/DefaultEngineRequestUio.d.ts +1 -7
  54. package/dist/models/DefaultEngineRequestUio.js +3 -7
  55. package/dist/models/EngineUio.d.ts +4 -7
  56. package/dist/models/EngineUio.js +6 -7
  57. package/dist/models/FileCreationRequestUio.d.ts +1 -1
  58. package/dist/models/FileCreationRequestUio.js +1 -3
  59. package/dist/models/FileCreationResponseUio.d.ts +6 -0
  60. package/dist/models/FileCreationResponseUio.js +2 -0
  61. package/dist/models/FileUio.d.ts +6 -0
  62. package/dist/models/FileUio.js +2 -0
  63. package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
  64. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  65. package/dist/models/GuardianCreateRequestUio.d.ts +7 -0
  66. package/dist/models/GuardianCreateRequestUio.js +5 -0
  67. package/dist/models/GuardianEngineUio.d.ts +0 -7
  68. package/dist/models/GuardianEngineUio.js +0 -5
  69. package/dist/models/GuardianPutRequestUio.d.ts +7 -0
  70. package/dist/models/GuardianPutRequestUio.js +3 -0
  71. package/dist/models/GuardianTypeUio.d.ts +26 -0
  72. package/dist/models/GuardianTypeUio.js +52 -0
  73. package/dist/models/GuardianUio.d.ts +7 -0
  74. package/dist/models/GuardianUio.js +5 -0
  75. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
  76. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
  77. package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
  78. package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
  79. package/dist/models/KnowledgeBaseUio.d.ts +124 -0
  80. package/dist/models/KnowledgeBaseUio.js +88 -0
  81. package/dist/models/OrganizationUio.d.ts +0 -9
  82. package/dist/models/OrganizationUio.js +0 -6
  83. package/dist/models/ProviderCreateRequestUio.d.ts +4 -9
  84. package/dist/models/ProviderCreateRequestUio.js +4 -9
  85. package/dist/models/ProviderTypeUio.d.ts +27 -0
  86. package/dist/models/ProviderTypeUio.js +53 -0
  87. package/dist/models/ProviderUio.d.ts +4 -9
  88. package/dist/models/ProviderUio.js +4 -9
  89. package/dist/models/index.d.ts +11 -6
  90. package/dist/models/index.js +11 -6
  91. package/dist/openapi.json +369 -120
  92. package/package.json +1 -1
  93. package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
  94. package/dist/models/AgentKnowledgeBaseUio.js +0 -67
  95. package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
  96. package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
  97. package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
  98. package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
  99. package/dist/models/EngineTypeUio.d.ts +0 -25
  100. package/dist/models/EngineTypeUio.js +0 -51
  101. package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
  102. package/dist/models/GuardianEngineTypeUio.js +0 -52
  103. package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
  104. package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
@@ -76,6 +76,12 @@ export interface AppCreateRequestUio {
76
76
  * @memberof AppCreateRequestUio
77
77
  */
78
78
  connected?: boolean;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof AppCreateRequestUio
83
+ */
84
+ type?: string;
79
85
  }
80
86
  /**
81
87
  * Check if a given object implements the AppCreateRequestUio interface.
@@ -49,6 +49,7 @@ function AppCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'voiceModelId': json['voiceModelId'] == null ? undefined : json['voiceModelId'],
50
50
  'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
51
51
  'connected': json['connected'] == null ? undefined : json['connected'],
52
+ 'type': json['type'] == null ? undefined : json['type'],
52
53
  };
53
54
  }
54
55
  function AppCreateRequestUioToJSON(json) {
@@ -69,5 +70,6 @@ function AppCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
69
70
  'voiceModelId': value['voiceModelId'],
70
71
  'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
71
72
  'connected': value['connected'],
73
+ 'type': value['type'],
72
74
  };
73
75
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AppSequencesInnerUio
16
+ */
17
+ export interface AppSequencesInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AppSequencesInnerUio
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AppSequencesInnerUio
28
+ */
29
+ name?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AppSequencesInnerUio interface.
33
+ */
34
+ export declare function instanceOfAppSequencesInnerUio(value: object): value is AppSequencesInnerUio;
35
+ export declare function AppSequencesInnerUioFromJSON(json: any): AppSequencesInnerUio;
36
+ export declare function AppSequencesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppSequencesInnerUio;
37
+ export declare function AppSequencesInnerUioToJSON(json: any): AppSequencesInnerUio;
38
+ export declare function AppSequencesInnerUioToJSONTyped(value?: AppSequencesInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAppSequencesInnerUio = instanceOfAppSequencesInnerUio;
17
+ exports.AppSequencesInnerUioFromJSON = AppSequencesInnerUioFromJSON;
18
+ exports.AppSequencesInnerUioFromJSONTyped = AppSequencesInnerUioFromJSONTyped;
19
+ exports.AppSequencesInnerUioToJSON = AppSequencesInnerUioToJSON;
20
+ exports.AppSequencesInnerUioToJSONTyped = AppSequencesInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AppSequencesInnerUio interface.
23
+ */
24
+ function instanceOfAppSequencesInnerUio(value) {
25
+ return true;
26
+ }
27
+ function AppSequencesInnerUioFromJSON(json) {
28
+ return AppSequencesInnerUioFromJSONTyped(json, false);
29
+ }
30
+ function AppSequencesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ };
38
+ }
39
+ function AppSequencesInnerUioToJSON(json) {
40
+ return AppSequencesInnerUioToJSONTyped(json, false);
41
+ }
42
+ function AppSequencesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AppSequencesInnerUio } from './AppSequencesInnerUio';
12
13
  import type { AppConfigurationUio } from './AppConfigurationUio';
13
14
  import type { SimpleAgentUio } from './SimpleAgentUio';
14
15
  import type { InstanceUio } from './InstanceUio';
@@ -43,7 +44,13 @@ export interface AppUio {
43
44
  * @type {SimpleAgentUio}
44
45
  * @memberof AppUio
45
46
  */
46
- agent: SimpleAgentUio;
47
+ agent?: SimpleAgentUio;
48
+ /**
49
+ *
50
+ * @type {Array<AppSequencesInnerUio>}
51
+ * @memberof AppUio
52
+ */
53
+ sequences?: Array<AppSequencesInnerUio>;
47
54
  /**
48
55
  *
49
56
  * @type {string}
@@ -86,6 +93,14 @@ export interface AppUio {
86
93
  * @memberof AppUio
87
94
  */
88
95
  voiceModelId: string;
96
+ /**
97
+ *
98
+ * @type {{ [key: string]: string; }}
99
+ * @memberof AppUio
100
+ */
101
+ voice?: {
102
+ [key: string]: string;
103
+ };
89
104
  /**
90
105
  *
91
106
  * @type {LipsyncUio}
@@ -103,13 +118,13 @@ export interface AppUio {
103
118
  * @type {boolean}
104
119
  * @memberof AppUio
105
120
  */
106
- connected: boolean;
121
+ connected?: boolean;
107
122
  /**
108
123
  *
109
124
  * @type {Array<InstanceUio>}
110
125
  * @memberof AppUio
111
126
  */
112
- instances: Array<InstanceUio>;
127
+ instances?: Array<InstanceUio>;
113
128
  /**
114
129
  *
115
130
  * @type {string}
@@ -128,6 +143,12 @@ export interface AppUio {
128
143
  * @memberof AppUio
129
144
  */
130
145
  disableFillers?: boolean;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof AppUio
150
+ */
151
+ type?: string;
131
152
  }
132
153
  /**
133
154
  * Check if a given object implements the AppUio interface.
@@ -18,6 +18,7 @@ exports.AppUioFromJSON = AppUioFromJSON;
18
18
  exports.AppUioFromJSONTyped = AppUioFromJSONTyped;
19
19
  exports.AppUioToJSON = AppUioToJSON;
20
20
  exports.AppUioToJSONTyped = AppUioToJSONTyped;
21
+ const AppSequencesInnerUio_1 = require("./AppSequencesInnerUio");
21
22
  const AppConfigurationUio_1 = require("./AppConfigurationUio");
22
23
  const SimpleAgentUio_1 = require("./SimpleAgentUio");
23
24
  const InstanceUio_1 = require("./InstanceUio");
@@ -33,8 +34,6 @@ function instanceOfAppUio(value) {
33
34
  return false;
34
35
  if (!('agentId' in value) || value['agentId'] === undefined)
35
36
  return false;
36
- if (!('agent' in value) || value['agent'] === undefined)
37
- return false;
38
37
  if (!('authSecret' in value) || value['authSecret'] === undefined)
39
38
  return false;
40
39
  if (!('streamingEnabled' in value) || value['streamingEnabled'] === undefined)
@@ -45,10 +44,6 @@ function instanceOfAppUio(value) {
45
44
  return false;
46
45
  if (!('status' in value) || value['status'] === undefined)
47
46
  return false;
48
- if (!('connected' in value) || value['connected'] === undefined)
49
- return false;
50
- if (!('instances' in value) || value['instances'] === undefined)
51
- return false;
52
47
  return true;
53
48
  }
54
49
  function AppUioFromJSON(json) {
@@ -62,7 +57,8 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
62
57
  'id': json['id'],
63
58
  'name': json['name'],
64
59
  'agentId': json['agentId'],
65
- 'agent': (0, SimpleAgentUio_1.SimpleAgentUioFromJSON)(json['agent']),
60
+ 'agent': json['agent'] == null ? undefined : (0, SimpleAgentUio_1.SimpleAgentUioFromJSON)(json['agent']),
61
+ 'sequences': json['sequences'] == null ? undefined : (json['sequences'].map(AppSequencesInnerUio_1.AppSequencesInnerUioFromJSON)),
66
62
  'authSecret': json['authSecret'],
67
63
  'streamingEnabled': json['streamingEnabled'],
68
64
  'voiceProvider': json['voiceProvider'] == null ? undefined : json['voiceProvider'],
@@ -70,13 +66,15 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
70
66
  'voiceProviderOrganization': json['voiceProviderOrganization'] == null ? undefined : json['voiceProviderOrganization'],
71
67
  'voiceId': json['voiceId'],
72
68
  'voiceModelId': json['voiceModelId'],
69
+ 'voice': json['voice'] == null ? undefined : json['voice'],
73
70
  'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
74
71
  'status': (0, AppStatusUio_1.AppStatusUioFromJSON)(json['status']),
75
- 'connected': json['connected'],
76
- 'instances': (json['instances'].map(InstanceUio_1.InstanceUioFromJSON)),
72
+ 'connected': json['connected'] == null ? undefined : json['connected'],
73
+ 'instances': json['instances'] == null ? undefined : (json['instances'].map(InstanceUio_1.InstanceUioFromJSON)),
77
74
  'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
78
75
  'appConfiguration': json['appConfiguration'] == null ? undefined : (0, AppConfigurationUio_1.AppConfigurationUioFromJSON)(json['appConfiguration']),
79
76
  'disableFillers': json['disableFillers'] == null ? undefined : json['disableFillers'],
77
+ 'type': json['type'] == null ? undefined : json['type'],
80
78
  };
81
79
  }
82
80
  function AppUioToJSON(json) {
@@ -91,6 +89,7 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
91
89
  'name': value['name'],
92
90
  'agentId': value['agentId'],
93
91
  'agent': (0, SimpleAgentUio_1.SimpleAgentUioToJSON)(value['agent']),
92
+ 'sequences': value['sequences'] == null ? undefined : (value['sequences'].map(AppSequencesInnerUio_1.AppSequencesInnerUioToJSON)),
94
93
  'authSecret': value['authSecret'],
95
94
  'streamingEnabled': value['streamingEnabled'],
96
95
  'voiceProvider': value['voiceProvider'],
@@ -98,12 +97,14 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
98
97
  'voiceProviderOrganization': value['voiceProviderOrganization'],
99
98
  'voiceId': value['voiceId'],
100
99
  'voiceModelId': value['voiceModelId'],
100
+ 'voice': value['voice'],
101
101
  'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
102
102
  'status': (0, AppStatusUio_1.AppStatusUioToJSON)(value['status']),
103
103
  'connected': value['connected'],
104
- 'instances': (value['instances'].map(InstanceUio_1.InstanceUioToJSON)),
104
+ 'instances': value['instances'] == null ? undefined : (value['instances'].map(InstanceUio_1.InstanceUioToJSON)),
105
105
  'profilePicture': value['profilePicture'],
106
106
  'appConfiguration': (0, AppConfigurationUio_1.AppConfigurationUioToJSON)(value['appConfiguration']),
107
107
  'disableFillers': value['disableFillers'],
108
+ 'type': value['type'],
108
109
  };
109
110
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ChatMessageAudioInnerUio
16
+ */
17
+ export interface ChatMessageAudioInnerUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ChatMessageAudioInnerUio
22
+ */
23
+ sequence: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ChatMessageAudioInnerUio
28
+ */
29
+ audioFileId: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ChatMessageAudioInnerUio interface.
33
+ */
34
+ export declare function instanceOfChatMessageAudioInnerUio(value: object): value is ChatMessageAudioInnerUio;
35
+ export declare function ChatMessageAudioInnerUioFromJSON(json: any): ChatMessageAudioInnerUio;
36
+ export declare function ChatMessageAudioInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageAudioInnerUio;
37
+ export declare function ChatMessageAudioInnerUioToJSON(json: any): ChatMessageAudioInnerUio;
38
+ export declare function ChatMessageAudioInnerUioToJSONTyped(value?: ChatMessageAudioInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfChatMessageAudioInnerUio = instanceOfChatMessageAudioInnerUio;
17
+ exports.ChatMessageAudioInnerUioFromJSON = ChatMessageAudioInnerUioFromJSON;
18
+ exports.ChatMessageAudioInnerUioFromJSONTyped = ChatMessageAudioInnerUioFromJSONTyped;
19
+ exports.ChatMessageAudioInnerUioToJSON = ChatMessageAudioInnerUioToJSON;
20
+ exports.ChatMessageAudioInnerUioToJSONTyped = ChatMessageAudioInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChatMessageAudioInnerUio interface.
23
+ */
24
+ function instanceOfChatMessageAudioInnerUio(value) {
25
+ if (!('sequence' in value) || value['sequence'] === undefined)
26
+ return false;
27
+ if (!('audioFileId' in value) || value['audioFileId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ChatMessageAudioInnerUioFromJSON(json) {
32
+ return ChatMessageAudioInnerUioFromJSONTyped(json, false);
33
+ }
34
+ function ChatMessageAudioInnerUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'sequence': json['sequence'],
40
+ 'audioFileId': json['audioFileId'],
41
+ };
42
+ }
43
+ function ChatMessageAudioInnerUioToJSON(json) {
44
+ return ChatMessageAudioInnerUioToJSONTyped(json, false);
45
+ }
46
+ function ChatMessageAudioInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'sequence': value['sequence'],
52
+ 'audioFileId': value['audioFileId'],
53
+ };
54
+ }
@@ -10,9 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolActionUio } from './ToolActionUio';
13
+ import type { AgentFlowUio } from './AgentFlowUio';
13
14
  import type { SuggestionUio } from './SuggestionUio';
14
15
  import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
15
16
  import type { FileAttachmentUio } from './FileAttachmentUio';
17
+ import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
16
18
  import type { ToolResultsUio } from './ToolResultsUio';
17
19
  /**
18
20
  *
@@ -64,10 +66,10 @@ export interface ChatMessageUio {
64
66
  suggestions?: Array<SuggestionUio>;
65
67
  /**
66
68
  *
67
- * @type {string}
69
+ * @type {AgentFlowUio}
68
70
  * @memberof ChatMessageUio
69
71
  */
70
- flowNode?: string;
72
+ flowNode?: AgentFlowUio;
71
73
  /**
72
74
  *
73
75
  * @type {boolean}
@@ -110,6 +112,12 @@ export interface ChatMessageUio {
110
112
  * @memberof ChatMessageUio
111
113
  */
112
114
  attachments?: Array<FileAttachmentUio>;
115
+ /**
116
+ *
117
+ * @type {Array<ChatMessageAudioInnerUio>}
118
+ * @memberof ChatMessageUio
119
+ */
120
+ audio?: Array<ChatMessageAudioInnerUio>;
113
121
  }
114
122
  /**
115
123
  * Check if a given object implements the ChatMessageUio interface.
@@ -19,9 +19,11 @@ exports.ChatMessageUioFromJSONTyped = ChatMessageUioFromJSONTyped;
19
19
  exports.ChatMessageUioToJSON = ChatMessageUioToJSON;
20
20
  exports.ChatMessageUioToJSONTyped = ChatMessageUioToJSONTyped;
21
21
  const ToolActionUio_1 = require("./ToolActionUio");
22
+ const AgentFlowUio_1 = require("./AgentFlowUio");
22
23
  const SuggestionUio_1 = require("./SuggestionUio");
23
24
  const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
24
25
  const FileAttachmentUio_1 = require("./FileAttachmentUio");
26
+ const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
25
27
  const ToolResultsUio_1 = require("./ToolResultsUio");
26
28
  /**
27
29
  * Check if a given object implements the ChatMessageUio interface.
@@ -52,7 +54,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
53
55
  'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
54
56
  'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
55
- 'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
57
+ 'flowNode': json['flowNode'] == null ? undefined : (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
56
58
  'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
57
59
  'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
58
60
  'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
@@ -60,6 +62,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
60
62
  'timestamp': json['timestamp'],
61
63
  'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
62
64
  'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
65
+ 'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
63
66
  };
64
67
  }
65
68
  function ChatMessageUioToJSON(json) {
@@ -77,7 +80,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
77
80
  'confirmationLink': value['confirmationLink'],
78
81
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
79
82
  'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
80
- 'flowNode': value['flowNode'],
83
+ 'flowNode': (0, AgentFlowUio_1.AgentFlowUioToJSON)(value['flowNode']),
81
84
  'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
82
85
  'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
83
86
  'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
@@ -85,5 +88,6 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
85
88
  'timestamp': value['timestamp'],
86
89
  'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
87
90
  'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
91
+ 'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
88
92
  };
89
93
  }
@@ -0,0 +1,129 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ToolActionUio } from './ToolActionUio';
13
+ import type { AgentFlowUio } from './AgentFlowUio';
14
+ import type { SuggestionUio } from './SuggestionUio';
15
+ import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
16
+ import type { FileAttachmentUio } from './FileAttachmentUio';
17
+ import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
18
+ import type { ToolResultsUio } from './ToolResultsUio';
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface ChatMessageWithFlowNodeUio
23
+ */
24
+ export interface ChatMessageWithFlowNodeUio {
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ChatMessageWithFlowNodeUio
29
+ */
30
+ id: string;
31
+ /**
32
+ *
33
+ * @type {ChatMessageRoleUio}
34
+ * @memberof ChatMessageWithFlowNodeUio
35
+ */
36
+ role: ChatMessageRoleUio;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ChatMessageWithFlowNodeUio
41
+ */
42
+ content: string;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof ChatMessageWithFlowNodeUio
47
+ */
48
+ askConfirmation?: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ChatMessageWithFlowNodeUio
53
+ */
54
+ confirmationLink?: string;
55
+ /**
56
+ *
57
+ * @type {Array<ToolResultsUio>}
58
+ * @memberof ChatMessageWithFlowNodeUio
59
+ */
60
+ toolResults?: Array<ToolResultsUio>;
61
+ /**
62
+ *
63
+ * @type {Array<SuggestionUio>}
64
+ * @memberof ChatMessageWithFlowNodeUio
65
+ */
66
+ suggestions?: Array<SuggestionUio>;
67
+ /**
68
+ *
69
+ * @type {AgentFlowUio}
70
+ * @memberof ChatMessageWithFlowNodeUio
71
+ */
72
+ flowNode: AgentFlowUio;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof ChatMessageWithFlowNodeUio
77
+ */
78
+ flowNodeRequirementsChecked?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof ChatMessageWithFlowNodeUio
83
+ */
84
+ flowNodeRequirementsMet?: boolean;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof ChatMessageWithFlowNodeUio
89
+ */
90
+ flowNodeRequirementsCheckReason?: string;
91
+ /**
92
+ *
93
+ * @type {number}
94
+ * @memberof ChatMessageWithFlowNodeUio
95
+ */
96
+ flowNodeIterations?: number;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof ChatMessageWithFlowNodeUio
101
+ */
102
+ timestamp: string;
103
+ /**
104
+ *
105
+ * @type {Array<ToolActionUio>}
106
+ * @memberof ChatMessageWithFlowNodeUio
107
+ */
108
+ actions?: Array<ToolActionUio>;
109
+ /**
110
+ *
111
+ * @type {Array<FileAttachmentUio>}
112
+ * @memberof ChatMessageWithFlowNodeUio
113
+ */
114
+ attachments?: Array<FileAttachmentUio>;
115
+ /**
116
+ *
117
+ * @type {Array<ChatMessageAudioInnerUio>}
118
+ * @memberof ChatMessageWithFlowNodeUio
119
+ */
120
+ audio?: Array<ChatMessageAudioInnerUio>;
121
+ }
122
+ /**
123
+ * Check if a given object implements the ChatMessageWithFlowNodeUio interface.
124
+ */
125
+ export declare function instanceOfChatMessageWithFlowNodeUio(value: object): value is ChatMessageWithFlowNodeUio;
126
+ export declare function ChatMessageWithFlowNodeUioFromJSON(json: any): ChatMessageWithFlowNodeUio;
127
+ export declare function ChatMessageWithFlowNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageWithFlowNodeUio;
128
+ export declare function ChatMessageWithFlowNodeUioToJSON(json: any): ChatMessageWithFlowNodeUio;
129
+ export declare function ChatMessageWithFlowNodeUioToJSONTyped(value?: ChatMessageWithFlowNodeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfChatMessageWithFlowNodeUio = instanceOfChatMessageWithFlowNodeUio;
17
+ exports.ChatMessageWithFlowNodeUioFromJSON = ChatMessageWithFlowNodeUioFromJSON;
18
+ exports.ChatMessageWithFlowNodeUioFromJSONTyped = ChatMessageWithFlowNodeUioFromJSONTyped;
19
+ exports.ChatMessageWithFlowNodeUioToJSON = ChatMessageWithFlowNodeUioToJSON;
20
+ exports.ChatMessageWithFlowNodeUioToJSONTyped = ChatMessageWithFlowNodeUioToJSONTyped;
21
+ const ToolActionUio_1 = require("./ToolActionUio");
22
+ const AgentFlowUio_1 = require("./AgentFlowUio");
23
+ const SuggestionUio_1 = require("./SuggestionUio");
24
+ const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
25
+ const FileAttachmentUio_1 = require("./FileAttachmentUio");
26
+ const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
27
+ const ToolResultsUio_1 = require("./ToolResultsUio");
28
+ /**
29
+ * Check if a given object implements the ChatMessageWithFlowNodeUio interface.
30
+ */
31
+ function instanceOfChatMessageWithFlowNodeUio(value) {
32
+ if (!('id' in value) || value['id'] === undefined)
33
+ return false;
34
+ if (!('role' in value) || value['role'] === undefined)
35
+ return false;
36
+ if (!('content' in value) || value['content'] === undefined)
37
+ return false;
38
+ if (!('flowNode' in value) || value['flowNode'] === undefined)
39
+ return false;
40
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function ChatMessageWithFlowNodeUioFromJSON(json) {
45
+ return ChatMessageWithFlowNodeUioFromJSONTyped(json, false);
46
+ }
47
+ function ChatMessageWithFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'id': json['id'],
53
+ 'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioFromJSON)(json['role']),
54
+ 'content': json['content'],
55
+ 'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
56
+ 'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
57
+ 'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
58
+ 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
59
+ 'flowNode': (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
60
+ 'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
61
+ 'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
62
+ 'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
63
+ 'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
64
+ 'timestamp': json['timestamp'],
65
+ 'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
66
+ 'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
67
+ 'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
68
+ };
69
+ }
70
+ function ChatMessageWithFlowNodeUioToJSON(json) {
71
+ return ChatMessageWithFlowNodeUioToJSONTyped(json, false);
72
+ }
73
+ function ChatMessageWithFlowNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioToJSON)(value['role']),
80
+ 'content': value['content'],
81
+ 'askConfirmation': value['askConfirmation'],
82
+ 'confirmationLink': value['confirmationLink'],
83
+ 'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
84
+ 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
85
+ 'flowNode': (0, AgentFlowUio_1.AgentFlowUioToJSON)(value['flowNode']),
86
+ 'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
87
+ 'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
88
+ 'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
89
+ 'flowNodeIterations': value['flowNodeIterations'],
90
+ 'timestamp': value['timestamp'],
91
+ 'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
92
+ 'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
93
+ 'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
94
+ };
95
+ }