@breign/client 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/README.md +51 -0
  2. package/dist/apis/AgentApi.d.ts +330 -0
  3. package/dist/apis/AgentApi.js +790 -0
  4. package/dist/apis/AppApi.d.ts +348 -0
  5. package/dist/apis/AppApi.js +837 -0
  6. package/dist/apis/AuthApi.d.ts +45 -0
  7. package/dist/apis/AuthApi.js +122 -0
  8. package/dist/apis/ChunksApi.d.ts +95 -0
  9. package/dist/apis/ChunksApi.js +235 -0
  10. package/dist/apis/ConfigurationApi.d.ts +74 -0
  11. package/dist/apis/ConfigurationApi.js +197 -0
  12. package/dist/apis/ContentsApi.d.ts +44 -0
  13. package/dist/apis/ContentsApi.js +115 -0
  14. package/dist/apis/ConversationsApi.d.ts +87 -0
  15. package/dist/apis/ConversationsApi.js +214 -0
  16. package/dist/apis/EngineApi.d.ts +112 -0
  17. package/dist/apis/EngineApi.js +280 -0
  18. package/dist/apis/FilesApi.d.ts +67 -0
  19. package/dist/apis/FilesApi.js +171 -0
  20. package/dist/apis/GeneralApi.d.ts +28 -0
  21. package/dist/apis/GeneralApi.js +83 -0
  22. package/dist/apis/GuardiansApi.d.ts +122 -0
  23. package/dist/apis/GuardiansApi.js +304 -0
  24. package/dist/apis/KnowledgeApi.d.ts +171 -0
  25. package/dist/apis/KnowledgeApi.js +436 -0
  26. package/dist/apis/ManifestsApi.d.ts +81 -0
  27. package/dist/apis/ManifestsApi.js +205 -0
  28. package/dist/apis/MetricsApi.d.ts +46 -0
  29. package/dist/apis/MetricsApi.js +121 -0
  30. package/dist/apis/OrganizationsApi.d.ts +31 -0
  31. package/dist/apis/OrganizationsApi.js +86 -0
  32. package/dist/apis/PromptsApi.d.ts +101 -0
  33. package/dist/apis/PromptsApi.js +254 -0
  34. package/dist/apis/RemotesApi.d.ts +31 -0
  35. package/dist/apis/RemotesApi.js +88 -0
  36. package/dist/apis/ToolsApi.d.ts +47 -0
  37. package/dist/apis/ToolsApi.js +128 -0
  38. package/dist/apis/index.d.ts +18 -1
  39. package/dist/apis/index.js +18 -1
  40. package/dist/models/AgentDuplicateRequestUio.d.ts +56 -0
  41. package/dist/models/AgentDuplicateRequestUio.js +58 -0
  42. package/dist/models/{BrainFlowCreateUio.d.ts → AgentFlowCreateUio.d.ts} +12 -12
  43. package/dist/models/{BrainFlowCreateUio.js → AgentFlowCreateUio.js} +13 -13
  44. package/dist/models/{BrainFlowUio.d.ts → AgentFlowUio.d.ts} +15 -15
  45. package/dist/models/{BrainFlowUio.js → AgentFlowUio.js} +16 -16
  46. package/dist/models/AgentKnowledgeBaseUio.d.ts +57 -0
  47. package/dist/models/AgentKnowledgeBaseUio.js +67 -0
  48. package/dist/models/AgentMetricsEventUio.d.ts +65 -0
  49. package/dist/models/{BrainMetricsEventUio.js → AgentMetricsEventUio.js} +20 -20
  50. package/dist/models/{BrainMetricsOverviewUio.d.ts → AgentMetricsOverviewUio.d.ts} +14 -14
  51. package/dist/models/{BrainMetricsOverviewUio.js → AgentMetricsOverviewUio.js} +13 -13
  52. package/dist/models/AgentMetricsUnitsTypeUio.d.ts +27 -0
  53. package/dist/models/AgentMetricsUnitsTypeUio.js +53 -0
  54. package/dist/models/AgentMetricsValueUio.d.ts +57 -0
  55. package/dist/models/{BrainMetricsValueUio.js → AgentMetricsValueUio.js} +16 -16
  56. package/dist/models/AgentModuleTypeUio.d.ts +25 -0
  57. package/dist/models/AgentModuleTypeUio.js +51 -0
  58. package/dist/models/AgentModuleUio.d.ts +51 -0
  59. package/dist/models/{BrainModuleUio.js → AgentModuleUio.js} +16 -16
  60. package/dist/models/AgentPatchEngineUio.d.ts +38 -0
  61. package/dist/models/AgentPatchEngineUio.js +54 -0
  62. package/dist/models/AgentPatchUio.d.ts +173 -0
  63. package/dist/models/{BrainPatchUio.js → AgentPatchUio.js} +32 -43
  64. package/dist/models/AgentRequestProfilePictureUio.d.ts +50 -0
  65. package/dist/models/{BrainRequestImageBrainUio.js → AgentRequestProfilePictureUio.js} +13 -13
  66. package/dist/models/{BrainRequestUio.d.ts → AgentRequestUio.d.ts} +26 -26
  67. package/dist/models/{BrainRequestUio.js → AgentRequestUio.js} +17 -19
  68. package/dist/models/AgentSubscriptionTextInteractionsUio.d.ts +39 -0
  69. package/dist/models/{BrainSubscriptionTextInteractionsUio.js → AgentSubscriptionTextInteractionsUio.js} +13 -13
  70. package/dist/models/AgentSubscriptionUio.d.ts +57 -0
  71. package/dist/models/AgentSubscriptionUio.js +63 -0
  72. package/dist/models/AgentToolUio.d.ts +78 -0
  73. package/dist/models/AgentToolUio.js +72 -0
  74. package/dist/models/AgentTypeUio.d.ts +27 -0
  75. package/dist/models/AgentTypeUio.js +53 -0
  76. package/dist/models/{BrainUio.d.ts → AgentUio.d.ts} +60 -39
  77. package/dist/models/{BrainUio.js → AgentUio.js} +30 -23
  78. package/dist/models/AgentUsageMetricsIdUio.d.ts +44 -0
  79. package/dist/models/{BrainUsageMetricsIdUio.js → AgentUsageMetricsIdUio.js} +13 -13
  80. package/dist/models/AgentUsageMetricsUio.d.ts +46 -0
  81. package/dist/models/{BrainUsageMetricsUio.js → AgentUsageMetricsUio.js} +16 -16
  82. package/dist/models/ApiKeyUio.d.ts +44 -0
  83. package/dist/models/ApiKeyUio.js +58 -0
  84. package/dist/models/AppChatCreateRequestUio.d.ts +44 -0
  85. package/dist/models/AppChatCreateRequestUio.js +56 -0
  86. package/dist/models/AppChatCreateResponseUio.d.ts +38 -0
  87. package/dist/models/AppChatCreateResponseUio.js +52 -0
  88. package/dist/models/AppChatSayRequestUio.d.ts +38 -0
  89. package/dist/models/AppChatSayRequestUio.js +52 -0
  90. package/dist/models/AppChatSayResponseUio.d.ts +32 -0
  91. package/dist/models/AppChatSayResponseUio.js +50 -0
  92. package/dist/models/AppChatSubmitMessageRequestUio.d.ts +32 -0
  93. package/dist/models/AppChatSubmitMessageRequestUio.js +50 -0
  94. package/dist/models/AppConfigurationUio.d.ts +33 -0
  95. package/dist/models/AppConfigurationUio.js +52 -0
  96. package/dist/models/AppConfigurationUpdateRequestUio.d.ts +33 -0
  97. package/dist/models/AppConfigurationUpdateRequestUio.js +50 -0
  98. package/dist/models/AppCreateRequestUio.d.ts +87 -0
  99. package/dist/models/AppCreateRequestUio.js +73 -0
  100. package/dist/models/AppFlowCreateRequestUio.d.ts +44 -0
  101. package/dist/models/AppFlowCreateRequestUio.js +54 -0
  102. package/dist/models/AppInstanceCreateRequestUio.d.ts +32 -0
  103. package/dist/models/AppInstanceCreateRequestUio.js +50 -0
  104. package/dist/models/AppLightUio.d.ts +80 -0
  105. package/dist/models/AppLightUio.js +80 -0
  106. package/dist/models/AppProbeRequestUio.d.ts +33 -0
  107. package/dist/models/AppProbeRequestUio.js +52 -0
  108. package/dist/models/AppProbeResponseUio.d.ts +39 -0
  109. package/dist/models/AppProbeResponseUio.js +56 -0
  110. package/dist/models/AppStatusRequestUio.d.ts +33 -0
  111. package/dist/models/AppStatusRequestUio.js +51 -0
  112. package/dist/models/AppStatusResponseUio.d.ts +45 -0
  113. package/dist/models/AppStatusResponseUio.js +57 -0
  114. package/dist/models/AppStatusUio.d.ts +25 -0
  115. package/dist/models/AppStatusUio.js +51 -0
  116. package/dist/models/AppSubmitMessageRequestUio.d.ts +34 -0
  117. package/dist/models/AppSubmitMessageRequestUio.js +50 -0
  118. package/dist/models/AppTextToSpeechRequestUio.d.ts +38 -0
  119. package/dist/models/AppTextToSpeechRequestUio.js +54 -0
  120. package/dist/models/AppTextToSpeechResponseUio.d.ts +33 -0
  121. package/dist/models/AppTextToSpeechResponseUio.js +51 -0
  122. package/dist/models/AppUio.d.ts +139 -0
  123. package/dist/models/AppUio.js +109 -0
  124. package/dist/models/AppUpdateRequestUio.d.ts +81 -0
  125. package/dist/models/AppUpdateRequestUio.js +65 -0
  126. package/dist/models/AttachmentCreateRequestUio.d.ts +57 -0
  127. package/dist/models/AttachmentCreateRequestUio.js +67 -0
  128. package/dist/models/AttachmentTypeUio.d.ts +24 -0
  129. package/dist/models/AttachmentTypeUio.js +50 -0
  130. package/dist/models/AudioFile1Uio.d.ts +45 -0
  131. package/dist/models/AudioFile1Uio.js +59 -0
  132. package/dist/models/AudioFileOrBufferUio.d.ts +22 -0
  133. package/dist/models/AudioFileOrBufferUio.js +50 -0
  134. package/dist/models/AudioFileTypeUio.d.ts +24 -0
  135. package/dist/models/AudioFileTypeUio.js +50 -0
  136. package/dist/models/AudioFileUio.d.ts +45 -0
  137. package/dist/models/AudioFileUio.js +59 -0
  138. package/dist/models/AuthCodeConfirmRequestUio.d.ts +45 -0
  139. package/dist/models/AuthCodeConfirmRequestUio.js +59 -0
  140. package/dist/models/AuthCodeConfirmResponseUio.d.ts +39 -0
  141. package/dist/models/AuthCodeConfirmResponseUio.js +55 -0
  142. package/dist/models/AuthCodeRequestUio.d.ts +40 -0
  143. package/dist/models/AuthCodeRequestUio.js +56 -0
  144. package/dist/models/AuthCodeResponseUio.d.ts +38 -0
  145. package/dist/models/AuthCodeResponseUio.js +54 -0
  146. package/dist/models/AuthTypeUio.d.ts +24 -0
  147. package/dist/models/AuthTypeUio.js +50 -0
  148. package/dist/models/BodyWithIdUio.d.ts +32 -0
  149. package/dist/models/BodyWithIdUio.js +50 -0
  150. package/dist/models/BodyWithMessageUio.d.ts +32 -0
  151. package/dist/models/BodyWithMessageUio.js +50 -0
  152. package/dist/models/ChatContextUio.d.ts +39 -0
  153. package/dist/models/ChatContextUio.js +53 -0
  154. package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
  155. package/dist/models/ChatMessageAudioInnerUio.js +54 -0
  156. package/dist/models/ChatMessageRoleUio.d.ts +26 -0
  157. package/dist/models/ChatMessageRoleUio.js +52 -0
  158. package/dist/models/ChatMessageUio.d.ts +128 -0
  159. package/dist/models/ChatMessageUio.js +92 -0
  160. package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
  161. package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
  162. package/dist/models/ChatUio.d.ts +100 -0
  163. package/dist/models/ChatUio.js +86 -0
  164. package/dist/models/ChunkContentCreateUio.d.ts +77 -0
  165. package/dist/models/ChunkContentCreateUio.js +77 -0
  166. package/dist/models/ChunkContentUio.d.ts +69 -0
  167. package/dist/models/ChunkContentUio.js +71 -0
  168. package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +50 -0
  169. package/dist/models/ChunkCreateRequestContentInnerUio.js +62 -0
  170. package/dist/models/ChunkCreateRequestUio.d.ts +45 -0
  171. package/dist/models/ChunkCreateRequestUio.js +53 -0
  172. package/dist/models/ChunkCreateResponseUio.d.ts +57 -0
  173. package/dist/models/ChunkCreateResponseUio.js +67 -0
  174. package/dist/models/ChunkUio.d.ts +57 -0
  175. package/dist/models/ChunkUio.js +67 -0
  176. package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +44 -0
  177. package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +58 -0
  178. package/dist/models/ContextUio.d.ts +33 -0
  179. package/dist/models/ContextUio.js +51 -0
  180. package/dist/models/ConversationUio.d.ts +39 -0
  181. package/dist/models/ConversationUio.js +55 -0
  182. package/dist/models/DefaultClientPricesUio.d.ts +39 -0
  183. package/dist/models/DefaultClientPricesUio.js +55 -0
  184. package/dist/models/DefaultEngineRequestUio.d.ts +44 -0
  185. package/dist/models/DefaultEngineRequestUio.js +58 -0
  186. package/dist/models/DocumentAddRequestUio.d.ts +38 -0
  187. package/dist/models/DocumentAddRequestUio.js +52 -0
  188. package/dist/models/EngineUio.d.ts +4 -7
  189. package/dist/models/EngineUio.js +6 -7
  190. package/dist/models/FileAttachmentProcessedOneOf1Uio.d.ts +45 -0
  191. package/dist/models/FileAttachmentProcessedOneOf1Uio.js +61 -0
  192. package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +45 -0
  193. package/dist/models/FileAttachmentProcessedOneOfUio.js +57 -0
  194. package/dist/models/FileAttachmentProcessedUio.d.ts +23 -0
  195. package/dist/models/FileAttachmentProcessedUio.js +57 -0
  196. package/dist/models/FileAttachmentStatusUio.d.ts +27 -0
  197. package/dist/models/FileAttachmentStatusUio.js +53 -0
  198. package/dist/models/FileAttachmentUio.d.ts +89 -0
  199. package/dist/models/FileAttachmentUio.js +85 -0
  200. package/dist/models/FileCreationRequestUio.d.ts +6 -0
  201. package/dist/models/FileCreationRequestUio.js +2 -0
  202. package/dist/models/FileCreationResponseUio.d.ts +83 -0
  203. package/dist/models/FileCreationResponseUio.js +83 -0
  204. package/dist/models/FileStatusUio.d.ts +1 -0
  205. package/dist/models/FileStatusUio.js +2 -1
  206. package/dist/models/FileStatusUpdateRequestUio.d.ts +33 -0
  207. package/dist/models/FileStatusUpdateRequestUio.js +51 -0
  208. package/dist/models/FileUio.d.ts +2 -8
  209. package/dist/models/FileUio.js +2 -6
  210. package/dist/models/FileWithDownloadUrlUio.d.ts +75 -0
  211. package/dist/models/FileWithDownloadUrlUio.js +79 -0
  212. package/dist/models/FlowUio.d.ts +45 -0
  213. package/dist/models/FlowUio.js +53 -0
  214. package/dist/models/GuardianCreateRequestUio.d.ts +73 -0
  215. package/dist/models/GuardianCreateRequestUio.js +69 -0
  216. package/dist/models/GuardianEngineUio.d.ts +34 -0
  217. package/dist/models/GuardianEngineUio.js +50 -0
  218. package/dist/models/GuardianPositionUio.d.ts +25 -0
  219. package/dist/models/GuardianPositionUio.js +51 -0
  220. package/dist/models/GuardianPutRequestUio.d.ts +73 -0
  221. package/dist/models/GuardianPutRequestUio.js +63 -0
  222. package/dist/models/GuardianRoleUio.d.ts +28 -0
  223. package/dist/models/GuardianRoleUio.js +54 -0
  224. package/dist/models/GuardianTypeUio.d.ts +26 -0
  225. package/dist/models/GuardianTypeUio.js +52 -0
  226. package/dist/models/GuardianUio.d.ts +122 -0
  227. package/dist/models/GuardianUio.js +90 -0
  228. package/dist/models/HealthCheckResponseComponentsApiUio.d.ts +33 -0
  229. package/dist/models/HealthCheckResponseComponentsApiUio.js +49 -0
  230. package/dist/models/HealthCheckResponseComponentsUio.d.ts +39 -0
  231. package/dist/models/HealthCheckResponseComponentsUio.js +51 -0
  232. package/dist/models/HealthCheckResponseUio.d.ts +51 -0
  233. package/dist/models/HealthCheckResponseUio.js +55 -0
  234. package/dist/models/HealthStatusUio.d.ts +26 -0
  235. package/dist/models/HealthStatusUio.js +52 -0
  236. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
  237. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
  238. package/dist/models/InputUio.d.ts +38 -0
  239. package/dist/models/InputUio.js +54 -0
  240. package/dist/models/InstanceUio.d.ts +57 -0
  241. package/dist/models/InstanceUio.js +67 -0
  242. package/dist/models/KnowledgeBasePrivacyUio.d.ts +25 -0
  243. package/dist/models/KnowledgeBasePrivacyUio.js +51 -0
  244. package/dist/models/LipsyncUio.d.ts +45 -0
  245. package/dist/models/LipsyncUio.js +56 -0
  246. package/dist/models/ManifestCreateRequestUio.d.ts +51 -0
  247. package/dist/models/ManifestCreateRequestUio.js +60 -0
  248. package/dist/models/ManifestUio.d.ts +57 -0
  249. package/dist/models/ManifestUio.js +66 -0
  250. package/dist/models/MessageUio.d.ts +32 -0
  251. package/dist/models/MessageUio.js +50 -0
  252. package/dist/models/MetricForAgentAgentUio.d.ts +38 -0
  253. package/dist/models/MetricForAgentAgentUio.js +54 -0
  254. package/dist/models/MetricForAgentIdentifierUio.d.ts +32 -0
  255. package/dist/models/MetricForAgentIdentifierUio.js +50 -0
  256. package/dist/models/MetricForAgentMetricUio.d.ts +57 -0
  257. package/dist/models/MetricForAgentMetricUio.js +67 -0
  258. package/dist/models/MetricForAgentMetricWithCostUio.d.ts +64 -0
  259. package/dist/models/MetricForAgentMetricWithCostUio.js +70 -0
  260. package/dist/models/MetricForAgentUio.d.ts +55 -0
  261. package/dist/models/MetricForAgentUio.js +63 -0
  262. package/dist/models/MetricIdentifierUio.d.ts +57 -0
  263. package/dist/models/MetricIdentifierUio.js +67 -0
  264. package/dist/models/MetricUio.d.ts +45 -0
  265. package/dist/models/MetricUio.js +59 -0
  266. package/dist/models/ModelUio.d.ts +38 -0
  267. package/dist/models/ModelUio.js +54 -0
  268. package/dist/models/OrganizationUio.d.ts +47 -0
  269. package/dist/models/OrganizationUio.js +60 -0
  270. package/dist/models/PinRequestUio.d.ts +39 -0
  271. package/dist/models/PinRequestUio.js +55 -0
  272. package/dist/models/PriceConfigurationModelConfigUio.d.ts +44 -0
  273. package/dist/models/PriceConfigurationModelConfigUio.js +58 -0
  274. package/dist/models/PriceConfigurationModelUio.d.ts +37 -0
  275. package/dist/models/PriceConfigurationModelUio.js +50 -0
  276. package/dist/models/PriceConfigurationUio.d.ts +35 -0
  277. package/dist/models/PriceConfigurationUio.js +52 -0
  278. package/dist/models/PriceUio.d.ts +38 -0
  279. package/dist/models/PriceUio.js +54 -0
  280. package/dist/models/PromptCreateRequestUio.d.ts +44 -0
  281. package/dist/models/PromptCreateRequestUio.js +56 -0
  282. package/dist/models/PromptCreateResponseUio.d.ts +58 -0
  283. package/dist/models/PromptCreateResponseUio.js +66 -0
  284. package/dist/models/PromptFlowCreateRequestUio.d.ts +38 -0
  285. package/dist/models/PromptFlowCreateRequestUio.js +52 -0
  286. package/dist/models/PromptFlowCreateResponseUio.d.ts +51 -0
  287. package/dist/models/PromptFlowCreateResponseUio.js +61 -0
  288. package/dist/models/ProviderCreateRequestUio.d.ts +57 -0
  289. package/dist/models/ProviderCreateRequestUio.js +63 -0
  290. package/dist/models/ProviderSimpleUio.d.ts +50 -0
  291. package/dist/models/ProviderSimpleUio.js +62 -0
  292. package/dist/models/ProviderTypeUio.d.ts +27 -0
  293. package/dist/models/ProviderTypeUio.js +53 -0
  294. package/dist/models/ProviderUio.d.ts +69 -0
  295. package/dist/models/ProviderUio.js +71 -0
  296. package/dist/models/ProviderValiationRequestUio.d.ts +38 -0
  297. package/dist/models/ProviderValiationRequestUio.js +54 -0
  298. package/dist/models/S3UploadBodyUio.d.ts +40 -0
  299. package/dist/models/S3UploadBodyUio.js +54 -0
  300. package/dist/models/STTResponseUio.d.ts +32 -0
  301. package/dist/models/STTResponseUio.js +50 -0
  302. package/dist/models/SimpleAgentUio.d.ts +38 -0
  303. package/dist/models/SimpleAgentUio.js +54 -0
  304. package/dist/models/SubscriptionMetricUio.d.ts +4 -4
  305. package/dist/models/SubscriptionMetricUio.js +4 -4
  306. package/dist/models/SuggestionUio.d.ts +38 -0
  307. package/dist/models/SuggestionUio.js +54 -0
  308. package/dist/models/TTSRequestUio.d.ts +45 -0
  309. package/dist/models/TTSRequestUio.js +59 -0
  310. package/dist/models/TTSResponseUio.d.ts +45 -0
  311. package/dist/models/TTSResponseUio.js +57 -0
  312. package/dist/models/TextToSpeechProviderUio.d.ts +24 -0
  313. package/dist/models/TextToSpeechProviderUio.js +50 -0
  314. package/dist/models/ToolActionUio.d.ts +33 -0
  315. package/dist/models/ToolActionUio.js +52 -0
  316. package/dist/models/ToolResultUio.d.ts +51 -0
  317. package/dist/models/ToolResultUio.js +57 -0
  318. package/dist/models/ToolResultsToolUio.d.ts +38 -0
  319. package/dist/models/ToolResultsToolUio.js +52 -0
  320. package/dist/models/ToolResultsUio.d.ts +40 -0
  321. package/dist/models/ToolResultsUio.js +52 -0
  322. package/dist/models/UserUio.d.ts +32 -0
  323. package/dist/models/UserUio.js +50 -0
  324. package/dist/models/index.d.ts +137 -17
  325. package/dist/models/index.js +137 -17
  326. package/dist/openapi.json +6740 -616
  327. package/package.json +1 -1
  328. package/dist/apis/BrainApi.d.ts +0 -290
  329. package/dist/apis/BrainApi.js +0 -697
  330. package/dist/models/BrainMetricsEventUio.d.ts +0 -65
  331. package/dist/models/BrainMetricsUnitsTypeUio.d.ts +0 -27
  332. package/dist/models/BrainMetricsUnitsTypeUio.js +0 -53
  333. package/dist/models/BrainMetricsValueUio.d.ts +0 -57
  334. package/dist/models/BrainModuleTypeUio.d.ts +0 -25
  335. package/dist/models/BrainModuleTypeUio.js +0 -51
  336. package/dist/models/BrainModuleUio.d.ts +0 -51
  337. package/dist/models/BrainPatchUio.d.ts +0 -166
  338. package/dist/models/BrainRequestImageBrainUio.d.ts +0 -50
  339. package/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +0 -39
  340. package/dist/models/BrainSubscriptionUio.d.ts +0 -57
  341. package/dist/models/BrainSubscriptionUio.js +0 -63
  342. package/dist/models/BrainUsageMetricsIdUio.d.ts +0 -44
  343. package/dist/models/BrainUsageMetricsUio.d.ts +0 -46
  344. package/dist/models/EngineTypeUio.d.ts +0 -25
  345. package/dist/models/EngineTypeUio.js +0 -51
@@ -0,0 +1,112 @@
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 { BodyWithMessageUio, DefaultEngineRequestUio, ModelUio, ProviderCreateRequestUio, ProviderSimpleUio, ProviderUio, ProviderValiationRequestUio } from '../models/index';
14
+ export interface CreateProviderRequest {
15
+ organizationId: string;
16
+ providerCreateRequestUio: ProviderCreateRequestUio;
17
+ }
18
+ export interface DeleteProviderRequest {
19
+ providerId: string;
20
+ organizationId: string;
21
+ }
22
+ export interface GetProvidersRequest {
23
+ organizationId: string;
24
+ }
25
+ export interface GetSimpleProvidersRequest {
26
+ organizationId: string;
27
+ }
28
+ export interface UpdateDefaultEngineRequest {
29
+ defaultEngineRequestUio: DefaultEngineRequestUio;
30
+ }
31
+ export interface UpdateProviderRequest {
32
+ providerId: string;
33
+ providerCreateRequestUio: ProviderCreateRequestUio;
34
+ }
35
+ export interface ValidateProviderRequest {
36
+ providerValiationRequestUio: ProviderValiationRequestUio;
37
+ }
38
+ /**
39
+ *
40
+ */
41
+ export declare class EngineApi extends runtime.BaseAPI {
42
+ /**
43
+ * Create a provider for an organization
44
+ * Create a provider for an organization
45
+ */
46
+ createProviderRaw(requestParameters: CreateProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
47
+ /**
48
+ * Create a provider for an organization
49
+ * Create a provider for an organization
50
+ */
51
+ createProvider(organizationId: string, providerCreateRequestUio: ProviderCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
52
+ /**
53
+ * Delete a provider for an organization
54
+ * Delete a provider for an organization
55
+ */
56
+ deleteProviderRaw(requestParameters: DeleteProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
57
+ /**
58
+ * Delete a provider for an organization
59
+ * Delete a provider for an organization
60
+ */
61
+ deleteProvider(providerId: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
62
+ /**
63
+ * Get providers for an organization
64
+ * Get providers for an organization
65
+ */
66
+ getProvidersRaw(requestParameters: GetProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProviderUio>>>;
67
+ /**
68
+ * Get providers for an organization
69
+ * Get providers for an organization
70
+ */
71
+ getProviders(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderUio>>;
72
+ /**
73
+ * Get a simplified version of providers for an organization
74
+ * Get a simplified version of providers for an organization
75
+ */
76
+ getSimpleProvidersRaw(requestParameters: GetSimpleProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProviderSimpleUio>>>;
77
+ /**
78
+ * Get a simplified version of providers for an organization
79
+ * Get a simplified version of providers for an organization
80
+ */
81
+ getSimpleProviders(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderSimpleUio>>;
82
+ /**
83
+ * Update the default engine for an organization
84
+ * Update the default engine for an organization
85
+ */
86
+ updateDefaultEngineRaw(requestParameters: UpdateDefaultEngineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
87
+ /**
88
+ * Update the default engine for an organization
89
+ * Update the default engine for an organization
90
+ */
91
+ updateDefaultEngine(defaultEngineRequestUio: DefaultEngineRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
92
+ /**
93
+ * Update a provider for an organization
94
+ * Update a provider for an organization
95
+ */
96
+ updateProviderRaw(requestParameters: UpdateProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
97
+ /**
98
+ * Update a provider for an organization
99
+ * Update a provider for an organization
100
+ */
101
+ updateProvider(providerId: string, providerCreateRequestUio: ProviderCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
102
+ /**
103
+ * Check that the endpoint of a given provider can be reached and fetch available models
104
+ * Validate a provider
105
+ */
106
+ validateProviderRaw(requestParameters: ValidateProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ModelUio>>>;
107
+ /**
108
+ * Check that the endpoint of a given provider can be reached and fetch available models
109
+ * Validate a provider
110
+ */
111
+ validateProvider(providerValiationRequestUio: ProviderValiationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ModelUio>>;
112
+ }
@@ -0,0 +1,280 @@
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.EngineApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class EngineApi extends runtime.BaseAPI {
56
+ /**
57
+ * Create a provider for an organization
58
+ * Create a provider for an organization
59
+ */
60
+ async createProviderRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['organizationId'] == null) {
62
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createProvider().');
63
+ }
64
+ if (requestParameters['providerCreateRequestUio'] == null) {
65
+ throw new runtime.RequiredError('providerCreateRequestUio', 'Required parameter "providerCreateRequestUio" was null or undefined when calling createProvider().');
66
+ }
67
+ const queryParameters = {};
68
+ const headerParameters = {};
69
+ headerParameters['Content-Type'] = 'application/json';
70
+ if (this.configuration && this.configuration.apiKey) {
71
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
72
+ }
73
+ const response = await this.request({
74
+ path: `/organizations/{organizationId}/engines/providers`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: (0, index_1.ProviderCreateRequestUioToJSON)(requestParameters['providerCreateRequestUio']),
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
81
+ }
82
+ /**
83
+ * Create a provider for an organization
84
+ * Create a provider for an organization
85
+ */
86
+ async createProvider(organizationId, providerCreateRequestUio, initOverrides) {
87
+ const response = await this.createProviderRaw({ organizationId: organizationId, providerCreateRequestUio: providerCreateRequestUio }, initOverrides);
88
+ return await response.value();
89
+ }
90
+ /**
91
+ * Delete a provider for an organization
92
+ * Delete a provider for an organization
93
+ */
94
+ async deleteProviderRaw(requestParameters, initOverrides) {
95
+ if (requestParameters['providerId'] == null) {
96
+ throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling deleteProvider().');
97
+ }
98
+ if (requestParameters['organizationId'] == null) {
99
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteProvider().');
100
+ }
101
+ const queryParameters = {};
102
+ if (requestParameters['organizationId'] != null) {
103
+ queryParameters['organizationId'] = requestParameters['organizationId'];
104
+ }
105
+ const headerParameters = {};
106
+ if (this.configuration && this.configuration.apiKey) {
107
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
108
+ }
109
+ const response = await this.request({
110
+ path: `/engines/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(requestParameters['providerId']))),
111
+ method: 'DELETE',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ }, initOverrides);
115
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
116
+ }
117
+ /**
118
+ * Delete a provider for an organization
119
+ * Delete a provider for an organization
120
+ */
121
+ async deleteProvider(providerId, organizationId, initOverrides) {
122
+ const response = await this.deleteProviderRaw({ providerId: providerId, organizationId: organizationId }, initOverrides);
123
+ return await response.value();
124
+ }
125
+ /**
126
+ * Get providers for an organization
127
+ * Get providers for an organization
128
+ */
129
+ async getProvidersRaw(requestParameters, initOverrides) {
130
+ if (requestParameters['organizationId'] == null) {
131
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getProviders().');
132
+ }
133
+ const queryParameters = {};
134
+ const headerParameters = {};
135
+ if (this.configuration && this.configuration.apiKey) {
136
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
137
+ }
138
+ const response = await this.request({
139
+ path: `/organizations/{organizationId}/engines/providers`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
140
+ method: 'GET',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ }, initOverrides);
144
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProviderUioFromJSON));
145
+ }
146
+ /**
147
+ * Get providers for an organization
148
+ * Get providers for an organization
149
+ */
150
+ async getProviders(organizationId, initOverrides) {
151
+ const response = await this.getProvidersRaw({ organizationId: organizationId }, initOverrides);
152
+ return await response.value();
153
+ }
154
+ /**
155
+ * Get a simplified version of providers for an organization
156
+ * Get a simplified version of providers for an organization
157
+ */
158
+ async getSimpleProvidersRaw(requestParameters, initOverrides) {
159
+ if (requestParameters['organizationId'] == null) {
160
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getSimpleProviders().');
161
+ }
162
+ const queryParameters = {};
163
+ const headerParameters = {};
164
+ if (this.configuration && this.configuration.apiKey) {
165
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
166
+ }
167
+ const response = await this.request({
168
+ path: `/engines/providers/{organizationId}/simple`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
169
+ method: 'GET',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ }, initOverrides);
173
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProviderSimpleUioFromJSON));
174
+ }
175
+ /**
176
+ * Get a simplified version of providers for an organization
177
+ * Get a simplified version of providers for an organization
178
+ */
179
+ async getSimpleProviders(organizationId, initOverrides) {
180
+ const response = await this.getSimpleProvidersRaw({ organizationId: organizationId }, initOverrides);
181
+ return await response.value();
182
+ }
183
+ /**
184
+ * Update the default engine for an organization
185
+ * Update the default engine for an organization
186
+ */
187
+ async updateDefaultEngineRaw(requestParameters, initOverrides) {
188
+ if (requestParameters['defaultEngineRequestUio'] == null) {
189
+ throw new runtime.RequiredError('defaultEngineRequestUio', 'Required parameter "defaultEngineRequestUio" was null or undefined when calling updateDefaultEngine().');
190
+ }
191
+ const queryParameters = {};
192
+ const headerParameters = {};
193
+ headerParameters['Content-Type'] = 'application/json';
194
+ if (this.configuration && this.configuration.apiKey) {
195
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
196
+ }
197
+ const response = await this.request({
198
+ path: `/engines/default`,
199
+ method: 'PUT',
200
+ headers: headerParameters,
201
+ query: queryParameters,
202
+ body: (0, index_1.DefaultEngineRequestUioToJSON)(requestParameters['defaultEngineRequestUio']),
203
+ }, initOverrides);
204
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
205
+ }
206
+ /**
207
+ * Update the default engine for an organization
208
+ * Update the default engine for an organization
209
+ */
210
+ async updateDefaultEngine(defaultEngineRequestUio, initOverrides) {
211
+ const response = await this.updateDefaultEngineRaw({ defaultEngineRequestUio: defaultEngineRequestUio }, initOverrides);
212
+ return await response.value();
213
+ }
214
+ /**
215
+ * Update a provider for an organization
216
+ * Update a provider for an organization
217
+ */
218
+ async updateProviderRaw(requestParameters, initOverrides) {
219
+ if (requestParameters['providerId'] == null) {
220
+ throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling updateProvider().');
221
+ }
222
+ if (requestParameters['providerCreateRequestUio'] == null) {
223
+ throw new runtime.RequiredError('providerCreateRequestUio', 'Required parameter "providerCreateRequestUio" was null or undefined when calling updateProvider().');
224
+ }
225
+ const queryParameters = {};
226
+ const headerParameters = {};
227
+ headerParameters['Content-Type'] = 'application/json';
228
+ if (this.configuration && this.configuration.apiKey) {
229
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
230
+ }
231
+ const response = await this.request({
232
+ path: `/engines/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(requestParameters['providerId']))),
233
+ method: 'PUT',
234
+ headers: headerParameters,
235
+ query: queryParameters,
236
+ body: (0, index_1.ProviderCreateRequestUioToJSON)(requestParameters['providerCreateRequestUio']),
237
+ }, initOverrides);
238
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
239
+ }
240
+ /**
241
+ * Update a provider for an organization
242
+ * Update a provider for an organization
243
+ */
244
+ async updateProvider(providerId, providerCreateRequestUio, initOverrides) {
245
+ const response = await this.updateProviderRaw({ providerId: providerId, providerCreateRequestUio: providerCreateRequestUio }, initOverrides);
246
+ return await response.value();
247
+ }
248
+ /**
249
+ * Check that the endpoint of a given provider can be reached and fetch available models
250
+ * Validate a provider
251
+ */
252
+ async validateProviderRaw(requestParameters, initOverrides) {
253
+ if (requestParameters['providerValiationRequestUio'] == null) {
254
+ throw new runtime.RequiredError('providerValiationRequestUio', 'Required parameter "providerValiationRequestUio" was null or undefined when calling validateProvider().');
255
+ }
256
+ const queryParameters = {};
257
+ const headerParameters = {};
258
+ headerParameters['Content-Type'] = 'application/json';
259
+ if (this.configuration && this.configuration.apiKey) {
260
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
261
+ }
262
+ const response = await this.request({
263
+ path: `/engines/providers/validate`,
264
+ method: 'POST',
265
+ headers: headerParameters,
266
+ query: queryParameters,
267
+ body: (0, index_1.ProviderValiationRequestUioToJSON)(requestParameters['providerValiationRequestUio']),
268
+ }, initOverrides);
269
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ModelUioFromJSON));
270
+ }
271
+ /**
272
+ * Check that the endpoint of a given provider can be reached and fetch available models
273
+ * Validate a provider
274
+ */
275
+ async validateProvider(providerValiationRequestUio, initOverrides) {
276
+ const response = await this.validateProviderRaw({ providerValiationRequestUio: providerValiationRequestUio }, initOverrides);
277
+ return await response.value();
278
+ }
279
+ }
280
+ exports.EngineApi = EngineApi;
@@ -0,0 +1,67 @@
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 { FileCreationRequestUio, FileCreationResponseUio, FileWithDownloadUrlUio } from '../models/index';
14
+ export interface CreateFileRequest {
15
+ fileCreationRequestUio: FileCreationRequestUio;
16
+ }
17
+ export interface DeleteFileByIdRequest {
18
+ fileId: string;
19
+ }
20
+ export interface GetFileByIdRequest {
21
+ fileId: string;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class FilesApi extends runtime.BaseAPI {
27
+ /**
28
+ * Creates a new file record and returns an upload URL (admin only)
29
+ * Create a new file record
30
+ */
31
+ createFileRaw(requestParameters: CreateFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
32
+ /**
33
+ * Creates a new file record and returns an upload URL (admin only)
34
+ * Create a new file record
35
+ */
36
+ createFile(fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
37
+ /**
38
+ * Deletes a file by ID (admin only)
39
+ * Delete a file
40
+ */
41
+ deleteFileByIdRaw(requestParameters: DeleteFileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
42
+ /**
43
+ * Deletes a file by ID (admin only)
44
+ * Delete a file
45
+ */
46
+ deleteFileById(fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
47
+ /**
48
+ * Retrieves a specific file by ID and generates a download URL (admin only)
49
+ * Get a file by ID
50
+ */
51
+ getFileByIdRaw(requestParameters: GetFileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWithDownloadUrlUio>>;
52
+ /**
53
+ * Retrieves a specific file by ID and generates a download URL (admin only)
54
+ * Get a file by ID
55
+ */
56
+ getFileById(fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWithDownloadUrlUio>;
57
+ /**
58
+ * Retrieves a list of all files (admin only)
59
+ * Get all files
60
+ */
61
+ getFilesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<any>>>;
62
+ /**
63
+ * Retrieves a list of all files (admin only)
64
+ * Get all files
65
+ */
66
+ getFiles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<any>>;
67
+ }
@@ -0,0 +1,171 @@
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.FilesApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class FilesApi extends runtime.BaseAPI {
56
+ /**
57
+ * Creates a new file record and returns an upload URL (admin only)
58
+ * Create a new file record
59
+ */
60
+ async createFileRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['fileCreationRequestUio'] == null) {
62
+ throw new runtime.RequiredError('fileCreationRequestUio', 'Required parameter "fileCreationRequestUio" was null or undefined when calling createFile().');
63
+ }
64
+ const queryParameters = {};
65
+ const headerParameters = {};
66
+ headerParameters['Content-Type'] = 'application/json';
67
+ if (this.configuration && this.configuration.apiKey) {
68
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
69
+ }
70
+ const response = await this.request({
71
+ path: `/files`,
72
+ method: 'POST',
73
+ headers: headerParameters,
74
+ query: queryParameters,
75
+ body: (0, index_1.FileCreationRequestUioToJSON)(requestParameters['fileCreationRequestUio']),
76
+ }, initOverrides);
77
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FileCreationResponseUioFromJSON)(jsonValue));
78
+ }
79
+ /**
80
+ * Creates a new file record and returns an upload URL (admin only)
81
+ * Create a new file record
82
+ */
83
+ async createFile(fileCreationRequestUio, initOverrides) {
84
+ const response = await this.createFileRaw({ fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
85
+ return await response.value();
86
+ }
87
+ /**
88
+ * Deletes a file by ID (admin only)
89
+ * Delete a file
90
+ */
91
+ async deleteFileByIdRaw(requestParameters, initOverrides) {
92
+ if (requestParameters['fileId'] == null) {
93
+ throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling deleteFileById().');
94
+ }
95
+ const queryParameters = {};
96
+ const headerParameters = {};
97
+ if (this.configuration && this.configuration.apiKey) {
98
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
99
+ }
100
+ const response = await this.request({
101
+ path: `/files/{fileId}`.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
102
+ method: 'DELETE',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ }, initOverrides);
106
+ return new runtime.VoidApiResponse(response);
107
+ }
108
+ /**
109
+ * Deletes a file by ID (admin only)
110
+ * Delete a file
111
+ */
112
+ async deleteFileById(fileId, initOverrides) {
113
+ await this.deleteFileByIdRaw({ fileId: fileId }, initOverrides);
114
+ }
115
+ /**
116
+ * Retrieves a specific file by ID and generates a download URL (admin only)
117
+ * Get a file by ID
118
+ */
119
+ async getFileByIdRaw(requestParameters, initOverrides) {
120
+ if (requestParameters['fileId'] == null) {
121
+ throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling getFileById().');
122
+ }
123
+ const queryParameters = {};
124
+ const headerParameters = {};
125
+ if (this.configuration && this.configuration.apiKey) {
126
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
127
+ }
128
+ const response = await this.request({
129
+ path: `/files/{fileId}`.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
130
+ method: 'GET',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ }, initOverrides);
134
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FileWithDownloadUrlUioFromJSON)(jsonValue));
135
+ }
136
+ /**
137
+ * Retrieves a specific file by ID and generates a download URL (admin only)
138
+ * Get a file by ID
139
+ */
140
+ async getFileById(fileId, initOverrides) {
141
+ const response = await this.getFileByIdRaw({ fileId: fileId }, initOverrides);
142
+ return await response.value();
143
+ }
144
+ /**
145
+ * Retrieves a list of all files (admin only)
146
+ * Get all files
147
+ */
148
+ async getFilesRaw(initOverrides) {
149
+ const queryParameters = {};
150
+ const headerParameters = {};
151
+ if (this.configuration && this.configuration.apiKey) {
152
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
153
+ }
154
+ const response = await this.request({
155
+ path: `/files`,
156
+ method: 'GET',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ }, initOverrides);
160
+ return new runtime.JSONApiResponse(response);
161
+ }
162
+ /**
163
+ * Retrieves a list of all files (admin only)
164
+ * Get all files
165
+ */
166
+ async getFiles(initOverrides) {
167
+ const response = await this.getFilesRaw(initOverrides);
168
+ return await response.value();
169
+ }
170
+ }
171
+ exports.FilesApi = FilesApi;
@@ -0,0 +1,28 @@
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 { HealthCheckResponseUio } from '../models/index';
14
+ /**
15
+ *
16
+ */
17
+ export declare class GeneralApi extends runtime.BaseAPI {
18
+ /**
19
+ * Comprehensive health check that verifies system components
20
+ * Health check endpoint
21
+ */
22
+ getHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthCheckResponseUio>>;
23
+ /**
24
+ * Comprehensive health check that verifies system components
25
+ * Health check endpoint
26
+ */
27
+ getHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponseUio>;
28
+ }