diff --git a/packages/client/src/actions/account.ts b/packages/client/src/actions/account.ts index 6bc42a127..ec5f1f199 100644 --- a/packages/client/src/actions/account.ts +++ b/packages/client/src/actions/account.ts @@ -11,14 +11,21 @@ import type { AccountStatsRequest, AccountsAvailableRequest, AccountsBlockedRequest, + BlockRequest, + BlockResult, CreateAccountWithUsernameRequest, CreateAccountWithUsernameResult, EnableSignlessResult, MuteRequest, + RecommendAccountRequest, RemoveSignlessResult, + ReportAccountRequest, SearchAccountsRequest, SetAccountMetadataRequest, SetAccountMetadataResult, + UnblockRequest, + UnblockResult, + UndoRecommendAccountRequest, UnmuteRequest, } from '@lens-protocol/graphql'; import { @@ -28,12 +35,17 @@ import { AccountStatsQuery, AccountsAvailableQuery, AccountsBlockedQuery, + BlockMutation, CreateAccountWithUsernameMutation, EnableSignlessMutation, MuteAccountMutation, + RecommendAccountMutation, RemoveSignlessMutation, + ReportAccountMutation, SearchAccountsQuery, SetAccountMetadataMutation, + UnblockMutation, + UndoRecommendAccountMutation, UnmuteAccountMutation, } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; @@ -264,7 +276,7 @@ export function removeSignless( * * ```ts * const result = await muteAccount(sessionClient, { - * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"); + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), * }); * ``` * @@ -284,7 +296,7 @@ export function muteAccount( * * ```ts * const result = await unmuteAccount(sessionClient, { - * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"); + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), * }); * ``` * @@ -298,3 +310,102 @@ export function unmuteAccount( ): ResultAsync { return client.mutation(UnmuteAccountMutation, { request }); } + +/** + * Report an account. + * + * ```ts + * const result = await reportAccount(sessionClient, { + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), + * reason: AccountReportReason.RepetitiveSpam, + * }); + * ``` + * + * @param client - The session client for the authenticated Account. + * @param request - The mutation request. + * @returns void. + */ +export function reportAccount( + client: SessionClient, + request: ReportAccountRequest, +): ResultAsync { + return client.mutation(ReportAccountMutation, { request }); +} + +/** + * Block an account. + * + * ```ts + * const result = await blockAccount(sessionClient, { + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), + * }); + * + * @param client - The session client for the authenticated Account. + * @param request - The mutation request. + * @returns Tiered transaction result. + */ +export function blockAccount( + client: SessionClient, + request: BlockRequest, +): ResultAsync { + return client.mutation(BlockMutation, { request }); +} + +/** + * Unblock an account. + * + * ```ts + * const result = await unblockAccount(sessionClient, { + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), + * }); + * + * @param client - The session client for the authenticated Account. + * @param request - The mutation request. + * @returns Tiered transaction result. + */ +export function unblockAccount( + client: SessionClient, + request: UnblockRequest, +): ResultAsync { + return client.mutation(UnblockMutation, { request }); +} + +/** + * Recommend an account. + * + * ```ts + * const result = await recommendAccount(sessionClient, { + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), + * }); + * ``` + * + * @param client - The session client for the authenticated Account. + * @param request - The mutation request. + * @returns void. + */ +export function recommendAccount( + client: SessionClient, + request: RecommendAccountRequest, +): ResultAsync { + return client.mutation(RecommendAccountMutation, { request }); +} + +/** + * Undo recommendation of an account. + * + * ```ts + * const result = await undoRecommendAccount(sessionClient, { + * account: evmAddress("0xe5439696f4057aF073c0FB2dc6e5e755392922e1"), + * }); + * ``` + * + * @param client - The session client for the authenticated Account. + * @param request - The mutation request. + * @returns void. + */ +export function undoRecommendAccount( + client: SessionClient, + request: UndoRecommendAccountRequest, +): ResultAsync { + return client.mutation(UndoRecommendAccountMutation, { request }); +} diff --git a/packages/client/src/actions/authentication.ts b/packages/client/src/actions/authentication.ts index 0d146dd43..ec4d09e71 100644 --- a/packages/client/src/actions/authentication.ts +++ b/packages/client/src/actions/authentication.ts @@ -5,6 +5,8 @@ import type { RefreshResult, RevokeAuthenticationRequest, RolloverRefreshRequest, + SwitchAccountRequest, + SwitchAccountResult, } from '@lens-protocol/graphql'; import { AuthenticatedSessionsQuery, @@ -12,6 +14,7 @@ import { LegacyRolloverRefreshMutation, RefreshMutation, RevokeAuthenticationMutation, + SwitchAccountMutation, } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; @@ -119,3 +122,23 @@ export function legacyRolloverRefresh( ): ResultAsync { return client.mutation(LegacyRolloverRefreshMutation, { request }); } + +/** + * Switch to account managed. + * + * ```ts + * const result = await switchAccount(sessionClient{ + * account: evmAddress('0x90c8c68d0Abfb40D4fCD72316A65e42161520BC3'), + * }); + * ``` + * + * @param client - The session client for the authenticated Account. + * @param request - The query request. + * @returns The authenticated tokens for the switched account. + */ +export function switchAccount( + client: SessionClient, + request: SwitchAccountRequest, +): ResultAsync { + return client.query(SwitchAccountMutation, { request }); +} diff --git a/packages/graphql/schema.graphql b/packages/graphql/schema.graphql index cbb52b231..4a745dfde 100644 --- a/packages/graphql/schema.graphql +++ b/packages/graphql/schema.graphql @@ -1898,6 +1898,35 @@ input FeedRulesInput { unknownFeedRule: UnknownFeedRuleInput } +input FeedsFilterRequest { + """The optional filter to get feeds managed by address""" + managedBy: ManagedBy + + """ + The optional filter to narrow feeds by search query. + Uses fuzzy search on feed name + """ + searchQuery: String +} + +enum FeedsOrderBy { + NEWEST + ALPHABETICAL +} + +input FeedsRequest { + filter: FeedsFilterRequest + + """The order by.""" + orderBy: FeedsOrderBy! = NEWEST + + """The page size.""" + pageSize: PageSize! = FIFTY + + """The cursor.""" + cursor: Cursor +} + """ The transaction has been mined and indexed correctly. @@ -2118,6 +2147,33 @@ input GraphRulesInput { unknownGraphRule: UnknownGraphRuleInput } +input GraphsFilterRequest { + """The optional filter to get graphs managed by address""" + managedBy: ManagedBy + + """ + The optional filter to narrow graphs by search query. + Uses fuzzy search on feed name + """ + searchQuery: String +} + +enum GraphsOrderBy { + NEWEST + ALPHABETICAL +} + +input GraphsRequest { + filter: GraphsFilterRequest + + """The order by.""" + orderBy: GraphsOrderBy! = NEWEST + pageSize: PageSize! = FIFTY + + """The cursor.""" + cursor: Cursor +} + type Group { address: EvmAddress! timestamp: DateTime! @@ -2204,25 +2260,30 @@ type GroupStatsResponse { totalMembers: Int! } -input GroupsFilter { - """The name of the group""" - name: String +input GroupsFilterRequest { + """The optional filter to get groups where account is a member""" + member: EvmAddress + + """The optional filter to get groups managed by address""" + managedBy: ManagedBy + + """ + The optional filter to narrow groups by search query. + Uses fuzzy search on feed name + """ + searchQuery: String } enum GroupsOrderBy { - LATEST_JOINED - NAME + NEWEST + ALPHABETICAL } input GroupsRequest { - """Get the groups this account is a member of""" - member: EvmAddress! - - """The filter""" - filter: GroupsFilter + filter: GroupsFilterRequest """The order by.""" - orderBy: GroupsOrderBy! = LATEST_JOINED + orderBy: GroupsOrderBy! = NEWEST """The page size.""" pageSize: PageSize! = FIFTY @@ -2524,46 +2585,12 @@ input ManagedAppsRequest { cursor: Cursor } -input ManagedFeedsRequest { - """The address for a user to see what feeds they manage.""" - address: EvmAddress! - - """Whether to include the feeds which is owned by the address.""" - includeOwners: Boolean! = true - - """The page size.""" - pageSize: PageSize! = FIFTY - - """The cursor.""" - cursor: Cursor -} - -input ManagedGraphsRequest { - """The address for a user to see what graphs they manage.""" - address: EvmAddress! - - """Whether to include the graphs which is owned by the address.""" - includeOwners: Boolean! = true - - """The page size.""" - pageSize: PageSize! = FIFTY - - """The cursor.""" - cursor: Cursor -} - -input ManagedGroupsRequest { - """The address for a user to see what groups they manage.""" +input ManagedBy { + """The address for a user to see what apps they manage.""" address: EvmAddress! - """Whether to include the groups which is owned by the address.""" + """Whether to include the apps which is owned by the address.""" includeOwners: Boolean! = true - - """The page size.""" - pageSize: PageSize! = FIFTY - - """The cursor.""" - cursor: Cursor } input ManagedNamespacesRequest { @@ -4264,8 +4291,8 @@ type Query { currentSession: AuthenticatedSession! feed(request: FeedRequest!): Feed - """Get the feeds managed by the given address.""" - managedFeeds(request: ManagedFeedsRequest!): PaginatedFeedsResult! + """Get the feeds.""" + feeds(request: FeedsRequest!): PaginatedFeedsResult! post(request: PostRequest!): AnyPost posts(request: PostsRequest!): PaginatedAnyPostsResult! postReferences(request: PostReferencesRequest!): PaginatedAnyPostsResult! @@ -4288,22 +4315,16 @@ type Query { followStatus(request: FollowStatusRequest!): [FollowStatusResult!]! graph(request: GraphRequest!): Graph - """Get the graphs managed by the given address.""" - managedGraphs(request: ManagedGraphsRequest!): PaginatedGraphsResult! + """Get the graphs.""" + graphs(request: GraphsRequest!): PaginatedGraphsResult! group(request: GroupRequest!): Group - """Get the groups this account is a member of""" + """Get the groups.""" groups(request: GroupsRequest!): PaginatedGroupsResult! - """Search for groups""" - searchGroups(request: SearchGroupsRequest!): PaginatedGroupsResult! - """Get the members of the group""" groupMembers(request: GroupMembersRequest!): PaginatedAccountsResult! - """Get the groups managed by the given address.""" - managedGroups(request: ManagedGroupsRequest!): PaginatedGroupsResult! - """Get the groups managed by the given address.""" groupStats(request: GroupStatsRequest!): GroupStatsResponse! @@ -4506,17 +4527,6 @@ input RuleInput { rules: [EvmAddress!]! } -input SearchGroupsRequest { - """The search query""" - query: String! - - """The page size.""" - pageSize: PageSize! = FIFTY - - """The cursor.""" - cursor: Cursor -} - input SearchPostsFilter { """The post types to filter by.""" postTypes: [PostType!] diff --git a/packages/graphql/src/accounts/account.ts b/packages/graphql/src/accounts/account.ts index dbca0e189..ad9a74538 100644 --- a/packages/graphql/src/accounts/account.ts +++ b/packages/graphql/src/accounts/account.ts @@ -244,3 +244,117 @@ export const UnmuteAccountMutation = graphql( }`, ); export type UnmuteRequest = RequestOf; + +export const ReportAccountMutation = graphql( + `mutation ReportAccount($request: ReportAccountRequest!) { + value: reportAccount(request: $request) + }`, +); +export type ReportAccountRequest = RequestOf; + +const BlockError = graphql( + `fragment BlockError on BlockError { + __typename + error + }`, +); +export type BlockError = FragmentOf; + +const BlockResponse = graphql( + `fragment BlockResponse on BlockResponse { + __typename + hash + }`, +); +export type BlockResponse = FragmentOf; + +const BlockResult = graphql( + `fragment BlockResult on BlockResult { + ...on BlockResponse { + ...BlockResponse + } + + ...on SponsoredTransactionRequest { + ...SponsoredTransactionRequest + } + + ...on SelfFundedTransactionRequest { + ...SelfFundedTransactionRequest + } + + ...on BlockError { + ...BlockError + } + }`, + [BlockResponse, SponsoredTransactionRequest, SelfFundedTransactionRequest, BlockError], +); +export type BlockResult = FragmentOf; + +export const BlockMutation = graphql( + `mutation Block($request: BlockRequest!) { + value: block(request: $request){ + ...BlockResult + } + }`, + [BlockResult], +); +export type BlockRequest = RequestOf; + +const UnblockResponse = graphql( + `fragment UnblockResponse on UnblockResponse { + __typename + hash + }`, +); +export type UnblockResponse = FragmentOf; + +const UnblockError = graphql( + `fragment UnblockError on UnblockError { + __typename + error + }`, +); +export type UnblockError = FragmentOf; + +const UnblockResult = graphql( + `fragment UnblockResult on UnblockResult { + ...on UnblockResponse { + ...UnblockResponse + } + ...on SponsoredTransactionRequest { + ...SponsoredTransactionRequest + } + ...on SelfFundedTransactionRequest { + ...SelfFundedTransactionRequest + } + ...on UnblockError { + ...UnblockError + } + }`, + [UnblockResponse, SponsoredTransactionRequest, SelfFundedTransactionRequest, UnblockError], +); +export type UnblockResult = FragmentOf; + +export const UnblockMutation = graphql( + `mutation Unblock($request: UnblockRequest!) { + value: unblock(request: $request){ + ...UnblockResult + } + }`, + [UnblockResult], +); +export type UnblockRequest = RequestOf; + +export const RecommendAccountMutation = graphql( + `mutation RecommendAccount($request: RecommendAccount!) { + value: recommendAccount(request: $request) + }`, +); +export type RecommendAccountRequest = RequestOf; + +export const UndoRecommendAccountMutation = graphql( + `mutation UndoRecommendedAccount($request: UndoRecommendedAccount!) { + value: undoRecommendedAccount(request: $request) + }`, +); +export type UndoRecommendAccountRequest = RequestOf; diff --git a/packages/graphql/src/authentication.ts b/packages/graphql/src/authentication.ts index a27e1dde3..32b588fe1 100644 --- a/packages/graphql/src/authentication.ts +++ b/packages/graphql/src/authentication.ts @@ -77,7 +77,6 @@ const AuthenticationResult = graphql( }`, [AuthenticationTokens, WrongSignerError, ExpiredChallengeError, ForbiddenError], ); - export type AuthenticationResult = FragmentOf; export const AuthenticateMutation = graphql( @@ -88,7 +87,6 @@ export const AuthenticateMutation = graphql( }`, [AuthenticationResult], ); - export type SignedAuthChallenge = RequestOf; const AuthenticatedSession = graphql( @@ -104,7 +102,6 @@ const AuthenticatedSession = graphql( updatedAt }`, ); - export type AuthenticatedSession = FragmentOf; export const CurrentSessionQuery = graphql( @@ -129,7 +126,6 @@ export const AuthenticatedSessionsQuery = graphql( }`, [AuthenticatedSession, PaginatedResultInfo], ); - export type AuthenticatedSessionsRequest = RequestOf; export const RevokeAuthenticationMutation = graphql( @@ -137,7 +133,6 @@ export const RevokeAuthenticationMutation = graphql( value: revokeAuthentication(request: $request) }`, ); - export type RevokeAuthenticationRequest = RequestOf; export const RefreshResult = graphql( @@ -152,7 +147,6 @@ export const RefreshResult = graphql( }`, [AuthenticationTokens, ForbiddenError], ); - export type RefreshResult = FragmentOf; export const RefreshMutation = graphql( @@ -163,7 +157,6 @@ export const RefreshMutation = graphql( }`, [RefreshResult], ); - export type RefreshRequest = RequestOf; export const LegacyRolloverRefreshMutation = graphql( @@ -174,5 +167,28 @@ export const LegacyRolloverRefreshMutation = graphql( }`, [RefreshResult], ); - export type RolloverRefreshRequest = RequestOf; + +const SwitchAccountResult = graphql( + `fragment SwitchAccountResult on SwitchAccountResult { + ...on AuthenticationTokens { + ...AuthenticationTokens + } + + ...on ForbiddenError { + ...ForbiddenError + } + }`, + [AuthenticationTokens, ForbiddenError], +); +export type SwitchAccountResult = FragmentOf; + +export const SwitchAccountMutation = graphql( + `mutation SwitchAccount($request: SwitchAccountRequest!) { + value: switchAccount(request: $request) { + ...SwitchAccountResult + } + }`, + [SwitchAccountResult], +); +export type SwitchAccountRequest = RequestOf; 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-env.d.ts b/packages/graphql/src/graphql-env.d.ts index 2722b39a0..9343f16ed 100644 --- a/packages/graphql/src/graphql-env.d.ts +++ b/packages/graphql/src/graphql-env.d.ts @@ -171,6 +171,9 @@ export type introspection_types = { 'FeedRule': { kind: 'UNION'; name: 'FeedRule'; fields: {}; possibleTypes: 'GroupGatedFeedRule' | 'RestrictedSignersFeedRule' | 'SimplePaymentFeedRule' | 'TokenGatedFeedRule' | 'UnknownFeedRule' | 'UserBlockingRule'; }; 'FeedRulesConfig': { kind: 'OBJECT'; name: 'FeedRulesConfig'; fields: { 'anyOf': { name: 'anyOf'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'FeedRule'; ofType: null; }; }; }; } }; 'required': { name: 'required'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'FeedRule'; ofType: null; }; }; }; } }; }; }; 'FeedRulesInput': { kind: 'INPUT_OBJECT'; name: 'FeedRulesInput'; isOneOf: false; inputFields: [{ name: 'unknownFeedRule'; type: { kind: 'INPUT_OBJECT'; name: 'UnknownFeedRuleInput'; ofType: null; }; defaultValue: null }]; }; + 'FeedsFilterRequest': { kind: 'INPUT_OBJECT'; name: 'FeedsFilterRequest'; isOneOf: false; inputFields: [{ name: 'managedBy'; type: { kind: 'INPUT_OBJECT'; name: 'ManagedBy'; ofType: null; }; defaultValue: null }, { name: 'searchQuery'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; }; + 'FeedsOrderBy': { name: 'FeedsOrderBy'; enumValues: 'NEWEST' | 'ALPHABETICAL'; }; + 'FeedsRequest': { kind: 'INPUT_OBJECT'; name: 'FeedsRequest'; isOneOf: false; inputFields: [{ name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'FeedsFilterRequest'; ofType: null; }; defaultValue: null }, { name: 'orderBy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'FeedsOrderBy'; ofType: null; }; }; defaultValue: "NEWEST" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'FinishedTransactionStatus': { kind: 'OBJECT'; name: 'FinishedTransactionStatus'; fields: { 'blockTimestamp': { name: 'blockTimestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'Float': unknown; 'FollowCondition': { kind: 'OBJECT'; name: 'FollowCondition'; fields: { 'follow': { name: 'follow'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'LegacyProfileId'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; @@ -201,6 +204,9 @@ export type introspection_types = { 'GraphRule': { kind: 'UNION'; name: 'GraphRule'; fields: {}; possibleTypes: 'RestrictedSignerGraphRule' | 'TokenGatedGraphRule' | 'UnknownGraphRule' | 'UserBlockingRule'; }; 'GraphRulesConfig': { kind: 'OBJECT'; name: 'GraphRulesConfig'; fields: { 'anyOf': { name: 'anyOf'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'GraphRule'; ofType: null; }; }; }; } }; 'required': { name: 'required'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'GraphRule'; ofType: null; }; }; }; } }; }; }; 'GraphRulesInput': { kind: 'INPUT_OBJECT'; name: 'GraphRulesInput'; isOneOf: false; inputFields: [{ name: 'unknownGraphRule'; type: { kind: 'INPUT_OBJECT'; name: 'UnknownGraphRuleInput'; ofType: null; }; defaultValue: null }]; }; + 'GraphsFilterRequest': { kind: 'INPUT_OBJECT'; name: 'GraphsFilterRequest'; isOneOf: false; inputFields: [{ name: 'managedBy'; type: { kind: 'INPUT_OBJECT'; name: 'ManagedBy'; ofType: null; }; defaultValue: null }, { name: 'searchQuery'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; }; + 'GraphsOrderBy': { name: 'GraphsOrderBy'; enumValues: 'NEWEST' | 'ALPHABETICAL'; }; + 'GraphsRequest': { kind: 'INPUT_OBJECT'; name: 'GraphsRequest'; isOneOf: false; inputFields: [{ name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'GraphsFilterRequest'; ofType: null; }; defaultValue: null }, { name: 'orderBy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'GraphsOrderBy'; ofType: null; }; }; defaultValue: "NEWEST" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'Group': { kind: 'OBJECT'; name: 'Group'; fields: { 'address': { name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'isMember': { name: 'isMember'; type: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; } }; 'metadata': { name: 'metadata'; type: { kind: 'OBJECT'; name: 'GroupMetadata'; ofType: null; } }; 'owner': { name: 'owner'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'rules': { name: 'rules'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'GroupRulesConfig'; ofType: null; }; } }; 'timestamp': { name: 'timestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'GroupGatedFeedRule': { kind: 'OBJECT'; name: 'GroupGatedFeedRule'; fields: { 'group': { name: 'group'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Group'; ofType: null; }; } }; 'rule': { name: 'rule'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; }; }; 'GroupMembersOrderBy': { name: 'GroupMembersOrderBy'; enumValues: 'LAST_JOINED' | 'FIRST_JOINED' | 'ACCOUNT_SCORE'; }; @@ -211,9 +217,9 @@ export type introspection_types = { 'GroupRulesConfig': { kind: 'OBJECT'; name: 'GroupRulesConfig'; fields: { 'anyOf': { name: 'anyOf'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'GroupRule'; ofType: null; }; }; }; } }; 'required': { name: 'required'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'GroupRule'; ofType: null; }; }; }; } }; }; }; 'GroupStatsRequest': { kind: 'INPUT_OBJECT'; name: 'GroupStatsRequest'; isOneOf: false; inputFields: [{ name: 'group'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }]; }; 'GroupStatsResponse': { kind: 'OBJECT'; name: 'GroupStatsResponse'; fields: { 'totalMembers': { name: 'totalMembers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; - 'GroupsFilter': { kind: 'INPUT_OBJECT'; name: 'GroupsFilter'; isOneOf: false; inputFields: [{ name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; }; - 'GroupsOrderBy': { name: 'GroupsOrderBy'; enumValues: 'LATEST_JOINED' | 'NAME'; }; - 'GroupsRequest': { kind: 'INPUT_OBJECT'; name: 'GroupsRequest'; isOneOf: false; inputFields: [{ name: 'member'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'GroupsFilter'; ofType: null; }; defaultValue: null }, { name: 'orderBy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'GroupsOrderBy'; ofType: null; }; }; defaultValue: "LATEST_JOINED" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; + 'GroupsFilterRequest': { kind: 'INPUT_OBJECT'; name: 'GroupsFilterRequest'; isOneOf: false; inputFields: [{ name: 'member'; type: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; defaultValue: null }, { name: 'managedBy'; type: { kind: 'INPUT_OBJECT'; name: 'ManagedBy'; ofType: null; }; defaultValue: null }, { name: 'searchQuery'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; }; + 'GroupsOrderBy': { name: 'GroupsOrderBy'; enumValues: 'NEWEST' | 'ALPHABETICAL'; }; + 'GroupsRequest': { kind: 'INPUT_OBJECT'; name: 'GroupsRequest'; isOneOf: false; inputFields: [{ name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'GroupsFilterRequest'; ofType: null; }; defaultValue: null }, { name: 'orderBy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'GroupsOrderBy'; ofType: null; }; }; defaultValue: "NEWEST" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'HasReactedRequest': { kind: 'INPUT_OBJECT'; name: 'HasReactedRequest'; isOneOf: false; inputFields: [{ name: 'type'; type: { kind: 'ENUM'; name: 'PostReactionType'; ofType: null; }; defaultValue: null }]; }; 'HideManagedAccountRequest': { kind: 'INPUT_OBJECT'; name: 'HideManagedAccountRequest'; isOneOf: false; inputFields: [{ name: 'account'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }]; }; 'HideReplyRequest': { kind: 'INPUT_OBJECT'; name: 'HideReplyRequest'; isOneOf: false; inputFields: [{ name: 'post'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'PostId'; ofType: null; }; }; defaultValue: null }]; }; @@ -245,9 +251,7 @@ export type introspection_types = { 'MainContentFocus': { name: 'MainContentFocus'; enumValues: 'ARTICLE' | 'AUDIO' | 'CHECKING_IN' | 'EMBED' | 'EVENT' | 'IMAGE' | 'LINK' | 'LIVESTREAM' | 'MINT' | 'SHORT_VIDEO' | 'SPACE' | 'STORY' | 'TEXT_ONLY' | 'THREE_D' | 'TRANSACTION' | 'VIDEO'; }; 'ManagedAccountsVisibility': { name: 'ManagedAccountsVisibility'; enumValues: 'NONE_HIDDEN' | 'HIDDEN_ONLY' | 'ALL'; }; 'ManagedAppsRequest': { kind: 'INPUT_OBJECT'; name: 'ManagedAppsRequest'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'includeOwners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; }; defaultValue: "true" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; - 'ManagedFeedsRequest': { kind: 'INPUT_OBJECT'; name: 'ManagedFeedsRequest'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'includeOwners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; }; defaultValue: "true" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; - 'ManagedGraphsRequest': { kind: 'INPUT_OBJECT'; name: 'ManagedGraphsRequest'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'includeOwners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; }; defaultValue: "true" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; - 'ManagedGroupsRequest': { kind: 'INPUT_OBJECT'; name: 'ManagedGroupsRequest'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'includeOwners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; }; defaultValue: "true" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; + 'ManagedBy': { kind: 'INPUT_OBJECT'; name: 'ManagedBy'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'includeOwners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; }; defaultValue: "true" }]; }; 'ManagedNamespacesRequest': { kind: 'INPUT_OBJECT'; name: 'ManagedNamespacesRequest'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'includeOwners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; }; defaultValue: "true" }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'MeResult': { kind: 'OBJECT'; name: 'MeResult'; fields: { 'appLoggedIn': { name: 'appLoggedIn'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'isSignless': { name: 'isSignless'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'isSponsored': { name: 'isSponsored'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'limit': { name: 'limit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SponsorshipAllowance'; ofType: null; }; } }; 'loggedInAs': { name: 'loggedInAs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AccountAvailable'; ofType: null; }; } }; }; }; 'MediaAudio': { kind: 'OBJECT'; name: 'MediaAudio'; fields: { 'artist': { name: 'artist'; type: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; } }; 'attributes': { name: 'attributes'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'MetadataAttribute'; ofType: null; }; }; }; } }; 'cover': { name: 'cover'; type: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; } }; 'credits': { name: 'credits'; type: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; } }; 'duration': { name: 'duration'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; } }; 'genre': { name: 'genre'; type: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; } }; 'item': { name: 'item'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; }; } }; 'kind': { name: 'kind'; type: { kind: 'ENUM'; name: 'MediaAudioKind'; ofType: null; } }; 'license': { name: 'license'; type: { kind: 'ENUM'; name: 'MetadataLicenseType'; ofType: null; } }; 'lyrics': { name: 'lyrics'; type: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; } }; 'recordLabel': { name: 'recordLabel'; type: { kind: 'SCALAR'; name: 'Encryptable'; ofType: null; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'MediaAudioType'; ofType: null; }; } }; }; }; @@ -355,7 +359,7 @@ export type introspection_types = { 'PostsFilterRequest': { kind: 'INPUT_OBJECT'; name: 'PostsFilterRequest'; isOneOf: false; inputFields: [{ name: 'authors'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; }; defaultValue: null }, { name: 'postTypes'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PostType'; ofType: null; }; }; }; defaultValue: null }, { name: 'metadata'; type: { kind: 'INPUT_OBJECT'; name: 'PostMetadataFilter'; ofType: null; }; defaultValue: null }, { name: 'apps'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; }; defaultValue: null }]; }; 'PostsRequest': { kind: 'INPUT_OBJECT'; name: 'PostsRequest'; isOneOf: false; inputFields: [{ name: 'forFeeds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; }; }; defaultValue: "[\"0x83C8D9e96Da13aaD12E068F48C639C7671D2a5C7\"]" }, { name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'PostsFilterRequest'; ofType: null; }; defaultValue: null }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'ProfileOwnershipCondition': { kind: 'OBJECT'; name: 'ProfileOwnershipCondition'; fields: { 'profileId': { name: 'profileId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'LegacyProfileId'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; - 'Query': { kind: 'OBJECT'; name: 'Query'; fields: { '_service': { name: '_service'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: '_Service'; ofType: null; }; } }; 'account': { name: 'account'; type: { kind: 'OBJECT'; name: 'Account'; ofType: null; } }; 'accountFeedsStats': { name: 'accountFeedsStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AccountFeedsStats'; ofType: null; }; } }; 'accountGraphsStats': { name: 'accountGraphsStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AccountGraphsFollowStats'; ofType: null; }; } }; 'accountManagers': { name: 'accountManagers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountManagersResult'; ofType: null; }; } }; 'accountStats': { name: 'accountStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AccountStats'; ofType: null; }; } }; 'accounts': { name: 'accounts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Account'; ofType: null; }; }; }; } }; 'accountsAvailable': { name: 'accountsAvailable'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsAvailableResult'; ofType: null; }; } }; 'accountsBlocked': { name: 'accountsBlocked'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsBlockedResult'; ofType: null; }; } }; 'adminsFor': { name: 'adminsFor'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAdminsResult'; ofType: null; }; } }; 'app': { name: 'app'; type: { kind: 'OBJECT'; name: 'App'; ofType: null; } }; 'appFeeds': { name: 'appFeeds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppFeedsResult'; ofType: null; }; } }; 'appGroups': { name: 'appGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGroupsResult'; ofType: null; }; } }; 'appServerApiKey': { name: 'appServerApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ServerAPIKey'; ofType: null; }; } }; 'appSigners': { name: 'appSigners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppSignersResult'; ofType: null; }; } }; 'appUsers': { name: 'appUsers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppUsersResult'; ofType: null; }; } }; 'apps': { name: 'apps'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppsResult'; ofType: null; }; } }; 'authenticatedSessions': { name: 'authenticatedSessions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedActiveAuthenticationsResult'; ofType: null; }; } }; 'currentSession': { name: 'currentSession'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AuthenticatedSession'; ofType: null; }; } }; 'debugMetadata': { name: 'debugMetadata'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DebugPostMetadataResult'; ofType: null; }; } }; 'debugTransactionStatusFailed': { name: 'debugTransactionStatusFailed'; type: { kind: 'OBJECT'; name: 'DebugTransactionStatusResult'; ofType: null; } }; 'feed': { name: 'feed'; type: { kind: 'OBJECT'; name: 'Feed'; ofType: null; } }; 'followStatus': { name: 'followStatus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FollowStatusResult'; ofType: null; }; }; }; } }; 'followers': { name: 'followers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFollowersResult'; ofType: null; }; } }; 'followersYouKnow': { name: 'followersYouKnow'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFollowersResult'; ofType: null; }; } }; 'following': { name: 'following'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFollowingResult'; ofType: null; }; } }; 'graph': { name: 'graph'; type: { kind: 'OBJECT'; name: 'Graph'; ofType: null; } }; 'group': { name: 'group'; type: { kind: 'OBJECT'; name: 'Group'; ofType: null; } }; 'groupMembers': { name: 'groupMembers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'groupStats': { name: 'groupStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'GroupStatsResponse'; ofType: null; }; } }; 'groups': { name: 'groups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGroupsResult'; ofType: null; }; } }; 'health': { name: 'health'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'lastLoggedInAccount': { name: 'lastLoggedInAccount'; type: { kind: 'OBJECT'; name: 'Account'; ofType: null; } }; 'managedApps': { name: 'managedApps'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppsResult'; ofType: null; }; } }; 'managedFeeds': { name: 'managedFeeds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFeedsResult'; ofType: null; }; } }; 'managedGraphs': { name: 'managedGraphs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGraphsResult'; ofType: null; }; } }; 'managedGroups': { name: 'managedGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGroupsResult'; ofType: null; }; } }; 'managedNamespaces': { name: 'managedNamespaces'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedUsernameNamespacesResult'; ofType: null; }; } }; 'me': { name: 'me'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'MeResult'; ofType: null; }; } }; 'mlAccountRecommendations': { name: 'mlAccountRecommendations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'mlPostsExplore': { name: 'mlPostsExplore'; type: { kind: 'OBJECT'; name: 'PaginatedPostsResult'; ofType: null; } }; 'mlPostsForYou': { name: 'mlPostsForYou'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostsForYouResult'; ofType: null; }; } }; 'notifications': { name: 'notifications'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedNotificationResult'; ofType: null; }; } }; 'post': { name: 'post'; type: { kind: 'UNION'; name: 'AnyPost'; ofType: null; } }; 'postActions': { name: 'postActions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedActions'; ofType: null; }; } }; 'postBookmarks': { name: 'postBookmarks'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'postEdits': { name: 'postEdits'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostEditsResult'; ofType: null; }; } }; 'postReactionStatus': { name: 'postReactionStatus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PostReactionStatus'; ofType: null; }; }; }; } }; 'postReactions': { name: 'postReactions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostReactionsResult'; ofType: null; }; } }; 'postReferences': { name: 'postReferences'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'postTags': { name: 'postTags'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostTagsResult'; ofType: null; }; } }; 'posts': { name: 'posts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'searchAccounts': { name: 'searchAccounts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'searchGroups': { name: 'searchGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGroupsResult'; ofType: null; }; } }; 'searchPosts': { name: 'searchPosts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'timeline': { name: 'timeline'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedTimelineResult'; ofType: null; }; } }; 'timelineHighlights': { name: 'timelineHighlights'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostsResult'; ofType: null; }; } }; 'transactionStatus': { name: 'transactionStatus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransactionStatusResult'; ofType: null; }; } }; 'username': { name: 'username'; type: { kind: 'OBJECT'; name: 'Username'; ofType: null; } }; 'usernameNamespace': { name: 'usernameNamespace'; type: { kind: 'OBJECT'; name: 'UsernameNamespace'; ofType: null; } }; 'usernames': { name: 'usernames'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedUsernamesResult'; ofType: null; }; } }; 'whoActedOnPost': { name: 'whoActedOnPost'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'whoReferencedPost': { name: 'whoReferencedPost'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; }; }; + 'Query': { kind: 'OBJECT'; name: 'Query'; fields: { '_service': { name: '_service'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: '_Service'; ofType: null; }; } }; 'account': { name: 'account'; type: { kind: 'OBJECT'; name: 'Account'; ofType: null; } }; 'accountFeedsStats': { name: 'accountFeedsStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AccountFeedsStats'; ofType: null; }; } }; 'accountGraphsStats': { name: 'accountGraphsStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AccountGraphsFollowStats'; ofType: null; }; } }; 'accountManagers': { name: 'accountManagers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountManagersResult'; ofType: null; }; } }; 'accountStats': { name: 'accountStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AccountStats'; ofType: null; }; } }; 'accounts': { name: 'accounts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Account'; ofType: null; }; }; }; } }; 'accountsAvailable': { name: 'accountsAvailable'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsAvailableResult'; ofType: null; }; } }; 'accountsBlocked': { name: 'accountsBlocked'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsBlockedResult'; ofType: null; }; } }; 'adminsFor': { name: 'adminsFor'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAdminsResult'; ofType: null; }; } }; 'app': { name: 'app'; type: { kind: 'OBJECT'; name: 'App'; ofType: null; } }; 'appFeeds': { name: 'appFeeds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppFeedsResult'; ofType: null; }; } }; 'appGroups': { name: 'appGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGroupsResult'; ofType: null; }; } }; 'appServerApiKey': { name: 'appServerApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ServerAPIKey'; ofType: null; }; } }; 'appSigners': { name: 'appSigners'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppSignersResult'; ofType: null; }; } }; 'appUsers': { name: 'appUsers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppUsersResult'; ofType: null; }; } }; 'apps': { name: 'apps'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppsResult'; ofType: null; }; } }; 'authenticatedSessions': { name: 'authenticatedSessions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedActiveAuthenticationsResult'; ofType: null; }; } }; 'currentSession': { name: 'currentSession'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AuthenticatedSession'; ofType: null; }; } }; 'debugMetadata': { name: 'debugMetadata'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DebugPostMetadataResult'; ofType: null; }; } }; 'debugTransactionStatusFailed': { name: 'debugTransactionStatusFailed'; type: { kind: 'OBJECT'; name: 'DebugTransactionStatusResult'; ofType: null; } }; 'feed': { name: 'feed'; type: { kind: 'OBJECT'; name: 'Feed'; ofType: null; } }; 'feeds': { name: 'feeds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFeedsResult'; ofType: null; }; } }; 'followStatus': { name: 'followStatus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FollowStatusResult'; ofType: null; }; }; }; } }; 'followers': { name: 'followers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFollowersResult'; ofType: null; }; } }; 'followersYouKnow': { name: 'followersYouKnow'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFollowersResult'; ofType: null; }; } }; 'following': { name: 'following'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedFollowingResult'; ofType: null; }; } }; 'graph': { name: 'graph'; type: { kind: 'OBJECT'; name: 'Graph'; ofType: null; } }; 'graphs': { name: 'graphs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGraphsResult'; ofType: null; }; } }; 'group': { name: 'group'; type: { kind: 'OBJECT'; name: 'Group'; ofType: null; } }; 'groupMembers': { name: 'groupMembers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'groupStats': { name: 'groupStats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'GroupStatsResponse'; ofType: null; }; } }; 'groups': { name: 'groups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedGroupsResult'; ofType: null; }; } }; 'health': { name: 'health'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'lastLoggedInAccount': { name: 'lastLoggedInAccount'; type: { kind: 'OBJECT'; name: 'Account'; ofType: null; } }; 'managedApps': { name: 'managedApps'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAppsResult'; ofType: null; }; } }; 'managedNamespaces': { name: 'managedNamespaces'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedUsernameNamespacesResult'; ofType: null; }; } }; 'me': { name: 'me'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'MeResult'; ofType: null; }; } }; 'mlAccountRecommendations': { name: 'mlAccountRecommendations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'mlPostsExplore': { name: 'mlPostsExplore'; type: { kind: 'OBJECT'; name: 'PaginatedPostsResult'; ofType: null; } }; 'mlPostsForYou': { name: 'mlPostsForYou'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostsForYouResult'; ofType: null; }; } }; 'notifications': { name: 'notifications'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedNotificationResult'; ofType: null; }; } }; 'post': { name: 'post'; type: { kind: 'UNION'; name: 'AnyPost'; ofType: null; } }; 'postActions': { name: 'postActions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedActions'; ofType: null; }; } }; 'postBookmarks': { name: 'postBookmarks'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'postEdits': { name: 'postEdits'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostEditsResult'; ofType: null; }; } }; 'postReactionStatus': { name: 'postReactionStatus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PostReactionStatus'; ofType: null; }; }; }; } }; 'postReactions': { name: 'postReactions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostReactionsResult'; ofType: null; }; } }; 'postReferences': { name: 'postReferences'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'postTags': { name: 'postTags'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostTagsResult'; ofType: null; }; } }; 'posts': { name: 'posts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'searchAccounts': { name: 'searchAccounts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'searchPosts': { name: 'searchPosts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAnyPostsResult'; ofType: null; }; } }; 'timeline': { name: 'timeline'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedTimelineResult'; ofType: null; }; } }; 'timelineHighlights': { name: 'timelineHighlights'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedPostsResult'; ofType: null; }; } }; 'transactionStatus': { name: 'transactionStatus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransactionStatusResult'; ofType: null; }; } }; 'username': { name: 'username'; type: { kind: 'OBJECT'; name: 'Username'; ofType: null; } }; 'usernameNamespace': { name: 'usernameNamespace'; type: { kind: 'OBJECT'; name: 'UsernameNamespace'; ofType: null; } }; 'usernames': { name: 'usernames'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedUsernamesResult'; ofType: null; }; } }; 'whoActedOnPost': { name: 'whoActedOnPost'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; 'whoReferencedPost': { name: 'whoReferencedPost'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedAccountsResult'; ofType: null; }; } }; }; }; 'QuoteNotification': { kind: 'OBJECT'; name: 'QuoteNotification'; fields: { 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'GeneratedNotificationId'; ofType: null; }; } }; 'quote': { name: 'quote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Post'; ofType: null; }; } }; }; }; 'ReactionNotification': { kind: 'OBJECT'; name: 'ReactionNotification'; fields: { 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'GeneratedNotificationId'; ofType: null; }; } }; 'post': { name: 'post'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Post'; ofType: null; }; } }; 'reactions': { name: 'reactions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'NotificationAccountPostReaction'; ofType: null; }; }; }; } }; }; }; 'RecipientDataInput': { kind: 'INPUT_OBJECT'; name: 'RecipientDataInput'; isOneOf: false; inputFields: [{ name: 'recipient'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'split'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Float'; ofType: null; }; }; defaultValue: null }]; }; @@ -387,7 +391,6 @@ export type introspection_types = { 'RevokeAuthenticationRequest': { kind: 'INPUT_OBJECT'; name: 'RevokeAuthenticationRequest'; isOneOf: false; inputFields: [{ name: 'authenticationId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'UUID'; ofType: null; }; }; defaultValue: null }]; }; 'RolloverRefreshRequest': { kind: 'INPUT_OBJECT'; name: 'RolloverRefreshRequest'; isOneOf: false; inputFields: [{ name: 'app'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'refreshToken'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'LegacyRefreshToken'; ofType: null; }; }; defaultValue: null }]; }; 'RuleInput': { kind: 'INPUT_OBJECT'; name: 'RuleInput'; isOneOf: false; inputFields: [{ name: 'rules'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; }; }; defaultValue: null }]; }; - 'SearchGroupsRequest': { kind: 'INPUT_OBJECT'; name: 'SearchGroupsRequest'; isOneOf: false; inputFields: [{ name: 'query'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'SearchPostsFilter': { kind: 'INPUT_OBJECT'; name: 'SearchPostsFilter'; isOneOf: false; inputFields: [{ name: 'postTypes'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PostType'; ofType: null; }; }; }; defaultValue: null }, { name: 'metadata'; type: { kind: 'INPUT_OBJECT'; name: 'PostMetadataFilter'; ofType: null; }; defaultValue: null }]; }; 'SearchPostsRequest': { kind: 'INPUT_OBJECT'; name: 'SearchPostsRequest'; isOneOf: false; inputFields: [{ name: 'query'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'forFeeds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; }; }; defaultValue: "[\"0x83C8D9e96Da13aaD12E068F48C639C7671D2a5C7\"]" }, { name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'SearchPostsFilter'; ofType: null; }; defaultValue: null }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: "FIFTY" }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; }; 'SelfFundedFallbackReason': { name: 'SelfFundedFallbackReason'; enumValues: 'NOT_SPONSORED' | 'CANNOT_SPONSOR'; }; 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;