@iblai/iblai-api 3.45.6-ai → 3.45.7-core

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