__('Types of cards', 'wp-graphql-yoast-seo'), 'values' => [ 'summary_large_image' => [ 'value' => 'summary_large_image', ], 'summary' => [ 'value' => 'summary', ], ], ]); register_graphql_object_type('SEOPostTypeSchema', [ 'description' => __('The Schema types', 'wp-graphql-yoast-seo'), 'fields' => [ 'pageType' => ['type' => ['list_of' => 'String']], 'articleType' => ['type' => ['list_of' => 'String']], 'raw' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOTaxonomySchema', [ 'description' => __('The Schema types for Taxonomy', 'wp-graphql-yoast-seo'), 'fields' => [ 'raw' => ['type' => 'String'], ], ]); $baseSEOFields = [ 'title' => ['type' => 'String'], 'metaDesc' => ['type' => 'String'], 'focuskw' => ['type' => 'String'], 'metaKeywords' => ['type' => 'String'], 'metaRobotsNoindex' => ['type' => 'String'], 'metaRobotsNofollow' => ['type' => 'String'], 'robots' => ['type' => 'SEORobots'], 'opengraphTitle' => ['type' => 'String'], 'opengraphUrl' => ['type' => 'String'], 'opengraphSiteName' => ['type' => 'String'], 'opengraphType' => ['type' => 'String'], 'opengraphAuthor' => ['type' => 'String'], 'opengraphPublisher' => ['type' => 'String'], 'opengraphPublishedTime' => ['type' => 'String'], 'opengraphModifiedTime' => ['type' => 'String'], 'opengraphDescription' => ['type' => 'String'], 'opengraphImage' => ['type' => 'MediaItem'], 'opengraphLocale' => ['type' => 'String'], 'opengraphFbAppId' => ['type' => 'String'], 'opengraphEnabled' => ['type' => 'Boolean'], 'twitterTitle' => ['type' => 'String'], 'twitterDescription' => ['type' => 'String'], 'twitterCardType' => ['type' => 'String'], 'twitterImage' => ['type' => 'MediaItem'], 'twitterCreator' => ['type' => 'String'], 'twitterSite' => ['type' => 'String'], 'canonical' => ['type' => 'String'], 'breadcrumbs' => ['type' => ['list_of' => 'SEOPostTypeBreadcrumbs']], 'cornerstone' => ['type' => 'Boolean'], 'fullHead' => ['type' => 'String'], 'head' => ['type' => 'SEOHead'], 'relNext' => ['type' => 'String'], 'relPrev' => ['type' => 'String'], 'breadcrumbTitle' => ['type' => 'String'], 'objectPublishedAt' => ['type' => 'String'], 'objectLastModified' => ['type' => 'String'], 'language' => ['type' => 'String'], 'region' => ['type' => 'String'], ]; register_graphql_object_type('TaxonomySEO', [ 'fields' => array_merge($baseSEOFields, [ 'schema' => ['type' => 'SEOTaxonomySchema'], 'analysis' => ['type' => 'SEOAnalysis'], ]), ]); register_graphql_object_type('PostTypeSEO', [ 'fields' => array_merge($baseSEOFields, [ 'readingTime' => ['type' => 'Float'], 'schema' => ['type' => 'SEOPostTypeSchema'], 'analysis' => ['type' => 'SEOAnalysis'], ]), ]); register_graphql_object_type('SEOPostTypeBreadcrumbs', [ 'fields' => [ 'url' => ['type' => 'String'], 'text' => ['type' => 'String'], ], ]); register_graphql_object_type('SEORobots', [ 'description' => __('The Yoast SEO robots directives', 'wp-graphql-yoast-seo'), 'fields' => [ 'noindex' => ['type' => 'String'], 'nofollow' => ['type' => 'String'], 'noarchive' => ['type' => 'Boolean'], 'noimageindex' => ['type' => 'Boolean'], 'nosnippet' => ['type' => 'Boolean'], ], ]); register_graphql_object_type('SEOAnalysis', [ 'description' => __('The Yoast SEO analysis scores and link counts', 'wp-graphql-yoast-seo'), 'fields' => [ 'keywordScore' => ['type' => 'Int'], 'readabilityScore' => ['type' => 'Int'], 'inclusiveLanguageScore' => ['type' => 'Int'], 'linkCount' => ['type' => 'Int'], 'incomingLinkCount' => ['type' => 'Int'], ], ]); register_graphql_object_type('SEOHead', [ 'description' => __('The Yoast SEO head output as structured HTML and JSON', 'wp-graphql-yoast-seo'), 'fields' => [ 'html' => ['type' => 'String'], 'json' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOGlobalMetaHome', [ 'description' => __('The Yoast SEO homepage data', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'description' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOGlobalMetaAuthor', [ 'description' => __('The Yoast SEO Author data', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'description' => ['type' => 'String'], 'noindex' => ['type' => 'Boolean'], 'noindexNoPosts' => ['type' => 'Boolean'], 'social' => ['type' => 'SEOSocialArchive'], ], ]); register_graphql_object_type('SEOGlobalMetaDate', [ 'description' => __('The Yoast SEO Date data', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'description' => ['type' => 'String'], 'noindex' => ['type' => 'Boolean'], 'social' => ['type' => 'SEOSocialArchive'], ], ]); register_graphql_object_type('SEOGlobalMetaSearch', [ 'description' => __('The Yoast SEO search results data', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOGlobalMetaConfig', [ 'description' => __('The Yoast SEO meta config data', 'wp-graphql-yoast-seo'), 'fields' => [ 'separator' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOGlobalMeta404', [ 'description' => __('The Yoast SEO meta 404 data', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'breadcrumb' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOGlobalMeta', [ 'description' => __('The Yoast SEO meta data', 'wp-graphql-yoast-seo'), 'fields' => [ 'homepage' => ['type' => 'SEOGlobalMetaHome'], 'author' => ['type' => 'SEOGlobalMetaAuthor'], 'date' => ['type' => 'SEOGlobalMetaDate'], 'search' => ['type' => 'SEOGlobalMetaSearch'], 'config' => ['type' => 'SEOGlobalMetaConfig'], 'notFound' => ['type' => 'SEOGlobalMeta404'], ], ]); register_graphql_object_type('SEOSchema', [ 'description' => __('The Yoast SEO schema data', 'wp-graphql-yoast-seo'), 'fields' => [ 'companyName' => ['type' => 'String'], 'personName' => ['type' => 'String'], 'companyOrPerson' => ['type' => 'String'], 'companyLogo' => ['type' => 'MediaItem'], 'personLogo' => ['type' => 'MediaItem'], 'logo' => ['type' => 'MediaItem'], 'siteName' => ['type' => 'String'], 'wordpressSiteName' => ['type' => 'String'], 'siteUrl' => ['type' => 'String'], 'homeUrl' => ['type' => 'String'], 'inLanguage' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOWebmaster', [ 'description' => __('The Yoast SEO webmaster fields', 'wp-graphql-yoast-seo'), 'fields' => [ 'baiduVerify' => ['type' => 'String'], 'googleVerify' => ['type' => 'String'], 'msVerify' => ['type' => 'String'], 'yandexVerify' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOBreadcrumbs', [ 'description' => __('The Yoast SEO breadcrumb config', 'wp-graphql-yoast-seo'), 'fields' => [ 'enabled' => ['type' => 'Boolean'], 'boldLast' => ['type' => 'Boolean'], 'showBlogPage' => ['type' => 'Boolean'], 'notFoundText' => ['type' => 'String'], 'archivePrefix' => ['type' => 'String'], 'homeText' => ['type' => 'String'], 'prefix' => ['type' => 'String'], 'searchPrefix' => ['type' => 'String'], 'separator' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialFacebook', [ 'fields' => [ 'url' => ['type' => 'String'], 'defaultImage' => ['type' => 'MediaItem'], ], ]); register_graphql_object_type('SEOSocialTwitter', [ 'fields' => [ 'username' => ['type' => 'String'], 'cardType' => ['type' => 'SEOCardType'], 'enabled' => ['type' => 'Boolean'], ], ]); register_graphql_object_type('SEOSocialInstagram', [ 'fields' => [ 'url' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialLinkedIn', [ 'fields' => [ 'url' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialMastodon', [ 'fields' => [ 'url' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialMySpace', [ 'fields' => [ 'url' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialPinterest', [ 'fields' => [ 'url' => ['type' => 'String'], 'metaTag' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialYoutube', [ 'fields' => [ 'url' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocialWikipedia', [ 'fields' => [ 'url' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOSocial', [ 'description' => __('The Yoast SEO Social media links', 'wp-graphql-yoast-seo'), 'fields' => [ 'facebook' => ['type' => 'SEOSocialFacebook'], 'twitter' => ['type' => 'SEOSocialTwitter'], 'instagram' => ['type' => 'SEOSocialInstagram'], 'linkedIn' => ['type' => 'SEOSocialLinkedIn'], 'mastodon' => ['type' => 'SEOSocialMastodon'], 'mySpace' => ['type' => 'SEOSocialMySpace'], 'pinterest' => ['type' => 'SEOSocialPinterest'], 'youTube' => ['type' => 'SEOSocialYoutube'], 'wikipedia' => ['type' => 'SEOSocialWikipedia'], 'otherSocials' => [ 'type' => [ 'list_of' => 'String', ], ], ], ]); register_graphql_object_type('SEORedirect', [ 'description' => __('The Yoast redirect data (Yoast Premium only)', 'wp-graphql-yoast-seo'), 'fields' => [ 'origin' => ['type' => 'String'], 'target' => ['type' => 'String'], 'type' => ['type' => 'Int'], 'format' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOOpenGraphFrontPage', [ 'description' => __('The Open Graph Front page data', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'description' => ['type' => 'String'], 'image' => ['type' => 'MediaItem'], ], ]); register_graphql_object_type('SEOOpenGraph', [ 'description' => __('The Open Graph data', 'wp-graphql-yoast-seo'), 'fields' => [ 'defaultImage' => ['type' => 'MediaItem'], 'frontPage' => ['type' => 'SEOOpenGraphFrontPage'], 'enabled' => ['type' => 'Boolean'], ], ]); register_graphql_object_type('SEOSocialArchive', [ 'description' => __('The Yoast SEO Premium social settings for an archive', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'description' => ['type' => 'String'], 'image' => ['type' => 'MediaItem'], ], ]); register_graphql_object_type('SEOContentTypeArchive', [ 'description' => __('The Yoast SEO search appearance content types fields', 'wp-graphql-yoast-seo'), 'fields' => [ 'hasArchive' => ['type' => 'Boolean'], 'title' => ['type' => 'String'], 'archiveLink' => ['type' => 'String'], 'metaDesc' => ['type' => 'String'], 'metaRobotsNoindex' => ['type' => 'Boolean'], 'metaRobotsNofollow' => ['type' => 'Boolean'], 'metaRobotsIndex' => ['type' => 'String'], 'metaRobotsFollow' => ['type' => 'String'], 'breadcrumbTitle' => ['type' => 'String'], 'fullHead' => ['type' => 'String'], 'head' => ['type' => 'SEOHead'], 'social' => ['type' => 'SEOSocialArchive'], ], ]); register_graphql_object_type('SEOContentType', [ 'description' => __('The Yoast SEO search appearance content types fields', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'metaDesc' => ['type' => 'String'], 'metaRobotsNoindex' => ['type' => 'Boolean'], 'schemaType' => ['type' => 'String'], 'articleType' => ['type' => 'String'], 'schema' => ['type' => 'SEOPageInfoSchema'], 'archive' => ['type' => 'SEOContentTypeArchive'], ], ]); register_graphql_object_type('SEOContentTypes', [ 'description' => __('The Yoast SEO search appearance content types', 'wp-graphql-yoast-seo'), 'fields' => $allTypes, ]); register_graphql_object_type('SEOTaxonomyTypeArchive', [ 'description' => __('The Yoast SEO search appearance Taxonomy types fields', 'wp-graphql-yoast-seo'), 'fields' => [ 'title' => ['type' => 'String'], 'metaDesc' => ['type' => 'String'], 'metaRobotsNoindex' => ['type' => 'Boolean'], 'social' => ['type' => 'SEOSocialArchive'], ], ]); register_graphql_object_type('SEOTaxonomyType', [ 'description' => __('The Yoast SEO search appearance Taxonomy types fields', 'wp-graphql-yoast-seo'), 'fields' => [ 'archive' => ['type' => 'SEOTaxonomyTypeArchive'], ], ]); register_graphql_object_type('SEOTaxonomyTypes', [ 'description' => __('The Yoast SEO archive configuration data for taxonomies', 'wp-graphql-yoast-seo'), 'fields' => $allTaxonomies, ]); register_graphql_object_type('SEOAdvanced', [ 'description' => __('The Yoast SEO advanced site configuration', 'wp-graphql-yoast-seo'), 'fields' => [ 'siteType' => ['type' => 'String'], 'environmentType' => ['type' => 'String'], 'hasMultipleAuthors' => ['type' => 'Boolean'], 'xmlSitemapEnabled' => ['type' => 'Boolean'], 'indexNowEnabled' => ['type' => 'Boolean'], 'indexNowKey' => ['type' => 'String'], 'contentAnalysisActive' => ['type' => 'Boolean'], 'keywordAnalysisActive' => ['type' => 'Boolean'], 'inclusiveLanguageAnalysisActive' => ['type' => 'Boolean'], ], ]); register_graphql_object_type('SEOConfig', [ 'description' => __('The Yoast SEO site level configuration data', 'wp-graphql-yoast-seo'), 'fields' => [ 'meta' => ['type' => 'SEOGlobalMeta'], 'schema' => ['type' => 'SEOSchema'], 'webmaster' => ['type' => 'SEOWebmaster'], 'social' => ['type' => 'SEOSocial'], 'breadcrumbs' => ['type' => 'SEOBreadcrumbs'], 'redirects' => [ 'type' => [ 'list_of' => 'SEORedirect', ], ], 'openGraph' => ['type' => 'SEOOpenGraph'], 'contentTypes' => ['type' => 'SEOContentTypes'], 'taxonomyArchives' => ['type' => 'SEOTaxonomyTypes'], 'advanced' => ['type' => 'SEOAdvanced'], ], ]); register_graphql_object_type('SEOUserSocial', [ 'fields' => [ 'facebook' => ['type' => 'String'], 'twitter' => ['type' => 'String'], 'instagram' => ['type' => 'String'], 'linkedIn' => ['type' => 'String'], 'mySpace' => ['type' => 'String'], 'pinterest' => ['type' => 'String'], 'youTube' => ['type' => 'String'], 'soundCloud' => ['type' => 'String'], 'wikipedia' => ['type' => 'String'], 'mastodon' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOUserSchema', [ 'description' => __('The Schema types for User', 'wp-graphql-yoast-seo'), 'fields' => [ 'raw' => ['type' => 'String'], 'pageType' => ['type' => ['list_of' => 'String']], 'articleType' => ['type' => ['list_of' => 'String']], ], ]); register_graphql_object_type('SEOUser', [ 'fields' => [ 'title' => ['type' => 'String'], 'metaDesc' => ['type' => 'String'], 'metaRobotsNoindex' => ['type' => 'String'], 'metaRobotsNofollow' => ['type' => 'String'], 'robots' => ['type' => 'SEORobots'], 'canonical' => ['type' => 'String'], 'opengraphTitle' => ['type' => 'String'], 'opengraphDescription' => ['type' => 'String'], 'opengraphImage' => ['type' => 'MediaItem'], 'opengraphLocale' => ['type' => 'String'], 'opengraphFbAppId' => ['type' => 'String'], 'opengraphEnabled' => ['type' => 'Boolean'], 'twitterImage' => ['type' => 'MediaItem'], 'twitterTitle' => ['type' => 'String'], 'twitterDescription' => ['type' => 'String'], 'twitterCreator' => ['type' => 'String'], 'twitterSite' => ['type' => 'String'], 'language' => ['type' => 'String'], 'region' => ['type' => 'String'], 'breadcrumbTitle' => ['type' => 'String'], 'fullHead' => ['type' => 'String'], 'head' => ['type' => 'SEOHead'], 'relNext' => ['type' => 'String'], 'relPrev' => ['type' => 'String'], 'social' => ['type' => 'SEOUserSocial'], 'schema' => ['type' => 'SEOUserSchema'], 'analysis' => ['type' => 'SEOAnalysis'], ], ]); register_graphql_object_type('SEOPageInfoSchema', [ 'description' => __('The Schema for post type', 'wp-graphql-yoast-seo'), 'fields' => [ 'raw' => ['type' => 'String'], ], ]); register_graphql_object_type('SEOPostTypePageInfo', [ 'description' => __('The page info SEO details', 'wp-graphql-yoast-seo'), 'fields' => [ 'schema' => ['type' => 'SEOPageInfoSchema'], ], ]); });