UNPKG

graphlit-client

Version:
2,307 lines (2,306 loc) 193 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScreenshotPage = exports.QueryContentsGraph = exports.QueryContentsFacets = exports.QueryContents = exports.PublishText = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestTextBatch = exports.IngestText = exports.IngestEncodedFile = exports.IngestBatch = exports.GetContent = exports.ExtractText = exports.ExtractContents = exports.DescribeImage = exports.DescribeEncodedImage = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.CountContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.CountCollections = exports.AddContentsToCollections = exports.UpsertCategory = exports.UpdateCategory = exports.QueryCategories = exports.GetCategory = exports.DeleteCategory = exports.DeleteCategories = exports.DeleteAllCategories = exports.CreateCategory = exports.CountCategories = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = exports.CountAlerts = void 0; exports.QueryNotionDatabases = exports.QueryMicrosoftTeamsTeams = exports.QueryMicrosoftTeamsChannels = exports.QueryLinearProjects = exports.QueryFeeds = exports.IsFeedDone = exports.GetSharePointConsentUri = exports.GetFeed = exports.FeedExists = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.CountFeeds = exports.UpdateEvent = exports.QueryEvents = exports.GetEvent = exports.DeleteEvents = exports.DeleteEvent = exports.DeleteAllEvents = exports.CreateEvent = exports.CountEvents = exports.UpdateConversation = exports.SuggestConversation = exports.ReviseText = exports.ReviseImage = exports.ReviseEncodedImage = exports.ReviseContent = exports.RetrieveSources = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.Prompt = exports.GetConversation = exports.FormatConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CountConversations = exports.ContinueConversation = exports.CompleteConversation = exports.CloseConversation = exports.ClearConversation = exports.AskGraphlit = exports.UpdateContent = exports.SummarizeText = exports.SummarizeContents = void 0; exports.DeleteAllMedicalDrugClasses = exports.CreateMedicalDrugClass = exports.CountMedicalDrugClasses = exports.UpdateMedicalDrug = exports.QueryMedicalDrugs = exports.GetMedicalDrug = exports.DeleteMedicalDrugs = exports.DeleteMedicalDrug = exports.DeleteAllMedicalDrugs = exports.CreateMedicalDrug = exports.CountMedicalDrugs = exports.UpdateMedicalDevice = exports.QueryMedicalDevices = exports.GetMedicalDevice = exports.DeleteMedicalDevices = exports.DeleteMedicalDevice = exports.DeleteAllMedicalDevices = exports.CreateMedicalDevice = exports.CountMedicalDevices = exports.UpdateMedicalContraindication = exports.QueryMedicalContraindications = exports.GetMedicalContraindication = exports.DeleteMedicalContraindications = exports.DeleteMedicalContraindication = exports.DeleteAllMedicalContraindications = exports.CreateMedicalContraindication = exports.CountMedicalContraindications = exports.UpdateMedicalCondition = exports.QueryMedicalConditions = exports.GetMedicalCondition = exports.DeleteMedicalConditions = exports.DeleteMedicalCondition = exports.DeleteAllMedicalConditions = exports.CreateMedicalCondition = exports.CountMedicalConditions = exports.UpsertLabel = exports.UpdateLabel = exports.QueryLabels = exports.GetLabel = exports.DeleteLabels = exports.DeleteLabel = exports.DeleteAllLabels = exports.CreateLabel = exports.CountLabels = exports.UpdateFeed = exports.QuerySlackChannels = exports.QuerySharePointLibraries = exports.QuerySharePointFolders = exports.QueryOneDriveFolders = exports.QueryNotionPages = void 0; exports.DeleteMedicalTherapy = exports.DeleteMedicalTherapies = exports.DeleteAllMedicalTherapies = exports.CreateMedicalTherapy = exports.CountMedicalTherapies = exports.UpdateMedicalTest = exports.QueryMedicalTests = exports.GetMedicalTest = exports.DeleteMedicalTests = exports.DeleteMedicalTest = exports.DeleteAllMedicalTests = exports.CreateMedicalTest = exports.CountMedicalTests = exports.UpdateMedicalStudy = exports.QueryMedicalStudies = exports.GetMedicalStudy = exports.DeleteMedicalStudy = exports.DeleteMedicalStudies = exports.DeleteAllMedicalStudies = exports.CreateMedicalStudy = exports.CountMedicalStudies = exports.UpdateMedicalProcedure = exports.QueryMedicalProcedures = exports.GetMedicalProcedure = exports.DeleteMedicalProcedures = exports.DeleteMedicalProcedure = exports.DeleteAllMedicalProcedures = exports.CreateMedicalProcedure = exports.CountMedicalProcedures = exports.UpdateMedicalIndication = exports.QueryMedicalIndications = exports.GetMedicalIndication = exports.DeleteMedicalIndications = exports.DeleteMedicalIndication = exports.DeleteAllMedicalIndications = exports.CreateMedicalIndication = exports.CountMedicalIndications = exports.UpdateMedicalGuideline = exports.QueryMedicalGuidelines = exports.GetMedicalGuideline = exports.DeleteMedicalGuidelines = exports.DeleteMedicalGuideline = exports.DeleteAllMedicalGuidelines = exports.CreateMedicalGuideline = exports.CountMedicalGuidelines = exports.UpdateMedicalDrugClass = exports.QueryMedicalDrugClasses = exports.GetMedicalDrugClass = exports.DeleteMedicalDrugClasses = exports.DeleteMedicalDrugClass = void 0; exports.DeleteRepos = exports.DeleteRepo = exports.DeleteAllRepos = exports.CreateRepo = exports.CountRepos = exports.UpdateProject = exports.QueryUsage = exports.QueryCredits = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.UpdateProduct = exports.QueryProducts = exports.GetProduct = exports.DeleteProducts = exports.DeleteProduct = exports.DeleteAllProducts = exports.CreateProduct = exports.CountProducts = exports.UpdatePlace = exports.QueryPlaces = exports.GetPlace = exports.DeletePlaces = exports.DeletePlace = exports.DeleteAllPlaces = exports.CreatePlace = exports.CountPlaces = exports.UpdatePerson = exports.QueryPersons = exports.GetPerson = exports.DeletePersons = exports.DeletePerson = exports.DeleteAllPersons = exports.CreatePerson = exports.CountPersons = exports.UpdateOrganization = exports.QueryOrganizations = exports.GetOrganization = exports.DeleteOrganizations = exports.DeleteOrganization = exports.DeleteAllOrganizations = exports.CreateOrganization = exports.CountOrganizations = exports.UpdateObservation = exports.DeleteObservation = exports.CreateObservation = exports.SendNotification = exports.UpdateMedicalTherapy = exports.QueryMedicalTherapies = exports.GetMedicalTherapy = void 0; exports.WorkflowExists = exports.UpsertWorkflow = exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateUser = exports.QueryUsers = exports.GetUser = exports.EnableUser = exports.DisableUser = exports.DeleteUser = exports.CreateUser = exports.CountUsers = exports.UpsertSpecification = exports.UpdateSpecification = exports.SpecificationExists = exports.QuerySpecifications = exports.QueryModels = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = exports.DeleteAllSpecifications = exports.CreateSpecification = exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = exports.GetSoftware = exports.DeleteSoftwares = exports.DeleteSoftware = exports.DeleteAllSoftwares = exports.CreateSoftware = exports.CountSoftwares = exports.SearchWeb = exports.MapWeb = exports.UpdateRepo = exports.QueryRepos = exports.GetRepo = void 0; const graphql_tag_1 = __importDefault(require("graphql-tag")); exports.CountAlerts = (0, graphql_tag_1.default) ` query CountAlerts($filter: AlertFilter, $correlationId: String) { countAlerts(filter: $filter, correlationId: $correlationId) { count } } `; exports.CreateAlert = (0, graphql_tag_1.default) ` mutation CreateAlert($alert: AlertInput!, $correlationId: String) { createAlert(alert: $alert, correlationId: $correlationId) { id name state type } } `; exports.DeleteAlert = (0, graphql_tag_1.default) ` mutation DeleteAlert($id: ID!) { deleteAlert(id: $id) { id state } } `; exports.DeleteAlerts = (0, graphql_tag_1.default) ` mutation DeleteAlerts($ids: [ID!]!, $isSynchronous: Boolean) { deleteAlerts(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; exports.DeleteAllAlerts = (0, graphql_tag_1.default) ` mutation DeleteAllAlerts($filter: AlertFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllAlerts( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; exports.DisableAlert = (0, graphql_tag_1.default) ` mutation DisableAlert($id: ID!) { disableAlert(id: $id) { id state } } `; exports.EnableAlert = (0, graphql_tag_1.default) ` mutation EnableAlert($id: ID!) { enableAlert(id: $id) { id state } } `; exports.GetAlert = (0, graphql_tag_1.default) ` query GetAlert($id: ID!, $correlationId: String) { alert(id: $id, correlationId: $correlationId) { id name creationDate relevance owner { id } state correlationId type summaryPrompt publishPrompt filter { dateRange { from to } inLast creationDateRange { from to } createdInLast types fileTypes formats fileExtensions contents { id } feeds { id } workflows { id } collections { id } users { id } observations { type observable { id } states } or { feeds { id } workflows { id } collections { id } users { id } observations { type observable { id } states } } and { feeds { id } workflows { id } collections { id } users { id } observations { type observable { id } states } } } integration { type uri slack { token channel } email { from subject to } twitter { consumerKey consumerSecret accessTokenKey accessTokenSecret } } publishing { type elevenLabs { model voice } } summarySpecification { id } publishSpecification { id } lastAlertDate } } `; exports.QueryAlerts = (0, graphql_tag_1.default) ` query QueryAlerts($filter: AlertFilter, $correlationId: String) { alerts(filter: $filter, correlationId: $correlationId) { results { id name creationDate relevance owner { id } state correlationId type summaryPrompt publishPrompt filter { dateRange { from to } inLast creationDateRange { from to } createdInLast types fileTypes formats fileExtensions contents { id } feeds { id } workflows { id } collections { id } users { id } observations { type observable { id } states } or { feeds { id } workflows { id } collections { id } users { id } observations { type observable { id } states } } and { feeds { id } workflows { id } collections { id } users { id } observations { type observable { id } states } } } integration { type uri slack { token channel } email { from subject to } twitter { consumerKey consumerSecret accessTokenKey accessTokenSecret } } publishing { type elevenLabs { model voice } } summarySpecification { id } publishSpecification { id } lastAlertDate } } } `; exports.UpdateAlert = (0, graphql_tag_1.default) ` mutation UpdateAlert($alert: AlertUpdateInput!) { updateAlert(alert: $alert) { id name state type } } `; exports.CountCategories = (0, graphql_tag_1.default) ` query CountCategories($filter: CategoryFilter, $correlationId: String) { countCategories(filter: $filter, correlationId: $correlationId) { count } } `; exports.CreateCategory = (0, graphql_tag_1.default) ` mutation CreateCategory($category: CategoryInput!) { createCategory(category: $category) { id name } } `; exports.DeleteAllCategories = (0, graphql_tag_1.default) ` mutation DeleteAllCategories($filter: CategoryFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllCategories( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; exports.DeleteCategories = (0, graphql_tag_1.default) ` mutation DeleteCategories($ids: [ID!]!, $isSynchronous: Boolean) { deleteCategories(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; exports.DeleteCategory = (0, graphql_tag_1.default) ` mutation DeleteCategory($id: ID!) { deleteCategory(id: $id) { id state } } `; exports.GetCategory = (0, graphql_tag_1.default) ` query GetCategory($id: ID!, $correlationId: String) { category(id: $id, correlationId: $correlationId) { id name description creationDate relevance } } `; exports.QueryCategories = (0, graphql_tag_1.default) ` query QueryCategories($filter: CategoryFilter, $correlationId: String) { categories(filter: $filter, correlationId: $correlationId) { results { id name description creationDate relevance } } } `; exports.UpdateCategory = (0, graphql_tag_1.default) ` mutation UpdateCategory($category: CategoryUpdateInput!) { updateCategory(category: $category) { id name } } `; exports.UpsertCategory = (0, graphql_tag_1.default) ` mutation UpsertCategory($category: CategoryInput!) { upsertCategory(category: $category) { id name } } `; exports.AddContentsToCollections = (0, graphql_tag_1.default) ` mutation AddContentsToCollections($contents: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) { addContentsToCollections(contents: $contents, collections: $collections) { id name state type contents { id name } } } `; exports.CountCollections = (0, graphql_tag_1.default) ` query CountCollections($filter: CollectionFilter, $correlationId: String) { countCollections(filter: $filter, correlationId: $correlationId) { count } } `; exports.CreateCollection = (0, graphql_tag_1.default) ` mutation CreateCollection($collection: CollectionInput!) { createCollection(collection: $collection) { id name state type } } `; exports.DeleteAllCollections = (0, graphql_tag_1.default) ` mutation DeleteAllCollections($filter: CollectionFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllCollections( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; exports.DeleteCollection = (0, graphql_tag_1.default) ` mutation DeleteCollection($id: ID!) { deleteCollection(id: $id) { id state } } `; exports.DeleteCollections = (0, graphql_tag_1.default) ` mutation DeleteCollections($ids: [ID!]!, $isSynchronous: Boolean) { deleteCollections(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; exports.GetCollection = (0, graphql_tag_1.default) ` query GetCollection($id: ID!, $correlationId: String) { collection(id: $id, correlationId: $correlationId) { id name creationDate relevance owner { id } state type contents { id name } } } `; exports.QueryCollections = (0, graphql_tag_1.default) ` query QueryCollections($filter: CollectionFilter, $correlationId: String) { collections(filter: $filter, correlationId: $correlationId) { results { id name creationDate relevance owner { id } state type contents { id name } } } } `; exports.RemoveContentsFromCollection = (0, graphql_tag_1.default) ` mutation RemoveContentsFromCollection($contents: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) { removeContentsFromCollection(contents: $contents, collection: $collection) { id name state type contents { id name } } } `; exports.UpdateCollection = (0, graphql_tag_1.default) ` mutation UpdateCollection($collection: CollectionUpdateInput!) { updateCollection(collection: $collection) { id name state type } } `; exports.CountContents = (0, graphql_tag_1.default) ` query CountContents($filter: ContentFilter, $correlationId: String) { countContents(filter: $filter, correlationId: $correlationId) { count } } `; exports.DeleteAllContents = (0, graphql_tag_1.default) ` mutation DeleteAllContents($filter: ContentFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllContents( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; exports.DeleteContent = (0, graphql_tag_1.default) ` mutation DeleteContent($id: ID!) { deleteContent(id: $id) { id state } } `; exports.DeleteContents = (0, graphql_tag_1.default) ` mutation DeleteContents($ids: [ID!]!, $isSynchronous: Boolean) { deleteContents(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; exports.DescribeEncodedImage = (0, graphql_tag_1.default) ` mutation DescribeEncodedImage($prompt: String!, $mimeType: String!, $data: String!, $specification: EntityReferenceInput, $correlationId: String) { describeEncodedImage( prompt: $prompt mimeType: $mimeType data: $data specification: $specification correlationId: $correlationId ) { role author message citations { content { id name state originalDate identifier uri type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } } index text startTime endTime pageNumber frameNumber } toolCalls { id name arguments } tokens throughput completionTime timestamp modelService model data mimeType } } `; exports.DescribeImage = (0, graphql_tag_1.default) ` mutation DescribeImage($prompt: String!, $uri: URL!, $specification: EntityReferenceInput, $correlationId: String) { describeImage( prompt: $prompt uri: $uri specification: $specification correlationId: $correlationId ) { role author message citations { content { id name state originalDate identifier uri type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } } index text startTime endTime pageNumber frameNumber } toolCalls { id name arguments } tokens throughput completionTime timestamp modelService model data mimeType } } `; exports.ExtractContents = (0, graphql_tag_1.default) ` mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) { extractContents( prompt: $prompt filter: $filter specification: $specification tools: $tools correlationId: $correlationId ) { specification { id } content { id } name value startTime endTime pageNumber error } } `; exports.ExtractText = (0, graphql_tag_1.default) ` mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) { extractText( prompt: $prompt text: $text textType: $textType specification: $specification tools: $tools correlationId: $correlationId ) { specification { id } content { id } name value startTime endTime pageNumber error } } `; exports.GetContent = (0, graphql_tag_1.default) ` query GetContent($id: ID!, $correlationId: String) { content(id: $id, correlationId: $correlationId) { id name creationDate owner { id } state originalDate finishedDate workflowDuration uri description identifier markdown address { streetAddress city region country postalCode } location { latitude longitude } type fileType mimeType fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } email { identifier subject labels sensitivity priority importance from { name email givenName familyName } to { name email givenName familyName } cc { name email givenName familyName } bcc { name email givenName familyName } } issue { identifier title project team status priority type labels } package { fileCount folderCount isEncrypted } language { languages } parent { id name } children { id name } feed { id name } collections { id name } links { uri linkType } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } workflow { id name } pages { index text relevance images { id mimeType data left right top bottom } chunks { index pageIndex rowIndex columnIndex confidence text role language relevance } } segments { startTime endTime text relevance } frames { index description text relevance } error } } `; exports.IngestBatch = (0, graphql_tag_1.default) ` mutation IngestBatch($uris: [URL!]!, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) { ingestBatch( uris: $uris workflow: $workflow collections: $collections observations: $observations correlationId: $correlationId ) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.IngestEncodedFile = (0, graphql_tag_1.default) ` mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) { ingestEncodedFile( name: $name data: $data mimeType: $mimeType id: $id isSynchronous: $isSynchronous collections: $collections observations: $observations workflow: $workflow correlationId: $correlationId ) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.IngestText = (0, graphql_tag_1.default) ` mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) { ingestText( name: $name text: $text textType: $textType uri: $uri id: $id isSynchronous: $isSynchronous workflow: $workflow collections: $collections observations: $observations correlationId: $correlationId ) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.IngestTextBatch = (0, graphql_tag_1.default) ` mutation IngestTextBatch($batch: [TextContentInput!]!, $textType: TextTypes, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) { ingestTextBatch( batch: $batch workflow: $workflow textType: $textType collections: $collections observations: $observations correlationId: $correlationId ) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.IngestUri = (0, graphql_tag_1.default) ` mutation IngestUri($name: String, $uri: URL!, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) { ingestUri( name: $name uri: $uri id: $id workflow: $workflow collections: $collections observations: $observations isSynchronous: $isSynchronous correlationId: $correlationId ) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.IsContentDone = (0, graphql_tag_1.default) ` query IsContentDone($id: ID!) { isContentDone(id: $id) { result } } `; exports.PublishContents = (0, graphql_tag_1.default) ` mutation PublishContents($summaryPrompt: String, $publishPrompt: String!, $connector: ContentPublishingConnectorInput!, $filter: ContentFilter, $includeDetails: Boolean, $isSynchronous: Boolean, $correlationId: String, $name: String, $summarySpecification: EntityReferenceInput, $publishSpecification: EntityReferenceInput, $workflow: EntityReferenceInput) { publishContents( summaryPrompt: $summaryPrompt publishPrompt: $publishPrompt connector: $connector filter: $filter includeDetails: $includeDetails isSynchronous: $isSynchronous correlationId: $correlationId name: $name summarySpecification: $summarySpecification publishSpecification: $publishSpecification workflow: $workflow ) { content { id name state originalDate identifier markdown uri type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } } details { contents { id } summaries text textType summarySpecification publishSpecification summaryTime publishTime } } } `; exports.PublishText = (0, graphql_tag_1.default) ` mutation PublishText($text: String!, $textType: TextTypes, $connector: ContentPublishingConnectorInput!, $isSynchronous: Boolean, $correlationId: String, $name: String, $workflow: EntityReferenceInput) { publishText( text: $text textType: $textType connector: $connector isSynchronous: $isSynchronous correlationId: $correlationId name: $name workflow: $workflow ) { id name state originalDate identifier markdown uri type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } } } `; exports.QueryContents = (0, graphql_tag_1.default) ` query QueryContents($filter: ContentFilter, $correlationId: String) { contents(filter: $filter, correlationId: $correlationId) { results { id name creationDate relevance owner { id } state originalDate finishedDate workflowDuration uri description identifier address { streetAddress city region country postalCode } location { latitude longitude } type fileType mimeType fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } email { identifier subject labels sensitivity priority importance from { name email givenName familyName } to { name email givenName familyName } cc { name email givenName familyName } bcc { name email givenName familyName } } issue { identifier title project team status priority type labels } package { fileCount folderCount isEncrypted } language { languages } feed { id name } collections { id name } links { uri linkType } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } workflow { id name } pages { index text relevance images { id mimeType data left right top bottom } chunks { index pageIndex rowIndex columnIndex confidence text role language relevance } } segments { startTime endTime text relevance } frames { index description text relevance } error } } } `; exports.QueryContentsFacets = (0, graphql_tag_1.default) ` query QueryContentsFacets($filter: ContentFilter, $facets: [ContentFacetInput!], $correlationId: String) { contents(filter: $filter, facets: $facets, correlationId: $correlationId) { facets { facet count type value range { from to } observable { type observable { id name } } } } } `; exports.QueryContentsGraph = (0, graphql_tag_1.default) ` query QueryContentsGraph($filter: ContentFilter, $graph: ContentGraphInput, $correlationId: String) { contents(filter: $filter, graph: $graph, correlationId: $correlationId) { graph { nodes { id name type metadata } edges { from to relation } } } } `; exports.ScreenshotPage = (0, graphql_tag_1.default) ` mutation ScreenshotPage($uri: URL!, $maximumHeight: Int, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $correlationId: String) { screenshotPage( uri: $uri maximumHeight: $maximumHeight workflow: $workflow collections: $collections isSynchronous: $isSynchronous correlationId: $correlationId ) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.SummarizeContents = (0, graphql_tag_1.default) ` mutation SummarizeContents($summarizations: [SummarizationStrategyInput!]!, $filter: ContentFilter, $correlationId: String) { summarizeContents( summarizations: $summarizations filter: $filter correlationId: $correlationId ) { specification { id } content { id } type items { text tokens summarizationTime } error } } `; exports.SummarizeText = (0, graphql_tag_1.default) ` mutation SummarizeText($summarization: SummarizationStrategyInput!, $text: String!, $textType: TextTypes, $correlationId: String) { summarizeText( summarization: $summarization text: $text textType: $textType correlationId: $correlationId ) { specification { id } content { id } type items { text tokens summarizationTime } error } } `; exports.UpdateContent = (0, graphql_tag_1.default) ` mutation UpdateContent($content: ContentUpdateInput!) { updateContent(content: $content) { id name state type fileType mimeType uri collections { id name } observations { id type observable { id name } related { id name } relatedType relation occurrences { type confidence startTime endTime pageIndex boundingBox { left top width height } } state } } } `; exports.AskGraphlit = (0, graphql_tag_1.default) ` mutation AskGraphlit($prompt: String!, $type: SdkTypes, $id: ID, $specification: EntityReferenceInput, $correlationId: String) { askGraphlit( prompt: $prompt type: $type id: $id specification: $specification correlationId: $correlationId ) { conversation { id } message { role author message citations { content { id name state originalDate identifier uri type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions video { width height duration make model software title description keywords author } audio { keywords author series episode episodeType season publisher copyright genre title description bitrate channels sampleRate bitsPerSample duration } image { width height resolutionX resolutionY bitsPerComponent components projectionType orientation description make model software lens focalLength exposureTime fNumber iso heading pitch } document { title subject summary author publisher description keywords pageCount worksheetCount slideCount wordCount lineCount paragraphCount isEncrypted hasDigitalSignature } } index text startTime endTime pageNumber frameNumber } toolCalls { id name arguments } tokens throughput completionTime timestamp modelService model data mimeType } messageCount } } `; exports.ClearConversation = (0, graphql_tag_1.default) ` mutation ClearConversation($id: ID!) { clearConversation(id: $id) { id name state type } } `; exports.CloseConversation = (0, graphql_tag_1.default) ` mutation CloseConversation($id: ID!) { closeConversation(id: $id) { id name state type } } `; exports.CompleteConversation = (0, graphql_tag_1.default) ` mutation CompleteConversation($completion: String!, $id: ID!, $correlationId: String) { completeConversation( completion: $completion id: $id correlationId: $correlationId ) { conversation { id } message { role author message citations { content { id name state originalDate identifier uri type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords