@iblai/iblai-api 4.360.0-core → 4.362.0-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 (1217) hide show
  1. package/dist/index.cjs.js +23690 -2367
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +23681 -2368
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +23690 -2367
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +597 -1
  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/AccessibleMentorsByEmailRequest.d.ts +13 -0
  14. package/dist/types/models/AccessibleMentorsByEmailResponse.d.ts +13 -0
  15. package/dist/types/models/ActionBreakdown.d.ts +10 -0
  16. package/dist/types/models/AddMentorToDisclaimer.d.ts +12 -0
  17. package/dist/types/models/AdminIntegrationCredential.d.ts +17 -0
  18. package/dist/types/models/AgentSkill.d.ts +35 -0
  19. package/dist/types/models/AgentSkillResource.d.ts +17 -0
  20. package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
  21. package/dist/types/models/AnalyticsOverview.d.ts +7 -0
  22. package/dist/types/models/Answer.d.ts +11 -0
  23. package/dist/types/models/Artifact.d.ts +72 -0
  24. package/dist/types/models/ArtifactList.d.ts +50 -0
  25. package/dist/types/models/ArtifactVersion.d.ts +59 -0
  26. package/dist/types/models/AssumedKnowledge.d.ts +4 -0
  27. package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
  28. package/dist/types/models/AudioToTextRequest.d.ts +15 -0
  29. package/dist/types/models/AudioToTextResponse.d.ts +3 -0
  30. package/dist/types/models/AuthModeEnum.d.ts +12 -0
  31. package/dist/types/models/AuthScopeEnum.d.ts +10 -0
  32. package/dist/types/models/AuthTypeEnum.d.ts +10 -0
  33. package/dist/types/models/BaseFinanceResponse.d.ts +37 -0
  34. package/dist/types/models/BillingPeriod.d.ts +8 -0
  35. package/dist/types/models/Bot.d.ts +15 -0
  36. package/dist/types/models/BotCommand.d.ts +6 -0
  37. package/dist/types/models/BotCreate.d.ts +12 -0
  38. package/dist/types/models/Breakdown.d.ts +11 -0
  39. package/dist/types/models/CallAuthenticationRequest.d.ts +17 -0
  40. package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
  41. package/dist/types/models/CallConfiguration.d.ts +38 -0
  42. package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
  43. package/dist/types/models/ChatCompletionRequest.d.ts +27 -0
  44. package/dist/types/models/ChatHistory.d.ts +20 -0
  45. package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
  46. package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
  47. package/dist/types/models/ChatHistoryItem.d.ts +6 -0
  48. package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
  49. package/dist/types/models/ChatPrivacyModeEnum.d.ts +10 -0
  50. package/dist/types/models/ChatRunTracker.d.ts +34 -0
  51. package/dist/types/models/ChatRunTrackerStatusEnum.d.ts +10 -0
  52. package/dist/types/models/ChatSessionRequest.d.ts +19 -0
  53. package/dist/types/models/ChatSessionResponse.d.ts +8 -0
  54. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
  55. package/dist/types/models/ClawConfigGetResponse.d.ts +19 -0
  56. package/dist/types/models/ClawInstance.d.ts +51 -0
  57. package/dist/types/models/ClawInstanceStatusEnum.d.ts +10 -0
  58. package/dist/types/models/ClawMentorConfig.d.ts +27 -0
  59. package/dist/types/models/ClawModelProvider.d.ts +40 -0
  60. package/dist/types/models/ClawRpcError.d.ts +7 -0
  61. package/dist/types/models/ClawTypeEnum.d.ts +10 -0
  62. package/dist/types/models/ComparisonInfo.d.ts +29 -0
  63. package/dist/types/models/ConnectedService.d.ts +28 -0
  64. package/dist/types/models/ConversationChartPoint.d.ts +4 -0
  65. package/dist/types/models/ConversationDetailResponse.d.ts +4 -0
  66. package/dist/types/models/ConversationListItem.d.ts +21 -0
  67. package/dist/types/models/ConversationListResponse.d.ts +6 -0
  68. package/dist/types/models/ConversationMessage.d.ts +11 -0
  69. package/dist/types/models/ConversationRating.d.ts +6 -0
  70. package/dist/types/models/ConversationSummary.d.ts +5 -0
  71. package/dist/types/models/ConversationVolume.d.ts +4 -0
  72. package/dist/types/models/Conversations.d.ts +56 -0
  73. package/dist/types/models/ConversationsChart.d.ts +5 -0
  74. package/dist/types/models/Cost.d.ts +3 -0
  75. package/dist/types/models/CostPerTenant.d.ts +6 -0
  76. package/dist/types/models/CourseCreationTask.d.ts +36 -0
  77. package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
  78. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
  79. package/dist/types/models/CourseRecommendation.d.ts +49 -0
  80. package/dist/types/models/CrawlerPatternTypeEnum.d.ts +8 -0
  81. package/dist/types/models/CreateXblock.d.ts +37 -0
  82. package/dist/types/models/CredentialRequest.d.ts +14 -0
  83. package/dist/types/models/CronDelivery.d.ts +12 -0
  84. package/dist/types/models/CronDeliveryModeEnum.d.ts +10 -0
  85. package/dist/types/models/CronJobCreate.d.ts +22 -0
  86. package/dist/types/models/CronJobListResponse.d.ts +10 -0
  87. package/dist/types/models/CronJobResponse.d.ts +28 -0
  88. package/dist/types/models/CronPayload.d.ts +19 -0
  89. package/dist/types/models/CronPayloadKindEnum.d.ts +8 -0
  90. package/dist/types/models/CronRunAction.d.ts +7 -0
  91. package/dist/types/models/CronRunActionModeEnum.d.ts +8 -0
  92. package/dist/types/models/CronRunLogEntry.d.ts +25 -0
  93. package/dist/types/models/CronRunLogEntryStatusEnum.d.ts +10 -0
  94. package/dist/types/models/CronRunResult.d.ts +8 -0
  95. package/dist/types/models/CronRunsResponse.d.ts +10 -0
  96. package/dist/types/models/CronSchedule.d.ts +17 -0
  97. package/dist/types/models/CronScheduleKindEnum.d.ts +10 -0
  98. package/dist/types/models/CronStatusResponse.d.ts +14 -0
  99. package/dist/types/models/CrontabSchedule.d.ts +22 -0
  100. package/dist/types/models/CurrentUsersResponse.d.ts +8 -0
  101. package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
  102. package/dist/types/models/DataTypeEnum.d.ts +10 -0
  103. package/dist/types/models/Dataset.d.ts +12 -0
  104. package/dist/types/models/DatasetCreate.d.ts +8 -0
  105. package/dist/types/models/DatasetItem.d.ts +20 -0
  106. package/dist/types/models/DatasetItemBulkCreateResponse.d.ts +5 -0
  107. package/dist/types/models/DatasetItemCreate.d.ts +10 -0
  108. package/dist/types/models/DatasetItemInput.d.ts +7 -0
  109. package/dist/types/models/DatasetItemUpdate.d.ts +10 -0
  110. package/dist/types/models/DatasetItemUpdateStatusEnum.d.ts +8 -0
  111. package/dist/types/models/DatasetRunItem.d.ts +16 -0
  112. package/dist/types/models/DateRange.d.ts +4 -0
  113. package/dist/types/models/DeleteXblock.d.ts +9 -0
  114. package/dist/types/models/DeliveryStatusEnum.d.ts +12 -0
  115. package/dist/types/models/DeployStateEnum.d.ts +14 -0
  116. package/dist/types/models/Disclaimer.d.ts +17 -0
  117. package/dist/types/models/DisclaimerAgreement.d.ts +11 -0
  118. package/dist/types/models/DisclaimerScopeEnum.d.ts +8 -0
  119. package/dist/types/models/DiscordConfig.d.ts +7 -0
  120. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  121. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  122. package/dist/types/models/Document.d.ts +41 -0
  123. package/dist/types/models/DocumentFacet.d.ts +17 -0
  124. package/dist/types/models/DocumentFromPoolRequest.d.ts +10 -0
  125. package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
  126. package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
  127. package/dist/types/models/DomainAttach.d.ts +7 -0
  128. package/dist/types/models/EdxCourse.d.ts +12 -0
  129. package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
  130. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
  131. package/dist/types/models/EmailPromptDetail.d.ts +13 -0
  132. package/dist/types/models/EmailPromptList.d.ts +11 -0
  133. package/dist/types/models/EmailPromptSummary.d.ts +5 -0
  134. package/dist/types/models/EnforcementEnum.d.ts +8 -0
  135. package/dist/types/models/Entity.d.ts +11 -0
  136. package/dist/types/models/EntityTypeEnum.d.ts +10 -0
  137. package/dist/types/models/Error.d.ts +3 -0
  138. package/dist/types/models/ExperimentCreate.d.ts +8 -0
  139. package/dist/types/models/ExternalProxyInvoke.d.ts +19 -0
  140. package/dist/types/models/ExternalProxyServiceDetail.d.ts +23 -0
  141. package/dist/types/models/ExternalProxyServiceList.d.ts +14 -0
  142. package/dist/types/models/ExternalServiceInfo.d.ts +6 -0
  143. package/dist/types/models/FailureCategoryEnum.d.ts +28 -0
  144. package/dist/types/models/FallbackLLM.d.ts +47 -0
  145. package/dist/types/models/FallbackLLMCreate.d.ts +38 -0
  146. package/dist/types/models/FallbackLLMUpdate.d.ts +33 -0
  147. package/dist/types/models/FeedbackModeEnum.d.ts +10 -0
  148. package/dist/types/models/FileTypeEnum.d.ts +10 -0
  149. package/dist/types/models/FileUploadURLRequest.d.ts +21 -0
  150. package/dist/types/models/FileUploadURLResponse.d.ts +25 -0
  151. package/dist/types/models/FinanceDetailsResponse.d.ts +13 -0
  152. package/dist/types/models/FinanceFilters.d.ts +15 -0
  153. package/dist/types/models/FreeUsageCount.d.ts +3 -0
  154. package/dist/types/models/GoogleAgentDetail.d.ts +17 -0
  155. package/dist/types/models/GradeResult.d.ts +42 -0
  156. package/dist/types/models/GradeResultDetail.d.ts +71 -0
  157. package/dist/types/models/GradeResultMentor.d.ts +4 -0
  158. package/dist/types/models/GradeResultPlatform.d.ts +3 -0
  159. package/dist/types/models/GradeResultStudent.d.ts +5 -0
  160. package/dist/types/models/GraderCriterion.d.ts +15 -0
  161. package/dist/types/models/GradingModeEnum.d.ts +8 -0
  162. package/dist/types/models/GrantMentorAccessRequest.d.ts +9 -0
  163. package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
  164. package/dist/types/models/GuidedPrompt.d.ts +4 -0
  165. package/dist/types/models/GuidedPromptsResponse.d.ts +5 -0
  166. package/dist/types/models/HeygenAvatarCreate.d.ts +9 -0
  167. package/dist/types/models/HeygenAvatarCreateTypeEnum.d.ts +8 -0
  168. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
  169. package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
  170. package/dist/types/models/HeygenStreamingSession.d.ts +12 -0
  171. package/dist/types/models/HeygenStreamingTask.d.ts +10 -0
  172. package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
  173. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
  174. package/dist/types/models/HeygenTtsPreview.d.ts +7 -0
  175. package/dist/types/models/HeygenVideoCreate.d.ts +14 -0
  176. package/dist/types/models/HeygenVideoCreateTypeEnum.d.ts +8 -0
  177. package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
  178. package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
  179. package/dist/types/models/HeygenVoiceClone.d.ts +9 -0
  180. package/dist/types/models/HostingProject.d.ts +29 -0
  181. package/dist/types/models/HumanSupportTicket.d.ts +23 -0
  182. package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +10 -0
  183. package/dist/types/models/InputQuestion.d.ts +6 -0
  184. package/dist/types/models/IntegrationCredential.d.ts +25 -0
  185. package/dist/types/models/IntegrationCredentialSchema.d.ts +6 -0
  186. package/dist/types/models/IntegrationCredentialSchemaV2.d.ts +10 -0
  187. package/dist/types/models/InterfaceEnum.d.ts +8 -0
  188. package/dist/types/models/IntervalTypeEnum.d.ts +12 -0
  189. package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
  190. package/dist/types/models/InvalidQueryParameters.d.ts +3 -0
  191. package/dist/types/models/InvoiceReportResponse.d.ts +13 -0
  192. package/dist/types/models/JobRun.d.ts +11 -0
  193. package/dist/types/models/JudgeRecord.d.ts +18 -0
  194. package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
  195. package/dist/types/models/LLMCredentialResponse.d.ts +10 -0
  196. package/dist/types/models/LLMCredentialSchema.d.ts +6 -0
  197. package/dist/types/models/LLMJudge.d.ts +10 -0
  198. package/dist/types/models/LLMModelForTenant.d.ts +6 -0
  199. package/dist/types/models/LLMModelRegistryMinimal.d.ts +15 -0
  200. package/dist/types/models/LLMProviderMinimal.d.ts +29 -0
  201. package/dist/types/models/LLMQuestion.d.ts +15 -0
  202. package/dist/types/models/LLMResponse.d.ts +18 -0
  203. package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
  204. package/dist/types/models/LanguagesView.d.ts +5 -0
  205. package/dist/types/models/LinkCourseRequest.d.ts +3 -0
  206. package/dist/types/models/LinkCourseResponse.d.ts +5 -0
  207. package/dist/types/models/LlmProviderEnum.d.ts +10 -0
  208. package/dist/types/models/LlmUsageAnalyticsResponse.d.ts +8 -0
  209. package/dist/types/models/MCPServer.d.ts +65 -0
  210. package/dist/types/models/MCPServerConnection.d.ts +47 -0
  211. package/dist/types/models/MCPServerConnectionScopeEnum.d.ts +10 -0
  212. package/dist/types/models/MCPServerOauthFind.d.ts +5 -0
  213. package/dist/types/models/MCPServerTransportEnum.d.ts +10 -0
  214. package/dist/types/models/MaskedIntegrationCredential.d.ts +25 -0
  215. package/dist/types/models/MaskedLLMCredential.d.ts +10 -0
  216. package/dist/types/models/McpServerConfig.d.ts +17 -0
  217. package/dist/types/models/McpServerConfigTransportEnum.d.ts +8 -0
  218. package/dist/types/models/McpServerCreate.d.ts +8 -0
  219. package/dist/types/models/McpServerEntry.d.ts +8 -0
  220. package/dist/types/models/McpServerListResponse.d.ts +4 -0
  221. package/dist/types/models/MemoryComponentData.d.ts +5 -0
  222. package/dist/types/models/MemoryComponentDataKindEnum.d.ts +10 -0
  223. package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
  224. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
  225. package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
  226. package/dist/types/models/MemoryProgress.d.ts +8 -0
  227. package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
  228. package/dist/types/models/MemoryStatusView.d.ts +6 -0
  229. package/dist/types/models/Mentor.d.ts +265 -0
  230. package/dist/types/models/MentorAudience.d.ts +5 -0
  231. package/dist/types/models/MentorAuditLogEntry.d.ts +43 -0
  232. package/dist/types/models/MentorBreakdown.d.ts +9 -0
  233. package/dist/types/models/MentorCategory.d.ts +9 -0
  234. package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
  235. package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
  236. package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
  237. package/dist/types/models/MentorCreate.d.ts +247 -0
  238. package/dist/types/models/MentorCustomVoice.d.ts +4 -0
  239. package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
  240. package/dist/types/models/MentorData.d.ts +7 -0
  241. package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
  242. package/dist/types/models/MentorEval.d.ts +11 -0
  243. package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
  244. package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
  245. package/dist/types/models/MentorEvalReport.d.ts +10 -0
  246. package/dist/types/models/MentorEvalRequest.d.ts +8 -0
  247. package/dist/types/models/MentorFacet.d.ts +17 -0
  248. package/dist/types/models/MentorFork.d.ts +5 -0
  249. package/dist/types/models/MentorFromTemplate.d.ts +3 -0
  250. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +81 -0
  251. package/dist/types/models/MentorFromTemplateWithSettingRequestVoiceProviderEnum.d.ts +10 -0
  252. package/dist/types/models/MentorGraderConfig.d.ts +24 -0
  253. package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
  254. package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
  255. package/dist/types/models/MentorMetadata.d.ts +5 -0
  256. package/dist/types/models/MentorScenario.d.ts +6 -0
  257. package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
  258. package/dist/types/models/MentorSearchResponse.d.ts +35 -0
  259. package/dist/types/models/MentorSession.d.ts +4 -0
  260. package/dist/types/models/MentorSettings.d.ts +153 -0
  261. package/dist/types/models/MentorSettingsPublic.d.ts +97 -0
  262. package/dist/types/models/MentorSettingsRequest.d.ts +122 -0
  263. package/dist/types/models/MentorSettingsRequestVoiceProviderEnum.d.ts +12 -0
  264. package/dist/types/models/MentorSkillAssignment.d.ts +12 -0
  265. package/dist/types/models/MentorSummary.d.ts +5 -0
  266. package/dist/types/models/MentorType.d.ts +5 -0
  267. package/dist/types/models/MentorUserSetting.d.ts +4 -0
  268. package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
  269. package/dist/types/models/MentorWizard.d.ts +4 -0
  270. package/dist/types/models/MessageStatistics.d.ts +5 -0
  271. package/dist/types/models/MessageView.d.ts +12 -0
  272. package/dist/types/models/MessageViewRequest.d.ts +9 -0
  273. package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
  274. package/dist/types/models/Metadata.d.ts +5 -0
  275. package/dist/types/models/MetricChange.d.ts +4 -0
  276. package/dist/types/models/MetricInfo.d.ts +5 -0
  277. package/dist/types/models/ModalityEnum.d.ts +10 -0
  278. package/dist/types/models/ModelCost.d.ts +4 -0
  279. package/dist/types/models/ModerationLog.d.ts +12 -0
  280. package/dist/types/models/NameEnum.d.ts +15 -0
  281. package/dist/types/models/NestedArtifact.d.ts +55 -0
  282. package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
  283. package/dist/types/models/OAuthProvider.d.ts +24 -0
  284. package/dist/types/models/OAuthService.d.ts +18 -0
  285. package/dist/types/models/OAuthStartResponse.d.ts +3 -0
  286. package/dist/types/models/OauthCredentialsMasked.d.ts +10 -0
  287. package/dist/types/models/Observation.d.ts +31 -0
  288. package/dist/types/models/OfflineDocument.d.ts +19 -0
  289. package/dist/types/models/OverrideStatusEnum.d.ts +10 -0
  290. package/dist/types/models/OvertimeData.d.ts +13 -0
  291. package/dist/types/models/PageContent.d.ts +6 -0
  292. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
  293. package/dist/types/models/PaginatedAgentSkillList.d.ts +7 -0
  294. package/dist/types/models/PaginatedAgentSkillResourceList.d.ts +7 -0
  295. package/dist/types/models/PaginatedArtifactListList.d.ts +7 -0
  296. package/dist/types/models/PaginatedArtifactVersionList.d.ts +7 -0
  297. package/dist/types/models/PaginatedChatRunTrackerList.d.ts +7 -0
  298. package/dist/types/models/PaginatedClawInstanceList.d.ts +7 -0
  299. package/dist/types/models/PaginatedClawModelProviderList.d.ts +7 -0
  300. package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
  301. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
  302. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
  303. package/dist/types/models/PaginatedDatasetItemList.d.ts +7 -0
  304. package/dist/types/models/PaginatedDatasetList.d.ts +7 -0
  305. package/dist/types/models/PaginatedDisclaimerAgreementList.d.ts +7 -0
  306. package/dist/types/models/PaginatedDisclaimerList.d.ts +7 -0
  307. package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
  308. package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
  309. package/dist/types/models/PaginatedGoogleAgentDetailList.d.ts +7 -0
  310. package/dist/types/models/PaginatedGradeResultList.d.ts +7 -0
  311. package/dist/types/models/PaginatedGraderCriterionList.d.ts +7 -0
  312. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
  313. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
  314. package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +7 -0
  315. package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
  316. package/dist/types/models/PaginatedJudgeList.d.ts +7 -0
  317. package/dist/types/models/PaginatedMCPServerConnectionList.d.ts +7 -0
  318. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  319. package/dist/types/models/PaginatedMentorAuditLogEntryList.d.ts +7 -0
  320. package/dist/types/models/PaginatedMentorList.d.ts +7 -0
  321. package/dist/types/models/PaginatedMentorSkillAssignmentList.d.ts +7 -0
  322. package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
  323. package/dist/types/models/PaginatedObservationList.d.ts +7 -0
  324. package/dist/types/models/PaginatedOfflineDocumentList.d.ts +7 -0
  325. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
  326. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
  327. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
  328. package/dist/types/models/PaginatedProjectList.d.ts +7 -0
  329. package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
  330. package/dist/types/models/PaginatedRunList.d.ts +7 -0
  331. package/dist/types/models/PaginatedScoreConfigList.d.ts +7 -0
  332. package/dist/types/models/PaginatedScoreList.d.ts +7 -0
  333. package/dist/types/models/PaginatedTicketMessageList.d.ts +7 -0
  334. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
  335. package/dist/types/models/PaginatedTraceList.d.ts +7 -0
  336. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
  337. package/dist/types/models/PaginatedVeoVideoListList.d.ts +7 -0
  338. package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
  339. package/dist/types/models/PaginatedWorkflowList.d.ts +7 -0
  340. package/dist/types/models/Pagination.d.ts +16 -11
  341. package/dist/types/models/PatchedAgentSkill.d.ts +35 -0
  342. package/dist/types/models/PatchedAgentSkillResource.d.ts +17 -0
  343. package/dist/types/models/PatchedArtifact.d.ts +72 -0
  344. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  345. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  346. package/dist/types/models/PatchedCallConfiguration.d.ts +38 -0
  347. package/dist/types/models/PatchedClawConfigPatchRequest.d.ts +14 -0
  348. package/dist/types/models/PatchedClawInstance.d.ts +51 -0
  349. package/dist/types/models/PatchedClawMentorConfig.d.ts +27 -0
  350. package/dist/types/models/PatchedClawModelProvider.d.ts +40 -0
  351. package/dist/types/models/PatchedConversations.d.ts +56 -0
  352. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
  353. package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
  354. package/dist/types/models/PatchedCronJobPatch.d.ts +24 -0
  355. package/dist/types/models/PatchedDisclaimer.d.ts +17 -0
  356. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  357. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  358. package/dist/types/models/PatchedFallbackLLMUpdate.d.ts +33 -0
  359. package/dist/types/models/PatchedGoogleAgentDetail.d.ts +17 -0
  360. package/dist/types/models/PatchedGradeResultOverride.d.ts +15 -0
  361. package/dist/types/models/PatchedGraderCriterion.d.ts +15 -0
  362. package/dist/types/models/PatchedHumanSupportTicket.d.ts +23 -0
  363. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
  364. package/dist/types/models/PatchedMCPServer.d.ts +65 -0
  365. package/dist/types/models/PatchedMCPServerConnection.d.ts +47 -0
  366. package/dist/types/models/PatchedMcpServerUpdate.d.ts +8 -0
  367. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
  368. package/dist/types/models/PatchedMentorCreate.d.ts +247 -0
  369. package/dist/types/models/PatchedMentorFromTemplate.d.ts +3 -0
  370. package/dist/types/models/PatchedMentorGraderConfig.d.ts +24 -0
  371. package/dist/types/models/PatchedMentorSettings.d.ts +153 -0
  372. package/dist/types/models/PatchedMentorSkillAssignment.d.ts +12 -0
  373. package/dist/types/models/PatchedMentorWizard.d.ts +4 -0
  374. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
  375. package/dist/types/models/PatchedPlatformApplicationNote.d.ts +2 -2
  376. package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
  377. package/dist/types/models/PatchedProject.d.ts +51 -0
  378. package/dist/types/models/PatchedPrompt.d.ts +22 -0
  379. package/dist/types/models/PatchedSeedMentorsView.d.ts +3 -0
  380. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  381. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  382. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  383. package/dist/types/models/PatchedTenantChatPrivacyConfig.d.ts +11 -0
  384. package/dist/types/models/PatchedTicketMessage.d.ts +10 -0
  385. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  386. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  387. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  388. package/dist/types/models/PatchedWorkflow.d.ts +58 -0
  389. package/dist/types/models/PeriodInfo.d.ts +21 -0
  390. package/dist/types/models/PeriodicAgent.d.ts +42 -0
  391. package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
  392. package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
  393. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
  394. package/dist/types/models/PeriodicAgentStatistics.d.ts +7 -0
  395. package/dist/types/models/PeriodicTask.d.ts +21 -0
  396. package/dist/types/models/PhiActionEnum.d.ts +12 -0
  397. package/dist/types/models/PieChartData.d.ts +5 -0
  398. package/dist/types/models/PieChartSegment.d.ts +4 -0
  399. package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
  400. package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
  401. package/dist/types/models/PlatformApplicationNote.d.ts +2 -2
  402. package/dist/types/models/{KindEnum.d.ts → PlatformApplicationNoteKindEnum.d.ts} +1 -1
  403. package/dist/types/models/PlatformPrompt.d.ts +34 -0
  404. package/dist/types/models/PlatformPromptResponse.d.ts +16 -0
  405. package/dist/types/models/PlayWrightScript.d.ts +12 -0
  406. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
  407. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
  408. package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
  409. package/dist/types/models/PrivacyActionEnum.d.ts +12 -0
  410. package/dist/types/models/Project.d.ts +51 -0
  411. package/dist/types/models/ProjectMentor.d.ts +11 -0
  412. package/dist/types/models/Prompt.d.ts +22 -0
  413. package/dist/types/models/PromptCategory.d.ts +7 -0
  414. package/dist/types/models/PromptFacet.d.ts +17 -0
  415. package/dist/types/models/PromptSearchResponse.d.ts +35 -0
  416. package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
  417. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  418. package/dist/types/models/ProviderBreakdown.d.ts +8 -0
  419. package/dist/types/models/ProvisionModeEnum.d.ts +8 -0
  420. package/dist/types/models/QuestionCardTag.d.ts +8 -0
  421. package/dist/types/models/QuestionRequest.d.ts +15 -0
  422. package/dist/types/models/QuestionResponse.d.ts +10 -0
  423. package/dist/types/models/RatingAverageRecord.d.ts +10 -0
  424. package/dist/types/models/RatingEnum.d.ts +8 -0
  425. package/dist/types/models/RatingRecord.d.ts +4 -0
  426. package/dist/types/models/RatingsOvertime.d.ts +5 -0
  427. package/dist/types/models/RecentlyAccessedMentor.d.ts +11 -0
  428. package/dist/types/models/RecommendationTypeEnum.d.ts +8 -0
  429. package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
  430. package/dist/types/models/RelatedText.d.ts +3 -0
  431. package/dist/types/models/RemoveMentorFromDisclaimer.d.ts +12 -0
  432. package/dist/types/models/ReorderChildren.d.ts +13 -0
  433. package/dist/types/models/RequestDataVariable.d.ts +14 -0
  434. package/dist/types/models/ResourceScrappedData.d.ts +13 -0
  435. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
  436. package/dist/types/models/ResponseDataVariable.d.ts +14 -0
  437. package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
  438. package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
  439. package/dist/types/models/RetrieveTask.d.ts +3 -0
  440. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +34 -0
  441. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +70 -0
  442. package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
  443. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
  444. package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
  445. package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
  446. package/dist/types/models/Run.d.ts +21 -0
  447. package/dist/types/models/RunDetailResponse.d.ts +19 -0
  448. package/dist/types/models/RunMentorEval.d.ts +3 -0
  449. package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
  450. package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
  451. package/dist/types/models/ScopeC1dEnum.d.ts +8 -0
  452. package/dist/types/models/Score.d.ts +17 -0
  453. package/dist/types/models/ScoreConfig.d.ts +12 -0
  454. package/dist/types/models/ScoreConfigCategory.d.ts +7 -0
  455. package/dist/types/models/ScoreConfigCreate.d.ts +13 -0
  456. package/dist/types/models/ScoreCreate.d.ts +14 -0
  457. package/dist/types/models/ScoreCreateResponse.d.ts +8 -0
  458. package/dist/types/models/SeedMentorsView.d.ts +3 -0
  459. package/dist/types/models/Segment.d.ts +5 -0
  460. package/dist/types/models/SellableItem.d.ts +14 -0
  461. package/dist/types/models/SellableItemPaywall.d.ts +9 -0
  462. package/dist/types/models/SellableItemsResponse.d.ts +13 -0
  463. package/dist/types/models/SentimentSummary.d.ts +4 -0
  464. package/dist/types/models/ServiceTypeEnum.d.ts +10 -0
  465. package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
  466. package/dist/types/models/SessionChartPoint.d.ts +4 -0
  467. package/dist/types/models/SessionDetail.d.ts +6 -0
  468. package/dist/types/models/SessionDisableChathistoryRequest.d.ts +9 -0
  469. package/dist/types/models/SessionDisableChathistoryResponse.d.ts +7 -0
  470. package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
  471. package/dist/types/models/SessionSummary.d.ts +12 -0
  472. package/dist/types/models/SessionSummaryMentor.d.ts +6 -0
  473. package/dist/types/models/SessionsChart.d.ts +5 -0
  474. package/dist/types/models/SetCurrentVersionRequest.d.ts +3 -0
  475. package/dist/types/models/ShareableMentorLink.d.ts +8 -0
  476. package/dist/types/models/SharedSessionUpdateRequest.d.ts +3 -0
  477. package/dist/types/models/SharedSessionUpdateResponse.d.ts +3 -0
  478. package/dist/types/models/SharedSystemPromptConsumer.d.ts +9 -0
  479. package/dist/types/models/SharedSystemPromptRequest.d.ts +10 -0
  480. package/dist/types/models/SharedSystemPromptResponse.d.ts +6 -0
  481. package/dist/types/models/SharedSystemPromptTarget.d.ts +10 -0
  482. package/dist/types/models/ShellLogs.d.ts +3 -0
  483. package/dist/types/models/SkillTypeEnum.d.ts +8 -0
  484. package/dist/types/models/SlackConfig.d.ts +8 -0
  485. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  486. package/dist/types/models/SlackWebhook.d.ts +6 -0
  487. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
  488. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
  489. package/dist/types/models/SpendCap.d.ts +35 -0
  490. package/dist/types/models/SpendCapScopeEnum.d.ts +10 -0
  491. package/dist/types/models/SpendCapStatusItem.d.ts +13 -0
  492. package/dist/types/models/SpendCapStatusSummary.d.ts +17 -0
  493. package/dist/types/models/SpendCapStatusSummaryStatusEnum.d.ts +10 -0
  494. package/dist/types/models/StarMentor.d.ts +9 -0
  495. package/dist/types/models/StarterPrompts8c6Enum.d.ts +8 -0
  496. package/dist/types/models/StarterPromptsB04Enum.d.ts +8 -0
  497. package/dist/types/models/Status869Enum.d.ts +10 -0
  498. package/dist/types/models/Step.d.ts +9 -0
  499. package/dist/types/models/StepStatusEnum.d.ts +10 -0
  500. package/dist/types/models/StopGenerationRequest.d.ts +9 -0
  501. package/dist/types/models/StripeCheckoutSessionCreate.d.ts +10 -0
  502. package/dist/types/models/StripeCheckoutSessionCreateModeEnum.d.ts +10 -0
  503. package/dist/types/models/StripeCustomerCreate.d.ts +8 -0
  504. package/dist/types/models/StripePaymentLinkCreate.d.ts +6 -0
  505. package/dist/types/models/StripePaywallAccessResponse.d.ts +9 -0
  506. package/dist/types/models/StripePaywallCheckout.d.ts +6 -0
  507. package/dist/types/models/StripePaywallCheckoutResponse.d.ts +4 -0
  508. package/dist/types/models/StripePriceCreate.d.ts +10 -0
  509. package/dist/types/models/StripeProductCreate.d.ts +9 -0
  510. package/dist/types/models/SttProviderEnum.d.ts +14 -0
  511. package/dist/types/models/StudentChatMessage.d.ts +4 -0
  512. package/dist/types/models/StylesView.d.ts +4 -0
  513. package/dist/types/models/Subject.d.ts +5 -0
  514. package/dist/types/models/Summary.d.ts +9 -0
  515. package/dist/types/models/TagsView.d.ts +5 -0
  516. package/dist/types/models/TargetSystemEnum.d.ts +12 -0
  517. package/dist/types/models/TaskModeEnum.d.ts +8 -0
  518. package/dist/types/models/TaskTypeEnum.d.ts +8 -0
  519. package/dist/types/models/TaskView.d.ts +3 -0
  520. package/dist/types/models/TeamsConfig.d.ts +7 -0
  521. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  522. package/dist/types/models/TemplateMentor.d.ts +9 -0
  523. package/dist/types/models/TenantChatPrivacyConfig.d.ts +11 -0
  524. package/dist/types/models/TenantMentorTraces.d.ts +6 -0
  525. package/dist/types/models/TenantSetting.d.ts +5 -0
  526. package/dist/types/models/ThemeEnum.d.ts +8 -0
  527. package/dist/types/models/TicketMessage.d.ts +10 -0
  528. package/dist/types/models/TonesView.d.ts +4 -0
  529. package/dist/types/models/ToolCategory.d.ts +5 -0
  530. package/dist/types/models/ToolResponse.d.ts +16 -0
  531. package/dist/types/models/TopicDetail.d.ts +8 -0
  532. package/dist/types/models/TopicDetails.d.ts +5 -0
  533. package/dist/types/models/TopicModel.d.ts +3 -0
  534. package/dist/types/models/TopicRecord.d.ts +4 -0
  535. package/dist/types/models/TopicStatistics.d.ts +7 -0
  536. package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
  537. package/dist/types/models/TopicSummaryView.d.ts +4 -0
  538. package/dist/types/models/TopicsOverview.d.ts +22 -0
  539. package/dist/types/models/TopicsOverviewMetric.d.ts +21 -0
  540. package/dist/types/models/Trace.d.ts +17 -0
  541. package/dist/types/models/TrainDocumentViewRequest.d.ts +90 -0
  542. package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
  543. package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
  544. package/dist/types/models/TrendEntry.d.ts +4 -0
  545. package/dist/types/models/TriggerRequest.d.ts +5 -0
  546. package/dist/types/models/TriggerResponse.d.ts +6 -0
  547. package/dist/types/models/TtsProviderEnum.d.ts +12 -0
  548. package/dist/types/models/UpdateXblock.d.ts +17 -0
  549. package/dist/types/models/UseMainCreds.d.ts +3 -0
  550. package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
  551. package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
  552. package/dist/types/models/UserChatByPeriod.d.ts +4 -0
  553. package/dist/types/models/UserChatFeedback.d.ts +15 -0
  554. package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
  555. package/dist/types/models/UserChatHistoryFilterData.d.ts +10 -0
  556. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
  557. package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
  558. package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
  559. package/dist/types/models/UserChatPrivacySettings.d.ts +18 -0
  560. package/dist/types/models/UserCountRecord.d.ts +4 -0
  561. package/dist/types/models/UserDefaultMentor.d.ts +17 -0
  562. package/dist/types/models/UserDetail.d.ts +8 -0
  563. package/dist/types/models/UserEdxMemory.d.ts +15 -0
  564. package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
  565. package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
  566. package/dist/types/models/UserMetric.d.ts +4 -0
  567. package/dist/types/models/UserMetricsResponse.d.ts +7 -0
  568. package/dist/types/models/UserReportListResponse.d.ts +6 -0
  569. package/dist/types/models/UserSentimentCountView.d.ts +4 -0
  570. package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
  571. package/dist/types/models/V2GlobalMentorSearchResponse.d.ts +29 -0
  572. package/dist/types/models/V2PersonalizedMentorsResponse.d.ts +29 -0
  573. package/dist/types/models/V2RecommendationResponse.d.ts +65 -0
  574. package/dist/types/models/VectorResult.d.ts +10 -0
  575. package/dist/types/models/VeoVideoDetail.d.ts +10 -0
  576. package/dist/types/models/VeoVideoList.d.ts +6 -0
  577. package/dist/types/models/VeoVideoRequest.d.ts +5 -0
  578. package/dist/types/models/VersionNestedArtifact.d.ts +56 -0
  579. package/dist/types/models/VideoCaption.d.ts +3 -0
  580. package/dist/types/models/VirtualMachineEgressEnum.d.ts +10 -0
  581. package/dist/types/models/Voice.d.ts +9 -0
  582. package/dist/types/models/VoiceProviderEefEnum.d.ts +12 -0
  583. package/dist/types/models/VoiceProviderEnum.d.ts +14 -0
  584. package/dist/types/models/WakeModeEnum.d.ts +8 -0
  585. package/dist/types/models/WakeRequest.d.ts +8 -0
  586. package/dist/types/models/WakeResponse.d.ts +14 -0
  587. package/dist/types/models/WebResource.d.ts +9 -0
  588. package/dist/types/models/WebResourceCard.d.ts +7 -0
  589. package/dist/types/models/WebResourcesQuery.d.ts +3 -0
  590. package/dist/types/models/WebexConfig.d.ts +10 -0
  591. package/dist/types/models/WebexWebhook.d.ts +4 -0
  592. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  593. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  594. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  595. package/dist/types/models/Workflow.d.ts +58 -0
  596. package/dist/types/models/XblockResult.d.ts +9 -0
  597. package/dist/types/models/XblockTypeEnum.d.ts +16 -0
  598. package/dist/types/services/AiAccountService.d.ts +889 -0
  599. package/dist/types/services/AiAnalyticsService.d.ts +5532 -225
  600. package/dist/types/services/AiBotService.d.ts +650 -0
  601. package/dist/types/services/AiIndexService.d.ts +355 -0
  602. package/dist/types/services/AiMarketingService.d.ts +38 -0
  603. package/dist/types/services/AiMediaService.d.ts +247 -0
  604. package/dist/types/services/AiMentorService.d.ts +12407 -0
  605. package/dist/types/services/AiPromptService.d.ts +1035 -0
  606. package/dist/types/services/AiProxyService.d.ts +37 -0
  607. package/dist/types/services/AiSearchService.d.ts +819 -0
  608. package/dist/types/services/AnalyticsService.d.ts +770 -4
  609. package/dist/types/services/IntegrationCredentialsService.d.ts +30 -0
  610. package/dist/types/services/SearchService.d.ts +1120 -73
  611. package/package.json +1 -1
  612. package/sdk_schema.yml +107898 -34354
  613. package/src/core/OpenAPI.ts +1 -1
  614. package/src/index.ts +597 -1
  615. package/src/models/AIGeneratedImage.ts +18 -0
  616. package/src/models/AIUserProfileMemoryRelation.ts +9 -0
  617. package/src/models/AIUserProfileRequest.ts +9 -0
  618. package/src/models/AccessEnum.ts +12 -0
  619. package/src/models/AccessTimesHeatmap.ts +10 -0
  620. package/src/models/AccessibleMentorsByEmailRequest.ts +18 -0
  621. package/src/models/AccessibleMentorsByEmailResponse.ts +18 -0
  622. package/src/models/ActionBreakdown.ts +15 -0
  623. package/src/models/AddMentorToDisclaimer.ts +17 -0
  624. package/src/models/AdminIntegrationCredential.ts +22 -0
  625. package/src/models/AgentSkill.ts +40 -0
  626. package/src/models/AgentSkillResource.ts +22 -0
  627. package/src/models/AlignMentorBubbleEnum.ts +12 -0
  628. package/src/models/AnalyticsOverview.ts +12 -0
  629. package/src/models/Answer.ts +16 -0
  630. package/src/models/Artifact.ts +77 -0
  631. package/src/models/ArtifactList.ts +55 -0
  632. package/src/models/ArtifactVersion.ts +64 -0
  633. package/src/models/AssumedKnowledge.ts +9 -0
  634. package/src/models/AssumedKnowledgeLevel.ts +9 -0
  635. package/src/models/AudioToTextRequest.ts +20 -0
  636. package/src/models/AudioToTextResponse.ts +8 -0
  637. package/src/models/AuthModeEnum.ts +16 -0
  638. package/src/models/AuthScopeEnum.ts +14 -0
  639. package/src/models/AuthTypeEnum.ts +14 -0
  640. package/src/models/BaseFinanceResponse.ts +42 -0
  641. package/src/models/BillingPeriod.ts +13 -0
  642. package/src/models/Bot.ts +20 -0
  643. package/src/models/BotCommand.ts +11 -0
  644. package/src/models/BotCreate.ts +17 -0
  645. package/src/models/Breakdown.ts +16 -0
  646. package/src/models/CallAuthenticationRequest.ts +22 -0
  647. package/src/models/CallAuthenticationResponse.ts +26 -0
  648. package/src/models/CallConfiguration.ts +43 -0
  649. package/src/models/CallConfigurationModeEnum.ts +12 -0
  650. package/src/models/ChatCompletionRequest.ts +32 -0
  651. package/src/models/ChatHistory.ts +25 -0
  652. package/src/models/ChatHistoryFilterData.ts +14 -0
  653. package/src/models/ChatHistoryFilterUser.ts +10 -0
  654. package/src/models/ChatHistoryItem.ts +11 -0
  655. package/src/models/ChatHistorySessionId.ts +8 -0
  656. package/src/models/ChatPrivacyModeEnum.ts +14 -0
  657. package/src/models/ChatRunTracker.ts +39 -0
  658. package/src/models/ChatRunTrackerStatusEnum.ts +14 -0
  659. package/src/models/ChatSessionRequest.ts +24 -0
  660. package/src/models/ChatSessionResponse.ts +13 -0
  661. package/src/models/CheckDocumentTrainingStatus.ts +15 -0
  662. package/src/models/ClawConfigGetResponse.ts +24 -0
  663. package/src/models/ClawInstance.ts +56 -0
  664. package/src/models/ClawInstanceStatusEnum.ts +14 -0
  665. package/src/models/ClawMentorConfig.ts +32 -0
  666. package/src/models/ClawModelProvider.ts +45 -0
  667. package/src/models/ClawRpcError.ts +12 -0
  668. package/src/models/ClawTypeEnum.ts +14 -0
  669. package/src/models/ComparisonInfo.ts +34 -0
  670. package/src/models/ConnectedService.ts +33 -0
  671. package/src/models/ConversationChartPoint.ts +9 -0
  672. package/src/models/ConversationDetailResponse.ts +9 -0
  673. package/src/models/ConversationListItem.ts +26 -0
  674. package/src/models/ConversationListResponse.ts +11 -0
  675. package/src/models/ConversationMessage.ts +16 -0
  676. package/src/models/ConversationRating.ts +11 -0
  677. package/src/models/ConversationSummary.ts +10 -0
  678. package/src/models/ConversationVolume.ts +9 -0
  679. package/src/models/Conversations.ts +61 -0
  680. package/src/models/ConversationsChart.ts +10 -0
  681. package/src/models/Cost.ts +8 -0
  682. package/src/models/CostPerTenant.ts +11 -0
  683. package/src/models/CourseCreationTask.ts +41 -0
  684. package/src/models/CourseCreationTaskFile.ts +12 -0
  685. package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
  686. package/src/models/CourseRecommendation.ts +54 -0
  687. package/src/models/CrawlerPatternTypeEnum.ts +12 -0
  688. package/src/models/CreateXblock.ts +42 -0
  689. package/src/models/CredentialRequest.ts +19 -0
  690. package/src/models/CronDelivery.ts +17 -0
  691. package/src/models/CronDeliveryModeEnum.ts +14 -0
  692. package/src/models/CronJobCreate.ts +27 -0
  693. package/src/models/CronJobListResponse.ts +15 -0
  694. package/src/models/CronJobResponse.ts +33 -0
  695. package/src/models/CronPayload.ts +24 -0
  696. package/src/models/CronPayloadKindEnum.ts +12 -0
  697. package/src/models/CronRunAction.ts +12 -0
  698. package/src/models/CronRunActionModeEnum.ts +12 -0
  699. package/src/models/CronRunLogEntry.ts +30 -0
  700. package/src/models/CronRunLogEntryStatusEnum.ts +14 -0
  701. package/src/models/CronRunResult.ts +13 -0
  702. package/src/models/CronRunsResponse.ts +15 -0
  703. package/src/models/CronSchedule.ts +22 -0
  704. package/src/models/CronScheduleKindEnum.ts +14 -0
  705. package/src/models/CronStatusResponse.ts +19 -0
  706. package/src/models/CrontabSchedule.ts +27 -0
  707. package/src/models/CurrentUsersResponse.ts +13 -0
  708. package/src/models/CustomInstructionResponse.ts +18 -0
  709. package/src/models/DataTypeEnum.ts +14 -0
  710. package/src/models/Dataset.ts +17 -0
  711. package/src/models/DatasetCreate.ts +13 -0
  712. package/src/models/DatasetItem.ts +25 -0
  713. package/src/models/DatasetItemBulkCreateResponse.ts +10 -0
  714. package/src/models/DatasetItemCreate.ts +15 -0
  715. package/src/models/DatasetItemInput.ts +12 -0
  716. package/src/models/DatasetItemUpdate.ts +15 -0
  717. package/src/models/DatasetItemUpdateStatusEnum.ts +12 -0
  718. package/src/models/DatasetRunItem.ts +21 -0
  719. package/src/models/DateRange.ts +9 -0
  720. package/src/models/DeleteXblock.ts +14 -0
  721. package/src/models/DeliveryStatusEnum.ts +16 -0
  722. package/src/models/DeployStateEnum.ts +18 -0
  723. package/src/models/Disclaimer.ts +22 -0
  724. package/src/models/DisclaimerAgreement.ts +16 -0
  725. package/src/models/DisclaimerScopeEnum.ts +12 -0
  726. package/src/models/DiscordConfig.ts +12 -0
  727. package/src/models/DiscordUserConfig.ts +15 -0
  728. package/src/models/DiscordWebhook.ts +11 -0
  729. package/src/models/Document.ts +46 -0
  730. package/src/models/DocumentFacet.ts +22 -0
  731. package/src/models/DocumentFromPoolRequest.ts +15 -0
  732. package/src/models/DocumentSearchResponse.ts +40 -0
  733. package/src/models/DocumentSettingsResponse.ts +8 -0
  734. package/src/models/DomainAttach.ts +12 -0
  735. package/src/models/EdxCourse.ts +17 -0
  736. package/src/models/ElevenlabsCustomVoice.ts +9 -0
  737. package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
  738. package/src/models/EmailPromptDetail.ts +18 -0
  739. package/src/models/EmailPromptList.ts +16 -0
  740. package/src/models/EmailPromptSummary.ts +10 -0
  741. package/src/models/EnforcementEnum.ts +12 -0
  742. package/src/models/Entity.ts +16 -0
  743. package/src/models/EntityTypeEnum.ts +14 -0
  744. package/src/models/Error.ts +8 -0
  745. package/src/models/ExperimentCreate.ts +13 -0
  746. package/src/models/ExternalProxyInvoke.ts +24 -0
  747. package/src/models/ExternalProxyServiceDetail.ts +28 -0
  748. package/src/models/ExternalProxyServiceList.ts +19 -0
  749. package/src/models/ExternalServiceInfo.ts +11 -0
  750. package/src/models/FailureCategoryEnum.ts +32 -0
  751. package/src/models/FallbackLLM.ts +52 -0
  752. package/src/models/FallbackLLMCreate.ts +43 -0
  753. package/src/models/FallbackLLMUpdate.ts +38 -0
  754. package/src/models/FeedbackModeEnum.ts +14 -0
  755. package/src/models/FileTypeEnum.ts +14 -0
  756. package/src/models/FileUploadURLRequest.ts +26 -0
  757. package/src/models/FileUploadURLResponse.ts +30 -0
  758. package/src/models/FinanceDetailsResponse.ts +18 -0
  759. package/src/models/FinanceFilters.ts +20 -0
  760. package/src/models/FreeUsageCount.ts +8 -0
  761. package/src/models/GoogleAgentDetail.ts +22 -0
  762. package/src/models/GradeResult.ts +47 -0
  763. package/src/models/GradeResultDetail.ts +76 -0
  764. package/src/models/GradeResultMentor.ts +9 -0
  765. package/src/models/GradeResultPlatform.ts +8 -0
  766. package/src/models/GradeResultStudent.ts +10 -0
  767. package/src/models/GraderCriterion.ts +20 -0
  768. package/src/models/GradingModeEnum.ts +12 -0
  769. package/src/models/GrantMentorAccessRequest.ts +14 -0
  770. package/src/models/GreetingMethodEnum.ts +12 -0
  771. package/src/models/GuidedPrompt.ts +9 -0
  772. package/src/models/GuidedPromptsResponse.ts +10 -0
  773. package/src/models/HeygenAvatarCreate.ts +14 -0
  774. package/src/models/HeygenAvatarCreateTypeEnum.ts +12 -0
  775. package/src/models/HeygenMarketingVideoDetail.ts +13 -0
  776. package/src/models/HeygenMarketingVideoList.ts +11 -0
  777. package/src/models/HeygenStreamingSession.ts +17 -0
  778. package/src/models/HeygenStreamingTask.ts +15 -0
  779. package/src/models/HeygenTemplateRequest.ts +10 -0
  780. package/src/models/HeygenTemplateResponseSingle.ts +11 -0
  781. package/src/models/HeygenTtsPreview.ts +12 -0
  782. package/src/models/HeygenVideoCreate.ts +19 -0
  783. package/src/models/HeygenVideoCreateTypeEnum.ts +12 -0
  784. package/src/models/HeygenVideoDetail.ts +13 -0
  785. package/src/models/HeygenVideoRequest.ts +10 -0
  786. package/src/models/HeygenVoiceClone.ts +14 -0
  787. package/src/models/HostingProject.ts +34 -0
  788. package/src/models/HumanSupportTicket.ts +28 -0
  789. package/src/models/HumanSupportTicketStatusEnum.ts +14 -0
  790. package/src/models/InputQuestion.ts +11 -0
  791. package/src/models/IntegrationCredential.ts +30 -0
  792. package/src/models/IntegrationCredentialSchema.ts +11 -0
  793. package/src/models/IntegrationCredentialSchemaV2.ts +15 -0
  794. package/src/models/InterfaceEnum.ts +12 -0
  795. package/src/models/IntervalTypeEnum.ts +16 -0
  796. package/src/models/IntialQuestionAnswer.ts +8 -0
  797. package/src/models/InvalidQueryParameters.ts +8 -0
  798. package/src/models/InvoiceReportResponse.ts +18 -0
  799. package/src/models/JobRun.ts +16 -0
  800. package/src/models/JudgeRecord.ts +23 -0
  801. package/src/models/LLMCredentialRequest.ts +19 -0
  802. package/src/models/LLMCredentialResponse.ts +15 -0
  803. package/src/models/LLMCredentialSchema.ts +11 -0
  804. package/src/models/LLMJudge.ts +15 -0
  805. package/src/models/LLMModelForTenant.ts +11 -0
  806. package/src/models/LLMModelRegistryMinimal.ts +20 -0
  807. package/src/models/LLMProviderMinimal.ts +34 -0
  808. package/src/models/LLMQuestion.ts +20 -0
  809. package/src/models/LLMResponse.ts +23 -0
  810. package/src/models/LLMTracesListResponse.ts +10 -0
  811. package/src/models/LanguagesView.ts +10 -0
  812. package/src/models/LinkCourseRequest.ts +8 -0
  813. package/src/models/LinkCourseResponse.ts +10 -0
  814. package/src/models/LlmProviderEnum.ts +14 -0
  815. package/src/models/LlmUsageAnalyticsResponse.ts +13 -0
  816. package/src/models/MCPServer.ts +70 -0
  817. package/src/models/MCPServerConnection.ts +52 -0
  818. package/src/models/MCPServerConnectionScopeEnum.ts +14 -0
  819. package/src/models/MCPServerOauthFind.ts +10 -0
  820. package/src/models/MCPServerTransportEnum.ts +14 -0
  821. package/src/models/MaskedIntegrationCredential.ts +30 -0
  822. package/src/models/MaskedLLMCredential.ts +15 -0
  823. package/src/models/McpServerConfig.ts +22 -0
  824. package/src/models/McpServerConfigTransportEnum.ts +12 -0
  825. package/src/models/McpServerCreate.ts +13 -0
  826. package/src/models/McpServerEntry.ts +13 -0
  827. package/src/models/McpServerListResponse.ts +9 -0
  828. package/src/models/MemoryComponentData.ts +10 -0
  829. package/src/models/MemoryComponentDataKindEnum.ts +14 -0
  830. package/src/models/MemoryComponentMemory.ts +9 -0
  831. package/src/models/MemoryComponentMemoryDetail.ts +13 -0
  832. package/src/models/MemoryComponentResponse.ts +10 -0
  833. package/src/models/MemoryProgress.ts +13 -0
  834. package/src/models/MemoryStatusRequestView.ts +11 -0
  835. package/src/models/MemoryStatusView.ts +11 -0
  836. package/src/models/Mentor.ts +270 -0
  837. package/src/models/MentorAudience.ts +10 -0
  838. package/src/models/MentorAuditLogEntry.ts +48 -0
  839. package/src/models/MentorBreakdown.ts +14 -0
  840. package/src/models/MentorCategory.ts +14 -0
  841. package/src/models/MentorCategoryCreate.ts +16 -0
  842. package/src/models/MentorCategoryGroup.ts +16 -0
  843. package/src/models/MentorCategoryGroupCreate.ts +16 -0
  844. package/src/models/MentorCreate.ts +252 -0
  845. package/src/models/MentorCustomVoice.ts +9 -0
  846. package/src/models/MentorCustomVoiceResponse.ts +9 -0
  847. package/src/models/MentorData.ts +12 -0
  848. package/src/models/MentorDetailAnalytics.ts +11 -0
  849. package/src/models/MentorEval.ts +16 -0
  850. package/src/models/MentorEvalQuestion.ts +10 -0
  851. package/src/models/MentorEvalQuestionRequest.ts +9 -0
  852. package/src/models/MentorEvalReport.ts +15 -0
  853. package/src/models/MentorEvalRequest.ts +13 -0
  854. package/src/models/MentorFacet.ts +22 -0
  855. package/src/models/MentorFork.ts +10 -0
  856. package/src/models/MentorFromTemplate.ts +8 -0
  857. package/src/models/MentorFromTemplateWithSettingRequest.ts +86 -0
  858. package/src/models/MentorFromTemplateWithSettingRequestVoiceProviderEnum.ts +14 -0
  859. package/src/models/MentorGraderConfig.ts +29 -0
  860. package/src/models/MentorMemorySettingsRequest.ts +11 -0
  861. package/src/models/MentorMemorySettingsResponse.ts +11 -0
  862. package/src/models/MentorMetadata.ts +10 -0
  863. package/src/models/MentorScenario.ts +11 -0
  864. package/src/models/MentorScenarioPrompt.ts +10 -0
  865. package/src/models/MentorSearchResponse.ts +40 -0
  866. package/src/models/MentorSession.ts +9 -0
  867. package/src/models/MentorSettings.ts +158 -0
  868. package/src/models/MentorSettingsPublic.ts +102 -0
  869. package/src/models/MentorSettingsRequest.ts +127 -0
  870. package/src/models/MentorSettingsRequestVoiceProviderEnum.ts +16 -0
  871. package/src/models/MentorSkillAssignment.ts +17 -0
  872. package/src/models/MentorSummary.ts +10 -0
  873. package/src/models/MentorType.ts +10 -0
  874. package/src/models/MentorUserSetting.ts +9 -0
  875. package/src/models/MentorVisibilityEnum.ts +14 -0
  876. package/src/models/MentorWizard.ts +9 -0
  877. package/src/models/MessageStatistics.ts +10 -0
  878. package/src/models/MessageView.ts +17 -0
  879. package/src/models/MessageViewRequest.ts +14 -0
  880. package/src/models/MessageViewUpdatResponse.ts +8 -0
  881. package/src/models/Metadata.ts +10 -0
  882. package/src/models/MetricChange.ts +9 -0
  883. package/src/models/MetricInfo.ts +10 -0
  884. package/src/models/ModalityEnum.ts +14 -0
  885. package/src/models/ModelCost.ts +9 -0
  886. package/src/models/ModerationLog.ts +17 -0
  887. package/src/models/NameEnum.ts +19 -0
  888. package/src/models/NestedArtifact.ts +60 -0
  889. package/src/models/NoChatMessagesFound.ts +8 -0
  890. package/src/models/OAuthProvider.ts +29 -0
  891. package/src/models/OAuthService.ts +23 -0
  892. package/src/models/OAuthStartResponse.ts +8 -0
  893. package/src/models/OauthCredentialsMasked.ts +15 -0
  894. package/src/models/Observation.ts +36 -0
  895. package/src/models/OfflineDocument.ts +24 -0
  896. package/src/models/OverrideStatusEnum.ts +14 -0
  897. package/src/models/OvertimeData.ts +18 -0
  898. package/src/models/PageContent.ts +11 -0
  899. package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
  900. package/src/models/PaginatedAgentSkillList.ts +12 -0
  901. package/src/models/PaginatedAgentSkillResourceList.ts +12 -0
  902. package/src/models/PaginatedArtifactListList.ts +12 -0
  903. package/src/models/PaginatedArtifactVersionList.ts +12 -0
  904. package/src/models/PaginatedChatRunTrackerList.ts +12 -0
  905. package/src/models/PaginatedClawInstanceList.ts +12 -0
  906. package/src/models/PaginatedClawModelProviderList.ts +12 -0
  907. package/src/models/PaginatedConversationsList.ts +12 -0
  908. package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
  909. package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
  910. package/src/models/PaginatedDatasetItemList.ts +12 -0
  911. package/src/models/PaginatedDatasetList.ts +12 -0
  912. package/src/models/PaginatedDisclaimerAgreementList.ts +12 -0
  913. package/src/models/PaginatedDisclaimerList.ts +12 -0
  914. package/src/models/PaginatedEdxCourseList.ts +12 -0
  915. package/src/models/PaginatedEmailPromptListList.ts +12 -0
  916. package/src/models/PaginatedGoogleAgentDetailList.ts +12 -0
  917. package/src/models/PaginatedGradeResultList.ts +12 -0
  918. package/src/models/PaginatedGraderCriterionList.ts +12 -0
  919. package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
  920. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
  921. package/src/models/PaginatedHumanSupportTicketList.ts +12 -0
  922. package/src/models/PaginatedJobRunList.ts +12 -0
  923. package/src/models/PaginatedJudgeList.ts +12 -0
  924. package/src/models/PaginatedMCPServerConnectionList.ts +12 -0
  925. package/src/models/PaginatedMCPServerList.ts +12 -0
  926. package/src/models/PaginatedMentorAuditLogEntryList.ts +12 -0
  927. package/src/models/PaginatedMentorList.ts +12 -0
  928. package/src/models/PaginatedMentorSkillAssignmentList.ts +12 -0
  929. package/src/models/PaginatedModerationLogList.ts +12 -0
  930. package/src/models/PaginatedObservationList.ts +12 -0
  931. package/src/models/PaginatedOfflineDocumentList.ts +12 -0
  932. package/src/models/PaginatedPeriodicAgentList.ts +12 -0
  933. package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
  934. package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
  935. package/src/models/PaginatedProjectList.ts +12 -0
  936. package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
  937. package/src/models/PaginatedRunList.ts +12 -0
  938. package/src/models/PaginatedScoreConfigList.ts +12 -0
  939. package/src/models/PaginatedScoreList.ts +12 -0
  940. package/src/models/PaginatedTicketMessageList.ts +12 -0
  941. package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
  942. package/src/models/PaginatedTraceList.ts +12 -0
  943. package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
  944. package/src/models/PaginatedVeoVideoListList.ts +12 -0
  945. package/src/models/PaginatedVoiceList.ts +12 -0
  946. package/src/models/PaginatedWorkflowList.ts +12 -0
  947. package/src/models/Pagination.ts +16 -11
  948. package/src/models/PatchedAgentSkill.ts +40 -0
  949. package/src/models/PatchedAgentSkillResource.ts +22 -0
  950. package/src/models/PatchedArtifact.ts +77 -0
  951. package/src/models/PatchedBotCommand.ts +11 -0
  952. package/src/models/PatchedBotCreate.ts +17 -0
  953. package/src/models/PatchedCallConfiguration.ts +43 -0
  954. package/src/models/PatchedClawConfigPatchRequest.ts +19 -0
  955. package/src/models/PatchedClawInstance.ts +56 -0
  956. package/src/models/PatchedClawMentorConfig.ts +32 -0
  957. package/src/models/PatchedClawModelProvider.ts +45 -0
  958. package/src/models/PatchedConversations.ts +61 -0
  959. package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
  960. package/src/models/PatchedCredentialRequest.ts +19 -0
  961. package/src/models/PatchedCronJobPatch.ts +29 -0
  962. package/src/models/PatchedDisclaimer.ts +22 -0
  963. package/src/models/PatchedDiscordConfig.ts +12 -0
  964. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  965. package/src/models/PatchedFallbackLLMUpdate.ts +38 -0
  966. package/src/models/PatchedGoogleAgentDetail.ts +22 -0
  967. package/src/models/PatchedGradeResultOverride.ts +20 -0
  968. package/src/models/PatchedGraderCriterion.ts +20 -0
  969. package/src/models/PatchedHumanSupportTicket.ts +28 -0
  970. package/src/models/PatchedLLMCredentialRequest.ts +19 -0
  971. package/src/models/PatchedMCPServer.ts +70 -0
  972. package/src/models/PatchedMCPServerConnection.ts +52 -0
  973. package/src/models/PatchedMcpServerUpdate.ts +13 -0
  974. package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
  975. package/src/models/PatchedMentorCreate.ts +252 -0
  976. package/src/models/PatchedMentorFromTemplate.ts +8 -0
  977. package/src/models/PatchedMentorGraderConfig.ts +29 -0
  978. package/src/models/PatchedMentorSettings.ts +158 -0
  979. package/src/models/PatchedMentorSkillAssignment.ts +17 -0
  980. package/src/models/PatchedMentorWizard.ts +9 -0
  981. package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
  982. package/src/models/PatchedPlatformApplicationNote.ts +2 -2
  983. package/src/models/PatchedPlayWrightScript.ts +17 -0
  984. package/src/models/PatchedProject.ts +56 -0
  985. package/src/models/PatchedPrompt.ts +27 -0
  986. package/src/models/PatchedSeedMentorsView.ts +8 -0
  987. package/src/models/PatchedSlackConfig.ts +13 -0
  988. package/src/models/PatchedSlackUserConfig.ts +22 -0
  989. package/src/models/PatchedTeamsConfig.ts +12 -0
  990. package/src/models/PatchedTenantChatPrivacyConfig.ts +16 -0
  991. package/src/models/PatchedTicketMessage.ts +15 -0
  992. package/src/models/PatchedWebexConfig.ts +15 -0
  993. package/src/models/PatchedWhatsappConfig.ts +16 -0
  994. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  995. package/src/models/PatchedWorkflow.ts +63 -0
  996. package/src/models/PeriodInfo.ts +26 -0
  997. package/src/models/PeriodicAgent.ts +47 -0
  998. package/src/models/PeriodicAgentCreate.ts +46 -0
  999. package/src/models/PeriodicAgentLog.ts +16 -0
  1000. package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
  1001. package/src/models/PeriodicAgentStatistics.ts +12 -0
  1002. package/src/models/PeriodicTask.ts +26 -0
  1003. package/src/models/PhiActionEnum.ts +16 -0
  1004. package/src/models/PieChartData.ts +10 -0
  1005. package/src/models/PieChartSegment.ts +9 -0
  1006. package/src/models/PinnedMessageCreate.ts +14 -0
  1007. package/src/models/PinnedMessageRequest.ts +11 -0
  1008. package/src/models/PlatformApplicationNote.ts +2 -2
  1009. package/src/models/{KindEnum.ts → PlatformApplicationNoteKindEnum.ts} +1 -1
  1010. package/src/models/PlatformPrompt.ts +39 -0
  1011. package/src/models/PlatformPromptResponse.ts +21 -0
  1012. package/src/models/PlayWrightScript.ts +17 -0
  1013. package/src/models/PredictiveAnalyticsRequest.ts +9 -0
  1014. package/src/models/PredictiveAnalyticsResponse.ts +9 -0
  1015. package/src/models/PreviousAgentStatusEnum.ts +16 -0
  1016. package/src/models/PrivacyActionEnum.ts +16 -0
  1017. package/src/models/Project.ts +56 -0
  1018. package/src/models/ProjectMentor.ts +16 -0
  1019. package/src/models/Prompt.ts +27 -0
  1020. package/src/models/PromptCategory.ts +12 -0
  1021. package/src/models/PromptFacet.ts +22 -0
  1022. package/src/models/PromptSearchResponse.ts +40 -0
  1023. package/src/models/PromptVisibilityEnum.ts +14 -0
  1024. package/src/models/Provider05cEnum.ts +18 -0
  1025. package/src/models/ProviderBreakdown.ts +13 -0
  1026. package/src/models/ProvisionModeEnum.ts +12 -0
  1027. package/src/models/QuestionCardTag.ts +13 -0
  1028. package/src/models/QuestionRequest.ts +20 -0
  1029. package/src/models/QuestionResponse.ts +15 -0
  1030. package/src/models/RatingAverageRecord.ts +15 -0
  1031. package/src/models/RatingEnum.ts +12 -0
  1032. package/src/models/RatingRecord.ts +9 -0
  1033. package/src/models/RatingsOvertime.ts +10 -0
  1034. package/src/models/RecentlyAccessedMentor.ts +16 -0
  1035. package/src/models/RecommendationTypeEnum.ts +12 -0
  1036. package/src/models/RecommendedCoursesResponse.ts +38 -0
  1037. package/src/models/RelatedText.ts +8 -0
  1038. package/src/models/RemoveMentorFromDisclaimer.ts +17 -0
  1039. package/src/models/ReorderChildren.ts +18 -0
  1040. package/src/models/RequestDataVariable.ts +19 -0
  1041. package/src/models/ResourceScrappedData.ts +18 -0
  1042. package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
  1043. package/src/models/ResponseDataVariable.ts +19 -0
  1044. package/src/models/RetreiverTrainViewRequest.ts +15 -0
  1045. package/src/models/RetreiverTrainViewResponse.ts +11 -0
  1046. package/src/models/RetrieveTask.ts +8 -0
  1047. package/src/models/RetrieverDocumentEmbedding.ts +39 -0
  1048. package/src/models/RetrieverDocumentEmbeddingRequest.ts +75 -0
  1049. package/src/models/RetrieverRequestSearch.ts +15 -0
  1050. package/src/models/RetrieverRequestSearchDocument.ts +15 -0
  1051. package/src/models/RetrieverResponseSearch.ts +12 -0
  1052. package/src/models/ReuestDataVariableList.ts +9 -0
  1053. package/src/models/Run.ts +26 -0
  1054. package/src/models/RunDetailResponse.ts +24 -0
  1055. package/src/models/RunMentorEval.ts +8 -0
  1056. package/src/models/ScanWebhookRequest.ts +11 -0
  1057. package/src/models/ScanWebhookResponse.ts +8 -0
  1058. package/src/models/ScopeC1dEnum.ts +12 -0
  1059. package/src/models/Score.ts +22 -0
  1060. package/src/models/ScoreConfig.ts +17 -0
  1061. package/src/models/ScoreConfigCategory.ts +12 -0
  1062. package/src/models/ScoreConfigCreate.ts +18 -0
  1063. package/src/models/ScoreCreate.ts +19 -0
  1064. package/src/models/ScoreCreateResponse.ts +13 -0
  1065. package/src/models/SeedMentorsView.ts +8 -0
  1066. package/src/models/Segment.ts +10 -0
  1067. package/src/models/SellableItem.ts +19 -0
  1068. package/src/models/SellableItemPaywall.ts +14 -0
  1069. package/src/models/SellableItemsResponse.ts +18 -0
  1070. package/src/models/SentimentSummary.ts +9 -0
  1071. package/src/models/ServiceTypeEnum.ts +14 -0
  1072. package/src/models/SessionBrowserScreenshot.ts +13 -0
  1073. package/src/models/SessionChartPoint.ts +9 -0
  1074. package/src/models/SessionDetail.ts +11 -0
  1075. package/src/models/SessionDisableChathistoryRequest.ts +14 -0
  1076. package/src/models/SessionDisableChathistoryResponse.ts +12 -0
  1077. package/src/models/SessionMemoryStorage.ts +11 -0
  1078. package/src/models/SessionSummary.ts +17 -0
  1079. package/src/models/SessionSummaryMentor.ts +11 -0
  1080. package/src/models/SessionsChart.ts +10 -0
  1081. package/src/models/SetCurrentVersionRequest.ts +8 -0
  1082. package/src/models/ShareableMentorLink.ts +13 -0
  1083. package/src/models/SharedSessionUpdateRequest.ts +8 -0
  1084. package/src/models/SharedSessionUpdateResponse.ts +8 -0
  1085. package/src/models/SharedSystemPromptConsumer.ts +14 -0
  1086. package/src/models/SharedSystemPromptRequest.ts +15 -0
  1087. package/src/models/SharedSystemPromptResponse.ts +11 -0
  1088. package/src/models/SharedSystemPromptTarget.ts +15 -0
  1089. package/src/models/ShellLogs.ts +8 -0
  1090. package/src/models/SkillTypeEnum.ts +12 -0
  1091. package/src/models/SlackConfig.ts +13 -0
  1092. package/src/models/SlackUserConfig.ts +22 -0
  1093. package/src/models/SlackWebhook.ts +11 -0
  1094. package/src/models/SpacedRepetitionLearningPath.ts +8 -0
  1095. package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
  1096. package/src/models/SpendCap.ts +40 -0
  1097. package/src/models/SpendCapScopeEnum.ts +14 -0
  1098. package/src/models/SpendCapStatusItem.ts +18 -0
  1099. package/src/models/SpendCapStatusSummary.ts +22 -0
  1100. package/src/models/SpendCapStatusSummaryStatusEnum.ts +14 -0
  1101. package/src/models/StarMentor.ts +14 -0
  1102. package/src/models/StarterPrompts8c6Enum.ts +12 -0
  1103. package/src/models/StarterPromptsB04Enum.ts +12 -0
  1104. package/src/models/Status869Enum.ts +14 -0
  1105. package/src/models/Step.ts +14 -0
  1106. package/src/models/StepStatusEnum.ts +14 -0
  1107. package/src/models/StopGenerationRequest.ts +14 -0
  1108. package/src/models/StripeCheckoutSessionCreate.ts +15 -0
  1109. package/src/models/StripeCheckoutSessionCreateModeEnum.ts +14 -0
  1110. package/src/models/StripeCustomerCreate.ts +13 -0
  1111. package/src/models/StripePaymentLinkCreate.ts +11 -0
  1112. package/src/models/StripePaywallAccessResponse.ts +14 -0
  1113. package/src/models/StripePaywallCheckout.ts +11 -0
  1114. package/src/models/StripePaywallCheckoutResponse.ts +9 -0
  1115. package/src/models/StripePriceCreate.ts +15 -0
  1116. package/src/models/StripeProductCreate.ts +14 -0
  1117. package/src/models/SttProviderEnum.ts +18 -0
  1118. package/src/models/StudentChatMessage.ts +9 -0
  1119. package/src/models/StylesView.ts +9 -0
  1120. package/src/models/Subject.ts +10 -0
  1121. package/src/models/Summary.ts +14 -0
  1122. package/src/models/TagsView.ts +10 -0
  1123. package/src/models/TargetSystemEnum.ts +16 -0
  1124. package/src/models/TaskModeEnum.ts +12 -0
  1125. package/src/models/TaskTypeEnum.ts +12 -0
  1126. package/src/models/TaskView.ts +8 -0
  1127. package/src/models/TeamsConfig.ts +12 -0
  1128. package/src/models/TeamsWebhook.ts +22 -0
  1129. package/src/models/TemplateMentor.ts +14 -0
  1130. package/src/models/TenantChatPrivacyConfig.ts +16 -0
  1131. package/src/models/TenantMentorTraces.ts +11 -0
  1132. package/src/models/TenantSetting.ts +10 -0
  1133. package/src/models/ThemeEnum.ts +12 -0
  1134. package/src/models/TicketMessage.ts +15 -0
  1135. package/src/models/TonesView.ts +9 -0
  1136. package/src/models/ToolCategory.ts +10 -0
  1137. package/src/models/ToolResponse.ts +21 -0
  1138. package/src/models/TopicDetail.ts +13 -0
  1139. package/src/models/TopicDetails.ts +10 -0
  1140. package/src/models/TopicModel.ts +8 -0
  1141. package/src/models/TopicRecord.ts +9 -0
  1142. package/src/models/TopicStatistics.ts +12 -0
  1143. package/src/models/TopicStatisticsResponse.ts +11 -0
  1144. package/src/models/TopicSummaryView.ts +9 -0
  1145. package/src/models/TopicsOverview.ts +27 -0
  1146. package/src/models/TopicsOverviewMetric.ts +26 -0
  1147. package/src/models/Trace.ts +22 -0
  1148. package/src/models/TrainDocumentViewRequest.ts +95 -0
  1149. package/src/models/TrainDocumentViewResponse.ts +20 -0
  1150. package/src/models/TrainingStatusEnum.ts +16 -0
  1151. package/src/models/TrendEntry.ts +9 -0
  1152. package/src/models/TriggerRequest.ts +10 -0
  1153. package/src/models/TriggerResponse.ts +11 -0
  1154. package/src/models/TtsProviderEnum.ts +16 -0
  1155. package/src/models/UpdateXblock.ts +22 -0
  1156. package/src/models/UseMainCreds.ts +8 -0
  1157. package/src/models/UserAllChatMemoryView.ts +12 -0
  1158. package/src/models/UserCatalogItemMemoryView.ts +19 -0
  1159. package/src/models/UserChatByPeriod.ts +9 -0
  1160. package/src/models/UserChatFeedback.ts +20 -0
  1161. package/src/models/UserChatFeedbackCount.ts +9 -0
  1162. package/src/models/UserChatHistoryFilterData.ts +15 -0
  1163. package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
  1164. package/src/models/UserChatMemoryStatusView.ts +11 -0
  1165. package/src/models/UserChatMemoryUpdateView.ts +15 -0
  1166. package/src/models/UserChatPrivacySettings.ts +23 -0
  1167. package/src/models/UserCountRecord.ts +9 -0
  1168. package/src/models/UserDefaultMentor.ts +22 -0
  1169. package/src/models/UserDetail.ts +13 -0
  1170. package/src/models/UserEdxMemory.ts +20 -0
  1171. package/src/models/UserMemoryContextRequest.ts +18 -0
  1172. package/src/models/UserMemoryContextResponse.ts +17 -0
  1173. package/src/models/UserMetric.ts +9 -0
  1174. package/src/models/UserMetricsResponse.ts +12 -0
  1175. package/src/models/UserReportListResponse.ts +11 -0
  1176. package/src/models/UserSentimentCountView.ts +9 -0
  1177. package/src/models/UserTrendByPeriod.ts +10 -0
  1178. package/src/models/V2GlobalMentorSearchResponse.ts +34 -0
  1179. package/src/models/V2PersonalizedMentorsResponse.ts +34 -0
  1180. package/src/models/V2RecommendationResponse.ts +70 -0
  1181. package/src/models/VectorResult.ts +15 -0
  1182. package/src/models/VeoVideoDetail.ts +15 -0
  1183. package/src/models/VeoVideoList.ts +11 -0
  1184. package/src/models/VeoVideoRequest.ts +10 -0
  1185. package/src/models/VersionNestedArtifact.ts +61 -0
  1186. package/src/models/VideoCaption.ts +8 -0
  1187. package/src/models/VirtualMachineEgressEnum.ts +14 -0
  1188. package/src/models/Voice.ts +14 -0
  1189. package/src/models/VoiceProviderEefEnum.ts +16 -0
  1190. package/src/models/VoiceProviderEnum.ts +18 -0
  1191. package/src/models/WakeModeEnum.ts +12 -0
  1192. package/src/models/WakeRequest.ts +13 -0
  1193. package/src/models/WakeResponse.ts +19 -0
  1194. package/src/models/WebResource.ts +14 -0
  1195. package/src/models/WebResourceCard.ts +12 -0
  1196. package/src/models/WebResourcesQuery.ts +8 -0
  1197. package/src/models/WebexConfig.ts +15 -0
  1198. package/src/models/WebexWebhook.ts +9 -0
  1199. package/src/models/WhatAppWebHook.ts +8 -0
  1200. package/src/models/WhatsappConfig.ts +16 -0
  1201. package/src/models/WhatsappUserConfig.ts +15 -0
  1202. package/src/models/Workflow.ts +63 -0
  1203. package/src/models/XblockResult.ts +14 -0
  1204. package/src/models/XblockTypeEnum.ts +20 -0
  1205. package/src/services/AiAccountService.ts +1482 -0
  1206. package/src/services/AiAnalyticsService.ts +14143 -5481
  1207. package/src/services/AiBotService.ts +1350 -0
  1208. package/src/services/AiIndexService.ts +644 -0
  1209. package/src/services/AiMarketingService.ts +96 -0
  1210. package/src/services/AiMediaService.ts +532 -0
  1211. package/src/services/AiMentorService.ts +24558 -0
  1212. package/src/services/AiPromptService.ts +1985 -0
  1213. package/src/services/AiProxyService.ts +90 -0
  1214. package/src/services/AiSearchService.ts +1299 -0
  1215. package/src/services/AnalyticsService.ts +1307 -189
  1216. package/src/services/IntegrationCredentialsService.ts +52 -0
  1217. package/src/services/SearchService.ts +2237 -741
@@ -2,774 +2,2270 @@
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 {
11
15
  /**
12
- * Search and filter content across the learning catalog.
16
+ * Search and filter AI mentors across the platform.
13
17
  *
14
- * This endpoint provides a powerful search interface for discovering content across
15
- * multiple content types (courses, programs, pathways, skills, roles, resources).
16
- * It supports full-text search, faceted filtering, and pagination.
18
+ * This endpoint provides a powerful search interface for discovering AI mentors
19
+ * with support for filtering, pagination, and detailed mentor information.
17
20
  *
18
21
  * Query Parameters:
19
- * query (str, optional): Search term to filter content by name or description
20
- * content (list, optional): Content types to include in results
21
- * (courses, programs, pathways, skills, roles, resources)
22
- * Default: ["programs", "courses", "pathways", "skills"]
22
+ * # Identification parameters (for detail view)
23
+ * id (int, optional): Retrieve a specific mentor by ID
24
+ * unique_id (uuid, optional): Retrieve a specific mentor by UUID
23
25
  *
24
- * # Filtering parameters
25
- * course_id (str, optional): Filter by specific course ID
26
- * program_id (str, optional): Filter by specific program ID
27
- * pathway_id (str, optional): Filter by specific pathway ID
28
- * skill_id (str, optional): Filter by specific skill ID
29
- * subject (list, optional): Filter by subject areas
30
- * tenant (list, optional): Filter by tenant/organization
31
- * topics (list, optional): Filter by topic areas
26
+ * # Search and filtering parameters
27
+ * query (str, optional): Search term to filter mentors by name or description
28
+ * tenant (str, optional): Filter by tenant/organization
29
+ * llm (list, optional): Filter by language model type
30
+ * audience (list, optional): Filter by target audience
31
+ * category (list, optional): Filter by mentor category
32
32
  * tags (list, optional): Filter by tags
33
- * level (list, optional): Filter by difficulty level
34
- * self_paced (list, optional): Filter by course format (self-paced, instructor-led)
35
- * promotion (list, optional): Filter by promotion status
36
- * language (list, optional): Filter by content language
37
- * certificate (list, optional): Filter by certificate type
38
- * program_type (list, optional): Filter by program type
39
- * duration (list, optional): Filter by course duration range
40
- * price (str, optional): Filter by price/audit status
41
- * resource_type (list, optional): Filter by resource type
42
- * skills (list, optional): Filter by skills
33
+ * created_by (str, optional): Filter mentors created by specific user
43
34
  *
44
35
  * # Sorting and pagination
45
- * order_by (str, optional): Field to sort results by
46
- * order_ascending (bool, optional): Sort direction (default: false)
47
- * alphabetical (bool, optional): Sort alphabetically by name (default: false)
36
+ * order_by (str, optional): Field to sort results by ('created_at', 'recently_accessed_at')
37
+ * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
48
38
  * limit (int, optional): Number of results per page (default: 12, max: 100)
49
39
  * offset (int, optional): Starting position for pagination
50
40
  *
51
- * # Response options
52
- * return_facet (bool, optional): Include facet data in response (default: true)
53
- * return_items (bool, optional): Include items in programs/pathways (default: false)
54
- * allow_skill_search (bool, optional): Enable skill-based search (default: false)
55
- * update_facet (str, optional): Force facet update
56
- *
57
41
  * Returns:
58
- * A JSON response containing:
59
- * - results: List of content items with metadata
60
- * - count: Total number of matching items
61
- * - next: URL for the next page of results (if available)
62
- * - previous: URL for the previous page of results (if available)
63
- * - current_page: Current page number
64
- * - total_pages: Total number of pages
65
- * - facets: Aggregated counts for each filter category (if requested)
66
- *
67
- * Each content item contains type-specific fields:
68
- * - Courses:
42
+ * For detail view (when id or unique_id is provided):
43
+ * A JSON response containing a single mentor's details:
69
44
  * {
70
45
  * "id": 123,
71
- * "type": "course",
72
- * "course_id": "CS101",
73
- * "name": "Introduction to Computer Science",
74
- * "description": "Learn the fundamentals of computer science",
75
- * "short_description": "CS fundamentals",
76
- * "image_url": "https://example.com/images/cs101.jpg",
77
- * "level": "Beginner",
78
- * "subject": "Computer Science",
79
- * "topics": ["Programming", "Algorithms"],
80
- * "tags": ["python", "coding"],
81
- * "language": "English",
82
- * "tenant": "example-university",
83
- * "self_paced": true,
84
- * "duration": "6 weeks",
85
- * "certificate": "Professional Certificate",
86
- * "price": "Free",
87
- * "skills": [
88
- * {"id": 1, "name": "Python Programming"},
89
- * {"id": 2, "name": "Algorithms"}
90
- * ],
91
- * "url": "https://example.com/courses/cs101"
92
- * }
93
- *
94
- * - Programs:
95
- * {
96
- * "id": 456,
97
- * "type": "program",
98
- * "program_id": "PROG123",
99
- * "name": "Data Science Program",
100
- * "description": "Comprehensive data science curriculum",
101
- * "short_description": "Learn data science",
102
- * "image_url": "https://example.com/images/datascience.jpg",
103
- * "level": "Intermediate",
104
- * "subject": "Data Science",
105
- * "topics": ["Machine Learning", "Statistics"],
106
- * "program_type": "Professional Certificate",
107
- * "courses": [
108
- * {"id": 123, "name": "Introduction to Python"},
109
- * {"id": 124, "name": "Statistics for Data Science"}
110
- * ],
111
- * "url": "https://example.com/programs/prog123"
112
- * }
113
- *
114
- * - Pathways:
115
- * {
116
- * "id": 789,
117
- * "type": "pathway",
118
- * "pathway_id": "PATH456",
119
- * "name": "Software Engineering Career Path",
120
- * "description": "Complete pathway to become a software engineer",
121
- * "image_url": "https://example.com/images/swe-path.jpg",
122
- * "programs": [
123
- * {"id": 456, "name": "Programming Fundamentals"},
124
- * {"id": 457, "name": "Web Development"}
125
- * ],
126
- * "url": "https://example.com/pathways/path456"
127
- * }
128
- *
129
- * - Skills:
130
- * {
131
- * "id": 321,
132
- * "type": "skill",
133
- * "name": "Machine Learning",
134
- * "description": "Building systems that learn from data",
135
- * "courses": [
136
- * {"id": 125, "name": "Machine Learning Fundamentals"}
46
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
47
+ * "name": "Professor Smith",
48
+ * "description": "AI mentor specializing in computer science",
49
+ * "image_url": "https://example.com/images/prof-smith.jpg",
50
+ * "llm": {
51
+ * "id": 1,
52
+ * "name": "GPT-4",
53
+ * "description": "Advanced language model"
54
+ * },
55
+ * "audience": {
56
+ * "id": 2,
57
+ * "name": "College Students",
58
+ * "description": "For university-level learners"
59
+ * },
60
+ * "category": "Computer Science",
61
+ * "tags": ["programming", "algorithms", "data structures"],
62
+ * "created_at": "2023-01-15T12:00:00Z",
63
+ * "recently_accessed_at": "2023-06-20T15:30:00Z",
64
+ * "platform": {
65
+ * "id": 1,
66
+ * "name": "Example University",
67
+ * "key": "example-university"
68
+ * },
69
+ * "visibility": "public",
70
+ * "settings": {
71
+ * "temperature": 0.7,
72
+ * "max_tokens": 1024,
73
+ * "system_prompt": "You are Professor Smith, an expert in computer science..."
74
+ * }
75
+ * }
76
+ *
77
+ * For list view:
78
+ * A JSON response containing:
79
+ * {
80
+ * "results": [
81
+ * {
82
+ * "id": 123,
83
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
84
+ * "name": "Professor Smith",
85
+ * "description": "AI mentor specializing in computer science",
86
+ * "image_url": "https://example.com/images/prof-smith.jpg",
87
+ * "llm": {"id": 1, "name": "GPT-4"},
88
+ * "audience": {"id": 2, "name": "College Students"},
89
+ * "category": "Computer Science",
90
+ * "tags": ["programming", "algorithms"],
91
+ * "created_at": "2023-01-15T12:00:00Z",
92
+ * "recently_accessed_at": "2023-06-20T15:30:00Z"
93
+ * },
94
+ * // Additional mentor objects...
137
95
  * ],
138
- * "related_skills": [
139
- * {"id": 322, "name": "Deep Learning"}
140
- * ]
141
- * }
142
- *
143
- * - Roles:
144
- * {
145
- * "id": 654,
146
- * "type": "role",
147
- * "name": "Data Scientist",
148
- * "description": "Professional who analyzes and interprets complex data",
149
- * "skills": [
150
- * {"id": 321, "name": "Machine Learning"},
151
- * {"id": 323, "name": "Data Analysis"}
96
+ * "count": 50,
97
+ * "next": "https://api.example.com/api/search/mentors/?limit=12&offset=12",
98
+ * "previous": null,
99
+ * "current_page": 1,
100
+ * "num_pages": 5,
101
+ * "facets": {
102
+ * "llm": [
103
+ * {"key": "GPT-4", "doc_count": 30},
104
+ * {"key": "Claude", "doc_count": 20}
105
+ * ],
106
+ * "audience": [
107
+ * {"key": "College Students", "doc_count": 35},
108
+ * {"key": "Professionals", "doc_count": 15}
152
109
  * ],
153
- * "recommended_courses": [
154
- * {"id": 125, "name": "Machine Learning Fundamentals"}
110
+ * "category": [
111
+ * {"key": "Computer Science", "doc_count": 25},
112
+ * {"key": "Mathematics", "doc_count": 15},
113
+ * {"key": "Business", "doc_count": 10}
155
114
  * ]
156
115
  * }
116
+ * }
117
+ *
118
+ * Error Responses:
119
+ * 400 Bad Request: If the request parameters are invalid
120
+ * 404 Not Found: If the requested mentor doesn't exist
121
+ * 500 Internal Server Error: If an unexpected error occurs
122
+ *
123
+ * Notes:
124
+ * - Results are cached for performance
125
+ * - Public mentors are visible to all users
126
+ * - Private mentors are only visible to authorized users
127
+ * @returns MentorSearchResponse
128
+ * @throws ApiError
129
+ */
130
+ public static searchAgentsRetrieve({
131
+ audience,
132
+ category,
133
+ createdBy,
134
+ featured,
135
+ id,
136
+ includeMainPublicMentors = false,
137
+ limit = 12,
138
+ llm,
139
+ offset,
140
+ orderBy,
141
+ orderDirection = 'desc',
142
+ query,
143
+ tags,
144
+ tenant,
145
+ uniqueId,
146
+ }: {
147
+ /**
148
+ * Filter by target audience
149
+ */
150
+ audience?: Array<string>,
151
+ /**
152
+ * Filter by mentor category
153
+ */
154
+ category?: Array<string>,
155
+ /**
156
+ * Filter mentors created by specific user
157
+ */
158
+ createdBy?: string,
159
+ /**
160
+ * Filter by featured status
161
+ */
162
+ featured?: boolean,
163
+ /**
164
+ * Retrieve a specific mentor by ID
165
+ */
166
+ id?: number,
167
+ /**
168
+ * Include public mentors from main tenant
169
+ */
170
+ includeMainPublicMentors?: boolean,
171
+ /**
172
+ * Number of results per page
173
+ */
174
+ limit?: number,
175
+ /**
176
+ * Filter by language model type
177
+ */
178
+ llm?: Array<string>,
179
+ /**
180
+ * Starting position for pagination
181
+ */
182
+ offset?: number,
183
+ /**
184
+ * Field to sort results by ('created_at', 'recently_accessed_at')
185
+ */
186
+ orderBy?: string,
187
+ /**
188
+ * Sort direction ('asc' or 'desc')
189
+ */
190
+ orderDirection?: string,
191
+ /**
192
+ * Search term to filter mentors by name or description
193
+ */
194
+ query?: string,
195
+ /**
196
+ * Filter by tags
197
+ */
198
+ tags?: Array<string>,
199
+ /**
200
+ * Filter by tenant/organization
201
+ */
202
+ tenant?: string,
203
+ /**
204
+ * Retrieve a specific mentor by UUID
205
+ */
206
+ uniqueId?: string,
207
+ }): CancelablePromise<MentorSearchResponse> {
208
+ return __request(OpenAPI, {
209
+ method: 'GET',
210
+ url: '/api/search/agents/',
211
+ query: {
212
+ 'audience': audience,
213
+ 'category': category,
214
+ 'created_by': createdBy,
215
+ 'featured': featured,
216
+ 'id': id,
217
+ 'include_main_public_mentors': includeMainPublicMentors,
218
+ 'limit': limit,
219
+ 'llm': llm,
220
+ 'offset': offset,
221
+ 'order_by': orderBy,
222
+ 'order_direction': orderDirection,
223
+ 'query': query,
224
+ 'tags': tags,
225
+ 'tenant': tenant,
226
+ 'unique_id': uniqueId,
227
+ },
228
+ errors: {
229
+ 400: `Bad request`,
230
+ 500: `Server error`,
231
+ },
232
+ });
233
+ }
234
+ /**
235
+ * Search and filter documents associated with a specific mentor
236
+ * @returns DocumentSearchResponse
237
+ * @throws ApiError
238
+ */
239
+ public static searchAgentsDocumentsRetrieve({
240
+ mentorUniqueId,
241
+ access,
242
+ documentType,
243
+ limit = 12,
244
+ offset,
245
+ orderBy,
246
+ orderDirection = 'desc',
247
+ platformKey,
248
+ query,
249
+ trainingStatus,
250
+ }: {
251
+ mentorUniqueId: string,
252
+ /**
253
+ * Filter by access level (e.g., 'public', 'private')
254
+ */
255
+ access?: string,
256
+ /**
257
+ * Filter by document type (e.g., 'pdf', 'text')
258
+ */
259
+ documentType?: string,
260
+ /**
261
+ * Number of results per page
262
+ */
263
+ limit?: number,
264
+ /**
265
+ * Starting position for pagination
266
+ */
267
+ offset?: number,
268
+ /**
269
+ * Field to sort results by ('date_created', 'last_modified', 'document_name')
270
+ */
271
+ orderBy?: string,
272
+ /**
273
+ * Sort direction ('asc' or 'desc')
274
+ */
275
+ orderDirection?: string,
276
+ /**
277
+ * Filter by platform key
278
+ */
279
+ platformKey?: string,
280
+ /**
281
+ * Search term to filter documents by name or content
282
+ */
283
+ query?: string,
284
+ /**
285
+ * Filter by training status (e.g., 'trained', 'pending')
286
+ */
287
+ trainingStatus?: string,
288
+ }): CancelablePromise<DocumentSearchResponse> {
289
+ return __request(OpenAPI, {
290
+ method: 'GET',
291
+ url: '/api/search/agents/{mentor_unique_id}/documents/',
292
+ path: {
293
+ 'mentor_unique_id': mentorUniqueId,
294
+ },
295
+ query: {
296
+ 'access': access,
297
+ 'document_type': documentType,
298
+ 'limit': limit,
299
+ 'offset': offset,
300
+ 'order_by': orderBy,
301
+ 'order_direction': orderDirection,
302
+ 'platform_key': platformKey,
303
+ 'query': query,
304
+ 'training_status': trainingStatus,
305
+ },
306
+ errors: {
307
+ 400: `Bad request`,
308
+ 404: `Mentor not found`,
309
+ 500: `Server error`,
310
+ },
311
+ });
312
+ }
313
+ /**
314
+ * Legacy endpoint for backward compatible mentor search
315
+ * @returns MentorSearchResponse
316
+ * @throws ApiError
317
+ */
318
+ public static searchAiSearchRetrieve({
319
+ audience,
320
+ category,
321
+ createdBy,
322
+ filterFacet = false,
323
+ id,
324
+ limit = 12,
325
+ llm,
326
+ offset,
327
+ orderBy,
328
+ orderDirection = 'desc',
329
+ page,
330
+ pageSize,
331
+ query,
332
+ tags,
333
+ tenant,
334
+ uniqueId,
335
+ }: {
336
+ /**
337
+ * Filter by target audience
338
+ */
339
+ audience?: Array<string>,
340
+ /**
341
+ * Filter by mentor category
342
+ */
343
+ category?: Array<string>,
344
+ /**
345
+ * Filter mentors created by specific user
346
+ */
347
+ createdBy?: string,
348
+ /**
349
+ * If present, return only facets without results
350
+ */
351
+ filterFacet?: boolean,
352
+ /**
353
+ * Retrieve a specific mentor by ID
354
+ */
355
+ id?: number,
356
+ /**
357
+ * Number of results per page
358
+ */
359
+ limit?: number,
360
+ /**
361
+ * Filter by language model type
362
+ */
363
+ llm?: Array<string>,
364
+ /**
365
+ * Starting position for pagination
366
+ */
367
+ offset?: number,
368
+ /**
369
+ * Field to sort results by ('created_at', 'recently_accessed_at')
370
+ */
371
+ orderBy?: string,
372
+ /**
373
+ * Sort direction ('asc' or 'desc')
374
+ */
375
+ orderDirection?: string,
376
+ /**
377
+ * Page number (1-based, used with page_size)
378
+ */
379
+ page?: number,
380
+ /**
381
+ * Number of results per page
382
+ */
383
+ pageSize?: number,
384
+ /**
385
+ * Search term to filter mentors by name or description
386
+ */
387
+ query?: string,
388
+ /**
389
+ * Filter by tags
390
+ */
391
+ tags?: Array<string>,
392
+ /**
393
+ * Filter by tenant/organization
394
+ */
395
+ tenant?: string,
396
+ /**
397
+ * Retrieve a specific mentor by UUID
398
+ */
399
+ uniqueId?: string,
400
+ }): CancelablePromise<MentorSearchResponse> {
401
+ return __request(OpenAPI, {
402
+ method: 'GET',
403
+ url: '/api/search/ai-search/',
404
+ query: {
405
+ 'audience': audience,
406
+ 'category': category,
407
+ 'created_by': createdBy,
408
+ 'filter_facet': filterFacet,
409
+ 'id': id,
410
+ 'limit': limit,
411
+ 'llm': llm,
412
+ 'offset': offset,
413
+ 'order_by': orderBy,
414
+ 'order_direction': orderDirection,
415
+ 'page': page,
416
+ 'page_size': pageSize,
417
+ 'query': query,
418
+ 'tags': tags,
419
+ 'tenant': tenant,
420
+ 'unique_id': uniqueId,
421
+ },
422
+ errors: {
423
+ 400: `Bad request`,
424
+ 500: `Server error`,
425
+ },
426
+ });
427
+ }
428
+ /**
429
+ * Search and filter content across the learning catalog.
430
+ *
431
+ * This endpoint provides a powerful search interface for discovering content across
432
+ * multiple content types (courses, programs, pathways, skills, roles, resources).
433
+ * It supports full-text search, faceted filtering, and pagination.
434
+ *
435
+ * Query Parameters:
436
+ * query (str, optional): Search term to filter content by name or description
437
+ * content (list, optional): Content types to include in results
438
+ * (courses, programs, pathways, skills, roles, resources,
439
+ * mentors/agents - "agents" is accepted as a synonym for
440
+ * "mentors" and mentor items come back with type "agent")
441
+ * Default: ["programs", "courses", "pathways", "skills"]
157
442
  *
158
- * - Resources:
443
+ * # Filtering parameters
444
+ * course_id (str, optional): Filter by specific course ID
445
+ * program_id (str, optional): Filter by specific program ID
446
+ * pathway_id (str, optional): Filter by specific pathway ID
447
+ * skill_id (str, optional): Filter by specific skill ID
448
+ * subject (list, optional): Filter by subject areas
449
+ * tenant (list, optional): Filter by tenant/organization
450
+ * topics (list, optional): Filter by topic areas
451
+ * tags (list, optional): Filter by tags
452
+ * level (list, optional): Filter by difficulty level
453
+ * self_paced (list, optional): Filter by course format (self-paced, instructor-led)
454
+ * promotion (list, optional): Filter by promotion status
455
+ * language (list, optional): Filter by content language
456
+ * certificate (list, optional): Filter by certificate type
457
+ * program_type (list, optional): Filter by program type
458
+ * duration (list, optional): Filter by course duration range
459
+ * price (str, optional): Filter by price/audit status
460
+ * resource_type (list, optional): Filter by resource type
461
+ * skills (list, optional): Filter by skills
462
+ *
463
+ * # Sorting and pagination
464
+ * order_by (str, optional): Field to sort results by
465
+ * order_ascending (bool, optional): Sort direction (default: false)
466
+ * alphabetical (bool, optional): Sort alphabetically by name (default: false)
467
+ * limit (int, optional): Number of results per page (default: 12, max: 100)
468
+ * offset (int, optional): Starting position for pagination
469
+ *
470
+ * # Response options
471
+ * return_facet (bool, optional): Include facet data in response (default: true)
472
+ * return_items (bool, optional): Include items in programs/pathways (default: false)
473
+ * allow_skill_search (bool, optional): Enable skill-based search (default: false)
474
+ * update_facet (str, optional): Force facet update
475
+ *
476
+ * Returns:
477
+ * A JSON response containing:
478
+ * - results: List of content items with metadata
479
+ * - count: Total number of matching items
480
+ * - next: URL for the next page of results (if available)
481
+ * - previous: URL for the previous page of results (if available)
482
+ * - current_page: Current page number
483
+ * - total_pages: Total number of pages
484
+ * - facets: Aggregated counts for each filter category (if requested)
485
+ *
486
+ * Each content item contains type-specific fields:
487
+ * - Courses:
159
488
  * {
160
- * "id": 987,
161
- * "type": "resource",
162
- * "name": "Python Cheat Sheet",
163
- * "description": "Quick reference guide for Python",
164
- * "resource_type": "PDF",
165
- * "url": "https://example.com/resources/python-cheatsheet.pdf",
166
- * "topics": ["Programming", "Python"]
167
- * }
168
- *
169
- * Error Responses:
170
- * 500 Internal Server Error: If an unexpected error occurs during processing
171
- *
172
- * Notes:
173
- * - Results are cached for performance
174
- * - The 'resources' content type is only included by default if IBL_ENABLE_RESOURCES_IN_FACET is true
175
- * - For debugging, add ?debug=true to see detailed information about skill matching
176
- * @returns GlobalCatalogSearchResponse
177
- * @throws ApiError
178
- */
179
- public static searchGlobalRetrieve({
180
- allowSkillSearch = false,
181
- alphabetical = false,
182
- certificate,
183
- content,
184
- courseId,
185
- duration,
186
- language,
187
- level,
188
- limit = 12,
189
- offset,
190
- orderAscending = false,
191
- orderBy,
192
- pathwayId,
193
- price,
194
- programId,
195
- programType,
196
- promotion,
197
- query,
198
- resourceType,
199
- returnFacet = true,
200
- returnItems = false,
201
- selfPaced,
202
- skillId,
203
- skills,
204
- subject,
205
- tags,
206
- tenant,
207
- topics,
208
- updateFacet,
209
- }: {
210
- /**
211
- * Enable skill-based search
212
- */
213
- allowSkillSearch?: boolean,
214
- /**
215
- * Sort alphabetically by name
216
- */
217
- alphabetical?: boolean,
218
- /**
219
- * Filter by certificate type
220
- */
221
- certificate?: Array<string>,
222
- /**
223
- * Content types to include in results
224
- */
225
- content?: Array<string>,
226
- /**
227
- * Filter by specific course ID
228
- */
229
- courseId?: string,
230
- /**
231
- * Filter by course duration range
232
- */
233
- duration?: Array<string>,
234
- /**
235
- * Filter by content language
236
- */
237
- language?: Array<string>,
238
- /**
239
- * Filter by difficulty level
240
- */
241
- level?: Array<string>,
242
- /**
243
- * Number of results per page
244
- */
245
- limit?: number,
246
- /**
247
- * Starting position for pagination
248
- */
249
- offset?: number,
250
- /**
251
- * Sort direction
252
- */
253
- orderAscending?: boolean,
254
- /**
255
- * Field to sort results by
256
- */
257
- orderBy?: string,
258
- /**
259
- * Filter by specific pathway ID
260
- */
261
- pathwayId?: string,
262
- /**
263
- * Filter by price/audit status
264
- */
265
- price?: string,
266
- /**
267
- * Filter by specific program ID
268
- */
269
- programId?: string,
270
- /**
271
- * Filter by program type
272
- */
273
- programType?: Array<string>,
274
- /**
275
- * Filter by promotion status
276
- */
277
- promotion?: Array<string>,
278
- /**
279
- * Search term to filter content by name or description
280
- */
281
- query?: string,
282
- /**
283
- * Filter by resource type
284
- */
285
- resourceType?: Array<string>,
286
- /**
287
- * Include facet data in response
288
- */
289
- returnFacet?: boolean,
290
- /**
291
- * Include items in programs/pathways
292
- */
293
- returnItems?: boolean,
294
- /**
295
- * Filter by course format
296
- */
297
- selfPaced?: Array<string>,
298
- /**
299
- * Filter by specific skill ID
300
- */
301
- skillId?: string,
302
- /**
303
- * Filter by skills
304
- */
305
- skills?: Array<string>,
306
- /**
307
- * Filter by subject areas
308
- */
309
- subject?: Array<string>,
310
- /**
311
- * Filter by tags
312
- */
313
- tags?: Array<string>,
314
- /**
315
- * Filter by tenant/organization
316
- */
317
- tenant?: string,
318
- /**
319
- * Filter by topic areas
320
- */
321
- topics?: Array<string>,
322
- /**
323
- * Force facet update
324
- */
325
- updateFacet?: string,
326
- }): CancelablePromise<GlobalCatalogSearchResponse> {
327
- return __request(OpenAPI, {
328
- method: 'GET',
329
- url: '/api/search/global/',
330
- query: {
331
- 'allow_skill_search': allowSkillSearch,
332
- 'alphabetical': alphabetical,
333
- 'certificate': certificate,
334
- 'content': content,
335
- 'course_id': courseId,
336
- 'duration': duration,
337
- 'language': language,
338
- 'level': level,
339
- 'limit': limit,
340
- 'offset': offset,
341
- 'order_ascending': orderAscending,
342
- 'order_by': orderBy,
343
- 'pathway_id': pathwayId,
344
- 'price': price,
345
- 'program_id': programId,
346
- 'program_type': programType,
347
- 'promotion': promotion,
348
- 'query': query,
349
- 'resource_type': resourceType,
350
- 'return_facet': returnFacet,
351
- 'return_items': returnItems,
352
- 'self_paced': selfPaced,
353
- 'skill_id': skillId,
354
- 'skills': skills,
355
- 'subject': subject,
356
- 'tags': tags,
357
- 'tenant': tenant,
358
- 'topics': topics,
359
- 'update_facet': updateFacet,
360
- },
361
- errors: {
362
- 400: `Bad request`,
363
- 500: `Server error`,
364
- },
365
- });
366
- }
367
- /**
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.
583
- *
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
590
- *
591
- * 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
599
- *
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
605
- *
606
- * # Pagination
607
- * limit (int, optional): Number of results per page (default: 10)
608
- * offset (int, optional): Starting position for pagination
609
- *
610
- * Returns:
611
- * A JSON response containing:
612
- * ```
613
- * {
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
- * }
633
- * },
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}
489
+ * "id": 123,
490
+ * "type": "course",
491
+ * "course_id": "CS101",
492
+ * "name": "Introduction to Computer Science",
493
+ * "description": "Learn the fundamentals of computer science",
494
+ * "short_description": "CS fundamentals",
495
+ * "image_url": "https://example.com/images/cs101.jpg",
496
+ * "level": "Beginner",
497
+ * "subject": "Computer Science",
498
+ * "topics": ["Programming", "Algorithms"],
499
+ * "tags": ["python", "coding"],
500
+ * "language": "English",
501
+ * "tenant": "example-university",
502
+ * "self_paced": true,
503
+ * "duration": "6 weeks",
504
+ * "certificate": "Professional Certificate",
505
+ * "price": "Free",
506
+ * "skills": [
507
+ * {"id": 1, "name": "Python Programming"},
508
+ * {"id": 2, "name": "Algorithms"}
509
+ * ],
510
+ * "url": "https://example.com/courses/cs101"
511
+ * }
512
+ *
513
+ * - Programs:
514
+ * {
515
+ * "id": 456,
516
+ * "type": "program",
517
+ * "program_id": "PROG123",
518
+ * "name": "Data Science Program",
519
+ * "description": "Comprehensive data science curriculum",
520
+ * "short_description": "Learn data science",
521
+ * "image_url": "https://example.com/images/datascience.jpg",
522
+ * "level": "Intermediate",
523
+ * "subject": "Data Science",
524
+ * "topics": ["Machine Learning", "Statistics"],
525
+ * "program_type": "Professional Certificate",
526
+ * "courses": [
527
+ * {"id": 123, "name": "Introduction to Python"},
528
+ * {"id": 124, "name": "Statistics for Data Science"}
529
+ * ],
530
+ * "url": "https://example.com/programs/prog123"
531
+ * }
532
+ *
533
+ * - Pathways:
534
+ * {
535
+ * "id": 789,
536
+ * "type": "pathway",
537
+ * "pathway_id": "PATH456",
538
+ * "name": "Software Engineering Career Path",
539
+ * "description": "Complete pathway to become a software engineer",
540
+ * "image_url": "https://example.com/images/swe-path.jpg",
541
+ * "programs": [
542
+ * {"id": 456, "name": "Programming Fundamentals"},
543
+ * {"id": 457, "name": "Web Development"}
544
+ * ],
545
+ * "url": "https://example.com/pathways/path456"
546
+ * }
547
+ *
548
+ * - Skills:
549
+ * {
550
+ * "id": 321,
551
+ * "type": "skill",
552
+ * "name": "Machine Learning",
553
+ * "description": "Building systems that learn from data",
554
+ * "courses": [
555
+ * {"id": 125, "name": "Machine Learning Fundamentals"}
652
556
  * ],
653
- * "status": [
654
- * {"key": "active", "doc_count": 45},
655
- * {"key": "inactive", "doc_count": 5}
557
+ * "related_skills": [
558
+ * {"id": 322, "name": "Deep Learning"}
656
559
  * ]
657
560
  * }
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
561
  *
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
- }
562
+ * - Roles:
563
+ * {
564
+ * "id": 654,
565
+ * "type": "role",
566
+ * "name": "Data Scientist",
567
+ * "description": "Professional who analyzes and interprets complex data",
568
+ * "skills": [
569
+ * {"id": 321, "name": "Machine Learning"},
570
+ * {"id": 323, "name": "Data Analysis"}
571
+ * ],
572
+ * "recommended_courses": [
573
+ * {"id": 125, "name": "Machine Learning Fundamentals"}
574
+ * ]
575
+ * }
576
+ *
577
+ * - Resources:
578
+ * {
579
+ * "id": 987,
580
+ * "type": "resource",
581
+ * "name": "Python Cheat Sheet",
582
+ * "description": "Quick reference guide for Python",
583
+ * "resource_type": "PDF",
584
+ * "url": "https://example.com/resources/python-cheatsheet.pdf",
585
+ * "topics": ["Programming", "Python"]
586
+ * }
587
+ *
588
+ * Error Responses:
589
+ * 500 Internal Server Error: If an unexpected error occurs during processing
590
+ *
591
+ * Notes:
592
+ * - Results are cached for performance
593
+ * - The 'resources' content type is only included by default if IBL_ENABLE_RESOURCES_IN_FACET is true
594
+ * - For debugging, add ?debug=true to see detailed information about skill matching
595
+ * @returns GlobalCatalogSearchResponse
596
+ * @throws ApiError
597
+ */
598
+ public static searchGlobalRetrieve({
599
+ allowSkillSearch = false,
600
+ alphabetical = false,
601
+ certificate,
602
+ content,
603
+ courseId,
604
+ duration,
605
+ language,
606
+ level,
607
+ limit = 12,
608
+ offset,
609
+ orderAscending = false,
610
+ orderBy,
611
+ pathwayId,
612
+ price,
613
+ programId,
614
+ programType,
615
+ promotion,
616
+ query,
617
+ resourceType,
618
+ returnFacet = true,
619
+ returnItems = false,
620
+ selfPaced,
621
+ skillId,
622
+ skills,
623
+ subject,
624
+ tags,
625
+ tenant,
626
+ topics,
627
+ updateFacet,
628
+ }: {
629
+ /**
630
+ * Enable skill-based search
631
+ */
632
+ allowSkillSearch?: boolean,
633
+ /**
634
+ * Sort alphabetically by name
635
+ */
636
+ alphabetical?: boolean,
637
+ /**
638
+ * Filter by certificate type
639
+ */
640
+ certificate?: Array<string>,
641
+ /**
642
+ * Content types to include in results
643
+ */
644
+ content?: Array<string>,
645
+ /**
646
+ * Filter by specific course ID
647
+ */
648
+ courseId?: string,
649
+ /**
650
+ * Filter by course duration range
651
+ */
652
+ duration?: Array<string>,
653
+ /**
654
+ * Filter by content language
655
+ */
656
+ language?: Array<string>,
657
+ /**
658
+ * Filter by difficulty level
659
+ */
660
+ level?: Array<string>,
661
+ /**
662
+ * Number of results per page
663
+ */
664
+ limit?: number,
665
+ /**
666
+ * Starting position for pagination
667
+ */
668
+ offset?: number,
669
+ /**
670
+ * Sort direction
671
+ */
672
+ orderAscending?: boolean,
673
+ /**
674
+ * Field to sort results by
675
+ */
676
+ orderBy?: string,
677
+ /**
678
+ * Filter by specific pathway ID
679
+ */
680
+ pathwayId?: string,
681
+ /**
682
+ * Filter by price/audit status
683
+ */
684
+ price?: string,
685
+ /**
686
+ * Filter by specific program ID
687
+ */
688
+ programId?: string,
689
+ /**
690
+ * Filter by program type
691
+ */
692
+ programType?: Array<string>,
693
+ /**
694
+ * Filter by promotion status
695
+ */
696
+ promotion?: Array<string>,
697
+ /**
698
+ * Search term to filter content by name or description
699
+ */
700
+ query?: string,
701
+ /**
702
+ * Filter by resource type
703
+ */
704
+ resourceType?: Array<string>,
705
+ /**
706
+ * Include facet data in response
707
+ */
708
+ returnFacet?: boolean,
709
+ /**
710
+ * Include items in programs/pathways
711
+ */
712
+ returnItems?: boolean,
713
+ /**
714
+ * Filter by course format
715
+ */
716
+ selfPaced?: Array<string>,
717
+ /**
718
+ * Filter by specific skill ID
719
+ */
720
+ skillId?: string,
721
+ /**
722
+ * Filter by skills
723
+ */
724
+ skills?: Array<string>,
725
+ /**
726
+ * Filter by subject areas
727
+ */
728
+ subject?: Array<string>,
729
+ /**
730
+ * Filter by tags
731
+ */
732
+ tags?: Array<string>,
733
+ /**
734
+ * Filter by tenant/organization
735
+ */
736
+ tenant?: string,
737
+ /**
738
+ * Filter by topic areas
739
+ */
740
+ topics?: Array<string>,
741
+ /**
742
+ * Force facet update
743
+ */
744
+ updateFacet?: string,
745
+ }): CancelablePromise<GlobalCatalogSearchResponse> {
746
+ return __request(OpenAPI, {
747
+ method: 'GET',
748
+ url: '/api/search/global/',
749
+ query: {
750
+ 'allow_skill_search': allowSkillSearch,
751
+ 'alphabetical': alphabetical,
752
+ 'certificate': certificate,
753
+ 'content': content,
754
+ 'course_id': courseId,
755
+ 'duration': duration,
756
+ 'language': language,
757
+ 'level': level,
758
+ 'limit': limit,
759
+ 'offset': offset,
760
+ 'order_ascending': orderAscending,
761
+ 'order_by': orderBy,
762
+ 'pathway_id': pathwayId,
763
+ 'price': price,
764
+ 'program_id': programId,
765
+ 'program_type': programType,
766
+ 'promotion': promotion,
767
+ 'query': query,
768
+ 'resource_type': resourceType,
769
+ 'return_facet': returnFacet,
770
+ 'return_items': returnItems,
771
+ 'self_paced': selfPaced,
772
+ 'skill_id': skillId,
773
+ 'skills': skills,
774
+ 'subject': subject,
775
+ 'tags': tags,
776
+ 'tenant': tenant,
777
+ 'topics': topics,
778
+ 'update_facet': updateFacet,
779
+ },
780
+ errors: {
781
+ 400: `Bad request`,
782
+ 500: `Server error`,
783
+ },
784
+ });
785
+ }
786
+ /**
787
+ * @deprecated
788
+ * **Deprecated — use `/api/search/agents/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/search/agents/` (`mentor` → `agent`) and will be removed in a future release.
789
+ *
790
+ * Search and filter AI mentors across the platform.
791
+ *
792
+ * This endpoint provides a powerful search interface for discovering AI mentors
793
+ * with support for filtering, pagination, and detailed mentor information.
794
+ *
795
+ * Query Parameters:
796
+ * # Identification parameters (for detail view)
797
+ * id (int, optional): Retrieve a specific mentor by ID
798
+ * unique_id (uuid, optional): Retrieve a specific mentor by UUID
799
+ *
800
+ * # Search and filtering parameters
801
+ * query (str, optional): Search term to filter mentors by name or description
802
+ * tenant (str, optional): Filter by tenant/organization
803
+ * llm (list, optional): Filter by language model type
804
+ * audience (list, optional): Filter by target audience
805
+ * category (list, optional): Filter by mentor category
806
+ * tags (list, optional): Filter by tags
807
+ * created_by (str, optional): Filter mentors created by specific user
808
+ *
809
+ * # Sorting and pagination
810
+ * order_by (str, optional): Field to sort results by ('created_at', 'recently_accessed_at')
811
+ * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
812
+ * limit (int, optional): Number of results per page (default: 12, max: 100)
813
+ * offset (int, optional): Starting position for pagination
814
+ *
815
+ * Returns:
816
+ * For detail view (when id or unique_id is provided):
817
+ * A JSON response containing a single mentor's details:
818
+ * {
819
+ * "id": 123,
820
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
821
+ * "name": "Professor Smith",
822
+ * "description": "AI mentor specializing in computer science",
823
+ * "image_url": "https://example.com/images/prof-smith.jpg",
824
+ * "llm": {
825
+ * "id": 1,
826
+ * "name": "GPT-4",
827
+ * "description": "Advanced language model"
828
+ * },
829
+ * "audience": {
830
+ * "id": 2,
831
+ * "name": "College Students",
832
+ * "description": "For university-level learners"
833
+ * },
834
+ * "category": "Computer Science",
835
+ * "tags": ["programming", "algorithms", "data structures"],
836
+ * "created_at": "2023-01-15T12:00:00Z",
837
+ * "recently_accessed_at": "2023-06-20T15:30:00Z",
838
+ * "platform": {
839
+ * "id": 1,
840
+ * "name": "Example University",
841
+ * "key": "example-university"
842
+ * },
843
+ * "visibility": "public",
844
+ * "settings": {
845
+ * "temperature": 0.7,
846
+ * "max_tokens": 1024,
847
+ * "system_prompt": "You are Professor Smith, an expert in computer science..."
848
+ * }
849
+ * }
850
+ *
851
+ * For list view:
852
+ * A JSON response containing:
853
+ * {
854
+ * "results": [
855
+ * {
856
+ * "id": 123,
857
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
858
+ * "name": "Professor Smith",
859
+ * "description": "AI mentor specializing in computer science",
860
+ * "image_url": "https://example.com/images/prof-smith.jpg",
861
+ * "llm": {"id": 1, "name": "GPT-4"},
862
+ * "audience": {"id": 2, "name": "College Students"},
863
+ * "category": "Computer Science",
864
+ * "tags": ["programming", "algorithms"],
865
+ * "created_at": "2023-01-15T12:00:00Z",
866
+ * "recently_accessed_at": "2023-06-20T15:30:00Z"
867
+ * },
868
+ * // Additional mentor objects...
869
+ * ],
870
+ * "count": 50,
871
+ * "next": "https://api.example.com/api/search/mentors/?limit=12&offset=12",
872
+ * "previous": null,
873
+ * "current_page": 1,
874
+ * "num_pages": 5,
875
+ * "facets": {
876
+ * "llm": [
877
+ * {"key": "GPT-4", "doc_count": 30},
878
+ * {"key": "Claude", "doc_count": 20}
879
+ * ],
880
+ * "audience": [
881
+ * {"key": "College Students", "doc_count": 35},
882
+ * {"key": "Professionals", "doc_count": 15}
883
+ * ],
884
+ * "category": [
885
+ * {"key": "Computer Science", "doc_count": 25},
886
+ * {"key": "Mathematics", "doc_count": 15},
887
+ * {"key": "Business", "doc_count": 10}
888
+ * ]
889
+ * }
890
+ * }
891
+ *
892
+ * Error Responses:
893
+ * 400 Bad Request: If the request parameters are invalid
894
+ * 404 Not Found: If the requested mentor doesn't exist
895
+ * 500 Internal Server Error: If an unexpected error occurs
896
+ *
897
+ * Notes:
898
+ * - Results are cached for performance
899
+ * - Public mentors are visible to all users
900
+ * - Private mentors are only visible to authorized users
901
+ * @returns MentorSearchResponse
902
+ * @throws ApiError
903
+ */
904
+ public static searchMentorsRetrieve({
905
+ audience,
906
+ category,
907
+ createdBy,
908
+ featured,
909
+ id,
910
+ includeMainPublicMentors = false,
911
+ limit = 12,
912
+ llm,
913
+ offset,
914
+ orderBy,
915
+ orderDirection = 'desc',
916
+ query,
917
+ tags,
918
+ tenant,
919
+ uniqueId,
920
+ }: {
921
+ /**
922
+ * Filter by target audience
923
+ */
924
+ audience?: Array<string>,
925
+ /**
926
+ * Filter by mentor category
927
+ */
928
+ category?: Array<string>,
929
+ /**
930
+ * Filter mentors created by specific user
931
+ */
932
+ createdBy?: string,
933
+ /**
934
+ * Filter by featured status
935
+ */
936
+ featured?: boolean,
937
+ /**
938
+ * Retrieve a specific mentor by ID
939
+ */
940
+ id?: number,
941
+ /**
942
+ * Include public mentors from main tenant
943
+ */
944
+ includeMainPublicMentors?: boolean,
945
+ /**
946
+ * Number of results per page
947
+ */
948
+ limit?: number,
949
+ /**
950
+ * Filter by language model type
951
+ */
952
+ llm?: Array<string>,
953
+ /**
954
+ * Starting position for pagination
955
+ */
956
+ offset?: number,
957
+ /**
958
+ * Field to sort results by ('created_at', 'recently_accessed_at')
959
+ */
960
+ orderBy?: string,
961
+ /**
962
+ * Sort direction ('asc' or 'desc')
963
+ */
964
+ orderDirection?: string,
965
+ /**
966
+ * Search term to filter mentors by name or description
967
+ */
968
+ query?: string,
969
+ /**
970
+ * Filter by tags
971
+ */
972
+ tags?: Array<string>,
973
+ /**
974
+ * Filter by tenant/organization
975
+ */
976
+ tenant?: string,
977
+ /**
978
+ * Retrieve a specific mentor by UUID
979
+ */
980
+ uniqueId?: string,
981
+ }): CancelablePromise<MentorSearchResponse> {
982
+ return __request(OpenAPI, {
983
+ method: 'GET',
984
+ url: '/api/search/mentors/',
985
+ query: {
986
+ 'audience': audience,
987
+ 'category': category,
988
+ 'created_by': createdBy,
989
+ 'featured': featured,
990
+ 'id': id,
991
+ 'include_main_public_mentors': includeMainPublicMentors,
992
+ 'limit': limit,
993
+ 'llm': llm,
994
+ 'offset': offset,
995
+ 'order_by': orderBy,
996
+ 'order_direction': orderDirection,
997
+ 'query': query,
998
+ 'tags': tags,
999
+ 'tenant': tenant,
1000
+ 'unique_id': uniqueId,
1001
+ },
1002
+ errors: {
1003
+ 400: `Bad request`,
1004
+ 500: `Server error`,
1005
+ },
1006
+ });
1007
+ }
1008
+ /**
1009
+ * @deprecated
1010
+ * **Deprecated — use `/api/search/agents/{mentor_unique_id}/documents/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/search/agents/{mentor_unique_id}/documents/` (`mentor` → `agent`) and will be removed in a future release.
1011
+ *
1012
+ * Search and filter documents associated with a specific mentor
1013
+ * @returns DocumentSearchResponse
1014
+ * @throws ApiError
1015
+ */
1016
+ public static searchMentorsDocumentsRetrieve({
1017
+ mentorUniqueId,
1018
+ access,
1019
+ documentType,
1020
+ limit = 12,
1021
+ offset,
1022
+ orderBy,
1023
+ orderDirection = 'desc',
1024
+ platformKey,
1025
+ query,
1026
+ trainingStatus,
1027
+ }: {
1028
+ mentorUniqueId: string,
1029
+ /**
1030
+ * Filter by access level (e.g., 'public', 'private')
1031
+ */
1032
+ access?: string,
1033
+ /**
1034
+ * Filter by document type (e.g., 'pdf', 'text')
1035
+ */
1036
+ documentType?: string,
1037
+ /**
1038
+ * Number of results per page
1039
+ */
1040
+ limit?: number,
1041
+ /**
1042
+ * Starting position for pagination
1043
+ */
1044
+ offset?: number,
1045
+ /**
1046
+ * Field to sort results by ('date_created', 'last_modified', 'document_name')
1047
+ */
1048
+ orderBy?: string,
1049
+ /**
1050
+ * Sort direction ('asc' or 'desc')
1051
+ */
1052
+ orderDirection?: string,
1053
+ /**
1054
+ * Filter by platform key
1055
+ */
1056
+ platformKey?: string,
1057
+ /**
1058
+ * Search term to filter documents by name or content
1059
+ */
1060
+ query?: string,
1061
+ /**
1062
+ * Filter by training status (e.g., 'trained', 'pending')
1063
+ */
1064
+ trainingStatus?: string,
1065
+ }): CancelablePromise<DocumentSearchResponse> {
1066
+ return __request(OpenAPI, {
1067
+ method: 'GET',
1068
+ url: '/api/search/mentors/{mentor_unique_id}/documents/',
1069
+ path: {
1070
+ 'mentor_unique_id': mentorUniqueId,
1071
+ },
1072
+ query: {
1073
+ 'access': access,
1074
+ 'document_type': documentType,
1075
+ 'limit': limit,
1076
+ 'offset': offset,
1077
+ 'order_by': orderBy,
1078
+ 'order_direction': orderDirection,
1079
+ 'platform_key': platformKey,
1080
+ 'query': query,
1081
+ 'training_status': trainingStatus,
1082
+ },
1083
+ errors: {
1084
+ 400: `Bad request`,
1085
+ 404: `Mentor not found`,
1086
+ 500: `Server error`,
1087
+ },
1088
+ });
1089
+ }
1090
+ /**
1091
+ * Handle GET requests for tenant-specific mentor search.
1092
+ *
1093
+ * Args:
1094
+ * request: HTTP request object
1095
+ * org: Tenant/organization key
1096
+ * username: Username of the user making the request
1097
+ *
1098
+ * Returns:
1099
+ * Response: DRF Response object with search results
1100
+ * @returns MentorSearchResponse
1101
+ * @throws ApiError
1102
+ */
1103
+ public static searchOrgsUsersAgentsRetrieve({
1104
+ org,
1105
+ username,
1106
+ audience,
1107
+ category,
1108
+ createdBy,
1109
+ featured,
1110
+ id,
1111
+ includeMainPublicMentors = false,
1112
+ limit = 12,
1113
+ llm,
1114
+ offset,
1115
+ orderBy,
1116
+ orderDirection = 'desc',
1117
+ query,
1118
+ tags,
1119
+ tenant,
1120
+ uniqueId,
1121
+ }: {
1122
+ org: string,
1123
+ username: string,
1124
+ /**
1125
+ * Filter by target audience
1126
+ */
1127
+ audience?: Array<string>,
1128
+ /**
1129
+ * Filter by mentor category
1130
+ */
1131
+ category?: Array<string>,
1132
+ /**
1133
+ * Filter mentors created by specific user
1134
+ */
1135
+ createdBy?: string,
1136
+ /**
1137
+ * Filter by featured status
1138
+ */
1139
+ featured?: boolean,
1140
+ /**
1141
+ * Retrieve a specific mentor by ID
1142
+ */
1143
+ id?: number,
1144
+ /**
1145
+ * Include public mentors from main tenant
1146
+ */
1147
+ includeMainPublicMentors?: boolean,
1148
+ /**
1149
+ * Number of results per page
1150
+ */
1151
+ limit?: number,
1152
+ /**
1153
+ * Filter by language model type
1154
+ */
1155
+ llm?: Array<string>,
1156
+ /**
1157
+ * Starting position for pagination
1158
+ */
1159
+ offset?: number,
1160
+ /**
1161
+ * Field to sort results by ('created_at', 'recently_accessed_at')
1162
+ */
1163
+ orderBy?: string,
1164
+ /**
1165
+ * Sort direction ('asc' or 'desc')
1166
+ */
1167
+ orderDirection?: string,
1168
+ /**
1169
+ * Search term to filter mentors by name or description
1170
+ */
1171
+ query?: string,
1172
+ /**
1173
+ * Filter by tags
1174
+ */
1175
+ tags?: Array<string>,
1176
+ /**
1177
+ * Filter by tenant/organization
1178
+ */
1179
+ tenant?: string,
1180
+ /**
1181
+ * Retrieve a specific mentor by UUID
1182
+ */
1183
+ uniqueId?: string,
1184
+ }): CancelablePromise<MentorSearchResponse> {
1185
+ return __request(OpenAPI, {
1186
+ method: 'GET',
1187
+ url: '/api/search/orgs/{org}/users/{username}/agents/',
1188
+ path: {
1189
+ 'org': org,
1190
+ 'username': username,
1191
+ },
1192
+ query: {
1193
+ 'audience': audience,
1194
+ 'category': category,
1195
+ 'created_by': createdBy,
1196
+ 'featured': featured,
1197
+ 'id': id,
1198
+ 'include_main_public_mentors': includeMainPublicMentors,
1199
+ 'limit': limit,
1200
+ 'llm': llm,
1201
+ 'offset': offset,
1202
+ 'order_by': orderBy,
1203
+ 'order_direction': orderDirection,
1204
+ 'query': query,
1205
+ 'tags': tags,
1206
+ 'tenant': tenant,
1207
+ 'unique_id': uniqueId,
1208
+ },
1209
+ errors: {
1210
+ 400: `Bad request`,
1211
+ 403: `Forbidden - user does not have access`,
1212
+ 500: `Server error`,
1213
+ },
1214
+ });
1215
+ }
1216
+ /**
1217
+ * @deprecated
1218
+ * **Deprecated — use `/api/search/orgs/{org}/users/{username}/agents/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/search/orgs/{org}/users/{username}/agents/` (`mentor` → `agent`) and will be removed in a future release.
1219
+ *
1220
+ * Handle GET requests for tenant-specific mentor search.
1221
+ *
1222
+ * Args:
1223
+ * request: HTTP request object
1224
+ * org: Tenant/organization key
1225
+ * username: Username of the user making the request
1226
+ *
1227
+ * Returns:
1228
+ * Response: DRF Response object with search results
1229
+ * @returns MentorSearchResponse
1230
+ * @throws ApiError
1231
+ */
1232
+ public static searchOrgsUsersMentorsRetrieve({
1233
+ org,
1234
+ username,
1235
+ audience,
1236
+ category,
1237
+ createdBy,
1238
+ featured,
1239
+ id,
1240
+ includeMainPublicMentors = false,
1241
+ limit = 12,
1242
+ llm,
1243
+ offset,
1244
+ orderBy,
1245
+ orderDirection = 'desc',
1246
+ query,
1247
+ tags,
1248
+ tenant,
1249
+ uniqueId,
1250
+ }: {
1251
+ org: string,
1252
+ username: string,
1253
+ /**
1254
+ * Filter by target audience
1255
+ */
1256
+ audience?: Array<string>,
1257
+ /**
1258
+ * Filter by mentor category
1259
+ */
1260
+ category?: Array<string>,
1261
+ /**
1262
+ * Filter mentors created by specific user
1263
+ */
1264
+ createdBy?: string,
1265
+ /**
1266
+ * Filter by featured status
1267
+ */
1268
+ featured?: boolean,
1269
+ /**
1270
+ * Retrieve a specific mentor by ID
1271
+ */
1272
+ id?: number,
1273
+ /**
1274
+ * Include public mentors from main tenant
1275
+ */
1276
+ includeMainPublicMentors?: boolean,
1277
+ /**
1278
+ * Number of results per page
1279
+ */
1280
+ limit?: number,
1281
+ /**
1282
+ * Filter by language model type
1283
+ */
1284
+ llm?: Array<string>,
1285
+ /**
1286
+ * Starting position for pagination
1287
+ */
1288
+ offset?: number,
1289
+ /**
1290
+ * Field to sort results by ('created_at', 'recently_accessed_at')
1291
+ */
1292
+ orderBy?: string,
1293
+ /**
1294
+ * Sort direction ('asc' or 'desc')
1295
+ */
1296
+ orderDirection?: string,
1297
+ /**
1298
+ * Search term to filter mentors by name or description
1299
+ */
1300
+ query?: string,
1301
+ /**
1302
+ * Filter by tags
1303
+ */
1304
+ tags?: Array<string>,
1305
+ /**
1306
+ * Filter by tenant/organization
1307
+ */
1308
+ tenant?: string,
1309
+ /**
1310
+ * Retrieve a specific mentor by UUID
1311
+ */
1312
+ uniqueId?: string,
1313
+ }): CancelablePromise<MentorSearchResponse> {
1314
+ return __request(OpenAPI, {
1315
+ method: 'GET',
1316
+ url: '/api/search/orgs/{org}/users/{username}/mentors/',
1317
+ path: {
1318
+ 'org': org,
1319
+ 'username': username,
1320
+ },
1321
+ query: {
1322
+ 'audience': audience,
1323
+ 'category': category,
1324
+ 'created_by': createdBy,
1325
+ 'featured': featured,
1326
+ 'id': id,
1327
+ 'include_main_public_mentors': includeMainPublicMentors,
1328
+ 'limit': limit,
1329
+ 'llm': llm,
1330
+ 'offset': offset,
1331
+ 'order_by': orderBy,
1332
+ 'order_direction': orderDirection,
1333
+ 'query': query,
1334
+ 'tags': tags,
1335
+ 'tenant': tenant,
1336
+ 'unique_id': uniqueId,
1337
+ },
1338
+ errors: {
1339
+ 400: `Bad request`,
1340
+ 403: `Forbidden - user does not have access`,
1341
+ 500: `Server error`,
1342
+ },
1343
+ });
1344
+ }
1345
+ /**
1346
+ * Search and filter AI prompts for a specific user within a tenant.
1347
+ *
1348
+ * This endpoint extends the base prompt search functionality but filters results
1349
+ * to only show prompts that are available to a specific user within a specific
1350
+ * organization/tenant.
1351
+ *
1352
+ * Path Parameters:
1353
+ * org (str): The organization/tenant identifier
1354
+ * username (str): The username to filter prompts for
1355
+ *
1356
+ * Query Parameters:
1357
+ * Same as PromptSearchView, plus:
1358
+ *
1359
+ * # Identification parameters (for detail view)
1360
+ * id (int, optional): Retrieve a specific prompt by ID
1361
+ *
1362
+ * Returns:
1363
+ * Same format as PromptSearchView, but filtered to only include prompts
1364
+ * that the specified user has access to within the specified organization.
1365
+ *
1366
+ * Error Responses:
1367
+ * 400 Bad Request: If the request parameters are invalid
1368
+ * 403 Forbidden: If the requested prompt exists but the user doesn't have access
1369
+ * 404 Not Found: If the requested prompt doesn't exist
1370
+ * 500 Internal Server Error: If an unexpected error occurs
1371
+ *
1372
+ * Access Control:
1373
+ * - Results are filtered based on user's permissions within the organization
1374
+ * - Private prompts are only visible to authorized users
1375
+ * @returns PromptSearchResponse
1376
+ * @throws ApiError
1377
+ */
1378
+ public static searchOrgsUsersPromptsRetrieve({
1379
+ org,
1380
+ username,
1381
+ alphabetical = false,
1382
+ category,
1383
+ createdBy,
1384
+ filterFacet,
1385
+ language,
1386
+ limit = 10,
1387
+ mentor,
1388
+ offset,
1389
+ orderDirection = 'desc',
1390
+ query,
1391
+ sortBy,
1392
+ style,
1393
+ tenant,
1394
+ tone,
1395
+ }: {
1396
+ org: string,
1397
+ username: string,
1398
+ /**
1399
+ * Sort alphabetically
1400
+ */
1401
+ alphabetical?: boolean,
1402
+ /**
1403
+ * Filter by prompt category
1404
+ */
1405
+ category?: string,
1406
+ /**
1407
+ * Filter prompts created by specific user
1408
+ */
1409
+ createdBy?: string,
1410
+ /**
1411
+ * If true, return only facets without results
1412
+ */
1413
+ filterFacet?: boolean,
1414
+ /**
1415
+ * Filter by prompt language
1416
+ */
1417
+ language?: string,
1418
+ /**
1419
+ * Number of results per page
1420
+ */
1421
+ limit?: number,
1422
+ /**
1423
+ * Filter by mentor UUID
1424
+ */
1425
+ mentor?: string,
1426
+ /**
1427
+ * Starting position for pagination
1428
+ */
1429
+ offset?: number,
1430
+ /**
1431
+ * Sort direction ('asc' or 'desc')
1432
+ */
1433
+ orderDirection?: string,
1434
+ /**
1435
+ * Search term to filter prompts by name or content
1436
+ */
1437
+ query?: string,
1438
+ /**
1439
+ * Field to sort results by
1440
+ */
1441
+ sortBy?: string,
1442
+ /**
1443
+ * Filter by prompt style
1444
+ */
1445
+ style?: string,
1446
+ /**
1447
+ * Filter by tenant/organization
1448
+ */
1449
+ tenant?: string,
1450
+ /**
1451
+ * Filter by prompt tone
1452
+ */
1453
+ tone?: string,
1454
+ }): CancelablePromise<PromptSearchResponse> {
1455
+ return __request(OpenAPI, {
1456
+ method: 'GET',
1457
+ url: '/api/search/orgs/{org}/users/{username}/prompts/',
1458
+ path: {
1459
+ 'org': org,
1460
+ 'username': username,
1461
+ },
1462
+ query: {
1463
+ 'alphabetical': alphabetical,
1464
+ 'category': category,
1465
+ 'created_by': createdBy,
1466
+ 'filter_facet': filterFacet,
1467
+ 'language': language,
1468
+ 'limit': limit,
1469
+ 'mentor': mentor,
1470
+ 'offset': offset,
1471
+ 'order_direction': orderDirection,
1472
+ 'query': query,
1473
+ 'sort_by': sortBy,
1474
+ 'style': style,
1475
+ 'tenant': tenant,
1476
+ 'tone': tone,
1477
+ },
1478
+ errors: {
1479
+ 400: `Bad request`,
1480
+ 403: `Forbidden`,
1481
+ 404: `Not found`,
1482
+ 500: `Server error`,
1483
+ },
1484
+ });
1485
+ }
1486
+ /**
1487
+ * Determine whether to serve a detail view or a list view.
1488
+ * @returns RecommendedCoursesResponse
1489
+ * @throws ApiError
1490
+ */
1491
+ public static searchOrgsUsersRecommendedRetrieve({
1492
+ org,
1493
+ username,
1494
+ certificate,
1495
+ content,
1496
+ courseId,
1497
+ duration,
1498
+ language,
1499
+ level,
1500
+ limit = 12,
1501
+ offset,
1502
+ pathwayId,
1503
+ price,
1504
+ programId,
1505
+ programType,
1506
+ query,
1507
+ resourceId,
1508
+ resourceType,
1509
+ roleId,
1510
+ selfPaced,
1511
+ skillId,
1512
+ skills,
1513
+ subject,
1514
+ tags,
1515
+ tenant,
1516
+ topics,
1517
+ }: {
1518
+ org: string,
1519
+ username: string,
1520
+ /**
1521
+ * Filter by certificate type
1522
+ */
1523
+ certificate?: Array<string>,
1524
+ /**
1525
+ * Content types to include in recommendations (courses, programs, pathways, skills, roles, resources)
1526
+ */
1527
+ content?: Array<string>,
1528
+ /**
1529
+ * Retrieve a specific course by ID
1530
+ */
1531
+ courseId?: string,
1532
+ /**
1533
+ * Filter by course duration range
1534
+ */
1535
+ duration?: Array<string>,
1536
+ /**
1537
+ * Filter by content language
1538
+ */
1539
+ language?: Array<string>,
1540
+ /**
1541
+ * Filter by difficulty level
1542
+ */
1543
+ level?: Array<string>,
1544
+ /**
1545
+ * Number of results per page
1546
+ */
1547
+ limit?: number,
1548
+ /**
1549
+ * Starting position for pagination
1550
+ */
1551
+ offset?: number,
1552
+ /**
1553
+ * Retrieve a specific pathway by ID
1554
+ */
1555
+ pathwayId?: string,
1556
+ /**
1557
+ * Filter by price/audit status
1558
+ */
1559
+ price?: string,
1560
+ /**
1561
+ * Retrieve a specific program by ID
1562
+ */
1563
+ programId?: string,
1564
+ /**
1565
+ * Filter by program type
1566
+ */
1567
+ programType?: Array<string>,
1568
+ /**
1569
+ * Search term to filter content by name or description
1570
+ */
1571
+ query?: string,
1572
+ /**
1573
+ * Retrieve a specific resource by ID
1574
+ */
1575
+ resourceId?: string,
1576
+ /**
1577
+ * Filter by resource type
1578
+ */
1579
+ resourceType?: Array<string>,
1580
+ /**
1581
+ * Retrieve a specific role by ID
1582
+ */
1583
+ roleId?: string,
1584
+ /**
1585
+ * Filter by course format (self-paced, instructor-led)
1586
+ */
1587
+ selfPaced?: Array<string>,
1588
+ /**
1589
+ * Retrieve a specific skill by ID
1590
+ */
1591
+ skillId?: string,
1592
+ /**
1593
+ * Filter by skills
1594
+ */
1595
+ skills?: Array<string>,
1596
+ /**
1597
+ * Filter by subject areas
1598
+ */
1599
+ subject?: Array<string>,
1600
+ /**
1601
+ * Filter by tags
1602
+ */
1603
+ tags?: Array<string>,
1604
+ /**
1605
+ * Filter by tenant/organization
1606
+ */
1607
+ tenant?: string,
1608
+ /**
1609
+ * Filter by topic areas
1610
+ */
1611
+ topics?: Array<string>,
1612
+ }): CancelablePromise<RecommendedCoursesResponse> {
1613
+ return __request(OpenAPI, {
1614
+ method: 'GET',
1615
+ url: '/api/search/orgs/{org}/users/{username}/recommended/',
1616
+ path: {
1617
+ 'org': org,
1618
+ 'username': username,
1619
+ },
1620
+ query: {
1621
+ 'certificate': certificate,
1622
+ 'content': content,
1623
+ 'course_id': courseId,
1624
+ 'duration': duration,
1625
+ 'language': language,
1626
+ 'level': level,
1627
+ 'limit': limit,
1628
+ 'offset': offset,
1629
+ 'pathway_id': pathwayId,
1630
+ 'price': price,
1631
+ 'program_id': programId,
1632
+ 'program_type': programType,
1633
+ 'query': query,
1634
+ 'resource_id': resourceId,
1635
+ 'resource_type': resourceType,
1636
+ 'role_id': roleId,
1637
+ 'self_paced': selfPaced,
1638
+ 'skill_id': skillId,
1639
+ 'skills': skills,
1640
+ 'subject': subject,
1641
+ 'tags': tags,
1642
+ 'tenant': tenant,
1643
+ 'topics': topics,
1644
+ },
1645
+ errors: {
1646
+ 400: `Bad request`,
1647
+ 404: `User not found`,
1648
+ 500: `Server error`,
1649
+ },
1650
+ });
1651
+ }
1652
+ /**
1653
+ * Determine whether to serve a detail view or a list view.
1654
+ * If any detail-identifying parameters are present (course_id, program_id, etc.)
1655
+ * the detail view is returned; otherwise the aggregated list view is returned.
1656
+ * @returns any
1657
+ * @throws ApiError
1658
+ */
1659
+ public static searchPersonalizedCatalogRetrieve({
1660
+ username,
1661
+ allowSkillSearch = false,
1662
+ alphabetical = false,
1663
+ certificate,
1664
+ content,
1665
+ courseId,
1666
+ duration,
1667
+ language,
1668
+ level,
1669
+ limit = 12,
1670
+ offset,
1671
+ orderAscending = false,
1672
+ orderBy,
1673
+ pathwayId,
1674
+ price,
1675
+ programId,
1676
+ programType,
1677
+ promotion,
1678
+ query,
1679
+ recommended = false,
1680
+ resourceId,
1681
+ resourceType,
1682
+ returnFacet = true,
1683
+ returnItems = false,
1684
+ roleId,
1685
+ selfPaced,
1686
+ skillId,
1687
+ skills,
1688
+ subject,
1689
+ tags,
1690
+ tenant,
1691
+ topics,
1692
+ updateFacet,
1693
+ }: {
1694
+ username: string,
1695
+ /**
1696
+ * Enable skill-based search
1697
+ */
1698
+ allowSkillSearch?: boolean,
1699
+ /**
1700
+ * Sort alphabetically by name
1701
+ */
1702
+ alphabetical?: boolean,
1703
+ /**
1704
+ * Filter by certificate type
1705
+ */
1706
+ certificate?: Array<string>,
1707
+ /**
1708
+ * Content types to include in results
1709
+ */
1710
+ content?: Array<string>,
1711
+ /**
1712
+ * Retrieve a specific course by ID
1713
+ */
1714
+ courseId?: string,
1715
+ /**
1716
+ * Filter by course duration range
1717
+ */
1718
+ duration?: Array<string>,
1719
+ /**
1720
+ * Filter by content language
1721
+ */
1722
+ language?: Array<string>,
1723
+ /**
1724
+ * Filter by difficulty level
1725
+ */
1726
+ level?: Array<string>,
1727
+ /**
1728
+ * Number of results per page
1729
+ */
1730
+ limit?: number,
1731
+ /**
1732
+ * Starting position for pagination
1733
+ */
1734
+ offset?: number,
1735
+ /**
1736
+ * Sort direction
1737
+ */
1738
+ orderAscending?: boolean,
1739
+ /**
1740
+ * Field to sort results by
1741
+ */
1742
+ orderBy?: string,
1743
+ /**
1744
+ * Retrieve a specific pathway by ID
1745
+ */
1746
+ pathwayId?: string,
1747
+ /**
1748
+ * Filter by price/audit status
1749
+ */
1750
+ price?: string,
1751
+ /**
1752
+ * Retrieve a specific program by ID
1753
+ */
1754
+ programId?: string,
1755
+ /**
1756
+ * Filter by program type
1757
+ */
1758
+ programType?: Array<string>,
1759
+ /**
1760
+ * Filter by promotion status
1761
+ */
1762
+ promotion?: Array<string>,
1763
+ /**
1764
+ * Search term to filter content by name or description
1765
+ */
1766
+ query?: string,
1767
+ /**
1768
+ * Show only recommended content
1769
+ */
1770
+ recommended?: boolean,
1771
+ /**
1772
+ * Retrieve a specific resource by ID
1773
+ */
1774
+ resourceId?: string,
1775
+ /**
1776
+ * Filter by resource type
1777
+ */
1778
+ resourceType?: Array<string>,
1779
+ /**
1780
+ * Include facet data in response
1781
+ */
1782
+ returnFacet?: boolean,
1783
+ /**
1784
+ * Include items in programs/pathways
1785
+ */
1786
+ returnItems?: boolean,
1787
+ /**
1788
+ * Retrieve a specific role by ID
1789
+ */
1790
+ roleId?: string,
1791
+ /**
1792
+ * Filter by course format
1793
+ */
1794
+ selfPaced?: Array<string>,
1795
+ /**
1796
+ * Retrieve a specific skill by ID
1797
+ */
1798
+ skillId?: string,
1799
+ /**
1800
+ * Filter by skills
1801
+ */
1802
+ skills?: Array<string>,
1803
+ /**
1804
+ * Filter by subject areas
1805
+ */
1806
+ subject?: Array<string>,
1807
+ /**
1808
+ * Filter by tags
1809
+ */
1810
+ tags?: Array<string>,
1811
+ /**
1812
+ * Filter by tenant/organization
1813
+ */
1814
+ tenant?: string,
1815
+ /**
1816
+ * Filter by topic areas
1817
+ */
1818
+ topics?: Array<string>,
1819
+ /**
1820
+ * Force facet update
1821
+ */
1822
+ updateFacet?: string,
1823
+ }): CancelablePromise<Record<string, any>> {
1824
+ return __request(OpenAPI, {
1825
+ method: 'GET',
1826
+ url: '/api/search/personalized-catalog/{username}/',
1827
+ path: {
1828
+ 'username': username,
1829
+ },
1830
+ query: {
1831
+ 'allow_skill_search': allowSkillSearch,
1832
+ 'alphabetical': alphabetical,
1833
+ 'certificate': certificate,
1834
+ 'content': content,
1835
+ 'course_id': courseId,
1836
+ 'duration': duration,
1837
+ 'language': language,
1838
+ 'level': level,
1839
+ 'limit': limit,
1840
+ 'offset': offset,
1841
+ 'order_ascending': orderAscending,
1842
+ 'order_by': orderBy,
1843
+ 'pathway_id': pathwayId,
1844
+ 'price': price,
1845
+ 'program_id': programId,
1846
+ 'program_type': programType,
1847
+ 'promotion': promotion,
1848
+ 'query': query,
1849
+ 'recommended': recommended,
1850
+ 'resource_id': resourceId,
1851
+ 'resource_type': resourceType,
1852
+ 'return_facet': returnFacet,
1853
+ 'return_items': returnItems,
1854
+ 'role_id': roleId,
1855
+ 'self_paced': selfPaced,
1856
+ 'skill_id': skillId,
1857
+ 'skills': skills,
1858
+ 'subject': subject,
1859
+ 'tags': tags,
1860
+ 'tenant': tenant,
1861
+ 'topics': topics,
1862
+ 'update_facet': updateFacet,
1863
+ },
1864
+ });
1865
+ }
1866
+ /**
1867
+ * Search and filter AI prompts across the platform.
1868
+ *
1869
+ * This endpoint provides a search interface for discovering AI prompts
1870
+ * with support for filtering, pagination, and detailed prompt information.
1871
+ *
1872
+ * Query Parameters:
1873
+ * # Identification parameters (for detail view)
1874
+ * id (int, optional): Retrieve a specific prompt by ID
1875
+ *
1876
+ * # Search and filtering parameters
1877
+ * query (str, optional): Search term to filter prompts by name or content
1878
+ * category (str, optional): Filter by prompt category
1879
+ * language (str, optional): Filter by prompt language
1880
+ * style (str, optional): Filter by writing style
1881
+ * tone (str, optional): Filter by tone
1882
+ * tenant (str, optional): Filter by tenant/organization
1883
+ * mentor (str, optional): Filter by associated mentor (UUID)
1884
+ *
1885
+ * # Sorting and pagination
1886
+ * sort_by (str, optional): Field to sort results by
1887
+ * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
1888
+ * alphabetical (bool, optional): Sort alphabetically by name (default: false)
1889
+ * limit (int, optional): Number of results per page (default: 10)
1890
+ * offset (int, optional): Starting position for pagination
1891
+ *
1892
+ * # Special parameters
1893
+ * filter_facet (any, optional): If present, return only facets without results
1894
+ *
1895
+ * Returns:
1896
+ * For detail view (when id is provided):
1897
+ * A JSON response containing a single prompt's details:
1898
+ * {
1899
+ * "id": 456,
1900
+ * "name": "Essay Writing Guide",
1901
+ * "content": "Write a well-structured essay on the following topic: {{topic}}...",
1902
+ * "category": "Academic Writing",
1903
+ * "language": "English",
1904
+ * "style": "Formal",
1905
+ * "tone": "Professional",
1906
+ * "mentor": {
1907
+ * "id": 123,
1908
+ * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
1909
+ * "name": "Professor Smith"
1910
+ * },
1911
+ * "platform": {
1912
+ * "id": 1,
1913
+ * "name": "Example University",
1914
+ * "key": "example-university"
1915
+ * },
1916
+ * "created_at": "2023-02-10T09:15:00Z",
1917
+ * "updated_at": "2023-05-05T14:20:00Z",
1918
+ * "visibility": "public",
1919
+ * "variables": ["topic", "length", "style"]
1920
+ * }
1921
+ *
1922
+ * For list view:
1923
+ * A JSON response containing:
1924
+ * {
1925
+ * "results": [
1926
+ * {
1927
+ * "id": 456,
1928
+ * "name": "Essay Writing Guide",
1929
+ * "content": "Write a well-structured essay on the following topic: {{topic}}...",
1930
+ * "category": "Academic Writing",
1931
+ * "language": "English",
1932
+ * "style": "Formal",
1933
+ * "tone": "Professional",
1934
+ * "mentor": {"id": 123, "name": "Professor Smith"},
1935
+ * "created_at": "2023-02-10T09:15:00Z",
1936
+ * "updated_at": "2023-05-05T14:20:00Z"
1937
+ * },
1938
+ * // Additional prompt objects...
1939
+ * ],
1940
+ * "count": 30,
1941
+ * "next": "?limit=10&offset=10",
1942
+ * "previous": null,
1943
+ * "current_page": 1,
1944
+ * "num_pages": 3,
1945
+ * "facets": {
1946
+ * "category": [
1947
+ * {"key": "Academic Writing", "doc_count": 15},
1948
+ * {"key": "Creative Writing", "doc_count": 10},
1949
+ * {"key": "Technical Documentation", "doc_count": 5}
1950
+ * ],
1951
+ * "language": [
1952
+ * {"key": "English", "doc_count": 25},
1953
+ * {"key": "Spanish", "doc_count": 5}
1954
+ * ],
1955
+ * "style": [
1956
+ * {"key": "Formal", "doc_count": 20},
1957
+ * {"key": "Casual", "doc_count": 10}
1958
+ * ],
1959
+ * "tone": [
1960
+ * {"key": "Professional", "doc_count": 15},
1961
+ * {"key": "Friendly", "doc_count": 10},
1962
+ * {"key": "Technical", "doc_count": 5}
1963
+ * ]
1964
+ * }
1965
+ * }
1966
+ *
1967
+ * Error Responses:
1968
+ * 400 Bad Request: If the request parameters are invalid
1969
+ * 403 Forbidden: If the requested prompt exists but is not publicly available
1970
+ * 404 Not Found: If the requested prompt doesn't exist
1971
+ * 500 Internal Server Error: If an unexpected error occurs
1972
+ *
1973
+ * Notes:
1974
+ * - Only publicly available prompts are returned by default
1975
+ * - When filtering by mentor, the mentor ID must be a valid UUID
1976
+ * @returns PromptSearchResponse
1977
+ * @throws ApiError
1978
+ */
1979
+ public static searchPromptsRetrieve({
1980
+ alphabetical = false,
1981
+ category,
1982
+ createdBy,
1983
+ filterFacet,
1984
+ language,
1985
+ limit = 10,
1986
+ mentor,
1987
+ offset,
1988
+ orderDirection = 'desc',
1989
+ query,
1990
+ sortBy,
1991
+ style,
1992
+ tenant,
1993
+ tone,
1994
+ }: {
1995
+ /**
1996
+ * Sort alphabetically
1997
+ */
1998
+ alphabetical?: boolean,
1999
+ /**
2000
+ * Filter by prompt category
2001
+ */
2002
+ category?: string,
2003
+ /**
2004
+ * Filter prompts created by specific user
2005
+ */
2006
+ createdBy?: string,
2007
+ /**
2008
+ * If true, return only facets without results
2009
+ */
2010
+ filterFacet?: boolean,
2011
+ /**
2012
+ * Filter by prompt language
2013
+ */
2014
+ language?: string,
2015
+ /**
2016
+ * Number of results per page
2017
+ */
2018
+ limit?: number,
2019
+ /**
2020
+ * Filter by mentor UUID
2021
+ */
2022
+ mentor?: string,
2023
+ /**
2024
+ * Starting position for pagination
2025
+ */
2026
+ offset?: number,
2027
+ /**
2028
+ * Sort direction ('asc' or 'desc')
2029
+ */
2030
+ orderDirection?: string,
2031
+ /**
2032
+ * Search term to filter prompts by name or content
2033
+ */
2034
+ query?: string,
2035
+ /**
2036
+ * Field to sort results by
2037
+ */
2038
+ sortBy?: string,
2039
+ /**
2040
+ * Filter by prompt style
2041
+ */
2042
+ style?: string,
2043
+ /**
2044
+ * Filter by tenant/organization
2045
+ */
2046
+ tenant?: string,
2047
+ /**
2048
+ * Filter by prompt tone
2049
+ */
2050
+ tone?: string,
2051
+ }): CancelablePromise<PromptSearchResponse> {
2052
+ return __request(OpenAPI, {
2053
+ method: 'GET',
2054
+ url: '/api/search/prompts/',
2055
+ query: {
2056
+ 'alphabetical': alphabetical,
2057
+ 'category': category,
2058
+ 'created_by': createdBy,
2059
+ 'filter_facet': filterFacet,
2060
+ 'language': language,
2061
+ 'limit': limit,
2062
+ 'mentor': mentor,
2063
+ 'offset': offset,
2064
+ 'order_direction': orderDirection,
2065
+ 'query': query,
2066
+ 'sort_by': sortBy,
2067
+ 'style': style,
2068
+ 'tenant': tenant,
2069
+ 'tone': tone,
2070
+ },
2071
+ errors: {
2072
+ 400: `Bad request`,
2073
+ 500: `Server error`,
2074
+ },
2075
+ });
2076
+ }
2077
+ /**
2078
+ * Search and filter users within a specific organization/tenant.
2079
+ *
2080
+ * This endpoint provides a search interface for discovering users within an organization,
2081
+ * with support for filtering by departments, pagination, and faceted filtering.
2082
+ *
2083
+ * Path Parameters:
2084
+ * org (str): The organization/tenant identifier
2085
+ * username (str): The username of the user making the request
2086
+ *
2087
+ * Query Parameters:
2088
+ * # Search parameters
2089
+ * query (str, optional): Search term to filter users by name, username, or email
2090
+ *
2091
+ * # Department filtering
2092
+ * department_mode (bool, optional): Enable department-based filtering (default: false)
2093
+ * user_department (bool, optional): Legacy parameter for department_mode (default: false)
2094
+ * department (list, optional): Filter by specific departments
2095
+ *
2096
+ * # Additional filters
2097
+ * role (list, optional): Filter by user role
2098
+ * status (list, optional): Filter by user status (active, inactive)
2099
+ * joined_date (list, optional): Filter by join date range
2100
+ * last_login (list, optional): Filter by last login date range
2101
+ *
2102
+ * # Pagination
2103
+ * limit (int, optional): Number of results per page (default: 10)
2104
+ * offset (int, optional): Starting position for pagination
2105
+ *
2106
+ * Returns:
2107
+ * A JSON response containing:
2108
+ * ```
2109
+ * {
2110
+ * "results": [
2111
+ * {
2112
+ * "id": 123,
2113
+ * "username": "john.doe",
2114
+ * "email": "john.doe@example.com",
2115
+ * "first_name": "John",
2116
+ * "last_name": "Doe",
2117
+ * "full_name": "John Doe",
2118
+ * "profile_image": "https://example.com/profiles/john-doe.jpg",
2119
+ * "role": "Student",
2120
+ * "departments": ["Computer Science", "Data Science"],
2121
+ * "status": "active",
2122
+ * "joined_date": "2023-01-15T12:00:00Z",
2123
+ * "last_login": "2023-06-20T15:30:00Z",
2124
+ * "metadata": {
2125
+ * "location": "New York",
2126
+ * "title": "Software Engineer",
2127
+ * "bio": "Experienced software engineer with a passion for education"
2128
+ * }
2129
+ * },
2130
+ * // Additional user objects...
2131
+ * ],
2132
+ * "count": 50,
2133
+ * "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
2134
+ * "previous": null,
2135
+ * "current_page": 1,
2136
+ * "total_pages": 5,
2137
+ * "facets": {
2138
+ * "role": [
2139
+ * {"key": "Student", "doc_count": 30},
2140
+ * {"key": "Instructor", "doc_count": 15},
2141
+ * {"key": "Admin", "doc_count": 5}
2142
+ * ],
2143
+ * "department": [
2144
+ * {"key": "Computer Science", "doc_count": 20},
2145
+ * {"key": "Data Science", "doc_count": 15},
2146
+ * {"key": "Business", "doc_count": 10},
2147
+ * {"key": "Engineering", "doc_count": 5}
2148
+ * ],
2149
+ * "status": [
2150
+ * {"key": "active", "doc_count": 45},
2151
+ * {"key": "inactive", "doc_count": 5}
2152
+ * ]
2153
+ * }
2154
+ * }
2155
+ * ```
2156
+ * Error Responses:
2157
+ * 400 Bad Request: If the request parameters are invalid
2158
+ * 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
2159
+ * 404 Not Found: If the user or organization doesn't exist
2160
+ * 500 Internal Server Error: If an unexpected error occurs
2161
+ *
2162
+ * Access Control:
2163
+ * - The requesting user must have an active account in the specified organization
2164
+ * - When department_mode is enabled, the user must be an admin of at least one department
2165
+ * - Department filtering restricts results to users in departments where the requesting user is an admin
2166
+ * @returns UserSearchResponse
2167
+ * @throws ApiError
2168
+ */
2169
+ public static searchUsersOrgsUsersRetrieve({
2170
+ org,
2171
+ username,
2172
+ department,
2173
+ educationDegree,
2174
+ educationFieldOfStudy,
2175
+ educationInstitution,
2176
+ includeMembershipData = false,
2177
+ limit = 10,
2178
+ offset,
2179
+ q,
2180
+ userResumeCompany,
2181
+ userResumeIndustry,
2182
+ userResumeJobTitle,
2183
+ userResumeLocation,
2184
+ userResumeSkills,
2185
+ }: {
2186
+ org: string,
2187
+ username: string,
2188
+ /**
2189
+ * Filter by department names
2190
+ */
2191
+ department?: Array<string>,
2192
+ /**
2193
+ * Filter by degree
2194
+ */
2195
+ educationDegree?: string,
2196
+ /**
2197
+ * Filter by field of study
2198
+ */
2199
+ educationFieldOfStudy?: string,
2200
+ /**
2201
+ * Filter by institution
2202
+ */
2203
+ educationInstitution?: string,
2204
+ /**
2205
+ * Include user group membership data in results
2206
+ */
2207
+ includeMembershipData?: boolean,
2208
+ /**
2209
+ * Number of results per page
2210
+ */
2211
+ limit?: number,
2212
+ /**
2213
+ * Starting position for pagination
2214
+ */
2215
+ offset?: number,
2216
+ /**
2217
+ * Search term to filter users by name, email, or other attributes
2218
+ */
2219
+ q?: string,
2220
+ /**
2221
+ * Filter by company
2222
+ */
2223
+ userResumeCompany?: string,
2224
+ /**
2225
+ * Filter by industry
2226
+ */
2227
+ userResumeIndustry?: string,
2228
+ /**
2229
+ * Filter by job title
2230
+ */
2231
+ userResumeJobTitle?: string,
2232
+ /**
2233
+ * Filter by location
2234
+ */
2235
+ userResumeLocation?: string,
2236
+ /**
2237
+ * Filter by skills
2238
+ */
2239
+ userResumeSkills?: string,
2240
+ }): CancelablePromise<UserSearchResponse> {
2241
+ return __request(OpenAPI, {
2242
+ method: 'GET',
2243
+ url: '/api/search/users/orgs/{org}/users/{username}/',
2244
+ path: {
2245
+ 'org': org,
2246
+ 'username': username,
2247
+ },
2248
+ query: {
2249
+ 'department': department,
2250
+ 'education__degree': educationDegree,
2251
+ 'education__field_of_study': educationFieldOfStudy,
2252
+ 'education__institution': educationInstitution,
2253
+ 'include_membership_data': includeMembershipData,
2254
+ 'limit': limit,
2255
+ 'offset': offset,
2256
+ 'q': q,
2257
+ 'user_resume__company': userResumeCompany,
2258
+ 'user_resume__industry': userResumeIndustry,
2259
+ 'user_resume__job_title': userResumeJobTitle,
2260
+ 'user_resume__location': userResumeLocation,
2261
+ 'user_resume__skills': userResumeSkills,
2262
+ },
2263
+ errors: {
2264
+ 400: `Bad request`,
2265
+ 403: `Forbidden`,
2266
+ 404: `Not found`,
2267
+ 500: `Server error`,
2268
+ },
2269
+ });
2270
+ }
2271
+ }