/* eslint-disable */ import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; export type Maybe = T | null; export type InputMaybe = Maybe; 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< T extends { [key: string]: unknown }, K extends keyof T, > = { [_ 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 enum AddEmailStatus { /** The email address was added */ Added = "ADDED", /** The email address is not allowed by the policy */ Denied = "DENIED", /** The email address already exists */ Exists = "EXISTS", /** The email address is invalid */ Invalid = "INVALID", } /** The input for the `addUser` mutation. */ export type AddUserInput = { /** 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 enum AddUserStatus { /** The user was added. */ Added = "ADDED", /** The user already exists. */ Exists = "EXISTS", /** The username is invalid. */ Invalid = "INVALID", } /** 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"; /** 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 string with which the session was created. */ userAgent?: Maybe; }; 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; }; /** * A compat session represents a client session which used the legacy Matrix * login API. */ export type CompatSession = CreationEvent & Node & { __typename?: "CompatSession"; /** When the object was created. */ createdAt: Scalars["DateTime"]["output"]; /** The Matrix Device ID of this session. */ deviceId: Scalars["String"]["output"]; /** When the session ended. */ 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 associated SSO login, if any. */ ssoLogin?: Maybe; /** The state of the session. */ state: SessionState; /** The user authorized for this session. */ user: User; }; 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 enum CompatSessionType { /** The session was created by a SSO login. */ SsoLogin = "SSO_LOGIN", /** The session was created by an unknown method. */ Unknown = "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 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"]; }; /** 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 enum EndBrowserSessionStatus { /** The session was ended. */ Ended = "ENDED", /** The session was not found. */ NotFound = "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 enum EndCompatSessionStatus { /** The session was ended. */ Ended = "ENDED", /** The session was not found. */ NotFound = "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 enum EndOAuth2SessionStatus { /** The session was ended. */ Ended = "ENDED", /** The session was not found. */ NotFound = "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 enum LockUserStatus { /** The user was locked. */ Locked = "LOCKED", /** The user was not found. */ NotFound = "NOT_FOUND", } export type MatrixUser = { __typename?: "MatrixUser"; /** The avatar URL of the user, if any. */ avatarUrl?: Maybe; /** 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 */ addEmail: AddEmailPayload; /** Add a user. This is only available to administrators. */ addUser: AddUserPayload; /** Temporarily allow user to reset their cross-signing keys. */ allowUserCrossSigningReset: AllowUserCrossSigningResetPayload; /** * Create a new arbitrary OAuth 2.0 Session. * * Only available for administrators. */ createOauth2Session: CreateOAuth2SessionPayload; endBrowserSession: EndBrowserSessionPayload; endCompatSession: EndCompatSessionPayload; endOauth2Session: EndOAuth2SessionPayload; /** Lock a user. This is only available to administrators. */ lockUser: LockUserPayload; /** Remove an email address */ removeEmail: RemoveEmailPayload; /** Send a verification code for an email address */ sendVerificationEmail: SendVerificationEmailPayload; /** * Set whether a user can request admin. This is only available to * administrators. */ setCanRequestAdmin: SetCanRequestAdminPayload; /** Set the display name of a user */ setDisplayName: SetDisplayNamePayload; /** Set an email address as primary */ setPrimaryEmail: SetPrimaryEmailPayload; /** Submit a verification code for an email address */ verifyEmail: VerifyEmailPayload; }; /** 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 MutationCreateOauth2SessionArgs = { input: CreateOAuth2SessionInput; }; /** 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 MutationSendVerificationEmailArgs = { input: SendVerificationEmailInput; }; /** The mutations root of the GraphQL interface. */ export type MutationSetCanRequestAdminArgs = { input: SetCanRequestAdminInput; }; /** The mutations root of the GraphQL interface. */ export type MutationSetDisplayNameArgs = { input: SetDisplayNameInput; }; /** The mutations root of the GraphQL interface. */ export type MutationSetPrimaryEmailArgs = { input: SetPrimaryEmailInput; }; /** The mutations root of the GraphQL interface. */ export type MutationVerifyEmailArgs = { input: VerifyEmailInput; }; /** An object with an ID. */ export type Node = { /** ID of the object. */ id: Scalars["ID"]["output"]; }; /** The application type advertised by the client. */ export enum Oauth2ApplicationType { /** Client is a native application. */ Native = "NATIVE", /** Client is a web application. */ Web = "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; /** List of contacts advertised by the client. */ contacts: Array; /** 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; /** 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; }; 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; /** 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; /** 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 input for the `removeEmail` mutation */ export type RemoveEmailInput = { /** 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 enum RemoveEmailStatus { /** The email address was not found */ NotFound = "NOT_FOUND", /** Can't remove the primary email address */ Primary = "PRIMARY", /** The email address was removed */ Removed = "REMOVED", } /** The input for the `sendVerificationEmail` mutation */ export type SendVerificationEmailInput = { /** The ID of the email address to verify */ userEmailId: Scalars["ID"]["input"]; }; /** The payload of the `sendVerificationEmail` mutation */ export type SendVerificationEmailPayload = { __typename?: "SendVerificationEmailPayload"; /** The email address to which the verification email was sent */ email: UserEmail; /** Status of the operation */ status: SendVerificationEmailStatus; /** The user to whom the email address belongs */ user: User; }; /** The status of the `sendVerificationEmail` mutation */ export enum SendVerificationEmailStatus { /** The email address is already verified */ AlreadyVerified = "ALREADY_VERIFIED", /** The verification email was sent */ Sent = "SENT", } /** A client session, either compat or OAuth 2.0 */ export type Session = CompatSession | Oauth2Session; /** The state of a session */ export enum SessionState { /** The session is active. */ Active = "ACTIVE", /** The session is no longer active. */ Finished = "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 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 enum SetDisplayNameStatus { /** The display name is invalid */ Invalid = "INVALID", /** The display name was set */ Set = "SET", } /** 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 enum SetPrimaryEmailStatus { /** The email address was not found */ NotFound = "NOT_FOUND", /** The email address was set as primary */ Set = "SET", /** Can't make an unverified email address primary */ Unverified = "UNVERIFIED", } export type UpstreamOAuth2Link = CreationEvent & Node & { __typename?: "UpstreamOAuth2Link"; /** When the object was created. */ createdAt: Scalars["DateTime"]["output"]; /** 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"; /** Client ID used for this provider. */ clientId: Scalars["String"]["output"]; /** When the object was created. */ createdAt: Scalars["DateTime"]["output"]; /** ID of the object. */ id: Scalars["ID"]["output"]; /** OpenID Connect issuer URL. */ issuer: Scalars["String"]["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; /** 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; /** Primary email address of the user. */ primaryEmail?: Maybe; /** 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; device?: InputMaybe; first?: InputMaybe; last?: InputMaybe; state?: InputMaybe; }; /** A user is an individual's account. */ export type UserBrowserSessionsArgs = { after?: InputMaybe; before?: InputMaybe; first?: InputMaybe; last?: InputMaybe; state?: InputMaybe; }; /** A user is an individual's account. */ export type UserCompatSessionsArgs = { after?: InputMaybe; before?: InputMaybe; first?: InputMaybe; last?: 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; state?: InputMaybe; }; /** A user is an individual's account. */ export type UserUpstreamOauth2LinksArgs = { after?: InputMaybe; before?: InputMaybe; first?: InputMaybe; last?: InputMaybe; }; /** 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. */ 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"]; }; 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 enum UserEmailState { /** The email address has been confirmed. */ Confirmed = "CONFIRMED", /** The email address is pending confirmation. */ Pending = "PENDING", } /** The input for the `verifyEmail` mutation */ export type VerifyEmailInput = { /** The verification code */ code: Scalars["String"]["input"]; /** The ID of the email address to verify */ userEmailId: Scalars["ID"]["input"]; }; /** The payload of the `verifyEmail` mutation */ export type VerifyEmailPayload = { __typename?: "VerifyEmailPayload"; /** The email address that was verified */ email?: Maybe; /** Status of the operation */ status: VerifyEmailStatus; /** The user to whom the email address belongs */ user?: Maybe; }; /** The status of the `verifyEmail` mutation */ export enum VerifyEmailStatus { /** The email address was already verified before */ AlreadyVerified = "ALREADY_VERIFIED", /** The verification code is invalid */ InvalidCode = "INVALID_CODE", /** The email address was just verified */ Verified = "VERIFIED", } /** Represents the current viewer */ export type Viewer = Anonymous | User; /** Represents the current viewer's session */ export type ViewerSession = Anonymous | BrowserSession | Oauth2Session; export type BrowserSession_SessionFragment = { __typename?: "BrowserSession"; id: string; createdAt: string; finishedAt?: string | null; userAgent?: string | null; lastActiveIp?: string | null; lastActiveAt?: string | null; lastAuthentication?: { __typename?: "Authentication"; id: string; createdAt: string; } | null; } & { " $fragmentName"?: "BrowserSession_SessionFragment" }; export type EndBrowserSessionMutationVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type EndBrowserSessionMutation = { __typename?: "Mutation"; endBrowserSession: { __typename?: "EndBrowserSessionPayload"; status: EndBrowserSessionStatus; browserSession?: | ({ __typename?: "BrowserSession"; id: string } & { " $fragmentRefs"?: { BrowserSession_SessionFragment: BrowserSession_SessionFragment; }; }) | null; }; }; 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 CompatSession_SessionFragment = { __typename?: "CompatSession"; id: string; createdAt: string; deviceId: string; finishedAt?: string | null; lastActiveIp?: string | null; lastActiveAt?: string | null; ssoLogin?: { __typename?: "CompatSsoLogin"; id: string; redirectUri: string; } | null; } & { " $fragmentName"?: "CompatSession_SessionFragment" }; export type EndCompatSessionMutationVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type EndCompatSessionMutation = { __typename?: "Mutation"; endCompatSession: { __typename?: "EndCompatSessionPayload"; status: EndCompatSessionStatus; compatSession?: { __typename?: "CompatSession"; id: string; finishedAt?: string | null; } | null; }; }; export type OAuth2Session_SessionFragment = { __typename?: "Oauth2Session"; id: string; scope: string; createdAt: string; finishedAt?: string | null; lastActiveIp?: string | null; lastActiveAt?: string | null; client: { __typename?: "Oauth2Client"; id: string; clientId: string; clientName?: string | null; applicationType?: Oauth2ApplicationType | null; logoUri?: string | null; }; } & { " $fragmentName"?: "OAuth2Session_SessionFragment" }; export type EndOAuth2SessionMutationVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type EndOAuth2SessionMutation = { __typename?: "Mutation"; endOauth2Session: { __typename?: "EndOAuth2SessionPayload"; status: EndOAuth2SessionStatus; oauth2Session?: | ({ __typename?: "Oauth2Session"; id: string } & { " $fragmentRefs"?: { OAuth2Session_SessionFragment: OAuth2Session_SessionFragment; }; }) | null; }; }; export type BrowserSession_DetailFragment = { __typename?: "BrowserSession"; id: string; createdAt: string; finishedAt?: string | null; userAgent?: string | null; lastActiveIp?: string | null; lastActiveAt?: string | null; lastAuthentication?: { __typename?: "Authentication"; id: string; createdAt: string; } | null; user: { __typename?: "User"; id: string; username: string }; } & { " $fragmentName"?: "BrowserSession_DetailFragment" }; export type CompatSession_DetailFragment = { __typename?: "CompatSession"; id: string; createdAt: string; deviceId: string; finishedAt?: string | null; lastActiveIp?: string | null; lastActiveAt?: string | null; ssoLogin?: { __typename?: "CompatSsoLogin"; id: string; redirectUri: string; } | null; } & { " $fragmentName"?: "CompatSession_DetailFragment" }; export type OAuth2Session_DetailFragment = { __typename?: "Oauth2Session"; id: string; scope: string; createdAt: string; finishedAt?: string | null; lastActiveIp?: string | null; lastActiveAt?: string | null; client: { __typename?: "Oauth2Client"; id: string; clientId: string; clientName?: string | null; clientUri?: string | null; logoUri?: string | null; }; } & { " $fragmentName"?: "OAuth2Session_DetailFragment" }; export type UnverifiedEmailAlertFragment = { __typename?: "User"; id: string; unverifiedEmails: { __typename?: "UserEmailConnection"; totalCount: number }; } & { " $fragmentName"?: "UnverifiedEmailAlertFragment" }; export type UserEmail_EmailFragment = { __typename?: "UserEmail"; id: string; email: string; confirmedAt?: string | null; } & { " $fragmentName"?: "UserEmail_EmailFragment" }; export type RemoveEmailMutationVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type RemoveEmailMutation = { __typename?: "Mutation"; removeEmail: { __typename?: "RemoveEmailPayload"; status: RemoveEmailStatus; user?: { __typename?: "User"; id: string } | null; }; }; export type SetPrimaryEmailMutationVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type SetPrimaryEmailMutation = { __typename?: "Mutation"; setPrimaryEmail: { __typename?: "SetPrimaryEmailPayload"; status: SetPrimaryEmailStatus; user?: { __typename?: "User"; id: string; primaryEmail?: { __typename?: "UserEmail"; id: string } | null; } | null; }; }; export type UserGreeting_UserFragment = ({ __typename?: "User"; id: string; username: string; matrix: { __typename?: "MatrixUser"; mxid: string; displayName?: string | null; }; } & { " $fragmentRefs"?: { UnverifiedEmailAlertFragment: UnverifiedEmailAlertFragment; }; }) & { " $fragmentName"?: "UserGreeting_UserFragment" }; export type AddEmailMutationVariables = Exact<{ userId: Scalars["ID"]["input"]; email: Scalars["String"]["input"]; }>; export type AddEmailMutation = { __typename?: "Mutation"; addEmail: { __typename?: "AddEmailPayload"; status: AddEmailStatus; violations?: Array | null; email?: | ({ __typename?: "UserEmail"; id: string } & { " $fragmentRefs"?: { UserEmail_EmailFragment: UserEmail_EmailFragment; }; }) | null; }; }; export type UserEmailListQueryQueryVariables = Exact<{ userId: Scalars["ID"]["input"]; first?: InputMaybe; after?: InputMaybe; last?: InputMaybe; before?: InputMaybe; }>; export type UserEmailListQueryQuery = { __typename?: "Query"; user?: { __typename?: "User"; id: string; emails: { __typename?: "UserEmailConnection"; totalCount: number; edges: Array<{ __typename?: "UserEmailEdge"; cursor: string; node: { __typename?: "UserEmail"; id: string } & { " $fragmentRefs"?: { UserEmail_EmailFragment: UserEmail_EmailFragment; }; }; }>; pageInfo: { __typename?: "PageInfo"; hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; }; }; } | null; }; export type UserEmailList_UserFragment = { __typename?: "User"; id: string; primaryEmail?: { __typename?: "UserEmail"; id: string } | null; } & { " $fragmentName"?: "UserEmailList_UserFragment" }; export type UserName_UserFragment = { __typename?: "User"; id: string; matrix: { __typename?: "MatrixUser"; displayName?: string | null }; } & { " $fragmentName"?: "UserName_UserFragment" }; export type SetDisplayNameMutationVariables = Exact<{ userId: Scalars["ID"]["input"]; displayName?: InputMaybe; }>; export type SetDisplayNameMutation = { __typename?: "Mutation"; setDisplayName: { __typename?: "SetDisplayNamePayload"; status: SetDisplayNameStatus; user?: { __typename?: "User"; id: string; matrix: { __typename?: "MatrixUser"; displayName?: string | null }; } | null; }; }; export type BrowserSessionsOverview_UserFragment = { __typename?: "User"; id: string; browserSessions: { __typename?: "BrowserSessionConnection"; totalCount: number; }; } & { " $fragmentName"?: "BrowserSessionsOverview_UserFragment" }; export type UserEmail_VerifyEmailFragment = { __typename?: "UserEmail"; id: string; email: string; } & { " $fragmentName"?: "UserEmail_VerifyEmailFragment" }; export type VerifyEmailMutationVariables = Exact<{ id: Scalars["ID"]["input"]; code: Scalars["String"]["input"]; }>; export type VerifyEmailMutation = { __typename?: "Mutation"; verifyEmail: { __typename?: "VerifyEmailPayload"; status: VerifyEmailStatus; user?: { __typename?: "User"; id: string; primaryEmail?: { __typename?: "UserEmail"; id: string } | null; } | null; email?: | ({ __typename?: "UserEmail"; id: string } & { " $fragmentRefs"?: { UserEmail_EmailFragment: UserEmail_EmailFragment; }; }) | null; }; }; export type ResendVerificationEmailMutationVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type ResendVerificationEmailMutation = { __typename?: "Mutation"; sendVerificationEmail: { __typename?: "SendVerificationEmailPayload"; status: SendVerificationEmailStatus; user: { __typename?: "User"; id: string; primaryEmail?: { __typename?: "UserEmail"; id: string } | null; }; email: { __typename?: "UserEmail"; id: string } & { " $fragmentRefs"?: { UserEmail_EmailFragment: UserEmail_EmailFragment }; }; }; }; export type UserProfileQueryQueryVariables = Exact<{ [key: string]: never }>; export type UserProfileQueryQuery = { __typename?: "Query"; viewer: | { __typename: "Anonymous" } | ({ __typename: "User"; id: string } & { " $fragmentRefs"?: { UserName_UserFragment: UserName_UserFragment; UserEmailList_UserFragment: UserEmailList_UserFragment; }; }); }; export type SessionDetailQueryQueryVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type SessionDetailQueryQuery = { __typename?: "Query"; viewerSession: | { __typename?: "Anonymous"; id: string } | { __typename?: "BrowserSession"; id: string } | { __typename?: "Oauth2Session"; id: string }; node?: | { __typename: "Anonymous"; id: string } | { __typename: "Authentication"; id: string } | ({ __typename: "BrowserSession"; id: string } & { " $fragmentRefs"?: { BrowserSession_DetailFragment: BrowserSession_DetailFragment; }; }) | ({ __typename: "CompatSession"; id: string } & { " $fragmentRefs"?: { CompatSession_DetailFragment: CompatSession_DetailFragment; }; }) | { __typename: "CompatSsoLogin"; id: string } | { __typename: "Oauth2Client"; id: string } | ({ __typename: "Oauth2Session"; id: string } & { " $fragmentRefs"?: { OAuth2Session_DetailFragment: OAuth2Session_DetailFragment; }; }) | { __typename: "UpstreamOAuth2Link"; id: string } | { __typename: "UpstreamOAuth2Provider"; id: string } | { __typename: "User"; id: string } | { __typename: "UserEmail"; id: string } | null; }; export type BrowserSessionListQueryVariables = Exact<{ first?: InputMaybe; after?: InputMaybe; last?: InputMaybe; before?: InputMaybe; }>; export type BrowserSessionListQuery = { __typename?: "Query"; 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 } & { " $fragmentRefs"?: { BrowserSession_SessionFragment: BrowserSession_SessionFragment; }; }; }>; pageInfo: { __typename?: "PageInfo"; hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; }; }; }; } | { __typename: "Oauth2Session" }; }; export type SessionsOverviewQueryQueryVariables = Exact<{ [key: string]: never; }>; export type SessionsOverviewQueryQuery = { __typename?: "Query"; viewer: | { __typename: "Anonymous" } | ({ __typename: "User"; id: string } & { " $fragmentRefs"?: { BrowserSessionsOverview_UserFragment: BrowserSessionsOverview_UserFragment; }; }); }; export type AppSessionsListQueryQueryVariables = Exact<{ before?: InputMaybe; after?: InputMaybe; first?: InputMaybe; last?: InputMaybe; }>; export type AppSessionsListQueryQuery = { __typename?: "Query"; viewer: | { __typename: "Anonymous" } | { __typename: "User"; id: string; appSessions: { __typename?: "AppSessionConnection"; totalCount: number; edges: Array<{ __typename?: "AppSessionEdge"; cursor: string; node: | ({ __typename: "CompatSession" } & { " $fragmentRefs"?: { CompatSession_SessionFragment: CompatSession_SessionFragment; }; }) | ({ __typename: "Oauth2Session" } & { " $fragmentRefs"?: { OAuth2Session_SessionFragment: OAuth2Session_SessionFragment; }; }); }>; pageInfo: { __typename?: "PageInfo"; startCursor?: string | null; endCursor?: string | null; hasNextPage: boolean; hasPreviousPage: boolean; }; }; }; }; export type CurrentUserGreetingQueryVariables = Exact<{ [key: string]: never }>; export type CurrentUserGreetingQuery = { __typename?: "Query"; viewer: | { __typename: "Anonymous" } | ({ __typename: "User" } & { " $fragmentRefs"?: { UserGreeting_UserFragment: UserGreeting_UserFragment; }; }); }; export type OAuth2ClientQueryQueryVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type OAuth2ClientQueryQuery = { __typename?: "Query"; oauth2Client?: | ({ __typename?: "Oauth2Client" } & { " $fragmentRefs"?: { OAuth2Client_DetailFragment: OAuth2Client_DetailFragment; }; }) | null; }; export type CurrentViewerQueryQueryVariables = Exact<{ [key: string]: never }>; export type CurrentViewerQueryQuery = { __typename?: "Query"; viewer: | { __typename: "Anonymous"; id: string } | { __typename: "User"; id: string }; }; export type DeviceRedirectQueryQueryVariables = Exact<{ deviceId: Scalars["String"]["input"]; userId: Scalars["ID"]["input"]; }>; export type DeviceRedirectQueryQuery = { __typename?: "Query"; session?: | { __typename: "CompatSession"; id: string } | { __typename: "Oauth2Session"; id: string } | null; }; export type VerifyEmailQueryQueryVariables = Exact<{ id: Scalars["ID"]["input"]; }>; export type VerifyEmailQueryQuery = { __typename?: "Query"; userEmail?: | ({ __typename?: "UserEmail" } & { " $fragmentRefs"?: { UserEmail_VerifyEmailFragment: UserEmail_VerifyEmailFragment; }; }) | null; }; export type AllowCrossSigningResetMutationVariables = Exact<{ userId: Scalars["ID"]["input"]; }>; export type AllowCrossSigningResetMutation = { __typename?: "Mutation"; allowUserCrossSigningReset: { __typename?: "AllowUserCrossSigningResetPayload"; user?: { __typename?: "User"; id: string } | null; }; }; export type CurrentViewerSessionQueryQueryVariables = Exact<{ [key: string]: never; }>; export type CurrentViewerSessionQueryQuery = { __typename?: "Query"; viewerSession: | { __typename: "Anonymous" } | { __typename: "BrowserSession"; id: string } | { __typename: "Oauth2Session" }; }; export const BrowserSession_SessionFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSession_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "userAgent" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "lastAuthentication" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const OAuth2Client_DetailFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Client_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Client" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "clientUri" } }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, { kind: "Field", name: { kind: "Name", value: "tosUri" } }, { kind: "Field", name: { kind: "Name", value: "policyUri" } }, { kind: "Field", name: { kind: "Name", value: "redirectUris" } }, ], }, }, ], } as unknown as DocumentNode; export const CompatSession_SessionFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "CompatSession_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CompatSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "deviceId" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "ssoLogin" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "redirectUri" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const OAuth2Session_SessionFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Session_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Session" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "scope" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "client" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "applicationType" }, }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const BrowserSession_DetailFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSession_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "userAgent" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "lastAuthentication" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, ], }, }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const CompatSession_DetailFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "CompatSession_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CompatSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "deviceId" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "ssoLogin" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "redirectUri" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const OAuth2Session_DetailFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Session_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Session" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "scope" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "client" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "clientUri" } }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const UserEmail_EmailFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_email" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "confirmedAt" } }, ], }, }, ], } as unknown as DocumentNode; export const UnverifiedEmailAlertFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "UnverifiedEmailAlert" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", alias: { kind: "Name", value: "unverifiedEmails" }, name: { kind: "Name", value: "emails" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "IntValue", value: "0" }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "PENDING" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "totalCount" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const UserGreeting_UserFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "UserGreeting_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "matrix" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "mxid" } }, { kind: "Field", name: { kind: "Name", value: "displayName" } }, ], }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "UnverifiedEmailAlert" }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UnverifiedEmailAlert" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", alias: { kind: "Name", value: "unverifiedEmails" }, name: { kind: "Name", value: "emails" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "IntValue", value: "0" }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "PENDING" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "totalCount" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const UserEmailList_UserFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmailList_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "primaryEmail" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const UserName_UserFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "UserName_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "matrix" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "displayName" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const BrowserSessionsOverview_UserFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSessionsOverview_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "browserSessions" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "IntValue", value: "0" }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "ACTIVE" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "totalCount" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const UserEmail_VerifyEmailFragmentDoc = { kind: "Document", definitions: [ { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_verifyEmail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, ], }, }, ], } as unknown as DocumentNode; export const EndBrowserSessionDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "EndBrowserSession" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "endBrowserSession" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "browserSessionId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "browserSession" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "BrowserSession_session" }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSession_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "userAgent" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "lastAuthentication" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< EndBrowserSessionMutation, EndBrowserSessionMutationVariables >; export const EndCompatSessionDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "EndCompatSession" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "endCompatSession" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "compatSessionId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "compatSession" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" }, }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< EndCompatSessionMutation, EndCompatSessionMutationVariables >; export const EndOAuth2SessionDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "EndOAuth2Session" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "endOauth2Session" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "oauth2SessionId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "oauth2Session" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "OAuth2Session_session" }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Session_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Session" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "scope" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "client" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "applicationType" }, }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< EndOAuth2SessionMutation, EndOAuth2SessionMutationVariables >; export const RemoveEmailDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "RemoveEmail" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "removeEmail" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userEmailId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode; export const SetPrimaryEmailDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "SetPrimaryEmail" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "setPrimaryEmail" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userEmailId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "primaryEmail" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" }, }, ], }, }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< SetPrimaryEmailMutation, SetPrimaryEmailMutationVariables >; export const AddEmailDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddEmail" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "email" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" }, }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "addEmail" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userId" }, value: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, }, { kind: "ObjectField", name: { kind: "Name", value: "email" }, value: { kind: "Variable", name: { kind: "Name", value: "email" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "violations" } }, { kind: "Field", name: { kind: "Name", value: "email" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserEmail_email" }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_email" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "confirmedAt" } }, ], }, }, ], } as unknown as DocumentNode; export const UserEmailListQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "UserEmailListQuery" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "first" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "after" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "last" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "before" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "user" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "emails" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "Variable", name: { kind: "Name", value: "first" }, }, }, { kind: "Argument", name: { kind: "Name", value: "after" }, value: { kind: "Variable", name: { kind: "Name", value: "after" }, }, }, { kind: "Argument", name: { kind: "Name", value: "last" }, value: { kind: "Variable", name: { kind: "Name", value: "last" }, }, }, { kind: "Argument", name: { kind: "Name", value: "before" }, value: { kind: "Variable", name: { kind: "Name", value: "before" }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "edges" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "cursor" }, }, { kind: "Field", name: { kind: "Name", value: "node" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserEmail_email", }, }, ], }, }, ], }, }, { kind: "Field", name: { kind: "Name", value: "totalCount" }, }, { kind: "Field", name: { kind: "Name", value: "pageInfo" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "hasNextPage" }, }, { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" }, }, { kind: "Field", name: { kind: "Name", value: "startCursor" }, }, { kind: "Field", name: { kind: "Name", value: "endCursor" }, }, ], }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_email" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "confirmedAt" } }, ], }, }, ], } as unknown as DocumentNode< UserEmailListQueryQuery, UserEmailListQueryQueryVariables >; export const SetDisplayNameDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "SetDisplayName" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "displayName" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "setDisplayName" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userId" }, value: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, }, { kind: "ObjectField", name: { kind: "Name", value: "displayName" }, value: { kind: "Variable", name: { kind: "Name", value: "displayName" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "matrix" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "displayName" }, }, ], }, }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< SetDisplayNameMutation, SetDisplayNameMutationVariables >; export const VerifyEmailDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "VerifyEmail" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "code" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" }, }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "verifyEmail" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userEmailId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, { kind: "ObjectField", name: { kind: "Name", value: "code" }, value: { kind: "Variable", name: { kind: "Name", value: "code" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "primaryEmail" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" }, }, ], }, }, ], }, }, { kind: "Field", name: { kind: "Name", value: "email" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserEmail_email" }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_email" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "confirmedAt" } }, ], }, }, ], } as unknown as DocumentNode; export const ResendVerificationEmailDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ResendVerificationEmail" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "sendVerificationEmail" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userEmailId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "primaryEmail" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" }, }, ], }, }, ], }, }, { kind: "Field", name: { kind: "Name", value: "email" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserEmail_email" }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_email" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "confirmedAt" } }, ], }, }, ], } as unknown as DocumentNode< ResendVerificationEmailMutation, ResendVerificationEmailMutationVariables >; export const UserProfileQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "UserProfileQuery" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewer" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserName_user" }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserEmailList_user" }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserName_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "matrix" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "displayName" } }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmailList_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "primaryEmail" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< UserProfileQueryQuery, UserProfileQueryQueryVariables >; export const SessionDetailQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SessionDetailQuery" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewerSession" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Node" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, { kind: "Field", name: { kind: "Name", value: "node" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "CompatSession_detail" }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "OAuth2Session_detail" }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "BrowserSession_detail" }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CompatSession_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CompatSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "deviceId" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "ssoLogin" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "redirectUri" } }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Session_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Session" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "scope" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "client" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "clientUri" } }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSession_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "userAgent" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "lastAuthentication" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, ], }, }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< SessionDetailQueryQuery, SessionDetailQueryQueryVariables >; export const BrowserSessionListDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "BrowserSessionList" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "first" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "after" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "last" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "before" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewerSession" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" }, }, { kind: "Field", name: { kind: "Name", value: "browserSessions" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "Variable", name: { kind: "Name", value: "first" }, }, }, { kind: "Argument", name: { kind: "Name", value: "after" }, value: { kind: "Variable", name: { kind: "Name", value: "after" }, }, }, { kind: "Argument", name: { kind: "Name", value: "last" }, value: { kind: "Variable", name: { kind: "Name", value: "last" }, }, }, { kind: "Argument", name: { kind: "Name", value: "before" }, value: { kind: "Variable", name: { kind: "Name", value: "before" }, }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "ACTIVE" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "totalCount" }, }, { kind: "Field", name: { kind: "Name", value: "edges" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "cursor", }, }, { kind: "Field", name: { kind: "Name", value: "node" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id", }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "BrowserSession_session", }, }, ], }, }, ], }, }, { kind: "Field", name: { kind: "Name", value: "pageInfo" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "hasNextPage", }, }, { kind: "Field", name: { kind: "Name", value: "hasPreviousPage", }, }, { kind: "Field", name: { kind: "Name", value: "startCursor", }, }, { kind: "Field", name: { kind: "Name", value: "endCursor", }, }, ], }, }, ], }, }, ], }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSession_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "userAgent" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "lastAuthentication" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< BrowserSessionListQuery, BrowserSessionListQueryVariables >; export const SessionsOverviewQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SessionsOverviewQuery" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewer" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "BrowserSessionsOverview_user", }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BrowserSessionsOverview_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "browserSessions" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "IntValue", value: "0" }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "ACTIVE" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "totalCount" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< SessionsOverviewQueryQuery, SessionsOverviewQueryQueryVariables >; export const AppSessionsListQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "AppSessionsListQuery" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "before" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "after" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "first" }, }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "last" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewer" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "appSessions" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "before" }, value: { kind: "Variable", name: { kind: "Name", value: "before" }, }, }, { kind: "Argument", name: { kind: "Name", value: "after" }, value: { kind: "Variable", name: { kind: "Name", value: "after" }, }, }, { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "Variable", name: { kind: "Name", value: "first" }, }, }, { kind: "Argument", name: { kind: "Name", value: "last" }, value: { kind: "Variable", name: { kind: "Name", value: "last" }, }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "ACTIVE" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "edges" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "cursor" }, }, { kind: "Field", name: { kind: "Name", value: "node" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename", }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "CompatSession_session", }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "OAuth2Session_session", }, }, ], }, }, ], }, }, { kind: "Field", name: { kind: "Name", value: "totalCount" }, }, { kind: "Field", name: { kind: "Name", value: "pageInfo" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "startCursor", }, }, { kind: "Field", name: { kind: "Name", value: "endCursor" }, }, { kind: "Field", name: { kind: "Name", value: "hasNextPage", }, }, { kind: "Field", name: { kind: "Name", value: "hasPreviousPage", }, }, ], }, }, ], }, }, ], }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CompatSession_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CompatSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "deviceId" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "ssoLogin" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "redirectUri" } }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Session_session" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Session" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "scope" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "finishedAt" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveIp" } }, { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } }, { kind: "Field", name: { kind: "Name", value: "client" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "applicationType" }, }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, ], }, }, ], }, }, ], } as unknown as DocumentNode< AppSessionsListQueryQuery, AppSessionsListQueryQueryVariables >; export const CurrentUserGreetingDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CurrentUserGreeting" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewer" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "FragmentSpread", name: { kind: "Name", value: "UserGreeting_user" }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UnverifiedEmailAlert" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", alias: { kind: "Name", value: "unverifiedEmails" }, name: { kind: "Name", value: "emails" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "first" }, value: { kind: "IntValue", value: "0" }, }, { kind: "Argument", name: { kind: "Name", value: "state" }, value: { kind: "EnumValue", value: "PENDING" }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "totalCount" } }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserGreeting_user" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "User" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "matrix" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "mxid" } }, { kind: "Field", name: { kind: "Name", value: "displayName" } }, ], }, }, { kind: "FragmentSpread", name: { kind: "Name", value: "UnverifiedEmailAlert" }, }, ], }, }, ], } as unknown as DocumentNode< CurrentUserGreetingQuery, CurrentUserGreetingQueryVariables >; export const OAuth2ClientQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "OAuth2ClientQuery" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "oauth2Client" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "FragmentSpread", name: { kind: "Name", value: "OAuth2Client_detail" }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "OAuth2Client_detail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Oauth2Client" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "clientId" } }, { kind: "Field", name: { kind: "Name", value: "clientName" } }, { kind: "Field", name: { kind: "Name", value: "clientUri" } }, { kind: "Field", name: { kind: "Name", value: "logoUri" } }, { kind: "Field", name: { kind: "Name", value: "tosUri" } }, { kind: "Field", name: { kind: "Name", value: "policyUri" } }, { kind: "Field", name: { kind: "Name", value: "redirectUris" } }, ], }, }, ], } as unknown as DocumentNode< OAuth2ClientQueryQuery, OAuth2ClientQueryQueryVariables >; export const CurrentViewerQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CurrentViewerQuery" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewer" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Node" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< CurrentViewerQueryQuery, CurrentViewerQueryQueryVariables >; export const DeviceRedirectQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "DeviceRedirectQuery" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "deviceId" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" }, }, }, }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "session" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "deviceId" }, value: { kind: "Variable", name: { kind: "Name", value: "deviceId" }, }, }, { kind: "Argument", name: { kind: "Name", value: "userId" }, value: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Node" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< DeviceRedirectQueryQuery, DeviceRedirectQueryQueryVariables >; export const VerifyEmailQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "VerifyEmailQuery" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "userEmail" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "FragmentSpread", name: { kind: "Name", value: "UserEmail_verifyEmail" }, }, ], }, }, ], }, }, { kind: "FragmentDefinition", name: { kind: "Name", value: "UserEmail_verifyEmail" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserEmail" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, ], }, }, ], } as unknown as DocumentNode< VerifyEmailQueryQuery, VerifyEmailQueryQueryVariables >; export const AllowCrossSigningResetDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AllowCrossSigningReset" }, variableDefinitions: [ { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "allowUserCrossSigningReset" }, arguments: [ { kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [ { kind: "ObjectField", name: { kind: "Name", value: "userId" }, value: { kind: "Variable", name: { kind: "Name", value: "userId" }, }, }, ], }, }, ], selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "user" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< AllowCrossSigningResetMutation, AllowCrossSigningResetMutationVariables >; export const CurrentViewerSessionQueryDocument = { kind: "Document", definitions: [ { kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CurrentViewerSessionQuery" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "viewerSession" }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BrowserSession" }, }, selectionSet: { kind: "SelectionSet", selections: [ { kind: "Field", name: { kind: "Name", value: "id" } }, ], }, }, ], }, }, ], }, }, ], } as unknown as DocumentNode< CurrentViewerSessionQueryQuery, CurrentViewerSessionQueryQueryVariables >;