diff --git a/packages/api-bindings/codegen-api.yml b/packages/api-bindings/codegen-api.yml index e566a18c64..44823fb6af 100644 --- a/packages/api-bindings/codegen-api.yml +++ b/packages/api-bindings/codegen-api.yml @@ -60,6 +60,7 @@ generates: Void: void schema: - https://api-v2-mumbai.lens.dev/graphql + # - http://localhost:4000 documents: - src/lens/graphql/*.graphql plugins: diff --git a/packages/api-bindings/src/lens/graphql/fragments.graphql b/packages/api-bindings/src/lens/graphql/fragments.graphql index 617a3ef57d..b6a0981dfc 100644 --- a/packages/api-bindings/src/lens/graphql/fragments.graphql +++ b/packages/api-bindings/src/lens/graphql/fragments.graphql @@ -64,6 +64,37 @@ fragment NetworkAddress on NetworkAddress { chainId } +# metadata attributes +fragment MetadataBooleanAttribute on MetadataBooleanAttribute { + __typename + key + value +} + +fragment MetadataDateAttribute on MetadataDateAttribute { + __typename + key + value +} + +fragment MetadataNumberAttribute on MetadataNumberAttribute { + __typename + key + value +} + +fragment MetadataJSONAttribute on MetadataJSONAttribute { + __typename + key + value +} + +fragment MetadataStringAttribute on MetadataStringAttribute { + __typename + key + value +} + # media fragment Image on Image { uri @@ -72,20 +103,39 @@ fragment Image on Image { height } -fragment Video on Video { +fragment ImageSet on ImageSet { + raw { + ...Image + } + optimized { + ...Image + } + transformed(request: $publicationImageTransform) { + ...Image + } +} + +fragment EncryptableImage on EncryptableImage { uri mimeType + width + height } -fragment VideoSet on VideoSet { +fragment EncryptableImageSet on EncryptableImageSet { raw { - ...Video + ...EncryptableImage } optimized { - ...Video + ...Image } } +fragment Video on Video { + uri + mimeType +} + fragment EncryptableVideo on EncryptableVideo { mimeType uri @@ -105,15 +155,6 @@ fragment Audio on Audio { mimeType } -fragment AudioSet on AudioSet { - raw { - ...Audio - } - optimized { - ...Audio - } -} - fragment EncryptableAudio on EncryptableAudio { mimeType uri @@ -128,33 +169,6 @@ fragment EncryptableAudioSet on EncryptableAudioSet { } } -fragment LegacyAudioItem on LegacyAudioItem { - audio { - ...AudioSet - } - cover { - ...PublicationImageSet - } - altTag -} - -fragment LegacyImageItem on LegacyImageItem { - image { - ...PublicationImageSet - } - altTag -} - -fragment LegacyVideoItem on LegacyVideoItem { - video { - ...VideoSet - } - cover { - ...PublicationImageSet - } - altTag -} - # profile fragment ProfileCoverSet on ImageSet { raw { @@ -270,6 +284,7 @@ fragment Profile on Profile { } } metadata { + appId displayName bio rawURI @@ -285,9 +300,21 @@ fragment Profile on Profile { ...ProfileCoverSet } attributes { - type - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } } handle @@ -551,7 +578,7 @@ fragment PublicationOperations on PublicationOperations { } # gated content -fragment PublicationMetadataEncryptionStrategy on PublicationMetadataV3LitEncryption { +fragment PublicationMetadataLitEncryption on PublicationMetadataLitEncryption { __typename encryptionKey accessCondition { @@ -677,34 +704,6 @@ fragment RootCondition on RootCondition { } # publication metadata -fragment PublicationImageSet on ImageSet { - raw { - ...Image - } - optimized { - ...Image - } - transformed(request: $publicationImageTransform) { - ...Image - } -} - -fragment EncryptableImage on EncryptableImage { - uri - mimeType - width - height -} - -fragment PublicationEncryptableImageSet on EncryptableImageSet { - raw { - ...EncryptableImage - } - optimized { - ...Image - } -} - fragment PublicationMarketplaceMetadataAttribute on PublicationMarketplaceMetadataAttribute { displayType traitType @@ -719,7 +718,7 @@ fragment MarketplaceMetadata on MarketplaceMetadata { ...PublicationMarketplaceMetadataAttribute } image { - ...PublicationImageSet + ...ImageSet } animationUrl } @@ -729,18 +728,52 @@ fragment PublicationMetadataMediaVideo on PublicationMetadataMediaVideo { ...EncryptableVideoSet } cover { - ...PublicationEncryptableImageSet + ...EncryptableImageSet } duration license altTag + attributes { + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } + } } fragment PublicationMetadataMediaImage on PublicationMetadataMediaImage { image { - ...PublicationEncryptableImageSet + ...EncryptableImageSet } license + attributes { + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } + } } fragment PublicationMetadataMediaAudio on PublicationMetadataMediaAudio { @@ -748,7 +781,7 @@ fragment PublicationMetadataMediaAudio on PublicationMetadataMediaAudio { ...EncryptableAudioSet } cover { - ...PublicationEncryptableImageSet + ...EncryptableImageSet } duration license @@ -757,44 +790,21 @@ fragment PublicationMetadataMediaAudio on PublicationMetadataMediaAudio { genre recordLabel lyrics -} - -fragment LegacyPublicationMetadata on LegacyPublicationMetadata { - content - media { - ... on LegacyAudioItem { - ...LegacyAudioItem + attributes { + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute } - ... on LegacyImageItem { - ...LegacyImageItem + ... on MetadataDateAttribute { + ...MetadataDateAttribute } - ... on LegacyVideoItem { - ...LegacyVideoItem + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute } - } - locale - tags - contentWarning - mainContentFocus - marketplace { - ...MarketplaceMetadata - } - encryptedWith { - encryptionKey - encryptedFields { - content - image - media { - uri - mimeType - altTag - cover - } - animationUrl - externalUrl + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute } - accessCondition { - ...RootCondition + ... on MetadataStringAttribute { + ...MetadataStringAttribute } } } @@ -811,12 +821,25 @@ fragment VideoMetadataV3 on VideoMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } asset { @@ -850,12 +873,25 @@ fragment AudioMetadataV3 on AudioMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } asset { @@ -888,12 +924,25 @@ fragment ImageMetadataV3 on ImageMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } title @@ -926,12 +975,25 @@ fragment ArticleMetadataV3 on ArticleMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } title @@ -961,12 +1023,25 @@ fragment EventMetadataV3 on EventMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } geographic { @@ -1002,12 +1077,25 @@ fragment LinkMetadataV3 on LinkMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1037,12 +1125,25 @@ fragment EmbedMetadataV3 on EmbedMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1072,12 +1173,25 @@ fragment CheckingInMetadataV3 on CheckingInMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1111,12 +1225,25 @@ fragment TextOnlyMetadataV3 on TextOnlyMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1134,12 +1261,25 @@ fragment ThreeDMetadataV3 on ThreeDMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1175,12 +1315,25 @@ fragment StoryMetadataV3 on StoryMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1209,12 +1362,25 @@ fragment TransactionMetadataV3 on TransactionMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1246,12 +1412,25 @@ fragment MintMetadataV3 on MintMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1281,12 +1460,25 @@ fragment SpaceMetadataV3 on SpaceMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -1318,12 +1510,25 @@ fragment LiveStreamMetadataV3 on LiveStreamMetadataV3 { ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } title @@ -1377,9 +1582,6 @@ fragment Post on Post { ...PublicationOperations } metadata { - ... on LegacyPublicationMetadata { - ...LegacyPublicationMetadata - } ... on AudioMetadataV3 { ...AudioMetadataV3 } @@ -1502,9 +1704,6 @@ fragment CommentBase on Comment { ...PublicationOperations } metadata { - ... on LegacyPublicationMetadata { - ...LegacyPublicationMetadata - } ... on AudioMetadataV3 { ...AudioMetadataV3 } @@ -1676,9 +1875,6 @@ fragment QuoteBase on Quote { ...PublicationOperations } metadata { - ... on LegacyPublicationMetadata { - ...LegacyPublicationMetadata - } ... on AudioMetadataV3 { ...AudioMetadataV3 } diff --git a/packages/api-bindings/src/lens/graphql/generated.ts b/packages/api-bindings/src/lens/graphql/generated.ts index 806c040a15..d65adb9f1b 100644 --- a/packages/api-bindings/src/lens/graphql/generated.ts +++ b/packages/api-bindings/src/lens/graphql/generated.ts @@ -42,7 +42,6 @@ export type Scalars = { EncryptableTxHash: string; EncryptableURI: string; EncryptedPath: string; - EncryptedValue: string; Ens: string; EvmAddress: EvmAddress; Handle: string; @@ -116,14 +115,6 @@ export type ApprovedModuleAllowanceAmountRequest = { unknownReferenceModules?: InputMaybe>; }; -export enum AttributeType { - Boolean = 'BOOLEAN', - Date = 'DATE', - Json = 'JSON', - Number = 'NUMBER', - String = 'STRING', -} - export type BlockRequest = { profiles: Array; }; @@ -464,16 +455,6 @@ export type LegacyCollectRequest = { referrer?: InputMaybe; }; -export enum LegacyPublicationMetadataMainFocusType { - Article = 'ARTICLE', - Audio = 'AUDIO', - Embed = 'EMBED', - Image = 'IMAGE', - Link = 'LINK', - TextOnly = 'TEXT_ONLY', - Video = 'VIDEO', -} - export enum LensProfileManagerRelayErrorReasonType { AppGaslessNotAllowed = 'APP_GASLESS_NOT_ALLOWED', Failed = 'FAILED', @@ -1679,6 +1660,36 @@ export type UnknownFollowModuleSettings = { export type NetworkAddress = { address: EvmAddress; chainId: number }; +export type MetadataBooleanAttribute = { + __typename: 'MetadataBooleanAttribute'; + key: string; + value: string; +}; + +export type MetadataDateAttribute = { + __typename: 'MetadataDateAttribute'; + key: string; + value: string; +}; + +export type MetadataNumberAttribute = { + __typename: 'MetadataNumberAttribute'; + key: string; + value: string; +}; + +export type MetadataJsonAttribute = { + __typename: 'MetadataJSONAttribute'; + key: string; + value: string; +}; + +export type MetadataStringAttribute = { + __typename: 'MetadataStringAttribute'; + key: string; + value: string; +}; + export type Image = { uri: string; mimeType: string | null; @@ -1686,9 +1697,18 @@ export type Image = { height: number | null; }; -export type Video = { uri: string; mimeType: string | null }; +export type ImageSet = { raw: Image; optimized: Image | null; transformed: Image | null }; -export type VideoSet = { raw: Video; optimized: Video | null }; +export type EncryptableImage = { + uri: string; + mimeType: string | null; + width: number | null; + height: number | null; +}; + +export type EncryptableImageSet = { raw: EncryptableImage; optimized: Image | null }; + +export type Video = { uri: string; mimeType: string | null }; export type EncryptableVideo = { mimeType: string | null; uri: string }; @@ -1696,26 +1716,10 @@ export type EncryptableVideoSet = { raw: EncryptableVideo; optimized: Video | nu export type Audio = { uri: string; mimeType: string | null }; -export type AudioSet = { raw: Audio; optimized: Audio | null }; - export type EncryptableAudio = { mimeType: string | null; uri: string }; export type EncryptableAudioSet = { raw: EncryptableAudio; optimized: Audio | null }; -export type LegacyAudioItem = { - altTag: string | null; - audio: AudioSet; - cover: PublicationImageSet | null; -}; - -export type LegacyImageItem = { altTag: string | null; image: PublicationImageSet }; - -export type LegacyVideoItem = { - altTag: string | null; - video: VideoSet; - cover: PublicationImageSet | null; -}; - export type ProfileCoverSet = { raw: Image; optimized: Image | null; transformed: Image | null }; export type ProfilePictureSet = { @@ -1784,12 +1788,19 @@ export type Profile = { | UnknownFollowModuleSettings | null; metadata: { + appId: AppId | null; displayName: string | null; bio: string | null; rawURI: string; picture: ProfilePictureSet | NftImage | null; coverPicture: ProfileCoverSet | null; - attributes: Array<{ type: AttributeType; key: string; value: string }>; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; } | null; invitedBy: { id: ProfileId } | null; stats: ProfileStats; @@ -1964,8 +1975,8 @@ export type PublicationOperations = { canDecrypt: CanDecryptResponse; }; -export type PublicationMetadataEncryptionStrategy = { - __typename: 'PublicationMetadataV3LitEncryption'; +export type PublicationMetadataLitEncryption = { + __typename: 'PublicationMetadataLitEncryption'; encryptionKey: ContentEncryptionKey; encryptedPaths: Array; accessCondition: RootCondition; @@ -2037,21 +2048,6 @@ export type RootCondition = { >; }; -export type PublicationImageSet = { - raw: Image; - optimized: Image | null; - transformed: Image | null; -}; - -export type EncryptableImage = { - uri: string; - mimeType: string | null; - width: number | null; - height: number | null; -}; - -export type PublicationEncryptableImageSet = { raw: EncryptableImage; optimized: Image | null }; - export type PublicationMarketplaceMetadataAttribute = { displayType: MarketplaceMetadataAttributeDisplayType | null; traitType: string | null; @@ -2064,7 +2060,7 @@ export type MarketplaceMetadata = { name: string | null; animationUrl: string | null; attributes: Array | null; - image: PublicationImageSet | null; + image: ImageSet | null; }; export type PublicationMetadataMediaVideo = { @@ -2072,12 +2068,26 @@ export type PublicationMetadataMediaVideo = { license: PublicationMetadataLicenseType | null; altTag: string | null; video: EncryptableVideoSet; - cover: PublicationEncryptableImageSet | null; + cover: EncryptableImageSet | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; }; export type PublicationMetadataMediaImage = { license: PublicationMetadataLicenseType | null; - image: PublicationEncryptableImageSet; + image: EncryptableImageSet; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; }; export type PublicationMetadataMediaAudio = { @@ -2089,33 +2099,14 @@ export type PublicationMetadataMediaAudio = { recordLabel: string | null; lyrics: string | null; audio: EncryptableAudioSet; - cover: PublicationEncryptableImageSet | null; -}; - -export type LegacyPublicationMetadata = { - content: string; - locale: string; - tags: Array | null; - contentWarning: PublicationContentWarningType | null; - mainContentFocus: LegacyPublicationMetadataMainFocusType; - media: Array | null; - marketplace: MarketplaceMetadata | null; - encryptedWith: { - encryptionKey: ContentEncryptionKey; - encryptedFields: { - content: string | null; - image: string | null; - animationUrl: string | null; - externalUrl: string | null; - media: Array<{ - uri: string; - mimeType: string | null; - altTag: string | null; - cover: string | null; - }> | null; - }; - accessCondition: RootCondition; - } | null; + cover: EncryptableImageSet | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; }; export type VideoMetadataV3 = { @@ -2130,8 +2121,14 @@ export type VideoMetadataV3 = { title: string; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; asset: PublicationMetadataMediaVideo; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo @@ -2149,8 +2146,14 @@ export type AudioMetadataV3 = { title: string; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; asset: PublicationMetadataMediaAudio; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo @@ -2168,8 +2171,14 @@ export type ImageMetadataV3 = { title: string; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; asset: PublicationMetadataMediaImage; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo @@ -2187,8 +2196,14 @@ export type ArticleMetadataV3 = { title: string; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2207,8 +2222,14 @@ export type EventMetadataV3 = { links: Array | null; location: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; geographic: { latitude: number | null; longitude: number | null } | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo @@ -2226,8 +2247,14 @@ export type LinkMetadataV3 = { content: string; sharingLink: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2244,8 +2271,14 @@ export type EmbedMetadataV3 = { content: string; embed: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2262,8 +2295,14 @@ export type CheckingInMetadataV3 = { content: string; location: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; geographic: { latitude: number | null; longitude: number | null } | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo @@ -2280,8 +2319,14 @@ export type TextOnlyMetadataV3 = { appId: AppId | null; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; }; export type ThreeDMetadataV3 = { @@ -2294,8 +2339,14 @@ export type ThreeDMetadataV3 = { appId: AppId | null; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; assets: Array<{ uri: string; zipPath: string | null; @@ -2318,8 +2369,14 @@ export type StoryMetadataV3 = { appId: AppId | null; content: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; asset: | PublicationMetadataMediaAudio | PublicationMetadataMediaImage @@ -2339,8 +2396,14 @@ export type TransactionMetadataV3 = { txHash: string; chainId: number; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2357,8 +2420,14 @@ export type MintMetadataV3 = { content: string; mintLink: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2377,8 +2446,14 @@ export type SpaceMetadataV3 = { link: string; startsAt: string; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2400,8 +2475,14 @@ export type LiveStreamMetadataV3 = { liveURL: string; checkLiveAPI: string | null; marketplace: MarketplaceMetadata | null; - attributes: Array<{ key: string; value: string }> | null; - encryptedWith: PublicationMetadataEncryptionStrategy | null; + attributes: Array< + | MetadataBooleanAttribute + | MetadataDateAttribute + | MetadataJsonAttribute + | MetadataNumberAttribute + | MetadataStringAttribute + > | null; + encryptedWith: PublicationMetadataLitEncryption | null; attachments: Array< PublicationMetadataMediaAudio | PublicationMetadataMediaImage | PublicationMetadataMediaVideo > | null; @@ -2435,7 +2516,6 @@ export type Post = { | EmbedMetadataV3 | EventMetadataV3 | ImageMetadataV3 - | LegacyPublicationMetadata | LinkMetadataV3 | LiveStreamMetadataV3 | MintMetadataV3 @@ -2485,7 +2565,6 @@ export type CommentBase = { | EmbedMetadataV3 | EventMetadataV3 | ImageMetadataV3 - | LegacyPublicationMetadata | LinkMetadataV3 | LiveStreamMetadataV3 | MintMetadataV3 @@ -2553,7 +2632,6 @@ export type QuoteBase = { | EmbedMetadataV3 | EventMetadataV3 | ImageMetadataV3 - | LegacyPublicationMetadata | LinkMetadataV3 | LiveStreamMetadataV3 | MintMetadataV3 @@ -3757,6 +3835,41 @@ export const FragmentProfileCoverSet = /*#__PURE__*/ gql` } ${FragmentImage} `; +export const FragmentMetadataBooleanAttribute = /*#__PURE__*/ gql` + fragment MetadataBooleanAttribute on MetadataBooleanAttribute { + __typename + key + value + } +`; +export const FragmentMetadataDateAttribute = /*#__PURE__*/ gql` + fragment MetadataDateAttribute on MetadataDateAttribute { + __typename + key + value + } +`; +export const FragmentMetadataNumberAttribute = /*#__PURE__*/ gql` + fragment MetadataNumberAttribute on MetadataNumberAttribute { + __typename + key + value + } +`; +export const FragmentMetadataJsonAttribute = /*#__PURE__*/ gql` + fragment MetadataJSONAttribute on MetadataJSONAttribute { + __typename + key + value + } +`; +export const FragmentMetadataStringAttribute = /*#__PURE__*/ gql` + fragment MetadataStringAttribute on MetadataStringAttribute { + __typename + key + value + } +`; export const FragmentProfileStats = /*#__PURE__*/ gql` fragment ProfileStats on ProfileStats { id @@ -3836,6 +3949,7 @@ export const FragmentProfile = /*#__PURE__*/ gql` } } metadata { + appId displayName bio rawURI @@ -3851,9 +3965,21 @@ export const FragmentProfile = /*#__PURE__*/ gql` ...ProfileCoverSet } attributes { - type - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } } handle @@ -3874,6 +4000,11 @@ export const FragmentProfile = /*#__PURE__*/ gql` ${FragmentProfilePictureSet} ${FragmentNftImage} ${FragmentProfileCoverSet} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} ${FragmentProfileStats} `; export const FragmentKnownCollectOpenActionResult = /*#__PURE__*/ gql` @@ -3932,25 +4063,15 @@ export const FragmentPublicationOperations = /*#__PURE__*/ gql` ${FragmentOpenActionResult} ${FragmentCanDecryptResponse} `; -export const FragmentAudio = /*#__PURE__*/ gql` - fragment Audio on Audio { - uri - mimeType - } -`; -export const FragmentAudioSet = /*#__PURE__*/ gql` - fragment AudioSet on AudioSet { - raw { - ...Audio - } - optimized { - ...Audio - } +export const FragmentPublicationMarketplaceMetadataAttribute = /*#__PURE__*/ gql` + fragment PublicationMarketplaceMetadataAttribute on PublicationMarketplaceMetadataAttribute { + displayType + traitType + value } - ${FragmentAudio} `; -export const FragmentPublicationImageSet = /*#__PURE__*/ gql` - fragment PublicationImageSet on ImageSet { +export const FragmentImageSet = /*#__PURE__*/ gql` + fragment ImageSet on ImageSet { raw { ...Image } @@ -3963,65 +4084,6 @@ export const FragmentPublicationImageSet = /*#__PURE__*/ gql` } ${FragmentImage} `; -export const FragmentLegacyAudioItem = /*#__PURE__*/ gql` - fragment LegacyAudioItem on LegacyAudioItem { - audio { - ...AudioSet - } - cover { - ...PublicationImageSet - } - altTag - } - ${FragmentAudioSet} - ${FragmentPublicationImageSet} -`; -export const FragmentLegacyImageItem = /*#__PURE__*/ gql` - fragment LegacyImageItem on LegacyImageItem { - image { - ...PublicationImageSet - } - altTag - } - ${FragmentPublicationImageSet} -`; -export const FragmentVideo = /*#__PURE__*/ gql` - fragment Video on Video { - uri - mimeType - } -`; -export const FragmentVideoSet = /*#__PURE__*/ gql` - fragment VideoSet on VideoSet { - raw { - ...Video - } - optimized { - ...Video - } - } - ${FragmentVideo} -`; -export const FragmentLegacyVideoItem = /*#__PURE__*/ gql` - fragment LegacyVideoItem on LegacyVideoItem { - video { - ...VideoSet - } - cover { - ...PublicationImageSet - } - altTag - } - ${FragmentVideoSet} - ${FragmentPublicationImageSet} -`; -export const FragmentPublicationMarketplaceMetadataAttribute = /*#__PURE__*/ gql` - fragment PublicationMarketplaceMetadataAttribute on PublicationMarketplaceMetadataAttribute { - displayType - traitType - value - } -`; export const FragmentMarketplaceMetadata = /*#__PURE__*/ gql` fragment MarketplaceMetadata on MarketplaceMetadata { description @@ -4031,12 +4093,12 @@ export const FragmentMarketplaceMetadata = /*#__PURE__*/ gql` ...PublicationMarketplaceMetadataAttribute } image { - ...PublicationImageSet + ...ImageSet } animationUrl } ${FragmentPublicationMarketplaceMetadataAttribute} - ${FragmentPublicationImageSet} + ${FragmentImageSet} `; export const FragmentNftOwnershipCondition = /*#__PURE__*/ gql` fragment NftOwnershipCondition on NftOwnershipCondition { @@ -4185,54 +4247,8 @@ export const FragmentRootCondition = /*#__PURE__*/ gql` ${FragmentAndCondition} ${FragmentOrCondition} `; -export const FragmentLegacyPublicationMetadata = /*#__PURE__*/ gql` - fragment LegacyPublicationMetadata on LegacyPublicationMetadata { - content - media { - ... on LegacyAudioItem { - ...LegacyAudioItem - } - ... on LegacyImageItem { - ...LegacyImageItem - } - ... on LegacyVideoItem { - ...LegacyVideoItem - } - } - locale - tags - contentWarning - mainContentFocus - marketplace { - ...MarketplaceMetadata - } - encryptedWith { - encryptionKey - encryptedFields { - content - image - media { - uri - mimeType - altTag - cover - } - animationUrl - externalUrl - } - accessCondition { - ...RootCondition - } - } - } - ${FragmentLegacyAudioItem} - ${FragmentLegacyImageItem} - ${FragmentLegacyVideoItem} - ${FragmentMarketplaceMetadata} - ${FragmentRootCondition} -`; -export const FragmentPublicationMetadataEncryptionStrategy = /*#__PURE__*/ gql` - fragment PublicationMetadataEncryptionStrategy on PublicationMetadataV3LitEncryption { +export const FragmentPublicationMetadataLitEncryption = /*#__PURE__*/ gql` + fragment PublicationMetadataLitEncryption on PublicationMetadataLitEncryption { __typename encryptionKey accessCondition { @@ -4248,6 +4264,12 @@ export const FragmentEncryptableAudio = /*#__PURE__*/ gql` uri } `; +export const FragmentAudio = /*#__PURE__*/ gql` + fragment Audio on Audio { + uri + mimeType + } +`; export const FragmentEncryptableAudioSet = /*#__PURE__*/ gql` fragment EncryptableAudioSet on EncryptableAudioSet { raw { @@ -4268,8 +4290,8 @@ export const FragmentEncryptableImage = /*#__PURE__*/ gql` height } `; -export const FragmentPublicationEncryptableImageSet = /*#__PURE__*/ gql` - fragment PublicationEncryptableImageSet on EncryptableImageSet { +export const FragmentEncryptableImageSet = /*#__PURE__*/ gql` + fragment EncryptableImageSet on EncryptableImageSet { raw { ...EncryptableImage } @@ -4286,7 +4308,7 @@ export const FragmentPublicationMetadataMediaAudio = /*#__PURE__*/ gql` ...EncryptableAudioSet } cover { - ...PublicationEncryptableImageSet + ...EncryptableImageSet } duration license @@ -4295,9 +4317,31 @@ export const FragmentPublicationMetadataMediaAudio = /*#__PURE__*/ gql` genre recordLabel lyrics + attributes { + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } + } } ${FragmentEncryptableAudioSet} - ${FragmentPublicationEncryptableImageSet} + ${FragmentEncryptableImageSet} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} `; export const FragmentEncryptableVideo = /*#__PURE__*/ gql` fragment EncryptableVideo on EncryptableVideo { @@ -4305,6 +4349,12 @@ export const FragmentEncryptableVideo = /*#__PURE__*/ gql` uri } `; +export const FragmentVideo = /*#__PURE__*/ gql` + fragment Video on Video { + uri + mimeType + } +`; export const FragmentEncryptableVideoSet = /*#__PURE__*/ gql` fragment EncryptableVideoSet on EncryptableVideoSet { raw { @@ -4323,23 +4373,67 @@ export const FragmentPublicationMetadataMediaVideo = /*#__PURE__*/ gql` ...EncryptableVideoSet } cover { - ...PublicationEncryptableImageSet + ...EncryptableImageSet } duration license altTag + attributes { + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } + } } ${FragmentEncryptableVideoSet} - ${FragmentPublicationEncryptableImageSet} + ${FragmentEncryptableImageSet} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} `; export const FragmentPublicationMetadataMediaImage = /*#__PURE__*/ gql` fragment PublicationMetadataMediaImage on PublicationMetadataMediaImage { image { - ...PublicationEncryptableImageSet + ...EncryptableImageSet } license + attributes { + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } + } } - ${FragmentPublicationEncryptableImageSet} + ${FragmentEncryptableImageSet} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} `; export const FragmentAudioMetadataV3 = /*#__PURE__*/ gql` fragment AudioMetadataV3 on AudioMetadataV3 { @@ -4354,12 +4448,25 @@ export const FragmentAudioMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } asset { @@ -4380,7 +4487,12 @@ export const FragmentAudioMetadataV3 = /*#__PURE__*/ gql` content } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaAudio} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} @@ -4398,12 +4510,25 @@ export const FragmentVideoMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } asset { @@ -4425,7 +4550,12 @@ export const FragmentVideoMetadataV3 = /*#__PURE__*/ gql` content } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4443,12 +4573,25 @@ export const FragmentImageMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } title @@ -4469,7 +4612,12 @@ export const FragmentImageMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaAudio} @@ -4487,12 +4635,25 @@ export const FragmentArticleMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } title @@ -4510,7 +4671,12 @@ export const FragmentArticleMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4528,12 +4694,25 @@ export const FragmentEventMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } geographic { @@ -4557,7 +4736,12 @@ export const FragmentEventMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4575,12 +4759,25 @@ export const FragmentLinkMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4598,7 +4795,12 @@ export const FragmentLinkMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4616,12 +4818,25 @@ export const FragmentEmbedMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4639,7 +4854,12 @@ export const FragmentEmbedMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4657,12 +4877,25 @@ export const FragmentCheckingInMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4684,7 +4917,12 @@ export const FragmentCheckingInMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4702,18 +4940,36 @@ export const FragmentTextOnlyMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} `; export const FragmentThreeDMetadataV3 = /*#__PURE__*/ gql` fragment ThreeDMetadataV3 on ThreeDMetadataV3 { @@ -4728,12 +4984,25 @@ export const FragmentThreeDMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4757,7 +5026,12 @@ export const FragmentThreeDMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4775,12 +5049,25 @@ export const FragmentStoryMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4797,7 +5084,12 @@ export const FragmentStoryMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4815,12 +5107,25 @@ export const FragmentTransactionMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4840,7 +5145,12 @@ export const FragmentTransactionMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4858,12 +5168,25 @@ export const FragmentMintMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4881,7 +5204,12 @@ export const FragmentMintMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4899,12 +5227,25 @@ export const FragmentSpaceMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } content @@ -4924,7 +5265,12 @@ export const FragmentSpaceMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -4942,12 +5288,25 @@ export const FragmentLiveStreamMetadataV3 = /*#__PURE__*/ gql` ...MarketplaceMetadata } attributes { - key - value + ... on MetadataBooleanAttribute { + ...MetadataBooleanAttribute + } + ... on MetadataDateAttribute { + ...MetadataDateAttribute + } + ... on MetadataNumberAttribute { + ...MetadataNumberAttribute + } + ... on MetadataJSONAttribute { + ...MetadataJSONAttribute + } + ... on MetadataStringAttribute { + ...MetadataStringAttribute + } } encryptedWith { - ... on PublicationMetadataEncryptionStrategy { - ...PublicationMetadataEncryptionStrategy + ... on PublicationMetadataLitEncryption { + ...PublicationMetadataLitEncryption } } title @@ -4970,7 +5329,12 @@ export const FragmentLiveStreamMetadataV3 = /*#__PURE__*/ gql` } } ${FragmentMarketplaceMetadata} - ${FragmentPublicationMetadataEncryptionStrategy} + ${FragmentMetadataBooleanAttribute} + ${FragmentMetadataDateAttribute} + ${FragmentMetadataNumberAttribute} + ${FragmentMetadataJsonAttribute} + ${FragmentMetadataStringAttribute} + ${FragmentPublicationMetadataLitEncryption} ${FragmentPublicationMetadataMediaVideo} ${FragmentPublicationMetadataMediaImage} ${FragmentPublicationMetadataMediaAudio} @@ -5235,9 +5599,6 @@ export const FragmentPost = /*#__PURE__*/ gql` ...PublicationOperations } metadata { - ... on LegacyPublicationMetadata { - ...LegacyPublicationMetadata - } ... on AudioMetadataV3 { ...AudioMetadataV3 } @@ -5344,7 +5705,6 @@ export const FragmentPost = /*#__PURE__*/ gql` ${FragmentMomokaInfo} ${FragmentProfile} ${FragmentPublicationOperations} - ${FragmentLegacyPublicationMetadata} ${FragmentAudioMetadataV3} ${FragmentVideoMetadataV3} ${FragmentImageMetadataV3} @@ -5398,9 +5758,6 @@ export const FragmentCommentBase = /*#__PURE__*/ gql` ...PublicationOperations } metadata { - ... on LegacyPublicationMetadata { - ...LegacyPublicationMetadata - } ... on AudioMetadataV3 { ...AudioMetadataV3 } @@ -5504,7 +5861,6 @@ export const FragmentCommentBase = /*#__PURE__*/ gql` ${FragmentMomokaInfo} ${FragmentProfile} ${FragmentPublicationOperations} - ${FragmentLegacyPublicationMetadata} ${FragmentAudioMetadataV3} ${FragmentVideoMetadataV3} ${FragmentImageMetadataV3} @@ -5557,9 +5913,6 @@ export const FragmentQuoteBase = /*#__PURE__*/ gql` ...PublicationOperations } metadata { - ... on LegacyPublicationMetadata { - ...LegacyPublicationMetadata - } ... on AudioMetadataV3 { ...AudioMetadataV3 } @@ -5663,7 +6016,6 @@ export const FragmentQuoteBase = /*#__PURE__*/ gql` ${FragmentMomokaInfo} ${FragmentProfile} ${FragmentPublicationOperations} - ${FragmentLegacyPublicationMetadata} ${FragmentAudioMetadataV3} ${FragmentVideoMetadataV3} ${FragmentImageMetadataV3} @@ -10880,12 +11232,6 @@ export type ArticleMetadataV3FieldPolicy = { tags?: FieldPolicy | FieldReadFunction; title?: FieldPolicy | FieldReadFunction; }; -export type AttributeKeySpecifier = ('key' | 'type' | 'value' | AttributeKeySpecifier)[]; -export type AttributeFieldPolicy = { - key?: FieldPolicy | FieldReadFunction; - type?: FieldPolicy | FieldReadFunction; - value?: FieldPolicy | FieldReadFunction; -}; export type AudioKeySpecifier = ('mimeType' | 'uri' | AudioKeySpecifier)[]; export type AudioFieldPolicy = { mimeType?: FieldPolicy | FieldReadFunction; @@ -10924,11 +11270,6 @@ export type AudioMetadataV3FieldPolicy = { tags?: FieldPolicy | FieldReadFunction; title?: FieldPolicy | FieldReadFunction; }; -export type AudioSetKeySpecifier = ('optimized' | 'raw' | AudioSetKeySpecifier)[]; -export type AudioSetFieldPolicy = { - optimized?: FieldPolicy | FieldReadFunction; - raw?: FieldPolicy | FieldReadFunction; -}; export type AuthChallengeResultKeySpecifier = ('id' | 'text' | AuthChallengeResultKeySpecifier)[]; export type AuthChallengeResultFieldPolicy = { id?: FieldPolicy | FieldReadFunction; @@ -12099,19 +12440,6 @@ export type EncryptableVideoSetFieldPolicy = { optimized?: FieldPolicy | FieldReadFunction; raw?: FieldPolicy | FieldReadFunction; }; -export type EncryptedMediaKeySpecifier = ( - | 'altTag' - | 'cover' - | 'mimeType' - | 'uri' - | EncryptedMediaKeySpecifier -)[]; -export type EncryptedMediaFieldPolicy = { - altTag?: FieldPolicy | FieldReadFunction; - cover?: FieldPolicy | FieldReadFunction; - mimeType?: FieldPolicy | FieldReadFunction; - uri?: FieldPolicy | FieldReadFunction; -}; export type EnsOnchainIdentityKeySpecifier = ('name' | EnsOnchainIdentityKeySpecifier)[]; export type EnsOnchainIdentityFieldPolicy = { name?: FieldPolicy | FieldReadFunction; @@ -12362,17 +12690,6 @@ export type LegacyAaveFeeCollectModuleSettingsFieldPolicy = { recipient?: FieldPolicy | FieldReadFunction; referralFee?: FieldPolicy | FieldReadFunction; }; -export type LegacyAudioItemKeySpecifier = ( - | 'altTag' - | 'audio' - | 'cover' - | LegacyAudioItemKeySpecifier -)[]; -export type LegacyAudioItemFieldPolicy = { - altTag?: FieldPolicy | FieldReadFunction; - audio?: FieldPolicy | FieldReadFunction; - cover?: FieldPolicy | FieldReadFunction; -}; export type LegacyERC4626FeeCollectModuleSettingsKeySpecifier = ( | 'amount' | 'collectLimit' @@ -12422,11 +12739,6 @@ export type LegacyFreeCollectModuleSettingsFieldPolicy = { contract?: FieldPolicy | FieldReadFunction; followerOnly?: FieldPolicy | FieldReadFunction; }; -export type LegacyImageItemKeySpecifier = ('altTag' | 'image' | LegacyImageItemKeySpecifier)[]; -export type LegacyImageItemFieldPolicy = { - altTag?: FieldPolicy | FieldReadFunction; - image?: FieldPolicy | FieldReadFunction; -}; export type LegacyLimitedFeeCollectModuleSettingsKeySpecifier = ( | 'amount' | 'collectLimit' @@ -12488,33 +12800,6 @@ export type LegacyMultirecipientFeeCollectModuleSettingsFieldPolicy = { recipients?: FieldPolicy | FieldReadFunction; referralFee?: FieldPolicy | FieldReadFunction; }; -export type LegacyPublicationMetadataKeySpecifier = ( - | 'appId' - | 'content' - | 'contentWarning' - | 'encryptedWith' - | 'id' - | 'locale' - | 'mainContentFocus' - | 'marketplace' - | 'media' - | 'rawURI' - | 'tags' - | LegacyPublicationMetadataKeySpecifier -)[]; -export type LegacyPublicationMetadataFieldPolicy = { - appId?: FieldPolicy | FieldReadFunction; - content?: FieldPolicy | FieldReadFunction; - contentWarning?: FieldPolicy | FieldReadFunction; - encryptedWith?: FieldPolicy | FieldReadFunction; - id?: FieldPolicy | FieldReadFunction; - locale?: FieldPolicy | FieldReadFunction; - mainContentFocus?: FieldPolicy | FieldReadFunction; - marketplace?: FieldPolicy | FieldReadFunction; - media?: FieldPolicy | FieldReadFunction; - rawURI?: FieldPolicy | FieldReadFunction; - tags?: FieldPolicy | FieldReadFunction; -}; export type LegacyRevertCollectModuleSettingsKeySpecifier = ( | 'contract' | LegacyRevertCollectModuleSettingsKeySpecifier @@ -12562,17 +12847,6 @@ export type LegacyTimedFeeCollectModuleSettingsFieldPolicy = { recipient?: FieldPolicy | FieldReadFunction; referralFee?: FieldPolicy | FieldReadFunction; }; -export type LegacyVideoItemKeySpecifier = ( - | 'altTag' - | 'cover' - | 'video' - | LegacyVideoItemKeySpecifier -)[]; -export type LegacyVideoItemFieldPolicy = { - altTag?: FieldPolicy | FieldReadFunction; - cover?: FieldPolicy | FieldReadFunction; - video?: FieldPolicy | FieldReadFunction; -}; export type LensProfileManagerRelayErrorKeySpecifier = ( | 'reason' | LensProfileManagerRelayErrorKeySpecifier @@ -12691,6 +12965,51 @@ export type MentionNotificationFieldPolicy = { id?: FieldPolicy | FieldReadFunction; publication?: FieldPolicy | FieldReadFunction; }; +export type MetadataBooleanAttributeKeySpecifier = ( + | 'key' + | 'value' + | MetadataBooleanAttributeKeySpecifier +)[]; +export type MetadataBooleanAttributeFieldPolicy = { + key?: FieldPolicy | FieldReadFunction; + value?: FieldPolicy | FieldReadFunction; +}; +export type MetadataDateAttributeKeySpecifier = ( + | 'key' + | 'value' + | MetadataDateAttributeKeySpecifier +)[]; +export type MetadataDateAttributeFieldPolicy = { + key?: FieldPolicy | FieldReadFunction; + value?: FieldPolicy | FieldReadFunction; +}; +export type MetadataJSONAttributeKeySpecifier = ( + | 'key' + | 'value' + | MetadataJSONAttributeKeySpecifier +)[]; +export type MetadataJSONAttributeFieldPolicy = { + key?: FieldPolicy | FieldReadFunction; + value?: FieldPolicy | FieldReadFunction; +}; +export type MetadataNumberAttributeKeySpecifier = ( + | 'key' + | 'value' + | MetadataNumberAttributeKeySpecifier +)[]; +export type MetadataNumberAttributeFieldPolicy = { + key?: FieldPolicy | FieldReadFunction; + value?: FieldPolicy | FieldReadFunction; +}; +export type MetadataStringAttributeKeySpecifier = ( + | 'key' + | 'value' + | MetadataStringAttributeKeySpecifier +)[]; +export type MetadataStringAttributeFieldPolicy = { + key?: FieldPolicy | FieldReadFunction; + value?: FieldPolicy | FieldReadFunction; +}; export type MintMetadataV3KeySpecifier = ( | 'appId' | 'attachments' @@ -13549,7 +13868,7 @@ export type ProfileGuardianResultFieldPolicy = { protected?: FieldPolicy | FieldReadFunction; }; export type ProfileMetadataKeySpecifier = ( - | 'app' + | 'appId' | 'attributes' | 'bio' | 'coverPicture' @@ -13559,7 +13878,7 @@ export type ProfileMetadataKeySpecifier = ( | ProfileMetadataKeySpecifier )[]; export type ProfileMetadataFieldPolicy = { - app?: FieldPolicy | FieldReadFunction; + appId?: FieldPolicy | FieldReadFunction; attributes?: FieldPolicy | FieldReadFunction; bio?: FieldPolicy | FieldReadFunction; coverPicture?: FieldPolicy | FieldReadFunction; @@ -13688,8 +14007,20 @@ export type PublicationMarketplaceMetadataAttributeFieldPolicy = { traitType?: FieldPolicy | FieldReadFunction; value?: FieldPolicy | FieldReadFunction; }; +export type PublicationMetadataLitEncryptionKeySpecifier = ( + | 'accessCondition' + | 'encryptedPaths' + | 'encryptionKey' + | PublicationMetadataLitEncryptionKeySpecifier +)[]; +export type PublicationMetadataLitEncryptionFieldPolicy = { + accessCondition?: FieldPolicy | FieldReadFunction; + encryptedPaths?: FieldPolicy | FieldReadFunction; + encryptionKey?: FieldPolicy | FieldReadFunction; +}; export type PublicationMetadataMediaAudioKeySpecifier = ( | 'artist' + | 'attributes' | 'audio' | 'cover' | 'credits' @@ -13702,6 +14033,7 @@ export type PublicationMetadataMediaAudioKeySpecifier = ( )[]; export type PublicationMetadataMediaAudioFieldPolicy = { artist?: FieldPolicy | FieldReadFunction; + attributes?: FieldPolicy | FieldReadFunction; audio?: FieldPolicy | FieldReadFunction; cover?: FieldPolicy | FieldReadFunction; credits?: FieldPolicy | FieldReadFunction; @@ -13713,17 +14045,20 @@ export type PublicationMetadataMediaAudioFieldPolicy = { }; export type PublicationMetadataMediaImageKeySpecifier = ( | 'altTag' + | 'attributes' | 'image' | 'license' | PublicationMetadataMediaImageKeySpecifier )[]; export type PublicationMetadataMediaImageFieldPolicy = { altTag?: FieldPolicy | FieldReadFunction; + attributes?: FieldPolicy | FieldReadFunction; image?: FieldPolicy | FieldReadFunction; license?: FieldPolicy | FieldReadFunction; }; export type PublicationMetadataMediaVideoKeySpecifier = ( | 'altTag' + | 'attributes' | 'cover' | 'duration' | 'license' @@ -13732,57 +14067,12 @@ export type PublicationMetadataMediaVideoKeySpecifier = ( )[]; export type PublicationMetadataMediaVideoFieldPolicy = { altTag?: FieldPolicy | FieldReadFunction; + attributes?: FieldPolicy | FieldReadFunction; cover?: FieldPolicy | FieldReadFunction; duration?: FieldPolicy | FieldReadFunction; license?: FieldPolicy | FieldReadFunction; video?: FieldPolicy | FieldReadFunction; }; -export type PublicationMetadataV2EncryptedFieldsKeySpecifier = ( - | 'animationUrl' - | 'content' - | 'externalUrl' - | 'image' - | 'media' - | PublicationMetadataV2EncryptedFieldsKeySpecifier -)[]; -export type PublicationMetadataV2EncryptedFieldsFieldPolicy = { - animationUrl?: FieldPolicy | FieldReadFunction; - content?: FieldPolicy | FieldReadFunction; - externalUrl?: FieldPolicy | FieldReadFunction; - image?: FieldPolicy | FieldReadFunction; - media?: FieldPolicy | FieldReadFunction; -}; -export type PublicationMetadataV2EncryptionKeySpecifier = ( - | 'accessCondition' - | 'encryptedFields' - | 'encryptionKey' - | PublicationMetadataV2EncryptionKeySpecifier -)[]; -export type PublicationMetadataV2EncryptionFieldPolicy = { - accessCondition?: FieldPolicy | FieldReadFunction; - encryptedFields?: FieldPolicy | FieldReadFunction; - encryptionKey?: FieldPolicy | FieldReadFunction; -}; -export type PublicationMetadataV3AttributeKeySpecifier = ( - | 'key' - | 'value' - | PublicationMetadataV3AttributeKeySpecifier -)[]; -export type PublicationMetadataV3AttributeFieldPolicy = { - key?: FieldPolicy | FieldReadFunction; - value?: FieldPolicy | FieldReadFunction; -}; -export type PublicationMetadataV3LitEncryptionKeySpecifier = ( - | 'accessCondition' - | 'encryptedPaths' - | 'encryptionKey' - | PublicationMetadataV3LitEncryptionKeySpecifier -)[]; -export type PublicationMetadataV3LitEncryptionFieldPolicy = { - accessCondition?: FieldPolicy | FieldReadFunction; - encryptedPaths?: FieldPolicy | FieldReadFunction; - encryptionKey?: FieldPolicy | FieldReadFunction; -}; export type PublicationOperationsKeySpecifier = ( | 'actedOn' | 'canAct' @@ -14433,11 +14723,6 @@ export type VideoMetadataV3FieldPolicy = { tags?: FieldPolicy | FieldReadFunction; title?: FieldPolicy | FieldReadFunction; }; -export type VideoSetKeySpecifier = ('optimized' | 'raw' | VideoSetKeySpecifier)[]; -export type VideoSetFieldPolicy = { - optimized?: FieldPolicy | FieldReadFunction; - raw?: FieldPolicy | FieldReadFunction; -}; export type WorldcoinIdentityKeySpecifier = ('isHuman' | WorldcoinIdentityKeySpecifier)[]; export type WorldcoinIdentityFieldPolicy = { isHuman?: FieldPolicy | FieldReadFunction; @@ -14476,10 +14761,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | ArticleMetadataV3KeySpecifier); fields?: ArticleMetadataV3FieldPolicy; }; - Attribute?: Omit & { - keyFields?: false | AttributeKeySpecifier | (() => undefined | AttributeKeySpecifier); - fields?: AttributeFieldPolicy; - }; Audio?: Omit & { keyFields?: false | AudioKeySpecifier | (() => undefined | AudioKeySpecifier); fields?: AudioFieldPolicy; @@ -14491,10 +14772,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | AudioMetadataV3KeySpecifier); fields?: AudioMetadataV3FieldPolicy; }; - AudioSet?: Omit & { - keyFields?: false | AudioSetKeySpecifier | (() => undefined | AudioSetKeySpecifier); - fields?: AudioSetFieldPolicy; - }; AuthChallengeResult?: Omit & { keyFields?: | false @@ -15150,10 +15427,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | EncryptableVideoSetKeySpecifier); fields?: EncryptableVideoSetFieldPolicy; }; - EncryptedMedia?: Omit & { - keyFields?: false | EncryptedMediaKeySpecifier | (() => undefined | EncryptedMediaKeySpecifier); - fields?: EncryptedMediaFieldPolicy; - }; EnsOnchainIdentity?: Omit & { keyFields?: | false @@ -15288,13 +15561,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | LegacyAaveFeeCollectModuleSettingsKeySpecifier); fields?: LegacyAaveFeeCollectModuleSettingsFieldPolicy; }; - LegacyAudioItem?: Omit & { - keyFields?: - | false - | LegacyAudioItemKeySpecifier - | (() => undefined | LegacyAudioItemKeySpecifier); - fields?: LegacyAudioItemFieldPolicy; - }; LegacyERC4626FeeCollectModuleSettings?: Omit & { keyFields?: | false @@ -15316,13 +15582,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | LegacyFreeCollectModuleSettingsKeySpecifier); fields?: LegacyFreeCollectModuleSettingsFieldPolicy; }; - LegacyImageItem?: Omit & { - keyFields?: - | false - | LegacyImageItemKeySpecifier - | (() => undefined | LegacyImageItemKeySpecifier); - fields?: LegacyImageItemFieldPolicy; - }; LegacyLimitedFeeCollectModuleSettings?: Omit & { keyFields?: | false @@ -15344,13 +15603,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | LegacyMultirecipientFeeCollectModuleSettingsKeySpecifier); fields?: LegacyMultirecipientFeeCollectModuleSettingsFieldPolicy; }; - LegacyPublicationMetadata?: Omit & { - keyFields?: - | false - | LegacyPublicationMetadataKeySpecifier - | (() => undefined | LegacyPublicationMetadataKeySpecifier); - fields?: LegacyPublicationMetadataFieldPolicy; - }; LegacyRevertCollectModuleSettings?: Omit & { keyFields?: | false @@ -15372,13 +15624,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | LegacyTimedFeeCollectModuleSettingsKeySpecifier); fields?: LegacyTimedFeeCollectModuleSettingsFieldPolicy; }; - LegacyVideoItem?: Omit & { - keyFields?: - | false - | LegacyVideoItemKeySpecifier - | (() => undefined | LegacyVideoItemKeySpecifier); - fields?: LegacyVideoItemFieldPolicy; - }; LensProfileManagerRelayError?: Omit & { keyFields?: | false @@ -15418,6 +15663,41 @@ export type StrictTypedTypePolicies = { | (() => undefined | MentionNotificationKeySpecifier); fields?: MentionNotificationFieldPolicy; }; + MetadataBooleanAttribute?: Omit & { + keyFields?: + | false + | MetadataBooleanAttributeKeySpecifier + | (() => undefined | MetadataBooleanAttributeKeySpecifier); + fields?: MetadataBooleanAttributeFieldPolicy; + }; + MetadataDateAttribute?: Omit & { + keyFields?: + | false + | MetadataDateAttributeKeySpecifier + | (() => undefined | MetadataDateAttributeKeySpecifier); + fields?: MetadataDateAttributeFieldPolicy; + }; + MetadataJSONAttribute?: Omit & { + keyFields?: + | false + | MetadataJSONAttributeKeySpecifier + | (() => undefined | MetadataJSONAttributeKeySpecifier); + fields?: MetadataJSONAttributeFieldPolicy; + }; + MetadataNumberAttribute?: Omit & { + keyFields?: + | false + | MetadataNumberAttributeKeySpecifier + | (() => undefined | MetadataNumberAttributeKeySpecifier); + fields?: MetadataNumberAttributeFieldPolicy; + }; + MetadataStringAttribute?: Omit & { + keyFields?: + | false + | MetadataStringAttributeKeySpecifier + | (() => undefined | MetadataStringAttributeKeySpecifier); + fields?: MetadataStringAttributeFieldPolicy; + }; MintMetadataV3?: Omit & { keyFields?: false | MintMetadataV3KeySpecifier | (() => undefined | MintMetadataV3KeySpecifier); fields?: MintMetadataV3FieldPolicy; @@ -15854,6 +16134,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | PublicationMarketplaceMetadataAttributeKeySpecifier); fields?: PublicationMarketplaceMetadataAttributeFieldPolicy; }; + PublicationMetadataLitEncryption?: Omit & { + keyFields?: + | false + | PublicationMetadataLitEncryptionKeySpecifier + | (() => undefined | PublicationMetadataLitEncryptionKeySpecifier); + fields?: PublicationMetadataLitEncryptionFieldPolicy; + }; PublicationMetadataMediaAudio?: Omit & { keyFields?: | false @@ -15875,34 +16162,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | PublicationMetadataMediaVideoKeySpecifier); fields?: PublicationMetadataMediaVideoFieldPolicy; }; - PublicationMetadataV2EncryptedFields?: Omit & { - keyFields?: - | false - | PublicationMetadataV2EncryptedFieldsKeySpecifier - | (() => undefined | PublicationMetadataV2EncryptedFieldsKeySpecifier); - fields?: PublicationMetadataV2EncryptedFieldsFieldPolicy; - }; - PublicationMetadataV2Encryption?: Omit & { - keyFields?: - | false - | PublicationMetadataV2EncryptionKeySpecifier - | (() => undefined | PublicationMetadataV2EncryptionKeySpecifier); - fields?: PublicationMetadataV2EncryptionFieldPolicy; - }; - PublicationMetadataV3Attribute?: Omit & { - keyFields?: - | false - | PublicationMetadataV3AttributeKeySpecifier - | (() => undefined | PublicationMetadataV3AttributeKeySpecifier); - fields?: PublicationMetadataV3AttributeFieldPolicy; - }; - PublicationMetadataV3LitEncryption?: Omit & { - keyFields?: - | false - | PublicationMetadataV3LitEncryptionKeySpecifier - | (() => undefined | PublicationMetadataV3LitEncryptionKeySpecifier); - fields?: PublicationMetadataV3LitEncryptionFieldPolicy; - }; PublicationOperations?: Omit & { keyFields?: | false @@ -16143,10 +16402,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | VideoMetadataV3KeySpecifier); fields?: VideoMetadataV3FieldPolicy; }; - VideoSet?: Omit & { - keyFields?: false | VideoSetKeySpecifier | (() => undefined | VideoSetKeySpecifier); - fields?: VideoSetFieldPolicy; - }; WorldcoinIdentity?: Omit & { keyFields?: | false @@ -16175,8 +16430,14 @@ const result: PossibleTypesResultData = { 'RevertFollowModuleSettings', 'UnknownFollowModuleSettings', ], - LegacyMediaItem: ['LegacyAudioItem', 'LegacyImageItem', 'LegacyVideoItem'], LensProfileManagerRelayResult: ['LensProfileManagerRelayError', 'RelaySuccess'], + MetadataAttribute: [ + 'MetadataBooleanAttribute', + 'MetadataDateAttribute', + 'MetadataJSONAttribute', + 'MetadataNumberAttribute', + 'MetadataStringAttribute', + ], MirrorablePublication: ['Comment', 'Post', 'Quote'], MomokaTransaction: [ 'MomokaCommentTransaction', @@ -16222,7 +16483,6 @@ const result: PossibleTypesResultData = { 'EmbedMetadataV3', 'EventMetadataV3', 'ImageMetadataV3', - 'LegacyPublicationMetadata', 'LinkMetadataV3', 'LiveStreamMetadataV3', 'MintMetadataV3', @@ -16233,7 +16493,7 @@ const result: PossibleTypesResultData = { 'TransactionMetadataV3', 'VideoMetadataV3', ], - PublicationMetadataEncryptionStrategy: ['PublicationMetadataV3LitEncryption'], + PublicationMetadataEncryptionStrategy: ['PublicationMetadataLitEncryption'], PublicationMetadataMedia: [ 'PublicationMetadataMediaAudio', 'PublicationMetadataMediaImage', diff --git a/packages/api-bindings/src/snapshot/generated.ts b/packages/api-bindings/src/snapshot/generated.ts index 62b3b18e45..cfcb7a4f91 100644 --- a/packages/api-bindings/src/snapshot/generated.ts +++ b/packages/api-bindings/src/snapshot/generated.ts @@ -55,6 +55,8 @@ export type FollowWhere = { }; export type MessageWhere = { + address?: InputMaybe; + address_in?: InputMaybe>>; id?: InputMaybe; id_in?: InputMaybe>>; mci?: InputMaybe; diff --git a/packages/client/codegen-api.yml b/packages/client/codegen-api.yml index 7a7d5616db..115058d750 100644 --- a/packages/client/codegen-api.yml +++ b/packages/client/codegen-api.yml @@ -54,8 +54,8 @@ config: field: true schema: - # - https://api-v2-mumbai.lens.dev/graphql - - http://localhost:4000/ + - https://api-v2-mumbai.lens.dev/graphql + # - http://localhost:4000/ documents: - src/**/*.graphql generates: diff --git a/packages/client/src/graphql/fragments.generated.ts b/packages/client/src/graphql/fragments.generated.ts index 8a86660f0d..d58f949dac 100644 --- a/packages/client/src/graphql/fragments.generated.ts +++ b/packages/client/src/graphql/fragments.generated.ts @@ -92,6 +92,27 @@ export type ImageFragment = { height: number | null; }; +export type ImageSetFragment = { + __typename: 'ImageSet'; + raw: ImageFragment; + optimized: ImageFragment | null; + transformed: ImageFragment | null; +}; + +export type EncryptableImageFragment = { + __typename: 'EncryptableImage'; + uri: string; + mimeType: string | null; + width: number | null; + height: number | null; +}; + +export type EncryptableImageSetFragment = { + __typename: 'EncryptableImageSet'; + raw: EncryptableImageFragment; + optimized: ImageFragment | null; +}; + export type VideoFragment = { __typename: 'Video'; uri: string; mimeType: string | null }; export type EncryptableVideoFragment = { @@ -483,27 +504,6 @@ export type RootConditionFragment = { >; }; -export type ImageSetFragment = { - __typename: 'ImageSet'; - raw: ImageFragment; - optimized: ImageFragment | null; - transformed: ImageFragment | null; -}; - -export type EncryptableImageFragment = { - __typename: 'EncryptableImage'; - uri: string; - mimeType: string | null; - width: number | null; - height: number | null; -}; - -export type EncryptableImageSetFragment = { - __typename: 'EncryptableImageSet'; - raw: EncryptableImageFragment; - optimized: ImageFragment | null; -}; - export type PublicationMarketplaceMetadataAttributeFragment = { __typename: 'PublicationMarketplaceMetadataAttribute'; displayType: Types.MarketplaceMetadataAttributeDisplayType | null; diff --git a/packages/client/src/graphql/fragments.graphql b/packages/client/src/graphql/fragments.graphql index fc2dd17587..044c34bfb2 100644 --- a/packages/client/src/graphql/fragments.graphql +++ b/packages/client/src/graphql/fragments.graphql @@ -74,7 +74,6 @@ fragment NetworkAddress on NetworkAddress { } # metadata attributes - fragment MetadataBooleanAttribute on MetadataBooleanAttribute { __typename key @@ -114,6 +113,37 @@ fragment Image on Image { height } +fragment ImageSet on ImageSet { + __typename + raw { + ...Image + } + optimized { + ...Image + } + transformed(request: $publicationImageTransform) { + ...Image + } +} + +fragment EncryptableImage on EncryptableImage { + __typename + uri + mimeType + width + height +} + +fragment EncryptableImageSet on EncryptableImageSet { + __typename + raw { + ...EncryptableImage + } + optimized { + ...Image + } +} + fragment Video on Video { __typename uri @@ -716,37 +746,6 @@ fragment RootCondition on RootCondition { } # publication metadata -fragment ImageSet on ImageSet { - __typename - raw { - ...Image - } - optimized { - ...Image - } - transformed(request: $publicationImageTransform) { - ...Image - } -} - -fragment EncryptableImage on EncryptableImage { - __typename - uri - mimeType - width - height -} - -fragment EncryptableImageSet on EncryptableImageSet { - __typename - raw { - ...EncryptableImage - } - optimized { - ...Image - } -} - fragment PublicationMarketplaceMetadataAttribute on PublicationMarketplaceMetadataAttribute { __typename displayType