@iblai/iblai-api 3.48.1-core → 3.48.2-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 (590) hide show
  1. package/dist/index.cjs.js +15101 -129
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +15095 -130
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +15101 -129
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +281 -1
  8. package/dist/types/models/AIGeneratedImage.d.ts +13 -0
  9. package/dist/types/models/AIUserProfileMemoryRelation.d.ts +4 -0
  10. package/dist/types/models/AIUserProfileRequest.d.ts +4 -0
  11. package/dist/types/models/APITokenCost.d.ts +14 -0
  12. package/dist/types/models/AccessEnum.d.ts +8 -0
  13. package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
  14. package/dist/types/models/AnalyticsOverview.d.ts +7 -0
  15. package/dist/types/models/Answer.d.ts +11 -0
  16. package/dist/types/models/AssumedKnowledge.d.ts +4 -0
  17. package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
  18. package/dist/types/models/AudioToTextRequest.d.ts +3 -0
  19. package/dist/types/models/AudioToTextResponse.d.ts +3 -0
  20. package/dist/types/models/CallAuthenticationRequest.d.ts +13 -0
  21. package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
  22. package/dist/types/models/ChatHistory.d.ts +8 -0
  23. package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
  24. package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
  25. package/dist/types/models/ChatHistoryItem.d.ts +5 -0
  26. package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
  27. package/dist/types/models/ChatSessionRequest.d.ts +10 -0
  28. package/dist/types/models/ChatSessionResponse.d.ts +5 -0
  29. package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
  30. package/dist/types/models/ComponentBlock.d.ts +9 -0
  31. package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
  32. package/dist/types/models/ConversationMessage.d.ts +11 -0
  33. package/dist/types/models/ConversationRating.d.ts +6 -0
  34. package/dist/types/models/ConversationSummary.d.ts +5 -0
  35. package/dist/types/models/ConversationVolume.d.ts +4 -0
  36. package/dist/types/models/Conversations.d.ts +28 -0
  37. package/dist/types/models/Cost.d.ts +3 -0
  38. package/dist/types/models/CostPerTenant.d.ts +6 -0
  39. package/dist/types/models/CourseCreationTask.d.ts +31 -0
  40. package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
  41. package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
  42. package/dist/types/models/CredentialRequest.d.ts +14 -0
  43. package/dist/types/models/CrontabSchedule.d.ts +22 -0
  44. package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
  45. package/dist/types/models/DateRange.d.ts +4 -0
  46. package/dist/types/models/Document.d.ts +41 -0
  47. package/dist/types/models/DocumentFacet.d.ts +17 -0
  48. package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
  49. package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
  50. package/dist/types/models/EdxCourse.d.ts +11 -0
  51. package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
  52. package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
  53. package/dist/types/models/EmailPromptDetail.d.ts +13 -0
  54. package/dist/types/models/EmailPromptList.d.ts +11 -0
  55. package/dist/types/models/EmailPromptSummary.d.ts +5 -0
  56. package/dist/types/models/FreeUsageCount.d.ts +3 -0
  57. package/dist/types/models/FullCourse.d.ts +13 -0
  58. package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
  59. package/dist/types/models/GuidedPromptsResponse.d.ts +3 -0
  60. package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
  61. package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
  62. package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
  63. package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
  64. package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
  65. package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
  66. package/dist/types/models/IBLAIPlatformMeta.d.ts +3 -0
  67. package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +6 -0
  68. package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +10 -0
  69. package/dist/types/models/InputQuestion.d.ts +6 -0
  70. package/dist/types/models/IntegrationCredential.d.ts +8 -0
  71. package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
  72. package/dist/types/models/JobRun.d.ts +11 -0
  73. package/dist/types/models/KindEnum.d.ts +10 -0
  74. package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
  75. package/dist/types/models/LLMCredentialResponse.d.ts +8 -0
  76. package/dist/types/models/LLMModelForTenant.d.ts +6 -0
  77. package/dist/types/models/LLMQuestion.d.ts +15 -0
  78. package/dist/types/models/LLMResponse.d.ts +14 -0
  79. package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
  80. package/dist/types/models/LanguagesView.d.ts +5 -0
  81. package/dist/types/models/LinkCourseRequest.d.ts +3 -0
  82. package/dist/types/models/LinkCourseResponse.d.ts +5 -0
  83. package/dist/types/models/MCPServer.d.ts +21 -0
  84. package/dist/types/models/MemoryComponentData.d.ts +5 -0
  85. package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
  86. package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
  87. package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
  88. package/dist/types/models/MemoryProgress.d.ts +8 -0
  89. package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
  90. package/dist/types/models/MemoryStatusView.d.ts +6 -0
  91. package/dist/types/models/Mentor.d.ts +85 -0
  92. package/dist/types/models/MentorAudience.d.ts +5 -0
  93. package/dist/types/models/MentorCategory.d.ts +9 -0
  94. package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
  95. package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
  96. package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
  97. package/dist/types/models/MentorCreate.d.ts +84 -0
  98. package/dist/types/models/MentorCustomVoice.d.ts +4 -0
  99. package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
  100. package/dist/types/models/MentorData.d.ts +7 -0
  101. package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
  102. package/dist/types/models/MentorEval.d.ts +11 -0
  103. package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
  104. package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
  105. package/dist/types/models/MentorEvalReport.d.ts +10 -0
  106. package/dist/types/models/MentorEvalRequest.d.ts +8 -0
  107. package/dist/types/models/MentorFacet.d.ts +17 -0
  108. package/dist/types/models/MentorFork.d.ts +5 -0
  109. package/dist/types/models/MentorFromTemplateRequest.d.ts +4 -0
  110. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +47 -0
  111. package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
  112. package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
  113. package/dist/types/models/MentorMetadata.d.ts +5 -0
  114. package/dist/types/models/MentorScenario.d.ts +6 -0
  115. package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
  116. package/dist/types/models/MentorSearchResponse.d.ts +35 -0
  117. package/dist/types/models/MentorSession.d.ts +4 -0
  118. package/dist/types/models/MentorSettings.d.ts +58 -0
  119. package/dist/types/models/MentorSettingsPublic.d.ts +46 -0
  120. package/dist/types/models/MentorSettingsRequest.d.ts +62 -0
  121. package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
  122. package/dist/types/models/MentorWizard.d.ts +4 -0
  123. package/dist/types/models/MessageStatistics.d.ts +5 -0
  124. package/dist/types/models/MessageView.d.ts +10 -0
  125. package/dist/types/models/MessageViewRequest.d.ts +7 -0
  126. package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
  127. package/dist/types/models/Metadata.d.ts +5 -0
  128. package/dist/types/models/MetricChange.d.ts +4 -0
  129. package/dist/types/models/ModelCost.d.ts +4 -0
  130. package/dist/types/models/ModerationLog.d.ts +11 -0
  131. package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
  132. package/dist/types/models/NotificationSource.d.ts +2 -2
  133. package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
  134. package/dist/types/models/NullEnum.d.ts +1 -0
  135. package/dist/types/models/PageContent.d.ts +6 -0
  136. package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
  137. package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
  138. package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
  139. package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
  140. package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
  141. package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
  142. package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
  143. package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
  144. package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
  145. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  146. package/dist/types/models/PaginatedMentorList.d.ts +7 -0
  147. package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
  148. package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
  149. package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
  150. package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
  151. package/dist/types/models/PaginatedSectionList.d.ts +7 -0
  152. package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
  153. package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
  154. package/dist/types/models/PaginatedUnitList.d.ts +7 -0
  155. package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
  156. package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
  157. package/dist/types/models/PatchedConversations.d.ts +28 -0
  158. package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
  159. package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
  160. package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
  161. package/dist/types/models/PatchedMCPServer.d.ts +21 -0
  162. package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
  163. package/dist/types/models/PatchedMentorCreate.d.ts +84 -0
  164. package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
  165. package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
  166. package/dist/types/models/PatchedPrompt.d.ts +22 -0
  167. package/dist/types/models/PatchedRbacGroupRole.d.ts +2 -2
  168. package/dist/types/models/PatchedRbacPolicy.d.ts +2 -2
  169. package/dist/types/models/PatchedRbacUserRole.d.ts +2 -2
  170. package/dist/types/models/PatchedSection.d.ts +9 -0
  171. package/dist/types/models/PatchedSubSection.d.ts +9 -0
  172. package/dist/types/models/PatchedUnit.d.ts +11 -0
  173. package/dist/types/models/PeriodicAgent.d.ts +42 -0
  174. package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
  175. package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
  176. package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
  177. package/dist/types/models/PeriodicTask.d.ts +21 -0
  178. package/dist/types/models/PieChartData.d.ts +5 -0
  179. package/dist/types/models/PieChartSegment.d.ts +4 -0
  180. package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
  181. package/dist/types/models/PinnedMessageGet.d.ts +7 -0
  182. package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
  183. package/dist/types/models/PlayWrightScript.d.ts +12 -0
  184. package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
  185. package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
  186. package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
  187. package/dist/types/models/Prompt.d.ts +22 -0
  188. package/dist/types/models/PromptCategory.d.ts +7 -0
  189. package/dist/types/models/PromptFacet.d.ts +17 -0
  190. package/dist/types/models/PromptSearchResponse.d.ts +35 -0
  191. package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
  192. package/dist/types/models/ProviderEnum.d.ts +10 -0
  193. package/dist/types/models/QuestionCardTag.d.ts +8 -0
  194. package/dist/types/models/QuestionRequest.d.ts +15 -0
  195. package/dist/types/models/QuestionResponse.d.ts +10 -0
  196. package/dist/types/models/RatingEnum.d.ts +8 -0
  197. package/dist/types/models/RatingRecord.d.ts +4 -0
  198. package/dist/types/models/RbacBaseRole.d.ts +15 -0
  199. package/dist/types/models/RbacGroupRole.d.ts +2 -2
  200. package/dist/types/models/RbacPolicy.d.ts +2 -2
  201. package/dist/types/models/RbacUserRole.d.ts +2 -2
  202. package/dist/types/models/RecentlyAccessedMentor.d.ts +8 -0
  203. package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
  204. package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
  205. package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
  206. package/dist/types/models/RelatedText.d.ts +3 -0
  207. package/dist/types/models/RequestDataVariable.d.ts +14 -0
  208. package/dist/types/models/ResourceScrappedData.d.ts +13 -0
  209. package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
  210. package/dist/types/models/ResponseDataVariable.d.ts +14 -0
  211. package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
  212. package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
  213. package/dist/types/models/RetrieveTask.d.ts +3 -0
  214. package/dist/types/models/RetrieverDocumentEmbedding.d.ts +17 -0
  215. package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +30 -0
  216. package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
  217. package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
  218. package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
  219. package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
  220. package/dist/types/models/RunMentorEval.d.ts +3 -0
  221. package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
  222. package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
  223. package/dist/types/models/Section.d.ts +9 -0
  224. package/dist/types/models/SectionWithChildren.d.ts +11 -0
  225. package/dist/types/models/SeedMentorsView.d.ts +3 -0
  226. package/dist/types/models/SentimentSummary.d.ts +4 -0
  227. package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
  228. package/dist/types/models/SessionDetail.d.ts +6 -0
  229. package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
  230. package/dist/types/models/ShellLogs.d.ts +3 -0
  231. package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
  232. package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
  233. package/dist/types/models/StarMentor.d.ts +7 -0
  234. package/dist/types/models/Status6eeEnum.d.ts +12 -0
  235. package/dist/types/models/Step.d.ts +9 -0
  236. package/dist/types/models/StepStatusEnum.d.ts +10 -0
  237. package/dist/types/models/StudentChatMessage.d.ts +4 -0
  238. package/dist/types/models/StylesView.d.ts +4 -0
  239. package/dist/types/models/SubSection.d.ts +9 -0
  240. package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
  241. package/dist/types/models/TagsView.d.ts +5 -0
  242. package/dist/types/models/TargetSystemEnum.d.ts +8 -0
  243. package/dist/types/models/TaskView.d.ts +3 -0
  244. package/dist/types/models/TemplateMentor.d.ts +9 -0
  245. package/dist/types/models/TenantMentorTraces.d.ts +6 -0
  246. package/dist/types/models/ThemeEnum.d.ts +8 -0
  247. package/dist/types/models/TonesView.d.ts +4 -0
  248. package/dist/types/models/ToolResponse.d.ts +11 -0
  249. package/dist/types/models/TopicModel.d.ts +3 -0
  250. package/dist/types/models/TopicRecord.d.ts +4 -0
  251. package/dist/types/models/TopicStatistics.d.ts +7 -0
  252. package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
  253. package/dist/types/models/TopicSummaryView.d.ts +4 -0
  254. package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
  255. package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
  256. package/dist/types/models/TrainDocumentViewRequest.d.ts +42 -0
  257. package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
  258. package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
  259. package/dist/types/models/TransportEnum.d.ts +8 -0
  260. package/dist/types/models/TrendEntry.d.ts +4 -0
  261. package/dist/types/models/TriggerRequest.d.ts +5 -0
  262. package/dist/types/models/TriggerResponse.d.ts +6 -0
  263. package/dist/types/models/TypeC42Enum.d.ts +8 -0
  264. package/dist/types/models/Unit.d.ts +11 -0
  265. package/dist/types/models/UnitWithChildren.d.ts +13 -0
  266. package/dist/types/models/UseMainCreds.d.ts +3 -0
  267. package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
  268. package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
  269. package/dist/types/models/UserChatByPeriod.d.ts +4 -0
  270. package/dist/types/models/UserChatFeedback.d.ts +14 -0
  271. package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
  272. package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
  273. package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
  274. package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
  275. package/dist/types/models/UserCountRecord.d.ts +4 -0
  276. package/dist/types/models/UserEdxMemory.d.ts +15 -0
  277. package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
  278. package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
  279. package/dist/types/models/UserMetric.d.ts +4 -0
  280. package/dist/types/models/UserMetricsResponse.d.ts +7 -0
  281. package/dist/types/models/UserSentimentCountView.d.ts +4 -0
  282. package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
  283. package/dist/types/models/VectorResult.d.ts +8 -0
  284. package/dist/types/models/VideoCaption.d.ts +3 -0
  285. package/dist/types/models/Voice.d.ts +9 -0
  286. package/dist/types/models/WebResource.d.ts +9 -0
  287. package/dist/types/models/WebResourceCard.d.ts +7 -0
  288. package/dist/types/models/WebResourcesQuery.d.ts +3 -0
  289. package/dist/types/services/AiAccountService.d.ts +294 -0
  290. package/dist/types/services/AiAnalyticsService.d.ts +2801 -0
  291. package/dist/types/services/AiIndexService.d.ts +400 -0
  292. package/dist/types/services/AiMarketingService.d.ts +34 -0
  293. package/dist/types/services/AiMediaService.d.ts +118 -0
  294. package/dist/types/services/AiMentorService.d.ts +4235 -0
  295. package/dist/types/services/AiPromptService.d.ts +920 -0
  296. package/dist/types/services/CoreService.d.ts +10 -5
  297. package/dist/types/services/SearchService.d.ts +408 -0
  298. package/package.json +1 -1
  299. package/src/core/OpenAPI.ts +1 -1
  300. package/src/index.ts +281 -1
  301. package/src/models/AIGeneratedImage.ts +18 -0
  302. package/src/models/AIUserProfileMemoryRelation.ts +9 -0
  303. package/src/models/AIUserProfileRequest.ts +9 -0
  304. package/src/models/APITokenCost.ts +19 -0
  305. package/src/models/AccessEnum.ts +12 -0
  306. package/src/models/AlignMentorBubbleEnum.ts +12 -0
  307. package/src/models/AnalyticsOverview.ts +12 -0
  308. package/src/models/Answer.ts +16 -0
  309. package/src/models/AssumedKnowledge.ts +9 -0
  310. package/src/models/AssumedKnowledgeLevel.ts +9 -0
  311. package/src/models/AudioToTextRequest.ts +8 -0
  312. package/src/models/AudioToTextResponse.ts +8 -0
  313. package/src/models/CallAuthenticationRequest.ts +18 -0
  314. package/src/models/CallAuthenticationResponse.ts +26 -0
  315. package/src/models/ChatHistory.ts +13 -0
  316. package/src/models/ChatHistoryFilterData.ts +14 -0
  317. package/src/models/ChatHistoryFilterUser.ts +10 -0
  318. package/src/models/ChatHistoryItem.ts +10 -0
  319. package/src/models/ChatHistorySessionId.ts +8 -0
  320. package/src/models/ChatSessionRequest.ts +15 -0
  321. package/src/models/ChatSessionResponse.ts +10 -0
  322. package/src/models/CheckDocumentTrainingStatus.ts +15 -0
  323. package/src/models/ComponentBlock.ts +14 -0
  324. package/src/models/ComponentBlockTypeEnum.ts +12 -0
  325. package/src/models/ConversationMessage.ts +16 -0
  326. package/src/models/ConversationRating.ts +11 -0
  327. package/src/models/ConversationSummary.ts +10 -0
  328. package/src/models/ConversationVolume.ts +9 -0
  329. package/src/models/Conversations.ts +33 -0
  330. package/src/models/Cost.ts +8 -0
  331. package/src/models/CostPerTenant.ts +11 -0
  332. package/src/models/CourseCreationTask.ts +36 -0
  333. package/src/models/CourseCreationTaskFile.ts +12 -0
  334. package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
  335. package/src/models/CredentialRequest.ts +19 -0
  336. package/src/models/CrontabSchedule.ts +27 -0
  337. package/src/models/CustomInstructionResponse.ts +18 -0
  338. package/src/models/DateRange.ts +9 -0
  339. package/src/models/Document.ts +46 -0
  340. package/src/models/DocumentFacet.ts +22 -0
  341. package/src/models/DocumentSearchResponse.ts +40 -0
  342. package/src/models/DocumentSettingsResponse.ts +8 -0
  343. package/src/models/EdxCourse.ts +16 -0
  344. package/src/models/ElevenlabsCustomVoice.ts +9 -0
  345. package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
  346. package/src/models/EmailPromptDetail.ts +18 -0
  347. package/src/models/EmailPromptList.ts +16 -0
  348. package/src/models/EmailPromptSummary.ts +10 -0
  349. package/src/models/FreeUsageCount.ts +8 -0
  350. package/src/models/FullCourse.ts +18 -0
  351. package/src/models/GreetingMethodEnum.ts +12 -0
  352. package/src/models/GuidedPromptsResponse.ts +8 -0
  353. package/src/models/HeygenMarketingVideoDetail.ts +13 -0
  354. package/src/models/HeygenMarketingVideoList.ts +11 -0
  355. package/src/models/HeygenTemplateRequest.ts +10 -0
  356. package/src/models/HeygenTemplateResponseSingle.ts +11 -0
  357. package/src/models/HeygenVideoDetail.ts +13 -0
  358. package/src/models/HeygenVideoRequest.ts +10 -0
  359. package/src/models/IBLAIPlatformMeta.ts +8 -0
  360. package/src/models/IBLAIPlatformMetaRequest.ts +11 -0
  361. package/src/models/IBLAIPlatformMetaUpdateRequest.ts +15 -0
  362. package/src/models/InputQuestion.ts +11 -0
  363. package/src/models/IntegrationCredential.ts +13 -0
  364. package/src/models/IntialQuestionAnswer.ts +8 -0
  365. package/src/models/JobRun.ts +16 -0
  366. package/src/models/KindEnum.ts +14 -0
  367. package/src/models/LLMCredentialRequest.ts +19 -0
  368. package/src/models/LLMCredentialResponse.ts +13 -0
  369. package/src/models/LLMModelForTenant.ts +11 -0
  370. package/src/models/LLMQuestion.ts +20 -0
  371. package/src/models/LLMResponse.ts +19 -0
  372. package/src/models/LLMTracesListResponse.ts +10 -0
  373. package/src/models/LanguagesView.ts +10 -0
  374. package/src/models/LinkCourseRequest.ts +8 -0
  375. package/src/models/LinkCourseResponse.ts +10 -0
  376. package/src/models/MCPServer.ts +26 -0
  377. package/src/models/MemoryComponentData.ts +10 -0
  378. package/src/models/MemoryComponentMemory.ts +9 -0
  379. package/src/models/MemoryComponentMemoryDetail.ts +13 -0
  380. package/src/models/MemoryComponentResponse.ts +10 -0
  381. package/src/models/MemoryProgress.ts +13 -0
  382. package/src/models/MemoryStatusRequestView.ts +11 -0
  383. package/src/models/MemoryStatusView.ts +11 -0
  384. package/src/models/Mentor.ts +90 -0
  385. package/src/models/MentorAudience.ts +10 -0
  386. package/src/models/MentorCategory.ts +14 -0
  387. package/src/models/MentorCategoryCreate.ts +16 -0
  388. package/src/models/MentorCategoryGroup.ts +16 -0
  389. package/src/models/MentorCategoryGroupCreate.ts +16 -0
  390. package/src/models/MentorCreate.ts +89 -0
  391. package/src/models/MentorCustomVoice.ts +9 -0
  392. package/src/models/MentorCustomVoiceResponse.ts +9 -0
  393. package/src/models/MentorData.ts +12 -0
  394. package/src/models/MentorDetailAnalytics.ts +11 -0
  395. package/src/models/MentorEval.ts +16 -0
  396. package/src/models/MentorEvalQuestion.ts +10 -0
  397. package/src/models/MentorEvalQuestionRequest.ts +9 -0
  398. package/src/models/MentorEvalReport.ts +15 -0
  399. package/src/models/MentorEvalRequest.ts +13 -0
  400. package/src/models/MentorFacet.ts +22 -0
  401. package/src/models/MentorFork.ts +10 -0
  402. package/src/models/MentorFromTemplateRequest.ts +9 -0
  403. package/src/models/MentorFromTemplateWithSettingRequest.ts +52 -0
  404. package/src/models/MentorMemorySettingsRequest.ts +11 -0
  405. package/src/models/MentorMemorySettingsResponse.ts +11 -0
  406. package/src/models/MentorMetadata.ts +10 -0
  407. package/src/models/MentorScenario.ts +11 -0
  408. package/src/models/MentorScenarioPrompt.ts +10 -0
  409. package/src/models/MentorSearchResponse.ts +40 -0
  410. package/src/models/MentorSession.ts +9 -0
  411. package/src/models/MentorSettings.ts +63 -0
  412. package/src/models/MentorSettingsPublic.ts +51 -0
  413. package/src/models/MentorSettingsRequest.ts +67 -0
  414. package/src/models/MentorVisibilityEnum.ts +14 -0
  415. package/src/models/MentorWizard.ts +9 -0
  416. package/src/models/MessageStatistics.ts +10 -0
  417. package/src/models/MessageView.ts +15 -0
  418. package/src/models/MessageViewRequest.ts +12 -0
  419. package/src/models/MessageViewUpdatResponse.ts +8 -0
  420. package/src/models/Metadata.ts +10 -0
  421. package/src/models/MetricChange.ts +9 -0
  422. package/src/models/ModelCost.ts +9 -0
  423. package/src/models/ModerationLog.ts +16 -0
  424. package/src/models/NoChatMessagesFound.ts +8 -0
  425. package/src/models/NotificationSource.ts +2 -2
  426. package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
  427. package/src/models/NullEnum.ts +7 -0
  428. package/src/models/PageContent.ts +11 -0
  429. package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
  430. package/src/models/PaginatedConversationsList.ts +12 -0
  431. package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
  432. package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
  433. package/src/models/PaginatedEdxCourseList.ts +12 -0
  434. package/src/models/PaginatedEmailPromptListList.ts +12 -0
  435. package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
  436. package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
  437. package/src/models/PaginatedJobRunList.ts +12 -0
  438. package/src/models/PaginatedMCPServerList.ts +12 -0
  439. package/src/models/PaginatedMentorList.ts +12 -0
  440. package/src/models/PaginatedModerationLogList.ts +12 -0
  441. package/src/models/PaginatedPeriodicAgentList.ts +12 -0
  442. package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
  443. package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
  444. package/src/models/PaginatedSectionList.ts +12 -0
  445. package/src/models/PaginatedSubSectionList.ts +12 -0
  446. package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
  447. package/src/models/PaginatedUnitList.ts +12 -0
  448. package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
  449. package/src/models/PaginatedVoiceList.ts +12 -0
  450. package/src/models/PatchedConversations.ts +33 -0
  451. package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
  452. package/src/models/PatchedCredentialRequest.ts +19 -0
  453. package/src/models/PatchedLLMCredentialRequest.ts +19 -0
  454. package/src/models/PatchedMCPServer.ts +26 -0
  455. package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
  456. package/src/models/PatchedMentorCreate.ts +89 -0
  457. package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
  458. package/src/models/PatchedPlayWrightScript.ts +17 -0
  459. package/src/models/PatchedPrompt.ts +27 -0
  460. package/src/models/PatchedRbacGroupRole.ts +2 -2
  461. package/src/models/PatchedRbacPolicy.ts +2 -2
  462. package/src/models/PatchedRbacUserRole.ts +2 -2
  463. package/src/models/PatchedSection.ts +14 -0
  464. package/src/models/PatchedSubSection.ts +14 -0
  465. package/src/models/PatchedUnit.ts +16 -0
  466. package/src/models/PeriodicAgent.ts +47 -0
  467. package/src/models/PeriodicAgentCreate.ts +46 -0
  468. package/src/models/PeriodicAgentLog.ts +16 -0
  469. package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
  470. package/src/models/PeriodicTask.ts +26 -0
  471. package/src/models/PieChartData.ts +10 -0
  472. package/src/models/PieChartSegment.ts +9 -0
  473. package/src/models/PinnedMessageCreate.ts +14 -0
  474. package/src/models/PinnedMessageGet.ts +12 -0
  475. package/src/models/PinnedMessageRequest.ts +11 -0
  476. package/src/models/PlayWrightScript.ts +17 -0
  477. package/src/models/PredictiveAnalyticsRequest.ts +9 -0
  478. package/src/models/PredictiveAnalyticsResponse.ts +9 -0
  479. package/src/models/PreviousAgentStatusEnum.ts +16 -0
  480. package/src/models/Prompt.ts +27 -0
  481. package/src/models/PromptCategory.ts +12 -0
  482. package/src/models/PromptFacet.ts +22 -0
  483. package/src/models/PromptSearchResponse.ts +40 -0
  484. package/src/models/PromptVisibilityEnum.ts +14 -0
  485. package/src/models/ProviderEnum.ts +14 -0
  486. package/src/models/QuestionCardTag.ts +13 -0
  487. package/src/models/QuestionRequest.ts +20 -0
  488. package/src/models/QuestionResponse.ts +15 -0
  489. package/src/models/RatingEnum.ts +12 -0
  490. package/src/models/RatingRecord.ts +9 -0
  491. package/src/models/RbacBaseRole.ts +20 -0
  492. package/src/models/RbacGroupRole.ts +2 -2
  493. package/src/models/RbacPolicy.ts +2 -2
  494. package/src/models/RbacUserRole.ts +2 -2
  495. package/src/models/RecentlyAccessedMentor.ts +13 -0
  496. package/src/models/RecommendCourseBlock.ts +8 -0
  497. package/src/models/RecommendCourseResponse.ts +8 -0
  498. package/src/models/RecommendedCoursesResponse.ts +38 -0
  499. package/src/models/RelatedText.ts +8 -0
  500. package/src/models/RequestDataVariable.ts +19 -0
  501. package/src/models/ResourceScrappedData.ts +18 -0
  502. package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
  503. package/src/models/ResponseDataVariable.ts +19 -0
  504. package/src/models/RetreiverTrainViewRequest.ts +15 -0
  505. package/src/models/RetreiverTrainViewResponse.ts +11 -0
  506. package/src/models/RetrieveTask.ts +8 -0
  507. package/src/models/RetrieverDocumentEmbedding.ts +22 -0
  508. package/src/models/RetrieverDocumentEmbeddingRequest.ts +35 -0
  509. package/src/models/RetrieverRequestSearch.ts +15 -0
  510. package/src/models/RetrieverRequestSearchDocument.ts +15 -0
  511. package/src/models/RetrieverResponseSearch.ts +12 -0
  512. package/src/models/ReuestDataVariableList.ts +9 -0
  513. package/src/models/RunMentorEval.ts +8 -0
  514. package/src/models/ScanWebhookRequest.ts +11 -0
  515. package/src/models/ScanWebhookResponse.ts +8 -0
  516. package/src/models/Section.ts +14 -0
  517. package/src/models/SectionWithChildren.ts +16 -0
  518. package/src/models/SeedMentorsView.ts +8 -0
  519. package/src/models/SentimentSummary.ts +9 -0
  520. package/src/models/SessionBrowserScreenshot.ts +13 -0
  521. package/src/models/SessionDetail.ts +11 -0
  522. package/src/models/SessionMemoryStorage.ts +11 -0
  523. package/src/models/ShellLogs.ts +8 -0
  524. package/src/models/SpacedRepetitionLearningPath.ts +8 -0
  525. package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
  526. package/src/models/StarMentor.ts +12 -0
  527. package/src/models/Status6eeEnum.ts +16 -0
  528. package/src/models/Step.ts +14 -0
  529. package/src/models/StepStatusEnum.ts +14 -0
  530. package/src/models/StudentChatMessage.ts +9 -0
  531. package/src/models/StylesView.ts +9 -0
  532. package/src/models/SubSection.ts +14 -0
  533. package/src/models/SubSectionWithChildren.ts +16 -0
  534. package/src/models/TagsView.ts +10 -0
  535. package/src/models/TargetSystemEnum.ts +12 -0
  536. package/src/models/TaskView.ts +8 -0
  537. package/src/models/TemplateMentor.ts +14 -0
  538. package/src/models/TenantMentorTraces.ts +11 -0
  539. package/src/models/ThemeEnum.ts +12 -0
  540. package/src/models/TonesView.ts +9 -0
  541. package/src/models/ToolResponse.ts +16 -0
  542. package/src/models/TopicModel.ts +8 -0
  543. package/src/models/TopicRecord.ts +9 -0
  544. package/src/models/TopicStatistics.ts +12 -0
  545. package/src/models/TopicStatisticsResponse.ts +11 -0
  546. package/src/models/TopicSummaryView.ts +9 -0
  547. package/src/models/TrainChatSessionDocumentView.ts +11 -0
  548. package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
  549. package/src/models/TrainDocumentViewRequest.ts +47 -0
  550. package/src/models/TrainDocumentViewResponse.ts +20 -0
  551. package/src/models/TrainingStatusEnum.ts +16 -0
  552. package/src/models/TransportEnum.ts +12 -0
  553. package/src/models/TrendEntry.ts +9 -0
  554. package/src/models/TriggerRequest.ts +10 -0
  555. package/src/models/TriggerResponse.ts +11 -0
  556. package/src/models/TypeC42Enum.ts +12 -0
  557. package/src/models/Unit.ts +16 -0
  558. package/src/models/UnitWithChildren.ts +18 -0
  559. package/src/models/UseMainCreds.ts +8 -0
  560. package/src/models/UserAllChatMemoryView.ts +12 -0
  561. package/src/models/UserCatalogItemMemoryView.ts +19 -0
  562. package/src/models/UserChatByPeriod.ts +9 -0
  563. package/src/models/UserChatFeedback.ts +19 -0
  564. package/src/models/UserChatFeedbackCount.ts +9 -0
  565. package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
  566. package/src/models/UserChatMemoryStatusView.ts +11 -0
  567. package/src/models/UserChatMemoryUpdateView.ts +15 -0
  568. package/src/models/UserCountRecord.ts +9 -0
  569. package/src/models/UserEdxMemory.ts +20 -0
  570. package/src/models/UserMemoryContextRequest.ts +18 -0
  571. package/src/models/UserMemoryContextResponse.ts +17 -0
  572. package/src/models/UserMetric.ts +9 -0
  573. package/src/models/UserMetricsResponse.ts +12 -0
  574. package/src/models/UserSentimentCountView.ts +9 -0
  575. package/src/models/UserTrendByPeriod.ts +10 -0
  576. package/src/models/VectorResult.ts +13 -0
  577. package/src/models/VideoCaption.ts +8 -0
  578. package/src/models/Voice.ts +14 -0
  579. package/src/models/WebResource.ts +14 -0
  580. package/src/models/WebResourceCard.ts +12 -0
  581. package/src/models/WebResourcesQuery.ts +8 -0
  582. package/src/services/AiAccountService.ts +479 -0
  583. package/src/services/AiAnalyticsService.ts +5198 -0
  584. package/src/services/AiIndexService.ts +693 -0
  585. package/src/services/AiMarketingService.ts +87 -0
  586. package/src/services/AiMediaService.ts +273 -0
  587. package/src/services/AiMentorService.ts +7977 -0
  588. package/src/services/AiPromptService.ts +1771 -0
  589. package/src/services/CoreService.ts +25 -0
  590. package/src/services/SearchService.ts +981 -261
@@ -0,0 +1,1771 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { GuidedPromptsResponse } from '../models/GuidedPromptsResponse';
6
+ import type { LanguagesView } from '../models/LanguagesView';
7
+ import type { MemoryStatusRequestView } from '../models/MemoryStatusRequestView';
8
+ import type { MemoryStatusView } from '../models/MemoryStatusView';
9
+ import type { Metadata } from '../models/Metadata';
10
+ import type { PatchedPrompt } from '../models/PatchedPrompt';
11
+ import type { Prompt } from '../models/Prompt';
12
+ import type { PromptCategory } from '../models/PromptCategory';
13
+ import type { StylesView } from '../models/StylesView';
14
+ import type { TagsView } from '../models/TagsView';
15
+ import type { TonesView } from '../models/TonesView';
16
+ import type { UserAllChatMemoryView } from '../models/UserAllChatMemoryView';
17
+ import type { UserCatalogItemMemoryView } from '../models/UserCatalogItemMemoryView';
18
+ import type { UserChatMemoryStatusRequestView } from '../models/UserChatMemoryStatusRequestView';
19
+ import type { UserChatMemoryStatusView } from '../models/UserChatMemoryStatusView';
20
+ import type { UserChatMemoryUpdateView } from '../models/UserChatMemoryUpdateView';
21
+ import type { UserMemoryContextRequest } from '../models/UserMemoryContextRequest';
22
+ import type { UserMemoryContextResponse } from '../models/UserMemoryContextResponse';
23
+ import type { CancelablePromise } from '../core/CancelablePromise';
24
+ import { OpenAPI } from '../core/OpenAPI';
25
+ import { request as __request } from '../core/request';
26
+ export class AiPromptService {
27
+ /**
28
+ * Create or update metadata for a prompt.
29
+ *
30
+ * Args:
31
+ * request: The HTTP request containing the metadata.
32
+ * org: The organization/tenant identifier.
33
+ *
34
+ * Returns:
35
+ * Response: The created or updated prompt metadata.
36
+ *
37
+ * Raises:
38
+ * BadRequest: If the provided data is invalid.
39
+ * @param org
40
+ * @param requestBody
41
+ * @returns Metadata
42
+ * @throws ApiError
43
+ */
44
+ public static aiPromptOrgsMetadataCreate(
45
+ org: string,
46
+ requestBody: Metadata,
47
+ ): CancelablePromise<Metadata> {
48
+ return __request(OpenAPI, {
49
+ method: 'POST',
50
+ url: '/api/ai-prompt/orgs/{org}/metadata/',
51
+ path: {
52
+ 'org': org,
53
+ },
54
+ body: requestBody,
55
+ mediaType: 'application/json',
56
+ errors: {
57
+ 400: `Invalid data`,
58
+ },
59
+ });
60
+ }
61
+ /**
62
+ * Retrieve chat memory for a specific user.
63
+ *
64
+ * Args:
65
+ * request: The HTTP request.
66
+ * org: The organization/tenant identifier.
67
+ * user_id: The ID of the user to retrieve chat memory for.
68
+ *
69
+ * Returns:
70
+ * Response: The user's chat memory entries.
71
+ *
72
+ * Raises:
73
+ * NotFound: If no chat memory exists for the user.
74
+ * @param org
75
+ * @param userId
76
+ * @returns UserAllChatMemoryView
77
+ * @throws ApiError
78
+ */
79
+ public static aiPromptOrgsUsersAllChatsMemoryRetrieve(
80
+ org: string,
81
+ userId: string,
82
+ ): CancelablePromise<UserAllChatMemoryView> {
83
+ return __request(OpenAPI, {
84
+ method: 'GET',
85
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/',
86
+ path: {
87
+ 'org': org,
88
+ 'user_id': userId,
89
+ },
90
+ errors: {
91
+ 404: `Memory not found`,
92
+ },
93
+ });
94
+ }
95
+ /**
96
+ * Create a new chat memory entry for a user.
97
+ *
98
+ * Args:
99
+ * request: The HTTP request containing the chat memory data.
100
+ * org: The organization/tenant identifier.
101
+ * user_id: The ID of the user to create chat memory for.
102
+ *
103
+ * Returns:
104
+ * Response: The created chat memory entry.
105
+ *
106
+ * Raises:
107
+ * BadRequest: If the provided data is invalid.
108
+ * @param org
109
+ * @param userId
110
+ * @param requestBody
111
+ * @returns UserAllChatMemoryView
112
+ * @throws ApiError
113
+ */
114
+ public static aiPromptOrgsUsersAllChatsMemoryCreate(
115
+ org: string,
116
+ userId: string,
117
+ requestBody: UserAllChatMemoryView,
118
+ ): CancelablePromise<UserAllChatMemoryView> {
119
+ return __request(OpenAPI, {
120
+ method: 'POST',
121
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/',
122
+ path: {
123
+ 'org': org,
124
+ 'user_id': userId,
125
+ },
126
+ body: requestBody,
127
+ mediaType: 'application/json',
128
+ errors: {
129
+ 400: `Invalid data`,
130
+ },
131
+ });
132
+ }
133
+ /**
134
+ * Update chat memory for a specific user.
135
+ *
136
+ * Args:
137
+ * request: The HTTP request containing the updated chat memory data.
138
+ * org: The organization/tenant identifier.
139
+ * user_id: The ID of the user to update chat memory for.
140
+ *
141
+ * Returns:
142
+ * Response: A confirmation of the scheduled update task.
143
+ *
144
+ * Raises:
145
+ * BadRequest: If the provided data is invalid.
146
+ * NotFound: If no chat memory exists for the user.
147
+ * @param org
148
+ * @param userId
149
+ * @param requestBody
150
+ * @returns UserChatMemoryUpdateView
151
+ * @throws ApiError
152
+ */
153
+ public static aiPromptOrgsUsersAllChatsMemoryUpdate(
154
+ org: string,
155
+ userId: string,
156
+ requestBody: UserAllChatMemoryView,
157
+ ): CancelablePromise<UserChatMemoryUpdateView> {
158
+ return __request(OpenAPI, {
159
+ method: 'PUT',
160
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/',
161
+ path: {
162
+ 'org': org,
163
+ 'user_id': userId,
164
+ },
165
+ body: requestBody,
166
+ mediaType: 'application/json',
167
+ errors: {
168
+ 400: `Invalid data`,
169
+ 404: `Memory not found`,
170
+ },
171
+ });
172
+ }
173
+ /**
174
+ * Delete all chat memory for a specific user.
175
+ *
176
+ * Args:
177
+ * request: The HTTP request.
178
+ * org: The organization/tenant identifier.
179
+ * user_id: The ID of the user to delete chat memory for.
180
+ *
181
+ * Returns:
182
+ * Response: A success message if the memory was deleted.
183
+ *
184
+ * Raises:
185
+ * NotFound: If no chat memory exists for the user.
186
+ * @param org
187
+ * @param userId
188
+ * @returns void
189
+ * @throws ApiError
190
+ */
191
+ public static aiPromptOrgsUsersAllChatsMemoryDestroy(
192
+ org: string,
193
+ userId: string,
194
+ ): CancelablePromise<void> {
195
+ return __request(OpenAPI, {
196
+ method: 'DELETE',
197
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/',
198
+ path: {
199
+ 'org': org,
200
+ 'user_id': userId,
201
+ },
202
+ errors: {
203
+ 404: `Memory not found`,
204
+ },
205
+ });
206
+ }
207
+ /**
208
+ * Update a specific chat memory entry.
209
+ *
210
+ * Args:
211
+ * request: The HTTP request containing the updated chat memory data.
212
+ * org: The organization/tenant identifier.
213
+ * user_id: The ID of the user who owns the memory.
214
+ * memory_id: The ID of the specific memory entry to update.
215
+ *
216
+ * Returns:
217
+ * Response: The updated chat memory entry.
218
+ *
219
+ * Raises:
220
+ * BadRequest: If the provided data is invalid.
221
+ * NotFound: If the specified memory entry does not exist.
222
+ * @param memoryId
223
+ * @param org
224
+ * @param userId
225
+ * @param requestBody
226
+ * @returns UserAllChatMemoryView
227
+ * @throws ApiError
228
+ */
229
+ public static aiPromptOrgsUsersAllChatsMemoryUpdate2(
230
+ memoryId: number,
231
+ org: string,
232
+ userId: string,
233
+ requestBody: UserAllChatMemoryView,
234
+ ): CancelablePromise<UserAllChatMemoryView> {
235
+ return __request(OpenAPI, {
236
+ method: 'PUT',
237
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/{memory_id}/',
238
+ path: {
239
+ 'memory_id': memoryId,
240
+ 'org': org,
241
+ 'user_id': userId,
242
+ },
243
+ body: requestBody,
244
+ mediaType: 'application/json',
245
+ errors: {
246
+ 400: `Invalid data`,
247
+ 404: `Memory not found`,
248
+ },
249
+ });
250
+ }
251
+ /**
252
+ * Delete a specific chat memory entry.
253
+ *
254
+ * Args:
255
+ * request: The HTTP request.
256
+ * org: The organization/tenant identifier.
257
+ * user_id: The ID of the user who owns the memory.
258
+ * memory_id: The ID of the specific memory entry to delete.
259
+ *
260
+ * Returns:
261
+ * Response: A success message if the memory was deleted.
262
+ *
263
+ * Raises:
264
+ * NotFound: If the specified memory entry does not exist.
265
+ * @param memoryId
266
+ * @param org
267
+ * @param userId
268
+ * @returns void
269
+ * @throws ApiError
270
+ */
271
+ public static aiPromptOrgsUsersAllChatsMemoryDestroy2(
272
+ memoryId: number,
273
+ org: string,
274
+ userId: string,
275
+ ): CancelablePromise<void> {
276
+ return __request(OpenAPI, {
277
+ method: 'DELETE',
278
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/{memory_id}/',
279
+ path: {
280
+ 'memory_id': memoryId,
281
+ 'org': org,
282
+ 'user_id': userId,
283
+ },
284
+ errors: {
285
+ 404: `Memory not found`,
286
+ },
287
+ });
288
+ }
289
+ /**
290
+ * Retrieve the chat memory status for a specific user.
291
+ *
292
+ * Args:
293
+ * request: The HTTP request.
294
+ * org: The organization/tenant identifier.
295
+ * user_id: The ID of the user to retrieve memory status for.
296
+ *
297
+ * Returns:
298
+ * Response: The user's chat memory status.
299
+ *
300
+ * Raises:
301
+ * NotFound: If no memory status exists for the user.
302
+ * @param org
303
+ * @param userId
304
+ * @returns UserChatMemoryStatusView
305
+ * @throws ApiError
306
+ */
307
+ public static aiPromptOrgsUsersChatMemoryStatusRetrieve(
308
+ org: string,
309
+ userId: string,
310
+ ): CancelablePromise<UserChatMemoryStatusView> {
311
+ return __request(OpenAPI, {
312
+ method: 'GET',
313
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/chat-memory-status/',
314
+ path: {
315
+ 'org': org,
316
+ 'user_id': userId,
317
+ },
318
+ errors: {
319
+ 404: `Memory status not found`,
320
+ },
321
+ });
322
+ }
323
+ /**
324
+ * Update the chat memory status for a specific user.
325
+ *
326
+ * Args:
327
+ * request: The HTTP request containing the updated status.
328
+ * org: The organization/tenant identifier.
329
+ * user_id: The ID of the user to update memory status for.
330
+ *
331
+ * Returns:
332
+ * Response: The updated chat memory status.
333
+ *
334
+ * Raises:
335
+ * BadRequest: If the provided data is invalid.
336
+ * @param org
337
+ * @param userId
338
+ * @param requestBody
339
+ * @returns UserChatMemoryStatusView
340
+ * @throws ApiError
341
+ */
342
+ public static aiPromptOrgsUsersChatMemoryStatusUpdate(
343
+ org: string,
344
+ userId: string,
345
+ requestBody: UserChatMemoryStatusRequestView,
346
+ ): CancelablePromise<UserChatMemoryStatusView> {
347
+ return __request(OpenAPI, {
348
+ method: 'PUT',
349
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/chat-memory-status/',
350
+ path: {
351
+ 'org': org,
352
+ 'user_id': userId,
353
+ },
354
+ body: requestBody,
355
+ mediaType: 'application/json',
356
+ errors: {
357
+ 400: `Invalid data`,
358
+ },
359
+ });
360
+ }
361
+ /**
362
+ * Retrieve all available prompt languages.
363
+ *
364
+ * Args:
365
+ * request: The HTTP request.
366
+ * org: The organization/tenant identifier.
367
+ * user_id: The ID of the user making the request.
368
+ *
369
+ * Returns:
370
+ * Response: A list of available prompt languages.
371
+ * @param org
372
+ * @param userId
373
+ * @returns LanguagesView
374
+ * @throws ApiError
375
+ */
376
+ public static aiPromptOrgsUsersLanguagesRetrieve(
377
+ org: string,
378
+ userId: string,
379
+ ): CancelablePromise<LanguagesView> {
380
+ return __request(OpenAPI, {
381
+ method: 'GET',
382
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/languages/',
383
+ path: {
384
+ 'org': org,
385
+ 'user_id': userId,
386
+ },
387
+ });
388
+ }
389
+ /**
390
+ * Create a new prompt language.
391
+ *
392
+ * Args:
393
+ * request: The HTTP request containing the language data.
394
+ * org: The organization/tenant identifier.
395
+ * user_id: The ID of the user creating the language.
396
+ *
397
+ * Returns:
398
+ * Response: The created prompt language.
399
+ *
400
+ * Raises:
401
+ * BadRequest: If the provided data is invalid.
402
+ * @param org
403
+ * @param userId
404
+ * @param requestBody
405
+ * @returns LanguagesView
406
+ * @throws ApiError
407
+ */
408
+ public static aiPromptOrgsUsersLanguagesCreate(
409
+ org: string,
410
+ userId: string,
411
+ requestBody: LanguagesView,
412
+ ): CancelablePromise<LanguagesView> {
413
+ return __request(OpenAPI, {
414
+ method: 'POST',
415
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/languages/',
416
+ path: {
417
+ 'org': org,
418
+ 'user_id': userId,
419
+ },
420
+ body: requestBody,
421
+ mediaType: 'application/json',
422
+ errors: {
423
+ 400: `Invalid data`,
424
+ },
425
+ });
426
+ }
427
+ /**
428
+ * Update a specific prompt language.
429
+ *
430
+ * Args:
431
+ * request: The HTTP request containing the updated language data.
432
+ * org: The organization/tenant identifier.
433
+ * user_id: The ID of the user making the request.
434
+ * language_id: The ID of the language to update.
435
+ *
436
+ * Returns:
437
+ * Response: The updated prompt language.
438
+ *
439
+ * Raises:
440
+ * BadRequest: If the provided data is invalid.
441
+ * NotFound: If the specified language does not exist.
442
+ * @param languageId
443
+ * @param org
444
+ * @param userId
445
+ * @param requestBody
446
+ * @returns LanguagesView
447
+ * @throws ApiError
448
+ */
449
+ public static aiPromptOrgsUsersLanguagesUpdate(
450
+ languageId: number,
451
+ org: string,
452
+ userId: string,
453
+ requestBody: LanguagesView,
454
+ ): CancelablePromise<LanguagesView> {
455
+ return __request(OpenAPI, {
456
+ method: 'PUT',
457
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_id}/',
458
+ path: {
459
+ 'language_id': languageId,
460
+ 'org': org,
461
+ 'user_id': userId,
462
+ },
463
+ body: requestBody,
464
+ mediaType: 'application/json',
465
+ errors: {
466
+ 400: `Invalid data`,
467
+ 404: `Language not found`,
468
+ },
469
+ });
470
+ }
471
+ /**
472
+ * Delete a specific prompt language.
473
+ *
474
+ * Args:
475
+ * request: The HTTP request.
476
+ * org: The organization/tenant identifier.
477
+ * user_id: The ID of the user making the request.
478
+ * language_id: The ID of the language to delete.
479
+ *
480
+ * Returns:
481
+ * Response: A success message if the language was deleted.
482
+ *
483
+ * Raises:
484
+ * NotFound: If the specified language does not exist.
485
+ * @param languageId
486
+ * @param org
487
+ * @param userId
488
+ * @returns void
489
+ * @throws ApiError
490
+ */
491
+ public static aiPromptOrgsUsersLanguagesDestroy(
492
+ languageId: number,
493
+ org: string,
494
+ userId: string,
495
+ ): CancelablePromise<void> {
496
+ return __request(OpenAPI, {
497
+ method: 'DELETE',
498
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_id}/',
499
+ path: {
500
+ 'language_id': languageId,
501
+ 'org': org,
502
+ 'user_id': userId,
503
+ },
504
+ errors: {
505
+ 404: `Language not found`,
506
+ },
507
+ });
508
+ }
509
+ /**
510
+ * Retrieve catalog item memory for a specific user.
511
+ *
512
+ * Args:
513
+ * request: The HTTP request.
514
+ * org: The organization/tenant identifier.
515
+ * user_id: The ID of the user to retrieve catalog item memory for.
516
+ *
517
+ * Returns:
518
+ * Response: The user's catalog item memory entries.
519
+ *
520
+ * Raises:
521
+ * NotFound: If no catalog item memory exists for the user.
522
+ * @param org
523
+ * @param userId
524
+ * @returns UserCatalogItemMemoryView
525
+ * @throws ApiError
526
+ */
527
+ public static aiPromptOrgsUsersMemoryRetrieve(
528
+ org: string,
529
+ userId: string,
530
+ ): CancelablePromise<UserCatalogItemMemoryView> {
531
+ return __request(OpenAPI, {
532
+ method: 'GET',
533
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory/',
534
+ path: {
535
+ 'org': org,
536
+ 'user_id': userId,
537
+ },
538
+ errors: {
539
+ 404: `Memory not found`,
540
+ },
541
+ });
542
+ }
543
+ /**
544
+ * Create a new catalog item memory entry for a user.
545
+ *
546
+ * Args:
547
+ * request: The HTTP request containing the catalog item memory data.
548
+ * org: The organization/tenant identifier.
549
+ * user_id: The ID of the user to create catalog item memory for.
550
+ *
551
+ * Returns:
552
+ * Response: The created catalog item memory entry.
553
+ *
554
+ * Raises:
555
+ * BadRequest: If the provided data is invalid.
556
+ * @param org
557
+ * @param userId
558
+ * @param requestBody
559
+ * @returns UserCatalogItemMemoryView
560
+ * @throws ApiError
561
+ */
562
+ public static aiPromptOrgsUsersMemoryCreate(
563
+ org: string,
564
+ userId: string,
565
+ requestBody: UserCatalogItemMemoryView,
566
+ ): CancelablePromise<UserCatalogItemMemoryView> {
567
+ return __request(OpenAPI, {
568
+ method: 'POST',
569
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory/',
570
+ path: {
571
+ 'org': org,
572
+ 'user_id': userId,
573
+ },
574
+ body: requestBody,
575
+ mediaType: 'application/json',
576
+ errors: {
577
+ 400: `Invalid data`,
578
+ },
579
+ });
580
+ }
581
+ /**
582
+ * Delete all catalog item memory for a specific user.
583
+ *
584
+ * Args:
585
+ * request: The HTTP request.
586
+ * org: The organization/tenant identifier.
587
+ * user_id: The ID of the user to delete catalog item memory for.
588
+ *
589
+ * Returns:
590
+ * Response: A success message if the memory was deleted.
591
+ *
592
+ * Raises:
593
+ * NotFound: If no catalog item memory exists for the user.
594
+ * @param org
595
+ * @param userId
596
+ * @returns void
597
+ * @throws ApiError
598
+ */
599
+ public static aiPromptOrgsUsersMemoryDestroy(
600
+ org: string,
601
+ userId: string,
602
+ ): CancelablePromise<void> {
603
+ return __request(OpenAPI, {
604
+ method: 'DELETE',
605
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory/',
606
+ path: {
607
+ 'org': org,
608
+ 'user_id': userId,
609
+ },
610
+ errors: {
611
+ 404: `Memory not found`,
612
+ },
613
+ });
614
+ }
615
+ /**
616
+ * Retrieve a user's memory context settings.
617
+ * @param org
618
+ * @param userId
619
+ * @returns UserMemoryContextResponse
620
+ * @throws ApiError
621
+ */
622
+ public static aiPromptOrgsUsersMemoryContextRetrieve(
623
+ org: string,
624
+ userId: string,
625
+ ): CancelablePromise<UserMemoryContextResponse> {
626
+ return __request(OpenAPI, {
627
+ method: 'GET',
628
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory-context/',
629
+ path: {
630
+ 'org': org,
631
+ 'user_id': userId,
632
+ },
633
+ });
634
+ }
635
+ /**
636
+ * Updates the user's memory context settings.
637
+ *
638
+ * Returns:
639
+ *
640
+ * 200: list of user memory context data.
641
+ * @param org
642
+ * @param userId
643
+ * @param requestBody
644
+ * @returns UserMemoryContextResponse
645
+ * @throws ApiError
646
+ */
647
+ public static aiPromptOrgsUsersMemoryContextUpdate(
648
+ org: string,
649
+ userId: string,
650
+ requestBody?: UserMemoryContextRequest,
651
+ ): CancelablePromise<UserMemoryContextResponse> {
652
+ return __request(OpenAPI, {
653
+ method: 'PUT',
654
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory-context/',
655
+ path: {
656
+ 'org': org,
657
+ 'user_id': userId,
658
+ },
659
+ body: requestBody,
660
+ mediaType: 'application/json',
661
+ });
662
+ }
663
+ /**
664
+ * Retrieve the memory status for a specific user.
665
+ *
666
+ * Args:
667
+ * request: The HTTP request.
668
+ * org: The organization/tenant identifier.
669
+ * user_id: The ID of the user to retrieve memory status for.
670
+ *
671
+ * Returns:
672
+ * Response: The user's memory status.
673
+ *
674
+ * Raises:
675
+ * NotFound: If no memory status exists for the user.
676
+ * @param org
677
+ * @param userId
678
+ * @returns MemoryStatusView
679
+ * @throws ApiError
680
+ */
681
+ public static aiPromptOrgsUsersMemoryStatusRetrieve(
682
+ org: string,
683
+ userId: string,
684
+ ): CancelablePromise<MemoryStatusView> {
685
+ return __request(OpenAPI, {
686
+ method: 'GET',
687
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory-status/',
688
+ path: {
689
+ 'org': org,
690
+ 'user_id': userId,
691
+ },
692
+ errors: {
693
+ 404: `Memory status not found`,
694
+ },
695
+ });
696
+ }
697
+ /**
698
+ * Update the memory status for a specific user.
699
+ *
700
+ * Args:
701
+ * request: The HTTP request containing the updated status.
702
+ * org: The organization/tenant identifier.
703
+ * user_id: The ID of the user to update memory status for.
704
+ *
705
+ * Returns:
706
+ * Response: The updated memory status.
707
+ *
708
+ * Raises:
709
+ * BadRequest: If the provided data is invalid.
710
+ * @param org
711
+ * @param userId
712
+ * @param requestBody
713
+ * @returns MemoryStatusView
714
+ * @throws ApiError
715
+ */
716
+ public static aiPromptOrgsUsersMemoryStatusUpdate(
717
+ org: string,
718
+ userId: string,
719
+ requestBody: MemoryStatusRequestView,
720
+ ): CancelablePromise<MemoryStatusView> {
721
+ return __request(OpenAPI, {
722
+ method: 'PUT',
723
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory-status/',
724
+ path: {
725
+ 'org': org,
726
+ 'user_id': userId,
727
+ },
728
+ body: requestBody,
729
+ mediaType: 'application/json',
730
+ errors: {
731
+ 400: `Invalid data`,
732
+ },
733
+ });
734
+ }
735
+ /**
736
+ * Update a specific catalog item memory entry.
737
+ *
738
+ * Args:
739
+ * request: The HTTP request containing the updated catalog item memory data.
740
+ * org: The organization/tenant identifier.
741
+ * user_id: The ID of the user who owns the memory.
742
+ * memory_id: The ID of the specific memory entry to update.
743
+ *
744
+ * Returns:
745
+ * Response: The updated catalog item memory entry.
746
+ *
747
+ * Raises:
748
+ * BadRequest: If the provided data is invalid.
749
+ * NotFound: If the specified memory entry does not exist.
750
+ * @param memoryId
751
+ * @param org
752
+ * @param userId
753
+ * @param requestBody
754
+ * @returns UserCatalogItemMemoryView
755
+ * @throws ApiError
756
+ */
757
+ public static aiPromptOrgsUsersMemoryUpdate(
758
+ memoryId: number,
759
+ org: string,
760
+ userId: string,
761
+ requestBody: UserCatalogItemMemoryView,
762
+ ): CancelablePromise<UserCatalogItemMemoryView> {
763
+ return __request(OpenAPI, {
764
+ method: 'PUT',
765
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory/{memory_id}/',
766
+ path: {
767
+ 'memory_id': memoryId,
768
+ 'org': org,
769
+ 'user_id': userId,
770
+ },
771
+ body: requestBody,
772
+ mediaType: 'application/json',
773
+ errors: {
774
+ 400: `Invalid data`,
775
+ 404: `Memory not found`,
776
+ },
777
+ });
778
+ }
779
+ /**
780
+ * Delete a specific catalog item memory entry.
781
+ *
782
+ * Args:
783
+ * request: The HTTP request.
784
+ * org: The organization/tenant identifier.
785
+ * user_id: The ID of the user who owns the memory.
786
+ * memory_id: The ID of the specific memory entry to delete.
787
+ *
788
+ * Returns:
789
+ * Response: A success message if the memory was deleted.
790
+ *
791
+ * Raises:
792
+ * NotFound: If the specified memory entry does not exist.
793
+ * @param memoryId
794
+ * @param org
795
+ * @param userId
796
+ * @returns void
797
+ * @throws ApiError
798
+ */
799
+ public static aiPromptOrgsUsersMemoryDestroy2(
800
+ memoryId: number,
801
+ org: string,
802
+ userId: string,
803
+ ): CancelablePromise<void> {
804
+ return __request(OpenAPI, {
805
+ method: 'DELETE',
806
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/memory/{memory_id}/',
807
+ path: {
808
+ 'memory_id': memoryId,
809
+ 'org': org,
810
+ 'user_id': userId,
811
+ },
812
+ errors: {
813
+ 404: `Memory not found`,
814
+ },
815
+ });
816
+ }
817
+ /**
818
+ * Retrieve metadata for a prompt.
819
+ *
820
+ * Args:
821
+ * request: The HTTP request.
822
+ * org: The organization/tenant identifier.
823
+ * user_id: The ID of the user making the request.
824
+ *
825
+ * Returns:
826
+ * Response: The prompt metadata.
827
+ *
828
+ * Raises:
829
+ * NotFound: If no metadata exists for the specific prompt
830
+ * @param org
831
+ * @param userId
832
+ * @returns Metadata
833
+ * @throws ApiError
834
+ */
835
+ public static aiPromptOrgsUsersMetadataRetrieve(
836
+ org: string,
837
+ userId: string,
838
+ ): CancelablePromise<Metadata> {
839
+ return __request(OpenAPI, {
840
+ method: 'GET',
841
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/metadata',
842
+ path: {
843
+ 'org': org,
844
+ 'user_id': userId,
845
+ },
846
+ errors: {
847
+ 404: `Metadata not found`,
848
+ },
849
+ });
850
+ }
851
+ /**
852
+ * API viewset for managing prompts.
853
+ *
854
+ * This view allows tenant admins and students to create, retrieve, update,
855
+ * and filter prompts based on various parameters.
856
+ *
857
+ * Permissions:
858
+ * - Accessible to both tenant administrators and students
859
+ * @param org
860
+ * @param userId
861
+ * @param category Category of the prompt
862
+ * @param createdBy Option to filter by username of the prompt creators.
863
+ * @param filterBy Filter options include, date, prompt, default is date
864
+ * @param mentorUniqueId Mentor unique id of the prompt
865
+ * @param tag Tag of the prompt
866
+ * @param visibility Visibility trype the mentor of the prompt
867
+ * @returns Prompt
868
+ * @throws ApiError
869
+ */
870
+ public static aiPromptOrgsUsersPromptList(
871
+ org: string,
872
+ userId: string,
873
+ category?: number,
874
+ createdBy?: string,
875
+ filterBy?: string,
876
+ mentorUniqueId?: string,
877
+ tag?: number,
878
+ visibility?: string,
879
+ ): CancelablePromise<Array<Prompt>> {
880
+ return __request(OpenAPI, {
881
+ method: 'GET',
882
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/',
883
+ path: {
884
+ 'org': org,
885
+ 'user_id': userId,
886
+ },
887
+ query: {
888
+ 'category': category,
889
+ 'created_by': createdBy,
890
+ 'filter_by': filterBy,
891
+ 'mentor_unique_id': mentorUniqueId,
892
+ 'tag': tag,
893
+ 'visibility': visibility,
894
+ },
895
+ });
896
+ }
897
+ /**
898
+ * Create a new prompt.
899
+ *
900
+ * Args:
901
+ * request: HTTP request containing prompt data.
902
+ *
903
+ * Returns:
904
+ * Response with created prompt details.
905
+ *
906
+ * Raises:
907
+ * ValidationError: If the input data is invalid.
908
+ * @param org
909
+ * @param userId
910
+ * @param requestBody
911
+ * @param category Category of the prompt
912
+ * @param createdBy Option to filter by username of the prompt creators.
913
+ * @param filterBy Filter options include, date, prompt, default is date
914
+ * @param mentorUniqueId Mentor unique id of the prompt
915
+ * @param tag Tag of the prompt
916
+ * @param visibility Visibility trype the mentor of the prompt
917
+ * @returns Prompt
918
+ * @throws ApiError
919
+ */
920
+ public static aiPromptOrgsUsersPromptCreate(
921
+ org: string,
922
+ userId: string,
923
+ requestBody: Prompt,
924
+ category?: number,
925
+ createdBy?: string,
926
+ filterBy?: string,
927
+ mentorUniqueId?: string,
928
+ tag?: number,
929
+ visibility?: string,
930
+ ): CancelablePromise<Prompt> {
931
+ return __request(OpenAPI, {
932
+ method: 'POST',
933
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/',
934
+ path: {
935
+ 'org': org,
936
+ 'user_id': userId,
937
+ },
938
+ query: {
939
+ 'category': category,
940
+ 'created_by': createdBy,
941
+ 'filter_by': filterBy,
942
+ 'mentor_unique_id': mentorUniqueId,
943
+ 'tag': tag,
944
+ 'visibility': visibility,
945
+ },
946
+ body: requestBody,
947
+ mediaType: 'application/json',
948
+ });
949
+ }
950
+ /**
951
+ * API viewset for managing prompts.
952
+ *
953
+ * This view allows tenant admins and students to create, retrieve, update,
954
+ * and filter prompts based on various parameters.
955
+ *
956
+ * Permissions:
957
+ * - Accessible to both tenant administrators and students
958
+ * @param id A unique integer value identifying this prompt.
959
+ * @param org
960
+ * @param userId
961
+ * @param category Category of the prompt
962
+ * @param createdBy Option to filter by username of the prompt creators.
963
+ * @param filterBy Filter options include, date, prompt, default is date
964
+ * @param mentorUniqueId Mentor unique id of the prompt
965
+ * @param tag Tag of the prompt
966
+ * @param visibility Visibility trype the mentor of the prompt
967
+ * @returns Prompt
968
+ * @throws ApiError
969
+ */
970
+ public static aiPromptOrgsUsersPromptRetrieve(
971
+ id: number,
972
+ org: string,
973
+ userId: string,
974
+ category?: number,
975
+ createdBy?: string,
976
+ filterBy?: string,
977
+ mentorUniqueId?: string,
978
+ tag?: number,
979
+ visibility?: string,
980
+ ): CancelablePromise<Prompt> {
981
+ return __request(OpenAPI, {
982
+ method: 'GET',
983
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/',
984
+ path: {
985
+ 'id': id,
986
+ 'org': org,
987
+ 'user_id': userId,
988
+ },
989
+ query: {
990
+ 'category': category,
991
+ 'created_by': createdBy,
992
+ 'filter_by': filterBy,
993
+ 'mentor_unique_id': mentorUniqueId,
994
+ 'tag': tag,
995
+ 'visibility': visibility,
996
+ },
997
+ });
998
+ }
999
+ /**
1000
+ * Update an existing prompt.
1001
+ *
1002
+ * Args:
1003
+ * request: HTTP request containing updated prompt data.
1004
+ *
1005
+ * Returns:
1006
+ * Response with updated prompt details.
1007
+ *
1008
+ * Raises:
1009
+ * ValidationError: If the input data is invalid.
1010
+ * PermissionDenied: If the prompt is system-generated and cannot be edited.
1011
+ * @param id A unique integer value identifying this prompt.
1012
+ * @param org
1013
+ * @param userId
1014
+ * @param requestBody
1015
+ * @param category Category of the prompt
1016
+ * @param createdBy Option to filter by username of the prompt creators.
1017
+ * @param filterBy Filter options include, date, prompt, default is date
1018
+ * @param mentorUniqueId Mentor unique id of the prompt
1019
+ * @param tag Tag of the prompt
1020
+ * @param visibility Visibility trype the mentor of the prompt
1021
+ * @returns Prompt
1022
+ * @throws ApiError
1023
+ */
1024
+ public static aiPromptOrgsUsersPromptUpdate(
1025
+ id: number,
1026
+ org: string,
1027
+ userId: string,
1028
+ requestBody: Prompt,
1029
+ category?: number,
1030
+ createdBy?: string,
1031
+ filterBy?: string,
1032
+ mentorUniqueId?: string,
1033
+ tag?: number,
1034
+ visibility?: string,
1035
+ ): CancelablePromise<Prompt> {
1036
+ return __request(OpenAPI, {
1037
+ method: 'PUT',
1038
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/',
1039
+ path: {
1040
+ 'id': id,
1041
+ 'org': org,
1042
+ 'user_id': userId,
1043
+ },
1044
+ query: {
1045
+ 'category': category,
1046
+ 'created_by': createdBy,
1047
+ 'filter_by': filterBy,
1048
+ 'mentor_unique_id': mentorUniqueId,
1049
+ 'tag': tag,
1050
+ 'visibility': visibility,
1051
+ },
1052
+ body: requestBody,
1053
+ mediaType: 'application/json',
1054
+ });
1055
+ }
1056
+ /**
1057
+ * API viewset for managing prompts.
1058
+ *
1059
+ * This view allows tenant admins and students to create, retrieve, update,
1060
+ * and filter prompts based on various parameters.
1061
+ *
1062
+ * Permissions:
1063
+ * - Accessible to both tenant administrators and students
1064
+ * @param id A unique integer value identifying this prompt.
1065
+ * @param org
1066
+ * @param userId
1067
+ * @param category Category of the prompt
1068
+ * @param createdBy Option to filter by username of the prompt creators.
1069
+ * @param filterBy Filter options include, date, prompt, default is date
1070
+ * @param mentorUniqueId Mentor unique id of the prompt
1071
+ * @param tag Tag of the prompt
1072
+ * @param visibility Visibility trype the mentor of the prompt
1073
+ * @param requestBody
1074
+ * @returns Prompt
1075
+ * @throws ApiError
1076
+ */
1077
+ public static aiPromptOrgsUsersPromptPartialUpdate(
1078
+ id: number,
1079
+ org: string,
1080
+ userId: string,
1081
+ category?: number,
1082
+ createdBy?: string,
1083
+ filterBy?: string,
1084
+ mentorUniqueId?: string,
1085
+ tag?: number,
1086
+ visibility?: string,
1087
+ requestBody?: PatchedPrompt,
1088
+ ): CancelablePromise<Prompt> {
1089
+ return __request(OpenAPI, {
1090
+ method: 'PATCH',
1091
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/',
1092
+ path: {
1093
+ 'id': id,
1094
+ 'org': org,
1095
+ 'user_id': userId,
1096
+ },
1097
+ query: {
1098
+ 'category': category,
1099
+ 'created_by': createdBy,
1100
+ 'filter_by': filterBy,
1101
+ 'mentor_unique_id': mentorUniqueId,
1102
+ 'tag': tag,
1103
+ 'visibility': visibility,
1104
+ },
1105
+ body: requestBody,
1106
+ mediaType: 'application/json',
1107
+ });
1108
+ }
1109
+ /**
1110
+ * API viewset for managing prompts.
1111
+ *
1112
+ * This view allows tenant admins and students to create, retrieve, update,
1113
+ * and filter prompts based on various parameters.
1114
+ *
1115
+ * Permissions:
1116
+ * - Accessible to both tenant administrators and students
1117
+ * @param id A unique integer value identifying this prompt.
1118
+ * @param org
1119
+ * @param userId
1120
+ * @param category Category of the prompt
1121
+ * @param createdBy Option to filter by username of the prompt creators.
1122
+ * @param filterBy Filter options include, date, prompt, default is date
1123
+ * @param mentorUniqueId Mentor unique id of the prompt
1124
+ * @param tag Tag of the prompt
1125
+ * @param visibility Visibility trype the mentor of the prompt
1126
+ * @returns void
1127
+ * @throws ApiError
1128
+ */
1129
+ public static aiPromptOrgsUsersPromptDestroy(
1130
+ id: number,
1131
+ org: string,
1132
+ userId: string,
1133
+ category?: number,
1134
+ createdBy?: string,
1135
+ filterBy?: string,
1136
+ mentorUniqueId?: string,
1137
+ tag?: number,
1138
+ visibility?: string,
1139
+ ): CancelablePromise<void> {
1140
+ return __request(OpenAPI, {
1141
+ method: 'DELETE',
1142
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/',
1143
+ path: {
1144
+ 'id': id,
1145
+ 'org': org,
1146
+ 'user_id': userId,
1147
+ },
1148
+ query: {
1149
+ 'category': category,
1150
+ 'created_by': createdBy,
1151
+ 'filter_by': filterBy,
1152
+ 'mentor_unique_id': mentorUniqueId,
1153
+ 'tag': tag,
1154
+ 'visibility': visibility,
1155
+ },
1156
+ });
1157
+ }
1158
+ /**
1159
+ * Retrieve a list of prompt categories.
1160
+ *
1161
+ * Query Parameters:
1162
+ * - filter_by (optional): Sorts categories by name if set to "name".
1163
+ *
1164
+ * Args:
1165
+ * request: The HTTP request.
1166
+ * org: Organization key identifier.
1167
+ *
1168
+ * Returns:
1169
+ * - 200: List of prompt categories.
1170
+ * - 400: If query parameters are invalid.
1171
+ * @param org
1172
+ * @param userId
1173
+ * @param filterBy Filter options include, date, name, default is date
1174
+ * @returns PromptCategory
1175
+ * @throws ApiError
1176
+ */
1177
+ public static aiPromptOrgsUsersPromptsCategoryRetrieve(
1178
+ org: string,
1179
+ userId: string,
1180
+ filterBy?: string,
1181
+ ): CancelablePromise<PromptCategory> {
1182
+ return __request(OpenAPI, {
1183
+ method: 'GET',
1184
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompts/category/',
1185
+ path: {
1186
+ 'org': org,
1187
+ 'user_id': userId,
1188
+ },
1189
+ query: {
1190
+ 'filter_by': filterBy,
1191
+ },
1192
+ });
1193
+ }
1194
+ /**
1195
+ * Create a new prompt category.
1196
+ *
1197
+ * Args:
1198
+ * request: The HTTP request containing category information.
1199
+ * org: Organization key identifier.
1200
+ * user_id: User performing the request.
1201
+ *
1202
+ * Returns:
1203
+ * - 201: Created prompt category.
1204
+ * - 401: If the user is not a tenant admin.
1205
+ * - 400: If request data is invalid.
1206
+ * @param org
1207
+ * @param userId
1208
+ * @param requestBody
1209
+ * @returns PromptCategory Created prompt category
1210
+ * @throws ApiError
1211
+ */
1212
+ public static aiPromptOrgsUsersPromptsCategoryCreate(
1213
+ org: string,
1214
+ userId: string,
1215
+ requestBody: PromptCategory,
1216
+ ): CancelablePromise<PromptCategory> {
1217
+ return __request(OpenAPI, {
1218
+ method: 'POST',
1219
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompts/category/',
1220
+ path: {
1221
+ 'org': org,
1222
+ 'user_id': userId,
1223
+ },
1224
+ body: requestBody,
1225
+ mediaType: 'application/json',
1226
+ });
1227
+ }
1228
+ /**
1229
+ * Delete a prompt category.
1230
+ *
1231
+ * Args:
1232
+ * request: The HTTP request containing the category to delete.
1233
+ * org: Organization key identifier.
1234
+ * user_id: User performing the request.
1235
+ *
1236
+ * Returns:
1237
+ * - 204: No Content (successful deletion).
1238
+ * - 401: If the user is not a tenant admin.
1239
+ * - 400: If request data is invalid.
1240
+ * - 404: If the category does not exist.
1241
+ * @param org
1242
+ * @param userId
1243
+ * @returns void
1244
+ * @throws ApiError
1245
+ */
1246
+ public static aiPromptOrgsUsersPromptsCategoryDestroy(
1247
+ org: string,
1248
+ userId: string,
1249
+ ): CancelablePromise<void> {
1250
+ return __request(OpenAPI, {
1251
+ method: 'DELETE',
1252
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompts/category/',
1253
+ path: {
1254
+ 'org': org,
1255
+ 'user_id': userId,
1256
+ },
1257
+ errors: {
1258
+ 400: `Invalid request data.`,
1259
+ 404: `Prompt category not found.`,
1260
+ },
1261
+ });
1262
+ }
1263
+ /**
1264
+ * API viewset for managing prompts.
1265
+ *
1266
+ * This view allows anyone to retrieve,
1267
+ * and filter prompts based on various parameters.
1268
+ *
1269
+ * Permissions:
1270
+ * - Accessible to anyone
1271
+ * @param org
1272
+ * @param userId
1273
+ * @param category Category of the prompt
1274
+ * @param createdBy Option to filter by username of the prompt creators.
1275
+ * @param filterBy Filter options include, date, prompt, default is date
1276
+ * @param mentorUniqueId Mentor unique id of the prompt
1277
+ * @param tag Tag of the prompt
1278
+ * @param visibility Visibility trype the mentor of the prompt
1279
+ * @returns Prompt
1280
+ * @throws ApiError
1281
+ */
1282
+ public static aiPromptOrgsUsersPromptsPublicList(
1283
+ org: string,
1284
+ userId: string,
1285
+ category?: number,
1286
+ createdBy?: string,
1287
+ filterBy?: string,
1288
+ mentorUniqueId?: string,
1289
+ tag?: number,
1290
+ visibility?: string,
1291
+ ): CancelablePromise<Array<Prompt>> {
1292
+ return __request(OpenAPI, {
1293
+ method: 'GET',
1294
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompts/public/',
1295
+ path: {
1296
+ 'org': org,
1297
+ 'user_id': userId,
1298
+ },
1299
+ query: {
1300
+ 'category': category,
1301
+ 'created_by': createdBy,
1302
+ 'filter_by': filterBy,
1303
+ 'mentor_unique_id': mentorUniqueId,
1304
+ 'tag': tag,
1305
+ 'visibility': visibility,
1306
+ },
1307
+ });
1308
+ }
1309
+ /**
1310
+ * API viewset for managing prompts.
1311
+ *
1312
+ * This view allows anyone to retrieve,
1313
+ * and filter prompts based on various parameters.
1314
+ *
1315
+ * Permissions:
1316
+ * - Accessible to anyone
1317
+ * @param id A unique integer value identifying this prompt.
1318
+ * @param org
1319
+ * @param userId
1320
+ * @param category Category of the prompt
1321
+ * @param createdBy Option to filter by username of the prompt creators.
1322
+ * @param filterBy Filter options include, date, prompt, default is date
1323
+ * @param mentorUniqueId Mentor unique id of the prompt
1324
+ * @param tag Tag of the prompt
1325
+ * @param visibility Visibility trype the mentor of the prompt
1326
+ * @returns Prompt
1327
+ * @throws ApiError
1328
+ */
1329
+ public static aiPromptOrgsUsersPromptsPublicRetrieve(
1330
+ id: number,
1331
+ org: string,
1332
+ userId: string,
1333
+ category?: number,
1334
+ createdBy?: string,
1335
+ filterBy?: string,
1336
+ mentorUniqueId?: string,
1337
+ tag?: number,
1338
+ visibility?: string,
1339
+ ): CancelablePromise<Prompt> {
1340
+ return __request(OpenAPI, {
1341
+ method: 'GET',
1342
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/prompts/public/{id}/',
1343
+ path: {
1344
+ 'id': id,
1345
+ 'org': org,
1346
+ 'user_id': userId,
1347
+ },
1348
+ query: {
1349
+ 'category': category,
1350
+ 'created_by': createdBy,
1351
+ 'filter_by': filterBy,
1352
+ 'mentor_unique_id': mentorUniqueId,
1353
+ 'tag': tag,
1354
+ 'visibility': visibility,
1355
+ },
1356
+ });
1357
+ }
1358
+ /**
1359
+ * Retrieve guided prompts for a chat session
1360
+ * Fetches AI-generated guided prompts for a given session and organization.
1361
+ * @param org
1362
+ * @param sessionId
1363
+ * @param userId
1364
+ * @returns GuidedPromptsResponse
1365
+ * @throws ApiError
1366
+ */
1367
+ public static aiPromptOrgsUsersSessionsGuidedPromptsRetrieve(
1368
+ org: string,
1369
+ sessionId: string,
1370
+ userId: string,
1371
+ ): CancelablePromise<GuidedPromptsResponse> {
1372
+ return __request(OpenAPI, {
1373
+ method: 'GET',
1374
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/sessions/{session_id}/guided-prompts/',
1375
+ path: {
1376
+ 'org': org,
1377
+ 'session_id': sessionId,
1378
+ 'user_id': userId,
1379
+ },
1380
+ });
1381
+ }
1382
+ /**
1383
+ * Endpoint for getting prompt styles.
1384
+ *
1385
+ * Accessible to tenant admins and students.
1386
+ *
1387
+ * Returns:
1388
+ *
1389
+ * 200: List of styles.
1390
+ * @param org
1391
+ * @param userId
1392
+ * @returns StylesView
1393
+ * @throws ApiError
1394
+ */
1395
+ public static aiPromptOrgsUsersStylesRetrieve(
1396
+ org: string,
1397
+ userId: string,
1398
+ ): CancelablePromise<StylesView> {
1399
+ return __request(OpenAPI, {
1400
+ method: 'GET',
1401
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/styles/',
1402
+ path: {
1403
+ 'org': org,
1404
+ 'user_id': userId,
1405
+ },
1406
+ });
1407
+ }
1408
+ /**
1409
+ * Endpoint for Adding prompt style.
1410
+ *
1411
+ * Accessible to tenant admins only.
1412
+ *
1413
+ * Returns:
1414
+ *
1415
+ * 201: style Object.
1416
+ *
1417
+ * 400: When data is not valid.
1418
+ * @param org
1419
+ * @param userId
1420
+ * @param requestBody
1421
+ * @returns StylesView
1422
+ * @throws ApiError
1423
+ */
1424
+ public static aiPromptOrgsUsersStylesCreate(
1425
+ org: string,
1426
+ userId: string,
1427
+ requestBody: StylesView,
1428
+ ): CancelablePromise<StylesView> {
1429
+ return __request(OpenAPI, {
1430
+ method: 'POST',
1431
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/styles/',
1432
+ path: {
1433
+ 'org': org,
1434
+ 'user_id': userId,
1435
+ },
1436
+ body: requestBody,
1437
+ mediaType: 'application/json',
1438
+ });
1439
+ }
1440
+ /**
1441
+ * Endpoint for Adding prompt style.
1442
+ *
1443
+ * Accessible to tenant admins only.
1444
+ *
1445
+ * Returns:
1446
+ *
1447
+ * 200: style Object.
1448
+ *
1449
+ * 400: When data is not valid.
1450
+ * @param org
1451
+ * @param styleId
1452
+ * @param userId
1453
+ * @param requestBody
1454
+ * @returns StylesView
1455
+ * @throws ApiError
1456
+ */
1457
+ public static aiPromptOrgsUsersStylesUpdate(
1458
+ org: string,
1459
+ styleId: number,
1460
+ userId: string,
1461
+ requestBody: StylesView,
1462
+ ): CancelablePromise<StylesView> {
1463
+ return __request(OpenAPI, {
1464
+ method: 'PUT',
1465
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/styles/{style_id}/',
1466
+ path: {
1467
+ 'org': org,
1468
+ 'style_id': styleId,
1469
+ 'user_id': userId,
1470
+ },
1471
+ body: requestBody,
1472
+ mediaType: 'application/json',
1473
+ });
1474
+ }
1475
+ /**
1476
+ * Endpoint for deleting prompt style.
1477
+ *
1478
+ * Accessible to tenant admins and students.
1479
+ *
1480
+ * Returns:
1481
+ *
1482
+ * 204: No response data.
1483
+ *
1484
+ * 400: When data is not valid.
1485
+ * @param org
1486
+ * @param styleId
1487
+ * @param userId
1488
+ * @returns void
1489
+ * @throws ApiError
1490
+ */
1491
+ public static aiPromptOrgsUsersStylesDestroy(
1492
+ org: string,
1493
+ styleId: number,
1494
+ userId: string,
1495
+ ): CancelablePromise<void> {
1496
+ return __request(OpenAPI, {
1497
+ method: 'DELETE',
1498
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/styles/{style_id}/',
1499
+ path: {
1500
+ 'org': org,
1501
+ 'style_id': styleId,
1502
+ 'user_id': userId,
1503
+ },
1504
+ });
1505
+ }
1506
+ /**
1507
+ * Endpoint for getting prompt tags.
1508
+ *
1509
+ * Accessible to tenant admins and students.
1510
+ *
1511
+ * Returns:
1512
+ *
1513
+ * 200: List of tags.
1514
+ * @param org
1515
+ * @param userId
1516
+ * @returns TagsView
1517
+ * @throws ApiError
1518
+ */
1519
+ public static aiPromptOrgsUsersTagsRetrieve(
1520
+ org: string,
1521
+ userId: string,
1522
+ ): CancelablePromise<TagsView> {
1523
+ return __request(OpenAPI, {
1524
+ method: 'GET',
1525
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tags/',
1526
+ path: {
1527
+ 'org': org,
1528
+ 'user_id': userId,
1529
+ },
1530
+ });
1531
+ }
1532
+ /**
1533
+ * Endpoint for Adding prompt tag.
1534
+ *
1535
+ * Accessible to tenant admins and students.
1536
+ *
1537
+ * Returns:
1538
+ *
1539
+ * 201: tag Object.
1540
+ *
1541
+ * 400: When data is not valid.
1542
+ *
1543
+ *
1544
+ *
1545
+ * Example:
1546
+ *
1547
+ * POST: /api/ai-prompt/orgs/main/users/johndoe/tags/
1548
+ *
1549
+ * Request: Response: {
1550
+ * "name": "Programming",
1551
+ * "description": "tags for programing prompts"
1552
+ * }
1553
+ *
1554
+ * Response: {
1555
+ * "id": 1,
1556
+ * "name": "Programming",
1557
+ * "description": "tags for programing prompts"
1558
+ * }
1559
+ * @param org
1560
+ * @param userId
1561
+ * @param requestBody
1562
+ * @returns TagsView
1563
+ * @throws ApiError
1564
+ */
1565
+ public static aiPromptOrgsUsersTagsCreate(
1566
+ org: string,
1567
+ userId: string,
1568
+ requestBody: TagsView,
1569
+ ): CancelablePromise<TagsView> {
1570
+ return __request(OpenAPI, {
1571
+ method: 'POST',
1572
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tags/',
1573
+ path: {
1574
+ 'org': org,
1575
+ 'user_id': userId,
1576
+ },
1577
+ body: requestBody,
1578
+ mediaType: 'application/json',
1579
+ });
1580
+ }
1581
+ /**
1582
+ * Endpoint for updating prompt tag.
1583
+ *
1584
+ * Accessible to tenant admins and students.
1585
+ *
1586
+ * Returns:
1587
+ *
1588
+ * 200: tag Object.
1589
+ *
1590
+ * 400: When data is not valid.
1591
+ * @param org
1592
+ * @param tagId
1593
+ * @param userId
1594
+ * @param requestBody
1595
+ * @returns TagsView
1596
+ * @throws ApiError
1597
+ */
1598
+ public static aiPromptOrgsUsersTagsUpdate(
1599
+ org: string,
1600
+ tagId: number,
1601
+ userId: string,
1602
+ requestBody: TagsView,
1603
+ ): CancelablePromise<TagsView> {
1604
+ return __request(OpenAPI, {
1605
+ method: 'PUT',
1606
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tags/{tag_id}/',
1607
+ path: {
1608
+ 'org': org,
1609
+ 'tag_id': tagId,
1610
+ 'user_id': userId,
1611
+ },
1612
+ body: requestBody,
1613
+ mediaType: 'application/json',
1614
+ });
1615
+ }
1616
+ /**
1617
+ * Endpoint for deleting prompt tag.
1618
+ *
1619
+ * Accessible to tenant admins and students.
1620
+ *
1621
+ * Returns:
1622
+ *
1623
+ * 204: No response data.
1624
+ *
1625
+ * 400: When data is not valid.
1626
+ * @param org
1627
+ * @param tagId
1628
+ * @param userId
1629
+ * @returns void
1630
+ * @throws ApiError
1631
+ */
1632
+ public static aiPromptOrgsUsersTagsDestroy(
1633
+ org: string,
1634
+ tagId: number,
1635
+ userId: string,
1636
+ ): CancelablePromise<void> {
1637
+ return __request(OpenAPI, {
1638
+ method: 'DELETE',
1639
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tags/{tag_id}/',
1640
+ path: {
1641
+ 'org': org,
1642
+ 'tag_id': tagId,
1643
+ 'user_id': userId,
1644
+ },
1645
+ });
1646
+ }
1647
+ /**
1648
+ * Endpoint for getting prompt tones.
1649
+ *
1650
+ * Accessible to tenant admins and students.
1651
+ *
1652
+ * Returns:
1653
+ *
1654
+ * 200: List of tones.
1655
+ * @param org
1656
+ * @param userId
1657
+ * @returns TonesView
1658
+ * @throws ApiError
1659
+ */
1660
+ public static aiPromptOrgsUsersTonesRetrieve(
1661
+ org: string,
1662
+ userId: string,
1663
+ ): CancelablePromise<TonesView> {
1664
+ return __request(OpenAPI, {
1665
+ method: 'GET',
1666
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tones/',
1667
+ path: {
1668
+ 'org': org,
1669
+ 'user_id': userId,
1670
+ },
1671
+ });
1672
+ }
1673
+ /**
1674
+ * Endpoint for Adding prompt tone.
1675
+ *
1676
+ * Accessible to tenant admins only.
1677
+ *
1678
+ * Returns:
1679
+ *
1680
+ * 201: tone Object.
1681
+ *
1682
+ * 400: When data is not valid.
1683
+ * @param org
1684
+ * @param userId
1685
+ * @param requestBody
1686
+ * @returns TonesView
1687
+ * @throws ApiError
1688
+ */
1689
+ public static aiPromptOrgsUsersTonesCreate(
1690
+ org: string,
1691
+ userId: string,
1692
+ requestBody?: TonesView,
1693
+ ): CancelablePromise<TonesView> {
1694
+ return __request(OpenAPI, {
1695
+ method: 'POST',
1696
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tones/',
1697
+ path: {
1698
+ 'org': org,
1699
+ 'user_id': userId,
1700
+ },
1701
+ body: requestBody,
1702
+ mediaType: 'application/json',
1703
+ });
1704
+ }
1705
+ /**
1706
+ * Endpoint for updating prompt tone.
1707
+ *
1708
+ * Accessible to tenant admins only.
1709
+ *
1710
+ * Returns:
1711
+ *
1712
+ * 200: tone Object.
1713
+ *
1714
+ * 400: When data is not valid.
1715
+ * @param org
1716
+ * @param toneId
1717
+ * @param userId
1718
+ * @param requestBody
1719
+ * @returns TonesView
1720
+ * @throws ApiError
1721
+ */
1722
+ public static aiPromptOrgsUsersTonesUpdate(
1723
+ org: string,
1724
+ toneId: number,
1725
+ userId: string,
1726
+ requestBody?: TonesView,
1727
+ ): CancelablePromise<TonesView> {
1728
+ return __request(OpenAPI, {
1729
+ method: 'PUT',
1730
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tones/{tone_id}/',
1731
+ path: {
1732
+ 'org': org,
1733
+ 'tone_id': toneId,
1734
+ 'user_id': userId,
1735
+ },
1736
+ body: requestBody,
1737
+ mediaType: 'application/json',
1738
+ });
1739
+ }
1740
+ /**
1741
+ * Endpoint for deleting prompt tone.
1742
+ *
1743
+ * Accessible to tenant admins and students.
1744
+ *
1745
+ * Returns:
1746
+ *
1747
+ * 204: No response data.
1748
+ *
1749
+ * 400: When data is not valid.
1750
+ * @param org
1751
+ * @param toneId
1752
+ * @param userId
1753
+ * @returns void
1754
+ * @throws ApiError
1755
+ */
1756
+ public static aiPromptOrgsUsersTonesDestroy(
1757
+ org: string,
1758
+ toneId: number,
1759
+ userId: string,
1760
+ ): CancelablePromise<void> {
1761
+ return __request(OpenAPI, {
1762
+ method: 'DELETE',
1763
+ url: '/api/ai-prompt/orgs/{org}/users/{user_id}/tones/{tone_id}/',
1764
+ path: {
1765
+ 'org': org,
1766
+ 'tone_id': toneId,
1767
+ 'user_id': userId,
1768
+ },
1769
+ });
1770
+ }
1771
+ }