@breign/client 1.0.3 → 1.0.5

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 (336) hide show
  1. package/README.md +51 -0
  2. package/dist/apis/AgentApi.d.ts +329 -0
  3. package/dist/apis/AgentApi.js +787 -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 +111 -0
  17. package/dist/apis/EngineApi.js +274 -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/{BrainPatchUio.d.ts → AgentPatchUio.d.ts} +49 -42
  61. package/dist/models/{BrainPatchUio.js → AgentPatchUio.js} +30 -41
  62. package/dist/models/AgentRequestProfilePictureUio.d.ts +50 -0
  63. package/dist/models/{BrainRequestImageBrainUio.js → AgentRequestProfilePictureUio.js} +13 -13
  64. package/dist/models/{BrainRequestUio.d.ts → AgentRequestUio.d.ts} +25 -25
  65. package/dist/models/{BrainRequestUio.js → AgentRequestUio.js} +16 -16
  66. package/dist/models/AgentSubscriptionTextInteractionsUio.d.ts +39 -0
  67. package/dist/models/{BrainSubscriptionTextInteractionsUio.js → AgentSubscriptionTextInteractionsUio.js} +13 -13
  68. package/dist/models/AgentSubscriptionUio.d.ts +57 -0
  69. package/dist/models/AgentSubscriptionUio.js +63 -0
  70. package/dist/models/AgentToolUio.d.ts +78 -0
  71. package/dist/models/AgentToolUio.js +72 -0
  72. package/dist/models/AgentTypeUio.d.ts +27 -0
  73. package/dist/models/AgentTypeUio.js +53 -0
  74. package/dist/models/{BrainUio.d.ts → AgentUio.d.ts} +60 -39
  75. package/dist/models/{BrainUio.js → AgentUio.js} +30 -23
  76. package/dist/models/AgentUsageMetricsIdUio.d.ts +44 -0
  77. package/dist/models/{BrainUsageMetricsIdUio.js → AgentUsageMetricsIdUio.js} +13 -13
  78. package/dist/models/AgentUsageMetricsUio.d.ts +46 -0
  79. package/dist/models/{BrainUsageMetricsUio.js → AgentUsageMetricsUio.js} +16 -16
  80. package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +56 -0
  81. package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +56 -0
  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/ChatMessageRoleUio.d.ts +26 -0
  155. package/dist/models/ChatMessageRoleUio.js +52 -0
  156. package/dist/models/ChatMessageUio.d.ts +121 -0
  157. package/dist/models/ChatMessageUio.js +89 -0
  158. package/dist/models/ChatUio.d.ts +100 -0
  159. package/dist/models/ChatUio.js +86 -0
  160. package/dist/models/ChunkContentCreateUio.d.ts +77 -0
  161. package/dist/models/ChunkContentCreateUio.js +77 -0
  162. package/dist/models/ChunkContentUio.d.ts +69 -0
  163. package/dist/models/ChunkContentUio.js +71 -0
  164. package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +50 -0
  165. package/dist/models/ChunkCreateRequestContentInnerUio.js +62 -0
  166. package/dist/models/ChunkCreateRequestUio.d.ts +45 -0
  167. package/dist/models/ChunkCreateRequestUio.js +53 -0
  168. package/dist/models/ChunkCreateResponseUio.d.ts +57 -0
  169. package/dist/models/ChunkCreateResponseUio.js +67 -0
  170. package/dist/models/ChunkUio.d.ts +57 -0
  171. package/dist/models/ChunkUio.js +67 -0
  172. package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +44 -0
  173. package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +58 -0
  174. package/dist/models/ContextUio.d.ts +33 -0
  175. package/dist/models/ContextUio.js +51 -0
  176. package/dist/models/ConversationUio.d.ts +39 -0
  177. package/dist/models/ConversationUio.js +55 -0
  178. package/dist/models/DefaultClientPricesUio.d.ts +39 -0
  179. package/dist/models/DefaultClientPricesUio.js +55 -0
  180. package/dist/models/DefaultEngineRequestUio.d.ts +50 -0
  181. package/dist/models/DefaultEngineRequestUio.js +62 -0
  182. package/dist/models/DocumentAddRequestUio.d.ts +38 -0
  183. package/dist/models/DocumentAddRequestUio.js +52 -0
  184. package/dist/models/DuplicateAgent201ResponseUio.d.ts +32 -0
  185. package/dist/models/DuplicateAgent201ResponseUio.js +50 -0
  186. package/dist/models/FileAttachmentProcessedOneOf1Uio.d.ts +45 -0
  187. package/dist/models/FileAttachmentProcessedOneOf1Uio.js +61 -0
  188. package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +45 -0
  189. package/dist/models/FileAttachmentProcessedOneOfUio.js +57 -0
  190. package/dist/models/FileAttachmentProcessedUio.d.ts +23 -0
  191. package/dist/models/FileAttachmentProcessedUio.js +57 -0
  192. package/dist/models/FileAttachmentStatusUio.d.ts +27 -0
  193. package/dist/models/FileAttachmentStatusUio.js +53 -0
  194. package/dist/models/FileAttachmentUio.d.ts +89 -0
  195. package/dist/models/FileAttachmentUio.js +85 -0
  196. package/dist/models/FileCreationRequestUio.d.ts +6 -0
  197. package/dist/models/FileCreationRequestUio.js +2 -0
  198. package/dist/models/FileCreationResponseUio.d.ts +83 -0
  199. package/dist/models/FileCreationResponseUio.js +83 -0
  200. package/dist/models/FileStatusUio.d.ts +1 -0
  201. package/dist/models/FileStatusUio.js +2 -1
  202. package/dist/models/FileStatusUpdateRequestUio.d.ts +33 -0
  203. package/dist/models/FileStatusUpdateRequestUio.js +51 -0
  204. package/dist/models/FileUio.d.ts +2 -8
  205. package/dist/models/FileUio.js +2 -6
  206. package/dist/models/FileWithDownloadUrlUio.d.ts +75 -0
  207. package/dist/models/FileWithDownloadUrlUio.js +79 -0
  208. package/dist/models/FlowUio.d.ts +45 -0
  209. package/dist/models/FlowUio.js +53 -0
  210. package/dist/models/GuardianCreateRequestUio.d.ts +66 -0
  211. package/dist/models/GuardianCreateRequestUio.js +64 -0
  212. package/dist/models/GuardianEngineTypeUio.d.ts +26 -0
  213. package/dist/models/GuardianEngineTypeUio.js +52 -0
  214. package/dist/models/GuardianEngineUio.d.ts +41 -0
  215. package/dist/models/GuardianEngineUio.js +55 -0
  216. package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +32 -0
  217. package/dist/models/GuardianExcludedAgentsRequestUio.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 +66 -0
  221. package/dist/models/GuardianPutRequestUio.js +60 -0
  222. package/dist/models/GuardianRoleUio.d.ts +28 -0
  223. package/dist/models/GuardianRoleUio.js +54 -0
  224. package/dist/models/GuardianUio.d.ts +115 -0
  225. package/dist/models/GuardianUio.js +85 -0
  226. package/dist/models/HealthCheckResponseComponentsApiUio.d.ts +33 -0
  227. package/dist/models/HealthCheckResponseComponentsApiUio.js +49 -0
  228. package/dist/models/HealthCheckResponseComponentsUio.d.ts +39 -0
  229. package/dist/models/HealthCheckResponseComponentsUio.js +51 -0
  230. package/dist/models/HealthCheckResponseUio.d.ts +51 -0
  231. package/dist/models/HealthCheckResponseUio.js +55 -0
  232. package/dist/models/HealthStatusUio.d.ts +26 -0
  233. package/dist/models/HealthStatusUio.js +52 -0
  234. package/dist/models/InputUio.d.ts +38 -0
  235. package/dist/models/InputUio.js +54 -0
  236. package/dist/models/InstanceUio.d.ts +57 -0
  237. package/dist/models/InstanceUio.js +67 -0
  238. package/dist/models/KnowledgeBasePrivacyUio.d.ts +25 -0
  239. package/dist/models/KnowledgeBasePrivacyUio.js +51 -0
  240. package/dist/models/LipsyncUio.d.ts +45 -0
  241. package/dist/models/LipsyncUio.js +56 -0
  242. package/dist/models/ManifestCreateRequestUio.d.ts +51 -0
  243. package/dist/models/ManifestCreateRequestUio.js +60 -0
  244. package/dist/models/ManifestUio.d.ts +57 -0
  245. package/dist/models/ManifestUio.js +66 -0
  246. package/dist/models/MessageUio.d.ts +32 -0
  247. package/dist/models/MessageUio.js +50 -0
  248. package/dist/models/MetricForAgentAgentUio.d.ts +38 -0
  249. package/dist/models/MetricForAgentAgentUio.js +54 -0
  250. package/dist/models/MetricForAgentIdentifierUio.d.ts +32 -0
  251. package/dist/models/MetricForAgentIdentifierUio.js +50 -0
  252. package/dist/models/MetricForAgentMetricUio.d.ts +57 -0
  253. package/dist/models/MetricForAgentMetricUio.js +67 -0
  254. package/dist/models/MetricForAgentMetricWithCostUio.d.ts +64 -0
  255. package/dist/models/MetricForAgentMetricWithCostUio.js +70 -0
  256. package/dist/models/MetricForAgentUio.d.ts +55 -0
  257. package/dist/models/MetricForAgentUio.js +63 -0
  258. package/dist/models/MetricIdentifierUio.d.ts +57 -0
  259. package/dist/models/MetricIdentifierUio.js +67 -0
  260. package/dist/models/MetricUio.d.ts +45 -0
  261. package/dist/models/MetricUio.js +59 -0
  262. package/dist/models/ModelUio.d.ts +38 -0
  263. package/dist/models/ModelUio.js +54 -0
  264. package/dist/models/OrganizationUio.d.ts +47 -0
  265. package/dist/models/OrganizationUio.js +60 -0
  266. package/dist/models/PinRequestUio.d.ts +39 -0
  267. package/dist/models/PinRequestUio.js +55 -0
  268. package/dist/models/PriceConfigurationModelConfigUio.d.ts +44 -0
  269. package/dist/models/PriceConfigurationModelConfigUio.js +58 -0
  270. package/dist/models/PriceConfigurationModelUio.d.ts +37 -0
  271. package/dist/models/PriceConfigurationModelUio.js +50 -0
  272. package/dist/models/PriceConfigurationUio.d.ts +35 -0
  273. package/dist/models/PriceConfigurationUio.js +52 -0
  274. package/dist/models/PriceUio.d.ts +38 -0
  275. package/dist/models/PriceUio.js +54 -0
  276. package/dist/models/PromptCreateRequestUio.d.ts +44 -0
  277. package/dist/models/PromptCreateRequestUio.js +56 -0
  278. package/dist/models/PromptCreateResponseUio.d.ts +58 -0
  279. package/dist/models/PromptCreateResponseUio.js +66 -0
  280. package/dist/models/PromptFlowCreateRequestUio.d.ts +38 -0
  281. package/dist/models/PromptFlowCreateRequestUio.js +52 -0
  282. package/dist/models/PromptFlowCreateResponseUio.d.ts +51 -0
  283. package/dist/models/PromptFlowCreateResponseUio.js +61 -0
  284. package/dist/models/ProviderCreateRequestUio.d.ts +62 -0
  285. package/dist/models/ProviderCreateRequestUio.js +68 -0
  286. package/dist/models/ProviderSimpleUio.d.ts +50 -0
  287. package/dist/models/ProviderSimpleUio.js +62 -0
  288. package/dist/models/ProviderUio.d.ts +74 -0
  289. package/dist/models/ProviderUio.js +76 -0
  290. package/dist/models/ProviderValiationRequestUio.d.ts +38 -0
  291. package/dist/models/ProviderValiationRequestUio.js +54 -0
  292. package/dist/models/S3UploadBodyUio.d.ts +40 -0
  293. package/dist/models/S3UploadBodyUio.js +54 -0
  294. package/dist/models/STTResponseUio.d.ts +32 -0
  295. package/dist/models/STTResponseUio.js +50 -0
  296. package/dist/models/SimpleAgentUio.d.ts +38 -0
  297. package/dist/models/SimpleAgentUio.js +54 -0
  298. package/dist/models/SubscriptionMetricUio.d.ts +4 -4
  299. package/dist/models/SubscriptionMetricUio.js +4 -4
  300. package/dist/models/SuggestionUio.d.ts +38 -0
  301. package/dist/models/SuggestionUio.js +54 -0
  302. package/dist/models/TTSRequestUio.d.ts +45 -0
  303. package/dist/models/TTSRequestUio.js +59 -0
  304. package/dist/models/TTSResponseUio.d.ts +45 -0
  305. package/dist/models/TTSResponseUio.js +57 -0
  306. package/dist/models/TextToSpeechProviderUio.d.ts +24 -0
  307. package/dist/models/TextToSpeechProviderUio.js +50 -0
  308. package/dist/models/ToolActionUio.d.ts +33 -0
  309. package/dist/models/ToolActionUio.js +52 -0
  310. package/dist/models/ToolResultUio.d.ts +51 -0
  311. package/dist/models/ToolResultUio.js +57 -0
  312. package/dist/models/ToolResultsToolUio.d.ts +38 -0
  313. package/dist/models/ToolResultsToolUio.js +52 -0
  314. package/dist/models/ToolResultsUio.d.ts +40 -0
  315. package/dist/models/ToolResultsUio.js +52 -0
  316. package/dist/models/UserUio.d.ts +32 -0
  317. package/dist/models/UserUio.js +50 -0
  318. package/dist/models/index.d.ts +135 -16
  319. package/dist/models/index.js +135 -16
  320. package/dist/openapi.json +6664 -680
  321. package/package.json +6 -3
  322. package/dist/apis/BrainApi.d.ts +0 -290
  323. package/dist/apis/BrainApi.js +0 -637
  324. package/dist/models/BrainMetricsEventUio.d.ts +0 -65
  325. package/dist/models/BrainMetricsUnitsTypeUio.d.ts +0 -27
  326. package/dist/models/BrainMetricsUnitsTypeUio.js +0 -53
  327. package/dist/models/BrainMetricsValueUio.d.ts +0 -57
  328. package/dist/models/BrainModuleTypeUio.d.ts +0 -25
  329. package/dist/models/BrainModuleTypeUio.js +0 -51
  330. package/dist/models/BrainModuleUio.d.ts +0 -51
  331. package/dist/models/BrainRequestImageBrainUio.d.ts +0 -50
  332. package/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +0 -39
  333. package/dist/models/BrainSubscriptionUio.d.ts +0 -57
  334. package/dist/models/BrainSubscriptionUio.js +0 -63
  335. package/dist/models/BrainUsageMetricsIdUio.d.ts +0 -44
  336. package/dist/models/BrainUsageMetricsUio.d.ts +0 -46
@@ -0,0 +1,51 @@
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 ManifestCreateRequestUio
16
+ */
17
+ export interface ManifestCreateRequestUio {
18
+ [key: string]: any | any;
19
+ /**
20
+ *
21
+ * @type {Array<string>}
22
+ * @memberof ManifestCreateRequestUio
23
+ */
24
+ userIds?: Array<string>;
25
+ /**
26
+ * Title of the manifest
27
+ * @type {string}
28
+ * @memberof ManifestCreateRequestUio
29
+ */
30
+ title: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ManifestCreateRequestUio
35
+ */
36
+ shortDesc: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ManifestCreateRequestUio
41
+ */
42
+ imageUrl?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ManifestCreateRequestUio interface.
46
+ */
47
+ export declare function instanceOfManifestCreateRequestUio(value: object): value is ManifestCreateRequestUio;
48
+ export declare function ManifestCreateRequestUioFromJSON(json: any): ManifestCreateRequestUio;
49
+ export declare function ManifestCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestCreateRequestUio;
50
+ export declare function ManifestCreateRequestUioToJSON(json: any): ManifestCreateRequestUio;
51
+ export declare function ManifestCreateRequestUioToJSONTyped(value?: ManifestCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfManifestCreateRequestUio = instanceOfManifestCreateRequestUio;
17
+ exports.ManifestCreateRequestUioFromJSON = ManifestCreateRequestUioFromJSON;
18
+ exports.ManifestCreateRequestUioFromJSONTyped = ManifestCreateRequestUioFromJSONTyped;
19
+ exports.ManifestCreateRequestUioToJSON = ManifestCreateRequestUioToJSON;
20
+ exports.ManifestCreateRequestUioToJSONTyped = ManifestCreateRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ManifestCreateRequestUio interface.
23
+ */
24
+ function instanceOfManifestCreateRequestUio(value) {
25
+ if (!('title' in value) || value['title'] === undefined)
26
+ return false;
27
+ if (!('shortDesc' in value) || value['shortDesc'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ManifestCreateRequestUioFromJSON(json) {
32
+ return ManifestCreateRequestUioFromJSONTyped(json, false);
33
+ }
34
+ function ManifestCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ ...json,
40
+ 'userIds': json['userIds'] == null ? undefined : json['userIds'],
41
+ 'title': json['title'],
42
+ 'shortDesc': json['shortDesc'],
43
+ 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
44
+ };
45
+ }
46
+ function ManifestCreateRequestUioToJSON(json) {
47
+ return ManifestCreateRequestUioToJSONTyped(json, false);
48
+ }
49
+ function ManifestCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ ...value,
55
+ 'userIds': value['userIds'],
56
+ 'title': value['title'],
57
+ 'shortDesc': value['shortDesc'],
58
+ 'imageUrl': value['imageUrl'],
59
+ };
60
+ }
@@ -0,0 +1,57 @@
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 ManifestUio
16
+ */
17
+ export interface ManifestUio {
18
+ [key: string]: any | any;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ManifestUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ManifestUio
29
+ */
30
+ title: string;
31
+ /**
32
+ *
33
+ * @type {Array<string>}
34
+ * @memberof ManifestUio
35
+ */
36
+ userIds: Array<string>;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ManifestUio
41
+ */
42
+ shortDesc: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ManifestUio
47
+ */
48
+ imageUrl?: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the ManifestUio interface.
52
+ */
53
+ export declare function instanceOfManifestUio(value: object): value is ManifestUio;
54
+ export declare function ManifestUioFromJSON(json: any): ManifestUio;
55
+ export declare function ManifestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestUio;
56
+ export declare function ManifestUioToJSON(json: any): ManifestUio;
57
+ export declare function ManifestUioToJSONTyped(value?: ManifestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfManifestUio = instanceOfManifestUio;
17
+ exports.ManifestUioFromJSON = ManifestUioFromJSON;
18
+ exports.ManifestUioFromJSONTyped = ManifestUioFromJSONTyped;
19
+ exports.ManifestUioToJSON = ManifestUioToJSON;
20
+ exports.ManifestUioToJSONTyped = ManifestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ManifestUio interface.
23
+ */
24
+ function instanceOfManifestUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('title' in value) || value['title'] === undefined)
28
+ return false;
29
+ if (!('userIds' in value) || value['userIds'] === undefined)
30
+ return false;
31
+ if (!('shortDesc' in value) || value['shortDesc'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ManifestUioFromJSON(json) {
36
+ return ManifestUioFromJSONTyped(json, false);
37
+ }
38
+ function ManifestUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ ...json,
44
+ 'id': json['id'],
45
+ 'title': json['title'],
46
+ 'userIds': json['userIds'],
47
+ 'shortDesc': json['shortDesc'],
48
+ 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
49
+ };
50
+ }
51
+ function ManifestUioToJSON(json) {
52
+ return ManifestUioToJSONTyped(json, false);
53
+ }
54
+ function ManifestUioToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ ...value,
60
+ 'id': value['id'],
61
+ 'title': value['title'],
62
+ 'userIds': value['userIds'],
63
+ 'shortDesc': value['shortDesc'],
64
+ 'imageUrl': value['imageUrl'],
65
+ };
66
+ }
@@ -0,0 +1,32 @@
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 MessageUio
16
+ */
17
+ export interface MessageUio {
18
+ /**
19
+ * Message to send to the conversation
20
+ * @type {string}
21
+ * @memberof MessageUio
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MessageUio interface.
27
+ */
28
+ export declare function instanceOfMessageUio(value: object): value is MessageUio;
29
+ export declare function MessageUioFromJSON(json: any): MessageUio;
30
+ export declare function MessageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageUio;
31
+ export declare function MessageUioToJSON(json: any): MessageUio;
32
+ export declare function MessageUioToJSONTyped(value?: MessageUio | 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.instanceOfMessageUio = instanceOfMessageUio;
17
+ exports.MessageUioFromJSON = MessageUioFromJSON;
18
+ exports.MessageUioFromJSONTyped = MessageUioFromJSONTyped;
19
+ exports.MessageUioToJSON = MessageUioToJSON;
20
+ exports.MessageUioToJSONTyped = MessageUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MessageUio interface.
23
+ */
24
+ function instanceOfMessageUio(value) {
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function MessageUioFromJSON(json) {
30
+ return MessageUioFromJSONTyped(json, false);
31
+ }
32
+ function MessageUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'message': json['message'],
38
+ };
39
+ }
40
+ function MessageUioToJSON(json) {
41
+ return MessageUioToJSONTyped(json, false);
42
+ }
43
+ function MessageUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'message': value['message'],
49
+ };
50
+ }
@@ -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 MetricForAgentAgentUio
16
+ */
17
+ export interface MetricForAgentAgentUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MetricForAgentAgentUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MetricForAgentAgentUio
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MetricForAgentAgentUio interface.
33
+ */
34
+ export declare function instanceOfMetricForAgentAgentUio(value: object): value is MetricForAgentAgentUio;
35
+ export declare function MetricForAgentAgentUioFromJSON(json: any): MetricForAgentAgentUio;
36
+ export declare function MetricForAgentAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForAgentAgentUio;
37
+ export declare function MetricForAgentAgentUioToJSON(json: any): MetricForAgentAgentUio;
38
+ export declare function MetricForAgentAgentUioToJSONTyped(value?: MetricForAgentAgentUio | 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.instanceOfMetricForAgentAgentUio = instanceOfMetricForAgentAgentUio;
17
+ exports.MetricForAgentAgentUioFromJSON = MetricForAgentAgentUioFromJSON;
18
+ exports.MetricForAgentAgentUioFromJSONTyped = MetricForAgentAgentUioFromJSONTyped;
19
+ exports.MetricForAgentAgentUioToJSON = MetricForAgentAgentUioToJSON;
20
+ exports.MetricForAgentAgentUioToJSONTyped = MetricForAgentAgentUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricForAgentAgentUio interface.
23
+ */
24
+ function instanceOfMetricForAgentAgentUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MetricForAgentAgentUioFromJSON(json) {
32
+ return MetricForAgentAgentUioFromJSONTyped(json, false);
33
+ }
34
+ function MetricForAgentAgentUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function MetricForAgentAgentUioToJSON(json) {
44
+ return MetricForAgentAgentUioToJSONTyped(json, false);
45
+ }
46
+ function MetricForAgentAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -0,0 +1,32 @@
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 MetricForAgentIdentifierUio
16
+ */
17
+ export interface MetricForAgentIdentifierUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MetricForAgentIdentifierUio
22
+ */
23
+ agentId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MetricForAgentIdentifierUio interface.
27
+ */
28
+ export declare function instanceOfMetricForAgentIdentifierUio(value: object): value is MetricForAgentIdentifierUio;
29
+ export declare function MetricForAgentIdentifierUioFromJSON(json: any): MetricForAgentIdentifierUio;
30
+ export declare function MetricForAgentIdentifierUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForAgentIdentifierUio;
31
+ export declare function MetricForAgentIdentifierUioToJSON(json: any): MetricForAgentIdentifierUio;
32
+ export declare function MetricForAgentIdentifierUioToJSONTyped(value?: MetricForAgentIdentifierUio | 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.instanceOfMetricForAgentIdentifierUio = instanceOfMetricForAgentIdentifierUio;
17
+ exports.MetricForAgentIdentifierUioFromJSON = MetricForAgentIdentifierUioFromJSON;
18
+ exports.MetricForAgentIdentifierUioFromJSONTyped = MetricForAgentIdentifierUioFromJSONTyped;
19
+ exports.MetricForAgentIdentifierUioToJSON = MetricForAgentIdentifierUioToJSON;
20
+ exports.MetricForAgentIdentifierUioToJSONTyped = MetricForAgentIdentifierUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricForAgentIdentifierUio interface.
23
+ */
24
+ function instanceOfMetricForAgentIdentifierUio(value) {
25
+ if (!('agentId' in value) || value['agentId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function MetricForAgentIdentifierUioFromJSON(json) {
30
+ return MetricForAgentIdentifierUioFromJSONTyped(json, false);
31
+ }
32
+ function MetricForAgentIdentifierUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'agentId': json['agentId'],
38
+ };
39
+ }
40
+ function MetricForAgentIdentifierUioToJSON(json) {
41
+ return MetricForAgentIdentifierUioToJSONTyped(json, false);
42
+ }
43
+ function MetricForAgentIdentifierUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'agentId': value['agentId'],
49
+ };
50
+ }
@@ -0,0 +1,57 @@
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 { AgentMetricsUnitsTypeUio } from './AgentMetricsUnitsTypeUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MetricForAgentMetricUio
17
+ */
18
+ export interface MetricForAgentMetricUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof MetricForAgentMetricUio
23
+ */
24
+ type: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof MetricForAgentMetricUio
29
+ */
30
+ model: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof MetricForAgentMetricUio
35
+ */
36
+ provider: string;
37
+ /**
38
+ *
39
+ * @type {AgentMetricsUnitsTypeUio}
40
+ * @memberof MetricForAgentMetricUio
41
+ */
42
+ units: AgentMetricsUnitsTypeUio;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof MetricForAgentMetricUio
47
+ */
48
+ total: number;
49
+ }
50
+ /**
51
+ * Check if a given object implements the MetricForAgentMetricUio interface.
52
+ */
53
+ export declare function instanceOfMetricForAgentMetricUio(value: object): value is MetricForAgentMetricUio;
54
+ export declare function MetricForAgentMetricUioFromJSON(json: any): MetricForAgentMetricUio;
55
+ export declare function MetricForAgentMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForAgentMetricUio;
56
+ export declare function MetricForAgentMetricUioToJSON(json: any): MetricForAgentMetricUio;
57
+ export declare function MetricForAgentMetricUioToJSONTyped(value?: MetricForAgentMetricUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfMetricForAgentMetricUio = instanceOfMetricForAgentMetricUio;
17
+ exports.MetricForAgentMetricUioFromJSON = MetricForAgentMetricUioFromJSON;
18
+ exports.MetricForAgentMetricUioFromJSONTyped = MetricForAgentMetricUioFromJSONTyped;
19
+ exports.MetricForAgentMetricUioToJSON = MetricForAgentMetricUioToJSON;
20
+ exports.MetricForAgentMetricUioToJSONTyped = MetricForAgentMetricUioToJSONTyped;
21
+ const AgentMetricsUnitsTypeUio_1 = require("./AgentMetricsUnitsTypeUio");
22
+ /**
23
+ * Check if a given object implements the MetricForAgentMetricUio interface.
24
+ */
25
+ function instanceOfMetricForAgentMetricUio(value) {
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ if (!('model' in value) || value['model'] === undefined)
29
+ return false;
30
+ if (!('provider' in value) || value['provider'] === undefined)
31
+ return false;
32
+ if (!('units' in value) || value['units'] === undefined)
33
+ return false;
34
+ if (!('total' in value) || value['total'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function MetricForAgentMetricUioFromJSON(json) {
39
+ return MetricForAgentMetricUioFromJSONTyped(json, false);
40
+ }
41
+ function MetricForAgentMetricUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'type': json['type'],
47
+ 'model': json['model'],
48
+ 'provider': json['provider'],
49
+ 'units': (0, AgentMetricsUnitsTypeUio_1.AgentMetricsUnitsTypeUioFromJSON)(json['units']),
50
+ 'total': json['total'],
51
+ };
52
+ }
53
+ function MetricForAgentMetricUioToJSON(json) {
54
+ return MetricForAgentMetricUioToJSONTyped(json, false);
55
+ }
56
+ function MetricForAgentMetricUioToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'type': value['type'],
62
+ 'model': value['model'],
63
+ 'provider': value['provider'],
64
+ 'units': (0, AgentMetricsUnitsTypeUio_1.AgentMetricsUnitsTypeUioToJSON)(value['units']),
65
+ 'total': value['total'],
66
+ };
67
+ }
@@ -0,0 +1,64 @@
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 { AgentMetricsUnitsTypeUio } from './AgentMetricsUnitsTypeUio';
13
+ import type { TransactionUio } from './TransactionUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MetricForAgentMetricWithCostUio
18
+ */
19
+ export interface MetricForAgentMetricWithCostUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof MetricForAgentMetricWithCostUio
24
+ */
25
+ type: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof MetricForAgentMetricWithCostUio
30
+ */
31
+ model: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof MetricForAgentMetricWithCostUio
36
+ */
37
+ provider: string;
38
+ /**
39
+ *
40
+ * @type {AgentMetricsUnitsTypeUio}
41
+ * @memberof MetricForAgentMetricWithCostUio
42
+ */
43
+ units: AgentMetricsUnitsTypeUio;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof MetricForAgentMetricWithCostUio
48
+ */
49
+ total: number;
50
+ /**
51
+ *
52
+ * @type {TransactionUio}
53
+ * @memberof MetricForAgentMetricWithCostUio
54
+ */
55
+ cost?: TransactionUio;
56
+ }
57
+ /**
58
+ * Check if a given object implements the MetricForAgentMetricWithCostUio interface.
59
+ */
60
+ export declare function instanceOfMetricForAgentMetricWithCostUio(value: object): value is MetricForAgentMetricWithCostUio;
61
+ export declare function MetricForAgentMetricWithCostUioFromJSON(json: any): MetricForAgentMetricWithCostUio;
62
+ export declare function MetricForAgentMetricWithCostUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForAgentMetricWithCostUio;
63
+ export declare function MetricForAgentMetricWithCostUioToJSON(json: any): MetricForAgentMetricWithCostUio;
64
+ export declare function MetricForAgentMetricWithCostUioToJSONTyped(value?: MetricForAgentMetricWithCostUio | null, ignoreDiscriminator?: boolean): any;