@iblai/iblai-api 4.14.5-loadtest2-core → 4.14.5-loadtest2-ai

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 (791) hide show
  1. package/dist/index.cjs.js +21246 -1740
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +21237 -1741
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +21246 -1740
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +386 -2
  8. package/dist/types/models/AIGeneratedImage.d.ts +13 -0
  9. package/dist/types/models/AIUserProfileMemoryRelation.d.ts +4 -0
  10. package/dist/types/models/AIUserProfileRequest.d.ts +4 -0
  11. package/dist/types/models/AccessEnum.d.ts +8 -0
  12. package/dist/types/models/AccessTimesHeatmap.d.ts +5 -0
  13. package/dist/types/models/ActionBreakdown.d.ts +10 -0
  14. package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
  15. package/dist/types/models/AnalyticsOverview.d.ts +7 -0
  16. package/dist/types/models/Answer.d.ts +11 -0
  17. package/dist/types/models/AssumedKnowledge.d.ts +4 -0
  18. package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
  19. package/dist/types/models/AudioToTextRequest.d.ts +3 -0
  20. package/dist/types/models/AudioToTextResponse.d.ts +3 -0
  21. package/dist/types/models/AutoMemoryPrompt.d.ts +4 -0
  22. package/dist/types/models/BaseFinanceResponse.d.ts +37 -0
  23. package/dist/types/models/BillingPeriod.d.ts +8 -0
  24. package/dist/types/models/Bot.d.ts +15 -0
  25. package/dist/types/models/BotCommand.d.ts +6 -0
  26. package/dist/types/models/BotCreate.d.ts +12 -0
  27. package/dist/types/models/Breakdown.d.ts +11 -0
  28. package/dist/types/models/CallAuthenticationRequest.d.ts +13 -0
  29. package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
  30. package/dist/types/models/CallConfiguration.d.ts +26 -0
  31. package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
  32. package/dist/types/models/ChatHistory.d.ts +8 -0
  33. package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
  34. package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
  35. package/dist/types/models/ChatHistoryItem.d.ts +5 -0
  36. package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
  37. package/dist/types/models/ChatSessionRequest.d.ts +14 -0
  38. package/dist/types/models/ChatSessionResponse.d.ts +5 -0
  39. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
  40. package/dist/types/models/ComparisonInfo.d.ts +29 -0
  41. package/dist/types/models/ComponentBlock.d.ts +9 -0
  42. package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
  43. package/dist/types/models/ConnectedService.d.ts +11 -0
  44. package/dist/types/models/ConnectedServiceProviderEnum.d.ts +6 -0
  45. package/dist/types/models/ConversationMessage.d.ts +11 -0
  46. package/dist/types/models/ConversationRating.d.ts +6 -0
  47. package/dist/types/models/ConversationSummary.d.ts +5 -0
  48. package/dist/types/models/ConversationVolume.d.ts +4 -0
  49. package/dist/types/models/Conversations.d.ts +28 -0
  50. package/dist/types/models/Cost.d.ts +3 -0
  51. package/dist/types/models/CostPerTenant.d.ts +6 -0
  52. package/dist/types/models/CourseCreationTask.d.ts +31 -0
  53. package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
  54. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
  55. package/dist/types/models/CrawlerPatternTypeEnum.d.ts +8 -0
  56. package/dist/types/models/CredentialRequest.d.ts +14 -0
  57. package/dist/types/models/CrontabSchedule.d.ts +22 -0
  58. package/dist/types/models/CurrentUsersResponse.d.ts +8 -0
  59. package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
  60. package/dist/types/models/DataSet.d.ts +21 -0
  61. package/dist/types/models/DataSetCreate.d.ts +12 -0
  62. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  63. package/dist/types/models/DateRange.d.ts +4 -0
  64. package/dist/types/models/DiscordConfig.d.ts +7 -0
  65. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  66. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  67. package/dist/types/models/Document.d.ts +41 -0
  68. package/dist/types/models/DocumentFacet.d.ts +17 -0
  69. package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
  70. package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
  71. package/dist/types/models/EdxCourse.d.ts +11 -0
  72. package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
  73. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
  74. package/dist/types/models/EmailPromptDetail.d.ts +13 -0
  75. package/dist/types/models/EmailPromptList.d.ts +11 -0
  76. package/dist/types/models/EmailPromptSummary.d.ts +5 -0
  77. package/dist/types/models/Entity.d.ts +11 -0
  78. package/dist/types/models/EntityTypeEnum.d.ts +10 -0
  79. package/dist/types/models/ExternalServiceInfo.d.ts +6 -0
  80. package/dist/types/models/FinanceDetailsResponse.d.ts +13 -0
  81. package/dist/types/models/FinanceFilters.d.ts +15 -0
  82. package/dist/types/models/FreeUsageCount.d.ts +3 -0
  83. package/dist/types/models/FullCourse.d.ts +13 -0
  84. package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
  85. package/dist/types/models/GuidedPrompt.d.ts +4 -0
  86. package/dist/types/models/GuidedPromptsResponse.d.ts +5 -0
  87. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
  88. package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
  89. package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
  90. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
  91. package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
  92. package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
  93. package/dist/types/models/HumanSupportTicket.d.ts +21 -0
  94. package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +10 -0
  95. package/dist/types/models/InputQuestion.d.ts +6 -0
  96. package/dist/types/models/IntegrationCredential.d.ts +10 -0
  97. package/dist/types/models/IntegrationCredentialSchema.d.ts +6 -0
  98. package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
  99. package/dist/types/models/InvoiceReportResponse.d.ts +13 -0
  100. package/dist/types/models/JobRun.d.ts +11 -0
  101. package/dist/types/models/KindEnum.d.ts +10 -0
  102. package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
  103. package/dist/types/models/LLMCredentialResponse.d.ts +10 -0
  104. package/dist/types/models/LLMCredentialSchema.d.ts +6 -0
  105. package/dist/types/models/LLMModelForTenant.d.ts +6 -0
  106. package/dist/types/models/LLMQuestion.d.ts +15 -0
  107. package/dist/types/models/LLMResponse.d.ts +14 -0
  108. package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
  109. package/dist/types/models/LanguagesView.d.ts +5 -0
  110. package/dist/types/models/LinkCourseRequest.d.ts +3 -0
  111. package/dist/types/models/LinkCourseResponse.d.ts +5 -0
  112. package/dist/types/models/LlmProviderEnum.d.ts +8 -0
  113. package/dist/types/models/MCPServer.d.ts +21 -0
  114. package/dist/types/models/MaskedIntegrationCredential.d.ts +10 -0
  115. package/dist/types/models/MaskedLLMCredential.d.ts +10 -0
  116. package/dist/types/models/MemoryComponentData.d.ts +5 -0
  117. package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
  118. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
  119. package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
  120. package/dist/types/models/MemoryProgress.d.ts +8 -0
  121. package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
  122. package/dist/types/models/MemoryStatusView.d.ts +6 -0
  123. package/dist/types/models/Mentor.d.ts +87 -0
  124. package/dist/types/models/MentorAudience.d.ts +5 -0
  125. package/dist/types/models/MentorBreakdown.d.ts +9 -0
  126. package/dist/types/models/MentorCategory.d.ts +9 -0
  127. package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
  128. package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
  129. package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
  130. package/dist/types/models/MentorCreate.d.ts +84 -0
  131. package/dist/types/models/MentorCustomVoice.d.ts +4 -0
  132. package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
  133. package/dist/types/models/MentorData.d.ts +7 -0
  134. package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
  135. package/dist/types/models/MentorEval.d.ts +11 -0
  136. package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
  137. package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
  138. package/dist/types/models/MentorEvalReport.d.ts +10 -0
  139. package/dist/types/models/MentorEvalRequest.d.ts +8 -0
  140. package/dist/types/models/MentorFacet.d.ts +17 -0
  141. package/dist/types/models/MentorFork.d.ts +5 -0
  142. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +47 -0
  143. package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
  144. package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
  145. package/dist/types/models/MentorMetadata.d.ts +5 -0
  146. package/dist/types/models/MentorScenario.d.ts +6 -0
  147. package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
  148. package/dist/types/models/MentorSearchResponse.d.ts +35 -0
  149. package/dist/types/models/MentorSession.d.ts +4 -0
  150. package/dist/types/models/MentorSettings.d.ts +76 -0
  151. package/dist/types/models/MentorSettingsPublic.d.ts +52 -0
  152. package/dist/types/models/MentorSettingsRequest.d.ts +62 -0
  153. package/dist/types/models/MentorSummary.d.ts +5 -0
  154. package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
  155. package/dist/types/models/MentorWizard.d.ts +4 -0
  156. package/dist/types/models/MessageStatistics.d.ts +5 -0
  157. package/dist/types/models/MessageView.d.ts +10 -0
  158. package/dist/types/models/MessageViewRequest.d.ts +7 -0
  159. package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
  160. package/dist/types/models/Metadata.d.ts +5 -0
  161. package/dist/types/models/MetricChange.d.ts +4 -0
  162. package/dist/types/models/MetricInfo.d.ts +5 -0
  163. package/dist/types/models/ModelCost.d.ts +4 -0
  164. package/dist/types/models/ModerationLog.d.ts +11 -0
  165. package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
  166. package/dist/types/models/NotificationSource.d.ts +2 -2
  167. package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
  168. package/dist/types/models/NullEnum.d.ts +1 -0
  169. package/dist/types/models/OAuthStartResponse.d.ts +3 -0
  170. package/dist/types/models/Observation.d.ts +31 -0
  171. package/dist/types/models/OvertimeData.d.ts +13 -0
  172. package/dist/types/models/PageContent.d.ts +6 -0
  173. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
  174. package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
  175. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
  176. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
  177. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  178. package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
  179. package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
  180. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
  181. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
  182. package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +7 -0
  183. package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
  184. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  185. package/dist/types/models/PaginatedMentorList.d.ts +7 -0
  186. package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
  187. package/dist/types/models/PaginatedObservationList.d.ts +7 -0
  188. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
  189. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
  190. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
  191. package/dist/types/models/PaginatedProjectList.d.ts +7 -0
  192. package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
  193. package/dist/types/models/PaginatedSectionList.d.ts +7 -0
  194. package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
  195. package/dist/types/models/PaginatedTicketMessageList.d.ts +7 -0
  196. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
  197. package/dist/types/models/PaginatedTraceList.d.ts +7 -0
  198. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  199. package/dist/types/models/PaginatedUnitList.d.ts +7 -0
  200. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
  201. package/dist/types/models/PaginatedUserMemoryList.d.ts +7 -0
  202. package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
  203. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  204. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  205. package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
  206. package/dist/types/models/PatchedConversations.d.ts +28 -0
  207. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
  208. package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
  209. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  210. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  211. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  212. package/dist/types/models/PatchedHumanSupportTicket.d.ts +21 -0
  213. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
  214. package/dist/types/models/PatchedMCPServer.d.ts +21 -0
  215. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
  216. package/dist/types/models/PatchedMentorCreate.d.ts +84 -0
  217. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
  218. package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
  219. package/dist/types/models/PatchedProject.d.ts +51 -0
  220. package/dist/types/models/PatchedPrompt.d.ts +22 -0
  221. package/dist/types/models/PatchedSection.d.ts +9 -0
  222. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  223. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  224. package/dist/types/models/PatchedSubSection.d.ts +9 -0
  225. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  226. package/dist/types/models/PatchedTicketMessage.d.ts +10 -0
  227. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  228. package/dist/types/models/PatchedUnit.d.ts +11 -0
  229. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  230. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  231. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  232. package/dist/types/models/PeriodInfo.d.ts +21 -0
  233. package/dist/types/models/PeriodicAgent.d.ts +42 -0
  234. package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
  235. package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
  236. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
  237. package/dist/types/models/PeriodicTask.d.ts +21 -0
  238. package/dist/types/models/PieChartData.d.ts +5 -0
  239. package/dist/types/models/PieChartSegment.d.ts +4 -0
  240. package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
  241. package/dist/types/models/PinnedMessageGet.d.ts +7 -0
  242. package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
  243. package/dist/types/models/PlayWrightScript.d.ts +12 -0
  244. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
  245. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
  246. package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
  247. package/dist/types/models/Project.d.ts +51 -0
  248. package/dist/types/models/ProjectMentor.d.ts +11 -0
  249. package/dist/types/models/Prompt.d.ts +22 -0
  250. package/dist/types/models/PromptCategory.d.ts +7 -0
  251. package/dist/types/models/PromptFacet.d.ts +17 -0
  252. package/dist/types/models/PromptSearchResponse.d.ts +35 -0
  253. package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
  254. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  255. package/dist/types/models/Provider637Enum.d.ts +10 -0
  256. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  257. package/dist/types/models/ProviderBreakdown.d.ts +8 -0
  258. package/dist/types/models/QuestionCardTag.d.ts +8 -0
  259. package/dist/types/models/QuestionRequest.d.ts +15 -0
  260. package/dist/types/models/QuestionResponse.d.ts +10 -0
  261. package/dist/types/models/RatingAverageRecord.d.ts +10 -0
  262. package/dist/types/models/RatingEnum.d.ts +8 -0
  263. package/dist/types/models/RatingRecord.d.ts +4 -0
  264. package/dist/types/models/RatingsOvertime.d.ts +5 -0
  265. package/dist/types/models/RecentlyAccessedMentor.d.ts +8 -0
  266. package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
  267. package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
  268. package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
  269. package/dist/types/models/RelatedText.d.ts +3 -0
  270. package/dist/types/models/RequestDataVariable.d.ts +14 -0
  271. package/dist/types/models/ResourceScrappedData.d.ts +13 -0
  272. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
  273. package/dist/types/models/ResponseDataVariable.d.ts +14 -0
  274. package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
  275. package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
  276. package/dist/types/models/RetrieveTask.d.ts +3 -0
  277. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +29 -0
  278. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +66 -0
  279. package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
  280. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
  281. package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
  282. package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
  283. package/dist/types/models/RunMentorEval.d.ts +3 -0
  284. package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
  285. package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
  286. package/dist/types/models/Section.d.ts +9 -0
  287. package/dist/types/models/SectionWithChildren.d.ts +11 -0
  288. package/dist/types/models/SeedMentorsView.d.ts +3 -0
  289. package/dist/types/models/SentimentSummary.d.ts +4 -0
  290. package/dist/types/models/ServiceEnum.d.ts +10 -0
  291. package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
  292. package/dist/types/models/SessionChartPoint.d.ts +4 -0
  293. package/dist/types/models/SessionDetail.d.ts +6 -0
  294. package/dist/types/models/SessionMemoryAttachment.d.ts +3 -0
  295. package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
  296. package/dist/types/models/SessionsChart.d.ts +5 -0
  297. package/dist/types/models/ShareableMentorLink.d.ts +8 -0
  298. package/dist/types/models/ShellLogs.d.ts +3 -0
  299. package/dist/types/models/SlackConfig.d.ts +8 -0
  300. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  301. package/dist/types/models/SlackWebhook.d.ts +6 -0
  302. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
  303. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
  304. package/dist/types/models/StarMentor.d.ts +7 -0
  305. package/dist/types/models/Status6eeEnum.d.ts +12 -0
  306. package/dist/types/models/Step.d.ts +9 -0
  307. package/dist/types/models/StepStatusEnum.d.ts +10 -0
  308. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
  309. package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
  310. package/dist/types/models/SttProviderEnum.d.ts +12 -0
  311. package/dist/types/models/StudentChatMessage.d.ts +4 -0
  312. package/dist/types/models/StylesView.d.ts +4 -0
  313. package/dist/types/models/SubSection.d.ts +9 -0
  314. package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
  315. package/dist/types/models/Summary.d.ts +9 -0
  316. package/dist/types/models/TagsView.d.ts +5 -0
  317. package/dist/types/models/TargetSystemEnum.d.ts +8 -0
  318. package/dist/types/models/TaskView.d.ts +3 -0
  319. package/dist/types/models/TeamsConfig.d.ts +7 -0
  320. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  321. package/dist/types/models/TemplateMentor.d.ts +9 -0
  322. package/dist/types/models/TenantMentorTraces.d.ts +6 -0
  323. package/dist/types/models/ThemeEnum.d.ts +8 -0
  324. package/dist/types/models/TicketMessage.d.ts +10 -0
  325. package/dist/types/models/TonesView.d.ts +4 -0
  326. package/dist/types/models/ToolCategory.d.ts +5 -0
  327. package/dist/types/models/ToolResponse.d.ts +15 -0
  328. package/dist/types/models/TopicDetail.d.ts +8 -0
  329. package/dist/types/models/TopicDetails.d.ts +5 -0
  330. package/dist/types/models/TopicModel.d.ts +3 -0
  331. package/dist/types/models/TopicRecord.d.ts +4 -0
  332. package/dist/types/models/TopicStatistics.d.ts +7 -0
  333. package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
  334. package/dist/types/models/TopicSummaryView.d.ts +4 -0
  335. package/dist/types/models/TopicsOverview.d.ts +18 -0
  336. package/dist/types/models/TopicsOverviewMetric.d.ts +21 -0
  337. package/dist/types/models/Trace.d.ts +17 -0
  338. package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
  339. package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
  340. package/dist/types/models/TrainDocumentViewRequest.d.ts +70 -0
  341. package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
  342. package/dist/types/models/Training.d.ts +41 -0
  343. package/dist/types/models/TrainingCreate.d.ts +31 -0
  344. package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
  345. package/dist/types/models/TransportEnum.d.ts +8 -0
  346. package/dist/types/models/TrendEntry.d.ts +4 -0
  347. package/dist/types/models/TriggerRequest.d.ts +5 -0
  348. package/dist/types/models/TriggerResponse.d.ts +6 -0
  349. package/dist/types/models/TtsProviderEnum.d.ts +10 -0
  350. package/dist/types/models/TypeC42Enum.d.ts +8 -0
  351. package/dist/types/models/Unit.d.ts +11 -0
  352. package/dist/types/models/UnitWithChildren.d.ts +13 -0
  353. package/dist/types/models/UseMainCreds.d.ts +3 -0
  354. package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
  355. package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
  356. package/dist/types/models/UserChatByPeriod.d.ts +4 -0
  357. package/dist/types/models/UserChatFeedback.d.ts +15 -0
  358. package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
  359. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
  360. package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
  361. package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
  362. package/dist/types/models/UserCountRecord.d.ts +4 -0
  363. package/dist/types/models/UserDetail.d.ts +6 -0
  364. package/dist/types/models/UserEdxMemory.d.ts +15 -0
  365. package/dist/types/models/UserMemory.d.ts +17 -0
  366. package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
  367. package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
  368. package/dist/types/models/UserMemoryEntry.d.ts +7 -0
  369. package/dist/types/models/UserMemoryEntryRequest.d.ts +5 -0
  370. package/dist/types/models/UserMemoryRequest.d.ts +12 -0
  371. package/dist/types/models/UserMetric.d.ts +4 -0
  372. package/dist/types/models/UserMetricsResponse.d.ts +7 -0
  373. package/dist/types/models/UserSentimentCountView.d.ts +4 -0
  374. package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
  375. package/dist/types/models/VectorResult.d.ts +8 -0
  376. package/dist/types/models/VideoCaption.d.ts +3 -0
  377. package/dist/types/models/Voice.d.ts +9 -0
  378. package/dist/types/models/WebResource.d.ts +9 -0
  379. package/dist/types/models/WebResourceCard.d.ts +7 -0
  380. package/dist/types/models/WebResourcesQuery.d.ts +3 -0
  381. package/dist/types/models/WebexConfig.d.ts +10 -0
  382. package/dist/types/models/WebexWebhook.d.ts +4 -0
  383. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  384. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  385. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  386. package/dist/types/services/AiAccountService.d.ts +473 -0
  387. package/dist/types/services/AiAnalyticsService.d.ts +4565 -0
  388. package/dist/types/services/AiBotService.d.ts +642 -0
  389. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  390. package/dist/types/services/AiIndexService.d.ts +384 -0
  391. package/dist/types/services/AiMarketingService.d.ts +38 -0
  392. package/dist/types/services/AiMediaService.d.ts +122 -0
  393. package/dist/types/services/AiMentorService.d.ts +5669 -0
  394. package/dist/types/services/AiPromptService.d.ts +1035 -0
  395. package/dist/types/services/AnalyticsService.d.ts +487 -0
  396. package/dist/types/services/SearchService.d.ts +730 -0
  397. package/dist/types/services/V2Service.d.ts +73 -0
  398. package/package.json +1 -1
  399. package/sdk_schema.yml +61637 -20431
  400. package/src/core/OpenAPI.ts +1 -1
  401. package/src/index.ts +386 -2
  402. package/src/models/AIGeneratedImage.ts +18 -0
  403. package/src/models/AIUserProfileMemoryRelation.ts +9 -0
  404. package/src/models/AIUserProfileRequest.ts +9 -0
  405. package/src/models/AccessEnum.ts +12 -0
  406. package/src/models/AccessTimesHeatmap.ts +10 -0
  407. package/src/models/ActionBreakdown.ts +15 -0
  408. package/src/models/AlignMentorBubbleEnum.ts +12 -0
  409. package/src/models/AnalyticsOverview.ts +12 -0
  410. package/src/models/Answer.ts +16 -0
  411. package/src/models/AssumedKnowledge.ts +9 -0
  412. package/src/models/AssumedKnowledgeLevel.ts +9 -0
  413. package/src/models/AudioToTextRequest.ts +8 -0
  414. package/src/models/AudioToTextResponse.ts +8 -0
  415. package/src/models/AutoMemoryPrompt.ts +9 -0
  416. package/src/models/BaseFinanceResponse.ts +42 -0
  417. package/src/models/BillingPeriod.ts +13 -0
  418. package/src/models/Bot.ts +20 -0
  419. package/src/models/BotCommand.ts +11 -0
  420. package/src/models/BotCreate.ts +17 -0
  421. package/src/models/Breakdown.ts +16 -0
  422. package/src/models/CallAuthenticationRequest.ts +18 -0
  423. package/src/models/CallAuthenticationResponse.ts +26 -0
  424. package/src/models/CallConfiguration.ts +31 -0
  425. package/src/models/CallConfigurationModeEnum.ts +12 -0
  426. package/src/models/ChatHistory.ts +13 -0
  427. package/src/models/ChatHistoryFilterData.ts +14 -0
  428. package/src/models/ChatHistoryFilterUser.ts +10 -0
  429. package/src/models/ChatHistoryItem.ts +10 -0
  430. package/src/models/ChatHistorySessionId.ts +8 -0
  431. package/src/models/ChatSessionRequest.ts +19 -0
  432. package/src/models/ChatSessionResponse.ts +10 -0
  433. package/src/models/CheckDocumentTrainingStatus.ts +15 -0
  434. package/src/models/ComparisonInfo.ts +34 -0
  435. package/src/models/ComponentBlock.ts +14 -0
  436. package/src/models/ComponentBlockTypeEnum.ts +12 -0
  437. package/src/models/ConnectedService.ts +16 -0
  438. package/src/models/ConnectedServiceProviderEnum.ts +10 -0
  439. package/src/models/ConversationMessage.ts +16 -0
  440. package/src/models/ConversationRating.ts +11 -0
  441. package/src/models/ConversationSummary.ts +10 -0
  442. package/src/models/ConversationVolume.ts +9 -0
  443. package/src/models/Conversations.ts +33 -0
  444. package/src/models/Cost.ts +8 -0
  445. package/src/models/CostPerTenant.ts +11 -0
  446. package/src/models/CourseCreationTask.ts +36 -0
  447. package/src/models/CourseCreationTaskFile.ts +12 -0
  448. package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
  449. package/src/models/CrawlerPatternTypeEnum.ts +12 -0
  450. package/src/models/CredentialRequest.ts +19 -0
  451. package/src/models/CrontabSchedule.ts +27 -0
  452. package/src/models/CurrentUsersResponse.ts +13 -0
  453. package/src/models/CustomInstructionResponse.ts +18 -0
  454. package/src/models/DataSet.ts +26 -0
  455. package/src/models/DataSetCreate.ts +17 -0
  456. package/src/models/DataSetStatusEnum.ts +16 -0
  457. package/src/models/DateRange.ts +9 -0
  458. package/src/models/DiscordConfig.ts +12 -0
  459. package/src/models/DiscordUserConfig.ts +15 -0
  460. package/src/models/DiscordWebhook.ts +11 -0
  461. package/src/models/Document.ts +46 -0
  462. package/src/models/DocumentFacet.ts +22 -0
  463. package/src/models/DocumentSearchResponse.ts +40 -0
  464. package/src/models/DocumentSettingsResponse.ts +8 -0
  465. package/src/models/EdxCourse.ts +16 -0
  466. package/src/models/ElevenlabsCustomVoice.ts +9 -0
  467. package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
  468. package/src/models/EmailPromptDetail.ts +18 -0
  469. package/src/models/EmailPromptList.ts +16 -0
  470. package/src/models/EmailPromptSummary.ts +10 -0
  471. package/src/models/Entity.ts +16 -0
  472. package/src/models/EntityTypeEnum.ts +14 -0
  473. package/src/models/ExternalServiceInfo.ts +11 -0
  474. package/src/models/FinanceDetailsResponse.ts +18 -0
  475. package/src/models/FinanceFilters.ts +20 -0
  476. package/src/models/FreeUsageCount.ts +8 -0
  477. package/src/models/FullCourse.ts +18 -0
  478. package/src/models/GreetingMethodEnum.ts +12 -0
  479. package/src/models/GuidedPrompt.ts +9 -0
  480. package/src/models/GuidedPromptsResponse.ts +10 -0
  481. package/src/models/HeygenMarketingVideoDetail.ts +13 -0
  482. package/src/models/HeygenMarketingVideoList.ts +11 -0
  483. package/src/models/HeygenTemplateRequest.ts +10 -0
  484. package/src/models/HeygenTemplateResponseSingle.ts +11 -0
  485. package/src/models/HeygenVideoDetail.ts +13 -0
  486. package/src/models/HeygenVideoRequest.ts +10 -0
  487. package/src/models/HumanSupportTicket.ts +26 -0
  488. package/src/models/HumanSupportTicketStatusEnum.ts +14 -0
  489. package/src/models/InputQuestion.ts +11 -0
  490. package/src/models/IntegrationCredential.ts +15 -0
  491. package/src/models/IntegrationCredentialSchema.ts +11 -0
  492. package/src/models/IntialQuestionAnswer.ts +8 -0
  493. package/src/models/InvoiceReportResponse.ts +18 -0
  494. package/src/models/JobRun.ts +16 -0
  495. package/src/models/KindEnum.ts +14 -0
  496. package/src/models/LLMCredentialRequest.ts +19 -0
  497. package/src/models/LLMCredentialResponse.ts +15 -0
  498. package/src/models/LLMCredentialSchema.ts +11 -0
  499. package/src/models/LLMModelForTenant.ts +11 -0
  500. package/src/models/LLMQuestion.ts +20 -0
  501. package/src/models/LLMResponse.ts +19 -0
  502. package/src/models/LLMTracesListResponse.ts +10 -0
  503. package/src/models/LanguagesView.ts +10 -0
  504. package/src/models/LinkCourseRequest.ts +8 -0
  505. package/src/models/LinkCourseResponse.ts +10 -0
  506. package/src/models/LlmProviderEnum.ts +12 -0
  507. package/src/models/MCPServer.ts +26 -0
  508. package/src/models/MaskedIntegrationCredential.ts +15 -0
  509. package/src/models/MaskedLLMCredential.ts +15 -0
  510. package/src/models/MemoryComponentData.ts +10 -0
  511. package/src/models/MemoryComponentMemory.ts +9 -0
  512. package/src/models/MemoryComponentMemoryDetail.ts +13 -0
  513. package/src/models/MemoryComponentResponse.ts +10 -0
  514. package/src/models/MemoryProgress.ts +13 -0
  515. package/src/models/MemoryStatusRequestView.ts +11 -0
  516. package/src/models/MemoryStatusView.ts +11 -0
  517. package/src/models/Mentor.ts +92 -0
  518. package/src/models/MentorAudience.ts +10 -0
  519. package/src/models/MentorBreakdown.ts +14 -0
  520. package/src/models/MentorCategory.ts +14 -0
  521. package/src/models/MentorCategoryCreate.ts +16 -0
  522. package/src/models/MentorCategoryGroup.ts +16 -0
  523. package/src/models/MentorCategoryGroupCreate.ts +16 -0
  524. package/src/models/MentorCreate.ts +89 -0
  525. package/src/models/MentorCustomVoice.ts +9 -0
  526. package/src/models/MentorCustomVoiceResponse.ts +9 -0
  527. package/src/models/MentorData.ts +12 -0
  528. package/src/models/MentorDetailAnalytics.ts +11 -0
  529. package/src/models/MentorEval.ts +16 -0
  530. package/src/models/MentorEvalQuestion.ts +10 -0
  531. package/src/models/MentorEvalQuestionRequest.ts +9 -0
  532. package/src/models/MentorEvalReport.ts +15 -0
  533. package/src/models/MentorEvalRequest.ts +13 -0
  534. package/src/models/MentorFacet.ts +22 -0
  535. package/src/models/MentorFork.ts +10 -0
  536. package/src/models/MentorFromTemplateWithSettingRequest.ts +52 -0
  537. package/src/models/MentorMemorySettingsRequest.ts +11 -0
  538. package/src/models/MentorMemorySettingsResponse.ts +11 -0
  539. package/src/models/MentorMetadata.ts +10 -0
  540. package/src/models/MentorScenario.ts +11 -0
  541. package/src/models/MentorScenarioPrompt.ts +10 -0
  542. package/src/models/MentorSearchResponse.ts +40 -0
  543. package/src/models/MentorSession.ts +9 -0
  544. package/src/models/MentorSettings.ts +81 -0
  545. package/src/models/MentorSettingsPublic.ts +57 -0
  546. package/src/models/MentorSettingsRequest.ts +67 -0
  547. package/src/models/MentorSummary.ts +10 -0
  548. package/src/models/MentorVisibilityEnum.ts +14 -0
  549. package/src/models/MentorWizard.ts +9 -0
  550. package/src/models/MessageStatistics.ts +10 -0
  551. package/src/models/MessageView.ts +15 -0
  552. package/src/models/MessageViewRequest.ts +12 -0
  553. package/src/models/MessageViewUpdatResponse.ts +8 -0
  554. package/src/models/Metadata.ts +10 -0
  555. package/src/models/MetricChange.ts +9 -0
  556. package/src/models/MetricInfo.ts +10 -0
  557. package/src/models/ModelCost.ts +9 -0
  558. package/src/models/ModerationLog.ts +16 -0
  559. package/src/models/NoChatMessagesFound.ts +8 -0
  560. package/src/models/NotificationSource.ts +2 -2
  561. package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
  562. package/src/models/NullEnum.ts +7 -0
  563. package/src/models/OAuthStartResponse.ts +8 -0
  564. package/src/models/Observation.ts +36 -0
  565. package/src/models/OvertimeData.ts +18 -0
  566. package/src/models/PageContent.ts +11 -0
  567. package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
  568. package/src/models/PaginatedConversationsList.ts +12 -0
  569. package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
  570. package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
  571. package/src/models/PaginatedDataSetList.ts +12 -0
  572. package/src/models/PaginatedEdxCourseList.ts +12 -0
  573. package/src/models/PaginatedEmailPromptListList.ts +12 -0
  574. package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
  575. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
  576. package/src/models/PaginatedHumanSupportTicketList.ts +12 -0
  577. package/src/models/PaginatedJobRunList.ts +12 -0
  578. package/src/models/PaginatedMCPServerList.ts +12 -0
  579. package/src/models/PaginatedMentorList.ts +12 -0
  580. package/src/models/PaginatedModerationLogList.ts +12 -0
  581. package/src/models/PaginatedObservationList.ts +12 -0
  582. package/src/models/PaginatedPeriodicAgentList.ts +12 -0
  583. package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
  584. package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
  585. package/src/models/PaginatedProjectList.ts +12 -0
  586. package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
  587. package/src/models/PaginatedSectionList.ts +12 -0
  588. package/src/models/PaginatedSubSectionList.ts +12 -0
  589. package/src/models/PaginatedTicketMessageList.ts +12 -0
  590. package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
  591. package/src/models/PaginatedTraceList.ts +12 -0
  592. package/src/models/PaginatedTrainingList.ts +12 -0
  593. package/src/models/PaginatedUnitList.ts +12 -0
  594. package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
  595. package/src/models/PaginatedUserMemoryList.ts +12 -0
  596. package/src/models/PaginatedVoiceList.ts +12 -0
  597. package/src/models/PatchedBotCommand.ts +11 -0
  598. package/src/models/PatchedBotCreate.ts +17 -0
  599. package/src/models/PatchedCallConfiguration.ts +31 -0
  600. package/src/models/PatchedConversations.ts +33 -0
  601. package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
  602. package/src/models/PatchedCredentialRequest.ts +19 -0
  603. package/src/models/PatchedDataSet.ts +26 -0
  604. package/src/models/PatchedDiscordConfig.ts +12 -0
  605. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  606. package/src/models/PatchedHumanSupportTicket.ts +26 -0
  607. package/src/models/PatchedLLMCredentialRequest.ts +19 -0
  608. package/src/models/PatchedMCPServer.ts +26 -0
  609. package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
  610. package/src/models/PatchedMentorCreate.ts +89 -0
  611. package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
  612. package/src/models/PatchedPlayWrightScript.ts +17 -0
  613. package/src/models/PatchedProject.ts +56 -0
  614. package/src/models/PatchedPrompt.ts +27 -0
  615. package/src/models/PatchedSection.ts +14 -0
  616. package/src/models/PatchedSlackConfig.ts +13 -0
  617. package/src/models/PatchedSlackUserConfig.ts +22 -0
  618. package/src/models/PatchedSubSection.ts +14 -0
  619. package/src/models/PatchedTeamsConfig.ts +12 -0
  620. package/src/models/PatchedTicketMessage.ts +15 -0
  621. package/src/models/PatchedTrainingCreate.ts +36 -0
  622. package/src/models/PatchedUnit.ts +16 -0
  623. package/src/models/PatchedWebexConfig.ts +15 -0
  624. package/src/models/PatchedWhatsappConfig.ts +16 -0
  625. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  626. package/src/models/PeriodInfo.ts +26 -0
  627. package/src/models/PeriodicAgent.ts +47 -0
  628. package/src/models/PeriodicAgentCreate.ts +46 -0
  629. package/src/models/PeriodicAgentLog.ts +16 -0
  630. package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
  631. package/src/models/PeriodicTask.ts +26 -0
  632. package/src/models/PieChartData.ts +10 -0
  633. package/src/models/PieChartSegment.ts +9 -0
  634. package/src/models/PinnedMessageCreate.ts +14 -0
  635. package/src/models/PinnedMessageGet.ts +12 -0
  636. package/src/models/PinnedMessageRequest.ts +11 -0
  637. package/src/models/PlayWrightScript.ts +17 -0
  638. package/src/models/PredictiveAnalyticsRequest.ts +9 -0
  639. package/src/models/PredictiveAnalyticsResponse.ts +9 -0
  640. package/src/models/PreviousAgentStatusEnum.ts +16 -0
  641. package/src/models/Project.ts +56 -0
  642. package/src/models/ProjectMentor.ts +16 -0
  643. package/src/models/Prompt.ts +27 -0
  644. package/src/models/PromptCategory.ts +12 -0
  645. package/src/models/PromptFacet.ts +22 -0
  646. package/src/models/PromptSearchResponse.ts +40 -0
  647. package/src/models/PromptVisibilityEnum.ts +14 -0
  648. package/src/models/Provider05cEnum.ts +18 -0
  649. package/src/models/Provider637Enum.ts +14 -0
  650. package/src/models/Provider63aEnum.ts +10 -0
  651. package/src/models/ProviderBreakdown.ts +13 -0
  652. package/src/models/QuestionCardTag.ts +13 -0
  653. package/src/models/QuestionRequest.ts +20 -0
  654. package/src/models/QuestionResponse.ts +15 -0
  655. package/src/models/RatingAverageRecord.ts +15 -0
  656. package/src/models/RatingEnum.ts +12 -0
  657. package/src/models/RatingRecord.ts +9 -0
  658. package/src/models/RatingsOvertime.ts +10 -0
  659. package/src/models/RecentlyAccessedMentor.ts +13 -0
  660. package/src/models/RecommendCourseBlock.ts +8 -0
  661. package/src/models/RecommendCourseResponse.ts +8 -0
  662. package/src/models/RecommendedCoursesResponse.ts +38 -0
  663. package/src/models/RelatedText.ts +8 -0
  664. package/src/models/RequestDataVariable.ts +19 -0
  665. package/src/models/ResourceScrappedData.ts +18 -0
  666. package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
  667. package/src/models/ResponseDataVariable.ts +19 -0
  668. package/src/models/RetreiverTrainViewRequest.ts +15 -0
  669. package/src/models/RetreiverTrainViewResponse.ts +11 -0
  670. package/src/models/RetrieveTask.ts +8 -0
  671. package/src/models/RetrieverDocumentEmbedding.ts +34 -0
  672. package/src/models/RetrieverDocumentEmbeddingRequest.ts +71 -0
  673. package/src/models/RetrieverRequestSearch.ts +15 -0
  674. package/src/models/RetrieverRequestSearchDocument.ts +15 -0
  675. package/src/models/RetrieverResponseSearch.ts +12 -0
  676. package/src/models/ReuestDataVariableList.ts +9 -0
  677. package/src/models/RunMentorEval.ts +8 -0
  678. package/src/models/ScanWebhookRequest.ts +11 -0
  679. package/src/models/ScanWebhookResponse.ts +8 -0
  680. package/src/models/Section.ts +14 -0
  681. package/src/models/SectionWithChildren.ts +16 -0
  682. package/src/models/SeedMentorsView.ts +8 -0
  683. package/src/models/SentimentSummary.ts +9 -0
  684. package/src/models/ServiceEnum.ts +14 -0
  685. package/src/models/SessionBrowserScreenshot.ts +13 -0
  686. package/src/models/SessionChartPoint.ts +9 -0
  687. package/src/models/SessionDetail.ts +11 -0
  688. package/src/models/SessionMemoryAttachment.ts +8 -0
  689. package/src/models/SessionMemoryStorage.ts +11 -0
  690. package/src/models/SessionsChart.ts +10 -0
  691. package/src/models/ShareableMentorLink.ts +13 -0
  692. package/src/models/ShellLogs.ts +8 -0
  693. package/src/models/SlackConfig.ts +13 -0
  694. package/src/models/SlackUserConfig.ts +22 -0
  695. package/src/models/SlackWebhook.ts +11 -0
  696. package/src/models/SpacedRepetitionLearningPath.ts +8 -0
  697. package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
  698. package/src/models/StarMentor.ts +12 -0
  699. package/src/models/Status6eeEnum.ts +16 -0
  700. package/src/models/Step.ts +14 -0
  701. package/src/models/StepStatusEnum.ts +14 -0
  702. package/src/models/StripeCheckoutSessionRequest.ts +2 -2
  703. package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
  704. package/src/models/SttProviderEnum.ts +16 -0
  705. package/src/models/StudentChatMessage.ts +9 -0
  706. package/src/models/StylesView.ts +9 -0
  707. package/src/models/SubSection.ts +14 -0
  708. package/src/models/SubSectionWithChildren.ts +16 -0
  709. package/src/models/Summary.ts +14 -0
  710. package/src/models/TagsView.ts +10 -0
  711. package/src/models/TargetSystemEnum.ts +12 -0
  712. package/src/models/TaskView.ts +8 -0
  713. package/src/models/TeamsConfig.ts +12 -0
  714. package/src/models/TeamsWebhook.ts +22 -0
  715. package/src/models/TemplateMentor.ts +14 -0
  716. package/src/models/TenantMentorTraces.ts +11 -0
  717. package/src/models/ThemeEnum.ts +12 -0
  718. package/src/models/TicketMessage.ts +15 -0
  719. package/src/models/TonesView.ts +9 -0
  720. package/src/models/ToolCategory.ts +10 -0
  721. package/src/models/ToolResponse.ts +20 -0
  722. package/src/models/TopicDetail.ts +13 -0
  723. package/src/models/TopicDetails.ts +10 -0
  724. package/src/models/TopicModel.ts +8 -0
  725. package/src/models/TopicRecord.ts +9 -0
  726. package/src/models/TopicStatistics.ts +12 -0
  727. package/src/models/TopicStatisticsResponse.ts +11 -0
  728. package/src/models/TopicSummaryView.ts +9 -0
  729. package/src/models/TopicsOverview.ts +23 -0
  730. package/src/models/TopicsOverviewMetric.ts +26 -0
  731. package/src/models/Trace.ts +22 -0
  732. package/src/models/TrainChatSessionDocumentView.ts +11 -0
  733. package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
  734. package/src/models/TrainDocumentViewRequest.ts +75 -0
  735. package/src/models/TrainDocumentViewResponse.ts +20 -0
  736. package/src/models/Training.ts +46 -0
  737. package/src/models/TrainingCreate.ts +36 -0
  738. package/src/models/TrainingStatusEnum.ts +16 -0
  739. package/src/models/TransportEnum.ts +12 -0
  740. package/src/models/TrendEntry.ts +9 -0
  741. package/src/models/TriggerRequest.ts +10 -0
  742. package/src/models/TriggerResponse.ts +11 -0
  743. package/src/models/TtsProviderEnum.ts +14 -0
  744. package/src/models/TypeC42Enum.ts +12 -0
  745. package/src/models/Unit.ts +16 -0
  746. package/src/models/UnitWithChildren.ts +18 -0
  747. package/src/models/UseMainCreds.ts +8 -0
  748. package/src/models/UserAllChatMemoryView.ts +12 -0
  749. package/src/models/UserCatalogItemMemoryView.ts +19 -0
  750. package/src/models/UserChatByPeriod.ts +9 -0
  751. package/src/models/UserChatFeedback.ts +20 -0
  752. package/src/models/UserChatFeedbackCount.ts +9 -0
  753. package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
  754. package/src/models/UserChatMemoryStatusView.ts +11 -0
  755. package/src/models/UserChatMemoryUpdateView.ts +15 -0
  756. package/src/models/UserCountRecord.ts +9 -0
  757. package/src/models/UserDetail.ts +11 -0
  758. package/src/models/UserEdxMemory.ts +20 -0
  759. package/src/models/UserMemory.ts +22 -0
  760. package/src/models/UserMemoryContextRequest.ts +18 -0
  761. package/src/models/UserMemoryContextResponse.ts +17 -0
  762. package/src/models/UserMemoryEntry.ts +12 -0
  763. package/src/models/UserMemoryEntryRequest.ts +10 -0
  764. package/src/models/UserMemoryRequest.ts +17 -0
  765. package/src/models/UserMetric.ts +9 -0
  766. package/src/models/UserMetricsResponse.ts +12 -0
  767. package/src/models/UserSentimentCountView.ts +9 -0
  768. package/src/models/UserTrendByPeriod.ts +10 -0
  769. package/src/models/VectorResult.ts +13 -0
  770. package/src/models/VideoCaption.ts +8 -0
  771. package/src/models/Voice.ts +14 -0
  772. package/src/models/WebResource.ts +14 -0
  773. package/src/models/WebResourceCard.ts +12 -0
  774. package/src/models/WebResourcesQuery.ts +8 -0
  775. package/src/models/WebexConfig.ts +15 -0
  776. package/src/models/WebexWebhook.ts +9 -0
  777. package/src/models/WhatAppWebHook.ts +8 -0
  778. package/src/models/WhatsappConfig.ts +16 -0
  779. package/src/models/WhatsappUserConfig.ts +15 -0
  780. package/src/services/AiAccountService.ts +755 -0
  781. package/src/services/AiAnalyticsService.ts +12345 -4868
  782. package/src/services/AiBotService.ts +1330 -0
  783. package/src/services/AiFinetuningService.ts +472 -0
  784. package/src/services/AiIndexService.ts +676 -0
  785. package/src/services/AiMarketingService.ts +96 -0
  786. package/src/services/AiMediaService.ts +289 -0
  787. package/src/services/AiMentorService.ts +10563 -0
  788. package/src/services/AiPromptService.ts +1985 -0
  789. package/src/services/AnalyticsService.ts +673 -0
  790. package/src/services/SearchService.ts +1447 -398
  791. package/src/services/V2Service.ts +130 -0
@@ -2,12 +2,131 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { DocumentSearchResponse } from '../models/DocumentSearchResponse';
5
6
  import type { GlobalCatalogSearchResponse } from '../models/GlobalCatalogSearchResponse';
7
+ import type { MentorSearchResponse } from '../models/MentorSearchResponse';
8
+ import type { PromptSearchResponse } from '../models/PromptSearchResponse';
9
+ import type { RecommendedCoursesResponse } from '../models/RecommendedCoursesResponse';
6
10
  import type { UserSearchResponse } from '../models/UserSearchResponse';
7
11
  import type { CancelablePromise } from '../core/CancelablePromise';
8
12
  import { OpenAPI } from '../core/OpenAPI';
9
13
  import { request as __request } from '../core/request';
10
14
  export class SearchService {
15
+ /**
16
+ * Legacy endpoint for backward compatible mentor search
17
+ * @returns MentorSearchResponse
18
+ * @throws ApiError
19
+ */
20
+ public static searchAiSearchRetrieve({
21
+ audience,
22
+ category,
23
+ createdBy,
24
+ filterFacet = false,
25
+ id,
26
+ limit = 12,
27
+ llm,
28
+ offset,
29
+ orderBy,
30
+ orderDirection = 'desc',
31
+ page,
32
+ pageSize,
33
+ query,
34
+ tags,
35
+ tenant,
36
+ uniqueId,
37
+ }: {
38
+ /**
39
+ * Filter by target audience
40
+ */
41
+ audience?: Array<string>,
42
+ /**
43
+ * Filter by mentor category
44
+ */
45
+ category?: Array<string>,
46
+ /**
47
+ * Filter mentors created by specific user
48
+ */
49
+ createdBy?: string,
50
+ /**
51
+ * If present, return only facets without results
52
+ */
53
+ filterFacet?: boolean,
54
+ /**
55
+ * Retrieve a specific mentor by ID
56
+ */
57
+ id?: number,
58
+ /**
59
+ * Number of results per page
60
+ */
61
+ limit?: number,
62
+ /**
63
+ * Filter by language model type
64
+ */
65
+ llm?: Array<string>,
66
+ /**
67
+ * Starting position for pagination
68
+ */
69
+ offset?: number,
70
+ /**
71
+ * Field to sort results by ('created_at', 'recently_accessed_at')
72
+ */
73
+ orderBy?: string,
74
+ /**
75
+ * Sort direction ('asc' or 'desc')
76
+ */
77
+ orderDirection?: string,
78
+ /**
79
+ * Page number (1-based, used with page_size)
80
+ */
81
+ page?: number,
82
+ /**
83
+ * Number of results per page
84
+ */
85
+ pageSize?: number,
86
+ /**
87
+ * Search term to filter mentors by name or description
88
+ */
89
+ query?: string,
90
+ /**
91
+ * Filter by tags
92
+ */
93
+ tags?: Array<string>,
94
+ /**
95
+ * Filter by tenant/organization
96
+ */
97
+ tenant?: string,
98
+ /**
99
+ * Retrieve a specific mentor by UUID
100
+ */
101
+ uniqueId?: string,
102
+ }): CancelablePromise<MentorSearchResponse> {
103
+ return __request(OpenAPI, {
104
+ method: 'GET',
105
+ url: '/api/search/ai-search/',
106
+ query: {
107
+ 'audience': audience,
108
+ 'category': category,
109
+ 'created_by': createdBy,
110
+ 'filter_facet': filterFacet,
111
+ 'id': id,
112
+ 'limit': limit,
113
+ 'llm': llm,
114
+ 'offset': offset,
115
+ 'order_by': orderBy,
116
+ 'order_direction': orderDirection,
117
+ 'page': page,
118
+ 'page_size': pageSize,
119
+ 'query': query,
120
+ 'tags': tags,
121
+ 'tenant': tenant,
122
+ 'unique_id': uniqueId,
123
+ },
124
+ errors: {
125
+ 400: `Bad request`,
126
+ 500: `Server error`,
127
+ },
128
+ });
129
+ }
11
130
  /**
12
131
  * Search and filter content across the learning catalog.
13
132
  *
@@ -365,411 +484,1341 @@ export class SearchService {
365
484
  });
366
485
  }
367
486
  /**
368
- * Determine whether to serve a detail view or a list view.
369
- * If any detail-identifying parameters are present (course_id, program_id, etc.)
370
- * the detail view is returned; otherwise the aggregated list view is returned.
371
- * @returns any
372
- * @throws ApiError
373
- */
374
- public static searchPersonalizedCatalogRetrieve({
375
- username,
376
- allowSkillSearch = false,
377
- alphabetical = false,
378
- certificate,
379
- content,
380
- courseId,
381
- duration,
382
- language,
383
- level,
384
- limit = 12,
385
- offset,
386
- orderAscending = false,
387
- orderBy,
388
- pathwayId,
389
- price,
390
- programId,
391
- programType,
392
- promotion,
393
- query,
394
- recommended = false,
395
- resourceId,
396
- resourceType,
397
- returnFacet = true,
398
- returnItems = false,
399
- roleId,
400
- selfPaced,
401
- skillId,
402
- skills,
403
- subject,
404
- tags,
405
- tenant,
406
- topics,
407
- updateFacet,
408
- }: {
409
- username: string,
410
- /**
411
- * Enable skill-based search
412
- */
413
- allowSkillSearch?: boolean,
414
- /**
415
- * Sort alphabetically by name
416
- */
417
- alphabetical?: boolean,
418
- /**
419
- * Filter by certificate type
420
- */
421
- certificate?: Array<string>,
422
- /**
423
- * Content types to include in results
424
- */
425
- content?: Array<string>,
426
- /**
427
- * Retrieve a specific course by ID
428
- */
429
- courseId?: string,
430
- /**
431
- * Filter by course duration range
432
- */
433
- duration?: Array<string>,
434
- /**
435
- * Filter by content language
436
- */
437
- language?: Array<string>,
438
- /**
439
- * Filter by difficulty level
440
- */
441
- level?: Array<string>,
442
- /**
443
- * Number of results per page
444
- */
445
- limit?: number,
446
- /**
447
- * Starting position for pagination
448
- */
449
- offset?: number,
450
- /**
451
- * Sort direction
452
- */
453
- orderAscending?: boolean,
454
- /**
455
- * Field to sort results by
456
- */
457
- orderBy?: string,
458
- /**
459
- * Retrieve a specific pathway by ID
460
- */
461
- pathwayId?: string,
462
- /**
463
- * Filter by price/audit status
464
- */
465
- price?: string,
466
- /**
467
- * Retrieve a specific program by ID
468
- */
469
- programId?: string,
470
- /**
471
- * Filter by program type
472
- */
473
- programType?: Array<string>,
474
- /**
475
- * Filter by promotion status
476
- */
477
- promotion?: Array<string>,
478
- /**
479
- * Search term to filter content by name or description
480
- */
481
- query?: string,
482
- /**
483
- * Show only recommended content
484
- */
485
- recommended?: boolean,
486
- /**
487
- * Retrieve a specific resource by ID
488
- */
489
- resourceId?: string,
490
- /**
491
- * Filter by resource type
492
- */
493
- resourceType?: Array<string>,
494
- /**
495
- * Include facet data in response
496
- */
497
- returnFacet?: boolean,
498
- /**
499
- * Include items in programs/pathways
500
- */
501
- returnItems?: boolean,
502
- /**
503
- * Retrieve a specific role by ID
504
- */
505
- roleId?: string,
506
- /**
507
- * Filter by course format
508
- */
509
- selfPaced?: Array<string>,
510
- /**
511
- * Retrieve a specific skill by ID
512
- */
513
- skillId?: string,
514
- /**
515
- * Filter by skills
516
- */
517
- skills?: Array<string>,
518
- /**
519
- * Filter by subject areas
520
- */
521
- subject?: Array<string>,
522
- /**
523
- * Filter by tags
524
- */
525
- tags?: Array<string>,
526
- /**
527
- * Filter by tenant/organization
528
- */
529
- tenant?: string,
530
- /**
531
- * Filter by topic areas
532
- */
533
- topics?: Array<string>,
534
- /**
535
- * Force facet update
536
- */
537
- updateFacet?: string,
538
- }): CancelablePromise<Record<string, any>> {
539
- return __request(OpenAPI, {
540
- method: 'GET',
541
- url: '/api/search/personalized-catalog/{username}/',
542
- path: {
543
- 'username': username,
544
- },
545
- query: {
546
- 'allow_skill_search': allowSkillSearch,
547
- 'alphabetical': alphabetical,
548
- 'certificate': certificate,
549
- 'content': content,
550
- 'course_id': courseId,
551
- 'duration': duration,
552
- 'language': language,
553
- 'level': level,
554
- 'limit': limit,
555
- 'offset': offset,
556
- 'order_ascending': orderAscending,
557
- 'order_by': orderBy,
558
- 'pathway_id': pathwayId,
559
- 'price': price,
560
- 'program_id': programId,
561
- 'program_type': programType,
562
- 'promotion': promotion,
563
- 'query': query,
564
- 'recommended': recommended,
565
- 'resource_id': resourceId,
566
- 'resource_type': resourceType,
567
- 'return_facet': returnFacet,
568
- 'return_items': returnItems,
569
- 'role_id': roleId,
570
- 'self_paced': selfPaced,
571
- 'skill_id': skillId,
572
- 'skills': skills,
573
- 'subject': subject,
574
- 'tags': tags,
575
- 'tenant': tenant,
576
- 'topics': topics,
577
- 'update_facet': updateFacet,
578
- },
579
- });
580
- }
581
- /**
582
- * Search and filter users within a specific organization/tenant.
487
+ * Search and filter AI mentors across the platform.
583
488
  *
584
- * This endpoint provides a search interface for discovering users within an organization,
585
- * with support for filtering by departments, pagination, and faceted filtering.
586
- *
587
- * Path Parameters:
588
- * org (str): The organization/tenant identifier
589
- * username (str): The username of the user making the request
489
+ * This endpoint provides a powerful search interface for discovering AI mentors
490
+ * with support for filtering, pagination, and detailed mentor information.
590
491
  *
591
492
  * Query Parameters:
592
- * # Search parameters
593
- * query (str, optional): Search term to filter users by name, username, or email
594
- *
595
- * # Department filtering
596
- * department_mode (bool, optional): Enable department-based filtering (default: false)
597
- * user_department (bool, optional): Legacy parameter for department_mode (default: false)
598
- * department (list, optional): Filter by specific departments
493
+ * # Identification parameters (for detail view)
494
+ * id (int, optional): Retrieve a specific mentor by ID
495
+ * unique_id (uuid, optional): Retrieve a specific mentor by UUID
599
496
  *
600
- * # Additional filters
601
- * role (list, optional): Filter by user role
602
- * status (list, optional): Filter by user status (active, inactive)
603
- * joined_date (list, optional): Filter by join date range
604
- * last_login (list, optional): Filter by last login date range
497
+ * # Search and filtering parameters
498
+ * query (str, optional): Search term to filter mentors by name or description
499
+ * tenant (str, optional): Filter by tenant/organization
500
+ * llm (list, optional): Filter by language model type
501
+ * audience (list, optional): Filter by target audience
502
+ * category (list, optional): Filter by mentor category
503
+ * tags (list, optional): Filter by tags
504
+ * created_by (str, optional): Filter mentors created by specific user
605
505
  *
606
- * # Pagination
607
- * limit (int, optional): Number of results per page (default: 10)
506
+ * # Sorting and pagination
507
+ * order_by (str, optional): Field to sort results by ('created_at', 'recently_accessed_at')
508
+ * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
509
+ * limit (int, optional): Number of results per page (default: 12, max: 100)
608
510
  * offset (int, optional): Starting position for pagination
609
511
  *
610
512
  * Returns:
611
- * A JSON response containing:
612
- * ```
513
+ * For detail view (when id or unique_id is provided):
514
+ * A JSON response containing a single mentor's details:
613
515
  * {
614
- * "results": [
615
- * {
616
- * "id": 123,
617
- * "username": "john.doe",
618
- * "email": "john.doe@example.com",
619
- * "first_name": "John",
620
- * "last_name": "Doe",
621
- * "full_name": "John Doe",
622
- * "profile_image": "https://example.com/profiles/john-doe.jpg",
623
- * "role": "Student",
624
- * "departments": ["Computer Science", "Data Science"],
625
- * "status": "active",
626
- * "joined_date": "2023-01-15T12:00:00Z",
627
- * "last_login": "2023-06-20T15:30:00Z",
628
- * "metadata": {
629
- * "location": "New York",
630
- * "title": "Software Engineer",
631
- * "bio": "Experienced software engineer with a passion for education"
632
- * }
516
+ * "id": 123,
517
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
518
+ * "name": "Professor Smith",
519
+ * "description": "AI mentor specializing in computer science",
520
+ * "image_url": "https://example.com/images/prof-smith.jpg",
521
+ * "llm": {
522
+ * "id": 1,
523
+ * "name": "GPT-4",
524
+ * "description": "Advanced language model"
525
+ * },
526
+ * "audience": {
527
+ * "id": 2,
528
+ * "name": "College Students",
529
+ * "description": "For university-level learners"
530
+ * },
531
+ * "category": "Computer Science",
532
+ * "tags": ["programming", "algorithms", "data structures"],
533
+ * "created_at": "2023-01-15T12:00:00Z",
534
+ * "recently_accessed_at": "2023-06-20T15:30:00Z",
535
+ * "platform": {
536
+ * "id": 1,
537
+ * "name": "Example University",
538
+ * "key": "example-university"
633
539
  * },
634
- * // Additional user objects...
635
- * ],
636
- * "count": 50,
637
- * "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
638
- * "previous": null,
639
- * "current_page": 1,
640
- * "total_pages": 5,
641
- * "facets": {
642
- * "role": [
643
- * {"key": "Student", "doc_count": 30},
644
- * {"key": "Instructor", "doc_count": 15},
645
- * {"key": "Admin", "doc_count": 5}
646
- * ],
647
- * "department": [
648
- * {"key": "Computer Science", "doc_count": 20},
649
- * {"key": "Data Science", "doc_count": 15},
650
- * {"key": "Business", "doc_count": 10},
651
- * {"key": "Engineering", "doc_count": 5}
652
- * ],
653
- * "status": [
654
- * {"key": "active", "doc_count": 45},
655
- * {"key": "inactive", "doc_count": 5}
656
- * ]
657
- * }
658
- * }
659
- * ```
660
- * Error Responses:
661
- * 400 Bad Request: If the request parameters are invalid
662
- * 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
663
- * 404 Not Found: If the user or organization doesn't exist
664
- * 500 Internal Server Error: If an unexpected error occurs
665
- *
666
- * Access Control:
667
- * - The requesting user must have an active account in the specified organization
668
- * - When department_mode is enabled, the user must be an admin of at least one department
669
- * - Department filtering restricts results to users in departments where the requesting user is an admin
670
- * @returns UserSearchResponse
671
- * @throws ApiError
672
- */
673
- public static searchUsersOrgsUsersRetrieve({
674
- org,
675
- username,
676
- department,
677
- educationDegree,
678
- educationFieldOfStudy,
679
- educationInstitution,
680
- includeMembershipData = false,
681
- limit = 10,
682
- offset,
683
- q,
684
- userResumeCompany,
685
- userResumeIndustry,
686
- userResumeJobTitle,
687
- userResumeLocation,
688
- userResumeSkills,
689
- }: {
690
- org: string,
691
- username: string,
692
- /**
693
- * Filter by department names
694
- */
695
- department?: Array<string>,
696
- /**
697
- * Filter by degree
698
- */
699
- educationDegree?: string,
700
- /**
701
- * Filter by field of study
702
- */
703
- educationFieldOfStudy?: string,
704
- /**
705
- * Filter by institution
706
- */
707
- educationInstitution?: string,
708
- /**
709
- * Include user group membership data in results
710
- */
711
- includeMembershipData?: boolean,
712
- /**
713
- * Number of results per page
714
- */
715
- limit?: number,
716
- /**
717
- * Starting position for pagination
718
- */
719
- offset?: number,
720
- /**
721
- * Search term to filter users by name, email, or other attributes
722
- */
723
- q?: string,
724
- /**
725
- * Filter by company
726
- */
727
- userResumeCompany?: string,
728
- /**
729
- * Filter by industry
730
- */
731
- userResumeIndustry?: string,
732
- /**
733
- * Filter by job title
734
- */
735
- userResumeJobTitle?: string,
736
- /**
737
- * Filter by location
738
- */
739
- userResumeLocation?: string,
740
- /**
741
- * Filter by skills
742
- */
743
- userResumeSkills?: string,
744
- }): CancelablePromise<UserSearchResponse> {
745
- return __request(OpenAPI, {
746
- method: 'GET',
747
- url: '/api/search/users/orgs/{org}/users/{username}/',
748
- path: {
749
- 'org': org,
750
- 'username': username,
751
- },
752
- query: {
753
- 'department': department,
754
- 'education__degree': educationDegree,
755
- 'education__field_of_study': educationFieldOfStudy,
756
- 'education__institution': educationInstitution,
757
- 'include_membership_data': includeMembershipData,
758
- 'limit': limit,
759
- 'offset': offset,
760
- 'q': q,
761
- 'user_resume__company': userResumeCompany,
762
- 'user_resume__industry': userResumeIndustry,
763
- 'user_resume__job_title': userResumeJobTitle,
764
- 'user_resume__location': userResumeLocation,
765
- 'user_resume__skills': userResumeSkills,
766
- },
767
- errors: {
768
- 400: `Bad request`,
769
- 403: `Forbidden`,
770
- 404: `Not found`,
771
- 500: `Server error`,
772
- },
773
- });
774
- }
775
- }
540
+ * "visibility": "public",
541
+ * "settings": {
542
+ * "temperature": 0.7,
543
+ * "max_tokens": 1024,
544
+ * "system_prompt": "You are Professor Smith, an expert in computer science..."
545
+ * }
546
+ * }
547
+ *
548
+ * For list view:
549
+ * A JSON response containing:
550
+ * {
551
+ * "results": [
552
+ * {
553
+ * "id": 123,
554
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
555
+ * "name": "Professor Smith",
556
+ * "description": "AI mentor specializing in computer science",
557
+ * "image_url": "https://example.com/images/prof-smith.jpg",
558
+ * "llm": {"id": 1, "name": "GPT-4"},
559
+ * "audience": {"id": 2, "name": "College Students"},
560
+ * "category": "Computer Science",
561
+ * "tags": ["programming", "algorithms"],
562
+ * "created_at": "2023-01-15T12:00:00Z",
563
+ * "recently_accessed_at": "2023-06-20T15:30:00Z"
564
+ * },
565
+ * // Additional mentor objects...
566
+ * ],
567
+ * "count": 50,
568
+ * "next": "https://api.example.com/api/search/mentors/?limit=12&offset=12",
569
+ * "previous": null,
570
+ * "current_page": 1,
571
+ * "num_pages": 5,
572
+ * "facets": {
573
+ * "llm": [
574
+ * {"key": "GPT-4", "doc_count": 30},
575
+ * {"key": "Claude", "doc_count": 20}
576
+ * ],
577
+ * "audience": [
578
+ * {"key": "College Students", "doc_count": 35},
579
+ * {"key": "Professionals", "doc_count": 15}
580
+ * ],
581
+ * "category": [
582
+ * {"key": "Computer Science", "doc_count": 25},
583
+ * {"key": "Mathematics", "doc_count": 15},
584
+ * {"key": "Business", "doc_count": 10}
585
+ * ]
586
+ * }
587
+ * }
588
+ *
589
+ * Error Responses:
590
+ * 400 Bad Request: If the request parameters are invalid
591
+ * 404 Not Found: If the requested mentor doesn't exist
592
+ * 500 Internal Server Error: If an unexpected error occurs
593
+ *
594
+ * Notes:
595
+ * - Results are cached for performance
596
+ * - Public mentors are visible to all users
597
+ * - Private mentors are only visible to authorized users
598
+ * @returns MentorSearchResponse
599
+ * @throws ApiError
600
+ */
601
+ public static searchMentorsRetrieve({
602
+ audience,
603
+ category,
604
+ createdBy,
605
+ featured,
606
+ id,
607
+ includeMainPublicMentors = false,
608
+ limit = 12,
609
+ llm,
610
+ offset,
611
+ orderBy,
612
+ orderDirection = 'desc',
613
+ query,
614
+ tags,
615
+ tenant,
616
+ uniqueId,
617
+ }: {
618
+ /**
619
+ * Filter by target audience
620
+ */
621
+ audience?: Array<string>,
622
+ /**
623
+ * Filter by mentor category
624
+ */
625
+ category?: Array<string>,
626
+ /**
627
+ * Filter mentors created by specific user
628
+ */
629
+ createdBy?: string,
630
+ /**
631
+ * Filter by featured status
632
+ */
633
+ featured?: boolean,
634
+ /**
635
+ * Retrieve a specific mentor by ID
636
+ */
637
+ id?: number,
638
+ /**
639
+ * Include public mentors from main tenant
640
+ */
641
+ includeMainPublicMentors?: boolean,
642
+ /**
643
+ * Number of results per page
644
+ */
645
+ limit?: number,
646
+ /**
647
+ * Filter by language model type
648
+ */
649
+ llm?: Array<string>,
650
+ /**
651
+ * Starting position for pagination
652
+ */
653
+ offset?: number,
654
+ /**
655
+ * Field to sort results by ('created_at', 'recently_accessed_at')
656
+ */
657
+ orderBy?: string,
658
+ /**
659
+ * Sort direction ('asc' or 'desc')
660
+ */
661
+ orderDirection?: string,
662
+ /**
663
+ * Search term to filter mentors by name or description
664
+ */
665
+ query?: string,
666
+ /**
667
+ * Filter by tags
668
+ */
669
+ tags?: Array<string>,
670
+ /**
671
+ * Filter by tenant/organization
672
+ */
673
+ tenant?: string,
674
+ /**
675
+ * Retrieve a specific mentor by UUID
676
+ */
677
+ uniqueId?: string,
678
+ }): CancelablePromise<MentorSearchResponse> {
679
+ return __request(OpenAPI, {
680
+ method: 'GET',
681
+ url: '/api/search/mentors/',
682
+ query: {
683
+ 'audience': audience,
684
+ 'category': category,
685
+ 'created_by': createdBy,
686
+ 'featured': featured,
687
+ 'id': id,
688
+ 'include_main_public_mentors': includeMainPublicMentors,
689
+ 'limit': limit,
690
+ 'llm': llm,
691
+ 'offset': offset,
692
+ 'order_by': orderBy,
693
+ 'order_direction': orderDirection,
694
+ 'query': query,
695
+ 'tags': tags,
696
+ 'tenant': tenant,
697
+ 'unique_id': uniqueId,
698
+ },
699
+ errors: {
700
+ 400: `Bad request`,
701
+ 500: `Server error`,
702
+ },
703
+ });
704
+ }
705
+ /**
706
+ * Search and filter documents associated with a specific mentor
707
+ * @returns DocumentSearchResponse
708
+ * @throws ApiError
709
+ */
710
+ public static searchMentorsDocumentsRetrieve({
711
+ mentorUniqueId,
712
+ access,
713
+ documentType,
714
+ limit = 12,
715
+ offset,
716
+ orderBy,
717
+ orderDirection = 'desc',
718
+ platformKey,
719
+ query,
720
+ trainingStatus,
721
+ }: {
722
+ mentorUniqueId: string,
723
+ /**
724
+ * Filter by access level (e.g., 'public', 'private')
725
+ */
726
+ access?: string,
727
+ /**
728
+ * Filter by document type (e.g., 'pdf', 'text')
729
+ */
730
+ documentType?: string,
731
+ /**
732
+ * Number of results per page
733
+ */
734
+ limit?: number,
735
+ /**
736
+ * Starting position for pagination
737
+ */
738
+ offset?: number,
739
+ /**
740
+ * Field to sort results by ('date_created', 'last_modified', 'document_name')
741
+ */
742
+ orderBy?: string,
743
+ /**
744
+ * Sort direction ('asc' or 'desc')
745
+ */
746
+ orderDirection?: string,
747
+ /**
748
+ * Filter by platform key
749
+ */
750
+ platformKey?: string,
751
+ /**
752
+ * Search term to filter documents by name or content
753
+ */
754
+ query?: string,
755
+ /**
756
+ * Filter by training status (e.g., 'trained', 'pending')
757
+ */
758
+ trainingStatus?: string,
759
+ }): CancelablePromise<DocumentSearchResponse> {
760
+ return __request(OpenAPI, {
761
+ method: 'GET',
762
+ url: '/api/search/mentors/{mentor_unique_id}/documents/',
763
+ path: {
764
+ 'mentor_unique_id': mentorUniqueId,
765
+ },
766
+ query: {
767
+ 'access': access,
768
+ 'document_type': documentType,
769
+ 'limit': limit,
770
+ 'offset': offset,
771
+ 'order_by': orderBy,
772
+ 'order_direction': orderDirection,
773
+ 'platform_key': platformKey,
774
+ 'query': query,
775
+ 'training_status': trainingStatus,
776
+ },
777
+ errors: {
778
+ 400: `Bad request`,
779
+ 404: `Mentor not found`,
780
+ 500: `Server error`,
781
+ },
782
+ });
783
+ }
784
+ /**
785
+ * Handle GET requests for tenant-specific mentor search.
786
+ *
787
+ * Args:
788
+ * request: HTTP request object
789
+ * org: Tenant/organization key
790
+ * username: Username of the user making the request
791
+ *
792
+ * Returns:
793
+ * Response: DRF Response object with search results
794
+ * @returns MentorSearchResponse
795
+ * @throws ApiError
796
+ */
797
+ public static searchOrgsUsersMentorsRetrieve({
798
+ org,
799
+ username,
800
+ audience,
801
+ category,
802
+ createdBy,
803
+ featured,
804
+ id,
805
+ includeMainPublicMentors = false,
806
+ limit = 12,
807
+ llm,
808
+ offset,
809
+ orderBy,
810
+ orderDirection = 'desc',
811
+ query,
812
+ tags,
813
+ tenant,
814
+ uniqueId,
815
+ }: {
816
+ org: string,
817
+ username: string,
818
+ /**
819
+ * Filter by target audience
820
+ */
821
+ audience?: Array<string>,
822
+ /**
823
+ * Filter by mentor category
824
+ */
825
+ category?: Array<string>,
826
+ /**
827
+ * Filter mentors created by specific user
828
+ */
829
+ createdBy?: string,
830
+ /**
831
+ * Filter by featured status
832
+ */
833
+ featured?: boolean,
834
+ /**
835
+ * Retrieve a specific mentor by ID
836
+ */
837
+ id?: number,
838
+ /**
839
+ * Include public mentors from main tenant
840
+ */
841
+ includeMainPublicMentors?: boolean,
842
+ /**
843
+ * Number of results per page
844
+ */
845
+ limit?: number,
846
+ /**
847
+ * Filter by language model type
848
+ */
849
+ llm?: Array<string>,
850
+ /**
851
+ * Starting position for pagination
852
+ */
853
+ offset?: number,
854
+ /**
855
+ * Field to sort results by ('created_at', 'recently_accessed_at')
856
+ */
857
+ orderBy?: string,
858
+ /**
859
+ * Sort direction ('asc' or 'desc')
860
+ */
861
+ orderDirection?: string,
862
+ /**
863
+ * Search term to filter mentors by name or description
864
+ */
865
+ query?: string,
866
+ /**
867
+ * Filter by tags
868
+ */
869
+ tags?: Array<string>,
870
+ /**
871
+ * Filter by tenant/organization
872
+ */
873
+ tenant?: string,
874
+ /**
875
+ * Retrieve a specific mentor by UUID
876
+ */
877
+ uniqueId?: string,
878
+ }): CancelablePromise<MentorSearchResponse> {
879
+ return __request(OpenAPI, {
880
+ method: 'GET',
881
+ url: '/api/search/orgs/{org}/users/{username}/mentors/',
882
+ path: {
883
+ 'org': org,
884
+ 'username': username,
885
+ },
886
+ query: {
887
+ 'audience': audience,
888
+ 'category': category,
889
+ 'created_by': createdBy,
890
+ 'featured': featured,
891
+ 'id': id,
892
+ 'include_main_public_mentors': includeMainPublicMentors,
893
+ 'limit': limit,
894
+ 'llm': llm,
895
+ 'offset': offset,
896
+ 'order_by': orderBy,
897
+ 'order_direction': orderDirection,
898
+ 'query': query,
899
+ 'tags': tags,
900
+ 'tenant': tenant,
901
+ 'unique_id': uniqueId,
902
+ },
903
+ errors: {
904
+ 400: `Bad request`,
905
+ 403: `Forbidden - user does not have access`,
906
+ 500: `Server error`,
907
+ },
908
+ });
909
+ }
910
+ /**
911
+ * Search and filter AI prompts for a specific user within a tenant.
912
+ *
913
+ * This endpoint extends the base prompt search functionality but filters results
914
+ * to only show prompts that are available to a specific user within a specific
915
+ * organization/tenant.
916
+ *
917
+ * Path Parameters:
918
+ * org (str): The organization/tenant identifier
919
+ * username (str): The username to filter prompts for
920
+ *
921
+ * Query Parameters:
922
+ * Same as PromptSearchView, plus:
923
+ *
924
+ * # Identification parameters (for detail view)
925
+ * id (int, optional): Retrieve a specific prompt by ID
926
+ *
927
+ * Returns:
928
+ * Same format as PromptSearchView, but filtered to only include prompts
929
+ * that the specified user has access to within the specified organization.
930
+ *
931
+ * Error Responses:
932
+ * 400 Bad Request: If the request parameters are invalid
933
+ * 403 Forbidden: If the requested prompt exists but the user doesn't have access
934
+ * 404 Not Found: If the requested prompt doesn't exist
935
+ * 500 Internal Server Error: If an unexpected error occurs
936
+ *
937
+ * Access Control:
938
+ * - Results are filtered based on user's permissions within the organization
939
+ * - Private prompts are only visible to authorized users
940
+ * @returns PromptSearchResponse
941
+ * @throws ApiError
942
+ */
943
+ public static searchOrgsUsersPromptsRetrieve({
944
+ org,
945
+ username,
946
+ alphabetical = false,
947
+ category,
948
+ filterFacet,
949
+ language,
950
+ limit = 10,
951
+ mentor,
952
+ offset,
953
+ orderDirection = 'desc',
954
+ query,
955
+ sortBy,
956
+ style,
957
+ tenant,
958
+ tone,
959
+ }: {
960
+ org: string,
961
+ username: string,
962
+ /**
963
+ * Sort alphabetically
964
+ */
965
+ alphabetical?: boolean,
966
+ /**
967
+ * Filter by prompt category
968
+ */
969
+ category?: string,
970
+ /**
971
+ * If true, return only facets without results
972
+ */
973
+ filterFacet?: boolean,
974
+ /**
975
+ * Filter by prompt language
976
+ */
977
+ language?: string,
978
+ /**
979
+ * Number of results per page
980
+ */
981
+ limit?: number,
982
+ /**
983
+ * Filter by mentor UUID
984
+ */
985
+ mentor?: string,
986
+ /**
987
+ * Starting position for pagination
988
+ */
989
+ offset?: number,
990
+ /**
991
+ * Sort direction ('asc' or 'desc')
992
+ */
993
+ orderDirection?: string,
994
+ /**
995
+ * Search term to filter prompts by name or content
996
+ */
997
+ query?: string,
998
+ /**
999
+ * Field to sort results by
1000
+ */
1001
+ sortBy?: string,
1002
+ /**
1003
+ * Filter by prompt style
1004
+ */
1005
+ style?: string,
1006
+ /**
1007
+ * Filter by tenant/organization
1008
+ */
1009
+ tenant?: string,
1010
+ /**
1011
+ * Filter by prompt tone
1012
+ */
1013
+ tone?: string,
1014
+ }): CancelablePromise<PromptSearchResponse> {
1015
+ return __request(OpenAPI, {
1016
+ method: 'GET',
1017
+ url: '/api/search/orgs/{org}/users/{username}/prompts/',
1018
+ path: {
1019
+ 'org': org,
1020
+ 'username': username,
1021
+ },
1022
+ query: {
1023
+ 'alphabetical': alphabetical,
1024
+ 'category': category,
1025
+ 'filter_facet': filterFacet,
1026
+ 'language': language,
1027
+ 'limit': limit,
1028
+ 'mentor': mentor,
1029
+ 'offset': offset,
1030
+ 'order_direction': orderDirection,
1031
+ 'query': query,
1032
+ 'sort_by': sortBy,
1033
+ 'style': style,
1034
+ 'tenant': tenant,
1035
+ 'tone': tone,
1036
+ },
1037
+ errors: {
1038
+ 400: `Bad request`,
1039
+ 403: `Forbidden`,
1040
+ 404: `Not found`,
1041
+ 500: `Server error`,
1042
+ },
1043
+ });
1044
+ }
1045
+ /**
1046
+ * Determine whether to serve a detail view or a list view.
1047
+ * @returns RecommendedCoursesResponse
1048
+ * @throws ApiError
1049
+ */
1050
+ public static searchOrgsUsersRecommendedRetrieve({
1051
+ org,
1052
+ username,
1053
+ certificate,
1054
+ content,
1055
+ courseId,
1056
+ duration,
1057
+ language,
1058
+ level,
1059
+ limit = 12,
1060
+ offset,
1061
+ pathwayId,
1062
+ price,
1063
+ programId,
1064
+ programType,
1065
+ query,
1066
+ resourceId,
1067
+ resourceType,
1068
+ roleId,
1069
+ selfPaced,
1070
+ skillId,
1071
+ skills,
1072
+ subject,
1073
+ tags,
1074
+ tenant,
1075
+ topics,
1076
+ }: {
1077
+ org: string,
1078
+ username: string,
1079
+ /**
1080
+ * Filter by certificate type
1081
+ */
1082
+ certificate?: Array<string>,
1083
+ /**
1084
+ * Content types to include in recommendations (courses, programs, pathways, skills, roles, resources)
1085
+ */
1086
+ content?: Array<string>,
1087
+ /**
1088
+ * Retrieve a specific course by ID
1089
+ */
1090
+ courseId?: string,
1091
+ /**
1092
+ * Filter by course duration range
1093
+ */
1094
+ duration?: Array<string>,
1095
+ /**
1096
+ * Filter by content language
1097
+ */
1098
+ language?: Array<string>,
1099
+ /**
1100
+ * Filter by difficulty level
1101
+ */
1102
+ level?: Array<string>,
1103
+ /**
1104
+ * Number of results per page
1105
+ */
1106
+ limit?: number,
1107
+ /**
1108
+ * Starting position for pagination
1109
+ */
1110
+ offset?: number,
1111
+ /**
1112
+ * Retrieve a specific pathway by ID
1113
+ */
1114
+ pathwayId?: string,
1115
+ /**
1116
+ * Filter by price/audit status
1117
+ */
1118
+ price?: string,
1119
+ /**
1120
+ * Retrieve a specific program by ID
1121
+ */
1122
+ programId?: string,
1123
+ /**
1124
+ * Filter by program type
1125
+ */
1126
+ programType?: Array<string>,
1127
+ /**
1128
+ * Search term to filter content by name or description
1129
+ */
1130
+ query?: string,
1131
+ /**
1132
+ * Retrieve a specific resource by ID
1133
+ */
1134
+ resourceId?: string,
1135
+ /**
1136
+ * Filter by resource type
1137
+ */
1138
+ resourceType?: Array<string>,
1139
+ /**
1140
+ * Retrieve a specific role by ID
1141
+ */
1142
+ roleId?: string,
1143
+ /**
1144
+ * Filter by course format (self-paced, instructor-led)
1145
+ */
1146
+ selfPaced?: Array<string>,
1147
+ /**
1148
+ * Retrieve a specific skill by ID
1149
+ */
1150
+ skillId?: string,
1151
+ /**
1152
+ * Filter by skills
1153
+ */
1154
+ skills?: Array<string>,
1155
+ /**
1156
+ * Filter by subject areas
1157
+ */
1158
+ subject?: Array<string>,
1159
+ /**
1160
+ * Filter by tags
1161
+ */
1162
+ tags?: Array<string>,
1163
+ /**
1164
+ * Filter by tenant/organization
1165
+ */
1166
+ tenant?: string,
1167
+ /**
1168
+ * Filter by topic areas
1169
+ */
1170
+ topics?: Array<string>,
1171
+ }): CancelablePromise<RecommendedCoursesResponse> {
1172
+ return __request(OpenAPI, {
1173
+ method: 'GET',
1174
+ url: '/api/search/orgs/{org}/users/{username}/recommended/',
1175
+ path: {
1176
+ 'org': org,
1177
+ 'username': username,
1178
+ },
1179
+ query: {
1180
+ 'certificate': certificate,
1181
+ 'content': content,
1182
+ 'course_id': courseId,
1183
+ 'duration': duration,
1184
+ 'language': language,
1185
+ 'level': level,
1186
+ 'limit': limit,
1187
+ 'offset': offset,
1188
+ 'pathway_id': pathwayId,
1189
+ 'price': price,
1190
+ 'program_id': programId,
1191
+ 'program_type': programType,
1192
+ 'query': query,
1193
+ 'resource_id': resourceId,
1194
+ 'resource_type': resourceType,
1195
+ 'role_id': roleId,
1196
+ 'self_paced': selfPaced,
1197
+ 'skill_id': skillId,
1198
+ 'skills': skills,
1199
+ 'subject': subject,
1200
+ 'tags': tags,
1201
+ 'tenant': tenant,
1202
+ 'topics': topics,
1203
+ },
1204
+ errors: {
1205
+ 400: `Bad request`,
1206
+ 404: `User not found`,
1207
+ 500: `Server error`,
1208
+ },
1209
+ });
1210
+ }
1211
+ /**
1212
+ * Determine whether to serve a detail view or a list view.
1213
+ * If any detail-identifying parameters are present (course_id, program_id, etc.)
1214
+ * the detail view is returned; otherwise the aggregated list view is returned.
1215
+ * @returns any
1216
+ * @throws ApiError
1217
+ */
1218
+ public static searchPersonalizedCatalogRetrieve({
1219
+ username,
1220
+ allowSkillSearch = false,
1221
+ alphabetical = false,
1222
+ certificate,
1223
+ content,
1224
+ courseId,
1225
+ duration,
1226
+ language,
1227
+ level,
1228
+ limit = 12,
1229
+ offset,
1230
+ orderAscending = false,
1231
+ orderBy,
1232
+ pathwayId,
1233
+ price,
1234
+ programId,
1235
+ programType,
1236
+ promotion,
1237
+ query,
1238
+ recommended = false,
1239
+ resourceId,
1240
+ resourceType,
1241
+ returnFacet = true,
1242
+ returnItems = false,
1243
+ roleId,
1244
+ selfPaced,
1245
+ skillId,
1246
+ skills,
1247
+ subject,
1248
+ tags,
1249
+ tenant,
1250
+ topics,
1251
+ updateFacet,
1252
+ }: {
1253
+ username: string,
1254
+ /**
1255
+ * Enable skill-based search
1256
+ */
1257
+ allowSkillSearch?: boolean,
1258
+ /**
1259
+ * Sort alphabetically by name
1260
+ */
1261
+ alphabetical?: boolean,
1262
+ /**
1263
+ * Filter by certificate type
1264
+ */
1265
+ certificate?: Array<string>,
1266
+ /**
1267
+ * Content types to include in results
1268
+ */
1269
+ content?: Array<string>,
1270
+ /**
1271
+ * Retrieve a specific course by ID
1272
+ */
1273
+ courseId?: string,
1274
+ /**
1275
+ * Filter by course duration range
1276
+ */
1277
+ duration?: Array<string>,
1278
+ /**
1279
+ * Filter by content language
1280
+ */
1281
+ language?: Array<string>,
1282
+ /**
1283
+ * Filter by difficulty level
1284
+ */
1285
+ level?: Array<string>,
1286
+ /**
1287
+ * Number of results per page
1288
+ */
1289
+ limit?: number,
1290
+ /**
1291
+ * Starting position for pagination
1292
+ */
1293
+ offset?: number,
1294
+ /**
1295
+ * Sort direction
1296
+ */
1297
+ orderAscending?: boolean,
1298
+ /**
1299
+ * Field to sort results by
1300
+ */
1301
+ orderBy?: string,
1302
+ /**
1303
+ * Retrieve a specific pathway by ID
1304
+ */
1305
+ pathwayId?: string,
1306
+ /**
1307
+ * Filter by price/audit status
1308
+ */
1309
+ price?: string,
1310
+ /**
1311
+ * Retrieve a specific program by ID
1312
+ */
1313
+ programId?: string,
1314
+ /**
1315
+ * Filter by program type
1316
+ */
1317
+ programType?: Array<string>,
1318
+ /**
1319
+ * Filter by promotion status
1320
+ */
1321
+ promotion?: Array<string>,
1322
+ /**
1323
+ * Search term to filter content by name or description
1324
+ */
1325
+ query?: string,
1326
+ /**
1327
+ * Show only recommended content
1328
+ */
1329
+ recommended?: boolean,
1330
+ /**
1331
+ * Retrieve a specific resource by ID
1332
+ */
1333
+ resourceId?: string,
1334
+ /**
1335
+ * Filter by resource type
1336
+ */
1337
+ resourceType?: Array<string>,
1338
+ /**
1339
+ * Include facet data in response
1340
+ */
1341
+ returnFacet?: boolean,
1342
+ /**
1343
+ * Include items in programs/pathways
1344
+ */
1345
+ returnItems?: boolean,
1346
+ /**
1347
+ * Retrieve a specific role by ID
1348
+ */
1349
+ roleId?: string,
1350
+ /**
1351
+ * Filter by course format
1352
+ */
1353
+ selfPaced?: Array<string>,
1354
+ /**
1355
+ * Retrieve a specific skill by ID
1356
+ */
1357
+ skillId?: string,
1358
+ /**
1359
+ * Filter by skills
1360
+ */
1361
+ skills?: Array<string>,
1362
+ /**
1363
+ * Filter by subject areas
1364
+ */
1365
+ subject?: Array<string>,
1366
+ /**
1367
+ * Filter by tags
1368
+ */
1369
+ tags?: Array<string>,
1370
+ /**
1371
+ * Filter by tenant/organization
1372
+ */
1373
+ tenant?: string,
1374
+ /**
1375
+ * Filter by topic areas
1376
+ */
1377
+ topics?: Array<string>,
1378
+ /**
1379
+ * Force facet update
1380
+ */
1381
+ updateFacet?: string,
1382
+ }): CancelablePromise<Record<string, any>> {
1383
+ return __request(OpenAPI, {
1384
+ method: 'GET',
1385
+ url: '/api/search/personalized-catalog/{username}/',
1386
+ path: {
1387
+ 'username': username,
1388
+ },
1389
+ query: {
1390
+ 'allow_skill_search': allowSkillSearch,
1391
+ 'alphabetical': alphabetical,
1392
+ 'certificate': certificate,
1393
+ 'content': content,
1394
+ 'course_id': courseId,
1395
+ 'duration': duration,
1396
+ 'language': language,
1397
+ 'level': level,
1398
+ 'limit': limit,
1399
+ 'offset': offset,
1400
+ 'order_ascending': orderAscending,
1401
+ 'order_by': orderBy,
1402
+ 'pathway_id': pathwayId,
1403
+ 'price': price,
1404
+ 'program_id': programId,
1405
+ 'program_type': programType,
1406
+ 'promotion': promotion,
1407
+ 'query': query,
1408
+ 'recommended': recommended,
1409
+ 'resource_id': resourceId,
1410
+ 'resource_type': resourceType,
1411
+ 'return_facet': returnFacet,
1412
+ 'return_items': returnItems,
1413
+ 'role_id': roleId,
1414
+ 'self_paced': selfPaced,
1415
+ 'skill_id': skillId,
1416
+ 'skills': skills,
1417
+ 'subject': subject,
1418
+ 'tags': tags,
1419
+ 'tenant': tenant,
1420
+ 'topics': topics,
1421
+ 'update_facet': updateFacet,
1422
+ },
1423
+ });
1424
+ }
1425
+ /**
1426
+ * Search and filter AI prompts across the platform.
1427
+ *
1428
+ * This endpoint provides a search interface for discovering AI prompts
1429
+ * with support for filtering, pagination, and detailed prompt information.
1430
+ *
1431
+ * Query Parameters:
1432
+ * # Identification parameters (for detail view)
1433
+ * id (int, optional): Retrieve a specific prompt by ID
1434
+ *
1435
+ * # Search and filtering parameters
1436
+ * query (str, optional): Search term to filter prompts by name or content
1437
+ * category (str, optional): Filter by prompt category
1438
+ * language (str, optional): Filter by prompt language
1439
+ * style (str, optional): Filter by writing style
1440
+ * tone (str, optional): Filter by tone
1441
+ * tenant (str, optional): Filter by tenant/organization
1442
+ * mentor (str, optional): Filter by associated mentor (UUID)
1443
+ *
1444
+ * # Sorting and pagination
1445
+ * sort_by (str, optional): Field to sort results by
1446
+ * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
1447
+ * alphabetical (bool, optional): Sort alphabetically by name (default: false)
1448
+ * limit (int, optional): Number of results per page (default: 10)
1449
+ * offset (int, optional): Starting position for pagination
1450
+ *
1451
+ * # Special parameters
1452
+ * filter_facet (any, optional): If present, return only facets without results
1453
+ *
1454
+ * Returns:
1455
+ * For detail view (when id is provided):
1456
+ * A JSON response containing a single prompt's details:
1457
+ * {
1458
+ * "id": 456,
1459
+ * "name": "Essay Writing Guide",
1460
+ * "content": "Write a well-structured essay on the following topic: {{topic}}...",
1461
+ * "category": "Academic Writing",
1462
+ * "language": "English",
1463
+ * "style": "Formal",
1464
+ * "tone": "Professional",
1465
+ * "mentor": {
1466
+ * "id": 123,
1467
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
1468
+ * "name": "Professor Smith"
1469
+ * },
1470
+ * "platform": {
1471
+ * "id": 1,
1472
+ * "name": "Example University",
1473
+ * "key": "example-university"
1474
+ * },
1475
+ * "created_at": "2023-02-10T09:15:00Z",
1476
+ * "updated_at": "2023-05-05T14:20:00Z",
1477
+ * "visibility": "public",
1478
+ * "variables": ["topic", "length", "style"]
1479
+ * }
1480
+ *
1481
+ * For list view:
1482
+ * A JSON response containing:
1483
+ * {
1484
+ * "results": [
1485
+ * {
1486
+ * "id": 456,
1487
+ * "name": "Essay Writing Guide",
1488
+ * "content": "Write a well-structured essay on the following topic: {{topic}}...",
1489
+ * "category": "Academic Writing",
1490
+ * "language": "English",
1491
+ * "style": "Formal",
1492
+ * "tone": "Professional",
1493
+ * "mentor": {"id": 123, "name": "Professor Smith"},
1494
+ * "created_at": "2023-02-10T09:15:00Z",
1495
+ * "updated_at": "2023-05-05T14:20:00Z"
1496
+ * },
1497
+ * // Additional prompt objects...
1498
+ * ],
1499
+ * "count": 30,
1500
+ * "next": "?limit=10&offset=10",
1501
+ * "previous": null,
1502
+ * "current_page": 1,
1503
+ * "num_pages": 3,
1504
+ * "facets": {
1505
+ * "category": [
1506
+ * {"key": "Academic Writing", "doc_count": 15},
1507
+ * {"key": "Creative Writing", "doc_count": 10},
1508
+ * {"key": "Technical Documentation", "doc_count": 5}
1509
+ * ],
1510
+ * "language": [
1511
+ * {"key": "English", "doc_count": 25},
1512
+ * {"key": "Spanish", "doc_count": 5}
1513
+ * ],
1514
+ * "style": [
1515
+ * {"key": "Formal", "doc_count": 20},
1516
+ * {"key": "Casual", "doc_count": 10}
1517
+ * ],
1518
+ * "tone": [
1519
+ * {"key": "Professional", "doc_count": 15},
1520
+ * {"key": "Friendly", "doc_count": 10},
1521
+ * {"key": "Technical", "doc_count": 5}
1522
+ * ]
1523
+ * }
1524
+ * }
1525
+ *
1526
+ * Error Responses:
1527
+ * 400 Bad Request: If the request parameters are invalid
1528
+ * 403 Forbidden: If the requested prompt exists but is not publicly available
1529
+ * 404 Not Found: If the requested prompt doesn't exist
1530
+ * 500 Internal Server Error: If an unexpected error occurs
1531
+ *
1532
+ * Notes:
1533
+ * - Only publicly available prompts are returned by default
1534
+ * - When filtering by mentor, the mentor ID must be a valid UUID
1535
+ * @returns PromptSearchResponse
1536
+ * @throws ApiError
1537
+ */
1538
+ public static searchPromptsRetrieve({
1539
+ alphabetical = false,
1540
+ category,
1541
+ filterFacet,
1542
+ language,
1543
+ limit = 10,
1544
+ mentor,
1545
+ offset,
1546
+ orderDirection = 'desc',
1547
+ query,
1548
+ sortBy,
1549
+ style,
1550
+ tenant,
1551
+ tone,
1552
+ }: {
1553
+ /**
1554
+ * Sort alphabetically
1555
+ */
1556
+ alphabetical?: boolean,
1557
+ /**
1558
+ * Filter by prompt category
1559
+ */
1560
+ category?: string,
1561
+ /**
1562
+ * If true, return only facets without results
1563
+ */
1564
+ filterFacet?: boolean,
1565
+ /**
1566
+ * Filter by prompt language
1567
+ */
1568
+ language?: string,
1569
+ /**
1570
+ * Number of results per page
1571
+ */
1572
+ limit?: number,
1573
+ /**
1574
+ * Filter by mentor UUID
1575
+ */
1576
+ mentor?: string,
1577
+ /**
1578
+ * Starting position for pagination
1579
+ */
1580
+ offset?: number,
1581
+ /**
1582
+ * Sort direction ('asc' or 'desc')
1583
+ */
1584
+ orderDirection?: string,
1585
+ /**
1586
+ * Search term to filter prompts by name or content
1587
+ */
1588
+ query?: string,
1589
+ /**
1590
+ * Field to sort results by
1591
+ */
1592
+ sortBy?: string,
1593
+ /**
1594
+ * Filter by prompt style
1595
+ */
1596
+ style?: string,
1597
+ /**
1598
+ * Filter by tenant/organization
1599
+ */
1600
+ tenant?: string,
1601
+ /**
1602
+ * Filter by prompt tone
1603
+ */
1604
+ tone?: string,
1605
+ }): CancelablePromise<PromptSearchResponse> {
1606
+ return __request(OpenAPI, {
1607
+ method: 'GET',
1608
+ url: '/api/search/prompts/',
1609
+ query: {
1610
+ 'alphabetical': alphabetical,
1611
+ 'category': category,
1612
+ 'filter_facet': filterFacet,
1613
+ 'language': language,
1614
+ 'limit': limit,
1615
+ 'mentor': mentor,
1616
+ 'offset': offset,
1617
+ 'order_direction': orderDirection,
1618
+ 'query': query,
1619
+ 'sort_by': sortBy,
1620
+ 'style': style,
1621
+ 'tenant': tenant,
1622
+ 'tone': tone,
1623
+ },
1624
+ errors: {
1625
+ 400: `Bad request`,
1626
+ 500: `Server error`,
1627
+ },
1628
+ });
1629
+ }
1630
+ /**
1631
+ * Search and filter users within a specific organization/tenant.
1632
+ *
1633
+ * This endpoint provides a search interface for discovering users within an organization,
1634
+ * with support for filtering by departments, pagination, and faceted filtering.
1635
+ *
1636
+ * Path Parameters:
1637
+ * org (str): The organization/tenant identifier
1638
+ * username (str): The username of the user making the request
1639
+ *
1640
+ * Query Parameters:
1641
+ * # Search parameters
1642
+ * query (str, optional): Search term to filter users by name, username, or email
1643
+ *
1644
+ * # Department filtering
1645
+ * department_mode (bool, optional): Enable department-based filtering (default: false)
1646
+ * user_department (bool, optional): Legacy parameter for department_mode (default: false)
1647
+ * department (list, optional): Filter by specific departments
1648
+ *
1649
+ * # Additional filters
1650
+ * role (list, optional): Filter by user role
1651
+ * status (list, optional): Filter by user status (active, inactive)
1652
+ * joined_date (list, optional): Filter by join date range
1653
+ * last_login (list, optional): Filter by last login date range
1654
+ *
1655
+ * # Pagination
1656
+ * limit (int, optional): Number of results per page (default: 10)
1657
+ * offset (int, optional): Starting position for pagination
1658
+ *
1659
+ * Returns:
1660
+ * A JSON response containing:
1661
+ * ```
1662
+ * {
1663
+ * "results": [
1664
+ * {
1665
+ * "id": 123,
1666
+ * "username": "john.doe",
1667
+ * "email": "john.doe@example.com",
1668
+ * "first_name": "John",
1669
+ * "last_name": "Doe",
1670
+ * "full_name": "John Doe",
1671
+ * "profile_image": "https://example.com/profiles/john-doe.jpg",
1672
+ * "role": "Student",
1673
+ * "departments": ["Computer Science", "Data Science"],
1674
+ * "status": "active",
1675
+ * "joined_date": "2023-01-15T12:00:00Z",
1676
+ * "last_login": "2023-06-20T15:30:00Z",
1677
+ * "metadata": {
1678
+ * "location": "New York",
1679
+ * "title": "Software Engineer",
1680
+ * "bio": "Experienced software engineer with a passion for education"
1681
+ * }
1682
+ * },
1683
+ * // Additional user objects...
1684
+ * ],
1685
+ * "count": 50,
1686
+ * "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
1687
+ * "previous": null,
1688
+ * "current_page": 1,
1689
+ * "total_pages": 5,
1690
+ * "facets": {
1691
+ * "role": [
1692
+ * {"key": "Student", "doc_count": 30},
1693
+ * {"key": "Instructor", "doc_count": 15},
1694
+ * {"key": "Admin", "doc_count": 5}
1695
+ * ],
1696
+ * "department": [
1697
+ * {"key": "Computer Science", "doc_count": 20},
1698
+ * {"key": "Data Science", "doc_count": 15},
1699
+ * {"key": "Business", "doc_count": 10},
1700
+ * {"key": "Engineering", "doc_count": 5}
1701
+ * ],
1702
+ * "status": [
1703
+ * {"key": "active", "doc_count": 45},
1704
+ * {"key": "inactive", "doc_count": 5}
1705
+ * ]
1706
+ * }
1707
+ * }
1708
+ * ```
1709
+ * Error Responses:
1710
+ * 400 Bad Request: If the request parameters are invalid
1711
+ * 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
1712
+ * 404 Not Found: If the user or organization doesn't exist
1713
+ * 500 Internal Server Error: If an unexpected error occurs
1714
+ *
1715
+ * Access Control:
1716
+ * - The requesting user must have an active account in the specified organization
1717
+ * - When department_mode is enabled, the user must be an admin of at least one department
1718
+ * - Department filtering restricts results to users in departments where the requesting user is an admin
1719
+ * @returns UserSearchResponse
1720
+ * @throws ApiError
1721
+ */
1722
+ public static searchUsersOrgsUsersRetrieve({
1723
+ org,
1724
+ username,
1725
+ department,
1726
+ educationDegree,
1727
+ educationFieldOfStudy,
1728
+ educationInstitution,
1729
+ includeMembershipData = false,
1730
+ limit = 10,
1731
+ offset,
1732
+ q,
1733
+ userResumeCompany,
1734
+ userResumeIndustry,
1735
+ userResumeJobTitle,
1736
+ userResumeLocation,
1737
+ userResumeSkills,
1738
+ }: {
1739
+ org: string,
1740
+ username: string,
1741
+ /**
1742
+ * Filter by department names
1743
+ */
1744
+ department?: Array<string>,
1745
+ /**
1746
+ * Filter by degree
1747
+ */
1748
+ educationDegree?: string,
1749
+ /**
1750
+ * Filter by field of study
1751
+ */
1752
+ educationFieldOfStudy?: string,
1753
+ /**
1754
+ * Filter by institution
1755
+ */
1756
+ educationInstitution?: string,
1757
+ /**
1758
+ * Include user group membership data in results
1759
+ */
1760
+ includeMembershipData?: boolean,
1761
+ /**
1762
+ * Number of results per page
1763
+ */
1764
+ limit?: number,
1765
+ /**
1766
+ * Starting position for pagination
1767
+ */
1768
+ offset?: number,
1769
+ /**
1770
+ * Search term to filter users by name, email, or other attributes
1771
+ */
1772
+ q?: string,
1773
+ /**
1774
+ * Filter by company
1775
+ */
1776
+ userResumeCompany?: string,
1777
+ /**
1778
+ * Filter by industry
1779
+ */
1780
+ userResumeIndustry?: string,
1781
+ /**
1782
+ * Filter by job title
1783
+ */
1784
+ userResumeJobTitle?: string,
1785
+ /**
1786
+ * Filter by location
1787
+ */
1788
+ userResumeLocation?: string,
1789
+ /**
1790
+ * Filter by skills
1791
+ */
1792
+ userResumeSkills?: string,
1793
+ }): CancelablePromise<UserSearchResponse> {
1794
+ return __request(OpenAPI, {
1795
+ method: 'GET',
1796
+ url: '/api/search/users/orgs/{org}/users/{username}/',
1797
+ path: {
1798
+ 'org': org,
1799
+ 'username': username,
1800
+ },
1801
+ query: {
1802
+ 'department': department,
1803
+ 'education__degree': educationDegree,
1804
+ 'education__field_of_study': educationFieldOfStudy,
1805
+ 'education__institution': educationInstitution,
1806
+ 'include_membership_data': includeMembershipData,
1807
+ 'limit': limit,
1808
+ 'offset': offset,
1809
+ 'q': q,
1810
+ 'user_resume__company': userResumeCompany,
1811
+ 'user_resume__industry': userResumeIndustry,
1812
+ 'user_resume__job_title': userResumeJobTitle,
1813
+ 'user_resume__location': userResumeLocation,
1814
+ 'user_resume__skills': userResumeSkills,
1815
+ },
1816
+ errors: {
1817
+ 400: `Bad request`,
1818
+ 403: `Forbidden`,
1819
+ 404: `Not found`,
1820
+ 500: `Server error`,
1821
+ },
1822
+ });
1823
+ }
1824
+ }