@iblai/iblai-api 3.35.2-ai-plus → 3.35.3-core

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 (614) hide show
  1. package/dist/index.cjs.js +92 -12806
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +93 -12799
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +92 -12806
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +2 -298
  8. package/dist/types/models/Notification.d.ts +2 -2
  9. package/dist/types/models/NotificationSource.d.ts +2 -2
  10. package/dist/types/models/PatchedNotification.d.ts +2 -2
  11. package/dist/types/models/{NotificationStatusEnum.d.ts → StatusEnum.d.ts} +1 -1
  12. package/dist/types/models/{NotificationSourceTypeEnum.d.ts → TypeEnum.d.ts} +1 -1
  13. package/dist/types/services/SearchService.d.ts +0 -299
  14. package/package.json +1 -1
  15. package/src/core/OpenAPI.ts +1 -1
  16. package/src/index.ts +2 -298
  17. package/src/models/Notification.ts +2 -2
  18. package/src/models/NotificationSource.ts +2 -2
  19. package/src/models/PatchedNotification.ts +2 -2
  20. package/src/models/{NotificationStatusEnum.ts → StatusEnum.ts} +1 -1
  21. package/src/models/{NotificationSourceTypeEnum.ts → TypeEnum.ts} +1 -1
  22. package/src/services/SearchService.ts +151 -603
  23. package/dist/types/models/AIGeneratedImage.d.ts +0 -13
  24. package/dist/types/models/APITokenCost.d.ts +0 -14
  25. package/dist/types/models/AccessEnum.d.ts +0 -8
  26. package/dist/types/models/AlignMentorBubbleEnum.d.ts +0 -8
  27. package/dist/types/models/AnalyticsOverview.d.ts +0 -7
  28. package/dist/types/models/Answer.d.ts +0 -11
  29. package/dist/types/models/AssumedKnowledge.d.ts +0 -4
  30. package/dist/types/models/AssumedKnowledgeLevel.d.ts +0 -4
  31. package/dist/types/models/AudioToTextRequest.d.ts +0 -3
  32. package/dist/types/models/AudioToTextResponse.d.ts +0 -3
  33. package/dist/types/models/Bot.d.ts +0 -15
  34. package/dist/types/models/BotCommand.d.ts +0 -6
  35. package/dist/types/models/BotCreate.d.ts +0 -12
  36. package/dist/types/models/CallAuthenticationRequest.d.ts +0 -13
  37. package/dist/types/models/CallAuthenticationResponse.d.ts +0 -21
  38. package/dist/types/models/ChatHistory.d.ts +0 -8
  39. package/dist/types/models/ChatHistoryFilterData.d.ts +0 -9
  40. package/dist/types/models/ChatHistoryFilterUser.d.ts +0 -5
  41. package/dist/types/models/ChatHistoryItem.d.ts +0 -5
  42. package/dist/types/models/ChatHistorySessionId.d.ts +0 -3
  43. package/dist/types/models/ChatSessionRequest.d.ts +0 -10
  44. package/dist/types/models/ChatSessionResponse.d.ts +0 -5
  45. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +0 -10
  46. package/dist/types/models/ComponentBlock.d.ts +0 -9
  47. package/dist/types/models/ComponentBlockTypeEnum.d.ts +0 -8
  48. package/dist/types/models/ConversationMessage.d.ts +0 -11
  49. package/dist/types/models/ConversationRating.d.ts +0 -6
  50. package/dist/types/models/ConversationSummary.d.ts +0 -5
  51. package/dist/types/models/ConversationVolume.d.ts +0 -4
  52. package/dist/types/models/Conversations.d.ts +0 -28
  53. package/dist/types/models/Cost.d.ts +0 -3
  54. package/dist/types/models/CostPerTenant.d.ts +0 -6
  55. package/dist/types/models/CourseCreationTask.d.ts +0 -31
  56. package/dist/types/models/CourseCreationTaskFile.d.ts +0 -7
  57. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +0 -16
  58. package/dist/types/models/CredentialRequest.d.ts +0 -14
  59. package/dist/types/models/CrontabSchedule.d.ts +0 -22
  60. package/dist/types/models/CustomInstructionResponse.d.ts +0 -13
  61. package/dist/types/models/DataSet.d.ts +0 -21
  62. package/dist/types/models/DataSetCreate.d.ts +0 -12
  63. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  64. package/dist/types/models/DateRange.d.ts +0 -4
  65. package/dist/types/models/DiscordConfig.d.ts +0 -7
  66. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  67. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  68. package/dist/types/models/EdxCourse.d.ts +0 -11
  69. package/dist/types/models/ElevenlabsCustomVoice.d.ts +0 -4
  70. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +0 -8
  71. package/dist/types/models/EmailPromptDetail.d.ts +0 -13
  72. package/dist/types/models/EmailPromptList.d.ts +0 -11
  73. package/dist/types/models/EmailPromptSummary.d.ts +0 -5
  74. package/dist/types/models/FreeUsageCount.d.ts +0 -3
  75. package/dist/types/models/FullCourse.d.ts +0 -13
  76. package/dist/types/models/GreetingMethodEnum.d.ts +0 -8
  77. package/dist/types/models/GuidedPromptsResponse.d.ts +0 -3
  78. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +0 -8
  79. package/dist/types/models/HeygenMarketingVideoList.d.ts +0 -6
  80. package/dist/types/models/IBLAIPlatformMeta.d.ts +0 -3
  81. package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +0 -6
  82. package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +0 -10
  83. package/dist/types/models/InputQuestion.d.ts +0 -6
  84. package/dist/types/models/IntegrationCredential.d.ts +0 -8
  85. package/dist/types/models/IntialQuestionAnswer.d.ts +0 -3
  86. package/dist/types/models/JobRun.d.ts +0 -11
  87. package/dist/types/models/KindEnum.d.ts +0 -10
  88. package/dist/types/models/LLMCredentialRequest.d.ts +0 -14
  89. package/dist/types/models/LLMCredentialResponse.d.ts +0 -8
  90. package/dist/types/models/LLMModelForTenant.d.ts +0 -6
  91. package/dist/types/models/LLMQuestion.d.ts +0 -15
  92. package/dist/types/models/LLMResponse.d.ts +0 -14
  93. package/dist/types/models/LLMTracesListResponse.d.ts +0 -5
  94. package/dist/types/models/LanguagesView.d.ts +0 -5
  95. package/dist/types/models/LinkCourseRequest.d.ts +0 -3
  96. package/dist/types/models/LinkCourseResponse.d.ts +0 -5
  97. package/dist/types/models/MemoryComponentData.d.ts +0 -5
  98. package/dist/types/models/MemoryComponentMemory.d.ts +0 -4
  99. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +0 -8
  100. package/dist/types/models/MemoryComponentResponse.d.ts +0 -5
  101. package/dist/types/models/MemoryProgress.d.ts +0 -8
  102. package/dist/types/models/MemoryStatusRequestView.d.ts +0 -6
  103. package/dist/types/models/MemoryStatusView.d.ts +0 -6
  104. package/dist/types/models/Mentor.d.ts +0 -75
  105. package/dist/types/models/MentorAudience.d.ts +0 -5
  106. package/dist/types/models/MentorCategory.d.ts +0 -9
  107. package/dist/types/models/MentorCategoryCreate.d.ts +0 -11
  108. package/dist/types/models/MentorCategoryGroup.d.ts +0 -11
  109. package/dist/types/models/MentorCategoryGroupCreate.d.ts +0 -11
  110. package/dist/types/models/MentorCreate.d.ts +0 -74
  111. package/dist/types/models/MentorCustomVoice.d.ts +0 -4
  112. package/dist/types/models/MentorCustomVoiceResponse.d.ts +0 -4
  113. package/dist/types/models/MentorData.d.ts +0 -7
  114. package/dist/types/models/MentorDetailAnalytics.d.ts +0 -6
  115. package/dist/types/models/MentorEval.d.ts +0 -11
  116. package/dist/types/models/MentorEvalQuestion.d.ts +0 -5
  117. package/dist/types/models/MentorEvalQuestionRequest.d.ts +0 -4
  118. package/dist/types/models/MentorEvalReport.d.ts +0 -10
  119. package/dist/types/models/MentorEvalRequest.d.ts +0 -8
  120. package/dist/types/models/MentorFork.d.ts +0 -5
  121. package/dist/types/models/MentorFromTemplateRequest.d.ts +0 -4
  122. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +0 -42
  123. package/dist/types/models/MentorMemorySettingsRequest.d.ts +0 -6
  124. package/dist/types/models/MentorMemorySettingsResponse.d.ts +0 -6
  125. package/dist/types/models/MentorMetadata.d.ts +0 -5
  126. package/dist/types/models/MentorScenario.d.ts +0 -6
  127. package/dist/types/models/MentorScenarioPrompt.d.ts +0 -5
  128. package/dist/types/models/MentorSession.d.ts +0 -4
  129. package/dist/types/models/MentorSettings.d.ts +0 -47
  130. package/dist/types/models/MentorSettingsPublic.d.ts +0 -40
  131. package/dist/types/models/MentorSettingsRequest.d.ts +0 -51
  132. package/dist/types/models/MentorVisibilityEnum.d.ts +0 -10
  133. package/dist/types/models/MentorWizard.d.ts +0 -4
  134. package/dist/types/models/MessageStatistics.d.ts +0 -5
  135. package/dist/types/models/MessageView.d.ts +0 -10
  136. package/dist/types/models/MessageViewRequest.d.ts +0 -7
  137. package/dist/types/models/MessageViewUpdatResponse.d.ts +0 -3
  138. package/dist/types/models/Metadata.d.ts +0 -5
  139. package/dist/types/models/MetricChange.d.ts +0 -4
  140. package/dist/types/models/ModelCost.d.ts +0 -4
  141. package/dist/types/models/ModerationLog.d.ts +0 -11
  142. package/dist/types/models/NoChatMessagesFound.d.ts +0 -3
  143. package/dist/types/models/NullEnum.d.ts +0 -1
  144. package/dist/types/models/PageContent.d.ts +0 -6
  145. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +0 -7
  146. package/dist/types/models/PaginatedConversationsList.d.ts +0 -7
  147. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +0 -7
  148. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +0 -7
  149. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  150. package/dist/types/models/PaginatedEdxCourseList.d.ts +0 -7
  151. package/dist/types/models/PaginatedEmailPromptListList.d.ts +0 -7
  152. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +0 -7
  153. package/dist/types/models/PaginatedJobRunList.d.ts +0 -7
  154. package/dist/types/models/PaginatedMentorList.d.ts +0 -7
  155. package/dist/types/models/PaginatedModerationLogList.d.ts +0 -7
  156. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +0 -7
  157. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +0 -7
  158. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +0 -7
  159. package/dist/types/models/PaginatedSectionList.d.ts +0 -7
  160. package/dist/types/models/PaginatedSubSectionList.d.ts +0 -7
  161. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +0 -7
  162. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  163. package/dist/types/models/PaginatedUnitList.d.ts +0 -7
  164. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +0 -7
  165. package/dist/types/models/PaginatedVoiceList.d.ts +0 -7
  166. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  167. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  168. package/dist/types/models/PatchedConversations.d.ts +0 -28
  169. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +0 -7
  170. package/dist/types/models/PatchedCredentialRequest.d.ts +0 -14
  171. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  172. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  173. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  174. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +0 -14
  175. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +0 -11
  176. package/dist/types/models/PatchedMentorCreate.d.ts +0 -74
  177. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +0 -41
  178. package/dist/types/models/PatchedPlayWrightScript.d.ts +0 -12
  179. package/dist/types/models/PatchedPrompt.d.ts +0 -22
  180. package/dist/types/models/PatchedSection.d.ts +0 -9
  181. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  182. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  183. package/dist/types/models/PatchedSubSection.d.ts +0 -9
  184. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  185. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  186. package/dist/types/models/PatchedUnit.d.ts +0 -11
  187. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  188. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  189. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  190. package/dist/types/models/PeriodicAgent.d.ts +0 -42
  191. package/dist/types/models/PeriodicAgentCreate.d.ts +0 -41
  192. package/dist/types/models/PeriodicAgentLog.d.ts +0 -11
  193. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +0 -10
  194. package/dist/types/models/PeriodicTask.d.ts +0 -21
  195. package/dist/types/models/PieChartData.d.ts +0 -5
  196. package/dist/types/models/PieChartSegment.d.ts +0 -4
  197. package/dist/types/models/PinnedMessageCreate.d.ts +0 -9
  198. package/dist/types/models/PinnedMessageGet.d.ts +0 -7
  199. package/dist/types/models/PinnedMessageRequest.d.ts +0 -6
  200. package/dist/types/models/PlayWrightScript.d.ts +0 -12
  201. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +0 -4
  202. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +0 -4
  203. package/dist/types/models/PreviousAgentStatusEnum.d.ts +0 -12
  204. package/dist/types/models/Prompt.d.ts +0 -22
  205. package/dist/types/models/PromptCategory.d.ts +0 -7
  206. package/dist/types/models/PromptVisibilityEnum.d.ts +0 -10
  207. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  208. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  209. package/dist/types/models/QuestionCardTag.d.ts +0 -8
  210. package/dist/types/models/QuestionRequest.d.ts +0 -15
  211. package/dist/types/models/QuestionResponse.d.ts +0 -10
  212. package/dist/types/models/RatingEnum.d.ts +0 -8
  213. package/dist/types/models/RatingRecord.d.ts +0 -4
  214. package/dist/types/models/RecentlyAccessedMentor.d.ts +0 -8
  215. package/dist/types/models/RecommendCourseBlock.d.ts +0 -3
  216. package/dist/types/models/RecommendCourseResponse.d.ts +0 -3
  217. package/dist/types/models/RelatedText.d.ts +0 -3
  218. package/dist/types/models/RequestDataVariable.d.ts +0 -14
  219. package/dist/types/models/ResourceScrappedData.d.ts +0 -13
  220. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +0 -12
  221. package/dist/types/models/ResponseDataVariable.d.ts +0 -14
  222. package/dist/types/models/RetreiverTrainViewRequest.d.ts +0 -10
  223. package/dist/types/models/RetreiverTrainViewResponse.d.ts +0 -6
  224. package/dist/types/models/RetrieveTask.d.ts +0 -3
  225. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +0 -17
  226. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +0 -30
  227. package/dist/types/models/RetrieverRequestSearch.d.ts +0 -10
  228. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +0 -10
  229. package/dist/types/models/RetrieverResponseSearch.d.ts +0 -7
  230. package/dist/types/models/ReuestDataVariableList.d.ts +0 -4
  231. package/dist/types/models/RunMentorEval.d.ts +0 -3
  232. package/dist/types/models/ScanWebhookRequest.d.ts +0 -6
  233. package/dist/types/models/ScanWebhookResponse.d.ts +0 -3
  234. package/dist/types/models/Section.d.ts +0 -9
  235. package/dist/types/models/SectionWithChildren.d.ts +0 -11
  236. package/dist/types/models/SeedMentorsView.d.ts +0 -3
  237. package/dist/types/models/SentimentSummary.d.ts +0 -4
  238. package/dist/types/models/SessionBrowserScreenshot.d.ts +0 -8
  239. package/dist/types/models/SessionDetail.d.ts +0 -6
  240. package/dist/types/models/SessionMemoryStorage.d.ts +0 -6
  241. package/dist/types/models/ShellLogs.d.ts +0 -3
  242. package/dist/types/models/SlackConfig.d.ts +0 -8
  243. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  244. package/dist/types/models/SlackWebhook.d.ts +0 -6
  245. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +0 -3
  246. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +0 -5
  247. package/dist/types/models/StarMentor.d.ts +0 -7
  248. package/dist/types/models/Status6eeEnum.d.ts +0 -12
  249. package/dist/types/models/Step.d.ts +0 -9
  250. package/dist/types/models/StepStatusEnum.d.ts +0 -10
  251. package/dist/types/models/StudentChatMessage.d.ts +0 -4
  252. package/dist/types/models/StylesView.d.ts +0 -4
  253. package/dist/types/models/SubSection.d.ts +0 -9
  254. package/dist/types/models/SubSectionWithChildren.d.ts +0 -11
  255. package/dist/types/models/TagsView.d.ts +0 -5
  256. package/dist/types/models/TargetSystemEnum.d.ts +0 -8
  257. package/dist/types/models/TaskView.d.ts +0 -3
  258. package/dist/types/models/TeamsConfig.d.ts +0 -7
  259. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  260. package/dist/types/models/TemplateMentor.d.ts +0 -9
  261. package/dist/types/models/TenantMentorTraces.d.ts +0 -6
  262. package/dist/types/models/ThemeEnum.d.ts +0 -8
  263. package/dist/types/models/TonesView.d.ts +0 -4
  264. package/dist/types/models/ToolResponse.d.ts +0 -9
  265. package/dist/types/models/TopicModel.d.ts +0 -3
  266. package/dist/types/models/TopicRecord.d.ts +0 -4
  267. package/dist/types/models/TopicStatistics.d.ts +0 -7
  268. package/dist/types/models/TopicStatisticsResponse.d.ts +0 -6
  269. package/dist/types/models/TopicSummaryView.d.ts +0 -4
  270. package/dist/types/models/TrainChatSessionDocumentView.d.ts +0 -6
  271. package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +0 -6
  272. package/dist/types/models/TrainDocumentViewRequest.d.ts +0 -42
  273. package/dist/types/models/TrainDocumentViewResponse.d.ts +0 -14
  274. package/dist/types/models/Training.d.ts +0 -41
  275. package/dist/types/models/TrainingCreate.d.ts +0 -31
  276. package/dist/types/models/TrainingStatusEnum.d.ts +0 -12
  277. package/dist/types/models/TrendEntry.d.ts +0 -4
  278. package/dist/types/models/TriggerRequest.d.ts +0 -5
  279. package/dist/types/models/TriggerResponse.d.ts +0 -6
  280. package/dist/types/models/TypeC42Enum.d.ts +0 -8
  281. package/dist/types/models/Unit.d.ts +0 -11
  282. package/dist/types/models/UnitWithChildren.d.ts +0 -13
  283. package/dist/types/models/UseMainCreds.d.ts +0 -3
  284. package/dist/types/models/UserAllChatMemoryView.d.ts +0 -7
  285. package/dist/types/models/UserCatalogItemMemoryView.d.ts +0 -14
  286. package/dist/types/models/UserChatByPeriod.d.ts +0 -4
  287. package/dist/types/models/UserChatFeedback.d.ts +0 -14
  288. package/dist/types/models/UserChatFeedbackCount.d.ts +0 -4
  289. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +0 -6
  290. package/dist/types/models/UserChatMemoryStatusView.d.ts +0 -6
  291. package/dist/types/models/UserChatMemoryUpdateView.d.ts +0 -10
  292. package/dist/types/models/UserCountRecord.d.ts +0 -4
  293. package/dist/types/models/UserEdxMemory.d.ts +0 -15
  294. package/dist/types/models/UserMemoryContextRequest.d.ts +0 -13
  295. package/dist/types/models/UserMemoryContextResponse.d.ts +0 -12
  296. package/dist/types/models/UserMetric.d.ts +0 -4
  297. package/dist/types/models/UserMetricsResponse.d.ts +0 -7
  298. package/dist/types/models/UserSentimentCountView.d.ts +0 -4
  299. package/dist/types/models/UserTrendByPeriod.d.ts +0 -5
  300. package/dist/types/models/VectorResult.d.ts +0 -8
  301. package/dist/types/models/Voice.d.ts +0 -9
  302. package/dist/types/models/VoiceProviderEnum.d.ts +0 -10
  303. package/dist/types/models/WebResource.d.ts +0 -9
  304. package/dist/types/models/WebResourceCard.d.ts +0 -7
  305. package/dist/types/models/WebResourcesQuery.d.ts +0 -3
  306. package/dist/types/models/WebexConfig.d.ts +0 -10
  307. package/dist/types/models/WebexWebhook.d.ts +0 -4
  308. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  309. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  310. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  311. package/dist/types/services/AiAccountService.d.ts +0 -294
  312. package/dist/types/services/AiAnalyticsService.d.ts +0 -1056
  313. package/dist/types/services/AiBotService.d.ts +0 -486
  314. package/dist/types/services/AiFinetuningService.d.ts +0 -162
  315. package/dist/types/services/AiIndexService.d.ts +0 -344
  316. package/dist/types/services/AiMarketingService.d.ts +0 -34
  317. package/dist/types/services/AiMentorService.d.ts +0 -4096
  318. package/dist/types/services/AiPromptService.d.ts +0 -879
  319. package/src/models/AIGeneratedImage.ts +0 -18
  320. package/src/models/APITokenCost.ts +0 -19
  321. package/src/models/AccessEnum.ts +0 -12
  322. package/src/models/AlignMentorBubbleEnum.ts +0 -12
  323. package/src/models/AnalyticsOverview.ts +0 -12
  324. package/src/models/Answer.ts +0 -16
  325. package/src/models/AssumedKnowledge.ts +0 -9
  326. package/src/models/AssumedKnowledgeLevel.ts +0 -9
  327. package/src/models/AudioToTextRequest.ts +0 -8
  328. package/src/models/AudioToTextResponse.ts +0 -8
  329. package/src/models/Bot.ts +0 -20
  330. package/src/models/BotCommand.ts +0 -11
  331. package/src/models/BotCreate.ts +0 -17
  332. package/src/models/CallAuthenticationRequest.ts +0 -18
  333. package/src/models/CallAuthenticationResponse.ts +0 -26
  334. package/src/models/ChatHistory.ts +0 -13
  335. package/src/models/ChatHistoryFilterData.ts +0 -14
  336. package/src/models/ChatHistoryFilterUser.ts +0 -10
  337. package/src/models/ChatHistoryItem.ts +0 -10
  338. package/src/models/ChatHistorySessionId.ts +0 -8
  339. package/src/models/ChatSessionRequest.ts +0 -15
  340. package/src/models/ChatSessionResponse.ts +0 -10
  341. package/src/models/CheckDocumentTrainingStatus.ts +0 -15
  342. package/src/models/ComponentBlock.ts +0 -14
  343. package/src/models/ComponentBlockTypeEnum.ts +0 -12
  344. package/src/models/ConversationMessage.ts +0 -16
  345. package/src/models/ConversationRating.ts +0 -11
  346. package/src/models/ConversationSummary.ts +0 -10
  347. package/src/models/ConversationVolume.ts +0 -9
  348. package/src/models/Conversations.ts +0 -33
  349. package/src/models/Cost.ts +0 -8
  350. package/src/models/CostPerTenant.ts +0 -11
  351. package/src/models/CourseCreationTask.ts +0 -36
  352. package/src/models/CourseCreationTaskFile.ts +0 -12
  353. package/src/models/CourseCreationTaskStatusEnum.ts +0 -20
  354. package/src/models/CredentialRequest.ts +0 -19
  355. package/src/models/CrontabSchedule.ts +0 -27
  356. package/src/models/CustomInstructionResponse.ts +0 -18
  357. package/src/models/DataSet.ts +0 -26
  358. package/src/models/DataSetCreate.ts +0 -17
  359. package/src/models/DataSetStatusEnum.ts +0 -16
  360. package/src/models/DateRange.ts +0 -9
  361. package/src/models/DiscordConfig.ts +0 -12
  362. package/src/models/DiscordUserConfig.ts +0 -15
  363. package/src/models/DiscordWebhook.ts +0 -11
  364. package/src/models/EdxCourse.ts +0 -16
  365. package/src/models/ElevenlabsCustomVoice.ts +0 -9
  366. package/src/models/ElevenlabsCustomVoiceResponse.ts +0 -13
  367. package/src/models/EmailPromptDetail.ts +0 -18
  368. package/src/models/EmailPromptList.ts +0 -16
  369. package/src/models/EmailPromptSummary.ts +0 -10
  370. package/src/models/FreeUsageCount.ts +0 -8
  371. package/src/models/FullCourse.ts +0 -18
  372. package/src/models/GreetingMethodEnum.ts +0 -12
  373. package/src/models/GuidedPromptsResponse.ts +0 -8
  374. package/src/models/HeygenMarketingVideoDetail.ts +0 -13
  375. package/src/models/HeygenMarketingVideoList.ts +0 -11
  376. package/src/models/IBLAIPlatformMeta.ts +0 -8
  377. package/src/models/IBLAIPlatformMetaRequest.ts +0 -11
  378. package/src/models/IBLAIPlatformMetaUpdateRequest.ts +0 -15
  379. package/src/models/InputQuestion.ts +0 -11
  380. package/src/models/IntegrationCredential.ts +0 -13
  381. package/src/models/IntialQuestionAnswer.ts +0 -8
  382. package/src/models/JobRun.ts +0 -16
  383. package/src/models/KindEnum.ts +0 -14
  384. package/src/models/LLMCredentialRequest.ts +0 -19
  385. package/src/models/LLMCredentialResponse.ts +0 -13
  386. package/src/models/LLMModelForTenant.ts +0 -11
  387. package/src/models/LLMQuestion.ts +0 -20
  388. package/src/models/LLMResponse.ts +0 -19
  389. package/src/models/LLMTracesListResponse.ts +0 -10
  390. package/src/models/LanguagesView.ts +0 -10
  391. package/src/models/LinkCourseRequest.ts +0 -8
  392. package/src/models/LinkCourseResponse.ts +0 -10
  393. package/src/models/MemoryComponentData.ts +0 -10
  394. package/src/models/MemoryComponentMemory.ts +0 -9
  395. package/src/models/MemoryComponentMemoryDetail.ts +0 -13
  396. package/src/models/MemoryComponentResponse.ts +0 -10
  397. package/src/models/MemoryProgress.ts +0 -13
  398. package/src/models/MemoryStatusRequestView.ts +0 -11
  399. package/src/models/MemoryStatusView.ts +0 -11
  400. package/src/models/Mentor.ts +0 -80
  401. package/src/models/MentorAudience.ts +0 -10
  402. package/src/models/MentorCategory.ts +0 -14
  403. package/src/models/MentorCategoryCreate.ts +0 -16
  404. package/src/models/MentorCategoryGroup.ts +0 -16
  405. package/src/models/MentorCategoryGroupCreate.ts +0 -16
  406. package/src/models/MentorCreate.ts +0 -79
  407. package/src/models/MentorCustomVoice.ts +0 -9
  408. package/src/models/MentorCustomVoiceResponse.ts +0 -9
  409. package/src/models/MentorData.ts +0 -12
  410. package/src/models/MentorDetailAnalytics.ts +0 -11
  411. package/src/models/MentorEval.ts +0 -16
  412. package/src/models/MentorEvalQuestion.ts +0 -10
  413. package/src/models/MentorEvalQuestionRequest.ts +0 -9
  414. package/src/models/MentorEvalReport.ts +0 -15
  415. package/src/models/MentorEvalRequest.ts +0 -13
  416. package/src/models/MentorFork.ts +0 -10
  417. package/src/models/MentorFromTemplateRequest.ts +0 -9
  418. package/src/models/MentorFromTemplateWithSettingRequest.ts +0 -47
  419. package/src/models/MentorMemorySettingsRequest.ts +0 -11
  420. package/src/models/MentorMemorySettingsResponse.ts +0 -11
  421. package/src/models/MentorMetadata.ts +0 -10
  422. package/src/models/MentorScenario.ts +0 -11
  423. package/src/models/MentorScenarioPrompt.ts +0 -10
  424. package/src/models/MentorSession.ts +0 -9
  425. package/src/models/MentorSettings.ts +0 -52
  426. package/src/models/MentorSettingsPublic.ts +0 -45
  427. package/src/models/MentorSettingsRequest.ts +0 -56
  428. package/src/models/MentorVisibilityEnum.ts +0 -14
  429. package/src/models/MentorWizard.ts +0 -9
  430. package/src/models/MessageStatistics.ts +0 -10
  431. package/src/models/MessageView.ts +0 -15
  432. package/src/models/MessageViewRequest.ts +0 -12
  433. package/src/models/MessageViewUpdatResponse.ts +0 -8
  434. package/src/models/Metadata.ts +0 -10
  435. package/src/models/MetricChange.ts +0 -9
  436. package/src/models/ModelCost.ts +0 -9
  437. package/src/models/ModerationLog.ts +0 -16
  438. package/src/models/NoChatMessagesFound.ts +0 -8
  439. package/src/models/NullEnum.ts +0 -7
  440. package/src/models/PageContent.ts +0 -11
  441. package/src/models/PaginatedAIGeneratedImageList.ts +0 -12
  442. package/src/models/PaginatedConversationsList.ts +0 -12
  443. package/src/models/PaginatedCourseCreationTaskFileList.ts +0 -12
  444. package/src/models/PaginatedCourseCreationTaskList.ts +0 -12
  445. package/src/models/PaginatedDataSetList.ts +0 -12
  446. package/src/models/PaginatedEdxCourseList.ts +0 -12
  447. package/src/models/PaginatedEmailPromptListList.ts +0 -12
  448. package/src/models/PaginatedHeygenMarketingVideoListList.ts +0 -12
  449. package/src/models/PaginatedJobRunList.ts +0 -12
  450. package/src/models/PaginatedMentorList.ts +0 -12
  451. package/src/models/PaginatedModerationLogList.ts +0 -12
  452. package/src/models/PaginatedPeriodicAgentList.ts +0 -12
  453. package/src/models/PaginatedPeriodicAgentLogList.ts +0 -12
  454. package/src/models/PaginatedPlayWrightScriptList.ts +0 -12
  455. package/src/models/PaginatedSectionList.ts +0 -12
  456. package/src/models/PaginatedSubSectionList.ts +0 -12
  457. package/src/models/PaginatedTopicStatisticsResponse.ts +0 -12
  458. package/src/models/PaginatedTrainingList.ts +0 -12
  459. package/src/models/PaginatedUnitList.ts +0 -12
  460. package/src/models/PaginatedUserEdxMemoryList.ts +0 -12
  461. package/src/models/PaginatedVoiceList.ts +0 -12
  462. package/src/models/PatchedBotCommand.ts +0 -11
  463. package/src/models/PatchedBotCreate.ts +0 -17
  464. package/src/models/PatchedConversations.ts +0 -33
  465. package/src/models/PatchedCourseCreationTaskFile.ts +0 -12
  466. package/src/models/PatchedCredentialRequest.ts +0 -19
  467. package/src/models/PatchedDataSet.ts +0 -26
  468. package/src/models/PatchedDiscordConfig.ts +0 -12
  469. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  470. package/src/models/PatchedLLMCredentialRequest.ts +0 -19
  471. package/src/models/PatchedMentorCategoryGroupCreate.ts +0 -16
  472. package/src/models/PatchedMentorCreate.ts +0 -79
  473. package/src/models/PatchedPeriodicAgentCreate.ts +0 -46
  474. package/src/models/PatchedPlayWrightScript.ts +0 -17
  475. package/src/models/PatchedPrompt.ts +0 -27
  476. package/src/models/PatchedSection.ts +0 -14
  477. package/src/models/PatchedSlackConfig.ts +0 -13
  478. package/src/models/PatchedSlackUserConfig.ts +0 -22
  479. package/src/models/PatchedSubSection.ts +0 -14
  480. package/src/models/PatchedTeamsConfig.ts +0 -12
  481. package/src/models/PatchedTrainingCreate.ts +0 -36
  482. package/src/models/PatchedUnit.ts +0 -16
  483. package/src/models/PatchedWebexConfig.ts +0 -15
  484. package/src/models/PatchedWhatsappConfig.ts +0 -16
  485. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  486. package/src/models/PeriodicAgent.ts +0 -47
  487. package/src/models/PeriodicAgentCreate.ts +0 -46
  488. package/src/models/PeriodicAgentLog.ts +0 -16
  489. package/src/models/PeriodicAgentLogStatusEnum.ts +0 -14
  490. package/src/models/PeriodicTask.ts +0 -26
  491. package/src/models/PieChartData.ts +0 -10
  492. package/src/models/PieChartSegment.ts +0 -9
  493. package/src/models/PinnedMessageCreate.ts +0 -14
  494. package/src/models/PinnedMessageGet.ts +0 -12
  495. package/src/models/PinnedMessageRequest.ts +0 -11
  496. package/src/models/PlayWrightScript.ts +0 -17
  497. package/src/models/PredictiveAnalyticsRequest.ts +0 -9
  498. package/src/models/PredictiveAnalyticsResponse.ts +0 -9
  499. package/src/models/PreviousAgentStatusEnum.ts +0 -16
  500. package/src/models/Prompt.ts +0 -27
  501. package/src/models/PromptCategory.ts +0 -12
  502. package/src/models/PromptVisibilityEnum.ts +0 -14
  503. package/src/models/Provider05cEnum.ts +0 -18
  504. package/src/models/Provider63aEnum.ts +0 -10
  505. package/src/models/QuestionCardTag.ts +0 -13
  506. package/src/models/QuestionRequest.ts +0 -20
  507. package/src/models/QuestionResponse.ts +0 -15
  508. package/src/models/RatingEnum.ts +0 -12
  509. package/src/models/RatingRecord.ts +0 -9
  510. package/src/models/RecentlyAccessedMentor.ts +0 -13
  511. package/src/models/RecommendCourseBlock.ts +0 -8
  512. package/src/models/RecommendCourseResponse.ts +0 -8
  513. package/src/models/RelatedText.ts +0 -8
  514. package/src/models/RequestDataVariable.ts +0 -19
  515. package/src/models/ResourceScrappedData.ts +0 -18
  516. package/src/models/ResourceScrappedDataStatusEnum.ts +0 -16
  517. package/src/models/ResponseDataVariable.ts +0 -19
  518. package/src/models/RetreiverTrainViewRequest.ts +0 -15
  519. package/src/models/RetreiverTrainViewResponse.ts +0 -11
  520. package/src/models/RetrieveTask.ts +0 -8
  521. package/src/models/RetrieverDocumentEmbedding.ts +0 -22
  522. package/src/models/RetrieverDocumentEmbeddingRequest.ts +0 -35
  523. package/src/models/RetrieverRequestSearch.ts +0 -15
  524. package/src/models/RetrieverRequestSearchDocument.ts +0 -15
  525. package/src/models/RetrieverResponseSearch.ts +0 -12
  526. package/src/models/ReuestDataVariableList.ts +0 -9
  527. package/src/models/RunMentorEval.ts +0 -8
  528. package/src/models/ScanWebhookRequest.ts +0 -11
  529. package/src/models/ScanWebhookResponse.ts +0 -8
  530. package/src/models/Section.ts +0 -14
  531. package/src/models/SectionWithChildren.ts +0 -16
  532. package/src/models/SeedMentorsView.ts +0 -8
  533. package/src/models/SentimentSummary.ts +0 -9
  534. package/src/models/SessionBrowserScreenshot.ts +0 -13
  535. package/src/models/SessionDetail.ts +0 -11
  536. package/src/models/SessionMemoryStorage.ts +0 -11
  537. package/src/models/ShellLogs.ts +0 -8
  538. package/src/models/SlackConfig.ts +0 -13
  539. package/src/models/SlackUserConfig.ts +0 -22
  540. package/src/models/SlackWebhook.ts +0 -11
  541. package/src/models/SpacedRepetitionLearningPath.ts +0 -8
  542. package/src/models/SpacedRepetitionQuestionStats.ts +0 -10
  543. package/src/models/StarMentor.ts +0 -12
  544. package/src/models/Status6eeEnum.ts +0 -16
  545. package/src/models/Step.ts +0 -14
  546. package/src/models/StepStatusEnum.ts +0 -14
  547. package/src/models/StudentChatMessage.ts +0 -9
  548. package/src/models/StylesView.ts +0 -9
  549. package/src/models/SubSection.ts +0 -14
  550. package/src/models/SubSectionWithChildren.ts +0 -16
  551. package/src/models/TagsView.ts +0 -10
  552. package/src/models/TargetSystemEnum.ts +0 -12
  553. package/src/models/TaskView.ts +0 -8
  554. package/src/models/TeamsConfig.ts +0 -12
  555. package/src/models/TeamsWebhook.ts +0 -22
  556. package/src/models/TemplateMentor.ts +0 -14
  557. package/src/models/TenantMentorTraces.ts +0 -11
  558. package/src/models/ThemeEnum.ts +0 -12
  559. package/src/models/TonesView.ts +0 -9
  560. package/src/models/ToolResponse.ts +0 -14
  561. package/src/models/TopicModel.ts +0 -8
  562. package/src/models/TopicRecord.ts +0 -9
  563. package/src/models/TopicStatistics.ts +0 -12
  564. package/src/models/TopicStatisticsResponse.ts +0 -11
  565. package/src/models/TopicSummaryView.ts +0 -9
  566. package/src/models/TrainChatSessionDocumentView.ts +0 -11
  567. package/src/models/TrainChatSessionDocumentViewRequest.ts +0 -11
  568. package/src/models/TrainDocumentViewRequest.ts +0 -47
  569. package/src/models/TrainDocumentViewResponse.ts +0 -19
  570. package/src/models/Training.ts +0 -46
  571. package/src/models/TrainingCreate.ts +0 -36
  572. package/src/models/TrainingStatusEnum.ts +0 -16
  573. package/src/models/TrendEntry.ts +0 -9
  574. package/src/models/TriggerRequest.ts +0 -10
  575. package/src/models/TriggerResponse.ts +0 -11
  576. package/src/models/TypeC42Enum.ts +0 -12
  577. package/src/models/Unit.ts +0 -16
  578. package/src/models/UnitWithChildren.ts +0 -18
  579. package/src/models/UseMainCreds.ts +0 -8
  580. package/src/models/UserAllChatMemoryView.ts +0 -12
  581. package/src/models/UserCatalogItemMemoryView.ts +0 -19
  582. package/src/models/UserChatByPeriod.ts +0 -9
  583. package/src/models/UserChatFeedback.ts +0 -19
  584. package/src/models/UserChatFeedbackCount.ts +0 -9
  585. package/src/models/UserChatMemoryStatusRequestView.ts +0 -11
  586. package/src/models/UserChatMemoryStatusView.ts +0 -11
  587. package/src/models/UserChatMemoryUpdateView.ts +0 -15
  588. package/src/models/UserCountRecord.ts +0 -9
  589. package/src/models/UserEdxMemory.ts +0 -20
  590. package/src/models/UserMemoryContextRequest.ts +0 -18
  591. package/src/models/UserMemoryContextResponse.ts +0 -17
  592. package/src/models/UserMetric.ts +0 -9
  593. package/src/models/UserMetricsResponse.ts +0 -12
  594. package/src/models/UserSentimentCountView.ts +0 -9
  595. package/src/models/UserTrendByPeriod.ts +0 -10
  596. package/src/models/VectorResult.ts +0 -13
  597. package/src/models/Voice.ts +0 -14
  598. package/src/models/VoiceProviderEnum.ts +0 -14
  599. package/src/models/WebResource.ts +0 -14
  600. package/src/models/WebResourceCard.ts +0 -12
  601. package/src/models/WebResourcesQuery.ts +0 -8
  602. package/src/models/WebexConfig.ts +0 -15
  603. package/src/models/WebexWebhook.ts +0 -9
  604. package/src/models/WhatAppWebHook.ts +0 -8
  605. package/src/models/WhatsappConfig.ts +0 -16
  606. package/src/models/WhatsappUserConfig.ts +0 -15
  607. package/src/services/AiAccountService.ts +0 -479
  608. package/src/services/AiAnalyticsService.ts +0 -1923
  609. package/src/services/AiBotService.ts +0 -1174
  610. package/src/services/AiFinetuningService.ts +0 -402
  611. package/src/services/AiIndexService.ts +0 -598
  612. package/src/services/AiMarketingService.ts +0 -87
  613. package/src/services/AiMentorService.ts +0 -7678
  614. package/src/services/AiPromptService.ts +0 -1676
@@ -6,68 +6,6 @@ import type { CancelablePromise } from '../core/CancelablePromise';
6
6
  import { OpenAPI } from '../core/OpenAPI';
7
7
  import { request as __request } from '../core/request';
8
8
  export class SearchService {
9
- /**
10
- * Legacy endpoint for backward compatible mentor search
11
- * @param audience Filter by target audience
12
- * @param category Filter by mentor category
13
- * @param createdBy Filter mentors created by specific user
14
- * @param filterFacet If present, return only facets without results
15
- * @param id Retrieve a specific mentor by ID
16
- * @param limit Number of results per page
17
- * @param llm Filter by language model type
18
- * @param offset Starting position for pagination
19
- * @param orderBy Field to sort results by ('created_at', 'recently_accessed_at')
20
- * @param orderDirection Sort direction ('asc' or 'desc')
21
- * @param page Page number (1-based, used with page_size)
22
- * @param pageSize Number of results per page
23
- * @param query Search term to filter mentors by name or description
24
- * @param tags Filter by tags
25
- * @param tenant Filter by tenant/organization
26
- * @param uniqueId Retrieve a specific mentor by UUID
27
- * @returns any
28
- * @throws ApiError
29
- */
30
- public static searchAiSearchRetrieve(
31
- audience?: Array<string>,
32
- category?: Array<string>,
33
- createdBy?: string,
34
- filterFacet: boolean = false,
35
- id?: number,
36
- limit: number = 12,
37
- llm?: Array<string>,
38
- offset?: number,
39
- orderBy?: string,
40
- orderDirection: string = 'desc',
41
- page?: number,
42
- pageSize?: number,
43
- query?: string,
44
- tags?: Array<string>,
45
- tenant?: string,
46
- uniqueId?: string,
47
- ): CancelablePromise<Record<string, any>> {
48
- return __request(OpenAPI, {
49
- method: 'GET',
50
- url: '/api/search/ai-search/',
51
- query: {
52
- 'audience': audience,
53
- 'category': category,
54
- 'created_by': createdBy,
55
- 'filter_facet': filterFacet,
56
- 'id': id,
57
- 'limit': limit,
58
- 'llm': llm,
59
- 'offset': offset,
60
- 'order_by': orderBy,
61
- 'order_direction': orderDirection,
62
- 'page': page,
63
- 'page_size': pageSize,
64
- 'query': query,
65
- 'tags': tags,
66
- 'tenant': tenant,
67
- 'unique_id': uniqueId,
68
- },
69
- });
70
- }
71
9
  /**
72
10
  * Search and filter content across the learning catalog
73
11
  * @param allowSkillSearch Enable skill-based search
@@ -170,615 +108,225 @@ export class SearchService {
170
108
  });
171
109
  }
172
110
  /**
173
- * Get AI mentors based on search criteria
174
- * @param audience Filter by target audience
175
- * @param category Filter by mentor category
176
- * @param createdBy Filter mentors created by specific user
177
- * @param id Retrieve a specific mentor by ID
111
+ * Get personalized content for a specific user
112
+ * @param username
113
+ * @param allowSkillSearch Enable skill-based search
114
+ * @param alphabetical Sort alphabetically by name
115
+ * @param certificate Filter by certificate type
116
+ * @param content Content types to include in results
117
+ * @param courseId Retrieve a specific course by ID
118
+ * @param duration Filter by course duration range
119
+ * @param language Filter by content language
120
+ * @param level Filter by difficulty level
178
121
  * @param limit Number of results per page
179
- * @param llm Filter by language model type
180
122
  * @param offset Starting position for pagination
181
- * @param orderBy Field to sort results by ('created_at', 'recently_accessed_at')
182
- * @param orderDirection Sort direction ('asc' or 'desc')
183
- * @param query Search term to filter mentors by name or description
123
+ * @param orderAscending Sort direction
124
+ * @param orderBy Field to sort results by
125
+ * @param pathwayId Retrieve a specific pathway by ID
126
+ * @param price Filter by price/audit status
127
+ * @param programId Retrieve a specific program by ID
128
+ * @param programType Filter by program type
129
+ * @param promotion Filter by promotion status
130
+ * @param query Search term to filter content by name or description
131
+ * @param recommended Show only recommended content
132
+ * @param resourceId Retrieve a specific resource by ID
133
+ * @param resourceType Filter by resource type
134
+ * @param returnFacet Include facet data in response
135
+ * @param returnItems Include items in programs/pathways
136
+ * @param roleId Retrieve a specific role by ID
137
+ * @param selfPaced Filter by course format
138
+ * @param skillId Retrieve a specific skill by ID
139
+ * @param skills Filter by skills
140
+ * @param subject Filter by subject areas
184
141
  * @param tags Filter by tags
185
142
  * @param tenant Filter by tenant/organization
186
- * @param uniqueId Retrieve a specific mentor by UUID
143
+ * @param topics Filter by topic areas
144
+ * @param updateFacet Force facet update
187
145
  * @returns any
188
146
  * @throws ApiError
189
147
  */
190
- public static searchMentorsRetrieve(
191
- audience?: Array<string>,
192
- category?: Array<string>,
193
- createdBy?: string,
194
- id?: number,
148
+ public static searchPersonalizedCatalogRetrieve(
149
+ username: string,
150
+ allowSkillSearch: boolean = false,
151
+ alphabetical: boolean = false,
152
+ certificate?: Array<string>,
153
+ content?: Array<string>,
154
+ courseId?: string,
155
+ duration?: Array<string>,
156
+ language?: Array<string>,
157
+ level?: Array<string>,
195
158
  limit: number = 12,
196
- llm?: Array<string>,
197
159
  offset?: number,
160
+ orderAscending: boolean = false,
198
161
  orderBy?: string,
199
- orderDirection: string = 'desc',
162
+ pathwayId?: string,
163
+ price?: string,
164
+ programId?: string,
165
+ programType?: Array<string>,
166
+ promotion?: Array<string>,
200
167
  query?: string,
168
+ recommended: boolean = false,
169
+ resourceId?: string,
170
+ resourceType?: Array<string>,
171
+ returnFacet: boolean = true,
172
+ returnItems: boolean = false,
173
+ roleId?: string,
174
+ selfPaced?: Array<string>,
175
+ skillId?: string,
176
+ skills?: Array<string>,
177
+ subject?: Array<string>,
201
178
  tags?: Array<string>,
202
- tenant?: string,
203
- uniqueId?: string,
179
+ tenant?: Array<string>,
180
+ topics?: Array<string>,
181
+ updateFacet?: string,
204
182
  ): CancelablePromise<Record<string, any>> {
205
183
  return __request(OpenAPI, {
206
184
  method: 'GET',
207
- url: '/api/search/mentors/',
185
+ url: '/api/search/personalized-catalog/{username}/',
186
+ path: {
187
+ 'username': username,
188
+ },
208
189
  query: {
209
- 'audience': audience,
210
- 'category': category,
211
- 'created_by': createdBy,
212
- 'id': id,
190
+ 'allow_skill_search': allowSkillSearch,
191
+ 'alphabetical': alphabetical,
192
+ 'certificate': certificate,
193
+ 'content': content,
194
+ 'course_id': courseId,
195
+ 'duration': duration,
196
+ 'language': language,
197
+ 'level': level,
213
198
  'limit': limit,
214
- 'llm': llm,
215
199
  'offset': offset,
200
+ 'order_ascending': orderAscending,
216
201
  'order_by': orderBy,
217
- 'order_direction': orderDirection,
202
+ 'pathway_id': pathwayId,
203
+ 'price': price,
204
+ 'program_id': programId,
205
+ 'program_type': programType,
206
+ 'promotion': promotion,
218
207
  'query': query,
208
+ 'recommended': recommended,
209
+ 'resource_id': resourceId,
210
+ 'resource_type': resourceType,
211
+ 'return_facet': returnFacet,
212
+ 'return_items': returnItems,
213
+ 'role_id': roleId,
214
+ 'self_paced': selfPaced,
215
+ 'skill_id': skillId,
216
+ 'skills': skills,
217
+ 'subject': subject,
219
218
  'tags': tags,
220
219
  'tenant': tenant,
221
- 'unique_id': uniqueId,
220
+ 'topics': topics,
221
+ 'update_facet': updateFacet,
222
222
  },
223
223
  });
224
224
  }
225
225
  /**
226
- * Search and filter documents associated with a specific mentor.
226
+ * Search and filter users within a specific organization/tenant.
227
227
  *
228
- * This endpoint allows searching and filtering documents that are linked to a
229
- * particular mentor, with support for pagination, sorting, and faceted filtering.
228
+ * This endpoint provides a search interface for discovering users within an organization,
229
+ * with support for filtering by departments, pagination, and faceted filtering.
230
230
  *
231
231
  * Path Parameters:
232
- * mentor_unique_id (uuid): The unique identifier of the mentor
232
+ * org (str): The organization/tenant identifier
233
+ * username (str): The username of the user making the request
233
234
  *
234
235
  * Query Parameters:
235
- * query (str, optional): Search term to filter documents by name or content
236
- * document_type (str, optional): Filter by document type (e.g., 'pdf', 'text')
237
- * access (str, optional): Filter by access level (e.g., 'public', 'private')
238
- * training_status (str, optional): Filter by training status (e.g., 'trained', 'pending')
239
- * platform_key (str, optional): Filter by platform key
240
- * order_by (str, optional): Field to sort results by ('date_created', 'last_modified', 'document_name')
241
- * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
242
- * limit (int, optional): Number of results per page (default: 12, max: 100)
236
+ * # Search parameters
237
+ * query (str, optional): Search term to filter users by name, username, or email
238
+ *
239
+ * # Department filtering
240
+ * department_mode (bool, optional): Enable department-based filtering (default: false)
241
+ * user_department (bool, optional): Legacy parameter for department_mode (default: false)
242
+ * department (list, optional): Filter by specific departments
243
+ *
244
+ * # Additional filters
245
+ * role (list, optional): Filter by user role
246
+ * status (list, optional): Filter by user status (active, inactive)
247
+ * joined_date (list, optional): Filter by join date range
248
+ * last_login (list, optional): Filter by last login date range
249
+ *
250
+ * # Pagination
251
+ * limit (int, optional): Number of results per page (default: 10)
243
252
  * offset (int, optional): Starting position for pagination
244
253
  *
245
254
  * Returns:
246
255
  * A JSON response containing:
256
+ * ```
247
257
  * {
248
258
  * "results": [
249
259
  * {
250
- * "id": 789,
251
- * "document_name": "Introduction to Algorithms.pdf",
252
- * "document_type": "pdf",
253
- * "access": "public",
254
- * "training_status": "trained",
255
- * "date_created": "2023-03-15T10:30:00Z",
256
- * "last_modified": "2023-04-20T14:45:00Z",
257
- * "url": "https://example.com/documents/intro-algorithms.pdf",
260
+ * "id": 123,
261
+ * "username": "john.doe",
262
+ * "email": "john.doe@example.com",
263
+ * "first_name": "John",
264
+ * "last_name": "Doe",
265
+ * "full_name": "John Doe",
266
+ * "profile_image": "https://example.com/profiles/john-doe.jpg",
267
+ * "role": "Student",
268
+ * "departments": ["Computer Science", "Data Science"],
269
+ * "status": "active",
270
+ * "joined_date": "2023-01-15T12:00:00Z",
271
+ * "last_login": "2023-06-20T15:30:00Z",
258
272
  * "metadata": {
259
- * "page_count": 45,
260
- * "author": "John Smith",
261
- * "keywords": ["algorithms", "computer science", "data structures"],
262
- * "description": "Comprehensive introduction to fundamental algorithms"
273
+ * "location": "New York",
274
+ * "title": "Software Engineer",
275
+ * "bio": "Experienced software engineer with a passion for education"
263
276
  * }
264
277
  * },
265
- * // Additional document objects...
278
+ * // Additional user objects...
266
279
  * ],
267
- * "count": 25,
268
- * "next": "https://api.example.com/api/search/mentors/550e8400-e29b-41d4-a716-446655440000/documents/?limit=12&offset=12",
280
+ * "count": 50,
281
+ * "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
269
282
  * "previous": null,
270
283
  * "current_page": 1,
271
- * "total_pages": 3,
284
+ * "total_pages": 5,
272
285
  * "facets": {
273
- * "document_type": [
274
- * {"key": "pdf", "doc_count": 15},
275
- * {"key": "text", "doc_count": 5},
276
- * {"key": "docx", "doc_count": 5}
286
+ * "role": [
287
+ * {"key": "Student", "doc_count": 30},
288
+ * {"key": "Instructor", "doc_count": 15},
289
+ * {"key": "Admin", "doc_count": 5}
277
290
  * ],
278
- * "access": [
279
- * {"key": "public", "doc_count": 20},
280
- * {"key": "private", "doc_count": 5}
291
+ * "department": [
292
+ * {"key": "Computer Science", "doc_count": 20},
293
+ * {"key": "Data Science", "doc_count": 15},
294
+ * {"key": "Business", "doc_count": 10},
295
+ * {"key": "Engineering", "doc_count": 5}
281
296
  * ],
282
- * "training_status": [
283
- * {"key": "trained", "doc_count": 18},
284
- * {"key": "pending", "doc_count": 5},
285
- * {"key": "failed", "doc_count": 2}
297
+ * "status": [
298
+ * {"key": "active", "doc_count": 45},
299
+ * {"key": "inactive", "doc_count": 5}
286
300
  * ]
287
301
  * }
288
302
  * }
289
- *
290
- * Error Responses:
291
- * 400 Bad Request: If the request parameters are invalid
292
- * 404 Not Found: If the mentor doesn't exist
293
- * 500 Internal Server Error: If an unexpected error occurs during processing
294
- *
295
- * Access Control:
296
- * - Requires platform membership
297
- * - Only documents associated with the specified mentor are returned
298
- * - Access level filtering respects user permissions
299
- * @param mentorUniqueId
300
- * @returns any No response body
301
- * @throws ApiError
302
- */
303
- public static searchMentorsDocumentsRetrieve(
304
- mentorUniqueId: string,
305
- ): CancelablePromise<any> {
306
- return __request(OpenAPI, {
307
- method: 'GET',
308
- url: '/api/search/mentors/{mentor_unique_id}/documents/',
309
- path: {
310
- 'mentor_unique_id': mentorUniqueId,
311
- },
312
- });
313
- }
314
- /**
315
- * Get AI mentors for a specific tenant and user
316
- * @param org
317
- * @param username
318
- * @param audience Filter by target audience
319
- * @param category Filter by mentor category
320
- * @param createdBy Filter mentors created by specific user
321
- * @param id Retrieve a specific mentor by ID
322
- * @param limit Number of results per page
323
- * @param llm Filter by language model type
324
- * @param offset Starting position for pagination
325
- * @param orderBy Field to sort results by ('created_at', 'recently_accessed_at')
326
- * @param orderDirection Sort direction ('asc' or 'desc')
327
- * @param query Search term to filter mentors by name or description
328
- * @param tags Filter by tags
329
- * @param tenant Filter by tenant/organization
330
- * @param uniqueId Retrieve a specific mentor by UUID
331
- * @returns any
332
- * @throws ApiError
333
- */
334
- public static searchOrgsUsersMentorsRetrieve(
335
- org: string,
336
- username: string,
337
- audience?: Array<string>,
338
- category?: Array<string>,
339
- createdBy?: string,
340
- id?: number,
341
- limit: number = 12,
342
- llm?: Array<string>,
343
- offset?: number,
344
- orderBy?: string,
345
- orderDirection: string = 'desc',
346
- query?: string,
347
- tags?: Array<string>,
348
- tenant?: string,
349
- uniqueId?: string,
350
- ): CancelablePromise<Record<string, any>> {
351
- return __request(OpenAPI, {
352
- method: 'GET',
353
- url: '/api/search/orgs/{org}/users/{username}/mentors/',
354
- path: {
355
- 'org': org,
356
- 'username': username,
357
- },
358
- query: {
359
- 'audience': audience,
360
- 'category': category,
361
- 'created_by': createdBy,
362
- 'id': id,
363
- 'limit': limit,
364
- 'llm': llm,
365
- 'offset': offset,
366
- 'order_by': orderBy,
367
- 'order_direction': orderDirection,
368
- 'query': query,
369
- 'tags': tags,
370
- 'tenant': tenant,
371
- 'unique_id': uniqueId,
372
- },
373
- });
374
- }
375
- /**
376
- * Search and filter AI prompts for a specific user within a tenant.
377
- *
378
- * This endpoint extends the base prompt search functionality but filters results
379
- * to only show prompts that are available to a specific user within a specific
380
- * organization/tenant.
381
- *
382
- * Path Parameters:
383
- * org (str): The organization/tenant identifier
384
- * username (str): The username to filter prompts for
385
- *
386
- * Query Parameters:
387
- * Same as PromptSearchView, plus:
388
- *
389
- * # Identification parameters (for detail view)
390
- * id (int, optional): Retrieve a specific prompt by ID
391
- *
392
- * Returns:
393
- * Same format as PromptSearchView, but filtered to only include prompts
394
- * that the specified user has access to within the specified organization.
395
- *
303
+ * ```
396
304
  * Error Responses:
397
305
  * 400 Bad Request: If the request parameters are invalid
398
- * 403 Forbidden: If the requested prompt exists but the user doesn't have access
399
- * 404 Not Found: If the requested prompt doesn't exist
306
+ * 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
307
+ * 404 Not Found: If the user or organization doesn't exist
400
308
  * 500 Internal Server Error: If an unexpected error occurs
401
309
  *
402
310
  * Access Control:
403
- * - Results are filtered based on user's permissions within the organization
404
- * - Private prompts are only visible to authorized users
405
- * @param org
406
- * @param username
407
- * @returns any No response body
408
- * @throws ApiError
409
- */
410
- public static searchOrgsUsersPromptsRetrieve(
411
- org: string,
412
- username: string,
413
- ): CancelablePromise<any> {
414
- return __request(OpenAPI, {
415
- method: 'GET',
416
- url: '/api/search/orgs/{org}/users/{username}/prompts/',
417
- path: {
418
- 'org': org,
419
- 'username': username,
420
- },
421
- });
422
- }
423
- /**
424
- * Determine whether to serve a detail view or a list view.
311
+ * - The requesting user must have an active account in the specified organization
312
+ * - When department_mode is enabled, the user must be an admin of at least one department
313
+ * - Department filtering restricts results to users in departments where the requesting user is an admin
425
314
  * @param org
426
315
  * @param username
427
316
  * @returns any No response body
428
317
  * @throws ApiError
429
318
  */
430
- public static searchOrgsUsersRecommendedRetrieve(
319
+ public static searchUsersOrgsUsersRetrieve(
431
320
  org: string,
432
321
  username: string,
433
322
  ): CancelablePromise<any> {
434
323
  return __request(OpenAPI, {
435
324
  method: 'GET',
436
- url: '/api/search/orgs/{org}/users/{username}/recommended/',
325
+ url: '/api/search/users/orgs/{org}/users/{username}/',
437
326
  path: {
438
327
  'org': org,
439
328
  'username': username,
440
329
  },
441
330
  });
442
331
  }
443
- /**
444
- * Get personalized content for a specific user
445
- * @param username
446
- * @param allowSkillSearch Enable skill-based search
447
- * @param alphabetical Sort alphabetically by name
448
- * @param certificate Filter by certificate type
449
- * @param content Content types to include in results
450
- * @param courseId Retrieve a specific course by ID
451
- * @param duration Filter by course duration range
452
- * @param language Filter by content language
453
- * @param level Filter by difficulty level
454
- * @param limit Number of results per page
455
- * @param offset Starting position for pagination
456
- * @param orderAscending Sort direction
457
- * @param orderBy Field to sort results by
458
- * @param pathwayId Retrieve a specific pathway by ID
459
- * @param price Filter by price/audit status
460
- * @param programId Retrieve a specific program by ID
461
- * @param programType Filter by program type
462
- * @param promotion Filter by promotion status
463
- * @param query Search term to filter content by name or description
464
- * @param recommended Show only recommended content
465
- * @param resourceId Retrieve a specific resource by ID
466
- * @param resourceType Filter by resource type
467
- * @param returnFacet Include facet data in response
468
- * @param returnItems Include items in programs/pathways
469
- * @param roleId Retrieve a specific role by ID
470
- * @param selfPaced Filter by course format
471
- * @param skillId Retrieve a specific skill by ID
472
- * @param skills Filter by skills
473
- * @param subject Filter by subject areas
474
- * @param tags Filter by tags
475
- * @param tenant Filter by tenant/organization
476
- * @param topics Filter by topic areas
477
- * @param updateFacet Force facet update
478
- * @returns any
479
- * @throws ApiError
480
- */
481
- public static searchPersonalizedCatalogRetrieve(
482
- username: string,
483
- allowSkillSearch: boolean = false,
484
- alphabetical: boolean = false,
485
- certificate?: Array<string>,
486
- content?: Array<string>,
487
- courseId?: string,
488
- duration?: Array<string>,
489
- language?: Array<string>,
490
- level?: Array<string>,
491
- limit: number = 12,
492
- offset?: number,
493
- orderAscending: boolean = false,
494
- orderBy?: string,
495
- pathwayId?: string,
496
- price?: string,
497
- programId?: string,
498
- programType?: Array<string>,
499
- promotion?: Array<string>,
500
- query?: string,
501
- recommended: boolean = false,
502
- resourceId?: string,
503
- resourceType?: Array<string>,
504
- returnFacet: boolean = true,
505
- returnItems: boolean = false,
506
- roleId?: string,
507
- selfPaced?: Array<string>,
508
- skillId?: string,
509
- skills?: Array<string>,
510
- subject?: Array<string>,
511
- tags?: Array<string>,
512
- tenant?: Array<string>,
513
- topics?: Array<string>,
514
- updateFacet?: string,
515
- ): CancelablePromise<Record<string, any>> {
516
- return __request(OpenAPI, {
517
- method: 'GET',
518
- url: '/api/search/personalized-catalog/{username}/',
519
- path: {
520
- 'username': username,
521
- },
522
- query: {
523
- 'allow_skill_search': allowSkillSearch,
524
- 'alphabetical': alphabetical,
525
- 'certificate': certificate,
526
- 'content': content,
527
- 'course_id': courseId,
528
- 'duration': duration,
529
- 'language': language,
530
- 'level': level,
531
- 'limit': limit,
532
- 'offset': offset,
533
- 'order_ascending': orderAscending,
534
- 'order_by': orderBy,
535
- 'pathway_id': pathwayId,
536
- 'price': price,
537
- 'program_id': programId,
538
- 'program_type': programType,
539
- 'promotion': promotion,
540
- 'query': query,
541
- 'recommended': recommended,
542
- 'resource_id': resourceId,
543
- 'resource_type': resourceType,
544
- 'return_facet': returnFacet,
545
- 'return_items': returnItems,
546
- 'role_id': roleId,
547
- 'self_paced': selfPaced,
548
- 'skill_id': skillId,
549
- 'skills': skills,
550
- 'subject': subject,
551
- 'tags': tags,
552
- 'tenant': tenant,
553
- 'topics': topics,
554
- 'update_facet': updateFacet,
555
- },
556
- });
557
- }
558
- /**
559
- * Search and filter AI prompts across the platform.
560
- *
561
- * This endpoint provides a search interface for discovering AI prompts
562
- * with support for filtering, pagination, and detailed prompt information.
563
- *
564
- * Query Parameters:
565
- * # Identification parameters (for detail view)
566
- * id (int, optional): Retrieve a specific prompt by ID
567
- *
568
- * # Search and filtering parameters
569
- * query (str, optional): Search term to filter prompts by name or content
570
- * category (str, optional): Filter by prompt category
571
- * language (str, optional): Filter by prompt language
572
- * style (str, optional): Filter by writing style
573
- * tone (str, optional): Filter by tone
574
- * tenant (str, optional): Filter by tenant/organization
575
- * mentor (str, optional): Filter by associated mentor (UUID)
576
- *
577
- * # Sorting and pagination
578
- * sort_by (str, optional): Field to sort results by
579
- * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
580
- * alphabetical (bool, optional): Sort alphabetically by name (default: false)
581
- * limit (int, optional): Number of results per page (default: 10)
582
- * offset (int, optional): Starting position for pagination
583
- *
584
- * # Special parameters
585
- * filter_facet (any, optional): If present, return only facets without results
586
- *
587
- * Returns:
588
- * For detail view (when id is provided):
589
- * A JSON response containing a single prompt's details:
590
- * {
591
- * "id": 456,
592
- * "name": "Essay Writing Guide",
593
- * "content": "Write a well-structured essay on the following topic: {{topic}}...",
594
- * "category": "Academic Writing",
595
- * "language": "English",
596
- * "style": "Formal",
597
- * "tone": "Professional",
598
- * "mentor": {
599
- * "id": 123,
600
- * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
601
- * "name": "Professor Smith"
602
- * },
603
- * "platform": {
604
- * "id": 1,
605
- * "name": "Example University",
606
- * "key": "example-university"
607
- * },
608
- * "created_at": "2023-02-10T09:15:00Z",
609
- * "updated_at": "2023-05-05T14:20:00Z",
610
- * "visibility": "public",
611
- * "variables": ["topic", "length", "style"]
612
- * }
613
- *
614
- * For list view:
615
- * A JSON response containing:
616
- * {
617
- * "results": [
618
- * {
619
- * "id": 456,
620
- * "name": "Essay Writing Guide",
621
- * "content": "Write a well-structured essay on the following topic: {{topic}}...",
622
- * "category": "Academic Writing",
623
- * "language": "English",
624
- * "style": "Formal",
625
- * "tone": "Professional",
626
- * "mentor": {"id": 123, "name": "Professor Smith"},
627
- * "created_at": "2023-02-10T09:15:00Z",
628
- * "updated_at": "2023-05-05T14:20:00Z"
629
- * },
630
- * // Additional prompt objects...
631
- * ],
632
- * "count": 30,
633
- * "next": "?limit=10&offset=10",
634
- * "previous": null,
635
- * "current_page": 1,
636
- * "num_pages": 3,
637
- * "facets": {
638
- * "category": [
639
- * {"key": "Academic Writing", "doc_count": 15},
640
- * {"key": "Creative Writing", "doc_count": 10},
641
- * {"key": "Technical Documentation", "doc_count": 5}
642
- * ],
643
- * "language": [
644
- * {"key": "English", "doc_count": 25},
645
- * {"key": "Spanish", "doc_count": 5}
646
- * ],
647
- * "style": [
648
- * {"key": "Formal", "doc_count": 20},
649
- * {"key": "Casual", "doc_count": 10}
650
- * ],
651
- * "tone": [
652
- * {"key": "Professional", "doc_count": 15},
653
- * {"key": "Friendly", "doc_count": 10},
654
- * {"key": "Technical", "doc_count": 5}
655
- * ]
656
- * }
657
- * }
658
- *
659
- * Error Responses:
660
- * 400 Bad Request: If the request parameters are invalid
661
- * 403 Forbidden: If the requested prompt exists but is not publicly available
662
- * 404 Not Found: If the requested prompt doesn't exist
663
- * 500 Internal Server Error: If an unexpected error occurs
664
- *
665
- * Notes:
666
- * - Only publicly available prompts are returned by default
667
- * - When filtering by mentor, the mentor ID must be a valid UUID
668
- * @returns any No response body
669
- * @throws ApiError
670
- */
671
- public static searchPromptsRetrieve(): CancelablePromise<any> {
672
- return __request(OpenAPI, {
673
- method: 'GET',
674
- url: '/api/search/prompts/',
675
- });
676
- }
677
- /**
678
- * Search and filter users within a specific organization/tenant.
679
- *
680
- * This endpoint provides a search interface for discovering users within an organization,
681
- * with support for filtering by departments, pagination, and faceted filtering.
682
- *
683
- * Path Parameters:
684
- * org (str): The organization/tenant identifier
685
- * username (str): The username of the user making the request
686
- *
687
- * Query Parameters:
688
- * # Search parameters
689
- * query (str, optional): Search term to filter users by name, username, or email
690
- *
691
- * # Department filtering
692
- * department_mode (bool, optional): Enable department-based filtering (default: false)
693
- * user_department (bool, optional): Legacy parameter for department_mode (default: false)
694
- * department (list, optional): Filter by specific departments
695
- *
696
- * # Additional filters
697
- * role (list, optional): Filter by user role
698
- * status (list, optional): Filter by user status (active, inactive)
699
- * joined_date (list, optional): Filter by join date range
700
- * last_login (list, optional): Filter by last login date range
701
- *
702
- * # Pagination
703
- * limit (int, optional): Number of results per page (default: 10)
704
- * offset (int, optional): Starting position for pagination
705
- *
706
- * Returns:
707
- * A JSON response containing:
708
- * ```
709
- * {
710
- * "results": [
711
- * {
712
- * "id": 123,
713
- * "username": "john.doe",
714
- * "email": "john.doe@example.com",
715
- * "first_name": "John",
716
- * "last_name": "Doe",
717
- * "full_name": "John Doe",
718
- * "profile_image": "https://example.com/profiles/john-doe.jpg",
719
- * "role": "Student",
720
- * "departments": ["Computer Science", "Data Science"],
721
- * "status": "active",
722
- * "joined_date": "2023-01-15T12:00:00Z",
723
- * "last_login": "2023-06-20T15:30:00Z",
724
- * "metadata": {
725
- * "location": "New York",
726
- * "title": "Software Engineer",
727
- * "bio": "Experienced software engineer with a passion for education"
728
- * }
729
- * },
730
- * // Additional user objects...
731
- * ],
732
- * "count": 50,
733
- * "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
734
- * "previous": null,
735
- * "current_page": 1,
736
- * "total_pages": 5,
737
- * "facets": {
738
- * "role": [
739
- * {"key": "Student", "doc_count": 30},
740
- * {"key": "Instructor", "doc_count": 15},
741
- * {"key": "Admin", "doc_count": 5}
742
- * ],
743
- * "department": [
744
- * {"key": "Computer Science", "doc_count": 20},
745
- * {"key": "Data Science", "doc_count": 15},
746
- * {"key": "Business", "doc_count": 10},
747
- * {"key": "Engineering", "doc_count": 5}
748
- * ],
749
- * "status": [
750
- * {"key": "active", "doc_count": 45},
751
- * {"key": "inactive", "doc_count": 5}
752
- * ]
753
- * }
754
- * }
755
- * ```
756
- * Error Responses:
757
- * 400 Bad Request: If the request parameters are invalid
758
- * 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
759
- * 404 Not Found: If the user or organization doesn't exist
760
- * 500 Internal Server Error: If an unexpected error occurs
761
- *
762
- * Access Control:
763
- * - The requesting user must have an active account in the specified organization
764
- * - When department_mode is enabled, the user must be an admin of at least one department
765
- * - Department filtering restricts results to users in departments where the requesting user is an admin
766
- * @param org
767
- * @param username
768
- * @returns any No response body
769
- * @throws ApiError
770
- */
771
- public static searchUsersOrgsUsersRetrieve(
772
- org: string,
773
- username: string,
774
- ): CancelablePromise<any> {
775
- return __request(OpenAPI, {
776
- method: 'GET',
777
- url: '/api/search/users/orgs/{org}/users/{username}/',
778
- path: {
779
- 'org': org,
780
- 'username': username,
781
- },
782
- });
783
- }
784
- }
332
+ }