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

Split the mutations and make them use an input object instead of different parameters

This commit is contained in:
Quentin Gliech
2023-04-21 15:03:57 +02:00
parent c2d8243586
commit 047a91907d
6 changed files with 164 additions and 61 deletions

View File

@@ -22,6 +22,14 @@ export type Scalars = {
Url: any;
};
/** The input for the `addEmail` mutation */
export type AddEmailInput = {
/** The email address to add */
email: Scalars['String'];
/** The ID of the user to add the email address to */
userId: Scalars['ID'];
};
/**
* An authentication records when a user enter their credential in a browser
* session.
@@ -221,21 +229,19 @@ export type RootMutations = {
/** The mutations root of the GraphQL interface. */
export type RootMutationsAddEmailArgs = {
email: Scalars['String'];
userId: Scalars['ID'];
input: AddEmailInput;
};
/** The mutations root of the GraphQL interface. */
export type RootMutationsSendVerificationEmailArgs = {
userEmailId: Scalars['ID'];
input: SendVerificationEmailInput;
};
/** The mutations root of the GraphQL interface. */
export type RootMutationsVerifyEmailArgs = {
code: Scalars['String'];
userEmailId: Scalars['ID'];
input: VerifyEmailInput;
};
/** The query root of the GraphQL interface. */
@@ -314,6 +320,12 @@ export type RootQueryUserEmailArgs = {
id: Scalars['ID'];
};
/** The input for the `sendVerificationEmail` mutation */
export type SendVerificationEmailInput = {
/** The ID of the email address to verify */
userEmailId: Scalars['ID'];
};
export type UpstreamOAuth2Link = CreationEvent & Node & {
__typename?: 'UpstreamOAuth2Link';
/** When the object was created. */
@@ -481,6 +493,14 @@ export type UserEmailEdge = {
node: UserEmail;
};
/** The input for the `verifyEmail` mutation */
export type VerifyEmailInput = {
/** The verification code */
code: Scalars['String'];
/** The ID of the email address to verify */
userEmailId: Scalars['ID'];
};
export type BrowserSession_SessionFragment = { __typename?: 'BrowserSession', id: string, createdAt: any, lastAuthentication?: { __typename?: 'Authentication', id: string, createdAt: any } | null } & { ' $fragmentName'?: 'BrowserSession_SessionFragment' };
export type BrowserSessionList_UserFragment = { __typename?: 'User', browserSessions: { __typename?: 'BrowserSessionConnection', edges: Array<{ __typename?: 'BrowserSessionEdge', cursor: string, node: (