diff --git a/packages/client/src/actions/account.ts b/packages/client/src/actions/account.ts index a191e076a..ec5f1f199 100644 --- a/packages/client/src/actions/account.ts +++ b/packages/client/src/actions/account.ts @@ -317,7 +317,7 @@ export function unmuteAccount( * ```ts * const result = await reportAccount(sessionClient, { * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), - * reason: "REPETITIVE_SPAM", + * reason: AccountReportReason.RepetitiveSpam, * }); * ``` * diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index 1549215a5..fbd80f252 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -15,3 +15,12 @@ export enum PageSize { Ten = 'TEN', Fifty = 'FIFTY', } + +/** + * Enum for the different reasons to report an account. + */ +export enum AccountReportReason { + Impersonation = 'IMPERSONATION', + RepetitiveSpam = 'REPETITIVE_SPAM', + Other = 'OTHER', +} diff --git a/packages/graphql/src/graphql.ts b/packages/graphql/src/graphql.ts index 6c237b296..f6fbd2c87 100644 --- a/packages/graphql/src/graphql.ts +++ b/packages/graphql/src/graphql.ts @@ -23,7 +23,7 @@ import { never, } from '@lens-protocol/types'; import { type DocumentDecoration, type FragmentOf, initGraphQLTada } from 'gql.tada'; -import type { PageSize } from './enums'; +import type { AccountReportReason, PageSize } from './enums'; import type { introspection } from './graphql-env'; export const graphql = initGraphQLTada<{ @@ -31,6 +31,7 @@ export const graphql = initGraphQLTada<{ introspection: introspection; scalars: { AccessToken: AccessToken; + AccountReportReason: AccountReportReason; BigDecimal: BigDecimal; BigInt: BigIntString; BlockchainData: BlockchainData;