@iblai/iblai-api 4.5.0-core → 4.5.1-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (628) hide show
  1. package/dist/index.cjs.js +17572 -1341
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +17567 -1342
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +17572 -1341
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +305 -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/AlignMentorBubbleEnum.d.ts +8 -0
  13. package/dist/types/models/AnalyticsOverview.d.ts +7 -0
  14. package/dist/types/models/Answer.d.ts +11 -0
  15. package/dist/types/models/AssumedKnowledge.d.ts +4 -0
  16. package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
  17. package/dist/types/models/AudioToTextRequest.d.ts +3 -0
  18. package/dist/types/models/AudioToTextResponse.d.ts +3 -0
  19. package/dist/types/models/CallAuthenticationRequest.d.ts +13 -0
  20. package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
  21. package/dist/types/models/CallConfiguration.d.ts +26 -0
  22. package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
  23. package/dist/types/models/ChatHistory.d.ts +8 -0
  24. package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
  25. package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
  26. package/dist/types/models/ChatHistoryItem.d.ts +5 -0
  27. package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
  28. package/dist/types/models/ChatSessionRequest.d.ts +14 -0
  29. package/dist/types/models/ChatSessionResponse.d.ts +5 -0
  30. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
  31. package/dist/types/models/ComponentBlock.d.ts +9 -0
  32. package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
  33. package/dist/types/models/ConnectedService.d.ts +9 -0
  34. package/dist/types/models/ConnectedServiceProviderEnum.d.ts +6 -0
  35. package/dist/types/models/ConversationMessage.d.ts +11 -0
  36. package/dist/types/models/ConversationRating.d.ts +6 -0
  37. package/dist/types/models/ConversationSummary.d.ts +5 -0
  38. package/dist/types/models/ConversationVolume.d.ts +4 -0
  39. package/dist/types/models/Conversations.d.ts +28 -0
  40. package/dist/types/models/Cost.d.ts +3 -0
  41. package/dist/types/models/CostPerTenant.d.ts +6 -0
  42. package/dist/types/models/CourseCreationTask.d.ts +31 -0
  43. package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
  44. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
  45. package/dist/types/models/CrawlerPatternTypeEnum.d.ts +8 -0
  46. package/dist/types/models/CredentialRequest.d.ts +14 -0
  47. package/dist/types/models/CrontabSchedule.d.ts +22 -0
  48. package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
  49. package/dist/types/models/DateRange.d.ts +4 -0
  50. package/dist/types/models/Document.d.ts +41 -0
  51. package/dist/types/models/DocumentFacet.d.ts +17 -0
  52. package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
  53. package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
  54. package/dist/types/models/EdxCourse.d.ts +11 -0
  55. package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
  56. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
  57. package/dist/types/models/EmailPromptDetail.d.ts +13 -0
  58. package/dist/types/models/EmailPromptList.d.ts +11 -0
  59. package/dist/types/models/EmailPromptSummary.d.ts +5 -0
  60. package/dist/types/models/FreeUsageCount.d.ts +3 -0
  61. package/dist/types/models/FullCourse.d.ts +13 -0
  62. package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
  63. package/dist/types/models/GuidedPrompt.d.ts +4 -0
  64. package/dist/types/models/GuidedPromptsResponse.d.ts +5 -0
  65. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
  66. package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
  67. package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
  68. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
  69. package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
  70. package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
  71. package/dist/types/models/HumanSupportTicket.d.ts +21 -0
  72. package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +10 -0
  73. package/dist/types/models/InputQuestion.d.ts +6 -0
  74. package/dist/types/models/IntegrationCredential.d.ts +8 -0
  75. package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
  76. package/dist/types/models/JobRun.d.ts +11 -0
  77. package/dist/types/models/KindEnum.d.ts +10 -0
  78. package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
  79. package/dist/types/models/LLMCredentialResponse.d.ts +8 -0
  80. package/dist/types/models/LLMModelForTenant.d.ts +6 -0
  81. package/dist/types/models/LLMQuestion.d.ts +15 -0
  82. package/dist/types/models/LLMResponse.d.ts +14 -0
  83. package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
  84. package/dist/types/models/LanguagesView.d.ts +5 -0
  85. package/dist/types/models/LinkCourseRequest.d.ts +3 -0
  86. package/dist/types/models/LinkCourseResponse.d.ts +5 -0
  87. package/dist/types/models/LlmProviderEnum.d.ts +8 -0
  88. package/dist/types/models/MCPServer.d.ts +21 -0
  89. package/dist/types/models/MemoryComponentData.d.ts +5 -0
  90. package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
  91. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
  92. package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
  93. package/dist/types/models/MemoryProgress.d.ts +8 -0
  94. package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
  95. package/dist/types/models/MemoryStatusView.d.ts +6 -0
  96. package/dist/types/models/Mentor.d.ts +87 -0
  97. package/dist/types/models/MentorAudience.d.ts +5 -0
  98. package/dist/types/models/MentorCategory.d.ts +9 -0
  99. package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
  100. package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
  101. package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
  102. package/dist/types/models/MentorCreate.d.ts +84 -0
  103. package/dist/types/models/MentorCustomVoice.d.ts +4 -0
  104. package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
  105. package/dist/types/models/MentorData.d.ts +7 -0
  106. package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
  107. package/dist/types/models/MentorEval.d.ts +11 -0
  108. package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
  109. package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
  110. package/dist/types/models/MentorEvalReport.d.ts +10 -0
  111. package/dist/types/models/MentorEvalRequest.d.ts +8 -0
  112. package/dist/types/models/MentorFacet.d.ts +17 -0
  113. package/dist/types/models/MentorFork.d.ts +5 -0
  114. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +47 -0
  115. package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
  116. package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
  117. package/dist/types/models/MentorMetadata.d.ts +5 -0
  118. package/dist/types/models/MentorScenario.d.ts +6 -0
  119. package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
  120. package/dist/types/models/MentorSearchResponse.d.ts +35 -0
  121. package/dist/types/models/MentorSession.d.ts +4 -0
  122. package/dist/types/models/MentorSettings.d.ts +76 -0
  123. package/dist/types/models/MentorSettingsPublic.d.ts +52 -0
  124. package/dist/types/models/MentorSettingsRequest.d.ts +62 -0
  125. package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
  126. package/dist/types/models/MentorWizard.d.ts +4 -0
  127. package/dist/types/models/MessageStatistics.d.ts +5 -0
  128. package/dist/types/models/MessageView.d.ts +10 -0
  129. package/dist/types/models/MessageViewRequest.d.ts +7 -0
  130. package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
  131. package/dist/types/models/Metadata.d.ts +5 -0
  132. package/dist/types/models/MetricChange.d.ts +4 -0
  133. package/dist/types/models/ModelCost.d.ts +4 -0
  134. package/dist/types/models/ModerationLog.d.ts +11 -0
  135. package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
  136. package/dist/types/models/NotificationSource.d.ts +2 -2
  137. package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
  138. package/dist/types/models/NullEnum.d.ts +1 -0
  139. package/dist/types/models/OAuthStartResponse.d.ts +3 -0
  140. package/dist/types/models/Observation.d.ts +31 -0
  141. package/dist/types/models/PageContent.d.ts +6 -0
  142. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
  143. package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
  144. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
  145. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
  146. package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
  147. package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
  148. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
  149. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
  150. package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +7 -0
  151. package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
  152. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  153. package/dist/types/models/PaginatedMentorList.d.ts +7 -0
  154. package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
  155. package/dist/types/models/PaginatedObservationList.d.ts +7 -0
  156. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
  157. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
  158. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
  159. package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
  160. package/dist/types/models/PaginatedSectionList.d.ts +7 -0
  161. package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
  162. package/dist/types/models/PaginatedTicketMessageList.d.ts +7 -0
  163. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
  164. package/dist/types/models/PaginatedTraceList.d.ts +7 -0
  165. package/dist/types/models/PaginatedUnitList.d.ts +7 -0
  166. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
  167. package/dist/types/models/PaginatedUserMemoryList.d.ts +7 -0
  168. package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
  169. package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
  170. package/dist/types/models/PatchedConversations.d.ts +28 -0
  171. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
  172. package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
  173. package/dist/types/models/PatchedHumanSupportTicket.d.ts +21 -0
  174. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
  175. package/dist/types/models/PatchedMCPServer.d.ts +21 -0
  176. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
  177. package/dist/types/models/PatchedMentorCreate.d.ts +84 -0
  178. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
  179. package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
  180. package/dist/types/models/PatchedPrompt.d.ts +22 -0
  181. package/dist/types/models/PatchedSection.d.ts +9 -0
  182. package/dist/types/models/PatchedSubSection.d.ts +9 -0
  183. package/dist/types/models/PatchedTicketMessage.d.ts +10 -0
  184. package/dist/types/models/PatchedUnit.d.ts +11 -0
  185. package/dist/types/models/PeriodicAgent.d.ts +42 -0
  186. package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
  187. package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
  188. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
  189. package/dist/types/models/PeriodicTask.d.ts +21 -0
  190. package/dist/types/models/PieChartData.d.ts +5 -0
  191. package/dist/types/models/PieChartSegment.d.ts +4 -0
  192. package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
  193. package/dist/types/models/PinnedMessageGet.d.ts +7 -0
  194. package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
  195. package/dist/types/models/PlayWrightScript.d.ts +12 -0
  196. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
  197. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
  198. package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
  199. package/dist/types/models/Prompt.d.ts +22 -0
  200. package/dist/types/models/PromptCategory.d.ts +7 -0
  201. package/dist/types/models/PromptFacet.d.ts +17 -0
  202. package/dist/types/models/PromptSearchResponse.d.ts +35 -0
  203. package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
  204. package/dist/types/models/Provider637Enum.d.ts +10 -0
  205. package/dist/types/models/QuestionCardTag.d.ts +8 -0
  206. package/dist/types/models/QuestionRequest.d.ts +15 -0
  207. package/dist/types/models/QuestionResponse.d.ts +10 -0
  208. package/dist/types/models/RatingEnum.d.ts +8 -0
  209. package/dist/types/models/RatingRecord.d.ts +4 -0
  210. package/dist/types/models/RecentlyAccessedMentor.d.ts +8 -0
  211. package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
  212. package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
  213. package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
  214. package/dist/types/models/RelatedText.d.ts +3 -0
  215. package/dist/types/models/RequestDataVariable.d.ts +14 -0
  216. package/dist/types/models/ResourceScrappedData.d.ts +13 -0
  217. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
  218. package/dist/types/models/ResponseDataVariable.d.ts +14 -0
  219. package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
  220. package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
  221. package/dist/types/models/RetrieveTask.d.ts +3 -0
  222. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +28 -0
  223. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +66 -0
  224. package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
  225. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
  226. package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
  227. package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
  228. package/dist/types/models/RunMentorEval.d.ts +3 -0
  229. package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
  230. package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
  231. package/dist/types/models/Section.d.ts +9 -0
  232. package/dist/types/models/SectionWithChildren.d.ts +11 -0
  233. package/dist/types/models/SeedMentorsView.d.ts +3 -0
  234. package/dist/types/models/SentimentSummary.d.ts +4 -0
  235. package/dist/types/models/ServiceEnum.d.ts +8 -0
  236. package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
  237. package/dist/types/models/SessionDetail.d.ts +6 -0
  238. package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
  239. package/dist/types/models/ShareableMentorLink.d.ts +8 -0
  240. package/dist/types/models/ShellLogs.d.ts +3 -0
  241. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
  242. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
  243. package/dist/types/models/StarMentor.d.ts +7 -0
  244. package/dist/types/models/Status6eeEnum.d.ts +12 -0
  245. package/dist/types/models/Step.d.ts +9 -0
  246. package/dist/types/models/StepStatusEnum.d.ts +10 -0
  247. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
  248. package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
  249. package/dist/types/models/SttProviderEnum.d.ts +12 -0
  250. package/dist/types/models/StudentChatMessage.d.ts +4 -0
  251. package/dist/types/models/StylesView.d.ts +4 -0
  252. package/dist/types/models/SubSection.d.ts +9 -0
  253. package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
  254. package/dist/types/models/TagsView.d.ts +5 -0
  255. package/dist/types/models/TargetSystemEnum.d.ts +8 -0
  256. package/dist/types/models/TaskView.d.ts +3 -0
  257. package/dist/types/models/TemplateMentor.d.ts +9 -0
  258. package/dist/types/models/TenantMentorTraces.d.ts +6 -0
  259. package/dist/types/models/ThemeEnum.d.ts +8 -0
  260. package/dist/types/models/TicketMessage.d.ts +10 -0
  261. package/dist/types/models/TonesView.d.ts +4 -0
  262. package/dist/types/models/ToolResponse.d.ts +12 -0
  263. package/dist/types/models/TopicModel.d.ts +3 -0
  264. package/dist/types/models/TopicRecord.d.ts +4 -0
  265. package/dist/types/models/TopicStatistics.d.ts +7 -0
  266. package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
  267. package/dist/types/models/TopicSummaryView.d.ts +4 -0
  268. package/dist/types/models/Trace.d.ts +17 -0
  269. package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
  270. package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
  271. package/dist/types/models/TrainDocumentViewRequest.d.ts +70 -0
  272. package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
  273. package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
  274. package/dist/types/models/TransportEnum.d.ts +8 -0
  275. package/dist/types/models/TrendEntry.d.ts +4 -0
  276. package/dist/types/models/TriggerRequest.d.ts +5 -0
  277. package/dist/types/models/TriggerResponse.d.ts +6 -0
  278. package/dist/types/models/TtsProviderEnum.d.ts +10 -0
  279. package/dist/types/models/TypeC42Enum.d.ts +8 -0
  280. package/dist/types/models/Unit.d.ts +11 -0
  281. package/dist/types/models/UnitWithChildren.d.ts +13 -0
  282. package/dist/types/models/UseMainCreds.d.ts +3 -0
  283. package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
  284. package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
  285. package/dist/types/models/UserChatByPeriod.d.ts +4 -0
  286. package/dist/types/models/UserChatFeedback.d.ts +15 -0
  287. package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
  288. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
  289. package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
  290. package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
  291. package/dist/types/models/UserCountRecord.d.ts +4 -0
  292. package/dist/types/models/UserEdxMemory.d.ts +15 -0
  293. package/dist/types/models/UserMemory.d.ts +17 -0
  294. package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
  295. package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
  296. package/dist/types/models/UserMemoryEntry.d.ts +7 -0
  297. package/dist/types/models/UserMemoryEntryRequest.d.ts +5 -0
  298. package/dist/types/models/UserMemoryRequest.d.ts +12 -0
  299. package/dist/types/models/UserMetric.d.ts +4 -0
  300. package/dist/types/models/UserMetricsResponse.d.ts +7 -0
  301. package/dist/types/models/UserSentimentCountView.d.ts +4 -0
  302. package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
  303. package/dist/types/models/VectorResult.d.ts +8 -0
  304. package/dist/types/models/VideoCaption.d.ts +3 -0
  305. package/dist/types/models/Voice.d.ts +9 -0
  306. package/dist/types/models/WebResource.d.ts +9 -0
  307. package/dist/types/models/WebResourceCard.d.ts +7 -0
  308. package/dist/types/models/WebResourcesQuery.d.ts +3 -0
  309. package/dist/types/services/AiAccountService.d.ts +280 -0
  310. package/dist/types/services/AiAnalyticsService.d.ts +3934 -0
  311. package/dist/types/services/AiIndexService.d.ts +408 -0
  312. package/dist/types/services/AiMarketingService.d.ts +38 -0
  313. package/dist/types/services/AiMediaService.d.ts +122 -0
  314. package/dist/types/services/AiMentorService.d.ts +5358 -0
  315. package/dist/types/services/AiPromptService.d.ts +1035 -0
  316. package/dist/types/services/SearchService.d.ts +730 -0
  317. package/package.json +1 -1
  318. package/src/core/OpenAPI.ts +1 -1
  319. package/src/index.ts +305 -2
  320. package/src/models/AIGeneratedImage.ts +18 -0
  321. package/src/models/AIUserProfileMemoryRelation.ts +9 -0
  322. package/src/models/AIUserProfileRequest.ts +9 -0
  323. package/src/models/AccessEnum.ts +12 -0
  324. package/src/models/AlignMentorBubbleEnum.ts +12 -0
  325. package/src/models/AnalyticsOverview.ts +12 -0
  326. package/src/models/Answer.ts +16 -0
  327. package/src/models/AssumedKnowledge.ts +9 -0
  328. package/src/models/AssumedKnowledgeLevel.ts +9 -0
  329. package/src/models/AudioToTextRequest.ts +8 -0
  330. package/src/models/AudioToTextResponse.ts +8 -0
  331. package/src/models/CallAuthenticationRequest.ts +18 -0
  332. package/src/models/CallAuthenticationResponse.ts +26 -0
  333. package/src/models/CallConfiguration.ts +31 -0
  334. package/src/models/CallConfigurationModeEnum.ts +12 -0
  335. package/src/models/ChatHistory.ts +13 -0
  336. package/src/models/ChatHistoryFilterData.ts +14 -0
  337. package/src/models/ChatHistoryFilterUser.ts +10 -0
  338. package/src/models/ChatHistoryItem.ts +10 -0
  339. package/src/models/ChatHistorySessionId.ts +8 -0
  340. package/src/models/ChatSessionRequest.ts +19 -0
  341. package/src/models/ChatSessionResponse.ts +10 -0
  342. package/src/models/CheckDocumentTrainingStatus.ts +15 -0
  343. package/src/models/ComponentBlock.ts +14 -0
  344. package/src/models/ComponentBlockTypeEnum.ts +12 -0
  345. package/src/models/ConnectedService.ts +14 -0
  346. package/src/models/ConnectedServiceProviderEnum.ts +10 -0
  347. package/src/models/ConversationMessage.ts +16 -0
  348. package/src/models/ConversationRating.ts +11 -0
  349. package/src/models/ConversationSummary.ts +10 -0
  350. package/src/models/ConversationVolume.ts +9 -0
  351. package/src/models/Conversations.ts +33 -0
  352. package/src/models/Cost.ts +8 -0
  353. package/src/models/CostPerTenant.ts +11 -0
  354. package/src/models/CourseCreationTask.ts +36 -0
  355. package/src/models/CourseCreationTaskFile.ts +12 -0
  356. package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
  357. package/src/models/CrawlerPatternTypeEnum.ts +12 -0
  358. package/src/models/CredentialRequest.ts +19 -0
  359. package/src/models/CrontabSchedule.ts +27 -0
  360. package/src/models/CustomInstructionResponse.ts +18 -0
  361. package/src/models/DateRange.ts +9 -0
  362. package/src/models/Document.ts +46 -0
  363. package/src/models/DocumentFacet.ts +22 -0
  364. package/src/models/DocumentSearchResponse.ts +40 -0
  365. package/src/models/DocumentSettingsResponse.ts +8 -0
  366. package/src/models/EdxCourse.ts +16 -0
  367. package/src/models/ElevenlabsCustomVoice.ts +9 -0
  368. package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
  369. package/src/models/EmailPromptDetail.ts +18 -0
  370. package/src/models/EmailPromptList.ts +16 -0
  371. package/src/models/EmailPromptSummary.ts +10 -0
  372. package/src/models/FreeUsageCount.ts +8 -0
  373. package/src/models/FullCourse.ts +18 -0
  374. package/src/models/GreetingMethodEnum.ts +12 -0
  375. package/src/models/GuidedPrompt.ts +9 -0
  376. package/src/models/GuidedPromptsResponse.ts +10 -0
  377. package/src/models/HeygenMarketingVideoDetail.ts +13 -0
  378. package/src/models/HeygenMarketingVideoList.ts +11 -0
  379. package/src/models/HeygenTemplateRequest.ts +10 -0
  380. package/src/models/HeygenTemplateResponseSingle.ts +11 -0
  381. package/src/models/HeygenVideoDetail.ts +13 -0
  382. package/src/models/HeygenVideoRequest.ts +10 -0
  383. package/src/models/HumanSupportTicket.ts +26 -0
  384. package/src/models/HumanSupportTicketStatusEnum.ts +14 -0
  385. package/src/models/InputQuestion.ts +11 -0
  386. package/src/models/IntegrationCredential.ts +13 -0
  387. package/src/models/IntialQuestionAnswer.ts +8 -0
  388. package/src/models/JobRun.ts +16 -0
  389. package/src/models/KindEnum.ts +14 -0
  390. package/src/models/LLMCredentialRequest.ts +19 -0
  391. package/src/models/LLMCredentialResponse.ts +13 -0
  392. package/src/models/LLMModelForTenant.ts +11 -0
  393. package/src/models/LLMQuestion.ts +20 -0
  394. package/src/models/LLMResponse.ts +19 -0
  395. package/src/models/LLMTracesListResponse.ts +10 -0
  396. package/src/models/LanguagesView.ts +10 -0
  397. package/src/models/LinkCourseRequest.ts +8 -0
  398. package/src/models/LinkCourseResponse.ts +10 -0
  399. package/src/models/LlmProviderEnum.ts +12 -0
  400. package/src/models/MCPServer.ts +26 -0
  401. package/src/models/MemoryComponentData.ts +10 -0
  402. package/src/models/MemoryComponentMemory.ts +9 -0
  403. package/src/models/MemoryComponentMemoryDetail.ts +13 -0
  404. package/src/models/MemoryComponentResponse.ts +10 -0
  405. package/src/models/MemoryProgress.ts +13 -0
  406. package/src/models/MemoryStatusRequestView.ts +11 -0
  407. package/src/models/MemoryStatusView.ts +11 -0
  408. package/src/models/Mentor.ts +92 -0
  409. package/src/models/MentorAudience.ts +10 -0
  410. package/src/models/MentorCategory.ts +14 -0
  411. package/src/models/MentorCategoryCreate.ts +16 -0
  412. package/src/models/MentorCategoryGroup.ts +16 -0
  413. package/src/models/MentorCategoryGroupCreate.ts +16 -0
  414. package/src/models/MentorCreate.ts +89 -0
  415. package/src/models/MentorCustomVoice.ts +9 -0
  416. package/src/models/MentorCustomVoiceResponse.ts +9 -0
  417. package/src/models/MentorData.ts +12 -0
  418. package/src/models/MentorDetailAnalytics.ts +11 -0
  419. package/src/models/MentorEval.ts +16 -0
  420. package/src/models/MentorEvalQuestion.ts +10 -0
  421. package/src/models/MentorEvalQuestionRequest.ts +9 -0
  422. package/src/models/MentorEvalReport.ts +15 -0
  423. package/src/models/MentorEvalRequest.ts +13 -0
  424. package/src/models/MentorFacet.ts +22 -0
  425. package/src/models/MentorFork.ts +10 -0
  426. package/src/models/MentorFromTemplateWithSettingRequest.ts +52 -0
  427. package/src/models/MentorMemorySettingsRequest.ts +11 -0
  428. package/src/models/MentorMemorySettingsResponse.ts +11 -0
  429. package/src/models/MentorMetadata.ts +10 -0
  430. package/src/models/MentorScenario.ts +11 -0
  431. package/src/models/MentorScenarioPrompt.ts +10 -0
  432. package/src/models/MentorSearchResponse.ts +40 -0
  433. package/src/models/MentorSession.ts +9 -0
  434. package/src/models/MentorSettings.ts +81 -0
  435. package/src/models/MentorSettingsPublic.ts +57 -0
  436. package/src/models/MentorSettingsRequest.ts +67 -0
  437. package/src/models/MentorVisibilityEnum.ts +14 -0
  438. package/src/models/MentorWizard.ts +9 -0
  439. package/src/models/MessageStatistics.ts +10 -0
  440. package/src/models/MessageView.ts +15 -0
  441. package/src/models/MessageViewRequest.ts +12 -0
  442. package/src/models/MessageViewUpdatResponse.ts +8 -0
  443. package/src/models/Metadata.ts +10 -0
  444. package/src/models/MetricChange.ts +9 -0
  445. package/src/models/ModelCost.ts +9 -0
  446. package/src/models/ModerationLog.ts +16 -0
  447. package/src/models/NoChatMessagesFound.ts +8 -0
  448. package/src/models/NotificationSource.ts +2 -2
  449. package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
  450. package/src/models/NullEnum.ts +7 -0
  451. package/src/models/OAuthStartResponse.ts +8 -0
  452. package/src/models/Observation.ts +36 -0
  453. package/src/models/PageContent.ts +11 -0
  454. package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
  455. package/src/models/PaginatedConversationsList.ts +12 -0
  456. package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
  457. package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
  458. package/src/models/PaginatedEdxCourseList.ts +12 -0
  459. package/src/models/PaginatedEmailPromptListList.ts +12 -0
  460. package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
  461. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
  462. package/src/models/PaginatedHumanSupportTicketList.ts +12 -0
  463. package/src/models/PaginatedJobRunList.ts +12 -0
  464. package/src/models/PaginatedMCPServerList.ts +12 -0
  465. package/src/models/PaginatedMentorList.ts +12 -0
  466. package/src/models/PaginatedModerationLogList.ts +12 -0
  467. package/src/models/PaginatedObservationList.ts +12 -0
  468. package/src/models/PaginatedPeriodicAgentList.ts +12 -0
  469. package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
  470. package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
  471. package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
  472. package/src/models/PaginatedSectionList.ts +12 -0
  473. package/src/models/PaginatedSubSectionList.ts +12 -0
  474. package/src/models/PaginatedTicketMessageList.ts +12 -0
  475. package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
  476. package/src/models/PaginatedTraceList.ts +12 -0
  477. package/src/models/PaginatedUnitList.ts +12 -0
  478. package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
  479. package/src/models/PaginatedUserMemoryList.ts +12 -0
  480. package/src/models/PaginatedVoiceList.ts +12 -0
  481. package/src/models/PatchedCallConfiguration.ts +31 -0
  482. package/src/models/PatchedConversations.ts +33 -0
  483. package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
  484. package/src/models/PatchedCredentialRequest.ts +19 -0
  485. package/src/models/PatchedHumanSupportTicket.ts +26 -0
  486. package/src/models/PatchedLLMCredentialRequest.ts +19 -0
  487. package/src/models/PatchedMCPServer.ts +26 -0
  488. package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
  489. package/src/models/PatchedMentorCreate.ts +89 -0
  490. package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
  491. package/src/models/PatchedPlayWrightScript.ts +17 -0
  492. package/src/models/PatchedPrompt.ts +27 -0
  493. package/src/models/PatchedSection.ts +14 -0
  494. package/src/models/PatchedSubSection.ts +14 -0
  495. package/src/models/PatchedTicketMessage.ts +15 -0
  496. package/src/models/PatchedUnit.ts +16 -0
  497. package/src/models/PeriodicAgent.ts +47 -0
  498. package/src/models/PeriodicAgentCreate.ts +46 -0
  499. package/src/models/PeriodicAgentLog.ts +16 -0
  500. package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
  501. package/src/models/PeriodicTask.ts +26 -0
  502. package/src/models/PieChartData.ts +10 -0
  503. package/src/models/PieChartSegment.ts +9 -0
  504. package/src/models/PinnedMessageCreate.ts +14 -0
  505. package/src/models/PinnedMessageGet.ts +12 -0
  506. package/src/models/PinnedMessageRequest.ts +11 -0
  507. package/src/models/PlayWrightScript.ts +17 -0
  508. package/src/models/PredictiveAnalyticsRequest.ts +9 -0
  509. package/src/models/PredictiveAnalyticsResponse.ts +9 -0
  510. package/src/models/PreviousAgentStatusEnum.ts +16 -0
  511. package/src/models/Prompt.ts +27 -0
  512. package/src/models/PromptCategory.ts +12 -0
  513. package/src/models/PromptFacet.ts +22 -0
  514. package/src/models/PromptSearchResponse.ts +40 -0
  515. package/src/models/PromptVisibilityEnum.ts +14 -0
  516. package/src/models/Provider637Enum.ts +14 -0
  517. package/src/models/QuestionCardTag.ts +13 -0
  518. package/src/models/QuestionRequest.ts +20 -0
  519. package/src/models/QuestionResponse.ts +15 -0
  520. package/src/models/RatingEnum.ts +12 -0
  521. package/src/models/RatingRecord.ts +9 -0
  522. package/src/models/RecentlyAccessedMentor.ts +13 -0
  523. package/src/models/RecommendCourseBlock.ts +8 -0
  524. package/src/models/RecommendCourseResponse.ts +8 -0
  525. package/src/models/RecommendedCoursesResponse.ts +38 -0
  526. package/src/models/RelatedText.ts +8 -0
  527. package/src/models/RequestDataVariable.ts +19 -0
  528. package/src/models/ResourceScrappedData.ts +18 -0
  529. package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
  530. package/src/models/ResponseDataVariable.ts +19 -0
  531. package/src/models/RetreiverTrainViewRequest.ts +15 -0
  532. package/src/models/RetreiverTrainViewResponse.ts +11 -0
  533. package/src/models/RetrieveTask.ts +8 -0
  534. package/src/models/RetrieverDocumentEmbedding.ts +33 -0
  535. package/src/models/RetrieverDocumentEmbeddingRequest.ts +71 -0
  536. package/src/models/RetrieverRequestSearch.ts +15 -0
  537. package/src/models/RetrieverRequestSearchDocument.ts +15 -0
  538. package/src/models/RetrieverResponseSearch.ts +12 -0
  539. package/src/models/ReuestDataVariableList.ts +9 -0
  540. package/src/models/RunMentorEval.ts +8 -0
  541. package/src/models/ScanWebhookRequest.ts +11 -0
  542. package/src/models/ScanWebhookResponse.ts +8 -0
  543. package/src/models/Section.ts +14 -0
  544. package/src/models/SectionWithChildren.ts +16 -0
  545. package/src/models/SeedMentorsView.ts +8 -0
  546. package/src/models/SentimentSummary.ts +9 -0
  547. package/src/models/ServiceEnum.ts +12 -0
  548. package/src/models/SessionBrowserScreenshot.ts +13 -0
  549. package/src/models/SessionDetail.ts +11 -0
  550. package/src/models/SessionMemoryStorage.ts +11 -0
  551. package/src/models/ShareableMentorLink.ts +13 -0
  552. package/src/models/ShellLogs.ts +8 -0
  553. package/src/models/SpacedRepetitionLearningPath.ts +8 -0
  554. package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
  555. package/src/models/StarMentor.ts +12 -0
  556. package/src/models/Status6eeEnum.ts +16 -0
  557. package/src/models/Step.ts +14 -0
  558. package/src/models/StepStatusEnum.ts +14 -0
  559. package/src/models/StripeCheckoutSessionRequest.ts +2 -2
  560. package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
  561. package/src/models/SttProviderEnum.ts +16 -0
  562. package/src/models/StudentChatMessage.ts +9 -0
  563. package/src/models/StylesView.ts +9 -0
  564. package/src/models/SubSection.ts +14 -0
  565. package/src/models/SubSectionWithChildren.ts +16 -0
  566. package/src/models/TagsView.ts +10 -0
  567. package/src/models/TargetSystemEnum.ts +12 -0
  568. package/src/models/TaskView.ts +8 -0
  569. package/src/models/TemplateMentor.ts +14 -0
  570. package/src/models/TenantMentorTraces.ts +11 -0
  571. package/src/models/ThemeEnum.ts +12 -0
  572. package/src/models/TicketMessage.ts +15 -0
  573. package/src/models/TonesView.ts +9 -0
  574. package/src/models/ToolResponse.ts +17 -0
  575. package/src/models/TopicModel.ts +8 -0
  576. package/src/models/TopicRecord.ts +9 -0
  577. package/src/models/TopicStatistics.ts +12 -0
  578. package/src/models/TopicStatisticsResponse.ts +11 -0
  579. package/src/models/TopicSummaryView.ts +9 -0
  580. package/src/models/Trace.ts +22 -0
  581. package/src/models/TrainChatSessionDocumentView.ts +11 -0
  582. package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
  583. package/src/models/TrainDocumentViewRequest.ts +75 -0
  584. package/src/models/TrainDocumentViewResponse.ts +20 -0
  585. package/src/models/TrainingStatusEnum.ts +16 -0
  586. package/src/models/TransportEnum.ts +12 -0
  587. package/src/models/TrendEntry.ts +9 -0
  588. package/src/models/TriggerRequest.ts +10 -0
  589. package/src/models/TriggerResponse.ts +11 -0
  590. package/src/models/TtsProviderEnum.ts +14 -0
  591. package/src/models/TypeC42Enum.ts +12 -0
  592. package/src/models/Unit.ts +16 -0
  593. package/src/models/UnitWithChildren.ts +18 -0
  594. package/src/models/UseMainCreds.ts +8 -0
  595. package/src/models/UserAllChatMemoryView.ts +12 -0
  596. package/src/models/UserCatalogItemMemoryView.ts +19 -0
  597. package/src/models/UserChatByPeriod.ts +9 -0
  598. package/src/models/UserChatFeedback.ts +20 -0
  599. package/src/models/UserChatFeedbackCount.ts +9 -0
  600. package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
  601. package/src/models/UserChatMemoryStatusView.ts +11 -0
  602. package/src/models/UserChatMemoryUpdateView.ts +15 -0
  603. package/src/models/UserCountRecord.ts +9 -0
  604. package/src/models/UserEdxMemory.ts +20 -0
  605. package/src/models/UserMemory.ts +22 -0
  606. package/src/models/UserMemoryContextRequest.ts +18 -0
  607. package/src/models/UserMemoryContextResponse.ts +17 -0
  608. package/src/models/UserMemoryEntry.ts +12 -0
  609. package/src/models/UserMemoryEntryRequest.ts +10 -0
  610. package/src/models/UserMemoryRequest.ts +17 -0
  611. package/src/models/UserMetric.ts +9 -0
  612. package/src/models/UserMetricsResponse.ts +12 -0
  613. package/src/models/UserSentimentCountView.ts +9 -0
  614. package/src/models/UserTrendByPeriod.ts +10 -0
  615. package/src/models/VectorResult.ts +13 -0
  616. package/src/models/VideoCaption.ts +8 -0
  617. package/src/models/Voice.ts +14 -0
  618. package/src/models/WebResource.ts +14 -0
  619. package/src/models/WebResourceCard.ts +12 -0
  620. package/src/models/WebResourcesQuery.ts +8 -0
  621. package/src/services/AiAccountService.ts +456 -0
  622. package/src/services/AiAnalyticsService.ts +10127 -3575
  623. package/src/services/AiIndexService.ts +719 -0
  624. package/src/services/AiMarketingService.ts +96 -0
  625. package/src/services/AiMediaService.ts +289 -0
  626. package/src/services/AiMentorService.ts +9909 -0
  627. package/src/services/AiPromptService.ts +1985 -0
  628. package/src/services/SearchService.ts +1446 -398
@@ -0,0 +1,719 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CheckDocumentTrainingStatus } from '../models/CheckDocumentTrainingStatus';
6
+ import type { DocumentSettingsResponse } from '../models/DocumentSettingsResponse';
7
+ import type { PaginatedRetrieverDocumentEmbeddingList } from '../models/PaginatedRetrieverDocumentEmbeddingList';
8
+ import type { ResourceScrappedData } from '../models/ResourceScrappedData';
9
+ import type { RetreiverTrainViewRequest } from '../models/RetreiverTrainViewRequest';
10
+ import type { RetreiverTrainViewResponse } from '../models/RetreiverTrainViewResponse';
11
+ import type { RetrieverDocumentEmbedding } from '../models/RetrieverDocumentEmbedding';
12
+ import type { RetrieverDocumentEmbeddingRequest } from '../models/RetrieverDocumentEmbeddingRequest';
13
+ import type { RetrieverRequestSearch } from '../models/RetrieverRequestSearch';
14
+ import type { RetrieverRequestSearchDocument } from '../models/RetrieverRequestSearchDocument';
15
+ import type { RetrieverResponseSearch } from '../models/RetrieverResponseSearch';
16
+ import type { ScanWebhookRequest } from '../models/ScanWebhookRequest';
17
+ import type { ScanWebhookResponse } from '../models/ScanWebhookResponse';
18
+ import type { TrainChatSessionDocumentView } from '../models/TrainChatSessionDocumentView';
19
+ import type { TrainChatSessionDocumentViewRequest } from '../models/TrainChatSessionDocumentViewRequest';
20
+ import type { TrainDocumentViewRequest } from '../models/TrainDocumentViewRequest';
21
+ import type { TrainDocumentViewResponse } from '../models/TrainDocumentViewResponse';
22
+ import type { CancelablePromise } from '../core/CancelablePromise';
23
+ import { OpenAPI } from '../core/OpenAPI';
24
+ import { request as __request } from '../core/request';
25
+ export class AiIndexService {
26
+ /**
27
+ * Retrieve details of a specific document embedding.
28
+ *
29
+ * This endpoint returns detailed information about a specific
30
+ * document embedding identified by its ID.
31
+ *
32
+ * Args:
33
+ * request: The HTTP request.
34
+ * org: Organization key identifier.
35
+ * document_id: The ID of the document embedding to retrieve.
36
+ *
37
+ * Returns:
38
+ * Response: Detailed information about the document embedding.
39
+ *
40
+ * Raises:
41
+ * NotFound: If the specified document embedding does not exist.
42
+ * @returns RetrieverDocumentEmbedding
43
+ * @throws ApiError
44
+ */
45
+ public static aiIndexOrgsUsersDocumentsRetrieve({
46
+ documentId,
47
+ org,
48
+ userId,
49
+ }: {
50
+ documentId: string,
51
+ org: string,
52
+ userId: string,
53
+ }): CancelablePromise<RetrieverDocumentEmbedding> {
54
+ return __request(OpenAPI, {
55
+ method: 'GET',
56
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
57
+ path: {
58
+ 'document_id': documentId,
59
+ 'org': org,
60
+ 'user_id': userId,
61
+ },
62
+ errors: {
63
+ 404: `Document not found`,
64
+ },
65
+ });
66
+ }
67
+ /**
68
+ * Update a specific document embedding.
69
+ *
70
+ * This endpoint allows updating various properties of a document embedding,
71
+ * including its name, type, pathway, and training status.
72
+ *
73
+ * Args:
74
+ * request: The HTTP request containing the updated document data.
75
+ * org: Organization key identifier.
76
+ * document_id: The ID of the document embedding to update.
77
+ *
78
+ * Returns:
79
+ * Response: The updated document embedding information.
80
+ *
81
+ * Raises:
82
+ * BadRequest: If the provided data is invalid.
83
+ * NotFound: If the specified document embedding does not exist.
84
+ * @returns RetrieverDocumentEmbedding
85
+ * @throws ApiError
86
+ */
87
+ public static aiIndexOrgsUsersDocumentsUpdate({
88
+ documentId,
89
+ org,
90
+ userId,
91
+ formData,
92
+ }: {
93
+ documentId: string,
94
+ org: string,
95
+ userId: string,
96
+ formData: RetrieverDocumentEmbeddingRequest,
97
+ }): CancelablePromise<RetrieverDocumentEmbedding> {
98
+ return __request(OpenAPI, {
99
+ method: 'PUT',
100
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
101
+ path: {
102
+ 'document_id': documentId,
103
+ 'org': org,
104
+ 'user_id': userId,
105
+ },
106
+ formData: formData,
107
+ mediaType: 'multipart/form-data',
108
+ errors: {
109
+ 400: `Invalid request data`,
110
+ 404: `Document not found`,
111
+ },
112
+ });
113
+ }
114
+ /**
115
+ * Delete a specific document embedding.
116
+ *
117
+ * This endpoint removes a document embedding from the system,
118
+ * including untraining it from any associated pathways.
119
+ *
120
+ * Args:
121
+ * request: The HTTP request.
122
+ * org: Organization key identifier.
123
+ * document_id: The ID of the document embedding to delete.
124
+ *
125
+ * Returns:
126
+ * Response: An empty response with a 204 status code if successful.
127
+ *
128
+ * Raises:
129
+ * NotFound: If the specified document embedding does not exist.
130
+ * @returns void
131
+ * @throws ApiError
132
+ */
133
+ public static aiIndexOrgsUsersDocumentsDestroy({
134
+ documentId,
135
+ org,
136
+ userId,
137
+ }: {
138
+ documentId: string,
139
+ org: string,
140
+ userId: string,
141
+ }): CancelablePromise<void> {
142
+ return __request(OpenAPI, {
143
+ method: 'DELETE',
144
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
145
+ path: {
146
+ 'document_id': documentId,
147
+ 'org': org,
148
+ 'user_id': userId,
149
+ },
150
+ errors: {
151
+ 404: `Document not found`,
152
+ },
153
+ });
154
+ }
155
+ /**
156
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
157
+ * @returns DocumentSettingsResponse
158
+ * @throws ApiError
159
+ */
160
+ public static aiIndexOrgsUsersDocumentsSettingsRetrieve({
161
+ documentId,
162
+ org,
163
+ userId,
164
+ }: {
165
+ documentId: string,
166
+ org: string,
167
+ userId: string,
168
+ }): CancelablePromise<DocumentSettingsResponse> {
169
+ return __request(OpenAPI, {
170
+ method: 'GET',
171
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
172
+ path: {
173
+ 'document_id': documentId,
174
+ 'org': org,
175
+ 'user_id': userId,
176
+ },
177
+ });
178
+ }
179
+ /**
180
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
181
+ * @returns DocumentSettingsResponse
182
+ * @throws ApiError
183
+ */
184
+ public static aiIndexOrgsUsersDocumentsSettingsCreate({
185
+ documentId,
186
+ org,
187
+ userId,
188
+ requestBody,
189
+ }: {
190
+ documentId: string,
191
+ org: string,
192
+ userId: string,
193
+ requestBody?: DocumentSettingsResponse,
194
+ }): CancelablePromise<DocumentSettingsResponse> {
195
+ return __request(OpenAPI, {
196
+ method: 'POST',
197
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
198
+ path: {
199
+ 'document_id': documentId,
200
+ 'org': org,
201
+ 'user_id': userId,
202
+ },
203
+ body: requestBody,
204
+ mediaType: 'application/json',
205
+ });
206
+ }
207
+ /**
208
+ * Train a graph-based document through a worker process.
209
+ *
210
+ * This endpoint queues graph-based documents for training through a
211
+ * specialized worker process that handles knowledge graph processing.
212
+ *
213
+ * Args:
214
+ * request: The HTTP request containing the document information.
215
+ * org: Organization key identifier.
216
+ *
217
+ * Returns:
218
+ * Response: A confirmation that the document was queued for training,
219
+ * including a task ID for tracking the progress.
220
+ *
221
+ * Raises:
222
+ * ValidationError: If the request data is invalid.
223
+ * BadRequest: If there was an error processing the document.
224
+ * @returns TrainDocumentViewResponse
225
+ * @throws ApiError
226
+ */
227
+ public static aiIndexOrgsUsersDocumentsGraphTrainCreate({
228
+ org,
229
+ userId,
230
+ formData,
231
+ }: {
232
+ org: string,
233
+ userId: string,
234
+ formData: TrainDocumentViewRequest,
235
+ }): CancelablePromise<TrainDocumentViewResponse> {
236
+ return __request(OpenAPI, {
237
+ method: 'POST',
238
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
239
+ path: {
240
+ 'org': org,
241
+ 'user_id': userId,
242
+ },
243
+ formData: formData,
244
+ mediaType: 'multipart/form-data',
245
+ errors: {
246
+ 400: `Invalid request data or document processing error`,
247
+ },
248
+ });
249
+ }
250
+ /**
251
+ * Description:
252
+ * Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
253
+ *
254
+ * Methods:
255
+ * - GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
256
+ *
257
+ * Parameters:
258
+ * - search (str): Search query to filter document names or URLs.
259
+ * - offset (int): Offset number for pagination.
260
+ * - limit (int): Limit number for pagination.
261
+ *
262
+ * Returns:
263
+ * - GET: A paginated list of document embeddings with their details.
264
+ * {
265
+ * "count": 10,
266
+ * "next": "http://api.example.com/retriever_documents/?offset=10&limit=2",
267
+ * "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2",
268
+ * "results": [
269
+ * {
270
+ * "document_name": "Document2",
271
+ * "platform_key": "example_platform",
272
+ * "pathway": "example_pathway"
273
+ * }
274
+ * ]
275
+ * }
276
+ *
277
+ * Error Responses:
278
+ * - 400 Bad Request: Invalid query parameters.
279
+ * - 404 Not Found: No document embeddings found for the specified criteria.
280
+ * @returns PaginatedRetrieverDocumentEmbeddingList
281
+ * @throws ApiError
282
+ */
283
+ public static aiIndexOrgsUsersDocumentsPathwaysList({
284
+ org,
285
+ pathway,
286
+ userId,
287
+ limit,
288
+ offset,
289
+ search,
290
+ }: {
291
+ org: string,
292
+ pathway: string,
293
+ userId: string,
294
+ /**
295
+ * limit number
296
+ */
297
+ limit?: number,
298
+ /**
299
+ * Offset number
300
+ */
301
+ offset?: number,
302
+ /**
303
+ * Search query
304
+ */
305
+ search?: string,
306
+ }): CancelablePromise<PaginatedRetrieverDocumentEmbeddingList> {
307
+ return __request(OpenAPI, {
308
+ method: 'GET',
309
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/',
310
+ path: {
311
+ 'org': org,
312
+ 'pathway': pathway,
313
+ 'user_id': userId,
314
+ },
315
+ query: {
316
+ 'limit': limit,
317
+ 'offset': offset,
318
+ 'search': search,
319
+ },
320
+ });
321
+ }
322
+ /**
323
+ * Retrieve resource documents similar to the given query.
324
+ *
325
+ * This endpoint performs a semantic search to find documents that are
326
+ * relevant to the provided query within the specified pathway.
327
+ *
328
+ * Args:
329
+ * request: The HTTP request containing the search query.
330
+ * org: Organization key identifier.
331
+ *
332
+ * Returns:
333
+ * Response: A list of documents relevant to the search query.
334
+ *
335
+ * Raises:
336
+ * ValidationError: If the request data is invalid.
337
+ * @returns RetrieverResponseSearch
338
+ * @throws ApiError
339
+ */
340
+ public static aiIndexOrgsUsersDocumentsSearchCreate({
341
+ org,
342
+ userId,
343
+ requestBody,
344
+ }: {
345
+ org: string,
346
+ userId: string,
347
+ requestBody: RetrieverRequestSearch,
348
+ }): CancelablePromise<RetrieverResponseSearch> {
349
+ return __request(OpenAPI, {
350
+ method: 'POST',
351
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/search/',
352
+ path: {
353
+ 'org': org,
354
+ 'user_id': userId,
355
+ },
356
+ body: requestBody,
357
+ mediaType: 'application/json',
358
+ errors: {
359
+ 400: `Invalid request data`,
360
+ },
361
+ });
362
+ }
363
+ /**
364
+ * Retrieve document sources related to a given query.
365
+ *
366
+ * This endpoint performs a semantic search to find document sources
367
+ * that are relevant to the provided query within the specified pathway,
368
+ * and returns them along with confidence levels.
369
+ *
370
+ * Args:
371
+ * request: The HTTP request containing the search query.
372
+ * org: Organization key identifier.
373
+ *
374
+ * Returns:
375
+ * Response: A list of document sources with confidence levels.
376
+ *
377
+ * Raises:
378
+ * ValidationError: If the request data is invalid.
379
+ * @returns RetrieverRequestSearchDocument
380
+ * @throws ApiError
381
+ */
382
+ public static aiIndexOrgsUsersDocumentsSourcesCreate({
383
+ org,
384
+ userId,
385
+ requestBody,
386
+ }: {
387
+ org: string,
388
+ userId: string,
389
+ requestBody: RetrieverRequestSearch,
390
+ }): CancelablePromise<Array<RetrieverRequestSearchDocument>> {
391
+ return __request(OpenAPI, {
392
+ method: 'POST',
393
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/',
394
+ path: {
395
+ 'org': org,
396
+ 'user_id': userId,
397
+ },
398
+ body: requestBody,
399
+ mediaType: 'application/json',
400
+ errors: {
401
+ 400: `Invalid request data`,
402
+ },
403
+ });
404
+ }
405
+ /**
406
+ * Check the status of a document training task.
407
+ *
408
+ * This endpoint retrieves the current status of an asynchronous
409
+ * document training task that was previously initiated.
410
+ *
411
+ * Args:
412
+ * request: The HTTP request.
413
+ * org: Organization key identifier.
414
+ * task_id: The ID of the training task to check.
415
+ *
416
+ * Returns:
417
+ * Response: The current status of the document training task,
418
+ * which can be "pending", "completed", or "failed".
419
+ * @returns CheckDocumentTrainingStatus
420
+ * @throws ApiError
421
+ */
422
+ public static aiIndexOrgsUsersDocumentsTasksRetrieve({
423
+ org,
424
+ taskId,
425
+ userId,
426
+ }: {
427
+ org: string,
428
+ taskId: string,
429
+ userId: string,
430
+ }): CancelablePromise<CheckDocumentTrainingStatus> {
431
+ return __request(OpenAPI, {
432
+ method: 'GET',
433
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/',
434
+ path: {
435
+ 'org': org,
436
+ 'task_id': taskId,
437
+ 'user_id': userId,
438
+ },
439
+ });
440
+ }
441
+ /**
442
+ * Train a document through a worker process.
443
+ *
444
+ * This endpoint queues larger documents for training through a worker
445
+ * process, which is more suitable for handling documents that would
446
+ * take too long to process directly.
447
+ *
448
+ * Args:
449
+ * request: The HTTP request containing the document information.
450
+ * org: Organization key identifier.
451
+ *
452
+ * Returns:
453
+ * Response: A confirmation that the document was queued for training,
454
+ * including a task ID for tracking the progress.
455
+ *
456
+ * Raises:
457
+ * ValidationError: If the request data is invalid.
458
+ * BadRequest: If there was an error processing the document.
459
+ * @returns TrainDocumentViewResponse
460
+ * @throws ApiError
461
+ */
462
+ public static aiIndexOrgsUsersDocumentsTrainCreate({
463
+ org,
464
+ userId,
465
+ formData,
466
+ }: {
467
+ org: string,
468
+ userId: string,
469
+ formData: TrainDocumentViewRequest,
470
+ }): CancelablePromise<TrainDocumentViewResponse> {
471
+ return __request(OpenAPI, {
472
+ method: 'POST',
473
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/',
474
+ path: {
475
+ 'org': org,
476
+ 'user_id': userId,
477
+ },
478
+ formData: formData,
479
+ mediaType: 'multipart/form-data',
480
+ errors: {
481
+ 400: `Invalid request data`,
482
+ },
483
+ });
484
+ }
485
+ /**
486
+ * Train a document directly without using a worker.
487
+ *
488
+ * This endpoint is designed for training smaller documents directly
489
+ * without queuing them through a worker process. For larger documents,
490
+ * use the TrainDocumentView endpoint instead.
491
+ *
492
+ * Args:
493
+ * request: The HTTP request containing the document information.
494
+ * org: Organization key identifier.
495
+ *
496
+ * Returns:
497
+ * Response: A confirmation that the document was trained successfully.
498
+ *
499
+ * Raises:
500
+ * ValidationError: If the request data is invalid.
501
+ * BadRequest: If the document training failed.
502
+ * @returns RetreiverTrainViewResponse
503
+ * @throws ApiError
504
+ */
505
+ public static aiIndexOrgsUsersDocumentsTrainRetrieverCreate({
506
+ org,
507
+ userId,
508
+ formData,
509
+ }: {
510
+ org: string,
511
+ userId: string,
512
+ formData: RetreiverTrainViewRequest,
513
+ }): CancelablePromise<RetreiverTrainViewResponse> {
514
+ return __request(OpenAPI, {
515
+ method: 'POST',
516
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/retriever/',
517
+ path: {
518
+ 'org': org,
519
+ 'user_id': userId,
520
+ },
521
+ formData: formData,
522
+ mediaType: 'multipart/form-data',
523
+ errors: {
524
+ 400: `Invalid request data or training failed`,
525
+ },
526
+ });
527
+ }
528
+ /**
529
+ * Description:
530
+ * Submit a document file in a chat session. Checks file type, size, and ensures the session exists, then processes the file.
531
+ * Process document for use in a specific chat session.
532
+ * which will be processed and made available for the AI to reference
533
+ * when responding to queries in that session.
534
+ *
535
+ * Methods:
536
+ * - POST: Submits a document or media file for training within a specified chat session.
537
+ *
538
+ * Parameters:
539
+ * - org (str):
540
+ * - session_id (str): UUID of the chat session for which the document is being submitted.
541
+ * - *args, **kwargs: Additional arguments.
542
+ * - file (file): Multipart file input.
543
+ *
544
+ * Returns:
545
+ * - POST: Returns a JSON message with the result of the upload process. Response code 200 on success.
546
+ * {
547
+ * "message": "File processed."
548
+ * }
549
+ *
550
+ * Error Responses:
551
+ * - 400 Bad Request:
552
+ * - "File field is required" if the 'file' parameter is missing.
553
+ * - "invalid file object" if the file object is not valid.
554
+ * - Specific error message if an exception occurs while saving to Redis.
555
+ * - 404 Not Found:
556
+ * - "Session not found" if the provided session_id does not match any existing session.
557
+ * - 413 Request Entity Too Large:
558
+ * - "file is too large" including specific limits for document and media files if the file exceeds size limits.
559
+ *
560
+ * Access Control:
561
+ * Requires authentication with a Bearer token in the Authorization header. The user associated with the session must exist and be authorized for the request.
562
+ * @returns TrainChatSessionDocumentView
563
+ * @throws ApiError
564
+ */
565
+ public static aiIndexOrgsUsersDocumentsTrainSessionsCreate({
566
+ org,
567
+ sessionId,
568
+ userId,
569
+ formData,
570
+ }: {
571
+ org: string,
572
+ sessionId: string,
573
+ userId: string,
574
+ formData: TrainChatSessionDocumentViewRequest,
575
+ }): CancelablePromise<TrainChatSessionDocumentView> {
576
+ return __request(OpenAPI, {
577
+ method: 'POST',
578
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/sessions/{session_id}/',
579
+ path: {
580
+ 'org': org,
581
+ 'session_id': sessionId,
582
+ 'user_id': userId,
583
+ },
584
+ formData: formData,
585
+ mediaType: 'multipart/form-data',
586
+ errors: {
587
+ 400: `Invalid file or processing error`,
588
+ 413: `File too large`,
589
+ },
590
+ });
591
+ }
592
+ /**
593
+ * Retrieve detailed information about a specific scraped resource.
594
+ *
595
+ * This endpoint returns the complete scraped data for a specific resource
596
+ * identified by its ID.
597
+ *
598
+ * Args:
599
+ * request: The HTTP request.
600
+ * org: Organization key identifier.
601
+ * user_id: The username of the user associated with the resource.
602
+ * resource_id: The ID of the resource to retrieve.
603
+ *
604
+ * Returns:
605
+ * Response: The complete scraped data for the specified resource.
606
+ *
607
+ * Raises:
608
+ * NotFound: If the specified resource data does not exist.
609
+ * @returns ResourceScrappedData
610
+ * @throws ApiError
611
+ */
612
+ public static aiIndexOrgsUsersResourceDataScrappedRetrieve({
613
+ org,
614
+ resourceId,
615
+ userId,
616
+ }: {
617
+ org: string,
618
+ resourceId: string,
619
+ userId: string,
620
+ }): CancelablePromise<ResourceScrappedData> {
621
+ return __request(OpenAPI, {
622
+ method: 'GET',
623
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/resource/{resource_id}/data/scrapped/',
624
+ path: {
625
+ 'org': org,
626
+ 'resource_id': resourceId,
627
+ 'user_id': userId,
628
+ },
629
+ errors: {
630
+ 404: `Resource data not found`,
631
+ },
632
+ });
633
+ }
634
+ /**
635
+ * Retrieve and filter scraped data from resources.
636
+ *
637
+ * This endpoint returns a list of scraped data from resources associated
638
+ * with the specified user, with optional filtering based on query parameters.
639
+ *
640
+ * Args:
641
+ * request: The HTTP request containing filter query parameters.
642
+ * org: Organization key identifier.
643
+ * user_id: The username of the user whose resources to retrieve.
644
+ *
645
+ * Returns:
646
+ * Response: A list of scraped resource data matching the filter criteria.
647
+ *
648
+ * Raises:
649
+ * BadRequest: If the username is invalid or query parameters are incorrect.
650
+ * @returns ResourceScrappedData
651
+ * @throws ApiError
652
+ */
653
+ public static aiIndexOrgsUsersResourceDataScrappedList({
654
+ org,
655
+ userId,
656
+ isArchive,
657
+ isLike,
658
+ isVideo,
659
+ searchKey,
660
+ }: {
661
+ org: string,
662
+ userId: string,
663
+ isArchive?: boolean | null,
664
+ isLike?: boolean | null,
665
+ isVideo?: boolean | null,
666
+ searchKey?: string,
667
+ }): CancelablePromise<Array<ResourceScrappedData>> {
668
+ return __request(OpenAPI, {
669
+ method: 'GET',
670
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/resource/data/scrapped/',
671
+ path: {
672
+ 'org': org,
673
+ 'user_id': userId,
674
+ },
675
+ query: {
676
+ 'is_archive': isArchive,
677
+ 'is_like': isLike,
678
+ 'is_video': isVideo,
679
+ 'search_key': searchKey,
680
+ },
681
+ errors: {
682
+ 400: `Invalid username or query parameters`,
683
+ },
684
+ });
685
+ }
686
+ /**
687
+ * Receive and process file scan status from external security scanning services.
688
+ *
689
+ * This webhook endpoint receives scan results for files that have been submitted
690
+ * for security scanning. It processes the results asynchronously and determines
691
+ * if the files are safe for further processing.
692
+ *
693
+ * Args:
694
+ * request: The HTTP request containing scan result data.
695
+ *
696
+ * Returns:
697
+ * Response: A confirmation that the scan result was received and is being processed.
698
+ *
699
+ * Raises:
700
+ * BadRequest: If the provided scan result data is invalid.
701
+ * @returns ScanWebhookResponse
702
+ * @throws ApiError
703
+ */
704
+ public static aiIndexWebhookScanCreate({
705
+ requestBody,
706
+ }: {
707
+ requestBody: ScanWebhookRequest,
708
+ }): CancelablePromise<ScanWebhookResponse> {
709
+ return __request(OpenAPI, {
710
+ method: 'POST',
711
+ url: '/api/ai-index/webhook/scan/',
712
+ body: requestBody,
713
+ mediaType: 'application/json',
714
+ errors: {
715
+ 400: `Invalid request data`,
716
+ },
717
+ });
718
+ }
719
+ }