Shotstash
API referenceGraphQL referenceSubscriptions

Project Events

Discussion messages (while discussion is on) and job changes of one project.

Discussion messages (while discussion is on) and job changes of one project.

Arguments

projectId*ID!

Project id.

Returns

ProjectEvent!
  1. returns

One change in a project, delivered after the commit and after a per-event permission check.

type*String!

chat.created (chat is set), job.updated (job is set) or resync (an event was skipped: refetch).

id*ID!

Id of the changed entity.

seq*Int!

Orders the events of one entity; drop events with a lower seq.

chat?

The new message, for chat.created.

job?

The changed job, for job.updated.

subscription ProjectEvents($projectId: ID!) {  projectEvents(projectId: $projectId) {    type    id    seq    chat {      id      seq      message      kind      sender {        id        name        email        role        active        accountStatus        requestedRole        onboardedAt      }      project {        id        title        description        coverImage        status        totalFiles        totalSize        createdAt      }      createdAt    }    job {      id      kind      kindLabel      fileId      status      state      progress      attempts      outputVersion {        id        kind        kindLabel        mimeType        size        downloadUrl        createdAt      }    }  }}