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