@iblai/iblai-api 4.47.1-langflow2-core → 4.47.1-langflow2-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 (825) hide show
  1. package/dist/index.cjs.js +22719 -1847
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +22711 -1848
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +22719 -1847
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +401 -2
  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/ActionBreakdown.d.ts +10 -0
  14. package/dist/types/models/AddMentorToDisclaimer.d.ts +12 -0
  15. package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
  16. package/dist/types/models/AnalyticsOverview.d.ts +7 -0
  17. package/dist/types/models/Answer.d.ts +11 -0
  18. package/dist/types/models/AssumedKnowledge.d.ts +4 -0
  19. package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
  20. package/dist/types/models/AudioToTextRequest.d.ts +3 -0
  21. package/dist/types/models/AudioToTextResponse.d.ts +3 -0
  22. package/dist/types/models/AutoMemoryPrompt.d.ts +4 -0
  23. package/dist/types/models/BaseFinanceResponse.d.ts +37 -0
  24. package/dist/types/models/BillingPeriod.d.ts +8 -0
  25. package/dist/types/models/Bot.d.ts +15 -0
  26. package/dist/types/models/BotCommand.d.ts +6 -0
  27. package/dist/types/models/BotCreate.d.ts +12 -0
  28. package/dist/types/models/Breakdown.d.ts +11 -0
  29. package/dist/types/models/CallAuthenticationRequest.d.ts +17 -0
  30. package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
  31. package/dist/types/models/CallConfiguration.d.ts +26 -0
  32. package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
  33. package/dist/types/models/ChatHistory.d.ts +8 -0
  34. package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
  35. package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
  36. package/dist/types/models/ChatHistoryItem.d.ts +5 -0
  37. package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
  38. package/dist/types/models/ChatSessionRequest.d.ts +14 -0
  39. package/dist/types/models/ChatSessionResponse.d.ts +5 -0
  40. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
  41. package/dist/types/models/ComparisonInfo.d.ts +29 -0
  42. package/dist/types/models/ComponentBlock.d.ts +9 -0
  43. package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
  44. package/dist/types/models/ConnectedService.d.ts +11 -0
  45. package/dist/types/models/ConnectedServiceProviderEnum.d.ts +6 -0
  46. package/dist/types/models/ConversationChartPoint.d.ts +4 -0
  47. package/dist/types/models/ConversationDetailResponse.d.ts +4 -0
  48. package/dist/types/models/ConversationListItem.d.ts +24 -0
  49. package/dist/types/models/ConversationListResponse.d.ts +6 -0
  50. package/dist/types/models/ConversationMessage.d.ts +11 -0
  51. package/dist/types/models/ConversationRating.d.ts +6 -0
  52. package/dist/types/models/ConversationSummary.d.ts +5 -0
  53. package/dist/types/models/ConversationVolume.d.ts +4 -0
  54. package/dist/types/models/Conversations.d.ts +32 -0
  55. package/dist/types/models/ConversationsChart.d.ts +5 -0
  56. package/dist/types/models/Cost.d.ts +3 -0
  57. package/dist/types/models/CostPerTenant.d.ts +6 -0
  58. package/dist/types/models/CourseCreationTask.d.ts +31 -0
  59. package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
  60. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
  61. package/dist/types/models/CrawlerPatternTypeEnum.d.ts +8 -0
  62. package/dist/types/models/CredentialRequest.d.ts +14 -0
  63. package/dist/types/models/CrontabSchedule.d.ts +22 -0
  64. package/dist/types/models/CurrentUsersResponse.d.ts +8 -0
  65. package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
  66. package/dist/types/models/DataSet.d.ts +21 -0
  67. package/dist/types/models/DataSetCreate.d.ts +12 -0
  68. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  69. package/dist/types/models/DateRange.d.ts +4 -0
  70. package/dist/types/models/Disclaimer.d.ts +17 -0
  71. package/dist/types/models/DisclaimerAgreement.d.ts +11 -0
  72. package/dist/types/models/DiscordConfig.d.ts +7 -0
  73. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  74. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  75. package/dist/types/models/Document.d.ts +41 -0
  76. package/dist/types/models/DocumentFacet.d.ts +17 -0
  77. package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
  78. package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
  79. package/dist/types/models/EdxCourse.d.ts +11 -0
  80. package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
  81. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
  82. package/dist/types/models/EmailPromptDetail.d.ts +13 -0
  83. package/dist/types/models/EmailPromptList.d.ts +11 -0
  84. package/dist/types/models/EmailPromptSummary.d.ts +5 -0
  85. package/dist/types/models/Entity.d.ts +11 -0
  86. package/dist/types/models/EntityTypeEnum.d.ts +10 -0
  87. package/dist/types/models/ExternalServiceInfo.d.ts +6 -0
  88. package/dist/types/models/FinanceDetailsResponse.d.ts +13 -0
  89. package/dist/types/models/FinanceFilters.d.ts +15 -0
  90. package/dist/types/models/FreeUsageCount.d.ts +3 -0
  91. package/dist/types/models/FullCourse.d.ts +13 -0
  92. package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
  93. package/dist/types/models/GuidedPrompt.d.ts +4 -0
  94. package/dist/types/models/GuidedPromptsResponse.d.ts +5 -0
  95. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
  96. package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
  97. package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
  98. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
  99. package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
  100. package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
  101. package/dist/types/models/HumanSupportTicket.d.ts +21 -0
  102. package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +10 -0
  103. package/dist/types/models/InputQuestion.d.ts +6 -0
  104. package/dist/types/models/IntegrationCredential.d.ts +10 -0
  105. package/dist/types/models/IntegrationCredentialSchema.d.ts +6 -0
  106. package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
  107. package/dist/types/models/InvoiceReportResponse.d.ts +13 -0
  108. package/dist/types/models/JobRun.d.ts +11 -0
  109. package/dist/types/models/KindEnum.d.ts +10 -0
  110. package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
  111. package/dist/types/models/LLMCredentialResponse.d.ts +10 -0
  112. package/dist/types/models/LLMCredentialSchema.d.ts +6 -0
  113. package/dist/types/models/LLMModelForTenant.d.ts +6 -0
  114. package/dist/types/models/LLMQuestion.d.ts +15 -0
  115. package/dist/types/models/LLMResponse.d.ts +18 -0
  116. package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
  117. package/dist/types/models/LanguagesView.d.ts +5 -0
  118. package/dist/types/models/LinkCourseRequest.d.ts +3 -0
  119. package/dist/types/models/LinkCourseResponse.d.ts +5 -0
  120. package/dist/types/models/LlmProviderEnum.d.ts +8 -0
  121. package/dist/types/models/MCPServer.d.ts +21 -0
  122. package/dist/types/models/MaskedIntegrationCredential.d.ts +10 -0
  123. package/dist/types/models/MaskedLLMCredential.d.ts +10 -0
  124. package/dist/types/models/MemoryComponentData.d.ts +5 -0
  125. package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
  126. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
  127. package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
  128. package/dist/types/models/MemoryProgress.d.ts +8 -0
  129. package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
  130. package/dist/types/models/MemoryStatusView.d.ts +6 -0
  131. package/dist/types/models/Mentor.d.ts +100 -0
  132. package/dist/types/models/MentorAudience.d.ts +5 -0
  133. package/dist/types/models/MentorBreakdown.d.ts +9 -0
  134. package/dist/types/models/MentorCategory.d.ts +9 -0
  135. package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
  136. package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
  137. package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
  138. package/dist/types/models/MentorCreate.d.ts +95 -0
  139. package/dist/types/models/MentorCustomVoice.d.ts +4 -0
  140. package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
  141. package/dist/types/models/MentorData.d.ts +7 -0
  142. package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
  143. package/dist/types/models/MentorEval.d.ts +11 -0
  144. package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
  145. package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
  146. package/dist/types/models/MentorEvalReport.d.ts +10 -0
  147. package/dist/types/models/MentorEvalRequest.d.ts +8 -0
  148. package/dist/types/models/MentorFacet.d.ts +17 -0
  149. package/dist/types/models/MentorFork.d.ts +5 -0
  150. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +52 -0
  151. package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
  152. package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
  153. package/dist/types/models/MentorMetadata.d.ts +5 -0
  154. package/dist/types/models/MentorScenario.d.ts +6 -0
  155. package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
  156. package/dist/types/models/MentorSearchResponse.d.ts +35 -0
  157. package/dist/types/models/MentorSession.d.ts +4 -0
  158. package/dist/types/models/MentorSettings.d.ts +84 -0
  159. package/dist/types/models/MentorSettingsPublic.d.ts +60 -0
  160. package/dist/types/models/MentorSettingsRequest.d.ts +66 -0
  161. package/dist/types/models/MentorSummary.d.ts +5 -0
  162. package/dist/types/models/MentorType.d.ts +5 -0
  163. package/dist/types/models/MentorUserSetting.d.ts +3 -0
  164. package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
  165. package/dist/types/models/MentorWizard.d.ts +4 -0
  166. package/dist/types/models/MessageStatistics.d.ts +5 -0
  167. package/dist/types/models/MessageView.d.ts +10 -0
  168. package/dist/types/models/MessageViewRequest.d.ts +7 -0
  169. package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
  170. package/dist/types/models/Metadata.d.ts +5 -0
  171. package/dist/types/models/MetricChange.d.ts +4 -0
  172. package/dist/types/models/MetricInfo.d.ts +5 -0
  173. package/dist/types/models/ModelCost.d.ts +4 -0
  174. package/dist/types/models/ModerationLog.d.ts +11 -0
  175. package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
  176. package/dist/types/models/NotificationSource.d.ts +2 -2
  177. package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
  178. package/dist/types/models/NullEnum.d.ts +1 -0
  179. package/dist/types/models/OAuthStartResponse.d.ts +3 -0
  180. package/dist/types/models/Observation.d.ts +31 -0
  181. package/dist/types/models/OvertimeData.d.ts +13 -0
  182. package/dist/types/models/PageContent.d.ts +6 -0
  183. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
  184. package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
  185. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
  186. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
  187. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  188. package/dist/types/models/PaginatedDisclaimerAgreementList.d.ts +7 -0
  189. package/dist/types/models/PaginatedDisclaimerList.d.ts +7 -0
  190. package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
  191. package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
  192. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
  193. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
  194. package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +7 -0
  195. package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
  196. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  197. package/dist/types/models/PaginatedMentorList.d.ts +7 -0
  198. package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
  199. package/dist/types/models/PaginatedObservationList.d.ts +7 -0
  200. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
  201. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
  202. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
  203. package/dist/types/models/PaginatedProjectList.d.ts +7 -0
  204. package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
  205. package/dist/types/models/PaginatedSectionList.d.ts +7 -0
  206. package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
  207. package/dist/types/models/PaginatedTicketMessageList.d.ts +7 -0
  208. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
  209. package/dist/types/models/PaginatedTraceList.d.ts +7 -0
  210. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  211. package/dist/types/models/PaginatedUnitList.d.ts +7 -0
  212. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
  213. package/dist/types/models/PaginatedUserMemoryList.d.ts +7 -0
  214. package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
  215. package/dist/types/models/Pagination.d.ts +16 -11
  216. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  217. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  218. package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
  219. package/dist/types/models/PatchedConversations.d.ts +32 -0
  220. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
  221. package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
  222. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  223. package/dist/types/models/PatchedDisclaimer.d.ts +17 -0
  224. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  225. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  226. package/dist/types/models/PatchedHumanSupportTicket.d.ts +21 -0
  227. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
  228. package/dist/types/models/PatchedMCPServer.d.ts +21 -0
  229. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
  230. package/dist/types/models/PatchedMentorCreate.d.ts +95 -0
  231. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
  232. package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
  233. package/dist/types/models/PatchedProject.d.ts +51 -0
  234. package/dist/types/models/PatchedPrompt.d.ts +22 -0
  235. package/dist/types/models/PatchedSection.d.ts +9 -0
  236. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  237. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  238. package/dist/types/models/PatchedSubSection.d.ts +9 -0
  239. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  240. package/dist/types/models/PatchedTicketMessage.d.ts +10 -0
  241. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  242. package/dist/types/models/PatchedUnit.d.ts +11 -0
  243. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  244. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  245. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  246. package/dist/types/models/PeriodInfo.d.ts +21 -0
  247. package/dist/types/models/PeriodicAgent.d.ts +42 -0
  248. package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
  249. package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
  250. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
  251. package/dist/types/models/PeriodicTask.d.ts +21 -0
  252. package/dist/types/models/PieChartData.d.ts +5 -0
  253. package/dist/types/models/PieChartSegment.d.ts +4 -0
  254. package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
  255. package/dist/types/models/PinnedMessageGet.d.ts +7 -0
  256. package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
  257. package/dist/types/models/PlayWrightScript.d.ts +12 -0
  258. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
  259. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
  260. package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
  261. package/dist/types/models/Project.d.ts +51 -0
  262. package/dist/types/models/ProjectMentor.d.ts +11 -0
  263. package/dist/types/models/Prompt.d.ts +22 -0
  264. package/dist/types/models/PromptCategory.d.ts +7 -0
  265. package/dist/types/models/PromptFacet.d.ts +17 -0
  266. package/dist/types/models/PromptSearchResponse.d.ts +35 -0
  267. package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
  268. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  269. package/dist/types/models/Provider637Enum.d.ts +10 -0
  270. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  271. package/dist/types/models/ProviderBreakdown.d.ts +8 -0
  272. package/dist/types/models/QuestionCardTag.d.ts +8 -0
  273. package/dist/types/models/QuestionRequest.d.ts +15 -0
  274. package/dist/types/models/QuestionResponse.d.ts +10 -0
  275. package/dist/types/models/RatingAverageRecord.d.ts +10 -0
  276. package/dist/types/models/RatingEnum.d.ts +8 -0
  277. package/dist/types/models/RatingRecord.d.ts +4 -0
  278. package/dist/types/models/RatingsOvertime.d.ts +5 -0
  279. package/dist/types/models/RecentlyAccessedMentor.d.ts +8 -0
  280. package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
  281. package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
  282. package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
  283. package/dist/types/models/RelatedText.d.ts +3 -0
  284. package/dist/types/models/RemoveMentorFromDisclaimer.d.ts +12 -0
  285. package/dist/types/models/RequestDataVariable.d.ts +14 -0
  286. package/dist/types/models/ResourceScrappedData.d.ts +13 -0
  287. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
  288. package/dist/types/models/ResponseDataVariable.d.ts +14 -0
  289. package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
  290. package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
  291. package/dist/types/models/RetrieveTask.d.ts +3 -0
  292. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +29 -0
  293. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +66 -0
  294. package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
  295. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
  296. package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
  297. package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
  298. package/dist/types/models/RunMentorEval.d.ts +3 -0
  299. package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
  300. package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
  301. package/dist/types/models/ScopeEnum.d.ts +8 -0
  302. package/dist/types/models/Section.d.ts +9 -0
  303. package/dist/types/models/SectionWithChildren.d.ts +11 -0
  304. package/dist/types/models/SeedMentorsView.d.ts +3 -0
  305. package/dist/types/models/SentimentSummary.d.ts +4 -0
  306. package/dist/types/models/ServiceEnum.d.ts +10 -0
  307. package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
  308. package/dist/types/models/SessionChartPoint.d.ts +4 -0
  309. package/dist/types/models/SessionDetail.d.ts +6 -0
  310. package/dist/types/models/SessionMemoryAttachment.d.ts +3 -0
  311. package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
  312. package/dist/types/models/SessionsChart.d.ts +5 -0
  313. package/dist/types/models/ShareableMentorLink.d.ts +8 -0
  314. package/dist/types/models/ShellLogs.d.ts +3 -0
  315. package/dist/types/models/SlackConfig.d.ts +8 -0
  316. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  317. package/dist/types/models/SlackWebhook.d.ts +6 -0
  318. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
  319. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
  320. package/dist/types/models/StarMentor.d.ts +7 -0
  321. package/dist/types/models/Status6eeEnum.d.ts +12 -0
  322. package/dist/types/models/Step.d.ts +9 -0
  323. package/dist/types/models/StepStatusEnum.d.ts +10 -0
  324. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
  325. package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
  326. package/dist/types/models/SttProviderEnum.d.ts +12 -0
  327. package/dist/types/models/StudentChatMessage.d.ts +4 -0
  328. package/dist/types/models/StylesView.d.ts +4 -0
  329. package/dist/types/models/SubSection.d.ts +9 -0
  330. package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
  331. package/dist/types/models/Subject.d.ts +5 -0
  332. package/dist/types/models/Summary.d.ts +9 -0
  333. package/dist/types/models/TagsView.d.ts +5 -0
  334. package/dist/types/models/TargetSystemEnum.d.ts +8 -0
  335. package/dist/types/models/TaskView.d.ts +3 -0
  336. package/dist/types/models/TeamsConfig.d.ts +7 -0
  337. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  338. package/dist/types/models/TemplateMentor.d.ts +9 -0
  339. package/dist/types/models/TenantMentorTraces.d.ts +6 -0
  340. package/dist/types/models/ThemeEnum.d.ts +8 -0
  341. package/dist/types/models/TicketMessage.d.ts +10 -0
  342. package/dist/types/models/TonesView.d.ts +4 -0
  343. package/dist/types/models/ToolCategory.d.ts +5 -0
  344. package/dist/types/models/ToolResponse.d.ts +15 -0
  345. package/dist/types/models/TopicDetail.d.ts +8 -0
  346. package/dist/types/models/TopicDetails.d.ts +5 -0
  347. package/dist/types/models/TopicModel.d.ts +3 -0
  348. package/dist/types/models/TopicRecord.d.ts +4 -0
  349. package/dist/types/models/TopicStatistics.d.ts +7 -0
  350. package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
  351. package/dist/types/models/TopicSummaryView.d.ts +4 -0
  352. package/dist/types/models/TopicsOverview.d.ts +22 -0
  353. package/dist/types/models/TopicsOverviewMetric.d.ts +21 -0
  354. package/dist/types/models/Trace.d.ts +17 -0
  355. package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
  356. package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
  357. package/dist/types/models/TrainDocumentViewRequest.d.ts +74 -0
  358. package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
  359. package/dist/types/models/Training.d.ts +41 -0
  360. package/dist/types/models/TrainingCreate.d.ts +31 -0
  361. package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
  362. package/dist/types/models/TransportEnum.d.ts +8 -0
  363. package/dist/types/models/TrendEntry.d.ts +4 -0
  364. package/dist/types/models/TriggerRequest.d.ts +5 -0
  365. package/dist/types/models/TriggerResponse.d.ts +6 -0
  366. package/dist/types/models/TtsProviderEnum.d.ts +10 -0
  367. package/dist/types/models/TypeC42Enum.d.ts +8 -0
  368. package/dist/types/models/Unit.d.ts +11 -0
  369. package/dist/types/models/UnitWithChildren.d.ts +13 -0
  370. package/dist/types/models/UseMainCreds.d.ts +3 -0
  371. package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
  372. package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
  373. package/dist/types/models/UserChatByPeriod.d.ts +4 -0
  374. package/dist/types/models/UserChatFeedback.d.ts +15 -0
  375. package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
  376. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
  377. package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
  378. package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
  379. package/dist/types/models/UserCountRecord.d.ts +4 -0
  380. package/dist/types/models/UserDetail.d.ts +7 -0
  381. package/dist/types/models/UserEdxMemory.d.ts +15 -0
  382. package/dist/types/models/UserMemory.d.ts +17 -0
  383. package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
  384. package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
  385. package/dist/types/models/UserMemoryEntry.d.ts +9 -0
  386. package/dist/types/models/UserMemoryEntryRequest.d.ts +5 -0
  387. package/dist/types/models/UserMemoryRequest.d.ts +12 -0
  388. package/dist/types/models/UserMetric.d.ts +4 -0
  389. package/dist/types/models/UserMetricsResponse.d.ts +7 -0
  390. package/dist/types/models/UserSentimentCountView.d.ts +4 -0
  391. package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
  392. package/dist/types/models/VectorResult.d.ts +10 -0
  393. package/dist/types/models/VideoCaption.d.ts +3 -0
  394. package/dist/types/models/Voice.d.ts +9 -0
  395. package/dist/types/models/WebResource.d.ts +9 -0
  396. package/dist/types/models/WebResourceCard.d.ts +7 -0
  397. package/dist/types/models/WebResourcesQuery.d.ts +3 -0
  398. package/dist/types/models/WebexConfig.d.ts +10 -0
  399. package/dist/types/models/WebexWebhook.d.ts +4 -0
  400. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  401. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  402. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  403. package/dist/types/services/AiAccountService.d.ts +473 -0
  404. package/dist/types/services/AiAnalyticsService.d.ts +4699 -31
  405. package/dist/types/services/AiBotService.d.ts +642 -0
  406. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  407. package/dist/types/services/AiIndexService.d.ts +384 -0
  408. package/dist/types/services/AiMarketingService.d.ts +38 -0
  409. package/dist/types/services/AiMediaService.d.ts +190 -0
  410. package/dist/types/services/AiMentorService.d.ts +6354 -0
  411. package/dist/types/services/AiPromptService.d.ts +1035 -0
  412. package/dist/types/services/AnalyticsService.d.ts +703 -1
  413. package/dist/types/services/SearchService.d.ts +738 -0
  414. package/dist/types/services/V2Service.d.ts +73 -0
  415. package/package.json +1 -1
  416. package/sdk_schema.yml +67037 -22719
  417. package/src/core/OpenAPI.ts +1 -1
  418. package/src/index.ts +401 -2
  419. package/src/models/AIGeneratedImage.ts +18 -0
  420. package/src/models/AIUserProfileMemoryRelation.ts +9 -0
  421. package/src/models/AIUserProfileRequest.ts +9 -0
  422. package/src/models/AccessEnum.ts +12 -0
  423. package/src/models/AccessTimesHeatmap.ts +10 -0
  424. package/src/models/ActionBreakdown.ts +15 -0
  425. package/src/models/AddMentorToDisclaimer.ts +17 -0
  426. package/src/models/AlignMentorBubbleEnum.ts +12 -0
  427. package/src/models/AnalyticsOverview.ts +12 -0
  428. package/src/models/Answer.ts +16 -0
  429. package/src/models/AssumedKnowledge.ts +9 -0
  430. package/src/models/AssumedKnowledgeLevel.ts +9 -0
  431. package/src/models/AudioToTextRequest.ts +8 -0
  432. package/src/models/AudioToTextResponse.ts +8 -0
  433. package/src/models/AutoMemoryPrompt.ts +9 -0
  434. package/src/models/BaseFinanceResponse.ts +42 -0
  435. package/src/models/BillingPeriod.ts +13 -0
  436. package/src/models/Bot.ts +20 -0
  437. package/src/models/BotCommand.ts +11 -0
  438. package/src/models/BotCreate.ts +17 -0
  439. package/src/models/Breakdown.ts +16 -0
  440. package/src/models/CallAuthenticationRequest.ts +22 -0
  441. package/src/models/CallAuthenticationResponse.ts +26 -0
  442. package/src/models/CallConfiguration.ts +31 -0
  443. package/src/models/CallConfigurationModeEnum.ts +12 -0
  444. package/src/models/ChatHistory.ts +13 -0
  445. package/src/models/ChatHistoryFilterData.ts +14 -0
  446. package/src/models/ChatHistoryFilterUser.ts +10 -0
  447. package/src/models/ChatHistoryItem.ts +10 -0
  448. package/src/models/ChatHistorySessionId.ts +8 -0
  449. package/src/models/ChatSessionRequest.ts +19 -0
  450. package/src/models/ChatSessionResponse.ts +10 -0
  451. package/src/models/CheckDocumentTrainingStatus.ts +15 -0
  452. package/src/models/ComparisonInfo.ts +34 -0
  453. package/src/models/ComponentBlock.ts +14 -0
  454. package/src/models/ComponentBlockTypeEnum.ts +12 -0
  455. package/src/models/ConnectedService.ts +16 -0
  456. package/src/models/ConnectedServiceProviderEnum.ts +10 -0
  457. package/src/models/ConversationChartPoint.ts +9 -0
  458. package/src/models/ConversationDetailResponse.ts +9 -0
  459. package/src/models/ConversationListItem.ts +29 -0
  460. package/src/models/ConversationListResponse.ts +11 -0
  461. package/src/models/ConversationMessage.ts +16 -0
  462. package/src/models/ConversationRating.ts +11 -0
  463. package/src/models/ConversationSummary.ts +10 -0
  464. package/src/models/ConversationVolume.ts +9 -0
  465. package/src/models/Conversations.ts +37 -0
  466. package/src/models/ConversationsChart.ts +10 -0
  467. package/src/models/Cost.ts +8 -0
  468. package/src/models/CostPerTenant.ts +11 -0
  469. package/src/models/CourseCreationTask.ts +36 -0
  470. package/src/models/CourseCreationTaskFile.ts +12 -0
  471. package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
  472. package/src/models/CrawlerPatternTypeEnum.ts +12 -0
  473. package/src/models/CredentialRequest.ts +19 -0
  474. package/src/models/CrontabSchedule.ts +27 -0
  475. package/src/models/CurrentUsersResponse.ts +13 -0
  476. package/src/models/CustomInstructionResponse.ts +18 -0
  477. package/src/models/DataSet.ts +26 -0
  478. package/src/models/DataSetCreate.ts +17 -0
  479. package/src/models/DataSetStatusEnum.ts +16 -0
  480. package/src/models/DateRange.ts +9 -0
  481. package/src/models/Disclaimer.ts +22 -0
  482. package/src/models/DisclaimerAgreement.ts +16 -0
  483. package/src/models/DiscordConfig.ts +12 -0
  484. package/src/models/DiscordUserConfig.ts +15 -0
  485. package/src/models/DiscordWebhook.ts +11 -0
  486. package/src/models/Document.ts +46 -0
  487. package/src/models/DocumentFacet.ts +22 -0
  488. package/src/models/DocumentSearchResponse.ts +40 -0
  489. package/src/models/DocumentSettingsResponse.ts +8 -0
  490. package/src/models/EdxCourse.ts +16 -0
  491. package/src/models/ElevenlabsCustomVoice.ts +9 -0
  492. package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
  493. package/src/models/EmailPromptDetail.ts +18 -0
  494. package/src/models/EmailPromptList.ts +16 -0
  495. package/src/models/EmailPromptSummary.ts +10 -0
  496. package/src/models/Entity.ts +16 -0
  497. package/src/models/EntityTypeEnum.ts +14 -0
  498. package/src/models/ExternalServiceInfo.ts +11 -0
  499. package/src/models/FinanceDetailsResponse.ts +18 -0
  500. package/src/models/FinanceFilters.ts +20 -0
  501. package/src/models/FreeUsageCount.ts +8 -0
  502. package/src/models/FullCourse.ts +18 -0
  503. package/src/models/GreetingMethodEnum.ts +12 -0
  504. package/src/models/GuidedPrompt.ts +9 -0
  505. package/src/models/GuidedPromptsResponse.ts +10 -0
  506. package/src/models/HeygenMarketingVideoDetail.ts +13 -0
  507. package/src/models/HeygenMarketingVideoList.ts +11 -0
  508. package/src/models/HeygenTemplateRequest.ts +10 -0
  509. package/src/models/HeygenTemplateResponseSingle.ts +11 -0
  510. package/src/models/HeygenVideoDetail.ts +13 -0
  511. package/src/models/HeygenVideoRequest.ts +10 -0
  512. package/src/models/HumanSupportTicket.ts +26 -0
  513. package/src/models/HumanSupportTicketStatusEnum.ts +14 -0
  514. package/src/models/InputQuestion.ts +11 -0
  515. package/src/models/IntegrationCredential.ts +15 -0
  516. package/src/models/IntegrationCredentialSchema.ts +11 -0
  517. package/src/models/IntialQuestionAnswer.ts +8 -0
  518. package/src/models/InvoiceReportResponse.ts +18 -0
  519. package/src/models/JobRun.ts +16 -0
  520. package/src/models/KindEnum.ts +14 -0
  521. package/src/models/LLMCredentialRequest.ts +19 -0
  522. package/src/models/LLMCredentialResponse.ts +15 -0
  523. package/src/models/LLMCredentialSchema.ts +11 -0
  524. package/src/models/LLMModelForTenant.ts +11 -0
  525. package/src/models/LLMQuestion.ts +20 -0
  526. package/src/models/LLMResponse.ts +23 -0
  527. package/src/models/LLMTracesListResponse.ts +10 -0
  528. package/src/models/LanguagesView.ts +10 -0
  529. package/src/models/LinkCourseRequest.ts +8 -0
  530. package/src/models/LinkCourseResponse.ts +10 -0
  531. package/src/models/LlmProviderEnum.ts +12 -0
  532. package/src/models/MCPServer.ts +26 -0
  533. package/src/models/MaskedIntegrationCredential.ts +15 -0
  534. package/src/models/MaskedLLMCredential.ts +15 -0
  535. package/src/models/MemoryComponentData.ts +10 -0
  536. package/src/models/MemoryComponentMemory.ts +9 -0
  537. package/src/models/MemoryComponentMemoryDetail.ts +13 -0
  538. package/src/models/MemoryComponentResponse.ts +10 -0
  539. package/src/models/MemoryProgress.ts +13 -0
  540. package/src/models/MemoryStatusRequestView.ts +11 -0
  541. package/src/models/MemoryStatusView.ts +11 -0
  542. package/src/models/Mentor.ts +105 -0
  543. package/src/models/MentorAudience.ts +10 -0
  544. package/src/models/MentorBreakdown.ts +14 -0
  545. package/src/models/MentorCategory.ts +14 -0
  546. package/src/models/MentorCategoryCreate.ts +16 -0
  547. package/src/models/MentorCategoryGroup.ts +16 -0
  548. package/src/models/MentorCategoryGroupCreate.ts +16 -0
  549. package/src/models/MentorCreate.ts +100 -0
  550. package/src/models/MentorCustomVoice.ts +9 -0
  551. package/src/models/MentorCustomVoiceResponse.ts +9 -0
  552. package/src/models/MentorData.ts +12 -0
  553. package/src/models/MentorDetailAnalytics.ts +11 -0
  554. package/src/models/MentorEval.ts +16 -0
  555. package/src/models/MentorEvalQuestion.ts +10 -0
  556. package/src/models/MentorEvalQuestionRequest.ts +9 -0
  557. package/src/models/MentorEvalReport.ts +15 -0
  558. package/src/models/MentorEvalRequest.ts +13 -0
  559. package/src/models/MentorFacet.ts +22 -0
  560. package/src/models/MentorFork.ts +10 -0
  561. package/src/models/MentorFromTemplateWithSettingRequest.ts +57 -0
  562. package/src/models/MentorMemorySettingsRequest.ts +11 -0
  563. package/src/models/MentorMemorySettingsResponse.ts +11 -0
  564. package/src/models/MentorMetadata.ts +10 -0
  565. package/src/models/MentorScenario.ts +11 -0
  566. package/src/models/MentorScenarioPrompt.ts +10 -0
  567. package/src/models/MentorSearchResponse.ts +40 -0
  568. package/src/models/MentorSession.ts +9 -0
  569. package/src/models/MentorSettings.ts +89 -0
  570. package/src/models/MentorSettingsPublic.ts +65 -0
  571. package/src/models/MentorSettingsRequest.ts +71 -0
  572. package/src/models/MentorSummary.ts +10 -0
  573. package/src/models/MentorType.ts +10 -0
  574. package/src/models/MentorUserSetting.ts +8 -0
  575. package/src/models/MentorVisibilityEnum.ts +14 -0
  576. package/src/models/MentorWizard.ts +9 -0
  577. package/src/models/MessageStatistics.ts +10 -0
  578. package/src/models/MessageView.ts +15 -0
  579. package/src/models/MessageViewRequest.ts +12 -0
  580. package/src/models/MessageViewUpdatResponse.ts +8 -0
  581. package/src/models/Metadata.ts +10 -0
  582. package/src/models/MetricChange.ts +9 -0
  583. package/src/models/MetricInfo.ts +10 -0
  584. package/src/models/ModelCost.ts +9 -0
  585. package/src/models/ModerationLog.ts +16 -0
  586. package/src/models/NoChatMessagesFound.ts +8 -0
  587. package/src/models/NotificationSource.ts +2 -2
  588. package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
  589. package/src/models/NullEnum.ts +7 -0
  590. package/src/models/OAuthStartResponse.ts +8 -0
  591. package/src/models/Observation.ts +36 -0
  592. package/src/models/OvertimeData.ts +18 -0
  593. package/src/models/PageContent.ts +11 -0
  594. package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
  595. package/src/models/PaginatedConversationsList.ts +12 -0
  596. package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
  597. package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
  598. package/src/models/PaginatedDataSetList.ts +12 -0
  599. package/src/models/PaginatedDisclaimerAgreementList.ts +12 -0
  600. package/src/models/PaginatedDisclaimerList.ts +12 -0
  601. package/src/models/PaginatedEdxCourseList.ts +12 -0
  602. package/src/models/PaginatedEmailPromptListList.ts +12 -0
  603. package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
  604. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
  605. package/src/models/PaginatedHumanSupportTicketList.ts +12 -0
  606. package/src/models/PaginatedJobRunList.ts +12 -0
  607. package/src/models/PaginatedMCPServerList.ts +12 -0
  608. package/src/models/PaginatedMentorList.ts +12 -0
  609. package/src/models/PaginatedModerationLogList.ts +12 -0
  610. package/src/models/PaginatedObservationList.ts +12 -0
  611. package/src/models/PaginatedPeriodicAgentList.ts +12 -0
  612. package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
  613. package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
  614. package/src/models/PaginatedProjectList.ts +12 -0
  615. package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
  616. package/src/models/PaginatedSectionList.ts +12 -0
  617. package/src/models/PaginatedSubSectionList.ts +12 -0
  618. package/src/models/PaginatedTicketMessageList.ts +12 -0
  619. package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
  620. package/src/models/PaginatedTraceList.ts +12 -0
  621. package/src/models/PaginatedTrainingList.ts +12 -0
  622. package/src/models/PaginatedUnitList.ts +12 -0
  623. package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
  624. package/src/models/PaginatedUserMemoryList.ts +12 -0
  625. package/src/models/PaginatedVoiceList.ts +12 -0
  626. package/src/models/Pagination.ts +16 -11
  627. package/src/models/PatchedBotCommand.ts +11 -0
  628. package/src/models/PatchedBotCreate.ts +17 -0
  629. package/src/models/PatchedCallConfiguration.ts +31 -0
  630. package/src/models/PatchedConversations.ts +37 -0
  631. package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
  632. package/src/models/PatchedCredentialRequest.ts +19 -0
  633. package/src/models/PatchedDataSet.ts +26 -0
  634. package/src/models/PatchedDisclaimer.ts +22 -0
  635. package/src/models/PatchedDiscordConfig.ts +12 -0
  636. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  637. package/src/models/PatchedHumanSupportTicket.ts +26 -0
  638. package/src/models/PatchedLLMCredentialRequest.ts +19 -0
  639. package/src/models/PatchedMCPServer.ts +26 -0
  640. package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
  641. package/src/models/PatchedMentorCreate.ts +100 -0
  642. package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
  643. package/src/models/PatchedPlayWrightScript.ts +17 -0
  644. package/src/models/PatchedProject.ts +56 -0
  645. package/src/models/PatchedPrompt.ts +27 -0
  646. package/src/models/PatchedSection.ts +14 -0
  647. package/src/models/PatchedSlackConfig.ts +13 -0
  648. package/src/models/PatchedSlackUserConfig.ts +22 -0
  649. package/src/models/PatchedSubSection.ts +14 -0
  650. package/src/models/PatchedTeamsConfig.ts +12 -0
  651. package/src/models/PatchedTicketMessage.ts +15 -0
  652. package/src/models/PatchedTrainingCreate.ts +36 -0
  653. package/src/models/PatchedUnit.ts +16 -0
  654. package/src/models/PatchedWebexConfig.ts +15 -0
  655. package/src/models/PatchedWhatsappConfig.ts +16 -0
  656. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  657. package/src/models/PeriodInfo.ts +26 -0
  658. package/src/models/PeriodicAgent.ts +47 -0
  659. package/src/models/PeriodicAgentCreate.ts +46 -0
  660. package/src/models/PeriodicAgentLog.ts +16 -0
  661. package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
  662. package/src/models/PeriodicTask.ts +26 -0
  663. package/src/models/PieChartData.ts +10 -0
  664. package/src/models/PieChartSegment.ts +9 -0
  665. package/src/models/PinnedMessageCreate.ts +14 -0
  666. package/src/models/PinnedMessageGet.ts +12 -0
  667. package/src/models/PinnedMessageRequest.ts +11 -0
  668. package/src/models/PlayWrightScript.ts +17 -0
  669. package/src/models/PredictiveAnalyticsRequest.ts +9 -0
  670. package/src/models/PredictiveAnalyticsResponse.ts +9 -0
  671. package/src/models/PreviousAgentStatusEnum.ts +16 -0
  672. package/src/models/Project.ts +56 -0
  673. package/src/models/ProjectMentor.ts +16 -0
  674. package/src/models/Prompt.ts +27 -0
  675. package/src/models/PromptCategory.ts +12 -0
  676. package/src/models/PromptFacet.ts +22 -0
  677. package/src/models/PromptSearchResponse.ts +40 -0
  678. package/src/models/PromptVisibilityEnum.ts +14 -0
  679. package/src/models/Provider05cEnum.ts +18 -0
  680. package/src/models/Provider637Enum.ts +14 -0
  681. package/src/models/Provider63aEnum.ts +10 -0
  682. package/src/models/ProviderBreakdown.ts +13 -0
  683. package/src/models/QuestionCardTag.ts +13 -0
  684. package/src/models/QuestionRequest.ts +20 -0
  685. package/src/models/QuestionResponse.ts +15 -0
  686. package/src/models/RatingAverageRecord.ts +15 -0
  687. package/src/models/RatingEnum.ts +12 -0
  688. package/src/models/RatingRecord.ts +9 -0
  689. package/src/models/RatingsOvertime.ts +10 -0
  690. package/src/models/RecentlyAccessedMentor.ts +13 -0
  691. package/src/models/RecommendCourseBlock.ts +8 -0
  692. package/src/models/RecommendCourseResponse.ts +8 -0
  693. package/src/models/RecommendedCoursesResponse.ts +38 -0
  694. package/src/models/RelatedText.ts +8 -0
  695. package/src/models/RemoveMentorFromDisclaimer.ts +17 -0
  696. package/src/models/RequestDataVariable.ts +19 -0
  697. package/src/models/ResourceScrappedData.ts +18 -0
  698. package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
  699. package/src/models/ResponseDataVariable.ts +19 -0
  700. package/src/models/RetreiverTrainViewRequest.ts +15 -0
  701. package/src/models/RetreiverTrainViewResponse.ts +11 -0
  702. package/src/models/RetrieveTask.ts +8 -0
  703. package/src/models/RetrieverDocumentEmbedding.ts +34 -0
  704. package/src/models/RetrieverDocumentEmbeddingRequest.ts +71 -0
  705. package/src/models/RetrieverRequestSearch.ts +15 -0
  706. package/src/models/RetrieverRequestSearchDocument.ts +15 -0
  707. package/src/models/RetrieverResponseSearch.ts +12 -0
  708. package/src/models/ReuestDataVariableList.ts +9 -0
  709. package/src/models/RunMentorEval.ts +8 -0
  710. package/src/models/ScanWebhookRequest.ts +11 -0
  711. package/src/models/ScanWebhookResponse.ts +8 -0
  712. package/src/models/ScopeEnum.ts +12 -0
  713. package/src/models/Section.ts +14 -0
  714. package/src/models/SectionWithChildren.ts +16 -0
  715. package/src/models/SeedMentorsView.ts +8 -0
  716. package/src/models/SentimentSummary.ts +9 -0
  717. package/src/models/ServiceEnum.ts +14 -0
  718. package/src/models/SessionBrowserScreenshot.ts +13 -0
  719. package/src/models/SessionChartPoint.ts +9 -0
  720. package/src/models/SessionDetail.ts +11 -0
  721. package/src/models/SessionMemoryAttachment.ts +8 -0
  722. package/src/models/SessionMemoryStorage.ts +11 -0
  723. package/src/models/SessionsChart.ts +10 -0
  724. package/src/models/ShareableMentorLink.ts +13 -0
  725. package/src/models/ShellLogs.ts +8 -0
  726. package/src/models/SlackConfig.ts +13 -0
  727. package/src/models/SlackUserConfig.ts +22 -0
  728. package/src/models/SlackWebhook.ts +11 -0
  729. package/src/models/SpacedRepetitionLearningPath.ts +8 -0
  730. package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
  731. package/src/models/StarMentor.ts +12 -0
  732. package/src/models/Status6eeEnum.ts +16 -0
  733. package/src/models/Step.ts +14 -0
  734. package/src/models/StepStatusEnum.ts +14 -0
  735. package/src/models/StripeCheckoutSessionRequest.ts +2 -2
  736. package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
  737. package/src/models/SttProviderEnum.ts +16 -0
  738. package/src/models/StudentChatMessage.ts +9 -0
  739. package/src/models/StylesView.ts +9 -0
  740. package/src/models/SubSection.ts +14 -0
  741. package/src/models/SubSectionWithChildren.ts +16 -0
  742. package/src/models/Subject.ts +10 -0
  743. package/src/models/Summary.ts +14 -0
  744. package/src/models/TagsView.ts +10 -0
  745. package/src/models/TargetSystemEnum.ts +12 -0
  746. package/src/models/TaskView.ts +8 -0
  747. package/src/models/TeamsConfig.ts +12 -0
  748. package/src/models/TeamsWebhook.ts +22 -0
  749. package/src/models/TemplateMentor.ts +14 -0
  750. package/src/models/TenantMentorTraces.ts +11 -0
  751. package/src/models/ThemeEnum.ts +12 -0
  752. package/src/models/TicketMessage.ts +15 -0
  753. package/src/models/TonesView.ts +9 -0
  754. package/src/models/ToolCategory.ts +10 -0
  755. package/src/models/ToolResponse.ts +20 -0
  756. package/src/models/TopicDetail.ts +13 -0
  757. package/src/models/TopicDetails.ts +10 -0
  758. package/src/models/TopicModel.ts +8 -0
  759. package/src/models/TopicRecord.ts +9 -0
  760. package/src/models/TopicStatistics.ts +12 -0
  761. package/src/models/TopicStatisticsResponse.ts +11 -0
  762. package/src/models/TopicSummaryView.ts +9 -0
  763. package/src/models/TopicsOverview.ts +27 -0
  764. package/src/models/TopicsOverviewMetric.ts +26 -0
  765. package/src/models/Trace.ts +22 -0
  766. package/src/models/TrainChatSessionDocumentView.ts +11 -0
  767. package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
  768. package/src/models/TrainDocumentViewRequest.ts +79 -0
  769. package/src/models/TrainDocumentViewResponse.ts +20 -0
  770. package/src/models/Training.ts +46 -0
  771. package/src/models/TrainingCreate.ts +36 -0
  772. package/src/models/TrainingStatusEnum.ts +16 -0
  773. package/src/models/TransportEnum.ts +12 -0
  774. package/src/models/TrendEntry.ts +9 -0
  775. package/src/models/TriggerRequest.ts +10 -0
  776. package/src/models/TriggerResponse.ts +11 -0
  777. package/src/models/TtsProviderEnum.ts +14 -0
  778. package/src/models/TypeC42Enum.ts +12 -0
  779. package/src/models/Unit.ts +16 -0
  780. package/src/models/UnitWithChildren.ts +18 -0
  781. package/src/models/UseMainCreds.ts +8 -0
  782. package/src/models/UserAllChatMemoryView.ts +12 -0
  783. package/src/models/UserCatalogItemMemoryView.ts +19 -0
  784. package/src/models/UserChatByPeriod.ts +9 -0
  785. package/src/models/UserChatFeedback.ts +20 -0
  786. package/src/models/UserChatFeedbackCount.ts +9 -0
  787. package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
  788. package/src/models/UserChatMemoryStatusView.ts +11 -0
  789. package/src/models/UserChatMemoryUpdateView.ts +15 -0
  790. package/src/models/UserCountRecord.ts +9 -0
  791. package/src/models/UserDetail.ts +12 -0
  792. package/src/models/UserEdxMemory.ts +20 -0
  793. package/src/models/UserMemory.ts +22 -0
  794. package/src/models/UserMemoryContextRequest.ts +18 -0
  795. package/src/models/UserMemoryContextResponse.ts +17 -0
  796. package/src/models/UserMemoryEntry.ts +14 -0
  797. package/src/models/UserMemoryEntryRequest.ts +10 -0
  798. package/src/models/UserMemoryRequest.ts +17 -0
  799. package/src/models/UserMetric.ts +9 -0
  800. package/src/models/UserMetricsResponse.ts +12 -0
  801. package/src/models/UserSentimentCountView.ts +9 -0
  802. package/src/models/UserTrendByPeriod.ts +10 -0
  803. package/src/models/VectorResult.ts +15 -0
  804. package/src/models/VideoCaption.ts +8 -0
  805. package/src/models/Voice.ts +14 -0
  806. package/src/models/WebResource.ts +14 -0
  807. package/src/models/WebResourceCard.ts +12 -0
  808. package/src/models/WebResourcesQuery.ts +8 -0
  809. package/src/models/WebexConfig.ts +15 -0
  810. package/src/models/WebexWebhook.ts +9 -0
  811. package/src/models/WhatAppWebHook.ts +8 -0
  812. package/src/models/WhatsappConfig.ts +16 -0
  813. package/src/models/WhatsappUserConfig.ts +15 -0
  814. package/src/services/AiAccountService.ts +755 -0
  815. package/src/services/AiAnalyticsService.ts +12773 -5119
  816. package/src/services/AiBotService.ts +1330 -0
  817. package/src/services/AiFinetuningService.ts +472 -0
  818. package/src/services/AiIndexService.ts +676 -0
  819. package/src/services/AiMarketingService.ts +96 -0
  820. package/src/services/AiMediaService.ts +396 -0
  821. package/src/services/AiMentorService.ts +11609 -0
  822. package/src/services/AiPromptService.ts +1985 -0
  823. package/src/services/AnalyticsService.ts +1098 -50
  824. package/src/services/SearchService.ts +1459 -398
  825. package/src/services/V2Service.ts +130 -0
@@ -2,9 +2,21 @@
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';
15
+ import type { RatingsOvertime } from '../models/RatingsOvertime';
16
+ import type { SessionsChart } from '../models/SessionsChart';
17
+ import type { TopicDetails } from '../models/TopicDetails';
18
+ import type { TopicsOverview } from '../models/TopicsOverview';
19
+ import type { UserDetail } from '../models/UserDetail';
8
20
  import type { CancelablePromise } from '../core/CancelablePromise';
9
21
  import { OpenAPI } from '../core/OpenAPI';
10
22
  import { request as __request } from '../core/request';
@@ -90,6 +102,7 @@ export class AnalyticsService {
90
102
  dateFilter = 'today',
91
103
  endDate,
92
104
  limit = 10,
105
+ mentorUniqueId,
93
106
  page = 1,
94
107
  platformKey,
95
108
  search,
@@ -124,6 +137,7 @@ export class AnalyticsService {
124
137
  * Number of learner records per page
125
138
  */
126
139
  limit?: number,
140
+ mentorUniqueId?: string,
127
141
  page?: number,
128
142
  platformKey?: string,
129
143
  search?: string,
@@ -143,6 +157,7 @@ export class AnalyticsService {
143
157
  'date_filter': dateFilter,
144
158
  'end_date': endDate,
145
159
  'limit': limit,
160
+ 'mentor_unique_id': mentorUniqueId,
146
161
  'metric': metric,
147
162
  'page': page,
148
163
  'platform_key': platformKey,
@@ -153,56 +168,1089 @@ export class AnalyticsService {
153
168
  });
154
169
  }
155
170
  /**
156
- * Unified API endpoint for learner analytics.
171
+ * Financial Analytics API - Get comprehensive cost metrics with comparison analysis.
157
172
  *
158
- * This endpoint provides either:
159
- * 1. Cross-platform summary (when only username is provided)
160
- * 2. Platform-specific detailed data (when username + platform_key are provided)
173
+ * This endpoint provides period-based cost analysis (not cumulative) with support for:
174
+ * - Multiple time granularities and metrics
175
+ * - Cross-dimensional filtering
176
+ * - Percentage change vs comparison periods
177
+ * - Forward-filled time series
161
178
  *
162
- * Query params:
163
- * - username (required): Username of the learner
164
- * - platform_key (optional): Platform key for platform-specific data
165
- * - page (optional): Page number (default: 1)
166
- * - limit (optional): Records per page (default: 20, max: 100)
179
+ * **Examples:**
167
180
  *
168
- * Returns:
169
- * - If platform_key provided: Detailed platform metrics
170
- * - If no platform_key: Cross-platform summary with pagination
171
- * @returns LearnerAnalyticsResponse
172
- * @throws ApiError
173
- */
174
- public static analyticsLearnersRetrieve({
175
- limit = 20,
176
- page = 1,
177
- platformKey,
178
- username,
179
- }: {
180
- /**
181
- * Number of records per page (default: 20, max: 100)
182
- */
183
- limit?: number,
184
- /**
185
- * Page number (default: 1)
186
- */
187
- page?: number,
188
- /**
189
- * Optional platform key - if provided, returns platform-specific detailed data
190
- */
191
- platformKey?: string,
192
- /**
193
- * Username of the learner to get analytics for. Defaults to self if not provided.
194
- */
195
- username?: string,
196
- }): CancelablePromise<LearnerAnalyticsResponse> {
197
- return __request(OpenAPI, {
198
- method: 'GET',
199
- url: '/api/analytics/learners/',
200
- query: {
201
- 'limit': limit,
202
- 'page': page,
203
- 'platform_key': platformKey,
204
- 'username': username,
205
- },
206
- });
207
- }
208
- }
181
+ * **Basic Weekly Costs:**
182
+ * ```
183
+ * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
184
+ * ```
185
+ *
186
+ * **Platform & Mentor Filtered:**
187
+ * ```
188
+ * # Get total costs for a specific platform and mentor
189
+ * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
190
+ * ```
191
+ *
192
+ * **Monthly Costs by Provider:**
193
+ * ```
194
+ * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
195
+ * ```
196
+ *
197
+ * **Daily Costs for Specific User:**
198
+ * ```
199
+ * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
200
+ * ```
201
+ *
202
+ *
203
+ * **Response Structure:**
204
+ * ```json
205
+ * {
206
+ * "metric": "weekly_costs",
207
+ * "value": 12.47,
208
+ * "percentage_change": 8.5,
209
+ * "overtime": [
210
+ * {"date": "2025-01-06", "value": 2.89},
211
+ * {"date": "2025-01-13", "value": 3.12}
212
+ * ],
213
+ * "period_info": {
214
+ * "start_date": "2025-01-01",
215
+ * "end_date": "2025-01-31",
216
+ * "period_days": 31
217
+ * },
218
+ * "comparison_info": {
219
+ * "previous_period_value": 11.50,
220
+ * ...
221
+ * }
222
+ * }
223
+ * ```
224
+ * @returns BaseFinanceResponse Successful financial metrics response with period-based cost data
225
+ * @throws ApiError
226
+ */
227
+ public static analyticsFinancialRetrieve({
228
+ metric,
229
+ comparisonDays,
230
+ dateFilter = 'today',
231
+ endDate,
232
+ fillMethod = 'zero',
233
+ granularity = 'day',
234
+ llmModel,
235
+ mentorUniqueId,
236
+ platformKey,
237
+ provider,
238
+ showOvertime = true,
239
+ startDate,
240
+ username,
241
+ }: {
242
+ /**
243
+ * Type of financial metric to retrieve
244
+ *
245
+ * * `total_costs` - Total costs for selected timeframe
246
+ * * `weekly_costs` - Costs for current/selected week
247
+ * * `monthly_costs` - Costs for current/selected month
248
+ */
249
+ metric: 'total_costs' | 'weekly_costs' | 'monthly_costs',
250
+ /**
251
+ * Number of days for comparison period to calculate percentage change (e.g., 10 for 10-day comparison)
252
+ */
253
+ comparisonDays?: number,
254
+ /**
255
+ * * `today` - Today only
256
+ * * `7d` - Last 7 days
257
+ * * `30d` - Last 30 days
258
+ * * `90d` - Last 90 days
259
+ * * `all_time` - All time
260
+ * * `custom` - Custom date range
261
+ */
262
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
263
+ endDate?: string,
264
+ /**
265
+ * Method for filling missing time periods in overtime data
266
+ *
267
+ * * `zero` - Fill missing periods with zero
268
+ * * `previous` - Fill missing periods with previous value
269
+ */
270
+ fillMethod?: 'zero' | 'previous',
271
+ /**
272
+ * Time granularity for overtime series data
273
+ *
274
+ * * `day` - Daily data points
275
+ * * `week` - Weekly data points
276
+ * * `month` - Monthly data points
277
+ */
278
+ granularity?: 'day' | 'week' | 'month',
279
+ /**
280
+ * Filter by specific LLM model (e.g., gpt-4o, claude-3-5-sonnet)
281
+ */
282
+ llmModel?: string,
283
+ mentorUniqueId?: string,
284
+ platformKey?: string,
285
+ /**
286
+ * Filter by AI provider
287
+ *
288
+ * * `openai` - OpenAI
289
+ * * `anthropic` - Anthropic
290
+ * * `azure` - Azure
291
+ * * `google` - Google
292
+ * * `meta` - Meta
293
+ * * `other` - Other
294
+ */
295
+ provider?: 'openai' | 'anthropic' | 'azure' | 'google' | 'meta' | 'other',
296
+ /**
297
+ * Whether to include overtime series data in response
298
+ */
299
+ showOvertime?: boolean,
300
+ startDate?: string,
301
+ /**
302
+ * Filter by specific username - returns costs for this user only
303
+ */
304
+ username?: string,
305
+ }): CancelablePromise<BaseFinanceResponse> {
306
+ return __request(OpenAPI, {
307
+ method: 'GET',
308
+ url: '/api/analytics/financial/',
309
+ query: {
310
+ 'comparison_days': comparisonDays,
311
+ 'date_filter': dateFilter,
312
+ 'end_date': endDate,
313
+ 'fill_method': fillMethod,
314
+ 'granularity': granularity,
315
+ 'llm_model': llmModel,
316
+ 'mentor_unique_id': mentorUniqueId,
317
+ 'metric': metric,
318
+ 'platform_key': platformKey,
319
+ 'provider': provider,
320
+ 'show_overtime': showOvertime,
321
+ 'start_date': startDate,
322
+ 'username': username,
323
+ },
324
+ errors: {
325
+ 400: `Bad Request - Invalid query parameters`,
326
+ 403: `Forbidden - Insufficient permissions`,
327
+ 500: `Internal Server Error`,
328
+ },
329
+ });
330
+ }
331
+ /**
332
+ * Financial Details Analytics API – paginated cost tables with flexible grouping.
333
+ *
334
+ * This endpoint returns tabular cost metrics aggregated by the dimension
335
+ * specified via the `group_by` query parameter. One or more KPI columns
336
+ * can be requested through the comma-separated `metrics` list while
337
+ * typical filters (date range, provider, platform_key, user, etc.) narrow the
338
+ * dataset. Results are paginated with `page` / `limit`.
339
+ *
340
+ * **Required query parameters**
341
+ * - group_by – provider | llm_model | username | mentor | platform
342
+ * - metrics – csv list of KPI names, e.g. total_cost, sessions
343
+ *
344
+ * **Shared optional filters**
345
+ * - start_date, end_date – ISO yyyy-mm-dd (ignored when all_time=true)
346
+ * - platform_key – tenant isolation
347
+ * - mentor_unique_id – filter to one mentor
348
+ * - username – filter to a learner
349
+ * - provider / llm_model – filter to LLM provider / model
350
+ * - all_time – true → lifetime totals
351
+ * - page (default 1), limit (default 50)
352
+ *
353
+ * **Examples**
354
+ * --------
355
+ * 1. Cost by provider for the last week
356
+ * ```
357
+ * GET /api/v2/analytics/financial/details?
358
+ * group_by=provider&
359
+ * metrics=total_cost&
360
+ * start_date=2025-01-01&
361
+ * end_date=2025-01-07&
362
+ * page=1&limit=10
363
+ * ```
364
+ *
365
+ * 2. Lifetime cost per user with extra KPIs
366
+ * ```
367
+ * GET /api/v2/analytics/financial/details?
368
+ * group_by=username&
369
+ * metrics=total_cost,sessions&
370
+ * all_time=true&page=1&limit=50
371
+ * ```
372
+ * 3. Cost by LLM model with tenant filter
373
+ * ```
374
+ * GET /api/v2/analytics/financial/details?
375
+ * group_by=llm_model&
376
+ * metrics=total_cost&
377
+ * platform_key=web-app&
378
+ * start_date=2025-01-01&end_date=2025-01-31
379
+ * ```
380
+ * Response structure
381
+ * -------------------
382
+ * ```
383
+ * {
384
+ * "page": 1,
385
+ * "limit": 10,
386
+ * "total_pages": 1,
387
+ * "total_records": 3,
388
+ * "rows": [
389
+ * {"provider": "openai", "total_cost": 2.5},
390
+ * {"provider": "anthropic", "total_cost": 1.0},
391
+ * {"provider": "azure", "total_cost": 0.5}
392
+ * ],
393
+ * "metrics": [
394
+ * {
395
+ * "name": "total_cost",
396
+ * "unit": "$",
397
+ * "description": "Cost for this entity in period"
398
+ * }
399
+ * ],
400
+ * "total_cost": 4.0 // optional grand-total when available
401
+ * }
402
+ * ``
403
+ * @returns FinanceDetailsResponse
404
+ * @throws ApiError
405
+ */
406
+ public static analyticsFinancialDetailsRetrieve({
407
+ groupBy,
408
+ dateFilter = 'today',
409
+ endDate,
410
+ limit = 20,
411
+ llmModel,
412
+ mentorUniqueId,
413
+ metrics = 'total_cost',
414
+ page = 1,
415
+ platformKey,
416
+ provider,
417
+ search,
418
+ startDate,
419
+ username,
420
+ }: {
421
+ /**
422
+ * Dimension to group by
423
+ *
424
+ * * `provider` - Group by provider
425
+ * * `llm_model` - Group by LLM model
426
+ * * `username` - Group by username
427
+ * * `mentor` - Group by mentor
428
+ * * `platform` - Group by platform
429
+ * * `action` - Group by actions
430
+ */
431
+ groupBy: 'provider' | 'llm_model' | 'username' | 'mentor' | 'platform' | 'action',
432
+ /**
433
+ * * `today` - Today only
434
+ * * `7d` - Last 7 days
435
+ * * `30d` - Last 30 days
436
+ * * `90d` - Last 90 days
437
+ * * `all_time` - All time
438
+ * * `custom` - Custom date range
439
+ */
440
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
441
+ endDate?: string,
442
+ limit?: number,
443
+ llmModel?: string,
444
+ mentorUniqueId?: string,
445
+ /**
446
+ * Comma-separated list of metrics (e.g. total_cost,sessions, last_active)
447
+ */
448
+ metrics?: string,
449
+ page?: number,
450
+ platformKey?: string,
451
+ provider?: string,
452
+ search?: string,
453
+ startDate?: string,
454
+ username?: string,
455
+ }): CancelablePromise<FinanceDetailsResponse> {
456
+ return __request(OpenAPI, {
457
+ method: 'GET',
458
+ url: '/api/analytics/financial/details/',
459
+ query: {
460
+ 'date_filter': dateFilter,
461
+ 'end_date': endDate,
462
+ 'group_by': groupBy,
463
+ 'limit': limit,
464
+ 'llm_model': llmModel,
465
+ 'mentor_unique_id': mentorUniqueId,
466
+ 'metrics': metrics,
467
+ 'page': page,
468
+ 'platform_key': platformKey,
469
+ 'provider': provider,
470
+ 'search': search,
471
+ 'start_date': startDate,
472
+ 'username': username,
473
+ },
474
+ errors: {
475
+ 400: `Bad Request – invalid query params`,
476
+ 500: `Internal Server Error`,
477
+ },
478
+ });
479
+ }
480
+ /**
481
+ * Flexible Invoice Report API – Billing summary with username and platform filtering.
482
+ *
483
+ * This endpoint generates invoice reports with flexible filtering options:
484
+ * - Platform admins can view their platform's data and filter by username within their platform
485
+ * - Super admins can view any combination of username/platform or global summaries
486
+ *
487
+ * **Key Features:**
488
+ * - Flexible filtering by username and/or platform_key
489
+ * - Essential metrics: total cost, sessions, usage period
490
+ * - Provider breakdown (OpenAI, Anthropic, etc.)
491
+ * - Top mentors/actions by cost
492
+ * - Clean, invoice-ready format
493
+ *
494
+ * **Query Parameters:**
495
+ * - username: Filter by specific username (optional)
496
+ * - platform_key: Filter by platform (optional, but required for platform admins)
497
+ * - start_date, end_date: billing period (defaults to last 30 days)
498
+ * - include_breakdown: show provider/mentor details (default: true)
499
+ *
500
+ * **Permission Logic:**
501
+ * - Platform admins: Must include platform_key matching their permission scope
502
+ * - Super admins: Can use any combination of filters or none (global summary)
503
+ *
504
+ * **Examples:**
505
+ * ```
506
+ * # Platform admin viewing their platform
507
+ * GET /api/analytics/financial/invoice?platform_key=web-app
508
+ *
509
+ * # Platform admin viewing specific user in their platform
510
+ * GET /api/analytics/financial/invoice?platform_key=web-app&username=john.doe
511
+ *
512
+ * # Super admin viewing specific user across all platforms
513
+ * GET /api/analytics/financial/invoice?username=john.doe
514
+ *
515
+ * # Super admin viewing global summary
516
+ * GET /api/analytics/financial/invoice
517
+ * ```
518
+ *
519
+ * **Response Structure:**
520
+ * ```json
521
+ * {
522
+ * "entity": {
523
+ * "type": "user|platform|global",
524
+ * "username": "john.doe",
525
+ * "platform_key": "web-app",
526
+ * "platform_name": "Web Application",
527
+ * "display_name": "John Doe on Web Application"
528
+ * },
529
+ * "billing_period": {
530
+ * "start_date": "2025-01-01",
531
+ * "end_date": "2025-01-31",
532
+ * "days": 31
533
+ * },
534
+ * "summary": {
535
+ * "total_cost": 245.750,
536
+ * "total_sessions": 1250,
537
+ * "active_users": 85,
538
+ * "cost_per_session": 0.196
539
+ * },
540
+ * "breakdown": {
541
+ * "by_provider": [...],
542
+ * "by_mentor": [...],
543
+ * "by_action": [...]
544
+ * }
545
+ * }
546
+ * ```
547
+ * @returns InvoiceReportResponse
548
+ * @throws ApiError
549
+ */
550
+ public static analyticsFinancialInvoiceRetrieve({
551
+ endDate,
552
+ includeBreakdown = true,
553
+ platformKey,
554
+ startDate,
555
+ username,
556
+ }: {
557
+ /**
558
+ * End date for billing period (defaults to today)
559
+ */
560
+ endDate?: string,
561
+ /**
562
+ * Whether to include provider and mentor breakdown
563
+ */
564
+ includeBreakdown?: boolean,
565
+ /**
566
+ * Platform key to filter by (optional, required for platform admins)
567
+ */
568
+ platformKey?: string,
569
+ /**
570
+ * Start date for billing period (defaults to 30 days ago)
571
+ */
572
+ startDate?: string,
573
+ /**
574
+ * Username to generate invoice for (optional)
575
+ */
576
+ username?: string,
577
+ }): CancelablePromise<InvoiceReportResponse> {
578
+ return __request(OpenAPI, {
579
+ method: 'GET',
580
+ url: '/api/analytics/financial/invoice/',
581
+ query: {
582
+ 'end_date': endDate,
583
+ 'include_breakdown': includeBreakdown,
584
+ 'platform_key': platformKey,
585
+ 'start_date': startDate,
586
+ 'username': username,
587
+ },
588
+ errors: {
589
+ 400: `Bad Request – invalid parameters`,
590
+ 403: `Forbidden – insufficient permissions`,
591
+ 404: `No data found`,
592
+ 500: `Internal Server Error`,
593
+ },
594
+ });
595
+ }
596
+ /**
597
+ * Unified API endpoint for learner analytics.
598
+ *
599
+ * This endpoint provides either:
600
+ * 1. Cross-platform summary (when only username is provided)
601
+ * 2. Platform-specific detailed data (when username + platform_key are provided)
602
+ *
603
+ * Query params:
604
+ * - username (required): Username of the learner
605
+ * - platform_key (optional): Platform key for platform-specific data
606
+ * - page (optional): Page number (default: 1)
607
+ * - limit (optional): Records per page (default: 20, max: 100)
608
+ *
609
+ * Returns:
610
+ * - If platform_key provided: Detailed platform metrics
611
+ * - If no platform_key: Cross-platform summary with pagination
612
+ * @returns LearnerAnalyticsResponse
613
+ * @throws ApiError
614
+ */
615
+ public static analyticsLearnersRetrieve({
616
+ limit = 20,
617
+ page = 1,
618
+ platformKey,
619
+ username,
620
+ }: {
621
+ /**
622
+ * Number of records per page (default: 20, max: 100)
623
+ */
624
+ limit?: number,
625
+ /**
626
+ * Page number (default: 1)
627
+ */
628
+ page?: number,
629
+ /**
630
+ * Optional platform key - if provided, returns platform-specific detailed data
631
+ */
632
+ platformKey?: string,
633
+ /**
634
+ * Username of the learner to get analytics for. Defaults to self if not provided.
635
+ */
636
+ username?: string,
637
+ }): CancelablePromise<LearnerAnalyticsResponse> {
638
+ return __request(OpenAPI, {
639
+ method: 'GET',
640
+ url: '/api/analytics/learners/',
641
+ query: {
642
+ 'limit': limit,
643
+ 'page': page,
644
+ 'platform_key': platformKey,
645
+ 'username': username,
646
+ },
647
+ });
648
+ }
649
+ /**
650
+ * Conversation list endpoint for analytics.
651
+ *
652
+ * Query params (all optional unless specified by permissions):
653
+ * - platform_key: filter by platform
654
+ * - mentor_unique_id: filter by mentor
655
+ * - page: page number (default 1)
656
+ * - limit: page size (default 20, max 100)
657
+ * - search: search in user name and first user message
658
+ * - min_messages, max_messages: message_count range
659
+ * - sentiment: positive|negative|neutral
660
+ * - topic: topic name contains
661
+ * - start_date, end_date: date filter on conversation date
662
+ *
663
+ * Returns: summary totals, results list (paginated), and pagination metadata.
664
+ * @returns ConversationListResponse
665
+ * @throws ApiError
666
+ */
667
+ public static analyticsMessagesRetrieve({
668
+ endDate,
669
+ limit = 20,
670
+ maxMessages,
671
+ mentorUniqueId,
672
+ minMessages,
673
+ page = 1,
674
+ platformKey,
675
+ search,
676
+ sentiment,
677
+ startDate,
678
+ topic,
679
+ }: {
680
+ endDate?: string,
681
+ limit?: number,
682
+ maxMessages?: number,
683
+ mentorUniqueId?: string,
684
+ minMessages?: number,
685
+ page?: number,
686
+ platformKey?: string,
687
+ search?: string,
688
+ /**
689
+ * * `positive` - positive
690
+ * * `negative` - negative
691
+ * * `neutral` - neutral
692
+ */
693
+ sentiment?: 'positive' | 'negative' | 'neutral',
694
+ startDate?: string,
695
+ topic?: string,
696
+ }): CancelablePromise<ConversationListResponse> {
697
+ return __request(OpenAPI, {
698
+ method: 'GET',
699
+ url: '/api/analytics/messages/',
700
+ query: {
701
+ 'end_date': endDate,
702
+ 'limit': limit,
703
+ 'max_messages': maxMessages,
704
+ 'mentor_unique_id': mentorUniqueId,
705
+ 'min_messages': minMessages,
706
+ 'page': page,
707
+ 'platform_key': platformKey,
708
+ 'search': search,
709
+ 'sentiment': sentiment,
710
+ 'start_date': startDate,
711
+ 'topic': topic,
712
+ },
713
+ });
714
+ }
715
+ /**
716
+ * Conversation detail endpoint for analytics.
717
+ *
718
+ * Query params:
719
+ * - session_id (required): UUID of the session to fetch
720
+ * - platform_key, mentor_unique_id (optional): further scope
721
+ * - start_date, end_date (optional): date filter on message timestamps
722
+ *
723
+ * Returns: summary metadata from conversation_list MV, and a list of
724
+ * human/ai message pairs in chronological order.
725
+ * @returns ConversationDetailResponse
726
+ * @throws ApiError
727
+ */
728
+ public static analyticsMessagesDetailsRetrieve({
729
+ sessionId,
730
+ endDate,
731
+ mentorUniqueId,
732
+ platformKey,
733
+ startDate,
734
+ }: {
735
+ sessionId: string,
736
+ endDate?: string,
737
+ mentorUniqueId?: string,
738
+ platformKey?: string,
739
+ startDate?: string,
740
+ }): CancelablePromise<ConversationDetailResponse> {
741
+ return __request(OpenAPI, {
742
+ method: 'GET',
743
+ url: '/api/analytics/messages/details/',
744
+ query: {
745
+ 'end_date': endDate,
746
+ 'mentor_unique_id': mentorUniqueId,
747
+ 'platform_key': platformKey,
748
+ 'session_id': sessionId,
749
+ 'start_date': startDate,
750
+ },
751
+ });
752
+ }
753
+ /**
754
+ * Ratings overtime endpoint.
755
+ *
756
+ * Query params:
757
+ * - metric: only 'ratings' is supported (default)
758
+ * - platform_key, mentor_unique_id: optional filters
759
+ * - granularity: 'day' (default) or 'hour' (hour only for today)
760
+ * - start_date, end_date: optional date range; defaults applied if not provided
761
+ *
762
+ * Returns: { metric: 'ratings', points: [{date, value}, ...] }
763
+ * @returns RatingsOvertime
764
+ * @throws ApiError
765
+ */
766
+ public static analyticsRatingsRetrieve({
767
+ dateFilter = 'today',
768
+ endDate,
769
+ granularity = 'hour',
770
+ mentorUniqueId,
771
+ metric = 'ratings',
772
+ platformKey,
773
+ startDate,
774
+ }: {
775
+ /**
776
+ * * `today` - Today only
777
+ * * `7d` - Last 7 days
778
+ * * `30d` - Last 30 days
779
+ * * `90d` - Last 90 days
780
+ * * `all_time` - All time
781
+ * * `custom` - Custom date range
782
+ */
783
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
784
+ endDate?: string,
785
+ /**
786
+ * * `day` - day
787
+ * * `hour` - hour
788
+ * * `week` - week
789
+ * * `month` - month
790
+ */
791
+ granularity?: 'day' | 'hour' | 'week' | 'month',
792
+ mentorUniqueId?: string,
793
+ /**
794
+ * * `ratings` - Ratings over time
795
+ */
796
+ metric?: 'ratings',
797
+ platformKey?: string,
798
+ startDate?: string,
799
+ }): CancelablePromise<RatingsOvertime> {
800
+ return __request(OpenAPI, {
801
+ method: 'GET',
802
+ url: '/api/analytics/ratings/',
803
+ query: {
804
+ 'date_filter': dateFilter,
805
+ 'end_date': endDate,
806
+ 'granularity': granularity,
807
+ 'mentor_unique_id': mentorUniqueId,
808
+ 'metric': metric,
809
+ 'platform_key': platformKey,
810
+ 'start_date': startDate,
811
+ },
812
+ });
813
+ }
814
+ /**
815
+ * @returns SessionsChart
816
+ * @throws ApiError
817
+ */
818
+ public static analyticsSessionsRetrieve({
819
+ dateFilter = 'today',
820
+ endDate,
821
+ granularity = 'hour',
822
+ mentorUniqueId,
823
+ metric = 'sessions',
824
+ platformKey,
825
+ startDate,
826
+ }: {
827
+ /**
828
+ * * `today` - Today only
829
+ * * `7d` - Last 7 days
830
+ * * `30d` - Last 30 days
831
+ * * `90d` - Last 90 days
832
+ * * `all_time` - All time
833
+ * * `custom` - Custom date range
834
+ */
835
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
836
+ endDate?: string,
837
+ /**
838
+ * * `day` - day
839
+ * * `hour` - hour
840
+ * * `week` - week
841
+ * * `month` - month
842
+ */
843
+ granularity?: 'day' | 'hour' | 'week' | 'month',
844
+ mentorUniqueId?: string,
845
+ /**
846
+ * * `sessions` - Sessions over time
847
+ * * `headline` - Headline metrics for sessions (avg messages per session, avg rating)
848
+ */
849
+ metric?: 'sessions' | 'headline',
850
+ platformKey?: string,
851
+ startDate?: string,
852
+ }): CancelablePromise<SessionsChart> {
853
+ return __request(OpenAPI, {
854
+ method: 'GET',
855
+ url: '/api/analytics/sessions/',
856
+ query: {
857
+ 'date_filter': dateFilter,
858
+ 'end_date': endDate,
859
+ 'granularity': granularity,
860
+ 'mentor_unique_id': mentorUniqueId,
861
+ 'metric': metric,
862
+ 'platform_key': platformKey,
863
+ 'start_date': startDate,
864
+ },
865
+ });
866
+ }
867
+ /**
868
+ * @returns TopicDetails
869
+ * @throws ApiError
870
+ */
871
+ public static analyticsSessionsDetailsRetrieve({
872
+ dateFilter = 'today',
873
+ endDate,
874
+ limit = 20,
875
+ mentorUniqueId,
876
+ page = 1,
877
+ platformKey,
878
+ search,
879
+ startDate,
880
+ }: {
881
+ /**
882
+ * * `today` - Today only
883
+ * * `7d` - Last 7 days
884
+ * * `30d` - Last 30 days
885
+ * * `90d` - Last 90 days
886
+ * * `all_time` - All time
887
+ * * `custom` - Custom date range
888
+ */
889
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
890
+ endDate?: string,
891
+ limit?: number,
892
+ mentorUniqueId?: string,
893
+ page?: number,
894
+ platformKey?: string,
895
+ /**
896
+ * Search by topic name
897
+ */
898
+ search?: string,
899
+ startDate?: string,
900
+ }): CancelablePromise<TopicDetails> {
901
+ return __request(OpenAPI, {
902
+ method: 'GET',
903
+ url: '/api/analytics/sessions/details/',
904
+ query: {
905
+ 'date_filter': dateFilter,
906
+ 'end_date': endDate,
907
+ 'limit': limit,
908
+ 'mentor_unique_id': mentorUniqueId,
909
+ 'page': page,
910
+ 'platform_key': platformKey,
911
+ 'search': search,
912
+ 'start_date': startDate,
913
+ },
914
+ });
915
+ }
916
+ /**
917
+ *
918
+ * Time Analytics API - User activity patterns by time of day and day of week.
919
+ *
920
+ * Provides heatmap data showing when users are most active, useful for:
921
+ * - Understanding peak usage times
922
+ * - Capacity planning and resource allocation
923
+ * - User behavior analysis
924
+ * - Support scheduling optimization
925
+ *
926
+ * **Key Features:**
927
+ * - Day of week patterns (0=Sunday through 6=Saturday)
928
+ * - Hour of day activity levels (0-23)
929
+ * - Flexible date range filtering
930
+ * - Platform and mentor-specific filtering
931
+ * - Message count aggregation
932
+ *
933
+ * **Data Structure:**
934
+ * - `day_of_week`: 0-6 (Sunday-Saturday)
935
+ * - `hour`: 0-23 (24-hour format)
936
+ * - `value`: Message count for that time slot
937
+ *
938
+ * @returns AccessTimesHeatmap Access times heatmap data with day/hour patterns
939
+ * @throws ApiError
940
+ */
941
+ public static analyticsTimeRetrieve({
942
+ dateFilter = 'today',
943
+ endDate,
944
+ granularity = 'hour',
945
+ mentorUniqueId,
946
+ platformKey,
947
+ startDate,
948
+ }: {
949
+ /**
950
+ * * `today` - Today only
951
+ * * `7d` - Last 7 days
952
+ * * `30d` - Last 30 days
953
+ * * `90d` - Last 90 days
954
+ * * `all_time` - All time
955
+ * * `custom` - Custom date range
956
+ */
957
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
958
+ endDate?: string,
959
+ /**
960
+ * * `day` - day
961
+ * * `hour` - hour
962
+ * * `week` - week
963
+ * * `month` - month
964
+ */
965
+ granularity?: 'day' | 'hour' | 'week' | 'month',
966
+ mentorUniqueId?: string,
967
+ platformKey?: string,
968
+ startDate?: string,
969
+ }): CancelablePromise<AccessTimesHeatmap> {
970
+ return __request(OpenAPI, {
971
+ method: 'GET',
972
+ url: '/api/analytics/time/',
973
+ query: {
974
+ 'date_filter': dateFilter,
975
+ 'end_date': endDate,
976
+ 'granularity': granularity,
977
+ 'mentor_unique_id': mentorUniqueId,
978
+ 'platform_key': platformKey,
979
+ 'start_date': startDate,
980
+ },
981
+ errors: {
982
+ 400: `Bad Request - Invalid parameters`,
983
+ 403: `Forbidden - Insufficient permissions`,
984
+ 500: `Internal Server Error`,
985
+ },
986
+ });
987
+ }
988
+ /**
989
+ * @returns TopicsOverview
990
+ * @throws ApiError
991
+ */
992
+ public static analyticsTopicsRetrieve({
993
+ dateFilter = 'today',
994
+ endDate,
995
+ granularity = 'hour',
996
+ mentorUniqueId,
997
+ metric = 'overview',
998
+ platformKey,
999
+ startDate,
1000
+ }: {
1001
+ /**
1002
+ * * `today` - Today only
1003
+ * * `7d` - Last 7 days
1004
+ * * `30d` - Last 30 days
1005
+ * * `90d` - Last 90 days
1006
+ * * `all_time` - All time
1007
+ * * `custom` - Custom date range
1008
+ */
1009
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1010
+ endDate?: string,
1011
+ /**
1012
+ * * `day` - day
1013
+ * * `hour` - hour
1014
+ * * `week` - week
1015
+ * * `month` - month
1016
+ */
1017
+ granularity?: 'day' | 'hour' | 'week' | 'month',
1018
+ mentorUniqueId?: string,
1019
+ /**
1020
+ * * `overview` - Overall topic metrics
1021
+ * * `sessions` - Sessions over time
1022
+ * * `ratings` - Ratings over time
1023
+ * * `highlighted` - Highlighted topics
1024
+ */
1025
+ metric?: 'overview' | 'sessions' | 'ratings' | 'highlighted',
1026
+ platformKey?: string,
1027
+ startDate?: string,
1028
+ }): CancelablePromise<TopicsOverview> {
1029
+ return __request(OpenAPI, {
1030
+ method: 'GET',
1031
+ url: '/api/analytics/topics/',
1032
+ query: {
1033
+ 'date_filter': dateFilter,
1034
+ 'end_date': endDate,
1035
+ 'granularity': granularity,
1036
+ 'mentor_unique_id': mentorUniqueId,
1037
+ 'metric': metric,
1038
+ 'platform_key': platformKey,
1039
+ 'start_date': startDate,
1040
+ },
1041
+ });
1042
+ }
1043
+ /**
1044
+ * @returns TopicDetails
1045
+ * @throws ApiError
1046
+ */
1047
+ public static analyticsTopicsDetailsRetrieve({
1048
+ dateFilter = 'today',
1049
+ endDate,
1050
+ limit = 20,
1051
+ mentorUniqueId,
1052
+ page = 1,
1053
+ platformKey,
1054
+ search,
1055
+ startDate,
1056
+ }: {
1057
+ /**
1058
+ * * `today` - Today only
1059
+ * * `7d` - Last 7 days
1060
+ * * `30d` - Last 30 days
1061
+ * * `90d` - Last 90 days
1062
+ * * `all_time` - All time
1063
+ * * `custom` - Custom date range
1064
+ */
1065
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1066
+ endDate?: string,
1067
+ limit?: number,
1068
+ mentorUniqueId?: string,
1069
+ page?: number,
1070
+ platformKey?: string,
1071
+ /**
1072
+ * Search by topic name
1073
+ */
1074
+ search?: string,
1075
+ startDate?: string,
1076
+ }): CancelablePromise<TopicDetails> {
1077
+ return __request(OpenAPI, {
1078
+ method: 'GET',
1079
+ url: '/api/analytics/topics/details/',
1080
+ query: {
1081
+ 'date_filter': dateFilter,
1082
+ 'end_date': endDate,
1083
+ 'limit': limit,
1084
+ 'mentor_unique_id': mentorUniqueId,
1085
+ 'page': page,
1086
+ 'platform_key': platformKey,
1087
+ 'search': search,
1088
+ 'start_date': startDate,
1089
+ },
1090
+ });
1091
+ }
1092
+ /**
1093
+ *
1094
+ * User Analytics API - Comprehensive user activity metrics and trends.
1095
+ *
1096
+ * Provides real-time and historical user analytics including:
1097
+ * - Currently active users (last hour)
1098
+ * - Active users over time periods (7d, 30d, 90d)
1099
+ * - Registered user counts and growth
1100
+ * - Time series charts with customizable granularity
1101
+ *
1102
+ * **Key Features:**
1103
+ * - Real-time active user counting
1104
+ * - Percentage change calculations vs previous periods
1105
+ * - Flexible date filtering and granularity
1106
+ * - Platform and mentor-specific filtering
1107
+ * - Forward-filled time series data
1108
+ *
1109
+ * **Supported Metrics:**
1110
+ * - `currently_active`: Users active in last hour
1111
+ * - `active_users`: Unique users in specified period
1112
+ * - `registered_users`: Total and new user counts
1113
+ *
1114
+ * @returns CurrentUsersResponse User analytics metrics with comparison data
1115
+ * @throws ApiError
1116
+ */
1117
+ public static analyticsUsersRetrieve({
1118
+ metric,
1119
+ dateFilter = 'today',
1120
+ endDate,
1121
+ granularity = 'hour',
1122
+ mentorUniqueId,
1123
+ platformKey,
1124
+ startDate,
1125
+ }: {
1126
+ /**
1127
+ * * `currently_active` - Users logged in right now
1128
+ * * `active_users` - Active users in a period
1129
+ * * `registered_users` - Registered users
1130
+ * * `active_users_last_30d` - Active users in the last 30 days
1131
+ */
1132
+ metric: 'currently_active' | 'active_users' | 'registered_users' | 'active_users_last_30d',
1133
+ /**
1134
+ * * `today` - Today only
1135
+ * * `7d` - Last 7 days
1136
+ * * `30d` - Last 30 days
1137
+ * * `90d` - Last 90 days
1138
+ * * `all_time` - All time
1139
+ * * `custom` - Custom date range
1140
+ */
1141
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1142
+ endDate?: string,
1143
+ /**
1144
+ * * `day` - day
1145
+ * * `hour` - hour
1146
+ * * `week` - week
1147
+ * * `month` - month
1148
+ */
1149
+ granularity?: 'day' | 'hour' | 'week' | 'month',
1150
+ mentorUniqueId?: string,
1151
+ platformKey?: string,
1152
+ startDate?: string,
1153
+ }): CancelablePromise<CurrentUsersResponse> {
1154
+ return __request(OpenAPI, {
1155
+ method: 'GET',
1156
+ url: '/api/analytics/users/',
1157
+ query: {
1158
+ 'date_filter': dateFilter,
1159
+ 'end_date': endDate,
1160
+ 'granularity': granularity,
1161
+ 'mentor_unique_id': mentorUniqueId,
1162
+ 'metric': metric,
1163
+ 'platform_key': platformKey,
1164
+ 'start_date': startDate,
1165
+ },
1166
+ errors: {
1167
+ 400: `Bad Request - Invalid parameters`,
1168
+ 403: `Forbidden - Insufficient permissions`,
1169
+ 500: `Internal Server Error`,
1170
+ },
1171
+ });
1172
+ }
1173
+ /**
1174
+ *
1175
+ * User Details API - Comprehensive user activity details with search and filtering.
1176
+ *
1177
+ * Provides detailed user information including:
1178
+ * - User contact information (email, full name)
1179
+ * - Activity metrics (message count, last activity)
1180
+ * - Search functionality across multiple fields
1181
+ * - Flexible date range filtering
1182
+ * - CSV export capability
1183
+ *
1184
+ * **Key Features:**
1185
+ * - Full-text search across email, name, and user ID
1186
+ * - Date range filtering for activity periods
1187
+ * - Platform and mentor-specific filtering
1188
+ * - Comprehensive pagination with metadata
1189
+ * - CSV export for data analysis
1190
+ * - User aggregation across platforms/mentors
1191
+ *
1192
+ * **Search Capabilities:**
1193
+ * - Email address matching
1194
+ * - Full name search
1195
+ * - User ID lookup
1196
+ * - Partial string matching (case-insensitive)
1197
+ *
1198
+ * **Export Options:**
1199
+ * - JSON response (default)
1200
+ * - CSV export (?export=csv)
1201
+ * - Includes all user fields in export
1202
+ *
1203
+ * @returns UserDetail Paginated user details with activity metrics
1204
+ * @throws ApiError
1205
+ */
1206
+ public static analyticsUsersDetailsRetrieve({
1207
+ dateFilter = 'today',
1208
+ endDate,
1209
+ limit = 20,
1210
+ mentorUniqueId,
1211
+ page = 1,
1212
+ platformKey,
1213
+ search,
1214
+ startDate,
1215
+ }: {
1216
+ /**
1217
+ * * `today` - Today only
1218
+ * * `7d` - Last 7 days
1219
+ * * `30d` - Last 30 days
1220
+ * * `90d` - Last 90 days
1221
+ * * `all_time` - All time
1222
+ * * `custom` - Custom date range
1223
+ */
1224
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
1225
+ endDate?: string,
1226
+ limit?: number,
1227
+ mentorUniqueId?: string,
1228
+ page?: number,
1229
+ platformKey?: string,
1230
+ /**
1231
+ * Search by email, full name, or user ID
1232
+ */
1233
+ search?: string,
1234
+ startDate?: string,
1235
+ }): CancelablePromise<UserDetail> {
1236
+ return __request(OpenAPI, {
1237
+ method: 'GET',
1238
+ url: '/api/analytics/users/details/',
1239
+ query: {
1240
+ 'date_filter': dateFilter,
1241
+ 'end_date': endDate,
1242
+ 'limit': limit,
1243
+ 'mentor_unique_id': mentorUniqueId,
1244
+ 'page': page,
1245
+ 'platform_key': platformKey,
1246
+ 'search': search,
1247
+ 'start_date': startDate,
1248
+ },
1249
+ errors: {
1250
+ 400: `Bad Request - Invalid parameters`,
1251
+ 403: `Forbidden - Insufficient permissions`,
1252
+ 500: `Internal Server Error`,
1253
+ },
1254
+ });
1255
+ }
1256
+ }