declare const schema = "#--Airstack Schemas--\n\nenum AirProtocolType {\n SOCIAL\n}\n\nenum AirProtocolActionType {\n SOCIAL_REGISTRATION\n SOCIAL_PROFILE_OWNERSHIP_CHANGE\n SOCIAL_USER_OWNERSHIP_CHANGE\n SOCIAL_PROFILE_NAME_RENEWAL\n SOCIAL_PROFILE_RECOVERY_ADDRESS_CHANGE\n SOCIAL_USER_HOME_URL_CHANGE\n SOCIAL_USER_RECOVERY_ADDRESS_CHANGE\n SOCIAL_USER_DEFAULT_PROFILE_CHANGE\n}\n\ntype AirBlock @entity {\n id: ID! #chainId-number\n hash: String!\n number: BigInt!\n timestamp: BigInt!\n}\n\ntype AirMeta @entity {\n id: ID! # AIR_META\n network: String!\n schemaVersion: String!\n slug: String! #Farcaster\n name: String! # Farcaster V1\n version: String!\n}\n\ntype AirEntityCounter @entity {\n id: ID! #AIR_USER_REGISTERED_TRANSACTION_ENTITY_COUNTER\n count: BigInt!\n createdAt: AirBlock! \n lastUpdatedAt: AirBlock!\n}\n\ntype AirAccount @entity {\n id: ID!\n address: String!\n createdAt: AirBlock!\n}\n\ntype AirToken @entity {\n id: ID!\n address: String!\n}\n\ntype AirExtra @entity {\n id: ID! #\n name: String!\n value: String!\n}\n\ntype AirSocialUser @entity {\n id: ID! #-\n socialUserId: String!\n address: AirAccount!\n extras: [AirExtra!] #Store recovery address & home URLs\n profiles: [AirSocialProfile!] \n defaultProfile: AirSocialProfile # Store default Profile \n createdAt: AirBlock!\n lastUpdatedIndex: BigInt!\n lastUpdatedAt: AirBlock!\n}\n\ntype AirSocialProfile @entity {\n id: ID! #--\n name: String!\n tokenId: String!\n expiryTimestamp: BigInt!\n renewalCost: BigInt\n tokenAddress: AirToken!\n user: AirSocialUser!\n handle: AirSocialProfileHandle\n isDefault: Boolean!\n extras: [AirExtra!] #Store tokenUri\n metadataURI: String\n imageURI: String\n createdAt: AirBlock!\n lastUpdatedIndex: BigInt!\n lastUpdatedAt: AirBlock!\n}\n\ntype AirSocialProfileHandle @entity {\n id: ID!\n name: String!\n namespace: String\n owner: AirAccount!\n tokenAddress: AirToken!\n tokenId: String!\n profile: AirSocialProfile\n extras: [AirExtra!] #Store tokenUri\n createdAt: AirBlock!\n lastUpdatedIndex: BigInt!\n lastUpdatedAt: AirBlock!\n}\n\ninterface AirTransaction {\n id: ID! \n from: AirAccount!\n logOrCallIndex: BigInt!\n to: AirAccount!\n transactionHash: String! \n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #REGISTRATION\n}\n\ntype AirSocialUserRegisteredTransaction implements AirTransaction @entity {\n id: ID! #--
\n address: AirAccount! #socialUserId owner address\n user: AirSocialUser!\n profile: AirSocialProfile! @derivedfrom(field: \"user\") #socialUserId profile\n name: String! #not available in txn, but being set from token transfer event name registry - make it mandatory\n extras: [AirExtra!] #Store recovery address & home URLs\n profileExpiryTimestamp: BigInt!\n from: AirAccount! #keeping this as event.params.to address, is not available in the event data - 0x for mint\n to: AirAccount! #keeping this as contract address, is not available in the event data - owner address for mint/transfers\n tokenId: String!\n tokenAddress: AirToken!\n logOrCallIndex: BigInt!\n transactionHash: String!\n block: AirBlock!\n index: BigInt! #entity counter\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_REGISTRATION\n}\n\ntype AirSocialProfileOwnershipChangeTransaction implements AirTransaction @entity {\n id: ID! #\n profileName: String!\n profile: AirSocialProfile!\n tokenId: String!\n tokenAddress: AirToken!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String! \n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_PROFILE_OWNERSHIP_CHANGE\n}\n\ntype AirSocialUserOwnershipChangeTransaction implements AirTransaction @entity {\n id: ID! #\n socialUserId: String!\n tokenId: String!\n tokenAddress: AirToken!\n user: AirSocialUser!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String! \n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_USER_OWNERSHIP_CHANGE\n}\n\ntype AirSocialProfileRenewalTransaction implements AirTransaction @entity {\n id: ID! #---\n expiryTimestamp: BigInt!\n renewalCost: BigInt!\n profile: AirSocialProfile!\n tokenId: String!\n tokenAddress: AirToken!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String! \n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_PROFILE_NAME_RENEWAL\n}\n\ntype AirSocialProfileRecoveryAddressChangeTransaction implements AirTransaction @entity {\n id: ID! #\n oldRecoveryAddress: AirAccount\n newRecoveryAddress: AirAccount!\n profile: AirSocialProfile!\n tokenId: String!\n tokenAddress: AirToken!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String! \n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_PROFILE_RECOVERY_ADDRESS_CHANGE\n}\n\ntype AirSocialUserHomeUrlChangeTransaction implements AirTransaction @entity {\n id: ID! #\n oldHomeUrl: String\n newHomeUrl: String!\n user: AirSocialUser!\n tokenId: String!\n tokenAddress: AirToken!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String! \n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_USER_HOME_URL_CHANGE\n}\n\ntype AirSocialUserRecoveryAddressChangeTransaction implements AirTransaction @entity {\n id: ID! #\n oldRecoveryAddress: AirAccount\n newRecoveryAddress: AirAccount!\n user: AirSocialUser!\n tokenId: String!\n tokenAddress: AirToken!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String! \n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_USER_RECOVERY_ADDRESS_CHANGE\n}\n\ntype AirSocialUserDefaultProfileChangeTransaction implements AirTransaction\n @entity {\n id: ID! #\n oldDefaultProfile: AirSocialProfile\n newDefaultProfile: AirSocialProfile\n user: AirSocialUser!\n from: AirAccount!\n to: AirAccount!\n transactionHash: String!\n logOrCallIndex: BigInt!\n block: AirBlock!\n index: BigInt!\n protocolType: AirProtocolType! #SOCIAL\n protocolActionType: AirProtocolActionType! #SOCIAL_USER_DEFAULT_PROFILE_CHANGE\n}\n"; export default schema; //# sourceMappingURL=airstack-social-schema.graphql.d.ts.map