@breign/client 1.0.4 → 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 +6653 -619
  321. package/package.json +1 -1
  322. package/dist/apis/BrainApi.d.ts +0 -290
  323. package/dist/apis/BrainApi.js +0 -697
  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,81 @@
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 * as runtime from '../runtime';
13
+ import type { ManifestCreateRequestUio, ManifestUio } from '../models/index';
14
+ export interface ManifestsManifestIdDeleteRequest {
15
+ manifestId: string;
16
+ }
17
+ export interface ManifestsManifestIdGetRequest {
18
+ manifestId: string;
19
+ }
20
+ export interface ManifestsManifestIdPutRequest {
21
+ manifestId: string;
22
+ manifestCreateRequestUio: ManifestCreateRequestUio;
23
+ }
24
+ export interface ManifestsPostRequest {
25
+ manifestCreateRequestUio: ManifestCreateRequestUio;
26
+ }
27
+ /**
28
+ *
29
+ */
30
+ export declare class ManifestsApi extends runtime.BaseAPI {
31
+ /**
32
+ * Retrieves manifests, filtered by user ID for non-admin users
33
+ * Get manifests
34
+ */
35
+ manifestsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ManifestUio>>>;
36
+ /**
37
+ * Retrieves manifests, filtered by user ID for non-admin users
38
+ * Get manifests
39
+ */
40
+ manifestsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ManifestUio>>;
41
+ /**
42
+ * Deletes a manifest by ID
43
+ * Delete manifest
44
+ */
45
+ manifestsManifestIdDeleteRaw(requestParameters: ManifestsManifestIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
+ /**
47
+ * Deletes a manifest by ID
48
+ * Delete manifest
49
+ */
50
+ manifestsManifestIdDelete(manifestId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ /**
52
+ * Retrieves a specific manifest by its ID
53
+ * Get manifest by ID
54
+ */
55
+ manifestsManifestIdGetRaw(requestParameters: ManifestsManifestIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManifestUio>>;
56
+ /**
57
+ * Retrieves a specific manifest by its ID
58
+ * Get manifest by ID
59
+ */
60
+ manifestsManifestIdGet(manifestId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManifestUio>;
61
+ /**
62
+ * Updates a manifest by ID
63
+ * Update manifest
64
+ */
65
+ manifestsManifestIdPutRaw(requestParameters: ManifestsManifestIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManifestUio>>;
66
+ /**
67
+ * Updates a manifest by ID
68
+ * Update manifest
69
+ */
70
+ manifestsManifestIdPut(manifestId: string, manifestCreateRequestUio: ManifestCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManifestUio>;
71
+ /**
72
+ * Creates a new manifest document
73
+ * Create a manifest
74
+ */
75
+ manifestsPostRaw(requestParameters: ManifestsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManifestUio>>;
76
+ /**
77
+ * Creates a new manifest document
78
+ * Create a manifest
79
+ */
80
+ manifestsPost(manifestCreateRequestUio: ManifestCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManifestUio>;
81
+ }
@@ -0,0 +1,205 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.ManifestsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class ManifestsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Retrieves manifests, filtered by user ID for non-admin users
58
+ * Get manifests
59
+ */
60
+ async manifestsGetRaw(initOverrides) {
61
+ const queryParameters = {};
62
+ const headerParameters = {};
63
+ if (this.configuration && this.configuration.apiKey) {
64
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
65
+ }
66
+ const response = await this.request({
67
+ path: `/manifests`,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ManifestUioFromJSON));
73
+ }
74
+ /**
75
+ * Retrieves manifests, filtered by user ID for non-admin users
76
+ * Get manifests
77
+ */
78
+ async manifestsGet(initOverrides) {
79
+ const response = await this.manifestsGetRaw(initOverrides);
80
+ return await response.value();
81
+ }
82
+ /**
83
+ * Deletes a manifest by ID
84
+ * Delete manifest
85
+ */
86
+ async manifestsManifestIdDeleteRaw(requestParameters, initOverrides) {
87
+ if (requestParameters['manifestId'] == null) {
88
+ throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling manifestsManifestIdDelete().');
89
+ }
90
+ const queryParameters = {};
91
+ const headerParameters = {};
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
94
+ }
95
+ const response = await this.request({
96
+ path: `/manifests/{manifestId}`.replace(`{${"manifestId"}}`, encodeURIComponent(String(requestParameters['manifestId']))),
97
+ method: 'DELETE',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ }, initOverrides);
101
+ return new runtime.VoidApiResponse(response);
102
+ }
103
+ /**
104
+ * Deletes a manifest by ID
105
+ * Delete manifest
106
+ */
107
+ async manifestsManifestIdDelete(manifestId, initOverrides) {
108
+ await this.manifestsManifestIdDeleteRaw({ manifestId: manifestId }, initOverrides);
109
+ }
110
+ /**
111
+ * Retrieves a specific manifest by its ID
112
+ * Get manifest by ID
113
+ */
114
+ async manifestsManifestIdGetRaw(requestParameters, initOverrides) {
115
+ if (requestParameters['manifestId'] == null) {
116
+ throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling manifestsManifestIdGet().');
117
+ }
118
+ const queryParameters = {};
119
+ const headerParameters = {};
120
+ if (this.configuration && this.configuration.apiKey) {
121
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
122
+ }
123
+ const response = await this.request({
124
+ path: `/manifests/{manifestId}`.replace(`{${"manifestId"}}`, encodeURIComponent(String(requestParameters['manifestId']))),
125
+ method: 'GET',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ }, initOverrides);
129
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ManifestUioFromJSON)(jsonValue));
130
+ }
131
+ /**
132
+ * Retrieves a specific manifest by its ID
133
+ * Get manifest by ID
134
+ */
135
+ async manifestsManifestIdGet(manifestId, initOverrides) {
136
+ const response = await this.manifestsManifestIdGetRaw({ manifestId: manifestId }, initOverrides);
137
+ return await response.value();
138
+ }
139
+ /**
140
+ * Updates a manifest by ID
141
+ * Update manifest
142
+ */
143
+ async manifestsManifestIdPutRaw(requestParameters, initOverrides) {
144
+ if (requestParameters['manifestId'] == null) {
145
+ throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling manifestsManifestIdPut().');
146
+ }
147
+ if (requestParameters['manifestCreateRequestUio'] == null) {
148
+ throw new runtime.RequiredError('manifestCreateRequestUio', 'Required parameter "manifestCreateRequestUio" was null or undefined when calling manifestsManifestIdPut().');
149
+ }
150
+ const queryParameters = {};
151
+ const headerParameters = {};
152
+ headerParameters['Content-Type'] = 'application/json';
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
155
+ }
156
+ const response = await this.request({
157
+ path: `/manifests/{manifestId}`.replace(`{${"manifestId"}}`, encodeURIComponent(String(requestParameters['manifestId']))),
158
+ method: 'PUT',
159
+ headers: headerParameters,
160
+ query: queryParameters,
161
+ body: (0, index_1.ManifestCreateRequestUioToJSON)(requestParameters['manifestCreateRequestUio']),
162
+ }, initOverrides);
163
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ManifestUioFromJSON)(jsonValue));
164
+ }
165
+ /**
166
+ * Updates a manifest by ID
167
+ * Update manifest
168
+ */
169
+ async manifestsManifestIdPut(manifestId, manifestCreateRequestUio, initOverrides) {
170
+ const response = await this.manifestsManifestIdPutRaw({ manifestId: manifestId, manifestCreateRequestUio: manifestCreateRequestUio }, initOverrides);
171
+ return await response.value();
172
+ }
173
+ /**
174
+ * Creates a new manifest document
175
+ * Create a manifest
176
+ */
177
+ async manifestsPostRaw(requestParameters, initOverrides) {
178
+ if (requestParameters['manifestCreateRequestUio'] == null) {
179
+ throw new runtime.RequiredError('manifestCreateRequestUio', 'Required parameter "manifestCreateRequestUio" was null or undefined when calling manifestsPost().');
180
+ }
181
+ const queryParameters = {};
182
+ const headerParameters = {};
183
+ headerParameters['Content-Type'] = 'application/json';
184
+ if (this.configuration && this.configuration.apiKey) {
185
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
186
+ }
187
+ const response = await this.request({
188
+ path: `/manifests`,
189
+ method: 'POST',
190
+ headers: headerParameters,
191
+ query: queryParameters,
192
+ body: (0, index_1.ManifestCreateRequestUioToJSON)(requestParameters['manifestCreateRequestUio']),
193
+ }, initOverrides);
194
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ManifestUioFromJSON)(jsonValue));
195
+ }
196
+ /**
197
+ * Creates a new manifest document
198
+ * Create a manifest
199
+ */
200
+ async manifestsPost(manifestCreateRequestUio, initOverrides) {
201
+ const response = await this.manifestsPostRaw({ manifestCreateRequestUio: manifestCreateRequestUio }, initOverrides);
202
+ return await response.value();
203
+ }
204
+ }
205
+ exports.ManifestsApi = ManifestsApi;
@@ -0,0 +1,46 @@
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 * as runtime from '../runtime';
13
+ import type { MetricForAgentUio, MetricUio } from '../models/index';
14
+ export interface MetricsAgentsGetRequest {
15
+ startDate?: Date;
16
+ endDate?: Date;
17
+ }
18
+ export interface MetricsGetRequest {
19
+ startDate?: Date;
20
+ endDate?: Date;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare class MetricsApi extends runtime.BaseAPI {
26
+ /**
27
+ * Retrieves usage metrics broken down by agent within a date range (admin only)
28
+ * Get agent-specific metrics
29
+ */
30
+ metricsAgentsGetRaw(requestParameters: MetricsAgentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricForAgentUio>>>;
31
+ /**
32
+ * Retrieves usage metrics broken down by agent within a date range (admin only)
33
+ * Get agent-specific metrics
34
+ */
35
+ metricsAgentsGet(startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricForAgentUio>>;
36
+ /**
37
+ * Retrieves usage metrics for all agents within a date range (admin only)
38
+ * Get usage metrics
39
+ */
40
+ metricsGetRaw(requestParameters: MetricsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricUio>>>;
41
+ /**
42
+ * Retrieves usage metrics for all agents within a date range (admin only)
43
+ * Get usage metrics
44
+ */
45
+ metricsGet(startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricUio>>;
46
+ }
@@ -0,0 +1,121 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.MetricsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class MetricsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Retrieves usage metrics broken down by agent within a date range (admin only)
58
+ * Get agent-specific metrics
59
+ */
60
+ async metricsAgentsGetRaw(requestParameters, initOverrides) {
61
+ const queryParameters = {};
62
+ if (requestParameters['startDate'] != null) {
63
+ queryParameters['startDate'] = requestParameters['startDate'].toISOString();
64
+ }
65
+ if (requestParameters['endDate'] != null) {
66
+ queryParameters['endDate'] = requestParameters['endDate'].toISOString();
67
+ }
68
+ const headerParameters = {};
69
+ if (this.configuration && this.configuration.apiKey) {
70
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
71
+ }
72
+ const response = await this.request({
73
+ path: `/metrics/agents`,
74
+ method: 'GET',
75
+ headers: headerParameters,
76
+ query: queryParameters,
77
+ }, initOverrides);
78
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MetricForAgentUioFromJSON));
79
+ }
80
+ /**
81
+ * Retrieves usage metrics broken down by agent within a date range (admin only)
82
+ * Get agent-specific metrics
83
+ */
84
+ async metricsAgentsGet(startDate, endDate, initOverrides) {
85
+ const response = await this.metricsAgentsGetRaw({ startDate: startDate, endDate: endDate }, initOverrides);
86
+ return await response.value();
87
+ }
88
+ /**
89
+ * Retrieves usage metrics for all agents within a date range (admin only)
90
+ * Get usage metrics
91
+ */
92
+ async metricsGetRaw(requestParameters, initOverrides) {
93
+ const queryParameters = {};
94
+ if (requestParameters['startDate'] != null) {
95
+ queryParameters['startDate'] = requestParameters['startDate'].toISOString();
96
+ }
97
+ if (requestParameters['endDate'] != null) {
98
+ queryParameters['endDate'] = requestParameters['endDate'].toISOString();
99
+ }
100
+ const headerParameters = {};
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
103
+ }
104
+ const response = await this.request({
105
+ path: `/metrics`,
106
+ method: 'GET',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ }, initOverrides);
110
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MetricUioFromJSON));
111
+ }
112
+ /**
113
+ * Retrieves usage metrics for all agents within a date range (admin only)
114
+ * Get usage metrics
115
+ */
116
+ async metricsGet(startDate, endDate, initOverrides) {
117
+ const response = await this.metricsGetRaw({ startDate: startDate, endDate: endDate }, initOverrides);
118
+ return await response.value();
119
+ }
120
+ }
121
+ exports.MetricsApi = MetricsApi;
@@ -0,0 +1,31 @@
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 * as runtime from '../runtime';
13
+ import type { OrganizationUio } from '../models/index';
14
+ export interface OrganizationsOrganizationIdGetRequest {
15
+ organizationId: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class OrganizationsApi extends runtime.BaseAPI {
21
+ /**
22
+ * Retrieves an organization by its ID
23
+ * Get an organization by ID
24
+ */
25
+ organizationsOrganizationIdGetRaw(requestParameters: OrganizationsOrganizationIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationUio>>;
26
+ /**
27
+ * Retrieves an organization by its ID
28
+ * Get an organization by ID
29
+ */
30
+ organizationsOrganizationIdGet(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
31
+ }
@@ -0,0 +1,86 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.OrganizationsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class OrganizationsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Retrieves an organization by its ID
58
+ * Get an organization by ID
59
+ */
60
+ async organizationsOrganizationIdGetRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['organizationId'] == null) {
62
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdGet().');
63
+ }
64
+ const queryParameters = {};
65
+ const headerParameters = {};
66
+ if (this.configuration && this.configuration.apiKey) {
67
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
68
+ }
69
+ const response = await this.request({
70
+ path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
71
+ method: 'GET',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ }, initOverrides);
75
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationUioFromJSON)(jsonValue));
76
+ }
77
+ /**
78
+ * Retrieves an organization by its ID
79
+ * Get an organization by ID
80
+ */
81
+ async organizationsOrganizationIdGet(organizationId, initOverrides) {
82
+ const response = await this.organizationsOrganizationIdGetRaw({ organizationId: organizationId }, initOverrides);
83
+ return await response.value();
84
+ }
85
+ }
86
+ exports.OrganizationsApi = OrganizationsApi;
@@ -0,0 +1,101 @@
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 * as runtime from '../runtime';
13
+ import type { BodyWithIdUio, ChatMessageUio, ConversationUio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio } from '../models/index';
14
+ export interface AgentsAgentIdPromptsFlowsPostRequest {
15
+ agentId: string;
16
+ promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
17
+ }
18
+ export interface AgentsAgentIdPromptsPostRequest {
19
+ agentId: string;
20
+ promptCreateRequestUio: PromptCreateRequestUio;
21
+ }
22
+ export interface ConversationsConversationIdGetRequest {
23
+ conversationId: string;
24
+ }
25
+ export interface ConversationsConversationIdMessagesMessageIdGetRequest {
26
+ conversationId: string;
27
+ messageId: string;
28
+ }
29
+ export interface ConversationsConversationIdPromptsPostRequest {
30
+ conversationId: string;
31
+ messageUio: MessageUio;
32
+ }
33
+ export interface ConversationsPostRequest {
34
+ agentId: string;
35
+ promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
36
+ }
37
+ /**
38
+ *
39
+ */
40
+ export declare class PromptsApi extends runtime.BaseAPI {
41
+ /**
42
+ * Starts a new conversation session for the specified agent with flow management
43
+ * Create a new conversation with flow management
44
+ */
45
+ agentsAgentIdPromptsFlowsPostRaw(requestParameters: AgentsAgentIdPromptsFlowsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptFlowCreateResponseUio>>;
46
+ /**
47
+ * Starts a new conversation session for the specified agent with flow management
48
+ * Create a new conversation with flow management
49
+ */
50
+ agentsAgentIdPromptsFlowsPost(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptFlowCreateResponseUio>;
51
+ /**
52
+ * Starts a new conversation session for the specified agent
53
+ * Create a new conversation
54
+ */
55
+ agentsAgentIdPromptsPostRaw(requestParameters: AgentsAgentIdPromptsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptCreateResponseUio>>;
56
+ /**
57
+ * Starts a new conversation session for the specified agent
58
+ * Create a new conversation
59
+ */
60
+ agentsAgentIdPromptsPost(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
61
+ /**
62
+ * Retrieves details of a specific conversation including all messages
63
+ * Get a conversation by ID
64
+ */
65
+ conversationsConversationIdGetRaw(requestParameters: ConversationsConversationIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationUio>>;
66
+ /**
67
+ * Retrieves details of a specific conversation including all messages
68
+ * Get a conversation by ID
69
+ */
70
+ conversationsConversationIdGet(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationUio>;
71
+ /**
72
+ * Retrieves a specific message by ID from a conversation
73
+ * Get a specific message from a conversation
74
+ */
75
+ conversationsConversationIdMessagesMessageIdGetRaw(requestParameters: ConversationsConversationIdMessagesMessageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChatMessageUio>>;
76
+ /**
77
+ * Retrieves a specific message by ID from a conversation
78
+ * Get a specific message from a conversation
79
+ */
80
+ conversationsConversationIdMessagesMessageIdGet(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChatMessageUio>;
81
+ /**
82
+ * Adds a new message to an existing conversation and gets the AI response
83
+ * Send a message to an existing conversation
84
+ */
85
+ conversationsConversationIdPromptsPostRaw(requestParameters: ConversationsConversationIdPromptsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptCreateResponseUio>>;
86
+ /**
87
+ * Adds a new message to an existing conversation and gets the AI response
88
+ * Send a message to an existing conversation
89
+ */
90
+ conversationsConversationIdPromptsPost(conversationId: string, messageUio: MessageUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
91
+ /**
92
+ * Create a new empty conversation for the specified agent.
93
+ * Create a new conversation
94
+ */
95
+ conversationsPostRaw(requestParameters: ConversationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
96
+ /**
97
+ * Create a new empty conversation for the specified agent.
98
+ * Create a new conversation
99
+ */
100
+ conversationsPost(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
101
+ }