| 1 |
query fetchMe { |
| 2 |
me { |
| 3 |
...user |
| 4 |
} |
| 5 |
} |
| 6 |
|
| 7 |
query fetchUser($username: String!) { |
| 8 |
userByName(username: $username) { |
| 9 |
...user |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
fragment user on User { |
| 14 |
canonicalName |
| 15 |
email |
| 16 |
url |
| 17 |
location |
| 18 |
bio |
| 19 |
pronouns |
| 20 |
} |
| 21 |
|
| 22 |
query listSSHKeys($cursor: Cursor) { |
| 23 |
me { |
| 24 |
...sshKeys |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
query listSSHKeysByUser($username: String!, $cursor: Cursor) { |
| 29 |
userByName(username: $username) { |
| 30 |
...sshKeys |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
fragment sshKeys on User { |
| 35 |
sshKeys(cursor: $cursor) { |
| 36 |
results { |
| 37 |
id |
| 38 |
fingerprint |
| 39 |
comment |
| 40 |
} |
| 41 |
cursor |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
query listRawSSHKeys($cursor: Cursor) { |
| 46 |
me { |
| 47 |
...sshKeysRaw |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
query listRawSSHKeysByUser($username: String!, $cursor: Cursor) { |
| 52 |
userByName(username: $username) { |
| 53 |
...sshKeysRaw |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
fragment sshKeysRaw on User { |
| 58 |
sshKeys(cursor: $cursor) { |
| 59 |
results { |
| 60 |
key |
| 61 |
} |
| 62 |
cursor |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
query listPGPKeys($cursor: Cursor) { |
| 67 |
me { |
| 68 |
...pgpKeys |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
query listPGPKeysByUser($username: String!, $cursor: Cursor) { |
| 73 |
userByName(username: $username) { |
| 74 |
...pgpKeys |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
fragment pgpKeys on User { |
| 79 |
pgpKeys(cursor: $cursor) { |
| 80 |
results { |
| 81 |
id |
| 82 |
fingerprint |
| 83 |
} |
| 84 |
cursor |
| 85 |
} |
| 86 |
} |
| 87 |
|
| 88 |
query listRawPGPKeys($cursor: Cursor) { |
| 89 |
me { |
| 90 |
...pgpKeysRaw |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
query listRawPGPKeysByUser($username: String!, $cursor: Cursor) { |
| 95 |
userByName(username: $username) { |
| 96 |
...pgpKeysRaw |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
fragment pgpKeysRaw on User { |
| 101 |
pgpKeys(cursor: $cursor) { |
| 102 |
results { |
| 103 |
key |
| 104 |
} |
| 105 |
cursor |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
query auditLog($cursor: Cursor) { |
| 110 |
auditLog(cursor: $cursor) { |
| 111 |
results { |
| 112 |
created |
| 113 |
ipAddress |
| 114 |
eventType |
| 115 |
details |
| 116 |
} |
| 117 |
cursor |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
query userWebhooks($cursor: Cursor) { |
| 122 |
profileWebhooks(cursor: $cursor) { |
| 123 |
results { |
| 124 |
id |
| 125 |
url |
| 126 |
} |
| 127 |
cursor |
| 128 |
} |
| 129 |
} |
| 130 |
|
| 131 |
query personalAccessTokens { |
| 132 |
personalAccessTokens { |
| 133 |
issued |
| 134 |
expires |
| 135 |
comment |
| 136 |
grants |
| 137 |
} |
| 138 |
} |
| 139 |
|
| 140 |
query bio { |
| 141 |
me { |
| 142 |
bio |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
mutation createSSHKey($key: String!) { |
| 147 |
createSSHKey(key: $key) { |
| 148 |
id |
| 149 |
fingerprint |
| 150 |
comment |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
mutation createPGPKey($key: String!) { |
| 155 |
createPGPKey(key: $key) { |
| 156 |
fingerprint |
| 157 |
} |
| 158 |
} |
| 159 |
|
| 160 |
mutation deleteSSHKey($id: Int!) { |
| 161 |
deleteSSHKey(id: $id) { |
| 162 |
fingerprint |
| 163 |
} |
| 164 |
} |
| 165 |
|
| 166 |
mutation deletePGPKey($id: Int!) { |
| 167 |
deletePGPKey(id: $id) { |
| 168 |
fingerprint |
| 169 |
} |
| 170 |
} |
| 171 |
|
| 172 |
mutation createUserWebhook($config: ProfileWebhookInput!) { |
| 173 |
createWebhook(config: $config) { |
| 174 |
id |
| 175 |
} |
| 176 |
} |
| 177 |
|
| 178 |
mutation deleteUserWebhook($id: Int!) { |
| 179 |
deleteWebhook(id: $id) { |
| 180 |
id |
| 181 |
} |
| 182 |
} |
| 183 |
|
| 184 |
mutation updateUser($input: UserInput) { |
| 185 |
updateUser(input: $input) { |
| 186 |
canonicalName |
| 187 |
} |
| 188 |
} |
| 189 |
|
| 190 |
mutation clearUserLocation { |
| 191 |
updateUser(input: { location: null }) { |
| 192 |
canonicalName |
| 193 |
} |
| 194 |
} |
| 195 |
|
| 196 |
mutation clearUserURL { |
| 197 |
updateUser(input: { url: null }) { |
| 198 |
canonicalName |
| 199 |
} |
| 200 |
} |
| 201 |
|
| 202 |
mutation clearBio { |
| 203 |
updateUser(input: { bio: null }) { |
| 204 |
canonicalName |
| 205 |
} |
| 206 |
} |
| 207 |
|
| 208 |
mutation clearPronouns { |
| 209 |
updateUser(input: { pronouns: null }) { |
| 210 |
canonicalName |
| 211 |
} |
| 212 |
} |
| 213 |
|
| 214 |
mutation clearAvatar { |
| 215 |
updateUser(input: { avatar: null }) { |
| 216 |
canonicalName |
| 217 |
} |
| 218 |
} |