@iblai/iblai-api 3.58.0-core → 3.59.0-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (653) hide show
  1. package/dist/index.cjs.js +27088 -11660
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +27078 -11642
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +27088 -11660
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +296 -28
  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/APITokenCost.d.ts +14 -0
  12. package/dist/types/models/AccessEnum.d.ts +8 -0
  13. package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
  14. package/dist/types/models/AnalyticsOverview.d.ts +7 -0
  15. package/dist/types/models/Answer.d.ts +11 -0
  16. package/dist/types/models/AssumedKnowledge.d.ts +4 -0
  17. package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
  18. package/dist/types/models/AudioToTextRequest.d.ts +3 -0
  19. package/dist/types/models/AudioToTextResponse.d.ts +3 -0
  20. package/dist/types/models/CallAuthenticationRequest.d.ts +13 -0
  21. package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
  22. package/dist/types/models/CallConfiguration.d.ts +26 -0
  23. package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
  24. package/dist/types/models/ChatHistory.d.ts +8 -0
  25. package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
  26. package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
  27. package/dist/types/models/ChatHistoryItem.d.ts +5 -0
  28. package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
  29. package/dist/types/models/ChatSessionRequest.d.ts +10 -0
  30. package/dist/types/models/ChatSessionResponse.d.ts +5 -0
  31. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
  32. package/dist/types/models/ComponentBlock.d.ts +9 -0
  33. package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
  34. package/dist/types/models/ConversationMessage.d.ts +11 -0
  35. package/dist/types/models/ConversationRating.d.ts +6 -0
  36. package/dist/types/models/ConversationSummary.d.ts +5 -0
  37. package/dist/types/models/ConversationVolume.d.ts +4 -0
  38. package/dist/types/models/Conversations.d.ts +28 -0
  39. package/dist/types/models/Cost.d.ts +3 -0
  40. package/dist/types/models/CostPerTenant.d.ts +6 -0
  41. package/dist/types/models/CourseCreationTask.d.ts +31 -0
  42. package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
  43. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
  44. package/dist/types/models/CredentialRequest.d.ts +14 -0
  45. package/dist/types/models/CrontabSchedule.d.ts +22 -0
  46. package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
  47. package/dist/types/models/DateRange.d.ts +4 -0
  48. package/dist/types/models/Document.d.ts +41 -0
  49. package/dist/types/models/DocumentFacet.d.ts +17 -0
  50. package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
  51. package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
  52. package/dist/types/models/EdxCourse.d.ts +11 -0
  53. package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
  54. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
  55. package/dist/types/models/EmailPromptDetail.d.ts +13 -0
  56. package/dist/types/models/EmailPromptList.d.ts +11 -0
  57. package/dist/types/models/EmailPromptSummary.d.ts +5 -0
  58. package/dist/types/models/FreeUsageCount.d.ts +3 -0
  59. package/dist/types/models/FullCourse.d.ts +13 -0
  60. package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
  61. package/dist/types/models/GuidedPromptsResponse.d.ts +3 -0
  62. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
  63. package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
  64. package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
  65. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
  66. package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
  67. package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
  68. package/dist/types/models/IBLAIPlatformMeta.d.ts +3 -0
  69. package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +6 -0
  70. package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +10 -0
  71. package/dist/types/models/InputQuestion.d.ts +6 -0
  72. package/dist/types/models/IntegrationCredential.d.ts +8 -0
  73. package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
  74. package/dist/types/models/JobRun.d.ts +11 -0
  75. package/dist/types/models/KindEnum.d.ts +10 -0
  76. package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
  77. package/dist/types/models/LLMCredentialResponse.d.ts +8 -0
  78. package/dist/types/models/LLMModelForTenant.d.ts +6 -0
  79. package/dist/types/models/LLMQuestion.d.ts +15 -0
  80. package/dist/types/models/LLMResponse.d.ts +14 -0
  81. package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
  82. package/dist/types/models/LanguagesView.d.ts +5 -0
  83. package/dist/types/models/LinkCourseRequest.d.ts +3 -0
  84. package/dist/types/models/LinkCourseResponse.d.ts +5 -0
  85. package/dist/types/models/LlmProviderEnum.d.ts +8 -0
  86. package/dist/types/models/MCPServer.d.ts +21 -0
  87. package/dist/types/models/MemoryComponentData.d.ts +5 -0
  88. package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
  89. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
  90. package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
  91. package/dist/types/models/MemoryProgress.d.ts +8 -0
  92. package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
  93. package/dist/types/models/MemoryStatusView.d.ts +6 -0
  94. package/dist/types/models/Mentor.d.ts +87 -0
  95. package/dist/types/models/MentorAudience.d.ts +5 -0
  96. package/dist/types/models/MentorCategory.d.ts +9 -0
  97. package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
  98. package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
  99. package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
  100. package/dist/types/models/MentorCreate.d.ts +84 -0
  101. package/dist/types/models/MentorCustomVoice.d.ts +4 -0
  102. package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
  103. package/dist/types/models/MentorData.d.ts +7 -0
  104. package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
  105. package/dist/types/models/MentorEval.d.ts +11 -0
  106. package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
  107. package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
  108. package/dist/types/models/MentorEvalReport.d.ts +10 -0
  109. package/dist/types/models/MentorEvalRequest.d.ts +8 -0
  110. package/dist/types/models/MentorFacet.d.ts +17 -0
  111. package/dist/types/models/MentorFork.d.ts +5 -0
  112. package/dist/types/models/MentorFromTemplateRequest.d.ts +4 -0
  113. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +47 -0
  114. package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
  115. package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
  116. package/dist/types/models/MentorMetadata.d.ts +5 -0
  117. package/dist/types/models/MentorScenario.d.ts +6 -0
  118. package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
  119. package/dist/types/models/MentorSearchResponse.d.ts +35 -0
  120. package/dist/types/models/MentorSession.d.ts +4 -0
  121. package/dist/types/models/MentorSettings.d.ts +60 -0
  122. package/dist/types/models/MentorSettingsPublic.d.ts +46 -0
  123. package/dist/types/models/MentorSettingsRequest.d.ts +62 -0
  124. package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
  125. package/dist/types/models/MentorWizard.d.ts +4 -0
  126. package/dist/types/models/MessageStatistics.d.ts +5 -0
  127. package/dist/types/models/MessageView.d.ts +10 -0
  128. package/dist/types/models/MessageViewRequest.d.ts +7 -0
  129. package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
  130. package/dist/types/models/Metadata.d.ts +5 -0
  131. package/dist/types/models/MetricChange.d.ts +4 -0
  132. package/dist/types/models/ModelCost.d.ts +4 -0
  133. package/dist/types/models/ModerationLog.d.ts +11 -0
  134. package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
  135. package/dist/types/models/NotificationSource.d.ts +2 -2
  136. package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
  137. package/dist/types/models/NullEnum.d.ts +1 -0
  138. package/dist/types/models/Observation.d.ts +31 -0
  139. package/dist/types/models/PageContent.d.ts +6 -0
  140. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
  141. package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
  142. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
  143. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
  144. package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
  145. package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
  146. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
  147. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
  148. package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
  149. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  150. package/dist/types/models/PaginatedMentorList.d.ts +7 -0
  151. package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
  152. package/dist/types/models/PaginatedObservationList.d.ts +7 -0
  153. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
  154. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
  155. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
  156. package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
  157. package/dist/types/models/PaginatedSectionList.d.ts +7 -0
  158. package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
  159. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
  160. package/dist/types/models/PaginatedTraceList.d.ts +7 -0
  161. package/dist/types/models/PaginatedUnitList.d.ts +7 -0
  162. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
  163. package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
  164. package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
  165. package/dist/types/models/PatchedConversations.d.ts +28 -0
  166. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
  167. package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
  168. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
  169. package/dist/types/models/PatchedMCPServer.d.ts +21 -0
  170. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
  171. package/dist/types/models/PatchedMentorCreate.d.ts +84 -0
  172. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
  173. package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
  174. package/dist/types/models/PatchedPrompt.d.ts +22 -0
  175. package/dist/types/models/PatchedSection.d.ts +9 -0
  176. package/dist/types/models/PatchedSubSection.d.ts +9 -0
  177. package/dist/types/models/PatchedUnit.d.ts +11 -0
  178. package/dist/types/models/PeriodicAgent.d.ts +42 -0
  179. package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
  180. package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
  181. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
  182. package/dist/types/models/PeriodicTask.d.ts +21 -0
  183. package/dist/types/models/PieChartData.d.ts +5 -0
  184. package/dist/types/models/PieChartSegment.d.ts +4 -0
  185. package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
  186. package/dist/types/models/PinnedMessageGet.d.ts +7 -0
  187. package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
  188. package/dist/types/models/PlayWrightScript.d.ts +12 -0
  189. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
  190. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
  191. package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
  192. package/dist/types/models/Prompt.d.ts +22 -0
  193. package/dist/types/models/PromptCategory.d.ts +7 -0
  194. package/dist/types/models/PromptFacet.d.ts +17 -0
  195. package/dist/types/models/PromptSearchResponse.d.ts +35 -0
  196. package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
  197. package/dist/types/models/ProviderEnum.d.ts +10 -0
  198. package/dist/types/models/QuestionCardTag.d.ts +8 -0
  199. package/dist/types/models/QuestionRequest.d.ts +15 -0
  200. package/dist/types/models/QuestionResponse.d.ts +10 -0
  201. package/dist/types/models/RatingEnum.d.ts +8 -0
  202. package/dist/types/models/RatingRecord.d.ts +4 -0
  203. package/dist/types/models/RecentlyAccessedMentor.d.ts +8 -0
  204. package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
  205. package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
  206. package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
  207. package/dist/types/models/RelatedText.d.ts +3 -0
  208. package/dist/types/models/RequestDataVariable.d.ts +14 -0
  209. package/dist/types/models/ResourceScrappedData.d.ts +13 -0
  210. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
  211. package/dist/types/models/ResponseDataVariable.d.ts +14 -0
  212. package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
  213. package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
  214. package/dist/types/models/RetrieveTask.d.ts +3 -0
  215. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +27 -0
  216. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +58 -0
  217. package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
  218. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
  219. package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
  220. package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
  221. package/dist/types/models/RunMentorEval.d.ts +3 -0
  222. package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
  223. package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
  224. package/dist/types/models/Section.d.ts +9 -0
  225. package/dist/types/models/SectionWithChildren.d.ts +11 -0
  226. package/dist/types/models/SeedMentorsView.d.ts +3 -0
  227. package/dist/types/models/SentimentSummary.d.ts +4 -0
  228. package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
  229. package/dist/types/models/SessionDetail.d.ts +6 -0
  230. package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
  231. package/dist/types/models/ShellLogs.d.ts +3 -0
  232. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
  233. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
  234. package/dist/types/models/StarMentor.d.ts +7 -0
  235. package/dist/types/models/Status6eeEnum.d.ts +12 -0
  236. package/dist/types/models/Step.d.ts +9 -0
  237. package/dist/types/models/StepStatusEnum.d.ts +10 -0
  238. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
  239. package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
  240. package/dist/types/models/SttProviderEnum.d.ts +12 -0
  241. package/dist/types/models/StudentChatMessage.d.ts +4 -0
  242. package/dist/types/models/StylesView.d.ts +4 -0
  243. package/dist/types/models/SubSection.d.ts +9 -0
  244. package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
  245. package/dist/types/models/TagsView.d.ts +5 -0
  246. package/dist/types/models/TargetSystemEnum.d.ts +8 -0
  247. package/dist/types/models/TaskView.d.ts +3 -0
  248. package/dist/types/models/TemplateMentor.d.ts +9 -0
  249. package/dist/types/models/TenantMentorTraces.d.ts +6 -0
  250. package/dist/types/models/ThemeEnum.d.ts +8 -0
  251. package/dist/types/models/TonesView.d.ts +4 -0
  252. package/dist/types/models/ToolResponse.d.ts +11 -0
  253. package/dist/types/models/TopicModel.d.ts +3 -0
  254. package/dist/types/models/TopicRecord.d.ts +4 -0
  255. package/dist/types/models/TopicStatistics.d.ts +7 -0
  256. package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
  257. package/dist/types/models/TopicSummaryView.d.ts +4 -0
  258. package/dist/types/models/Trace.d.ts +17 -0
  259. package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
  260. package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
  261. package/dist/types/models/TrainDocumentViewRequest.d.ts +62 -0
  262. package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
  263. package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
  264. package/dist/types/models/TransportEnum.d.ts +8 -0
  265. package/dist/types/models/TrendEntry.d.ts +4 -0
  266. package/dist/types/models/TriggerRequest.d.ts +5 -0
  267. package/dist/types/models/TriggerResponse.d.ts +6 -0
  268. package/dist/types/models/TtsProviderEnum.d.ts +10 -0
  269. package/dist/types/models/TypeC42Enum.d.ts +8 -0
  270. package/dist/types/models/Unit.d.ts +11 -0
  271. package/dist/types/models/UnitWithChildren.d.ts +13 -0
  272. package/dist/types/models/UseMainCreds.d.ts +3 -0
  273. package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
  274. package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
  275. package/dist/types/models/UserChatByPeriod.d.ts +4 -0
  276. package/dist/types/models/UserChatFeedback.d.ts +14 -0
  277. package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
  278. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
  279. package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
  280. package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
  281. package/dist/types/models/UserCountRecord.d.ts +4 -0
  282. package/dist/types/models/UserEdxMemory.d.ts +15 -0
  283. package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
  284. package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
  285. package/dist/types/models/UserMetric.d.ts +4 -0
  286. package/dist/types/models/UserMetricsResponse.d.ts +7 -0
  287. package/dist/types/models/UserSentimentCountView.d.ts +4 -0
  288. package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
  289. package/dist/types/models/VectorResult.d.ts +8 -0
  290. package/dist/types/models/VideoCaption.d.ts +3 -0
  291. package/dist/types/models/Voice.d.ts +9 -0
  292. package/dist/types/models/WebResource.d.ts +9 -0
  293. package/dist/types/models/WebResourceCard.d.ts +7 -0
  294. package/dist/types/models/WebResourcesQuery.d.ts +3 -0
  295. package/dist/types/services/AiAccountService.d.ts +319 -0
  296. package/dist/types/services/AiAnalyticsService.d.ts +7034 -0
  297. package/dist/types/services/AiIndexService.d.ts +408 -0
  298. package/dist/types/services/AiMarketingService.d.ts +38 -0
  299. package/dist/types/services/AiMediaService.d.ts +122 -0
  300. package/dist/types/services/AiMentorService.d.ts +4937 -0
  301. package/dist/types/services/AiPromptService.d.ts +1034 -0
  302. package/dist/types/services/{ServiceService.d.ts → CommerceService.d.ts} +187 -1
  303. package/dist/types/services/CoreService.d.ts +215 -0
  304. package/dist/types/services/{MediaResourcesService.d.ts → MediaService.d.ts} +1 -1
  305. package/dist/types/services/{NotificationService.d.ts → NotificationsService.d.ts} +70 -1
  306. package/dist/types/services/{OrgsService.d.ts → ScimService.d.ts} +1 -1
  307. package/dist/types/services/SearchService.d.ts +718 -0
  308. package/package.json +1 -1
  309. package/src/core/OpenAPI.ts +1 -1
  310. package/src/index.ts +296 -28
  311. package/src/models/AIGeneratedImage.ts +18 -0
  312. package/src/models/AIUserProfileMemoryRelation.ts +9 -0
  313. package/src/models/AIUserProfileRequest.ts +9 -0
  314. package/src/models/APITokenCost.ts +19 -0
  315. package/src/models/AccessEnum.ts +12 -0
  316. package/src/models/AlignMentorBubbleEnum.ts +12 -0
  317. package/src/models/AnalyticsOverview.ts +12 -0
  318. package/src/models/Answer.ts +16 -0
  319. package/src/models/AssumedKnowledge.ts +9 -0
  320. package/src/models/AssumedKnowledgeLevel.ts +9 -0
  321. package/src/models/AudioToTextRequest.ts +8 -0
  322. package/src/models/AudioToTextResponse.ts +8 -0
  323. package/src/models/CallAuthenticationRequest.ts +18 -0
  324. package/src/models/CallAuthenticationResponse.ts +26 -0
  325. package/src/models/CallConfiguration.ts +31 -0
  326. package/src/models/CallConfigurationModeEnum.ts +12 -0
  327. package/src/models/ChatHistory.ts +13 -0
  328. package/src/models/ChatHistoryFilterData.ts +14 -0
  329. package/src/models/ChatHistoryFilterUser.ts +10 -0
  330. package/src/models/ChatHistoryItem.ts +10 -0
  331. package/src/models/ChatHistorySessionId.ts +8 -0
  332. package/src/models/ChatSessionRequest.ts +15 -0
  333. package/src/models/ChatSessionResponse.ts +10 -0
  334. package/src/models/CheckDocumentTrainingStatus.ts +15 -0
  335. package/src/models/ComponentBlock.ts +14 -0
  336. package/src/models/ComponentBlockTypeEnum.ts +12 -0
  337. package/src/models/ConversationMessage.ts +16 -0
  338. package/src/models/ConversationRating.ts +11 -0
  339. package/src/models/ConversationSummary.ts +10 -0
  340. package/src/models/ConversationVolume.ts +9 -0
  341. package/src/models/Conversations.ts +33 -0
  342. package/src/models/Cost.ts +8 -0
  343. package/src/models/CostPerTenant.ts +11 -0
  344. package/src/models/CourseCreationTask.ts +36 -0
  345. package/src/models/CourseCreationTaskFile.ts +12 -0
  346. package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
  347. package/src/models/CredentialRequest.ts +19 -0
  348. package/src/models/CrontabSchedule.ts +27 -0
  349. package/src/models/CustomInstructionResponse.ts +18 -0
  350. package/src/models/DateRange.ts +9 -0
  351. package/src/models/Document.ts +46 -0
  352. package/src/models/DocumentFacet.ts +22 -0
  353. package/src/models/DocumentSearchResponse.ts +40 -0
  354. package/src/models/DocumentSettingsResponse.ts +8 -0
  355. package/src/models/EdxCourse.ts +16 -0
  356. package/src/models/ElevenlabsCustomVoice.ts +9 -0
  357. package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
  358. package/src/models/EmailPromptDetail.ts +18 -0
  359. package/src/models/EmailPromptList.ts +16 -0
  360. package/src/models/EmailPromptSummary.ts +10 -0
  361. package/src/models/FreeUsageCount.ts +8 -0
  362. package/src/models/FullCourse.ts +18 -0
  363. package/src/models/GreetingMethodEnum.ts +12 -0
  364. package/src/models/GuidedPromptsResponse.ts +8 -0
  365. package/src/models/HeygenMarketingVideoDetail.ts +13 -0
  366. package/src/models/HeygenMarketingVideoList.ts +11 -0
  367. package/src/models/HeygenTemplateRequest.ts +10 -0
  368. package/src/models/HeygenTemplateResponseSingle.ts +11 -0
  369. package/src/models/HeygenVideoDetail.ts +13 -0
  370. package/src/models/HeygenVideoRequest.ts +10 -0
  371. package/src/models/IBLAIPlatformMeta.ts +8 -0
  372. package/src/models/IBLAIPlatformMetaRequest.ts +11 -0
  373. package/src/models/IBLAIPlatformMetaUpdateRequest.ts +15 -0
  374. package/src/models/InputQuestion.ts +11 -0
  375. package/src/models/IntegrationCredential.ts +13 -0
  376. package/src/models/IntialQuestionAnswer.ts +8 -0
  377. package/src/models/JobRun.ts +16 -0
  378. package/src/models/KindEnum.ts +14 -0
  379. package/src/models/LLMCredentialRequest.ts +19 -0
  380. package/src/models/LLMCredentialResponse.ts +13 -0
  381. package/src/models/LLMModelForTenant.ts +11 -0
  382. package/src/models/LLMQuestion.ts +20 -0
  383. package/src/models/LLMResponse.ts +19 -0
  384. package/src/models/LLMTracesListResponse.ts +10 -0
  385. package/src/models/LanguagesView.ts +10 -0
  386. package/src/models/LinkCourseRequest.ts +8 -0
  387. package/src/models/LinkCourseResponse.ts +10 -0
  388. package/src/models/LlmProviderEnum.ts +12 -0
  389. package/src/models/MCPServer.ts +26 -0
  390. package/src/models/MemoryComponentData.ts +10 -0
  391. package/src/models/MemoryComponentMemory.ts +9 -0
  392. package/src/models/MemoryComponentMemoryDetail.ts +13 -0
  393. package/src/models/MemoryComponentResponse.ts +10 -0
  394. package/src/models/MemoryProgress.ts +13 -0
  395. package/src/models/MemoryStatusRequestView.ts +11 -0
  396. package/src/models/MemoryStatusView.ts +11 -0
  397. package/src/models/Mentor.ts +92 -0
  398. package/src/models/MentorAudience.ts +10 -0
  399. package/src/models/MentorCategory.ts +14 -0
  400. package/src/models/MentorCategoryCreate.ts +16 -0
  401. package/src/models/MentorCategoryGroup.ts +16 -0
  402. package/src/models/MentorCategoryGroupCreate.ts +16 -0
  403. package/src/models/MentorCreate.ts +89 -0
  404. package/src/models/MentorCustomVoice.ts +9 -0
  405. package/src/models/MentorCustomVoiceResponse.ts +9 -0
  406. package/src/models/MentorData.ts +12 -0
  407. package/src/models/MentorDetailAnalytics.ts +11 -0
  408. package/src/models/MentorEval.ts +16 -0
  409. package/src/models/MentorEvalQuestion.ts +10 -0
  410. package/src/models/MentorEvalQuestionRequest.ts +9 -0
  411. package/src/models/MentorEvalReport.ts +15 -0
  412. package/src/models/MentorEvalRequest.ts +13 -0
  413. package/src/models/MentorFacet.ts +22 -0
  414. package/src/models/MentorFork.ts +10 -0
  415. package/src/models/MentorFromTemplateRequest.ts +9 -0
  416. package/src/models/MentorFromTemplateWithSettingRequest.ts +52 -0
  417. package/src/models/MentorMemorySettingsRequest.ts +11 -0
  418. package/src/models/MentorMemorySettingsResponse.ts +11 -0
  419. package/src/models/MentorMetadata.ts +10 -0
  420. package/src/models/MentorScenario.ts +11 -0
  421. package/src/models/MentorScenarioPrompt.ts +10 -0
  422. package/src/models/MentorSearchResponse.ts +40 -0
  423. package/src/models/MentorSession.ts +9 -0
  424. package/src/models/MentorSettings.ts +65 -0
  425. package/src/models/MentorSettingsPublic.ts +51 -0
  426. package/src/models/MentorSettingsRequest.ts +67 -0
  427. package/src/models/MentorVisibilityEnum.ts +14 -0
  428. package/src/models/MentorWizard.ts +9 -0
  429. package/src/models/MessageStatistics.ts +10 -0
  430. package/src/models/MessageView.ts +15 -0
  431. package/src/models/MessageViewRequest.ts +12 -0
  432. package/src/models/MessageViewUpdatResponse.ts +8 -0
  433. package/src/models/Metadata.ts +10 -0
  434. package/src/models/{FloatOverTime.ts → MetricChange.ts} +2 -8
  435. package/src/models/ModelCost.ts +9 -0
  436. package/src/models/ModerationLog.ts +16 -0
  437. package/src/models/NoChatMessagesFound.ts +8 -0
  438. package/src/models/NotificationSource.ts +2 -2
  439. package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
  440. package/src/models/NullEnum.ts +7 -0
  441. package/src/models/Observation.ts +36 -0
  442. package/src/models/PageContent.ts +11 -0
  443. package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
  444. package/src/models/PaginatedConversationsList.ts +12 -0
  445. package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
  446. package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
  447. package/src/models/PaginatedEdxCourseList.ts +12 -0
  448. package/src/models/PaginatedEmailPromptListList.ts +12 -0
  449. package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
  450. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
  451. package/src/models/PaginatedJobRunList.ts +12 -0
  452. package/src/models/PaginatedMCPServerList.ts +12 -0
  453. package/src/models/PaginatedMentorList.ts +12 -0
  454. package/src/models/PaginatedModerationLogList.ts +12 -0
  455. package/src/models/PaginatedObservationList.ts +12 -0
  456. package/src/models/PaginatedPeriodicAgentList.ts +12 -0
  457. package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
  458. package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
  459. package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
  460. package/src/models/PaginatedSectionList.ts +12 -0
  461. package/src/models/PaginatedSubSectionList.ts +12 -0
  462. package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
  463. package/src/models/PaginatedTraceList.ts +12 -0
  464. package/src/models/PaginatedUnitList.ts +12 -0
  465. package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
  466. package/src/models/PaginatedVoiceList.ts +12 -0
  467. package/src/models/PatchedCallConfiguration.ts +31 -0
  468. package/src/models/PatchedConversations.ts +33 -0
  469. package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
  470. package/src/models/PatchedCredentialRequest.ts +19 -0
  471. package/src/models/PatchedLLMCredentialRequest.ts +19 -0
  472. package/src/models/PatchedMCPServer.ts +26 -0
  473. package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
  474. package/src/models/PatchedMentorCreate.ts +89 -0
  475. package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
  476. package/src/models/PatchedPlayWrightScript.ts +17 -0
  477. package/src/models/PatchedPrompt.ts +27 -0
  478. package/src/models/PatchedSection.ts +14 -0
  479. package/src/models/PatchedSubSection.ts +14 -0
  480. package/src/models/PatchedUnit.ts +16 -0
  481. package/src/models/PeriodicAgent.ts +47 -0
  482. package/src/models/PeriodicAgentCreate.ts +46 -0
  483. package/src/models/PeriodicAgentLog.ts +16 -0
  484. package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
  485. package/src/models/PeriodicTask.ts +26 -0
  486. package/src/models/PieChartData.ts +10 -0
  487. package/src/models/PieChartSegment.ts +9 -0
  488. package/src/models/PinnedMessageCreate.ts +14 -0
  489. package/src/models/PinnedMessageGet.ts +12 -0
  490. package/src/models/PinnedMessageRequest.ts +11 -0
  491. package/src/models/PlayWrightScript.ts +17 -0
  492. package/src/models/PredictiveAnalyticsRequest.ts +9 -0
  493. package/src/models/PredictiveAnalyticsResponse.ts +9 -0
  494. package/src/models/PreviousAgentStatusEnum.ts +16 -0
  495. package/src/models/Prompt.ts +27 -0
  496. package/src/models/PromptCategory.ts +12 -0
  497. package/src/models/PromptFacet.ts +22 -0
  498. package/src/models/PromptSearchResponse.ts +40 -0
  499. package/src/models/PromptVisibilityEnum.ts +14 -0
  500. package/src/models/ProviderEnum.ts +14 -0
  501. package/src/models/QuestionCardTag.ts +13 -0
  502. package/src/models/QuestionRequest.ts +20 -0
  503. package/src/models/QuestionResponse.ts +15 -0
  504. package/src/models/RatingEnum.ts +12 -0
  505. package/src/models/RatingRecord.ts +9 -0
  506. package/src/models/RecentlyAccessedMentor.ts +13 -0
  507. package/src/models/RecommendCourseBlock.ts +8 -0
  508. package/src/models/RecommendCourseResponse.ts +8 -0
  509. package/src/models/RecommendedCoursesResponse.ts +38 -0
  510. package/src/models/RelatedText.ts +8 -0
  511. package/src/models/RequestDataVariable.ts +19 -0
  512. package/src/models/ResourceScrappedData.ts +18 -0
  513. package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
  514. package/src/models/ResponseDataVariable.ts +19 -0
  515. package/src/models/RetreiverTrainViewRequest.ts +15 -0
  516. package/src/models/RetreiverTrainViewResponse.ts +11 -0
  517. package/src/models/RetrieveTask.ts +8 -0
  518. package/src/models/RetrieverDocumentEmbedding.ts +32 -0
  519. package/src/models/RetrieverDocumentEmbeddingRequest.ts +63 -0
  520. package/src/models/RetrieverRequestSearch.ts +15 -0
  521. package/src/models/RetrieverRequestSearchDocument.ts +15 -0
  522. package/src/models/RetrieverResponseSearch.ts +12 -0
  523. package/src/models/ReuestDataVariableList.ts +9 -0
  524. package/src/models/RunMentorEval.ts +8 -0
  525. package/src/models/ScanWebhookRequest.ts +11 -0
  526. package/src/models/ScanWebhookResponse.ts +8 -0
  527. package/src/models/Section.ts +14 -0
  528. package/src/models/SectionWithChildren.ts +16 -0
  529. package/src/models/SeedMentorsView.ts +8 -0
  530. package/src/models/SentimentSummary.ts +9 -0
  531. package/src/models/SessionBrowserScreenshot.ts +13 -0
  532. package/src/models/SessionDetail.ts +11 -0
  533. package/src/models/SessionMemoryStorage.ts +11 -0
  534. package/src/models/ShellLogs.ts +8 -0
  535. package/src/models/SpacedRepetitionLearningPath.ts +8 -0
  536. package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
  537. package/src/models/StarMentor.ts +12 -0
  538. package/src/models/Status6eeEnum.ts +16 -0
  539. package/src/models/Step.ts +14 -0
  540. package/src/models/StepStatusEnum.ts +14 -0
  541. package/src/models/StripeCheckoutSessionRequest.ts +2 -2
  542. package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
  543. package/src/models/SttProviderEnum.ts +16 -0
  544. package/src/models/StudentChatMessage.ts +9 -0
  545. package/src/models/StylesView.ts +9 -0
  546. package/src/models/SubSection.ts +14 -0
  547. package/src/models/SubSectionWithChildren.ts +16 -0
  548. package/src/models/TagsView.ts +10 -0
  549. package/src/models/TargetSystemEnum.ts +12 -0
  550. package/src/models/TaskView.ts +8 -0
  551. package/src/models/TemplateMentor.ts +14 -0
  552. package/src/models/TenantMentorTraces.ts +11 -0
  553. package/src/models/ThemeEnum.ts +12 -0
  554. package/src/models/TonesView.ts +9 -0
  555. package/src/models/ToolResponse.ts +16 -0
  556. package/src/models/TopicModel.ts +8 -0
  557. package/src/models/TopicRecord.ts +9 -0
  558. package/src/models/TopicStatistics.ts +12 -0
  559. package/src/models/TopicStatisticsResponse.ts +11 -0
  560. package/src/models/TopicSummaryView.ts +9 -0
  561. package/src/models/Trace.ts +22 -0
  562. package/src/models/TrainChatSessionDocumentView.ts +11 -0
  563. package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
  564. package/src/models/TrainDocumentViewRequest.ts +67 -0
  565. package/src/models/TrainDocumentViewResponse.ts +20 -0
  566. package/src/models/TrainingStatusEnum.ts +16 -0
  567. package/src/models/TransportEnum.ts +12 -0
  568. package/src/models/TrendEntry.ts +9 -0
  569. package/src/models/TriggerRequest.ts +10 -0
  570. package/src/models/TriggerResponse.ts +11 -0
  571. package/src/models/TtsProviderEnum.ts +14 -0
  572. package/src/models/TypeC42Enum.ts +12 -0
  573. package/src/models/Unit.ts +16 -0
  574. package/src/models/UnitWithChildren.ts +18 -0
  575. package/src/models/UseMainCreds.ts +8 -0
  576. package/src/models/UserAllChatMemoryView.ts +12 -0
  577. package/src/models/UserCatalogItemMemoryView.ts +19 -0
  578. package/src/models/UserChatByPeriod.ts +9 -0
  579. package/src/models/UserChatFeedback.ts +19 -0
  580. package/src/models/UserChatFeedbackCount.ts +9 -0
  581. package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
  582. package/src/models/UserChatMemoryStatusView.ts +11 -0
  583. package/src/models/UserChatMemoryUpdateView.ts +15 -0
  584. package/src/models/UserCountRecord.ts +9 -0
  585. package/src/models/UserEdxMemory.ts +20 -0
  586. package/src/models/UserMemoryContextRequest.ts +18 -0
  587. package/src/models/UserMemoryContextResponse.ts +17 -0
  588. package/src/models/UserMetric.ts +9 -0
  589. package/src/models/UserMetricsResponse.ts +12 -0
  590. package/src/models/UserSentimentCountView.ts +9 -0
  591. package/src/models/UserTrendByPeriod.ts +10 -0
  592. package/src/models/VectorResult.ts +13 -0
  593. package/src/models/VideoCaption.ts +8 -0
  594. package/src/models/Voice.ts +14 -0
  595. package/src/models/WebResource.ts +14 -0
  596. package/src/models/WebResourceCard.ts +12 -0
  597. package/src/models/WebResourcesQuery.ts +8 -0
  598. package/src/services/AiAccountService.ts +505 -0
  599. package/src/services/AiAnalyticsService.ts +11651 -0
  600. package/src/services/AiIndexService.ts +719 -0
  601. package/src/services/AiMarketingService.ts +96 -0
  602. package/src/services/AiMediaService.ts +289 -0
  603. package/src/services/AiMentorService.ts +9108 -0
  604. package/src/services/AiPromptService.ts +1980 -0
  605. package/src/services/{ServiceService.ts → CommerceService.ts} +339 -1
  606. package/src/services/CoreService.ts +311 -0
  607. package/src/services/{MediaResourcesService.ts → MediaService.ts} +1 -1
  608. package/src/services/{NotificationService.ts → NotificationsService.ts} +139 -1
  609. package/src/services/{OrgsService.ts → ScimService.ts} +1 -1
  610. package/src/services/SearchService.ts +1428 -398
  611. package/dist/types/models/FloatOverTime.d.ts +0 -10
  612. package/dist/types/models/NetRevenueOverTime.d.ts +0 -8
  613. package/dist/types/models/Order.d.ts +0 -22
  614. package/dist/types/models/Product.d.ts +0 -22
  615. package/dist/types/models/ProductTable.d.ts +0 -26
  616. package/dist/types/models/RevenueByProduct.d.ts +0 -6
  617. package/dist/types/models/Summary.d.ts +0 -18
  618. package/dist/types/services/AnalyticsService.d.ts +0 -83
  619. package/dist/types/services/AudienceService.d.ts +0 -544
  620. package/dist/types/services/DepartmentsService.d.ts +0 -80
  621. package/dist/types/services/EngagementService.d.ts +0 -747
  622. package/dist/types/services/FinanceService.d.ts +0 -81
  623. package/dist/types/services/NotificationBuilderService.d.ts +0 -72
  624. package/dist/types/services/OverviewService.d.ts +0 -283
  625. package/dist/types/services/PerformanceService.d.ts +0 -259
  626. package/dist/types/services/PerlearnerService.d.ts +0 -715
  627. package/dist/types/services/PlatformService.d.ts +0 -496
  628. package/dist/types/services/ProviderAssociationService.d.ts +0 -17
  629. package/dist/types/services/ProvidersService.d.ts +0 -164
  630. package/dist/types/services/ProvisionService.d.ts +0 -15
  631. package/dist/types/services/RolesService.d.ts +0 -59
  632. package/dist/types/services/UserGroupsService.d.ts +0 -86
  633. package/src/models/NetRevenueOverTime.ts +0 -13
  634. package/src/models/Order.ts +0 -27
  635. package/src/models/Product.ts +0 -27
  636. package/src/models/ProductTable.ts +0 -31
  637. package/src/models/RevenueByProduct.ts +0 -11
  638. package/src/models/Summary.ts +0 -23
  639. package/src/services/AnalyticsService.ts +0 -132
  640. package/src/services/AudienceService.ts +0 -798
  641. package/src/services/DepartmentsService.ts +0 -122
  642. package/src/services/EngagementService.ts +0 -1199
  643. package/src/services/FinanceService.ts +0 -165
  644. package/src/services/NotificationBuilderService.ts +0 -147
  645. package/src/services/OverviewService.ts +0 -423
  646. package/src/services/PerformanceService.ts +0 -405
  647. package/src/services/PerlearnerService.ts +0 -1321
  648. package/src/services/PlatformService.ts +0 -884
  649. package/src/services/ProviderAssociationService.ts +0 -33
  650. package/src/services/ProvidersService.ts +0 -302
  651. package/src/services/ProvisionService.ts +0 -31
  652. package/src/services/RolesService.ts +0 -89
  653. package/src/services/UserGroupsService.ts +0 -128
@@ -1,1199 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AverageOvertime } from '../models/AverageOvertime';
6
- import type { CourseCompletionPerCourse } from '../models/CourseCompletionPerCourse';
7
- import type { EngagementPerCourse } from '../models/EngagementPerCourse';
8
- import type { OvertimeWithChangeInfo } from '../models/OvertimeWithChangeInfo';
9
- import type { OverTimeWithTotal } from '../models/OverTimeWithTotal';
10
- import type { PerLearnerTimeSpentInCourseTree } from '../models/PerLearnerTimeSpentInCourseTree';
11
- import type { TimeDetail } from '../models/TimeDetail';
12
- import type { TimeSpentByUsersInCourse } from '../models/TimeSpentByUsersInCourse';
13
- import type { TimeSpentPerCourse } from '../models/TimeSpentPerCourse';
14
- import type { VideoEngagementPerCourse } from '../models/VideoEngagementPerCourse';
15
- import type { VideosInCourseSummary } from '../models/VideosInCourseSummary';
16
- import type { VideosSpecificCourse } from '../models/VideosSpecificCourse';
17
- import type { WatchedVideosPerUser } from '../models/WatchedVideosPerUser';
18
- import type { CancelablePromise } from '../core/CancelablePromise';
19
- import { OpenAPI } from '../core/OpenAPI';
20
- import { request as __request } from '../core/request';
21
- export class EngagementService {
22
- /**
23
- * Get engagement metrics on a per-course basis.
24
- *
25
- * This endpoint provides a paginated list of courses with engagement metrics
26
- * including activity counts, time spent, and interaction data.
27
- *
28
- * Query Parameters:
29
- * page (int, optional): Page number for pagination
30
- * length (int, optional): Number of items per page
31
- *
32
- * Returns:
33
- * A paginated list of courses with their engagement metrics.
34
- * @returns EngagementPerCourse
35
- * @throws ApiError
36
- */
37
- public static engagementOrgsActivityRetrieve({
38
- org,
39
- departmentId,
40
- format = 'json',
41
- includeMainPlatform = true,
42
- length,
43
- page,
44
- }: {
45
- org: string,
46
- /**
47
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
48
- */
49
- departmentId?: number,
50
- /**
51
- * Format
52
- *
53
- * * `json` - json
54
- */
55
- format?: 'json',
56
- /**
57
- * Include main platform data
58
- */
59
- includeMainPlatform?: boolean,
60
- /**
61
- * Size of data to return
62
- */
63
- length?: number,
64
- /**
65
- * Page offset
66
- */
67
- page?: number,
68
- }): CancelablePromise<EngagementPerCourse> {
69
- return __request(OpenAPI, {
70
- method: 'GET',
71
- url: '/api/engagement/orgs/{org}/activity',
72
- path: {
73
- 'org': org,
74
- },
75
- query: {
76
- 'department_id': departmentId,
77
- 'format': format,
78
- 'include_main_platform': includeMainPlatform,
79
- 'length': length,
80
- 'page': page,
81
- },
82
- });
83
- }
84
- /**
85
- * Completion count per user per course across the platform
86
- *
87
- * Query Params
88
- * 1. start_date e.g 2020-10-01
89
- * 2. end_date e.g 2020-10-10
90
- *
91
- * Default result when no query param is added is last_7_days (today inclusive)
92
- * @returns OvertimeWithChangeInfo
93
- * @throws ApiError
94
- */
95
- public static engagementOrgsCourseCompletionOverTimeRetrieve({
96
- org,
97
- departmentId,
98
- endDate,
99
- format = 'json',
100
- includeMainPlatform = true,
101
- startDate,
102
- }: {
103
- org: string,
104
- /**
105
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
106
- */
107
- departmentId?: number,
108
- /**
109
- * end date. ISO 8601
110
- */
111
- endDate?: string,
112
- /**
113
- * Format
114
- *
115
- * * `json` - json
116
- */
117
- format?: 'json',
118
- /**
119
- * Include main platform data
120
- */
121
- includeMainPlatform?: boolean,
122
- /**
123
- * start date. ISO 8601
124
- */
125
- startDate?: string,
126
- }): CancelablePromise<OvertimeWithChangeInfo> {
127
- return __request(OpenAPI, {
128
- method: 'GET',
129
- url: '/api/engagement/orgs/{org}/course_completion/over-time',
130
- path: {
131
- 'org': org,
132
- },
133
- query: {
134
- 'department_id': departmentId,
135
- 'end_date': endDate,
136
- 'format': format,
137
- 'include_main_platform': includeMainPlatform,
138
- 'start_date': startDate,
139
- },
140
- });
141
- }
142
- /**
143
- * List course completion metrics on a per-course basis.
144
- *
145
- * This endpoint provides a paginated table of courses with enrollment and
146
- * completion statistics for each course.
147
- *
148
- * Returns:
149
- * A paginated list of courses with:
150
- * - Course identification (ID and name)
151
- * - Enrollment count
152
- * - Completion count
153
- * - Average completion rate
154
- * @returns CourseCompletionPerCourse
155
- * @throws ApiError
156
- */
157
- public static engagementOrgsCourseCompletionPerCourseRetrieve({
158
- org,
159
- departmentId,
160
- format = 'json',
161
- includeMainPlatform = true,
162
- length,
163
- page,
164
- }: {
165
- org: string,
166
- /**
167
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
168
- */
169
- departmentId?: number,
170
- /**
171
- * Format
172
- *
173
- * * `json` - json
174
- */
175
- format?: 'json',
176
- /**
177
- * Include main platform data
178
- */
179
- includeMainPlatform?: boolean,
180
- /**
181
- * Size of data to return
182
- */
183
- length?: number,
184
- /**
185
- * Page offset
186
- */
187
- page?: number,
188
- }): CancelablePromise<CourseCompletionPerCourse> {
189
- return __request(OpenAPI, {
190
- method: 'GET',
191
- url: '/api/engagement/orgs/{org}/course_completion/per-course',
192
- path: {
193
- 'org': org,
194
- },
195
- query: {
196
- 'department_id': departmentId,
197
- 'format': format,
198
- 'include_main_platform': includeMainPlatform,
199
- 'length': length,
200
- 'page': page,
201
- },
202
- });
203
- }
204
- /**
205
- * Average time spent in secs on a per-day basis
206
- *
207
- * Query Params
208
- * 1. start_date e.g 2020-10-01
209
- * 2. end_date e.g 2020-10-10
210
- * 3. course_id <optional>
211
- *
212
- * Default result when no query param is added is last_7_days (today inclusive)
213
- * @returns AverageOvertime
214
- * @throws ApiError
215
- */
216
- public static engagementOrgsCoursesTimeAverageRetrieve({
217
- courseId,
218
- org,
219
- departmentId,
220
- endDate,
221
- format = 'json',
222
- includeMainPlatform = true,
223
- startDate,
224
- }: {
225
- courseId: string,
226
- org: string,
227
- /**
228
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
229
- */
230
- departmentId?: number,
231
- /**
232
- * end date. ISO 8601
233
- */
234
- endDate?: string,
235
- /**
236
- * Format
237
- *
238
- * * `json` - json
239
- */
240
- format?: 'json',
241
- /**
242
- * Include main platform data
243
- */
244
- includeMainPlatform?: boolean,
245
- /**
246
- * start date. ISO 8601
247
- */
248
- startDate?: string,
249
- }): CancelablePromise<AverageOvertime> {
250
- return __request(OpenAPI, {
251
- method: 'GET',
252
- url: '/api/engagement/orgs/{org}/courses/{course_id}/time/average',
253
- path: {
254
- 'course_id': courseId,
255
- 'org': org,
256
- },
257
- query: {
258
- 'department_id': departmentId,
259
- 'end_date': endDate,
260
- 'format': format,
261
- 'include_main_platform': includeMainPlatform,
262
- 'start_date': startDate,
263
- },
264
- });
265
- }
266
- /**
267
- * Time spent per course in secs in a tree like form
268
- *
269
- * Kwargs
270
- * course_id e.g course-v1:Org+Course4+Run
271
- *
272
- * Query Params
273
- * 1. start_date <optional> e.g 2020-10-01
274
- * 2. end_date <optional> e.g 2020-10-10
275
- * @returns TimeDetail
276
- * @throws ApiError
277
- */
278
- public static engagementOrgsCoursesTimeDetailRetrieve({
279
- courseId,
280
- org,
281
- departmentId,
282
- format = 'json',
283
- includeMainPlatform = true,
284
- }: {
285
- courseId: string,
286
- org: string,
287
- /**
288
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
289
- */
290
- departmentId?: number,
291
- /**
292
- * Format
293
- *
294
- * * `json` - json
295
- */
296
- format?: 'json',
297
- /**
298
- * Include main platform data
299
- */
300
- includeMainPlatform?: boolean,
301
- }): CancelablePromise<TimeDetail> {
302
- return __request(OpenAPI, {
303
- method: 'GET',
304
- url: '/api/engagement/orgs/{org}/courses/{course_id}/time/detail',
305
- path: {
306
- 'course_id': courseId,
307
- 'org': org,
308
- },
309
- query: {
310
- 'department_id': departmentId,
311
- 'format': format,
312
- 'include_main_platform': includeMainPlatform,
313
- },
314
- });
315
- }
316
- /**
317
- * Time spent per course in secs on a per-day basis
318
- *
319
- * Query Params
320
- * 1. start_date e.g 2020-10-01
321
- * 2. end_date e.g 2020-10-10
322
- * Kwargs
323
- * 3. course_id
324
- *
325
- * Default result when no query param is added is last_7_days (today inclusive)
326
- * @returns OverTimeWithTotal
327
- * @throws ApiError
328
- */
329
- public static engagementOrgsCoursesTimeOverTimeRetrieve({
330
- courseId,
331
- org,
332
- departmentId,
333
- endDate,
334
- format = 'json',
335
- includeMainPlatform = true,
336
- startDate,
337
- }: {
338
- courseId: string,
339
- org: string,
340
- /**
341
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
342
- */
343
- departmentId?: number,
344
- /**
345
- * end date. ISO 8601
346
- */
347
- endDate?: string,
348
- /**
349
- * Format
350
- *
351
- * * `json` - json
352
- */
353
- format?: 'json',
354
- /**
355
- * Include main platform data
356
- */
357
- includeMainPlatform?: boolean,
358
- /**
359
- * start date. ISO 8601
360
- */
361
- startDate?: string,
362
- }): CancelablePromise<OverTimeWithTotal> {
363
- return __request(OpenAPI, {
364
- method: 'GET',
365
- url: '/api/engagement/orgs/{org}/courses/{course_id}/time/over-time',
366
- path: {
367
- 'course_id': courseId,
368
- 'org': org,
369
- },
370
- query: {
371
- 'department_id': departmentId,
372
- 'end_date': endDate,
373
- 'format': format,
374
- 'include_main_platform': includeMainPlatform,
375
- 'start_date': startDate,
376
- },
377
- });
378
- }
379
- /**
380
- * Time spent by users in a course
381
- *
382
- * Query Params
383
- * course_id e.g course-v1:Org+Course4+Run
384
- * @returns TimeSpentByUsersInCourse
385
- * @throws ApiError
386
- */
387
- public static engagementOrgsCoursesTimeUsersRetrieve({
388
- courseId,
389
- org,
390
- departmentId,
391
- endDate,
392
- format = 'json',
393
- includeMainPlatform = true,
394
- length,
395
- page,
396
- startDate,
397
- }: {
398
- courseId: string,
399
- org: string,
400
- /**
401
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
402
- */
403
- departmentId?: number,
404
- /**
405
- * end date. ISO 8601
406
- */
407
- endDate?: string,
408
- /**
409
- * Format
410
- *
411
- * * `json` - json
412
- */
413
- format?: 'json',
414
- /**
415
- * Include main platform data
416
- */
417
- includeMainPlatform?: boolean,
418
- /**
419
- * Size of data to return
420
- */
421
- length?: number,
422
- /**
423
- * Page offset
424
- */
425
- page?: number,
426
- /**
427
- * start date. ISO 8601
428
- */
429
- startDate?: string,
430
- }): CancelablePromise<TimeSpentByUsersInCourse> {
431
- return __request(OpenAPI, {
432
- method: 'GET',
433
- url: '/api/engagement/orgs/{org}/courses/{course_id}/time/users',
434
- path: {
435
- 'course_id': courseId,
436
- 'org': org,
437
- },
438
- query: {
439
- 'department_id': departmentId,
440
- 'end_date': endDate,
441
- 'format': format,
442
- 'include_main_platform': includeMainPlatform,
443
- 'length': length,
444
- 'page': page,
445
- 'start_date': startDate,
446
- },
447
- });
448
- }
449
- /**
450
- * Time spent within a course in ordered hierarchical format
451
- *
452
- * Kwargs
453
- * 1. course_id e.g course-v1:Org+Course4+Run
454
- * 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
455
- * Query Params
456
- * 3. start_date <optional> e.g 2020-10-01
457
- * 4. end_date <optional> e.g 2020-10-10
458
- * @returns PerLearnerTimeSpentInCourseTree
459
- * @throws ApiError
460
- */
461
- public static engagementOrgsCoursesTimeUsersDetailRetrieve({
462
- courseId,
463
- org,
464
- userId,
465
- departmentId,
466
- endDate,
467
- format = 'json',
468
- includeMainPlatform = true,
469
- startDate,
470
- }: {
471
- courseId: string,
472
- org: string,
473
- userId: string,
474
- /**
475
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
476
- */
477
- departmentId?: number,
478
- /**
479
- * end date. ISO 8601
480
- */
481
- endDate?: string,
482
- /**
483
- * Format
484
- *
485
- * * `json` - json
486
- */
487
- format?: 'json',
488
- /**
489
- * Include main platform data
490
- */
491
- includeMainPlatform?: boolean,
492
- /**
493
- * start date. ISO 8601
494
- */
495
- startDate?: string,
496
- }): CancelablePromise<PerLearnerTimeSpentInCourseTree> {
497
- return __request(OpenAPI, {
498
- method: 'GET',
499
- url: '/api/engagement/orgs/{org}/courses/{course_id}/time/users/{user_id}/detail',
500
- path: {
501
- 'course_id': courseId,
502
- 'org': org,
503
- 'user_id': userId,
504
- },
505
- query: {
506
- 'department_id': departmentId,
507
- 'end_date': endDate,
508
- 'format': format,
509
- 'include_main_platform': includeMainPlatform,
510
- 'start_date': startDate,
511
- },
512
- });
513
- }
514
- /**
515
- * Time spent in secs on a per-day basis
516
- *
517
- * Query Params
518
- * 1. course_id <optional> e.g course-v1:Org+Course4+Run
519
- * 2. user_id <optional> e.g developer@ibleducation.com or dev123 (username|email)
520
- * 3. start_date e.g 2020-10-01
521
- * 4. end_date e.g 2020-10-10
522
- *
523
- * Default result when no query param is added is last_7_days (today inclusive)
524
- * @returns OverTimeWithTotal
525
- * @throws ApiError
526
- */
527
- public static engagementOrgsCoursesTimeUsersOverTimeRetrieve({
528
- courseId,
529
- org,
530
- userId,
531
- departmentId,
532
- endDate,
533
- format = 'json',
534
- includeMainPlatform = true,
535
- startDate,
536
- }: {
537
- courseId: string,
538
- org: string,
539
- userId: string,
540
- /**
541
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
542
- */
543
- departmentId?: number,
544
- /**
545
- * end date. ISO 8601
546
- */
547
- endDate?: string,
548
- /**
549
- * Format
550
- *
551
- * * `json` - json
552
- */
553
- format?: 'json',
554
- /**
555
- * Include main platform data
556
- */
557
- includeMainPlatform?: boolean,
558
- /**
559
- * start date. ISO 8601
560
- */
561
- startDate?: string,
562
- }): CancelablePromise<OverTimeWithTotal> {
563
- return __request(OpenAPI, {
564
- method: 'GET',
565
- url: '/api/engagement/orgs/{org}/courses/{course_id}/time/users/{user_id}/over-time',
566
- path: {
567
- 'course_id': courseId,
568
- 'org': org,
569
- 'user_id': userId,
570
- },
571
- query: {
572
- 'department_id': departmentId,
573
- 'end_date': endDate,
574
- 'format': format,
575
- 'include_main_platform': includeMainPlatform,
576
- 'start_date': startDate,
577
- },
578
- });
579
- }
580
- /**
581
- * Get video engagement metrics for a specific course.
582
- *
583
- * This endpoint provides detailed video engagement statistics for a single course,
584
- * including view counts, completion rates, and time spent on videos.
585
- *
586
- * Query Parameters:
587
- * course_id (str): The course ID to get video engagement data for
588
- *
589
- * Returns:
590
- * Detailed video engagement metrics for the specified course.
591
- * @returns VideosSpecificCourse
592
- * @throws ApiError
593
- */
594
- public static engagementOrgsCoursesVideosRetrieve({
595
- courseId,
596
- org,
597
- departmentId,
598
- format = 'json',
599
- includeMainPlatform = true,
600
- }: {
601
- courseId: string,
602
- org: string,
603
- /**
604
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
605
- */
606
- departmentId?: number,
607
- /**
608
- * Format
609
- *
610
- * * `json` - json
611
- */
612
- format?: 'json',
613
- /**
614
- * Include main platform data
615
- */
616
- includeMainPlatform?: boolean,
617
- }): CancelablePromise<VideosSpecificCourse> {
618
- return __request(OpenAPI, {
619
- method: 'GET',
620
- url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/',
621
- path: {
622
- 'course_id': courseId,
623
- 'org': org,
624
- },
625
- query: {
626
- 'department_id': departmentId,
627
- 'format': format,
628
- 'include_main_platform': includeMainPlatform,
629
- },
630
- });
631
- }
632
- /**
633
- * Get video watch counts over time.
634
- *
635
- * This endpoint provides daily counts of videos watched over a specified time period,
636
- * with options to filter by course or user.
637
- *
638
- * Query Parameters:
639
- * start_date (str, optional): Start date for the time range (ISO format)
640
- * end_date (str, optional): End date for the time range (ISO format)
641
- * course_id (str, optional): Filter by course ID
642
- * user_id (str, optional): Filter by username or email
643
- *
644
- * Returns:
645
- * Daily video watch counts over the specified time period.
646
- *
647
- * Default time range is the last 7 days if no dates are specified.
648
- *
649
- * Access Control:
650
- * - Platform admins can access any video watch data
651
- * - Learners can access their own video watch data
652
- * @returns OverTimeWithTotal
653
- * @throws ApiError
654
- */
655
- public static engagementOrgsCoursesVideosOverTimeRetrieve({
656
- courseId,
657
- org,
658
- departmentId,
659
- endDate,
660
- format = 'json',
661
- includeMainPlatform = true,
662
- startDate,
663
- }: {
664
- courseId: string,
665
- org: string,
666
- /**
667
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
668
- */
669
- departmentId?: number,
670
- /**
671
- * end date. ISO 8601
672
- */
673
- endDate?: string,
674
- /**
675
- * Format
676
- *
677
- * * `json` - json
678
- */
679
- format?: 'json',
680
- /**
681
- * Include main platform data
682
- */
683
- includeMainPlatform?: boolean,
684
- /**
685
- * start date. ISO 8601
686
- */
687
- startDate?: string,
688
- }): CancelablePromise<OverTimeWithTotal> {
689
- return __request(OpenAPI, {
690
- method: 'GET',
691
- url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/over-time',
692
- path: {
693
- 'course_id': courseId,
694
- 'org': org,
695
- },
696
- query: {
697
- 'department_id': departmentId,
698
- 'end_date': endDate,
699
- 'format': format,
700
- 'include_main_platform': includeMainPlatform,
701
- 'start_date': startDate,
702
- },
703
- });
704
- }
705
- /**
706
- * Get a summary of video watch statistics for a specific course.
707
- *
708
- * This endpoint provides a structured summary of video watch data for a course,
709
- * organized in a tree-like format by course sections and subsections.
710
- *
711
- * Query Parameters:
712
- * course_id (str): The course ID to get video summary for
713
- *
714
- * Returns:
715
- * A hierarchical structure of video watch data for the course, including:
716
- * - Section and subsection organization
717
- * - Video identification and metadata
718
- * - Watch counts and completion rates
719
- * @returns VideosInCourseSummary
720
- * @throws ApiError
721
- */
722
- public static engagementOrgsCoursesVideosSummaryRetrieve({
723
- courseId,
724
- org,
725
- departmentId,
726
- format = 'json',
727
- includeMainPlatform = true,
728
- }: {
729
- courseId: string,
730
- org: string,
731
- /**
732
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
733
- */
734
- departmentId?: number,
735
- /**
736
- * Format
737
- *
738
- * * `json` - json
739
- */
740
- format?: 'json',
741
- /**
742
- * Include main platform data
743
- */
744
- includeMainPlatform?: boolean,
745
- }): CancelablePromise<VideosInCourseSummary> {
746
- return __request(OpenAPI, {
747
- method: 'GET',
748
- url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/summary',
749
- path: {
750
- 'course_id': courseId,
751
- 'org': org,
752
- },
753
- query: {
754
- 'department_id': departmentId,
755
- 'format': format,
756
- 'include_main_platform': includeMainPlatform,
757
- },
758
- });
759
- }
760
- /**
761
- * List of users' videos completed records for a specific course
762
- *
763
- * Kwargs
764
- * course_id e.g course-v1:Org+Course4+Run
765
- * @returns WatchedVideosPerUser
766
- * @throws ApiError
767
- */
768
- public static engagementOrgsCoursesVideosUsersRetrieve({
769
- courseId,
770
- org,
771
- departmentId,
772
- format = 'json',
773
- includeMainPlatform = true,
774
- }: {
775
- courseId: string,
776
- org: string,
777
- /**
778
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
779
- */
780
- departmentId?: number,
781
- /**
782
- * Format
783
- *
784
- * * `json` - json
785
- */
786
- format?: 'json',
787
- /**
788
- * Include main platform data
789
- */
790
- includeMainPlatform?: boolean,
791
- }): CancelablePromise<WatchedVideosPerUser> {
792
- return __request(OpenAPI, {
793
- method: 'GET',
794
- url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/users',
795
- path: {
796
- 'course_id': courseId,
797
- 'org': org,
798
- },
799
- query: {
800
- 'department_id': departmentId,
801
- 'format': format,
802
- 'include_main_platform': includeMainPlatform,
803
- },
804
- });
805
- }
806
- /**
807
- * Average time spent by a learner in enrolled courses. Gives a rough estimate of whats the average time
808
- * that would be spent by a learner in a course
809
- *
810
- * Query Params
811
- * 1. start_date e.g 2020-10-01
812
- * 2. end_date e.g 2020-10-10
813
- * @returns AverageOvertime
814
- * @throws ApiError
815
- */
816
- public static engagementOrgsTimeAveragePerlearnerPercourseRetrieve({
817
- org,
818
- departmentId,
819
- endDate,
820
- format = 'json',
821
- includeMainPlatform = true,
822
- startDate,
823
- }: {
824
- org: string,
825
- /**
826
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
827
- */
828
- departmentId?: number,
829
- /**
830
- * end date. ISO 8601
831
- */
832
- endDate?: string,
833
- /**
834
- * Format
835
- *
836
- * * `json` - json
837
- */
838
- format?: 'json',
839
- /**
840
- * Include main platform data
841
- */
842
- includeMainPlatform?: boolean,
843
- /**
844
- * start date. ISO 8601
845
- */
846
- startDate?: string,
847
- }): CancelablePromise<AverageOvertime> {
848
- return __request(OpenAPI, {
849
- method: 'GET',
850
- url: '/api/engagement/orgs/{org}/time/average-perlearner-percourse',
851
- path: {
852
- 'org': org,
853
- },
854
- query: {
855
- 'department_id': departmentId,
856
- 'end_date': endDate,
857
- 'format': format,
858
- 'include_main_platform': includeMainPlatform,
859
- 'start_date': startDate,
860
- },
861
- });
862
- }
863
- /**
864
- * Average time spent in secs on a per-day basis
865
- *
866
- * Query Params
867
- * 1. start_date e.g 2020-10-01
868
- * 2. end_date e.g 2020-10-10
869
- * 3. course_id <optional>
870
- *
871
- * Default result when no query param is added is last_7_days (today inclusive)
872
- * @returns AverageOvertime
873
- * @throws ApiError
874
- */
875
- public static engagementOrgsTimeAverageWithOverTimeRetrieve({
876
- org,
877
- departmentId,
878
- endDate,
879
- format = 'json',
880
- includeMainPlatform = true,
881
- startDate,
882
- }: {
883
- org: string,
884
- /**
885
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
886
- */
887
- departmentId?: number,
888
- /**
889
- * end date. ISO 8601
890
- */
891
- endDate?: string,
892
- /**
893
- * Format
894
- *
895
- * * `json` - json
896
- */
897
- format?: 'json',
898
- /**
899
- * Include main platform data
900
- */
901
- includeMainPlatform?: boolean,
902
- /**
903
- * start date. ISO 8601
904
- */
905
- startDate?: string,
906
- }): CancelablePromise<AverageOvertime> {
907
- return __request(OpenAPI, {
908
- method: 'GET',
909
- url: '/api/engagement/orgs/{org}/time/average-with-over-time',
910
- path: {
911
- 'org': org,
912
- },
913
- query: {
914
- 'department_id': departmentId,
915
- 'end_date': endDate,
916
- 'format': format,
917
- 'include_main_platform': includeMainPlatform,
918
- 'start_date': startDate,
919
- },
920
- });
921
- }
922
- /**
923
- * Get time spent on the platform over time.
924
- *
925
- * This endpoint provides daily time spent values (in seconds) across the
926
- * platform over a specified time period.
927
- *
928
- * Query Parameters:
929
- * start_date (str, optional): Start date for the time range (ISO format)
930
- * end_date (str, optional): End date for the time range (ISO format)
931
- *
932
- * Returns:
933
- * Daily time spent values over the specified time period, with change metrics
934
- * compared to previous periods.
935
- *
936
- * Default time range is the last 7 days if no dates are specified.
937
- * @returns OvertimeWithChangeInfo
938
- * @throws ApiError
939
- */
940
- public static engagementOrgsTimeOverTimeRetrieve({
941
- org,
942
- departmentId,
943
- endDate,
944
- format = 'json',
945
- includeMainPlatform = true,
946
- startDate,
947
- }: {
948
- org: string,
949
- /**
950
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
951
- */
952
- departmentId?: number,
953
- /**
954
- * end date. ISO 8601
955
- */
956
- endDate?: string,
957
- /**
958
- * Format
959
- *
960
- * * `json` - json
961
- */
962
- format?: 'json',
963
- /**
964
- * Include main platform data
965
- */
966
- includeMainPlatform?: boolean,
967
- /**
968
- * start date. ISO 8601
969
- */
970
- startDate?: string,
971
- }): CancelablePromise<OvertimeWithChangeInfo> {
972
- return __request(OpenAPI, {
973
- method: 'GET',
974
- url: '/api/engagement/orgs/{org}/time/over-time',
975
- path: {
976
- 'org': org,
977
- },
978
- query: {
979
- 'department_id': departmentId,
980
- 'end_date': endDate,
981
- 'format': format,
982
- 'include_main_platform': includeMainPlatform,
983
- 'start_date': startDate,
984
- },
985
- });
986
- }
987
- /**
988
- * Get time spent statistics on a per-course basis.
989
- *
990
- * This endpoint provides a paginated list of courses with the total time
991
- * spent by users in each course.
992
- *
993
- * Query Parameters:
994
- * start_date (str, optional): Start date for filtering (ISO format)
995
- * end_date (str, optional): End date for filtering (ISO format)
996
- * page (int, optional): Page number for pagination
997
- * length (int, optional): Number of items per page
998
- *
999
- * Returns:
1000
- * A paginated list of courses with:
1001
- * - Course identification (ID and name)
1002
- * - Total time spent (in seconds)
1003
- * - Formatted time spent (human-readable)
1004
- * - Percentage of total platform time
1005
- * @returns TimeSpentPerCourse
1006
- * @throws ApiError
1007
- */
1008
- public static engagementOrgsTimePerCourseRetrieve({
1009
- org,
1010
- departmentId,
1011
- endDate,
1012
- format = 'json',
1013
- includeMainPlatform = true,
1014
- length,
1015
- page,
1016
- startDate,
1017
- }: {
1018
- org: string,
1019
- /**
1020
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
1021
- */
1022
- departmentId?: number,
1023
- /**
1024
- * end date. ISO 8601
1025
- */
1026
- endDate?: string,
1027
- /**
1028
- * Format
1029
- *
1030
- * * `json` - json
1031
- */
1032
- format?: 'json',
1033
- /**
1034
- * Include main platform data
1035
- */
1036
- includeMainPlatform?: boolean,
1037
- /**
1038
- * Size of data to return
1039
- */
1040
- length?: number,
1041
- /**
1042
- * Page offset
1043
- */
1044
- page?: number,
1045
- /**
1046
- * start date. ISO 8601
1047
- */
1048
- startDate?: string,
1049
- }): CancelablePromise<TimeSpentPerCourse> {
1050
- return __request(OpenAPI, {
1051
- method: 'GET',
1052
- url: '/api/engagement/orgs/{org}/time/per-course',
1053
- path: {
1054
- 'org': org,
1055
- },
1056
- query: {
1057
- 'department_id': departmentId,
1058
- 'end_date': endDate,
1059
- 'format': format,
1060
- 'include_main_platform': includeMainPlatform,
1061
- 'length': length,
1062
- 'page': page,
1063
- 'start_date': startDate,
1064
- },
1065
- });
1066
- }
1067
- /**
1068
- * Get video engagement metrics on a per-course basis.
1069
- *
1070
- * This endpoint provides a paginated list of courses with video engagement metrics
1071
- * including view counts, completion rates, and time spent on videos.
1072
- *
1073
- * Query Parameters:
1074
- * page (int, optional): Page number for pagination
1075
- * length (int, optional): Number of items per page
1076
- *
1077
- * Returns:
1078
- * A paginated list of courses with their video engagement metrics.
1079
- * @returns VideoEngagementPerCourse
1080
- * @throws ApiError
1081
- */
1082
- public static engagementOrgsVideosRetrieve({
1083
- org,
1084
- departmentId,
1085
- format = 'json',
1086
- includeMainPlatform = true,
1087
- length,
1088
- page,
1089
- }: {
1090
- org: string,
1091
- /**
1092
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
1093
- */
1094
- departmentId?: number,
1095
- /**
1096
- * Format
1097
- *
1098
- * * `json` - json
1099
- */
1100
- format?: 'json',
1101
- /**
1102
- * Include main platform data
1103
- */
1104
- includeMainPlatform?: boolean,
1105
- /**
1106
- * Size of data to return
1107
- */
1108
- length?: number,
1109
- /**
1110
- * Page offset
1111
- */
1112
- page?: number,
1113
- }): CancelablePromise<VideoEngagementPerCourse> {
1114
- return __request(OpenAPI, {
1115
- method: 'GET',
1116
- url: '/api/engagement/orgs/{org}/videos/',
1117
- path: {
1118
- 'org': org,
1119
- },
1120
- query: {
1121
- 'department_id': departmentId,
1122
- 'format': format,
1123
- 'include_main_platform': includeMainPlatform,
1124
- 'length': length,
1125
- 'page': page,
1126
- },
1127
- });
1128
- }
1129
- /**
1130
- * Get video watch counts over time.
1131
- *
1132
- * This endpoint provides daily counts of videos watched over a specified time period,
1133
- * with options to filter by course or user.
1134
- *
1135
- * Query Parameters:
1136
- * start_date (str, optional): Start date for the time range (ISO format)
1137
- * end_date (str, optional): End date for the time range (ISO format)
1138
- * course_id (str, optional): Filter by course ID
1139
- * user_id (str, optional): Filter by username or email
1140
- *
1141
- * Returns:
1142
- * Daily video watch counts over the specified time period.
1143
- *
1144
- * Default time range is the last 7 days if no dates are specified.
1145
- *
1146
- * Access Control:
1147
- * - Platform admins can access any video watch data
1148
- * - Learners can access their own video watch data
1149
- * @returns OverTimeWithTotal
1150
- * @throws ApiError
1151
- */
1152
- public static engagementOrgsVideosOverTimeRetrieve({
1153
- org,
1154
- departmentId,
1155
- endDate,
1156
- format = 'json',
1157
- includeMainPlatform = true,
1158
- startDate,
1159
- }: {
1160
- org: string,
1161
- /**
1162
- * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
1163
- */
1164
- departmentId?: number,
1165
- /**
1166
- * end date. ISO 8601
1167
- */
1168
- endDate?: string,
1169
- /**
1170
- * Format
1171
- *
1172
- * * `json` - json
1173
- */
1174
- format?: 'json',
1175
- /**
1176
- * Include main platform data
1177
- */
1178
- includeMainPlatform?: boolean,
1179
- /**
1180
- * start date. ISO 8601
1181
- */
1182
- startDate?: string,
1183
- }): CancelablePromise<OverTimeWithTotal> {
1184
- return __request(OpenAPI, {
1185
- method: 'GET',
1186
- url: '/api/engagement/orgs/{org}/videos/over-time',
1187
- path: {
1188
- 'org': org,
1189
- },
1190
- query: {
1191
- 'department_id': departmentId,
1192
- 'end_date': endDate,
1193
- 'format': format,
1194
- 'include_main_platform': includeMainPlatform,
1195
- 'start_date': startDate,
1196
- },
1197
- });
1198
- }
1199
- }