@breign/client 1.0.4 → 1.0.6

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 (345) hide show
  1. package/README.md +51 -0
  2. package/dist/apis/AgentApi.d.ts +330 -0
  3. package/dist/apis/AgentApi.js +790 -0
  4. package/dist/apis/AppApi.d.ts +348 -0
  5. package/dist/apis/AppApi.js +837 -0
  6. package/dist/apis/AuthApi.d.ts +45 -0
  7. package/dist/apis/AuthApi.js +122 -0
  8. package/dist/apis/ChunksApi.d.ts +95 -0
  9. package/dist/apis/ChunksApi.js +235 -0
  10. package/dist/apis/ConfigurationApi.d.ts +74 -0
  11. package/dist/apis/ConfigurationApi.js +197 -0
  12. package/dist/apis/ContentsApi.d.ts +44 -0
  13. package/dist/apis/ContentsApi.js +115 -0
  14. package/dist/apis/ConversationsApi.d.ts +87 -0
  15. package/dist/apis/ConversationsApi.js +214 -0
  16. package/dist/apis/EngineApi.d.ts +112 -0
  17. package/dist/apis/EngineApi.js +280 -0
  18. package/dist/apis/FilesApi.d.ts +67 -0
  19. package/dist/apis/FilesApi.js +171 -0
  20. package/dist/apis/GeneralApi.d.ts +28 -0
  21. package/dist/apis/GeneralApi.js +83 -0
  22. package/dist/apis/GuardiansApi.d.ts +122 -0
  23. package/dist/apis/GuardiansApi.js +304 -0
  24. package/dist/apis/KnowledgeApi.d.ts +171 -0
  25. package/dist/apis/KnowledgeApi.js +436 -0
  26. package/dist/apis/ManifestsApi.d.ts +81 -0
  27. package/dist/apis/ManifestsApi.js +205 -0
  28. package/dist/apis/MetricsApi.d.ts +46 -0
  29. package/dist/apis/MetricsApi.js +121 -0
  30. package/dist/apis/OrganizationsApi.d.ts +31 -0
  31. package/dist/apis/OrganizationsApi.js +86 -0
  32. package/dist/apis/PromptsApi.d.ts +101 -0
  33. package/dist/apis/PromptsApi.js +254 -0
  34. package/dist/apis/RemotesApi.d.ts +31 -0
  35. package/dist/apis/RemotesApi.js +88 -0
  36. package/dist/apis/ToolsApi.d.ts +47 -0
  37. package/dist/apis/ToolsApi.js +128 -0
  38. package/dist/apis/index.d.ts +18 -1
  39. package/dist/apis/index.js +18 -1
  40. package/dist/models/AgentDuplicateRequestUio.d.ts +56 -0
  41. package/dist/models/AgentDuplicateRequestUio.js +58 -0
  42. package/dist/models/{BrainFlowCreateUio.d.ts → AgentFlowCreateUio.d.ts} +12 -12
  43. package/dist/models/{BrainFlowCreateUio.js → AgentFlowCreateUio.js} +13 -13
  44. package/dist/models/{BrainFlowUio.d.ts → AgentFlowUio.d.ts} +15 -15
  45. package/dist/models/{BrainFlowUio.js → AgentFlowUio.js} +16 -16
  46. package/dist/models/AgentKnowledgeBaseUio.d.ts +57 -0
  47. package/dist/models/AgentKnowledgeBaseUio.js +67 -0
  48. package/dist/models/AgentMetricsEventUio.d.ts +65 -0
  49. package/dist/models/{BrainMetricsEventUio.js → AgentMetricsEventUio.js} +20 -20
  50. package/dist/models/{BrainMetricsOverviewUio.d.ts → AgentMetricsOverviewUio.d.ts} +14 -14
  51. package/dist/models/{BrainMetricsOverviewUio.js → AgentMetricsOverviewUio.js} +13 -13
  52. package/dist/models/AgentMetricsUnitsTypeUio.d.ts +27 -0
  53. package/dist/models/AgentMetricsUnitsTypeUio.js +53 -0
  54. package/dist/models/AgentMetricsValueUio.d.ts +57 -0
  55. package/dist/models/{BrainMetricsValueUio.js → AgentMetricsValueUio.js} +16 -16
  56. package/dist/models/AgentModuleTypeUio.d.ts +25 -0
  57. package/dist/models/AgentModuleTypeUio.js +51 -0
  58. package/dist/models/AgentModuleUio.d.ts +51 -0
  59. package/dist/models/{BrainModuleUio.js → AgentModuleUio.js} +16 -16
  60. package/dist/models/AgentPatchEngineUio.d.ts +38 -0
  61. package/dist/models/AgentPatchEngineUio.js +54 -0
  62. package/dist/models/AgentPatchUio.d.ts +173 -0
  63. package/dist/models/{BrainPatchUio.js → AgentPatchUio.js} +32 -43
  64. package/dist/models/AgentRequestProfilePictureUio.d.ts +50 -0
  65. package/dist/models/{BrainRequestImageBrainUio.js → AgentRequestProfilePictureUio.js} +13 -13
  66. package/dist/models/{BrainRequestUio.d.ts → AgentRequestUio.d.ts} +26 -26
  67. package/dist/models/{BrainRequestUio.js → AgentRequestUio.js} +17 -19
  68. package/dist/models/AgentSubscriptionTextInteractionsUio.d.ts +39 -0
  69. package/dist/models/{BrainSubscriptionTextInteractionsUio.js → AgentSubscriptionTextInteractionsUio.js} +13 -13
  70. package/dist/models/AgentSubscriptionUio.d.ts +57 -0
  71. package/dist/models/AgentSubscriptionUio.js +63 -0
  72. package/dist/models/AgentToolUio.d.ts +78 -0
  73. package/dist/models/AgentToolUio.js +72 -0
  74. package/dist/models/AgentTypeUio.d.ts +27 -0
  75. package/dist/models/AgentTypeUio.js +53 -0
  76. package/dist/models/{BrainUio.d.ts → AgentUio.d.ts} +60 -39
  77. package/dist/models/{BrainUio.js → AgentUio.js} +30 -23
  78. package/dist/models/AgentUsageMetricsIdUio.d.ts +44 -0
  79. package/dist/models/{BrainUsageMetricsIdUio.js → AgentUsageMetricsIdUio.js} +13 -13
  80. package/dist/models/AgentUsageMetricsUio.d.ts +46 -0
  81. package/dist/models/{BrainUsageMetricsUio.js → AgentUsageMetricsUio.js} +16 -16
  82. package/dist/models/ApiKeyUio.d.ts +44 -0
  83. package/dist/models/ApiKeyUio.js +58 -0
  84. package/dist/models/AppChatCreateRequestUio.d.ts +44 -0
  85. package/dist/models/AppChatCreateRequestUio.js +56 -0
  86. package/dist/models/AppChatCreateResponseUio.d.ts +38 -0
  87. package/dist/models/AppChatCreateResponseUio.js +52 -0
  88. package/dist/models/AppChatSayRequestUio.d.ts +38 -0
  89. package/dist/models/AppChatSayRequestUio.js +52 -0
  90. package/dist/models/AppChatSayResponseUio.d.ts +32 -0
  91. package/dist/models/AppChatSayResponseUio.js +50 -0
  92. package/dist/models/AppChatSubmitMessageRequestUio.d.ts +32 -0
  93. package/dist/models/AppChatSubmitMessageRequestUio.js +50 -0
  94. package/dist/models/AppConfigurationUio.d.ts +33 -0
  95. package/dist/models/AppConfigurationUio.js +52 -0
  96. package/dist/models/AppConfigurationUpdateRequestUio.d.ts +33 -0
  97. package/dist/models/AppConfigurationUpdateRequestUio.js +50 -0
  98. package/dist/models/AppCreateRequestUio.d.ts +87 -0
  99. package/dist/models/AppCreateRequestUio.js +73 -0
  100. package/dist/models/AppFlowCreateRequestUio.d.ts +44 -0
  101. package/dist/models/AppFlowCreateRequestUio.js +54 -0
  102. package/dist/models/AppInstanceCreateRequestUio.d.ts +32 -0
  103. package/dist/models/AppInstanceCreateRequestUio.js +50 -0
  104. package/dist/models/AppLightUio.d.ts +80 -0
  105. package/dist/models/AppLightUio.js +80 -0
  106. package/dist/models/AppProbeRequestUio.d.ts +33 -0
  107. package/dist/models/AppProbeRequestUio.js +52 -0
  108. package/dist/models/AppProbeResponseUio.d.ts +39 -0
  109. package/dist/models/AppProbeResponseUio.js +56 -0
  110. package/dist/models/AppStatusRequestUio.d.ts +33 -0
  111. package/dist/models/AppStatusRequestUio.js +51 -0
  112. package/dist/models/AppStatusResponseUio.d.ts +45 -0
  113. package/dist/models/AppStatusResponseUio.js +57 -0
  114. package/dist/models/AppStatusUio.d.ts +25 -0
  115. package/dist/models/AppStatusUio.js +51 -0
  116. package/dist/models/AppSubmitMessageRequestUio.d.ts +34 -0
  117. package/dist/models/AppSubmitMessageRequestUio.js +50 -0
  118. package/dist/models/AppTextToSpeechRequestUio.d.ts +38 -0
  119. package/dist/models/AppTextToSpeechRequestUio.js +54 -0
  120. package/dist/models/AppTextToSpeechResponseUio.d.ts +33 -0
  121. package/dist/models/AppTextToSpeechResponseUio.js +51 -0
  122. package/dist/models/AppUio.d.ts +139 -0
  123. package/dist/models/AppUio.js +109 -0
  124. package/dist/models/AppUpdateRequestUio.d.ts +81 -0
  125. package/dist/models/AppUpdateRequestUio.js +65 -0
  126. package/dist/models/AttachmentCreateRequestUio.d.ts +57 -0
  127. package/dist/models/AttachmentCreateRequestUio.js +67 -0
  128. package/dist/models/AttachmentTypeUio.d.ts +24 -0
  129. package/dist/models/AttachmentTypeUio.js +50 -0
  130. package/dist/models/AudioFile1Uio.d.ts +45 -0
  131. package/dist/models/AudioFile1Uio.js +59 -0
  132. package/dist/models/AudioFileOrBufferUio.d.ts +22 -0
  133. package/dist/models/AudioFileOrBufferUio.js +50 -0
  134. package/dist/models/AudioFileTypeUio.d.ts +24 -0
  135. package/dist/models/AudioFileTypeUio.js +50 -0
  136. package/dist/models/AudioFileUio.d.ts +45 -0
  137. package/dist/models/AudioFileUio.js +59 -0
  138. package/dist/models/AuthCodeConfirmRequestUio.d.ts +45 -0
  139. package/dist/models/AuthCodeConfirmRequestUio.js +59 -0
  140. package/dist/models/AuthCodeConfirmResponseUio.d.ts +39 -0
  141. package/dist/models/AuthCodeConfirmResponseUio.js +55 -0
  142. package/dist/models/AuthCodeRequestUio.d.ts +40 -0
  143. package/dist/models/AuthCodeRequestUio.js +56 -0
  144. package/dist/models/AuthCodeResponseUio.d.ts +38 -0
  145. package/dist/models/AuthCodeResponseUio.js +54 -0
  146. package/dist/models/AuthTypeUio.d.ts +24 -0
  147. package/dist/models/AuthTypeUio.js +50 -0
  148. package/dist/models/BodyWithIdUio.d.ts +32 -0
  149. package/dist/models/BodyWithIdUio.js +50 -0
  150. package/dist/models/BodyWithMessageUio.d.ts +32 -0
  151. package/dist/models/BodyWithMessageUio.js +50 -0
  152. package/dist/models/ChatContextUio.d.ts +39 -0
  153. package/dist/models/ChatContextUio.js +53 -0
  154. package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
  155. package/dist/models/ChatMessageAudioInnerUio.js +54 -0
  156. package/dist/models/ChatMessageRoleUio.d.ts +26 -0
  157. package/dist/models/ChatMessageRoleUio.js +52 -0
  158. package/dist/models/ChatMessageUio.d.ts +128 -0
  159. package/dist/models/ChatMessageUio.js +92 -0
  160. package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
  161. package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
  162. package/dist/models/ChatUio.d.ts +100 -0
  163. package/dist/models/ChatUio.js +86 -0
  164. package/dist/models/ChunkContentCreateUio.d.ts +77 -0
  165. package/dist/models/ChunkContentCreateUio.js +77 -0
  166. package/dist/models/ChunkContentUio.d.ts +69 -0
  167. package/dist/models/ChunkContentUio.js +71 -0
  168. package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +50 -0
  169. package/dist/models/ChunkCreateRequestContentInnerUio.js +62 -0
  170. package/dist/models/ChunkCreateRequestUio.d.ts +45 -0
  171. package/dist/models/ChunkCreateRequestUio.js +53 -0
  172. package/dist/models/ChunkCreateResponseUio.d.ts +57 -0
  173. package/dist/models/ChunkCreateResponseUio.js +67 -0
  174. package/dist/models/ChunkUio.d.ts +57 -0
  175. package/dist/models/ChunkUio.js +67 -0
  176. package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +44 -0
  177. package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +58 -0
  178. package/dist/models/ContextUio.d.ts +33 -0
  179. package/dist/models/ContextUio.js +51 -0
  180. package/dist/models/ConversationUio.d.ts +39 -0
  181. package/dist/models/ConversationUio.js +55 -0
  182. package/dist/models/DefaultClientPricesUio.d.ts +39 -0
  183. package/dist/models/DefaultClientPricesUio.js +55 -0
  184. package/dist/models/DefaultEngineRequestUio.d.ts +44 -0
  185. package/dist/models/DefaultEngineRequestUio.js +58 -0
  186. package/dist/models/DocumentAddRequestUio.d.ts +38 -0
  187. package/dist/models/DocumentAddRequestUio.js +52 -0
  188. package/dist/models/EngineUio.d.ts +4 -7
  189. package/dist/models/EngineUio.js +6 -7
  190. package/dist/models/FileAttachmentProcessedOneOf1Uio.d.ts +45 -0
  191. package/dist/models/FileAttachmentProcessedOneOf1Uio.js +61 -0
  192. package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +45 -0
  193. package/dist/models/FileAttachmentProcessedOneOfUio.js +57 -0
  194. package/dist/models/FileAttachmentProcessedUio.d.ts +23 -0
  195. package/dist/models/FileAttachmentProcessedUio.js +57 -0
  196. package/dist/models/FileAttachmentStatusUio.d.ts +27 -0
  197. package/dist/models/FileAttachmentStatusUio.js +53 -0
  198. package/dist/models/FileAttachmentUio.d.ts +89 -0
  199. package/dist/models/FileAttachmentUio.js +85 -0
  200. package/dist/models/FileCreationRequestUio.d.ts +6 -0
  201. package/dist/models/FileCreationRequestUio.js +2 -0
  202. package/dist/models/FileCreationResponseUio.d.ts +83 -0
  203. package/dist/models/FileCreationResponseUio.js +83 -0
  204. package/dist/models/FileStatusUio.d.ts +1 -0
  205. package/dist/models/FileStatusUio.js +2 -1
  206. package/dist/models/FileStatusUpdateRequestUio.d.ts +33 -0
  207. package/dist/models/FileStatusUpdateRequestUio.js +51 -0
  208. package/dist/models/FileUio.d.ts +2 -8
  209. package/dist/models/FileUio.js +2 -6
  210. package/dist/models/FileWithDownloadUrlUio.d.ts +75 -0
  211. package/dist/models/FileWithDownloadUrlUio.js +79 -0
  212. package/dist/models/FlowUio.d.ts +45 -0
  213. package/dist/models/FlowUio.js +53 -0
  214. package/dist/models/GuardianCreateRequestUio.d.ts +73 -0
  215. package/dist/models/GuardianCreateRequestUio.js +69 -0
  216. package/dist/models/GuardianEngineUio.d.ts +34 -0
  217. package/dist/models/GuardianEngineUio.js +50 -0
  218. package/dist/models/GuardianPositionUio.d.ts +25 -0
  219. package/dist/models/GuardianPositionUio.js +51 -0
  220. package/dist/models/GuardianPutRequestUio.d.ts +73 -0
  221. package/dist/models/GuardianPutRequestUio.js +63 -0
  222. package/dist/models/GuardianRoleUio.d.ts +28 -0
  223. package/dist/models/GuardianRoleUio.js +54 -0
  224. package/dist/models/GuardianTypeUio.d.ts +26 -0
  225. package/dist/models/GuardianTypeUio.js +52 -0
  226. package/dist/models/GuardianUio.d.ts +122 -0
  227. package/dist/models/GuardianUio.js +90 -0
  228. package/dist/models/HealthCheckResponseComponentsApiUio.d.ts +33 -0
  229. package/dist/models/HealthCheckResponseComponentsApiUio.js +49 -0
  230. package/dist/models/HealthCheckResponseComponentsUio.d.ts +39 -0
  231. package/dist/models/HealthCheckResponseComponentsUio.js +51 -0
  232. package/dist/models/HealthCheckResponseUio.d.ts +51 -0
  233. package/dist/models/HealthCheckResponseUio.js +55 -0
  234. package/dist/models/HealthStatusUio.d.ts +26 -0
  235. package/dist/models/HealthStatusUio.js +52 -0
  236. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
  237. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
  238. package/dist/models/InputUio.d.ts +38 -0
  239. package/dist/models/InputUio.js +54 -0
  240. package/dist/models/InstanceUio.d.ts +57 -0
  241. package/dist/models/InstanceUio.js +67 -0
  242. package/dist/models/KnowledgeBasePrivacyUio.d.ts +25 -0
  243. package/dist/models/KnowledgeBasePrivacyUio.js +51 -0
  244. package/dist/models/LipsyncUio.d.ts +45 -0
  245. package/dist/models/LipsyncUio.js +56 -0
  246. package/dist/models/ManifestCreateRequestUio.d.ts +51 -0
  247. package/dist/models/ManifestCreateRequestUio.js +60 -0
  248. package/dist/models/ManifestUio.d.ts +57 -0
  249. package/dist/models/ManifestUio.js +66 -0
  250. package/dist/models/MessageUio.d.ts +32 -0
  251. package/dist/models/MessageUio.js +50 -0
  252. package/dist/models/MetricForAgentAgentUio.d.ts +38 -0
  253. package/dist/models/MetricForAgentAgentUio.js +54 -0
  254. package/dist/models/MetricForAgentIdentifierUio.d.ts +32 -0
  255. package/dist/models/MetricForAgentIdentifierUio.js +50 -0
  256. package/dist/models/MetricForAgentMetricUio.d.ts +57 -0
  257. package/dist/models/MetricForAgentMetricUio.js +67 -0
  258. package/dist/models/MetricForAgentMetricWithCostUio.d.ts +64 -0
  259. package/dist/models/MetricForAgentMetricWithCostUio.js +70 -0
  260. package/dist/models/MetricForAgentUio.d.ts +55 -0
  261. package/dist/models/MetricForAgentUio.js +63 -0
  262. package/dist/models/MetricIdentifierUio.d.ts +57 -0
  263. package/dist/models/MetricIdentifierUio.js +67 -0
  264. package/dist/models/MetricUio.d.ts +45 -0
  265. package/dist/models/MetricUio.js +59 -0
  266. package/dist/models/ModelUio.d.ts +38 -0
  267. package/dist/models/ModelUio.js +54 -0
  268. package/dist/models/OrganizationUio.d.ts +47 -0
  269. package/dist/models/OrganizationUio.js +60 -0
  270. package/dist/models/PinRequestUio.d.ts +39 -0
  271. package/dist/models/PinRequestUio.js +55 -0
  272. package/dist/models/PriceConfigurationModelConfigUio.d.ts +44 -0
  273. package/dist/models/PriceConfigurationModelConfigUio.js +58 -0
  274. package/dist/models/PriceConfigurationModelUio.d.ts +37 -0
  275. package/dist/models/PriceConfigurationModelUio.js +50 -0
  276. package/dist/models/PriceConfigurationUio.d.ts +35 -0
  277. package/dist/models/PriceConfigurationUio.js +52 -0
  278. package/dist/models/PriceUio.d.ts +38 -0
  279. package/dist/models/PriceUio.js +54 -0
  280. package/dist/models/PromptCreateRequestUio.d.ts +44 -0
  281. package/dist/models/PromptCreateRequestUio.js +56 -0
  282. package/dist/models/PromptCreateResponseUio.d.ts +58 -0
  283. package/dist/models/PromptCreateResponseUio.js +66 -0
  284. package/dist/models/PromptFlowCreateRequestUio.d.ts +38 -0
  285. package/dist/models/PromptFlowCreateRequestUio.js +52 -0
  286. package/dist/models/PromptFlowCreateResponseUio.d.ts +51 -0
  287. package/dist/models/PromptFlowCreateResponseUio.js +61 -0
  288. package/dist/models/ProviderCreateRequestUio.d.ts +57 -0
  289. package/dist/models/ProviderCreateRequestUio.js +63 -0
  290. package/dist/models/ProviderSimpleUio.d.ts +50 -0
  291. package/dist/models/ProviderSimpleUio.js +62 -0
  292. package/dist/models/ProviderTypeUio.d.ts +27 -0
  293. package/dist/models/ProviderTypeUio.js +53 -0
  294. package/dist/models/ProviderUio.d.ts +69 -0
  295. package/dist/models/ProviderUio.js +71 -0
  296. package/dist/models/ProviderValiationRequestUio.d.ts +38 -0
  297. package/dist/models/ProviderValiationRequestUio.js +54 -0
  298. package/dist/models/S3UploadBodyUio.d.ts +40 -0
  299. package/dist/models/S3UploadBodyUio.js +54 -0
  300. package/dist/models/STTResponseUio.d.ts +32 -0
  301. package/dist/models/STTResponseUio.js +50 -0
  302. package/dist/models/SimpleAgentUio.d.ts +38 -0
  303. package/dist/models/SimpleAgentUio.js +54 -0
  304. package/dist/models/SubscriptionMetricUio.d.ts +4 -4
  305. package/dist/models/SubscriptionMetricUio.js +4 -4
  306. package/dist/models/SuggestionUio.d.ts +38 -0
  307. package/dist/models/SuggestionUio.js +54 -0
  308. package/dist/models/TTSRequestUio.d.ts +45 -0
  309. package/dist/models/TTSRequestUio.js +59 -0
  310. package/dist/models/TTSResponseUio.d.ts +45 -0
  311. package/dist/models/TTSResponseUio.js +57 -0
  312. package/dist/models/TextToSpeechProviderUio.d.ts +24 -0
  313. package/dist/models/TextToSpeechProviderUio.js +50 -0
  314. package/dist/models/ToolActionUio.d.ts +33 -0
  315. package/dist/models/ToolActionUio.js +52 -0
  316. package/dist/models/ToolResultUio.d.ts +51 -0
  317. package/dist/models/ToolResultUio.js +57 -0
  318. package/dist/models/ToolResultsToolUio.d.ts +38 -0
  319. package/dist/models/ToolResultsToolUio.js +52 -0
  320. package/dist/models/ToolResultsUio.d.ts +40 -0
  321. package/dist/models/ToolResultsUio.js +52 -0
  322. package/dist/models/UserUio.d.ts +32 -0
  323. package/dist/models/UserUio.js +50 -0
  324. package/dist/models/index.d.ts +137 -17
  325. package/dist/models/index.js +137 -17
  326. package/dist/openapi.json +6740 -616
  327. package/package.json +1 -1
  328. package/dist/apis/BrainApi.d.ts +0 -290
  329. package/dist/apis/BrainApi.js +0 -697
  330. package/dist/models/BrainMetricsEventUio.d.ts +0 -65
  331. package/dist/models/BrainMetricsUnitsTypeUio.d.ts +0 -27
  332. package/dist/models/BrainMetricsUnitsTypeUio.js +0 -53
  333. package/dist/models/BrainMetricsValueUio.d.ts +0 -57
  334. package/dist/models/BrainModuleTypeUio.d.ts +0 -25
  335. package/dist/models/BrainModuleTypeUio.js +0 -51
  336. package/dist/models/BrainModuleUio.d.ts +0 -51
  337. package/dist/models/BrainPatchUio.d.ts +0 -166
  338. package/dist/models/BrainRequestImageBrainUio.d.ts +0 -50
  339. package/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +0 -39
  340. package/dist/models/BrainSubscriptionUio.d.ts +0 -57
  341. package/dist/models/BrainSubscriptionUio.js +0 -63
  342. package/dist/models/BrainUsageMetricsIdUio.d.ts +0 -44
  343. package/dist/models/BrainUsageMetricsUio.d.ts +0 -46
  344. package/dist/models/EngineTypeUio.d.ts +0 -25
  345. package/dist/models/EngineTypeUio.js +0 -51
@@ -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
+ }
@@ -0,0 +1,26 @@
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
+ */
16
+ export declare const ChatMessageRoleUio: {
17
+ readonly User: "USER";
18
+ readonly Assistant: "ASSISTANT";
19
+ readonly System: "SYSTEM";
20
+ };
21
+ export type ChatMessageRoleUio = typeof ChatMessageRoleUio[keyof typeof ChatMessageRoleUio];
22
+ export declare function instanceOfChatMessageRoleUio(value: any): boolean;
23
+ export declare function ChatMessageRoleUioFromJSON(json: any): ChatMessageRoleUio;
24
+ export declare function ChatMessageRoleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageRoleUio;
25
+ export declare function ChatMessageRoleUioToJSON(value?: ChatMessageRoleUio | null): any;
26
+ export declare function ChatMessageRoleUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ChatMessageRoleUio;
@@ -0,0 +1,52 @@
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.ChatMessageRoleUio = void 0;
17
+ exports.instanceOfChatMessageRoleUio = instanceOfChatMessageRoleUio;
18
+ exports.ChatMessageRoleUioFromJSON = ChatMessageRoleUioFromJSON;
19
+ exports.ChatMessageRoleUioFromJSONTyped = ChatMessageRoleUioFromJSONTyped;
20
+ exports.ChatMessageRoleUioToJSON = ChatMessageRoleUioToJSON;
21
+ exports.ChatMessageRoleUioToJSONTyped = ChatMessageRoleUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ChatMessageRoleUio = {
27
+ User: 'USER',
28
+ Assistant: 'ASSISTANT',
29
+ System: 'SYSTEM'
30
+ };
31
+ function instanceOfChatMessageRoleUio(value) {
32
+ for (const key in exports.ChatMessageRoleUio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ChatMessageRoleUio, key)) {
34
+ if (exports.ChatMessageRoleUio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ChatMessageRoleUioFromJSON(json) {
42
+ return ChatMessageRoleUioFromJSONTyped(json, false);
43
+ }
44
+ function ChatMessageRoleUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ChatMessageRoleUioToJSON(value) {
48
+ return value;
49
+ }
50
+ function ChatMessageRoleUioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,128 @@
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 { SuggestionUio } from './SuggestionUio';
14
+ import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
15
+ import type { FileAttachmentUio } from './FileAttachmentUio';
16
+ import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
17
+ import type { ToolResultsUio } from './ToolResultsUio';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ChatMessageUio
22
+ */
23
+ export interface ChatMessageUio {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ChatMessageUio
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {ChatMessageRoleUio}
33
+ * @memberof ChatMessageUio
34
+ */
35
+ role: ChatMessageRoleUio;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ChatMessageUio
40
+ */
41
+ content: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ChatMessageUio
46
+ */
47
+ askConfirmation?: boolean;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ChatMessageUio
52
+ */
53
+ confirmationLink?: string;
54
+ /**
55
+ *
56
+ * @type {Array<ToolResultsUio>}
57
+ * @memberof ChatMessageUio
58
+ */
59
+ toolResults?: Array<ToolResultsUio>;
60
+ /**
61
+ *
62
+ * @type {Array<SuggestionUio>}
63
+ * @memberof ChatMessageUio
64
+ */
65
+ suggestions?: Array<SuggestionUio>;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ChatMessageUio
70
+ */
71
+ flowNode?: string;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof ChatMessageUio
76
+ */
77
+ flowNodeRequirementsChecked?: boolean;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof ChatMessageUio
82
+ */
83
+ flowNodeRequirementsMet?: boolean;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof ChatMessageUio
88
+ */
89
+ flowNodeRequirementsCheckReason?: string;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof ChatMessageUio
94
+ */
95
+ flowNodeIterations?: number;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof ChatMessageUio
100
+ */
101
+ timestamp: string;
102
+ /**
103
+ *
104
+ * @type {Array<ToolActionUio>}
105
+ * @memberof ChatMessageUio
106
+ */
107
+ actions?: Array<ToolActionUio>;
108
+ /**
109
+ *
110
+ * @type {Array<FileAttachmentUio>}
111
+ * @memberof ChatMessageUio
112
+ */
113
+ attachments?: Array<FileAttachmentUio>;
114
+ /**
115
+ *
116
+ * @type {Array<ChatMessageAudioInnerUio>}
117
+ * @memberof ChatMessageUio
118
+ */
119
+ audio?: Array<ChatMessageAudioInnerUio>;
120
+ }
121
+ /**
122
+ * Check if a given object implements the ChatMessageUio interface.
123
+ */
124
+ export declare function instanceOfChatMessageUio(value: object): value is ChatMessageUio;
125
+ export declare function ChatMessageUioFromJSON(json: any): ChatMessageUio;
126
+ export declare function ChatMessageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageUio;
127
+ export declare function ChatMessageUioToJSON(json: any): ChatMessageUio;
128
+ export declare function ChatMessageUioToJSONTyped(value?: ChatMessageUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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.instanceOfChatMessageUio = instanceOfChatMessageUio;
17
+ exports.ChatMessageUioFromJSON = ChatMessageUioFromJSON;
18
+ exports.ChatMessageUioFromJSONTyped = ChatMessageUioFromJSONTyped;
19
+ exports.ChatMessageUioToJSON = ChatMessageUioToJSON;
20
+ exports.ChatMessageUioToJSONTyped = ChatMessageUioToJSONTyped;
21
+ const ToolActionUio_1 = require("./ToolActionUio");
22
+ const SuggestionUio_1 = require("./SuggestionUio");
23
+ const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
24
+ const FileAttachmentUio_1 = require("./FileAttachmentUio");
25
+ const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
26
+ const ToolResultsUio_1 = require("./ToolResultsUio");
27
+ /**
28
+ * Check if a given object implements the ChatMessageUio interface.
29
+ */
30
+ function instanceOfChatMessageUio(value) {
31
+ if (!('id' in value) || value['id'] === undefined)
32
+ return false;
33
+ if (!('role' in value) || value['role'] === undefined)
34
+ return false;
35
+ if (!('content' in value) || value['content'] === undefined)
36
+ return false;
37
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ChatMessageUioFromJSON(json) {
42
+ return ChatMessageUioFromJSONTyped(json, false);
43
+ }
44
+ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioFromJSON)(json['role']),
51
+ 'content': json['content'],
52
+ 'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
53
+ 'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
54
+ 'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
55
+ 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
56
+ 'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
57
+ 'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
58
+ 'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
59
+ 'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
60
+ 'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
61
+ 'timestamp': json['timestamp'],
62
+ 'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
63
+ 'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
64
+ 'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
65
+ };
66
+ }
67
+ function ChatMessageUioToJSON(json) {
68
+ return ChatMessageUioToJSONTyped(json, false);
69
+ }
70
+ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioToJSON)(value['role']),
77
+ 'content': value['content'],
78
+ 'askConfirmation': value['askConfirmation'],
79
+ 'confirmationLink': value['confirmationLink'],
80
+ 'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
81
+ 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
82
+ 'flowNode': value['flowNode'],
83
+ 'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
84
+ 'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
85
+ 'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
86
+ 'flowNodeIterations': value['flowNodeIterations'],
87
+ 'timestamp': value['timestamp'],
88
+ 'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
89
+ 'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
90
+ 'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
91
+ };
92
+ }
@@ -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
+ }
@@ -0,0 +1,100 @@
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 { ChatMessageWithFlowNodeUio } from './ChatMessageWithFlowNodeUio';
13
+ import type { ChatContextUio } from './ChatContextUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ChatUio
18
+ */
19
+ export interface ChatUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ChatUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ChatUio
30
+ */
31
+ lang: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ChatUio
36
+ */
37
+ agentId: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ChatUio
42
+ */
43
+ instanceId?: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ChatUio
48
+ */
49
+ userId?: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof ChatUio
54
+ */
55
+ customUserId?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ChatUio
60
+ */
61
+ summary?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof ChatUio
66
+ */
67
+ init?: string;
68
+ /**
69
+ *
70
+ * @type {Array<ChatMessageWithFlowNodeUio>}
71
+ * @memberof ChatUio
72
+ */
73
+ messages: Array<ChatMessageWithFlowNodeUio>;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof ChatUio
78
+ */
79
+ createdAt: string;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof ChatUio
84
+ */
85
+ updatedAt: string;
86
+ /**
87
+ *
88
+ * @type {ChatContextUio}
89
+ * @memberof ChatUio
90
+ */
91
+ context: ChatContextUio;
92
+ }
93
+ /**
94
+ * Check if a given object implements the ChatUio interface.
95
+ */
96
+ export declare function instanceOfChatUio(value: object): value is ChatUio;
97
+ export declare function ChatUioFromJSON(json: any): ChatUio;
98
+ export declare function ChatUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatUio;
99
+ export declare function ChatUioToJSON(json: any): ChatUio;
100
+ export declare function ChatUioToJSONTyped(value?: ChatUio | null, ignoreDiscriminator?: boolean): any;