@iblai/iblai-api 2025.11.20-memory-pagination-fix-test-2-core → 2025.11.20-memory-pagination-fix-test-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.
- package/dist/index.cjs.js +24193 -1946
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +24185 -1947
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +24193 -1946
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +430 -1
- package/dist/types/models/AIGeneratedImage.d.ts +13 -0
- package/dist/types/models/AIUserProfileMemoryRelation.d.ts +4 -0
- package/dist/types/models/AIUserProfileRequest.d.ts +4 -0
- package/dist/types/models/AccessEnum.d.ts +8 -0
- package/dist/types/models/AccessTimesHeatmap.d.ts +5 -0
- package/dist/types/models/AccessibleMentorsByEmailRequest.d.ts +13 -0
- package/dist/types/models/AccessibleMentorsByEmailResponse.d.ts +13 -0
- package/dist/types/models/ActionBreakdown.d.ts +10 -0
- package/dist/types/models/AddMentorToDisclaimer.d.ts +12 -0
- package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
- package/dist/types/models/AnalyticsOverview.d.ts +7 -0
- package/dist/types/models/Answer.d.ts +11 -0
- package/dist/types/models/Artifact.d.ts +64 -0
- package/dist/types/models/ArtifactList.d.ts +45 -0
- package/dist/types/models/ArtifactVersion.d.ts +36 -0
- package/dist/types/models/ArtifactVersionList.d.ts +35 -0
- package/dist/types/models/AssumedKnowledge.d.ts +4 -0
- package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
- package/dist/types/models/AudioToTextRequest.d.ts +3 -0
- package/dist/types/models/AudioToTextResponse.d.ts +3 -0
- package/dist/types/models/AuthTypeEnum.d.ts +10 -0
- package/dist/types/models/AutoMemoryPrompt.d.ts +4 -0
- package/dist/types/models/BaseFinanceResponse.d.ts +37 -0
- package/dist/types/models/BillingPeriod.d.ts +8 -0
- package/dist/types/models/Bot.d.ts +15 -0
- package/dist/types/models/BotCommand.d.ts +6 -0
- package/dist/types/models/BotCreate.d.ts +12 -0
- package/dist/types/models/Breakdown.d.ts +11 -0
- package/dist/types/models/CallAuthenticationRequest.d.ts +17 -0
- package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
- package/dist/types/models/CallConfiguration.d.ts +26 -0
- package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
- package/dist/types/models/ChatHistory.d.ts +9 -0
- package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
- package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
- package/dist/types/models/ChatHistoryItem.d.ts +5 -0
- package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
- package/dist/types/models/ChatSessionRequest.d.ts +15 -0
- package/dist/types/models/ChatSessionResponse.d.ts +6 -0
- package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
- package/dist/types/models/ComparisonInfo.d.ts +29 -0
- package/dist/types/models/ComponentBlock.d.ts +9 -0
- package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
- package/dist/types/models/ConnectedService.d.ts +24 -0
- package/dist/types/models/ConversationChartPoint.d.ts +4 -0
- package/dist/types/models/ConversationDetailResponse.d.ts +4 -0
- package/dist/types/models/ConversationListItem.d.ts +24 -0
- package/dist/types/models/ConversationListResponse.d.ts +6 -0
- package/dist/types/models/ConversationMessage.d.ts +11 -0
- package/dist/types/models/ConversationRating.d.ts +6 -0
- package/dist/types/models/ConversationSummary.d.ts +5 -0
- package/dist/types/models/ConversationVolume.d.ts +4 -0
- package/dist/types/models/Conversations.d.ts +33 -0
- package/dist/types/models/ConversationsChart.d.ts +5 -0
- package/dist/types/models/Cost.d.ts +3 -0
- package/dist/types/models/CostPerTenant.d.ts +6 -0
- package/dist/types/models/CourseCreationTask.d.ts +31 -0
- package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
- package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
- package/dist/types/models/CourseRecommendation.d.ts +49 -0
- package/dist/types/models/CrawlerPatternTypeEnum.d.ts +8 -0
- package/dist/types/models/CredentialRequest.d.ts +14 -0
- package/dist/types/models/CrontabSchedule.d.ts +22 -0
- package/dist/types/models/CurrentUsersResponse.d.ts +8 -0
- package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
- package/dist/types/models/DataSet.d.ts +21 -0
- package/dist/types/models/DataSetCreate.d.ts +12 -0
- package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
- package/dist/types/models/DateRange.d.ts +4 -0
- package/dist/types/models/Disclaimer.d.ts +17 -0
- package/dist/types/models/DisclaimerAgreement.d.ts +11 -0
- package/dist/types/models/DisclaimerScopeEnum.d.ts +8 -0
- package/dist/types/models/DiscordConfig.d.ts +7 -0
- package/dist/types/models/DiscordUserConfig.d.ts +10 -0
- package/dist/types/models/DiscordWebhook.d.ts +6 -0
- package/dist/types/models/Document.d.ts +41 -0
- package/dist/types/models/DocumentFacet.d.ts +17 -0
- package/dist/types/models/DocumentFromPoolRequest.d.ts +10 -0
- package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
- package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
- package/dist/types/models/EdxCourse.d.ts +11 -0
- package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
- package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
- package/dist/types/models/EmailPromptDetail.d.ts +13 -0
- package/dist/types/models/EmailPromptList.d.ts +11 -0
- package/dist/types/models/EmailPromptSummary.d.ts +5 -0
- package/dist/types/models/Entity.d.ts +11 -0
- package/dist/types/models/EntityTypeEnum.d.ts +10 -0
- package/dist/types/models/ExternalServiceInfo.d.ts +6 -0
- package/dist/types/models/FileUploadURLRequest.d.ts +21 -0
- package/dist/types/models/FileUploadURLResponse.d.ts +25 -0
- package/dist/types/models/FinanceDetailsResponse.d.ts +13 -0
- package/dist/types/models/FinanceFilters.d.ts +15 -0
- package/dist/types/models/FreeUsageCount.d.ts +3 -0
- package/dist/types/models/FullCourse.d.ts +13 -0
- package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
- package/dist/types/models/GuidedPrompt.d.ts +4 -0
- package/dist/types/models/GuidedPromptsResponse.d.ts +5 -0
- package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
- package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
- package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
- package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
- package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
- package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
- package/dist/types/models/HumanSupportTicket.d.ts +23 -0
- package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +10 -0
- package/dist/types/models/InputQuestion.d.ts +6 -0
- package/dist/types/models/IntegrationCredential.d.ts +10 -0
- package/dist/types/models/IntegrationCredentialSchema.d.ts +6 -0
- package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
- package/dist/types/models/InvoiceReportResponse.d.ts +13 -0
- package/dist/types/models/JobRun.d.ts +11 -0
- package/dist/types/models/KindEnum.d.ts +10 -0
- package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
- package/dist/types/models/LLMCredentialResponse.d.ts +10 -0
- package/dist/types/models/LLMCredentialSchema.d.ts +6 -0
- package/dist/types/models/LLMModelForTenant.d.ts +6 -0
- package/dist/types/models/LLMQuestion.d.ts +15 -0
- package/dist/types/models/LLMResponse.d.ts +18 -0
- package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
- package/dist/types/models/LanguagesView.d.ts +5 -0
- package/dist/types/models/LinkCourseRequest.d.ts +3 -0
- package/dist/types/models/LinkCourseResponse.d.ts +5 -0
- package/dist/types/models/LlmProviderEnum.d.ts +8 -0
- package/dist/types/models/MCPServer.d.ts +50 -0
- package/dist/types/models/MCPServerConnection.d.ts +47 -0
- package/dist/types/models/MCPServerConnectionScopeEnum.d.ts +10 -0
- package/dist/types/models/MaskedIntegrationCredential.d.ts +10 -0
- package/dist/types/models/MaskedLLMCredential.d.ts +10 -0
- package/dist/types/models/MemoryComponentData.d.ts +5 -0
- package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
- package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
- package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
- package/dist/types/models/MemoryProgress.d.ts +8 -0
- package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
- package/dist/types/models/MemoryStatusView.d.ts +6 -0
- package/dist/types/models/Mentor.d.ts +142 -0
- package/dist/types/models/MentorAudience.d.ts +5 -0
- package/dist/types/models/MentorBreakdown.d.ts +9 -0
- package/dist/types/models/MentorCategory.d.ts +9 -0
- package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
- package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
- package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
- package/dist/types/models/MentorCreate.d.ts +132 -0
- package/dist/types/models/MentorCustomVoice.d.ts +4 -0
- package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
- package/dist/types/models/MentorData.d.ts +7 -0
- package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
- package/dist/types/models/MentorEval.d.ts +11 -0
- package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
- package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
- package/dist/types/models/MentorEvalReport.d.ts +10 -0
- package/dist/types/models/MentorEvalRequest.d.ts +8 -0
- package/dist/types/models/MentorFacet.d.ts +17 -0
- package/dist/types/models/MentorFork.d.ts +5 -0
- package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +63 -0
- package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
- package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
- package/dist/types/models/MentorMetadata.d.ts +5 -0
- package/dist/types/models/MentorScenario.d.ts +6 -0
- package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
- package/dist/types/models/MentorSearchResponse.d.ts +35 -0
- package/dist/types/models/MentorSession.d.ts +4 -0
- package/dist/types/models/MentorSettings.d.ts +98 -0
- package/dist/types/models/MentorSettingsPublic.d.ts +75 -0
- package/dist/types/models/MentorSettingsRequest.d.ts +76 -0
- package/dist/types/models/MentorSummary.d.ts +5 -0
- package/dist/types/models/MentorType.d.ts +5 -0
- package/dist/types/models/MentorUserSetting.d.ts +4 -0
- package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
- package/dist/types/models/MentorWizard.d.ts +4 -0
- package/dist/types/models/MessageStatistics.d.ts +5 -0
- package/dist/types/models/MessageView.d.ts +10 -0
- package/dist/types/models/MessageViewRequest.d.ts +8 -0
- package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
- package/dist/types/models/Metadata.d.ts +5 -0
- package/dist/types/models/MetricChange.d.ts +4 -0
- package/dist/types/models/MetricInfo.d.ts +5 -0
- package/dist/types/models/ModelCost.d.ts +4 -0
- package/dist/types/models/ModerationLog.d.ts +12 -0
- package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
- package/dist/types/models/OAuthProvider.d.ts +18 -0
- package/dist/types/models/OAuthService.d.ts +18 -0
- package/dist/types/models/OAuthStartResponse.d.ts +3 -0
- package/dist/types/models/Observation.d.ts +31 -0
- package/dist/types/models/OvertimeData.d.ts +13 -0
- package/dist/types/models/PageContent.d.ts +6 -0
- package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
- package/dist/types/models/PaginatedArtifactListList.d.ts +7 -0
- package/dist/types/models/PaginatedArtifactVersionListList.d.ts +7 -0
- package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
- package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
- package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
- package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
- package/dist/types/models/PaginatedDisclaimerAgreementList.d.ts +7 -0
- package/dist/types/models/PaginatedDisclaimerList.d.ts +7 -0
- package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
- package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
- package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
- package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
- package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +7 -0
- package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
- package/dist/types/models/PaginatedMCPServerConnectionList.d.ts +7 -0
- package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
- package/dist/types/models/PaginatedMentorList.d.ts +7 -0
- package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
- package/dist/types/models/PaginatedObservationList.d.ts +7 -0
- package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
- package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
- package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
- package/dist/types/models/PaginatedProjectList.d.ts +7 -0
- package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
- package/dist/types/models/PaginatedSectionList.d.ts +7 -0
- package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
- package/dist/types/models/PaginatedTicketMessageList.d.ts +7 -0
- package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
- package/dist/types/models/PaginatedTraceList.d.ts +7 -0
- package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
- package/dist/types/models/PaginatedUnitList.d.ts +7 -0
- package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
- package/dist/types/models/PaginatedUserMemoryList.d.ts +7 -0
- package/dist/types/models/PaginatedVeoVideoListList.d.ts +7 -0
- package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
- package/dist/types/models/Pagination.d.ts +16 -11
- package/dist/types/models/PatchedArtifact.d.ts +64 -0
- package/dist/types/models/PatchedBotCommand.d.ts +6 -0
- package/dist/types/models/PatchedBotCreate.d.ts +12 -0
- package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
- package/dist/types/models/PatchedConversations.d.ts +33 -0
- package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
- package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
- package/dist/types/models/PatchedDataSet.d.ts +21 -0
- package/dist/types/models/PatchedDisclaimer.d.ts +17 -0
- package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
- package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
- package/dist/types/models/PatchedHumanSupportTicket.d.ts +23 -0
- package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
- package/dist/types/models/PatchedMCPServer.d.ts +50 -0
- package/dist/types/models/PatchedMCPServerConnection.d.ts +47 -0
- package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
- package/dist/types/models/PatchedMentorCreate.d.ts +132 -0
- package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
- package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
- package/dist/types/models/PatchedProject.d.ts +51 -0
- package/dist/types/models/PatchedPrompt.d.ts +22 -0
- package/dist/types/models/PatchedSection.d.ts +9 -0
- package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
- package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
- package/dist/types/models/PatchedSubSection.d.ts +9 -0
- package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
- package/dist/types/models/PatchedTicketMessage.d.ts +10 -0
- package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
- package/dist/types/models/PatchedUnit.d.ts +11 -0
- package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
- package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
- package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
- package/dist/types/models/PeriodInfo.d.ts +21 -0
- package/dist/types/models/PeriodicAgent.d.ts +42 -0
- package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
- package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
- package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
- package/dist/types/models/PeriodicAgentStatistics.d.ts +7 -0
- package/dist/types/models/PeriodicTask.d.ts +21 -0
- package/dist/types/models/PieChartData.d.ts +5 -0
- package/dist/types/models/PieChartSegment.d.ts +4 -0
- package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
- package/dist/types/models/PinnedMessageGet.d.ts +7 -0
- package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
- package/dist/types/models/PlatformPrompt.d.ts +34 -0
- package/dist/types/models/PlatformPromptResponse.d.ts +16 -0
- package/dist/types/models/PlayWrightScript.d.ts +12 -0
- package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
- package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
- package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
- package/dist/types/models/Project.d.ts +51 -0
- package/dist/types/models/ProjectMentor.d.ts +11 -0
- package/dist/types/models/Prompt.d.ts +22 -0
- package/dist/types/models/PromptCategory.d.ts +7 -0
- package/dist/types/models/PromptFacet.d.ts +17 -0
- package/dist/types/models/PromptSearchResponse.d.ts +35 -0
- package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
- package/dist/types/models/Provider05cEnum.d.ts +14 -0
- package/dist/types/models/Provider637Enum.d.ts +10 -0
- package/dist/types/models/Provider63aEnum.d.ts +6 -0
- package/dist/types/models/ProviderBreakdown.d.ts +8 -0
- package/dist/types/models/QuestionCardTag.d.ts +8 -0
- package/dist/types/models/QuestionRequest.d.ts +15 -0
- package/dist/types/models/QuestionResponse.d.ts +10 -0
- package/dist/types/models/RatingAverageRecord.d.ts +10 -0
- package/dist/types/models/RatingEnum.d.ts +8 -0
- package/dist/types/models/RatingRecord.d.ts +4 -0
- package/dist/types/models/RatingsOvertime.d.ts +5 -0
- package/dist/types/models/RecentlyAccessedMentor.d.ts +11 -0
- package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
- package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
- package/dist/types/models/RecommendationTypeEnum.d.ts +8 -0
- package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
- package/dist/types/models/RelatedText.d.ts +3 -0
- package/dist/types/models/RemoveMentorFromDisclaimer.d.ts +12 -0
- package/dist/types/models/RequestDataVariable.d.ts +14 -0
- package/dist/types/models/ResourceScrappedData.d.ts +13 -0
- package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
- package/dist/types/models/ResponseDataVariable.d.ts +14 -0
- package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
- package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
- package/dist/types/models/RetrieveTask.d.ts +3 -0
- package/dist/types/models/RetrieverDocumentEmbedding.d.ts +30 -0
- package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +66 -0
- package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
- package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
- package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
- package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
- package/dist/types/models/RunMentorEval.d.ts +3 -0
- package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
- package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
- package/dist/types/models/Section.d.ts +9 -0
- package/dist/types/models/SectionWithChildren.d.ts +11 -0
- package/dist/types/models/SeedMentorsView.d.ts +3 -0
- package/dist/types/models/SentimentSummary.d.ts +4 -0
- package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
- package/dist/types/models/SessionChartPoint.d.ts +4 -0
- package/dist/types/models/SessionDetail.d.ts +6 -0
- package/dist/types/models/SessionMemoryAttachment.d.ts +3 -0
- package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
- package/dist/types/models/SessionsChart.d.ts +5 -0
- package/dist/types/models/SetCurrentVersionRequest.d.ts +3 -0
- package/dist/types/models/ShareableMentorLink.d.ts +8 -0
- package/dist/types/models/ShellLogs.d.ts +3 -0
- package/dist/types/models/SlackConfig.d.ts +8 -0
- package/dist/types/models/SlackUserConfig.d.ts +17 -0
- package/dist/types/models/SlackWebhook.d.ts +6 -0
- package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
- package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
- package/dist/types/models/StarMentor.d.ts +7 -0
- package/dist/types/models/Status6eeEnum.d.ts +12 -0
- package/dist/types/models/Step.d.ts +9 -0
- package/dist/types/models/StepStatusEnum.d.ts +10 -0
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
- package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
- package/dist/types/models/SttProviderEnum.d.ts +12 -0
- package/dist/types/models/StudentChatMessage.d.ts +4 -0
- package/dist/types/models/StylesView.d.ts +4 -0
- package/dist/types/models/SubSection.d.ts +9 -0
- package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
- package/dist/types/models/Subject.d.ts +5 -0
- package/dist/types/models/Summary.d.ts +9 -0
- package/dist/types/models/TagsView.d.ts +5 -0
- package/dist/types/models/TargetSystemEnum.d.ts +8 -0
- package/dist/types/models/TaskView.d.ts +3 -0
- package/dist/types/models/TeamsConfig.d.ts +7 -0
- package/dist/types/models/TeamsWebhook.d.ts +17 -0
- package/dist/types/models/TemplateMentor.d.ts +9 -0
- package/dist/types/models/TenantMentorTraces.d.ts +6 -0
- package/dist/types/models/TenantSetting.d.ts +5 -0
- package/dist/types/models/ThemeEnum.d.ts +8 -0
- package/dist/types/models/TicketMessage.d.ts +10 -0
- package/dist/types/models/TonesView.d.ts +4 -0
- package/dist/types/models/ToolCategory.d.ts +5 -0
- package/dist/types/models/ToolResponse.d.ts +15 -0
- package/dist/types/models/TopicDetail.d.ts +8 -0
- package/dist/types/models/TopicDetails.d.ts +5 -0
- package/dist/types/models/TopicModel.d.ts +3 -0
- package/dist/types/models/TopicRecord.d.ts +4 -0
- package/dist/types/models/TopicStatistics.d.ts +7 -0
- package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
- package/dist/types/models/TopicSummaryView.d.ts +4 -0
- package/dist/types/models/TopicsOverview.d.ts +22 -0
- package/dist/types/models/TopicsOverviewMetric.d.ts +21 -0
- package/dist/types/models/Trace.d.ts +17 -0
- package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
- package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
- package/dist/types/models/TrainDocumentViewRequest.d.ts +82 -0
- package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
- package/dist/types/models/Training.d.ts +41 -0
- package/dist/types/models/TrainingCreate.d.ts +31 -0
- package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
- package/dist/types/models/TransportEnum.d.ts +10 -0
- package/dist/types/models/TrendEntry.d.ts +4 -0
- package/dist/types/models/TriggerRequest.d.ts +5 -0
- package/dist/types/models/TriggerResponse.d.ts +6 -0
- package/dist/types/models/TtsProviderEnum.d.ts +10 -0
- package/dist/types/models/TypeC42Enum.d.ts +8 -0
- package/dist/types/models/Unit.d.ts +11 -0
- package/dist/types/models/UnitWithChildren.d.ts +13 -0
- package/dist/types/models/UseMainCreds.d.ts +3 -0
- package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
- package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
- package/dist/types/models/UserChatByPeriod.d.ts +4 -0
- package/dist/types/models/UserChatFeedback.d.ts +15 -0
- package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
- package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
- package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
- package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
- package/dist/types/models/UserCountRecord.d.ts +4 -0
- package/dist/types/models/UserDetail.d.ts +7 -0
- package/dist/types/models/UserEdxMemory.d.ts +15 -0
- package/dist/types/models/UserMemory.d.ts +18 -0
- package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
- package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
- package/dist/types/models/UserMemoryEntry.d.ts +9 -0
- package/dist/types/models/UserMemoryEntryRequest.d.ts +5 -0
- package/dist/types/models/UserMemoryRequest.d.ts +12 -0
- package/dist/types/models/UserMetric.d.ts +4 -0
- package/dist/types/models/UserMetricsResponse.d.ts +7 -0
- package/dist/types/models/UserSentimentCountView.d.ts +4 -0
- package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
- package/dist/types/models/V2GlobalMentorSearchResponse.d.ts +29 -0
- package/dist/types/models/V2PersonalizedMentorsResponse.d.ts +29 -0
- package/dist/types/models/V2RecommendationResponse.d.ts +65 -0
- package/dist/types/models/VectorResult.d.ts +10 -0
- package/dist/types/models/VeoVideoDetail.d.ts +10 -0
- package/dist/types/models/VeoVideoList.d.ts +6 -0
- package/dist/types/models/VeoVideoRequest.d.ts +5 -0
- package/dist/types/models/VideoCaption.d.ts +3 -0
- package/dist/types/models/Voice.d.ts +9 -0
- package/dist/types/models/WebResource.d.ts +9 -0
- package/dist/types/models/WebResourceCard.d.ts +7 -0
- package/dist/types/models/WebResourcesQuery.d.ts +3 -0
- package/dist/types/models/WebexConfig.d.ts +10 -0
- package/dist/types/models/WebexWebhook.d.ts +4 -0
- package/dist/types/models/WhatAppWebHook.d.ts +3 -0
- package/dist/types/models/WhatsappConfig.d.ts +11 -0
- package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
- package/dist/types/services/AiAccountService.d.ts +567 -0
- package/dist/types/services/AiAnalyticsService.d.ts +4691 -19
- package/dist/types/services/AiBotService.d.ts +650 -0
- package/dist/types/services/AiFinetuningService.d.ts +232 -0
- package/dist/types/services/AiIndexService.d.ts +399 -0
- package/dist/types/services/AiMarketingService.d.ts +38 -0
- package/dist/types/services/AiMediaService.d.ts +247 -0
- package/dist/types/services/AiMentorService.d.ts +6803 -0
- package/dist/types/services/AiPromptService.d.ts +1035 -0
- package/dist/types/services/AiSearchService.d.ts +451 -0
- package/dist/types/services/AnalyticsService.d.ts +709 -4
- package/dist/types/services/SearchService.d.ts +738 -0
- package/package.json +1 -1
- package/sdk_schema.yml +72404 -23887
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +430 -1
- package/src/models/AIGeneratedImage.ts +18 -0
- package/src/models/AIUserProfileMemoryRelation.ts +9 -0
- package/src/models/AIUserProfileRequest.ts +9 -0
- package/src/models/AccessEnum.ts +12 -0
- package/src/models/AccessTimesHeatmap.ts +10 -0
- package/src/models/AccessibleMentorsByEmailRequest.ts +18 -0
- package/src/models/AccessibleMentorsByEmailResponse.ts +18 -0
- package/src/models/ActionBreakdown.ts +15 -0
- package/src/models/AddMentorToDisclaimer.ts +17 -0
- package/src/models/AlignMentorBubbleEnum.ts +12 -0
- package/src/models/AnalyticsOverview.ts +12 -0
- package/src/models/Answer.ts +16 -0
- package/src/models/Artifact.ts +69 -0
- package/src/models/ArtifactList.ts +50 -0
- package/src/models/ArtifactVersion.ts +41 -0
- package/src/models/ArtifactVersionList.ts +40 -0
- package/src/models/AssumedKnowledge.ts +9 -0
- package/src/models/AssumedKnowledgeLevel.ts +9 -0
- package/src/models/AudioToTextRequest.ts +8 -0
- package/src/models/AudioToTextResponse.ts +8 -0
- package/src/models/AuthTypeEnum.ts +14 -0
- package/src/models/AutoMemoryPrompt.ts +9 -0
- package/src/models/BaseFinanceResponse.ts +42 -0
- package/src/models/BillingPeriod.ts +13 -0
- package/src/models/Bot.ts +20 -0
- package/src/models/BotCommand.ts +11 -0
- package/src/models/BotCreate.ts +17 -0
- package/src/models/Breakdown.ts +16 -0
- package/src/models/CallAuthenticationRequest.ts +22 -0
- package/src/models/CallAuthenticationResponse.ts +26 -0
- package/src/models/CallConfiguration.ts +31 -0
- package/src/models/CallConfigurationModeEnum.ts +12 -0
- package/src/models/ChatHistory.ts +14 -0
- package/src/models/ChatHistoryFilterData.ts +14 -0
- package/src/models/ChatHistoryFilterUser.ts +10 -0
- package/src/models/ChatHistoryItem.ts +10 -0
- package/src/models/ChatHistorySessionId.ts +8 -0
- package/src/models/ChatSessionRequest.ts +20 -0
- package/src/models/ChatSessionResponse.ts +11 -0
- package/src/models/CheckDocumentTrainingStatus.ts +15 -0
- package/src/models/ComparisonInfo.ts +34 -0
- package/src/models/ComponentBlock.ts +14 -0
- package/src/models/ComponentBlockTypeEnum.ts +12 -0
- package/src/models/ConnectedService.ts +29 -0
- package/src/models/ConversationChartPoint.ts +9 -0
- package/src/models/ConversationDetailResponse.ts +9 -0
- package/src/models/ConversationListItem.ts +29 -0
- package/src/models/ConversationListResponse.ts +11 -0
- package/src/models/ConversationMessage.ts +16 -0
- package/src/models/ConversationRating.ts +11 -0
- package/src/models/ConversationSummary.ts +10 -0
- package/src/models/ConversationVolume.ts +9 -0
- package/src/models/Conversations.ts +38 -0
- package/src/models/ConversationsChart.ts +10 -0
- package/src/models/Cost.ts +8 -0
- package/src/models/CostPerTenant.ts +11 -0
- package/src/models/CourseCreationTask.ts +36 -0
- package/src/models/CourseCreationTaskFile.ts +12 -0
- package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
- package/src/models/CourseRecommendation.ts +54 -0
- package/src/models/CrawlerPatternTypeEnum.ts +12 -0
- package/src/models/CredentialRequest.ts +19 -0
- package/src/models/CrontabSchedule.ts +27 -0
- package/src/models/CurrentUsersResponse.ts +13 -0
- package/src/models/CustomInstructionResponse.ts +18 -0
- package/src/models/DataSet.ts +26 -0
- package/src/models/DataSetCreate.ts +17 -0
- package/src/models/DataSetStatusEnum.ts +16 -0
- package/src/models/DateRange.ts +9 -0
- package/src/models/Disclaimer.ts +22 -0
- package/src/models/DisclaimerAgreement.ts +16 -0
- package/src/models/DisclaimerScopeEnum.ts +12 -0
- package/src/models/DiscordConfig.ts +12 -0
- package/src/models/DiscordUserConfig.ts +15 -0
- package/src/models/DiscordWebhook.ts +11 -0
- package/src/models/Document.ts +46 -0
- package/src/models/DocumentFacet.ts +22 -0
- package/src/models/DocumentFromPoolRequest.ts +15 -0
- package/src/models/DocumentSearchResponse.ts +40 -0
- package/src/models/DocumentSettingsResponse.ts +8 -0
- package/src/models/EdxCourse.ts +16 -0
- package/src/models/ElevenlabsCustomVoice.ts +9 -0
- package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
- package/src/models/EmailPromptDetail.ts +18 -0
- package/src/models/EmailPromptList.ts +16 -0
- package/src/models/EmailPromptSummary.ts +10 -0
- package/src/models/Entity.ts +16 -0
- package/src/models/EntityTypeEnum.ts +14 -0
- package/src/models/ExternalServiceInfo.ts +11 -0
- package/src/models/FileUploadURLRequest.ts +26 -0
- package/src/models/FileUploadURLResponse.ts +30 -0
- package/src/models/FinanceDetailsResponse.ts +18 -0
- package/src/models/FinanceFilters.ts +20 -0
- package/src/models/FreeUsageCount.ts +8 -0
- package/src/models/FullCourse.ts +18 -0
- package/src/models/GreetingMethodEnum.ts +12 -0
- package/src/models/GuidedPrompt.ts +9 -0
- package/src/models/GuidedPromptsResponse.ts +10 -0
- package/src/models/HeygenMarketingVideoDetail.ts +13 -0
- package/src/models/HeygenMarketingVideoList.ts +11 -0
- package/src/models/HeygenTemplateRequest.ts +10 -0
- package/src/models/HeygenTemplateResponseSingle.ts +11 -0
- package/src/models/HeygenVideoDetail.ts +13 -0
- package/src/models/HeygenVideoRequest.ts +10 -0
- package/src/models/HumanSupportTicket.ts +28 -0
- package/src/models/HumanSupportTicketStatusEnum.ts +14 -0
- package/src/models/InputQuestion.ts +11 -0
- package/src/models/IntegrationCredential.ts +15 -0
- package/src/models/IntegrationCredentialSchema.ts +11 -0
- package/src/models/IntialQuestionAnswer.ts +8 -0
- package/src/models/InvoiceReportResponse.ts +18 -0
- package/src/models/JobRun.ts +16 -0
- package/src/models/KindEnum.ts +14 -0
- package/src/models/LLMCredentialRequest.ts +19 -0
- package/src/models/LLMCredentialResponse.ts +15 -0
- package/src/models/LLMCredentialSchema.ts +11 -0
- package/src/models/LLMModelForTenant.ts +11 -0
- package/src/models/LLMQuestion.ts +20 -0
- package/src/models/LLMResponse.ts +23 -0
- package/src/models/LLMTracesListResponse.ts +10 -0
- package/src/models/LanguagesView.ts +10 -0
- package/src/models/LinkCourseRequest.ts +8 -0
- package/src/models/LinkCourseResponse.ts +10 -0
- package/src/models/LlmProviderEnum.ts +12 -0
- package/src/models/MCPServer.ts +55 -0
- package/src/models/MCPServerConnection.ts +52 -0
- package/src/models/MCPServerConnectionScopeEnum.ts +14 -0
- package/src/models/MaskedIntegrationCredential.ts +15 -0
- package/src/models/MaskedLLMCredential.ts +15 -0
- package/src/models/MemoryComponentData.ts +10 -0
- package/src/models/MemoryComponentMemory.ts +9 -0
- package/src/models/MemoryComponentMemoryDetail.ts +13 -0
- package/src/models/MemoryComponentResponse.ts +10 -0
- package/src/models/MemoryProgress.ts +13 -0
- package/src/models/MemoryStatusRequestView.ts +11 -0
- package/src/models/MemoryStatusView.ts +11 -0
- package/src/models/Mentor.ts +147 -0
- package/src/models/MentorAudience.ts +10 -0
- package/src/models/MentorBreakdown.ts +14 -0
- package/src/models/MentorCategory.ts +14 -0
- package/src/models/MentorCategoryCreate.ts +16 -0
- package/src/models/MentorCategoryGroup.ts +16 -0
- package/src/models/MentorCategoryGroupCreate.ts +16 -0
- package/src/models/MentorCreate.ts +137 -0
- package/src/models/MentorCustomVoice.ts +9 -0
- package/src/models/MentorCustomVoiceResponse.ts +9 -0
- package/src/models/MentorData.ts +12 -0
- package/src/models/MentorDetailAnalytics.ts +11 -0
- package/src/models/MentorEval.ts +16 -0
- package/src/models/MentorEvalQuestion.ts +10 -0
- package/src/models/MentorEvalQuestionRequest.ts +9 -0
- package/src/models/MentorEvalReport.ts +15 -0
- package/src/models/MentorEvalRequest.ts +13 -0
- package/src/models/MentorFacet.ts +22 -0
- package/src/models/MentorFork.ts +10 -0
- package/src/models/MentorFromTemplateWithSettingRequest.ts +68 -0
- package/src/models/MentorMemorySettingsRequest.ts +11 -0
- package/src/models/MentorMemorySettingsResponse.ts +11 -0
- package/src/models/MentorMetadata.ts +10 -0
- package/src/models/MentorScenario.ts +11 -0
- package/src/models/MentorScenarioPrompt.ts +10 -0
- package/src/models/MentorSearchResponse.ts +40 -0
- package/src/models/MentorSession.ts +9 -0
- package/src/models/MentorSettings.ts +103 -0
- package/src/models/MentorSettingsPublic.ts +80 -0
- package/src/models/MentorSettingsRequest.ts +81 -0
- package/src/models/MentorSummary.ts +10 -0
- package/src/models/MentorType.ts +10 -0
- package/src/models/MentorUserSetting.ts +9 -0
- package/src/models/MentorVisibilityEnum.ts +14 -0
- package/src/models/MentorWizard.ts +9 -0
- package/src/models/MessageStatistics.ts +10 -0
- package/src/models/MessageView.ts +15 -0
- package/src/models/MessageViewRequest.ts +13 -0
- package/src/models/MessageViewUpdatResponse.ts +8 -0
- package/src/models/Metadata.ts +10 -0
- package/src/models/MetricChange.ts +9 -0
- package/src/models/MetricInfo.ts +10 -0
- package/src/models/ModelCost.ts +9 -0
- package/src/models/ModerationLog.ts +17 -0
- package/src/models/NoChatMessagesFound.ts +8 -0
- package/src/models/OAuthProvider.ts +23 -0
- package/src/models/OAuthService.ts +23 -0
- package/src/models/OAuthStartResponse.ts +8 -0
- package/src/models/Observation.ts +36 -0
- package/src/models/OvertimeData.ts +18 -0
- package/src/models/PageContent.ts +11 -0
- package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
- package/src/models/PaginatedArtifactListList.ts +12 -0
- package/src/models/PaginatedArtifactVersionListList.ts +12 -0
- package/src/models/PaginatedConversationsList.ts +12 -0
- package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
- package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
- package/src/models/PaginatedDataSetList.ts +12 -0
- package/src/models/PaginatedDisclaimerAgreementList.ts +12 -0
- package/src/models/PaginatedDisclaimerList.ts +12 -0
- package/src/models/PaginatedEdxCourseList.ts +12 -0
- package/src/models/PaginatedEmailPromptListList.ts +12 -0
- package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
- package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
- package/src/models/PaginatedHumanSupportTicketList.ts +12 -0
- package/src/models/PaginatedJobRunList.ts +12 -0
- package/src/models/PaginatedMCPServerConnectionList.ts +12 -0
- package/src/models/PaginatedMCPServerList.ts +12 -0
- package/src/models/PaginatedMentorList.ts +12 -0
- package/src/models/PaginatedModerationLogList.ts +12 -0
- package/src/models/PaginatedObservationList.ts +12 -0
- package/src/models/PaginatedPeriodicAgentList.ts +12 -0
- package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
- package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
- package/src/models/PaginatedProjectList.ts +12 -0
- package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
- package/src/models/PaginatedSectionList.ts +12 -0
- package/src/models/PaginatedSubSectionList.ts +12 -0
- package/src/models/PaginatedTicketMessageList.ts +12 -0
- package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
- package/src/models/PaginatedTraceList.ts +12 -0
- package/src/models/PaginatedTrainingList.ts +12 -0
- package/src/models/PaginatedUnitList.ts +12 -0
- package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
- package/src/models/PaginatedUserMemoryList.ts +12 -0
- package/src/models/PaginatedVeoVideoListList.ts +12 -0
- package/src/models/PaginatedVoiceList.ts +12 -0
- package/src/models/Pagination.ts +16 -11
- package/src/models/PatchedArtifact.ts +69 -0
- package/src/models/PatchedBotCommand.ts +11 -0
- package/src/models/PatchedBotCreate.ts +17 -0
- package/src/models/PatchedCallConfiguration.ts +31 -0
- package/src/models/PatchedConversations.ts +38 -0
- package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
- package/src/models/PatchedCredentialRequest.ts +19 -0
- package/src/models/PatchedDataSet.ts +26 -0
- package/src/models/PatchedDisclaimer.ts +22 -0
- package/src/models/PatchedDiscordConfig.ts +12 -0
- package/src/models/PatchedDiscordUserConfig.ts +15 -0
- package/src/models/PatchedHumanSupportTicket.ts +28 -0
- package/src/models/PatchedLLMCredentialRequest.ts +19 -0
- package/src/models/PatchedMCPServer.ts +55 -0
- package/src/models/PatchedMCPServerConnection.ts +52 -0
- package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
- package/src/models/PatchedMentorCreate.ts +137 -0
- package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
- package/src/models/PatchedPlayWrightScript.ts +17 -0
- package/src/models/PatchedProject.ts +56 -0
- package/src/models/PatchedPrompt.ts +27 -0
- package/src/models/PatchedSection.ts +14 -0
- package/src/models/PatchedSlackConfig.ts +13 -0
- package/src/models/PatchedSlackUserConfig.ts +22 -0
- package/src/models/PatchedSubSection.ts +14 -0
- package/src/models/PatchedTeamsConfig.ts +12 -0
- package/src/models/PatchedTicketMessage.ts +15 -0
- package/src/models/PatchedTrainingCreate.ts +36 -0
- package/src/models/PatchedUnit.ts +16 -0
- package/src/models/PatchedWebexConfig.ts +15 -0
- package/src/models/PatchedWhatsappConfig.ts +16 -0
- package/src/models/PatchedWhatsappUserConfig.ts +15 -0
- package/src/models/PeriodInfo.ts +26 -0
- package/src/models/PeriodicAgent.ts +47 -0
- package/src/models/PeriodicAgentCreate.ts +46 -0
- package/src/models/PeriodicAgentLog.ts +16 -0
- package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
- package/src/models/PeriodicAgentStatistics.ts +12 -0
- package/src/models/PeriodicTask.ts +26 -0
- package/src/models/PieChartData.ts +10 -0
- package/src/models/PieChartSegment.ts +9 -0
- package/src/models/PinnedMessageCreate.ts +14 -0
- package/src/models/PinnedMessageGet.ts +12 -0
- package/src/models/PinnedMessageRequest.ts +11 -0
- package/src/models/PlatformPrompt.ts +39 -0
- package/src/models/PlatformPromptResponse.ts +21 -0
- package/src/models/PlayWrightScript.ts +17 -0
- package/src/models/PredictiveAnalyticsRequest.ts +9 -0
- package/src/models/PredictiveAnalyticsResponse.ts +9 -0
- package/src/models/PreviousAgentStatusEnum.ts +16 -0
- package/src/models/Project.ts +56 -0
- package/src/models/ProjectMentor.ts +16 -0
- package/src/models/Prompt.ts +27 -0
- package/src/models/PromptCategory.ts +12 -0
- package/src/models/PromptFacet.ts +22 -0
- package/src/models/PromptSearchResponse.ts +40 -0
- package/src/models/PromptVisibilityEnum.ts +14 -0
- package/src/models/Provider05cEnum.ts +18 -0
- package/src/models/Provider637Enum.ts +14 -0
- package/src/models/Provider63aEnum.ts +10 -0
- package/src/models/ProviderBreakdown.ts +13 -0
- package/src/models/QuestionCardTag.ts +13 -0
- package/src/models/QuestionRequest.ts +20 -0
- package/src/models/QuestionResponse.ts +15 -0
- package/src/models/RatingAverageRecord.ts +15 -0
- package/src/models/RatingEnum.ts +12 -0
- package/src/models/RatingRecord.ts +9 -0
- package/src/models/RatingsOvertime.ts +10 -0
- package/src/models/RecentlyAccessedMentor.ts +16 -0
- package/src/models/RecommendCourseBlock.ts +8 -0
- package/src/models/RecommendCourseResponse.ts +8 -0
- package/src/models/RecommendationTypeEnum.ts +12 -0
- package/src/models/RecommendedCoursesResponse.ts +38 -0
- package/src/models/RelatedText.ts +8 -0
- package/src/models/RemoveMentorFromDisclaimer.ts +17 -0
- package/src/models/RequestDataVariable.ts +19 -0
- package/src/models/ResourceScrappedData.ts +18 -0
- package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
- package/src/models/ResponseDataVariable.ts +19 -0
- package/src/models/RetreiverTrainViewRequest.ts +15 -0
- package/src/models/RetreiverTrainViewResponse.ts +11 -0
- package/src/models/RetrieveTask.ts +8 -0
- package/src/models/RetrieverDocumentEmbedding.ts +35 -0
- package/src/models/RetrieverDocumentEmbeddingRequest.ts +71 -0
- package/src/models/RetrieverRequestSearch.ts +15 -0
- package/src/models/RetrieverRequestSearchDocument.ts +15 -0
- package/src/models/RetrieverResponseSearch.ts +12 -0
- package/src/models/ReuestDataVariableList.ts +9 -0
- package/src/models/RunMentorEval.ts +8 -0
- package/src/models/ScanWebhookRequest.ts +11 -0
- package/src/models/ScanWebhookResponse.ts +8 -0
- package/src/models/Section.ts +14 -0
- package/src/models/SectionWithChildren.ts +16 -0
- package/src/models/SeedMentorsView.ts +8 -0
- package/src/models/SentimentSummary.ts +9 -0
- package/src/models/SessionBrowserScreenshot.ts +13 -0
- package/src/models/SessionChartPoint.ts +9 -0
- package/src/models/SessionDetail.ts +11 -0
- package/src/models/SessionMemoryAttachment.ts +8 -0
- package/src/models/SessionMemoryStorage.ts +11 -0
- package/src/models/SessionsChart.ts +10 -0
- package/src/models/SetCurrentVersionRequest.ts +8 -0
- package/src/models/ShareableMentorLink.ts +13 -0
- package/src/models/ShellLogs.ts +8 -0
- package/src/models/SlackConfig.ts +13 -0
- package/src/models/SlackUserConfig.ts +22 -0
- package/src/models/SlackWebhook.ts +11 -0
- package/src/models/SpacedRepetitionLearningPath.ts +8 -0
- package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
- package/src/models/StarMentor.ts +12 -0
- package/src/models/Status6eeEnum.ts +16 -0
- package/src/models/Step.ts +14 -0
- package/src/models/StepStatusEnum.ts +14 -0
- package/src/models/StripeCheckoutSessionRequest.ts +2 -2
- package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
- package/src/models/SttProviderEnum.ts +16 -0
- package/src/models/StudentChatMessage.ts +9 -0
- package/src/models/StylesView.ts +9 -0
- package/src/models/SubSection.ts +14 -0
- package/src/models/SubSectionWithChildren.ts +16 -0
- package/src/models/Subject.ts +10 -0
- package/src/models/Summary.ts +14 -0
- package/src/models/TagsView.ts +10 -0
- package/src/models/TargetSystemEnum.ts +12 -0
- package/src/models/TaskView.ts +8 -0
- package/src/models/TeamsConfig.ts +12 -0
- package/src/models/TeamsWebhook.ts +22 -0
- package/src/models/TemplateMentor.ts +14 -0
- package/src/models/TenantMentorTraces.ts +11 -0
- package/src/models/TenantSetting.ts +10 -0
- package/src/models/ThemeEnum.ts +12 -0
- package/src/models/TicketMessage.ts +15 -0
- package/src/models/TonesView.ts +9 -0
- package/src/models/ToolCategory.ts +10 -0
- package/src/models/ToolResponse.ts +20 -0
- package/src/models/TopicDetail.ts +13 -0
- package/src/models/TopicDetails.ts +10 -0
- package/src/models/TopicModel.ts +8 -0
- package/src/models/TopicRecord.ts +9 -0
- package/src/models/TopicStatistics.ts +12 -0
- package/src/models/TopicStatisticsResponse.ts +11 -0
- package/src/models/TopicSummaryView.ts +9 -0
- package/src/models/TopicsOverview.ts +27 -0
- package/src/models/TopicsOverviewMetric.ts +26 -0
- package/src/models/Trace.ts +22 -0
- package/src/models/TrainChatSessionDocumentView.ts +11 -0
- package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
- package/src/models/TrainDocumentViewRequest.ts +87 -0
- package/src/models/TrainDocumentViewResponse.ts +20 -0
- package/src/models/Training.ts +46 -0
- package/src/models/TrainingCreate.ts +36 -0
- package/src/models/TrainingStatusEnum.ts +16 -0
- package/src/models/TransportEnum.ts +14 -0
- package/src/models/TrendEntry.ts +9 -0
- package/src/models/TriggerRequest.ts +10 -0
- package/src/models/TriggerResponse.ts +11 -0
- package/src/models/TtsProviderEnum.ts +14 -0
- package/src/models/TypeC42Enum.ts +12 -0
- package/src/models/Unit.ts +16 -0
- package/src/models/UnitWithChildren.ts +18 -0
- package/src/models/UseMainCreds.ts +8 -0
- package/src/models/UserAllChatMemoryView.ts +12 -0
- package/src/models/UserCatalogItemMemoryView.ts +19 -0
- package/src/models/UserChatByPeriod.ts +9 -0
- package/src/models/UserChatFeedback.ts +20 -0
- package/src/models/UserChatFeedbackCount.ts +9 -0
- package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
- package/src/models/UserChatMemoryStatusView.ts +11 -0
- package/src/models/UserChatMemoryUpdateView.ts +15 -0
- package/src/models/UserCountRecord.ts +9 -0
- package/src/models/UserDetail.ts +12 -0
- package/src/models/UserEdxMemory.ts +20 -0
- package/src/models/UserMemory.ts +23 -0
- package/src/models/UserMemoryContextRequest.ts +18 -0
- package/src/models/UserMemoryContextResponse.ts +17 -0
- package/src/models/UserMemoryEntry.ts +14 -0
- package/src/models/UserMemoryEntryRequest.ts +10 -0
- package/src/models/UserMemoryRequest.ts +17 -0
- package/src/models/UserMetric.ts +9 -0
- package/src/models/UserMetricsResponse.ts +12 -0
- package/src/models/UserSentimentCountView.ts +9 -0
- package/src/models/UserTrendByPeriod.ts +10 -0
- package/src/models/V2GlobalMentorSearchResponse.ts +34 -0
- package/src/models/V2PersonalizedMentorsResponse.ts +34 -0
- package/src/models/V2RecommendationResponse.ts +70 -0
- package/src/models/VectorResult.ts +15 -0
- package/src/models/VeoVideoDetail.ts +15 -0
- package/src/models/VeoVideoList.ts +11 -0
- package/src/models/VeoVideoRequest.ts +10 -0
- package/src/models/VideoCaption.ts +8 -0
- package/src/models/Voice.ts +14 -0
- package/src/models/WebResource.ts +14 -0
- package/src/models/WebResourceCard.ts +12 -0
- package/src/models/WebResourcesQuery.ts +8 -0
- package/src/models/WebexConfig.ts +15 -0
- package/src/models/WebexWebhook.ts +9 -0
- package/src/models/WhatAppWebHook.ts +8 -0
- package/src/models/WhatsappConfig.ts +16 -0
- package/src/models/WhatsappUserConfig.ts +15 -0
- package/src/services/AiAccountService.ts +955 -0
- package/src/services/AiAnalyticsService.ts +12921 -5255
- package/src/services/AiBotService.ts +1350 -0
- package/src/services/AiFinetuningService.ts +472 -0
- package/src/services/AiIndexService.ts +710 -0
- package/src/services/AiMarketingService.ts +96 -0
- package/src/services/AiMediaService.ts +532 -0
- package/src/services/AiMentorService.ts +12552 -0
- package/src/services/AiPromptService.ts +1985 -0
- package/src/services/AiSearchService.ts +742 -0
- package/src/services/AnalyticsService.ts +1234 -177
- package/src/services/SearchService.ts +1459 -398
|
@@ -2,12 +2,131 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { DocumentSearchResponse } from '../models/DocumentSearchResponse';
|
|
5
6
|
import type { GlobalCatalogSearchResponse } from '../models/GlobalCatalogSearchResponse';
|
|
7
|
+
import type { MentorSearchResponse } from '../models/MentorSearchResponse';
|
|
8
|
+
import type { PromptSearchResponse } from '../models/PromptSearchResponse';
|
|
9
|
+
import type { RecommendedCoursesResponse } from '../models/RecommendedCoursesResponse';
|
|
6
10
|
import type { UserSearchResponse } from '../models/UserSearchResponse';
|
|
7
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
12
|
import { OpenAPI } from '../core/OpenAPI';
|
|
9
13
|
import { request as __request } from '../core/request';
|
|
10
14
|
export class SearchService {
|
|
15
|
+
/**
|
|
16
|
+
* Legacy endpoint for backward compatible mentor search
|
|
17
|
+
* @returns MentorSearchResponse
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static searchAiSearchRetrieve({
|
|
21
|
+
audience,
|
|
22
|
+
category,
|
|
23
|
+
createdBy,
|
|
24
|
+
filterFacet = false,
|
|
25
|
+
id,
|
|
26
|
+
limit = 12,
|
|
27
|
+
llm,
|
|
28
|
+
offset,
|
|
29
|
+
orderBy,
|
|
30
|
+
orderDirection = 'desc',
|
|
31
|
+
page,
|
|
32
|
+
pageSize,
|
|
33
|
+
query,
|
|
34
|
+
tags,
|
|
35
|
+
tenant,
|
|
36
|
+
uniqueId,
|
|
37
|
+
}: {
|
|
38
|
+
/**
|
|
39
|
+
* Filter by target audience
|
|
40
|
+
*/
|
|
41
|
+
audience?: Array<string>,
|
|
42
|
+
/**
|
|
43
|
+
* Filter by mentor category
|
|
44
|
+
*/
|
|
45
|
+
category?: Array<string>,
|
|
46
|
+
/**
|
|
47
|
+
* Filter mentors created by specific user
|
|
48
|
+
*/
|
|
49
|
+
createdBy?: string,
|
|
50
|
+
/**
|
|
51
|
+
* If present, return only facets without results
|
|
52
|
+
*/
|
|
53
|
+
filterFacet?: boolean,
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve a specific mentor by ID
|
|
56
|
+
*/
|
|
57
|
+
id?: number,
|
|
58
|
+
/**
|
|
59
|
+
* Number of results per page
|
|
60
|
+
*/
|
|
61
|
+
limit?: number,
|
|
62
|
+
/**
|
|
63
|
+
* Filter by language model type
|
|
64
|
+
*/
|
|
65
|
+
llm?: Array<string>,
|
|
66
|
+
/**
|
|
67
|
+
* Starting position for pagination
|
|
68
|
+
*/
|
|
69
|
+
offset?: number,
|
|
70
|
+
/**
|
|
71
|
+
* Field to sort results by ('created_at', 'recently_accessed_at')
|
|
72
|
+
*/
|
|
73
|
+
orderBy?: string,
|
|
74
|
+
/**
|
|
75
|
+
* Sort direction ('asc' or 'desc')
|
|
76
|
+
*/
|
|
77
|
+
orderDirection?: string,
|
|
78
|
+
/**
|
|
79
|
+
* Page number (1-based, used with page_size)
|
|
80
|
+
*/
|
|
81
|
+
page?: number,
|
|
82
|
+
/**
|
|
83
|
+
* Number of results per page
|
|
84
|
+
*/
|
|
85
|
+
pageSize?: number,
|
|
86
|
+
/**
|
|
87
|
+
* Search term to filter mentors by name or description
|
|
88
|
+
*/
|
|
89
|
+
query?: string,
|
|
90
|
+
/**
|
|
91
|
+
* Filter by tags
|
|
92
|
+
*/
|
|
93
|
+
tags?: Array<string>,
|
|
94
|
+
/**
|
|
95
|
+
* Filter by tenant/organization
|
|
96
|
+
*/
|
|
97
|
+
tenant?: string,
|
|
98
|
+
/**
|
|
99
|
+
* Retrieve a specific mentor by UUID
|
|
100
|
+
*/
|
|
101
|
+
uniqueId?: string,
|
|
102
|
+
}): CancelablePromise<MentorSearchResponse> {
|
|
103
|
+
return __request(OpenAPI, {
|
|
104
|
+
method: 'GET',
|
|
105
|
+
url: '/api/search/ai-search/',
|
|
106
|
+
query: {
|
|
107
|
+
'audience': audience,
|
|
108
|
+
'category': category,
|
|
109
|
+
'created_by': createdBy,
|
|
110
|
+
'filter_facet': filterFacet,
|
|
111
|
+
'id': id,
|
|
112
|
+
'limit': limit,
|
|
113
|
+
'llm': llm,
|
|
114
|
+
'offset': offset,
|
|
115
|
+
'order_by': orderBy,
|
|
116
|
+
'order_direction': orderDirection,
|
|
117
|
+
'page': page,
|
|
118
|
+
'page_size': pageSize,
|
|
119
|
+
'query': query,
|
|
120
|
+
'tags': tags,
|
|
121
|
+
'tenant': tenant,
|
|
122
|
+
'unique_id': uniqueId,
|
|
123
|
+
},
|
|
124
|
+
errors: {
|
|
125
|
+
400: `Bad request`,
|
|
126
|
+
500: `Server error`,
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
11
130
|
/**
|
|
12
131
|
* Search and filter content across the learning catalog.
|
|
13
132
|
*
|
|
@@ -365,411 +484,1353 @@ export class SearchService {
|
|
|
365
484
|
});
|
|
366
485
|
}
|
|
367
486
|
/**
|
|
368
|
-
*
|
|
369
|
-
* If any detail-identifying parameters are present (course_id, program_id, etc.)
|
|
370
|
-
* the detail view is returned; otherwise the aggregated list view is returned.
|
|
371
|
-
* @returns any
|
|
372
|
-
* @throws ApiError
|
|
373
|
-
*/
|
|
374
|
-
public static searchPersonalizedCatalogRetrieve({
|
|
375
|
-
username,
|
|
376
|
-
allowSkillSearch = false,
|
|
377
|
-
alphabetical = false,
|
|
378
|
-
certificate,
|
|
379
|
-
content,
|
|
380
|
-
courseId,
|
|
381
|
-
duration,
|
|
382
|
-
language,
|
|
383
|
-
level,
|
|
384
|
-
limit = 12,
|
|
385
|
-
offset,
|
|
386
|
-
orderAscending = false,
|
|
387
|
-
orderBy,
|
|
388
|
-
pathwayId,
|
|
389
|
-
price,
|
|
390
|
-
programId,
|
|
391
|
-
programType,
|
|
392
|
-
promotion,
|
|
393
|
-
query,
|
|
394
|
-
recommended = false,
|
|
395
|
-
resourceId,
|
|
396
|
-
resourceType,
|
|
397
|
-
returnFacet = true,
|
|
398
|
-
returnItems = false,
|
|
399
|
-
roleId,
|
|
400
|
-
selfPaced,
|
|
401
|
-
skillId,
|
|
402
|
-
skills,
|
|
403
|
-
subject,
|
|
404
|
-
tags,
|
|
405
|
-
tenant,
|
|
406
|
-
topics,
|
|
407
|
-
updateFacet,
|
|
408
|
-
}: {
|
|
409
|
-
username: string,
|
|
410
|
-
/**
|
|
411
|
-
* Enable skill-based search
|
|
412
|
-
*/
|
|
413
|
-
allowSkillSearch?: boolean,
|
|
414
|
-
/**
|
|
415
|
-
* Sort alphabetically by name
|
|
416
|
-
*/
|
|
417
|
-
alphabetical?: boolean,
|
|
418
|
-
/**
|
|
419
|
-
* Filter by certificate type
|
|
420
|
-
*/
|
|
421
|
-
certificate?: Array<string>,
|
|
422
|
-
/**
|
|
423
|
-
* Content types to include in results
|
|
424
|
-
*/
|
|
425
|
-
content?: Array<string>,
|
|
426
|
-
/**
|
|
427
|
-
* Retrieve a specific course by ID
|
|
428
|
-
*/
|
|
429
|
-
courseId?: string,
|
|
430
|
-
/**
|
|
431
|
-
* Filter by course duration range
|
|
432
|
-
*/
|
|
433
|
-
duration?: Array<string>,
|
|
434
|
-
/**
|
|
435
|
-
* Filter by content language
|
|
436
|
-
*/
|
|
437
|
-
language?: Array<string>,
|
|
438
|
-
/**
|
|
439
|
-
* Filter by difficulty level
|
|
440
|
-
*/
|
|
441
|
-
level?: Array<string>,
|
|
442
|
-
/**
|
|
443
|
-
* Number of results per page
|
|
444
|
-
*/
|
|
445
|
-
limit?: number,
|
|
446
|
-
/**
|
|
447
|
-
* Starting position for pagination
|
|
448
|
-
*/
|
|
449
|
-
offset?: number,
|
|
450
|
-
/**
|
|
451
|
-
* Sort direction
|
|
452
|
-
*/
|
|
453
|
-
orderAscending?: boolean,
|
|
454
|
-
/**
|
|
455
|
-
* Field to sort results by
|
|
456
|
-
*/
|
|
457
|
-
orderBy?: string,
|
|
458
|
-
/**
|
|
459
|
-
* Retrieve a specific pathway by ID
|
|
460
|
-
*/
|
|
461
|
-
pathwayId?: string,
|
|
462
|
-
/**
|
|
463
|
-
* Filter by price/audit status
|
|
464
|
-
*/
|
|
465
|
-
price?: string,
|
|
466
|
-
/**
|
|
467
|
-
* Retrieve a specific program by ID
|
|
468
|
-
*/
|
|
469
|
-
programId?: string,
|
|
470
|
-
/**
|
|
471
|
-
* Filter by program type
|
|
472
|
-
*/
|
|
473
|
-
programType?: Array<string>,
|
|
474
|
-
/**
|
|
475
|
-
* Filter by promotion status
|
|
476
|
-
*/
|
|
477
|
-
promotion?: Array<string>,
|
|
478
|
-
/**
|
|
479
|
-
* Search term to filter content by name or description
|
|
480
|
-
*/
|
|
481
|
-
query?: string,
|
|
482
|
-
/**
|
|
483
|
-
* Show only recommended content
|
|
484
|
-
*/
|
|
485
|
-
recommended?: boolean,
|
|
486
|
-
/**
|
|
487
|
-
* Retrieve a specific resource by ID
|
|
488
|
-
*/
|
|
489
|
-
resourceId?: string,
|
|
490
|
-
/**
|
|
491
|
-
* Filter by resource type
|
|
492
|
-
*/
|
|
493
|
-
resourceType?: Array<string>,
|
|
494
|
-
/**
|
|
495
|
-
* Include facet data in response
|
|
496
|
-
*/
|
|
497
|
-
returnFacet?: boolean,
|
|
498
|
-
/**
|
|
499
|
-
* Include items in programs/pathways
|
|
500
|
-
*/
|
|
501
|
-
returnItems?: boolean,
|
|
502
|
-
/**
|
|
503
|
-
* Retrieve a specific role by ID
|
|
504
|
-
*/
|
|
505
|
-
roleId?: string,
|
|
506
|
-
/**
|
|
507
|
-
* Filter by course format
|
|
508
|
-
*/
|
|
509
|
-
selfPaced?: Array<string>,
|
|
510
|
-
/**
|
|
511
|
-
* Retrieve a specific skill by ID
|
|
512
|
-
*/
|
|
513
|
-
skillId?: string,
|
|
514
|
-
/**
|
|
515
|
-
* Filter by skills
|
|
516
|
-
*/
|
|
517
|
-
skills?: Array<string>,
|
|
518
|
-
/**
|
|
519
|
-
* Filter by subject areas
|
|
520
|
-
*/
|
|
521
|
-
subject?: Array<string>,
|
|
522
|
-
/**
|
|
523
|
-
* Filter by tags
|
|
524
|
-
*/
|
|
525
|
-
tags?: Array<string>,
|
|
526
|
-
/**
|
|
527
|
-
* Filter by tenant/organization
|
|
528
|
-
*/
|
|
529
|
-
tenant?: string,
|
|
530
|
-
/**
|
|
531
|
-
* Filter by topic areas
|
|
532
|
-
*/
|
|
533
|
-
topics?: Array<string>,
|
|
534
|
-
/**
|
|
535
|
-
* Force facet update
|
|
536
|
-
*/
|
|
537
|
-
updateFacet?: string,
|
|
538
|
-
}): CancelablePromise<Record<string, any>> {
|
|
539
|
-
return __request(OpenAPI, {
|
|
540
|
-
method: 'GET',
|
|
541
|
-
url: '/api/search/personalized-catalog/{username}/',
|
|
542
|
-
path: {
|
|
543
|
-
'username': username,
|
|
544
|
-
},
|
|
545
|
-
query: {
|
|
546
|
-
'allow_skill_search': allowSkillSearch,
|
|
547
|
-
'alphabetical': alphabetical,
|
|
548
|
-
'certificate': certificate,
|
|
549
|
-
'content': content,
|
|
550
|
-
'course_id': courseId,
|
|
551
|
-
'duration': duration,
|
|
552
|
-
'language': language,
|
|
553
|
-
'level': level,
|
|
554
|
-
'limit': limit,
|
|
555
|
-
'offset': offset,
|
|
556
|
-
'order_ascending': orderAscending,
|
|
557
|
-
'order_by': orderBy,
|
|
558
|
-
'pathway_id': pathwayId,
|
|
559
|
-
'price': price,
|
|
560
|
-
'program_id': programId,
|
|
561
|
-
'program_type': programType,
|
|
562
|
-
'promotion': promotion,
|
|
563
|
-
'query': query,
|
|
564
|
-
'recommended': recommended,
|
|
565
|
-
'resource_id': resourceId,
|
|
566
|
-
'resource_type': resourceType,
|
|
567
|
-
'return_facet': returnFacet,
|
|
568
|
-
'return_items': returnItems,
|
|
569
|
-
'role_id': roleId,
|
|
570
|
-
'self_paced': selfPaced,
|
|
571
|
-
'skill_id': skillId,
|
|
572
|
-
'skills': skills,
|
|
573
|
-
'subject': subject,
|
|
574
|
-
'tags': tags,
|
|
575
|
-
'tenant': tenant,
|
|
576
|
-
'topics': topics,
|
|
577
|
-
'update_facet': updateFacet,
|
|
578
|
-
},
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Search and filter users within a specific organization/tenant.
|
|
487
|
+
* Search and filter AI mentors across the platform.
|
|
583
488
|
*
|
|
584
|
-
* This endpoint provides a search interface for discovering
|
|
585
|
-
* with support for filtering
|
|
586
|
-
*
|
|
587
|
-
* Path Parameters:
|
|
588
|
-
* org (str): The organization/tenant identifier
|
|
589
|
-
* username (str): The username of the user making the request
|
|
489
|
+
* This endpoint provides a powerful search interface for discovering AI mentors
|
|
490
|
+
* with support for filtering, pagination, and detailed mentor information.
|
|
590
491
|
*
|
|
591
492
|
* Query Parameters:
|
|
592
|
-
* #
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
* # Department filtering
|
|
596
|
-
* department_mode (bool, optional): Enable department-based filtering (default: false)
|
|
597
|
-
* user_department (bool, optional): Legacy parameter for department_mode (default: false)
|
|
598
|
-
* department (list, optional): Filter by specific departments
|
|
493
|
+
* # Identification parameters (for detail view)
|
|
494
|
+
* id (int, optional): Retrieve a specific mentor by ID
|
|
495
|
+
* unique_id (uuid, optional): Retrieve a specific mentor by UUID
|
|
599
496
|
*
|
|
600
|
-
* #
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
497
|
+
* # Search and filtering parameters
|
|
498
|
+
* query (str, optional): Search term to filter mentors by name or description
|
|
499
|
+
* tenant (str, optional): Filter by tenant/organization
|
|
500
|
+
* llm (list, optional): Filter by language model type
|
|
501
|
+
* audience (list, optional): Filter by target audience
|
|
502
|
+
* category (list, optional): Filter by mentor category
|
|
503
|
+
* tags (list, optional): Filter by tags
|
|
504
|
+
* created_by (str, optional): Filter mentors created by specific user
|
|
605
505
|
*
|
|
606
|
-
* #
|
|
607
|
-
*
|
|
506
|
+
* # Sorting and pagination
|
|
507
|
+
* order_by (str, optional): Field to sort results by ('created_at', 'recently_accessed_at')
|
|
508
|
+
* order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
|
|
509
|
+
* limit (int, optional): Number of results per page (default: 12, max: 100)
|
|
608
510
|
* offset (int, optional): Starting position for pagination
|
|
609
511
|
*
|
|
610
512
|
* Returns:
|
|
611
|
-
*
|
|
612
|
-
*
|
|
513
|
+
* For detail view (when id or unique_id is provided):
|
|
514
|
+
* A JSON response containing a single mentor's details:
|
|
613
515
|
* {
|
|
614
|
-
* "
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
* "
|
|
626
|
-
* "
|
|
627
|
-
* "
|
|
628
|
-
*
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
516
|
+
* "id": 123,
|
|
517
|
+
* "unique_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
518
|
+
* "name": "Professor Smith",
|
|
519
|
+
* "description": "AI mentor specializing in computer science",
|
|
520
|
+
* "image_url": "https://example.com/images/prof-smith.jpg",
|
|
521
|
+
* "llm": {
|
|
522
|
+
* "id": 1,
|
|
523
|
+
* "name": "GPT-4",
|
|
524
|
+
* "description": "Advanced language model"
|
|
525
|
+
* },
|
|
526
|
+
* "audience": {
|
|
527
|
+
* "id": 2,
|
|
528
|
+
* "name": "College Students",
|
|
529
|
+
* "description": "For university-level learners"
|
|
530
|
+
* },
|
|
531
|
+
* "category": "Computer Science",
|
|
532
|
+
* "tags": ["programming", "algorithms", "data structures"],
|
|
533
|
+
* "created_at": "2023-01-15T12:00:00Z",
|
|
534
|
+
* "recently_accessed_at": "2023-06-20T15:30:00Z",
|
|
535
|
+
* "platform": {
|
|
536
|
+
* "id": 1,
|
|
537
|
+
* "name": "Example University",
|
|
538
|
+
* "key": "example-university"
|
|
633
539
|
* },
|
|
634
|
-
*
|
|
635
|
-
*
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
*
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
*
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
657
|
-
*
|
|
658
|
-
* }
|
|
659
|
-
*
|
|
660
|
-
*
|
|
661
|
-
*
|
|
662
|
-
*
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
540
|
+
* "visibility": "public",
|
|
541
|
+
* "settings": {
|
|
542
|
+
* "temperature": 0.7,
|
|
543
|
+
* "max_tokens": 1024,
|
|
544
|
+
* "system_prompt": "You are Professor Smith, an expert in computer science..."
|
|
545
|
+
* }
|
|
546
|
+
* }
|
|
547
|
+
*
|
|
548
|
+
* For list view:
|
|
549
|
+
* A JSON response containing:
|
|
550
|
+
* {
|
|
551
|
+
* "results": [
|
|
552
|
+
* {
|
|
553
|
+
* "id": 123,
|
|
554
|
+
* "unique_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
555
|
+
* "name": "Professor Smith",
|
|
556
|
+
* "description": "AI mentor specializing in computer science",
|
|
557
|
+
* "image_url": "https://example.com/images/prof-smith.jpg",
|
|
558
|
+
* "llm": {"id": 1, "name": "GPT-4"},
|
|
559
|
+
* "audience": {"id": 2, "name": "College Students"},
|
|
560
|
+
* "category": "Computer Science",
|
|
561
|
+
* "tags": ["programming", "algorithms"],
|
|
562
|
+
* "created_at": "2023-01-15T12:00:00Z",
|
|
563
|
+
* "recently_accessed_at": "2023-06-20T15:30:00Z"
|
|
564
|
+
* },
|
|
565
|
+
* // Additional mentor objects...
|
|
566
|
+
* ],
|
|
567
|
+
* "count": 50,
|
|
568
|
+
* "next": "https://api.example.com/api/search/mentors/?limit=12&offset=12",
|
|
569
|
+
* "previous": null,
|
|
570
|
+
* "current_page": 1,
|
|
571
|
+
* "num_pages": 5,
|
|
572
|
+
* "facets": {
|
|
573
|
+
* "llm": [
|
|
574
|
+
* {"key": "GPT-4", "doc_count": 30},
|
|
575
|
+
* {"key": "Claude", "doc_count": 20}
|
|
576
|
+
* ],
|
|
577
|
+
* "audience": [
|
|
578
|
+
* {"key": "College Students", "doc_count": 35},
|
|
579
|
+
* {"key": "Professionals", "doc_count": 15}
|
|
580
|
+
* ],
|
|
581
|
+
* "category": [
|
|
582
|
+
* {"key": "Computer Science", "doc_count": 25},
|
|
583
|
+
* {"key": "Mathematics", "doc_count": 15},
|
|
584
|
+
* {"key": "Business", "doc_count": 10}
|
|
585
|
+
* ]
|
|
586
|
+
* }
|
|
587
|
+
* }
|
|
588
|
+
*
|
|
589
|
+
* Error Responses:
|
|
590
|
+
* 400 Bad Request: If the request parameters are invalid
|
|
591
|
+
* 404 Not Found: If the requested mentor doesn't exist
|
|
592
|
+
* 500 Internal Server Error: If an unexpected error occurs
|
|
593
|
+
*
|
|
594
|
+
* Notes:
|
|
595
|
+
* - Results are cached for performance
|
|
596
|
+
* - Public mentors are visible to all users
|
|
597
|
+
* - Private mentors are only visible to authorized users
|
|
598
|
+
* @returns MentorSearchResponse
|
|
599
|
+
* @throws ApiError
|
|
600
|
+
*/
|
|
601
|
+
public static searchMentorsRetrieve({
|
|
602
|
+
audience,
|
|
603
|
+
category,
|
|
604
|
+
createdBy,
|
|
605
|
+
featured,
|
|
606
|
+
id,
|
|
607
|
+
includeMainPublicMentors = false,
|
|
608
|
+
limit = 12,
|
|
609
|
+
llm,
|
|
610
|
+
offset,
|
|
611
|
+
orderBy,
|
|
612
|
+
orderDirection = 'desc',
|
|
613
|
+
query,
|
|
614
|
+
tags,
|
|
615
|
+
tenant,
|
|
616
|
+
uniqueId,
|
|
617
|
+
}: {
|
|
618
|
+
/**
|
|
619
|
+
* Filter by target audience
|
|
620
|
+
*/
|
|
621
|
+
audience?: Array<string>,
|
|
622
|
+
/**
|
|
623
|
+
* Filter by mentor category
|
|
624
|
+
*/
|
|
625
|
+
category?: Array<string>,
|
|
626
|
+
/**
|
|
627
|
+
* Filter mentors created by specific user
|
|
628
|
+
*/
|
|
629
|
+
createdBy?: string,
|
|
630
|
+
/**
|
|
631
|
+
* Filter by featured status
|
|
632
|
+
*/
|
|
633
|
+
featured?: boolean,
|
|
634
|
+
/**
|
|
635
|
+
* Retrieve a specific mentor by ID
|
|
636
|
+
*/
|
|
637
|
+
id?: number,
|
|
638
|
+
/**
|
|
639
|
+
* Include public mentors from main tenant
|
|
640
|
+
*/
|
|
641
|
+
includeMainPublicMentors?: boolean,
|
|
642
|
+
/**
|
|
643
|
+
* Number of results per page
|
|
644
|
+
*/
|
|
645
|
+
limit?: number,
|
|
646
|
+
/**
|
|
647
|
+
* Filter by language model type
|
|
648
|
+
*/
|
|
649
|
+
llm?: Array<string>,
|
|
650
|
+
/**
|
|
651
|
+
* Starting position for pagination
|
|
652
|
+
*/
|
|
653
|
+
offset?: number,
|
|
654
|
+
/**
|
|
655
|
+
* Field to sort results by ('created_at', 'recently_accessed_at')
|
|
656
|
+
*/
|
|
657
|
+
orderBy?: string,
|
|
658
|
+
/**
|
|
659
|
+
* Sort direction ('asc' or 'desc')
|
|
660
|
+
*/
|
|
661
|
+
orderDirection?: string,
|
|
662
|
+
/**
|
|
663
|
+
* Search term to filter mentors by name or description
|
|
664
|
+
*/
|
|
665
|
+
query?: string,
|
|
666
|
+
/**
|
|
667
|
+
* Filter by tags
|
|
668
|
+
*/
|
|
669
|
+
tags?: Array<string>,
|
|
670
|
+
/**
|
|
671
|
+
* Filter by tenant/organization
|
|
672
|
+
*/
|
|
673
|
+
tenant?: string,
|
|
674
|
+
/**
|
|
675
|
+
* Retrieve a specific mentor by UUID
|
|
676
|
+
*/
|
|
677
|
+
uniqueId?: string,
|
|
678
|
+
}): CancelablePromise<MentorSearchResponse> {
|
|
679
|
+
return __request(OpenAPI, {
|
|
680
|
+
method: 'GET',
|
|
681
|
+
url: '/api/search/mentors/',
|
|
682
|
+
query: {
|
|
683
|
+
'audience': audience,
|
|
684
|
+
'category': category,
|
|
685
|
+
'created_by': createdBy,
|
|
686
|
+
'featured': featured,
|
|
687
|
+
'id': id,
|
|
688
|
+
'include_main_public_mentors': includeMainPublicMentors,
|
|
689
|
+
'limit': limit,
|
|
690
|
+
'llm': llm,
|
|
691
|
+
'offset': offset,
|
|
692
|
+
'order_by': orderBy,
|
|
693
|
+
'order_direction': orderDirection,
|
|
694
|
+
'query': query,
|
|
695
|
+
'tags': tags,
|
|
696
|
+
'tenant': tenant,
|
|
697
|
+
'unique_id': uniqueId,
|
|
698
|
+
},
|
|
699
|
+
errors: {
|
|
700
|
+
400: `Bad request`,
|
|
701
|
+
500: `Server error`,
|
|
702
|
+
},
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Search and filter documents associated with a specific mentor
|
|
707
|
+
* @returns DocumentSearchResponse
|
|
708
|
+
* @throws ApiError
|
|
709
|
+
*/
|
|
710
|
+
public static searchMentorsDocumentsRetrieve({
|
|
711
|
+
mentorUniqueId,
|
|
712
|
+
access,
|
|
713
|
+
documentType,
|
|
714
|
+
limit = 12,
|
|
715
|
+
offset,
|
|
716
|
+
orderBy,
|
|
717
|
+
orderDirection = 'desc',
|
|
718
|
+
platformKey,
|
|
719
|
+
query,
|
|
720
|
+
trainingStatus,
|
|
721
|
+
}: {
|
|
722
|
+
mentorUniqueId: string,
|
|
723
|
+
/**
|
|
724
|
+
* Filter by access level (e.g., 'public', 'private')
|
|
725
|
+
*/
|
|
726
|
+
access?: string,
|
|
727
|
+
/**
|
|
728
|
+
* Filter by document type (e.g., 'pdf', 'text')
|
|
729
|
+
*/
|
|
730
|
+
documentType?: string,
|
|
731
|
+
/**
|
|
732
|
+
* Number of results per page
|
|
733
|
+
*/
|
|
734
|
+
limit?: number,
|
|
735
|
+
/**
|
|
736
|
+
* Starting position for pagination
|
|
737
|
+
*/
|
|
738
|
+
offset?: number,
|
|
739
|
+
/**
|
|
740
|
+
* Field to sort results by ('date_created', 'last_modified', 'document_name')
|
|
741
|
+
*/
|
|
742
|
+
orderBy?: string,
|
|
743
|
+
/**
|
|
744
|
+
* Sort direction ('asc' or 'desc')
|
|
745
|
+
*/
|
|
746
|
+
orderDirection?: string,
|
|
747
|
+
/**
|
|
748
|
+
* Filter by platform key
|
|
749
|
+
*/
|
|
750
|
+
platformKey?: string,
|
|
751
|
+
/**
|
|
752
|
+
* Search term to filter documents by name or content
|
|
753
|
+
*/
|
|
754
|
+
query?: string,
|
|
755
|
+
/**
|
|
756
|
+
* Filter by training status (e.g., 'trained', 'pending')
|
|
757
|
+
*/
|
|
758
|
+
trainingStatus?: string,
|
|
759
|
+
}): CancelablePromise<DocumentSearchResponse> {
|
|
760
|
+
return __request(OpenAPI, {
|
|
761
|
+
method: 'GET',
|
|
762
|
+
url: '/api/search/mentors/{mentor_unique_id}/documents/',
|
|
763
|
+
path: {
|
|
764
|
+
'mentor_unique_id': mentorUniqueId,
|
|
765
|
+
},
|
|
766
|
+
query: {
|
|
767
|
+
'access': access,
|
|
768
|
+
'document_type': documentType,
|
|
769
|
+
'limit': limit,
|
|
770
|
+
'offset': offset,
|
|
771
|
+
'order_by': orderBy,
|
|
772
|
+
'order_direction': orderDirection,
|
|
773
|
+
'platform_key': platformKey,
|
|
774
|
+
'query': query,
|
|
775
|
+
'training_status': trainingStatus,
|
|
776
|
+
},
|
|
777
|
+
errors: {
|
|
778
|
+
400: `Bad request`,
|
|
779
|
+
404: `Mentor not found`,
|
|
780
|
+
500: `Server error`,
|
|
781
|
+
},
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Handle GET requests for tenant-specific mentor search.
|
|
786
|
+
*
|
|
787
|
+
* Args:
|
|
788
|
+
* request: HTTP request object
|
|
789
|
+
* org: Tenant/organization key
|
|
790
|
+
* username: Username of the user making the request
|
|
791
|
+
*
|
|
792
|
+
* Returns:
|
|
793
|
+
* Response: DRF Response object with search results
|
|
794
|
+
* @returns MentorSearchResponse
|
|
795
|
+
* @throws ApiError
|
|
796
|
+
*/
|
|
797
|
+
public static searchOrgsUsersMentorsRetrieve({
|
|
798
|
+
org,
|
|
799
|
+
username,
|
|
800
|
+
audience,
|
|
801
|
+
category,
|
|
802
|
+
createdBy,
|
|
803
|
+
featured,
|
|
804
|
+
id,
|
|
805
|
+
includeMainPublicMentors = false,
|
|
806
|
+
limit = 12,
|
|
807
|
+
llm,
|
|
808
|
+
offset,
|
|
809
|
+
orderBy,
|
|
810
|
+
orderDirection = 'desc',
|
|
811
|
+
query,
|
|
812
|
+
tags,
|
|
813
|
+
tenant,
|
|
814
|
+
uniqueId,
|
|
815
|
+
}: {
|
|
816
|
+
org: string,
|
|
817
|
+
username: string,
|
|
818
|
+
/**
|
|
819
|
+
* Filter by target audience
|
|
820
|
+
*/
|
|
821
|
+
audience?: Array<string>,
|
|
822
|
+
/**
|
|
823
|
+
* Filter by mentor category
|
|
824
|
+
*/
|
|
825
|
+
category?: Array<string>,
|
|
826
|
+
/**
|
|
827
|
+
* Filter mentors created by specific user
|
|
828
|
+
*/
|
|
829
|
+
createdBy?: string,
|
|
830
|
+
/**
|
|
831
|
+
* Filter by featured status
|
|
832
|
+
*/
|
|
833
|
+
featured?: boolean,
|
|
834
|
+
/**
|
|
835
|
+
* Retrieve a specific mentor by ID
|
|
836
|
+
*/
|
|
837
|
+
id?: number,
|
|
838
|
+
/**
|
|
839
|
+
* Include public mentors from main tenant
|
|
840
|
+
*/
|
|
841
|
+
includeMainPublicMentors?: boolean,
|
|
842
|
+
/**
|
|
843
|
+
* Number of results per page
|
|
844
|
+
*/
|
|
845
|
+
limit?: number,
|
|
846
|
+
/**
|
|
847
|
+
* Filter by language model type
|
|
848
|
+
*/
|
|
849
|
+
llm?: Array<string>,
|
|
850
|
+
/**
|
|
851
|
+
* Starting position for pagination
|
|
852
|
+
*/
|
|
853
|
+
offset?: number,
|
|
854
|
+
/**
|
|
855
|
+
* Field to sort results by ('created_at', 'recently_accessed_at')
|
|
856
|
+
*/
|
|
857
|
+
orderBy?: string,
|
|
858
|
+
/**
|
|
859
|
+
* Sort direction ('asc' or 'desc')
|
|
860
|
+
*/
|
|
861
|
+
orderDirection?: string,
|
|
862
|
+
/**
|
|
863
|
+
* Search term to filter mentors by name or description
|
|
864
|
+
*/
|
|
865
|
+
query?: string,
|
|
866
|
+
/**
|
|
867
|
+
* Filter by tags
|
|
868
|
+
*/
|
|
869
|
+
tags?: Array<string>,
|
|
870
|
+
/**
|
|
871
|
+
* Filter by tenant/organization
|
|
872
|
+
*/
|
|
873
|
+
tenant?: string,
|
|
874
|
+
/**
|
|
875
|
+
* Retrieve a specific mentor by UUID
|
|
876
|
+
*/
|
|
877
|
+
uniqueId?: string,
|
|
878
|
+
}): CancelablePromise<MentorSearchResponse> {
|
|
879
|
+
return __request(OpenAPI, {
|
|
880
|
+
method: 'GET',
|
|
881
|
+
url: '/api/search/orgs/{org}/users/{username}/mentors/',
|
|
882
|
+
path: {
|
|
883
|
+
'org': org,
|
|
884
|
+
'username': username,
|
|
885
|
+
},
|
|
886
|
+
query: {
|
|
887
|
+
'audience': audience,
|
|
888
|
+
'category': category,
|
|
889
|
+
'created_by': createdBy,
|
|
890
|
+
'featured': featured,
|
|
891
|
+
'id': id,
|
|
892
|
+
'include_main_public_mentors': includeMainPublicMentors,
|
|
893
|
+
'limit': limit,
|
|
894
|
+
'llm': llm,
|
|
895
|
+
'offset': offset,
|
|
896
|
+
'order_by': orderBy,
|
|
897
|
+
'order_direction': orderDirection,
|
|
898
|
+
'query': query,
|
|
899
|
+
'tags': tags,
|
|
900
|
+
'tenant': tenant,
|
|
901
|
+
'unique_id': uniqueId,
|
|
902
|
+
},
|
|
903
|
+
errors: {
|
|
904
|
+
400: `Bad request`,
|
|
905
|
+
403: `Forbidden - user does not have access`,
|
|
906
|
+
500: `Server error`,
|
|
907
|
+
},
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Search and filter AI prompts for a specific user within a tenant.
|
|
912
|
+
*
|
|
913
|
+
* This endpoint extends the base prompt search functionality but filters results
|
|
914
|
+
* to only show prompts that are available to a specific user within a specific
|
|
915
|
+
* organization/tenant.
|
|
916
|
+
*
|
|
917
|
+
* Path Parameters:
|
|
918
|
+
* org (str): The organization/tenant identifier
|
|
919
|
+
* username (str): The username to filter prompts for
|
|
920
|
+
*
|
|
921
|
+
* Query Parameters:
|
|
922
|
+
* Same as PromptSearchView, plus:
|
|
923
|
+
*
|
|
924
|
+
* # Identification parameters (for detail view)
|
|
925
|
+
* id (int, optional): Retrieve a specific prompt by ID
|
|
926
|
+
*
|
|
927
|
+
* Returns:
|
|
928
|
+
* Same format as PromptSearchView, but filtered to only include prompts
|
|
929
|
+
* that the specified user has access to within the specified organization.
|
|
930
|
+
*
|
|
931
|
+
* Error Responses:
|
|
932
|
+
* 400 Bad Request: If the request parameters are invalid
|
|
933
|
+
* 403 Forbidden: If the requested prompt exists but the user doesn't have access
|
|
934
|
+
* 404 Not Found: If the requested prompt doesn't exist
|
|
935
|
+
* 500 Internal Server Error: If an unexpected error occurs
|
|
936
|
+
*
|
|
937
|
+
* Access Control:
|
|
938
|
+
* - Results are filtered based on user's permissions within the organization
|
|
939
|
+
* - Private prompts are only visible to authorized users
|
|
940
|
+
* @returns PromptSearchResponse
|
|
941
|
+
* @throws ApiError
|
|
942
|
+
*/
|
|
943
|
+
public static searchOrgsUsersPromptsRetrieve({
|
|
944
|
+
org,
|
|
945
|
+
username,
|
|
946
|
+
alphabetical = false,
|
|
947
|
+
category,
|
|
948
|
+
createdBy,
|
|
949
|
+
filterFacet,
|
|
950
|
+
language,
|
|
951
|
+
limit = 10,
|
|
952
|
+
mentor,
|
|
953
|
+
offset,
|
|
954
|
+
orderDirection = 'desc',
|
|
955
|
+
query,
|
|
956
|
+
sortBy,
|
|
957
|
+
style,
|
|
958
|
+
tenant,
|
|
959
|
+
tone,
|
|
960
|
+
}: {
|
|
961
|
+
org: string,
|
|
962
|
+
username: string,
|
|
963
|
+
/**
|
|
964
|
+
* Sort alphabetically
|
|
965
|
+
*/
|
|
966
|
+
alphabetical?: boolean,
|
|
967
|
+
/**
|
|
968
|
+
* Filter by prompt category
|
|
969
|
+
*/
|
|
970
|
+
category?: string,
|
|
971
|
+
/**
|
|
972
|
+
* Filter prompts created by specific user
|
|
973
|
+
*/
|
|
974
|
+
createdBy?: string,
|
|
975
|
+
/**
|
|
976
|
+
* If true, return only facets without results
|
|
977
|
+
*/
|
|
978
|
+
filterFacet?: boolean,
|
|
979
|
+
/**
|
|
980
|
+
* Filter by prompt language
|
|
981
|
+
*/
|
|
982
|
+
language?: string,
|
|
983
|
+
/**
|
|
984
|
+
* Number of results per page
|
|
985
|
+
*/
|
|
986
|
+
limit?: number,
|
|
987
|
+
/**
|
|
988
|
+
* Filter by mentor UUID
|
|
989
|
+
*/
|
|
990
|
+
mentor?: string,
|
|
991
|
+
/**
|
|
992
|
+
* Starting position for pagination
|
|
993
|
+
*/
|
|
994
|
+
offset?: number,
|
|
995
|
+
/**
|
|
996
|
+
* Sort direction ('asc' or 'desc')
|
|
997
|
+
*/
|
|
998
|
+
orderDirection?: string,
|
|
999
|
+
/**
|
|
1000
|
+
* Search term to filter prompts by name or content
|
|
1001
|
+
*/
|
|
1002
|
+
query?: string,
|
|
1003
|
+
/**
|
|
1004
|
+
* Field to sort results by
|
|
1005
|
+
*/
|
|
1006
|
+
sortBy?: string,
|
|
1007
|
+
/**
|
|
1008
|
+
* Filter by prompt style
|
|
1009
|
+
*/
|
|
1010
|
+
style?: string,
|
|
1011
|
+
/**
|
|
1012
|
+
* Filter by tenant/organization
|
|
1013
|
+
*/
|
|
1014
|
+
tenant?: string,
|
|
1015
|
+
/**
|
|
1016
|
+
* Filter by prompt tone
|
|
1017
|
+
*/
|
|
1018
|
+
tone?: string,
|
|
1019
|
+
}): CancelablePromise<PromptSearchResponse> {
|
|
1020
|
+
return __request(OpenAPI, {
|
|
1021
|
+
method: 'GET',
|
|
1022
|
+
url: '/api/search/orgs/{org}/users/{username}/prompts/',
|
|
1023
|
+
path: {
|
|
1024
|
+
'org': org,
|
|
1025
|
+
'username': username,
|
|
1026
|
+
},
|
|
1027
|
+
query: {
|
|
1028
|
+
'alphabetical': alphabetical,
|
|
1029
|
+
'category': category,
|
|
1030
|
+
'created_by': createdBy,
|
|
1031
|
+
'filter_facet': filterFacet,
|
|
1032
|
+
'language': language,
|
|
1033
|
+
'limit': limit,
|
|
1034
|
+
'mentor': mentor,
|
|
1035
|
+
'offset': offset,
|
|
1036
|
+
'order_direction': orderDirection,
|
|
1037
|
+
'query': query,
|
|
1038
|
+
'sort_by': sortBy,
|
|
1039
|
+
'style': style,
|
|
1040
|
+
'tenant': tenant,
|
|
1041
|
+
'tone': tone,
|
|
1042
|
+
},
|
|
1043
|
+
errors: {
|
|
1044
|
+
400: `Bad request`,
|
|
1045
|
+
403: `Forbidden`,
|
|
1046
|
+
404: `Not found`,
|
|
1047
|
+
500: `Server error`,
|
|
1048
|
+
},
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Determine whether to serve a detail view or a list view.
|
|
1053
|
+
* @returns RecommendedCoursesResponse
|
|
1054
|
+
* @throws ApiError
|
|
1055
|
+
*/
|
|
1056
|
+
public static searchOrgsUsersRecommendedRetrieve({
|
|
1057
|
+
org,
|
|
1058
|
+
username,
|
|
1059
|
+
certificate,
|
|
1060
|
+
content,
|
|
1061
|
+
courseId,
|
|
1062
|
+
duration,
|
|
1063
|
+
language,
|
|
1064
|
+
level,
|
|
1065
|
+
limit = 12,
|
|
1066
|
+
offset,
|
|
1067
|
+
pathwayId,
|
|
1068
|
+
price,
|
|
1069
|
+
programId,
|
|
1070
|
+
programType,
|
|
1071
|
+
query,
|
|
1072
|
+
resourceId,
|
|
1073
|
+
resourceType,
|
|
1074
|
+
roleId,
|
|
1075
|
+
selfPaced,
|
|
1076
|
+
skillId,
|
|
1077
|
+
skills,
|
|
1078
|
+
subject,
|
|
1079
|
+
tags,
|
|
1080
|
+
tenant,
|
|
1081
|
+
topics,
|
|
1082
|
+
}: {
|
|
1083
|
+
org: string,
|
|
1084
|
+
username: string,
|
|
1085
|
+
/**
|
|
1086
|
+
* Filter by certificate type
|
|
1087
|
+
*/
|
|
1088
|
+
certificate?: Array<string>,
|
|
1089
|
+
/**
|
|
1090
|
+
* Content types to include in recommendations (courses, programs, pathways, skills, roles, resources)
|
|
1091
|
+
*/
|
|
1092
|
+
content?: Array<string>,
|
|
1093
|
+
/**
|
|
1094
|
+
* Retrieve a specific course by ID
|
|
1095
|
+
*/
|
|
1096
|
+
courseId?: string,
|
|
1097
|
+
/**
|
|
1098
|
+
* Filter by course duration range
|
|
1099
|
+
*/
|
|
1100
|
+
duration?: Array<string>,
|
|
1101
|
+
/**
|
|
1102
|
+
* Filter by content language
|
|
1103
|
+
*/
|
|
1104
|
+
language?: Array<string>,
|
|
1105
|
+
/**
|
|
1106
|
+
* Filter by difficulty level
|
|
1107
|
+
*/
|
|
1108
|
+
level?: Array<string>,
|
|
1109
|
+
/**
|
|
1110
|
+
* Number of results per page
|
|
1111
|
+
*/
|
|
1112
|
+
limit?: number,
|
|
1113
|
+
/**
|
|
1114
|
+
* Starting position for pagination
|
|
1115
|
+
*/
|
|
1116
|
+
offset?: number,
|
|
1117
|
+
/**
|
|
1118
|
+
* Retrieve a specific pathway by ID
|
|
1119
|
+
*/
|
|
1120
|
+
pathwayId?: string,
|
|
1121
|
+
/**
|
|
1122
|
+
* Filter by price/audit status
|
|
1123
|
+
*/
|
|
1124
|
+
price?: string,
|
|
1125
|
+
/**
|
|
1126
|
+
* Retrieve a specific program by ID
|
|
1127
|
+
*/
|
|
1128
|
+
programId?: string,
|
|
1129
|
+
/**
|
|
1130
|
+
* Filter by program type
|
|
1131
|
+
*/
|
|
1132
|
+
programType?: Array<string>,
|
|
1133
|
+
/**
|
|
1134
|
+
* Search term to filter content by name or description
|
|
1135
|
+
*/
|
|
1136
|
+
query?: string,
|
|
1137
|
+
/**
|
|
1138
|
+
* Retrieve a specific resource by ID
|
|
1139
|
+
*/
|
|
1140
|
+
resourceId?: string,
|
|
1141
|
+
/**
|
|
1142
|
+
* Filter by resource type
|
|
1143
|
+
*/
|
|
1144
|
+
resourceType?: Array<string>,
|
|
1145
|
+
/**
|
|
1146
|
+
* Retrieve a specific role by ID
|
|
1147
|
+
*/
|
|
1148
|
+
roleId?: string,
|
|
1149
|
+
/**
|
|
1150
|
+
* Filter by course format (self-paced, instructor-led)
|
|
1151
|
+
*/
|
|
1152
|
+
selfPaced?: Array<string>,
|
|
1153
|
+
/**
|
|
1154
|
+
* Retrieve a specific skill by ID
|
|
1155
|
+
*/
|
|
1156
|
+
skillId?: string,
|
|
1157
|
+
/**
|
|
1158
|
+
* Filter by skills
|
|
1159
|
+
*/
|
|
1160
|
+
skills?: Array<string>,
|
|
1161
|
+
/**
|
|
1162
|
+
* Filter by subject areas
|
|
1163
|
+
*/
|
|
1164
|
+
subject?: Array<string>,
|
|
1165
|
+
/**
|
|
1166
|
+
* Filter by tags
|
|
1167
|
+
*/
|
|
1168
|
+
tags?: Array<string>,
|
|
1169
|
+
/**
|
|
1170
|
+
* Filter by tenant/organization
|
|
1171
|
+
*/
|
|
1172
|
+
tenant?: string,
|
|
1173
|
+
/**
|
|
1174
|
+
* Filter by topic areas
|
|
1175
|
+
*/
|
|
1176
|
+
topics?: Array<string>,
|
|
1177
|
+
}): CancelablePromise<RecommendedCoursesResponse> {
|
|
1178
|
+
return __request(OpenAPI, {
|
|
1179
|
+
method: 'GET',
|
|
1180
|
+
url: '/api/search/orgs/{org}/users/{username}/recommended/',
|
|
1181
|
+
path: {
|
|
1182
|
+
'org': org,
|
|
1183
|
+
'username': username,
|
|
1184
|
+
},
|
|
1185
|
+
query: {
|
|
1186
|
+
'certificate': certificate,
|
|
1187
|
+
'content': content,
|
|
1188
|
+
'course_id': courseId,
|
|
1189
|
+
'duration': duration,
|
|
1190
|
+
'language': language,
|
|
1191
|
+
'level': level,
|
|
1192
|
+
'limit': limit,
|
|
1193
|
+
'offset': offset,
|
|
1194
|
+
'pathway_id': pathwayId,
|
|
1195
|
+
'price': price,
|
|
1196
|
+
'program_id': programId,
|
|
1197
|
+
'program_type': programType,
|
|
1198
|
+
'query': query,
|
|
1199
|
+
'resource_id': resourceId,
|
|
1200
|
+
'resource_type': resourceType,
|
|
1201
|
+
'role_id': roleId,
|
|
1202
|
+
'self_paced': selfPaced,
|
|
1203
|
+
'skill_id': skillId,
|
|
1204
|
+
'skills': skills,
|
|
1205
|
+
'subject': subject,
|
|
1206
|
+
'tags': tags,
|
|
1207
|
+
'tenant': tenant,
|
|
1208
|
+
'topics': topics,
|
|
1209
|
+
},
|
|
1210
|
+
errors: {
|
|
1211
|
+
400: `Bad request`,
|
|
1212
|
+
404: `User not found`,
|
|
1213
|
+
500: `Server error`,
|
|
1214
|
+
},
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Determine whether to serve a detail view or a list view.
|
|
1219
|
+
* If any detail-identifying parameters are present (course_id, program_id, etc.)
|
|
1220
|
+
* the detail view is returned; otherwise the aggregated list view is returned.
|
|
1221
|
+
* @returns any
|
|
1222
|
+
* @throws ApiError
|
|
1223
|
+
*/
|
|
1224
|
+
public static searchPersonalizedCatalogRetrieve({
|
|
1225
|
+
username,
|
|
1226
|
+
allowSkillSearch = false,
|
|
1227
|
+
alphabetical = false,
|
|
1228
|
+
certificate,
|
|
1229
|
+
content,
|
|
1230
|
+
courseId,
|
|
1231
|
+
duration,
|
|
1232
|
+
language,
|
|
1233
|
+
level,
|
|
1234
|
+
limit = 12,
|
|
1235
|
+
offset,
|
|
1236
|
+
orderAscending = false,
|
|
1237
|
+
orderBy,
|
|
1238
|
+
pathwayId,
|
|
1239
|
+
price,
|
|
1240
|
+
programId,
|
|
1241
|
+
programType,
|
|
1242
|
+
promotion,
|
|
1243
|
+
query,
|
|
1244
|
+
recommended = false,
|
|
1245
|
+
resourceId,
|
|
1246
|
+
resourceType,
|
|
1247
|
+
returnFacet = true,
|
|
1248
|
+
returnItems = false,
|
|
1249
|
+
roleId,
|
|
1250
|
+
selfPaced,
|
|
1251
|
+
skillId,
|
|
1252
|
+
skills,
|
|
1253
|
+
subject,
|
|
1254
|
+
tags,
|
|
1255
|
+
tenant,
|
|
1256
|
+
topics,
|
|
1257
|
+
updateFacet,
|
|
1258
|
+
}: {
|
|
1259
|
+
username: string,
|
|
1260
|
+
/**
|
|
1261
|
+
* Enable skill-based search
|
|
1262
|
+
*/
|
|
1263
|
+
allowSkillSearch?: boolean,
|
|
1264
|
+
/**
|
|
1265
|
+
* Sort alphabetically by name
|
|
1266
|
+
*/
|
|
1267
|
+
alphabetical?: boolean,
|
|
1268
|
+
/**
|
|
1269
|
+
* Filter by certificate type
|
|
1270
|
+
*/
|
|
1271
|
+
certificate?: Array<string>,
|
|
1272
|
+
/**
|
|
1273
|
+
* Content types to include in results
|
|
1274
|
+
*/
|
|
1275
|
+
content?: Array<string>,
|
|
1276
|
+
/**
|
|
1277
|
+
* Retrieve a specific course by ID
|
|
1278
|
+
*/
|
|
1279
|
+
courseId?: string,
|
|
1280
|
+
/**
|
|
1281
|
+
* Filter by course duration range
|
|
1282
|
+
*/
|
|
1283
|
+
duration?: Array<string>,
|
|
1284
|
+
/**
|
|
1285
|
+
* Filter by content language
|
|
1286
|
+
*/
|
|
1287
|
+
language?: Array<string>,
|
|
1288
|
+
/**
|
|
1289
|
+
* Filter by difficulty level
|
|
1290
|
+
*/
|
|
1291
|
+
level?: Array<string>,
|
|
1292
|
+
/**
|
|
1293
|
+
* Number of results per page
|
|
1294
|
+
*/
|
|
1295
|
+
limit?: number,
|
|
1296
|
+
/**
|
|
1297
|
+
* Starting position for pagination
|
|
1298
|
+
*/
|
|
1299
|
+
offset?: number,
|
|
1300
|
+
/**
|
|
1301
|
+
* Sort direction
|
|
1302
|
+
*/
|
|
1303
|
+
orderAscending?: boolean,
|
|
1304
|
+
/**
|
|
1305
|
+
* Field to sort results by
|
|
1306
|
+
*/
|
|
1307
|
+
orderBy?: string,
|
|
1308
|
+
/**
|
|
1309
|
+
* Retrieve a specific pathway by ID
|
|
1310
|
+
*/
|
|
1311
|
+
pathwayId?: string,
|
|
1312
|
+
/**
|
|
1313
|
+
* Filter by price/audit status
|
|
1314
|
+
*/
|
|
1315
|
+
price?: string,
|
|
1316
|
+
/**
|
|
1317
|
+
* Retrieve a specific program by ID
|
|
1318
|
+
*/
|
|
1319
|
+
programId?: string,
|
|
1320
|
+
/**
|
|
1321
|
+
* Filter by program type
|
|
1322
|
+
*/
|
|
1323
|
+
programType?: Array<string>,
|
|
1324
|
+
/**
|
|
1325
|
+
* Filter by promotion status
|
|
1326
|
+
*/
|
|
1327
|
+
promotion?: Array<string>,
|
|
1328
|
+
/**
|
|
1329
|
+
* Search term to filter content by name or description
|
|
1330
|
+
*/
|
|
1331
|
+
query?: string,
|
|
1332
|
+
/**
|
|
1333
|
+
* Show only recommended content
|
|
1334
|
+
*/
|
|
1335
|
+
recommended?: boolean,
|
|
1336
|
+
/**
|
|
1337
|
+
* Retrieve a specific resource by ID
|
|
1338
|
+
*/
|
|
1339
|
+
resourceId?: string,
|
|
1340
|
+
/**
|
|
1341
|
+
* Filter by resource type
|
|
1342
|
+
*/
|
|
1343
|
+
resourceType?: Array<string>,
|
|
1344
|
+
/**
|
|
1345
|
+
* Include facet data in response
|
|
1346
|
+
*/
|
|
1347
|
+
returnFacet?: boolean,
|
|
1348
|
+
/**
|
|
1349
|
+
* Include items in programs/pathways
|
|
1350
|
+
*/
|
|
1351
|
+
returnItems?: boolean,
|
|
1352
|
+
/**
|
|
1353
|
+
* Retrieve a specific role by ID
|
|
1354
|
+
*/
|
|
1355
|
+
roleId?: string,
|
|
1356
|
+
/**
|
|
1357
|
+
* Filter by course format
|
|
1358
|
+
*/
|
|
1359
|
+
selfPaced?: Array<string>,
|
|
1360
|
+
/**
|
|
1361
|
+
* Retrieve a specific skill by ID
|
|
1362
|
+
*/
|
|
1363
|
+
skillId?: string,
|
|
1364
|
+
/**
|
|
1365
|
+
* Filter by skills
|
|
1366
|
+
*/
|
|
1367
|
+
skills?: Array<string>,
|
|
1368
|
+
/**
|
|
1369
|
+
* Filter by subject areas
|
|
1370
|
+
*/
|
|
1371
|
+
subject?: Array<string>,
|
|
1372
|
+
/**
|
|
1373
|
+
* Filter by tags
|
|
1374
|
+
*/
|
|
1375
|
+
tags?: Array<string>,
|
|
1376
|
+
/**
|
|
1377
|
+
* Filter by tenant/organization
|
|
1378
|
+
*/
|
|
1379
|
+
tenant?: string,
|
|
1380
|
+
/**
|
|
1381
|
+
* Filter by topic areas
|
|
1382
|
+
*/
|
|
1383
|
+
topics?: Array<string>,
|
|
1384
|
+
/**
|
|
1385
|
+
* Force facet update
|
|
1386
|
+
*/
|
|
1387
|
+
updateFacet?: string,
|
|
1388
|
+
}): CancelablePromise<Record<string, any>> {
|
|
1389
|
+
return __request(OpenAPI, {
|
|
1390
|
+
method: 'GET',
|
|
1391
|
+
url: '/api/search/personalized-catalog/{username}/',
|
|
1392
|
+
path: {
|
|
1393
|
+
'username': username,
|
|
1394
|
+
},
|
|
1395
|
+
query: {
|
|
1396
|
+
'allow_skill_search': allowSkillSearch,
|
|
1397
|
+
'alphabetical': alphabetical,
|
|
1398
|
+
'certificate': certificate,
|
|
1399
|
+
'content': content,
|
|
1400
|
+
'course_id': courseId,
|
|
1401
|
+
'duration': duration,
|
|
1402
|
+
'language': language,
|
|
1403
|
+
'level': level,
|
|
1404
|
+
'limit': limit,
|
|
1405
|
+
'offset': offset,
|
|
1406
|
+
'order_ascending': orderAscending,
|
|
1407
|
+
'order_by': orderBy,
|
|
1408
|
+
'pathway_id': pathwayId,
|
|
1409
|
+
'price': price,
|
|
1410
|
+
'program_id': programId,
|
|
1411
|
+
'program_type': programType,
|
|
1412
|
+
'promotion': promotion,
|
|
1413
|
+
'query': query,
|
|
1414
|
+
'recommended': recommended,
|
|
1415
|
+
'resource_id': resourceId,
|
|
1416
|
+
'resource_type': resourceType,
|
|
1417
|
+
'return_facet': returnFacet,
|
|
1418
|
+
'return_items': returnItems,
|
|
1419
|
+
'role_id': roleId,
|
|
1420
|
+
'self_paced': selfPaced,
|
|
1421
|
+
'skill_id': skillId,
|
|
1422
|
+
'skills': skills,
|
|
1423
|
+
'subject': subject,
|
|
1424
|
+
'tags': tags,
|
|
1425
|
+
'tenant': tenant,
|
|
1426
|
+
'topics': topics,
|
|
1427
|
+
'update_facet': updateFacet,
|
|
1428
|
+
},
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Search and filter AI prompts across the platform.
|
|
1433
|
+
*
|
|
1434
|
+
* This endpoint provides a search interface for discovering AI prompts
|
|
1435
|
+
* with support for filtering, pagination, and detailed prompt information.
|
|
1436
|
+
*
|
|
1437
|
+
* Query Parameters:
|
|
1438
|
+
* # Identification parameters (for detail view)
|
|
1439
|
+
* id (int, optional): Retrieve a specific prompt by ID
|
|
1440
|
+
*
|
|
1441
|
+
* # Search and filtering parameters
|
|
1442
|
+
* query (str, optional): Search term to filter prompts by name or content
|
|
1443
|
+
* category (str, optional): Filter by prompt category
|
|
1444
|
+
* language (str, optional): Filter by prompt language
|
|
1445
|
+
* style (str, optional): Filter by writing style
|
|
1446
|
+
* tone (str, optional): Filter by tone
|
|
1447
|
+
* tenant (str, optional): Filter by tenant/organization
|
|
1448
|
+
* mentor (str, optional): Filter by associated mentor (UUID)
|
|
1449
|
+
*
|
|
1450
|
+
* # Sorting and pagination
|
|
1451
|
+
* sort_by (str, optional): Field to sort results by
|
|
1452
|
+
* order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
|
|
1453
|
+
* alphabetical (bool, optional): Sort alphabetically by name (default: false)
|
|
1454
|
+
* limit (int, optional): Number of results per page (default: 10)
|
|
1455
|
+
* offset (int, optional): Starting position for pagination
|
|
1456
|
+
*
|
|
1457
|
+
* # Special parameters
|
|
1458
|
+
* filter_facet (any, optional): If present, return only facets without results
|
|
1459
|
+
*
|
|
1460
|
+
* Returns:
|
|
1461
|
+
* For detail view (when id is provided):
|
|
1462
|
+
* A JSON response containing a single prompt's details:
|
|
1463
|
+
* {
|
|
1464
|
+
* "id": 456,
|
|
1465
|
+
* "name": "Essay Writing Guide",
|
|
1466
|
+
* "content": "Write a well-structured essay on the following topic: {{topic}}...",
|
|
1467
|
+
* "category": "Academic Writing",
|
|
1468
|
+
* "language": "English",
|
|
1469
|
+
* "style": "Formal",
|
|
1470
|
+
* "tone": "Professional",
|
|
1471
|
+
* "mentor": {
|
|
1472
|
+
* "id": 123,
|
|
1473
|
+
* "unique_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
1474
|
+
* "name": "Professor Smith"
|
|
1475
|
+
* },
|
|
1476
|
+
* "platform": {
|
|
1477
|
+
* "id": 1,
|
|
1478
|
+
* "name": "Example University",
|
|
1479
|
+
* "key": "example-university"
|
|
1480
|
+
* },
|
|
1481
|
+
* "created_at": "2023-02-10T09:15:00Z",
|
|
1482
|
+
* "updated_at": "2023-05-05T14:20:00Z",
|
|
1483
|
+
* "visibility": "public",
|
|
1484
|
+
* "variables": ["topic", "length", "style"]
|
|
1485
|
+
* }
|
|
1486
|
+
*
|
|
1487
|
+
* For list view:
|
|
1488
|
+
* A JSON response containing:
|
|
1489
|
+
* {
|
|
1490
|
+
* "results": [
|
|
1491
|
+
* {
|
|
1492
|
+
* "id": 456,
|
|
1493
|
+
* "name": "Essay Writing Guide",
|
|
1494
|
+
* "content": "Write a well-structured essay on the following topic: {{topic}}...",
|
|
1495
|
+
* "category": "Academic Writing",
|
|
1496
|
+
* "language": "English",
|
|
1497
|
+
* "style": "Formal",
|
|
1498
|
+
* "tone": "Professional",
|
|
1499
|
+
* "mentor": {"id": 123, "name": "Professor Smith"},
|
|
1500
|
+
* "created_at": "2023-02-10T09:15:00Z",
|
|
1501
|
+
* "updated_at": "2023-05-05T14:20:00Z"
|
|
1502
|
+
* },
|
|
1503
|
+
* // Additional prompt objects...
|
|
1504
|
+
* ],
|
|
1505
|
+
* "count": 30,
|
|
1506
|
+
* "next": "?limit=10&offset=10",
|
|
1507
|
+
* "previous": null,
|
|
1508
|
+
* "current_page": 1,
|
|
1509
|
+
* "num_pages": 3,
|
|
1510
|
+
* "facets": {
|
|
1511
|
+
* "category": [
|
|
1512
|
+
* {"key": "Academic Writing", "doc_count": 15},
|
|
1513
|
+
* {"key": "Creative Writing", "doc_count": 10},
|
|
1514
|
+
* {"key": "Technical Documentation", "doc_count": 5}
|
|
1515
|
+
* ],
|
|
1516
|
+
* "language": [
|
|
1517
|
+
* {"key": "English", "doc_count": 25},
|
|
1518
|
+
* {"key": "Spanish", "doc_count": 5}
|
|
1519
|
+
* ],
|
|
1520
|
+
* "style": [
|
|
1521
|
+
* {"key": "Formal", "doc_count": 20},
|
|
1522
|
+
* {"key": "Casual", "doc_count": 10}
|
|
1523
|
+
* ],
|
|
1524
|
+
* "tone": [
|
|
1525
|
+
* {"key": "Professional", "doc_count": 15},
|
|
1526
|
+
* {"key": "Friendly", "doc_count": 10},
|
|
1527
|
+
* {"key": "Technical", "doc_count": 5}
|
|
1528
|
+
* ]
|
|
1529
|
+
* }
|
|
1530
|
+
* }
|
|
1531
|
+
*
|
|
1532
|
+
* Error Responses:
|
|
1533
|
+
* 400 Bad Request: If the request parameters are invalid
|
|
1534
|
+
* 403 Forbidden: If the requested prompt exists but is not publicly available
|
|
1535
|
+
* 404 Not Found: If the requested prompt doesn't exist
|
|
1536
|
+
* 500 Internal Server Error: If an unexpected error occurs
|
|
1537
|
+
*
|
|
1538
|
+
* Notes:
|
|
1539
|
+
* - Only publicly available prompts are returned by default
|
|
1540
|
+
* - When filtering by mentor, the mentor ID must be a valid UUID
|
|
1541
|
+
* @returns PromptSearchResponse
|
|
1542
|
+
* @throws ApiError
|
|
1543
|
+
*/
|
|
1544
|
+
public static searchPromptsRetrieve({
|
|
1545
|
+
alphabetical = false,
|
|
1546
|
+
category,
|
|
1547
|
+
createdBy,
|
|
1548
|
+
filterFacet,
|
|
1549
|
+
language,
|
|
1550
|
+
limit = 10,
|
|
1551
|
+
mentor,
|
|
1552
|
+
offset,
|
|
1553
|
+
orderDirection = 'desc',
|
|
1554
|
+
query,
|
|
1555
|
+
sortBy,
|
|
1556
|
+
style,
|
|
1557
|
+
tenant,
|
|
1558
|
+
tone,
|
|
1559
|
+
}: {
|
|
1560
|
+
/**
|
|
1561
|
+
* Sort alphabetically
|
|
1562
|
+
*/
|
|
1563
|
+
alphabetical?: boolean,
|
|
1564
|
+
/**
|
|
1565
|
+
* Filter by prompt category
|
|
1566
|
+
*/
|
|
1567
|
+
category?: string,
|
|
1568
|
+
/**
|
|
1569
|
+
* Filter prompts created by specific user
|
|
1570
|
+
*/
|
|
1571
|
+
createdBy?: string,
|
|
1572
|
+
/**
|
|
1573
|
+
* If true, return only facets without results
|
|
1574
|
+
*/
|
|
1575
|
+
filterFacet?: boolean,
|
|
1576
|
+
/**
|
|
1577
|
+
* Filter by prompt language
|
|
1578
|
+
*/
|
|
1579
|
+
language?: string,
|
|
1580
|
+
/**
|
|
1581
|
+
* Number of results per page
|
|
1582
|
+
*/
|
|
1583
|
+
limit?: number,
|
|
1584
|
+
/**
|
|
1585
|
+
* Filter by mentor UUID
|
|
1586
|
+
*/
|
|
1587
|
+
mentor?: string,
|
|
1588
|
+
/**
|
|
1589
|
+
* Starting position for pagination
|
|
1590
|
+
*/
|
|
1591
|
+
offset?: number,
|
|
1592
|
+
/**
|
|
1593
|
+
* Sort direction ('asc' or 'desc')
|
|
1594
|
+
*/
|
|
1595
|
+
orderDirection?: string,
|
|
1596
|
+
/**
|
|
1597
|
+
* Search term to filter prompts by name or content
|
|
1598
|
+
*/
|
|
1599
|
+
query?: string,
|
|
1600
|
+
/**
|
|
1601
|
+
* Field to sort results by
|
|
1602
|
+
*/
|
|
1603
|
+
sortBy?: string,
|
|
1604
|
+
/**
|
|
1605
|
+
* Filter by prompt style
|
|
1606
|
+
*/
|
|
1607
|
+
style?: string,
|
|
1608
|
+
/**
|
|
1609
|
+
* Filter by tenant/organization
|
|
1610
|
+
*/
|
|
1611
|
+
tenant?: string,
|
|
1612
|
+
/**
|
|
1613
|
+
* Filter by prompt tone
|
|
1614
|
+
*/
|
|
1615
|
+
tone?: string,
|
|
1616
|
+
}): CancelablePromise<PromptSearchResponse> {
|
|
1617
|
+
return __request(OpenAPI, {
|
|
1618
|
+
method: 'GET',
|
|
1619
|
+
url: '/api/search/prompts/',
|
|
1620
|
+
query: {
|
|
1621
|
+
'alphabetical': alphabetical,
|
|
1622
|
+
'category': category,
|
|
1623
|
+
'created_by': createdBy,
|
|
1624
|
+
'filter_facet': filterFacet,
|
|
1625
|
+
'language': language,
|
|
1626
|
+
'limit': limit,
|
|
1627
|
+
'mentor': mentor,
|
|
1628
|
+
'offset': offset,
|
|
1629
|
+
'order_direction': orderDirection,
|
|
1630
|
+
'query': query,
|
|
1631
|
+
'sort_by': sortBy,
|
|
1632
|
+
'style': style,
|
|
1633
|
+
'tenant': tenant,
|
|
1634
|
+
'tone': tone,
|
|
1635
|
+
},
|
|
1636
|
+
errors: {
|
|
1637
|
+
400: `Bad request`,
|
|
1638
|
+
500: `Server error`,
|
|
1639
|
+
},
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* Search and filter users within a specific organization/tenant.
|
|
1644
|
+
*
|
|
1645
|
+
* This endpoint provides a search interface for discovering users within an organization,
|
|
1646
|
+
* with support for filtering by departments, pagination, and faceted filtering.
|
|
1647
|
+
*
|
|
1648
|
+
* Path Parameters:
|
|
1649
|
+
* org (str): The organization/tenant identifier
|
|
1650
|
+
* username (str): The username of the user making the request
|
|
1651
|
+
*
|
|
1652
|
+
* Query Parameters:
|
|
1653
|
+
* # Search parameters
|
|
1654
|
+
* query (str, optional): Search term to filter users by name, username, or email
|
|
1655
|
+
*
|
|
1656
|
+
* # Department filtering
|
|
1657
|
+
* department_mode (bool, optional): Enable department-based filtering (default: false)
|
|
1658
|
+
* user_department (bool, optional): Legacy parameter for department_mode (default: false)
|
|
1659
|
+
* department (list, optional): Filter by specific departments
|
|
1660
|
+
*
|
|
1661
|
+
* # Additional filters
|
|
1662
|
+
* role (list, optional): Filter by user role
|
|
1663
|
+
* status (list, optional): Filter by user status (active, inactive)
|
|
1664
|
+
* joined_date (list, optional): Filter by join date range
|
|
1665
|
+
* last_login (list, optional): Filter by last login date range
|
|
1666
|
+
*
|
|
1667
|
+
* # Pagination
|
|
1668
|
+
* limit (int, optional): Number of results per page (default: 10)
|
|
1669
|
+
* offset (int, optional): Starting position for pagination
|
|
1670
|
+
*
|
|
1671
|
+
* Returns:
|
|
1672
|
+
* A JSON response containing:
|
|
1673
|
+
* ```
|
|
1674
|
+
* {
|
|
1675
|
+
* "results": [
|
|
1676
|
+
* {
|
|
1677
|
+
* "id": 123,
|
|
1678
|
+
* "username": "john.doe",
|
|
1679
|
+
* "email": "john.doe@example.com",
|
|
1680
|
+
* "first_name": "John",
|
|
1681
|
+
* "last_name": "Doe",
|
|
1682
|
+
* "full_name": "John Doe",
|
|
1683
|
+
* "profile_image": "https://example.com/profiles/john-doe.jpg",
|
|
1684
|
+
* "role": "Student",
|
|
1685
|
+
* "departments": ["Computer Science", "Data Science"],
|
|
1686
|
+
* "status": "active",
|
|
1687
|
+
* "joined_date": "2023-01-15T12:00:00Z",
|
|
1688
|
+
* "last_login": "2023-06-20T15:30:00Z",
|
|
1689
|
+
* "metadata": {
|
|
1690
|
+
* "location": "New York",
|
|
1691
|
+
* "title": "Software Engineer",
|
|
1692
|
+
* "bio": "Experienced software engineer with a passion for education"
|
|
1693
|
+
* }
|
|
1694
|
+
* },
|
|
1695
|
+
* // Additional user objects...
|
|
1696
|
+
* ],
|
|
1697
|
+
* "count": 50,
|
|
1698
|
+
* "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
|
|
1699
|
+
* "previous": null,
|
|
1700
|
+
* "current_page": 1,
|
|
1701
|
+
* "total_pages": 5,
|
|
1702
|
+
* "facets": {
|
|
1703
|
+
* "role": [
|
|
1704
|
+
* {"key": "Student", "doc_count": 30},
|
|
1705
|
+
* {"key": "Instructor", "doc_count": 15},
|
|
1706
|
+
* {"key": "Admin", "doc_count": 5}
|
|
1707
|
+
* ],
|
|
1708
|
+
* "department": [
|
|
1709
|
+
* {"key": "Computer Science", "doc_count": 20},
|
|
1710
|
+
* {"key": "Data Science", "doc_count": 15},
|
|
1711
|
+
* {"key": "Business", "doc_count": 10},
|
|
1712
|
+
* {"key": "Engineering", "doc_count": 5}
|
|
1713
|
+
* ],
|
|
1714
|
+
* "status": [
|
|
1715
|
+
* {"key": "active", "doc_count": 45},
|
|
1716
|
+
* {"key": "inactive", "doc_count": 5}
|
|
1717
|
+
* ]
|
|
1718
|
+
* }
|
|
1719
|
+
* }
|
|
1720
|
+
* ```
|
|
1721
|
+
* Error Responses:
|
|
1722
|
+
* 400 Bad Request: If the request parameters are invalid
|
|
1723
|
+
* 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
|
|
1724
|
+
* 404 Not Found: If the user or organization doesn't exist
|
|
1725
|
+
* 500 Internal Server Error: If an unexpected error occurs
|
|
1726
|
+
*
|
|
1727
|
+
* Access Control:
|
|
1728
|
+
* - The requesting user must have an active account in the specified organization
|
|
1729
|
+
* - When department_mode is enabled, the user must be an admin of at least one department
|
|
1730
|
+
* - Department filtering restricts results to users in departments where the requesting user is an admin
|
|
1731
|
+
* @returns UserSearchResponse
|
|
1732
|
+
* @throws ApiError
|
|
1733
|
+
*/
|
|
1734
|
+
public static searchUsersOrgsUsersRetrieve({
|
|
1735
|
+
org,
|
|
1736
|
+
username,
|
|
1737
|
+
department,
|
|
1738
|
+
educationDegree,
|
|
1739
|
+
educationFieldOfStudy,
|
|
1740
|
+
educationInstitution,
|
|
1741
|
+
includeMembershipData = false,
|
|
1742
|
+
limit = 10,
|
|
1743
|
+
offset,
|
|
1744
|
+
q,
|
|
1745
|
+
userResumeCompany,
|
|
1746
|
+
userResumeIndustry,
|
|
1747
|
+
userResumeJobTitle,
|
|
1748
|
+
userResumeLocation,
|
|
1749
|
+
userResumeSkills,
|
|
1750
|
+
}: {
|
|
1751
|
+
org: string,
|
|
1752
|
+
username: string,
|
|
1753
|
+
/**
|
|
1754
|
+
* Filter by department names
|
|
1755
|
+
*/
|
|
1756
|
+
department?: Array<string>,
|
|
1757
|
+
/**
|
|
1758
|
+
* Filter by degree
|
|
1759
|
+
*/
|
|
1760
|
+
educationDegree?: string,
|
|
1761
|
+
/**
|
|
1762
|
+
* Filter by field of study
|
|
1763
|
+
*/
|
|
1764
|
+
educationFieldOfStudy?: string,
|
|
1765
|
+
/**
|
|
1766
|
+
* Filter by institution
|
|
1767
|
+
*/
|
|
1768
|
+
educationInstitution?: string,
|
|
1769
|
+
/**
|
|
1770
|
+
* Include user group membership data in results
|
|
1771
|
+
*/
|
|
1772
|
+
includeMembershipData?: boolean,
|
|
1773
|
+
/**
|
|
1774
|
+
* Number of results per page
|
|
1775
|
+
*/
|
|
1776
|
+
limit?: number,
|
|
1777
|
+
/**
|
|
1778
|
+
* Starting position for pagination
|
|
1779
|
+
*/
|
|
1780
|
+
offset?: number,
|
|
1781
|
+
/**
|
|
1782
|
+
* Search term to filter users by name, email, or other attributes
|
|
1783
|
+
*/
|
|
1784
|
+
q?: string,
|
|
1785
|
+
/**
|
|
1786
|
+
* Filter by company
|
|
1787
|
+
*/
|
|
1788
|
+
userResumeCompany?: string,
|
|
1789
|
+
/**
|
|
1790
|
+
* Filter by industry
|
|
1791
|
+
*/
|
|
1792
|
+
userResumeIndustry?: string,
|
|
1793
|
+
/**
|
|
1794
|
+
* Filter by job title
|
|
1795
|
+
*/
|
|
1796
|
+
userResumeJobTitle?: string,
|
|
1797
|
+
/**
|
|
1798
|
+
* Filter by location
|
|
1799
|
+
*/
|
|
1800
|
+
userResumeLocation?: string,
|
|
1801
|
+
/**
|
|
1802
|
+
* Filter by skills
|
|
1803
|
+
*/
|
|
1804
|
+
userResumeSkills?: string,
|
|
1805
|
+
}): CancelablePromise<UserSearchResponse> {
|
|
1806
|
+
return __request(OpenAPI, {
|
|
1807
|
+
method: 'GET',
|
|
1808
|
+
url: '/api/search/users/orgs/{org}/users/{username}/',
|
|
1809
|
+
path: {
|
|
1810
|
+
'org': org,
|
|
1811
|
+
'username': username,
|
|
1812
|
+
},
|
|
1813
|
+
query: {
|
|
1814
|
+
'department': department,
|
|
1815
|
+
'education__degree': educationDegree,
|
|
1816
|
+
'education__field_of_study': educationFieldOfStudy,
|
|
1817
|
+
'education__institution': educationInstitution,
|
|
1818
|
+
'include_membership_data': includeMembershipData,
|
|
1819
|
+
'limit': limit,
|
|
1820
|
+
'offset': offset,
|
|
1821
|
+
'q': q,
|
|
1822
|
+
'user_resume__company': userResumeCompany,
|
|
1823
|
+
'user_resume__industry': userResumeIndustry,
|
|
1824
|
+
'user_resume__job_title': userResumeJobTitle,
|
|
1825
|
+
'user_resume__location': userResumeLocation,
|
|
1826
|
+
'user_resume__skills': userResumeSkills,
|
|
1827
|
+
},
|
|
1828
|
+
errors: {
|
|
1829
|
+
400: `Bad request`,
|
|
1830
|
+
403: `Forbidden`,
|
|
1831
|
+
404: `Not found`,
|
|
1832
|
+
500: `Server error`,
|
|
1833
|
+
},
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1836
|
+
}
|