You've already forked authentication-service
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user