1"""Represents a comment on a bug."""
  2type Comment implements Authored {
  3  id: CombinedId!
  4
  5  """The author of this comment."""
  6  author: Identity!
  7
  8  """The message of this comment."""
  9  message: String!
 10
 11  """All media's hash referenced in this comment"""
 12  files: [Hash!]!
 13}
 14
 15type CommentConnection {
 16  edges: [CommentEdge!]!
 17  nodes: [Comment!]!
 18  pageInfo: PageInfo!
 19  totalCount: Int!
 20}
 21
 22type CommentEdge {
 23  cursor: String!
 24  node: Comment!
 25}
 26
 27enum Status {
 28  OPEN
 29  CLOSED
 30}
 31
 32type Bug implements Authored {
 33  """The identifier for this bug"""
 34  id: ID!
 35  """The human version (truncated) identifier for this bug"""
 36  humanId: String!
 37  status: Status!
 38  title: String!
 39  labels: [Label!]!
 40  author: Identity!
 41  createdAt: Time!
 42  lastEdit: Time!
 43
 44  """The actors of the bug. Actors are Identity that have interacted with the bug."""
 45  actors(
 46    """Returns the elements in the list that come after the specified cursor."""
 47    after: String
 48    """Returns the elements in the list that come before the specified cursor."""
 49    before: String
 50    """Returns the first _n_ elements from the list."""
 51    first: Int
 52    """Returns the last _n_ elements from the list."""
 53    last: Int
 54  ): IdentityConnection!
 55
 56  """The participants of the bug. Participants are Identity that have created or
 57  added a comment on the bug."""
 58  participants(
 59    """Returns the elements in the list that come after the specified cursor."""
 60    after: String
 61    """Returns the elements in the list that come before the specified cursor."""
 62    before: String
 63    """Returns the first _n_ elements from the list."""
 64    first: Int
 65    """Returns the last _n_ elements from the list."""
 66    last: Int
 67  ): IdentityConnection!
 68
 69  comments(
 70    """Returns the elements in the list that come after the specified cursor."""
 71    after: String
 72    """Returns the elements in the list that come before the specified cursor."""
 73    before: String
 74    """Returns the first _n_ elements from the list."""
 75    first: Int
 76    """Returns the last _n_ elements from the list."""
 77    last: Int
 78  ): CommentConnection!
 79
 80  timeline(
 81    """Returns the elements in the list that come after the specified cursor."""
 82    after: String
 83    """Returns the elements in the list that come before the specified cursor."""
 84    before: String
 85    """Returns the first _n_ elements from the list."""
 86    first: Int
 87    """Returns the last _n_ elements from the list."""
 88    last: Int
 89  ): TimelineItemConnection!
 90
 91  operations(
 92    """Returns the elements in the list that come after the specified cursor."""
 93    after: String
 94    """Returns the elements in the list that come before the specified cursor."""
 95    before: String
 96    """Returns the first _n_ elements from the list."""
 97    first: Int
 98    """Returns the last _n_ elements from the list."""
 99    last: Int
100  ): OperationConnection!
101}
102
103"""The connection type for Bug."""
104type BugConnection {
105  """A list of edges."""
106  edges: [BugEdge!]!
107  nodes: [Bug!]!
108  """Information to aid in pagination."""
109  pageInfo: PageInfo!
110  """Identifies the total count of items in the connection."""
111  totalCount: Int!
112}
113
114"""An edge in a connection."""
115type BugEdge {
116  """A cursor for use in pagination."""
117  cursor: String!
118  """The item at the end of the edge."""
119  node: Bug!
120}