github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/graphql/users.graphql (about) 1 fragment Account on Account { 2 id 3 name 4 billingCustomerId 5 backgroundColor 6 } 7 8 fragment Group on Group { 9 id 10 name 11 global 12 description 13 } 14 15 fragment User on User { 16 id 17 name 18 email 19 avatar 20 provider 21 demoing 22 demoed 23 onboarding 24 onboardingChecklist { dismissed status } 25 emailConfirmed 26 emailConfirmBy 27 backgroundColor 28 serviceAccount 29 roles { admin } 30 } 31 32 fragment ImpersonationPolicy on ImpersonationPolicy { 33 id 34 bindings { 35 id 36 group { id name } 37 user { id name email } 38 } 39 } 40 41 fragment GroupMember on GroupMember { 42 id 43 user { ...User } 44 } 45 46 fragment Token on PersistedToken { 47 id 48 token 49 insertedAt 50 } 51 52 fragment TokenAudit on PersistedTokenAudit { 53 ip 54 timestamp 55 count 56 country 57 city 58 latitude 59 longitude 60 } 61 62 fragment Address on Address { 63 line1 64 line2 65 city 66 country 67 state 68 zip 69 } 70 71 fragment Publisher on Publisher { 72 id 73 name 74 phone 75 avatar 76 description 77 backgroundColor 78 owner { ...User } 79 address { ...Address } 80 } 81 82 fragment Webhook on Webhook { 83 id 84 url 85 secret 86 insertedAt 87 } 88 89 fragment RoleBinding on RoleBinding { 90 id 91 user { ...User } 92 group { ...Group } 93 } 94 95 fragment Role on Role { 96 id 97 name 98 description 99 repositories 100 permissions 101 roleBindings { ...RoleBinding } 102 } 103 104 fragment PublicKey on PublicKey { 105 id 106 name 107 digest 108 insertedAt 109 content 110 user { ...User } 111 } 112 113 fragment EabCredential on EabCredential { 114 id 115 keyId 116 hmacKey 117 cluster 118 provider 119 insertedAt 120 } 121 122 query Me{ 123 me { 124 ...User 125 loginMethod 126 hasInstallations 127 account { 128 ...Account 129 rootUser { id, name, email } 130 domainMappings { id domain enableSso } 131 } 132 publisher { 133 ...Publisher 134 billingAccountId 135 } 136 boundRoles { ...Role } 137 } 138 configuration { 139 stripeConnectId 140 stripePublishableKey 141 registry 142 gitCommit 143 } 144 } 145 146 query GetLoginMethod($email: String!) { 147 loginMethod(email: $email) { loginMethod token } 148 } 149 150 query ListTokens{ 151 tokens(first: 3) { 152 edges { node { token } } 153 } 154 } 155 156 query ListKeys($emails: [String]) { 157 publicKeys(emails: $emails, first: 1000) { 158 edges { node { ...PublicKey } } 159 } 160 } 161 162 query GetEabCredential($cluster: String!, $provider: Provider!) { 163 eabCredential(cluster: $cluster, provider: $provider) { 164 ...EabCredential 165 } 166 } 167 168 mutation DevLogin { 169 deviceLogin { loginUrl deviceToken } 170 } 171 172 mutation Login($email: String!, $password: String!, $deviceToken: String) { 173 login(email: $email, password: $password, deviceToken: $deviceToken) { 174 jwt 175 } 176 } 177 178 mutation ImpersonateServiceAccount($email: String) { 179 impersonateServiceAccount(email: $email) { jwt email } 180 } 181 182 mutation CreateAccessToken{ 183 createToken { token } 184 } 185 186 mutation CreateKey($key: String!, $name: String!) { 187 createPublicKey(attributes: {content: $key, name: $name}) { id } 188 } 189 190 mutation DeleteEabCredential($cluster: String!, $provider: Provider!) { 191 deleteEabKey(cluster: $cluster, provider: $provider) { 192 id 193 } 194 } 195 196 mutation CreateEvent($attrs: UserEventAttributes!) { 197 createUserEvent(attributes: $attrs) 198 } 199 200 query LoginMethod($email: String!, $host: String) { 201 loginMethod(email: $email, host: $host) { 202 loginMethod 203 token 204 authorizeUrl 205 } 206 } 207 208 mutation Signup( 209 $attributes: UserAttributes! 210 $account: AccountAttributes 211 $deviceToken: String 212 ) { 213 signup( 214 attributes: $attributes 215 account: $account 216 deviceToken: $deviceToken 217 ) { 218 jwt 219 onboarding 220 } 221 } 222 223 mutation PasswordlessLogin($token: String!) { 224 passwordlessLogin(token: $token) { 225 jwt 226 } 227 } 228 229 mutation PollLoginToken($token: String!, $deviceToken: String) { 230 loginToken(token: $token, deviceToken: $deviceToken) { 231 jwt 232 } 233 } 234 235 query OauthUrls($host: String) { 236 oauthUrls(host: $host) { 237 provider 238 authorizeUrl 239 } 240 } 241 242 query LoginMethod($email: String!, $host: String) { 243 loginMethod(email: $email, host: $host) { 244 loginMethod 245 token 246 authorizeUrl 247 } 248 } 249 250 query OauthUrls($host: String) { 251 oauthUrls(host: $host) { 252 provider 253 authorizeUrl 254 } 255 } 256 257 mutation AcceptLogin($challenge: String!) { 258 acceptLogin(challenge: $challenge) { 259 redirectTo 260 } 261 } 262 263 mutation CreateResetToken($attributes: ResetTokenAttributes!) { 264 createResetToken(attributes: $attributes) 265 } 266 267 mutation RealizeResetToken($id: ID!, $attributes: ResetTokenRealization!) { 268 realizeResetToken(id: $id, attributes: $attributes) 269 } 270 271 query ResetToken($id: ID!) { 272 resetToken(id: $id) { 273 type 274 user { 275 ...User 276 } 277 } 278 }