1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

graphql: API to query client sessions out of a device_id and a user ID

This commit is contained in:
Quentin Gliech
2023-08-29 15:25:56 +02:00
parent 8402a75a7d
commit ba98b7c448
5 changed files with 173 additions and 2 deletions

View File

@@ -505,6 +505,8 @@ export type Query = {
node?: Maybe<Node>;
/** Fetch an OAuth 2.0 client by its ID. */
oauth2Client?: Maybe<Oauth2Client>;
/** Lookup a compat or OAuth 2.0 session */
session?: Maybe<Session>;
/** Fetch an upstream OAuth 2.0 link by its ID. */
upstreamOauth2Link?: Maybe<UpstreamOAuth2Link>;
/** Fetch an upstream OAuth 2.0 provider by its ID. */
@@ -536,6 +538,12 @@ export type QueryOauth2ClientArgs = {
id: Scalars["ID"]["input"];
};
/** The query root of the GraphQL interface. */
export type QuerySessionArgs = {
deviceId: Scalars["String"]["input"];
userId: Scalars["ID"]["input"];
};
/** The query root of the GraphQL interface. */
export type QueryUpstreamOauth2LinkArgs = {
id: Scalars["ID"]["input"];
@@ -616,6 +624,9 @@ export enum SendVerificationEmailStatus {
Sent = "SENT",
}
/** A client session, either compat or OAuth 2.0 */
export type Session = CompatSession | Oauth2Session;
/** The input for the `addEmail` mutation */
export type SetDisplayNameInput = {
/** The display name to set. If `None`, the display name will be removed. */