1input NewBugInput {
  2    """A unique identifier for the client performing the mutation."""
  3    clientMutationId: String
  4    """The name of the repository. If not set, the default repository is used."""
  5    repoRef: String
  6    """The title of the new bug."""
  7    title: String!
  8    """The first message of the new bug."""
  9    message: String!
 10    """The collection of file's hash required for the first message."""
 11    files: [Hash!]
 12}
 13
 14type NewBugPayload {
 15    """A unique identifier for the client performing the mutation."""
 16    clientMutationId: String
 17    """The created bug."""
 18    bug: Bug!
 19    """The resulting operation."""
 20    operation: CreateOperation!
 21}
 22
 23input AddCommentInput {
 24    """A unique identifier for the client performing the mutation."""
 25    clientMutationId: String
 26    """The name of the repository. If not set, the default repository is used."""
 27    repoRef: String
 28    """The bug ID's prefix."""
 29    prefix: String!
 30    """The message to be added to the bug."""
 31    message: String!
 32    """The collection of file's hash required for the first message."""
 33    files: [Hash!]
 34}
 35
 36type AddCommentPayload {
 37    """A unique identifier for the client performing the mutation."""
 38    clientMutationId: String
 39    """The affected bug."""
 40    bug: Bug!
 41    """The resulting operation."""
 42    operation: AddCommentOperation!
 43}
 44
 45input AddCommentAndCloseBugInput {
 46    """A unique identifier for the client performing the mutation."""
 47    clientMutationId: String
 48    """The name of the repository. If not set, the default repository is used."""
 49    repoRef: String
 50    """The bug ID's prefix."""
 51    prefix: String!
 52    """The message to be added to the bug."""
 53    message: String!
 54    """The collection of file's hash required for the first message."""
 55    files: [Hash!]
 56}
 57
 58type AddCommentAndCloseBugPayload {
 59    """A unique identifier for the client performing the mutation."""
 60    clientMutationId: String
 61    """The affected bug."""
 62    bug: Bug!
 63    """The resulting AddComment operation."""
 64    commentOperation: AddCommentOperation!
 65    """The resulting SetStatusOperation."""
 66    statusOperation: SetStatusOperation!
 67}
 68
 69input AddCommentAndReopenBugInput {
 70    """A unique identifier for the client performing the mutation."""
 71    clientMutationId: String
 72    """The name of the repository. If not set, the default repository is used."""
 73    repoRef: String
 74    """The bug ID's prefix."""
 75    prefix: String!
 76    """The message to be added to the bug."""
 77    message: String!
 78    """The collection of file's hash required for the first message."""
 79    files: [Hash!]
 80}
 81
 82type AddCommentAndReopenBugPayload {
 83    """A unique identifier for the client performing the mutation."""
 84    clientMutationId: String
 85    """The affected bug."""
 86    bug: Bug!
 87    """The resulting AddComment operation."""
 88    commentOperation: AddCommentOperation!
 89    """The resulting SetStatusOperation."""
 90    statusOperation: SetStatusOperation!
 91}
 92
 93input EditCommentInput {
 94    """A unique identifier for the client performing the mutation."""
 95    clientMutationId: String
 96    """The name of the repository. If not set, the default repository is used."""
 97    repoRef: String
 98    """A prefix of the CombinedId of the comment to be changed."""
 99    targetPrefix: String!
100    """The new message to be set."""
101    message: String!
102    """The collection of file's hash required for the first message."""
103    files: [Hash!]
104}
105
106type EditCommentPayload {
107    """A unique identifier for the client performing the mutation."""
108    clientMutationId: String
109    """The affected bug."""
110    bug: Bug!
111    """The resulting operation."""
112    operation: EditCommentOperation!
113}
114
115input ChangeLabelInput {
116    """A unique identifier for the client performing the mutation."""
117    clientMutationId: String
118    """The name of the repository. If not set, the default repository is used."""
119    repoRef: String
120    """The bug ID's prefix."""
121    prefix: String!
122    """The list of label to add."""
123    added: [String!]
124    """The list of label to remove."""
125    Removed: [String!]
126}
127
128enum LabelChangeStatus {
129    ADDED
130    REMOVED
131    DUPLICATE_IN_OP
132    ALREADY_SET
133    DOESNT_EXIST
134}
135
136type LabelChangeResult {
137    """The source label."""
138    label: Label!
139    """The effect this label had."""
140    status: LabelChangeStatus!
141}
142
143type ChangeLabelPayload {
144    """A unique identifier for the client performing the mutation."""
145    clientMutationId: String
146    """The affected bug."""
147    bug: Bug!
148    """The resulting operation."""
149    operation: LabelChangeOperation!
150    """The effect each source label had."""
151    results: [LabelChangeResult]!
152}
153
154input OpenBugInput {
155    """A unique identifier for the client performing the mutation."""
156    clientMutationId: String
157    """The name of the repository. If not set, the default repository is used."""
158    repoRef: String
159    """The bug ID's prefix."""
160    prefix: String!
161}
162
163type OpenBugPayload {
164    """A unique identifier for the client performing the mutation."""
165    clientMutationId: String
166    """The affected bug."""
167    bug: Bug!
168    """The resulting operation."""
169    operation: SetStatusOperation!
170}
171
172input CloseBugInput {
173    """A unique identifier for the client performing the mutation."""
174    clientMutationId: String
175    """The name of the repository. If not set, the default repository is used."""
176    repoRef: String
177    """The bug ID's prefix."""
178    prefix: String!
179}
180
181type CloseBugPayload {
182    """A unique identifier for the client performing the mutation."""
183    clientMutationId: String
184    """The affected bug."""
185    bug: Bug!
186    """The resulting operation."""
187    operation: SetStatusOperation!
188}
189
190input SetTitleInput {
191    """A unique identifier for the client performing the mutation."""
192    clientMutationId: String
193    """The name of the repository. If not set, the default repository is used."""
194    repoRef: String
195    """The bug ID's prefix."""
196    prefix: String!
197    """The new title."""
198    title: String!
199}
200
201type SetTitlePayload {
202    """A unique identifier for the client performing the mutation."""
203    clientMutationId: String
204    """The affected bug."""
205    bug: Bug!
206    """The resulting operation"""
207    operation: SetTitleOperation!
208}