From 6a453c9782461270f9e00261f0da6139c3039738 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 19 Oct 2023 17:10:05 +0200 Subject: [PATCH] frontend: integrate storybook with i18n & cleanup --- .github/workflows/translations-download.yaml | 3 +- frontend/.storybook/main.ts | 3 + frontend/.storybook/preview.tsx | 19 +- frontend/locales/en.json | 5 +- frontend/package-lock.json | 52 + frontend/package.json | 1 + .../components/VerifyEmail/VerifyEmail.tsx | 9 +- frontend/src/gql/gql.ts | 231 +- frontend/src/gql/graphql.ts | 4004 ++----------- frontend/src/gql/schema.ts | 5264 ++++++++--------- frontend/src/i18n.ts | 12 +- frontend/src/main.tsx | 15 +- frontend/src/routing/Link.tsx | 5 +- templates/app.html | 2 +- 14 files changed, 3321 insertions(+), 6304 deletions(-) diff --git a/.github/workflows/translations-download.yaml b/.github/workflows/translations-download.yaml index ee1dd8c7c..d87642e1e 100644 --- a/.github/workflows/translations-download.yaml +++ b/.github/workflows/translations-download.yaml @@ -19,7 +19,7 @@ jobs: uses: localazy/download@v1.1.0 - name: "Fix the owner of the downloaded files" - run: "sudo chown runner:docker translations/*.json" + run: "sudo chown runner:docker translations/*.json frontend/locales/*.json" - name: Create Pull Request id: cpr @@ -29,6 +29,7 @@ jobs: branch: actions/localazy-download delete-branch: true title: Localazy Download + commit-message: Translations updates - name: Enable automerge run: gh pr merge --merge --auto "$PR_NUMBER" diff --git a/frontend/.storybook/main.ts b/frontend/.storybook/main.ts index 7ea4e461f..9665251ce 100644 --- a/frontend/.storybook/main.ts +++ b/frontend/.storybook/main.ts @@ -38,6 +38,9 @@ const config: StorybookConfig = { // Theme switch toolbar "@storybook/addon-toolbars", + + // i18next integration + "storybook-react-i18next", ], framework: "@storybook/react-vite", diff --git a/frontend/.storybook/preview.tsx b/frontend/.storybook/preview.tsx index 9ae2ab324..028d64f16 100644 --- a/frontend/.storybook/preview.tsx +++ b/frontend/.storybook/preview.tsx @@ -12,9 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { ArgTypes, Decorator, Parameters } from "@storybook/react"; +import { ArgTypes, Decorator, Parameters, Preview } from "@storybook/react"; import { useLayoutEffect } from "react"; + import "../src/main.css"; +import i18n from "../src/i18n"; export const parameters: Parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, @@ -74,3 +76,18 @@ const withThemeProvider: Decorator = (Story, context) => { }; export const decorators: Decorator[] = [withThemeProvider]; + +const preview: Preview = { + globals: { + locale: "en", + locales: { + en: "English", + fr: "Français", + }, + }, + parameters: { + i18n, + }, +}; + +export default preview; diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 80c1e0d1b..812933832 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -1,5 +1,6 @@ { "action": { + "back": "Back", "cancel": "Cancel", "continue": "Continue", "save": "Save" @@ -131,9 +132,11 @@ }, "verify_email": { "code_field_label": "6-digit code", - "enter_code_prompt": "Enter the 6-digit code sent to <1>{{email}", + "enter_code_prompt": "Enter the 6-digit code sent to <2>{{email}}", "heading": "Verify your email", "invalid_code_alert": "Invalid code", + "resend_email": "Resend email", + "sent": "Sent!", "unknown_email": "Unknown email" } } diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5aa9c29c3..f83cff747 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -64,6 +64,7 @@ "react-test-renderer": "^18.2.0", "rimraf": "^5.0.5", "storybook": "^7.5.0", + "storybook-react-i18next": "^2.0.9", "tailwindcss": "^3.3.3", "typescript": "5.2.2", "vite": "^4.4.11", @@ -21674,6 +21675,57 @@ "url": "https://opencollective.com/storybook" } }, + "node_modules/storybook-i18n": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/storybook-i18n/-/storybook-i18n-2.0.13.tgz", + "integrity": "sha512-p0VPL5QiHdeS3W9BvV7UnuTKw7Mj1HWLW67LK0EOoh5fpSQIchu7byfrUUe1RbCF1gT0gOOhdNuTSXMoVVoTDw==", + "dev": true, + "peerDependencies": { + "@storybook/components": "^7.0.0", + "@storybook/manager-api": "^7.0.0", + "@storybook/preview-api": "^7.0.0", + "@storybook/types": "^7.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/storybook-react-i18next": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/storybook-react-i18next/-/storybook-react-i18next-2.0.9.tgz", + "integrity": "sha512-GFTOrYwOWShLqWNuTesPNhC79P3OHw1jkZ4gU3R50yTD2MUclF5DHLnuKeVfKZ323iV+I9fxLxuLIVHWVDJgXA==", + "dev": true, + "dependencies": { + "storybook-i18n": "2.0.13" + }, + "peerDependencies": { + "@storybook/components": "^7.0.0", + "@storybook/manager-api": "^7.0.0", + "@storybook/preview-api": "^7.0.0", + "@storybook/types": "^7.0.0", + "i18next": "^22.0.0 || ^23.0.0", + "i18next-browser-languagedetector": "^7.0.0", + "i18next-http-backend": "^2.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-i18next": "^12.0.0 || ^13.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/stream-composer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/stream-composer/-/stream-composer-1.0.2.tgz", diff --git a/frontend/package.json b/frontend/package.json index 441aebad3..889d64c1d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -72,6 +72,7 @@ "react-test-renderer": "^18.2.0", "rimraf": "^5.0.5", "storybook": "^7.5.0", + "storybook-react-i18next": "^2.0.9", "tailwindcss": "^3.3.3", "typescript": "5.2.2", "vite": "^4.4.11", diff --git a/frontend/src/components/VerifyEmail/VerifyEmail.tsx b/frontend/src/components/VerifyEmail/VerifyEmail.tsx index 7f9285847..a0314450f 100644 --- a/frontend/src/components/VerifyEmail/VerifyEmail.tsx +++ b/frontend/src/components/VerifyEmail/VerifyEmail.tsx @@ -113,6 +113,7 @@ const BackButton: React.FC = () => { const { onClick, href, pending } = useNavigationLink({ type: "profile", }); + const { t } = useTranslation(); return ( ); }; @@ -187,7 +188,7 @@ const VerifyEmail: React.FC<{ Enter the 6-digit code sent to{" "} - {{ codeEmail }} + {{ email: codeEmail }} @@ -222,7 +223,9 @@ const VerifyEmail: React.FC<{ disabled={pending || emailSent} onClick={onResendClick} > - {emailSent ? "Sent!" : "Resend email"} + {emailSent + ? t("frontend.verify_email.sent") + : t("frontend.verify_email.resend_email")} diff --git a/frontend/src/gql/gql.ts b/frontend/src/gql/gql.ts index cf1d6d2c4..200476107 100644 --- a/frontend/src/gql/gql.ts +++ b/frontend/src/gql/gql.ts @@ -1,6 +1,6 @@ /* eslint-disable */ -import * as types from "./graphql"; -import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; +import * as types from './graphql'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; /** * Map of all GraphQL operations in the project. @@ -13,70 +13,38 @@ import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/ * Therefore it is highly recommended to use the babel or swc plugin for production. */ const documents = { - "\n query CurrentViewerQuery {\n viewer {\n __typename\n ... on User {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n": - types.CurrentViewerQueryDocument, - "\n query CurrentViewerSessionQuery {\n viewerSession {\n __typename\n ... on BrowserSession {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n": - types.CurrentViewerSessionQueryDocument, - "\n fragment BrowserSession_session on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n }\n": - types.BrowserSession_SessionFragmentDoc, - "\n mutation EndBrowserSession($id: ID!) {\n endBrowserSession(input: { browserSessionId: $id }) {\n status\n browserSession {\n id\n ...BrowserSession_session\n }\n }\n }\n": - types.EndBrowserSessionDocument, - "\n query BrowserSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n browserSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n id\n ...BrowserSession_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": - types.BrowserSessionListDocument, - "\n fragment OAuth2Client_detail on Oauth2Client {\n id\n clientId\n clientName\n clientUri\n logoUri\n tosUri\n policyUri\n redirectUris\n }\n": - types.OAuth2Client_DetailFragmentDoc, - "\n fragment CompatSession_session on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n": - types.CompatSession_SessionFragmentDoc, - "\n mutation EndCompatSession($id: ID!) {\n endCompatSession(input: { compatSessionId: $id }) {\n status\n compatSession {\n id\n finishedAt\n }\n }\n }\n": - types.EndCompatSessionDocument, - "\n fragment OAuth2Session_session on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n applicationType\n logoUri\n }\n }\n": - types.OAuth2Session_SessionFragmentDoc, - "\n mutation EndOAuth2Session($id: ID!) {\n endOauth2Session(input: { oauth2SessionId: $id }) {\n status\n oauth2Session {\n id\n ...OAuth2Session_session\n }\n }\n }\n": - types.EndOAuth2SessionDocument, - "\n fragment BrowserSession_detail on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n user {\n id\n username\n }\n }\n": - types.BrowserSession_DetailFragmentDoc, - "\n fragment CompatSession_detail on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n": - types.CompatSession_DetailFragmentDoc, - "\n fragment OAuth2Session_detail on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n clientUri\n logoUri\n }\n }\n": - types.OAuth2Session_DetailFragmentDoc, - "\n query SessionQuery($userId: ID!, $deviceId: String!) {\n session(userId: $userId, deviceId: $deviceId) {\n __typename\n ...CompatSession_detail\n ...OAuth2Session_detail\n }\n }\n": - types.SessionQueryDocument, - "\n fragment UnverifiedEmailAlert on User {\n id\n unverifiedEmails: emails(first: 0, state: PENDING) {\n totalCount\n }\n }\n": - types.UnverifiedEmailAlertFragmentDoc, - "\n fragment UserEmail_email on UserEmail {\n id\n email\n confirmedAt\n }\n": - types.UserEmail_EmailFragmentDoc, - "\n mutation RemoveEmail($id: ID!) {\n removeEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n }\n }\n }\n": - types.RemoveEmailDocument, - "\n mutation SetPrimaryEmail($id: ID!) {\n setPrimaryEmail(input: { userEmailId: $id }) {\n status\n user {\n id\n primaryEmail {\n id\n }\n }\n }\n }\n": - types.SetPrimaryEmailDocument, - "\n query UserGreeting($userId: ID!) {\n user(id: $userId) {\n id\n username\n matrix {\n mxid\n displayName\n }\n\n ...UnverifiedEmailAlert\n }\n }\n": - types.UserGreetingDocument, - "\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": - types.AddEmailDocument, - "\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": - types.UserEmailListQueryDocument, - "\n query UserPrimaryEmail($userId: ID!) {\n user(id: $userId) {\n id\n primaryEmail {\n id\n }\n }\n }\n": - types.UserPrimaryEmailDocument, - "\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n": - types.SetDisplayNameDocument, - "\n query AppSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n appSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n __typename\n ...CompatSession_session\n ...OAuth2Session_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": - types.AppSessionListDocument, - "\n fragment BrowserSessionsOverview_user on User {\n id\n\n browserSessions(first: 0, state: ACTIVE) {\n totalCount\n }\n }\n": - types.BrowserSessionsOverview_UserFragmentDoc, - "\n fragment UserEmail_verifyEmail on UserEmail {\n id\n email\n }\n": - types.UserEmail_VerifyEmailFragmentDoc, - "\n mutation VerifyEmail($id: ID!, $code: String!) {\n verifyEmail(input: { userEmailId: $id, code: $code }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": - types.VerifyEmailDocument, - "\n mutation ResendVerificationEmail($id: ID!) {\n sendVerificationEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": - types.ResendVerificationEmailDocument, - "\n query BrowserSessionQuery($id: ID!) {\n browserSession(id: $id) {\n id\n ...BrowserSession_detail\n }\n }\n": - types.BrowserSessionQueryDocument, - "\n query OAuth2ClientQuery($id: ID!) {\n oauth2Client(id: $id) {\n ...OAuth2Client_detail\n }\n }\n": - types.OAuth2ClientQueryDocument, - "\n query SessionsOverviewQuery {\n viewer {\n __typename\n\n ... on User {\n id\n ...BrowserSessionsOverview_user\n }\n }\n }\n": - types.SessionsOverviewQueryDocument, - "\n query VerifyEmailQuery($id: ID!) {\n userEmail(id: $id) {\n ...UserEmail_verifyEmail\n }\n }\n": - types.VerifyEmailQueryDocument, + "\n query CurrentViewerQuery {\n viewer {\n __typename\n ... on User {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n": types.CurrentViewerQueryDocument, + "\n query CurrentViewerSessionQuery {\n viewerSession {\n __typename\n ... on BrowserSession {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n": types.CurrentViewerSessionQueryDocument, + "\n fragment BrowserSession_session on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n }\n": types.BrowserSession_SessionFragmentDoc, + "\n mutation EndBrowserSession($id: ID!) {\n endBrowserSession(input: { browserSessionId: $id }) {\n status\n browserSession {\n id\n ...BrowserSession_session\n }\n }\n }\n": types.EndBrowserSessionDocument, + "\n query BrowserSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n browserSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n id\n ...BrowserSession_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": types.BrowserSessionListDocument, + "\n fragment OAuth2Client_detail on Oauth2Client {\n id\n clientId\n clientName\n clientUri\n logoUri\n tosUri\n policyUri\n redirectUris\n }\n": types.OAuth2Client_DetailFragmentDoc, + "\n fragment CompatSession_session on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n": types.CompatSession_SessionFragmentDoc, + "\n mutation EndCompatSession($id: ID!) {\n endCompatSession(input: { compatSessionId: $id }) {\n status\n compatSession {\n id\n finishedAt\n }\n }\n }\n": types.EndCompatSessionDocument, + "\n fragment OAuth2Session_session on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n applicationType\n logoUri\n }\n }\n": types.OAuth2Session_SessionFragmentDoc, + "\n mutation EndOAuth2Session($id: ID!) {\n endOauth2Session(input: { oauth2SessionId: $id }) {\n status\n oauth2Session {\n id\n ...OAuth2Session_session\n }\n }\n }\n": types.EndOAuth2SessionDocument, + "\n fragment BrowserSession_detail on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n user {\n id\n username\n }\n }\n": types.BrowserSession_DetailFragmentDoc, + "\n fragment CompatSession_detail on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n": types.CompatSession_DetailFragmentDoc, + "\n fragment OAuth2Session_detail on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n clientUri\n logoUri\n }\n }\n": types.OAuth2Session_DetailFragmentDoc, + "\n query SessionQuery($userId: ID!, $deviceId: String!) {\n session(userId: $userId, deviceId: $deviceId) {\n __typename\n ...CompatSession_detail\n ...OAuth2Session_detail\n }\n }\n": types.SessionQueryDocument, + "\n fragment UnverifiedEmailAlert on User {\n id\n unverifiedEmails: emails(first: 0, state: PENDING) {\n totalCount\n }\n }\n": types.UnverifiedEmailAlertFragmentDoc, + "\n fragment UserEmail_email on UserEmail {\n id\n email\n confirmedAt\n }\n": types.UserEmail_EmailFragmentDoc, + "\n mutation RemoveEmail($id: ID!) {\n removeEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n }\n }\n }\n": types.RemoveEmailDocument, + "\n mutation SetPrimaryEmail($id: ID!) {\n setPrimaryEmail(input: { userEmailId: $id }) {\n status\n user {\n id\n primaryEmail {\n id\n }\n }\n }\n }\n": types.SetPrimaryEmailDocument, + "\n query UserGreeting($userId: ID!) {\n user(id: $userId) {\n id\n username\n matrix {\n mxid\n displayName\n }\n\n ...UnverifiedEmailAlert\n }\n }\n": types.UserGreetingDocument, + "\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": types.AddEmailDocument, + "\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": types.UserEmailListQueryDocument, + "\n query UserPrimaryEmail($userId: ID!) {\n user(id: $userId) {\n id\n primaryEmail {\n id\n }\n }\n }\n": types.UserPrimaryEmailDocument, + "\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n": types.SetDisplayNameDocument, + "\n query AppSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n appSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n __typename\n ...CompatSession_session\n ...OAuth2Session_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": types.AppSessionListDocument, + "\n fragment BrowserSessionsOverview_user on User {\n id\n\n browserSessions(first: 0, state: ACTIVE) {\n totalCount\n }\n }\n": types.BrowserSessionsOverview_UserFragmentDoc, + "\n fragment UserEmail_verifyEmail on UserEmail {\n id\n email\n }\n": types.UserEmail_VerifyEmailFragmentDoc, + "\n mutation VerifyEmail($id: ID!, $code: String!) {\n verifyEmail(input: { userEmailId: $id, code: $code }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": types.VerifyEmailDocument, + "\n mutation ResendVerificationEmail($id: ID!) {\n sendVerificationEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": types.ResendVerificationEmailDocument, + "\n query BrowserSessionQuery($id: ID!) {\n browserSession(id: $id) {\n id\n ...BrowserSession_detail\n }\n }\n": types.BrowserSessionQueryDocument, + "\n query OAuth2ClientQuery($id: ID!) {\n oauth2Client(id: $id) {\n ...OAuth2Client_detail\n }\n }\n": types.OAuth2ClientQueryDocument, + "\n query SessionsOverviewQuery {\n viewer {\n __typename\n\n ... on User {\n id\n ...BrowserSessionsOverview_user\n }\n }\n }\n": types.SessionsOverviewQueryDocument, + "\n query VerifyEmailQuery($id: ID!) {\n userEmail(id: $id) {\n ...UserEmail_verifyEmail\n }\n }\n": types.VerifyEmailQueryDocument, }; /** @@ -96,199 +64,134 @@ export function graphql(source: string): unknown; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query CurrentViewerQuery {\n viewer {\n __typename\n ... on User {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n", -): (typeof documents)["\n query CurrentViewerQuery {\n viewer {\n __typename\n ... on User {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n"]; +export function graphql(source: "\n query CurrentViewerQuery {\n viewer {\n __typename\n ... on User {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n"): (typeof documents)["\n query CurrentViewerQuery {\n viewer {\n __typename\n ... on User {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query CurrentViewerSessionQuery {\n viewerSession {\n __typename\n ... on BrowserSession {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n", -): (typeof documents)["\n query CurrentViewerSessionQuery {\n viewerSession {\n __typename\n ... on BrowserSession {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n"]; +export function graphql(source: "\n query CurrentViewerSessionQuery {\n viewerSession {\n __typename\n ... on BrowserSession {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n"): (typeof documents)["\n query CurrentViewerSessionQuery {\n viewerSession {\n __typename\n ... on BrowserSession {\n id\n }\n\n ... on Anonymous {\n id\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment BrowserSession_session on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n }\n", -): (typeof documents)["\n fragment BrowserSession_session on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n }\n"]; +export function graphql(source: "\n fragment BrowserSession_session on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n }\n"): (typeof documents)["\n fragment BrowserSession_session on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation EndBrowserSession($id: ID!) {\n endBrowserSession(input: { browserSessionId: $id }) {\n status\n browserSession {\n id\n ...BrowserSession_session\n }\n }\n }\n", -): (typeof documents)["\n mutation EndBrowserSession($id: ID!) {\n endBrowserSession(input: { browserSessionId: $id }) {\n status\n browserSession {\n id\n ...BrowserSession_session\n }\n }\n }\n"]; +export function graphql(source: "\n mutation EndBrowserSession($id: ID!) {\n endBrowserSession(input: { browserSessionId: $id }) {\n status\n browserSession {\n id\n ...BrowserSession_session\n }\n }\n }\n"): (typeof documents)["\n mutation EndBrowserSession($id: ID!) {\n endBrowserSession(input: { browserSessionId: $id }) {\n status\n browserSession {\n id\n ...BrowserSession_session\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query BrowserSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n browserSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n id\n ...BrowserSession_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n", -): (typeof documents)["\n query BrowserSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n browserSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n id\n ...BrowserSession_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"]; +export function graphql(source: "\n query BrowserSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n browserSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n id\n ...BrowserSession_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"): (typeof documents)["\n query BrowserSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n browserSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n id\n ...BrowserSession_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment OAuth2Client_detail on Oauth2Client {\n id\n clientId\n clientName\n clientUri\n logoUri\n tosUri\n policyUri\n redirectUris\n }\n", -): (typeof documents)["\n fragment OAuth2Client_detail on Oauth2Client {\n id\n clientId\n clientName\n clientUri\n logoUri\n tosUri\n policyUri\n redirectUris\n }\n"]; +export function graphql(source: "\n fragment OAuth2Client_detail on Oauth2Client {\n id\n clientId\n clientName\n clientUri\n logoUri\n tosUri\n policyUri\n redirectUris\n }\n"): (typeof documents)["\n fragment OAuth2Client_detail on Oauth2Client {\n id\n clientId\n clientName\n clientUri\n logoUri\n tosUri\n policyUri\n redirectUris\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment CompatSession_session on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n", -): (typeof documents)["\n fragment CompatSession_session on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n"]; +export function graphql(source: "\n fragment CompatSession_session on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n"): (typeof documents)["\n fragment CompatSession_session on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation EndCompatSession($id: ID!) {\n endCompatSession(input: { compatSessionId: $id }) {\n status\n compatSession {\n id\n finishedAt\n }\n }\n }\n", -): (typeof documents)["\n mutation EndCompatSession($id: ID!) {\n endCompatSession(input: { compatSessionId: $id }) {\n status\n compatSession {\n id\n finishedAt\n }\n }\n }\n"]; +export function graphql(source: "\n mutation EndCompatSession($id: ID!) {\n endCompatSession(input: { compatSessionId: $id }) {\n status\n compatSession {\n id\n finishedAt\n }\n }\n }\n"): (typeof documents)["\n mutation EndCompatSession($id: ID!) {\n endCompatSession(input: { compatSessionId: $id }) {\n status\n compatSession {\n id\n finishedAt\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment OAuth2Session_session on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n applicationType\n logoUri\n }\n }\n", -): (typeof documents)["\n fragment OAuth2Session_session on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n applicationType\n logoUri\n }\n }\n"]; +export function graphql(source: "\n fragment OAuth2Session_session on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n applicationType\n logoUri\n }\n }\n"): (typeof documents)["\n fragment OAuth2Session_session on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n applicationType\n logoUri\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation EndOAuth2Session($id: ID!) {\n endOauth2Session(input: { oauth2SessionId: $id }) {\n status\n oauth2Session {\n id\n ...OAuth2Session_session\n }\n }\n }\n", -): (typeof documents)["\n mutation EndOAuth2Session($id: ID!) {\n endOauth2Session(input: { oauth2SessionId: $id }) {\n status\n oauth2Session {\n id\n ...OAuth2Session_session\n }\n }\n }\n"]; +export function graphql(source: "\n mutation EndOAuth2Session($id: ID!) {\n endOauth2Session(input: { oauth2SessionId: $id }) {\n status\n oauth2Session {\n id\n ...OAuth2Session_session\n }\n }\n }\n"): (typeof documents)["\n mutation EndOAuth2Session($id: ID!) {\n endOauth2Session(input: { oauth2SessionId: $id }) {\n status\n oauth2Session {\n id\n ...OAuth2Session_session\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment BrowserSession_detail on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n user {\n id\n username\n }\n }\n", -): (typeof documents)["\n fragment BrowserSession_detail on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n user {\n id\n username\n }\n }\n"]; +export function graphql(source: "\n fragment BrowserSession_detail on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n user {\n id\n username\n }\n }\n"): (typeof documents)["\n fragment BrowserSession_detail on BrowserSession {\n id\n createdAt\n finishedAt\n userAgent\n lastActiveIp\n lastActiveAt\n lastAuthentication {\n id\n createdAt\n }\n user {\n id\n username\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment CompatSession_detail on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n", -): (typeof documents)["\n fragment CompatSession_detail on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n"]; +export function graphql(source: "\n fragment CompatSession_detail on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n"): (typeof documents)["\n fragment CompatSession_detail on CompatSession {\n id\n createdAt\n deviceId\n finishedAt\n lastActiveIp\n lastActiveAt\n ssoLogin {\n id\n redirectUri\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment OAuth2Session_detail on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n clientUri\n logoUri\n }\n }\n", -): (typeof documents)["\n fragment OAuth2Session_detail on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n clientUri\n logoUri\n }\n }\n"]; +export function graphql(source: "\n fragment OAuth2Session_detail on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n clientUri\n logoUri\n }\n }\n"): (typeof documents)["\n fragment OAuth2Session_detail on Oauth2Session {\n id\n scope\n createdAt\n finishedAt\n lastActiveIp\n lastActiveAt\n client {\n id\n clientId\n clientName\n clientUri\n logoUri\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query SessionQuery($userId: ID!, $deviceId: String!) {\n session(userId: $userId, deviceId: $deviceId) {\n __typename\n ...CompatSession_detail\n ...OAuth2Session_detail\n }\n }\n", -): (typeof documents)["\n query SessionQuery($userId: ID!, $deviceId: String!) {\n session(userId: $userId, deviceId: $deviceId) {\n __typename\n ...CompatSession_detail\n ...OAuth2Session_detail\n }\n }\n"]; +export function graphql(source: "\n query SessionQuery($userId: ID!, $deviceId: String!) {\n session(userId: $userId, deviceId: $deviceId) {\n __typename\n ...CompatSession_detail\n ...OAuth2Session_detail\n }\n }\n"): (typeof documents)["\n query SessionQuery($userId: ID!, $deviceId: String!) {\n session(userId: $userId, deviceId: $deviceId) {\n __typename\n ...CompatSession_detail\n ...OAuth2Session_detail\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment UnverifiedEmailAlert on User {\n id\n unverifiedEmails: emails(first: 0, state: PENDING) {\n totalCount\n }\n }\n", -): (typeof documents)["\n fragment UnverifiedEmailAlert on User {\n id\n unverifiedEmails: emails(first: 0, state: PENDING) {\n totalCount\n }\n }\n"]; +export function graphql(source: "\n fragment UnverifiedEmailAlert on User {\n id\n unverifiedEmails: emails(first: 0, state: PENDING) {\n totalCount\n }\n }\n"): (typeof documents)["\n fragment UnverifiedEmailAlert on User {\n id\n unverifiedEmails: emails(first: 0, state: PENDING) {\n totalCount\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment UserEmail_email on UserEmail {\n id\n email\n confirmedAt\n }\n", -): (typeof documents)["\n fragment UserEmail_email on UserEmail {\n id\n email\n confirmedAt\n }\n"]; +export function graphql(source: "\n fragment UserEmail_email on UserEmail {\n id\n email\n confirmedAt\n }\n"): (typeof documents)["\n fragment UserEmail_email on UserEmail {\n id\n email\n confirmedAt\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation RemoveEmail($id: ID!) {\n removeEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n }\n }\n }\n", -): (typeof documents)["\n mutation RemoveEmail($id: ID!) {\n removeEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n }\n }\n }\n"]; +export function graphql(source: "\n mutation RemoveEmail($id: ID!) {\n removeEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n }\n }\n }\n"): (typeof documents)["\n mutation RemoveEmail($id: ID!) {\n removeEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation SetPrimaryEmail($id: ID!) {\n setPrimaryEmail(input: { userEmailId: $id }) {\n status\n user {\n id\n primaryEmail {\n id\n }\n }\n }\n }\n", -): (typeof documents)["\n mutation SetPrimaryEmail($id: ID!) {\n setPrimaryEmail(input: { userEmailId: $id }) {\n status\n user {\n id\n primaryEmail {\n id\n }\n }\n }\n }\n"]; +export function graphql(source: "\n mutation SetPrimaryEmail($id: ID!) {\n setPrimaryEmail(input: { userEmailId: $id }) {\n status\n user {\n id\n primaryEmail {\n id\n }\n }\n }\n }\n"): (typeof documents)["\n mutation SetPrimaryEmail($id: ID!) {\n setPrimaryEmail(input: { userEmailId: $id }) {\n status\n user {\n id\n primaryEmail {\n id\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query UserGreeting($userId: ID!) {\n user(id: $userId) {\n id\n username\n matrix {\n mxid\n displayName\n }\n\n ...UnverifiedEmailAlert\n }\n }\n", -): (typeof documents)["\n query UserGreeting($userId: ID!) {\n user(id: $userId) {\n id\n username\n matrix {\n mxid\n displayName\n }\n\n ...UnverifiedEmailAlert\n }\n }\n"]; +export function graphql(source: "\n query UserGreeting($userId: ID!) {\n user(id: $userId) {\n id\n username\n matrix {\n mxid\n displayName\n }\n\n ...UnverifiedEmailAlert\n }\n }\n"): (typeof documents)["\n query UserGreeting($userId: ID!) {\n user(id: $userId) {\n id\n username\n matrix {\n mxid\n displayName\n }\n\n ...UnverifiedEmailAlert\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n", -): (typeof documents)["\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"]; +export function graphql(source: "\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"): (typeof documents)["\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n", -): (typeof documents)["\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"]; +export function graphql(source: "\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"): (typeof documents)["\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query UserPrimaryEmail($userId: ID!) {\n user(id: $userId) {\n id\n primaryEmail {\n id\n }\n }\n }\n", -): (typeof documents)["\n query UserPrimaryEmail($userId: ID!) {\n user(id: $userId) {\n id\n primaryEmail {\n id\n }\n }\n }\n"]; +export function graphql(source: "\n query UserPrimaryEmail($userId: ID!) {\n user(id: $userId) {\n id\n primaryEmail {\n id\n }\n }\n }\n"): (typeof documents)["\n query UserPrimaryEmail($userId: ID!) {\n user(id: $userId) {\n id\n primaryEmail {\n id\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n", -): (typeof documents)["\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n"]; +export function graphql(source: "\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n"): (typeof documents)["\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query AppSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n appSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n __typename\n ...CompatSession_session\n ...OAuth2Session_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n", -): (typeof documents)["\n query AppSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n appSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n __typename\n ...CompatSession_session\n ...OAuth2Session_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"]; +export function graphql(source: "\n query AppSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n appSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n __typename\n ...CompatSession_session\n ...OAuth2Session_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"): (typeof documents)["\n query AppSessionList(\n $userId: ID!\n $state: SessionState\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n appSessions(\n first: $first\n after: $after\n last: $last\n before: $before\n state: $state\n ) {\n totalCount\n\n edges {\n cursor\n node {\n __typename\n ...CompatSession_session\n ...OAuth2Session_session\n }\n }\n\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment BrowserSessionsOverview_user on User {\n id\n\n browserSessions(first: 0, state: ACTIVE) {\n totalCount\n }\n }\n", -): (typeof documents)["\n fragment BrowserSessionsOverview_user on User {\n id\n\n browserSessions(first: 0, state: ACTIVE) {\n totalCount\n }\n }\n"]; +export function graphql(source: "\n fragment BrowserSessionsOverview_user on User {\n id\n\n browserSessions(first: 0, state: ACTIVE) {\n totalCount\n }\n }\n"): (typeof documents)["\n fragment BrowserSessionsOverview_user on User {\n id\n\n browserSessions(first: 0, state: ACTIVE) {\n totalCount\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n fragment UserEmail_verifyEmail on UserEmail {\n id\n email\n }\n", -): (typeof documents)["\n fragment UserEmail_verifyEmail on UserEmail {\n id\n email\n }\n"]; +export function graphql(source: "\n fragment UserEmail_verifyEmail on UserEmail {\n id\n email\n }\n"): (typeof documents)["\n fragment UserEmail_verifyEmail on UserEmail {\n id\n email\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation VerifyEmail($id: ID!, $code: String!) {\n verifyEmail(input: { userEmailId: $id, code: $code }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n", -): (typeof documents)["\n mutation VerifyEmail($id: ID!, $code: String!) {\n verifyEmail(input: { userEmailId: $id, code: $code }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"]; +export function graphql(source: "\n mutation VerifyEmail($id: ID!, $code: String!) {\n verifyEmail(input: { userEmailId: $id, code: $code }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"): (typeof documents)["\n mutation VerifyEmail($id: ID!, $code: String!) {\n verifyEmail(input: { userEmailId: $id, code: $code }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n mutation ResendVerificationEmail($id: ID!) {\n sendVerificationEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n", -): (typeof documents)["\n mutation ResendVerificationEmail($id: ID!) {\n sendVerificationEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"]; +export function graphql(source: "\n mutation ResendVerificationEmail($id: ID!) {\n sendVerificationEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"): (typeof documents)["\n mutation ResendVerificationEmail($id: ID!) {\n sendVerificationEmail(input: { userEmailId: $id }) {\n status\n\n user {\n id\n primaryEmail {\n id\n }\n }\n\n email {\n id\n ...UserEmail_email\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query BrowserSessionQuery($id: ID!) {\n browserSession(id: $id) {\n id\n ...BrowserSession_detail\n }\n }\n", -): (typeof documents)["\n query BrowserSessionQuery($id: ID!) {\n browserSession(id: $id) {\n id\n ...BrowserSession_detail\n }\n }\n"]; +export function graphql(source: "\n query BrowserSessionQuery($id: ID!) {\n browserSession(id: $id) {\n id\n ...BrowserSession_detail\n }\n }\n"): (typeof documents)["\n query BrowserSessionQuery($id: ID!) {\n browserSession(id: $id) {\n id\n ...BrowserSession_detail\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query OAuth2ClientQuery($id: ID!) {\n oauth2Client(id: $id) {\n ...OAuth2Client_detail\n }\n }\n", -): (typeof documents)["\n query OAuth2ClientQuery($id: ID!) {\n oauth2Client(id: $id) {\n ...OAuth2Client_detail\n }\n }\n"]; +export function graphql(source: "\n query OAuth2ClientQuery($id: ID!) {\n oauth2Client(id: $id) {\n ...OAuth2Client_detail\n }\n }\n"): (typeof documents)["\n query OAuth2ClientQuery($id: ID!) {\n oauth2Client(id: $id) {\n ...OAuth2Client_detail\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query SessionsOverviewQuery {\n viewer {\n __typename\n\n ... on User {\n id\n ...BrowserSessionsOverview_user\n }\n }\n }\n", -): (typeof documents)["\n query SessionsOverviewQuery {\n viewer {\n __typename\n\n ... on User {\n id\n ...BrowserSessionsOverview_user\n }\n }\n }\n"]; +export function graphql(source: "\n query SessionsOverviewQuery {\n viewer {\n __typename\n\n ... on User {\n id\n ...BrowserSessionsOverview_user\n }\n }\n }\n"): (typeof documents)["\n query SessionsOverviewQuery {\n viewer {\n __typename\n\n ... on User {\n id\n ...BrowserSessionsOverview_user\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql( - source: "\n query VerifyEmailQuery($id: ID!) {\n userEmail(id: $id) {\n ...UserEmail_verifyEmail\n }\n }\n", -): (typeof documents)["\n query VerifyEmailQuery($id: ID!) {\n userEmail(id: $id) {\n ...UserEmail_verifyEmail\n }\n }\n"]; +export function graphql(source: "\n query VerifyEmailQuery($id: ID!) {\n userEmail(id: $id) {\n ...UserEmail_verifyEmail\n }\n }\n"): (typeof documents)["\n query VerifyEmailQuery($id: ID!) {\n userEmail(id: $id) {\n ...UserEmail_verifyEmail\n }\n }\n"]; export function graphql(source: string) { return (documents as any)[source] ?? {}; } -export type DocumentType> = - TDocumentNode extends DocumentNode ? TType : never; +export type DocumentType> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never; \ No newline at end of file diff --git a/frontend/src/gql/graphql.ts b/frontend/src/gql/graphql.ts index 54b380041..21062f306 100644 --- a/frontend/src/gql/graphql.ts +++ b/frontend/src/gql/graphql.ts @@ -1,57 +1,44 @@ /* eslint-disable */ -import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; +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; - }; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string }; - String: { input: string; output: string }; - Boolean: { input: boolean; output: boolean }; - Int: { input: number; output: number }; - Float: { input: number; output: number }; + 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 }; + DateTime: { input: string; output: string; } /** URL is a String implementing the [URL Standard](http://url.spec.whatwg.org/) */ - Url: { input: string; output: string }; + Url: { input: string; output: string; } }; /** The input for the `addEmail` mutation */ export type AddEmailInput = { /** The email address to add */ - email: Scalars["String"]["input"]; + email: Scalars['String']['input']; /** Skip the email address policy check. Only allowed for admins. */ - skipPolicyCheck?: InputMaybe; + skipPolicyCheck?: InputMaybe; /** Skip the email address verification. Only allowed for admins. */ - skipVerification?: InputMaybe; + skipVerification?: InputMaybe; /** The ID of the user to add the email address to */ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; /** The payload of the `addEmail` mutation */ export type AddEmailPayload = { - __typename?: "AddEmailPayload"; + __typename?: 'AddEmailPayload'; /** The email address that was added */ email?: Maybe; /** Status of the operation */ @@ -59,30 +46,30 @@ export type AddEmailPayload = { /** The user to whom the email address was added */ user?: Maybe; /** The list of policy violations if the email address was denied */ - violations?: Maybe>; + violations?: Maybe>; }; /** The status of the `addEmail` mutation */ export enum AddEmailStatus { /** The email address was added */ - Added = "ADDED", + Added = 'ADDED', /** The email address is not allowed by the policy */ - Denied = "DENIED", + Denied = 'DENIED', /** The email address already exists */ - Exists = "EXISTS", + Exists = 'EXISTS', /** The email address is invalid */ - Invalid = "INVALID", + Invalid = 'INVALID' } /** The input for the `addUser` mutation. */ export type AddUserInput = { /** The username of the user to add. */ - username: Scalars["String"]["input"]; + username: Scalars['String']['input']; }; /** The payload for the `addUser` mutation. */ export type AddUserPayload = { - __typename?: "AddUserPayload"; + __typename?: 'AddUserPayload'; /** Status of the operation */ status: AddUserStatus; /** The user that was added. */ @@ -92,23 +79,23 @@ export type AddUserPayload = { /** The status of the `addUser` mutation. */ export enum AddUserStatus { /** The user was added. */ - Added = "ADDED", + Added = 'ADDED', /** The user already exists. */ - Exists = "EXISTS", + Exists = 'EXISTS', /** The username is invalid. */ - Invalid = "INVALID", + Invalid = 'INVALID' } export type Anonymous = Node & { - __typename?: "Anonymous"; - id: Scalars["ID"]["output"]; + __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"; + __typename?: 'AppSessionConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -116,14 +103,14 @@ export type AppSessionConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type AppSessionEdge = { - __typename?: "AppSessionEdge"; + __typename?: 'AppSessionEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge */ node: AppSession; }; @@ -132,41 +119,39 @@ export type AppSessionEdge = { * 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"]; - }; +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 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"; + __typename?: 'BrowserSessionConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -174,14 +159,14 @@ export type BrowserSessionConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowserSessionEdge = { - __typename?: "BrowserSessionEdge"; + __typename?: 'BrowserSessionEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge */ node: BrowserSession; }; @@ -190,31 +175,30 @@ export type BrowserSessionEdge = { * 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 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"; + __typename?: 'CompatSessionConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -222,14 +206,14 @@ export type CompatSessionConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type CompatSessionEdge = { - __typename?: "CompatSessionEdge"; + __typename?: 'CompatSessionEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge */ node: CompatSession; }; @@ -237,9 +221,9 @@ export type CompatSessionEdge = { /** The type of a compatibility session. */ export enum CompatSessionType { /** The session was created by a SSO login. */ - SsoLogin = "SSO_LOGIN", + SsoLogin = 'SSO_LOGIN', /** The session was created by an unknown method. */ - Unknown = "UNKNOWN", + Unknown = 'UNKNOWN' } /** @@ -247,26 +231,26 @@ export enum CompatSessionType { * API, via the `m.login.sso` login method. */ export type CompatSsoLogin = Node & { - __typename?: "CompatSsoLogin"; + __typename?: 'CompatSsoLogin'; /** When the object was created. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; /** When the client exchanged the login token sent during the redirection. */ - exchangedAt?: Maybe; + exchangedAt?: Maybe; /** * When the login was fulfilled, and the user was redirected back to the * client. */ - fulfilledAt?: Maybe; + fulfilledAt?: Maybe; /** ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** The redirect URI used during the login. */ - redirectUri: Scalars["Url"]["output"]; + redirectUri: Scalars['Url']['output']; /** The compat session which was started by this login. */ session?: Maybe; }; export type CompatSsoLoginConnection = { - __typename?: "CompatSsoLoginConnection"; + __typename?: 'CompatSsoLoginConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -274,14 +258,14 @@ export type CompatSsoLoginConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type CompatSsoLoginEdge = { - __typename?: "CompatSsoLoginEdge"; + __typename?: 'CompatSsoLoginEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge */ node: CompatSsoLogin; }; @@ -289,38 +273,38 @@ export type CompatSsoLoginEdge = { /** The input of the `createOauth2Session` mutation. */ export type CreateOAuth2SessionInput = { /** Whether the session should issue a never-expiring access token */ - permanent?: InputMaybe; + permanent?: InputMaybe; /** The scope of the session */ - scope: Scalars["String"]["input"]; + scope: Scalars['String']['input']; /** The ID of the user for which to create the session */ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; /** The payload of the `createOauth2Session` mutation. */ export type CreateOAuth2SessionPayload = { - __typename?: "CreateOAuth2SessionPayload"; + __typename?: 'CreateOAuth2SessionPayload'; /** Access token for this session */ - accessToken: Scalars["String"]["output"]; + 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; + refreshToken?: Maybe; }; /** An object with a creation date. */ export type CreationEvent = { /** When the object was created. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; }; /** The input of the `endBrowserSession` mutation. */ export type EndBrowserSessionInput = { /** The ID of the session to end. */ - browserSessionId: Scalars["ID"]["input"]; + browserSessionId: Scalars['ID']['input']; }; export type EndBrowserSessionPayload = { - __typename?: "EndBrowserSessionPayload"; + __typename?: 'EndBrowserSessionPayload'; /** Returns the ended session. */ browserSession?: Maybe; /** The status of the mutation. */ @@ -330,19 +314,19 @@ export type EndBrowserSessionPayload = { /** The status of the `endBrowserSession` mutation. */ export enum EndBrowserSessionStatus { /** The session was ended. */ - Ended = "ENDED", + Ended = 'ENDED', /** The session was not found. */ - NotFound = "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"]; + compatSessionId: Scalars['ID']['input']; }; export type EndCompatSessionPayload = { - __typename?: "EndCompatSessionPayload"; + __typename?: 'EndCompatSessionPayload'; /** Returns the ended session. */ compatSession?: Maybe; /** The status of the mutation. */ @@ -352,19 +336,19 @@ export type EndCompatSessionPayload = { /** The status of the `endCompatSession` mutation. */ export enum EndCompatSessionStatus { /** The session was ended. */ - Ended = "ENDED", + Ended = 'ENDED', /** The session was not found. */ - NotFound = "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"]; + oauth2SessionId: Scalars['ID']['input']; }; export type EndOAuth2SessionPayload = { - __typename?: "EndOAuth2SessionPayload"; + __typename?: 'EndOAuth2SessionPayload'; /** Returns the ended session. */ oauth2Session?: Maybe; /** The status of the mutation. */ @@ -374,22 +358,22 @@ export type EndOAuth2SessionPayload = { /** The status of the `endOauth2Session` mutation. */ export enum EndOAuth2SessionStatus { /** The session was ended. */ - Ended = "ENDED", + Ended = 'ENDED', /** The session was not found. */ - NotFound = "NOT_FOUND", + NotFound = 'NOT_FOUND' } /** The input for the `lockUser` mutation. */ export type LockUserInput = { /** Permanently lock the user. */ - deactivate?: InputMaybe; + deactivate?: InputMaybe; /** The ID of the user to lock. */ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; /** The payload for the `lockUser` mutation. */ export type LockUserPayload = { - __typename?: "LockUserPayload"; + __typename?: 'LockUserPayload'; /** Status of the operation */ status: LockUserStatus; /** The user that was locked. */ @@ -399,24 +383,24 @@ export type LockUserPayload = { /** The status of the `lockUser` mutation. */ export enum LockUserStatus { /** The user was locked. */ - Locked = "LOCKED", + Locked = 'LOCKED', /** The user was not found. */ - NotFound = "NOT_FOUND", + NotFound = 'NOT_FOUND' } export type MatrixUser = { - __typename?: "MatrixUser"; + __typename?: 'MatrixUser'; /** The avatar URL of the user, if any. */ - avatarUrl?: Maybe; + avatarUrl?: Maybe; /** The display name of the user, if any. */ - displayName?: Maybe; + displayName?: Maybe; /** The Matrix ID of the user. */ - mxid: Scalars["String"]["output"]; + mxid: Scalars['String']['output']; }; /** The mutations root of the GraphQL interface. */ export type Mutation = { - __typename?: "Mutation"; + __typename?: 'Mutation'; /** Add an email address to the specified user */ addEmail: AddEmailPayload; /** Add a user. This is only available to administrators. */ @@ -449,66 +433,79 @@ export type Mutation = { 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 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; @@ -517,73 +514,72 @@ export type MutationVerifyEmailArgs = { /** An object with an ID. */ export type Node = { /** ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; }; /** The application type advertised by the client. */ export enum Oauth2ApplicationType { /** Client is a native application. */ - Native = "NATIVE", + Native = 'NATIVE', /** Client is a web application. */ - Web = "WEB", + Web = 'WEB' } /** An OAuth 2.0 client */ export type Oauth2Client = Node & { - __typename?: "Oauth2Client"; + __typename?: 'Oauth2Client'; /** The application type advertised by the client. */ applicationType?: Maybe; /** OAuth 2.0 client ID */ - clientId: Scalars["String"]["output"]; + clientId: Scalars['String']['output']; /** Client name advertised by the client. */ - clientName?: Maybe; + clientName?: Maybe; /** Client URI advertised by the client. */ - clientUri?: Maybe; + clientUri?: Maybe; /** List of contacts advertised by the client. */ - contacts: Array; + contacts: Array; /** ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Logo URI advertised by the client. */ - logoUri?: Maybe; + logoUri?: Maybe; /** Privacy policy URI advertised by the client. */ - policyUri?: Maybe; + policyUri?: Maybe; /** List of redirect URIs used for authorization grants by the client. */ - redirectUris: Array; + redirectUris: Array; /** Terms of services URI advertised by the client. */ - tosUri?: Maybe; + 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 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"; + __typename?: 'Oauth2SessionConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -591,34 +587,34 @@ export type Oauth2SessionConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type Oauth2SessionEdge = { - __typename?: "Oauth2SessionEdge"; + __typename?: 'Oauth2SessionEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + 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"; + __typename?: 'PageInfo'; /** When paginating forwards, the cursor to continue. */ - endCursor?: Maybe; + endCursor?: Maybe; /** When paginating forwards, are there more items? */ - hasNextPage: Scalars["Boolean"]["output"]; + hasNextPage: Scalars['Boolean']['output']; /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars["Boolean"]["output"]; + hasPreviousPage: Scalars['Boolean']['output']; /** When paginating backwards, the cursor to continue. */ - startCursor?: Maybe; + startCursor?: Maybe; }; /** The query root of the GraphQL interface. */ export type Query = { - __typename?: "Query"; + __typename?: 'Query'; /** Fetch a browser session by its ID. */ browserSession?: Maybe; /** @@ -655,69 +651,79 @@ export type Query = { viewerSession: ViewerSession; }; + /** The query root of the GraphQL interface. */ export type QueryBrowserSessionArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryNodeArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryOauth2ClientArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QuerySessionArgs = { - deviceId: Scalars["String"]["input"]; - userId: Scalars["ID"]["input"]; + deviceId: Scalars['String']['input']; + userId: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryUpstreamOauth2LinkArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryUpstreamOauth2ProviderArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryUpstreamOauth2ProvidersArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** The query root of the GraphQL interface. */ export type QueryUserArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryUserByUsernameArgs = { - username: Scalars["String"]["input"]; + username: Scalars['String']['input']; }; + /** The query root of the GraphQL interface. */ export type QueryUserEmailArgs = { - id: Scalars["ID"]["input"]; + 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"]; + userEmailId: Scalars['ID']['input']; }; /** The payload of the `removeEmail` mutation */ export type RemoveEmailPayload = { - __typename?: "RemoveEmailPayload"; + __typename?: 'RemoveEmailPayload'; /** The email address that was removed */ email?: Maybe; /** Status of the operation */ @@ -729,22 +735,22 @@ export type RemoveEmailPayload = { /** The status of the `removeEmail` mutation */ export enum RemoveEmailStatus { /** The email address was not found */ - NotFound = "NOT_FOUND", + NotFound = 'NOT_FOUND', /** Can't remove the primary email address */ - Primary = "PRIMARY", + Primary = 'PRIMARY', /** The email address was removed */ - Removed = "REMOVED", + Removed = 'REMOVED' } /** The input for the `sendVerificationEmail` mutation */ export type SendVerificationEmailInput = { /** The ID of the email address to verify */ - userEmailId: Scalars["ID"]["input"]; + userEmailId: Scalars['ID']['input']; }; /** The payload of the `sendVerificationEmail` mutation */ export type SendVerificationEmailPayload = { - __typename?: "SendVerificationEmailPayload"; + __typename?: 'SendVerificationEmailPayload'; /** The email address to which the verification email was sent */ email: UserEmail; /** Status of the operation */ @@ -756,9 +762,9 @@ export type SendVerificationEmailPayload = { /** The status of the `sendVerificationEmail` mutation */ export enum SendVerificationEmailStatus { /** The email address is already verified */ - AlreadyVerified = "ALREADY_VERIFIED", + AlreadyVerified = 'ALREADY_VERIFIED', /** The verification email was sent */ - Sent = "SENT", + Sent = 'SENT' } /** A client session, either compat or OAuth 2.0 */ @@ -767,22 +773,22 @@ export type Session = CompatSession | Oauth2Session; /** The state of a session */ export enum SessionState { /** The session is active. */ - Active = "ACTIVE", + Active = 'ACTIVE', /** The session is no longer active. */ - Finished = "FINISHED", + Finished = 'FINISHED' } /** The input for the `setCanRequestAdmin` mutation. */ export type SetCanRequestAdminInput = { /** Whether the user can request admin. */ - canRequestAdmin: Scalars["Boolean"]["input"]; + canRequestAdmin: Scalars['Boolean']['input']; /** The ID of the user to update. */ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; /** The payload for the `setCanRequestAdmin` mutation. */ export type SetCanRequestAdminPayload = { - __typename?: "SetCanRequestAdminPayload"; + __typename?: 'SetCanRequestAdminPayload'; /** The user that was updated. */ user?: Maybe; }; @@ -790,14 +796,14 @@ export type SetCanRequestAdminPayload = { /** The input for the `addEmail` mutation */ export type SetDisplayNameInput = { /** The display name to set. If `None`, the display name will be removed. */ - displayName?: InputMaybe; + displayName?: InputMaybe; /** The ID of the user to add the email address to */ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; /** The payload of the `setDisplayName` mutation */ export type SetDisplayNamePayload = { - __typename?: "SetDisplayNamePayload"; + __typename?: 'SetDisplayNamePayload'; /** Status of the operation */ status: SetDisplayNameStatus; /** The user that was updated */ @@ -807,20 +813,20 @@ export type SetDisplayNamePayload = { /** The status of the `setDisplayName` mutation */ export enum SetDisplayNameStatus { /** The display name is invalid */ - Invalid = "INVALID", + Invalid = 'INVALID', /** The display name was set */ - Set = "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"]; + userEmailId: Scalars['ID']['input']; }; /** The payload of the `setPrimaryEmail` mutation */ export type SetPrimaryEmailPayload = { - __typename?: "SetPrimaryEmailPayload"; + __typename?: 'SetPrimaryEmailPayload'; status: SetPrimaryEmailStatus; /** The user to whom the email address belongs */ user?: Maybe; @@ -829,30 +835,29 @@ export type SetPrimaryEmailPayload = { /** The status of the `setPrimaryEmail` mutation */ export enum SetPrimaryEmailStatus { /** The email address was not found */ - NotFound = "NOT_FOUND", + NotFound = 'NOT_FOUND', /** The email address was set as primary */ - Set = "SET", + Set = 'SET', /** Can't make an unverified email address primary */ - Unverified = "UNVERIFIED", + 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 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"; + __typename?: 'UpstreamOAuth2LinkConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -860,33 +865,32 @@ export type UpstreamOAuth2LinkConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type UpstreamOAuth2LinkEdge = { - __typename?: "UpstreamOAuth2LinkEdge"; + __typename?: 'UpstreamOAuth2LinkEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + 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 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"; + __typename?: 'UpstreamOAuth2ProviderConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -894,21 +898,21 @@ export type UpstreamOAuth2ProviderConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type UpstreamOAuth2ProviderEdge = { - __typename?: "UpstreamOAuth2ProviderEdge"; + __typename?: 'UpstreamOAuth2ProviderEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + 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"; + __typename?: 'User'; /** * Get the list of both compat and OAuth 2.0 sessions, chronologically * sorted @@ -917,19 +921,19 @@ export type User = Node & { /** Get the list of active browser sessions, chronologically sorted */ browserSessions: BrowserSessionConnection; /** Whether the user can request admin privileges. */ - canRequestAdmin: Scalars["Boolean"]["output"]; + 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"]; + createdAt: Scalars['DateTime']['output']; /** Get the list of emails, chronologically sorted */ emails: UserEmailConnection; /** ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** When the user was locked out. */ - lockedAt?: Maybe; + lockedAt?: Maybe; /** Access to the user's Matrix account information. */ matrix: MatrixUser; /** Get the list of OAuth 2.0 sessions, chronologically sorted */ @@ -939,92 +943,98 @@ export type User = Node & { /** Get the list of upstream OAuth 2.0 links */ upstreamOauth2Links: UpstreamOAuth2LinkConnection; /** Username chosen by the user. */ - username: Scalars["String"]["output"]; + username: Scalars['String']['output']; }; + /** A user is an individual's account. */ export type UserAppSessionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - device?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + 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; + 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; + 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; + 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; + 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; + 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; + 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 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"; + __typename?: 'UserEmailConnection'; /** A list of edges. */ edges: Array; /** A list of nodes. */ @@ -1032,14 +1042,14 @@ export type UserEmailConnection = { /** Information to aid in pagination. */ pageInfo: PageInfo; /** Identifies the total count of items in the connection. */ - totalCount: Scalars["Int"]["output"]; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type UserEmailEdge = { - __typename?: "UserEmailEdge"; + __typename?: 'UserEmailEdge'; /** A cursor for use in pagination */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge */ node: UserEmail; }; @@ -1047,22 +1057,22 @@ export type UserEmailEdge = { /** The state of a compatibility session. */ export enum UserEmailState { /** The email address has been confirmed. */ - Confirmed = "CONFIRMED", + Confirmed = 'CONFIRMED', /** The email address is pending confirmation. */ - Pending = "PENDING", + Pending = 'PENDING' } /** The input for the `verifyEmail` mutation */ export type VerifyEmailInput = { /** The verification code */ - code: Scalars["String"]["input"]; + code: Scalars['String']['input']; /** The ID of the email address to verify */ - userEmailId: Scalars["ID"]["input"]; + userEmailId: Scalars['ID']['input']; }; /** The payload of the `verifyEmail` mutation */ export type VerifyEmailPayload = { - __typename?: "VerifyEmailPayload"; + __typename?: 'VerifyEmailPayload'; /** The email address that was verified */ email?: Maybe; /** Status of the operation */ @@ -1074,11 +1084,11 @@ export type VerifyEmailPayload = { /** The status of the `verifyEmail` mutation */ export enum VerifyEmailStatus { /** The email address was already verified before */ - AlreadyVerified = "ALREADY_VERIFIED", + AlreadyVerified = 'ALREADY_VERIFIED', /** The verification code is invalid */ - InvalidCode = "INVALID_CODE", + InvalidCode = 'INVALID_CODE', /** The email address was just verified */ - Verified = "VERIFIED", + Verified = 'VERIFIED' } /** Represents the current viewer */ @@ -1087,3250 +1097,264 @@ export type Viewer = Anonymous | User; /** Represents the current viewer's session */ export type ViewerSession = Anonymous | BrowserSession | Oauth2Session; -export type CurrentViewerQueryQueryVariables = Exact<{ [key: string]: never }>; +export type CurrentViewerQueryQueryVariables = Exact<{ [key: string]: never; }>; -export type CurrentViewerQueryQuery = { - __typename?: "Query"; - viewer: - | { __typename: "Anonymous"; id: string } - | { __typename: "User"; id: string }; -}; -export type CurrentViewerSessionQueryQueryVariables = Exact<{ - [key: string]: never; -}>; +export type CurrentViewerQueryQuery = { __typename?: 'Query', viewer: { __typename: 'Anonymous', id: string } | { __typename: 'User', id: string } }; + +export type CurrentViewerSessionQueryQueryVariables = Exact<{ [key: string]: never; }>; -export type CurrentViewerSessionQueryQuery = { - __typename?: "Query"; - viewerSession: - | { __typename: "Anonymous"; id: string } - | { __typename: "BrowserSession"; id: string } - | { __typename: "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 CurrentViewerSessionQueryQuery = { __typename?: 'Query', viewerSession: { __typename: 'Anonymous', id: string } | { __typename: 'BrowserSession', id: string } | { __typename: '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"]; + 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 EndBrowserSessionMutation = { __typename?: 'Mutation', endBrowserSession: { __typename?: 'EndBrowserSessionPayload', status: EndBrowserSessionStatus, browserSession?: ( + { __typename?: 'BrowserSession', id: string } + & { ' $fragmentRefs'?: { 'BrowserSession_SessionFragment': BrowserSession_SessionFragment } } + ) | null } }; export type BrowserSessionListQueryVariables = Exact<{ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; state?: InputMaybe; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type BrowserSessionListQuery = { - __typename?: "Query"; - 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; - }; - }; - } | 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 BrowserSessionListQuery = { __typename?: 'Query', 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 } } } | 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"]; + 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 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"]; + 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 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 SessionQueryQueryVariables = Exact<{ - userId: Scalars["ID"]["input"]; - deviceId: Scalars["String"]["input"]; + userId: Scalars['ID']['input']; + deviceId: Scalars['String']['input']; }>; -export type SessionQueryQuery = { - __typename?: "Query"; - session?: - | ({ __typename: "CompatSession" } & { - " $fragmentRefs"?: { - CompatSession_DetailFragment: CompatSession_DetailFragment; - }; - }) - | ({ __typename: "Oauth2Session" } & { - " $fragmentRefs"?: { - OAuth2Session_DetailFragment: OAuth2Session_DetailFragment; - }; - }) - | null; -}; -export type UnverifiedEmailAlertFragment = { - __typename?: "User"; - id: string; - unverifiedEmails: { __typename?: "UserEmailConnection"; totalCount: number }; -} & { " $fragmentName"?: "UnverifiedEmailAlertFragment" }; +export type SessionQueryQuery = { __typename?: 'Query', session?: ( + { __typename: 'CompatSession' } + & { ' $fragmentRefs'?: { 'CompatSession_DetailFragment': CompatSession_DetailFragment } } + ) | ( + { __typename: 'Oauth2Session' } + & { ' $fragmentRefs'?: { 'OAuth2Session_DetailFragment': OAuth2Session_DetailFragment } } + ) | null }; -export type UserEmail_EmailFragment = { - __typename?: "UserEmail"; - id: string; - email: string; - confirmedAt?: string | null; -} & { " $fragmentName"?: "UserEmail_EmailFragment" }; +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"]; + id: Scalars['ID']['input']; }>; -export type RemoveEmailMutation = { - __typename?: "Mutation"; - removeEmail: { - __typename?: "RemoveEmailPayload"; - status: RemoveEmailStatus; - user?: { __typename?: "User"; id: string } | null; - }; -}; + +export type RemoveEmailMutation = { __typename?: 'Mutation', removeEmail: { __typename?: 'RemoveEmailPayload', status: RemoveEmailStatus, user?: { __typename?: 'User', id: string } | null } }; export type SetPrimaryEmailMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + 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 SetPrimaryEmailMutation = { __typename?: 'Mutation', setPrimaryEmail: { __typename?: 'SetPrimaryEmailPayload', status: SetPrimaryEmailStatus, user?: { __typename?: 'User', id: string, primaryEmail?: { __typename?: 'UserEmail', id: string } | null } | null } }; export type UserGreetingQueryVariables = Exact<{ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }>; -export type UserGreetingQuery = { - __typename?: "Query"; - user?: - | ({ - __typename?: "User"; - id: string; - username: string; - matrix: { - __typename?: "MatrixUser"; - mxid: string; - displayName?: string | null; - }; - } & { - " $fragmentRefs"?: { - UnverifiedEmailAlertFragment: UnverifiedEmailAlertFragment; - }; - }) - | null; -}; + +export type UserGreetingQuery = { __typename?: 'Query', user?: ( + { __typename?: 'User', id: string, username: string, matrix: { __typename?: 'MatrixUser', mxid: string, displayName?: string | null } } + & { ' $fragmentRefs'?: { 'UnverifiedEmailAlertFragment': UnverifiedEmailAlertFragment } } + ) | null }; export type AddEmailMutationVariables = Exact<{ - userId: Scalars["ID"]["input"]; - email: Scalars["String"]["input"]; + 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 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; + 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 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 UserPrimaryEmailQueryVariables = Exact<{ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }>; -export type UserPrimaryEmailQuery = { - __typename?: "Query"; - user?: { - __typename?: "User"; - id: string; - primaryEmail?: { __typename?: "UserEmail"; id: string } | null; - } | null; -}; + +export type UserPrimaryEmailQuery = { __typename?: 'Query', user?: { __typename?: 'User', id: string, primaryEmail?: { __typename?: 'UserEmail', id: string } | null } | null }; export type SetDisplayNameMutationVariables = Exact<{ - userId: Scalars["ID"]["input"]; - displayName?: InputMaybe; + 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 SetDisplayNameMutation = { __typename?: 'Mutation', setDisplayName: { __typename?: 'SetDisplayNamePayload', status: SetDisplayNameStatus, user?: { __typename?: 'User', id: string, matrix: { __typename?: 'MatrixUser', displayName?: string | null } } | null } }; export type AppSessionListQueryVariables = Exact<{ - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; state?: InputMaybe; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type AppSessionListQuery = { - __typename?: "Query"; - user?: { - __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"; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - endCursor?: 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 AppSessionListQuery = { __typename?: 'Query', user?: { __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', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null, endCursor?: 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"]; + 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 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"]; + 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 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 BrowserSessionQueryQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type BrowserSessionQueryQuery = { - __typename?: "Query"; - browserSession?: - | ({ __typename?: "BrowserSession"; id: string } & { - " $fragmentRefs"?: { - BrowserSession_DetailFragment: BrowserSession_DetailFragment; - }; - }) - | null; -}; + +export type BrowserSessionQueryQuery = { __typename?: 'Query', browserSession?: ( + { __typename?: 'BrowserSession', id: string } + & { ' $fragmentRefs'?: { 'BrowserSession_DetailFragment': BrowserSession_DetailFragment } } + ) | null }; export type OAuth2ClientQueryQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type OAuth2ClientQueryQuery = { - __typename?: "Query"; - oauth2Client?: - | ({ __typename?: "Oauth2Client" } & { - " $fragmentRefs"?: { - OAuth2Client_DetailFragment: OAuth2Client_DetailFragment; - }; - }) - | null; -}; -export type SessionsOverviewQueryQueryVariables = Exact<{ - [key: string]: never; -}>; +export type OAuth2ClientQueryQuery = { __typename?: 'Query', oauth2Client?: ( + { __typename?: 'Oauth2Client' } + & { ' $fragmentRefs'?: { 'OAuth2Client_DetailFragment': OAuth2Client_DetailFragment } } + ) | null }; -export type SessionsOverviewQueryQuery = { - __typename?: "Query"; - viewer: - | { __typename: "Anonymous" } - | ({ __typename: "User"; id: string } & { - " $fragmentRefs"?: { - BrowserSessionsOverview_UserFragment: BrowserSessionsOverview_UserFragment; - }; - }); -}; +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 VerifyEmailQueryQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type VerifyEmailQueryQuery = { - __typename?: "Query"; - userEmail?: - | ({ __typename?: "UserEmail" } & { - " $fragmentRefs"?: { - UserEmail_VerifyEmailFragment: UserEmail_VerifyEmailFragment; - }; - }) - | null; -}; -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 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 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 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 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: "User" }, - }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - ], - }, - }, - { - kind: "InlineFragment", - typeCondition: { - kind: "NamedType", - name: { kind: "Name", value: "Anonymous" }, - }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - CurrentViewerQueryQuery, - CurrentViewerQueryQueryVariables ->; -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" } }, - ], - }, - }, - { - kind: "InlineFragment", - typeCondition: { - kind: "NamedType", - name: { kind: "Name", value: "Anonymous" }, - }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - CurrentViewerSessionQueryQuery, - CurrentViewerSessionQueryQueryVariables ->; -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 BrowserSessionListDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "BrowserSessionList" }, - 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: "state" }, - }, - type: { - kind: "NamedType", - name: { kind: "Name", value: "SessionState" }, - }, - }, - { - 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: "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: "Variable", - name: { kind: "Name", value: "state" }, - }, - }, - ], - 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 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 SessionQueryDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "SessionQuery" }, - 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: "deviceId" }, - }, - type: { - kind: "NonNullType", - type: { - kind: "NamedType", - name: { kind: "Name", value: "String" }, - }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "session" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "userId" }, - value: { - kind: "Variable", - name: { kind: "Name", value: "userId" }, - }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "deviceId" }, - value: { - kind: "Variable", - name: { kind: "Name", value: "deviceId" }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "__typename" } }, - { - kind: "FragmentSpread", - name: { kind: "Name", value: "CompatSession_detail" }, - }, - { - kind: "FragmentSpread", - name: { kind: "Name", value: "OAuth2Session_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" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -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 UserGreetingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "UserGreeting" }, - 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: "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: "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 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 UserPrimaryEmailDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "UserPrimaryEmail" }, - 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: "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: "primaryEmail" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - UserPrimaryEmailQuery, - UserPrimaryEmailQueryVariables ->; -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 AppSessionListDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "AppSessionList" }, - 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: "state" }, - }, - type: { - kind: "NamedType", - name: { kind: "Name", value: "SessionState" }, - }, - }, - { - 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: "appSessions" }, - 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: "Variable", - name: { kind: "Name", value: "state" }, - }, - }, - ], - 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: "__typename" }, - }, - { - kind: "FragmentSpread", - name: { - kind: "Name", - value: "CompatSession_session", - }, - }, - { - kind: "FragmentSpread", - name: { - kind: "Name", - value: "OAuth2Session_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: "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; -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 BrowserSessionQueryDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "BrowserSessionQuery" }, - 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: "browserSession" }, - 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: "id" } }, - { - kind: "FragmentSpread", - name: { kind: "Name", value: "BrowserSession_detail" }, - }, - ], - }, - }, - ], - }, - }, - { - 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< - BrowserSessionQueryQuery, - BrowserSessionQueryQueryVariables ->; -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 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 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 type VerifyEmailQueryQuery = { __typename?: 'Query', userEmail?: ( + { __typename?: 'UserEmail' } + & { ' $fragmentRefs'?: { 'UserEmail_VerifyEmailFragment': UserEmail_VerifyEmailFragment } } + ) | null }; + +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 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 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 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 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":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Anonymous"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; +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"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Anonymous"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} 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; +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":"userId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"state"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"SessionState"}}},{"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":"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":"Variable","name":{"kind":"Name","value":"state"}}}],"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; +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; +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; +export const SessionQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SessionQuery"},"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":"deviceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"session"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"userId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userId"}}},{"kind":"Argument","name":{"kind":"Name","value":"deviceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"deviceId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"CompatSession_detail"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"OAuth2Session_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"}}]}}]}}]} as unknown as DocumentNode; +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; +export const UserGreetingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserGreeting"},"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":"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":"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 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; +export const UserPrimaryEmailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserPrimaryEmail"},"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":"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":"primaryEmail"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; +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; +export const AppSessionListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AppSessionList"},"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":"state"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"SessionState"}}},{"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":"appSessions"},"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":"Variable","name":{"kind":"Name","value":"state"}}}],"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":"__typename"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"CompatSession_session"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"OAuth2Session_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":"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; +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; +export const BrowserSessionQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BrowserSessionQuery"},"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":"browserSession"},"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":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BrowserSession_detail"}}]}}]}},{"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 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; +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; +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; \ No newline at end of file diff --git a/frontend/src/gql/schema.ts b/frontend/src/gql/schema.ts index 697801051..869f0b4bb 100644 --- a/frontend/src/gql/schema.ts +++ b/frontend/src/gql/schema.ts @@ -1,3214 +1,3214 @@ -import { IntrospectionQuery } from "graphql"; +import { IntrospectionQuery } from 'graphql'; export default { - __schema: { - queryType: { - name: "Query", + "__schema": { + "queryType": { + "name": "Query" }, - mutationType: { - name: "Mutation", + "mutationType": { + "name": "Mutation" }, - subscriptionType: null, - types: [ + "subscriptionType": null, + "types": [ { - kind: "OBJECT", - name: "AddEmailPayload", - fields: [ + "kind": "OBJECT", + "name": "AddEmailPayload", + "fields": [ { - name: "email", - type: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, + "name": "email", + "type": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null }, - args: [], + "args": [] }, { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], + "args": [] }, { - name: "violations", - type: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, + "name": "violations", + "type": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "AddUserPayload", - fields: [ - { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "AddUserPayload", + "fields": [ + { + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "Anonymous", - fields: [ - { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "Anonymous", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "UNION", - name: "AppSession", - possibleTypes: [ + "kind": "UNION", + "name": "AppSession", + "possibleTypes": [ { - kind: "OBJECT", - name: "CompatSession", + "kind": "OBJECT", + "name": "CompatSession" }, { - kind: "OBJECT", - name: "Oauth2Session", - }, - ], + "kind": "OBJECT", + "name": "Oauth2Session" + } + ] }, { - kind: "OBJECT", - name: "AppSessionConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "AppSessionEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "UNION", - name: "AppSession", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "AppSessionConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "AppSessionEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "AppSession", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "AppSessionEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "UNION", - name: "AppSession", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "AppSessionEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "AppSession", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "Authentication", - fields: [ - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "Authentication", + "fields": [ + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "BrowserSession", - fields: [ - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "BrowserSession", + "fields": [ + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "finishedAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "finishedAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "lastActiveAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "lastActiveAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "lastActiveIp", - type: { - kind: "SCALAR", - name: "Any", + "name": "lastActiveIp", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "lastAuthentication", - type: { - kind: "OBJECT", - name: "Authentication", - ofType: null, + "name": "lastAuthentication", + "type": { + "kind": "OBJECT", + "name": "Authentication", + "ofType": null }, - args: [], + "args": [] }, { - name: "state", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "state", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "User", - ofType: null, - }, + "name": "user", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } }, - args: [], + "args": [] }, { - name: "userAgent", - type: { - kind: "SCALAR", - name: "Any", + "name": "userAgent", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "BrowserSessionConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "BrowserSessionEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "BrowserSession", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "BrowserSessionConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BrowserSessionEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BrowserSession", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "BrowserSessionEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "BrowserSession", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "BrowserSessionEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BrowserSession", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "CompatSession", - fields: [ - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "CompatSession", + "fields": [ + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "deviceId", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "deviceId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "finishedAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "finishedAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "lastActiveAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "lastActiveAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "lastActiveIp", - type: { - kind: "SCALAR", - name: "Any", + "name": "lastActiveIp", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "ssoLogin", - type: { - kind: "OBJECT", - name: "CompatSsoLogin", - ofType: null, + "name": "ssoLogin", + "type": { + "kind": "OBJECT", + "name": "CompatSsoLogin", + "ofType": null }, - args: [], + "args": [] }, { - name: "state", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "state", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "User", - ofType: null, - }, + "name": "user", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "CompatSessionConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSessionEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSession", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "CompatSessionConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSessionEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSession", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "CompatSessionEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSession", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "CompatSessionEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSession", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "CompatSsoLogin", - fields: [ - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "CompatSsoLogin", + "fields": [ + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "exchangedAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "exchangedAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "fulfilledAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "fulfilledAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "redirectUri", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "redirectUri", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "session", - type: { - kind: "OBJECT", - name: "CompatSession", - ofType: null, + "name": "session", + "type": { + "kind": "OBJECT", + "name": "CompatSession", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "CompatSsoLoginConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSsoLoginEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSsoLogin", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "CompatSsoLoginConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSsoLoginEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSsoLogin", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "CompatSsoLoginEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSsoLogin", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "CompatSsoLoginEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSsoLogin", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "CreateOAuth2SessionPayload", - fields: [ - { - name: "accessToken", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "CreateOAuth2SessionPayload", + "fields": [ + { + "name": "accessToken", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "oauth2Session", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "Oauth2Session", - ofType: null, - }, + "name": "oauth2Session", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Oauth2Session", + "ofType": null + } }, - args: [], + "args": [] }, { - name: "refreshToken", - type: { - kind: "SCALAR", - name: "Any", + "name": "refreshToken", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "INTERFACE", - name: "CreationEvent", - fields: [ - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "INTERFACE", + "name": "CreationEvent", + "fields": [ + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], - possibleTypes: [ + "interfaces": [], + "possibleTypes": [ { - kind: "OBJECT", - name: "Authentication", + "kind": "OBJECT", + "name": "Authentication" }, { - kind: "OBJECT", - name: "BrowserSession", + "kind": "OBJECT", + "name": "BrowserSession" }, { - kind: "OBJECT", - name: "CompatSession", + "kind": "OBJECT", + "name": "CompatSession" }, { - kind: "OBJECT", - name: "Oauth2Session", + "kind": "OBJECT", + "name": "Oauth2Session" }, { - kind: "OBJECT", - name: "UpstreamOAuth2Link", + "kind": "OBJECT", + "name": "UpstreamOAuth2Link" }, { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider" }, { - kind: "OBJECT", - name: "UserEmail", - }, - ], + "kind": "OBJECT", + "name": "UserEmail" + } + ] }, { - kind: "OBJECT", - name: "EndBrowserSessionPayload", - fields: [ + "kind": "OBJECT", + "name": "EndBrowserSessionPayload", + "fields": [ { - name: "browserSession", - type: { - kind: "OBJECT", - name: "BrowserSession", - ofType: null, + "name": "browserSession", + "type": { + "kind": "OBJECT", + "name": "BrowserSession", + "ofType": null }, - args: [], + "args": [] }, { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "EndCompatSessionPayload", - fields: [ + "kind": "OBJECT", + "name": "EndCompatSessionPayload", + "fields": [ { - name: "compatSession", - type: { - kind: "OBJECT", - name: "CompatSession", - ofType: null, + "name": "compatSession", + "type": { + "kind": "OBJECT", + "name": "CompatSession", + "ofType": null }, - args: [], + "args": [] }, { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "EndOAuth2SessionPayload", - fields: [ + "kind": "OBJECT", + "name": "EndOAuth2SessionPayload", + "fields": [ { - name: "oauth2Session", - type: { - kind: "OBJECT", - name: "Oauth2Session", - ofType: null, + "name": "oauth2Session", + "type": { + "kind": "OBJECT", + "name": "Oauth2Session", + "ofType": null }, - args: [], + "args": [] }, { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "LockUserPayload", - fields: [ - { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "LockUserPayload", + "fields": [ + { + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "MatrixUser", - fields: [ + "kind": "OBJECT", + "name": "MatrixUser", + "fields": [ { - name: "avatarUrl", - type: { - kind: "SCALAR", - name: "Any", + "name": "avatarUrl", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "displayName", - type: { - kind: "SCALAR", - name: "Any", + "name": "displayName", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "mxid", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "mxid", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "Mutation", - fields: [ - { - name: "addEmail", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "AddEmailPayload", - ofType: null, - }, - }, - args: [ + "kind": "OBJECT", + "name": "Mutation", + "fields": [ + { + "name": "addEmail", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "AddEmailPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "addUser", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "AddUserPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "addUser", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "AddUserPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "createOauth2Session", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CreateOAuth2SessionPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "createOauth2Session", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CreateOAuth2SessionPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "endBrowserSession", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "EndBrowserSessionPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "endBrowserSession", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "EndBrowserSessionPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "endCompatSession", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "EndCompatSessionPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "endCompatSession", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "EndCompatSessionPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "endOauth2Session", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "EndOAuth2SessionPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "endOauth2Session", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "EndOAuth2SessionPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "lockUser", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "LockUserPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "lockUser", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "LockUserPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "removeEmail", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "RemoveEmailPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "removeEmail", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RemoveEmailPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "sendVerificationEmail", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "SendVerificationEmailPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "sendVerificationEmail", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SendVerificationEmailPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "setCanRequestAdmin", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "SetCanRequestAdminPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "setCanRequestAdmin", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SetCanRequestAdminPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "setDisplayName", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "SetDisplayNamePayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "setDisplayName", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SetDisplayNamePayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "setPrimaryEmail", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "SetPrimaryEmailPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "setPrimaryEmail", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SetPrimaryEmailPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "verifyEmail", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "VerifyEmailPayload", - ofType: null, - }, - }, - args: [ + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "verifyEmail", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "VerifyEmailPayload", + "ofType": null + } + }, + "args": [ { - name: "input", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, + "name": "input", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "INTERFACE", - name: "Node", - fields: [ - { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "INTERFACE", + "name": "Node", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], - possibleTypes: [ + "interfaces": [], + "possibleTypes": [ { - kind: "OBJECT", - name: "Anonymous", + "kind": "OBJECT", + "name": "Anonymous" }, { - kind: "OBJECT", - name: "Authentication", + "kind": "OBJECT", + "name": "Authentication" }, { - kind: "OBJECT", - name: "BrowserSession", + "kind": "OBJECT", + "name": "BrowserSession" }, { - kind: "OBJECT", - name: "CompatSession", + "kind": "OBJECT", + "name": "CompatSession" }, { - kind: "OBJECT", - name: "CompatSsoLogin", + "kind": "OBJECT", + "name": "CompatSsoLogin" }, { - kind: "OBJECT", - name: "Oauth2Client", + "kind": "OBJECT", + "name": "Oauth2Client" }, { - kind: "OBJECT", - name: "Oauth2Session", + "kind": "OBJECT", + "name": "Oauth2Session" }, { - kind: "OBJECT", - name: "UpstreamOAuth2Link", + "kind": "OBJECT", + "name": "UpstreamOAuth2Link" }, { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider" }, { - kind: "OBJECT", - name: "User", + "kind": "OBJECT", + "name": "User" }, { - kind: "OBJECT", - name: "UserEmail", - }, - ], + "kind": "OBJECT", + "name": "UserEmail" + } + ] }, { - kind: "OBJECT", - name: "Oauth2Client", - fields: [ + "kind": "OBJECT", + "name": "Oauth2Client", + "fields": [ { - name: "applicationType", - type: { - kind: "SCALAR", - name: "Any", + "name": "applicationType", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "clientId", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "clientId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "clientName", - type: { - kind: "SCALAR", - name: "Any", + "name": "clientName", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "clientUri", - type: { - kind: "SCALAR", - name: "Any", + "name": "clientUri", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "contacts", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, + "name": "contacts", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "logoUri", - type: { - kind: "SCALAR", - name: "Any", + "name": "logoUri", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "policyUri", - type: { - kind: "SCALAR", - name: "Any", + "name": "policyUri", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "redirectUris", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, + "name": "redirectUris", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } }, - args: [], + "args": [] }, { - name: "tosUri", - type: { - kind: "SCALAR", - name: "Any", + "name": "tosUri", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "Oauth2Session", - fields: [ - { - name: "browserSession", - type: { - kind: "OBJECT", - name: "BrowserSession", - ofType: null, - }, - args: [], - }, - { - name: "client", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "Oauth2Client", - ofType: null, - }, + "kind": "OBJECT", + "name": "Oauth2Session", + "fields": [ + { + "name": "browserSession", + "type": { + "kind": "OBJECT", + "name": "BrowserSession", + "ofType": null }, - args: [], + "args": [] }, { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "client", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Oauth2Client", + "ofType": null + } }, - args: [], + "args": [] }, { - name: "finishedAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "finishedAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "lastActiveAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "lastActiveIp", - type: { - kind: "SCALAR", - name: "Any", + "name": "lastActiveAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "scope", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "lastActiveIp", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "state", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "scope", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "state", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, + { + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "Oauth2SessionConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "Oauth2SessionEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "Oauth2Session", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "Oauth2SessionConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Oauth2SessionEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Oauth2Session", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "Oauth2SessionEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "Oauth2Session", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "Oauth2SessionEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Oauth2Session", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "PageInfo", - fields: [ + "kind": "OBJECT", + "name": "PageInfo", + "fields": [ { - name: "endCursor", - type: { - kind: "SCALAR", - name: "Any", + "name": "endCursor", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "hasNextPage", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "hasNextPage", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "hasPreviousPage", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "hasPreviousPage", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "startCursor", - type: { - kind: "SCALAR", - name: "Any", + "name": "startCursor", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "Query", - fields: [ + "kind": "OBJECT", + "name": "Query", + "fields": [ { - name: "browserSession", - type: { - kind: "OBJECT", - name: "BrowserSession", - ofType: null, + "name": "browserSession", + "type": { + "kind": "OBJECT", + "name": "BrowserSession", + "ofType": null }, - args: [ + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] }, { - name: "currentBrowserSession", - type: { - kind: "OBJECT", - name: "BrowserSession", - ofType: null, + "name": "currentBrowserSession", + "type": { + "kind": "OBJECT", + "name": "BrowserSession", + "ofType": null }, - args: [], + "args": [] }, { - name: "currentUser", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "currentUser", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], + "args": [] }, { - name: "node", - type: { - kind: "INTERFACE", - name: "Node", - ofType: null, + "name": "node", + "type": { + "kind": "INTERFACE", + "name": "Node", + "ofType": null }, - args: [ + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "oauth2Client", - type: { - kind: "OBJECT", - name: "Oauth2Client", - ofType: null, - }, - args: [ + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "oauth2Client", + "type": { + "kind": "OBJECT", + "name": "Oauth2Client", + "ofType": null + }, + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "session", - type: { - kind: "UNION", - name: "Session", - ofType: null, - }, - args: [ + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "session", + "type": { + "kind": "UNION", + "name": "Session", + "ofType": null + }, + "args": [ { - name: "deviceId", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, + "name": "deviceId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } }, { - name: "userId", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "upstreamOauth2Link", - type: { - kind: "OBJECT", - name: "UpstreamOAuth2Link", - ofType: null, - }, - args: [ + "name": "userId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "upstreamOauth2Link", + "type": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Link", + "ofType": null + }, + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "upstreamOauth2Provider", - type: { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", - ofType: null, - }, - args: [ + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "upstreamOauth2Provider", + "type": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider", + "ofType": null + }, + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "upstreamOauth2Providers", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2ProviderConnection", - ofType: null, - }, - }, - args: [ + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "upstreamOauth2Providers", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2ProviderConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, - }, - args: [ + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "userByUsername", - type: { - kind: "OBJECT", - name: "User", - ofType: null, - }, - args: [ + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "userByUsername", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [ { - name: "username", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "userEmail", - type: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, - }, - args: [ + "name": "username", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "userEmail", + "type": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null + }, + "args": [ { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - }, - ], - }, - { - name: "viewer", - type: { - kind: "NON_NULL", - ofType: { - kind: "UNION", - name: "Viewer", - ofType: null, - }, - }, - args: [], - }, - { - name: "viewerSession", - type: { - kind: "NON_NULL", - ofType: { - kind: "UNION", - name: "ViewerSession", - ofType: null, - }, - }, - args: [], - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + } + } + ] + }, + { + "name": "viewer", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "Viewer", + "ofType": null + } + }, + "args": [] + }, + { + "name": "viewerSession", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "ViewerSession", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "RemoveEmailPayload", - fields: [ + "kind": "OBJECT", + "name": "RemoveEmailPayload", + "fields": [ { - name: "email", - type: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, + "name": "email", + "type": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null }, - args: [], + "args": [] }, { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "SendVerificationEmailPayload", - fields: [ - { - name: "email", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, - }, - }, - args: [], - }, - { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "user", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "User", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "SendVerificationEmailPayload", + "fields": [ + { + "name": "email", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null + } + }, + "args": [] + }, + { + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "user", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "UNION", - name: "Session", - possibleTypes: [ + "kind": "UNION", + "name": "Session", + "possibleTypes": [ { - kind: "OBJECT", - name: "CompatSession", + "kind": "OBJECT", + "name": "CompatSession" }, { - kind: "OBJECT", - name: "Oauth2Session", - }, - ], + "kind": "OBJECT", + "name": "Oauth2Session" + } + ] }, { - kind: "OBJECT", - name: "SetCanRequestAdminPayload", - fields: [ - { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, - }, - args: [], - }, + "kind": "OBJECT", + "name": "SetCanRequestAdminPayload", + "fields": [ + { + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "SetDisplayNamePayload", - fields: [ - { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "SetDisplayNamePayload", + "fields": [ + { + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "SetPrimaryEmailPayload", - fields: [ - { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "SetPrimaryEmailPayload", + "fields": [ + { + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "UpstreamOAuth2Link", - fields: [ - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "UpstreamOAuth2Link", + "fields": [ + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "provider", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", - ofType: null, - }, + "name": "provider", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider", + "ofType": null + } }, - args: [], + "args": [] }, { - name: "subject", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "subject", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "UpstreamOAuth2LinkConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2LinkEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2Link", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "UpstreamOAuth2LinkConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2LinkEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Link", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "UpstreamOAuth2LinkEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2Link", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "UpstreamOAuth2LinkEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Link", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", - fields: [ - { - name: "clientId", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider", + "fields": [ + { + "name": "clientId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "issuer", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "issuer", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "UpstreamOAuth2ProviderConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2ProviderEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "UpstreamOAuth2ProviderConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2ProviderEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "UpstreamOAuth2ProviderEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2Provider", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "UpstreamOAuth2ProviderEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2Provider", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "User", - fields: [ - { - name: "appSessions", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "AppSessionConnection", - ofType: null, - }, - }, - args: [ + "kind": "OBJECT", + "name": "User", + "fields": [ + { + "name": "appSessions", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "AppSessionConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "device", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "device", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "state", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "browserSessions", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "BrowserSessionConnection", - ofType: null, - }, - }, - args: [ + "name": "state", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "browserSessions", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BrowserSessionConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "state", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "canRequestAdmin", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "compatSessions", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSessionConnection", - ofType: null, - }, - }, - args: [ + "name": "state", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "canRequestAdmin", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "compatSessions", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSessionConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "state", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "state", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "type", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "compatSsoLogins", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "CompatSsoLoginConnection", - ofType: null, - }, - }, - args: [ + "name": "type", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "compatSsoLogins", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CompatSsoLoginConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "emails", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UserEmailConnection", - ofType: null, - }, - }, - args: [ + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "emails", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UserEmailConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "state", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], + "name": "state", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "lockedAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "lockedAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "matrix", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "MatrixUser", - ofType: null, - }, + "name": "matrix", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "MatrixUser", + "ofType": null + } }, - args: [], + "args": [] }, { - name: "oauth2Sessions", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "Oauth2SessionConnection", - ofType: null, - }, + "name": "oauth2Sessions", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Oauth2SessionConnection", + "ofType": null + } }, - args: [ + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "client", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "client", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "state", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "primaryEmail", - type: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, - }, - args: [], - }, - { - name: "upstreamOauth2Links", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UpstreamOAuth2LinkConnection", - ofType: null, - }, - }, - args: [ + "name": "state", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "primaryEmail", + "type": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null + }, + "args": [] + }, + { + "name": "upstreamOauth2Links", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UpstreamOAuth2LinkConnection", + "ofType": null + } + }, + "args": [ { - name: "after", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "before", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "first", - type: { - kind: "SCALAR", - name: "Any", - }, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Any" + } }, { - name: "last", - type: { - kind: "SCALAR", - name: "Any", - }, - }, - ], - }, - { - name: "username", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Any" + } + } + ] + }, + { + "name": "username", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "UserEmail", - fields: [ + "kind": "OBJECT", + "name": "UserEmail", + "fields": [ { - name: "confirmedAt", - type: { - kind: "SCALAR", - name: "Any", + "name": "confirmedAt", + "type": { + "kind": "SCALAR", + "name": "Any" }, - args: [], + "args": [] }, { - name: "createdAt", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "email", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "email", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "id", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], - }, + "args": [] + } ], - interfaces: [ + "interfaces": [ { - kind: "INTERFACE", - name: "CreationEvent", + "kind": "INTERFACE", + "name": "CreationEvent" }, { - kind: "INTERFACE", - name: "Node", - }, - ], + "kind": "INTERFACE", + "name": "Node" + } + ] }, { - kind: "OBJECT", - name: "UserEmailConnection", - fields: [ - { - name: "edges", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UserEmailEdge", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "nodes", - type: { - kind: "NON_NULL", - ofType: { - kind: "LIST", - ofType: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, - }, - }, - }, - }, - args: [], - }, - { - name: "pageInfo", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "PageInfo", - ofType: null, - }, - }, - args: [], - }, - { - name: "totalCount", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "UserEmailConnection", + "fields": [ + { + "name": "edges", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UserEmailEdge", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "nodes", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "args": [] + }, + { + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "UserEmailEdge", - fields: [ - { - name: "cursor", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, - }, - args: [], - }, - { - name: "node", - type: { - kind: "NON_NULL", - ofType: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, - }, - }, - args: [], - }, + "kind": "OBJECT", + "name": "UserEmailEdge", + "fields": [ + { + "name": "cursor", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } + }, + "args": [] + }, + { + "name": "node", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null + } + }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "OBJECT", - name: "VerifyEmailPayload", - fields: [ + "kind": "OBJECT", + "name": "VerifyEmailPayload", + "fields": [ { - name: "email", - type: { - kind: "OBJECT", - name: "UserEmail", - ofType: null, + "name": "email", + "type": { + "kind": "OBJECT", + "name": "UserEmail", + "ofType": null }, - args: [], + "args": [] }, { - name: "status", - type: { - kind: "NON_NULL", - ofType: { - kind: "SCALAR", - name: "Any", - }, + "name": "status", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Any" + } }, - args: [], + "args": [] }, { - name: "user", - type: { - kind: "OBJECT", - name: "User", - ofType: null, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null }, - args: [], - }, + "args": [] + } ], - interfaces: [], + "interfaces": [] }, { - kind: "UNION", - name: "Viewer", - possibleTypes: [ + "kind": "UNION", + "name": "Viewer", + "possibleTypes": [ { - kind: "OBJECT", - name: "Anonymous", + "kind": "OBJECT", + "name": "Anonymous" }, { - kind: "OBJECT", - name: "User", - }, - ], + "kind": "OBJECT", + "name": "User" + } + ] }, { - kind: "UNION", - name: "ViewerSession", - possibleTypes: [ + "kind": "UNION", + "name": "ViewerSession", + "possibleTypes": [ { - kind: "OBJECT", - name: "Anonymous", + "kind": "OBJECT", + "name": "Anonymous" }, { - kind: "OBJECT", - name: "BrowserSession", + "kind": "OBJECT", + "name": "BrowserSession" }, { - kind: "OBJECT", - name: "Oauth2Session", - }, - ], + "kind": "OBJECT", + "name": "Oauth2Session" + } + ] }, { - kind: "SCALAR", - name: "Any", - }, + "kind": "SCALAR", + "name": "Any" + } ], - directives: [], - }, -} as unknown as IntrospectionQuery; + "directives": [] + } +} as unknown as IntrospectionQuery; \ No newline at end of file diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts index 99efb00d3..d5cbfccd5 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n.ts @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as i18n from "i18next"; -import { InitOptions } from "i18next"; -import LanguageDetector from "i18next-browser-languagedetector"; +import { default as i18n, InitOptions } from "i18next"; +import LanguageDetector, { + DetectorOptions, +} from "i18next-browser-languagedetector"; import I18NextHttpBackend, { HttpBackendOptions } from "i18next-http-backend"; import { initReactI18next } from "react-i18next"; @@ -44,6 +45,9 @@ i18n keySeparator: ".", pluralSeparator: ":", supportedLngs, + detection: { + order: ["navigator", "htmlTag"], + } satisfies DetectorOptions, interpolation: { escapeValue: false, // React has built-in XSS protections }, @@ -60,7 +64,7 @@ i18n import.meta.hot?.on("locales-update", () => { i18n.reloadResources().then(() => { - i18n.changeLanguage(i18n.default.language); + i18n.changeLanguage(i18n.language); }); }); diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 786901425..57959552e 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -16,13 +16,14 @@ import { Provider } from "jotai"; import { DevTools } from "jotai-devtools"; import { Suspense, StrictMode } from "react"; import { createRoot } from "react-dom/client"; +import { I18nextProvider } from "react-i18next"; import { HydrateAtoms } from "./atoms"; import Layout from "./components/Layout"; import LoadingScreen from "./components/LoadingScreen"; import LoadingSpinner from "./components/LoadingSpinner"; +import i18n from "./i18n"; import { Router } from "./routing"; -import "./i18n"; import "./main.css"; createRoot(document.getElementById("root") as HTMLElement).render( @@ -31,11 +32,13 @@ createRoot(document.getElementById("root") as HTMLElement).render( {import.meta.env.DEV && } }> - - }> - - - + + + }> + + + + diff --git a/frontend/src/routing/Link.tsx b/frontend/src/routing/Link.tsx index 206cc60f5..3cd4dbc52 100644 --- a/frontend/src/routing/Link.tsx +++ b/frontend/src/routing/Link.tsx @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +import { useTranslation } from "react-i18next"; + import styles from "./Link.module.css"; import { Route } from "./routes"; import { useNavigationLink } from "./useNavigationLink"; @@ -24,6 +26,7 @@ const Link: React.FC< } & React.HTMLProps > = ({ route, children, kind, className, ...props }) => { const { onClick, href, pending } = useNavigationLink(route); + const { t } = useTranslation(); const classNames = [ kind === "button" ? styles.linkButton : "", @@ -32,7 +35,7 @@ const Link: React.FC< return ( - {pending ? "Loading..." : children} + {pending ? t("common.loading") : children} ); }; diff --git a/templates/app.html b/templates/app.html index 2d8a54ba4..694e9a865 100644 --- a/templates/app.html +++ b/templates/app.html @@ -18,7 +18,7 @@ {% set _ = translator(lang) %} - +