@iblai/iblai-api 4.231.0-core → 4.232.0-ai

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