From 7eeea9ee4b0d6f8270d0c9f8396695950efd99d1 Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Tue, 7 Jan 2025 21:32:45 +0100 Subject: [PATCH 1/5] Add missing methods to set metadata in primitives --- packages/client/src/actions/feed.ts | 30 ++++++++++++++++++++++- packages/client/src/actions/graph.ts | 30 ++++++++++++++++++++++- packages/client/src/actions/group.ts | 24 ++++++++++++++++++ packages/client/src/actions/namespace.ts | 24 ++++++++++++++++++ packages/graphql/schema.graphql | 2 +- packages/graphql/src/feed.ts | 31 ++++++++++++++++++++++++ packages/graphql/src/graph.ts | 31 ++++++++++++++++++++++++ packages/graphql/src/graphql-env.d.ts | 2 +- packages/graphql/src/group.ts | 30 +++++++++++++++++++++++ packages/graphql/src/namespace.ts | 31 ++++++++++++++++++++++++ 10 files changed, 231 insertions(+), 4 deletions(-) diff --git a/packages/client/src/actions/feed.ts b/packages/client/src/actions/feed.ts index 3ed4a2de8..7f792d18a 100644 --- a/packages/client/src/actions/feed.ts +++ b/packages/client/src/actions/feed.ts @@ -5,8 +5,15 @@ import type { FeedRequest, FeedsRequest, Paginated, + SetFeedMetadataRequest, + SetFeedMetadataResult, +} from '@lens-protocol/graphql'; +import { + CreateFeedMutation, + FeedQuery, + FeedsQuery, + SetFeedMetadataMutation, } from '@lens-protocol/graphql'; -import { CreateFeedMutation, FeedQuery, FeedsQuery } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; import type { AnyClient, SessionClient } from '../clients'; @@ -30,6 +37,27 @@ export function createFeed( return client.mutation(CreateFeedMutation, { request }); } +/** + * Set Feed Metadata + * + * ```ts + * const result = await setFeedMetadata(sessionClient, { + * feed: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * metadataUri: 'https://example.com/feed-metadata.json', + * }); + * ``` + * + * @param client - The session client logged as a builder. + * @param request - The mutation request. + * @returns Tiered transaction result. + */ +export function setFeedMetadata( + client: SessionClient, + request: SetFeedMetadataRequest, +): ResultAsync { + return client.mutation(SetFeedMetadataMutation, { request }); +} + /** * Fetch a Feed. * diff --git a/packages/client/src/actions/graph.ts b/packages/client/src/actions/graph.ts index 15bf114f2..204a20434 100644 --- a/packages/client/src/actions/graph.ts +++ b/packages/client/src/actions/graph.ts @@ -5,8 +5,15 @@ import type { GraphRequest, GraphsRequest, Paginated, + SetGraphMetadataRequest, + SetGraphMetadataResult, +} from '@lens-protocol/graphql'; +import { + CreateGraphMutation, + GraphQuery, + GraphsQuery, + SetGraphMetadataMutation, } from '@lens-protocol/graphql'; -import { CreateGraphMutation, GraphQuery, GraphsQuery } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; import type { AnyClient, SessionClient } from '../clients'; @@ -30,6 +37,27 @@ export function createGraph( return client.mutation(CreateGraphMutation, { request }); } +/** + * Set Graph Metadata + * + * ```ts + * const result = await setGraphMetadata(sessionClient, { + * graph: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * metadataUri: 'https://example.com/feed-metadata.json', + * }); + * ``` + * + * @param client - The session client logged as a builder. + * @param request - The mutation request. + * @returns Tiered transaction result. + */ +export function setGraphMetadata( + client: SessionClient, + request: SetGraphMetadataRequest, +): ResultAsync { + return client.mutation(SetGraphMetadataMutation, { request }); +} + /** * Fetch a Graph. * diff --git a/packages/client/src/actions/group.ts b/packages/client/src/actions/group.ts index f6cfad406..ff932b174 100644 --- a/packages/client/src/actions/group.ts +++ b/packages/client/src/actions/group.ts @@ -13,6 +13,8 @@ import type { LeaveGroupRequest, LeaveGroupResult, Paginated, + SetGroupMetadataRequest, + SetGroupMetadataResult, } from '@lens-protocol/graphql'; import { CreateGroupMutation, @@ -22,6 +24,7 @@ import { GroupsQuery, JoinGroupMutation, LeaveGroupMutation, + SetGroupMetadataMutation, } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; @@ -46,6 +49,27 @@ export function createGroup( return client.mutation(CreateGroupMutation, { request }); } +/** + * Set Group Metadata + * + * ```ts + * const result = await setGroupMetadata(sessionClient, { + * group: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * metadataUri: 'https://example.com/feed-metadata.json', + * }); + * ``` + * + * @param client - The session client logged as a builder. + * @param request - The mutation request. + * @returns Tiered transaction result. + */ +export function setGroupMetadata( + client: SessionClient, + request: SetGroupMetadataRequest, +): ResultAsync { + return client.mutation(SetGroupMetadataMutation, { request }); +} + /** * Join a Group * diff --git a/packages/client/src/actions/namespace.ts b/packages/client/src/actions/namespace.ts index 51a338329..9d41e9086 100644 --- a/packages/client/src/actions/namespace.ts +++ b/packages/client/src/actions/namespace.ts @@ -4,12 +4,15 @@ import type { NamespaceRequest, NamespacesRequest, Paginated, + SetNamespaceMetadataRequest, + SetNamespaceMetadataResult, UsernameNamespace, } from '@lens-protocol/graphql'; import { CreateUsernameNamespaceMutation, NamespaceQuery, NamespacesQuery, + SetNamespaceMetadataMutation, } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; @@ -37,6 +40,27 @@ export function createUsernameNamespace( return client.mutation(CreateUsernameNamespaceMutation, { request }); } +/** + * Set Namespace Metadata + * + * ```ts + * const result = await setNamespaceMetadata(sessionClient, { + * namespace: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * metadataUri: 'https://example.com/feed-metadata.json', + * }); + * ``` + * + * @param client - The session client logged as a builder. + * @param request - The mutation request. + * @returns Tiered transaction result. + */ +export function setNamespaceMetadata( + client: SessionClient, + request: SetNamespaceMetadataRequest, +): ResultAsync { + return client.mutation(SetNamespaceMetadataMutation, { request }); +} + /** * Fetch a Namespace. * diff --git a/packages/graphql/schema.graphql b/packages/graphql/schema.graphql index 3b99eae74..0ac47bd26 100644 --- a/packages/graphql/schema.graphql +++ b/packages/graphql/schema.graphql @@ -4858,7 +4858,7 @@ type SnsSubscription { app: EvmAddress topic: SnsNotificationType! topicArn: String! - attributes: JSON! + filter: JSON! } input SnsTopicInput @oneOf { diff --git a/packages/graphql/src/feed.ts b/packages/graphql/src/feed.ts index 893420fa0..103388a79 100644 --- a/packages/graphql/src/feed.ts +++ b/packages/graphql/src/feed.ts @@ -3,6 +3,7 @@ import { FeedFragment, PaginatedResultInfoFragment, SelfFundedTransactionRequestFragment, + SponsoredTransactionRequestFragment, TransactionWillFailFragment, } from './fragments'; import { type RequestOf, graphql } from './graphql'; @@ -41,6 +42,36 @@ export const CreateFeedMutation = graphql( ); export type CreateFeedRequest = RequestOf; +const SetFeedMetadataResultFragment = graphql( + `fragment SetFeedMetadataResult on SetFeedMetadataResult { + ... on SponsoredTransactionRequest { + ...SponsoredTransactionRequest + } + ...on SelfFundedTransactionRequest { + ...SelfFundedTransactionRequest + } + ...on TransactionWillFail { + ...TransactionWillFail + } + }`, + [ + SponsoredTransactionRequestFragment, + SelfFundedTransactionRequestFragment, + TransactionWillFailFragment, + ], +); +export type SetFeedMetadataResult = FragmentOf; + +export const SetFeedMetadataMutation = graphql( + `mutation SetFeedMetadata($request: SetFeedMetadataRequest!) { + value: setFeedMetadata(request: $request) { + ...SetFeedMetadataResult + } + }`, + [SetFeedMetadataResultFragment], +); +export type SetFeedMetadataRequest = RequestOf; + export const FeedQuery = graphql( `query Feed($request: FeedRequest!) { value: feed(request: $request) { diff --git a/packages/graphql/src/graph.ts b/packages/graphql/src/graph.ts index 2e74323c6..edc0887df 100644 --- a/packages/graphql/src/graph.ts +++ b/packages/graphql/src/graph.ts @@ -3,6 +3,7 @@ import { GraphFragment, PaginatedResultInfoFragment, SelfFundedTransactionRequestFragment, + SponsoredTransactionRequestFragment, TransactionWillFailFragment, } from './fragments'; import { type RequestOf, graphql } from './graphql'; @@ -41,6 +42,36 @@ export const CreateGraphMutation = graphql( ); export type CreateGraphRequest = RequestOf; +const SetGraphMetadataResultFragment = graphql( + `fragment SetGraphMetadataResult on SetGraphMetadataResult { + ... on SponsoredTransactionRequest { + ...SponsoredTransactionRequest + } + ...on SelfFundedTransactionRequest { + ...SelfFundedTransactionRequest + } + ...on TransactionWillFail { + ...TransactionWillFail + } + }`, + [ + SponsoredTransactionRequestFragment, + SelfFundedTransactionRequestFragment, + TransactionWillFailFragment, + ], +); +export type SetGraphMetadataResult = FragmentOf; + +export const SetGraphMetadataMutation = graphql( + `mutation SetGraphMetadata($request: SetGraphMetadataRequest!) { + value: setGraphMetadata(request: $request) { + ...SetGraphMetadataResult + } + }`, + [SetGraphMetadataResultFragment], +); +export type SetGraphMetadataRequest = RequestOf; + export const GraphQuery = graphql( `query Graph($request: GraphRequest!) { value: graph(request: $request) { diff --git a/packages/graphql/src/graphql-env.d.ts b/packages/graphql/src/graphql-env.d.ts index c5a65f8ac..5e2166466 100644 --- a/packages/graphql/src/graphql-env.d.ts +++ b/packages/graphql/src/graphql-env.d.ts @@ -460,7 +460,7 @@ export type introspection_types = { 'SimplePaymentGroupRule': { kind: 'OBJECT'; name: 'SimplePaymentGroupRule'; fields: { 'amount': { name: 'amount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Amount'; ofType: null; }; } }; 'recipient': { name: 'recipient'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'rule': { name: 'rule'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; }; }; 'SimplePaymentUsernameNamespaceRule': { kind: 'OBJECT'; name: 'SimplePaymentUsernameNamespaceRule'; fields: { 'amount': { name: 'amount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Amount'; ofType: null; }; } }; 'recipient': { name: 'recipient'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'rule': { name: 'rule'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; }; }; 'SnsNotificationType': { name: 'SnsNotificationType'; enumValues: 'MEDIA_SNAPSHOT_SUCCESS' | 'MEDIA_SNAPSHOT_ERROR' | 'METADATA_SNAPSHOT_SUCCESS' | 'METADATA_SNAPSHOT_ERROR' | 'POST_CREATED' | 'QUOTE_CREATED' | 'COMMENT_CREATED' | 'REPOST_CREATED' | 'POST_EDITED' | 'POST_DELETED' | 'POST_COLLECTED' | 'POST_ACTION_COMPLETED' | 'POST_REACTION_ADDED' | 'POST_REACTION_REMOVED' | 'POST_REPORTED' | 'ACCOUNT_CREATED' | 'ACCOUNT_MENTIONED' | 'ACCOUNT_FOLLOWED' | 'ACCOUNT_UNFOLLOWED' | 'ACCOUNT_FOLLOW_RULES_UPDATED' | 'ACCOUNT_BLOCKED' | 'ACCOUNT_UNBLOCKED' | 'ACCOUNT_METADATA_UPDATED' | 'ACCOUNT_USERNAME_CREATED' | 'ACCOUNT_USERNAME_ASSIGNED' | 'ACCOUNT_USERNAME_UNASSIGNED' | 'ACCOUNT_CONTENT_CONSUMED' | 'ACCOUNT_MANAGER_ADDED' | 'ACCOUNT_MANAGER_REMOVED' | 'ACCOUNT_MANAGER_UPDATED' | 'ACCOUNT_OWNERSHIP_TRANSFERRED' | 'ACCOUNT_REPORTED' | 'ML_PROFILE_SIGNAL'; }; - 'SnsSubscription': { kind: 'OBJECT'; name: 'SnsSubscription'; fields: { 'account': { name: 'account'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'app': { name: 'app'; type: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; } }; 'attributes': { name: 'attributes'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'UUID'; ofType: null; }; } }; 'topic': { name: 'topic'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'SnsNotificationType'; ofType: null; }; } }; 'topicArn': { name: 'topicArn'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'webhook': { name: 'webhook'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'URL'; ofType: null; }; } }; }; }; + 'SnsSubscription': { kind: 'OBJECT'; name: 'SnsSubscription'; fields: { 'account': { name: 'account'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'app': { name: 'app'; type: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; } }; 'filter': { name: 'filter'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'UUID'; ofType: null; }; } }; 'topic': { name: 'topic'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'SnsNotificationType'; ofType: null; }; } }; 'topicArn': { name: 'topicArn'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'webhook': { name: 'webhook'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'URL'; ofType: null; }; } }; }; }; 'SnsTopicInput': { kind: 'INPUT_OBJECT'; name: 'SnsTopicInput'; isOneOf: true; inputFields: [{ name: 'mediaSnapshotSuccess'; type: { kind: 'INPUT_OBJECT'; name: 'MediaSnapshotNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'mediaSnapshotError'; type: { kind: 'INPUT_OBJECT'; name: 'MediaSnapshotNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'metadataSnapshotSuccess'; type: { kind: 'INPUT_OBJECT'; name: 'MetadataSnapshotNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'metadataSnapshotError'; type: { kind: 'INPUT_OBJECT'; name: 'MetadataSnapshotNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'postCreated'; type: { kind: 'INPUT_OBJECT'; name: 'PostCreatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'quoteCreated'; type: { kind: 'INPUT_OBJECT'; name: 'PostCreatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'commentCreated'; type: { kind: 'INPUT_OBJECT'; name: 'PostCreatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'repostCreated'; type: { kind: 'INPUT_OBJECT'; name: 'PostCreatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'postEdited'; type: { kind: 'INPUT_OBJECT'; name: 'PostEditedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'postDeleted'; type: { kind: 'INPUT_OBJECT'; name: 'PostDeletedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'postReactionAdded'; type: { kind: 'INPUT_OBJECT'; name: 'PostReactionAddedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'postReactionRemoved'; type: { kind: 'INPUT_OBJECT'; name: 'PostReactionRemovedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'postReported'; type: { kind: 'INPUT_OBJECT'; name: 'PostReportedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountCreated'; type: { kind: 'INPUT_OBJECT'; name: 'AccountCreatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountMentioned'; type: { kind: 'INPUT_OBJECT'; name: 'AccountMentionedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountFollowed'; type: { kind: 'INPUT_OBJECT'; name: 'AccountFollowedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountUnfollowed'; type: { kind: 'INPUT_OBJECT'; name: 'AccountUnfollowedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountBlocked'; type: { kind: 'INPUT_OBJECT'; name: 'AccountBlockedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountUnblocked'; type: { kind: 'INPUT_OBJECT'; name: 'AccountUnblockedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountUsernameCreated'; type: { kind: 'INPUT_OBJECT'; name: 'AccountUsernameCreatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountUsernameAssigned'; type: { kind: 'INPUT_OBJECT'; name: 'AccountUsernameAssignedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountUsernameUnassigned'; type: { kind: 'INPUT_OBJECT'; name: 'AccountUsernameUnassignedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountManagerAdded'; type: { kind: 'INPUT_OBJECT'; name: 'AccountManagerAddedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountManagerRemoved'; type: { kind: 'INPUT_OBJECT'; name: 'AccountManagerRemovedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountManagerUpdated'; type: { kind: 'INPUT_OBJECT'; name: 'AccountManagerUpdatedNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountOwnershipTransferred'; type: { kind: 'INPUT_OBJECT'; name: 'AccountOwnershipTransferredNotificationAttributes'; ofType: null; }; defaultValue: null }, { name: 'accountReported'; type: { kind: 'INPUT_OBJECT'; name: 'AccountReportedNotificationAttributes'; ofType: null; }; defaultValue: null }]; }; 'SpaceMetadata': { kind: 'OBJECT'; name: 'SpaceMetadata'; fields: { 'attachments': { name: 'attachments'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AnyMedia'; 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; }; }; }; } }; 'content': { name: 'content'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'contentWarning': { name: 'contentWarning'; type: { kind: 'ENUM'; name: 'ContentWarning'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'MetadataId'; ofType: null; }; } }; 'link': { name: 'link'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'URI'; ofType: null; }; } }; 'locale': { name: 'locale'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Locale'; ofType: null; }; } }; 'mainContentFocus': { name: 'mainContentFocus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'MainContentFocus'; ofType: null; }; } }; 'startsAt': { name: 'startsAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'tags': { name: 'tags'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Tag'; ofType: null; }; }; } }; 'title': { name: 'title'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'SponsorLimitType': { name: 'SponsorLimitType'; enumValues: 'HOUR' | 'DAY' | 'WEEK' | 'MONTH'; }; diff --git a/packages/graphql/src/group.ts b/packages/graphql/src/group.ts index 43db70507..9d04ab34b 100644 --- a/packages/graphql/src/group.ts +++ b/packages/graphql/src/group.ts @@ -43,6 +43,36 @@ export const CreateGroupMutation = graphql( ); export type CreateGroupRequest = RequestOf; +const SetGroupMetadataResultFragment = graphql( + `fragment SetGroupMetadataResult on SetGroupMetadataResult { + ... on SponsoredTransactionRequest { + ...SponsoredTransactionRequest + } + ...on SelfFundedTransactionRequest { + ...SelfFundedTransactionRequest + } + ...on TransactionWillFail { + ...TransactionWillFail + } + }`, + [ + SponsoredTransactionRequestFragment, + SelfFundedTransactionRequestFragment, + TransactionWillFailFragment, + ], +); +export type SetGroupMetadataResult = FragmentOf; + +export const SetGroupMetadataMutation = graphql( + `mutation SetGroupMetadata($request: SetGroupMetadataRequest!) { + value: setGroupMetadata(request: $request) { + ...SetGroupMetadataResult + } + }`, + [SetGroupMetadataResultFragment], +); +export type SetGroupMetadataRequest = RequestOf; + const JoinGroupResponseFragment = graphql( `fragment JoinGroupResponse on JoinGroupResponse { __typename diff --git a/packages/graphql/src/namespace.ts b/packages/graphql/src/namespace.ts index bee87a44a..b564afae3 100644 --- a/packages/graphql/src/namespace.ts +++ b/packages/graphql/src/namespace.ts @@ -2,6 +2,7 @@ import type { FragmentOf } from 'gql.tada'; import { PaginatedResultInfoFragment, SelfFundedTransactionRequestFragment, + SponsoredTransactionRequestFragment, TransactionWillFailFragment, UsernameNamespaceFragment, } from './fragments'; @@ -47,6 +48,36 @@ export const CreateUsernameNamespaceMutation = graphql( ); export type CreateUsernameNamespaceRequest = RequestOf; +const SetNamespaceMetadataResultFragment = graphql( + `fragment SetNamespaceMetadataResult on SetNamespaceMetadataResult { + ... on SponsoredTransactionRequest { + ...SponsoredTransactionRequest + } + ...on SelfFundedTransactionRequest { + ...SelfFundedTransactionRequest + } + ...on TransactionWillFail { + ...TransactionWillFail + } + }`, + [ + SponsoredTransactionRequestFragment, + SelfFundedTransactionRequestFragment, + TransactionWillFailFragment, + ], +); +export type SetNamespaceMetadataResult = FragmentOf; + +export const SetNamespaceMetadataMutation = graphql( + `mutation SetNamespaceMetadata($request: SetNamespaceMetadataRequest!) { + value: setNamespaceMetadata(request: $request) { + ...SetNamespaceMetadataResult + } + }`, + [SetNamespaceMetadataResultFragment], +); +export type SetNamespaceMetadataRequest = RequestOf; + export const NamespaceQuery = graphql( `query Namespace($request: NamespaceRequest!) { value: namespace(request: $request) { From def6b0768358efaaccef5ad27290129d74b4a59d Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Thu, 9 Jan 2025 10:17:07 +0100 Subject: [PATCH 2/5] Add missing enum --- packages/graphql/src/enums.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index 7b0f320f6..fe72f2c5b 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -960,3 +960,12 @@ export enum WhoReferencedPostOrderBy { Oldest = 'OLDEST', AccountScore = 'ACCOUNT_SCORE', } + +/** + * Enum for AppUsersOrderBy. + */ +export enum AppUsersOrderBy { + Alphabetical = 'ALPHABETICAL', + AccountScore = 'ACCOUNT_SCORE', + BestMatch = 'BEST_MATCH', +} From 0711334df58368801d6a181a9412d5d6af4ec0d5 Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Thu, 9 Jan 2025 10:38:17 +0100 Subject: [PATCH 3/5] Fix fetchUsernames description --- packages/client/src/actions/username.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/client/src/actions/username.ts b/packages/client/src/actions/username.ts index 040cf6c39..a9fc76b89 100644 --- a/packages/client/src/actions/username.ts +++ b/packages/client/src/actions/username.ts @@ -111,17 +111,20 @@ export function fetchUsername( } /** - * Fetch usernames owned by an address. + * Fetch usernames. + * Example: fetch usernames owned by a specific address. * * ```ts * const result = await fetchUsernames(anyClient, { - * owner: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * filter: { + * owner: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * }, * }); * ``` * * @param client - Any Lens client. * @param request - The query request. - * @returns The list of owned usernames. + * @returns The list of usernames. */ export function fetchUsernames( client: AnyClient, From dfe00fc03caa3cbc16c731e911f5a25925a2fc8f Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Fri, 10 Jan 2025 14:19:47 +0100 Subject: [PATCH 4/5] Fix comments and update latest schema --- packages/client/src/actions/admins.ts | 2 +- packages/client/src/actions/app.ts | 30 ++--- packages/client/src/actions/feed.ts | 6 +- packages/client/src/actions/graph.ts | 6 +- packages/client/src/actions/group.ts | 6 +- packages/client/src/actions/namespace.ts | 6 +- packages/client/src/actions/username.ts | 6 +- packages/graphql/schema.graphql | 105 ++++++++++++++++++ packages/graphql/src/enums.ts | 97 ++++++++++++++++ .../fragments/SelfFundedTransactionRequest.ts | 32 ------ .../fragments/SponsoredTransactionRequest.ts | 41 ------- .../src/fragments/TransactionWillFail.ts | 10 -- packages/graphql/src/fragments/index.ts | 4 +- .../graphql/src/fragments/transactions.ts | 79 +++++++++++++ packages/graphql/src/graphql-env.d.ts | 9 +- packages/graphql/src/graphql.ts | 6 + packages/graphql/src/transactions.ts | 22 ++++ 17 files changed, 347 insertions(+), 120 deletions(-) delete mode 100644 packages/graphql/src/fragments/SelfFundedTransactionRequest.ts delete mode 100644 packages/graphql/src/fragments/SponsoredTransactionRequest.ts delete mode 100644 packages/graphql/src/fragments/TransactionWillFail.ts create mode 100644 packages/graphql/src/fragments/transactions.ts diff --git a/packages/client/src/actions/admins.ts b/packages/client/src/actions/admins.ts index 97860ecfb..3e721615b 100644 --- a/packages/client/src/actions/admins.ts +++ b/packages/client/src/actions/admins.ts @@ -23,7 +23,7 @@ import type { UnauthenticatedError, UnexpectedError } from '../errors'; * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ diff --git a/packages/client/src/actions/app.ts b/packages/client/src/actions/app.ts index 411d90192..045228e3e 100644 --- a/packages/client/src/actions/app.ts +++ b/packages/client/src/actions/app.ts @@ -203,7 +203,7 @@ export function fetchAppUsers( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -224,7 +224,7 @@ export function createApp( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -245,7 +245,7 @@ export function addAppFeeds( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -266,7 +266,7 @@ export function addAppGroups( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -287,7 +287,7 @@ export function addAppSigners( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -308,7 +308,7 @@ export function removeAppFeeds( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -329,7 +329,7 @@ export function removeAppGroups( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -350,7 +350,7 @@ export function removeAppSigners( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -371,7 +371,7 @@ export function setAppGraph( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -387,12 +387,12 @@ export function setDefaultAppFeed( * * ```ts * const result = await setAppMetadata(sessionClient, { - * metadataUri: 'https://example.com/metadata.json', + * metadataUri: uri("lens://4f91..."), * app: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -413,7 +413,7 @@ export function setAppMetadata( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -434,7 +434,7 @@ export function setAppVerification( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -455,7 +455,7 @@ export function setAppSponsorship( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -476,7 +476,7 @@ export function setAppTreasury( * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ diff --git a/packages/client/src/actions/feed.ts b/packages/client/src/actions/feed.ts index 7f792d18a..2bd25b2aa 100644 --- a/packages/client/src/actions/feed.ts +++ b/packages/client/src/actions/feed.ts @@ -26,7 +26,7 @@ import type { UnauthenticatedError, UnexpectedError } from '../errors'; * const result = await createFeed(sessionClient); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -43,11 +43,11 @@ export function createFeed( * ```ts * const result = await setFeedMetadata(sessionClient, { * feed: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), - * metadataUri: 'https://example.com/feed-metadata.json', + * metadataUri: uri("lens://4f91..."), * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ diff --git a/packages/client/src/actions/graph.ts b/packages/client/src/actions/graph.ts index 204a20434..cbb6d96df 100644 --- a/packages/client/src/actions/graph.ts +++ b/packages/client/src/actions/graph.ts @@ -26,7 +26,7 @@ import type { UnauthenticatedError, UnexpectedError } from '../errors'; * const result = await createGraph(sessionClient); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -43,11 +43,11 @@ export function createGraph( * ```ts * const result = await setGraphMetadata(sessionClient, { * graph: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), - * metadataUri: 'https://example.com/feed-metadata.json', + * metadataUri: uri("lens://4f91..."), * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ diff --git a/packages/client/src/actions/group.ts b/packages/client/src/actions/group.ts index ff932b174..fa8ffb514 100644 --- a/packages/client/src/actions/group.ts +++ b/packages/client/src/actions/group.ts @@ -38,7 +38,7 @@ import type { UnauthenticatedError, UnexpectedError } from '../errors'; * const result = await createGroup(sessionClient); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -55,11 +55,11 @@ export function createGroup( * ```ts * const result = await setGroupMetadata(sessionClient, { * group: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), - * metadataUri: 'https://example.com/feed-metadata.json', + * metadataUri: uri("lens://4f91..."), * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ diff --git a/packages/client/src/actions/namespace.ts b/packages/client/src/actions/namespace.ts index 9d41e9086..62c67bc74 100644 --- a/packages/client/src/actions/namespace.ts +++ b/packages/client/src/actions/namespace.ts @@ -29,7 +29,7 @@ import type { UnauthenticatedError, UnexpectedError } from '../errors'; * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ @@ -46,11 +46,11 @@ export function createUsernameNamespace( * ```ts * const result = await setNamespaceMetadata(sessionClient, { * namespace: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), - * metadataUri: 'https://example.com/feed-metadata.json', + * metadataUri: uri("lens://4f91..."), * }); * ``` * - * @param client - The session client logged as a builder. + * @param client - The session client logged in as a builder. * @param request - The mutation request. * @returns Tiered transaction result. */ diff --git a/packages/client/src/actions/username.ts b/packages/client/src/actions/username.ts index a9fc76b89..96d13f9c7 100644 --- a/packages/client/src/actions/username.ts +++ b/packages/client/src/actions/username.ts @@ -116,9 +116,9 @@ export function fetchUsername( * * ```ts * const result = await fetchUsernames(anyClient, { - * filter: { - * owner: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), - * }, + * filter: { + * owner: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'), + * }, * }); * ``` * diff --git a/packages/graphql/schema.graphql b/packages/graphql/schema.graphql index 0ac47bd26..af8e23ef1 100644 --- a/packages/graphql/schema.graphql +++ b/packages/graphql/schema.graphql @@ -1922,6 +1922,7 @@ The reason for the failure is provided. type FailedTransactionStatus { reason: String! blockTimestamp: DateTime! + summary: [SubOperationStatus!]! } input FeeFollowRuleInput { @@ -2010,6 +2011,7 @@ If the transaction involves any metadata, the metadata has been snapshotted and """ type FinishedTransactionStatus { blockTimestamp: DateTime! + summary: [SubOperationStatus!]! } type FollowNotification { @@ -2438,6 +2440,12 @@ type ImageMetadata { content: String! } +enum IndexingStatus { + FINISHED + PENDING + FAILED +} + type InvalidUsername { reason: String! } @@ -3939,6 +3947,7 @@ The transaction could be: """ type PendingTransactionStatus { blockTimestamp: DateTime! + summary: [SubOperationStatus!]! } """PhysicalAddress""" @@ -4989,6 +4998,11 @@ type StoryMetadata { content: String! } +type SubOperationStatus { + operation: TransactionOperation! + status: IndexingStatus! +} + input SwitchAccountRequest { account: EvmAddress! } @@ -5208,6 +5222,97 @@ type TransactionMetadata { content: String! } +enum TransactionOperation { + ACCESS_CONTROL_ROLE_GRANTED + ACCESS_CONTROL_ROLE_REVOKED + ACCESS_CONTROL_FACTORY_OWNER_ADMIN_DEPLOYMENT + ACCOUNT_FACTORY_DEPLOYMENT + ACCOUNT_MANAGER_ADDED + ACCOUNT_MANAGER_REMOVED + ACCOUNT_MANAGER_UPDATED + ACCOUNT_OWNER_TRANSFERRED + ACCOUNT_METADATA_URI_SET + APP_FACTORY_DEPLOYMENT + APP_ACCESS_CONTROL_ADDED + APP_ACCESS_CONTROL_UPDATED + APP_DEFAULT_FEED_SET + APP_EXTRA_DATA_ADDED + APP_EXTRA_DATA_REMOVED + APP_EXTRA_DATA_UPDATED + APP_FEED_ADDED + APP_FEED_REMOVED + APP_GRAPH_ADDED + APP_GRAPH_REMOVED + APP_GROUP_ADDED + APP_GROUP_REMOVED + APP_METADATA_URI_SET + APP_SIGNER_ADDED + APP_SIGNER_REMOVED + APP_SOURCE_STAMP_VERIFICATION_SET + APP_PAYMASTER_ADDED + APP_PAYMASTER_REMOVED + APP_TREASURY_SET + APP_USERNAME_ADDED + APP_USERNAME_REMOVED + FEED_ACCESS_CONTROL_ADDED + FEED_ACCESS_CONTROL_UPDATED + FEED_EXTRA_DATA_ADDED + FEED_EXTRA_DATA_REMOVED + FEED_EXTRA_DATA_UPDATED + FEED_METADATA_URI_SET + FEED_POST_CREATED + FEED_POST_DELETED + FEED_POST_EDITED + GRAPH_FACTORY_DEPLOYMENT + GRAPH_ACCESS_CONTROL_ADDED + GRAPH_ACCESS_CONTROL_UPDATED + GRAPH_EXTRA_DATA_ADDED + GRAPH_EXTRA_DATA_REMOVED + GRAPH_EXTRA_DATA_UPDATED + GRAPH_FOLLOWED + GRAPH_METADATA_URI_SET + GRAPH_UNFOLLOWED + GROUP_FACTORY_DEPLOYMENT + GROUP_MEMBER_JOINED + GROUP_MEMBER_LEFT + GROUP_MEMBER_REMOVED + GROUP_ACCESS_CONTROL_ADDED + GROUP_ACCESS_CONTROL_UPDATED + GROUP_EXTRA_DATA_ADDED + GROUP_EXTRA_DATA_REMOVED + GROUP_EXTRA_DATA_UPDATED + GROUP_METADATA_URI_SET + SPONSOR_FREE_PAYMASTER_CREATED + SPONSOR_ADDED_TO_APPROVED_SIGNERS + SPONSOR_METADATA_URI_CHANGED + USERNAME_ASSIGNED + USERNAME_CREATED + USERNAME_FACTORY_DEPLOYMENT + USERNAME_REMOVED + USERNAME_UNASSIGNED + USERNAME_ACCESS_CONTROL_ADDED + USERNAME_ACCESS_CONTROL_UPDATED + USERNAME_EXTRA_DATA_ADDED + USERNAME_EXTRA_DATA_REMOVED + USERNAME_EXTRA_DATA_UPDATED + USERNAME_METADATA_URI_SET + SPONSORSHIP_ACCESS_CONTROL_ADDED + SPONSORSHIP_ACCESS_CONTROL_UPDATED + SPONSORSHIP_ADDED_TO_EXCLUSION_LIST + SPONSORSHIP_REMOVED_FROM_EXCLUSION_LIST + SPONSORSHIP_FACTORY_DEPLOYMENT + SPONSORSHIP_FUNDS_SPENT + SPONSORSHIP_GRANT_REVOKED + SPONSORSHIP_GRANTED_FUNDS + SPONSORSHIP_METADATA_URI_SET + SPONSORSHIP_PAUSED + SPONSORSHIP_RATE_LIMITS_CHANGED + SPONSORSHIP_UNPAUSED + SPONSORSHIP_SIGNER_ADDED + SPONSORSHIP_SIGNER_REMOVED + FEED_FACTORY_DEPLOYMENT +} + input TransactionStatusRequest { txHash: TxHash! } diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index fe72f2c5b..b43e59ebc 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -969,3 +969,100 @@ export enum AppUsersOrderBy { AccountScore = 'ACCOUNT_SCORE', BestMatch = 'BEST_MATCH', } + +export enum TransactionOperation { + AccessControlRoleGranted = 'ACCESS_CONTROL_ROLE_GRANTED', + AccessControlRoleRevoked = 'ACCESS_CONTROL_ROLE_REVOKED', + AccessControlFactoryOwnerAdminDeployment = 'ACCESS_CONTROL_FACTORY_OWNER_ADMIN_DEPLOYMENT', + AccountFactoryDeployment = 'ACCOUNT_FACTORY_DEPLOYMENT', + AccountManagerAdded = 'ACCOUNT_MANAGER_ADDED', + AccountManagerRemoved = 'ACCOUNT_MANAGER_REMOVED', + AccountManagerUpdated = 'ACCOUNT_MANAGER_UPDATED', + AccountOwnerTransferred = 'ACCOUNT_OWNER_TRANSFERRED', + AccountMetadataUriSet = 'ACCOUNT_METADATA_URI_SET', + AppFactoryDeployment = 'APP_FACTORY_DEPLOYMENT', + AppAccessControlAdded = 'APP_ACCESS_CONTROL_ADDED', + AppAccessControlUpdated = 'APP_ACCESS_CONTROL_UPDATED', + AppDefaultFeedSet = 'APP_DEFAULT_FEED_SET', + AppExtraDataAdded = 'APP_EXTRA_DATA_ADDED', + AppExtraDataRemoved = 'APP_EXTRA_DATA_REMOVED', + AppExtraDataUpdated = 'APP_EXTRA_DATA_UPDATED', + AppFeedAdded = 'APP_FEED_ADDED', + AppFeedRemoved = 'APP_FEED_REMOVED', + AppGraphAdded = 'APP_GRAPH_ADDED', + AppGraphRemoved = 'APP_GRAPH_REMOVED', + AppGroupAdded = 'APP_GROUP_ADDED', + AppGroupRemoved = 'APP_GROUP_REMOVED', + AppMetadataUriSet = 'APP_METADATA_URI_SET', + AppSignerAdded = 'APP_SIGNER_ADDED', + AppSignerRemoved = 'APP_SIGNER_REMOVED', + AppSourceStampVerificationSet = 'APP_SOURCE_STAMP_VERIFICATION_SET', + AppPaymasterAdded = 'APP_PAYMASTER_ADDED', + AppPaymasterRemoved = 'APP_PAYMASTER_REMOVED', + AppTreasurySet = 'APP_TREASURY_SET', + AppUsernameAdded = 'APP_USERNAME_ADDED', + AppUsernameRemoved = 'APP_USERNAME_REMOVED', + FeedAccessControlAdded = 'FEED_ACCESS_CONTROL_ADDED', + FeedAccessControlUpdated = 'FEED_ACCESS_CONTROL_UPDATED', + FeedExtraDataAdded = 'FEED_EXTRA_DATA_ADDED', + FeedExtraDataRemoved = 'FEED_EXTRA_DATA_REMOVED', + FeedExtraDataUpdated = 'FEED_EXTRA_DATA_UPDATED', + FeedMetadataUriSet = 'FEED_METADATA_URI_SET', + FeedPostCreated = 'FEED_POST_CREATED', + FeedPostDeleted = 'FEED_POST_DELETED', + FeedPostEdited = 'FEED_POST_EDITED', + GraphFactoryDeployment = 'GRAPH_FACTORY_DEPLOYMENT', + GraphAccessControlAdded = 'GRAPH_ACCESS_CONTROL_ADDED', + GraphAccessControlUpdated = 'GRAPH_ACCESS_CONTROL_UPDATED', + GraphExtraDataAdded = 'GRAPH_EXTRA_DATA_ADDED', + GraphExtraDataRemoved = 'GRAPH_EXTRA_DATA_REMOVED', + GraphExtraDataUpdated = 'GRAPH_EXTRA_DATA_UPDATED', + GraphFollowed = 'GRAPH_FOLLOWED', + GraphMetadataUriSet = 'GRAPH_METADATA_URI_SET', + GraphUnfollowed = 'GRAPH_UNFOLLOWED', + GroupFactoryDeployment = 'GROUP_FACTORY_DEPLOYMENT', + GroupMemberJoined = 'GROUP_MEMBER_JOINED', + GroupMemberLeft = 'GROUP_MEMBER_LEFT', + GroupMemberRemoved = 'GROUP_MEMBER_REMOVED', + GroupAccessControlAdded = 'GROUP_ACCESS_CONTROL_ADDED', + GroupAccessControlUpdated = 'GROUP_ACCESS_CONTROL_UPDATED', + GroupExtraDataAdded = 'GROUP_EXTRA_DATA_ADDED', + GroupExtraDataRemoved = 'GROUP_EXTRA_DATA_REMOVED', + GroupExtraDataUpdated = 'GROUP_EXTRA_DATA_UPDATED', + GroupMetadataUriSet = 'GROUP_METADATA_URI_SET', + SponsorFreePaymasterCreated = 'SPONSOR_FREE_PAYMASTER_CREATED', + SponsorAddedToApprovedSigners = 'SPONSOR_ADDED_TO_APPROVED_SIGNERS', + SponsorMetadataUriChanged = 'SPONSOR_METADATA_URI_CHANGED', + UsernameAssigned = 'USERNAME_ASSIGNED', + UsernameCreated = 'USERNAME_CREATED', + UsernameFactoryDeployment = 'USERNAME_FACTORY_DEPLOYMENT', + UsernameRemoved = 'USERNAME_REMOVED', + UsernameUnassigned = 'USERNAME_UNASSIGNED', + UsernameAccessControlAdded = 'USERNAME_ACCESS_CONTROL_ADDED', + UsernameAccessControlUpdated = 'USERNAME_ACCESS_CONTROL_UPDATED', + UsernameExtraDataAdded = 'USERNAME_EXTRA_DATA_ADDED', + UsernameExtraDataRemoved = 'USERNAME_EXTRA_DATA_REMOVED', + UsernameExtraDataUpdated = 'USERNAME_EXTRA_DATA_UPDATED', + UsernameMetadataUriSet = 'USERNAME_METADATA_URI_SET', + SponsorshipAccessControlAdded = 'SPONSORSHIP_ACCESS_CONTROL_ADDED', + SponsorshipAccessControlUpdated = 'SPONSORSHIP_ACCESS_CONTROL_UPDATED', + SponsorshipAddedToExclusionList = 'SPONSORSHIP_ADDED_TO_EXCLUSION_LIST', + SponsorshipRemovedFromExclusionList = 'SPONSORSHIP_REMOVED_FROM_EXCLUSION_LIST', + SponsorshipFactoryDeployment = 'SPONSORSHIP_FACTORY_DEPLOYMENT', + SponsorshipFundsSpent = 'SPONSORSHIP_FUNDS_SPENT', + SponsorshipGrantRevoked = 'SPONSORSHIP_GRANT_REVOKED', + SponsorshipGrantedFunds = 'SPONSORSHIP_GRANTED_FUNDS', + SponsorshipMetadataUriSet = 'SPONSORSHIP_METADATA_URI_SET', + SponsorshipPaused = 'SPONSORSHIP_PAUSED', + SponsorshipRateLimitsChanged = 'SPONSORSHIP_RATE_LIMITS_CHANGED', + SponsorshipUnpaused = 'SPONSORSHIP_UNPAUSED', + SponsorshipSignerAdded = 'SPONSORSHIP_SIGNER_ADDED', + SponsorshipSignerRemoved = 'SPONSORSHIP_SIGNER_REMOVED', + FeedFactoryDeployment = 'FEED_FACTORY_DEPLOYMENT', +} + +export enum IndexingStatus { + Finished = 'FINISHED', + Pending = 'PENDING', + Failed = 'FAILED', +} diff --git a/packages/graphql/src/fragments/SelfFundedTransactionRequest.ts b/packages/graphql/src/fragments/SelfFundedTransactionRequest.ts deleted file mode 100644 index 407385c9e..000000000 --- a/packages/graphql/src/fragments/SelfFundedTransactionRequest.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { FragmentOf } from 'gql.tada'; -import { graphql } from '../graphql'; - -const Eip1559TransactionRequestFragment = graphql( - `fragment Eip1559TransactionRequest on Eip1559TransactionRequest { - __typename - type - from - to - nonce - gasLimit - maxPriorityFeePerGas - maxFeePerGas - data - value - chainId - }`, -); -export type Eip1559TransactionRequest = FragmentOf; - -export const SelfFundedTransactionRequestFragment = graphql( - `fragment SelfFundedTransactionRequest on SelfFundedTransactionRequest { - __typename - reason - selfFundedReason - raw { - ...Eip1559TransactionRequest - } - }`, - [Eip1559TransactionRequestFragment], -); -export type SelfFundedTransactionRequest = FragmentOf; diff --git a/packages/graphql/src/fragments/SponsoredTransactionRequest.ts b/packages/graphql/src/fragments/SponsoredTransactionRequest.ts deleted file mode 100644 index b10011804..000000000 --- a/packages/graphql/src/fragments/SponsoredTransactionRequest.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { FragmentOf } from 'gql.tada'; -import { graphql } from '../graphql'; - -const Eip712TransactionRequestFragment = graphql( - `fragment Eip712TransactionRequest on Eip712TransactionRequest { - __typename - type - to - from - nonce - gasLimit - maxFeePerGas - maxPriorityFeePerGas - data - value - chainId - customData { - gasPerPubdata - factoryDeps - customSignature - paymasterParams { - paymaster - paymasterInput - } - } - }`, -); -export type Eip712TransactionRequest = FragmentOf; - -export const SponsoredTransactionRequestFragment = graphql( - `fragment SponsoredTransactionRequest on SponsoredTransactionRequest { - __typename - reason - sponsoredReason - raw { - ...Eip712TransactionRequest - } - }`, - [Eip712TransactionRequestFragment], -); -export type SponsoredTransactionRequest = FragmentOf; diff --git a/packages/graphql/src/fragments/TransactionWillFail.ts b/packages/graphql/src/fragments/TransactionWillFail.ts deleted file mode 100644 index 4f351d018..000000000 --- a/packages/graphql/src/fragments/TransactionWillFail.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { FragmentOf } from 'gql.tada'; -import { graphql } from '../graphql'; - -export const TransactionWillFailFragment = graphql(` - fragment TransactionWillFail on TransactionWillFail { - __typename - reason - } -`); -export type TransactionWillFail = FragmentOf; diff --git a/packages/graphql/src/fragments/index.ts b/packages/graphql/src/fragments/index.ts index 406a57ab6..5262e1fa0 100644 --- a/packages/graphql/src/fragments/index.ts +++ b/packages/graphql/src/fragments/index.ts @@ -5,7 +5,5 @@ export * from './metadata'; export * from './pagination'; export * from './post'; export * from './primitives'; -export * from './SelfFundedTransactionRequest'; -export * from './SponsoredTransactionRequest'; -export * from './TransactionWillFail'; +export * from './transactions'; export * from './username'; diff --git a/packages/graphql/src/fragments/transactions.ts b/packages/graphql/src/fragments/transactions.ts new file mode 100644 index 000000000..7a92fc58f --- /dev/null +++ b/packages/graphql/src/fragments/transactions.ts @@ -0,0 +1,79 @@ +import type { FragmentOf } from 'gql.tada'; +import { graphql } from '../graphql'; + +export const TransactionWillFailFragment = graphql(` + fragment TransactionWillFail on TransactionWillFail { + __typename + reason + } +`); +export type TransactionWillFail = FragmentOf; + +const Eip1559TransactionRequestFragment = graphql( + `fragment Eip1559TransactionRequest on Eip1559TransactionRequest { + __typename + type + from + to + nonce + gasLimit + maxPriorityFeePerGas + maxFeePerGas + data + value + chainId + }`, +); +export type Eip1559TransactionRequest = FragmentOf; + +export const SelfFundedTransactionRequestFragment = graphql( + `fragment SelfFundedTransactionRequest on SelfFundedTransactionRequest { + __typename + reason + selfFundedReason + raw { + ...Eip1559TransactionRequest + } + }`, + [Eip1559TransactionRequestFragment], +); +export type SelfFundedTransactionRequest = FragmentOf; + +const Eip712TransactionRequestFragment = graphql( + `fragment Eip712TransactionRequest on Eip712TransactionRequest { + __typename + type + to + from + nonce + gasLimit + maxFeePerGas + maxPriorityFeePerGas + data + value + chainId + customData { + gasPerPubdata + factoryDeps + customSignature + paymasterParams { + paymaster + paymasterInput + } + } + }`, +); +export type Eip712TransactionRequest = FragmentOf; + +export const SponsoredTransactionRequestFragment = graphql( + `fragment SponsoredTransactionRequest on SponsoredTransactionRequest { + __typename + reason + sponsoredReason + raw { + ...Eip712TransactionRequest + } + }`, + [Eip712TransactionRequestFragment], +); +export type SponsoredTransactionRequest = FragmentOf; diff --git a/packages/graphql/src/graphql-env.d.ts b/packages/graphql/src/graphql-env.d.ts index 5e2166466..ad7fafb93 100644 --- a/packages/graphql/src/graphql-env.d.ts +++ b/packages/graphql/src/graphql-env.d.ts @@ -176,7 +176,7 @@ export type introspection_types = { 'EventMetadataLensSchedulingAdjustmentsTimezoneId': { name: 'EventMetadataLensSchedulingAdjustmentsTimezoneId'; enumValues: 'AFRICA_ABIDJAN' | 'AFRICA_ACCRA' | 'AFRICA_ADDIS_ABABA' | 'AFRICA_ALGIERS' | 'AFRICA_ASMERA' | 'AFRICA_BAMAKO' | 'AFRICA_BANGUI' | 'AFRICA_BANJUL' | 'AFRICA_BISSAU' | 'AFRICA_BLANTYRE' | 'AFRICA_BRAZZAVILLE' | 'AFRICA_BUJUMBURA' | 'AFRICA_CAIRO' | 'AFRICA_CASABLANCA' | 'AFRICA_CEUTA' | 'AFRICA_CONAKRY' | 'AFRICA_DAKAR' | 'AFRICA_DAR_ES_SALAAM' | 'AFRICA_DJIBOUTI' | 'AFRICA_DOUALA' | 'AFRICA_EL_AAIUN' | 'AFRICA_FREETOWN' | 'AFRICA_GABORONE' | 'AFRICA_HARARE' | 'AFRICA_JOHANNESBURG' | 'AFRICA_JUBA' | 'AFRICA_KAMPALA' | 'AFRICA_KHARTOUM' | 'AFRICA_KIGALI' | 'AFRICA_KINSHASA' | 'AFRICA_LAGOS' | 'AFRICA_LIBREVILLE' | 'AFRICA_LOME' | 'AFRICA_LUANDA' | 'AFRICA_LUBUMBASHI' | 'AFRICA_LUSAKA' | 'AFRICA_MALABO' | 'AFRICA_MAPUTO' | 'AFRICA_MASERU' | 'AFRICA_MBABANE' | 'AFRICA_MOGADISHU' | 'AFRICA_MONROVIA' | 'AFRICA_NAIROBI' | 'AFRICA_NDJAMENA' | 'AFRICA_NIAMEY' | 'AFRICA_NOUAKCHOTT' | 'AFRICA_OUAGADOUGOU' | 'AFRICA_PORTO_NOVO' | 'AFRICA_SAO_TOME' | 'AFRICA_TRIPOLI' | 'AFRICA_TUNIS' | 'AFRICA_WINDHOEK' | 'AMERICA_ADAK' | 'AMERICA_ANCHORAGE' | 'AMERICA_ANGUILLA' | 'AMERICA_ANTIGUA' | 'AMERICA_ARAGUAINA' | 'AMERICA_ARGENTINA_LA_RIOJA' | 'AMERICA_ARGENTINA_RIO_GALLEGOS' | 'AMERICA_ARGENTINA_SALTA' | 'AMERICA_ARGENTINA_SAN_JUAN' | 'AMERICA_ARGENTINA_SAN_LUIS' | 'AMERICA_ARGENTINA_TUCUMAN' | 'AMERICA_ARGENTINA_USHUAIA' | 'AMERICA_ARUBA' | 'AMERICA_ASUNCION' | 'AMERICA_BAHIA' | 'AMERICA_BAHIA_BANDERAS' | 'AMERICA_BARBADOS' | 'AMERICA_BELEM' | 'AMERICA_BELIZE' | 'AMERICA_BLANC_SABLON' | 'AMERICA_BOA_VISTA' | 'AMERICA_BOGOTA' | 'AMERICA_BOISE' | 'AMERICA_BUENOS_AIRES' | 'AMERICA_CAMBRIDGE_BAY' | 'AMERICA_CAMPO_GRANDE' | 'AMERICA_CANCUN' | 'AMERICA_CARACAS' | 'AMERICA_CATAMARCA' | 'AMERICA_CAYENNE' | 'AMERICA_CAYMAN' | 'AMERICA_CHICAGO' | 'AMERICA_CHIHUAHUA' | 'AMERICA_CIUDAD_JUAREZ' | 'AMERICA_CORAL_HARBOUR' | 'AMERICA_CORDOBA' | 'AMERICA_COSTA_RICA' | 'AMERICA_CRESTON' | 'AMERICA_CUIABA' | 'AMERICA_CURACAO' | 'AMERICA_DANMARKSHAVN' | 'AMERICA_DAWSON' | 'AMERICA_DAWSON_CREEK' | 'AMERICA_DENVER' | 'AMERICA_DETROIT' | 'AMERICA_DOMINICA' | 'AMERICA_EDMONTON' | 'AMERICA_EIRUNEPE' | 'AMERICA_EL_SALVADOR' | 'AMERICA_FORT_NELSON' | 'AMERICA_FORTALEZA' | 'AMERICA_GLACE_BAY' | 'AMERICA_GODTHAB' | 'AMERICA_GOOSE_BAY' | 'AMERICA_GRAND_TURK' | 'AMERICA_GRENADA' | 'AMERICA_GUADELOUPE' | 'AMERICA_GUATEMALA' | 'AMERICA_GUAYAQUIL' | 'AMERICA_GUYANA' | 'AMERICA_HALIFAX' | 'AMERICA_HAVANA' | 'AMERICA_HERMOSILLO' | 'AMERICA_INDIANA_KNOX' | 'AMERICA_INDIANA_MARENGO' | 'AMERICA_INDIANA_PETERSBURG' | 'AMERICA_INDIANA_TELL_CITY' | 'AMERICA_INDIANA_VEVAY' | 'AMERICA_INDIANA_VINCENNES' | 'AMERICA_INDIANA_WINAMAC' | 'AMERICA_INDIANAPOLIS' | 'AMERICA_INUVIK' | 'AMERICA_IQALUIT' | 'AMERICA_JAMAICA' | 'AMERICA_JUJUY' | 'AMERICA_JUNEAU' | 'AMERICA_KENTUCKY_MONTICELLO' | 'AMERICA_KRALENDIJK' | 'AMERICA_LA_PAZ' | 'AMERICA_LIMA' | 'AMERICA_LOS_ANGELES' | 'AMERICA_LOUISVILLE' | 'AMERICA_LOWER_PRINCES' | 'AMERICA_MACEIO' | 'AMERICA_MANAGUA' | 'AMERICA_MANAUS' | 'AMERICA_MARIGOT' | 'AMERICA_MARTINIQUE' | 'AMERICA_MATAMOROS' | 'AMERICA_MAZATLAN' | 'AMERICA_MENDOZA' | 'AMERICA_MENOMINEE' | 'AMERICA_MERIDA' | 'AMERICA_METLAKATLA' | 'AMERICA_MEXICO_CITY' | 'AMERICA_MIQUELON' | 'AMERICA_MONCTON' | 'AMERICA_MONTERREY' | 'AMERICA_MONTEVIDEO' | 'AMERICA_MONTSERRAT' | 'AMERICA_NASSAU' | 'AMERICA_NEW_YORK' | 'AMERICA_NIPIGON' | 'AMERICA_NOME' | 'AMERICA_NORONHA' | 'AMERICA_NORTH_DAKOTA_BEULAH' | 'AMERICA_NORTH_DAKOTA_CENTER' | 'AMERICA_NORTH_DAKOTA_NEW_SALEM' | 'AMERICA_OJINAGA' | 'AMERICA_PANAMA' | 'AMERICA_PANGNIRTUNG' | 'AMERICA_PARAMARIBO' | 'AMERICA_PHOENIX' | 'AMERICA_PORT_AU_PRINCE' | 'AMERICA_PORT_OF_SPAIN' | 'AMERICA_PORTO_VELHO' | 'AMERICA_PUERTO_RICO' | 'AMERICA_PUNTA_ARENAS' | 'AMERICA_RAINY_RIVER' | 'AMERICA_RANKIN_INLET' | 'AMERICA_RECIFE' | 'AMERICA_REGINA' | 'AMERICA_RESOLUTE' | 'AMERICA_RIO_BRANCO' | 'AMERICA_SANTA_ISABEL' | 'AMERICA_SANTAREM' | 'AMERICA_SANTIAGO' | 'AMERICA_SANTO_DOMINGO' | 'AMERICA_SAO_PAULO' | 'AMERICA_SCORESBYSUND' | 'AMERICA_SITKA' | 'AMERICA_ST_BARTHELEMY' | 'AMERICA_ST_JOHNS' | 'AMERICA_ST_KITTS' | 'AMERICA_ST_LUCIA' | 'AMERICA_ST_THOMAS' | 'AMERICA_ST_VINCENT' | 'AMERICA_SWIFT_CURRENT' | 'AMERICA_TEGUCIGALPA' | 'AMERICA_THULE' | 'AMERICA_THUNDER_BAY' | 'AMERICA_TIJUANA' | 'AMERICA_TORONTO' | 'AMERICA_TORTOLA' | 'AMERICA_VANCOUVER' | 'AMERICA_WHITEHORSE' | 'AMERICA_WINNIPEG' | 'AMERICA_YAKUTAT' | 'AMERICA_YELLOWKNIFE' | 'ANTARCTICA_CASEY' | 'ANTARCTICA_DAVIS' | 'ANTARCTICA_DUMONT_D_URVILLE' | 'ANTARCTICA_MACQUARIE' | 'ANTARCTICA_MAWSON' | 'ANTARCTICA_MC_MURDO' | 'ANTARCTICA_PALMER' | 'ANTARCTICA_ROTHERA' | 'ANTARCTICA_SYOWA' | 'ANTARCTICA_TROLL' | 'ANTARCTICA_VOSTOK' | 'ARCTIC_LONGYEARBYEN' | 'ASIA_ADEN' | 'ASIA_ALMATY' | 'ASIA_AMMAN' | 'ASIA_ANADYR' | 'ASIA_AQTAU' | 'ASIA_AQTOBE' | 'ASIA_ASHGABAT' | 'ASIA_ATYRAU' | 'ASIA_BAGHDAD' | 'ASIA_BAHRAIN' | 'ASIA_BAKU' | 'ASIA_BANGKOK' | 'ASIA_BARNAUL' | 'ASIA_BEIRUT' | 'ASIA_BISHKEK' | 'ASIA_BRUNEI' | 'ASIA_CALCUTTA' | 'ASIA_CHITA' | 'ASIA_CHOIBALSAN' | 'ASIA_COLOMBO' | 'ASIA_DAMASCUS' | 'ASIA_DHAKA' | 'ASIA_DILI' | 'ASIA_DUBAI' | 'ASIA_DUSHANBE' | 'ASIA_FAMAGUSTA' | 'ASIA_GAZA' | 'ASIA_HEBRON' | 'ASIA_HONG_KONG' | 'ASIA_HOVD' | 'ASIA_IRKUTSK' | 'ASIA_JAKARTA' | 'ASIA_JAYAPURA' | 'ASIA_JERUSALEM' | 'ASIA_KABUL' | 'ASIA_KAMCHATKA' | 'ASIA_KARACHI' | 'ASIA_KATMANDU' | 'ASIA_KHANDYGA' | 'ASIA_KRASNOYARSK' | 'ASIA_KUALA_LUMPUR' | 'ASIA_KUCHING' | 'ASIA_KUWAIT' | 'ASIA_MACAU' | 'ASIA_MAGADAN' | 'ASIA_MAKASSAR' | 'ASIA_MANILA' | 'ASIA_MUSCAT' | 'ASIA_NICOSIA' | 'ASIA_NOVOKUZNETSK' | 'ASIA_NOVOSIBIRSK' | 'ASIA_OMSK' | 'ASIA_ORAL' | 'ASIA_PHNOM_PENH' | 'ASIA_PONTIANAK' | 'ASIA_PYONGYANG' | 'ASIA_QATAR' | 'ASIA_QOSTANAY' | 'ASIA_QYZYLORDA' | 'ASIA_RANGOON' | 'ASIA_RIYADH' | 'ASIA_SAIGON' | 'ASIA_SAKHALIN' | 'ASIA_SAMARKAND' | 'ASIA_SEOUL' | 'ASIA_SHANGHAI' | 'ASIA_SINGAPORE' | 'ASIA_SREDNEKOLYMSK' | 'ASIA_TAIPEI' | 'ASIA_TASHKENT' | 'ASIA_TBILISI' | 'ASIA_TEHRAN' | 'ASIA_THIMPHU' | 'ASIA_TOKYO' | 'ASIA_TOMSK' | 'ASIA_ULAANBAATAR' | 'ASIA_URUMQI' | 'ASIA_UST_NERA' | 'ASIA_VIENTIANE' | 'ASIA_VLADIVOSTOK' | 'ASIA_YAKUTSK' | 'ASIA_YEKATERINBURG' | 'ASIA_YEREVAN' | 'ATLANTIC_AZORES' | 'ATLANTIC_BERMUDA' | 'ATLANTIC_CANARY' | 'ATLANTIC_CAPE_VERDE' | 'ATLANTIC_FAEROE' | 'ATLANTIC_MADEIRA' | 'ATLANTIC_REYKJAVIK' | 'ATLANTIC_SOUTH_GEORGIA' | 'ATLANTIC_ST_HELENA' | 'ATLANTIC_STANLEY' | 'AUSTRALIA_ADELAIDE' | 'AUSTRALIA_BRISBANE' | 'AUSTRALIA_BROKEN_HILL' | 'AUSTRALIA_CURRIE' | 'AUSTRALIA_DARWIN' | 'AUSTRALIA_EUCLA' | 'AUSTRALIA_HOBART' | 'AUSTRALIA_LINDEMAN' | 'AUSTRALIA_LORD_HOWE' | 'AUSTRALIA_MELBOURNE' | 'AUSTRALIA_PERTH' | 'AUSTRALIA_SYDNEY' | 'EUROPE_AMSTERDAM' | 'EUROPE_ANDORRA' | 'EUROPE_ASTRAKHAN' | 'EUROPE_ATHENS' | 'EUROPE_BELGRADE' | 'EUROPE_BERLIN' | 'EUROPE_BRATISLAVA' | 'EUROPE_BRUSSELS' | 'EUROPE_BUCHAREST' | 'EUROPE_BUDAPEST' | 'EUROPE_BUSINGEN' | 'EUROPE_CHISINAU' | 'EUROPE_COPENHAGEN' | 'EUROPE_DUBLIN' | 'EUROPE_GIBRALTAR' | 'EUROPE_GUERNSEY' | 'EUROPE_HELSINKI' | 'EUROPE_ISLE_OF_MAN' | 'EUROPE_ISTANBUL' | 'EUROPE_JERSEY' | 'EUROPE_KALININGRAD' | 'EUROPE_KIEV' | 'EUROPE_KIROV' | 'EUROPE_LISBON' | 'EUROPE_LJUBLJANA' | 'EUROPE_LONDON' | 'EUROPE_LUXEMBOURG' | 'EUROPE_MADRID' | 'EUROPE_MALTA' | 'EUROPE_MARIEHAMN' | 'EUROPE_MINSK' | 'EUROPE_MONACO' | 'EUROPE_MOSCOW' | 'EUROPE_OSLO' | 'EUROPE_PARIS' | 'EUROPE_PODGORICA' | 'EUROPE_PRAGUE' | 'EUROPE_RIGA' | 'EUROPE_ROME' | 'EUROPE_SAMARA' | 'EUROPE_SAN_MARINO' | 'EUROPE_SARAJEVO' | 'EUROPE_SARATOV' | 'EUROPE_SIMFEROPOL' | 'EUROPE_SKOPJE' | 'EUROPE_SOFIA' | 'EUROPE_STOCKHOLM' | 'EUROPE_TALLINN' | 'EUROPE_TIRANE' | 'EUROPE_ULYANOVSK' | 'EUROPE_UZHGOROD' | 'EUROPE_VADUZ' | 'EUROPE_VATICAN' | 'EUROPE_VIENNA' | 'EUROPE_VILNIUS' | 'EUROPE_VOLGOGRAD' | 'EUROPE_WARSAW' | 'EUROPE_ZAGREB' | 'EUROPE_ZAPOROZHYE' | 'EUROPE_ZURICH' | 'INDIAN_ANTANANARIVO' | 'INDIAN_CHAGOS' | 'INDIAN_CHRISTMAS' | 'INDIAN_COCOS' | 'INDIAN_COMORO' | 'INDIAN_KERGUELEN' | 'INDIAN_MAHE' | 'INDIAN_MALDIVES' | 'INDIAN_MAURITIUS' | 'INDIAN_MAYOTTE' | 'INDIAN_REUNION' | 'PACIFIC_APIA' | 'PACIFIC_AUCKLAND' | 'PACIFIC_BOUGAINVILLE' | 'PACIFIC_CHATHAM' | 'PACIFIC_EASTER' | 'PACIFIC_EFATE' | 'PACIFIC_ENDERBURY' | 'PACIFIC_FAKAOFO' | 'PACIFIC_FIJI' | 'PACIFIC_FUNAFUTI' | 'PACIFIC_GALAPAGOS' | 'PACIFIC_GAMBIER' | 'PACIFIC_GUADALCANAL' | 'PACIFIC_GUAM' | 'PACIFIC_HONOLULU' | 'PACIFIC_JOHNSTON' | 'PACIFIC_KIRITIMATI' | 'PACIFIC_KOSRAE' | 'PACIFIC_KWAJALEIN' | 'PACIFIC_MAJURO' | 'PACIFIC_MARQUESAS' | 'PACIFIC_MIDWAY' | 'PACIFIC_NAURU' | 'PACIFIC_NIUE' | 'PACIFIC_NORFOLK' | 'PACIFIC_NOUMEA' | 'PACIFIC_PAGO_PAGO' | 'PACIFIC_PALAU' | 'PACIFIC_PITCAIRN' | 'PACIFIC_PONAPE' | 'PACIFIC_PORT_MORESBY' | 'PACIFIC_RAROTONGA' | 'PACIFIC_SAIPAN' | 'PACIFIC_TAHITI' | 'PACIFIC_TARAWA' | 'PACIFIC_TONGATAPU' | 'PACIFIC_TRUK' | 'PACIFIC_WAKE' | 'PACIFIC_WALLIS'; }; 'EvmAddress': unknown; 'ExpiredChallengeError': { kind: 'OBJECT'; name: 'ExpiredChallengeError'; fields: { 'reason': { name: 'reason'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; - 'FailedTransactionStatus': { kind: 'OBJECT'; name: 'FailedTransactionStatus'; fields: { 'blockTimestamp': { name: 'blockTimestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'reason': { name: 'reason'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; + 'FailedTransactionStatus': { kind: 'OBJECT'; name: 'FailedTransactionStatus'; fields: { 'blockTimestamp': { name: 'blockTimestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'reason': { name: 'reason'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'summary': { name: 'summary'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SubOperationStatus'; ofType: null; }; }; }; } }; }; }; 'FeeFollowRuleInput': { kind: 'INPUT_OBJECT'; name: 'FeeFollowRuleInput'; isOneOf: false; inputFields: [{ name: 'amount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'AmountInput'; ofType: null; }; }; defaultValue: null }]; }; 'Feed': { kind: 'OBJECT'; name: 'Feed'; fields: { 'address': { name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'metadata': { name: 'metadata'; type: { kind: 'OBJECT'; name: 'FeedMetadata'; ofType: null; } }; 'operations': { name: 'operations'; type: { kind: 'OBJECT'; name: 'LoggedInFeedPostOperations'; 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: 'FeedRulesConfig'; ofType: null; }; } }; }; }; 'FeedMetadata': { kind: 'OBJECT'; name: 'FeedMetadata'; fields: { 'description': { name: 'description'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'title': { name: 'title'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; @@ -187,7 +187,7 @@ export type introspection_types = { 'FeedsFilter': { kind: 'INPUT_OBJECT'; name: 'FeedsFilter'; 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: 'LATEST_FIRST' | 'OLDEST_FIRST' | 'ALPHABETICAL'; }; 'FeedsRequest': { kind: 'INPUT_OBJECT'; name: 'FeedsRequest'; isOneOf: false; inputFields: [{ name: 'filter'; type: { kind: 'INPUT_OBJECT'; name: 'FeedsFilter'; ofType: null; }; defaultValue: null }, { name: 'orderBy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'FeedsOrderBy'; ofType: null; }; }; defaultValue: "LATEST_FIRST" }, { 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; }; } }; }; }; + 'FinishedTransactionStatus': { kind: 'OBJECT'; name: 'FinishedTransactionStatus'; fields: { 'blockTimestamp': { name: 'blockTimestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'summary': { name: 'summary'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SubOperationStatus'; ofType: null; }; }; }; } }; }; }; 'Float': unknown; 'FollowNotification': { kind: 'OBJECT'; name: 'FollowNotification'; fields: { 'followers': { name: 'followers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'NotificationAccountFollow'; ofType: null; }; }; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'GeneratedNotificationId'; ofType: null; }; } }; }; }; 'FollowPair': { kind: 'INPUT_OBJECT'; name: 'FollowPair'; isOneOf: false; inputFields: [{ name: 'graph'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: "\"0x9e7085a6cc3A02F6026817997cE44B26Ba4Df557\"" }, { name: 'follower'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'account'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }]; }; @@ -244,6 +244,7 @@ export type introspection_types = { 'ID': unknown; 'IdToken': unknown; 'ImageMetadata': { kind: 'OBJECT'; name: 'ImageMetadata'; fields: { 'attachments': { name: 'attachments'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AnyMedia'; 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; }; }; }; } }; 'content': { name: 'content'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'contentWarning': { name: 'contentWarning'; type: { kind: 'ENUM'; name: 'ContentWarning'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'MetadataId'; ofType: null; }; } }; 'image': { name: 'image'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'MediaImage'; ofType: null; }; } }; 'locale': { name: 'locale'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Locale'; ofType: null; }; } }; 'mainContentFocus': { name: 'mainContentFocus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'MainContentFocus'; ofType: null; }; } }; 'tags': { name: 'tags'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Tag'; ofType: null; }; }; } }; 'title': { name: 'title'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; }; }; + 'IndexingStatus': { name: 'IndexingStatus'; enumValues: 'FINISHED' | 'PENDING' | 'FAILED'; }; 'Int': unknown; 'InvalidUsername': { kind: 'OBJECT'; name: 'InvalidUsername'; fields: { 'reason': { name: 'reason'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'IsFollowedByMeRequest': { kind: 'INPUT_OBJECT'; name: 'IsFollowedByMeRequest'; isOneOf: false; inputFields: [{ name: 'graph'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }]; }; @@ -343,7 +344,7 @@ export type introspection_types = { 'PaginatedTimelineResult': { kind: 'OBJECT'; name: 'PaginatedTimelineResult'; fields: { 'items': { name: 'items'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TimelineItem'; ofType: null; }; }; }; } }; 'pageInfo': { name: 'pageInfo'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedResultInfo'; ofType: null; }; } }; }; }; 'PaginatedUsernamesResult': { kind: 'OBJECT'; name: 'PaginatedUsernamesResult'; fields: { 'items': { name: 'items'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Username'; ofType: null; }; }; }; } }; 'pageInfo': { name: 'pageInfo'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaginatedResultInfo'; ofType: null; }; } }; }; }; 'PaymasterParams': { kind: 'OBJECT'; name: 'PaymasterParams'; fields: { 'paymaster': { name: 'paymaster'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'paymasterInput': { name: 'paymasterInput'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'BlockchainData'; ofType: null; }; } }; }; }; - 'PendingTransactionStatus': { kind: 'OBJECT'; name: 'PendingTransactionStatus'; fields: { 'blockTimestamp': { name: 'blockTimestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; + 'PendingTransactionStatus': { kind: 'OBJECT'; name: 'PendingTransactionStatus'; fields: { 'blockTimestamp': { name: 'blockTimestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'summary': { name: 'summary'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SubOperationStatus'; ofType: null; }; }; }; } }; }; }; 'PhysicalAddress': { kind: 'OBJECT'; name: 'PhysicalAddress'; fields: { 'country': { name: 'country'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'formatted': { name: 'formatted'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'locality': { name: 'locality'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'postalCode': { name: 'postalCode'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'region': { name: 'region'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'streetAddress': { name: 'streetAddress'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; }; }; 'Post': { kind: 'OBJECT'; name: 'Post'; fields: { 'actions': { name: 'actions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PostAction'; ofType: null; }; }; }; } }; 'app': { name: 'app'; type: { kind: 'OBJECT'; name: 'App'; ofType: null; } }; 'author': { name: 'author'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Account'; ofType: null; }; } }; 'commentOn': { name: 'commentOn'; type: { kind: 'OBJECT'; name: 'Post'; ofType: null; } }; 'feed': { name: 'feed'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Feed'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'PostId'; ofType: null; }; } }; 'isDeleted': { name: 'isDeleted'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'isEdited': { name: 'isEdited'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'mentions': { name: 'mentions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PostMention'; ofType: null; }; }; }; } }; 'metadata': { name: 'metadata'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PostMetadata'; ofType: null; }; } }; 'operations': { name: 'operations'; type: { kind: 'OBJECT'; name: 'LoggedInPostOperations'; ofType: null; } }; 'quoteOf': { name: 'quoteOf'; type: { kind: 'OBJECT'; name: 'Post'; ofType: null; } }; 'root': { name: 'root'; type: { kind: 'OBJECT'; name: 'Post'; ofType: null; } }; 'rules': { name: 'rules'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PostRulesConfig'; ofType: null; }; } }; 'slug': { name: 'slug'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'PostId'; ofType: null; }; } }; 'stats': { name: 'stats'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PostStats'; ofType: null; }; } }; 'timestamp': { name: 'timestamp'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'PostAccountPair': { kind: 'INPUT_OBJECT'; name: 'PostAccountPair'; isOneOf: false; inputFields: [{ name: 'post'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'PostId'; ofType: null; }; }; defaultValue: null }, { name: 'account'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }]; }; @@ -470,6 +471,7 @@ export type introspection_types = { 'StatsReactionRequest': { kind: 'INPUT_OBJECT'; name: 'StatsReactionRequest'; isOneOf: false; inputFields: [{ name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PostReactionType'; ofType: null; }; }; defaultValue: null }]; }; 'StoryMetadata': { kind: 'OBJECT'; name: 'StoryMetadata'; fields: { 'asset': { name: 'asset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AnyMedia'; 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; }; }; }; } }; 'content': { name: 'content'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'contentWarning': { name: 'contentWarning'; type: { kind: 'ENUM'; name: 'ContentWarning'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'MetadataId'; ofType: null; }; } }; 'locale': { name: 'locale'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Locale'; ofType: null; }; } }; 'mainContentFocus': { name: 'mainContentFocus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'MainContentFocus'; ofType: null; }; } }; 'tags': { name: 'tags'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Tag'; ofType: null; }; }; } }; }; }; 'String': unknown; + 'SubOperationStatus': { kind: 'OBJECT'; name: 'SubOperationStatus'; fields: { 'operation': { name: 'operation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'TransactionOperation'; ofType: null; }; } }; 'status': { name: 'status'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'IndexingStatus'; ofType: null; }; } }; }; }; 'SwitchAccountRequest': { kind: 'INPUT_OBJECT'; name: 'SwitchAccountRequest'; isOneOf: false; inputFields: [{ name: 'account'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }]; }; 'SwitchAccountResult': { kind: 'UNION'; name: 'SwitchAccountResult'; fields: {}; possibleTypes: 'AuthenticationTokens' | 'ForbiddenError'; }; 'Tag': unknown; @@ -490,6 +492,7 @@ export type introspection_types = { 'TokenGatedUsernameNamespaceRule': { kind: 'OBJECT'; name: 'TokenGatedUsernameNamespaceRule'; fields: { 'amount': { name: 'amount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Amount'; ofType: null; }; } }; 'rule': { name: 'rule'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'token': { name: 'token'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'tokenStandard': { name: 'tokenStandard'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'TokenStandard'; ofType: null; }; } }; 'typeId': { name: 'typeId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'BigInt'; ofType: null; }; } }; }; }; 'TokenStandard': { name: 'TokenStandard'; enumValues: 'ERC_20' | 'ERC_721' | 'ERC_1155'; }; 'TransactionMetadata': { kind: 'OBJECT'; name: 'TransactionMetadata'; fields: { 'attachments': { name: 'attachments'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AnyMedia'; 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; }; }; }; } }; 'chainId': { name: 'chainId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ChainId'; ofType: null; }; } }; 'content': { name: 'content'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'contentWarning': { name: 'contentWarning'; type: { kind: 'ENUM'; name: 'ContentWarning'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'MetadataId'; ofType: null; }; } }; 'locale': { name: 'locale'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Locale'; ofType: null; }; } }; 'mainContentFocus': { name: 'mainContentFocus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'MainContentFocus'; ofType: null; }; } }; 'tags': { name: 'tags'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Tag'; ofType: null; }; }; } }; 'txHash': { name: 'txHash'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'TransactionType'; ofType: null; }; } }; }; }; + 'TransactionOperation': { name: 'TransactionOperation'; enumValues: 'ACCESS_CONTROL_ROLE_GRANTED' | 'ACCESS_CONTROL_ROLE_REVOKED' | 'ACCESS_CONTROL_FACTORY_OWNER_ADMIN_DEPLOYMENT' | 'ACCOUNT_FACTORY_DEPLOYMENT' | 'ACCOUNT_MANAGER_ADDED' | 'ACCOUNT_MANAGER_REMOVED' | 'ACCOUNT_MANAGER_UPDATED' | 'ACCOUNT_OWNER_TRANSFERRED' | 'ACCOUNT_METADATA_URI_SET' | 'APP_FACTORY_DEPLOYMENT' | 'APP_ACCESS_CONTROL_ADDED' | 'APP_ACCESS_CONTROL_UPDATED' | 'APP_DEFAULT_FEED_SET' | 'APP_EXTRA_DATA_ADDED' | 'APP_EXTRA_DATA_REMOVED' | 'APP_EXTRA_DATA_UPDATED' | 'APP_FEED_ADDED' | 'APP_FEED_REMOVED' | 'APP_GRAPH_ADDED' | 'APP_GRAPH_REMOVED' | 'APP_GROUP_ADDED' | 'APP_GROUP_REMOVED' | 'APP_METADATA_URI_SET' | 'APP_SIGNER_ADDED' | 'APP_SIGNER_REMOVED' | 'APP_SOURCE_STAMP_VERIFICATION_SET' | 'APP_PAYMASTER_ADDED' | 'APP_PAYMASTER_REMOVED' | 'APP_TREASURY_SET' | 'APP_USERNAME_ADDED' | 'APP_USERNAME_REMOVED' | 'FEED_ACCESS_CONTROL_ADDED' | 'FEED_ACCESS_CONTROL_UPDATED' | 'FEED_EXTRA_DATA_ADDED' | 'FEED_EXTRA_DATA_REMOVED' | 'FEED_EXTRA_DATA_UPDATED' | 'FEED_METADATA_URI_SET' | 'FEED_POST_CREATED' | 'FEED_POST_DELETED' | 'FEED_POST_EDITED' | 'GRAPH_FACTORY_DEPLOYMENT' | 'GRAPH_ACCESS_CONTROL_ADDED' | 'GRAPH_ACCESS_CONTROL_UPDATED' | 'GRAPH_EXTRA_DATA_ADDED' | 'GRAPH_EXTRA_DATA_REMOVED' | 'GRAPH_EXTRA_DATA_UPDATED' | 'GRAPH_FOLLOWED' | 'GRAPH_METADATA_URI_SET' | 'GRAPH_UNFOLLOWED' | 'GROUP_FACTORY_DEPLOYMENT' | 'GROUP_MEMBER_JOINED' | 'GROUP_MEMBER_LEFT' | 'GROUP_MEMBER_REMOVED' | 'GROUP_ACCESS_CONTROL_ADDED' | 'GROUP_ACCESS_CONTROL_UPDATED' | 'GROUP_EXTRA_DATA_ADDED' | 'GROUP_EXTRA_DATA_REMOVED' | 'GROUP_EXTRA_DATA_UPDATED' | 'GROUP_METADATA_URI_SET' | 'SPONSOR_FREE_PAYMASTER_CREATED' | 'SPONSOR_ADDED_TO_APPROVED_SIGNERS' | 'SPONSOR_METADATA_URI_CHANGED' | 'USERNAME_ASSIGNED' | 'USERNAME_CREATED' | 'USERNAME_FACTORY_DEPLOYMENT' | 'USERNAME_REMOVED' | 'USERNAME_UNASSIGNED' | 'USERNAME_ACCESS_CONTROL_ADDED' | 'USERNAME_ACCESS_CONTROL_UPDATED' | 'USERNAME_EXTRA_DATA_ADDED' | 'USERNAME_EXTRA_DATA_REMOVED' | 'USERNAME_EXTRA_DATA_UPDATED' | 'USERNAME_METADATA_URI_SET' | 'SPONSORSHIP_ACCESS_CONTROL_ADDED' | 'SPONSORSHIP_ACCESS_CONTROL_UPDATED' | 'SPONSORSHIP_ADDED_TO_EXCLUSION_LIST' | 'SPONSORSHIP_REMOVED_FROM_EXCLUSION_LIST' | 'SPONSORSHIP_FACTORY_DEPLOYMENT' | 'SPONSORSHIP_FUNDS_SPENT' | 'SPONSORSHIP_GRANT_REVOKED' | 'SPONSORSHIP_GRANTED_FUNDS' | 'SPONSORSHIP_METADATA_URI_SET' | 'SPONSORSHIP_PAUSED' | 'SPONSORSHIP_RATE_LIMITS_CHANGED' | 'SPONSORSHIP_UNPAUSED' | 'SPONSORSHIP_SIGNER_ADDED' | 'SPONSORSHIP_SIGNER_REMOVED' | 'FEED_FACTORY_DEPLOYMENT'; }; 'TransactionStatusRequest': { kind: 'INPUT_OBJECT'; name: 'TransactionStatusRequest'; isOneOf: false; inputFields: [{ name: 'txHash'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'TxHash'; ofType: null; }; }; defaultValue: null }]; }; 'TransactionStatusResult': { kind: 'UNION'; name: 'TransactionStatusResult'; fields: {}; possibleTypes: 'FailedTransactionStatus' | 'FinishedTransactionStatus' | 'NotIndexedYetStatus' | 'PendingTransactionStatus'; }; 'TransactionType': { name: 'TransactionType'; enumValues: 'ERC_721' | 'ERC_20' | 'OTHER'; }; diff --git a/packages/graphql/src/graphql.ts b/packages/graphql/src/graphql.ts index 299cbdd0a..7dff705a4 100644 --- a/packages/graphql/src/graphql.ts +++ b/packages/graphql/src/graphql.ts @@ -34,6 +34,7 @@ import type { AccountReportReason, AccountsOrderBy, AppMetadataLensPlatformsItem, + AppUsersOrderBy, AppsOrderBy, BlockErrorType, ContentWarning, @@ -47,6 +48,7 @@ import type { GraphsOrderBy, GroupMembersOrderBy, GroupsOrderBy, + IndexingStatus, MainContentFocus, ManagedAccountsVisibility, MediaAudioKind, @@ -75,6 +77,7 @@ import type { ThreeDAssetFormat, TimelineEventItemType, TokenStandard, + TransactionOperation, TransactionType, UnblockErrorType, WhoActedOnPostOrderBy, @@ -92,6 +95,7 @@ export const graphql = initGraphQLTada<{ AccountsOrderBy: AccountsOrderBy; AppMetadataLensPlatformsItem: AppMetadataLensPlatformsItem; AppsOrderBy: AppsOrderBy; + AppUsersOrderBy: AppUsersOrderBy; BigDecimal: BigDecimal; BigInt: BigIntString; BlockchainData: BlockchainData; @@ -115,6 +119,7 @@ export const graphql = initGraphQLTada<{ GroupsOrderBy: GroupsOrderBy; ID: ID; IdToken: IdToken; + IndexingStatus: IndexingStatus; Int: number; LegacyProfileId: LegacyProfileId; LegacyRefreshToken: CompactJwt; @@ -151,6 +156,7 @@ export const graphql = initGraphQLTada<{ ThreeDAssetFormat: ThreeDAssetFormat; TimelineEventItemType: TimelineEventItemType; TokenStandard: TokenStandard; + TransactionOperation: TransactionOperation; TransactionType: TransactionType; TxHash: TxHash; URI: URI; diff --git a/packages/graphql/src/transactions.ts b/packages/graphql/src/transactions.ts index a80fd3254..6c865c184 100644 --- a/packages/graphql/src/transactions.ts +++ b/packages/graphql/src/transactions.ts @@ -1,11 +1,24 @@ import type { FragmentOf } from 'gql.tada'; import { type RequestOf, graphql } from './graphql'; +const SubOperationStatusFragment = graphql( + `fragment SubOperationStatus on SubOperationStatus { + __typename + operation + status + }`, +); +export type SubOperationStatus = FragmentOf; + const PendingTransactionStatusFragment = graphql( `fragment PendingTransactionStatus on PendingTransactionStatus { __typename blockTimestamp + summary { + ...SubOperationStatus + } }`, + [SubOperationStatusFragment], ); export type PendingTransactionStatus = FragmentOf; @@ -13,7 +26,11 @@ const FinishedTransactionStatusFragment = graphql( `fragment FinishedTransactionStatus on FinishedTransactionStatus { __typename blockTimestamp + summary { + ...SubOperationStatus + } }`, + [SubOperationStatusFragment], ); export type FinishedTransactionStatus = FragmentOf; @@ -22,7 +39,11 @@ const FailedTransactionStatusFragment = graphql( __typename blockTimestamp reason + summary { + ...SubOperationStatus + } }`, + [SubOperationStatusFragment], ); export type FailedTransactionStatus = FragmentOf; @@ -30,6 +51,7 @@ const NotIndexedYetStatusFragment = graphql( `fragment NotIndexedYetStatus on NotIndexedYetStatus { __typename reason + txHasMined }`, ); export type NotIndexedYetStatus = FragmentOf; From 8d193f8d59f45b67da798e48e5e1eb125777dfb0 Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Fri, 10 Jan 2025 14:48:09 +0100 Subject: [PATCH 5/5] Fix description --- packages/client/src/actions/accountManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/actions/accountManager.ts b/packages/client/src/actions/accountManager.ts index 0f769c3c0..bd25cc5d9 100644 --- a/packages/client/src/actions/accountManager.ts +++ b/packages/client/src/actions/accountManager.ts @@ -63,7 +63,7 @@ export function addAccountManager( } /** - * Add an account manager to the authenticated account. + * Remove manager from the authenticated account. * * ```ts * const result = await removeAccountManager(sessionClient, {