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