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