@iblai/iblai-api 4.243.2-ai → 4.243.2-core

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (959) hide show
  1. package/dist/index.cjs.js +3688 -28248
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +3689 -28240
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +3688 -28248
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +1 -469
  8. package/dist/types/models/{StripeCheckoutSessionRequestModeEnum.d.ts → ModeEnum.d.ts} +1 -1
  9. package/dist/types/models/Pagination.d.ts +11 -16
  10. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
  11. package/dist/types/services/AiAnalyticsService.d.ts +26 -4904
  12. package/dist/types/services/AnalyticsService.d.ts +4 -769
  13. package/dist/types/services/SearchService.d.ts +0 -738
  14. package/package.json +1 -1
  15. package/sdk_schema.yml +28104 -81915
  16. package/src/core/OpenAPI.ts +1 -1
  17. package/src/index.ts +1 -469
  18. package/src/models/{StripeCheckoutSessionRequestModeEnum.ts → ModeEnum.ts} +1 -1
  19. package/src/models/Pagination.ts +11 -16
  20. package/src/models/StripeCheckoutSessionRequest.ts +2 -2
  21. package/src/services/AiAnalyticsService.ts +5294 -13320
  22. package/src/services/AnalyticsService.ts +189 -1306
  23. package/src/services/SearchService.ts +398 -1459
  24. package/dist/types/models/AIGeneratedImage.d.ts +0 -13
  25. package/dist/types/models/AIUserProfileMemoryRelation.d.ts +0 -4
  26. package/dist/types/models/AIUserProfileRequest.d.ts +0 -4
  27. package/dist/types/models/AccessEnum.d.ts +0 -8
  28. package/dist/types/models/AccessTimesHeatmap.d.ts +0 -5
  29. package/dist/types/models/AccessibleMentorsByEmailRequest.d.ts +0 -13
  30. package/dist/types/models/AccessibleMentorsByEmailResponse.d.ts +0 -13
  31. package/dist/types/models/ActionBreakdown.d.ts +0 -10
  32. package/dist/types/models/AddMentorToDisclaimer.d.ts +0 -12
  33. package/dist/types/models/AgentSkill.d.ts +0 -20
  34. package/dist/types/models/AgentSkillResource.d.ts +0 -17
  35. package/dist/types/models/AlignMentorBubbleEnum.d.ts +0 -8
  36. package/dist/types/models/AnalyticsOverview.d.ts +0 -7
  37. package/dist/types/models/Answer.d.ts +0 -11
  38. package/dist/types/models/Artifact.d.ts +0 -60
  39. package/dist/types/models/ArtifactList.d.ts +0 -42
  40. package/dist/types/models/ArtifactVersion.d.ts +0 -55
  41. package/dist/types/models/AssumedKnowledge.d.ts +0 -4
  42. package/dist/types/models/AssumedKnowledgeLevel.d.ts +0 -4
  43. package/dist/types/models/AudioToTextRequest.d.ts +0 -3
  44. package/dist/types/models/AudioToTextResponse.d.ts +0 -3
  45. package/dist/types/models/AuthModeEnum.d.ts +0 -12
  46. package/dist/types/models/AuthScopeEnum.d.ts +0 -10
  47. package/dist/types/models/AuthTypeEnum.d.ts +0 -10
  48. package/dist/types/models/BaseFinanceResponse.d.ts +0 -37
  49. package/dist/types/models/BillingPeriod.d.ts +0 -8
  50. package/dist/types/models/Bot.d.ts +0 -15
  51. package/dist/types/models/BotCommand.d.ts +0 -6
  52. package/dist/types/models/BotCreate.d.ts +0 -12
  53. package/dist/types/models/Breakdown.d.ts +0 -11
  54. package/dist/types/models/CallAuthenticationRequest.d.ts +0 -17
  55. package/dist/types/models/CallAuthenticationResponse.d.ts +0 -21
  56. package/dist/types/models/CallConfiguration.d.ts +0 -38
  57. package/dist/types/models/CallConfigurationModeEnum.d.ts +0 -8
  58. package/dist/types/models/ChatHistory.d.ts +0 -10
  59. package/dist/types/models/ChatHistoryFilterData.d.ts +0 -9
  60. package/dist/types/models/ChatHistoryFilterUser.d.ts +0 -5
  61. package/dist/types/models/ChatHistoryItem.d.ts +0 -6
  62. package/dist/types/models/ChatHistorySessionId.d.ts +0 -3
  63. package/dist/types/models/ChatPrivacyModeEnum.d.ts +0 -10
  64. package/dist/types/models/ChatSessionRequest.d.ts +0 -15
  65. package/dist/types/models/ChatSessionResponse.d.ts +0 -8
  66. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +0 -10
  67. package/dist/types/models/ClawInstance.d.ts +0 -41
  68. package/dist/types/models/ClawInstanceStatusEnum.d.ts +0 -10
  69. package/dist/types/models/ClawMentorConfig.d.ts +0 -24
  70. package/dist/types/models/ClawModelProvider.d.ts +0 -40
  71. package/dist/types/models/ClawTypeEnum.d.ts +0 -8
  72. package/dist/types/models/ComparisonInfo.d.ts +0 -29
  73. package/dist/types/models/ConnectedService.d.ts +0 -28
  74. package/dist/types/models/ConversationChartPoint.d.ts +0 -4
  75. package/dist/types/models/ConversationDetailResponse.d.ts +0 -4
  76. package/dist/types/models/ConversationListItem.d.ts +0 -24
  77. package/dist/types/models/ConversationListResponse.d.ts +0 -6
  78. package/dist/types/models/ConversationMessage.d.ts +0 -11
  79. package/dist/types/models/ConversationRating.d.ts +0 -6
  80. package/dist/types/models/ConversationSummary.d.ts +0 -5
  81. package/dist/types/models/ConversationVolume.d.ts +0 -4
  82. package/dist/types/models/Conversations.d.ts +0 -50
  83. package/dist/types/models/ConversationsChart.d.ts +0 -5
  84. package/dist/types/models/Cost.d.ts +0 -3
  85. package/dist/types/models/CostPerTenant.d.ts +0 -6
  86. package/dist/types/models/CourseCreationTask.d.ts +0 -31
  87. package/dist/types/models/CourseCreationTaskFile.d.ts +0 -7
  88. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +0 -16
  89. package/dist/types/models/CourseRecommendation.d.ts +0 -49
  90. package/dist/types/models/CrawlerPatternTypeEnum.d.ts +0 -8
  91. package/dist/types/models/CreateXblock.d.ts +0 -37
  92. package/dist/types/models/CredentialRequest.d.ts +0 -14
  93. package/dist/types/models/CrontabSchedule.d.ts +0 -22
  94. package/dist/types/models/CurrentUsersResponse.d.ts +0 -8
  95. package/dist/types/models/CustomInstructionResponse.d.ts +0 -13
  96. package/dist/types/models/DateRange.d.ts +0 -4
  97. package/dist/types/models/DeleteXblock.d.ts +0 -9
  98. package/dist/types/models/DeployStateEnum.d.ts +0 -14
  99. package/dist/types/models/Disclaimer.d.ts +0 -17
  100. package/dist/types/models/DisclaimerAgreement.d.ts +0 -11
  101. package/dist/types/models/DisclaimerScopeEnum.d.ts +0 -8
  102. package/dist/types/models/DiscordConfig.d.ts +0 -7
  103. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  104. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  105. package/dist/types/models/Document.d.ts +0 -41
  106. package/dist/types/models/DocumentFacet.d.ts +0 -17
  107. package/dist/types/models/DocumentFromPoolRequest.d.ts +0 -10
  108. package/dist/types/models/DocumentSearchResponse.d.ts +0 -35
  109. package/dist/types/models/DocumentSettingsResponse.d.ts +0 -3
  110. package/dist/types/models/EdxCourse.d.ts +0 -11
  111. package/dist/types/models/ElevenlabsCustomVoice.d.ts +0 -4
  112. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +0 -8
  113. package/dist/types/models/EmailPromptDetail.d.ts +0 -13
  114. package/dist/types/models/EmailPromptList.d.ts +0 -11
  115. package/dist/types/models/EmailPromptSummary.d.ts +0 -5
  116. package/dist/types/models/Entity.d.ts +0 -11
  117. package/dist/types/models/EntityTypeEnum.d.ts +0 -10
  118. package/dist/types/models/Error.d.ts +0 -3
  119. package/dist/types/models/ExternalProxyInvoke.d.ts +0 -19
  120. package/dist/types/models/ExternalProxyServiceDetail.d.ts +0 -23
  121. package/dist/types/models/ExternalProxyServiceList.d.ts +0 -14
  122. package/dist/types/models/ExternalServiceInfo.d.ts +0 -6
  123. package/dist/types/models/FallbackLLM.d.ts +0 -47
  124. package/dist/types/models/FallbackLLMCreate.d.ts +0 -38
  125. package/dist/types/models/FallbackLLMUpdate.d.ts +0 -33
  126. package/dist/types/models/FileTypeEnum.d.ts +0 -10
  127. package/dist/types/models/FileUploadURLRequest.d.ts +0 -21
  128. package/dist/types/models/FileUploadURLResponse.d.ts +0 -25
  129. package/dist/types/models/FinanceDetailsResponse.d.ts +0 -13
  130. package/dist/types/models/FinanceFilters.d.ts +0 -15
  131. package/dist/types/models/FreeUsageCount.d.ts +0 -3
  132. package/dist/types/models/GoogleAgentDetail.d.ts +0 -17
  133. package/dist/types/models/GrantMentorAccessRequest.d.ts +0 -9
  134. package/dist/types/models/GreetingMethodEnum.d.ts +0 -8
  135. package/dist/types/models/GuidedPrompt.d.ts +0 -4
  136. package/dist/types/models/GuidedPromptsResponse.d.ts +0 -5
  137. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +0 -8
  138. package/dist/types/models/HeygenMarketingVideoList.d.ts +0 -6
  139. package/dist/types/models/HeygenTemplateRequest.d.ts +0 -5
  140. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +0 -6
  141. package/dist/types/models/HeygenVideoDetail.d.ts +0 -8
  142. package/dist/types/models/HeygenVideoRequest.d.ts +0 -5
  143. package/dist/types/models/HumanSupportTicket.d.ts +0 -23
  144. package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +0 -10
  145. package/dist/types/models/InputQuestion.d.ts +0 -6
  146. package/dist/types/models/IntegrationCredential.d.ts +0 -10
  147. package/dist/types/models/IntegrationCredentialSchema.d.ts +0 -6
  148. package/dist/types/models/InterfaceEnum.d.ts +0 -8
  149. package/dist/types/models/IntialQuestionAnswer.d.ts +0 -3
  150. package/dist/types/models/InvalidQueryParameters.d.ts +0 -3
  151. package/dist/types/models/InvoiceReportResponse.d.ts +0 -13
  152. package/dist/types/models/JobRun.d.ts +0 -11
  153. package/dist/types/models/KindEnum.d.ts +0 -10
  154. package/dist/types/models/LLMCredentialRequest.d.ts +0 -14
  155. package/dist/types/models/LLMCredentialResponse.d.ts +0 -10
  156. package/dist/types/models/LLMCredentialSchema.d.ts +0 -6
  157. package/dist/types/models/LLMModelForTenant.d.ts +0 -6
  158. package/dist/types/models/LLMModelRegistryMinimal.d.ts +0 -15
  159. package/dist/types/models/LLMProviderMinimal.d.ts +0 -28
  160. package/dist/types/models/LLMQuestion.d.ts +0 -15
  161. package/dist/types/models/LLMResponse.d.ts +0 -18
  162. package/dist/types/models/LLMTracesListResponse.d.ts +0 -5
  163. package/dist/types/models/LanguagesView.d.ts +0 -5
  164. package/dist/types/models/LinkCourseRequest.d.ts +0 -3
  165. package/dist/types/models/LinkCourseResponse.d.ts +0 -5
  166. package/dist/types/models/LlmProviderEnum.d.ts +0 -10
  167. package/dist/types/models/MCPServer.d.ts +0 -65
  168. package/dist/types/models/MCPServerConnection.d.ts +0 -47
  169. package/dist/types/models/MCPServerConnectionScopeEnum.d.ts +0 -10
  170. package/dist/types/models/MCPServerOauthFind.d.ts +0 -5
  171. package/dist/types/models/MaskedIntegrationCredential.d.ts +0 -10
  172. package/dist/types/models/MaskedLLMCredential.d.ts +0 -10
  173. package/dist/types/models/MemoryComponentData.d.ts +0 -5
  174. package/dist/types/models/MemoryComponentMemory.d.ts +0 -4
  175. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +0 -8
  176. package/dist/types/models/MemoryComponentResponse.d.ts +0 -5
  177. package/dist/types/models/MemoryProgress.d.ts +0 -8
  178. package/dist/types/models/MemoryStatusRequestView.d.ts +0 -6
  179. package/dist/types/models/MemoryStatusView.d.ts +0 -6
  180. package/dist/types/models/Mentor.d.ts +0 -196
  181. package/dist/types/models/MentorAudience.d.ts +0 -5
  182. package/dist/types/models/MentorAuditLogEntry.d.ts +0 -43
  183. package/dist/types/models/MentorBreakdown.d.ts +0 -9
  184. package/dist/types/models/MentorCategory.d.ts +0 -9
  185. package/dist/types/models/MentorCategoryCreate.d.ts +0 -11
  186. package/dist/types/models/MentorCategoryGroup.d.ts +0 -11
  187. package/dist/types/models/MentorCategoryGroupCreate.d.ts +0 -11
  188. package/dist/types/models/MentorCreate.d.ts +0 -186
  189. package/dist/types/models/MentorCustomVoice.d.ts +0 -4
  190. package/dist/types/models/MentorCustomVoiceResponse.d.ts +0 -4
  191. package/dist/types/models/MentorData.d.ts +0 -7
  192. package/dist/types/models/MentorDetailAnalytics.d.ts +0 -6
  193. package/dist/types/models/MentorEval.d.ts +0 -11
  194. package/dist/types/models/MentorEvalQuestion.d.ts +0 -5
  195. package/dist/types/models/MentorEvalQuestionRequest.d.ts +0 -4
  196. package/dist/types/models/MentorEvalReport.d.ts +0 -10
  197. package/dist/types/models/MentorEvalRequest.d.ts +0 -8
  198. package/dist/types/models/MentorFacet.d.ts +0 -17
  199. package/dist/types/models/MentorFork.d.ts +0 -5
  200. package/dist/types/models/MentorFromTemplate.d.ts +0 -3
  201. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +0 -72
  202. package/dist/types/models/MentorMemorySettingsRequest.d.ts +0 -6
  203. package/dist/types/models/MentorMemorySettingsResponse.d.ts +0 -6
  204. package/dist/types/models/MentorMetadata.d.ts +0 -5
  205. package/dist/types/models/MentorScenario.d.ts +0 -6
  206. package/dist/types/models/MentorScenarioPrompt.d.ts +0 -5
  207. package/dist/types/models/MentorSearchResponse.d.ts +0 -35
  208. package/dist/types/models/MentorSession.d.ts +0 -4
  209. package/dist/types/models/MentorSettings.d.ts +0 -119
  210. package/dist/types/models/MentorSettingsPublic.d.ts +0 -87
  211. package/dist/types/models/MentorSettingsRequest.d.ts +0 -95
  212. package/dist/types/models/MentorSettingsRequestPrivacyActionEnum.d.ts +0 -10
  213. package/dist/types/models/MentorSkillAssignment.d.ts +0 -12
  214. package/dist/types/models/MentorSummary.d.ts +0 -5
  215. package/dist/types/models/MentorType.d.ts +0 -5
  216. package/dist/types/models/MentorUserSetting.d.ts +0 -4
  217. package/dist/types/models/MentorVisibilityEnum.d.ts +0 -10
  218. package/dist/types/models/MentorWizard.d.ts +0 -4
  219. package/dist/types/models/MessageStatistics.d.ts +0 -5
  220. package/dist/types/models/MessageView.d.ts +0 -12
  221. package/dist/types/models/MessageViewRequest.d.ts +0 -9
  222. package/dist/types/models/MessageViewUpdatResponse.d.ts +0 -3
  223. package/dist/types/models/Metadata.d.ts +0 -5
  224. package/dist/types/models/MetricChange.d.ts +0 -4
  225. package/dist/types/models/MetricInfo.d.ts +0 -5
  226. package/dist/types/models/ModelCost.d.ts +0 -4
  227. package/dist/types/models/ModerationLog.d.ts +0 -12
  228. package/dist/types/models/NameEnum.d.ts +0 -14
  229. package/dist/types/models/NoChatMessagesFound.d.ts +0 -3
  230. package/dist/types/models/OAuthProvider.d.ts +0 -24
  231. package/dist/types/models/OAuthService.d.ts +0 -18
  232. package/dist/types/models/OAuthStartResponse.d.ts +0 -3
  233. package/dist/types/models/OauthCredentialsMasked.d.ts +0 -10
  234. package/dist/types/models/Observation.d.ts +0 -31
  235. package/dist/types/models/OfflineDocument.d.ts +0 -19
  236. package/dist/types/models/OvertimeData.d.ts +0 -13
  237. package/dist/types/models/PageContent.d.ts +0 -6
  238. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +0 -7
  239. package/dist/types/models/PaginatedAgentSkillList.d.ts +0 -7
  240. package/dist/types/models/PaginatedAgentSkillResourceList.d.ts +0 -7
  241. package/dist/types/models/PaginatedArtifactListList.d.ts +0 -7
  242. package/dist/types/models/PaginatedArtifactVersionList.d.ts +0 -7
  243. package/dist/types/models/PaginatedClawInstanceList.d.ts +0 -7
  244. package/dist/types/models/PaginatedClawModelProviderList.d.ts +0 -7
  245. package/dist/types/models/PaginatedConversationsList.d.ts +0 -7
  246. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +0 -7
  247. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +0 -7
  248. package/dist/types/models/PaginatedDisclaimerAgreementList.d.ts +0 -7
  249. package/dist/types/models/PaginatedDisclaimerList.d.ts +0 -7
  250. package/dist/types/models/PaginatedEdxCourseList.d.ts +0 -7
  251. package/dist/types/models/PaginatedEmailPromptListList.d.ts +0 -7
  252. package/dist/types/models/PaginatedGoogleAgentDetailList.d.ts +0 -7
  253. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +0 -7
  254. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +0 -7
  255. package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +0 -7
  256. package/dist/types/models/PaginatedJobRunList.d.ts +0 -7
  257. package/dist/types/models/PaginatedMCPServerConnectionList.d.ts +0 -7
  258. package/dist/types/models/PaginatedMCPServerList.d.ts +0 -7
  259. package/dist/types/models/PaginatedMentorAuditLogEntryList.d.ts +0 -7
  260. package/dist/types/models/PaginatedMentorList.d.ts +0 -7
  261. package/dist/types/models/PaginatedMentorSkillAssignmentList.d.ts +0 -7
  262. package/dist/types/models/PaginatedModerationLogList.d.ts +0 -7
  263. package/dist/types/models/PaginatedObservationList.d.ts +0 -7
  264. package/dist/types/models/PaginatedOfflineDocumentList.d.ts +0 -7
  265. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +0 -7
  266. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +0 -7
  267. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +0 -7
  268. package/dist/types/models/PaginatedProjectList.d.ts +0 -7
  269. package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +0 -7
  270. package/dist/types/models/PaginatedTicketMessageList.d.ts +0 -7
  271. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +0 -7
  272. package/dist/types/models/PaginatedTraceList.d.ts +0 -7
  273. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +0 -7
  274. package/dist/types/models/PaginatedVeoVideoListList.d.ts +0 -7
  275. package/dist/types/models/PaginatedVoiceList.d.ts +0 -7
  276. package/dist/types/models/PaginatedWorkflowList.d.ts +0 -7
  277. package/dist/types/models/PatchedAgentSkill.d.ts +0 -20
  278. package/dist/types/models/PatchedAgentSkillResource.d.ts +0 -17
  279. package/dist/types/models/PatchedArtifact.d.ts +0 -60
  280. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  281. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  282. package/dist/types/models/PatchedCallConfiguration.d.ts +0 -38
  283. package/dist/types/models/PatchedClawInstance.d.ts +0 -41
  284. package/dist/types/models/PatchedClawMentorConfig.d.ts +0 -24
  285. package/dist/types/models/PatchedClawModelProvider.d.ts +0 -40
  286. package/dist/types/models/PatchedConversations.d.ts +0 -50
  287. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +0 -7
  288. package/dist/types/models/PatchedCredentialRequest.d.ts +0 -14
  289. package/dist/types/models/PatchedDisclaimer.d.ts +0 -17
  290. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  291. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  292. package/dist/types/models/PatchedFallbackLLMUpdate.d.ts +0 -33
  293. package/dist/types/models/PatchedGoogleAgentDetail.d.ts +0 -17
  294. package/dist/types/models/PatchedHumanSupportTicket.d.ts +0 -23
  295. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +0 -14
  296. package/dist/types/models/PatchedMCPServer.d.ts +0 -65
  297. package/dist/types/models/PatchedMCPServerConnection.d.ts +0 -47
  298. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +0 -11
  299. package/dist/types/models/PatchedMentorCreate.d.ts +0 -186
  300. package/dist/types/models/PatchedMentorFromTemplate.d.ts +0 -3
  301. package/dist/types/models/PatchedMentorSettings.d.ts +0 -119
  302. package/dist/types/models/PatchedMentorSkillAssignment.d.ts +0 -12
  303. package/dist/types/models/PatchedMentorWizard.d.ts +0 -4
  304. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +0 -41
  305. package/dist/types/models/PatchedPlayWrightScript.d.ts +0 -12
  306. package/dist/types/models/PatchedProject.d.ts +0 -51
  307. package/dist/types/models/PatchedPrompt.d.ts +0 -22
  308. package/dist/types/models/PatchedSeedMentorsView.d.ts +0 -3
  309. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  310. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  311. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  312. package/dist/types/models/PatchedTicketMessage.d.ts +0 -10
  313. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  314. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  315. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  316. package/dist/types/models/PatchedWorkflow.d.ts +0 -58
  317. package/dist/types/models/PeriodInfo.d.ts +0 -21
  318. package/dist/types/models/PeriodicAgent.d.ts +0 -42
  319. package/dist/types/models/PeriodicAgentCreate.d.ts +0 -41
  320. package/dist/types/models/PeriodicAgentLog.d.ts +0 -11
  321. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +0 -10
  322. package/dist/types/models/PeriodicAgentStatistics.d.ts +0 -7
  323. package/dist/types/models/PeriodicTask.d.ts +0 -21
  324. package/dist/types/models/PieChartData.d.ts +0 -5
  325. package/dist/types/models/PieChartSegment.d.ts +0 -4
  326. package/dist/types/models/PinnedMessageCreate.d.ts +0 -9
  327. package/dist/types/models/PinnedMessageRequest.d.ts +0 -6
  328. package/dist/types/models/PlatformPrompt.d.ts +0 -34
  329. package/dist/types/models/PlatformPromptResponse.d.ts +0 -16
  330. package/dist/types/models/PlayWrightScript.d.ts +0 -12
  331. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +0 -4
  332. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +0 -4
  333. package/dist/types/models/PreviousAgentStatusEnum.d.ts +0 -12
  334. package/dist/types/models/PrivacyAction011Enum.d.ts +0 -10
  335. package/dist/types/models/Project.d.ts +0 -51
  336. package/dist/types/models/ProjectMentor.d.ts +0 -11
  337. package/dist/types/models/Prompt.d.ts +0 -22
  338. package/dist/types/models/PromptCategory.d.ts +0 -7
  339. package/dist/types/models/PromptFacet.d.ts +0 -17
  340. package/dist/types/models/PromptSearchResponse.d.ts +0 -35
  341. package/dist/types/models/PromptVisibilityEnum.d.ts +0 -10
  342. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  343. package/dist/types/models/ProviderBreakdown.d.ts +0 -8
  344. package/dist/types/models/ProvisionModeEnum.d.ts +0 -8
  345. package/dist/types/models/QuestionCardTag.d.ts +0 -8
  346. package/dist/types/models/QuestionRequest.d.ts +0 -15
  347. package/dist/types/models/QuestionResponse.d.ts +0 -10
  348. package/dist/types/models/RatingAverageRecord.d.ts +0 -10
  349. package/dist/types/models/RatingEnum.d.ts +0 -8
  350. package/dist/types/models/RatingRecord.d.ts +0 -4
  351. package/dist/types/models/RatingsOvertime.d.ts +0 -5
  352. package/dist/types/models/RecentlyAccessedMentor.d.ts +0 -11
  353. package/dist/types/models/RecommendationTypeEnum.d.ts +0 -8
  354. package/dist/types/models/RecommendedCoursesResponse.d.ts +0 -33
  355. package/dist/types/models/RelatedText.d.ts +0 -3
  356. package/dist/types/models/RemoveMentorFromDisclaimer.d.ts +0 -12
  357. package/dist/types/models/ReorderChildren.d.ts +0 -13
  358. package/dist/types/models/RequestDataVariable.d.ts +0 -14
  359. package/dist/types/models/ResourceScrappedData.d.ts +0 -13
  360. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +0 -12
  361. package/dist/types/models/ResponseDataVariable.d.ts +0 -14
  362. package/dist/types/models/RetreiverTrainViewRequest.d.ts +0 -10
  363. package/dist/types/models/RetreiverTrainViewResponse.d.ts +0 -6
  364. package/dist/types/models/RetrieveTask.d.ts +0 -3
  365. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +0 -30
  366. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +0 -66
  367. package/dist/types/models/RetrieverRequestSearch.d.ts +0 -10
  368. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +0 -10
  369. package/dist/types/models/RetrieverResponseSearch.d.ts +0 -7
  370. package/dist/types/models/ReuestDataVariableList.d.ts +0 -4
  371. package/dist/types/models/RunMentorEval.d.ts +0 -3
  372. package/dist/types/models/ScanWebhookRequest.d.ts +0 -6
  373. package/dist/types/models/ScanWebhookResponse.d.ts +0 -3
  374. package/dist/types/models/ScopeC1dEnum.d.ts +0 -8
  375. package/dist/types/models/SeedMentorsView.d.ts +0 -3
  376. package/dist/types/models/SellableItem.d.ts +0 -14
  377. package/dist/types/models/SellableItemPaywall.d.ts +0 -9
  378. package/dist/types/models/SellableItemsResponse.d.ts +0 -13
  379. package/dist/types/models/SentimentSummary.d.ts +0 -4
  380. package/dist/types/models/ServiceTypeEnum.d.ts +0 -10
  381. package/dist/types/models/SessionBrowserScreenshot.d.ts +0 -8
  382. package/dist/types/models/SessionChartPoint.d.ts +0 -4
  383. package/dist/types/models/SessionDetail.d.ts +0 -6
  384. package/dist/types/models/SessionMemoryStorage.d.ts +0 -6
  385. package/dist/types/models/SessionSummary.d.ts +0 -12
  386. package/dist/types/models/SessionSummaryMentor.d.ts +0 -6
  387. package/dist/types/models/SessionsChart.d.ts +0 -5
  388. package/dist/types/models/SetCurrentVersionRequest.d.ts +0 -3
  389. package/dist/types/models/ShareableMentorLink.d.ts +0 -8
  390. package/dist/types/models/SharedSessionUpdateRequest.d.ts +0 -3
  391. package/dist/types/models/SharedSessionUpdateResponse.d.ts +0 -3
  392. package/dist/types/models/ShellLogs.d.ts +0 -3
  393. package/dist/types/models/SlackConfig.d.ts +0 -8
  394. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  395. package/dist/types/models/SlackWebhook.d.ts +0 -6
  396. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +0 -3
  397. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +0 -5
  398. package/dist/types/models/StarMentor.d.ts +0 -7
  399. package/dist/types/models/StarterPrompts8c6Enum.d.ts +0 -8
  400. package/dist/types/models/StarterPromptsB04Enum.d.ts +0 -8
  401. package/dist/types/models/Step.d.ts +0 -9
  402. package/dist/types/models/StepStatusEnum.d.ts +0 -10
  403. package/dist/types/models/StopGenerationRequest.d.ts +0 -9
  404. package/dist/types/models/SttProviderEnum.d.ts +0 -14
  405. package/dist/types/models/StudentChatMessage.d.ts +0 -4
  406. package/dist/types/models/StylesView.d.ts +0 -4
  407. package/dist/types/models/Subject.d.ts +0 -5
  408. package/dist/types/models/Summary.d.ts +0 -9
  409. package/dist/types/models/TagsView.d.ts +0 -5
  410. package/dist/types/models/TargetSystemEnum.d.ts +0 -10
  411. package/dist/types/models/TaskView.d.ts +0 -3
  412. package/dist/types/models/TeamsConfig.d.ts +0 -7
  413. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  414. package/dist/types/models/TemplateMentor.d.ts +0 -9
  415. package/dist/types/models/TenantMentorTraces.d.ts +0 -6
  416. package/dist/types/models/TenantSetting.d.ts +0 -5
  417. package/dist/types/models/ThemeEnum.d.ts +0 -8
  418. package/dist/types/models/TicketMessage.d.ts +0 -10
  419. package/dist/types/models/TonesView.d.ts +0 -4
  420. package/dist/types/models/ToolCategory.d.ts +0 -5
  421. package/dist/types/models/ToolResponse.d.ts +0 -16
  422. package/dist/types/models/TopicDetail.d.ts +0 -8
  423. package/dist/types/models/TopicDetails.d.ts +0 -5
  424. package/dist/types/models/TopicModel.d.ts +0 -3
  425. package/dist/types/models/TopicRecord.d.ts +0 -4
  426. package/dist/types/models/TopicStatistics.d.ts +0 -7
  427. package/dist/types/models/TopicStatisticsResponse.d.ts +0 -6
  428. package/dist/types/models/TopicSummaryView.d.ts +0 -4
  429. package/dist/types/models/TopicsOverview.d.ts +0 -22
  430. package/dist/types/models/TopicsOverviewMetric.d.ts +0 -21
  431. package/dist/types/models/Trace.d.ts +0 -17
  432. package/dist/types/models/TrainDocumentViewRequest.d.ts +0 -86
  433. package/dist/types/models/TrainDocumentViewResponse.d.ts +0 -15
  434. package/dist/types/models/TrainingStatusEnum.d.ts +0 -12
  435. package/dist/types/models/TransportEnum.d.ts +0 -10
  436. package/dist/types/models/TrendEntry.d.ts +0 -4
  437. package/dist/types/models/TriggerRequest.d.ts +0 -5
  438. package/dist/types/models/TriggerResponse.d.ts +0 -6
  439. package/dist/types/models/TtsProviderEnum.d.ts +0 -12
  440. package/dist/types/models/UpdateXblock.d.ts +0 -17
  441. package/dist/types/models/UseMainCreds.d.ts +0 -3
  442. package/dist/types/models/UserAllChatMemoryView.d.ts +0 -7
  443. package/dist/types/models/UserCatalogItemMemoryView.d.ts +0 -14
  444. package/dist/types/models/UserChatByPeriod.d.ts +0 -4
  445. package/dist/types/models/UserChatFeedback.d.ts +0 -15
  446. package/dist/types/models/UserChatFeedbackCount.d.ts +0 -4
  447. package/dist/types/models/UserChatHistoryFilterData.d.ts +0 -10
  448. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +0 -6
  449. package/dist/types/models/UserChatMemoryStatusView.d.ts +0 -6
  450. package/dist/types/models/UserChatMemoryUpdateView.d.ts +0 -10
  451. package/dist/types/models/UserChatPrivacySettings.d.ts +0 -18
  452. package/dist/types/models/UserCountRecord.d.ts +0 -4
  453. package/dist/types/models/UserDetail.d.ts +0 -7
  454. package/dist/types/models/UserEdxMemory.d.ts +0 -15
  455. package/dist/types/models/UserMemoryContextRequest.d.ts +0 -13
  456. package/dist/types/models/UserMemoryContextResponse.d.ts +0 -12
  457. package/dist/types/models/UserMetric.d.ts +0 -4
  458. package/dist/types/models/UserMetricsResponse.d.ts +0 -7
  459. package/dist/types/models/UserReportListResponse.d.ts +0 -6
  460. package/dist/types/models/UserSentimentCountView.d.ts +0 -4
  461. package/dist/types/models/UserTrendByPeriod.d.ts +0 -5
  462. package/dist/types/models/V2GlobalMentorSearchResponse.d.ts +0 -29
  463. package/dist/types/models/V2PersonalizedMentorsResponse.d.ts +0 -29
  464. package/dist/types/models/V2RecommendationResponse.d.ts +0 -65
  465. package/dist/types/models/VectorResult.d.ts +0 -10
  466. package/dist/types/models/VeoVideoDetail.d.ts +0 -10
  467. package/dist/types/models/VeoVideoList.d.ts +0 -6
  468. package/dist/types/models/VeoVideoRequest.d.ts +0 -5
  469. package/dist/types/models/VideoCaption.d.ts +0 -3
  470. package/dist/types/models/Voice.d.ts +0 -9
  471. package/dist/types/models/VoiceProviderEnum.d.ts +0 -10
  472. package/dist/types/models/WebResource.d.ts +0 -9
  473. package/dist/types/models/WebResourceCard.d.ts +0 -7
  474. package/dist/types/models/WebResourcesQuery.d.ts +0 -3
  475. package/dist/types/models/WebexConfig.d.ts +0 -10
  476. package/dist/types/models/WebexWebhook.d.ts +0 -4
  477. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  478. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  479. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  480. package/dist/types/models/Workflow.d.ts +0 -58
  481. package/dist/types/models/XblockResult.d.ts +0 -9
  482. package/dist/types/models/XblockTypeEnum.d.ts +0 -16
  483. package/dist/types/services/AiAccountService.d.ts +0 -707
  484. package/dist/types/services/AiBotService.d.ts +0 -650
  485. package/dist/types/services/AiIndexService.d.ts +0 -355
  486. package/dist/types/services/AiMarketingService.d.ts +0 -38
  487. package/dist/types/services/AiMediaService.d.ts +0 -247
  488. package/dist/types/services/AiMentorService.d.ts +0 -7747
  489. package/dist/types/services/AiPromptService.d.ts +0 -1035
  490. package/dist/types/services/AiProxyService.d.ts +0 -37
  491. package/dist/types/services/AiSearchService.d.ts +0 -534
  492. package/src/models/AIGeneratedImage.ts +0 -18
  493. package/src/models/AIUserProfileMemoryRelation.ts +0 -9
  494. package/src/models/AIUserProfileRequest.ts +0 -9
  495. package/src/models/AccessEnum.ts +0 -12
  496. package/src/models/AccessTimesHeatmap.ts +0 -10
  497. package/src/models/AccessibleMentorsByEmailRequest.ts +0 -18
  498. package/src/models/AccessibleMentorsByEmailResponse.ts +0 -18
  499. package/src/models/ActionBreakdown.ts +0 -15
  500. package/src/models/AddMentorToDisclaimer.ts +0 -17
  501. package/src/models/AgentSkill.ts +0 -25
  502. package/src/models/AgentSkillResource.ts +0 -22
  503. package/src/models/AlignMentorBubbleEnum.ts +0 -12
  504. package/src/models/AnalyticsOverview.ts +0 -12
  505. package/src/models/Answer.ts +0 -16
  506. package/src/models/Artifact.ts +0 -65
  507. package/src/models/ArtifactList.ts +0 -47
  508. package/src/models/ArtifactVersion.ts +0 -60
  509. package/src/models/AssumedKnowledge.ts +0 -9
  510. package/src/models/AssumedKnowledgeLevel.ts +0 -9
  511. package/src/models/AudioToTextRequest.ts +0 -8
  512. package/src/models/AudioToTextResponse.ts +0 -8
  513. package/src/models/AuthModeEnum.ts +0 -16
  514. package/src/models/AuthScopeEnum.ts +0 -14
  515. package/src/models/AuthTypeEnum.ts +0 -14
  516. package/src/models/BaseFinanceResponse.ts +0 -42
  517. package/src/models/BillingPeriod.ts +0 -13
  518. package/src/models/Bot.ts +0 -20
  519. package/src/models/BotCommand.ts +0 -11
  520. package/src/models/BotCreate.ts +0 -17
  521. package/src/models/Breakdown.ts +0 -16
  522. package/src/models/CallAuthenticationRequest.ts +0 -22
  523. package/src/models/CallAuthenticationResponse.ts +0 -26
  524. package/src/models/CallConfiguration.ts +0 -43
  525. package/src/models/CallConfigurationModeEnum.ts +0 -12
  526. package/src/models/ChatHistory.ts +0 -15
  527. package/src/models/ChatHistoryFilterData.ts +0 -14
  528. package/src/models/ChatHistoryFilterUser.ts +0 -10
  529. package/src/models/ChatHistoryItem.ts +0 -11
  530. package/src/models/ChatHistorySessionId.ts +0 -8
  531. package/src/models/ChatPrivacyModeEnum.ts +0 -14
  532. package/src/models/ChatSessionRequest.ts +0 -20
  533. package/src/models/ChatSessionResponse.ts +0 -13
  534. package/src/models/CheckDocumentTrainingStatus.ts +0 -15
  535. package/src/models/ClawInstance.ts +0 -46
  536. package/src/models/ClawInstanceStatusEnum.ts +0 -14
  537. package/src/models/ClawMentorConfig.ts +0 -29
  538. package/src/models/ClawModelProvider.ts +0 -45
  539. package/src/models/ClawTypeEnum.ts +0 -12
  540. package/src/models/ComparisonInfo.ts +0 -34
  541. package/src/models/ConnectedService.ts +0 -33
  542. package/src/models/ConversationChartPoint.ts +0 -9
  543. package/src/models/ConversationDetailResponse.ts +0 -9
  544. package/src/models/ConversationListItem.ts +0 -29
  545. package/src/models/ConversationListResponse.ts +0 -11
  546. package/src/models/ConversationMessage.ts +0 -16
  547. package/src/models/ConversationRating.ts +0 -11
  548. package/src/models/ConversationSummary.ts +0 -10
  549. package/src/models/ConversationVolume.ts +0 -9
  550. package/src/models/Conversations.ts +0 -55
  551. package/src/models/ConversationsChart.ts +0 -10
  552. package/src/models/Cost.ts +0 -8
  553. package/src/models/CostPerTenant.ts +0 -11
  554. package/src/models/CourseCreationTask.ts +0 -36
  555. package/src/models/CourseCreationTaskFile.ts +0 -12
  556. package/src/models/CourseCreationTaskStatusEnum.ts +0 -20
  557. package/src/models/CourseRecommendation.ts +0 -54
  558. package/src/models/CrawlerPatternTypeEnum.ts +0 -12
  559. package/src/models/CreateXblock.ts +0 -42
  560. package/src/models/CredentialRequest.ts +0 -19
  561. package/src/models/CrontabSchedule.ts +0 -27
  562. package/src/models/CurrentUsersResponse.ts +0 -13
  563. package/src/models/CustomInstructionResponse.ts +0 -18
  564. package/src/models/DateRange.ts +0 -9
  565. package/src/models/DeleteXblock.ts +0 -14
  566. package/src/models/DeployStateEnum.ts +0 -18
  567. package/src/models/Disclaimer.ts +0 -22
  568. package/src/models/DisclaimerAgreement.ts +0 -16
  569. package/src/models/DisclaimerScopeEnum.ts +0 -12
  570. package/src/models/DiscordConfig.ts +0 -12
  571. package/src/models/DiscordUserConfig.ts +0 -15
  572. package/src/models/DiscordWebhook.ts +0 -11
  573. package/src/models/Document.ts +0 -46
  574. package/src/models/DocumentFacet.ts +0 -22
  575. package/src/models/DocumentFromPoolRequest.ts +0 -15
  576. package/src/models/DocumentSearchResponse.ts +0 -40
  577. package/src/models/DocumentSettingsResponse.ts +0 -8
  578. package/src/models/EdxCourse.ts +0 -16
  579. package/src/models/ElevenlabsCustomVoice.ts +0 -9
  580. package/src/models/ElevenlabsCustomVoiceResponse.ts +0 -13
  581. package/src/models/EmailPromptDetail.ts +0 -18
  582. package/src/models/EmailPromptList.ts +0 -16
  583. package/src/models/EmailPromptSummary.ts +0 -10
  584. package/src/models/Entity.ts +0 -16
  585. package/src/models/EntityTypeEnum.ts +0 -14
  586. package/src/models/Error.ts +0 -8
  587. package/src/models/ExternalProxyInvoke.ts +0 -24
  588. package/src/models/ExternalProxyServiceDetail.ts +0 -28
  589. package/src/models/ExternalProxyServiceList.ts +0 -19
  590. package/src/models/ExternalServiceInfo.ts +0 -11
  591. package/src/models/FallbackLLM.ts +0 -52
  592. package/src/models/FallbackLLMCreate.ts +0 -43
  593. package/src/models/FallbackLLMUpdate.ts +0 -38
  594. package/src/models/FileTypeEnum.ts +0 -14
  595. package/src/models/FileUploadURLRequest.ts +0 -26
  596. package/src/models/FileUploadURLResponse.ts +0 -30
  597. package/src/models/FinanceDetailsResponse.ts +0 -18
  598. package/src/models/FinanceFilters.ts +0 -20
  599. package/src/models/FreeUsageCount.ts +0 -8
  600. package/src/models/GoogleAgentDetail.ts +0 -22
  601. package/src/models/GrantMentorAccessRequest.ts +0 -14
  602. package/src/models/GreetingMethodEnum.ts +0 -12
  603. package/src/models/GuidedPrompt.ts +0 -9
  604. package/src/models/GuidedPromptsResponse.ts +0 -10
  605. package/src/models/HeygenMarketingVideoDetail.ts +0 -13
  606. package/src/models/HeygenMarketingVideoList.ts +0 -11
  607. package/src/models/HeygenTemplateRequest.ts +0 -10
  608. package/src/models/HeygenTemplateResponseSingle.ts +0 -11
  609. package/src/models/HeygenVideoDetail.ts +0 -13
  610. package/src/models/HeygenVideoRequest.ts +0 -10
  611. package/src/models/HumanSupportTicket.ts +0 -28
  612. package/src/models/HumanSupportTicketStatusEnum.ts +0 -14
  613. package/src/models/InputQuestion.ts +0 -11
  614. package/src/models/IntegrationCredential.ts +0 -15
  615. package/src/models/IntegrationCredentialSchema.ts +0 -11
  616. package/src/models/InterfaceEnum.ts +0 -12
  617. package/src/models/IntialQuestionAnswer.ts +0 -8
  618. package/src/models/InvalidQueryParameters.ts +0 -8
  619. package/src/models/InvoiceReportResponse.ts +0 -18
  620. package/src/models/JobRun.ts +0 -16
  621. package/src/models/KindEnum.ts +0 -14
  622. package/src/models/LLMCredentialRequest.ts +0 -19
  623. package/src/models/LLMCredentialResponse.ts +0 -15
  624. package/src/models/LLMCredentialSchema.ts +0 -11
  625. package/src/models/LLMModelForTenant.ts +0 -11
  626. package/src/models/LLMModelRegistryMinimal.ts +0 -20
  627. package/src/models/LLMProviderMinimal.ts +0 -33
  628. package/src/models/LLMQuestion.ts +0 -20
  629. package/src/models/LLMResponse.ts +0 -23
  630. package/src/models/LLMTracesListResponse.ts +0 -10
  631. package/src/models/LanguagesView.ts +0 -10
  632. package/src/models/LinkCourseRequest.ts +0 -8
  633. package/src/models/LinkCourseResponse.ts +0 -10
  634. package/src/models/LlmProviderEnum.ts +0 -14
  635. package/src/models/MCPServer.ts +0 -70
  636. package/src/models/MCPServerConnection.ts +0 -52
  637. package/src/models/MCPServerConnectionScopeEnum.ts +0 -14
  638. package/src/models/MCPServerOauthFind.ts +0 -10
  639. package/src/models/MaskedIntegrationCredential.ts +0 -15
  640. package/src/models/MaskedLLMCredential.ts +0 -15
  641. package/src/models/MemoryComponentData.ts +0 -10
  642. package/src/models/MemoryComponentMemory.ts +0 -9
  643. package/src/models/MemoryComponentMemoryDetail.ts +0 -13
  644. package/src/models/MemoryComponentResponse.ts +0 -10
  645. package/src/models/MemoryProgress.ts +0 -13
  646. package/src/models/MemoryStatusRequestView.ts +0 -11
  647. package/src/models/MemoryStatusView.ts +0 -11
  648. package/src/models/Mentor.ts +0 -201
  649. package/src/models/MentorAudience.ts +0 -10
  650. package/src/models/MentorAuditLogEntry.ts +0 -48
  651. package/src/models/MentorBreakdown.ts +0 -14
  652. package/src/models/MentorCategory.ts +0 -14
  653. package/src/models/MentorCategoryCreate.ts +0 -16
  654. package/src/models/MentorCategoryGroup.ts +0 -16
  655. package/src/models/MentorCategoryGroupCreate.ts +0 -16
  656. package/src/models/MentorCreate.ts +0 -191
  657. package/src/models/MentorCustomVoice.ts +0 -9
  658. package/src/models/MentorCustomVoiceResponse.ts +0 -9
  659. package/src/models/MentorData.ts +0 -12
  660. package/src/models/MentorDetailAnalytics.ts +0 -11
  661. package/src/models/MentorEval.ts +0 -16
  662. package/src/models/MentorEvalQuestion.ts +0 -10
  663. package/src/models/MentorEvalQuestionRequest.ts +0 -9
  664. package/src/models/MentorEvalReport.ts +0 -15
  665. package/src/models/MentorEvalRequest.ts +0 -13
  666. package/src/models/MentorFacet.ts +0 -22
  667. package/src/models/MentorFork.ts +0 -10
  668. package/src/models/MentorFromTemplate.ts +0 -8
  669. package/src/models/MentorFromTemplateWithSettingRequest.ts +0 -77
  670. package/src/models/MentorMemorySettingsRequest.ts +0 -11
  671. package/src/models/MentorMemorySettingsResponse.ts +0 -11
  672. package/src/models/MentorMetadata.ts +0 -10
  673. package/src/models/MentorScenario.ts +0 -11
  674. package/src/models/MentorScenarioPrompt.ts +0 -10
  675. package/src/models/MentorSearchResponse.ts +0 -40
  676. package/src/models/MentorSession.ts +0 -9
  677. package/src/models/MentorSettings.ts +0 -124
  678. package/src/models/MentorSettingsPublic.ts +0 -92
  679. package/src/models/MentorSettingsRequest.ts +0 -100
  680. package/src/models/MentorSettingsRequestPrivacyActionEnum.ts +0 -14
  681. package/src/models/MentorSkillAssignment.ts +0 -17
  682. package/src/models/MentorSummary.ts +0 -10
  683. package/src/models/MentorType.ts +0 -10
  684. package/src/models/MentorUserSetting.ts +0 -9
  685. package/src/models/MentorVisibilityEnum.ts +0 -14
  686. package/src/models/MentorWizard.ts +0 -9
  687. package/src/models/MessageStatistics.ts +0 -10
  688. package/src/models/MessageView.ts +0 -17
  689. package/src/models/MessageViewRequest.ts +0 -14
  690. package/src/models/MessageViewUpdatResponse.ts +0 -8
  691. package/src/models/Metadata.ts +0 -10
  692. package/src/models/MetricChange.ts +0 -9
  693. package/src/models/MetricInfo.ts +0 -10
  694. package/src/models/ModelCost.ts +0 -9
  695. package/src/models/ModerationLog.ts +0 -17
  696. package/src/models/NameEnum.ts +0 -18
  697. package/src/models/NoChatMessagesFound.ts +0 -8
  698. package/src/models/OAuthProvider.ts +0 -29
  699. package/src/models/OAuthService.ts +0 -23
  700. package/src/models/OAuthStartResponse.ts +0 -8
  701. package/src/models/OauthCredentialsMasked.ts +0 -15
  702. package/src/models/Observation.ts +0 -36
  703. package/src/models/OfflineDocument.ts +0 -24
  704. package/src/models/OvertimeData.ts +0 -18
  705. package/src/models/PageContent.ts +0 -11
  706. package/src/models/PaginatedAIGeneratedImageList.ts +0 -12
  707. package/src/models/PaginatedAgentSkillList.ts +0 -12
  708. package/src/models/PaginatedAgentSkillResourceList.ts +0 -12
  709. package/src/models/PaginatedArtifactListList.ts +0 -12
  710. package/src/models/PaginatedArtifactVersionList.ts +0 -12
  711. package/src/models/PaginatedClawInstanceList.ts +0 -12
  712. package/src/models/PaginatedClawModelProviderList.ts +0 -12
  713. package/src/models/PaginatedConversationsList.ts +0 -12
  714. package/src/models/PaginatedCourseCreationTaskFileList.ts +0 -12
  715. package/src/models/PaginatedCourseCreationTaskList.ts +0 -12
  716. package/src/models/PaginatedDisclaimerAgreementList.ts +0 -12
  717. package/src/models/PaginatedDisclaimerList.ts +0 -12
  718. package/src/models/PaginatedEdxCourseList.ts +0 -12
  719. package/src/models/PaginatedEmailPromptListList.ts +0 -12
  720. package/src/models/PaginatedGoogleAgentDetailList.ts +0 -12
  721. package/src/models/PaginatedHeygenMarketingVideoListList.ts +0 -12
  722. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +0 -12
  723. package/src/models/PaginatedHumanSupportTicketList.ts +0 -12
  724. package/src/models/PaginatedJobRunList.ts +0 -12
  725. package/src/models/PaginatedMCPServerConnectionList.ts +0 -12
  726. package/src/models/PaginatedMCPServerList.ts +0 -12
  727. package/src/models/PaginatedMentorAuditLogEntryList.ts +0 -12
  728. package/src/models/PaginatedMentorList.ts +0 -12
  729. package/src/models/PaginatedMentorSkillAssignmentList.ts +0 -12
  730. package/src/models/PaginatedModerationLogList.ts +0 -12
  731. package/src/models/PaginatedObservationList.ts +0 -12
  732. package/src/models/PaginatedOfflineDocumentList.ts +0 -12
  733. package/src/models/PaginatedPeriodicAgentList.ts +0 -12
  734. package/src/models/PaginatedPeriodicAgentLogList.ts +0 -12
  735. package/src/models/PaginatedPlayWrightScriptList.ts +0 -12
  736. package/src/models/PaginatedProjectList.ts +0 -12
  737. package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +0 -12
  738. package/src/models/PaginatedTicketMessageList.ts +0 -12
  739. package/src/models/PaginatedTopicStatisticsResponse.ts +0 -12
  740. package/src/models/PaginatedTraceList.ts +0 -12
  741. package/src/models/PaginatedUserEdxMemoryList.ts +0 -12
  742. package/src/models/PaginatedVeoVideoListList.ts +0 -12
  743. package/src/models/PaginatedVoiceList.ts +0 -12
  744. package/src/models/PaginatedWorkflowList.ts +0 -12
  745. package/src/models/PatchedAgentSkill.ts +0 -25
  746. package/src/models/PatchedAgentSkillResource.ts +0 -22
  747. package/src/models/PatchedArtifact.ts +0 -65
  748. package/src/models/PatchedBotCommand.ts +0 -11
  749. package/src/models/PatchedBotCreate.ts +0 -17
  750. package/src/models/PatchedCallConfiguration.ts +0 -43
  751. package/src/models/PatchedClawInstance.ts +0 -46
  752. package/src/models/PatchedClawMentorConfig.ts +0 -29
  753. package/src/models/PatchedClawModelProvider.ts +0 -45
  754. package/src/models/PatchedConversations.ts +0 -55
  755. package/src/models/PatchedCourseCreationTaskFile.ts +0 -12
  756. package/src/models/PatchedCredentialRequest.ts +0 -19
  757. package/src/models/PatchedDisclaimer.ts +0 -22
  758. package/src/models/PatchedDiscordConfig.ts +0 -12
  759. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  760. package/src/models/PatchedFallbackLLMUpdate.ts +0 -38
  761. package/src/models/PatchedGoogleAgentDetail.ts +0 -22
  762. package/src/models/PatchedHumanSupportTicket.ts +0 -28
  763. package/src/models/PatchedLLMCredentialRequest.ts +0 -19
  764. package/src/models/PatchedMCPServer.ts +0 -70
  765. package/src/models/PatchedMCPServerConnection.ts +0 -52
  766. package/src/models/PatchedMentorCategoryGroupCreate.ts +0 -16
  767. package/src/models/PatchedMentorCreate.ts +0 -191
  768. package/src/models/PatchedMentorFromTemplate.ts +0 -8
  769. package/src/models/PatchedMentorSettings.ts +0 -124
  770. package/src/models/PatchedMentorSkillAssignment.ts +0 -17
  771. package/src/models/PatchedMentorWizard.ts +0 -9
  772. package/src/models/PatchedPeriodicAgentCreate.ts +0 -46
  773. package/src/models/PatchedPlayWrightScript.ts +0 -17
  774. package/src/models/PatchedProject.ts +0 -56
  775. package/src/models/PatchedPrompt.ts +0 -27
  776. package/src/models/PatchedSeedMentorsView.ts +0 -8
  777. package/src/models/PatchedSlackConfig.ts +0 -13
  778. package/src/models/PatchedSlackUserConfig.ts +0 -22
  779. package/src/models/PatchedTeamsConfig.ts +0 -12
  780. package/src/models/PatchedTicketMessage.ts +0 -15
  781. package/src/models/PatchedWebexConfig.ts +0 -15
  782. package/src/models/PatchedWhatsappConfig.ts +0 -16
  783. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  784. package/src/models/PatchedWorkflow.ts +0 -63
  785. package/src/models/PeriodInfo.ts +0 -26
  786. package/src/models/PeriodicAgent.ts +0 -47
  787. package/src/models/PeriodicAgentCreate.ts +0 -46
  788. package/src/models/PeriodicAgentLog.ts +0 -16
  789. package/src/models/PeriodicAgentLogStatusEnum.ts +0 -14
  790. package/src/models/PeriodicAgentStatistics.ts +0 -12
  791. package/src/models/PeriodicTask.ts +0 -26
  792. package/src/models/PieChartData.ts +0 -10
  793. package/src/models/PieChartSegment.ts +0 -9
  794. package/src/models/PinnedMessageCreate.ts +0 -14
  795. package/src/models/PinnedMessageRequest.ts +0 -11
  796. package/src/models/PlatformPrompt.ts +0 -39
  797. package/src/models/PlatformPromptResponse.ts +0 -21
  798. package/src/models/PlayWrightScript.ts +0 -17
  799. package/src/models/PredictiveAnalyticsRequest.ts +0 -9
  800. package/src/models/PredictiveAnalyticsResponse.ts +0 -9
  801. package/src/models/PreviousAgentStatusEnum.ts +0 -16
  802. package/src/models/PrivacyAction011Enum.ts +0 -14
  803. package/src/models/Project.ts +0 -56
  804. package/src/models/ProjectMentor.ts +0 -16
  805. package/src/models/Prompt.ts +0 -27
  806. package/src/models/PromptCategory.ts +0 -12
  807. package/src/models/PromptFacet.ts +0 -22
  808. package/src/models/PromptSearchResponse.ts +0 -40
  809. package/src/models/PromptVisibilityEnum.ts +0 -14
  810. package/src/models/Provider05cEnum.ts +0 -18
  811. package/src/models/ProviderBreakdown.ts +0 -13
  812. package/src/models/ProvisionModeEnum.ts +0 -12
  813. package/src/models/QuestionCardTag.ts +0 -13
  814. package/src/models/QuestionRequest.ts +0 -20
  815. package/src/models/QuestionResponse.ts +0 -15
  816. package/src/models/RatingAverageRecord.ts +0 -15
  817. package/src/models/RatingEnum.ts +0 -12
  818. package/src/models/RatingRecord.ts +0 -9
  819. package/src/models/RatingsOvertime.ts +0 -10
  820. package/src/models/RecentlyAccessedMentor.ts +0 -16
  821. package/src/models/RecommendationTypeEnum.ts +0 -12
  822. package/src/models/RecommendedCoursesResponse.ts +0 -38
  823. package/src/models/RelatedText.ts +0 -8
  824. package/src/models/RemoveMentorFromDisclaimer.ts +0 -17
  825. package/src/models/ReorderChildren.ts +0 -18
  826. package/src/models/RequestDataVariable.ts +0 -19
  827. package/src/models/ResourceScrappedData.ts +0 -18
  828. package/src/models/ResourceScrappedDataStatusEnum.ts +0 -16
  829. package/src/models/ResponseDataVariable.ts +0 -19
  830. package/src/models/RetreiverTrainViewRequest.ts +0 -15
  831. package/src/models/RetreiverTrainViewResponse.ts +0 -11
  832. package/src/models/RetrieveTask.ts +0 -8
  833. package/src/models/RetrieverDocumentEmbedding.ts +0 -35
  834. package/src/models/RetrieverDocumentEmbeddingRequest.ts +0 -71
  835. package/src/models/RetrieverRequestSearch.ts +0 -15
  836. package/src/models/RetrieverRequestSearchDocument.ts +0 -15
  837. package/src/models/RetrieverResponseSearch.ts +0 -12
  838. package/src/models/ReuestDataVariableList.ts +0 -9
  839. package/src/models/RunMentorEval.ts +0 -8
  840. package/src/models/ScanWebhookRequest.ts +0 -11
  841. package/src/models/ScanWebhookResponse.ts +0 -8
  842. package/src/models/ScopeC1dEnum.ts +0 -12
  843. package/src/models/SeedMentorsView.ts +0 -8
  844. package/src/models/SellableItem.ts +0 -19
  845. package/src/models/SellableItemPaywall.ts +0 -14
  846. package/src/models/SellableItemsResponse.ts +0 -18
  847. package/src/models/SentimentSummary.ts +0 -9
  848. package/src/models/ServiceTypeEnum.ts +0 -14
  849. package/src/models/SessionBrowserScreenshot.ts +0 -13
  850. package/src/models/SessionChartPoint.ts +0 -9
  851. package/src/models/SessionDetail.ts +0 -11
  852. package/src/models/SessionMemoryStorage.ts +0 -11
  853. package/src/models/SessionSummary.ts +0 -17
  854. package/src/models/SessionSummaryMentor.ts +0 -11
  855. package/src/models/SessionsChart.ts +0 -10
  856. package/src/models/SetCurrentVersionRequest.ts +0 -8
  857. package/src/models/ShareableMentorLink.ts +0 -13
  858. package/src/models/SharedSessionUpdateRequest.ts +0 -8
  859. package/src/models/SharedSessionUpdateResponse.ts +0 -8
  860. package/src/models/ShellLogs.ts +0 -8
  861. package/src/models/SlackConfig.ts +0 -13
  862. package/src/models/SlackUserConfig.ts +0 -22
  863. package/src/models/SlackWebhook.ts +0 -11
  864. package/src/models/SpacedRepetitionLearningPath.ts +0 -8
  865. package/src/models/SpacedRepetitionQuestionStats.ts +0 -10
  866. package/src/models/StarMentor.ts +0 -12
  867. package/src/models/StarterPrompts8c6Enum.ts +0 -12
  868. package/src/models/StarterPromptsB04Enum.ts +0 -12
  869. package/src/models/Step.ts +0 -14
  870. package/src/models/StepStatusEnum.ts +0 -14
  871. package/src/models/StopGenerationRequest.ts +0 -14
  872. package/src/models/SttProviderEnum.ts +0 -18
  873. package/src/models/StudentChatMessage.ts +0 -9
  874. package/src/models/StylesView.ts +0 -9
  875. package/src/models/Subject.ts +0 -10
  876. package/src/models/Summary.ts +0 -14
  877. package/src/models/TagsView.ts +0 -10
  878. package/src/models/TargetSystemEnum.ts +0 -14
  879. package/src/models/TaskView.ts +0 -8
  880. package/src/models/TeamsConfig.ts +0 -12
  881. package/src/models/TeamsWebhook.ts +0 -22
  882. package/src/models/TemplateMentor.ts +0 -14
  883. package/src/models/TenantMentorTraces.ts +0 -11
  884. package/src/models/TenantSetting.ts +0 -10
  885. package/src/models/ThemeEnum.ts +0 -12
  886. package/src/models/TicketMessage.ts +0 -15
  887. package/src/models/TonesView.ts +0 -9
  888. package/src/models/ToolCategory.ts +0 -10
  889. package/src/models/ToolResponse.ts +0 -21
  890. package/src/models/TopicDetail.ts +0 -13
  891. package/src/models/TopicDetails.ts +0 -10
  892. package/src/models/TopicModel.ts +0 -8
  893. package/src/models/TopicRecord.ts +0 -9
  894. package/src/models/TopicStatistics.ts +0 -12
  895. package/src/models/TopicStatisticsResponse.ts +0 -11
  896. package/src/models/TopicSummaryView.ts +0 -9
  897. package/src/models/TopicsOverview.ts +0 -27
  898. package/src/models/TopicsOverviewMetric.ts +0 -26
  899. package/src/models/Trace.ts +0 -22
  900. package/src/models/TrainDocumentViewRequest.ts +0 -91
  901. package/src/models/TrainDocumentViewResponse.ts +0 -20
  902. package/src/models/TrainingStatusEnum.ts +0 -16
  903. package/src/models/TransportEnum.ts +0 -14
  904. package/src/models/TrendEntry.ts +0 -9
  905. package/src/models/TriggerRequest.ts +0 -10
  906. package/src/models/TriggerResponse.ts +0 -11
  907. package/src/models/TtsProviderEnum.ts +0 -16
  908. package/src/models/UpdateXblock.ts +0 -22
  909. package/src/models/UseMainCreds.ts +0 -8
  910. package/src/models/UserAllChatMemoryView.ts +0 -12
  911. package/src/models/UserCatalogItemMemoryView.ts +0 -19
  912. package/src/models/UserChatByPeriod.ts +0 -9
  913. package/src/models/UserChatFeedback.ts +0 -20
  914. package/src/models/UserChatFeedbackCount.ts +0 -9
  915. package/src/models/UserChatHistoryFilterData.ts +0 -15
  916. package/src/models/UserChatMemoryStatusRequestView.ts +0 -11
  917. package/src/models/UserChatMemoryStatusView.ts +0 -11
  918. package/src/models/UserChatMemoryUpdateView.ts +0 -15
  919. package/src/models/UserChatPrivacySettings.ts +0 -23
  920. package/src/models/UserCountRecord.ts +0 -9
  921. package/src/models/UserDetail.ts +0 -12
  922. package/src/models/UserEdxMemory.ts +0 -20
  923. package/src/models/UserMemoryContextRequest.ts +0 -18
  924. package/src/models/UserMemoryContextResponse.ts +0 -17
  925. package/src/models/UserMetric.ts +0 -9
  926. package/src/models/UserMetricsResponse.ts +0 -12
  927. package/src/models/UserReportListResponse.ts +0 -11
  928. package/src/models/UserSentimentCountView.ts +0 -9
  929. package/src/models/UserTrendByPeriod.ts +0 -10
  930. package/src/models/V2GlobalMentorSearchResponse.ts +0 -34
  931. package/src/models/V2PersonalizedMentorsResponse.ts +0 -34
  932. package/src/models/V2RecommendationResponse.ts +0 -70
  933. package/src/models/VectorResult.ts +0 -15
  934. package/src/models/VeoVideoDetail.ts +0 -15
  935. package/src/models/VeoVideoList.ts +0 -11
  936. package/src/models/VeoVideoRequest.ts +0 -10
  937. package/src/models/VideoCaption.ts +0 -8
  938. package/src/models/Voice.ts +0 -14
  939. package/src/models/VoiceProviderEnum.ts +0 -14
  940. package/src/models/WebResource.ts +0 -14
  941. package/src/models/WebResourceCard.ts +0 -12
  942. package/src/models/WebResourcesQuery.ts +0 -8
  943. package/src/models/WebexConfig.ts +0 -15
  944. package/src/models/WebexWebhook.ts +0 -9
  945. package/src/models/WhatAppWebHook.ts +0 -8
  946. package/src/models/WhatsappConfig.ts +0 -16
  947. package/src/models/WhatsappUserConfig.ts +0 -15
  948. package/src/models/Workflow.ts +0 -63
  949. package/src/models/XblockResult.ts +0 -14
  950. package/src/models/XblockTypeEnum.ts +0 -20
  951. package/src/services/AiAccountService.ts +0 -1250
  952. package/src/services/AiBotService.ts +0 -1350
  953. package/src/services/AiIndexService.ts +0 -644
  954. package/src/services/AiMarketingService.ts +0 -96
  955. package/src/services/AiMediaService.ts +0 -532
  956. package/src/services/AiMentorService.ts +0 -14825
  957. package/src/services/AiPromptService.ts +0 -1985
  958. package/src/services/AiProxyService.ts +0 -90
  959. package/src/services/AiSearchService.ts +0 -870
@@ -2,22 +2,10 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { AccessTimesHeatmap } from '../models/AccessTimesHeatmap';
6
- import type { BaseFinanceResponse } from '../models/BaseFinanceResponse';
7
5
  import type { ContentDetailsResponse } from '../models/ContentDetailsResponse';
8
6
  import type { ContentResponse } from '../models/ContentResponse';
9
- import type { ConversationDetailResponse } from '../models/ConversationDetailResponse';
10
- import type { ConversationListResponse } from '../models/ConversationListResponse';
11
- import type { CurrentUsersResponse } from '../models/CurrentUsersResponse';
12
- import type { FinanceDetailsResponse } from '../models/FinanceDetailsResponse';
13
- import type { InvoiceReportResponse } from '../models/InvoiceReportResponse';
14
7
  import type { LearnerAnalyticsResponse } from '../models/LearnerAnalyticsResponse';
15
8
  import type { LearnerListResponse } from '../models/LearnerListResponse';
16
- import type { RatingsOvertime } from '../models/RatingsOvertime';
17
- import type { SessionsChart } from '../models/SessionsChart';
18
- import type { TopicDetails } from '../models/TopicDetails';
19
- import type { TopicsOverview } from '../models/TopicsOverview';
20
- import type { UserDetail } from '../models/UserDetail';
21
9
  import type { CancelablePromise } from '../core/CancelablePromise';
22
10
  import { OpenAPI } from '../core/OpenAPI';
23
11
  import { request as __request } from '../core/request';
@@ -64,7 +52,6 @@ export class AnalyticsService {
64
52
  granularity = 'hour',
65
53
  includeOvertime = false,
66
54
  limit = 20,
67
- mentorUniqueId,
68
55
  page = 1,
69
56
  platformKey,
70
57
  startDate,
@@ -108,7 +95,6 @@ export class AnalyticsService {
108
95
  * Number of items per page (max 100)
109
96
  */
110
97
  limit?: number,
111
- mentorUniqueId?: string,
112
98
  /**
113
99
  * Page number for pagination
114
100
  */
@@ -132,7 +118,6 @@ export class AnalyticsService {
132
118
  'granularity': granularity,
133
119
  'include_overtime': includeOvertime,
134
120
  'limit': limit,
135
- 'mentor_unique_id': mentorUniqueId,
136
121
  'metric': metric,
137
122
  'page': page,
138
123
  'platform_key': platformKey,
@@ -153,7 +138,6 @@ export class AnalyticsService {
153
138
  dateFilter = 'today',
154
139
  endDate,
155
140
  limit = 10,
156
- mentorUniqueId,
157
141
  page = 1,
158
142
  platformKey,
159
143
  search,
@@ -189,7 +173,6 @@ export class AnalyticsService {
189
173
  * Number of learner records per page
190
174
  */
191
175
  limit?: number,
192
- mentorUniqueId?: string,
193
176
  page?: number,
194
177
  platformKey?: string,
195
178
  search?: string,
@@ -213,7 +196,6 @@ export class AnalyticsService {
213
196
  'date_filter': dateFilter,
214
197
  'end_date': endDate,
215
198
  'limit': limit,
216
- 'mentor_unique_id': mentorUniqueId,
217
199
  'metric': metric,
218
200
  'page': page,
219
201
  'platform_key': platformKey,
@@ -225,1296 +207,197 @@ export class AnalyticsService {
225
207
  });
226
208
  }
227
209
  /**
228
- * Financial Analytics API - Get comprehensive cost metrics with comparison analysis.
210
+ * Unified API endpoint for learner analytics.
229
211
  *
230
- * This endpoint provides period-based cost analysis (not cumulative) with support for:
231
- * - Multiple time granularities and metrics
232
- * - Cross-dimensional filtering
233
- * - Percentage change vs comparison periods
234
- * - Forward-filled time series
212
+ * This endpoint provides either:
213
+ * 1. Cross-platform summary (when only username is provided)
214
+ * 2. Platform-specific detailed data (when username + platform_key are provided)
235
215
  *
236
- * **Examples:**
216
+ * Query params:
217
+ * - username (required): Username of the learner
218
+ * - platform_key (optional): Platform key for platform-specific data
219
+ * - page (optional): Page number (default: 1)
220
+ * - limit (optional): Records per page (default: 20, max: 100)
237
221
  *
238
- * **Basic Weekly Costs:**
239
- * ```
240
- * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
241
- * ```
242
- *
243
- * **Platform & Mentor Filtered:**
244
- * ```
245
- * # Get total costs for a specific platform and mentor
246
- * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
247
- * ```
248
- *
249
- * **Monthly Costs by Provider:**
250
- * ```
251
- * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
252
- * ```
253
- *
254
- * **Daily Costs for Specific User:**
255
- * ```
256
- * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
257
- * ```
222
+ * Returns:
223
+ * - If platform_key provided: Detailed platform metrics
224
+ * - If no platform_key: Cross-platform summary with pagination
225
+ * @returns LearnerAnalyticsResponse
226
+ * @throws ApiError
227
+ */
228
+ public static analyticsLearnersRetrieve({
229
+ dateFilter = 'today',
230
+ endDate,
231
+ granularity = 'hour',
232
+ limit = 20,
233
+ overtime = false,
234
+ page = 1,
235
+ platformKey,
236
+ startDate,
237
+ usergroupIds,
238
+ username,
239
+ }: {
240
+ /**
241
+ * * `today` - Today only
242
+ * * `7d` - Last 7 days
243
+ * * `30d` - Last 30 days
244
+ * * `90d` - Last 90 days
245
+ * * `all_time` - All time
246
+ * * `custom` - Custom date range
247
+ */
248
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
249
+ endDate?: string,
250
+ /**
251
+ * * `day` - day
252
+ * * `hour` - hour
253
+ * * `week` - week
254
+ * * `month` - month
255
+ */
256
+ granularity?: 'day' | 'hour' | 'week' | 'month',
257
+ /**
258
+ * Number of records per page (default: 20, max: 100)
259
+ */
260
+ limit?: number,
261
+ /**
262
+ * Include overtime metrics for the user in the platform (default: false)
263
+ */
264
+ overtime?: boolean,
265
+ /**
266
+ * Page number (default: 1)
267
+ */
268
+ page?: number,
269
+ /**
270
+ * Optional platform key - if provided, returns platform-specific detailed data
271
+ */
272
+ platformKey?: string,
273
+ startDate?: string,
274
+ /**
275
+ * Optional list of usergroup IDs to filter results
276
+ */
277
+ usergroupIds?: Array<number> | null,
278
+ /**
279
+ * Username of the learner to get analytics for. Defaults to self if not provided.
280
+ */
281
+ username?: string,
282
+ }): CancelablePromise<LearnerAnalyticsResponse> {
283
+ return __request(OpenAPI, {
284
+ method: 'GET',
285
+ url: '/api/analytics/learners/',
286
+ query: {
287
+ 'date_filter': dateFilter,
288
+ 'end_date': endDate,
289
+ 'granularity': granularity,
290
+ 'limit': limit,
291
+ 'overtime': overtime,
292
+ 'page': page,
293
+ 'platform_key': platformKey,
294
+ 'start_date': startDate,
295
+ 'usergroup_ids': usergroupIds,
296
+ 'username': username,
297
+ },
298
+ });
299
+ }
300
+ /**
258
301
  *
302
+ * Retrieve a paginated list of learners for a specific platform with their comprehensive
303
+ * metrics from the UserPlatformSummary materialized view. This endpoint is accessible only
304
+ * to platform administrators and supports search, sorting, and pagination.
259
305
  *
260
- * **Response Structure:**
261
- * ```json
262
- * {
263
- * "metric": "weekly_costs",
264
- * "value": 12.47,
265
- * "percentage_change": 8.5,
266
- * "overtime": [
267
- * {"date": "2025-01-06", "value": 2.89},
268
- * {"date": "2025-01-13", "value": 3.12}
269
- * ],
270
- * "period_info": {
271
- * "start_date": "2025-01-01",
272
- * "end_date": "2025-01-31",
273
- * "period_days": 31
274
- * },
275
- * "comparison_info": {
276
- * "previous_period_value": 11.50,
277
- * ...
278
- * }
279
- * }
280
- * ```
281
- * @returns BaseFinanceResponse Successful financial metrics response with period-based cost data
282
- * @throws ApiError
283
- */
284
- public static analyticsFinancialRetrieve({
285
- metric,
286
- comparisonDays,
287
- dateFilter = 'today',
288
- endDate,
289
- fillMethod = 'zero',
290
- granularity = 'day',
291
- llmModel,
292
- mentorUniqueId,
293
- platformKey,
294
- provider,
295
- showOvertime = true,
296
- startDate,
297
- usergroupIds,
298
- username,
299
- }: {
300
- /**
301
- * Type of financial metric to retrieve
302
- *
303
- * * `total_costs` - Total costs for selected timeframe
304
- * * `weekly_costs` - Costs for current/selected week
305
- * * `monthly_costs` - Costs for current/selected month
306
- */
307
- metric: 'total_costs' | 'weekly_costs' | 'monthly_costs',
308
- /**
309
- * Number of days for comparison period to calculate percentage change (e.g., 10 for 10-day comparison)
310
- */
311
- comparisonDays?: number,
312
- /**
313
- * * `today` - Today only
314
- * * `7d` - Last 7 days
315
- * * `30d` - Last 30 days
316
- * * `90d` - Last 90 days
317
- * * `all_time` - All time
318
- * * `custom` - Custom date range
319
- */
320
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
321
- endDate?: string,
322
- /**
323
- * Method for filling missing time periods in overtime data
324
- *
325
- * * `zero` - Fill missing periods with zero
326
- * * `previous` - Fill missing periods with previous value
327
- */
328
- fillMethod?: 'zero' | 'previous',
329
- /**
330
- * Time granularity for overtime series data
331
- *
332
- * * `day` - Daily data points
333
- * * `week` - Weekly data points
334
- * * `month` - Monthly data points
335
- */
336
- granularity?: 'day' | 'week' | 'month',
337
- /**
338
- * Filter by specific LLM model (e.g., gpt-4o, claude-3-5-sonnet)
339
- */
340
- llmModel?: string,
341
- mentorUniqueId?: string,
342
- platformKey?: string,
343
- /**
344
- * Filter by AI provider
345
- *
346
- * * `openai` - OpenAI
347
- * * `anthropic` - Anthropic
348
- * * `azure` - Azure
349
- * * `google` - Google
350
- * * `meta` - Meta
351
- * * `other` - Other
352
- */
353
- provider?: 'openai' | 'anthropic' | 'azure' | 'google' | 'meta' | 'other',
354
- /**
355
- * Whether to include overtime series data in response
356
- */
357
- showOvertime?: boolean,
358
- startDate?: string,
359
- /**
360
- * Optional list of usergroup IDs to filter results
361
- */
362
- usergroupIds?: Array<number> | null,
363
- /**
364
- * Filter by specific username - returns costs for this user only
365
- */
366
- username?: string,
367
- }): CancelablePromise<BaseFinanceResponse> {
368
- return __request(OpenAPI, {
369
- method: 'GET',
370
- url: '/api/analytics/financial/',
371
- query: {
372
- 'comparison_days': comparisonDays,
373
- 'date_filter': dateFilter,
374
- 'end_date': endDate,
375
- 'fill_method': fillMethod,
376
- 'granularity': granularity,
377
- 'llm_model': llmModel,
378
- 'mentor_unique_id': mentorUniqueId,
379
- 'metric': metric,
380
- 'platform_key': platformKey,
381
- 'provider': provider,
382
- 'show_overtime': showOvertime,
383
- 'start_date': startDate,
384
- 'usergroup_ids': usergroupIds,
385
- 'username': username,
386
- },
387
- errors: {
388
- 400: `Bad Request - Invalid query parameters`,
389
- 403: `Forbidden - Insufficient permissions`,
390
- 500: `Internal Server Error`,
391
- },
392
- });
393
- }
394
- /**
395
- * Financial Details Analytics API – paginated cost tables with flexible grouping.
396
- *
397
- * This endpoint returns tabular cost metrics aggregated by the dimension
398
- * specified via the `group_by` query parameter. One or more KPI columns
399
- * can be requested through the comma-separated `metrics` list while
400
- * typical filters (date range, provider, platform_key, user, etc.) narrow the
401
- * dataset. Results are paginated with `page` / `limit`.
402
- *
403
- * **Required query parameters**
404
- * - group_by – provider | llm_model | username | mentor | platform
405
- * - metrics – csv list of KPI names, e.g. total_cost, sessions
406
- *
407
- * **Shared optional filters**
408
- * - start_date, end_date – ISO yyyy-mm-dd (ignored when all_time=true)
409
- * - platform_key – tenant isolation
410
- * - mentor_unique_id – filter to one mentor
411
- * - username – filter to a learner
412
- * - provider / llm_model – filter to LLM provider / model
413
- * - all_time – true → lifetime totals
414
- * - page (default 1), limit (default 50)
415
- *
416
- * **Examples**
417
- * --------
418
- * 1. Cost by provider for the last week
419
- * ```
420
- * GET /api/v2/analytics/financial/details?
421
- * group_by=provider&
422
- * metrics=total_cost&
423
- * start_date=2025-01-01&
424
- * end_date=2025-01-07&
425
- * page=1&limit=10
426
- * ```
427
- *
428
- * 2. Lifetime cost per user with extra KPIs
429
- * ```
430
- * GET /api/v2/analytics/financial/details?
431
- * group_by=username&
432
- * metrics=total_cost,sessions&
433
- * all_time=true&page=1&limit=50
434
- * ```
435
- * 3. Cost by LLM model with tenant filter
436
- * ```
437
- * GET /api/v2/analytics/financial/details?
438
- * group_by=llm_model&
439
- * metrics=total_cost&
440
- * platform_key=web-app&
441
- * start_date=2025-01-01&end_date=2025-01-31
442
- * ```
443
- * Response structure
444
- * -------------------
445
- * ```
446
- * {
447
- * "page": 1,
448
- * "limit": 10,
449
- * "total_pages": 1,
450
- * "total_records": 3,
451
- * "rows": [
452
- * {"provider": "openai", "total_cost": "2.50000"},
453
- * {"provider": "anthropic", "total_cost": "1.00000"},
454
- * {"provider": "azure", "total_cost": "0.50000"}
455
- * ],
456
- * "metrics": [
457
- * {
458
- * "name": "total_cost",
459
- * "unit": "$",
460
- * "description": "Cost for this entity in period"
461
- * }
462
- * ],
463
- * "total_cost": "4.00000" // optional grand-total when available
464
- * }
465
- * ``
466
- * @returns FinanceDetailsResponse
467
- * @throws ApiError
468
- */
469
- public static analyticsFinancialDetailsRetrieve({
470
- groupBy,
471
- dateFilter = 'today',
472
- endDate,
473
- limit = 20,
474
- llmModel,
475
- mentorUniqueId,
476
- metrics = 'total_cost',
477
- page = 1,
478
- platformKey,
479
- provider,
480
- search,
481
- startDate,
482
- usergroupIds,
483
- username,
484
- }: {
485
- /**
486
- * Dimension to group by
487
- *
488
- * * `provider` - Group by provider
489
- * * `llm_model` - Group by LLM model
490
- * * `username` - Group by username
491
- * * `mentor` - Group by mentor
492
- * * `platform` - Group by platform
493
- * * `action` - Group by actions
494
- */
495
- groupBy: 'provider' | 'llm_model' | 'username' | 'mentor' | 'platform' | 'action',
496
- /**
497
- * * `today` - Today only
498
- * * `7d` - Last 7 days
499
- * * `30d` - Last 30 days
500
- * * `90d` - Last 90 days
501
- * * `all_time` - All time
502
- * * `custom` - Custom date range
503
- */
504
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
505
- endDate?: string,
506
- limit?: number,
507
- llmModel?: string,
508
- mentorUniqueId?: string,
509
- /**
510
- * Comma-separated list of metrics (e.g. total_cost,sessions, last_active)
511
- */
512
- metrics?: string,
513
- page?: number,
514
- platformKey?: string,
515
- provider?: string,
516
- search?: string,
517
- startDate?: string,
518
- /**
519
- * Optional list of usergroup IDs to filter results
520
- */
521
- usergroupIds?: Array<number> | null,
522
- username?: string,
523
- }): CancelablePromise<FinanceDetailsResponse> {
524
- return __request(OpenAPI, {
525
- method: 'GET',
526
- url: '/api/analytics/financial/details/',
527
- query: {
528
- 'date_filter': dateFilter,
529
- 'end_date': endDate,
530
- 'group_by': groupBy,
531
- 'limit': limit,
532
- 'llm_model': llmModel,
533
- 'mentor_unique_id': mentorUniqueId,
534
- 'metrics': metrics,
535
- 'page': page,
536
- 'platform_key': platformKey,
537
- 'provider': provider,
538
- 'search': search,
539
- 'start_date': startDate,
540
- 'usergroup_ids': usergroupIds,
541
- 'username': username,
542
- },
543
- errors: {
544
- 400: `Bad Request – invalid query params`,
545
- 500: `Internal Server Error`,
546
- },
547
- });
548
- }
549
- /**
550
- * Flexible Invoice Report API – Billing summary with username and platform filtering.
551
- *
552
- * This endpoint generates invoice reports with flexible filtering options:
553
- * - Platform admins can view their platform's data and filter by username within their platform
554
- * - Super admins can view any combination of username/platform or global summaries
555
- *
556
- * **Key Features:**
557
- * - Flexible filtering by username and/or platform_key
558
- * - Essential metrics: total cost, sessions, usage period
559
- * - Provider breakdown (OpenAI, Anthropic, etc.)
560
- * - Top mentors/actions by cost
561
- * - Clean, invoice-ready format
562
- *
563
- * **Query Parameters:**
564
- * - username: Filter by specific username (optional)
565
- * - platform_key: Filter by platform (optional, but required for platform admins)
566
- * - start_date, end_date: billing period (defaults to last 30 days)
567
- * - include_breakdown: show provider/mentor details (default: true)
568
- *
569
- * **Permission Logic:**
570
- * - Platform admins: Must include platform_key matching their permission scope
571
- * - Super admins: Can use any combination of filters or none (global summary)
572
- *
573
- * **Examples:**
574
- * ```
575
- * # Platform admin viewing their platform
576
- * GET /api/analytics/financial/invoice?platform_key=web-app
577
- *
578
- * # Platform admin viewing specific user in their platform
579
- * GET /api/analytics/financial/invoice?platform_key=web-app&username=john.doe
580
- *
581
- * # Super admin viewing specific user across all platforms
582
- * GET /api/analytics/financial/invoice?username=john.doe
583
- *
584
- * # Super admin viewing global summary
585
- * GET /api/analytics/financial/invoice
586
- * ```
587
- *
588
- * **Response Structure:**
589
- * ```json
590
- * {
591
- * "entity": {
592
- * "type": "user|platform|global",
593
- * "username": "john.doe",
594
- * "platform_key": "web-app",
595
- * "platform_name": "Web Application",
596
- * "display_name": "John Doe on Web Application"
597
- * },
598
- * "billing_period": {
599
- * "start_date": "2025-01-01",
600
- * "end_date": "2025-01-31",
601
- * "days": 31
602
- * },
603
- * "summary": {
604
- * "total_cost": 245.750,
605
- * "total_sessions": 1250,
606
- * "active_users": 85,
607
- * "cost_per_session": 0.196
608
- * },
609
- * "breakdown": {
610
- * "by_provider": [...],
611
- * "by_mentor": [...],
612
- * "by_action": [...]
613
- * }
614
- * }
615
- * ```
616
- * @returns InvoiceReportResponse
617
- * @throws ApiError
618
- */
619
- public static analyticsFinancialInvoiceRetrieve({
620
- endDate,
621
- includeBreakdown = true,
622
- platformKey,
623
- startDate,
624
- usergroupIds,
625
- username,
626
- }: {
627
- /**
628
- * End date for billing period (defaults to today)
629
- */
630
- endDate?: string,
631
- /**
632
- * Whether to include provider and mentor breakdown
633
- */
634
- includeBreakdown?: boolean,
635
- /**
636
- * Platform key to filter by (optional, required for platform admins)
637
- */
638
- platformKey?: string,
639
- /**
640
- * Start date for billing period (defaults to 30 days ago)
641
- */
642
- startDate?: string,
643
- /**
644
- * Optional list of usergroup IDs to filter results
645
- */
646
- usergroupIds?: Array<number> | null,
647
- /**
648
- * Username to generate invoice for (optional)
649
- */
650
- username?: string,
651
- }): CancelablePromise<InvoiceReportResponse> {
652
- return __request(OpenAPI, {
653
- method: 'GET',
654
- url: '/api/analytics/financial/invoice/',
655
- query: {
656
- 'end_date': endDate,
657
- 'include_breakdown': includeBreakdown,
658
- 'platform_key': platformKey,
659
- 'start_date': startDate,
660
- 'usergroup_ids': usergroupIds,
661
- 'username': username,
662
- },
663
- errors: {
664
- 400: `Bad Request – invalid parameters`,
665
- 403: `Forbidden – insufficient permissions`,
666
- 404: `No data found`,
667
- 500: `Internal Server Error`,
668
- },
669
- });
670
- }
671
- /**
672
- * Unified API endpoint for learner analytics.
673
- *
674
- * This endpoint provides either:
675
- * 1. Cross-platform summary (when only username is provided)
676
- * 2. Platform-specific detailed data (when username + platform_key are provided)
677
- *
678
- * Query params:
679
- * - username (required): Username of the learner
680
- * - platform_key (optional): Platform key for platform-specific data
681
- * - page (optional): Page number (default: 1)
682
- * - limit (optional): Records per page (default: 20, max: 100)
683
- *
684
- * Returns:
685
- * - If platform_key provided: Detailed platform metrics
686
- * - If no platform_key: Cross-platform summary with pagination
687
- * @returns LearnerAnalyticsResponse
688
- * @throws ApiError
689
- */
690
- public static analyticsLearnersRetrieve({
691
- dateFilter = 'today',
692
- endDate,
693
- granularity = 'hour',
694
- limit = 20,
695
- mentorUniqueId,
696
- overtime = false,
697
- page = 1,
698
- platformKey,
699
- startDate,
700
- usergroupIds,
701
- username,
702
- }: {
703
- /**
704
- * * `today` - Today only
705
- * * `7d` - Last 7 days
706
- * * `30d` - Last 30 days
707
- * * `90d` - Last 90 days
708
- * * `all_time` - All time
709
- * * `custom` - Custom date range
710
- */
711
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
712
- endDate?: string,
713
- /**
714
- * * `day` - day
715
- * * `hour` - hour
716
- * * `week` - week
717
- * * `month` - month
718
- */
719
- granularity?: 'day' | 'hour' | 'week' | 'month',
720
- /**
721
- * Number of records per page (default: 20, max: 100)
722
- */
723
- limit?: number,
724
- mentorUniqueId?: string,
725
- /**
726
- * Include overtime metrics for the user in the platform (default: false)
727
- */
728
- overtime?: boolean,
729
- /**
730
- * Page number (default: 1)
731
- */
732
- page?: number,
733
- /**
734
- * Optional platform key - if provided, returns platform-specific detailed data
735
- */
736
- platformKey?: string,
737
- startDate?: string,
738
- /**
739
- * Optional list of usergroup IDs to filter results
740
- */
741
- usergroupIds?: Array<number> | null,
742
- /**
743
- * Username of the learner to get analytics for. Defaults to self if not provided.
744
- */
745
- username?: string,
746
- }): CancelablePromise<LearnerAnalyticsResponse> {
747
- return __request(OpenAPI, {
748
- method: 'GET',
749
- url: '/api/analytics/learners/',
750
- query: {
751
- 'date_filter': dateFilter,
752
- 'end_date': endDate,
753
- 'granularity': granularity,
754
- 'limit': limit,
755
- 'mentor_unique_id': mentorUniqueId,
756
- 'overtime': overtime,
757
- 'page': page,
758
- 'platform_key': platformKey,
759
- 'start_date': startDate,
760
- 'usergroup_ids': usergroupIds,
761
- 'username': username,
762
- },
763
- });
764
- }
765
- /**
766
- *
767
- * Retrieve a paginated list of learners for a specific platform with their comprehensive
768
- * metrics from the UserPlatformSummary materialized view. This endpoint is accessible only
769
- * to platform administrators and supports search, sorting, and pagination.
770
- *
771
- * @returns LearnerListResponse Paginated list of learners with their metrics
772
- * @throws ApiError
773
- */
774
- public static analyticsLearnersListRetrieve({
775
- platformKey,
776
- dateFilter = 'today',
777
- endDate,
778
- granularity = 'hour',
779
- limit = 20,
780
- mentorUniqueId,
781
- page = 1,
782
- search,
783
- sortBy = 'last_activity',
784
- sortOrder = 'desc',
785
- startDate,
786
- usergroupIds,
787
- }: {
788
- /**
789
- * Platform key to filter learners by platform
790
- */
791
- platformKey: string,
792
- /**
793
- * * `today` - Today only
794
- * * `7d` - Last 7 days
795
- * * `30d` - Last 30 days
796
- * * `90d` - Last 90 days
797
- * * `all_time` - All time
798
- * * `custom` - Custom date range
799
- */
800
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
801
- endDate?: string,
802
- /**
803
- * * `day` - day
804
- * * `hour` - hour
805
- * * `week` - week
806
- * * `month` - month
807
- */
808
- granularity?: 'day' | 'hour' | 'week' | 'month',
809
- /**
810
- * Number of learners per page (default: 20, max: 100)
811
- */
812
- limit?: number,
813
- mentorUniqueId?: string,
814
- /**
815
- * Page number for pagination (default: 1)
816
- */
817
- page?: number,
818
- /**
819
- * Search term to filter learners by username, email, or name
820
- */
821
- search?: string,
822
- /**
823
- * Field to sort learners by (default: last_activity)
824
- *
825
- * * `username` - Username
826
- * * `name` - Name
827
- * * `last_activity` - Last Activity
828
- * * `total_points` - Total Points
829
- * * `total_time_spent_seconds` - Time Spent
830
- * * `total_enrollments` - Enrollments
831
- * * `total_skills_count` - Skills Count
832
- */
833
- sortBy?: 'username' | 'name' | 'last_activity' | 'total_points' | 'total_time_spent_seconds' | 'total_enrollments' | 'total_skills_count',
834
- /**
835
- * Sort order (default: desc)
836
- *
837
- * * `asc` - Ascending
838
- * * `desc` - Descending
839
- */
840
- sortOrder?: 'asc' | 'desc',
841
- startDate?: string,
842
- /**
843
- * Optional list of usergroup IDs to filter results
844
- */
845
- usergroupIds?: Array<number> | null,
846
- }): CancelablePromise<LearnerListResponse> {
847
- return __request(OpenAPI, {
848
- method: 'GET',
849
- url: '/api/analytics/learners/list/',
850
- query: {
851
- 'date_filter': dateFilter,
852
- 'end_date': endDate,
853
- 'granularity': granularity,
854
- 'limit': limit,
855
- 'mentor_unique_id': mentorUniqueId,
856
- 'page': page,
857
- 'platform_key': platformKey,
858
- 'search': search,
859
- 'sort_by': sortBy,
860
- 'sort_order': sortOrder,
861
- 'start_date': startDate,
862
- 'usergroup_ids': usergroupIds,
863
- },
864
- errors: {
865
- 400: `Bad Request - Invalid parameters supplied`,
866
- 403: `Forbidden - Platform admin access required`,
867
- 500: `Unexpected error`,
868
- },
869
- });
870
- }
871
- /**
872
- * Conversation list endpoint for analytics.
873
- *
874
- * Query params (all optional unless specified by permissions):
875
- * - platform_key: filter by platform
876
- * - mentor_unique_id: filter by mentor
877
- * - page: page number (default 1)
878
- * - limit: page size (default 20, max 100)
879
- * - search: search in user name and first user message
880
- * - min_messages, max_messages: message_count range
881
- * - sentiment: positive|negative|neutral
882
- * - topic: topic name contains
883
- * - start_date, end_date: date filter on conversation date
884
- *
885
- * Returns: summary totals, results list (paginated), and pagination metadata.
886
- * @returns ConversationListResponse
887
- * @throws ApiError
888
- */
889
- public static analyticsMessagesRetrieve({
890
- endDate,
891
- limit = 20,
892
- maxMessages,
893
- mentorUniqueId,
894
- minMessages,
895
- page = 1,
896
- platformKey,
897
- search,
898
- sentiment,
899
- startDate,
900
- topic,
901
- usergroupIds,
902
- }: {
903
- endDate?: string,
904
- limit?: number,
905
- maxMessages?: number,
906
- mentorUniqueId?: string,
907
- minMessages?: number,
908
- page?: number,
909
- platformKey?: string,
910
- search?: string,
911
- /**
912
- * * `positive` - positive
913
- * * `negative` - negative
914
- * * `neutral` - neutral
915
- */
916
- sentiment?: 'positive' | 'negative' | 'neutral',
917
- startDate?: string,
918
- topic?: string,
919
- /**
920
- * Optional list of usergroup IDs to filter results
921
- */
922
- usergroupIds?: Array<number> | null,
923
- }): CancelablePromise<ConversationListResponse> {
924
- return __request(OpenAPI, {
925
- method: 'GET',
926
- url: '/api/analytics/messages/',
927
- query: {
928
- 'end_date': endDate,
929
- 'limit': limit,
930
- 'max_messages': maxMessages,
931
- 'mentor_unique_id': mentorUniqueId,
932
- 'min_messages': minMessages,
933
- 'page': page,
934
- 'platform_key': platformKey,
935
- 'search': search,
936
- 'sentiment': sentiment,
937
- 'start_date': startDate,
938
- 'topic': topic,
939
- 'usergroup_ids': usergroupIds,
940
- },
941
- });
942
- }
943
- /**
944
- * Conversation detail endpoint for analytics.
945
- *
946
- * Query params:
947
- * - session_id (required): UUID of the session to fetch
948
- * - platform_key, mentor_unique_id (optional): further scope
949
- * - start_date, end_date (optional): date filter on message timestamps
950
- *
951
- * Returns: summary metadata from conversation_list MV, and a list of
952
- * human/ai message pairs in chronological order.
953
- * @returns ConversationDetailResponse
954
- * @throws ApiError
955
- */
956
- public static analyticsMessagesDetailsRetrieve({
957
- sessionId,
958
- endDate,
959
- mentorUniqueId,
960
- platformKey,
961
- startDate,
962
- usergroupIds,
963
- }: {
964
- sessionId: string,
965
- endDate?: string,
966
- mentorUniqueId?: string,
967
- platformKey?: string,
968
- startDate?: string,
969
- /**
970
- * Optional list of usergroup IDs to filter results
971
- */
972
- usergroupIds?: Array<number> | null,
973
- }): CancelablePromise<ConversationDetailResponse> {
974
- return __request(OpenAPI, {
975
- method: 'GET',
976
- url: '/api/analytics/messages/details/',
977
- query: {
978
- 'end_date': endDate,
979
- 'mentor_unique_id': mentorUniqueId,
980
- 'platform_key': platformKey,
981
- 'session_id': sessionId,
982
- 'start_date': startDate,
983
- 'usergroup_ids': usergroupIds,
984
- },
985
- });
986
- }
987
- /**
988
- * Ratings overtime endpoint.
989
- *
990
- * Query params:
991
- * - metric: only 'ratings' is supported (default)
992
- * - platform_key, mentor_unique_id: optional filters
993
- * - granularity: 'day' (default) or 'hour' (hour only for today)
994
- * - start_date, end_date: optional date range; defaults applied if not provided
995
- *
996
- * Returns: { metric: 'ratings', points: [{date, value}, ...] }
997
- * @returns RatingsOvertime
998
- * @throws ApiError
999
- */
1000
- public static analyticsRatingsRetrieve({
1001
- dateFilter = 'today',
1002
- endDate,
1003
- granularity = 'hour',
1004
- mentorUniqueId,
1005
- metric = 'ratings',
1006
- platformKey,
1007
- startDate,
1008
- usergroupIds,
1009
- }: {
1010
- /**
1011
- * * `today` - Today only
1012
- * * `7d` - Last 7 days
1013
- * * `30d` - Last 30 days
1014
- * * `90d` - Last 90 days
1015
- * * `all_time` - All time
1016
- * * `custom` - Custom date range
1017
- */
1018
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1019
- endDate?: string,
1020
- /**
1021
- * * `day` - day
1022
- * * `hour` - hour
1023
- * * `week` - week
1024
- * * `month` - month
1025
- */
1026
- granularity?: 'day' | 'hour' | 'week' | 'month',
1027
- mentorUniqueId?: string,
1028
- /**
1029
- * * `ratings` - Ratings over time
1030
- */
1031
- metric?: 'ratings',
1032
- platformKey?: string,
1033
- startDate?: string,
1034
- /**
1035
- * Optional list of usergroup IDs to filter results
1036
- */
1037
- usergroupIds?: Array<number> | null,
1038
- }): CancelablePromise<RatingsOvertime> {
1039
- return __request(OpenAPI, {
1040
- method: 'GET',
1041
- url: '/api/analytics/ratings/',
1042
- query: {
1043
- 'date_filter': dateFilter,
1044
- 'end_date': endDate,
1045
- 'granularity': granularity,
1046
- 'mentor_unique_id': mentorUniqueId,
1047
- 'metric': metric,
1048
- 'platform_key': platformKey,
1049
- 'start_date': startDate,
1050
- 'usergroup_ids': usergroupIds,
1051
- },
1052
- });
1053
- }
1054
- /**
1055
- * Mixin for RBAC validation for mentor analytics views.
1056
- *
1057
- * Mentor analytics endpoints enforce RBAC in two phases:
1058
- * 1. Endpoint authorization (_perform_mentor_analytics_validation):
1059
- * - Aggregate (no mentor_unique_id): requires
1060
- * "Ibl.Analytics/CanViewAnalytics/action" on /platforms/{pk}/ AND
1061
- * "Ibl.Analytics/Mentors/read" on /platforms/{pk}/mentors/.
1062
- * - Per-mentor (mentor_unique_id provided): requires
1063
- * "Ibl.Analytics/CanViewMentorAnalytics/action" on
1064
- * /platforms/{pk}/mentors/{mentor_id}/. The mentor-owner bypass
1065
- * (is_owner) applies via the MENTOR_OWNER well-known role.
1066
- * 2. Row-level filter (_get_accessible_user_ids_for_mentor_analytics):
1067
- * - Enumerates accessible users under
1068
- * /platforms/{pk}/mentors/{mentor_id}/users/ using
1069
- * "Ibl.Analytics/Mentors/read". Grants on the mentor resource itself
1070
- * cascade to its users (full mentor access). Usergroup authorization
1071
- * is resolved at platform-level (/platforms/{pk}/usergroups/) —
1072
- * mentor-level grants do NOT cascade to usergroup access.
1073
- *
1074
- * Special case - Mentor owner unfiltered access:
1075
- * If the requesting user owns the mentor AND no usergroup_ids are
1076
- * specified, returns None (no filtering) — the analytics query layer is
1077
- * already scoped to the mentor. With usergroup_ids provided, the owner
1078
- * falls through to normal RBAC filtering and still needs explicit access
1079
- * (ownership or grant) to the requested groups.
1080
- *
1081
- * Note: Mentor analytics APIs work with platform_key (from query params).
1082
- * @returns SessionsChart
1083
- * @throws ApiError
1084
- */
1085
- public static analyticsSessionsRetrieve({
1086
- dateFilter = 'today',
1087
- endDate,
1088
- granularity = 'hour',
1089
- mentorUniqueId,
1090
- metric = 'sessions',
1091
- platformKey,
1092
- startDate,
1093
- usergroupIds,
1094
- }: {
1095
- /**
1096
- * * `today` - Today only
1097
- * * `7d` - Last 7 days
1098
- * * `30d` - Last 30 days
1099
- * * `90d` - Last 90 days
1100
- * * `all_time` - All time
1101
- * * `custom` - Custom date range
1102
- */
1103
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1104
- endDate?: string,
1105
- /**
1106
- * * `day` - day
1107
- * * `hour` - hour
1108
- * * `week` - week
1109
- * * `month` - month
1110
- */
1111
- granularity?: 'day' | 'hour' | 'week' | 'month',
1112
- mentorUniqueId?: string,
1113
- /**
1114
- * * `sessions` - Sessions over time
1115
- * * `headline` - Headline metrics for sessions (avg messages per session, avg rating)
1116
- */
1117
- metric?: 'sessions' | 'headline',
1118
- platformKey?: string,
1119
- startDate?: string,
1120
- /**
1121
- * Optional list of usergroup IDs to filter results
1122
- */
1123
- usergroupIds?: Array<number> | null,
1124
- }): CancelablePromise<SessionsChart> {
1125
- return __request(OpenAPI, {
1126
- method: 'GET',
1127
- url: '/api/analytics/sessions/',
1128
- query: {
1129
- 'date_filter': dateFilter,
1130
- 'end_date': endDate,
1131
- 'granularity': granularity,
1132
- 'mentor_unique_id': mentorUniqueId,
1133
- 'metric': metric,
1134
- 'platform_key': platformKey,
1135
- 'start_date': startDate,
1136
- 'usergroup_ids': usergroupIds,
1137
- },
1138
- });
1139
- }
1140
- /**
1141
- *
1142
- * Time Analytics API - User activity patterns by time of day and day of week.
1143
- *
1144
- * Provides heatmap data showing when users are most active, useful for:
1145
- * - Understanding peak usage times
1146
- * - Capacity planning and resource allocation
1147
- * - User behavior analysis
1148
- * - Support scheduling optimization
1149
- *
1150
- * **Key Features:**
1151
- * - Day of week patterns (0=Sunday through 6=Saturday)
1152
- * - Hour of day activity levels (0-23)
1153
- * - Flexible date range filtering
1154
- * - Platform and mentor-specific filtering
1155
- * - Message count aggregation
1156
- *
1157
- * **Data Structure:**
1158
- * - `day_of_week`: 0-6 (Sunday-Saturday)
1159
- * - `hour`: 0-23 (24-hour format)
1160
- * - `value`: Message count for that time slot
1161
- *
1162
- * @returns AccessTimesHeatmap Access times heatmap data with day/hour patterns
1163
- * @throws ApiError
1164
- */
1165
- public static analyticsTimeRetrieve({
1166
- dateFilter = 'today',
1167
- endDate,
1168
- granularity = 'hour',
1169
- mentorUniqueId,
1170
- platformKey,
1171
- startDate,
1172
- usergroupIds,
1173
- }: {
1174
- /**
1175
- * * `today` - Today only
1176
- * * `7d` - Last 7 days
1177
- * * `30d` - Last 30 days
1178
- * * `90d` - Last 90 days
1179
- * * `all_time` - All time
1180
- * * `custom` - Custom date range
1181
- */
1182
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1183
- endDate?: string,
1184
- /**
1185
- * * `day` - day
1186
- * * `hour` - hour
1187
- * * `week` - week
1188
- * * `month` - month
1189
- */
1190
- granularity?: 'day' | 'hour' | 'week' | 'month',
1191
- mentorUniqueId?: string,
1192
- platformKey?: string,
1193
- startDate?: string,
1194
- /**
1195
- * Optional list of usergroup IDs to filter results
1196
- */
1197
- usergroupIds?: Array<number> | null,
1198
- }): CancelablePromise<AccessTimesHeatmap> {
1199
- return __request(OpenAPI, {
1200
- method: 'GET',
1201
- url: '/api/analytics/time/',
1202
- query: {
1203
- 'date_filter': dateFilter,
1204
- 'end_date': endDate,
1205
- 'granularity': granularity,
1206
- 'mentor_unique_id': mentorUniqueId,
1207
- 'platform_key': platformKey,
1208
- 'start_date': startDate,
1209
- 'usergroup_ids': usergroupIds,
1210
- },
1211
- errors: {
1212
- 400: `Bad Request - Invalid parameters`,
1213
- 403: `Forbidden - Insufficient permissions`,
1214
- 500: `Internal Server Error`,
1215
- },
1216
- });
1217
- }
1218
- /**
1219
- * Returns topics overview analytics for a given platform and mentor.
1220
- *
1221
- * Permission Required:
1222
- * - Platform Admin
1223
- * - Ibl.Analytics/Mentors/read
1224
- * @returns TopicsOverview
1225
- * @throws ApiError
1226
- */
1227
- public static analyticsTopicsRetrieve({
1228
- dateFilter = 'today',
1229
- endDate,
1230
- granularity = 'hour',
1231
- mentorUniqueId,
1232
- metric = 'overview',
1233
- platformKey,
1234
- startDate,
1235
- usergroupIds,
1236
- }: {
1237
- /**
1238
- * * `today` - Today only
1239
- * * `7d` - Last 7 days
1240
- * * `30d` - Last 30 days
1241
- * * `90d` - Last 90 days
1242
- * * `all_time` - All time
1243
- * * `custom` - Custom date range
1244
- */
1245
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1246
- endDate?: string,
1247
- /**
1248
- * * `day` - day
1249
- * * `hour` - hour
1250
- * * `week` - week
1251
- * * `month` - month
1252
- */
1253
- granularity?: 'day' | 'hour' | 'week' | 'month',
1254
- mentorUniqueId?: string,
1255
- /**
1256
- * * `overview` - Overall topic metrics
1257
- * * `sessions` - Sessions over time
1258
- * * `ratings` - Ratings over time
1259
- * * `highlighted` - Highlighted topics
1260
- */
1261
- metric?: 'overview' | 'sessions' | 'ratings' | 'highlighted',
1262
- platformKey?: string,
1263
- startDate?: string,
1264
- /**
1265
- * Optional list of usergroup IDs to filter results
1266
- */
1267
- usergroupIds?: Array<number> | null,
1268
- }): CancelablePromise<TopicsOverview> {
1269
- return __request(OpenAPI, {
1270
- method: 'GET',
1271
- url: '/api/analytics/topics/',
1272
- query: {
1273
- 'date_filter': dateFilter,
1274
- 'end_date': endDate,
1275
- 'granularity': granularity,
1276
- 'mentor_unique_id': mentorUniqueId,
1277
- 'metric': metric,
1278
- 'platform_key': platformKey,
1279
- 'start_date': startDate,
1280
- 'usergroup_ids': usergroupIds,
1281
- },
1282
- });
1283
- }
1284
- /**
1285
- * Returns topic details Analytics for a given platform and mentor.
1286
- *
1287
- * Permission Required:
1288
- * - Platform Admin
1289
- * - Ibl.Analytics/Mentors/read
1290
- * @returns TopicDetails
1291
- * @throws ApiError
1292
- */
1293
- public static analyticsTopicsDetailsRetrieve({
1294
- dateFilter = 'today',
1295
- endDate,
1296
- limit = 20,
1297
- mentorUniqueId,
1298
- page = 1,
1299
- platformKey,
1300
- search,
1301
- startDate,
1302
- usergroupIds,
1303
- }: {
1304
- /**
1305
- * * `today` - Today only
1306
- * * `7d` - Last 7 days
1307
- * * `30d` - Last 30 days
1308
- * * `90d` - Last 90 days
1309
- * * `all_time` - All time
1310
- * * `custom` - Custom date range
1311
- */
1312
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1313
- endDate?: string,
1314
- limit?: number,
1315
- mentorUniqueId?: string,
1316
- page?: number,
1317
- platformKey?: string,
1318
- /**
1319
- * Search by topic name
1320
- */
1321
- search?: string,
1322
- startDate?: string,
1323
- /**
1324
- * Optional list of usergroup IDs to filter results
1325
- */
1326
- usergroupIds?: Array<number> | null,
1327
- }): CancelablePromise<TopicDetails> {
1328
- return __request(OpenAPI, {
1329
- method: 'GET',
1330
- url: '/api/analytics/topics/details/',
1331
- query: {
1332
- 'date_filter': dateFilter,
1333
- 'end_date': endDate,
1334
- 'limit': limit,
1335
- 'mentor_unique_id': mentorUniqueId,
1336
- 'page': page,
1337
- 'platform_key': platformKey,
1338
- 'search': search,
1339
- 'start_date': startDate,
1340
- 'usergroup_ids': usergroupIds,
1341
- },
1342
- });
1343
- }
1344
- /**
1345
- *
1346
- * User Analytics API - Comprehensive user activity metrics and trends.
1347
- *
1348
- * Provides real-time and historical user analytics including:
1349
- * - Currently active users (last hour)
1350
- * - Active users over time periods (7d, 30d, 90d)
1351
- * - Registered user counts and growth
1352
- * - Time series charts with customizable granularity
1353
- *
1354
- * **Key Features:**
1355
- * - Real-time active user counting
1356
- * - Percentage change calculations vs previous periods
1357
- * - Flexible date filtering and granularity
1358
- * - Platform and mentor-specific filtering
1359
- * - Forward-filled time series data
1360
- *
1361
- * **Supported Metrics:**
1362
- * - `currently_active`: Users active in last hour
1363
- * - `active_users`: Unique users in specified period
1364
- * - `registered_users`: Total and new user counts
1365
- *
1366
- * @returns CurrentUsersResponse User analytics metrics with comparison data
1367
- * @throws ApiError
1368
- */
1369
- public static analyticsUsersRetrieve({
1370
- metric,
1371
- dateFilter = 'today',
1372
- endDate,
1373
- granularity = 'hour',
1374
- mentorUniqueId,
1375
- platformKey,
1376
- startDate,
1377
- usergroupIds,
1378
- }: {
1379
- /**
1380
- * * `currently_active` - Users logged in right now
1381
- * * `active_users` - Active users in a period
1382
- * * `registered_users` - Registered users
1383
- * * `active_users_last_30d` - Active users in the last 30 days
1384
- */
1385
- metric: 'currently_active' | 'active_users' | 'registered_users' | 'active_users_last_30d',
1386
- /**
1387
- * * `today` - Today only
1388
- * * `7d` - Last 7 days
1389
- * * `30d` - Last 30 days
1390
- * * `90d` - Last 90 days
1391
- * * `all_time` - All time
1392
- * * `custom` - Custom date range
1393
- */
1394
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1395
- endDate?: string,
1396
- /**
1397
- * * `day` - day
1398
- * * `hour` - hour
1399
- * * `week` - week
1400
- * * `month` - month
1401
- */
1402
- granularity?: 'day' | 'hour' | 'week' | 'month',
1403
- mentorUniqueId?: string,
1404
- platformKey?: string,
1405
- startDate?: string,
1406
- /**
1407
- * Optional list of usergroup IDs to filter results
1408
- */
1409
- usergroupIds?: Array<number> | null,
1410
- }): CancelablePromise<CurrentUsersResponse> {
1411
- return __request(OpenAPI, {
1412
- method: 'GET',
1413
- url: '/api/analytics/users/',
1414
- query: {
1415
- 'date_filter': dateFilter,
1416
- 'end_date': endDate,
1417
- 'granularity': granularity,
1418
- 'mentor_unique_id': mentorUniqueId,
1419
- 'metric': metric,
1420
- 'platform_key': platformKey,
1421
- 'start_date': startDate,
1422
- 'usergroup_ids': usergroupIds,
1423
- },
1424
- errors: {
1425
- 400: `Bad Request - Invalid parameters`,
1426
- 403: `Forbidden - Insufficient permissions`,
1427
- 500: `Internal Server Error`,
1428
- },
1429
- });
1430
- }
1431
- /**
1432
- *
1433
- * User Details API - Comprehensive user activity details with search and filtering.
1434
- *
1435
- * Provides detailed user information including:
1436
- * - User contact information (email, full name)
1437
- * - Activity metrics (message count, last activity)
1438
- * - Search functionality across multiple fields
1439
- * - Flexible date range filtering
1440
- * - CSV export capability
1441
- *
1442
- * **Key Features:**
1443
- * - Full-text search across email, name, and user ID
1444
- * - Date range filtering for activity periods
1445
- * - Platform and mentor-specific filtering
1446
- * - Comprehensive pagination with metadata
1447
- * - CSV export for data analysis
1448
- * - User aggregation across platforms/mentors
1449
- *
1450
- * **Search Capabilities:**
1451
- * - Email address matching
1452
- * - Full name search
1453
- * - User ID lookup
1454
- * - Partial string matching (case-insensitive)
1455
- *
1456
- * **Export Options:**
1457
- * - JSON response (default)
1458
- * - CSV export (?export=csv)
1459
- * - Includes all user fields in export
1460
- *
1461
- * @returns UserDetail Paginated user details with activity metrics
1462
- * @throws ApiError
1463
- */
1464
- public static analyticsUsersDetailsRetrieve({
1465
- dateFilter = 'today',
1466
- endDate,
1467
- limit = 20,
1468
- mentorUniqueId,
1469
- page = 1,
1470
- platformKey,
1471
- search,
1472
- startDate,
1473
- usergroupIds,
1474
- }: {
1475
- /**
1476
- * * `today` - Today only
1477
- * * `7d` - Last 7 days
1478
- * * `30d` - Last 30 days
1479
- * * `90d` - Last 90 days
1480
- * * `all_time` - All time
1481
- * * `custom` - Custom date range
1482
- */
1483
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1484
- endDate?: string,
1485
- limit?: number,
1486
- mentorUniqueId?: string,
1487
- page?: number,
1488
- platformKey?: string,
1489
- /**
1490
- * Search by email, full name, or user ID
1491
- */
1492
- search?: string,
1493
- startDate?: string,
1494
- /**
1495
- * Optional list of usergroup IDs to filter results
1496
- */
1497
- usergroupIds?: Array<number> | null,
1498
- }): CancelablePromise<UserDetail> {
1499
- return __request(OpenAPI, {
1500
- method: 'GET',
1501
- url: '/api/analytics/users/details/',
1502
- query: {
1503
- 'date_filter': dateFilter,
1504
- 'end_date': endDate,
1505
- 'limit': limit,
1506
- 'mentor_unique_id': mentorUniqueId,
1507
- 'page': page,
1508
- 'platform_key': platformKey,
1509
- 'search': search,
1510
- 'start_date': startDate,
1511
- 'usergroup_ids': usergroupIds,
1512
- },
1513
- errors: {
1514
- 400: `Bad Request - Invalid parameters`,
1515
- 403: `Forbidden - Insufficient permissions`,
1516
- 500: `Internal Server Error`,
1517
- },
1518
- });
1519
- }
1520
- }
306
+ * @returns LearnerListResponse Paginated list of learners with their metrics
307
+ * @throws ApiError
308
+ */
309
+ public static analyticsLearnersListRetrieve({
310
+ platformKey,
311
+ dateFilter = 'today',
312
+ endDate,
313
+ granularity = 'hour',
314
+ limit = 20,
315
+ page = 1,
316
+ search,
317
+ sortBy = 'last_activity',
318
+ sortOrder = 'desc',
319
+ startDate,
320
+ usergroupIds,
321
+ }: {
322
+ /**
323
+ * Platform key to filter learners by platform
324
+ */
325
+ platformKey: string,
326
+ /**
327
+ * * `today` - Today only
328
+ * * `7d` - Last 7 days
329
+ * * `30d` - Last 30 days
330
+ * * `90d` - Last 90 days
331
+ * * `all_time` - All time
332
+ * * `custom` - Custom date range
333
+ */
334
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
335
+ endDate?: string,
336
+ /**
337
+ * * `day` - day
338
+ * * `hour` - hour
339
+ * * `week` - week
340
+ * * `month` - month
341
+ */
342
+ granularity?: 'day' | 'hour' | 'week' | 'month',
343
+ /**
344
+ * Number of learners per page (default: 20, max: 100)
345
+ */
346
+ limit?: number,
347
+ /**
348
+ * Page number for pagination (default: 1)
349
+ */
350
+ page?: number,
351
+ /**
352
+ * Search term to filter learners by username, email, or name
353
+ */
354
+ search?: string,
355
+ /**
356
+ * Field to sort learners by (default: last_activity)
357
+ *
358
+ * * `username` - Username
359
+ * * `name` - Name
360
+ * * `last_activity` - Last Activity
361
+ * * `total_points` - Total Points
362
+ * * `total_time_spent_seconds` - Time Spent
363
+ * * `total_enrollments` - Enrollments
364
+ * * `total_skills_count` - Skills Count
365
+ */
366
+ sortBy?: 'username' | 'name' | 'last_activity' | 'total_points' | 'total_time_spent_seconds' | 'total_enrollments' | 'total_skills_count',
367
+ /**
368
+ * Sort order (default: desc)
369
+ *
370
+ * * `asc` - Ascending
371
+ * * `desc` - Descending
372
+ */
373
+ sortOrder?: 'asc' | 'desc',
374
+ startDate?: string,
375
+ /**
376
+ * Optional list of usergroup IDs to filter results
377
+ */
378
+ usergroupIds?: Array<number> | null,
379
+ }): CancelablePromise<LearnerListResponse> {
380
+ return __request(OpenAPI, {
381
+ method: 'GET',
382
+ url: '/api/analytics/learners/list/',
383
+ query: {
384
+ 'date_filter': dateFilter,
385
+ 'end_date': endDate,
386
+ 'granularity': granularity,
387
+ 'limit': limit,
388
+ 'page': page,
389
+ 'platform_key': platformKey,
390
+ 'search': search,
391
+ 'sort_by': sortBy,
392
+ 'sort_order': sortOrder,
393
+ 'start_date': startDate,
394
+ 'usergroup_ids': usergroupIds,
395
+ },
396
+ errors: {
397
+ 400: `Bad Request - Invalid parameters supplied`,
398
+ 403: `Forbidden - Platform admin access required`,
399
+ 500: `Unexpected error`,
400
+ },
401
+ });
402
+ }
403
+ }