Debian Codegraph @

srht/buildssrht/operations.graphql

raw
1 mutation submit(
2 $manifest: String!
3 $tags: [String!]
4 $note: String
5 $visibility: Visibility,
6 $secrets: Boolean!,
7 ) {
8 submit(
9 manifest: $manifest
10 tags: $tags
11 note: $note
12 visibility: $visibility,
13 secrets: $secrets,
14 ) {
15 id
16 owner {
17 canonicalName
18 }
19 }
20 }
21
22 mutation cancel($jobId: Int!) {
23 cancel(jobId: $jobId) {
24 id
25 }
26 }
27
28 mutation createUserWebhook($config: UserWebhookInput!) {
29 createUserWebhook(config: $config) {
30 id
31 }
32 }
33
34 mutation deleteUserWebhook($id: Int!) {
35 deleteUserWebhook(id: $id) {
36 id
37 }
38 }
39
40 mutation shareSecret($uuid: String!, $user: String!) {
41 shareSecret(uuid: $uuid, user: $user) {
42 uuid
43 }
44 }
45
46 mutation update($jobId: Int!, $visibility: Visibility!, $tags: [String!]) {
47 update(jobId: $jobId, visibility: $visibility, tags: $tags) {
48 id
49 }
50 }
51
52 query monitor($id: Int!) {
53 job(id: $id) {
54 status
55 log {
56 fullURL
57 }
58 tasks {
59 name
60 status
61 log {
62 fullURL
63 }
64 }
65 }
66 }
67
68 query jobInfo($id: Int!) {
69 job(id: $id) {
70 manifest
71 tags
72 owner {
73 canonicalName
74 }
75 visibility
76 }
77 }
78
79 query jobIDs {
80 jobs {
81 results {
82 id
83 }
84 }
85 }
86
87 query jobs($cursor: Cursor) {
88 jobs(cursor: $cursor) {
89 ...jobs
90 }
91 }
92
93 query jobsByUser($username: String!, $cursor: Cursor) {
94 userByName(username: $username) {
95 jobs(cursor: $cursor) {
96 ...jobs
97 }
98 }
99 }
100
101 fragment jobs on JobCursor {
102 results {
103 id
104 status
105 note
106 tags
107 tasks {
108 name
109 status
110 }
111 }
112 cursor
113 }
114
115 query exportJob($id: Int!) {
116 job(id: $id) {
117 ...jobExport
118 }
119 }
120
121 query exportJobs($cursor: Cursor) {
122 jobs(cursor: $cursor) {
123 results {
124 ...jobExport
125 }
126 cursor
127 }
128 }
129
130 fragment jobExport on Job {
131 id
132 status
133 note
134 tags
135 visibility
136 log {
137 fullURL
138 }
139 tasks {
140 name
141 status
142 log {
143 fullURL
144 }
145 }
146 }
147
148 query show($id: Int!) {
149 job(id: $id) {
150 id
151 status
152 note
153 tags
154 log {
155 fullURL
156 }
157 owner {
158 canonicalName
159 }
160 tasks {
161 name
162 status
163 log {
164 fullURL
165 }
166 }
167 group {
168 jobs {
169 id
170 status
171 }
172 }
173 }
174 }
175
176 query secrets($cursor: Cursor) {
177 secrets(cursor: $cursor) {
178 results {
179 created
180 uuid
181 name
182 fromUser {
183 canonicalName
184 }
185 __typename
186 ... on SecretFile {
187 path
188 mode
189 }
190 }
191 cursor
192 }
193 }
194
195 query getSSHInfo($id: Int!) {
196 job(id: $id) {
197 id
198 runner
199 }
200
201 version {
202 settings {
203 sshUser
204 }
205 }
206 }
207
208 query runningJobs {
209 jobs {
210 results {
211 id
212 status
213 note
214 tags
215 }
216 }
217 }
218
219 query artifacts($id: Int!) {
220 job(id: $id) {
221 artifacts {
222 path
223 size
224 url
225 }
226 }
227 }
228
229 query userWebhooks($cursor: Cursor) {
230 userWebhooks(cursor: $cursor) {
231 results {
232 id
233 url
234 }
235 cursor
236 }
237 }
238
239 query completeSecrets {
240 secrets {
241 results {
242 uuid
243 name
244 }
245 }
246 }