subscription.graphql

 1type Subscription {
 2  """Subscribe to events on all entities. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
 3  allEvents(repoFilter: String): EntityEvent!
 4  """Subscribe to identity entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
 5  identityEvents(repoFilter: String): IdentityEvent!
 6  """Subscribe to bug entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
 7  bugEvents(repoFilter: String, query: String): BugEvent!
 8}
 9
10enum EventType {
11  CREATED
12  UPDATED
13  REMOVED
14}
15
16type EntityEvent {
17  type: EventType!
18  entity: Entity
19}
20
21type IdentityEvent {
22  type: EventType!
23  identity: Identity!
24}
25
26type BugEvent {
27  type: EventType!
28  bug: Bug!
29}