1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Setup GraphQL mutations to add and verify email addresses

This refactors a bit how the connection to the repository is done in the
graphql handler, so that we can properly commit transactions.
This commit is contained in:
Quentin Gliech
2023-04-20 18:03:08 +02:00
parent 1fbf60bf5d
commit be765fe04f
16 changed files with 746 additions and 322 deletions

View File

@@ -207,6 +207,37 @@ export type PageInfo = {
startCursor?: Maybe<Scalars['String']>;
};
/** The mutations root of the GraphQL interface. */
export type RootMutations = {
__typename?: 'RootMutations';
/** Add an email address to the specified user */
addEmail: UserEmail;
/** Send a verification code for an email address */
sendVerificationEmail: UserEmail;
/** Submit a verification code for an email address */
verifyEmail: UserEmail;
};
/** The mutations root of the GraphQL interface. */
export type RootMutationsAddEmailArgs = {
email: Scalars['String'];
userId: Scalars['ID'];
};
/** The mutations root of the GraphQL interface. */
export type RootMutationsSendVerificationEmailArgs = {
userEmailId: Scalars['ID'];
};
/** The mutations root of the GraphQL interface. */
export type RootMutationsVerifyEmailArgs = {
code: Scalars['String'];
userEmailId: Scalars['ID'];
};
/** The query root of the GraphQL interface. */
export type RootQuery = {
__typename?: 'RootQuery';