From ef6ecbbea04c6f151bf7ab31608a955eaf89e78e Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 25 May 2026 11:36:15 +0200 Subject: [PATCH] Regenerate GraphQL types --- frontend/src/gql/graphql.ts | 1790 +++-------------------------------- 1 file changed, 127 insertions(+), 1663 deletions(-) diff --git a/frontend/src/gql/graphql.ts b/frontend/src/gql/graphql.ts index c231871ee..3d6bdb953 100644 --- a/frontend/src/gql/graphql.ts +++ b/frontend/src/gql/graphql.ts @@ -1,348 +1,10 @@ /* eslint-disable */ +/** Internal type. DO NOT USE DIRECTLY. */ +type Exact = { [K in keyof T]: T[K] }; +/** Internal type. DO NOT USE DIRECTLY. */ +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import type { DocumentTypeDecoration } from '@graphql-typed-document-node/core'; import { graphql, type GraphQLResponseResolver, type RequestHandlerOptions } from 'msw' -export type Maybe = T | null; -export type InputMaybe = T | null | undefined; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: { input: string; output: string; } - String: { input: string; output: string; } - Boolean: { input: boolean; output: boolean; } - Int: { input: number; output: number; } - Float: { input: number; output: number; } - /** - * Implement the DateTime scalar - * - * The input/output is a string in RFC3339 format. - */ - DateTime: { input: string; output: string; } - /** URL is a String implementing the [URL Standard](http://url.spec.whatwg.org/) */ - Url: { input: string; output: string; } -}; - -/** The input for the `addEmail` mutation */ -export type AddEmailInput = { - /** The email address to add */ - email: Scalars['String']['input']; - /** Skip the email address policy check. Only allowed for admins. */ - skipPolicyCheck?: InputMaybe; - /** Skip the email address verification. Only allowed for admins. */ - skipVerification?: InputMaybe; - /** The ID of the user to add the email address to */ - userId: Scalars['ID']['input']; -}; - -/** The payload of the `addEmail` mutation */ -export type AddEmailPayload = { - __typename?: 'AddEmailPayload'; - /** The email address that was added */ - email?: Maybe; - /** Status of the operation */ - status: AddEmailStatus; - /** The user to whom the email address was added */ - user?: Maybe; - /** The list of policy violations if the email address was denied */ - violations?: Maybe>; -}; - -/** The status of the `addEmail` mutation */ -export type AddEmailStatus = - /** The email address was added */ - | 'ADDED' - /** The email address is not allowed by the policy */ - | 'DENIED' - /** The email address already exists */ - | 'EXISTS' - /** The email address is invalid */ - | 'INVALID'; - -/** The input for the `addUser` mutation. */ -export type AddUserInput = { - /** - * Skip checking with the homeserver whether the username is valid. - * - * Use this with caution! The main reason to use this, is when a user used - * by an application service needs to exist in MAS to craft special - * tokens (like with admin access) for them - */ - skipHomeserverCheck?: InputMaybe; - /** The username of the user to add. */ - username: Scalars['String']['input']; -}; - -/** The payload for the `addUser` mutation. */ -export type AddUserPayload = { - __typename?: 'AddUserPayload'; - /** Status of the operation */ - status: AddUserStatus; - /** The user that was added. */ - user?: Maybe; -}; - -/** The status of the `addUser` mutation. */ -export type AddUserStatus = - /** The user was added. */ - | 'ADDED' - /** The user already exists. */ - | 'EXISTS' - /** The username is invalid. */ - | 'INVALID' - /** The username is reserved. */ - | 'RESERVED'; - -/** The input for the `allowUserCrossSigningReset` mutation. */ -export type AllowUserCrossSigningResetInput = { - /** The ID of the user to update. */ - userId: Scalars['ID']['input']; -}; - -/** The payload for the `allowUserCrossSigningReset` mutation. */ -export type AllowUserCrossSigningResetPayload = { - __typename?: 'AllowUserCrossSigningResetPayload'; - /** The user that was updated. */ - user?: Maybe; -}; - -export type Anonymous = Node & { - __typename?: 'Anonymous'; - id: Scalars['ID']['output']; -}; - -/** A session in an application, either a compatibility or an OAuth 2.0 one */ -export type AppSession = CompatSession | Oauth2Session; - -export type AppSessionConnection = { - __typename?: 'AppSessionConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type AppSessionEdge = { - __typename?: 'AppSessionEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: AppSession; -}; - -/** - * An authentication records when a user enter their credential in a browser - * session. - */ -export type Authentication = CreationEvent & Node & { - __typename?: 'Authentication'; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** ID of the object. */ - id: Scalars['ID']['output']; -}; - -/** A browser session represents a logged in user in a browser. */ -export type BrowserSession = CreationEvent & Node & { - __typename?: 'BrowserSession'; - /** - * Get the list of both compat and OAuth 2.0 sessions started by this - * browser session, chronologically sorted - */ - appSessions: AppSessionConnection; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** When the session was finished. */ - finishedAt?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** The last time the session was active. */ - lastActiveAt?: Maybe; - /** The last IP address used by the session. */ - lastActiveIp?: Maybe; - /** The most recent authentication of this session. */ - lastAuthentication?: Maybe; - /** The state of the session. */ - state: SessionState; - /** The user logged in this session. */ - user: User; - /** The user-agent with which the session was created. */ - userAgent?: Maybe; -}; - - -/** A browser session represents a logged in user in a browser. */ -export type BrowserSessionAppSessionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - device?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - state?: InputMaybe; -}; - -export type BrowserSessionConnection = { - __typename?: 'BrowserSessionConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type BrowserSessionEdge = { - __typename?: 'BrowserSessionEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: BrowserSession; -}; - -export type CaptchaConfig = { - __typename?: 'CaptchaConfig'; - id: Scalars['ID']['output']; - /** Which Captcha service is being used */ - service: CaptchaService; - /** The site key used by the instance */ - siteKey: Scalars['String']['output']; -}; - -/** Which Captcha service is being used */ -export type CaptchaService = - | 'CLOUDFLARE_TURNSTILE' - | 'H_CAPTCHA' - | 'RECAPTCHA_V2'; - -/** - * A compat session represents a client session which used the legacy Matrix - * login API. - */ -export type CompatSession = CreationEvent & Node & { - __typename?: 'CompatSession'; - /** The browser session which started this session, if any. */ - browserSession?: Maybe; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Matrix Device ID of this session. */ - deviceId?: Maybe; - /** When the session ended. */ - finishedAt?: Maybe; - /** A human-provided name for the session. */ - humanName?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** The last time the session was active. */ - lastActiveAt?: Maybe; - /** The last IP address used by the session. */ - lastActiveIp?: Maybe; - /** The associated SSO login, if any. */ - ssoLogin?: Maybe; - /** The state of the session. */ - state: SessionState; - /** The user authorized for this session. */ - user: User; - /** The user-agent with which the session was created. */ - userAgent?: Maybe; -}; - -export type CompatSessionConnection = { - __typename?: 'CompatSessionConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CompatSessionEdge = { - __typename?: 'CompatSessionEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: CompatSession; -}; - -/** The type of a compatibility session. */ -export type CompatSessionType = - /** The session was created by a SSO login. */ - | 'SSO_LOGIN' - /** The session was created by an unknown method. */ - | 'UNKNOWN'; - -/** - * A compat SSO login represents a login done through the legacy Matrix login - * API, via the `m.login.sso` login method. - */ -export type CompatSsoLogin = Node & { - __typename?: 'CompatSsoLogin'; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** When the client exchanged the login token sent during the redirection. */ - exchangedAt?: Maybe; - /** - * When the login was fulfilled, and the user was redirected back to the - * client. - */ - fulfilledAt?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** The redirect URI used during the login. */ - redirectUri: Scalars['Url']['output']; - /** The compat session which was started by this login. */ - session?: Maybe; -}; - -export type CompatSsoLoginConnection = { - __typename?: 'CompatSsoLoginConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CompatSsoLoginEdge = { - __typename?: 'CompatSsoLoginEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: CompatSsoLogin; -}; - -/** The input for the `completeEmailAuthentication` mutation */ -export type CompleteEmailAuthenticationInput = { - /** The authentication code to use */ - code: Scalars['String']['input']; - /** The ID of the authentication session to complete */ - id: Scalars['ID']['input']; -}; - -/** The payload of the `completeEmailAuthentication` mutation */ -export type CompleteEmailAuthenticationPayload = { - __typename?: 'CompleteEmailAuthenticationPayload'; - /** Status of the operation */ - status: CompleteEmailAuthenticationStatus; -}; - /** The status of the `completeEmailAuthentication` mutation */ export type CompleteEmailAuthenticationStatus = /** The authentication code has expired */ @@ -356,64 +18,12 @@ export type CompleteEmailAuthenticationStatus = /** Too many attempts to complete an email authentication */ | 'RATE_LIMITED'; -/** The input of the `createOauth2Session` mutation. */ -export type CreateOAuth2SessionInput = { - /** Whether the session should issue a never-expiring access token */ - permanent?: InputMaybe; - /** The scope of the session */ - scope: Scalars['String']['input']; - /** The ID of the user for which to create the session */ - userId: Scalars['ID']['input']; -}; - -/** The payload of the `createOauth2Session` mutation. */ -export type CreateOAuth2SessionPayload = { - __typename?: 'CreateOAuth2SessionPayload'; - /** Access token for this session */ - accessToken: Scalars['String']['output']; - /** The OAuth 2.0 session which was just created */ - oauth2Session: Oauth2Session; - /** Refresh token for this session, if it is not a permanent session */ - refreshToken?: Maybe; -}; - -/** An object with a creation date. */ -export type CreationEvent = { - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; -}; - /** A filter for dates, with a lower bound and an upper bound */ export type DateFilter = { /** The lower bound of the date range */ - after?: InputMaybe; + after?: string | null | undefined; /** The upper bound of the date range */ - before?: InputMaybe; -}; - -/** The input for the `deactivateUser` mutation. */ -export type DeactivateUserInput = { - /** - * Whether to ask the homeserver to GDPR-erase the user - * - * This is equivalent to the `erase` parameter on the - * `/_matrix/client/v3/account/deactivate` C-S API, which is - * implementation-specific. - * - * What Synapse does is documented here: - * - */ - hsErase: Scalars['Boolean']['input']; - /** The password of the user to deactivate. */ - password?: InputMaybe; -}; - -/** The payload for the `deactivateUser` mutation. */ -export type DeactivateUserPayload = { - __typename?: 'DeactivateUserPayload'; - /** Status of the operation */ - status: DeactivateUserStatus; - user?: Maybe; + before?: string | null | undefined; }; /** The status of the `deactivateUser` mutation. */ @@ -434,20 +44,6 @@ export type DeviceType = /** Unknown device type */ | 'UNKNOWN'; -/** The input of the `endBrowserSession` mutation. */ -export type EndBrowserSessionInput = { - /** The ID of the session to end. */ - browserSessionId: Scalars['ID']['input']; -}; - -export type EndBrowserSessionPayload = { - __typename?: 'EndBrowserSessionPayload'; - /** Returns the ended session. */ - browserSession?: Maybe; - /** The status of the mutation. */ - status: EndBrowserSessionStatus; -}; - /** The status of the `endBrowserSession` mutation. */ export type EndBrowserSessionStatus = /** The session was ended. */ @@ -455,20 +51,6 @@ export type EndBrowserSessionStatus = /** The session was not found. */ | 'NOT_FOUND'; -/** The input of the `endCompatSession` mutation. */ -export type EndCompatSessionInput = { - /** The ID of the session to end. */ - compatSessionId: Scalars['ID']['input']; -}; - -export type EndCompatSessionPayload = { - __typename?: 'EndCompatSessionPayload'; - /** Returns the ended session. */ - compatSession?: Maybe; - /** The status of the mutation. */ - status: EndCompatSessionStatus; -}; - /** The status of the `endCompatSession` mutation. */ export type EndCompatSessionStatus = /** The session was ended. */ @@ -476,20 +58,6 @@ export type EndCompatSessionStatus = /** The session was not found. */ | 'NOT_FOUND'; -/** The input of the `endOauth2Session` mutation. */ -export type EndOAuth2SessionInput = { - /** The ID of the session to end. */ - oauth2SessionId: Scalars['ID']['input']; -}; - -export type EndOAuth2SessionPayload = { - __typename?: 'EndOAuth2SessionPayload'; - /** Returns the ended session. */ - oauth2Session?: Maybe; - /** The status of the mutation. */ - status: EndOAuth2SessionStatus; -}; - /** The status of the `endOauth2Session` mutation. */ export type EndOAuth2SessionStatus = /** The session was ended. */ @@ -497,255 +65,6 @@ export type EndOAuth2SessionStatus = /** The session was not found. */ | 'NOT_FOUND'; -/** The input for the `lockUser` mutation. */ -export type LockUserInput = { - /** Permanently lock the user. */ - deactivate?: InputMaybe; - /** The ID of the user to lock. */ - userId: Scalars['ID']['input']; -}; - -/** The payload for the `lockUser` mutation. */ -export type LockUserPayload = { - __typename?: 'LockUserPayload'; - /** Status of the operation */ - status: LockUserStatus; - /** The user that was locked. */ - user?: Maybe; -}; - -/** The status of the `lockUser` mutation. */ -export type LockUserStatus = - /** The user was locked. */ - | 'LOCKED' - /** The user was not found. */ - | 'NOT_FOUND'; - -export type MatrixUser = { - __typename?: 'MatrixUser'; - /** The avatar URL of the user, if any. */ - avatarUrl?: Maybe; - /** Whether the user is deactivated on the homeserver. */ - deactivated: Scalars['Boolean']['output']; - /** The display name of the user, if any. */ - displayName?: Maybe; - /** The Matrix ID of the user. */ - mxid: Scalars['String']['output']; -}; - -/** The mutations root of the GraphQL interface. */ -export type Mutation = { - __typename?: 'Mutation'; - /** - * Add an email address to the specified user - * @deprecated Use `startEmailAuthentication` instead. - */ - addEmail: AddEmailPayload; - /** Add a user. This is only available to administrators. */ - addUser: AddUserPayload; - /** Temporarily allow user to reset their cross-signing keys. */ - allowUserCrossSigningReset: AllowUserCrossSigningResetPayload; - /** Complete the email authentication flow */ - completeEmailAuthentication: CompleteEmailAuthenticationPayload; - /** - * Create a new arbitrary OAuth 2.0 Session. - * - * Only available for administrators. - */ - createOauth2Session: CreateOAuth2SessionPayload; - /** - * Deactivate the current user account - * - * If the user has a password, it *must* be supplied in the `password` - * field. - */ - deactivateUser: DeactivateUserPayload; - endBrowserSession: EndBrowserSessionPayload; - endCompatSession: EndCompatSessionPayload; - endOauth2Session: EndOAuth2SessionPayload; - /** Lock a user. This is only available to administrators. */ - lockUser: LockUserPayload; - /** Remove an email address */ - removeEmail: RemoveEmailPayload; - /** Resend the email authentication code */ - resendEmailAuthenticationCode: ResendEmailAuthenticationCodePayload; - /** - * Resend a user recovery email - * - * This is used when a user opens a recovery link that has expired. In this - * case, we display a link for them to get a new recovery email, which - * calls this mutation. - */ - resendRecoveryEmail: ResendRecoveryEmailPayload; - /** - * Set whether a user can request admin. This is only available to - * administrators. - */ - setCanRequestAdmin: SetCanRequestAdminPayload; - setCompatSessionName: SetCompatSessionNamePayload; - /** Set the display name of a user */ - setDisplayName: SetDisplayNamePayload; - setOauth2SessionName: SetOAuth2SessionNamePayload; - /** - * Set the password for a user. - * - * This can be used by server administrators to set any user's password, - * or, provided the capability hasn't been disabled on this server, - * by a user to change their own password as long as they know their - * current password. - */ - setPassword: SetPasswordPayload; - /** Set the password for yourself, using a recovery ticket sent by e-mail. */ - setPasswordByRecovery: SetPasswordPayload; - /** - * Set an email address as primary - * @deprecated This doesn't do anything anymore, but is kept to avoid breaking existing queries - */ - setPrimaryEmail: SetPrimaryEmailPayload; - /** Start a new email authentication flow */ - startEmailAuthentication: StartEmailAuthenticationPayload; - /** Unlock and reactivate a user. This is only available to administrators. */ - unlockUser: UnlockUserPayload; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationAddEmailArgs = { - input: AddEmailInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationAddUserArgs = { - input: AddUserInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationAllowUserCrossSigningResetArgs = { - input: AllowUserCrossSigningResetInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationCompleteEmailAuthenticationArgs = { - input: CompleteEmailAuthenticationInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationCreateOauth2SessionArgs = { - input: CreateOAuth2SessionInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationDeactivateUserArgs = { - input: DeactivateUserInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationEndBrowserSessionArgs = { - input: EndBrowserSessionInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationEndCompatSessionArgs = { - input: EndCompatSessionInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationEndOauth2SessionArgs = { - input: EndOAuth2SessionInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationLockUserArgs = { - input: LockUserInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationRemoveEmailArgs = { - input: RemoveEmailInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationResendEmailAuthenticationCodeArgs = { - input: ResendEmailAuthenticationCodeInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationResendRecoveryEmailArgs = { - input: ResendRecoveryEmailInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetCanRequestAdminArgs = { - input: SetCanRequestAdminInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetCompatSessionNameArgs = { - input: SetCompatSessionNameInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetDisplayNameArgs = { - input: SetDisplayNameInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetOauth2SessionNameArgs = { - input: SetOAuth2SessionNameInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetPasswordArgs = { - input: SetPasswordInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetPasswordByRecoveryArgs = { - input: SetPasswordByRecoveryInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationSetPrimaryEmailArgs = { - input: SetPrimaryEmailInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationStartEmailAuthenticationArgs = { - input: StartEmailAuthenticationInput; -}; - - -/** The mutations root of the GraphQL interface. */ -export type MutationUnlockUserArgs = { - input: UnlockUserInput; -}; - -/** An object with an ID. */ -export type Node = { - /** ID of the object. */ - id: Scalars['ID']['output']; -}; - /** The application type advertised by the client. */ export type Oauth2ApplicationType = /** Client is a native application. */ @@ -753,271 +72,6 @@ export type Oauth2ApplicationType = /** Client is a web application. */ | 'WEB'; -/** An OAuth 2.0 client */ -export type Oauth2Client = Node & { - __typename?: 'Oauth2Client'; - /** The application type advertised by the client. */ - applicationType?: Maybe; - /** OAuth 2.0 client ID */ - clientId: Scalars['String']['output']; - /** Client name advertised by the client. */ - clientName?: Maybe; - /** Client URI advertised by the client. */ - clientUri?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** Logo URI advertised by the client. */ - logoUri?: Maybe; - /** Privacy policy URI advertised by the client. */ - policyUri?: Maybe; - /** List of redirect URIs used for authorization grants by the client. */ - redirectUris: Array; - /** Terms of services URI advertised by the client. */ - tosUri?: Maybe; -}; - -/** - * An OAuth 2.0 session represents a client session which used the OAuth APIs - * to login. - */ -export type Oauth2Session = CreationEvent & Node & { - __typename?: 'Oauth2Session'; - /** The browser session which started this OAuth 2.0 session. */ - browserSession?: Maybe; - /** OAuth 2.0 client used by this session. */ - client: Oauth2Client; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** When the session ended. */ - finishedAt?: Maybe; - /** The user-provided name for this session. */ - humanName?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** The last time the session was active. */ - lastActiveAt?: Maybe; - /** The last IP address used by the session. */ - lastActiveIp?: Maybe; - /** Scope granted for this session. */ - scope: Scalars['String']['output']; - /** The state of the session. */ - state: SessionState; - /** User authorized for this session. */ - user?: Maybe; - /** The user-agent with which the session was created. */ - userAgent?: Maybe; -}; - -export type Oauth2SessionConnection = { - __typename?: 'Oauth2SessionConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type Oauth2SessionEdge = { - __typename?: 'Oauth2SessionEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: Oauth2Session; -}; - -/** Information about pagination in a connection */ -export type PageInfo = { - __typename?: 'PageInfo'; - /** When paginating forwards, the cursor to continue. */ - endCursor?: Maybe; - /** When paginating forwards, are there more items? */ - hasNextPage: Scalars['Boolean']['output']; - /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars['Boolean']['output']; - /** When paginating backwards, the cursor to continue. */ - startCursor?: Maybe; -}; - -/** The query root of the GraphQL interface. */ -export type Query = { - __typename?: 'Query'; - /** Fetch a browser session by its ID. */ - browserSession?: Maybe; - /** Fetch a compatible session by its ID. */ - compatSession?: Maybe; - /** - * Get the current logged in browser session - * @deprecated Use `viewerSession` instead. - */ - currentBrowserSession?: Maybe; - /** - * Get the current logged in user - * @deprecated Use `viewer` instead. - */ - currentUser?: Maybe; - /** Fetches an object given its ID. */ - node?: Maybe; - /** Fetch an OAuth 2.0 client by its ID. */ - oauth2Client?: Maybe; - /** Fetch an OAuth 2.0 session by its ID. */ - oauth2Session?: Maybe; - /** Lookup a compat or OAuth 2.0 session */ - session?: Maybe; - /** Get the current site configuration */ - siteConfig: SiteConfig; - /** Fetch an upstream OAuth 2.0 link by its ID. */ - upstreamOauth2Link?: Maybe; - /** Fetch an upstream OAuth 2.0 provider by its ID. */ - upstreamOauth2Provider?: Maybe; - /** Get a list of upstream OAuth 2.0 providers. */ - upstreamOauth2Providers: UpstreamOAuth2ProviderConnection; - /** Fetch a user by its ID. */ - user?: Maybe; - /** Fetch a user by its username. */ - userByUsername?: Maybe; - /** Fetch a user email by its ID. */ - userEmail?: Maybe; - /** Fetch a user email authentication session */ - userEmailAuthentication?: Maybe; - /** Fetch a user recovery ticket. */ - userRecoveryTicket?: Maybe; - /** - * Get a list of users. - * - * This is only available to administrators. - */ - users: UserConnection; - /** Get the viewer */ - viewer: Viewer; - /** Get the viewer's session */ - viewerSession: ViewerSession; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryBrowserSessionArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryCompatSessionArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryNodeArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryOauth2ClientArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryOauth2SessionArgs = { - 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']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUpstreamOauth2ProviderArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUpstreamOauth2ProvidersArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUserArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUserByUsernameArgs = { - username: Scalars['String']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUserEmailArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUserEmailAuthenticationArgs = { - id: Scalars['ID']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUserRecoveryTicketArgs = { - ticket: Scalars['String']['input']; -}; - - -/** The query root of the GraphQL interface. */ -export type QueryUsersArgs = { - after?: InputMaybe; - before?: InputMaybe; - canRequestAdmin?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - state?: InputMaybe; -}; - -/** The input for the `removeEmail` mutation */ -export type RemoveEmailInput = { - /** - * The user's current password. This is required if the user is not an - * admin and it has a password on its account. - */ - password?: InputMaybe; - /** The ID of the email address to remove */ - userEmailId: Scalars['ID']['input']; -}; - -/** The payload of the `removeEmail` mutation */ -export type RemoveEmailPayload = { - __typename?: 'RemoveEmailPayload'; - /** The email address that was removed */ - email?: Maybe; - /** Status of the operation */ - status: RemoveEmailStatus; - /** The user to whom the email address belonged */ - user?: Maybe; -}; - /** The status of the `removeEmail` mutation */ export type RemoveEmailStatus = /** The password provided is incorrect */ @@ -1027,21 +81,6 @@ export type RemoveEmailStatus = /** The email address was removed */ | 'REMOVED'; -/** The input for the `resendEmailAuthenticationCode` mutation */ -export type ResendEmailAuthenticationCodeInput = { - /** The ID of the authentication session to resend the code for */ - id: Scalars['ID']['input']; - /** The language to use for the email */ - language?: Scalars['String']['input']; -}; - -/** The payload of the `resendEmailAuthenticationCode` mutation */ -export type ResendEmailAuthenticationCodePayload = { - __typename?: 'ResendEmailAuthenticationCodePayload'; - /** Status of the operation */ - status: ResendEmailAuthenticationCodeStatus; -}; - /** The status of the `resendEmailAuthenticationCode` mutation */ export type ResendEmailAuthenticationCodeStatus = /** The email authentication session is already completed */ @@ -1051,21 +90,6 @@ export type ResendEmailAuthenticationCodeStatus = /** The email was resent */ | 'RESENT'; -/** The input for the `resendRecoveryEmail` mutation. */ -export type ResendRecoveryEmailInput = { - /** The recovery ticket to use. */ - ticket: Scalars['String']['input']; -}; - -/** The return type for the `resendRecoveryEmail` mutation. */ -export type ResendRecoveryEmailPayload = { - __typename?: 'ResendRecoveryEmailPayload'; - /** URL to continue the recovery process */ - progressUrl?: Maybe; - /** Status of the operation */ - status: ResendRecoveryEmailStatus; -}; - /** The status of the `resendRecoveryEmail` mutation. */ export type ResendRecoveryEmailStatus = /** The recovery ticket was not found. */ @@ -1075,55 +99,6 @@ export type ResendRecoveryEmailStatus = /** The recovery email was sent. */ | 'SENT'; -/** A client session, either compat or OAuth 2.0 */ -export type Session = CompatSession | Oauth2Session; - -/** See [`mas_config::ExperimentalSessionLimitConfig`] */ -export type SessionLimitConfig = { - __typename?: 'SessionLimitConfig'; - dangerousHardLimitEviction: Scalars['Boolean']['output']; - hardLimit: Scalars['Int']['output']; - softLimit: Scalars['Int']['output']; -}; - -/** The state of a session */ -export type SessionState = - /** The session is active. */ - | 'ACTIVE' - /** The session is no longer active. */ - | 'FINISHED'; - -/** The input for the `setCanRequestAdmin` mutation. */ -export type SetCanRequestAdminInput = { - /** Whether the user can request admin. */ - canRequestAdmin: Scalars['Boolean']['input']; - /** The ID of the user to update. */ - userId: Scalars['ID']['input']; -}; - -/** The payload for the `setCanRequestAdmin` mutation. */ -export type SetCanRequestAdminPayload = { - __typename?: 'SetCanRequestAdminPayload'; - /** The user that was updated. */ - user?: Maybe; -}; - -/** The input of the `setCompatSessionName` mutation. */ -export type SetCompatSessionNameInput = { - /** The ID of the session to set the name of. */ - compatSessionId: Scalars['ID']['input']; - /** The new name of the session. */ - humanName: Scalars['String']['input']; -}; - -export type SetCompatSessionNamePayload = { - __typename?: 'SetCompatSessionNamePayload'; - /** The session that was updated. */ - oauth2Session?: Maybe; - /** The status of the mutation. */ - status: SetCompatSessionNameStatus; -}; - /** The status of the `setCompatSessionName` mutation. */ export type SetCompatSessionNameStatus = /** The session was not found. */ @@ -1131,23 +106,6 @@ export type SetCompatSessionNameStatus = /** The session was updated. */ | 'UPDATED'; -/** The input for the `addEmail` mutation */ -export type SetDisplayNameInput = { - /** The display name to set. If `None`, the display name will be removed. */ - displayName?: InputMaybe; - /** The ID of the user to add the email address to */ - userId: Scalars['ID']['input']; -}; - -/** The payload of the `setDisplayName` mutation */ -export type SetDisplayNamePayload = { - __typename?: 'SetDisplayNamePayload'; - /** Status of the operation */ - status: SetDisplayNameStatus; - /** The user that was updated */ - user?: Maybe; -}; - /** The status of the `setDisplayName` mutation */ export type SetDisplayNameStatus = /** The display name is invalid */ @@ -1155,22 +113,6 @@ export type SetDisplayNameStatus = /** The display name was set */ | 'SET'; -/** The input of the `setOauth2SessionName` mutation. */ -export type SetOAuth2SessionNameInput = { - /** The new name of the session. */ - humanName: Scalars['String']['input']; - /** The ID of the session to set the name of. */ - oauth2SessionId: Scalars['ID']['input']; -}; - -export type SetOAuth2SessionNamePayload = { - __typename?: 'SetOAuth2SessionNamePayload'; - /** The session that was updated. */ - oauth2Session?: Maybe; - /** The status of the mutation. */ - status: SetOAuth2SessionNameStatus; -}; - /** The status of the `setOauth2SessionName` mutation. */ export type SetOAuth2SessionNameStatus = /** The session was not found. */ @@ -1178,42 +120,6 @@ export type SetOAuth2SessionNameStatus = /** The session was updated. */ | 'UPDATED'; -/** The input for the `setPasswordByRecovery` mutation. */ -export type SetPasswordByRecoveryInput = { - /** The new password for the user. */ - newPassword: Scalars['String']['input']; - /** - * The recovery ticket to use. - * This identifies the user as well as proving authorisation to perform the - * recovery operation. - */ - ticket: Scalars['String']['input']; -}; - -/** The input for the `setPassword` mutation. */ -export type SetPasswordInput = { - /** - * The current password of the user. - * Required if you are not a server administrator. - */ - currentPassword?: InputMaybe; - /** The new password for the user. */ - newPassword: Scalars['String']['input']; - /** - * The ID of the user to set the password for. - * If you are not a server administrator then this must be your own user - * ID. - */ - userId: Scalars['ID']['input']; -}; - -/** The return type for the `setPassword` mutation. */ -export type SetPasswordPayload = { - __typename?: 'SetPasswordPayload'; - /** Status of the operation */ - status: SetPasswordStatus; -}; - /** The status of the `setPassword` mutation. */ export type SetPasswordStatus = /** Your account is locked and you can't change its password. */ @@ -1253,93 +159,6 @@ export type SetPasswordStatus = /** The supplied current password was wrong. */ | 'WRONG_PASSWORD'; -/** The input for the `setPrimaryEmail` mutation */ -export type SetPrimaryEmailInput = { - /** The ID of the email address to set as primary */ - userEmailId: Scalars['ID']['input']; -}; - -/** The payload of the `setPrimaryEmail` mutation */ -export type SetPrimaryEmailPayload = { - __typename?: 'SetPrimaryEmailPayload'; - status: SetPrimaryEmailStatus; - /** The user to whom the email address belongs */ - user?: Maybe; -}; - -/** The status of the `setPrimaryEmail` mutation */ -export type SetPrimaryEmailStatus = - /** The email address was not found */ - | 'NOT_FOUND' - /** The email address was set as primary */ - | 'SET' - /** Can't make an unverified email address primary */ - | 'UNVERIFIED'; - -export type SiteConfig = Node & { - __typename?: 'SiteConfig'; - /** Whether users can delete their own account. */ - accountDeactivationAllowed: Scalars['Boolean']['output']; - /** The configuration of CAPTCHA provider. */ - captchaConfig?: Maybe; - /** Whether users can change their display name. */ - displayNameChangeAllowed: Scalars['Boolean']['output']; - /** Whether users can change their email. */ - emailChangeAllowed: Scalars['Boolean']['output']; - /** The ID of the site configuration. */ - id: Scalars['ID']['output']; - /** Imprint to show in the footer. */ - imprint?: Maybe; - /** Whether users can log in with their email address. */ - loginWithEmailAllowed: Scalars['Boolean']['output']; - /** - * Minimum password complexity, from 0 to 4, in terms of a zxcvbn score. - * The exact scorer (including dictionaries and other data tables) - * in use is . - */ - minimumPasswordComplexity: Scalars['Int']['output']; - /** Whether passwords are enabled and users can change their own passwords. */ - passwordChangeAllowed: Scalars['Boolean']['output']; - /** Whether passwords are enabled for login. */ - passwordLoginEnabled: Scalars['Boolean']['output']; - /** Whether passwords are enabled and users can register using a password. */ - passwordRegistrationEnabled: Scalars['Boolean']['output']; - /** Experimental plan management iframe URI. */ - planManagementIframeUri?: Maybe; - /** The URL to the privacy policy. */ - policyUri?: Maybe; - /** The server name of the homeserver. */ - serverName: Scalars['String']['output']; - /** Limits on the number of application sessions that each user can have */ - sessionLimit?: Maybe; - /** The URL to the terms of service. */ - tosUri?: Maybe; -}; - -/** The input for the `startEmailAuthentication` mutation */ -export type StartEmailAuthenticationInput = { - /** The email address to add to the account */ - email: Scalars['String']['input']; - /** The language to use for the email */ - language?: Scalars['String']['input']; - /** - * The user's current password. This is required if the user has a password - * on its account. - */ - password?: InputMaybe; -}; - -/** The payload of the `startEmailAuthentication` mutation */ -export type StartEmailAuthenticationPayload = { - __typename?: 'StartEmailAuthenticationPayload'; - /** The email authentication session that was started */ - authentication?: Maybe; - /** Status of the operation */ - status: StartEmailAuthenticationStatus; - /** The list of policy violations if the email address was denied */ - violations?: Maybe>; -}; - /** The status of the `startEmailAuthentication` mutation */ export type StartEmailAuthenticationStatus = /** The email address isn't allowed by the policy */ @@ -1355,333 +174,6 @@ export type StartEmailAuthenticationStatus = /** The email address was started */ | 'STARTED'; -/** The input for the `unlockUser` mutation. */ -export type UnlockUserInput = { - /** The ID of the user to unlock */ - userId: Scalars['ID']['input']; -}; - -/** The payload for the `unlockUser` mutation. */ -export type UnlockUserPayload = { - __typename?: 'UnlockUserPayload'; - /** Status of the operation */ - status: UnlockUserStatus; - /** The user that was unlocked. */ - user?: Maybe; -}; - -/** The status of the `unlockUser` mutation. */ -export type UnlockUserStatus = - /** The user was not found. */ - | 'NOT_FOUND' - /** The user was unlocked. */ - | 'UNLOCKED'; - -export type UpstreamOAuth2Link = CreationEvent & Node & { - __typename?: 'UpstreamOAuth2Link'; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** A human-readable name for the link subject. */ - humanAccountName?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** The provider for which this link is. */ - provider: UpstreamOAuth2Provider; - /** Subject used for linking */ - subject: Scalars['String']['output']; - /** The user to which this link is associated. */ - user?: Maybe; -}; - -export type UpstreamOAuth2LinkConnection = { - __typename?: 'UpstreamOAuth2LinkConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type UpstreamOAuth2LinkEdge = { - __typename?: 'UpstreamOAuth2LinkEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: UpstreamOAuth2Link; -}; - -export type UpstreamOAuth2Provider = CreationEvent & Node & { - __typename?: 'UpstreamOAuth2Provider'; - /** - * A brand identifier for this provider. - * - * One of `google`, `github`, `gitlab`, `apple` or `facebook`. - */ - brandName?: Maybe; - /** Client ID used for this provider. */ - clientId: Scalars['String']['output']; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** A human-readable name for this provider. */ - humanName?: Maybe; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** OpenID Connect issuer URL. */ - issuer?: Maybe; - /** URL to start the linking process of the current user with this provider. */ - linkUrl: Scalars['Url']['output']; -}; - -export type UpstreamOAuth2ProviderConnection = { - __typename?: 'UpstreamOAuth2ProviderConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type UpstreamOAuth2ProviderEdge = { - __typename?: 'UpstreamOAuth2ProviderEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: UpstreamOAuth2Provider; -}; - -/** A user is an individual's account. */ -export type User = Node & { - __typename?: 'User'; - /** - * Get the list of both compat and OAuth 2.0 sessions, chronologically - * sorted - */ - appSessions: AppSessionConnection; - /** Get the list of active browser sessions, chronologically sorted */ - browserSessions: BrowserSessionConnection; - /** Whether the user can request admin privileges. */ - canRequestAdmin: Scalars['Boolean']['output']; - /** Get the list of compatibility sessions, chronologically sorted */ - compatSessions: CompatSessionConnection; - /** Get the list of compatibility SSO logins, chronologically sorted */ - compatSsoLogins: CompatSsoLoginConnection; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Get the list of emails, chronologically sorted */ - emails: UserEmailConnection; - /** Check if the user has a password set. */ - hasPassword: Scalars['Boolean']['output']; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** When the user was locked out. */ - lockedAt?: Maybe; - /** Access to the user's Matrix account information. */ - matrix: MatrixUser; - /** Get the list of OAuth 2.0 sessions, chronologically sorted */ - oauth2Sessions: Oauth2SessionConnection; - /** Get the list of upstream OAuth 2.0 links */ - upstreamOauth2Links: UpstreamOAuth2LinkConnection; - /** Username chosen by the user. */ - username: Scalars['String']['output']; -}; - - -/** A user is an individual's account. */ -export type UserAppSessionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - browserSession?: InputMaybe; - device?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - lastActive?: InputMaybe; - state?: InputMaybe; -}; - - -/** A user is an individual's account. */ -export type UserBrowserSessionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - lastActive?: InputMaybe; - state?: InputMaybe; -}; - - -/** A user is an individual's account. */ -export type UserCompatSessionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - lastActive?: InputMaybe; - state?: InputMaybe; - type?: InputMaybe; -}; - - -/** A user is an individual's account. */ -export type UserCompatSsoLoginsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A user is an individual's account. */ -export type UserEmailsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - state?: InputMaybe; -}; - - -/** A user is an individual's account. */ -export type UserOauth2SessionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - client?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - lastActive?: InputMaybe; - state?: InputMaybe; -}; - - -/** A user is an individual's account. */ -export type UserUpstreamOauth2LinksArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -/** A parsed user agent string */ -export type UserAgent = { - __typename?: 'UserAgent'; - /** The device type */ - deviceType: DeviceType; - /** The device model */ - model?: Maybe; - /** The name of the browser */ - name?: Maybe; - /** The operating system name */ - os?: Maybe; - /** The operating system version */ - osVersion?: Maybe; - /** The user agent string */ - raw: Scalars['String']['output']; - /** The version of the browser */ - version?: Maybe; -}; - -export type UserConnection = { - __typename?: 'UserConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type UserEdge = { - __typename?: 'UserEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: User; -}; - -/** A user email address */ -export type UserEmail = CreationEvent & Node & { - __typename?: 'UserEmail'; - /** - * When the email address was confirmed. Is `null` if the email was never - * verified by the user. - * @deprecated Emails are always confirmed now. - */ - confirmedAt?: Maybe; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Email address */ - email: Scalars['String']['output']; - /** ID of the object. */ - id: Scalars['ID']['output']; -}; - -/** A email authentication session */ -export type UserEmailAuthentication = CreationEvent & Node & { - __typename?: 'UserEmailAuthentication'; - /** When the object was last updated. */ - completedAt?: Maybe; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The email address associated with this session */ - email: Scalars['String']['output']; - /** ID of the object. */ - id: Scalars['ID']['output']; -}; - -export type UserEmailConnection = { - __typename?: 'UserEmailConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type UserEmailEdge = { - __typename?: 'UserEmailEdge'; - /** A cursor for use in pagination */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge */ - node: UserEmail; -}; - -/** The state of a compatibility session. */ -export type UserEmailState = - /** The email address has been confirmed. */ - | 'CONFIRMED' - /** The email address is pending confirmation. */ - | 'PENDING'; - -/** A recovery ticket */ -export type UserRecoveryTicket = CreationEvent & Node & { - __typename?: 'UserRecoveryTicket'; - /** When the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The email address associated with this ticket */ - email: Scalars['String']['output']; - /** ID of the object. */ - id: Scalars['ID']['output']; - /** The status of the ticket */ - status: UserRecoveryTicketStatus; - /** The username associated with this ticket */ - username: Scalars['String']['output']; -}; - /** The status of a recovery ticket */ export type UserRecoveryTicketStatus = /** The ticket has been consumed */ @@ -1691,238 +183,222 @@ export type UserRecoveryTicketStatus = /** The ticket is valid */ | 'VALID'; -/** The state of a user. */ -export type UserState = - /** The user is active. */ - | 'ACTIVE' - /** The user is locked. */ - | 'LOCKED'; +export type AccountDeleteButton_UserFragment = { username: string, hasPassword: boolean, matrix: { mxid: string, displayName: string | null } } & { ' $fragmentName'?: 'AccountDeleteButton_UserFragment' }; -/** Represents the current viewer */ -export type Viewer = Anonymous | User; - -/** Represents the current viewer's session */ -export type ViewerSession = Anonymous | BrowserSession | Oauth2Session; - -export type AccountDeleteButton_UserFragment = { __typename?: 'User', username: string, hasPassword: boolean, matrix: { __typename?: 'MatrixUser', mxid: string, displayName?: string | null } } & { ' $fragmentName'?: 'AccountDeleteButton_UserFragment' }; - -export type AccountDeleteButton_SiteConfigFragment = { __typename?: 'SiteConfig', passwordLoginEnabled: boolean } & { ' $fragmentName'?: 'AccountDeleteButton_SiteConfigFragment' }; +export type AccountDeleteButton_SiteConfigFragment = { passwordLoginEnabled: boolean } & { ' $fragmentName'?: 'AccountDeleteButton_SiteConfigFragment' }; export type DeactivateUserMutationVariables = Exact<{ - hsErase: Scalars['Boolean']['input']; - password?: InputMaybe; + hsErase: boolean; + password?: string | null | undefined; }>; -export type DeactivateUserMutation = { __typename?: 'Mutation', deactivateUser: { __typename?: 'DeactivateUserPayload', status: DeactivateUserStatus } }; +export type DeactivateUserMutation = { deactivateUser: { status: DeactivateUserStatus } }; -export type PasswordChange_SiteConfigFragment = { __typename?: 'SiteConfig', passwordChangeAllowed: boolean } & { ' $fragmentName'?: 'PasswordChange_SiteConfigFragment' }; +export type PasswordChange_SiteConfigFragment = { passwordChangeAllowed: boolean } & { ' $fragmentName'?: 'PasswordChange_SiteConfigFragment' }; export type BrowserSession_SessionFragment = ( - { __typename?: 'BrowserSession', id: string, createdAt: string, finishedAt?: string | null, lastActiveAt?: string | null, userAgent?: { __typename?: 'UserAgent', deviceType: DeviceType, name?: string | null, os?: string | null, model?: string | null } | null } + { id: string, createdAt: string, finishedAt: string | null, lastActiveAt: string | null, userAgent: { deviceType: DeviceType, name: string | null, os: string | null, model: string | null } | null } & { ' $fragmentRefs'?: { 'EndBrowserSessionButton_SessionFragment': EndBrowserSessionButton_SessionFragment } } ) & { ' $fragmentName'?: 'BrowserSession_SessionFragment' }; -export type OAuth2Client_DetailFragment = { __typename?: 'Oauth2Client', id: string, clientId: string, clientName?: string | null, clientUri?: string | null, logoUri?: string | null, tosUri?: string | null, policyUri?: string | null, redirectUris: Array } & { ' $fragmentName'?: 'OAuth2Client_DetailFragment' }; +export type OAuth2Client_DetailFragment = { id: string, clientId: string, clientName: string | null, clientUri: string | null, logoUri: string | null, tosUri: string | null, policyUri: string | null, redirectUris: Array } & { ' $fragmentName'?: 'OAuth2Client_DetailFragment' }; export type CompatSession_SessionFragment = ( - { __typename?: 'CompatSession', id: string, createdAt: string, deviceId?: string | null, finishedAt?: string | null, lastActiveIp?: string | null, lastActiveAt?: string | null, humanName?: string | null, userAgent?: { __typename?: 'UserAgent', name?: string | null, os?: string | null, model?: string | null, deviceType: DeviceType } | null, ssoLogin?: { __typename?: 'CompatSsoLogin', id: string, redirectUri: string } | null } + { id: string, createdAt: string, deviceId: string | null, finishedAt: string | null, lastActiveIp: string | null, lastActiveAt: string | null, humanName: string | null, userAgent: { name: string | null, os: string | null, model: string | null, deviceType: DeviceType } | null, ssoLogin: { id: string, redirectUri: string } | null } & { ' $fragmentRefs'?: { 'EndCompatSessionButton_SessionFragment': EndCompatSessionButton_SessionFragment } } ) & { ' $fragmentName'?: 'CompatSession_SessionFragment' }; -export type Footer_SiteConfigFragment = { __typename?: 'SiteConfig', id: string, imprint?: string | null, tosUri?: string | null, policyUri?: string | null } & { ' $fragmentName'?: 'Footer_SiteConfigFragment' }; +export type Footer_SiteConfigFragment = { id: string, imprint: string | null, tosUri: string | null, policyUri: string | null } & { ' $fragmentName'?: 'Footer_SiteConfigFragment' }; export type FooterQueryVariables = Exact<{ [key: string]: never; }>; -export type FooterQuery = { __typename?: 'Query', siteConfig: ( - { __typename?: 'SiteConfig', id: string } +export type FooterQuery = { siteConfig: ( + { id: string } & { ' $fragmentRefs'?: { 'Footer_SiteConfigFragment': Footer_SiteConfigFragment } } ) }; export type OAuth2Session_SessionFragment = ( - { __typename?: 'Oauth2Session', id: string, scope: string, createdAt: string, finishedAt?: string | null, lastActiveIp?: string | null, lastActiveAt?: string | null, humanName?: string | null, userAgent?: { __typename?: 'UserAgent', name?: string | null, model?: string | null, os?: string | null, deviceType: DeviceType } | null, client: { __typename?: 'Oauth2Client', id: string, clientId: string, clientName?: string | null, applicationType?: Oauth2ApplicationType | null, logoUri?: string | null } } + { id: string, scope: string, createdAt: string, finishedAt: string | null, lastActiveIp: string | null, lastActiveAt: string | null, humanName: string | null, userAgent: { name: string | null, model: string | null, os: string | null, deviceType: DeviceType } | null, client: { id: string, clientId: string, clientName: string | null, applicationType: Oauth2ApplicationType | null, logoUri: string | null } } & { ' $fragmentRefs'?: { 'EndOAuth2SessionButton_SessionFragment': EndOAuth2SessionButton_SessionFragment } } ) & { ' $fragmentName'?: 'OAuth2Session_SessionFragment' }; -export type PasswordCreationDoubleInput_SiteConfigFragment = { __typename?: 'SiteConfig', id: string, minimumPasswordComplexity: number } & { ' $fragmentName'?: 'PasswordCreationDoubleInput_SiteConfigFragment' }; +export type PasswordCreationDoubleInput_SiteConfigFragment = { id: string, minimumPasswordComplexity: number } & { ' $fragmentName'?: 'PasswordCreationDoubleInput_SiteConfigFragment' }; -export type EndBrowserSessionButton_SessionFragment = { __typename?: 'BrowserSession', id: string, userAgent?: { __typename?: 'UserAgent', name?: string | null, os?: string | null, model?: string | null, deviceType: DeviceType } | null } & { ' $fragmentName'?: 'EndBrowserSessionButton_SessionFragment' }; +export type EndBrowserSessionButton_SessionFragment = { id: string, userAgent: { name: string | null, os: string | null, model: string | null, deviceType: DeviceType } | null } & { ' $fragmentName'?: 'EndBrowserSessionButton_SessionFragment' }; export type EndBrowserSessionMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: string | number; }>; -export type EndBrowserSessionMutation = { __typename?: 'Mutation', endBrowserSession: { __typename?: 'EndBrowserSessionPayload', status: EndBrowserSessionStatus, browserSession?: { __typename?: 'BrowserSession', id: string } | null } }; +export type EndBrowserSessionMutation = { endBrowserSession: { status: EndBrowserSessionStatus, browserSession: { id: string } | null } }; -export type EndCompatSessionButton_SessionFragment = { __typename?: 'CompatSession', id: string, userAgent?: { __typename?: 'UserAgent', name?: string | null, os?: string | null, model?: string | null, deviceType: DeviceType } | null, ssoLogin?: { __typename?: 'CompatSsoLogin', id: string, redirectUri: string } | null } & { ' $fragmentName'?: 'EndCompatSessionButton_SessionFragment' }; +export type EndCompatSessionButton_SessionFragment = { id: string, userAgent: { name: string | null, os: string | null, model: string | null, deviceType: DeviceType } | null, ssoLogin: { id: string, redirectUri: string } | null } & { ' $fragmentName'?: 'EndCompatSessionButton_SessionFragment' }; export type EndCompatSessionMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: string | number; }>; -export type EndCompatSessionMutation = { __typename?: 'Mutation', endCompatSession: { __typename?: 'EndCompatSessionPayload', status: EndCompatSessionStatus, compatSession?: { __typename?: 'CompatSession', id: string } | null } }; +export type EndCompatSessionMutation = { endCompatSession: { status: EndCompatSessionStatus, compatSession: { id: string } | null } }; -export type EndOAuth2SessionButton_SessionFragment = { __typename?: 'Oauth2Session', id: string, userAgent?: { __typename?: 'UserAgent', name?: string | null, model?: string | null, os?: string | null, deviceType: DeviceType } | null, client: { __typename?: 'Oauth2Client', clientId: string, clientName?: string | null, applicationType?: Oauth2ApplicationType | null, logoUri?: string | null } } & { ' $fragmentName'?: 'EndOAuth2SessionButton_SessionFragment' }; +export type EndOAuth2SessionButton_SessionFragment = { id: string, userAgent: { name: string | null, model: string | null, os: string | null, deviceType: DeviceType } | null, client: { clientId: string, clientName: string | null, applicationType: Oauth2ApplicationType | null, logoUri: string | null } } & { ' $fragmentName'?: 'EndOAuth2SessionButton_SessionFragment' }; export type EndOAuth2SessionMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: string | number; }>; -export type EndOAuth2SessionMutation = { __typename?: 'Mutation', endOauth2Session: { __typename?: 'EndOAuth2SessionPayload', status: EndOAuth2SessionStatus, oauth2Session?: { __typename?: 'Oauth2Session', id: string } | null } }; +export type EndOAuth2SessionMutation = { endOauth2Session: { status: EndOAuth2SessionStatus, oauth2Session: { id: string } | null } }; export type BrowserSession_DetailFragment = ( - { __typename?: 'BrowserSession', id: string, createdAt: string, finishedAt?: string | null, lastActiveIp?: string | null, lastActiveAt?: string | null, userAgent?: { __typename?: 'UserAgent', name?: string | null, model?: string | null, os?: string | null } | null, lastAuthentication?: { __typename?: 'Authentication', id: string, createdAt: string } | null, user: { __typename?: 'User', id: string, username: string } } + { id: string, createdAt: string, finishedAt: string | null, lastActiveIp: string | null, lastActiveAt: string | null, userAgent: { name: string | null, model: string | null, os: string | null } | null, lastAuthentication: { id: string, createdAt: string } | null, user: { id: string, username: string } } & { ' $fragmentRefs'?: { 'EndBrowserSessionButton_SessionFragment': EndBrowserSessionButton_SessionFragment } } ) & { ' $fragmentName'?: 'BrowserSession_DetailFragment' }; export type SetCompatSessionNameMutationVariables = Exact<{ - sessionId: Scalars['ID']['input']; - displayName: Scalars['String']['input']; + sessionId: string | number; + displayName: string; }>; -export type SetCompatSessionNameMutation = { __typename?: 'Mutation', setCompatSessionName: { __typename?: 'SetCompatSessionNamePayload', status: SetCompatSessionNameStatus } }; +export type SetCompatSessionNameMutation = { setCompatSessionName: { status: SetCompatSessionNameStatus } }; export type CompatSession_DetailFragment = ( - { __typename?: 'CompatSession', id: string, createdAt: string, deviceId?: string | null, finishedAt?: string | null, lastActiveIp?: string | null, lastActiveAt?: string | null, humanName?: string | null, userAgent?: { __typename?: 'UserAgent', name?: string | null, os?: string | null, model?: string | null } | null, ssoLogin?: { __typename?: 'CompatSsoLogin', id: string, redirectUri: string } | null } + { id: string, createdAt: string, deviceId: string | null, finishedAt: string | null, lastActiveIp: string | null, lastActiveAt: string | null, humanName: string | null, userAgent: { name: string | null, os: string | null, model: string | null } | null, ssoLogin: { id: string, redirectUri: string } | null } & { ' $fragmentRefs'?: { 'EndCompatSessionButton_SessionFragment': EndCompatSessionButton_SessionFragment } } ) & { ' $fragmentName'?: 'CompatSession_DetailFragment' }; export type SetOAuth2SessionNameMutationVariables = Exact<{ - sessionId: Scalars['ID']['input']; - displayName: Scalars['String']['input']; + sessionId: string | number; + displayName: string; }>; -export type SetOAuth2SessionNameMutation = { __typename?: 'Mutation', setOauth2SessionName: { __typename?: 'SetOAuth2SessionNamePayload', status: SetOAuth2SessionNameStatus } }; +export type SetOAuth2SessionNameMutation = { setOauth2SessionName: { status: SetOAuth2SessionNameStatus } }; export type OAuth2Session_DetailFragment = ( - { __typename?: 'Oauth2Session', id: string, scope: string, createdAt: string, finishedAt?: string | null, lastActiveIp?: string | null, lastActiveAt?: string | null, humanName?: string | null, userAgent?: { __typename?: 'UserAgent', name?: string | null, model?: string | null, os?: string | null } | null, client: { __typename?: 'Oauth2Client', id: string, clientId: string, clientName?: string | null, clientUri?: string | null, logoUri?: string | null } } + { id: string, scope: string, createdAt: string, finishedAt: string | null, lastActiveIp: string | null, lastActiveAt: string | null, humanName: string | null, userAgent: { name: string | null, model: string | null, os: string | null } | null, client: { id: string, clientId: string, clientName: string | null, clientUri: string | null, logoUri: string | null } } & { ' $fragmentRefs'?: { 'EndOAuth2SessionButton_SessionFragment': EndOAuth2SessionButton_SessionFragment } } ) & { ' $fragmentName'?: 'OAuth2Session_DetailFragment' }; -export type UserEmail_EmailFragment = { __typename?: 'UserEmail', id: string, email: string } & { ' $fragmentName'?: 'UserEmail_EmailFragment' }; +export type UserEmail_EmailFragment = { id: string, email: string } & { ' $fragmentName'?: 'UserEmail_EmailFragment' }; export type RemoveEmailMutationVariables = Exact<{ - id: Scalars['ID']['input']; - password?: InputMaybe; + id: string | number; + password?: string | null | undefined; }>; -export type RemoveEmailMutation = { __typename?: 'Mutation', removeEmail: { __typename?: 'RemoveEmailPayload', status: RemoveEmailStatus, user?: { __typename?: 'User', id: string } | null } }; +export type RemoveEmailMutation = { removeEmail: { status: RemoveEmailStatus, user: { id: string } | null } }; -export type UserGreeting_UserFragment = { __typename?: 'User', id: string, matrix: { __typename?: 'MatrixUser', mxid: string, displayName?: string | null } } & { ' $fragmentName'?: 'UserGreeting_UserFragment' }; +export type UserGreeting_UserFragment = { id: string, matrix: { mxid: string, displayName: string | null } } & { ' $fragmentName'?: 'UserGreeting_UserFragment' }; -export type UserGreeting_SiteConfigFragment = { __typename?: 'SiteConfig', displayNameChangeAllowed: boolean } & { ' $fragmentName'?: 'UserGreeting_SiteConfigFragment' }; +export type UserGreeting_SiteConfigFragment = { displayNameChangeAllowed: boolean } & { ' $fragmentName'?: 'UserGreeting_SiteConfigFragment' }; export type SetDisplayNameMutationVariables = Exact<{ - userId: Scalars['ID']['input']; - displayName?: InputMaybe; + userId: string | number; + displayName?: string | null | undefined; }>; -export type SetDisplayNameMutation = { __typename?: 'Mutation', setDisplayName: { __typename?: 'SetDisplayNamePayload', status: SetDisplayNameStatus } }; +export type SetDisplayNameMutation = { setDisplayName: { status: SetDisplayNameStatus } }; -export type AddEmailForm_UserFragment = { __typename?: 'User', hasPassword: boolean } & { ' $fragmentName'?: 'AddEmailForm_UserFragment' }; +export type AddEmailForm_UserFragment = { hasPassword: boolean } & { ' $fragmentName'?: 'AddEmailForm_UserFragment' }; -export type AddEmailForm_SiteConfigFragment = { __typename?: 'SiteConfig', passwordLoginEnabled: boolean } & { ' $fragmentName'?: 'AddEmailForm_SiteConfigFragment' }; +export type AddEmailForm_SiteConfigFragment = { passwordLoginEnabled: boolean } & { ' $fragmentName'?: 'AddEmailForm_SiteConfigFragment' }; export type AddEmailMutationVariables = Exact<{ - email: Scalars['String']['input']; - password?: InputMaybe; - language: Scalars['String']['input']; + email: string; + password?: string | null | undefined; + language: string; }>; -export type AddEmailMutation = { __typename?: 'Mutation', startEmailAuthentication: { __typename?: 'StartEmailAuthenticationPayload', status: StartEmailAuthenticationStatus, violations?: Array | null, authentication?: { __typename?: 'UserEmailAuthentication', id: string } | null } }; +export type AddEmailMutation = { startEmailAuthentication: { status: StartEmailAuthenticationStatus, violations: Array | null, authentication: { id: string } | null } }; export type UserEmailListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; + first?: number | null | undefined; + after?: string | null | undefined; + last?: number | null | undefined; + before?: string | null | undefined; }>; -export type UserEmailListQuery = { __typename?: 'Query', viewer: +export type UserEmailListQuery = { viewer: | { __typename: 'Anonymous' } - | { __typename: 'User', emails: { __typename?: 'UserEmailConnection', totalCount: number, edges: Array<{ __typename?: 'UserEmailEdge', cursor: string, node: ( - { __typename?: 'UserEmail' } - & { ' $fragmentRefs'?: { 'UserEmail_EmailFragment': UserEmail_EmailFragment } } - ) }>, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null, endCursor?: string | null } } } + | { __typename: 'User', emails: { totalCount: number, edges: Array<{ cursor: string, node: { ' $fragmentRefs'?: { 'UserEmail_EmailFragment': UserEmail_EmailFragment } } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } } }; -export type UserEmailList_UserFragment = { __typename?: 'User', hasPassword: boolean } & { ' $fragmentName'?: 'UserEmailList_UserFragment' }; +export type UserEmailList_UserFragment = { hasPassword: boolean } & { ' $fragmentName'?: 'UserEmailList_UserFragment' }; -export type UserEmailList_SiteConfigFragment = { __typename?: 'SiteConfig', emailChangeAllowed: boolean, passwordLoginEnabled: boolean } & { ' $fragmentName'?: 'UserEmailList_SiteConfigFragment' }; +export type UserEmailList_SiteConfigFragment = { emailChangeAllowed: boolean, passwordLoginEnabled: boolean } & { ' $fragmentName'?: 'UserEmailList_SiteConfigFragment' }; -export type BrowserSessionsOverview_UserFragment = { __typename?: 'User', browserSessions: { __typename?: 'BrowserSessionConnection', totalCount: number } } & { ' $fragmentName'?: 'BrowserSessionsOverview_UserFragment' }; +export type BrowserSessionsOverview_UserFragment = { browserSessions: { totalCount: number } } & { ' $fragmentName'?: 'BrowserSessionsOverview_UserFragment' }; export type UserProfileQueryVariables = Exact<{ [key: string]: never; }>; -export type UserProfileQuery = { __typename?: 'Query', viewerSession: +export type UserProfileQuery = { viewerSession: | { __typename: 'Anonymous' } | { __typename: 'BrowserSession', id: string, user: ( - { __typename?: 'User', hasPassword: boolean, emails: { __typename?: 'UserEmailConnection', totalCount: number } } + { hasPassword: boolean, emails: { totalCount: number } } & { ' $fragmentRefs'?: { 'AddEmailForm_UserFragment': AddEmailForm_UserFragment;'UserEmailList_UserFragment': UserEmailList_UserFragment;'AccountDeleteButton_UserFragment': AccountDeleteButton_UserFragment } } ) } | { __typename: 'Oauth2Session' } , siteConfig: ( - { __typename?: 'SiteConfig', emailChangeAllowed: boolean, passwordLoginEnabled: boolean, accountDeactivationAllowed: boolean } + { emailChangeAllowed: boolean, passwordLoginEnabled: boolean, accountDeactivationAllowed: boolean } & { ' $fragmentRefs'?: { 'AddEmailForm_SiteConfigFragment': AddEmailForm_SiteConfigFragment;'UserEmailList_SiteConfigFragment': UserEmailList_SiteConfigFragment;'PasswordChange_SiteConfigFragment': PasswordChange_SiteConfigFragment;'AccountDeleteButton_SiteConfigFragment': AccountDeleteButton_SiteConfigFragment } } ) }; export type PlanManagementTabQueryVariables = Exact<{ [key: string]: never; }>; -export type PlanManagementTabQuery = { __typename?: 'Query', siteConfig: { __typename?: 'SiteConfig', planManagementIframeUri?: string | null } }; +export type PlanManagementTabQuery = { siteConfig: { planManagementIframeUri: string | null } }; export type BrowserSessionListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - lastActive?: InputMaybe; + first?: number | null | undefined; + after?: string | null | undefined; + last?: number | null | undefined; + before?: string | null | undefined; + lastActive?: DateFilter | null | undefined; }>; -export type BrowserSessionListQuery = { __typename?: 'Query', viewerSession: +export type BrowserSessionListQuery = { viewerSession: | { __typename: 'Anonymous' } - | { __typename: 'BrowserSession', id: string, user: { __typename?: 'User', id: string, browserSessions: { __typename?: 'BrowserSessionConnection', totalCount: number, edges: Array<{ __typename?: 'BrowserSessionEdge', cursor: string, node: ( - { __typename?: 'BrowserSession', id: string } + | { __typename: 'BrowserSession', id: string, user: { id: string, browserSessions: { totalCount: number, edges: Array<{ cursor: string, node: ( + { id: string } & { ' $fragmentRefs'?: { 'BrowserSession_SessionFragment': BrowserSession_SessionFragment } } - ) }>, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null, endCursor?: string | null } } } } + ) }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } } } | { __typename: 'Oauth2Session' } }; export type SessionsOverviewQueryVariables = Exact<{ [key: string]: never; }>; -export type SessionsOverviewQuery = { __typename?: 'Query', viewer: +export type SessionsOverviewQuery = { viewer: | { __typename: 'Anonymous' } | ( - { __typename: 'User', id: string, unfilteredAppSessions: { __typename?: 'AppSessionConnection', totalCount: number } } + { __typename: 'User', id: string, unfilteredAppSessions: { totalCount: number } } & { ' $fragmentRefs'?: { 'BrowserSessionsOverview_UserFragment': BrowserSessionsOverview_UserFragment } } ) - , siteConfig: { __typename?: 'SiteConfig', sessionLimit?: { __typename?: 'SessionLimitConfig', softLimit: number } | null } }; + , siteConfig: { sessionLimit: { softLimit: number } | null } }; export type AppSessionsListQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - lastActive?: InputMaybe; + before?: string | null | undefined; + after?: string | null | undefined; + first?: number | null | undefined; + last?: number | null | undefined; + lastActive?: DateFilter | null | undefined; }>; -export type AppSessionsListQuery = { __typename?: 'Query', viewer: +export type AppSessionsListQuery = { viewer: | { __typename: 'Anonymous' } - | { __typename: 'User', id: string, appSessions: { __typename?: 'AppSessionConnection', totalCount: number, edges: Array<{ __typename?: 'AppSessionEdge', cursor: string, node: + | { __typename: 'User', id: string, appSessions: { totalCount: number, edges: Array<{ cursor: string, node: | ( { __typename: 'CompatSession' } & { ' $fragmentRefs'?: { 'CompatSession_SessionFragment': CompatSession_SessionFragment } } @@ -1931,147 +407,135 @@ export type AppSessionsListQuery = { __typename?: 'Query', viewer: { __typename: 'Oauth2Session' } & { ' $fragmentRefs'?: { 'OAuth2Session_SessionFragment': OAuth2Session_SessionFragment } } ) - }>, pageInfo: { __typename?: 'PageInfo', startCursor?: string | null, endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean } } } + }>, pageInfo: { startCursor: string | null, endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean } } } }; export type CurrentUserGreetingQueryVariables = Exact<{ [key: string]: never; }>; -export type CurrentUserGreetingQuery = { __typename?: 'Query', viewer: +export type CurrentUserGreetingQuery = { viewer: | { __typename: 'Anonymous' } | ( - { __typename: 'User', unfilteredAppSessions: { __typename?: 'AppSessionConnection', totalCount: number } } + { __typename: 'User', unfilteredAppSessions: { totalCount: number } } & { ' $fragmentRefs'?: { 'UserGreeting_UserFragment': UserGreeting_UserFragment } } ) , siteConfig: ( - { __typename?: 'SiteConfig', planManagementIframeUri?: string | null, sessionLimit?: { __typename?: 'SessionLimitConfig', softLimit: number } | null } + { planManagementIframeUri: string | null, sessionLimit: { softLimit: number } | null } & { ' $fragmentRefs'?: { 'UserGreeting_SiteConfigFragment': UserGreeting_SiteConfigFragment } } ) }; export type OAuth2ClientQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: string | number; }>; -export type OAuth2ClientQuery = { __typename?: 'Query', oauth2Client?: ( - { __typename?: 'Oauth2Client' } - & { ' $fragmentRefs'?: { 'OAuth2Client_DetailFragment': OAuth2Client_DetailFragment } } - ) | null }; +export type OAuth2ClientQuery = { oauth2Client: { ' $fragmentRefs'?: { 'OAuth2Client_DetailFragment': OAuth2Client_DetailFragment } } | null }; export type CurrentViewerQueryVariables = Exact<{ [key: string]: never; }>; -export type CurrentViewerQuery = { __typename?: 'Query', viewer: +export type CurrentViewerQuery = { viewer: | { __typename: 'Anonymous', id: string } | { __typename: 'User', id: string } }; export type DeviceRedirectQueryVariables = Exact<{ - deviceId: Scalars['String']['input']; - userId: Scalars['ID']['input']; + deviceId: string; + userId: string | number; }>; -export type DeviceRedirectQuery = { __typename?: 'Query', session?: +export type DeviceRedirectQuery = { session: | { __typename: 'CompatSession', id: string } | { __typename: 'Oauth2Session', id: string } | null }; export type VerifyEmailQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: string | number; }>; -export type VerifyEmailQuery = { __typename?: 'Query', userEmailAuthentication?: { __typename?: 'UserEmailAuthentication', id: string, email: string, completedAt?: string | null } | null }; +export type VerifyEmailQuery = { userEmailAuthentication: { id: string, email: string, completedAt: string | null } | null }; export type DoVerifyEmailMutationVariables = Exact<{ - id: Scalars['ID']['input']; - code: Scalars['String']['input']; + id: string | number; + code: string; }>; -export type DoVerifyEmailMutation = { __typename?: 'Mutation', completeEmailAuthentication: { __typename?: 'CompleteEmailAuthenticationPayload', status: CompleteEmailAuthenticationStatus } }; +export type DoVerifyEmailMutation = { completeEmailAuthentication: { status: CompleteEmailAuthenticationStatus } }; export type ResendEmailAuthenticationCodeMutationVariables = Exact<{ - id: Scalars['ID']['input']; - language: Scalars['String']['input']; + id: string | number; + language: string; }>; -export type ResendEmailAuthenticationCodeMutation = { __typename?: 'Mutation', resendEmailAuthenticationCode: { __typename?: 'ResendEmailAuthenticationCodePayload', status: ResendEmailAuthenticationCodeStatus } }; +export type ResendEmailAuthenticationCodeMutation = { resendEmailAuthenticationCode: { status: ResendEmailAuthenticationCodeStatus } }; export type ChangePasswordMutationVariables = Exact<{ - userId: Scalars['ID']['input']; - oldPassword: Scalars['String']['input']; - newPassword: Scalars['String']['input']; + userId: string | number; + oldPassword: string; + newPassword: string; }>; -export type ChangePasswordMutation = { __typename?: 'Mutation', setPassword: { __typename?: 'SetPasswordPayload', status: SetPasswordStatus } }; +export type ChangePasswordMutation = { setPassword: { status: SetPasswordStatus } }; export type PasswordChangeQueryVariables = Exact<{ [key: string]: never; }>; -export type PasswordChangeQuery = { __typename?: 'Query', viewer: +export type PasswordChangeQuery = { viewer: | { __typename: 'Anonymous', id: string } | { __typename: 'User', id: string } - , siteConfig: ( - { __typename?: 'SiteConfig' } - & { ' $fragmentRefs'?: { 'PasswordCreationDoubleInput_SiteConfigFragment': PasswordCreationDoubleInput_SiteConfigFragment } } - ) }; + , siteConfig: { ' $fragmentRefs'?: { 'PasswordCreationDoubleInput_SiteConfigFragment': PasswordCreationDoubleInput_SiteConfigFragment } } }; export type RecoverPasswordMutationVariables = Exact<{ - ticket: Scalars['String']['input']; - newPassword: Scalars['String']['input']; + ticket: string; + newPassword: string; }>; -export type RecoverPasswordMutation = { __typename?: 'Mutation', setPasswordByRecovery: { __typename?: 'SetPasswordPayload', status: SetPasswordStatus } }; +export type RecoverPasswordMutation = { setPasswordByRecovery: { status: SetPasswordStatus } }; export type ResendRecoveryEmailMutationVariables = Exact<{ - ticket: Scalars['String']['input']; + ticket: string; }>; -export type ResendRecoveryEmailMutation = { __typename?: 'Mutation', resendRecoveryEmail: { __typename?: 'ResendRecoveryEmailPayload', status: ResendRecoveryEmailStatus, progressUrl?: string | null } }; +export type ResendRecoveryEmailMutation = { resendRecoveryEmail: { status: ResendRecoveryEmailStatus, progressUrl: string | null } }; -export type RecoverPassword_UserRecoveryTicketFragment = { __typename?: 'UserRecoveryTicket', username: string, email: string } & { ' $fragmentName'?: 'RecoverPassword_UserRecoveryTicketFragment' }; +export type RecoverPassword_UserRecoveryTicketFragment = { username: string, email: string } & { ' $fragmentName'?: 'RecoverPassword_UserRecoveryTicketFragment' }; -export type RecoverPassword_SiteConfigFragment = ( - { __typename?: 'SiteConfig' } - & { ' $fragmentRefs'?: { 'PasswordCreationDoubleInput_SiteConfigFragment': PasswordCreationDoubleInput_SiteConfigFragment } } -) & { ' $fragmentName'?: 'RecoverPassword_SiteConfigFragment' }; +export type RecoverPassword_SiteConfigFragment = { ' $fragmentRefs'?: { 'PasswordCreationDoubleInput_SiteConfigFragment': PasswordCreationDoubleInput_SiteConfigFragment } } & { ' $fragmentName'?: 'RecoverPassword_SiteConfigFragment' }; export type PasswordRecoveryQueryVariables = Exact<{ - ticket: Scalars['String']['input']; + ticket: string; }>; -export type PasswordRecoveryQuery = { __typename?: 'Query', siteConfig: ( - { __typename?: 'SiteConfig' } - & { ' $fragmentRefs'?: { 'RecoverPassword_SiteConfigFragment': RecoverPassword_SiteConfigFragment } } - ), userRecoveryTicket?: ( - { __typename?: 'UserRecoveryTicket', status: UserRecoveryTicketStatus } +export type PasswordRecoveryQuery = { siteConfig: { ' $fragmentRefs'?: { 'RecoverPassword_SiteConfigFragment': RecoverPassword_SiteConfigFragment } }, userRecoveryTicket: ( + { status: UserRecoveryTicketStatus } & { ' $fragmentRefs'?: { 'RecoverPassword_UserRecoveryTicketFragment': RecoverPassword_UserRecoveryTicketFragment } } ) | null }; export type AllowCrossSigningResetMutationVariables = Exact<{ - userId: Scalars['ID']['input']; + userId: string | number; }>; -export type AllowCrossSigningResetMutation = { __typename?: 'Mutation', allowUserCrossSigningReset: { __typename?: 'AllowUserCrossSigningResetPayload', user?: { __typename?: 'User', id: string } | null } }; +export type AllowCrossSigningResetMutation = { allowUserCrossSigningReset: { user: { id: string } | null } }; export type SessionDetailQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: string | number; }>; -export type SessionDetailQuery = { __typename?: 'Query', viewerSession: - | { __typename?: 'Anonymous', id: string } - | { __typename?: 'BrowserSession', id: string } - | { __typename?: 'Oauth2Session', id: string } - , node?: +export type SessionDetailQuery = { viewerSession: + | { id: string } + | { id: string } + | { id: string } + , node: | { __typename: 'Anonymous', id: string } | { __typename: 'Authentication', id: string } | (