graphlit-client
Version:
Graphlit API Client for TypeScript
2,825 lines (2,824 loc) • 416 kB
JavaScript
import gql from 'graphql-tag';
export const CountAgents = gql `
query CountAgents($filter: AgentFilter, $correlationId: String) {
countAgents(filter: $filter, correlationId: $correlationId) {
count
}
}
`;
export const CreateAgent = gql `
mutation CreateAgent($agent: AgentInput!, $correlationId: String) {
createAgent(agent: $agent, correlationId: $correlationId) {
id
name
state
type
mode
}
}
`;
export const DeleteAgent = gql `
mutation DeleteAgent($id: ID!) {
deleteAgent(id: $id) {
id
state
}
}
`;
export const DeleteAgents = gql `
mutation DeleteAgents($ids: [ID!]!, $isSynchronous: Boolean) {
deleteAgents(ids: $ids, isSynchronous: $isSynchronous) {
id
state
}
}
`;
export const DeleteAllAgents = gql `
mutation DeleteAllAgents($filter: AgentFilter, $isSynchronous: Boolean, $correlationId: String) {
deleteAllAgents(
filter: $filter
isSynchronous: $isSynchronous
correlationId: $correlationId
) {
id
state
}
}
`;
export const DisableAgent = gql `
mutation DisableAgent($id: ID!) {
disableAgent(id: $id) {
id
state
}
}
`;
export const EnableAgent = gql `
mutation EnableAgent($id: ID!) {
enableAgent(id: $id) {
id
state
}
}
`;
export const GetAgent = gql `
query GetAgent($id: ID!, $correlationId: String) {
agent(id: $id, correlationId: $correlationId) {
id
name
creationDate
modifiedDate
owner {
id
}
state
user {
id
}
correlationId
type
mode
description
specification {
id
name
}
persona {
id
name
}
trigger {
types
fileTypes
feeds {
id
}
}
filter {
dateRange {
from
to
}
inLast
inNext
creationDateRange {
from
to
}
createdInLast
types
fileTypes
formats
fileExtensions
fileSizeRange {
from
to
}
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
}
}
hasObservations
hasFeeds
hasCollections
hasWorkflows
collectionMode
observationMode
}
augmentedFilter {
dateRange {
from
to
}
inLast
inNext
creationDateRange {
from
to
}
createdInLast
types
fileTypes
formats
fileExtensions
fileSizeRange {
from
to
}
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
}
}
hasObservations
hasFeeds
hasCollections
hasWorkflows
collectionMode
observationMode
}
schedulePolicy {
recurrenceType
repeatInterval
cron
timeZoneId
}
heartbeat {
enabled
frequencyMinutes
offHoursFrequencyMinutes
activeHoursStart
activeHoursEnd
activeDays
timezone
probeThresholds {
newContentMin
volumeSpikeMultiplier
}
}
channels {
type
identifier
instructions
label
}
rules {
state
then
if
}
commands {
keyword
name
description
type
template
enabled
}
targets {
connector {
type
operation
kind
notion {
pageId
pageUri
parentPageId
databaseId
title
}
googleDrive {
fileId
fileUri
folderId
fileName
}
oneDrive {
fileId
fileUri
folderId
fileName
}
confluence {
pageId
pageUri
spaceId
parentPageId
title
}
slack {
channelId
threadTs
}
gmail {
to
subject
cc
bcc
isDraft
inReplyToMessageId
forwardFromMessageId
}
microsoftOutlook {
to
subject
cc
bcc
importance
isDraft
inReplyToMessageId
forwardFromMessageId
}
hubSpot {
objectType
objectId
}
salesforce {
objectType
objectId
title
}
attio {
parentObject
parentRecordId
title
}
googleCalendar {
eventId
eventUri
calendarId
summary
startDateTime
endDateTime
timeZone
location
attendees
}
microsoftCalendar {
eventId
eventUri
calendarId
subject
startDateTime
endDateTime
timeZone
location
attendees
isOnlineMeeting
}
linear {
issueId
issueUri
teamId
title
priority
state
assignee
labels
projectId
}
jira {
issueKey
issueUri
projectKey
cloudId
issueType
summary
priority
assignee
labels
status
}
zendesk {
ticketId
ticketUri
subdomain
subject
priority
status
type
assignee
groupId
tags
visibility
}
intercom {
ticketId
ticketUri
ticketType
requesterEmail
conversationToLinkId
companyId
title
state
assignee
teamId
tags
visibility
isShared
skipNotifications
}
googleDocs {
documentId
documentUri
folderId
title
}
microsoftWord {
fileId
fileUri
folderId
fileName
}
sharePoint {
siteId
title
}
discord {
channelId
threadId
}
microsoftTeams {
chatId
teamId
channelId
threadId
}
twitter {
postId
postUri
replyToTweetId
}
github {
repositoryOwner
repositoryName
title
labels
assignees
milestone
}
gitlab {
projectPath
title
labels
assignees
milestone
}
linkedIn {
postType
visibility
}
attioTasks {
title
assignees
linkedRecordId
linkedObjectType
deadline
}
}
authentication {
id
}
}
timeout
prompt
scratchpad
focus
effort
callbackUri
}
}
`;
export const QueryAgents = gql `
query QueryAgents($filter: AgentFilter, $correlationId: String) {
agents(filter: $filter, correlationId: $correlationId) {
results {
id
name
creationDate
modifiedDate
relevance
owner {
id
}
state
correlationId
type
mode
description
specification {
id
name
}
persona {
id
name
}
trigger {
types
fileTypes
feeds {
id
}
}
filter {
dateRange {
from
to
}
inLast
inNext
creationDateRange {
from
to
}
createdInLast
types
fileTypes
formats
fileExtensions
fileSizeRange {
from
to
}
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
}
}
hasObservations
hasFeeds
hasCollections
hasWorkflows
collectionMode
observationMode
}
augmentedFilter {
dateRange {
from
to
}
inLast
inNext
creationDateRange {
from
to
}
createdInLast
types
fileTypes
formats
fileExtensions
fileSizeRange {
from
to
}
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
}
}
hasObservations
hasFeeds
hasCollections
hasWorkflows
collectionMode
observationMode
}
schedulePolicy {
recurrenceType
repeatInterval
cron
timeZoneId
}
heartbeat {
enabled
frequencyMinutes
offHoursFrequencyMinutes
activeHoursStart
activeHoursEnd
activeDays
timezone
probeThresholds {
newContentMin
volumeSpikeMultiplier
}
}
channels {
type
identifier
instructions
label
}
rules {
state
then
if
}
commands {
keyword
name
description
type
template
enabled
}
targets {
connector {
type
operation
kind
notion {
pageId
pageUri
parentPageId
databaseId
title
}
googleDrive {
fileId
fileUri
folderId
fileName
}
oneDrive {
fileId
fileUri
folderId
fileName
}
confluence {
pageId
pageUri
spaceId
parentPageId
title
}
slack {
channelId
threadTs
}
gmail {
to
subject
cc
bcc
isDraft
inReplyToMessageId
forwardFromMessageId
}
microsoftOutlook {
to
subject
cc
bcc
importance
isDraft
inReplyToMessageId
forwardFromMessageId
}
hubSpot {
objectType
objectId
}
salesforce {
objectType
objectId
title
}
attio {
parentObject
parentRecordId
title
}
googleCalendar {
eventId
eventUri
calendarId
summary
startDateTime
endDateTime
timeZone
location
attendees
}
microsoftCalendar {
eventId
eventUri
calendarId
subject
startDateTime
endDateTime
timeZone
location
attendees
isOnlineMeeting
}
linear {
issueId
issueUri
teamId
title
priority
state
assignee
labels
projectId
}
jira {
issueKey
issueUri
projectKey
cloudId
issueType
summary
priority
assignee
labels
status
}
zendesk {
ticketId
ticketUri
subdomain
subject
priority
status
type
assignee
groupId
tags
visibility
}
intercom {
ticketId
ticketUri
ticketType
requesterEmail
conversationToLinkId
companyId
title
state
assignee
teamId
tags
visibility
isShared
skipNotifications
}
googleDocs {
documentId
documentUri
folderId
title
}
microsoftWord {
fileId
fileUri
folderId
fileName
}
sharePoint {
siteId
title
}
discord {
channelId
threadId
}
microsoftTeams {
chatId
teamId
channelId
threadId
}
twitter {
postId
postUri
replyToTweetId
}
github {
repositoryOwner
repositoryName
title
labels
assignees
milestone
}
gitlab {
projectPath
title
labels
assignees
milestone
}
linkedIn {
postType
visibility
}
attioTasks {
title
assignees
linkedRecordId
linkedObjectType
deadline
}
}
authentication {
id
}
}
timeout
prompt
scratchpad
focus
effort
callbackUri
}
}
}
`;
export const UpdateAgent = gql `
mutation UpdateAgent($agent: AgentUpdateInput!) {
updateAgent(agent: $agent) {
id
name
state
type
mode
}
}
`;
export const UpdateAgentFocus = gql `
mutation UpdateAgentFocus($id: ID!, $focus: String) {
updateAgentFocus(id: $id, focus: $focus) {
id
name
state
type
mode
}
}
`;
export const UpdateAgentScratchpad = gql `
mutation UpdateAgentScratchpad($id: ID!, $scratchpad: String!) {
updateAgentScratchpad(id: $id, scratchpad: $scratchpad) {
id
name
state
type
mode
}
}
`;
export const UpsertAgent = gql `
mutation UpsertAgent($agent: AgentInput!) {
upsertAgent(agent: $agent) {
id
name
state
type
mode
}
}
`;
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
modifiedDate
owner {
id
}
state
user {
id
}
correlationId
type
summaryPrompt
publishPrompt
view {
id
}
filter {
dateRange {
from
to
}
inLast
inNext
creationDateRange {
from
to
}
createdInLast
types
fileTypes
formats
fileExtensions
fileSizeRange {
from
to
}
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
}
}
hasObservations
hasFeeds
hasCollections
hasWorkflows
collectionMode
observationMode
}
integration {
type
uri
slack {
token
channel
}
email {
from
subject
to
}
twitter {
consumerKey
consumerSecret
accessTokenKey
accessTokenSecret
}
mcp {
token
type
}
}
publishing {
type
elevenLabs {
model
voice
}
openAIImage {
model
count
seed {
id
}
size
quality
width
height
outputFormat
compression
moderation
}
googleImage {
model
count
seed {
id
}
resolution
aspectRatio
}
quiverImage {
model
count
seed {
id
}
instructions
}
openAIVideo {
model
seconds
size
seed {
id
}
}
googleVideo {
model
seconds
aspectRatio
seed {
id
}
}
parallel {
processor
}
}
summarySpecification {
id
}
publishSpecification {
id
}
schedulePolicy {
recurrenceType
repeatInterval
cron
timeZoneId
}
lastAlertDate
}
}
`;
export const QueryAlerts = gql `
query QueryAlerts($filter: AlertFilter, $correlationId: String) {
alerts(filter: $filter, correlationId: $correlationId) {
results {
id
name
creationDate
modifiedDate
relevance
owner {
id
}
state
correlationId
type
summaryPrompt
publishPrompt
view {
id
}
filter {
dateRange {
from
to
}
inLast
inNext
creationDateRange {
from
to
}
createdInLast
types
fileTypes
formats
fileExtensions
fileSizeRange {
from
to
}
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
}
}
hasObservations
hasFeeds
hasCollections
hasWorkflows
collectionMode
observationMode
}
integration {
type
uri
slack {
token
channel
}
email {
from
subject
to
}
twitter {
consumerKey
consumerSecret
accessTokenKey
accessTokenSecret
}
mcp {
token
type
}
}
publishing {
type
elevenLabs {
model
voice
}
openAIImage {
model
count
seed {
id
}
size
quality
width
height
outputFormat
compression
moderation
}
googleImage {
model
count
seed {
id
}
resolution
aspectRatio
}
quiverImage {
model
count
seed {
id
}
instructions
}
openAIVideo {
model
seconds
size
seed {
id
}
}
googleVideo {
model
seconds
aspectRatio
seed {
id
}
}
parallel {
processor
}
}
summarySpecification {
id
}
publishSpecification {
id
}
schedulePolicy {
recurrenceType
repeatInterval
cron
timeZoneId
}
lastAlertDate
}
}
}
`;
export const UpdateAlert = gql `
mutation UpdateAlert($alert: AlertUpdateInput!) {
updateAlert(alert: $alert) {
id
name
state
type
}
}
`;
export const UpsertAlert = gql `
mutation UpsertAlert($alert: AlertInput!) {
upsertAlert(alert: $alert) {
id
name
state
type
}
}
`;
export const AddDesksToBureau = gql `
mutation AddDesksToBureau($desks: [EntityReferenceInput!]!, $bureau: EntityReferenceInput!) {
addDesksToBureau(desks: $desks, bureau: $bureau) {
id
name
state
description
mission
directives
desks {
id
name
}
deskCount
}
}
`;
export const CountBureaus = gql `
query CountBureaus($filter: BureauFilter, $correlationId: String) {
countBureaus(filter: $filter, correlationId: $correlationId) {
count
}
}
`;
export const CreateBureau = gql `
mutation CreateBureau($bureau: BureauInput!) {
createBureau(bureau: $bureau) {
id
name
state
description
mission
directives
}
}
`;
export const DeleteAllBureaus = gql `
mutation DeleteAllBureaus($filter: BureauFilter, $isSynchronous: Boolean, $correlationId: String) {
deleteAllBureaus(
filter: $filter
isSynchronous: $isSynchronous
correlationId: $correlationId
) {
id
state
}
}
`;
export const DeleteBureau = gql `
mutation DeleteBureau($id: ID!) {
deleteBureau(id: $id) {
id
state
}
}
`;
export const DeleteBureaus = gql `
mutation DeleteBureaus($ids: [ID!]!, $isSynchronous: Boolean) {
deleteBureaus(ids: $ids, isSynchronous: $isSynchronous) {
id
state
}
}
`;
export const GetBureau = gql `
query GetBureau($id: ID!, $correlationId: String) {
bureau(id: $id, correlationId: $correlationId) {
id
name
creationDate
modifiedDate
owner {
id
}
state
description
mission
directives
desks {
id
name
}
deskCount
}
}
`;
export const QueryBureaus = gql `
query QueryBureaus($filter: BureauFilter, $correlationId: String) {
bureaus(filter: $filter, correlationId: $correlationId) {
results {
id
name
creationDate
modifiedDate
relevance
owner {
id
}
state
description
mission
directives
deskCount
}
}
}
`;
export const RemoveDesksFromBureau = gql `
mutation RemoveDesksFromBureau($desks: [EntityReferenceInput!]!, $bureau: EntityReferenceInput!) {
removeDesksFromBureau(desks: $desks, bureau: $bureau) {
id
name
state
description
mission
directives
desks {
id
name
}
deskCount
}
}
`;
export const UpdateBureau = gql `
mutation UpdateBureau($bureau: BureauUpdateInput!) {
updateBureau(bureau: $bureau) {
id
name
state
description
mission
directives
}
}
`;
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
user {
id
}
description
creationDate
feeds {
id
name
}
}
}
`;
export const QueryCategories = gql `
query QueryCategories($filter: CategoryFilter, $correlationId: String) {
categories(filter: $filter, correlationId: $correlationId) {
results {
id
name
description
creationDate
relevance
feeds {
id
name
}
}
}
}
`;
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 AddConversationsToCollections = gql `
mutation AddConversationsToCollections($conversations: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
addConversationsToCollections(
conversations: $conversations
collections: $collections
) {
id
name
state
type
contents {
id
name
}
}
}
`;
export const AddSkillsToCollections = gql `
mutation AddSkillsToCollections($skills: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
addSkillsToCollections(skills: $skills, 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
modifiedDate
owner {
id
}
state
user {
id
}
type
contents {
id
name
}
conversations {
id
name
}
}
}
`;
export const QueryCollections = gql `
query QueryCollections($filter: CollectionFilter, $correlationId: String) {
collections(filter: $filter, correlationId: $correlationId) {
results {
id
name
creationDate
modifiedDate
relevance
owner {
id
}
state
type
}
}
}
`;
export const RemoveContentsFromCollection = gql `
mutation RemoveContentsFromCollection($contents: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) {
removeContentsFromCollection(contents: $contents, collection: $collection) {
id
name
state
type
contents {
id
name
}
}
}
`;
export const RemoveConversationsFromCollection = gql `
mutation RemoveConversationsFromCollection($conversations: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) {
removeConversationsFromCollection(
conversations: $conversations
collection: $collection
) {
id
name
state
type
contents {
id
name
}
}
}
`;
export const RemoveSkillsFromCollection = gql `
mutation RemoveSkillsFromCollection($skills: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) {
removeSkillsFromCollection(skills: $skills, 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 CountConnectors = gql `
query CountConnectors($filter: ConnectorFilter, $correlationId: String) {
countConnectors(filter: $filter, correlationId: $correlationId) {
count
}
}
`;
export const CreateConnector = gql `
mutation CreateConnector($connector: ConnectorInput!) {
createConnector(connector: $connector) {
id
name
state
type
}
}
`;
export const DeleteConnector = gql `
mutation DeleteConnector($id: ID!) {
deleteConnector(id: $id) {
id
state
}
}
`;
export const GetConnector = gql `
query GetConnector($id: ID!, $correlationId: String) {
connector(id: $id, correlationId: $correlationId) {
id
name
creationDate
modifiedDate
owner {
id
}
state
user {
id
}
type
authentication {
type
token
apiKey
microsoft {
tenantId
clientId
clientSecret
}
google {
clientId
clientSecret
}
oauth {
provider
clientId
clientSecret
refreshToken
accessToken
redirectUri
metadata
}
arcade {
authorizationId
provider
metadata
}
}
integration {
type
uri
slack {
token
channel
}
email {
from
subject
to
}
twitter {
consumerKey
consumerSecret
accessTokenKey
accessTokenSecret
}
mcp {
token
type
}
}
channel {
type
slack {
botToken
signingSecret
appId
}
teams {
botId
botPassword
tenantId
}
discord {
botToken
applicationId
publicKey
}
telegram {
botToken
secretToken
botUsername
}
whatsApp {
accessToken
appSecret
phoneNumberId
verifyToken
}
googleChat {
credentials
projectId
}
}
}
}
`;
export const QueryConnectors = gql `
query QueryConnectors($filter: ConnectorFilter, $correlationId: String) {
connectors(filter: $filter, correlationId: $correlationId) {
results {
id
name
creationDate
modifiedDate
relevance
owner {
id
}
state
type
authentication {
type
token
apiKey
microsoft {
tenantId
clientId
clientSecret
}
google {
clientId
clientSecret
}
oauth {
provider
clientId
clientSecret
refreshToken
accessToken
redirectUri
metadata
}
arcade {
authorizationId
provider
metadata
}
}
integration {
type
uri
slack {
token
channel
}
email {
from
subject
to
}
twitter {
consumerKey
consumerSecret
accessTokenKey
accessTokenSecret
}
mcp {
token
type
}
}
channel {
type
slack {
botToken
signingSecret
appId
}
teams {
botId
botPassword
tenantId
}
discord {
botToken
applicationId
publicKey
}
telegram {
botToken
secretToken
botUsername
}
whatsApp {
accessToken
appSecret
phoneNumberId
verifyToken
}
googleChat {
credentials
projectId
}
}
}
}
}
`;
export const UpdateConnector = gql `
mutation UpdateConnector($connector: ConnectorUpdateInput!) {
updateConnector(connector: $connector) {
id
name
state
type
}
}
`;
export const UpsertConnector = gql `
mutation UpsertConnector($connector: ConnectorInput!) {
upsertConnector(connector: $connector) {
id
name
state
type
}
}
`;
export const AddContentLabel = gql `
mutation AddContentLabel($id: ID!, $label: String!) {
addContentLabel(id: $id, label: $label) {
id
name
}
}
`;
export const ApproveContent = gql `
mutation ApproveContent($id: ID!) {
approveContent(id: $id) {
id
state
}
}
`;
export const ClassifyContents = gql `
mutation ClassifyContents($classification: ContentClassificationConnectorInput!, $filter: ContentFilter, $correlationId: String) {
classifyContents(
classification: $classification
filter: $filter
correlationId: $correlationId
) {
content {
id
name
}
labels
type
classificationTime
error
}
}
`;
export const ClassifyText = gql `
mutation ClassifyText($text: String!, $textType: TextTypes, $classification: ContentClassificationConnectorInput!, $correlationId: String) {
classifyText(
text: $text
textType: $textType
classification: $classification
correlationId: $correlationId
)
}
`;
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
fileMetadata
relativeFolderPath
masterUri
markdownUri
imageUri
textUri
audioUri
transcriptUri
snapshotsUri
snapshotCount
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
lastModifiedBy
publisher
description
keywords
pageCount
worksheetCount
slideCount
wordCount
lineCount
paragraphCount
isEncrypted
hasDigitalSignature
}
}
index
text
startTime
endTime
pageNumber
frameNumber
}
toolCalls {
id
name
arguments
startedAt
completedAt
durationMs
status
failedAt
firstStatusAt
}
tokens
throughput
ttft
completionTime
timestamp
modelService
model
data
mimeType
toolCallId
toolCallResponse
artifacts {
id
name
mimeType
uri
}
thinkingContent
thinkingSignature
}
}
`;
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
fileMetadata
relativeFolderPath
masterUri
markdownUri
imageUri
textUri
audioUri
transcriptUri
snapshotsUri
snapshotCount
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
lastModifiedBy
publisher
description
keywords
pageCount
worksheetCount
slideCount
wordCount
lineCount
paragraphCount
isEncrypted
hasDigitalSignature
}
}
index
text
startTime
endTime
pageNumber
frameNumber
}
toolCalls {
id
name
arguments
startedAt
completedAt
durationMs
status
failedAt
firstStatusAt
}
tokens
throughput
ttft
completionTime
timestamp
modelService
model
data
mimeType
toolCallId
toolCallResponse
artifacts {
id
name
mimeType
uri
}
thinkingContent
thinkingSignature
}
}
`;
export const Distribute = gql `
mutation Distribute($connector: DistributionConnectorInput!, $authentication: EntityReferenceInput!, $text: String, $textType: TextTypes, $name: String, $filter: ContentFilter, $correlationId: String) {
distribute(
connector: $connector
authentication: $authentication
text: $text
textType: $textType
name: $name
filter: $filter
correlationId: $correlationId
) {
uri
identifier
serviceType
operation
resolvedTargetIdentifier
resolvedTargetUri
error
}
}
`;
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 ExtractObservables = gql `
mutation ExtractObservables($text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $observableTypes: [ObservableTypes!], $correlationId: String) {
extractObservables(
text: $text
textType: $textType
specification: $specification
observableTypes: $observableTypes
correlationId: $correlationId
) {
labels {
name
metadata
}
categories {
name
metadata
}
emotions {
name
metadata
}
persons {
name
metadata
}
organizations {
name
metadata
}
places {
name
metadata
}
events {
name
metadata
}
products {
name
metadata
}
softwares {
name
metadata
}
repos {
name
metadata
}
investments {
name
metadata
}
investmentFunds {
name
metadata
}
medicalStudies {
name
metadata
}
medicalConditions {
name
metadata
}
medicalGuidelines {
name
metadata
}
medicalDrugs {
name
metadata
}
medicalDrugClasses {
name
metadata
}
medicalIndications {
name
metadata
}
medicalContraindications {
name
metadata
}
medicalProcedures {
name
metadata
}
medicalTherapies {
name
metadata
}
medicalDevices {
name
metadata
}
medicalTests {
name
metadata
}
}
}
`;
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
modifiedDate
owner {
id
}
state
user {
id
}
originalDate
finishedDate
fileCreationDate
fileModifiedDate
workflowDuration
uri
description
identifier
markdown
html
address {
streetAddress
city
region
country
postalCode
}
location {
latitude
longitude
}