UNPKG

graphlit-client

Version:
2,848 lines 193 kB
import gql from 'graphql-tag'; export const CountAlerts = gql ` query CountAlerts($filter: AlertFilter, $correlationId: String) { countAlerts(filter: $filter, correlationId: $correlationId) { count } } `; export const CreateAlert = gql ` mutation CreateAlert($alert: AlertInput!, $correlationId: String) { createAlert(alert: $alert, correlationId: $correlationId) { id name state type } } `; export const DeleteAlert = gql ` mutation DeleteAlert($id: ID!) { deleteAlert(id: $id) { id state } } `; export const DeleteAlerts = gql ` mutation DeleteAlerts($ids: [ID!]!, $isSynchronous: Boolean) { deleteAlerts(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; export const DeleteAllAlerts = gql ` mutation DeleteAllAlerts($filter: AlertFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllAlerts( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; export const DisableAlert = gql ` mutation DisableAlert($id: ID!) { disableAlert(id: $id) { id state } } `; export const EnableAlert = gql ` mutation EnableAlert($id: ID!) { enableAlert(id: $id) { id state } } `; export const GetAlert = gql ` 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 similarContents { id } 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 } openAIImage { model count seed { id } } } summarySpecification { id } publishSpecification { id } lastAlertDate } } `; export const QueryAlerts = gql ` 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 similarContents { id } 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 } openAIImage { model count seed { id } } } summarySpecification { id } publishSpecification { id } lastAlertDate } } } `; export const UpdateAlert = gql ` mutation UpdateAlert($alert: AlertUpdateInput!) { updateAlert(alert: $alert) { id name state type } } `; export const CountCategories = gql ` query CountCategories($filter: CategoryFilter, $correlationId: String) { countCategories(filter: $filter, correlationId: $correlationId) { count } } `; export const CreateCategory = gql ` mutation CreateCategory($category: CategoryInput!) { createCategory(category: $category) { id name } } `; export const DeleteAllCategories = gql ` mutation DeleteAllCategories($filter: CategoryFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllCategories( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; export const DeleteCategories = gql ` mutation DeleteCategories($ids: [ID!]!, $isSynchronous: Boolean) { deleteCategories(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; export const DeleteCategory = gql ` mutation DeleteCategory($id: ID!) { deleteCategory(id: $id) { id state } } `; export const GetCategory = gql ` query GetCategory($id: ID!, $correlationId: String) { category(id: $id, correlationId: $correlationId) { id name description creationDate relevance } } `; export const QueryCategories = gql ` query QueryCategories($filter: CategoryFilter, $correlationId: String) { categories(filter: $filter, correlationId: $correlationId) { results { id name description creationDate relevance } } } `; export const UpdateCategory = gql ` mutation UpdateCategory($category: CategoryUpdateInput!) { updateCategory(category: $category) { id name } } `; export const UpsertCategory = gql ` mutation UpsertCategory($category: CategoryInput!) { upsertCategory(category: $category) { id name } } `; export const AddContentsToCollections = gql ` mutation AddContentsToCollections($contents: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) { addContentsToCollections(contents: $contents, collections: $collections) { id name state type contents { id name } } } `; export const CountCollections = gql ` query CountCollections($filter: CollectionFilter, $correlationId: String) { countCollections(filter: $filter, correlationId: $correlationId) { count } } `; export const CreateCollection = gql ` mutation CreateCollection($collection: CollectionInput!) { createCollection(collection: $collection) { id name state type } } `; export const DeleteAllCollections = gql ` mutation DeleteAllCollections($filter: CollectionFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllCollections( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; export const DeleteCollection = gql ` mutation DeleteCollection($id: ID!) { deleteCollection(id: $id) { id state } } `; export const DeleteCollections = gql ` mutation DeleteCollections($ids: [ID!]!, $isSynchronous: Boolean) { deleteCollections(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; export const GetCollection = gql ` query GetCollection($id: ID!, $correlationId: String) { collection(id: $id, correlationId: $correlationId) { id name creationDate relevance owner { id } state type contents { id name } } } `; export const QueryCollections = gql ` query QueryCollections($filter: CollectionFilter, $correlationId: String) { collections(filter: $filter, correlationId: $correlationId) { results { id name creationDate relevance owner { id } state type contents { id name } } } } `; export const RemoveContentsFromCollection = gql ` mutation RemoveContentsFromCollection($contents: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) { removeContentsFromCollection(contents: $contents, collection: $collection) { id name state type contents { id name } } } `; export const UpdateCollection = gql ` mutation UpdateCollection($collection: CollectionUpdateInput!) { updateCollection(collection: $collection) { id name state type } } `; export const CountContents = gql ` query CountContents($filter: ContentFilter, $correlationId: String) { countContents(filter: $filter, correlationId: $correlationId) { count } } `; export const DeleteAllContents = gql ` mutation DeleteAllContents($filter: ContentFilter, $isSynchronous: Boolean, $correlationId: String) { deleteAllContents( filter: $filter isSynchronous: $isSynchronous correlationId: $correlationId ) { id state } } `; export const DeleteContent = gql ` mutation DeleteContent($id: ID!) { deleteContent(id: $id) { id state } } `; export const DeleteContents = gql ` mutation DeleteContents($ids: [ID!]!, $isSynchronous: Boolean) { deleteContents(ids: $ids, isSynchronous: $isSynchronous) { id state } } `; export const DescribeEncodedImage = gql ` 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 quotes 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 toolCallId toolCallResponse } } `; export const DescribeImage = gql ` 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 quotes 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 toolCallId toolCallResponse } } `; export const ExtractContents = gql ` 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 } } `; export const ExtractText = gql ` 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 } } `; export const GetContent = gql ` query GetContent($id: ID!, $correlationId: String) { content(id: $id, correlationId: $correlationId) { id name creationDate owner { id } state originalDate finishedDate fileCreationDate fileModifiedDate workflowDuration uri description identifier markdown address { streetAddress city region country postalCode } location { latitude longitude } h3 { h3r0 h3r1 h3r2 h3r3 h3r4 h3r5 h3r6 h3r7 h3r8 h3r9 h3r10 h3r11 h3r12 h3r13 h3r14 h3r15 } boundary epsgCode path features c4id type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions quotes 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 threadIdentifier 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 } } `; export const IngestBatch = gql ` 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 } } } `; export const IngestEncodedFile = gql ` mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $id: ID, $fileCreationDate: DateTime, $fileModifiedDate: DateTime, $isSynchronous: Boolean, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $workflow: EntityReferenceInput, $correlationId: String) { ingestEncodedFile( name: $name data: $data mimeType: $mimeType id: $id fileCreationDate: $fileCreationDate fileModifiedDate: $fileModifiedDate 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 } } } `; export const IngestEvent = gql ` mutation IngestEvent($markdown: String!, $name: String, $description: String, $eventDate: DateTime, $id: ID, $collections: [EntityReferenceInput!], $correlationId: String) { ingestEvent( name: $name description: $description eventDate: $eventDate markdown: $markdown id: $id collections: $collections 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 } } } `; export const IngestMemory = gql ` mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $id: ID, $collections: [EntityReferenceInput!], $correlationId: String) { ingestMemory( name: $name text: $text textType: $textType id: $id collections: $collections 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 } } } `; export const IngestText = gql ` mutation IngestText($text: String!, $name: 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 } } } `; export const IngestTextBatch = gql ` 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 } } } `; export const IngestUri = gql ` mutation IngestUri($name: String, $uri: URL!, $id: ID, $mimeType: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) { ingestUri( name: $name uri: $uri id: $id mimeType: $mimeType 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 } } } `; export const IsContentDone = gql ` query IsContentDone($id: ID!) { isContentDone(id: $id) { result } } `; export const LookupContents = gql ` query LookupContents($ids: [ID!]!, $correlationId: String) { lookupContents(ids: $ids, correlationId: $correlationId) { results { id name creationDate owner { id } state originalDate finishedDate fileCreationDate fileModifiedDate workflowDuration uri description identifier markdown address { streetAddress city region country postalCode } location { latitude longitude } h3 { h3r0 h3r1 h3r2 h3r3 h3r4 h3r5 h3r6 h3r7 h3r8 h3r9 h3r10 h3r11 h3r12 h3r13 h3r14 h3r15 } boundary epsgCode path features c4id type fileType mimeType format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions quotes 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 threadIdentifier 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 } } } `; export const PublishContents = gql ` 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 ) { contents { 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 quotes 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 } } } `; export const PublishText = gql ` 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 ) { contents { 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 quotes 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 } } } `; export const QueryContents = gql ` 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 format formatName fileExtension fileName fileSize masterUri imageUri textUri audioUri transcriptUri summary customSummary keywords bullets headlines posts chapters questions quotes 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 threadIdentifier 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 } } } `; export const QueryContentsFacets = gql ` 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 } } } } } `; export const QueryContentsGraph = gql ` 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 } } } } `; export const ScreenshotPage = gql ` 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 } } } `; export const SummarizeContents = gql ` 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 } } `; export const SummarizeText = gql ` 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 } } `; export const UpdateContent = gql ` 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 } } } `; export const AskGraphlit = gql ` 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 quotes 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 toolCallId toolCallResponse } messageCount } } `; export const BranchConversation = gql ` mutation BranchConversation($id: ID!) { branchConversation(id: $id) { id name state type } } `; export const ClearConversation = gql ` mutation ClearConversation($id: ID!) { clearConversation(id: $id) { id name state type } } `; export const CloseConversation = gql ` mutation CloseConversation($id: ID!) { closeConversation(id: $id) { id name state type } } `; export const CompleteConversation = gql ` 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 bullets headlines posts chapters questions quotes 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