import { NonNullablePaths } from '@wix/sdk-types'; interface SiteScript { /** * Position where the script is placed on the page. * @readonly */ position?: PositionOnPageWithLiterals; /** * Script HTML * @readonly * @maxLength 15000 */ html?: string; } declare enum PositionOnPage { UNKNOWN_POSITION = "UNKNOWN_POSITION", /** HEAD position */ HEAD = "HEAD", /** BODY_START position */ BODY_START = "BODY_START", /** BODY_END position */ BODY_END = "BODY_END" } /** @enumType */ type PositionOnPageWithLiterals = PositionOnPage | 'UNKNOWN_POSITION' | 'HEAD' | 'BODY_START' | 'BODY_END'; interface ListSiteScriptsRequest { /** * Full canonical URL of the page where SEO tags should be resolved. * When provided together with `page_name`, the response includes SEO tags * for the page as additional HEAD-position site scripts. * @maxLength 2048 */ pageUrl?: string | null; /** * Page name identifier matching the page in the Wix site structure. * Required together with `page_url` to resolve SEO tags. * @maxLength 255 */ pageName?: string | null; } interface ListSiteScriptsResponse { /** List of site scripts. */ siteScripts?: SiteScript[]; } interface GetEssentialPropertiesRequest { } interface GetEssentialPropertiesResponse { /** Properties of the site */ properties?: EssentialProperties; } interface EssentialProperties { /** Site locale. */ locale?: Locale; /** * Site language. * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. * @format LANGUAGE */ language?: string | null; /** * Site currency format used to bill customers. * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. * @format CURRENCY */ paymentCurrency?: string | null; /** * Timezone in `America/New_York` format. * @maxLength 50 */ timeZone?: string | null; /** Multilingual settings. */ multilingual?: Multilingual; } interface Locale { /** * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. * @format LANGUAGE */ languageCode?: string; /** * Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. * @format COUNTRY */ country?: string; } interface Multilingual { /** Auto redirect. */ autoRedirect?: boolean; /** * Supported languages. * @maxSize 100 */ supportedLanguages?: SupportedLanguage[]; } interface SupportedLanguage { /** * Language code. * @format LANGUAGE */ languageCode?: string; /** * Country code. * @format COUNTRY */ countryCode?: string; /** Is primary language. */ isPrimary?: boolean; /** Is visitor primary language. */ isVisitorPrimary?: boolean; /** Locale. */ locale?: Locale; /** How the language will be resolved. For internal use. */ resolutionMethod?: ResolutionMethodWithLiterals; } declare enum ResolutionMethod { QUERY_PARAM = "QUERY_PARAM", SUBDOMAIN = "SUBDOMAIN", SUBDIRECTORY = "SUBDIRECTORY" } /** @enumType */ type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY'; interface GetSiteMetadataRequest { /** * Full canonical URL of the page where SEO tags should be resolved. * When provided together with `page_name`, the response includes SEO tags * for the page as additional HEAD-position site scripts. * @maxLength 2048 */ pageUrl?: string | null; /** * Page name identifier matching the page in the Wix site structure. * Required together with `page_url` to resolve SEO tags. * @maxLength 255 */ pageName?: string | null; } interface GetSiteMetadataResponse { /** List of site scripts. */ siteScripts?: SiteScript[]; /** Essential properties of the site. */ properties?: EssentialProperties; } /** * Retrieves a list of up to 100 site scripts * @public * @documentationMaturity preview * @permissionId SITE_SCRIPTS.READ * @fqn wix.assets.scripts.v1.SiteScriptsService.ListSiteScripts */ declare function listSiteScripts(options?: ListSiteScriptsOptions): Promise>; interface ListSiteScriptsOptions { /** * Full canonical URL of the page where SEO tags should be resolved. * When provided together with `page_name`, the response includes SEO tags * for the page as additional HEAD-position site scripts. * @maxLength 2048 */ pageUrl?: string | null; /** * Page name identifier matching the page in the Wix site structure. * Required together with `page_url` to resolve SEO tags. * @maxLength 255 */ pageName?: string | null; } /** * Retrieves the essential properties of the site * @public * @documentationMaturity preview * @permissionId SITE_SCRIPTS.READ * @fqn wix.assets.scripts.v1.SiteScriptsService.GetEssentialProperties */ declare function getEssentialProperties(): Promise>; /** * Retrieves site metadata including both site scripts and essential properties * @public * @documentationMaturity preview * @permissionId SITE_SCRIPTS.READ * @fqn wix.assets.scripts.v1.SiteScriptsService.GetSiteMetadata */ declare function getSiteMetadata(options?: GetSiteMetadataOptions): Promise>; interface GetSiteMetadataOptions { /** * Full canonical URL of the page where SEO tags should be resolved. * When provided together with `page_name`, the response includes SEO tags * for the page as additional HEAD-position site scripts. * @maxLength 2048 */ pageUrl?: string | null; /** * Page name identifier matching the page in the Wix site structure. * Required together with `page_url` to resolve SEO tags. * @maxLength 255 */ pageName?: string | null; } export { type EssentialProperties, type GetEssentialPropertiesRequest, type GetEssentialPropertiesResponse, type GetSiteMetadataOptions, type GetSiteMetadataRequest, type GetSiteMetadataResponse, type ListSiteScriptsOptions, type ListSiteScriptsRequest, type ListSiteScriptsResponse, type Locale, type Multilingual, PositionOnPage, type PositionOnPageWithLiterals, ResolutionMethod, type ResolutionMethodWithLiterals, type SiteScript, type SupportedLanguage, getEssentialProperties, getSiteMetadata, listSiteScripts };