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

Update GraphQL schema

This commit is contained in:
Quentin Gliech
2023-08-10 19:33:47 +02:00
parent 1fcab9709f
commit 1c372da6b8
3 changed files with 8 additions and 3 deletions

View File

@@ -1165,7 +1165,7 @@ union Viewer = User | Anonymous
"""
Represents the current viewer's session
"""
union ViewerSession = BrowserSession | Anonymous
union ViewerSession = BrowserSession | Oauth2Session | Anonymous
schema {
query: Query

View File

@@ -873,7 +873,7 @@ export enum VerifyEmailStatus {
export type Viewer = Anonymous | User;
/** Represents the current viewer's session */
export type ViewerSession = Anonymous | BrowserSession;
export type ViewerSession = Anonymous | BrowserSession | Oauth2Session;
export type CurrentViewerQueryQueryVariables = Exact<{ [key: string]: never }>;
@@ -892,7 +892,8 @@ export type CurrentViewerSessionQueryQuery = {
__typename?: "Query";
viewerSession:
| { __typename: "Anonymous"; id: string }
| { __typename: "BrowserSession"; id: string };
| { __typename: "BrowserSession"; id: string }
| { __typename: "Oauth2Session" };
};
export type AddEmailMutationVariables = Exact<{

View File

@@ -2601,6 +2601,10 @@ export default {
kind: "OBJECT",
name: "BrowserSession",
},
{
kind: "OBJECT",
name: "Oauth2Session",
},
],
},
{