From 5b34ec651f3aa120f57821bdcc79925d9a5b132e Mon Sep 17 00:00:00 2001 From: Bigint <69431456+bigint@users.noreply.github.com> Date: Sun, 26 Jan 2025 11:14:23 +0530 Subject: [PATCH] Migrate to Lens v3 --- .vscode/settings.json | 2 +- .../components/Post/Actions/Share/Quote.tsx | 6 +- .../components/Post/Actions/Share/Repost.tsx | 5 - .../Settings/Handles/LinkHandle.tsx | 2 +- packages/indexer/generated.ts | 999 ++++++++++-------- 5 files changed, 546 insertions(+), 468 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d23bc3b87520..ef94f3685696 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,7 @@ "editor.defaultFormatter": "biomejs.biome" }, "[typescriptreact]": { - "editor.defaultFormatter": "biomejs.biome" + "editor.defaultFormatter": "vscode.typescript-language-features" }, "[markdown]": { "editor.defaultFormatter": "DavidAnson.vscode-markdownlint" diff --git a/apps/web/src/components/Post/Actions/Share/Quote.tsx b/apps/web/src/components/Post/Actions/Share/Quote.tsx index 950eba39a2bc..ed935b207eee 100644 --- a/apps/web/src/components/Post/Actions/Share/Quote.tsx +++ b/apps/web/src/components/Post/Actions/Share/Quote.tsx @@ -1,7 +1,7 @@ import { MenuItem } from "@headlessui/react"; import { ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline"; import { Errors } from "@hey/data/errors"; -import { type Post, TriStateValue } from "@hey/indexer"; +import { type Post } from "@hey/indexer"; import cn from "@hey/ui/cn"; import type { FC } from "react"; import toast from "react-hot-toast"; @@ -20,10 +20,6 @@ const Quote: FC = ({ post }) => { const { setQuotedPost } = usePostStore(); const { isSuspended } = useAccountStatus(); - if (post.operations?.canQuote === TriStateValue.No) { - return null; - } - return ( = ({ isLoading, post, setIsLoading }) => { onError }); - if (post.operations?.canRepost === TriStateValue.No) { - return null; - } - const handleCreateRepost = async () => { if (!currentAccount) { return toast.error(Errors.SignWallet); diff --git a/apps/web/src/components/Settings/Handles/LinkHandle.tsx b/apps/web/src/components/Settings/Handles/LinkHandle.tsx index a0b2b9b58f7e..f2fdfc9cccf9 100644 --- a/apps/web/src/components/Settings/Handles/LinkHandle.tsx +++ b/apps/web/src/components/Settings/Handles/LinkHandle.tsx @@ -43,7 +43,7 @@ const LinkHandle: FC = () => { }; const { data, loading } = useUsernamesQuery({ - variables: { request: { owner: currentAccount?.owner } } + variables: { request: { filter: { owner: currentAccount?.owner } } } }); const [assignUsernameToAccount] = useAssignUsernameToAccountMutation({ diff --git a/packages/indexer/generated.ts b/packages/indexer/generated.ts index 17d011666eff..90411722b0b6 100644 --- a/packages/indexer/generated.ts +++ b/packages/indexer/generated.ts @@ -16,20 +16,18 @@ export type Scalars = { Int: { input: number; output: number; } Float: { input: number; output: number; } AccessToken: { input: any; output: any; } - AdvancedContractConditionValue: { input: any; output: any; } BigDecimal: { input: any; output: any; } BigInt: { input: any; output: any; } BlockchainData: { input: any; output: any; } ChainId: { input: any; output: any; } Cursor: { input: any; output: any; } DateTime: { input: any; output: any; } - Encryptable: { input: any; output: any; } EvmAddress: { input: any; output: any; } GeneratedNotificationId: { input: any; output: any; } + GeoUri: { input: any; output: any; } IdToken: { input: any; output: any; } JSON: { input: any; output: any; } LegacyProfileId: { input: any; output: any; } - LegacyPublicationId: { input: any; output: any; } LegacyRefreshToken: { input: any; output: any; } Locale: { input: any; output: any; } MetadataId: { input: any; output: any; } @@ -46,19 +44,6 @@ export type Scalars = { Void: { input: any; output: any; } }; -/** The comparison operator to use. In case of boolean functions you can only use EQUAL or NOT_EQUAL */ -export enum AccessConditionComparison { - Equal = 'EQUAL', - GreaterThan = 'GREATER_THAN', - GreaterThanOrEqual = 'GREATER_THAN_OR_EQUAL', - LessThan = 'LESS_THAN', - LessThanOrEqual = 'LESS_THAN_OR_EQUAL', - NotEqual = 'NOT_EQUAL' -} - -/** AccessConditionType */ -export type AccessConditionType = AdvancedContractCondition | CollectCondition | EoaOwnershipCondition | Erc20OwnershipCondition | FollowCondition | NftOwnershipCondition | ProfileOwnershipCondition; - export type Account = { __typename?: 'Account'; address: Scalars['EvmAddress']['output']; @@ -130,11 +115,16 @@ export type AccountFeedsStats = { reposts: Scalars['Int']['output']; }; +export type AccountFeedsStatsFilter = { + /** The feeds to filter by. */ + feeds?: InputMaybe>; +}; + export type AccountFeedsStatsRequest = { /** The account to get stats for. */ account: Scalars['EvmAddress']['input']; - /** The feeds to get stats for. */ - forFeeds?: Array; + /** An optional filter to apply to the result. */ + filter?: InputMaybe; }; export type AccountFollowedNotificationAttributes = { @@ -152,11 +142,16 @@ export type AccountGraphsFollowStats = { following: Scalars['Int']['output']; }; +export type AccountGraphsStatsFilter = { + /** The graphs to filter by. */ + graphs?: InputMaybe>; +}; + export type AccountGraphsStatsRequest = { /** The account to get stats for. */ account: Scalars['EvmAddress']['input']; - /** The graphs to get stats for. */ - forGraphs?: Array; + /** An optional filter to apply to the result. */ + filter?: InputMaybe; }; export type AccountManaged = { @@ -553,29 +548,6 @@ export type AdminsForRequest = { pageSize?: PageSize; }; -export type AdvancedContractCondition = { - __typename?: 'AdvancedContractCondition'; - /** The contract ABI. Has to be in human readable single string format containing the signature of the function you want to call. See https://docs.ethers.org/v5/api/utils/abi/formats/#abi-formats--human-readable-abi for more info */ - abi: Scalars['String']['output']; - /** - * The comparison operator to use. In case of boolean functions you can only use EQUAL or - * NOT_EQUAL - */ - comparison: AccessConditionComparison; - contract: NetworkAddress; - /** The name of the function you want to call */ - functionName: Scalars['String']['output']; - /** - * The parameters to pass to the function. Must be exactly matching the function arguments. - * You *must* pass in the `:userAddress` parameter to represent the decrypter address. Any - * array or tuple arguments, must be stringified JSON arrays. - */ - params: Array; - type: Scalars['String']['output']; - /** The comparison value. Accepts 'true', 'false' or a number */ - value: Scalars['AdvancedContractConditionValue']['output']; -}; - export type Amount = { __typename?: 'Amount'; asset: Asset; @@ -599,31 +571,7 @@ export type AmountInput = { value: Scalars['BigDecimal']['input']; }; -/** AccessConditionCriteriaItem */ -export type AnyAccessCondition = AdvancedContractCondition | BooleanAndCondition | BooleanOrCondition | CollectCondition | EoaOwnershipCondition | Erc20OwnershipCondition | FollowCondition | NftOwnershipCondition | ProfileOwnershipCondition; - -/** - * AnyMedia - * - *
JSON schema - * - * ```json - * { - * "anyOf": [ - * { - * "$ref": "#/$defs/MediaAudio" - * }, - * { - * "$ref": "#/$defs/MediaImage" - * }, - * { - * "$ref": "#/$defs/MediaVideo" - * } - * ] - * } - * ``` - *
- */ +/** AnyMedia */ export type AnyMedia = MediaAudio | MediaImage | MediaVideo; export type AnyPost = Post | Repost; @@ -677,7 +625,7 @@ export type AppMetadata = { /** The name of the app. */ name: Scalars['String']['output']; /** The platforms supported by the app. */ - platforms: Array; + platforms: Array; /** The privacy policy for the app. */ privacyPolicy?: Maybe; /** The tagline of the app. */ @@ -688,7 +636,7 @@ export type AppMetadata = { url: Scalars['URI']['output']; }; -export enum AppMetadataLensPlatformsItem { +export enum AppPlatform { Android = 'ANDROID', Ios = 'IOS', Web = 'WEB' @@ -791,6 +739,7 @@ export enum AppsOrderBy { export type AppsRequest = { /** The cursor. */ cursor?: InputMaybe; + /** The optional apps filter */ filter?: InputMaybe; /** The order by. */ orderBy?: AppsOrderBy; @@ -814,10 +763,9 @@ export type ArticleMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -852,10 +800,9 @@ export type AudioMetadata = { */ attributes: Array; audio: MediaAudio; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -931,18 +878,6 @@ export type BookmarkPostRequest = { post: Scalars['PostId']['input']; }; -export type BooleanAndCondition = { - __typename?: 'BooleanAndCondition'; - criteria: Array; - type: Scalars['String']['output']; -}; - -export type BooleanOrCondition = { - __typename?: 'BooleanOrCondition'; - criteria: Array; - type: Scalars['String']['output']; -}; - export type BooleanValue = { __typename?: 'BooleanValue'; onChain: Scalars['Boolean']['output']; @@ -1002,18 +937,17 @@ export type CheckingInMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** Where you're checking in from (free form text). */ - location: Scalars['Encryptable']['output']; + location: Scalars['String']['output']; /** The main focus of the post. */ mainContentFocus: MainContentFocus; /** The optional geographic position of the location. */ - position?: Maybe; + position?: Maybe; /** An arbitrary list of tags. */ tags?: Maybe>; }; @@ -1022,14 +956,6 @@ export type CollectActionInput = { simpleCollectAction?: InputMaybe; }; -/** CollectCondition */ -export type CollectCondition = { - __typename?: 'CollectCondition'; - publicationId: Scalars['LegacyPublicationId']['output']; - thisPublication: Scalars['Boolean']['output']; - type: Scalars['String']['output']; -}; - export type CommentNotification = { __typename?: 'CommentNotification'; comment: Post; @@ -1059,7 +985,7 @@ export type CreateAccountWithUsernameRequest = { export type CreateAccountWithUsernameResult = CreateAccountResponse | InvalidUsername | SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; export type CreateAppRequest = { - /** Any admins who need to manage this app also */ + /** List of admins who can manage this app */ admins?: InputMaybe>; /** The default feed defaults to use the global feed */ defaultFeed?: Scalars['EvmAddress']['input']; @@ -1080,8 +1006,9 @@ export type CreateAppRequest = { /** The app treasury leave empty if none */ treasury?: InputMaybe; /** - * If the app has verification enabled meaning - * you can only do stuff with the app if its signed by one of the signers + * Whether the App Verification workflow is enabled. + * This gives control to approve or reject transactions involving + * social interactions (e.g., post, follow, comment, etc.) using the app. */ verification?: Scalars['Boolean']['input']; }; @@ -1094,7 +1021,7 @@ export type CreateAppResponse = { export type CreateAppResult = CreateAppResponse | SelfFundedTransactionRequest | TransactionWillFail; export type CreateFeedRequest = { - /** Any admins who need to manage this feed */ + /** List of admins who can manage this feed */ admins?: InputMaybe>; /** The feed metadata uri */ metadataUri?: InputMaybe; @@ -1119,7 +1046,7 @@ export type CreateFollowRequest = { }; export type CreateGraphRequest = { - /** Any admins who need to manage this graph */ + /** List of admins who can manage this graph */ admins?: InputMaybe>; /** The graph metadata uri */ metadataUri?: InputMaybe; @@ -1133,7 +1060,7 @@ export type CreateGraphResponse = { export type CreateGraphResult = CreateGraphResponse | SelfFundedTransactionRequest | TransactionWillFail; export type CreateGroupRequest = { - /** Any admins who need to manage this group */ + /** List of admins who can manage this group */ admins?: InputMaybe>; /** The group metadata uri */ metadataUri?: InputMaybe; @@ -1187,6 +1114,32 @@ export type CreateSnsSubscriptionRequest = { webhook: Scalars['String']['input']; }; +export type CreateSponsorshipRequest = { + /** List of admins who can manage this sponsorship. */ + admins?: InputMaybe>; + /** + * Indicates whether the Lens API is authorized as the sponsorship signer + * to sponsor end-user social operations (e.g., posts, comments, follows) + * performed through the Lens API for apps associated with this sponsorship. + */ + allowLensAccess: Scalars['Boolean']['input']; + /** The list of addresses excluded from the sponsorship rate limits. */ + exclusionList?: Array; + /** The sponsorship metadata URI */ + metadataUri?: InputMaybe; + /** The sponsorship usage allowances with the corresponding limits. */ + rateLimit?: InputMaybe; + /** List of sponsorship signers. */ + signers?: InputMaybe>; +}; + +export type CreateSponsorshipResponse = { + __typename?: 'CreateSponsorshipResponse'; + hash: Scalars['TxHash']['output']; +}; + +export type CreateSponsorshipResult = CreateSponsorshipResponse | SelfFundedTransactionRequest | TransactionWillFail; + export type CreateUnfollowRequest = { /** The account to unfollow. */ account: Scalars['EvmAddress']['input']; @@ -1200,7 +1153,7 @@ export type CreateUnfollowRequest = { }; export type CreateUsernameNamespaceRequest = { - /** Any admins who need to manage this feed */ + /** List of admins who can manage this feed */ admins?: InputMaybe>; /** The feed metadata uri */ metadataUri?: InputMaybe; @@ -1240,16 +1193,6 @@ export type DebugPostMetadataResult = { valid: Scalars['Boolean']['output']; }; -export type DebugTransactionStatusRequest = { - txHash: Scalars['TxHash']['input']; -}; - -export type DebugTransactionStatusResult = { - __typename?: 'DebugTransactionStatusResult'; - blockExplorer?: Maybe; - reason: Scalars['String']['output']; -}; - export type DeletePostRequest = { /** If needed, the feed rule data required to accomplish the deletion. */ feedRules?: InputMaybe; @@ -1355,12 +1298,11 @@ export type EmbedMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; /** The embed URL. */ - embed: Scalars['Encryptable']['output']; - encryptedWith?: Maybe; + embed: Scalars['URI']['output']; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -1371,8 +1313,6 @@ export type EmbedMetadata = { export type EnableSignlessResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; -export type EncryptionStrategy = LitProtocolEncryptionStrategy; - export type EntityId = { account?: InputMaybe; app?: InputMaybe; @@ -1395,13 +1335,6 @@ export enum EntityType { UsernameNamespace = 'USERNAME_NAMESPACE' } -/** EoaOwnershipCondition */ -export type EoaOwnershipCondition = { - __typename?: 'EoaOwnershipCondition'; - address: Scalars['EvmAddress']['output']; - type: Scalars['String']['output']; -}; - export type Erc20 = { __typename?: 'Erc20'; contract: NetworkAddress; @@ -1410,14 +1343,6 @@ export type Erc20 = { symbol: Scalars['String']['output']; }; -/** Erc20OwnershipCondition */ -export type Erc20OwnershipCondition = { - __typename?: 'Erc20OwnershipCondition'; - amount: Amount; - condition: AccessConditionComparison; - type: Scalars['String']['output']; -}; - export type EventMetadata = { __typename?: 'EventMetadata'; /** The address of the event. */ @@ -1430,25 +1355,24 @@ export type EventMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; /** The event end time (ISO 8601 `YYYY-MM-DDTHH:mm:ss.sssZ`). */ - endsAt: Scalars['Encryptable']['output']; + endsAt: Scalars['DateTime']['output']; id: Scalars['MetadataId']['output']; /** The links you want to include with it. */ - links: Array; + links: Array; locale: Scalars['Locale']['output']; /** The location of the event. */ location: EventMetadataLensLocation; /** The main focus of the post. */ mainContentFocus: MainContentFocus; /** The geographic position of the event. */ - position?: Maybe; + position?: Maybe; schedulingAdjustments?: Maybe; /** The event start time (ISO 8601 `YYYY-MM-DDTHH:mm:ss.sssZ`). */ - startsAt: Scalars['Encryptable']['output']; + startsAt: Scalars['DateTime']['output']; /** An arbitrary list of tags. */ tags?: Maybe>; /** The title of the event. */ @@ -1457,7 +1381,7 @@ export type EventMetadata = { export type EventMetadataLensLocation = { __typename?: 'EventMetadataLensLocation'; - physical?: Maybe; + physical?: Maybe; virtual?: Maybe; }; @@ -1955,6 +1879,12 @@ export type FeedMetadata = { title: Scalars['String']['output']; }; +export type FeedOneOf = { + app?: InputMaybe; + feed?: InputMaybe; + globalFeed?: InputMaybe; +}; + export type FeedRequest = { /** The feed */ feed?: InputMaybe; @@ -2011,13 +1941,6 @@ export type FinishedTransactionStatus = { summary: Array; }; -/** FollowCondition */ -export type FollowCondition = { - __typename?: 'FollowCondition'; - follow: Scalars['LegacyProfileId']['output']; - type: Scalars['String']['output']; -}; - export type FollowNotification = { __typename?: 'FollowNotification'; followers: Array; @@ -2071,6 +1994,8 @@ export type Follower = { followedOn: Scalars['DateTime']['output']; /** The account which is following */ follower: Account; + /** The graph the follower is following on */ + graph: Scalars['EvmAddress']['output']; }; export type FollowerOnlyPostRule = { @@ -2082,6 +2007,14 @@ export type FollowerOnlyPostRule = { rule: Scalars['EvmAddress']['output']; }; +export type FollowersFilter = { + /** + * The graphs to filter by. + * The result will come back if they follow on ANY of the supplied graphs + */ + graphs?: InputMaybe>; +}; + export enum FollowersOrderBy { AccountScore = 'ACCOUNT_SCORE', Asc = 'ASC', @@ -2093,17 +2026,22 @@ export type FollowersRequest = { account: Scalars['EvmAddress']['input']; /** The cursor. */ cursor?: InputMaybe; - /** - * The graphs to get followers for - * The result will come back if they follow on ANY of the supplied graphs - */ - forGraphs?: Array; + /** An optional filter to apply to the result. */ + filter?: InputMaybe; /** The order by. */ orderBy?: FollowersOrderBy; /** The page size. */ pageSize?: PageSize; }; +export type FollowersYouKnowFilter = { + /** + * The graphs to get followers you know for + * The result will come back if they follow on ANY of the supplied graphs + */ + graphs?: InputMaybe>; +}; + export enum FollowersYouKnowOrderBy { Asc = 'ASC', Desc = 'DESC' @@ -2112,11 +2050,8 @@ export enum FollowersYouKnowOrderBy { export type FollowersYouKnowRequest = { /** The cursor. */ cursor?: InputMaybe; - /** - * The graphs to get followers you know for - * The result will come back if they follow on ANY of the supplied graphs - */ - forGraphs?: Array; + /** An optional filter to apply to the result. */ + filter?: InputMaybe; /** The account you are looking from. */ observer: Scalars['EvmAddress']['input']; /** The order by. */ @@ -2133,6 +2068,16 @@ export type Following = { followedOn: Scalars['DateTime']['output']; /** The account which is following */ following: Account; + /** The graph the account is following on */ + graph: Scalars['EvmAddress']['output']; +}; + +export type FollowingFilter = { + /** + * The graphs to filter by. + * The result will come back if they are following on ANY of the supplied graphs + */ + graphs?: InputMaybe>; }; export enum FollowingOrderBy { @@ -2146,11 +2091,8 @@ export type FollowingRequest = { account: Scalars['EvmAddress']['input']; /** The cursor. */ cursor?: InputMaybe; - /** - * The graphs to get following for. - * The result will come back if they are following on ANY of the supplied graphs - */ - forGraphs?: Array; + /** An optional filter to apply to the result. */ + filter?: InputMaybe; /** The order by. */ orderBy?: FollowingOrderBy; /** The page size. */ @@ -2210,6 +2152,12 @@ export type GraphMetadata = { title: Scalars['String']['output']; }; +export type GraphOneOf = { + app?: InputMaybe; + globalGraph?: InputMaybe; + graph?: InputMaybe; +}; + export type GraphRequest = { /** The graph */ graph?: InputMaybe; @@ -2410,10 +2358,9 @@ export type ImageMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; image: MediaImage; locale: Scalars['Locale']['output']; @@ -2507,27 +2454,19 @@ export type LinkMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ mainContentFocus: MainContentFocus; /** The sharing link url. */ - sharingLink: Scalars['Encryptable']['output']; + sharingLink: Scalars['URI']['output']; /** An arbitrary list of tags. */ tags?: Maybe>; }; -export type LitProtocolEncryptionStrategy = { - __typename?: 'LitProtocolEncryptionStrategy'; - accessCondition: TopLevelAccessCondition; - encryptedPaths: Array; - encryptionKey: Scalars['String']['output']; -}; - export type LivestreamMetadata = { __typename?: 'LivestreamMetadata'; /** The other attachments you want to include with it. */ @@ -2542,19 +2481,18 @@ export type LivestreamMetadata = { * The data cannot be changed so you can put in an API endpoint to know if it is still live or * not for clients to be able to check. */ - checkLiveApi?: Maybe; - content: Scalars['Encryptable']['output']; + checkLiveApi?: Maybe; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; /** The optional stream end time (ISO 8601 `YYYY-MM-DDTHH:mm:ss.sssZ`) */ - endsAt?: Maybe; + endsAt?: Maybe; id: Scalars['MetadataId']['output']; /** * Some livestream platforms have the live url as a separate url. If not your case make sure * `liveUrl` and `playbackUrl` are the same. */ - liveUrl: Scalars['Encryptable']['output']; + liveUrl: Scalars['URI']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ mainContentFocus: MainContentFocus; @@ -2562,9 +2500,9 @@ export type LivestreamMetadata = { * Some livestream platforms have the playback url as a separate url. If not your case make * sure `liveUrl` and `playbackUrl` are the same. */ - playbackUrl: Scalars['Encryptable']['output']; + playbackUrl: Scalars['URI']['output']; /** The stream start time (ISO 8601 `YYYY-MM-DDTHH:mm:ss.sssZ`). */ - startsAt: Scalars['Encryptable']['output']; + startsAt: Scalars['DateTime']['output']; /** An arbitrary list of tags. */ tags?: Maybe>; /** The livestream title. */ @@ -2577,18 +2515,14 @@ export type LoggedInAccountOperations = { /** * Check if the authenticated account can follow the target account. * - * If a graph is not specified: - * - It first checks for a Graph address specified within the query scope. - * - If no Graph address is found, it defaults to using the Global Graph. + * If a graph is not specified it defaults to using the Global Graph */ canFollow: OperationValidationOutcome; canUnblock: Scalars['Boolean']['output']; /** * Check if the authenticated account can unfollow the target account. * - * If a graph is not specified: - * - It first checks for a Graph address specified within the query scope. - * - If no Graph address is found, it defaults to using the Global Graph. + * If a graph is not specified it defaults to using the Global Graph */ canUnfollow: OperationValidationOutcome; hasBlockedMe: Scalars['Boolean']['output']; @@ -2598,17 +2532,13 @@ export type LoggedInAccountOperations = { /** * Check if the target account is followed by the authenticated account. * - * If a graph is not specified: - * - It first checks for a Graph address specified within the query scope. - * - If no Graph address is found, it defaults to using the Global Graph. + * If a graph is not specified it defaults to using the Global Graph */ isFollowedByMe: Scalars['Boolean']['output']; /** * Check if the authenticated account is following the target account. * - * If a graph is not specified: - * - It first checks for a Graph address specified within the query scope. - * - If no Graph address is found, it defaults to using the Global Graph. + * If a graph is not specified it defaults to using the Global Graph */ isFollowingMe: Scalars['Boolean']['output']; isMutedByMe: Scalars['Boolean']['output']; @@ -2708,9 +2638,9 @@ export enum ManagedAccountsVisibility { } export type ManagedBy = { - /** The address for a user to see what apps they manage. */ + /** The address that is either the owner or an admin of the primitive. */ address: Scalars['EvmAddress']['input']; - /** Whether to include the apps which is owned by the address. */ + /** Whether to include the owned primitives or just the ones the address is an admin of. */ includeOwners?: Scalars['Boolean']['input']; }; @@ -2728,142 +2658,35 @@ export type MeResult = { loggedInAs: AccountAvailable; }; -/** - * MediaAudio - * - *
JSON schema - * - * ```json - * { - * "type": "object", - * "required": [ - * "item", - * "type" - * ], - * "properties": { - * "artist": { - * "description": "The name of the artist.", - * "$ref": "#/$defs/EncryptableString" - * }, - * "attributes": { - * "description": "A bag of attributes that can be used to store any kind of metadata that is not currently supported by the standard.", - * "type": "array", - * "items": { - * "$ref": "#/$defs/MetadataAttribute" - * }, - * "minItems": 1 - * }, - * "cover": { - * "$ref": "#/$defs/EncryptableUri" - * }, - * "credits": { - * "description": "The credits for the audio.", - * "$ref": "#/$defs/EncryptableString" - * }, - * "duration": { - * "description": "How long the the audio is in seconds.", - * "type": "integer", - * "exclusiveMinimum": 0.0 - * }, - * "genre": { - * "description": "The genre of the audio", - * "$ref": "#/$defs/EncryptableString" - * }, - * "item": { - * "$ref": "#/$defs/EncryptableUri" - * }, - * "kind": { - * "description": "The type of audio.", - * "type": "string", - * "enum": [ - * "MUSIC", - * "PODCAST", - * "AUDIOBOOK", - * "VOICE_NOTE", - * "SOUND", - * "OTHER" - * ] - * }, - * "license": { - * "description": "The license for the audio.", - * "$ref": "#/$defs/MetadataLicenseType" - * }, - * "lyrics": { - * "$ref": "#/$defs/EncryptableUri" - * }, - * "recordLabel": { - * "description": "The record label for the audio.", - * "$ref": "#/$defs/EncryptableString" - * }, - * "type": { - * "description": "The mime type of the audio file.", - * "type": "string", - * "enum": [ - * "audio/wav", - * "audio/vnd.wave", - * "audio/mpeg", - * "audio/ogg", - * "audio/mp4", - * "audio/aac", - * "audio/webm", - * "audio/flac" - * ] - * } - * }, - * "additionalProperties": false - * } - * ``` - *
- */ +/** MediaAudio */ export type MediaAudio = { __typename?: 'MediaAudio'; /** The name of the artist. */ - artist?: Maybe; + artist?: Maybe; /** * A bag of attributes that can be used to store any kind of metadata that is not currently * supported by the standard. */ attributes: Array; - cover?: Maybe; + cover?: Maybe; /** The credits for the audio. */ - credits?: Maybe; + credits?: Maybe; /** How long the the audio is in seconds. */ duration?: Maybe; /** The genre of the audio */ - genre?: Maybe; - item: Scalars['Encryptable']['output']; + genre?: Maybe; + item: Scalars['URI']['output']; /** The type of audio. */ kind?: Maybe; /** The license for the audio. */ license?: Maybe; - lyrics?: Maybe; + lyrics?: Maybe; /** The record label for the audio. */ - recordLabel?: Maybe; + recordLabel?: Maybe; /** The mime type of the audio file. */ type: MediaAudioType; }; -/** - * The type of audio. - * - *
JSON schema - * - * ```json - * { - * "description": "The type of audio.", - * "type": "string", - * "enum": [ - * "MUSIC", - * "PODCAST", - * "AUDIOBOOK", - * "VOICE_NOTE", - * "SOUND", - * "OTHER" - * ] - * } - * ``` - *
- */ export enum MediaAudioKind { Audiobook = 'AUDIOBOOK', Music = 'MUSIC', @@ -2873,29 +2696,7 @@ export enum MediaAudioKind { VoiceNote = 'VOICE_NOTE' } -/** - * The mime type of the audio file. - * - *
JSON schema - * - * ```json - * { - * "description": "The mime type of the audio file.", - * "type": "string", - * "enum": [ - * "audio/wav", - * "audio/vnd.wave", - * "audio/mpeg", - * "audio/ogg", - * "audio/mp4", - * "audio/aac", - * "audio/webm", - * "audio/flac" - * ] - * } - * ``` - *
- */ +/** The mime type of the audio file. */ export enum MediaAudioType { AudioAac = 'AUDIO_AAC', AudioFlac = 'AUDIO_FLAC', @@ -2963,13 +2764,13 @@ export enum MediaAudioType { export type MediaImage = { __typename?: 'MediaImage'; /** The alt tag for accessibility */ - altTag?: Maybe; + altTag?: Maybe; /** * A bag of attributes that can be used to store any kind of metadata that is not currently * supported by the standard. */ attributes: Array; - item: Scalars['Encryptable']['output']; + item: Scalars['URI']['output']; /** The license for the image */ license?: Maybe; /** The mime type of the image */ @@ -3081,16 +2882,16 @@ export type MediaSnapshotNotificationAttributes = { export type MediaVideo = { __typename?: 'MediaVideo'; /** The alt tag for accessibility */ - altTag?: Maybe; + altTag?: Maybe; /** * A bag of attributes that can be used to store any kind of metadata that is not currently * supported by the standard. */ attributes: Array; - cover?: Maybe; + cover?: Maybe; /** How long the the video is in seconds */ duration?: Maybe; - item: Scalars['Encryptable']['output']; + item: Scalars['URI']['output']; /** The license for the video */ license?: Maybe; /** The mime type of the video */ @@ -3215,16 +3016,15 @@ export type MintMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ mainContentFocus: MainContentFocus; /** The mint item it can be a URL of the known provider like opensea https://opensea.io/assets/ethereum/0xfaa2471e93bd1cee3b0ab381c242ada8e1d1a759/299 or https://zora.co/collect/0x9d90669665607f08005cae4a7098143f554c59ef/39626. The Lens API has an allow list of providers and if the domain does not match it will mark it as failed metadata */ - mintLink: Scalars['Encryptable']['output']; + mintLink: Scalars['URI']['output']; /** An arbitrary list of tags. */ tags?: Maybe>; }; @@ -3374,6 +3174,12 @@ export type Mutation = { */ createGroup: CreateGroupResult; createSnsSubscriptions: Array; + /** + * Create a new sponsorship. + * + * You MUST be authenticated as a builder to use this mutation. + */ + createSponsorship: CreateSponsorshipResult; /** * Create a username. * @@ -3477,6 +3283,12 @@ export type Mutation = { * You MUST be authenticated as Account Owner to use this mutation. */ removeAdmins: RemoveAdminsResult; + /** + * Remove an app authorization endpoint. + * + * You MUST be authenticated as a builder to use this mutation. + */ + removeAppAuthorizationEndpoint: Scalars['Void']['output']; /** * Remove feeds to an app * @@ -3599,6 +3411,12 @@ export type Mutation = { * You MUST be authenticated to use this mutation. */ setNamespaceMetadata: SetNamespaceMetadataResult; + /** + * Set metadata for a sponsorship + * + * You MUST be authenticated as a builder to use this mutation. + */ + setSponsorshipMetadata: SetSponsorshipMetadataResult; /** You MUST be authenticated as Account Owner or Account Manager to use this mutation. */ switchAccount: SwitchAccountResult; /** @@ -3664,6 +3482,24 @@ export type Mutation = { * You MUST be authenticated as Account Owner to use this mutation. */ updateAccountManager: UpdateAccountManagerResult; + /** + * Update a sponsorship exclusion list from the rate limits. + * + * You MUST be authenticated as a builder to use this mutation. + */ + updateSponsorshipExclusionList: UpdateSponsorshipExclusionListResult; + /** + * Update a sponsorship rate limits. + * + * You MUST be authenticated as a builder to use this mutation. + */ + updateSponsorshipLimits: UpdateSponsorshipLimitsResult; + /** + * Update a sponsorship signers list. + * + * You MUST be authenticated as a builder to use this mutation. + */ + updateSponsorshipSigners: UpdateSponsorshipSignersResult; }; @@ -3757,6 +3593,11 @@ export type MutationCreateSnsSubscriptionsArgs = { }; +export type MutationCreateSponsorshipArgs = { + request: CreateSponsorshipRequest; +}; + + export type MutationCreateUsernameArgs = { request: CreateUsernameRequest; }; @@ -3847,6 +3688,11 @@ export type MutationRemoveAdminsArgs = { }; +export type MutationRemoveAppAuthorizationEndpointArgs = { + request: RemoveAppAuthorizationEndpointRequest; +}; + + export type MutationRemoveAppFeedsArgs = { request: RemoveAppFeedsRequest; }; @@ -3942,6 +3788,11 @@ export type MutationSetNamespaceMetadataArgs = { }; +export type MutationSetSponsorshipMetadataArgs = { + request: SetSponsorshipMetadataRequest; +}; + + export type MutationSwitchAccountArgs = { request: SwitchAccountRequest; }; @@ -4001,6 +3852,21 @@ export type MutationUpdateAccountManagerArgs = { request: UpdateAccountManagerRequest; }; + +export type MutationUpdateSponsorshipExclusionListArgs = { + request: UpdateSponsorshipExclusionListRequest; +}; + + +export type MutationUpdateSponsorshipLimitsArgs = { + request: UpdateSponsorshipLimitsRequest; +}; + + +export type MutationUpdateSponsorshipSignersArgs = { + request: UpdateSponsorshipSignersRequest; +}; + export type MuteRequest = { /** The account to mute. */ account: Scalars['EvmAddress']['input']; @@ -4051,23 +3917,6 @@ export type NetworkAddress = { chainId: Scalars['Int']['output']; }; -export enum NftContractType { - Erc_721 = 'ERC_721', - Erc_1155 = 'ERC_1155' -} - -export type NftOwnershipCondition = { - __typename?: 'NftOwnershipCondition'; - contract: NetworkAddress; - contractType: NftContractType; - /** - * A list of token IDs you want to check ownership of. The list is optional for ERC721, you - * MUST provide a list of token IDs for ERC1155. - */ - tokenIds: Array; - type: Scalars['String']['output']; -}; - /** The existence of the transaction is not yet indexed. Keep trying. */ export type NotIndexedYetStatus = { __typename?: 'NotIndexedYetStatus'; @@ -4100,6 +3949,10 @@ export type NotificationAccountRepost = { export type NotificationFilter = { /** The apps to filter by. */ apps?: InputMaybe>; + /** The feeds to filter by. */ + feeds?: InputMaybe>; + /** The graphs to filter by. */ + graphs?: InputMaybe>; /** Include notification from accounts with low score */ includeLowScore?: Scalars['Boolean']['input']; /** The notification types to filter by. */ @@ -4117,10 +3970,6 @@ export type NotificationRequest = { cursor?: InputMaybe; /** An optional filter to narrow down the notifications result. */ filter?: InputMaybe; - /** The feeds to get notifications for. */ - forFeeds?: Array; - /** The graphs to get notifications for. */ - forGraphs?: Array; /** An optional order to sort the notifications result. */ orderBy?: NotificationOrderBy; }; @@ -4296,7 +4145,7 @@ export type PaginatedPostReactionsResult = { export type PaginatedPostTagsResult = { __typename?: 'PaginatedPostTagsResult'; - items: Array; + items: Array; pageInfo: PaginatedResultInfo; }; @@ -4359,20 +4208,20 @@ export type PendingTransactionStatus = { export type PhysicalAddress = { __typename?: 'PhysicalAddress'; /** The country name component. */ - country: Scalars['Encryptable']['output']; + country: Scalars['String']['output']; /** The full mailing address formatted for display. */ - formatted?: Maybe; + formatted?: Maybe; /** The city or locality. */ - locality: Scalars['Encryptable']['output']; + locality: Scalars['String']['output']; /** The zip or postal code. */ - postalCode?: Maybe; + postalCode?: Maybe; /** The state or region. */ - region?: Maybe; + region?: Maybe; /** * The street address including house number, street name, P.O. Box, apartment or unit number * and extended multi-line address information. */ - streetAddress?: Maybe; + streetAddress?: Maybe; }; export type Post = { @@ -4431,14 +4280,14 @@ export type PostActionsRequest = { }; export type PostBookmarksFilter = { + /** The feeds to filter by. */ + feeds?: InputMaybe>; metadata?: InputMaybe; }; export type PostBookmarksRequest = { cursor?: InputMaybe; filter?: InputMaybe; - /** The feeds to get bookmarks for. */ - forFeeds?: Array; pageSize?: PageSize; }; @@ -4656,6 +4505,17 @@ export type PostStatsReactionsArgs = { request?: StatsReactionRequest; }; +export type PostTag = { + __typename?: 'PostTag'; + total: Scalars['Int']['output']; + value: Scalars['String']['output']; +}; + +export type PostTagsFilter = { + /** The feeds to filter by. */ + feeds?: InputMaybe>; +}; + export enum PostTagsOrderBy { Alphabetical = 'ALPHABETICAL', MostPopular = 'MOST_POPULAR' @@ -4663,8 +4523,8 @@ export enum PostTagsOrderBy { export type PostTagsRequest = { cursor?: InputMaybe; - /** The feeds to get tags for. */ - forFeeds: Array; + /** An optional filter to apply to the tags. */ + filter?: InputMaybe; orderBy?: PostTagsOrderBy; pageSize?: PageSize; }; @@ -4688,6 +4548,8 @@ export enum PostVisibilityFilter { export type PostsFilter = { apps?: InputMaybe>; authors?: InputMaybe>; + /** The feeds to filter by. */ + feeds?: InputMaybe>; metadata?: InputMaybe; postTypes?: InputMaybe>; /** The optional query text to search for in the post content or metadata tags. */ @@ -4697,17 +4559,9 @@ export type PostsFilter = { export type PostsRequest = { cursor?: InputMaybe; filter?: InputMaybe; - forFeeds?: Array; pageSize?: PageSize; }; -/** ProfileOwnershipCondition */ -export type ProfileOwnershipCondition = { - __typename?: 'ProfileOwnershipCondition'; - profileId: Scalars['LegacyProfileId']['output']; - type: Scalars['String']['output']; -}; - export type Query = { __typename?: 'Query'; _service: _Service; @@ -4770,7 +4624,6 @@ export type Query = { */ currentSession: AuthenticatedSession; debugMetadata: DebugPostMetadataResult; - debugTransactionStatusFailed?: Maybe; feed?: Maybe; /** Get the feeds. */ feeds: PaginatedFeedsResult; @@ -4820,6 +4673,14 @@ export type Query = { postReferences: PaginatedAnyPostsResult; postTags: PaginatedPostTagsResult; posts: PaginatedAnyPostsResult; + /** Get a Sponsorship */ + sponsorship?: Maybe; + /** Get paginated Sponsorship limits Exclusion list. */ + sponsorshipLimitsExclusions: SponsorshipLimitsExclusionsResult; + /** Get paginated Sponsorship Signers. */ + sponsorshipSigners: SponsorshipSignersResult; + /** Get paginated Sponsorships. */ + sponsorships: SponsorshipsResult; /** * Get account timeline. * @@ -4934,11 +4795,6 @@ export type QueryDebugMetadataArgs = { }; -export type QueryDebugTransactionStatusFailedArgs = { - request: DebugTransactionStatusRequest; -}; - - export type QueryFeedArgs = { request: FeedRequest; }; @@ -5084,6 +4940,26 @@ export type QueryPostsArgs = { }; +export type QuerySponsorshipArgs = { + request: SponsorshipRequest; +}; + + +export type QuerySponsorshipLimitsExclusionsArgs = { + request: SponsorshipLimitExclusionsRequest; +}; + + +export type QuerySponsorshipSignersArgs = { + request: SponsorshipSignersRequest; +}; + + +export type QuerySponsorshipsArgs = { + request: SponsorshipsRequest; +}; + + export type QueryTimelineArgs = { request: TimelineRequest; }; @@ -5174,6 +5050,11 @@ export type RemoveAdminsRequest = { export type RemoveAdminsResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; +export type RemoveAppAuthorizationEndpointRequest = { + /** The app. */ + app: Scalars['EvmAddress']['input']; +}; + export type RemoveAppFeedsRequest = { /** The app to update */ app: Scalars['EvmAddress']['input']; @@ -5399,6 +5280,15 @@ export type SetNamespaceMetadataRequest = { export type SetNamespaceMetadataResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; +export type SetSponsorshipMetadataRequest = { + /** The sponsorship metadata to set */ + metadataUri: Scalars['URI']['input']; + /** The sponsorship to update */ + sponsorship: Scalars['EvmAddress']['input']; +}; + +export type SetSponsorshipMetadataResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; + export type SignedAuthChallenge = { id: Scalars['UUID']['input']; signature: Scalars['Signature']['input']; @@ -5542,30 +5432,28 @@ export type SpaceMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; /** The space join link. */ - link: Scalars['Encryptable']['output']; + link: Scalars['URI']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ mainContentFocus: MainContentFocus; /** The space start time (ISO 8601 `YYYY-MM-DDTHH:mm:ss.sssZ`). */ - startsAt: Scalars['Encryptable']['output']; + startsAt: Scalars['DateTime']['output']; /** An arbitrary list of tags. */ tags?: Maybe>; /** The space title. */ title: Scalars['String']['output']; }; -export enum SponsorLimitType { - Day = 'DAY', - Hour = 'HOUR', - Month = 'MONTH', - Week = 'WEEK' -} +export type SponsorLimit = { + __typename?: 'SponsorLimit'; + allowance: Scalars['Int']['output']; + window: SponsorshipRateLimitWindow; +}; export enum SponsoredFallbackReason { SignlessDisabled = 'SIGNLESS_DISABLED', @@ -5584,6 +5472,29 @@ export type SponsoredTransactionRequest = { sponsoredReason?: Maybe; }; +export type Sponsorship = { + __typename?: 'Sponsorship'; + address: Scalars['EvmAddress']['output']; + /** + * Indicates whether the Lens API is authorized as the sponsorship signer + * to sponsor end-user social operations (e.g., posts, comments, follows) + * performed through the Lens API for apps associated with this sponsorship. + */ + allowsLensAccess: Scalars['Boolean']['output']; + /** + * The native token balance of the sponsorship contract. + * + * This value is cached for up to 2 minutes for each sponsorship contract. + */ + balance?: Maybe; + createdAt: Scalars['DateTime']['output']; + globalRateLimit?: Maybe; + isPaused: Scalars['Boolean']['output']; + metadata?: Maybe; + owner: Scalars['EvmAddress']['output']; + userRateLimit?: Maybe; +}; + export type SponsorshipAllowance = { __typename?: 'SponsorshipAllowance'; /** The total sponsorship allowance. */ @@ -5593,7 +5504,162 @@ export type SponsorshipAllowance = { /** The number of sponsorship allowance used. */ allowanceUsed: Scalars['Int']['output']; /** The sponsorship window type. */ - window: SponsorLimitType; + window: SponsorshipRateLimitWindow; +}; + +export type SponsorshipLimitExclusionsFilter = { + /** The sponsorship address. */ + sponsorship: Scalars['EvmAddress']['input']; +}; + +export enum SponsorshipLimitExclusionsOrderBy { + Alphabetical = 'ALPHABETICAL', + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST' +} + +export type SponsorshipLimitExclusionsRequest = { + /** The cursor. */ + cursor?: InputMaybe; + /** The filter options. */ + filter: SponsorshipLimitExclusionsFilter; + /** The order by criteria. */ + orderBy?: SponsorshipLimitExclusionsOrderBy; + /** The page size. */ + pageSize?: PageSize; +}; + +export type SponsorshipLimitsExclusionsResult = { + __typename?: 'SponsorshipLimitsExclusionsResult'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + +export type SponsorshipLimitsExempt = { + __typename?: 'SponsorshipLimitsExempt'; + address: Scalars['EvmAddress']['output']; + createdAt: Scalars['DateTime']['output']; + label: Scalars['String']['output']; + sponsorship: Scalars['EvmAddress']['output']; +}; + +export type SponsorshipMetadata = { + __typename?: 'SponsorshipMetadata'; + /** An optional description of the Username collection. */ + description?: Maybe; + /** + * A unique identifier that in storages like IPFS ensures the uniqueness of the metadata URI. + * Use a UUID if unsure. + */ + id: Scalars['String']['output']; + /** The name of the Sponsorship. */ + name: Scalars['String']['output']; +}; + +export type SponsorshipRateLimit = { + /** The limit value. */ + limit: Scalars['Int']['input']; + /** The limit time window. */ + window: SponsorshipRateLimitWindow; +}; + +export enum SponsorshipRateLimitWindow { + Day = 'DAY', + Hour = 'HOUR', + Month = 'MONTH', + Week = 'WEEK' +} + +export type SponsorshipRateLimits = { + /** The global rate limit. */ + global?: InputMaybe; + /** The user rate limit. */ + user?: InputMaybe; +}; + +export type SponsorshipRateLimitsExempt = { + /** The exempt address. */ + address: Scalars['EvmAddress']['input']; + /** The human-readable label for the exempt address. */ + label: Scalars['String']['input']; +}; + +export type SponsorshipRequest = { + /** The Sponsorship address. */ + address?: InputMaybe; + /** The transaction hash you created the Sponsorship with. */ + txHash?: InputMaybe; +}; + +export type SponsorshipSigner = { + __typename?: 'SponsorshipSigner'; + address: Scalars['EvmAddress']['output']; + createdAt: Scalars['DateTime']['output']; + label: Scalars['String']['output']; + sponsorship: Scalars['EvmAddress']['output']; +}; + +export type SponsorshipSignerInput = { + /** The signer address */ + address: Scalars['EvmAddress']['input']; + /** The human-readable label for the signer */ + label: Scalars['String']['input']; +}; + +export type SponsorshipSignersFilter = { + /** The sponsorship address. */ + sponsorship: Scalars['EvmAddress']['input']; +}; + +export enum SponsorshipSignersOrderBy { + Alphabetical = 'ALPHABETICAL', + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST' +} + +export type SponsorshipSignersRequest = { + /** The cursor. */ + cursor?: InputMaybe; + /** The filter options. */ + filter: SponsorshipSignersFilter; + /** The order by criteria. */ + orderBy?: SponsorshipSignersOrderBy; + /** The page size. */ + pageSize?: PageSize; +}; + +export type SponsorshipSignersResult = { + __typename?: 'SponsorshipSignersResult'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + +export type SponsorshipsFilter = { + /** The filter to get Sponsorships managed by address */ + managedBy: ManagedBy; +}; + +export enum SponsorshipsOrderBy { + Alphabetical = 'ALPHABETICAL', + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST' +} + +export type SponsorshipsRequest = { + /** The cursor. */ + cursor?: InputMaybe; + /** The filter options. */ + filter: SponsorshipsFilter; + /** The order by criteria. */ + orderBy?: SponsorshipsOrderBy; + /** The page size. */ + pageSize?: PageSize; +}; + +export type SponsorshipsResult = { + __typename?: 'SponsorshipsResult'; + items: Array; + pageInfo: PaginatedResultInfo; }; export type StatsReactionRequest = { @@ -5610,10 +5676,9 @@ export type StoryMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -5642,10 +5707,9 @@ export type TextOnlyMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -5687,10 +5751,9 @@ export type ThreeDMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -5711,6 +5774,8 @@ export type TimelineFilter = { apps?: InputMaybe>; /** The post event types to filter by. */ eventType?: InputMaybe>; + /** The feeds to filter by. */ + feeds?: InputMaybe>; /** The optional metadata filter. */ metadata?: InputMaybe; }; @@ -5718,6 +5783,8 @@ export type TimelineFilter = { export type TimelineHighlightsFilter = { /** The apps to filter by. */ apps?: InputMaybe>; + /** The feeds to filter by. */ + feeds?: InputMaybe>; metadata?: InputMaybe; }; @@ -5727,8 +5794,6 @@ export type TimelineHighlightsRequest = { cursor?: InputMaybe; /** An optional filter to apply to the timeline. */ filter?: InputMaybe; - /** The feeds to get timeline for. */ - forFeeds?: Array; pageSize?: PageSize; }; @@ -5747,8 +5812,6 @@ export type TimelineRequest = { cursor?: InputMaybe; /** An optional filter to apply to the timeline. */ filter?: InputMaybe; - /** The feeds to get timeline for. */ - forFeeds?: Array; }; export type TokenGatedFeedRule = { @@ -5802,13 +5865,6 @@ export enum TokenStandard { Erc_1155 = 'ERC_1155' } -/** AccessCondition */ -export type TopLevelAccessCondition = { - __typename?: 'TopLevelAccessCondition'; - criteria: Array; - type: Scalars['String']['output']; -}; - export type TransactionMetadata = { __typename?: 'TransactionMetadata'; /** The other attachments you want to include with it. */ @@ -5821,10 +5877,9 @@ export type TransactionMetadata = { attributes: Array; /** The Chain Id. */ chainId: Scalars['ChainId']['output']; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -5832,7 +5887,7 @@ export type TransactionMetadata = { /** An arbitrary list of tags. */ tags?: Maybe>; /** The transaction hash. */ - txHash: Scalars['Encryptable']['output']; + txHash: Scalars['String']['output']; /** The type of transaction. */ type: TransactionType; }; @@ -6127,6 +6182,37 @@ export type UpdateAccountManagerRequest = { export type UpdateAccountManagerResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; +export type UpdateSponsorshipExclusionListRequest = { + /** The sponsorship to update */ + sponsorship: Scalars['EvmAddress']['input']; + /** The new entries to add. */ + toAdd?: Array; + /** The entries to remove. */ + toRemove?: Array; +}; + +export type UpdateSponsorshipExclusionListResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; + +export type UpdateSponsorshipLimitsRequest = { + /** The new rate limits */ + rateLimits?: InputMaybe; + /** The sponsorship to update */ + sponsorship: Scalars['EvmAddress']['input']; +}; + +export type UpdateSponsorshipLimitsResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; + +export type UpdateSponsorshipSignersRequest = { + /** The sponsorship to update */ + sponsorship: Scalars['EvmAddress']['input']; + /** The new entries to add. */ + toAdd?: Array; + /** The entries to remove. */ + toRemove?: Array; +}; + +export type UpdateSponsorshipSignersResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; + export type UserBlockingRule = { __typename?: 'UserBlockingRule'; blockedUsers: Array; @@ -6258,10 +6344,9 @@ export type VideoMetadata = { * their usage as arbitrary attributes will be discouraged. */ attributes: Array; - content: Scalars['Encryptable']['output']; + content: Scalars['String']['output']; /** Specify a content warning. */ contentWarning?: Maybe; - encryptedWith?: Maybe; id: Scalars['MetadataId']['output']; locale: Scalars['Locale']['output']; /** The main focus of the post. */ @@ -6598,7 +6683,7 @@ export type SimpleCollectActionSettingsFieldsFragment = { __typename?: 'SimpleCo export type UnknownActionSettingsFieldsFragment = { __typename: 'UnknownActionSettings' }; -export type ArticleMetadataFieldsFragment = { __typename?: 'ArticleMetadata', id: any, content: any, tags?: Array | null, attributes: Array<( +export type ArticleMetadataFieldsFragment = { __typename?: 'ArticleMetadata', id: any, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, attachments: Array<( @@ -6612,7 +6697,7 @@ export type ArticleMetadataFieldsFragment = { __typename?: 'ArticleMetadata', id & MediaFields_MediaVideo_Fragment )> }; -export type AudioMetadataFieldsFragment = { __typename?: 'AudioMetadata', id: any, title?: string | null, content: any, tags?: Array | null, attributes: Array<( +export type AudioMetadataFieldsFragment = { __typename?: 'AudioMetadata', id: any, title?: string | null, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, audio: ( @@ -6629,7 +6714,7 @@ export type AudioMetadataFieldsFragment = { __typename?: 'AudioMetadata', id: an & MediaFields_MediaVideo_Fragment )> }; -export type CheckingInMetadataFieldsFragment = { __typename?: 'CheckingInMetadata', id: any, content: any, tags?: Array | null, location: any, position?: any | null, address?: { __typename?: 'PhysicalAddress', country: any, locality: any, postalCode?: any | null } | null, attributes: Array<( +export type CheckingInMetadataFieldsFragment = { __typename?: 'CheckingInMetadata', id: any, content: string, tags?: Array | null, location: string, position?: any | null, address?: { __typename?: 'PhysicalAddress', country: string, locality: string, postalCode?: string | null } | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, attachments: Array<( @@ -6643,7 +6728,7 @@ export type CheckingInMetadataFieldsFragment = { __typename?: 'CheckingInMetadat & MediaFields_MediaVideo_Fragment )> }; -export type ImageMetadataFieldsFragment = { __typename?: 'ImageMetadata', id: any, content: any, tags?: Array | null, attributes: Array<( +export type ImageMetadataFieldsFragment = { __typename?: 'ImageMetadata', id: any, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, attachments: Array<( @@ -6660,7 +6745,7 @@ export type ImageMetadataFieldsFragment = { __typename?: 'ImageMetadata', id: an & MediaImageFieldsFragment ) }; -export type LinkMetadataFieldsFragment = { __typename?: 'LinkMetadata', id: any, content: any, sharingLink: any, tags?: Array | null, attributes: Array<( +export type LinkMetadataFieldsFragment = { __typename?: 'LinkMetadata', id: any, content: string, sharingLink: any, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, attachments: Array<( @@ -6674,7 +6759,7 @@ export type LinkMetadataFieldsFragment = { __typename?: 'LinkMetadata', id: any, & MediaFields_MediaVideo_Fragment )> }; -export type LivestreamMetadataFieldsFragment = { __typename?: 'LivestreamMetadata', id: any, playbackUrl: any, liveUrl: any, content: any, tags?: Array | null, attributes: Array<( +export type LivestreamMetadataFieldsFragment = { __typename?: 'LivestreamMetadata', id: any, playbackUrl: any, liveUrl: any, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, attachments: Array<( @@ -6690,7 +6775,7 @@ export type LivestreamMetadataFieldsFragment = { __typename?: 'LivestreamMetadat export type MetadataAttributeFieldsFragment = { __typename?: 'MetadataAttribute', type: MetadataAttributeType, key: string, value: string }; -export type MintMetadataFieldsFragment = { __typename?: 'MintMetadata', id: any, content: any, tags?: Array | null, attributes: Array<( +export type MintMetadataFieldsFragment = { __typename?: 'MintMetadata', id: any, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, attachments: Array<( @@ -6704,12 +6789,12 @@ export type MintMetadataFieldsFragment = { __typename?: 'MintMetadata', id: any, & MediaFields_MediaVideo_Fragment )> }; -export type TextOnlyMetadataFieldsFragment = { __typename?: 'TextOnlyMetadata', id: any, content: any, tags?: Array | null, attributes: Array<( +export type TextOnlyMetadataFieldsFragment = { __typename?: 'TextOnlyMetadata', id: any, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )> }; -export type VideoMetadataFieldsFragment = { __typename?: 'VideoMetadata', id: any, content: any, tags?: Array | null, attributes: Array<( +export type VideoMetadataFieldsFragment = { __typename?: 'VideoMetadata', id: any, content: string, tags?: Array | null, attributes: Array<( { __typename?: 'MetadataAttribute' } & MetadataAttributeFieldsFragment )>, video: ( @@ -6726,7 +6811,7 @@ export type VideoMetadataFieldsFragment = { __typename?: 'VideoMetadata', id: an & MediaFields_MediaVideo_Fragment )> }; -export type MediaAudioFieldsFragment = { __typename?: 'MediaAudio', artist?: any | null, item: any, cover?: any | null, license?: MetadataLicenseType | null }; +export type MediaAudioFieldsFragment = { __typename?: 'MediaAudio', artist?: string | null, item: any, cover?: any | null, license?: MetadataLicenseType | null }; type MediaFields_MediaAudio_Fragment = ( { __typename?: 'MediaAudio' } @@ -7241,7 +7326,7 @@ export type MeQuery = { __typename?: 'Query', me: { __typename?: 'MeResult', isS ) } | { __typename?: 'AccountOwned', account: ( { __typename?: 'Account' } & AccountFieldsFragment - ) }, limit: { __typename?: 'SponsorshipAllowance', allowanceLeft: number, allowanceUsed: number, allowance: number, window: SponsorLimitType } } }; + ) }, limit: { __typename?: 'SponsorshipAllowance', allowanceLeft: number, allowanceUsed: number, allowance: number, window: SponsorshipRateLimitWindow } } }; export type NotificationsQueryVariables = Exact<{ request: NotificationRequest; @@ -9601,15 +9686,6 @@ export type WhoReferencedPostQueryResult = Apollo.QueryResult