@iblai/iblai-api 3.34.5-ai-plus → 3.35.0-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.
- package/dist/index.cjs.js +75 -12876
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +76 -12869
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +75 -12876
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +2 -298
- package/dist/types/models/Notification.d.ts +2 -2
- package/dist/types/models/NotificationSource.d.ts +2 -2
- package/dist/types/models/PatchedNotification.d.ts +2 -2
- package/dist/types/models/{NotificationStatusEnum.d.ts → StatusEnum.d.ts} +1 -1
- package/dist/types/models/{NotificationSourceTypeEnum.d.ts → TypeEnum.d.ts} +1 -1
- package/dist/types/services/SearchService.d.ts +0 -434
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -298
- package/src/models/Notification.ts +2 -2
- package/src/models/NotificationSource.ts +2 -2
- package/src/models/PatchedNotification.ts +2 -2
- package/src/models/{NotificationStatusEnum.ts → StatusEnum.ts} +1 -1
- package/src/models/{NotificationSourceTypeEnum.ts → TypeEnum.ts} +1 -1
- package/src/services/SearchService.ts +116 -611
- package/dist/types/models/AIGeneratedImage.d.ts +0 -13
- package/dist/types/models/APITokenCost.d.ts +0 -14
- package/dist/types/models/AccessEnum.d.ts +0 -8
- package/dist/types/models/AlignMentorBubbleEnum.d.ts +0 -8
- package/dist/types/models/AnalyticsOverview.d.ts +0 -7
- package/dist/types/models/Answer.d.ts +0 -11
- package/dist/types/models/AssumedKnowledge.d.ts +0 -4
- package/dist/types/models/AssumedKnowledgeLevel.d.ts +0 -4
- package/dist/types/models/AudioToTextRequest.d.ts +0 -3
- package/dist/types/models/AudioToTextResponse.d.ts +0 -3
- package/dist/types/models/Bot.d.ts +0 -15
- package/dist/types/models/BotCommand.d.ts +0 -6
- package/dist/types/models/BotCreate.d.ts +0 -12
- package/dist/types/models/CallAuthenticationRequest.d.ts +0 -13
- package/dist/types/models/CallAuthenticationResponse.d.ts +0 -21
- package/dist/types/models/ChatHistory.d.ts +0 -8
- package/dist/types/models/ChatHistoryFilterData.d.ts +0 -9
- package/dist/types/models/ChatHistoryFilterUser.d.ts +0 -5
- package/dist/types/models/ChatHistoryItem.d.ts +0 -5
- package/dist/types/models/ChatHistorySessionId.d.ts +0 -3
- package/dist/types/models/ChatSessionRequest.d.ts +0 -10
- package/dist/types/models/ChatSessionResponse.d.ts +0 -5
- package/dist/types/models/CheckDocumentTrainingStatus.d.ts +0 -10
- package/dist/types/models/ComponentBlock.d.ts +0 -9
- package/dist/types/models/ComponentBlockTypeEnum.d.ts +0 -8
- package/dist/types/models/ConversationMessage.d.ts +0 -11
- package/dist/types/models/ConversationRating.d.ts +0 -6
- package/dist/types/models/ConversationSummary.d.ts +0 -5
- package/dist/types/models/ConversationVolume.d.ts +0 -4
- package/dist/types/models/Conversations.d.ts +0 -28
- package/dist/types/models/Cost.d.ts +0 -3
- package/dist/types/models/CostPerTenant.d.ts +0 -6
- package/dist/types/models/CourseCreationTask.d.ts +0 -31
- package/dist/types/models/CourseCreationTaskFile.d.ts +0 -7
- package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +0 -16
- package/dist/types/models/CredentialRequest.d.ts +0 -14
- package/dist/types/models/CrontabSchedule.d.ts +0 -22
- package/dist/types/models/CustomInstructionResponse.d.ts +0 -13
- package/dist/types/models/DataSet.d.ts +0 -21
- package/dist/types/models/DataSetCreate.d.ts +0 -12
- package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
- package/dist/types/models/DateRange.d.ts +0 -4
- package/dist/types/models/DiscordConfig.d.ts +0 -7
- package/dist/types/models/DiscordUserConfig.d.ts +0 -10
- package/dist/types/models/DiscordWebhook.d.ts +0 -6
- package/dist/types/models/EdxCourse.d.ts +0 -11
- package/dist/types/models/ElevenlabsCustomVoice.d.ts +0 -4
- package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +0 -8
- package/dist/types/models/EmailPromptDetail.d.ts +0 -13
- package/dist/types/models/EmailPromptList.d.ts +0 -11
- package/dist/types/models/EmailPromptSummary.d.ts +0 -5
- package/dist/types/models/FreeUsageCount.d.ts +0 -3
- package/dist/types/models/FullCourse.d.ts +0 -13
- package/dist/types/models/GreetingMethodEnum.d.ts +0 -8
- package/dist/types/models/GuidedPromptsResponse.d.ts +0 -3
- package/dist/types/models/HeygenMarketingVideoDetail.d.ts +0 -8
- package/dist/types/models/HeygenMarketingVideoList.d.ts +0 -6
- package/dist/types/models/IBLAIPlatformMeta.d.ts +0 -3
- package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +0 -6
- package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +0 -10
- package/dist/types/models/InputQuestion.d.ts +0 -6
- package/dist/types/models/IntegrationCredential.d.ts +0 -8
- package/dist/types/models/IntialQuestionAnswer.d.ts +0 -3
- package/dist/types/models/JobRun.d.ts +0 -11
- package/dist/types/models/KindEnum.d.ts +0 -10
- package/dist/types/models/LLMCredentialRequest.d.ts +0 -14
- package/dist/types/models/LLMCredentialResponse.d.ts +0 -8
- package/dist/types/models/LLMModelForTenant.d.ts +0 -6
- package/dist/types/models/LLMQuestion.d.ts +0 -15
- package/dist/types/models/LLMResponse.d.ts +0 -14
- package/dist/types/models/LLMTracesListResponse.d.ts +0 -5
- package/dist/types/models/LanguagesView.d.ts +0 -5
- package/dist/types/models/LinkCourseRequest.d.ts +0 -3
- package/dist/types/models/LinkCourseResponse.d.ts +0 -5
- package/dist/types/models/MemoryComponentData.d.ts +0 -5
- package/dist/types/models/MemoryComponentMemory.d.ts +0 -4
- package/dist/types/models/MemoryComponentMemoryDetail.d.ts +0 -8
- package/dist/types/models/MemoryComponentResponse.d.ts +0 -5
- package/dist/types/models/MemoryProgress.d.ts +0 -8
- package/dist/types/models/MemoryStatusRequestView.d.ts +0 -6
- package/dist/types/models/MemoryStatusView.d.ts +0 -6
- package/dist/types/models/Mentor.d.ts +0 -75
- package/dist/types/models/MentorAudience.d.ts +0 -5
- package/dist/types/models/MentorCategory.d.ts +0 -9
- package/dist/types/models/MentorCategoryCreate.d.ts +0 -11
- package/dist/types/models/MentorCategoryGroup.d.ts +0 -11
- package/dist/types/models/MentorCategoryGroupCreate.d.ts +0 -11
- package/dist/types/models/MentorCreate.d.ts +0 -74
- package/dist/types/models/MentorCustomVoice.d.ts +0 -4
- package/dist/types/models/MentorCustomVoiceResponse.d.ts +0 -4
- package/dist/types/models/MentorData.d.ts +0 -7
- package/dist/types/models/MentorDetailAnalytics.d.ts +0 -6
- package/dist/types/models/MentorEval.d.ts +0 -11
- package/dist/types/models/MentorEvalQuestion.d.ts +0 -5
- package/dist/types/models/MentorEvalQuestionRequest.d.ts +0 -4
- package/dist/types/models/MentorEvalReport.d.ts +0 -10
- package/dist/types/models/MentorEvalRequest.d.ts +0 -8
- package/dist/types/models/MentorFork.d.ts +0 -5
- package/dist/types/models/MentorFromTemplateRequest.d.ts +0 -4
- package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +0 -42
- package/dist/types/models/MentorMemorySettingsRequest.d.ts +0 -6
- package/dist/types/models/MentorMemorySettingsResponse.d.ts +0 -6
- package/dist/types/models/MentorMetadata.d.ts +0 -5
- package/dist/types/models/MentorScenario.d.ts +0 -6
- package/dist/types/models/MentorScenarioPrompt.d.ts +0 -5
- package/dist/types/models/MentorSession.d.ts +0 -4
- package/dist/types/models/MentorSettings.d.ts +0 -47
- package/dist/types/models/MentorSettingsPublic.d.ts +0 -40
- package/dist/types/models/MentorSettingsRequest.d.ts +0 -51
- package/dist/types/models/MentorVisibilityEnum.d.ts +0 -10
- package/dist/types/models/MentorWizard.d.ts +0 -4
- package/dist/types/models/MessageStatistics.d.ts +0 -5
- package/dist/types/models/MessageView.d.ts +0 -10
- package/dist/types/models/MessageViewRequest.d.ts +0 -7
- package/dist/types/models/MessageViewUpdatResponse.d.ts +0 -3
- package/dist/types/models/Metadata.d.ts +0 -5
- package/dist/types/models/MetricChange.d.ts +0 -4
- package/dist/types/models/ModelCost.d.ts +0 -4
- package/dist/types/models/ModerationLog.d.ts +0 -11
- package/dist/types/models/NoChatMessagesFound.d.ts +0 -3
- package/dist/types/models/NullEnum.d.ts +0 -1
- package/dist/types/models/PageContent.d.ts +0 -6
- package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +0 -7
- package/dist/types/models/PaginatedConversationsList.d.ts +0 -7
- package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +0 -7
- package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +0 -7
- package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
- package/dist/types/models/PaginatedEdxCourseList.d.ts +0 -7
- package/dist/types/models/PaginatedEmailPromptListList.d.ts +0 -7
- package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +0 -7
- package/dist/types/models/PaginatedJobRunList.d.ts +0 -7
- package/dist/types/models/PaginatedMentorList.d.ts +0 -7
- package/dist/types/models/PaginatedModerationLogList.d.ts +0 -7
- package/dist/types/models/PaginatedPeriodicAgentList.d.ts +0 -7
- package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +0 -7
- package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +0 -7
- package/dist/types/models/PaginatedSectionList.d.ts +0 -7
- package/dist/types/models/PaginatedSubSectionList.d.ts +0 -7
- package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +0 -7
- package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
- package/dist/types/models/PaginatedUnitList.d.ts +0 -7
- package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +0 -7
- package/dist/types/models/PaginatedVoiceList.d.ts +0 -7
- package/dist/types/models/PatchedBotCommand.d.ts +0 -6
- package/dist/types/models/PatchedBotCreate.d.ts +0 -12
- package/dist/types/models/PatchedConversations.d.ts +0 -28
- package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +0 -7
- package/dist/types/models/PatchedCredentialRequest.d.ts +0 -14
- package/dist/types/models/PatchedDataSet.d.ts +0 -21
- package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
- package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
- package/dist/types/models/PatchedLLMCredentialRequest.d.ts +0 -14
- package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +0 -11
- package/dist/types/models/PatchedMentorCreate.d.ts +0 -74
- package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +0 -41
- package/dist/types/models/PatchedPlayWrightScript.d.ts +0 -12
- package/dist/types/models/PatchedPrompt.d.ts +0 -22
- package/dist/types/models/PatchedSection.d.ts +0 -9
- package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
- package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
- package/dist/types/models/PatchedSubSection.d.ts +0 -9
- package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
- package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
- package/dist/types/models/PatchedUnit.d.ts +0 -11
- package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
- package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
- package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
- package/dist/types/models/PeriodicAgent.d.ts +0 -42
- package/dist/types/models/PeriodicAgentCreate.d.ts +0 -41
- package/dist/types/models/PeriodicAgentLog.d.ts +0 -11
- package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +0 -10
- package/dist/types/models/PeriodicTask.d.ts +0 -21
- package/dist/types/models/PieChartData.d.ts +0 -5
- package/dist/types/models/PieChartSegment.d.ts +0 -4
- package/dist/types/models/PinnedMessageCreate.d.ts +0 -9
- package/dist/types/models/PinnedMessageGet.d.ts +0 -7
- package/dist/types/models/PinnedMessageRequest.d.ts +0 -6
- package/dist/types/models/PlayWrightScript.d.ts +0 -12
- package/dist/types/models/PredictiveAnalyticsRequest.d.ts +0 -4
- package/dist/types/models/PredictiveAnalyticsResponse.d.ts +0 -4
- package/dist/types/models/PreviousAgentStatusEnum.d.ts +0 -12
- package/dist/types/models/Prompt.d.ts +0 -22
- package/dist/types/models/PromptCategory.d.ts +0 -7
- package/dist/types/models/PromptVisibilityEnum.d.ts +0 -10
- package/dist/types/models/Provider05cEnum.d.ts +0 -14
- package/dist/types/models/Provider63aEnum.d.ts +0 -6
- package/dist/types/models/QuestionCardTag.d.ts +0 -8
- package/dist/types/models/QuestionRequest.d.ts +0 -15
- package/dist/types/models/QuestionResponse.d.ts +0 -10
- package/dist/types/models/RatingEnum.d.ts +0 -8
- package/dist/types/models/RatingRecord.d.ts +0 -4
- package/dist/types/models/RecentlyAccessedMentor.d.ts +0 -8
- package/dist/types/models/RecommendCourseBlock.d.ts +0 -3
- package/dist/types/models/RecommendCourseResponse.d.ts +0 -3
- package/dist/types/models/RelatedText.d.ts +0 -3
- package/dist/types/models/RequestDataVariable.d.ts +0 -14
- package/dist/types/models/ResourceScrappedData.d.ts +0 -13
- package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +0 -12
- package/dist/types/models/ResponseDataVariable.d.ts +0 -14
- package/dist/types/models/RetreiverTrainViewRequest.d.ts +0 -10
- package/dist/types/models/RetreiverTrainViewResponse.d.ts +0 -6
- package/dist/types/models/RetrieveTask.d.ts +0 -3
- package/dist/types/models/RetrieverDocumentEmbedding.d.ts +0 -17
- package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +0 -30
- package/dist/types/models/RetrieverRequestSearch.d.ts +0 -10
- package/dist/types/models/RetrieverRequestSearchDocument.d.ts +0 -10
- package/dist/types/models/RetrieverResponseSearch.d.ts +0 -7
- package/dist/types/models/ReuestDataVariableList.d.ts +0 -4
- package/dist/types/models/RunMentorEval.d.ts +0 -3
- package/dist/types/models/ScanWebhookRequest.d.ts +0 -6
- package/dist/types/models/ScanWebhookResponse.d.ts +0 -3
- package/dist/types/models/Section.d.ts +0 -9
- package/dist/types/models/SectionWithChildren.d.ts +0 -11
- package/dist/types/models/SeedMentorsView.d.ts +0 -3
- package/dist/types/models/SentimentSummary.d.ts +0 -4
- package/dist/types/models/SessionBrowserScreenshot.d.ts +0 -8
- package/dist/types/models/SessionDetail.d.ts +0 -6
- package/dist/types/models/SessionMemoryStorage.d.ts +0 -6
- package/dist/types/models/ShellLogs.d.ts +0 -3
- package/dist/types/models/SlackConfig.d.ts +0 -8
- package/dist/types/models/SlackUserConfig.d.ts +0 -17
- package/dist/types/models/SlackWebhook.d.ts +0 -6
- package/dist/types/models/SpacedRepetitionLearningPath.d.ts +0 -3
- package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +0 -5
- package/dist/types/models/StarMentor.d.ts +0 -7
- package/dist/types/models/Status6eeEnum.d.ts +0 -12
- package/dist/types/models/Step.d.ts +0 -9
- package/dist/types/models/StepStatusEnum.d.ts +0 -10
- package/dist/types/models/StudentChatMessage.d.ts +0 -4
- package/dist/types/models/StylesView.d.ts +0 -4
- package/dist/types/models/SubSection.d.ts +0 -9
- package/dist/types/models/SubSectionWithChildren.d.ts +0 -11
- package/dist/types/models/TagsView.d.ts +0 -5
- package/dist/types/models/TargetSystemEnum.d.ts +0 -8
- package/dist/types/models/TaskView.d.ts +0 -3
- package/dist/types/models/TeamsConfig.d.ts +0 -7
- package/dist/types/models/TeamsWebhook.d.ts +0 -17
- package/dist/types/models/TemplateMentor.d.ts +0 -9
- package/dist/types/models/TenantMentorTraces.d.ts +0 -6
- package/dist/types/models/ThemeEnum.d.ts +0 -8
- package/dist/types/models/TonesView.d.ts +0 -4
- package/dist/types/models/ToolResponse.d.ts +0 -9
- package/dist/types/models/TopicModel.d.ts +0 -3
- package/dist/types/models/TopicRecord.d.ts +0 -4
- package/dist/types/models/TopicStatistics.d.ts +0 -7
- package/dist/types/models/TopicStatisticsResponse.d.ts +0 -6
- package/dist/types/models/TopicSummaryView.d.ts +0 -4
- package/dist/types/models/TrainChatSessionDocumentView.d.ts +0 -6
- package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +0 -6
- package/dist/types/models/TrainDocumentViewRequest.d.ts +0 -42
- package/dist/types/models/TrainDocumentViewResponse.d.ts +0 -14
- package/dist/types/models/Training.d.ts +0 -41
- package/dist/types/models/TrainingCreate.d.ts +0 -31
- package/dist/types/models/TrainingStatusEnum.d.ts +0 -12
- package/dist/types/models/TrendEntry.d.ts +0 -4
- package/dist/types/models/TriggerRequest.d.ts +0 -5
- package/dist/types/models/TriggerResponse.d.ts +0 -6
- package/dist/types/models/TypeC42Enum.d.ts +0 -8
- package/dist/types/models/Unit.d.ts +0 -11
- package/dist/types/models/UnitWithChildren.d.ts +0 -13
- package/dist/types/models/UseMainCreds.d.ts +0 -3
- package/dist/types/models/UserAllChatMemoryView.d.ts +0 -7
- package/dist/types/models/UserCatalogItemMemoryView.d.ts +0 -14
- package/dist/types/models/UserChatByPeriod.d.ts +0 -4
- package/dist/types/models/UserChatFeedback.d.ts +0 -14
- package/dist/types/models/UserChatFeedbackCount.d.ts +0 -4
- package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +0 -6
- package/dist/types/models/UserChatMemoryStatusView.d.ts +0 -6
- package/dist/types/models/UserChatMemoryUpdateView.d.ts +0 -10
- package/dist/types/models/UserCountRecord.d.ts +0 -4
- package/dist/types/models/UserEdxMemory.d.ts +0 -15
- package/dist/types/models/UserMemoryContextRequest.d.ts +0 -13
- package/dist/types/models/UserMemoryContextResponse.d.ts +0 -12
- package/dist/types/models/UserMetric.d.ts +0 -4
- package/dist/types/models/UserMetricsResponse.d.ts +0 -7
- package/dist/types/models/UserSentimentCountView.d.ts +0 -4
- package/dist/types/models/UserTrendByPeriod.d.ts +0 -5
- package/dist/types/models/VectorResult.d.ts +0 -8
- package/dist/types/models/Voice.d.ts +0 -9
- package/dist/types/models/VoiceProviderEnum.d.ts +0 -10
- package/dist/types/models/WebResource.d.ts +0 -9
- package/dist/types/models/WebResourceCard.d.ts +0 -7
- package/dist/types/models/WebResourcesQuery.d.ts +0 -3
- package/dist/types/models/WebexConfig.d.ts +0 -10
- package/dist/types/models/WebexWebhook.d.ts +0 -4
- package/dist/types/models/WhatAppWebHook.d.ts +0 -3
- package/dist/types/models/WhatsappConfig.d.ts +0 -11
- package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
- package/dist/types/services/AiAccountService.d.ts +0 -294
- package/dist/types/services/AiAnalyticsService.d.ts +0 -1056
- package/dist/types/services/AiBotService.d.ts +0 -486
- package/dist/types/services/AiFinetuningService.d.ts +0 -162
- package/dist/types/services/AiIndexService.d.ts +0 -344
- package/dist/types/services/AiMarketingService.d.ts +0 -34
- package/dist/types/services/AiMentorService.d.ts +0 -4096
- package/dist/types/services/AiPromptService.d.ts +0 -879
- package/src/models/AIGeneratedImage.ts +0 -18
- package/src/models/APITokenCost.ts +0 -19
- package/src/models/AccessEnum.ts +0 -12
- package/src/models/AlignMentorBubbleEnum.ts +0 -12
- package/src/models/AnalyticsOverview.ts +0 -12
- package/src/models/Answer.ts +0 -16
- package/src/models/AssumedKnowledge.ts +0 -9
- package/src/models/AssumedKnowledgeLevel.ts +0 -9
- package/src/models/AudioToTextRequest.ts +0 -8
- package/src/models/AudioToTextResponse.ts +0 -8
- package/src/models/Bot.ts +0 -20
- package/src/models/BotCommand.ts +0 -11
- package/src/models/BotCreate.ts +0 -17
- package/src/models/CallAuthenticationRequest.ts +0 -18
- package/src/models/CallAuthenticationResponse.ts +0 -26
- package/src/models/ChatHistory.ts +0 -13
- package/src/models/ChatHistoryFilterData.ts +0 -14
- package/src/models/ChatHistoryFilterUser.ts +0 -10
- package/src/models/ChatHistoryItem.ts +0 -10
- package/src/models/ChatHistorySessionId.ts +0 -8
- package/src/models/ChatSessionRequest.ts +0 -15
- package/src/models/ChatSessionResponse.ts +0 -10
- package/src/models/CheckDocumentTrainingStatus.ts +0 -15
- package/src/models/ComponentBlock.ts +0 -14
- package/src/models/ComponentBlockTypeEnum.ts +0 -12
- package/src/models/ConversationMessage.ts +0 -16
- package/src/models/ConversationRating.ts +0 -11
- package/src/models/ConversationSummary.ts +0 -10
- package/src/models/ConversationVolume.ts +0 -9
- package/src/models/Conversations.ts +0 -33
- package/src/models/Cost.ts +0 -8
- package/src/models/CostPerTenant.ts +0 -11
- package/src/models/CourseCreationTask.ts +0 -36
- package/src/models/CourseCreationTaskFile.ts +0 -12
- package/src/models/CourseCreationTaskStatusEnum.ts +0 -20
- package/src/models/CredentialRequest.ts +0 -19
- package/src/models/CrontabSchedule.ts +0 -27
- package/src/models/CustomInstructionResponse.ts +0 -18
- package/src/models/DataSet.ts +0 -26
- package/src/models/DataSetCreate.ts +0 -17
- package/src/models/DataSetStatusEnum.ts +0 -16
- package/src/models/DateRange.ts +0 -9
- package/src/models/DiscordConfig.ts +0 -12
- package/src/models/DiscordUserConfig.ts +0 -15
- package/src/models/DiscordWebhook.ts +0 -11
- package/src/models/EdxCourse.ts +0 -16
- package/src/models/ElevenlabsCustomVoice.ts +0 -9
- package/src/models/ElevenlabsCustomVoiceResponse.ts +0 -13
- package/src/models/EmailPromptDetail.ts +0 -18
- package/src/models/EmailPromptList.ts +0 -16
- package/src/models/EmailPromptSummary.ts +0 -10
- package/src/models/FreeUsageCount.ts +0 -8
- package/src/models/FullCourse.ts +0 -18
- package/src/models/GreetingMethodEnum.ts +0 -12
- package/src/models/GuidedPromptsResponse.ts +0 -8
- package/src/models/HeygenMarketingVideoDetail.ts +0 -13
- package/src/models/HeygenMarketingVideoList.ts +0 -11
- package/src/models/IBLAIPlatformMeta.ts +0 -8
- package/src/models/IBLAIPlatformMetaRequest.ts +0 -11
- package/src/models/IBLAIPlatformMetaUpdateRequest.ts +0 -15
- package/src/models/InputQuestion.ts +0 -11
- package/src/models/IntegrationCredential.ts +0 -13
- package/src/models/IntialQuestionAnswer.ts +0 -8
- package/src/models/JobRun.ts +0 -16
- package/src/models/KindEnum.ts +0 -14
- package/src/models/LLMCredentialRequest.ts +0 -19
- package/src/models/LLMCredentialResponse.ts +0 -13
- package/src/models/LLMModelForTenant.ts +0 -11
- package/src/models/LLMQuestion.ts +0 -20
- package/src/models/LLMResponse.ts +0 -19
- package/src/models/LLMTracesListResponse.ts +0 -10
- package/src/models/LanguagesView.ts +0 -10
- package/src/models/LinkCourseRequest.ts +0 -8
- package/src/models/LinkCourseResponse.ts +0 -10
- package/src/models/MemoryComponentData.ts +0 -10
- package/src/models/MemoryComponentMemory.ts +0 -9
- package/src/models/MemoryComponentMemoryDetail.ts +0 -13
- package/src/models/MemoryComponentResponse.ts +0 -10
- package/src/models/MemoryProgress.ts +0 -13
- package/src/models/MemoryStatusRequestView.ts +0 -11
- package/src/models/MemoryStatusView.ts +0 -11
- package/src/models/Mentor.ts +0 -80
- package/src/models/MentorAudience.ts +0 -10
- package/src/models/MentorCategory.ts +0 -14
- package/src/models/MentorCategoryCreate.ts +0 -16
- package/src/models/MentorCategoryGroup.ts +0 -16
- package/src/models/MentorCategoryGroupCreate.ts +0 -16
- package/src/models/MentorCreate.ts +0 -79
- package/src/models/MentorCustomVoice.ts +0 -9
- package/src/models/MentorCustomVoiceResponse.ts +0 -9
- package/src/models/MentorData.ts +0 -12
- package/src/models/MentorDetailAnalytics.ts +0 -11
- package/src/models/MentorEval.ts +0 -16
- package/src/models/MentorEvalQuestion.ts +0 -10
- package/src/models/MentorEvalQuestionRequest.ts +0 -9
- package/src/models/MentorEvalReport.ts +0 -15
- package/src/models/MentorEvalRequest.ts +0 -13
- package/src/models/MentorFork.ts +0 -10
- package/src/models/MentorFromTemplateRequest.ts +0 -9
- package/src/models/MentorFromTemplateWithSettingRequest.ts +0 -47
- package/src/models/MentorMemorySettingsRequest.ts +0 -11
- package/src/models/MentorMemorySettingsResponse.ts +0 -11
- package/src/models/MentorMetadata.ts +0 -10
- package/src/models/MentorScenario.ts +0 -11
- package/src/models/MentorScenarioPrompt.ts +0 -10
- package/src/models/MentorSession.ts +0 -9
- package/src/models/MentorSettings.ts +0 -52
- package/src/models/MentorSettingsPublic.ts +0 -45
- package/src/models/MentorSettingsRequest.ts +0 -56
- package/src/models/MentorVisibilityEnum.ts +0 -14
- package/src/models/MentorWizard.ts +0 -9
- package/src/models/MessageStatistics.ts +0 -10
- package/src/models/MessageView.ts +0 -15
- package/src/models/MessageViewRequest.ts +0 -12
- package/src/models/MessageViewUpdatResponse.ts +0 -8
- package/src/models/Metadata.ts +0 -10
- package/src/models/MetricChange.ts +0 -9
- package/src/models/ModelCost.ts +0 -9
- package/src/models/ModerationLog.ts +0 -16
- package/src/models/NoChatMessagesFound.ts +0 -8
- package/src/models/NullEnum.ts +0 -7
- package/src/models/PageContent.ts +0 -11
- package/src/models/PaginatedAIGeneratedImageList.ts +0 -12
- package/src/models/PaginatedConversationsList.ts +0 -12
- package/src/models/PaginatedCourseCreationTaskFileList.ts +0 -12
- package/src/models/PaginatedCourseCreationTaskList.ts +0 -12
- package/src/models/PaginatedDataSetList.ts +0 -12
- package/src/models/PaginatedEdxCourseList.ts +0 -12
- package/src/models/PaginatedEmailPromptListList.ts +0 -12
- package/src/models/PaginatedHeygenMarketingVideoListList.ts +0 -12
- package/src/models/PaginatedJobRunList.ts +0 -12
- package/src/models/PaginatedMentorList.ts +0 -12
- package/src/models/PaginatedModerationLogList.ts +0 -12
- package/src/models/PaginatedPeriodicAgentList.ts +0 -12
- package/src/models/PaginatedPeriodicAgentLogList.ts +0 -12
- package/src/models/PaginatedPlayWrightScriptList.ts +0 -12
- package/src/models/PaginatedSectionList.ts +0 -12
- package/src/models/PaginatedSubSectionList.ts +0 -12
- package/src/models/PaginatedTopicStatisticsResponse.ts +0 -12
- package/src/models/PaginatedTrainingList.ts +0 -12
- package/src/models/PaginatedUnitList.ts +0 -12
- package/src/models/PaginatedUserEdxMemoryList.ts +0 -12
- package/src/models/PaginatedVoiceList.ts +0 -12
- package/src/models/PatchedBotCommand.ts +0 -11
- package/src/models/PatchedBotCreate.ts +0 -17
- package/src/models/PatchedConversations.ts +0 -33
- package/src/models/PatchedCourseCreationTaskFile.ts +0 -12
- package/src/models/PatchedCredentialRequest.ts +0 -19
- package/src/models/PatchedDataSet.ts +0 -26
- package/src/models/PatchedDiscordConfig.ts +0 -12
- package/src/models/PatchedDiscordUserConfig.ts +0 -15
- package/src/models/PatchedLLMCredentialRequest.ts +0 -19
- package/src/models/PatchedMentorCategoryGroupCreate.ts +0 -16
- package/src/models/PatchedMentorCreate.ts +0 -79
- package/src/models/PatchedPeriodicAgentCreate.ts +0 -46
- package/src/models/PatchedPlayWrightScript.ts +0 -17
- package/src/models/PatchedPrompt.ts +0 -27
- package/src/models/PatchedSection.ts +0 -14
- package/src/models/PatchedSlackConfig.ts +0 -13
- package/src/models/PatchedSlackUserConfig.ts +0 -22
- package/src/models/PatchedSubSection.ts +0 -14
- package/src/models/PatchedTeamsConfig.ts +0 -12
- package/src/models/PatchedTrainingCreate.ts +0 -36
- package/src/models/PatchedUnit.ts +0 -16
- package/src/models/PatchedWebexConfig.ts +0 -15
- package/src/models/PatchedWhatsappConfig.ts +0 -16
- package/src/models/PatchedWhatsappUserConfig.ts +0 -15
- package/src/models/PeriodicAgent.ts +0 -47
- package/src/models/PeriodicAgentCreate.ts +0 -46
- package/src/models/PeriodicAgentLog.ts +0 -16
- package/src/models/PeriodicAgentLogStatusEnum.ts +0 -14
- package/src/models/PeriodicTask.ts +0 -26
- package/src/models/PieChartData.ts +0 -10
- package/src/models/PieChartSegment.ts +0 -9
- package/src/models/PinnedMessageCreate.ts +0 -14
- package/src/models/PinnedMessageGet.ts +0 -12
- package/src/models/PinnedMessageRequest.ts +0 -11
- package/src/models/PlayWrightScript.ts +0 -17
- package/src/models/PredictiveAnalyticsRequest.ts +0 -9
- package/src/models/PredictiveAnalyticsResponse.ts +0 -9
- package/src/models/PreviousAgentStatusEnum.ts +0 -16
- package/src/models/Prompt.ts +0 -27
- package/src/models/PromptCategory.ts +0 -12
- package/src/models/PromptVisibilityEnum.ts +0 -14
- package/src/models/Provider05cEnum.ts +0 -18
- package/src/models/Provider63aEnum.ts +0 -10
- package/src/models/QuestionCardTag.ts +0 -13
- package/src/models/QuestionRequest.ts +0 -20
- package/src/models/QuestionResponse.ts +0 -15
- package/src/models/RatingEnum.ts +0 -12
- package/src/models/RatingRecord.ts +0 -9
- package/src/models/RecentlyAccessedMentor.ts +0 -13
- package/src/models/RecommendCourseBlock.ts +0 -8
- package/src/models/RecommendCourseResponse.ts +0 -8
- package/src/models/RelatedText.ts +0 -8
- package/src/models/RequestDataVariable.ts +0 -19
- package/src/models/ResourceScrappedData.ts +0 -18
- package/src/models/ResourceScrappedDataStatusEnum.ts +0 -16
- package/src/models/ResponseDataVariable.ts +0 -19
- package/src/models/RetreiverTrainViewRequest.ts +0 -15
- package/src/models/RetreiverTrainViewResponse.ts +0 -11
- package/src/models/RetrieveTask.ts +0 -8
- package/src/models/RetrieverDocumentEmbedding.ts +0 -22
- package/src/models/RetrieverDocumentEmbeddingRequest.ts +0 -35
- package/src/models/RetrieverRequestSearch.ts +0 -15
- package/src/models/RetrieverRequestSearchDocument.ts +0 -15
- package/src/models/RetrieverResponseSearch.ts +0 -12
- package/src/models/ReuestDataVariableList.ts +0 -9
- package/src/models/RunMentorEval.ts +0 -8
- package/src/models/ScanWebhookRequest.ts +0 -11
- package/src/models/ScanWebhookResponse.ts +0 -8
- package/src/models/Section.ts +0 -14
- package/src/models/SectionWithChildren.ts +0 -16
- package/src/models/SeedMentorsView.ts +0 -8
- package/src/models/SentimentSummary.ts +0 -9
- package/src/models/SessionBrowserScreenshot.ts +0 -13
- package/src/models/SessionDetail.ts +0 -11
- package/src/models/SessionMemoryStorage.ts +0 -11
- package/src/models/ShellLogs.ts +0 -8
- package/src/models/SlackConfig.ts +0 -13
- package/src/models/SlackUserConfig.ts +0 -22
- package/src/models/SlackWebhook.ts +0 -11
- package/src/models/SpacedRepetitionLearningPath.ts +0 -8
- package/src/models/SpacedRepetitionQuestionStats.ts +0 -10
- package/src/models/StarMentor.ts +0 -12
- package/src/models/Status6eeEnum.ts +0 -16
- package/src/models/Step.ts +0 -14
- package/src/models/StepStatusEnum.ts +0 -14
- package/src/models/StudentChatMessage.ts +0 -9
- package/src/models/StylesView.ts +0 -9
- package/src/models/SubSection.ts +0 -14
- package/src/models/SubSectionWithChildren.ts +0 -16
- package/src/models/TagsView.ts +0 -10
- package/src/models/TargetSystemEnum.ts +0 -12
- package/src/models/TaskView.ts +0 -8
- package/src/models/TeamsConfig.ts +0 -12
- package/src/models/TeamsWebhook.ts +0 -22
- package/src/models/TemplateMentor.ts +0 -14
- package/src/models/TenantMentorTraces.ts +0 -11
- package/src/models/ThemeEnum.ts +0 -12
- package/src/models/TonesView.ts +0 -9
- package/src/models/ToolResponse.ts +0 -14
- package/src/models/TopicModel.ts +0 -8
- package/src/models/TopicRecord.ts +0 -9
- package/src/models/TopicStatistics.ts +0 -12
- package/src/models/TopicStatisticsResponse.ts +0 -11
- package/src/models/TopicSummaryView.ts +0 -9
- package/src/models/TrainChatSessionDocumentView.ts +0 -11
- package/src/models/TrainChatSessionDocumentViewRequest.ts +0 -11
- package/src/models/TrainDocumentViewRequest.ts +0 -47
- package/src/models/TrainDocumentViewResponse.ts +0 -19
- package/src/models/Training.ts +0 -46
- package/src/models/TrainingCreate.ts +0 -36
- package/src/models/TrainingStatusEnum.ts +0 -16
- package/src/models/TrendEntry.ts +0 -9
- package/src/models/TriggerRequest.ts +0 -10
- package/src/models/TriggerResponse.ts +0 -11
- package/src/models/TypeC42Enum.ts +0 -12
- package/src/models/Unit.ts +0 -16
- package/src/models/UnitWithChildren.ts +0 -18
- package/src/models/UseMainCreds.ts +0 -8
- package/src/models/UserAllChatMemoryView.ts +0 -12
- package/src/models/UserCatalogItemMemoryView.ts +0 -19
- package/src/models/UserChatByPeriod.ts +0 -9
- package/src/models/UserChatFeedback.ts +0 -19
- package/src/models/UserChatFeedbackCount.ts +0 -9
- package/src/models/UserChatMemoryStatusRequestView.ts +0 -11
- package/src/models/UserChatMemoryStatusView.ts +0 -11
- package/src/models/UserChatMemoryUpdateView.ts +0 -15
- package/src/models/UserCountRecord.ts +0 -9
- package/src/models/UserEdxMemory.ts +0 -20
- package/src/models/UserMemoryContextRequest.ts +0 -18
- package/src/models/UserMemoryContextResponse.ts +0 -17
- package/src/models/UserMetric.ts +0 -9
- package/src/models/UserMetricsResponse.ts +0 -12
- package/src/models/UserSentimentCountView.ts +0 -9
- package/src/models/UserTrendByPeriod.ts +0 -10
- package/src/models/VectorResult.ts +0 -13
- package/src/models/Voice.ts +0 -14
- package/src/models/VoiceProviderEnum.ts +0 -14
- package/src/models/WebResource.ts +0 -14
- package/src/models/WebResourceCard.ts +0 -12
- package/src/models/WebResourcesQuery.ts +0 -8
- package/src/models/WebexConfig.ts +0 -15
- package/src/models/WebexWebhook.ts +0 -9
- package/src/models/WhatAppWebHook.ts +0 -8
- package/src/models/WhatsappConfig.ts +0 -16
- package/src/models/WhatsappUserConfig.ts +0 -15
- package/src/services/AiAccountService.ts +0 -479
- package/src/services/AiAnalyticsService.ts +0 -1923
- package/src/services/AiBotService.ts +0 -1174
- package/src/services/AiFinetuningService.ts +0 -402
- package/src/services/AiIndexService.ts +0 -598
- package/src/services/AiMarketingService.ts +0 -87
- package/src/services/AiMentorService.ts +0 -7678
- package/src/services/AiPromptService.ts +0 -1676
|
@@ -6,55 +6,6 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
6
6
|
import { OpenAPI } from '../core/OpenAPI';
|
|
7
7
|
import { request as __request } from '../core/request';
|
|
8
8
|
export class SearchService {
|
|
9
|
-
/**
|
|
10
|
-
* Legacy endpoint for backward compatibility with older mentor search implementations.
|
|
11
|
-
*
|
|
12
|
-
* This endpoint provides the same functionality as MentorSearchView but supports
|
|
13
|
-
* older pagination parameters and only returns publicly available mentors
|
|
14
|
-
* (VIEWABLE_BY_ANYONE).
|
|
15
|
-
*
|
|
16
|
-
* Query Parameters:
|
|
17
|
-
* # Identification parameters (for detail view)
|
|
18
|
-
* id (int, optional): Retrieve a specific mentor by ID
|
|
19
|
-
* unique_id (uuid, optional): Retrieve a specific mentor by UUID
|
|
20
|
-
*
|
|
21
|
-
* # Legacy pagination parameters
|
|
22
|
-
* page (int, optional): Page number (1-based, used with page_size)
|
|
23
|
-
* page_size (int, optional): Number of results per page
|
|
24
|
-
*
|
|
25
|
-
* # Standard pagination parameters (also supported)
|
|
26
|
-
* limit (int, optional): Number of results per page
|
|
27
|
-
* offset (int, optional): Starting position for pagination
|
|
28
|
-
*
|
|
29
|
-
* # Other parameters
|
|
30
|
-
* Same as MentorSearchView
|
|
31
|
-
*
|
|
32
|
-
* # Special parameters
|
|
33
|
-
* filter_facet (any, optional): If present, return only facets without results
|
|
34
|
-
* created_by (str, optional): Filter mentors created by specific user
|
|
35
|
-
*
|
|
36
|
-
* Returns:
|
|
37
|
-
* Same format as MentorSearchView, but only includes publicly available mentors.
|
|
38
|
-
*
|
|
39
|
-
* Error Responses:
|
|
40
|
-
* 400 Bad Request: If the request parameters are invalid
|
|
41
|
-
* 403 Forbidden: If the requested mentor exists but is not publicly available
|
|
42
|
-
* 404 Not Found: If the requested mentor doesn't exist
|
|
43
|
-
* 500 Internal Server Error: If an unexpected error occurs
|
|
44
|
-
*
|
|
45
|
-
* Notes:
|
|
46
|
-
* - This endpoint is maintained for backward compatibility
|
|
47
|
-
* - Only returns mentors with visibility set to VIEWABLE_BY_ANYONE
|
|
48
|
-
* - Supports both old-style (page/page_size) and new-style (limit/offset) pagination
|
|
49
|
-
* @returns any No response body
|
|
50
|
-
* @throws ApiError
|
|
51
|
-
*/
|
|
52
|
-
public static searchAiSearchRetrieve(): CancelablePromise<any> {
|
|
53
|
-
return __request(OpenAPI, {
|
|
54
|
-
method: 'GET',
|
|
55
|
-
url: '/api/search/ai-search/',
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
9
|
/**
|
|
59
10
|
* Search and filter content across the learning catalog.
|
|
60
11
|
*
|
|
@@ -230,575 +181,129 @@ export class SearchService {
|
|
|
230
181
|
});
|
|
231
182
|
}
|
|
232
183
|
/**
|
|
233
|
-
*
|
|
184
|
+
* Determine whether to serve a detail view or a list view.
|
|
185
|
+
* If any detail-identifying parameters are present (course_id, program_id, etc.)
|
|
186
|
+
* the detail view is returned; otherwise the aggregated list view is returned.
|
|
187
|
+
* @param username
|
|
188
|
+
* @returns any No response body
|
|
189
|
+
* @throws ApiError
|
|
190
|
+
*/
|
|
191
|
+
public static searchPersonalizedCatalogRetrieve(
|
|
192
|
+
username: string,
|
|
193
|
+
): CancelablePromise<any> {
|
|
194
|
+
return __request(OpenAPI, {
|
|
195
|
+
method: 'GET',
|
|
196
|
+
url: '/api/search/personalized-catalog/{username}/',
|
|
197
|
+
path: {
|
|
198
|
+
'username': username,
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Search and filter users within a specific organization/tenant.
|
|
234
204
|
*
|
|
235
|
-
* This endpoint provides a
|
|
236
|
-
* with support for filtering, pagination, and
|
|
205
|
+
* This endpoint provides a search interface for discovering users within an organization,
|
|
206
|
+
* with support for filtering by departments, pagination, and faceted filtering.
|
|
207
|
+
*
|
|
208
|
+
* Path Parameters:
|
|
209
|
+
* org (str): The organization/tenant identifier
|
|
210
|
+
* username (str): The username of the user making the request
|
|
237
211
|
*
|
|
238
212
|
* Query Parameters:
|
|
239
|
-
* #
|
|
240
|
-
*
|
|
241
|
-
*
|
|
213
|
+
* # Search parameters
|
|
214
|
+
* query (str, optional): Search term to filter users by name, username, or email
|
|
215
|
+
*
|
|
216
|
+
* # Department filtering
|
|
217
|
+
* department_mode (bool, optional): Enable department-based filtering (default: false)
|
|
218
|
+
* user_department (bool, optional): Legacy parameter for department_mode (default: false)
|
|
219
|
+
* department (list, optional): Filter by specific departments
|
|
242
220
|
*
|
|
243
|
-
* #
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* category (list, optional): Filter by mentor category
|
|
249
|
-
* tags (list, optional): Filter by tags
|
|
250
|
-
* created_by (str, optional): Filter mentors created by specific user
|
|
221
|
+
* # Additional filters
|
|
222
|
+
* role (list, optional): Filter by user role
|
|
223
|
+
* status (list, optional): Filter by user status (active, inactive)
|
|
224
|
+
* joined_date (list, optional): Filter by join date range
|
|
225
|
+
* last_login (list, optional): Filter by last login date range
|
|
251
226
|
*
|
|
252
|
-
* #
|
|
253
|
-
*
|
|
254
|
-
* order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
|
|
255
|
-
* limit (int, optional): Number of results per page (default: 12, max: 100)
|
|
227
|
+
* # Pagination
|
|
228
|
+
* limit (int, optional): Number of results per page (default: 10)
|
|
256
229
|
* offset (int, optional): Starting position for pagination
|
|
257
230
|
*
|
|
258
231
|
* Returns:
|
|
259
|
-
*
|
|
260
|
-
*
|
|
232
|
+
* A JSON response containing:
|
|
233
|
+
* ```
|
|
261
234
|
* {
|
|
262
|
-
* "
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
* "
|
|
274
|
-
* "
|
|
275
|
-
* "
|
|
276
|
-
*
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
* "platform": {
|
|
282
|
-
* "id": 1,
|
|
283
|
-
* "name": "Example University",
|
|
284
|
-
* "key": "example-university"
|
|
235
|
+
* "results": [
|
|
236
|
+
* {
|
|
237
|
+
* "id": 123,
|
|
238
|
+
* "username": "john.doe",
|
|
239
|
+
* "email": "john.doe@example.com",
|
|
240
|
+
* "first_name": "John",
|
|
241
|
+
* "last_name": "Doe",
|
|
242
|
+
* "full_name": "John Doe",
|
|
243
|
+
* "profile_image": "https://example.com/profiles/john-doe.jpg",
|
|
244
|
+
* "role": "Student",
|
|
245
|
+
* "departments": ["Computer Science", "Data Science"],
|
|
246
|
+
* "status": "active",
|
|
247
|
+
* "joined_date": "2023-01-15T12:00:00Z",
|
|
248
|
+
* "last_login": "2023-06-20T15:30:00Z",
|
|
249
|
+
* "metadata": {
|
|
250
|
+
* "location": "New York",
|
|
251
|
+
* "title": "Software Engineer",
|
|
252
|
+
* "bio": "Experienced software engineer with a passion for education"
|
|
253
|
+
* }
|
|
285
254
|
* },
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
*
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* "
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
* "
|
|
307
|
-
* "
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
* }
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
* - Results are cached for performance
|
|
342
|
-
* - Public mentors are visible to all users
|
|
343
|
-
* - Private mentors are only visible to authorized users
|
|
344
|
-
* @returns any No response body
|
|
345
|
-
* @throws ApiError
|
|
346
|
-
*/
|
|
347
|
-
public static searchMentorsRetrieve(): CancelablePromise<any> {
|
|
348
|
-
return __request(OpenAPI, {
|
|
349
|
-
method: 'GET',
|
|
350
|
-
url: '/api/search/mentors/',
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Search and filter documents associated with a specific mentor.
|
|
355
|
-
*
|
|
356
|
-
* This endpoint allows searching and filtering documents that are linked to a
|
|
357
|
-
* particular mentor, with support for pagination, sorting, and faceted filtering.
|
|
358
|
-
*
|
|
359
|
-
* Path Parameters:
|
|
360
|
-
* mentor_unique_id (uuid): The unique identifier of the mentor
|
|
361
|
-
*
|
|
362
|
-
* Query Parameters:
|
|
363
|
-
* query (str, optional): Search term to filter documents by name or content
|
|
364
|
-
* document_type (str, optional): Filter by document type (e.g., 'pdf', 'text')
|
|
365
|
-
* access (str, optional): Filter by access level (e.g., 'public', 'private')
|
|
366
|
-
* training_status (str, optional): Filter by training status (e.g., 'trained', 'pending')
|
|
367
|
-
* platform_key (str, optional): Filter by platform key
|
|
368
|
-
* order_by (str, optional): Field to sort results by ('date_created', 'last_modified', 'document_name')
|
|
369
|
-
* order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
|
|
370
|
-
* limit (int, optional): Number of results per page (default: 12, max: 100)
|
|
371
|
-
* offset (int, optional): Starting position for pagination
|
|
372
|
-
*
|
|
373
|
-
* Returns:
|
|
374
|
-
* A JSON response containing:
|
|
375
|
-
* {
|
|
376
|
-
* "results": [
|
|
377
|
-
* {
|
|
378
|
-
* "id": 789,
|
|
379
|
-
* "document_name": "Introduction to Algorithms.pdf",
|
|
380
|
-
* "document_type": "pdf",
|
|
381
|
-
* "access": "public",
|
|
382
|
-
* "training_status": "trained",
|
|
383
|
-
* "date_created": "2023-03-15T10:30:00Z",
|
|
384
|
-
* "last_modified": "2023-04-20T14:45:00Z",
|
|
385
|
-
* "url": "https://example.com/documents/intro-algorithms.pdf",
|
|
386
|
-
* "metadata": {
|
|
387
|
-
* "page_count": 45,
|
|
388
|
-
* "author": "John Smith",
|
|
389
|
-
* "keywords": ["algorithms", "computer science", "data structures"],
|
|
390
|
-
* "description": "Comprehensive introduction to fundamental algorithms"
|
|
391
|
-
* }
|
|
392
|
-
* },
|
|
393
|
-
* // Additional document objects...
|
|
394
|
-
* ],
|
|
395
|
-
* "count": 25,
|
|
396
|
-
* "next": "https://api.example.com/api/search/mentors/550e8400-e29b-41d4-a716-446655440000/documents/?limit=12&offset=12",
|
|
397
|
-
* "previous": null,
|
|
398
|
-
* "current_page": 1,
|
|
399
|
-
* "total_pages": 3,
|
|
400
|
-
* "facets": {
|
|
401
|
-
* "document_type": [
|
|
402
|
-
* {"key": "pdf", "doc_count": 15},
|
|
403
|
-
* {"key": "text", "doc_count": 5},
|
|
404
|
-
* {"key": "docx", "doc_count": 5}
|
|
405
|
-
* ],
|
|
406
|
-
* "access": [
|
|
407
|
-
* {"key": "public", "doc_count": 20},
|
|
408
|
-
* {"key": "private", "doc_count": 5}
|
|
409
|
-
* ],
|
|
410
|
-
* "training_status": [
|
|
411
|
-
* {"key": "trained", "doc_count": 18},
|
|
412
|
-
* {"key": "pending", "doc_count": 5},
|
|
413
|
-
* {"key": "failed", "doc_count": 2}
|
|
414
|
-
* ]
|
|
415
|
-
* }
|
|
416
|
-
* }
|
|
417
|
-
*
|
|
418
|
-
* Error Responses:
|
|
419
|
-
* 400 Bad Request: If the request parameters are invalid
|
|
420
|
-
* 404 Not Found: If the mentor doesn't exist
|
|
421
|
-
* 500 Internal Server Error: If an unexpected error occurs during processing
|
|
422
|
-
*
|
|
423
|
-
* Access Control:
|
|
424
|
-
* - Requires platform membership
|
|
425
|
-
* - Only documents associated with the specified mentor are returned
|
|
426
|
-
* - Access level filtering respects user permissions
|
|
427
|
-
* @param mentorUniqueId
|
|
428
|
-
* @returns any No response body
|
|
429
|
-
* @throws ApiError
|
|
430
|
-
*/
|
|
431
|
-
public static searchMentorsDocumentsRetrieve(
|
|
432
|
-
mentorUniqueId: string,
|
|
433
|
-
): CancelablePromise<any> {
|
|
434
|
-
return __request(OpenAPI, {
|
|
435
|
-
method: 'GET',
|
|
436
|
-
url: '/api/search/mentors/{mentor_unique_id}/documents/',
|
|
437
|
-
path: {
|
|
438
|
-
'mentor_unique_id': mentorUniqueId,
|
|
439
|
-
},
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Search and filter AI mentors for a specific user within a tenant.
|
|
444
|
-
*
|
|
445
|
-
* This endpoint extends the base mentor search functionality but filters results
|
|
446
|
-
* to only show mentors that are available to a specific user within a specific
|
|
447
|
-
* organization/tenant.
|
|
448
|
-
*
|
|
449
|
-
* Path Parameters:
|
|
450
|
-
* org (str): The organization/tenant identifier
|
|
451
|
-
* username (str): The username to filter mentors for
|
|
452
|
-
*
|
|
453
|
-
* Query Parameters:
|
|
454
|
-
* Same as MentorSearchView, plus:
|
|
455
|
-
*
|
|
456
|
-
* # Identification parameters (for detail view)
|
|
457
|
-
* id (int, optional): Retrieve a specific mentor by ID
|
|
458
|
-
* unique_id (uuid, optional): Retrieve a specific mentor by UUID
|
|
459
|
-
* created_by (str, optional): Filter mentors created by specific user
|
|
460
|
-
*
|
|
461
|
-
* Returns:
|
|
462
|
-
* Same format as MentorSearchView, but filtered to only include mentors
|
|
463
|
-
* that the specified user has access to within the specified organization.
|
|
464
|
-
*
|
|
465
|
-
* Error Responses:
|
|
466
|
-
* 400 Bad Request: If the request parameters are invalid
|
|
467
|
-
* 404 Not Found: If the requested mentor doesn't exist or user doesn't have access
|
|
468
|
-
* 500 Internal Server Error: If an unexpected error occurs
|
|
469
|
-
*
|
|
470
|
-
* Access Control:
|
|
471
|
-
* - Requires platform membership (though currently not enforced)
|
|
472
|
-
* - Results are filtered based on user's permissions within the organization
|
|
473
|
-
* @param org
|
|
474
|
-
* @param username
|
|
475
|
-
* @returns any No response body
|
|
476
|
-
* @throws ApiError
|
|
477
|
-
*/
|
|
478
|
-
public static searchOrgsUsersMentorsRetrieve(
|
|
479
|
-
org: string,
|
|
480
|
-
username: string,
|
|
481
|
-
): CancelablePromise<any> {
|
|
482
|
-
return __request(OpenAPI, {
|
|
483
|
-
method: 'GET',
|
|
484
|
-
url: '/api/search/orgs/{org}/users/{username}/mentors/',
|
|
485
|
-
path: {
|
|
486
|
-
'org': org,
|
|
487
|
-
'username': username,
|
|
488
|
-
},
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
/**
|
|
492
|
-
* Search and filter AI prompts for a specific user within a tenant.
|
|
493
|
-
*
|
|
494
|
-
* This endpoint extends the base prompt search functionality but filters results
|
|
495
|
-
* to only show prompts that are available to a specific user within a specific
|
|
496
|
-
* organization/tenant.
|
|
497
|
-
*
|
|
498
|
-
* Path Parameters:
|
|
499
|
-
* org (str): The organization/tenant identifier
|
|
500
|
-
* username (str): The username to filter prompts for
|
|
501
|
-
*
|
|
502
|
-
* Query Parameters:
|
|
503
|
-
* Same as PromptSearchView, plus:
|
|
504
|
-
*
|
|
505
|
-
* # Identification parameters (for detail view)
|
|
506
|
-
* id (int, optional): Retrieve a specific prompt by ID
|
|
507
|
-
*
|
|
508
|
-
* Returns:
|
|
509
|
-
* Same format as PromptSearchView, but filtered to only include prompts
|
|
510
|
-
* that the specified user has access to within the specified organization.
|
|
511
|
-
*
|
|
512
|
-
* Error Responses:
|
|
513
|
-
* 400 Bad Request: If the request parameters are invalid
|
|
514
|
-
* 403 Forbidden: If the requested prompt exists but the user doesn't have access
|
|
515
|
-
* 404 Not Found: If the requested prompt doesn't exist
|
|
516
|
-
* 500 Internal Server Error: If an unexpected error occurs
|
|
517
|
-
*
|
|
518
|
-
* Access Control:
|
|
519
|
-
* - Results are filtered based on user's permissions within the organization
|
|
520
|
-
* - Private prompts are only visible to authorized users
|
|
521
|
-
* @param org
|
|
522
|
-
* @param username
|
|
523
|
-
* @returns any No response body
|
|
524
|
-
* @throws ApiError
|
|
525
|
-
*/
|
|
526
|
-
public static searchOrgsUsersPromptsRetrieve(
|
|
527
|
-
org: string,
|
|
528
|
-
username: string,
|
|
529
|
-
): CancelablePromise<any> {
|
|
530
|
-
return __request(OpenAPI, {
|
|
531
|
-
method: 'GET',
|
|
532
|
-
url: '/api/search/orgs/{org}/users/{username}/prompts/',
|
|
533
|
-
path: {
|
|
534
|
-
'org': org,
|
|
535
|
-
'username': username,
|
|
536
|
-
},
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Determine whether to serve a detail view or a list view.
|
|
541
|
-
* @param org
|
|
542
|
-
* @param username
|
|
543
|
-
* @returns any No response body
|
|
544
|
-
* @throws ApiError
|
|
545
|
-
*/
|
|
546
|
-
public static searchOrgsUsersRecommendedRetrieve(
|
|
547
|
-
org: string,
|
|
548
|
-
username: string,
|
|
549
|
-
): CancelablePromise<any> {
|
|
550
|
-
return __request(OpenAPI, {
|
|
551
|
-
method: 'GET',
|
|
552
|
-
url: '/api/search/orgs/{org}/users/{username}/recommended/',
|
|
553
|
-
path: {
|
|
554
|
-
'org': org,
|
|
555
|
-
'username': username,
|
|
556
|
-
},
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* Determine whether to serve a detail view or a list view.
|
|
561
|
-
* If any detail-identifying parameters are present (course_id, program_id, etc.)
|
|
562
|
-
* the detail view is returned; otherwise the aggregated list view is returned.
|
|
563
|
-
* @param username
|
|
564
|
-
* @returns any No response body
|
|
565
|
-
* @throws ApiError
|
|
566
|
-
*/
|
|
567
|
-
public static searchPersonalizedCatalogRetrieve(
|
|
568
|
-
username: string,
|
|
569
|
-
): CancelablePromise<any> {
|
|
570
|
-
return __request(OpenAPI, {
|
|
571
|
-
method: 'GET',
|
|
572
|
-
url: '/api/search/personalized-catalog/{username}/',
|
|
573
|
-
path: {
|
|
574
|
-
'username': username,
|
|
575
|
-
},
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Search and filter AI prompts across the platform.
|
|
580
|
-
*
|
|
581
|
-
* This endpoint provides a search interface for discovering AI prompts
|
|
582
|
-
* with support for filtering, pagination, and detailed prompt information.
|
|
583
|
-
*
|
|
584
|
-
* Query Parameters:
|
|
585
|
-
* # Identification parameters (for detail view)
|
|
586
|
-
* id (int, optional): Retrieve a specific prompt by ID
|
|
587
|
-
*
|
|
588
|
-
* # Search and filtering parameters
|
|
589
|
-
* query (str, optional): Search term to filter prompts by name or content
|
|
590
|
-
* category (str, optional): Filter by prompt category
|
|
591
|
-
* language (str, optional): Filter by prompt language
|
|
592
|
-
* style (str, optional): Filter by writing style
|
|
593
|
-
* tone (str, optional): Filter by tone
|
|
594
|
-
* tenant (str, optional): Filter by tenant/organization
|
|
595
|
-
* mentor (str, optional): Filter by associated mentor (UUID)
|
|
596
|
-
*
|
|
597
|
-
* # Sorting and pagination
|
|
598
|
-
* sort_by (str, optional): Field to sort results by
|
|
599
|
-
* order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
|
|
600
|
-
* alphabetical (bool, optional): Sort alphabetically by name (default: false)
|
|
601
|
-
* limit (int, optional): Number of results per page (default: 10)
|
|
602
|
-
* offset (int, optional): Starting position for pagination
|
|
603
|
-
*
|
|
604
|
-
* # Special parameters
|
|
605
|
-
* filter_facet (any, optional): If present, return only facets without results
|
|
606
|
-
*
|
|
607
|
-
* Returns:
|
|
608
|
-
* For detail view (when id is provided):
|
|
609
|
-
* A JSON response containing a single prompt's details:
|
|
610
|
-
* {
|
|
611
|
-
* "id": 456,
|
|
612
|
-
* "name": "Essay Writing Guide",
|
|
613
|
-
* "content": "Write a well-structured essay on the following topic: {{topic}}...",
|
|
614
|
-
* "category": "Academic Writing",
|
|
615
|
-
* "language": "English",
|
|
616
|
-
* "style": "Formal",
|
|
617
|
-
* "tone": "Professional",
|
|
618
|
-
* "mentor": {
|
|
619
|
-
* "id": 123,
|
|
620
|
-
* "unique_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
621
|
-
* "name": "Professor Smith"
|
|
622
|
-
* },
|
|
623
|
-
* "platform": {
|
|
624
|
-
* "id": 1,
|
|
625
|
-
* "name": "Example University",
|
|
626
|
-
* "key": "example-university"
|
|
627
|
-
* },
|
|
628
|
-
* "created_at": "2023-02-10T09:15:00Z",
|
|
629
|
-
* "updated_at": "2023-05-05T14:20:00Z",
|
|
630
|
-
* "visibility": "public",
|
|
631
|
-
* "variables": ["topic", "length", "style"]
|
|
632
|
-
* }
|
|
633
|
-
*
|
|
634
|
-
* For list view:
|
|
635
|
-
* A JSON response containing:
|
|
636
|
-
* {
|
|
637
|
-
* "results": [
|
|
638
|
-
* {
|
|
639
|
-
* "id": 456,
|
|
640
|
-
* "name": "Essay Writing Guide",
|
|
641
|
-
* "content": "Write a well-structured essay on the following topic: {{topic}}...",
|
|
642
|
-
* "category": "Academic Writing",
|
|
643
|
-
* "language": "English",
|
|
644
|
-
* "style": "Formal",
|
|
645
|
-
* "tone": "Professional",
|
|
646
|
-
* "mentor": {"id": 123, "name": "Professor Smith"},
|
|
647
|
-
* "created_at": "2023-02-10T09:15:00Z",
|
|
648
|
-
* "updated_at": "2023-05-05T14:20:00Z"
|
|
649
|
-
* },
|
|
650
|
-
* // Additional prompt objects...
|
|
651
|
-
* ],
|
|
652
|
-
* "count": 30,
|
|
653
|
-
* "next": "?limit=10&offset=10",
|
|
654
|
-
* "previous": null,
|
|
655
|
-
* "current_page": 1,
|
|
656
|
-
* "num_pages": 3,
|
|
657
|
-
* "facets": {
|
|
658
|
-
* "category": [
|
|
659
|
-
* {"key": "Academic Writing", "doc_count": 15},
|
|
660
|
-
* {"key": "Creative Writing", "doc_count": 10},
|
|
661
|
-
* {"key": "Technical Documentation", "doc_count": 5}
|
|
662
|
-
* ],
|
|
663
|
-
* "language": [
|
|
664
|
-
* {"key": "English", "doc_count": 25},
|
|
665
|
-
* {"key": "Spanish", "doc_count": 5}
|
|
666
|
-
* ],
|
|
667
|
-
* "style": [
|
|
668
|
-
* {"key": "Formal", "doc_count": 20},
|
|
669
|
-
* {"key": "Casual", "doc_count": 10}
|
|
670
|
-
* ],
|
|
671
|
-
* "tone": [
|
|
672
|
-
* {"key": "Professional", "doc_count": 15},
|
|
673
|
-
* {"key": "Friendly", "doc_count": 10},
|
|
674
|
-
* {"key": "Technical", "doc_count": 5}
|
|
675
|
-
* ]
|
|
676
|
-
* }
|
|
677
|
-
* }
|
|
678
|
-
*
|
|
679
|
-
* Error Responses:
|
|
680
|
-
* 400 Bad Request: If the request parameters are invalid
|
|
681
|
-
* 403 Forbidden: If the requested prompt exists but is not publicly available
|
|
682
|
-
* 404 Not Found: If the requested prompt doesn't exist
|
|
683
|
-
* 500 Internal Server Error: If an unexpected error occurs
|
|
684
|
-
*
|
|
685
|
-
* Notes:
|
|
686
|
-
* - Only publicly available prompts are returned by default
|
|
687
|
-
* - When filtering by mentor, the mentor ID must be a valid UUID
|
|
688
|
-
* @returns any No response body
|
|
689
|
-
* @throws ApiError
|
|
690
|
-
*/
|
|
691
|
-
public static searchPromptsRetrieve(): CancelablePromise<any> {
|
|
692
|
-
return __request(OpenAPI, {
|
|
693
|
-
method: 'GET',
|
|
694
|
-
url: '/api/search/prompts/',
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Search and filter users within a specific organization/tenant.
|
|
699
|
-
*
|
|
700
|
-
* This endpoint provides a search interface for discovering users within an organization,
|
|
701
|
-
* with support for filtering by departments, pagination, and faceted filtering.
|
|
702
|
-
*
|
|
703
|
-
* Path Parameters:
|
|
704
|
-
* org (str): The organization/tenant identifier
|
|
705
|
-
* username (str): The username of the user making the request
|
|
706
|
-
*
|
|
707
|
-
* Query Parameters:
|
|
708
|
-
* # Search parameters
|
|
709
|
-
* query (str, optional): Search term to filter users by name, username, or email
|
|
710
|
-
*
|
|
711
|
-
* # Department filtering
|
|
712
|
-
* department_mode (bool, optional): Enable department-based filtering (default: false)
|
|
713
|
-
* user_department (bool, optional): Legacy parameter for department_mode (default: false)
|
|
714
|
-
* department (list, optional): Filter by specific departments
|
|
715
|
-
*
|
|
716
|
-
* # Additional filters
|
|
717
|
-
* role (list, optional): Filter by user role
|
|
718
|
-
* status (list, optional): Filter by user status (active, inactive)
|
|
719
|
-
* joined_date (list, optional): Filter by join date range
|
|
720
|
-
* last_login (list, optional): Filter by last login date range
|
|
721
|
-
*
|
|
722
|
-
* # Pagination
|
|
723
|
-
* limit (int, optional): Number of results per page (default: 10)
|
|
724
|
-
* offset (int, optional): Starting position for pagination
|
|
725
|
-
*
|
|
726
|
-
* Returns:
|
|
727
|
-
* A JSON response containing:
|
|
728
|
-
* ```
|
|
729
|
-
* {
|
|
730
|
-
* "results": [
|
|
731
|
-
* {
|
|
732
|
-
* "id": 123,
|
|
733
|
-
* "username": "john.doe",
|
|
734
|
-
* "email": "john.doe@example.com",
|
|
735
|
-
* "first_name": "John",
|
|
736
|
-
* "last_name": "Doe",
|
|
737
|
-
* "full_name": "John Doe",
|
|
738
|
-
* "profile_image": "https://example.com/profiles/john-doe.jpg",
|
|
739
|
-
* "role": "Student",
|
|
740
|
-
* "departments": ["Computer Science", "Data Science"],
|
|
741
|
-
* "status": "active",
|
|
742
|
-
* "joined_date": "2023-01-15T12:00:00Z",
|
|
743
|
-
* "last_login": "2023-06-20T15:30:00Z",
|
|
744
|
-
* "metadata": {
|
|
745
|
-
* "location": "New York",
|
|
746
|
-
* "title": "Software Engineer",
|
|
747
|
-
* "bio": "Experienced software engineer with a passion for education"
|
|
748
|
-
* }
|
|
749
|
-
* },
|
|
750
|
-
* // Additional user objects...
|
|
751
|
-
* ],
|
|
752
|
-
* "count": 50,
|
|
753
|
-
* "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
|
|
754
|
-
* "previous": null,
|
|
755
|
-
* "current_page": 1,
|
|
756
|
-
* "total_pages": 5,
|
|
757
|
-
* "facets": {
|
|
758
|
-
* "role": [
|
|
759
|
-
* {"key": "Student", "doc_count": 30},
|
|
760
|
-
* {"key": "Instructor", "doc_count": 15},
|
|
761
|
-
* {"key": "Admin", "doc_count": 5}
|
|
762
|
-
* ],
|
|
763
|
-
* "department": [
|
|
764
|
-
* {"key": "Computer Science", "doc_count": 20},
|
|
765
|
-
* {"key": "Data Science", "doc_count": 15},
|
|
766
|
-
* {"key": "Business", "doc_count": 10},
|
|
767
|
-
* {"key": "Engineering", "doc_count": 5}
|
|
768
|
-
* ],
|
|
769
|
-
* "status": [
|
|
770
|
-
* {"key": "active", "doc_count": 45},
|
|
771
|
-
* {"key": "inactive", "doc_count": 5}
|
|
772
|
-
* ]
|
|
773
|
-
* }
|
|
774
|
-
* }
|
|
775
|
-
* ```
|
|
776
|
-
* Error Responses:
|
|
777
|
-
* 400 Bad Request: If the request parameters are invalid
|
|
778
|
-
* 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
|
|
779
|
-
* 404 Not Found: If the user or organization doesn't exist
|
|
780
|
-
* 500 Internal Server Error: If an unexpected error occurs
|
|
781
|
-
*
|
|
782
|
-
* Access Control:
|
|
783
|
-
* - The requesting user must have an active account in the specified organization
|
|
784
|
-
* - When department_mode is enabled, the user must be an admin of at least one department
|
|
785
|
-
* - Department filtering restricts results to users in departments where the requesting user is an admin
|
|
786
|
-
* @param org
|
|
787
|
-
* @param username
|
|
788
|
-
* @returns any No response body
|
|
789
|
-
* @throws ApiError
|
|
790
|
-
*/
|
|
791
|
-
public static searchUsersOrgsUsersRetrieve(
|
|
792
|
-
org: string,
|
|
793
|
-
username: string,
|
|
794
|
-
): CancelablePromise<any> {
|
|
795
|
-
return __request(OpenAPI, {
|
|
796
|
-
method: 'GET',
|
|
797
|
-
url: '/api/search/users/orgs/{org}/users/{username}/',
|
|
798
|
-
path: {
|
|
799
|
-
'org': org,
|
|
800
|
-
'username': username,
|
|
801
|
-
},
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
}
|
|
255
|
+
* // Additional user objects...
|
|
256
|
+
* ],
|
|
257
|
+
* "count": 50,
|
|
258
|
+
* "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
|
|
259
|
+
* "previous": null,
|
|
260
|
+
* "current_page": 1,
|
|
261
|
+
* "total_pages": 5,
|
|
262
|
+
* "facets": {
|
|
263
|
+
* "role": [
|
|
264
|
+
* {"key": "Student", "doc_count": 30},
|
|
265
|
+
* {"key": "Instructor", "doc_count": 15},
|
|
266
|
+
* {"key": "Admin", "doc_count": 5}
|
|
267
|
+
* ],
|
|
268
|
+
* "department": [
|
|
269
|
+
* {"key": "Computer Science", "doc_count": 20},
|
|
270
|
+
* {"key": "Data Science", "doc_count": 15},
|
|
271
|
+
* {"key": "Business", "doc_count": 10},
|
|
272
|
+
* {"key": "Engineering", "doc_count": 5}
|
|
273
|
+
* ],
|
|
274
|
+
* "status": [
|
|
275
|
+
* {"key": "active", "doc_count": 45},
|
|
276
|
+
* {"key": "inactive", "doc_count": 5}
|
|
277
|
+
* ]
|
|
278
|
+
* }
|
|
279
|
+
* }
|
|
280
|
+
* ```
|
|
281
|
+
* Error Responses:
|
|
282
|
+
* 400 Bad Request: If the request parameters are invalid
|
|
283
|
+
* 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
|
|
284
|
+
* 404 Not Found: If the user or organization doesn't exist
|
|
285
|
+
* 500 Internal Server Error: If an unexpected error occurs
|
|
286
|
+
*
|
|
287
|
+
* Access Control:
|
|
288
|
+
* - The requesting user must have an active account in the specified organization
|
|
289
|
+
* - When department_mode is enabled, the user must be an admin of at least one department
|
|
290
|
+
* - Department filtering restricts results to users in departments where the requesting user is an admin
|
|
291
|
+
* @param org
|
|
292
|
+
* @param username
|
|
293
|
+
* @returns any No response body
|
|
294
|
+
* @throws ApiError
|
|
295
|
+
*/
|
|
296
|
+
public static searchUsersOrgsUsersRetrieve(
|
|
297
|
+
org: string,
|
|
298
|
+
username: string,
|
|
299
|
+
): CancelablePromise<any> {
|
|
300
|
+
return __request(OpenAPI, {
|
|
301
|
+
method: 'GET',
|
|
302
|
+
url: '/api/search/users/orgs/{org}/users/{username}/',
|
|
303
|
+
path: {
|
|
304
|
+
'org': org,
|
|
305
|
+
'username': username,
|
|
306
|
+
},
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|