diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index f55a00d..53abfc6 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -160,6 +160,10 @@ export type AllPublicationsTagsRequest = { source?: InputMaybe; }; +export type AlreadyInvitedCheckRequest = { + address: Scalars['EthereumAddress']; +}; + export type AndConditionInput = { /** The list of conditions to apply AND to. You can only use nested boolean conditions at the root level. */ criteria: Array; @@ -1842,6 +1846,17 @@ export type IllegalReasonInputParams = { subreason: PublicationReportingIllegalSubreason; }; +export type InRequest = { + ethereumAddress: Scalars['EthereumAddress']; + numInvites: Scalars['Int']; + secret: Scalars['String']; +}; + +export type InTotalRequest = { + ethereumAddress: Scalars['EthereumAddress']; + secret: Scalars['String']; +}; + export type InternalPinRequest = { /** The shared secret */ items: Array; @@ -1855,6 +1870,17 @@ export type InternalPinResult = { referenceItem: Scalars['Url']; }; +export type InviteRequest = { + invites: Array; + secret: Scalars['String']; +}; + +export type InvitedResult = { + __typename?: 'InvitedResult'; + address: Scalars['EthereumAddress']; + when?: Maybe; +}; + export type LimitedFeeCollectModuleParams = { /** The collect module amount info */ amount: ModuleFeeAmountParams; @@ -2306,6 +2332,8 @@ export type Mutation = { hel?: Maybe; hidePublication?: Maybe; idKitPhoneVerifyWebhook: IdKitPhoneVerifyWebhookResultStatusType; + in?: Maybe; + invite?: Maybe; nni?: Maybe; nnv?: Maybe; proxyAction: Scalars['ProxyActionId']; @@ -2574,6 +2602,16 @@ export type MutationIdKitPhoneVerifyWebhookArgs = { }; +export type MutationInArgs = { + request: InRequest; +}; + + +export type MutationInviteArgs = { + request: InviteRequest; +}; + + export type MutationNniArgs = { request: NniRequest; }; @@ -2785,21 +2823,6 @@ export type Nfi = { i: Scalars['ChainId']; }; -/** Nft Collection type */ -export type NftCollection = { - __typename?: 'NftCollection'; - /** Collection chain ID */ - chainId: Scalars['ChainId']; - /** The contract address "0x00001..." */ - contractAddress: Scalars['ContractAddress']; - /** Collection ERC type */ - contractType: Scalars['String']; - /** Collection name */ - name: Scalars['String']; - /** Collection symbol */ - symbol: Scalars['String']; -}; - /** NFT collection filtering input */ export type NftCollectionInput = { /** The chain id that the collection exists in */ @@ -2808,26 +2831,6 @@ export type NftCollectionInput = { contractAddress: Scalars['ContractAddress']; }; -/** NFT collections result */ -export type NftCollectionResult = { - __typename?: 'NftCollectionResult'; - items: Array; - pageInfo: PaginatedResultInfo; -}; - -/** NFT collections request */ -export type NftCollectionsRequest = { - /** The chain ids to look for NFTs on. Ethereum and Polygon are supported. If omitted, it will look on both chains by default. */ - chainIds?: InputMaybe>; - cursor?: InputMaybe; - /** Exclude Lens Follower NFTs */ - excludeFollowers?: InputMaybe; - limit?: InputMaybe; - /** Filter by owner address */ - ownerAddress?: InputMaybe; - profileId?: InputMaybe; -}; - /** The NFT gallery input */ export type NftGalleriesRequest = { /** The profile id */ @@ -3300,6 +3303,7 @@ export type Profile = { id: Scalars['ProfileId']; /** The profile interests */ interests?: Maybe>; + invitedBy?: Maybe; /** Is the profile default */ isDefault: Scalars['Boolean']; isFollowedByMe: Scalars['Boolean']; @@ -3352,6 +3356,16 @@ export type ProfileFollowRevenueQueryRequest = { profileId: Scalars['ProfileId']; }; +export type ProfileGuardianRequest = { + profileId: Scalars['ProfileId']; +}; + +export type ProfileGuardianResult = { + __typename?: 'ProfileGuardianResult'; + disablingProtectionTimestamp?: Maybe; + protected: Scalars['Boolean']; +}; + export type ProfileMedia = MediaSet | NftImage; export type ProfileOnChainIdentityRequest = { @@ -3888,6 +3902,7 @@ export type PublicationsQueryRequest = { export type Query = { __typename?: 'Query'; allPublicationsTags: PaginatedAllPublicationsTagsResult; + alreadyInvited: Scalars['Boolean']; approvedModuleAllowanceAmount: Array; challenge: AuthChallengeResult; claimableHandles: ClaimableHandles; @@ -3916,11 +3931,12 @@ export type Query = { globalProtocolStats: GlobalProtocolStats; hasTxHashBeenIndexed: TransactionResult; internalPin: Array; + intotal: Scalars['Int']; + invited: Array; + invitesLeft: Scalars['Int']; isIDKitPhoneVerified: Scalars['Boolean']; iss: PrfResponse; mutualFollowersProfiles: PaginatedProfileResult; - /** Get the NFT collections that the given wallet or profileId owns at least one NFT of. Only supports Ethereum and Polygon NFTs. Note excludeFollowers is set to true by default, so the result will not include Lens Follower NFTsunless explicitly requested. */ - nftCollections: NftCollectionResult; /** Get all NFT galleries for a profile */ nftGalleries: Array; nftOwnershipChallenge: NftOwnershipChallengeResult; @@ -3932,6 +3948,7 @@ export type Query = { profile?: Maybe; profileFollowModuleBeenRedeemed: Scalars['Boolean']; profileFollowRevenue: FollowRevenueResult; + profileGuardianInformation: ProfileGuardianResult; /** Get the list of profile interests */ profileInterests: Array; profileOnChainIdentity: Array; @@ -3965,6 +3982,11 @@ export type QueryAllPublicationsTagsArgs = { }; +export type QueryAlreadyInvitedArgs = { + request: AlreadyInvitedCheckRequest; +}; + + export type QueryApprovedModuleAllowanceAmountArgs = { request: ApprovedModuleAllowanceAmountRequest; }; @@ -4070,6 +4092,11 @@ export type QueryInternalPinArgs = { }; +export type QueryIntotalArgs = { + request: InTotalRequest; +}; + + export type QueryIssArgs = { request: PriRequest; }; @@ -4080,11 +4107,6 @@ export type QueryMutualFollowersProfilesArgs = { }; -export type QueryNftCollectionsArgs = { - request: NftCollectionsRequest; -}; - - export type QueryNftGalleriesArgs = { request: NftGalleriesRequest; }; @@ -4125,6 +4147,11 @@ export type QueryProfileFollowRevenueArgs = { }; +export type QueryProfileGuardianInformationArgs = { + request: ProfileGuardianRequest; +}; + + export type QueryProfileOnChainIdentityArgs = { request: ProfileOnChainIdentityRequest; }; diff --git a/src/publications/post-gated.ts b/src/publications/post-gated.ts index b1aefbd..3d8475b 100644 --- a/src/publications/post-gated.ts +++ b/src/publications/post-gated.ts @@ -42,8 +42,10 @@ export const eoaAccessCondition = ( }); export const erc20AccessCondition = ( - { contractAddress, chainID, amount, condition, decimals } = { + { contractAddress, name, symbol, chainID, amount, condition, decimals } = { contractAddress: '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', // WMATIC on Mumbai + name: 'Wrapped MATIC', + symbol: 'WMATIC', decimals: 18, amount: '0.0001', chainID: 80001, @@ -52,6 +54,8 @@ export const erc20AccessCondition = ( ): AccessConditionOutput => ({ token: { contractAddress, + name, + symbol, decimals, amount, chainID,