@wix/auto_sdk_dynamic-context_dynamic-context 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.universal.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.http.ts"],"sourcesContent":["export * from './src/dynamic-context-v1-dynamic-context-dynamic-context.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDynamicContextV1DynamicContext from './dynamic-context-v1-dynamic-context-dynamic-context.http.js';\n\n/** The Dynamic Site Context entity represents an aggregated view of a user's sites and account metadata. */\nexport interface DynamicContext {\n /**\n * Unique identifier for this dynamic context instance.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n}\n\n/** Request to retrieve dynamic context. Optionally filter by a single site. */\nexport interface GetDynamicContextRequest\n extends GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /**\n * Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100).\n * Pass the cursor from a previous response's `paging_metadata.cursors.next` to fetch the next page.\n * `query.filter` optionally accepts a Site-List filter and replaces the default\n * namespace filtering; `query.sort` is not supported and is ignored.\n */\n query?: CursorQuery;\n}\n\n/** @oneof */\nexport interface GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/** Response containing the caller's account and site context. */\nexport interface GetDynamicContextResponse {\n /** Account-level information for the calling user. */\n account?: Account;\n /**\n * Enriched context for each matching site, including installed apps and editor metadata.\n * Results are ordered by site creation date and limited to the requested page size.\n * @maxSize 100\n */\n sites?: Site[];\n /** Cursor-based paging metadata. Use `cursors.next` to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /** Partner account context. Present only when partner context resolution is enabled and a Partner Dashboard is found. */\n partnerContext?: PartnerContext;\n}\n\n/** Information about the calling user's Wix account. */\nexport interface Account {\n /**\n * Unique account identifier.\n * @format GUID\n * @maxLength 36\n */\n _id?: string;\n /** Date and time the account was created. */\n _createdDate?: Date | null;\n /** Date and time the account was last modified. */\n _updatedDate?: Date | null;\n /**\n * The account holder's display name. This field contains PII.\n * @maxLength 500\n */\n displayName?: string | null;\n /** Current status of the account. */\n status?: AccountStatusWithLiterals;\n /**\n * Co-branding partner label, if the account was created through a partner program.\n * @maxLength 50\n */\n coBranding?: string | null;\n}\n\n/** Status of a Wix account. */\nexport enum AccountStatus {\n /** Default value. Not used. */\n ACCOUNT_STATUS_UNSPECIFIED = 'ACCOUNT_STATUS_UNSPECIFIED',\n /** The account is active and in good standing. */\n ACTIVE = 'ACTIVE',\n /** The account has been blocked by Wix. */\n BLOCKED = 'BLOCKED',\n /** The account has been deleted. */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type AccountStatusWithLiterals =\n | AccountStatus\n | 'ACCOUNT_STATUS_UNSPECIFIED'\n | 'ACTIVE'\n | 'BLOCKED'\n | 'DELETED';\n\n/** Detailed information about a single site, enriched with app and editor metadata. */\nexport interface Site {\n /**\n * Unique site identifier.\n * @format GUID\n * @maxLength 36\n */\n _id?: string;\n /**\n * Human-readable site name as shown in the dashboard.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Published site URL. Only present for published sites with a live URL.\n * @maxLength 2048\n */\n url?: string | null;\n /** Date and time the site was created. */\n _createdDate?: Date | null;\n /** Date and time the site was last modified. */\n _updatedDate?: Date | null;\n /** Whether the site is currently published and accessible to visitors. */\n published?: boolean;\n /** Whether the site has an active Wix Premium plan. */\n premium?: boolean;\n /**\n * Account ID of the site owner.\n * @format GUID\n */\n ownerAccountId?: string;\n /** The editor type used to build and manage this site (e.g., `WIX`, `STUDIO`, `EDITOR_X`). */\n editorType?: EditorTypeWithLiterals;\n /** The origin or creation source of this site (e.g., `WIX`, `HEADLESS`, `RISE`). */\n namespace?: SiteNamespaceWithLiterals;\n /** Whether a custom domain (non-Wix) is connected to this site. */\n domainConnected?: boolean;\n /**\n * List of apps currently installed and enabled on this site.\n * @maxSize 500\n */\n installedApps?: InstalledApp[];\n /** Whether Velo by Wix (Wix Code) is enabled on this site. */\n veloEnabled?: boolean | null;\n /** Site-level properties such as language, locale, timezone, and currency. */\n properties?: SiteProperties;\n /**\n * CMS data collections defined on this site. Limited to the first 20 native collections.\n * @maxSize 20\n */\n cmsCollections?: CmsCollection[];\n /**\n * Headless OAuth apps installed on this site. Each also appears in\n * `installed_apps` with `is_oauth_app` set.\n * @maxSize 20\n */\n oauthApps?: SiteOAuthApp[];\n /**\n * Custom (non-first-party) apps installed on this site that expose Aria\n * skills and/or MCP tools, via the App Market AppSkillsService and\n * ToolsHost APIs. Names only — call the app's own skill/tool APIs for\n * full definitions (description, request/response schema, guidelines).\n * Renamed from `custom_apps_with_skills_tools` before this field shipped\n * to any released client — no existing consumers to break. Flynt's\n * renamed-field-breaking-change is a stateful rule, so it can't be\n * suppressed with a flynt-disable comment; instead skipped via a\n * \"#skip-stateful-flynt\" commit (see wix-private/flynt's\n * stateful-rule-disabled-by-comment rule README).\n * @maxSize 30\n */\n customApps?: CustomApp[];\n /**\n * Payment provider accounts connected on this site, as configured in the\n * site's Accept Payments settings. Only fetched when Wix Payments is installed.\n * @maxSize 50\n */\n paymentProviders?: SitePaymentProvider[];\n}\n\nexport enum EditorType {\n EDITOR_TYPE_UNSPECIFIED = 'EDITOR_TYPE_UNSPECIFIED',\n /** Classic Editor. */\n WIX = 'WIX',\n /** Studio Editor. */\n STUDIO = 'STUDIO',\n /** EditorX. */\n EDITOR_X = 'EDITOR_X',\n /** Editor3. */\n EDITOR_3 = 'EDITOR_3',\n /** Wix Vibe. */\n WIX_VIBE = 'WIX_VIBE',\n /** Blocks Editor. */\n BLOCKS = 'BLOCKS',\n /** Mobile Widget Builder. */\n MOBILE_WIDGET_BUILDER = 'MOBILE_WIDGET_BUILDER',\n /** Classic Editor (legacy alias). */\n EDITOR = 'EDITOR',\n /** Studio 2. */\n STUDIO_TWO = 'STUDIO_TWO',\n /** ADI (Artificial Design Intelligence). */\n ADI = 'ADI',\n /** Wixel Editor. */\n WIXEL = 'WIXEL',\n /** Picasso Editor. */\n PICASSO = 'PICASSO',\n /** Editorless (no editor site). */\n EDITORLESS = 'EDITORLESS',\n /** OD Editor. */\n ODEDITOR = 'ODEDITOR',\n /** Unknown (source default). */\n UNKNOWN = 'UNKNOWN',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'EDITOR_TYPE_UNSPECIFIED'\n | 'WIX'\n | 'STUDIO'\n | 'EDITOR_X'\n | 'EDITOR_3'\n | 'WIX_VIBE'\n | 'BLOCKS'\n | 'MOBILE_WIDGET_BUILDER'\n | 'EDITOR'\n | 'STUDIO_TWO'\n | 'ADI'\n | 'WIXEL'\n | 'PICASSO'\n | 'EDITORLESS'\n | 'ODEDITOR'\n | 'UNKNOWN';\n\n/** The origin or creation source of a site. */\nexport enum SiteNamespace {\n SITE_NAMESPACE_UNSPECIFIED = 'SITE_NAMESPACE_UNSPECIFIED',\n /** Standard Wix Editor site. */\n WIX = 'WIX',\n /** Wix ShoutOut email marketing. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** Wix Photo Albums. */\n ALBUMS = 'ALBUMS',\n /** Wix Stores test-drive sites. */\n WIX_STORES_TEST_DRIVES = 'WIX_STORES_TEST_DRIVES',\n /** Wix Stores test-drive (singular alias). */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Unknown namespace (default source value). */\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Wix Hotels vertical. */\n HOTELS = 'HOTELS',\n /** Wix Clubs (community groups). */\n CLUBS = 'CLUBS',\n /** Onboarding draft site (created during signup flow). */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** Developer / sandbox site. */\n DEV_SITE = 'DEV_SITE',\n /** Wix Logo Maker. */\n LOGOS = 'LOGOS',\n /** Wix Video Maker. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** Wix Partner Dashboard site. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** Wix Dev Center company site. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /** HTML-based draft site. */\n HTML_DRAFT = 'HTML_DRAFT',\n /** Business entity without a published site. */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Creator Economy platform. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** Dashboard-first experience (site created from dashboard). */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Wix Anywhere (mobile-first creation). */\n ANYWHERE = 'ANYWHERE',\n /** Headless / API-only site (no visual editor). */\n HEADLESS = 'HEADLESS',\n /** Account-level master CMS. */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Wix Rise platform. */\n RISE = 'RISE',\n /** Branded-first creation flow. */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia AI site builder. */\n NOWNIA = 'NOWNIA',\n /** User-generated content template. */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux visual IDE. */\n CODUX = 'CODUX',\n /** Media / design creator tool. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /** Shared blog for enterprise accounts. */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone Forms app site. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone Events app site. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** Mimir platform. */\n MIMIR = 'MIMIR',\n /** Twins platform. */\n TWINS = 'TWINS',\n /** Nano lightweight site. */\n NANO = 'NANO',\n /** Base44 platform. */\n BASE44 = 'BASE44',\n /** Channels platform. */\n CHANNELS = 'CHANNELS',\n}\n\n/** @enumType */\nexport type SiteNamespaceWithLiterals =\n | SiteNamespace\n | 'SITE_NAMESPACE_UNSPECIFIED'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVES'\n | 'WIX_STORES_TEST_DRIVE'\n | 'UNKNOWN_NAMESPACE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS';\n\n/** An app installed on a site. */\nexport interface InstalledApp {\n /**\n * The app's definition ID (unique identifier for the app).\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version. Either `\"V1\"` or `\"V3\"`.\n * Only present when the app is Wix Stores; absent for all other apps.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n /**\n * Whether this installed app is a headless OAuth app (an auth client for\n * minting visitor/member tokens, not a functional site app). Details for\n * these apps appear in the site's `oauth_apps` list.\n */\n oauthApp?: boolean;\n /**\n * The Wix Invoices version. Either `\"V1\"` or `\"V2\"`.\n * Only present when the app is Wix Invoices; absent for all other apps.\n * @maxLength 20\n */\n invoicesVersion?: string | null;\n /**\n * `true` when this installed app is the site's companion app: the private,\n * per-site Dev Center app that holds a Studio 2 site's code. Absent for every\n * other app, and for sites that are not Studio 2. A site gets its companion\n * app the first time code is generated for it.\n */\n companionApp?: boolean | null;\n}\n\n/** Site-level properties from the SiteProperties service. */\nexport interface SiteProperties {\n /** Site locale. */\n locale?: SiteLocale;\n /**\n * Site language code (e.g., \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Payment currency code (e.g., \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g., \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n /**\n * Contact email.\n * @maxLength 500\n */\n email?: string;\n /**\n * Contact phone.\n * @maxLength 100\n */\n phone?: string;\n /** Main site address. */\n address?: SiteAddress;\n}\n\n/** Site locale. */\nexport interface SiteLocale {\n /**\n * Two-letter language code in ISO 639-1 alpha-2 format.\n * @maxLength 10\n */\n languageCode?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n}\n\n/** Main site address. Only the country is currently exposed. */\nexport interface SiteAddress {\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @format COUNTRY\n */\n country?: string;\n}\n\n/** A CMS data collection defined on a site. Only user-created (native) collections are included. */\nexport interface CmsCollection {\n /**\n * Collection ID (also used as the collection name in CMS).\n * @maxLength 256\n */\n _id?: string;\n /**\n * Human-readable display name.\n * @maxLength 500\n */\n displayName?: string;\n /**\n * Field schemas in this collection.\n * @maxSize 500\n */\n fields?: CmsField[];\n}\n\n/** A field in a CMS data collection. */\nexport interface CmsField {\n /**\n * Field key (used in queries and data operations).\n * @maxLength 256\n */\n key?: string;\n /**\n * Human-readable field name.\n * @maxLength 500\n */\n displayName?: string;\n /** The data type of the field. */\n type?: CmsFieldTypeWithLiterals;\n /**\n * Optional description of the field's purpose.\n * @maxLength 1000\n */\n description?: string;\n /** Whether this is a system field (`_id`, `_createdDate`, etc.). */\n systemField?: boolean;\n /**\n * For `REFERENCE` / `MULTI_REFERENCE` fields: the referenced collection ID.\n * @maxLength 256\n */\n referencedCollection?: string;\n}\n\n/** Data type of a CMS collection field. Subset of the CMS DataCollectionService Field.Type enum. */\nexport enum CmsFieldType {\n /** Unknown or unsupported field type. */\n UNKNOWN_FIELD_TYPE = 'UNKNOWN_FIELD_TYPE',\n /** Plain text. */\n TEXT = 'TEXT',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Date (without time). */\n DATE = 'DATE',\n /** Date and time. */\n DATETIME = 'DATETIME',\n /** Image URL. */\n IMAGE = 'IMAGE',\n /** Boolean. */\n BOOLEAN = 'BOOLEAN',\n /** Document URL. */\n DOCUMENT = 'DOCUMENT',\n /** URL. */\n URL = 'URL',\n /** Rich text (HTML subset). */\n RICH_TEXT = 'RICH_TEXT',\n /** Video URL. */\n VIDEO = 'VIDEO',\n /** Any type. */\n ANY = 'ANY',\n /** Array of strings. */\n ARRAY_STRING = 'ARRAY_STRING',\n /** Array of documents. */\n ARRAY_DOCUMENT = 'ARRAY_DOCUMENT',\n /** Audio URL. */\n AUDIO = 'AUDIO',\n /** Time string. */\n TIME = 'TIME',\n /** Language code. */\n LANGUAGE = 'LANGUAGE',\n /** Rich content. */\n RICH_CONTENT = 'RICH_CONTENT',\n /** Media gallery. */\n MEDIA_GALLERY = 'MEDIA_GALLERY',\n /** Address object. */\n ADDRESS = 'ADDRESS',\n /** Dynamic page link. */\n PAGE_LINK = 'PAGE_LINK',\n /** Single reference to another collection. */\n REFERENCE = 'REFERENCE',\n /** Multiple references to another collection. */\n MULTI_REFERENCE = 'MULTI_REFERENCE',\n /** JSON object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n}\n\n/** @enumType */\nexport type CmsFieldTypeWithLiterals =\n | CmsFieldType\n | 'UNKNOWN_FIELD_TYPE'\n | 'TEXT'\n | 'NUMBER'\n | 'DATE'\n | 'DATETIME'\n | 'IMAGE'\n | 'BOOLEAN'\n | 'DOCUMENT'\n | 'URL'\n | 'RICH_TEXT'\n | 'VIDEO'\n | 'ANY'\n | 'ARRAY_STRING'\n | 'ARRAY_DOCUMENT'\n | 'AUDIO'\n | 'TIME'\n | 'LANGUAGE'\n | 'RICH_CONTENT'\n | 'MEDIA_GALLERY'\n | 'ADDRESS'\n | 'PAGE_LINK'\n | 'REFERENCE'\n | 'MULTI_REFERENCE'\n | 'OBJECT'\n | 'ARRAY';\n\n/**\n * A headless OAuth app installed on the site — the auth client external\n * (headless) applications use to mint visitor and member tokens.\n */\nexport interface SiteOAuthApp {\n /**\n * OAuth app ID. Equals the installed app's `app_id`, and is also the OAuth\n * `client_id` used with the `anonymous` grant to mint visitor tokens.\n * @format GUID\n * @maxLength 36\n */\n clientId?: string;\n /**\n * Display name of the OAuth app.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Description of the OAuth app.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Domains allowed for redirects from Wix back to the external client\n * (the OAuth app's `allowed_redirect_domains`).\n * @maxSize 20\n * @maxLength 2048\n */\n allowedDomains?: string[];\n /**\n * External login URL, when member authentication happens outside Wix.\n * @maxLength 2048\n */\n loginUrl?: string | null;\n /**\n * External logout URL.\n * @maxLength 2048\n */\n logoutUrl?: string | null;\n /**\n * Application type as declared on the OAuth app (e.g. `WEB_APP`).\n * @maxLength 50\n */\n applicationType?: string;\n /**\n * Technology as declared on the OAuth app (e.g. `NEXTJS`).\n * @maxLength 50\n */\n technology?: string;\n /**\n * Which flow created the OAuth app (e.g. `headless-landing-page`).\n * @maxLength 2048\n */\n origin?: string;\n /** Date and time the OAuth app was created. */\n _createdDate?: Date | null;\n}\n\n/** A custom app installed on a site that declares Aria skills and/or MCP tools. */\nexport interface CustomApp {\n /**\n * App ID of the app declaring skills and/or tools.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * App name, as declared by the app.\n * @maxLength 100\n */\n appName?: string | null;\n /** Whether this app declares one or more Aria skills (AppSkillsService). */\n hasSkills?: boolean;\n /** Whether this app declares one or more MCP tools (ToolsHost). */\n hasTools?: boolean;\n}\n\nexport interface SitePaymentProvider {\n /**\n * Payment provider ID, e.g. `payPal`, `stripe`, `NA` (manual/offline payments),\n * or a GUID for Wix Payments and third-party providers.\n * @maxLength 100\n */\n paymentProviderId?: string;\n /**\n * Merchant's account name on the provider's side (may be masked). Safe to display.\n * @maxLength 500\n */\n providerAccountName?: string | null;\n /** Connection status of the provider account. */\n status?: StatusWithLiterals;\n /** Whether the merchant can currently accept payments through this provider. */\n payinsAllowed?: boolean;\n /** Whether the merchant can currently receive payouts from this provider. */\n payoutsAllowed?: boolean;\n /** Action the merchant must take on the provider's side, if any. */\n requiredAction?: RequiredActionWithLiterals;\n /**\n * Payment method types the merchant enabled for this provider, e.g. `creditCard`, `payPal`, `offline`.\n * @maxSize 50\n * @maxLength 100\n */\n enabledPaymentMethodTypes?: string[];\n}\n\nexport enum Status {\n /** Connected; can process payments and receive payouts. */\n OK = 'OK',\n /** Connected; can process payments but cannot receive payouts. */\n ACCEPTING_PAYINS_ONLY = 'ACCEPTING_PAYINS_ONLY',\n /** Connected, but pay-ins and payouts are disabled until the merchant acts on the provider's side. */\n PAYMENTS_BLOCKED = 'PAYMENTS_BLOCKED',\n /** The provider account has not been created yet. */\n ACCOUNT_CREATION_PENDING = 'ACCOUNT_CREATION_PENDING',\n /** Closed by the payment provider; not functional. */\n BLOCKED = 'BLOCKED',\n /** Pay-ins and payouts are blocked because of an issue with the account. */\n SUSPENDED = 'SUSPENDED',\n /** Provider account creation failed. */\n ACCOUNT_CREATION_FAILED = 'ACCOUNT_CREATION_FAILED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'OK'\n | 'ACCEPTING_PAYINS_ONLY'\n | 'PAYMENTS_BLOCKED'\n | 'ACCOUNT_CREATION_PENDING'\n | 'BLOCKED'\n | 'SUSPENDED'\n | 'ACCOUNT_CREATION_FAILED';\n\nexport enum RequiredAction {\n /** Nothing to do. */\n NONE = 'NONE',\n /** Merchant must claim the account on the provider's side to enable payouts. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT',\n /** Merchant must claim the account to enable payouts and avoid suspension (pay-ins already received). */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION',\n /** Merchant must claim the account on the provider's side to enable pay-ins. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYIN = 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN',\n}\n\n/** @enumType */\nexport type RequiredActionWithLiterals =\n | RequiredAction\n | 'NONE'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN';\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\n/** Partner account context for accounts that own a Wix Partner Dashboard. */\nexport interface PartnerContext {\n /** Whether the calling account has a Partner Dashboard. */\n partner?: boolean;\n /**\n * Partner Dashboard metasite ID.\n * @format GUID\n * @maxLength 36\n */\n dashboardSiteId?: string | null;\n /**\n * Partner Dashboard URL.\n * @maxLength 2048\n */\n dashboardUrl?: string | null;\n}\n\n/** Request to retrieve dynamic context rendered as markdown. */\nexport interface GetDynamicContextMarkdownRequest\n extends GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /** Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100). */\n query?: CursorQuery;\n /** Include the partner-account section when the calling account owns a Partner Dashboard. */\n includePartnerContext?: boolean;\n /** Include the account header section (account name, ID, status, dates). */\n includeAccountContext?: boolean;\n}\n\n/** @oneof */\nexport interface GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/** Response containing the rendered markdown report. */\nexport interface GetDynamicContextMarkdownResponse {\n /**\n * The markdown report. Byte-identical to the `@wix/dynamic-context-enricher` renderer output.\n * @maxLength 1000000\n */\n markdown?: string;\n}\n\n/** Request for the public visitor site context. The calling token determines the site. */\nexport interface GetVisitorSiteContextRequest {}\n\n/** The public context of a single site, as any visitor may see it. */\nexport interface GetVisitorSiteContextResponse {\n /** Site basics: identifier, display name, locale settings. */\n site?: VisitorSite;\n /** Public business information, as shown on the live site. */\n business?: VisitorBusinessInfo;\n /**\n * Visitor-relevant apps installed on the site. Only apps a visitor can\n * interact with are listed; all other installed apps are omitted.\n * @maxSize 20\n */\n installedApps?: VisitorInstalledApp[];\n}\n\n/** Public-facing basics of a site. */\nexport interface VisitorSite {\n /**\n * Site identifier.\n * @format GUID\n * @maxLength 36\n */\n _id?: string;\n /**\n * Site display name.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Site language code (e.g. \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n /**\n * Payment currency code (e.g. \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g. \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n}\n\n/** Public business information of a site — the details shown to visitors on the live site. */\nexport interface VisitorBusinessInfo {\n /**\n * Business name.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Business description.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Public contact email.\n * @maxLength 500\n */\n email?: string | null;\n /**\n * Public contact phone.\n * @maxLength 100\n */\n phone?: string | null;\n /**\n * Formatted business address.\n * @maxLength 1000\n */\n address?: string | null;\n}\n\n/** A visitor-relevant app installed on the site. */\nexport interface VisitorInstalledApp {\n /** The app. */\n app?: VisitorAppWithLiterals;\n /**\n * The app's definition ID.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version, `\"V1\"` or `\"V3\"`. Only present for STORES.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n}\n\n/** Apps a site visitor can interact with. */\nexport enum VisitorApp {\n /** Default value. Not used. */\n VISITOR_APP_UNSPECIFIED = 'VISITOR_APP_UNSPECIFIED',\n /** Wix Stores. */\n STORES = 'STORES',\n /** Wix Bookings. */\n BOOKINGS = 'BOOKINGS',\n /** Wix Events & Tickets. */\n EVENTS = 'EVENTS',\n /** Wix Blog. */\n BLOG = 'BLOG',\n /** Wix Pricing Plans. */\n PRICING_PLANS = 'PRICING_PLANS',\n /** Wix Restaurants Menus. */\n RESTAURANTS_MENUS = 'RESTAURANTS_MENUS',\n /** Wix Table Reservations. */\n TABLE_RESERVATIONS = 'TABLE_RESERVATIONS',\n /** Wix Reviews. */\n REVIEWS = 'REVIEWS',\n /** Wix eCommerce platform (cart and checkout). */\n ECOM = 'ECOM',\n}\n\n/** @enumType */\nexport type VisitorAppWithLiterals =\n | VisitorApp\n | 'VISITOR_APP_UNSPECIFIED'\n | 'STORES'\n | 'BOOKINGS'\n | 'EVENTS'\n | 'BLOG'\n | 'PRICING_PLANS'\n | 'RESTAURANTS_MENUS'\n | 'TABLE_RESERVATIONS'\n | 'REVIEWS'\n | 'ECOM';\n\n/** Request for the public visitor site context rendered as markdown. */\nexport interface GetVisitorSiteContextMarkdownRequest {}\n\n/** Response containing the rendered markdown report of the visitor site context. */\nexport interface GetVisitorSiteContextMarkdownResponse {\n /**\n * The markdown report.\n * @maxLength 100000\n */\n markdown?: string;\n}\n\n/**\n * Retrieves aggregated context for the caller's sites and account.\n *\n * Returns enriched site information including installed apps, editor type,\n * Velo status, and account details. Results are paginated using cursor-based paging.\n *\n * You can optionally filter by a single site ID or site display name.\n * When no filter is provided, all of the caller's sites are returned.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_dynamic_context\n * @applicableIdentity APP\n * @returns Response containing the caller's account and site context.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetDynamicContext\n */\nexport async function getDynamicContext(\n options?: GetDynamicContextOptions\n): Promise<\n NonNullablePaths<\n GetDynamicContextResponse,\n | `account._id`\n | `account.status`\n | `sites`\n | `sites.${number}._id`\n | `sites.${number}.published`\n | `sites.${number}.premium`\n | `sites.${number}.ownerAccountId`\n | `sites.${number}.editorType`\n | `sites.${number}.namespace`\n | `sites.${number}.domainConnected`\n | `sites.${number}.properties.locale.languageCode`\n | `sites.${number}.properties.locale.country`\n | `sites.${number}.properties.language`\n | `sites.${number}.properties.paymentCurrency`\n | `sites.${number}.properties.timeZone`\n | `sites.${number}.properties.email`\n | `sites.${number}.properties.phone`\n | `sites.${number}.properties.address.country`\n | `partnerContext.partner`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n siteId: options?.siteId,\n siteName: options?.siteName,\n query: options?.query,\n });\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContext(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n siteId: '$[0].siteId',\n siteName: '$[0].siteName',\n query: '$[0].query',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetDynamicContextOptions\n extends GetDynamicContextOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /**\n * Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100).\n * Pass the cursor from a previous response's `paging_metadata.cursors.next` to fetch the next page.\n * `query.filter` optionally accepts a Site-List filter and replaces the default\n * namespace filtering; `query.sort` is not supported and is ignored.\n */\n query?: CursorQuery;\n}\n\n/** @oneof */\nexport interface GetDynamicContextOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/**\n * Retrieves the same aggregated context as `GetDynamicContext`, rendered as a\n * markdown report. The markdown is byte-identical to the output of the\n * `@wix/dynamic-context-enricher` package used by the Wix MCP.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_dynamic_context_markdown\n * @applicableIdentity APP\n * @returns Response containing the rendered markdown report.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetDynamicContextMarkdown\n */\nexport async function getDynamicContextMarkdown(\n options?: GetDynamicContextMarkdownOptions\n): Promise<NonNullablePaths<GetDynamicContextMarkdownResponse, `markdown`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n siteId: options?.siteId,\n siteName: options?.siteName,\n query: options?.query,\n includePartnerContext: options?.includePartnerContext,\n includeAccountContext: options?.includeAccountContext,\n });\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContextMarkdown(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n siteId: '$[0].siteId',\n siteName: '$[0].siteName',\n query: '$[0].query',\n includePartnerContext: '$[0].includePartnerContext',\n includeAccountContext: '$[0].includeAccountContext',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetDynamicContextMarkdownOptions\n extends GetDynamicContextMarkdownOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /** Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100). */\n query?: CursorQuery;\n /** Include the partner-account section when the calling account owns a Partner Dashboard. */\n includePartnerContext?: boolean;\n /** Include the account header section (account name, ID, status, dates). */\n includeAccountContext?: boolean;\n}\n\n/** @oneof */\nexport interface GetDynamicContextMarkdownOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/**\n * Retrieves the public context of the site the calling token is scoped to,\n * as any site visitor may see it: site basics, public business info, and\n * visitor-relevant installed apps. Callable with visitor and member tokens\n * (headless OAuth `anonymous` grant), as well as app-instance and user tokens.\n *\n * The token determines the site — the request takes no parameters.\n * Unpublished or deleted sites return NOT_FOUND.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_visitor_site_context\n * @returns The public context of a single site, as any visitor may see it.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContext\n */\nexport async function getVisitorSiteContext(): Promise<\n NonNullablePaths<\n GetVisitorSiteContextResponse,\n | `site._id`\n | `site.language`\n | `site.country`\n | `site.paymentCurrency`\n | `site.timeZone`\n | `installedApps`\n | `installedApps.${number}.app`\n | `installedApps.${number}.appId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContext(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves the same public site context as `GetVisitorSiteContext`,\n * rendered as a markdown report ready to be passed directly to an LLM.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_visitor_site_context_markdown\n * @returns Response containing the rendered markdown report of the visitor site context.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContextMarkdown\n */\nexport async function getVisitorSiteContextMarkdown(): Promise<\n NonNullablePaths<GetVisitorSiteContextMarkdownResponse, `markdown`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContextMarkdown(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'account.createdDate' },\n { path: 'account.updatedDate' },\n { path: 'sites.createdDate' },\n { path: 'sites.updatedDate' },\n { path: 'sites.oauthApps.createdDate' },\n];\n\nfunction resolveWixDynamicContextV1DynamicContextServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'dev._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/dynamic-context',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_dynamic-context_dynamic-context';\n\n/**\n * Retrieves aggregated context for the caller's sites and account.\n *\n * Returns enriched site information including installed apps, editor type,\n * Velo status, and account details. Results are paginated using cursor-based paging.\n *\n * You can optionally filter by a single site ID or site display name.\n * When no filter is provided, all of the caller's sites are returned.\n */\nexport function getDynamicContext(payload: object): RequestOptionsFactory<any> {\n function __getDynamicContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDynamicContext;\n}\n\n/**\n * Retrieves the same aggregated context as `GetDynamicContext`, rendered as a\n * markdown report. The markdown is byte-identical to the output of the\n * `@wix/dynamic-context-enricher` package used by the Wix MCP.\n */\nexport function getDynamicContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDynamicContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getDynamicContextMarkdown;\n}\n\n/**\n * Retrieves the public context of the site the calling token is scoped to,\n * as any site visitor may see it: site basics, public business info, and\n * visitor-relevant installed apps. Callable with visitor and member tokens\n * (headless OAuth `anonymous` grant), as well as app-instance and user tokens.\n *\n * The token determines the site — the request takes no parameters.\n * Unpublished or deleted sites return NOT_FOUND.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContext(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContext;\n}\n\n/**\n * Retrieves the same public site context as `GetVisitorSiteContext`,\n * rendered as a markdown report ready to be passed directly to an LLM.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContextMarkdown;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,qCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,uBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,sBAAsB;AAAA,EAC9B,EAAE,MAAM,sBAAsB;AAAA,EAC9B,EAAE,MAAM,oBAAoB;AAAA,EAC5B,EAAE,MAAM,oBAAoB;AAAA,EAC5B,EAAE,MAAM,8BAA8B;AACxC;AAEA,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA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,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,CAAC;AAAA,QAC3B,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC;AAAA,IACH;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getDynamicContext","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown","payload","SortOrder","AccountStatus","EditorType","SiteNamespace","CmsFieldType","Status","RequiredAction","VisitorApp","getDynamicContext","sdkTransformError","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.universal.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.http.ts"],"sourcesContent":["export * from './src/dynamic-context-v1-dynamic-context-dynamic-context.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDynamicContextV1DynamicContext from './dynamic-context-v1-dynamic-context-dynamic-context.http.js';\n\n/** The Dynamic Site Context entity represents an aggregated view of a user's sites and account metadata. */\nexport interface DynamicContext {\n /**\n * Unique identifier for this dynamic context instance.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n}\n\n/** Request to retrieve dynamic context. Optionally filter by a single site. */\nexport interface GetDynamicContextRequest\n extends GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /**\n * Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100).\n * Pass the cursor from a previous response's `paging_metadata.cursors.next` to fetch the next page.\n * `query.filter` optionally accepts a Site-List filter and replaces the default\n * namespace filtering; `query.sort` is not supported and is ignored.\n */\n query?: CursorQuery;\n}\n\n/** @oneof */\nexport interface GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/** Response containing the caller's account and site context. */\nexport interface GetDynamicContextResponse {\n /** Account-level information for the calling user. */\n account?: Account;\n /**\n * Enriched context for each matching site, including installed apps and editor metadata.\n * Results are ordered by site creation date and limited to the requested page size.\n * @maxSize 100\n */\n sites?: Site[];\n /** Cursor-based paging metadata. Use `cursors.next` to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /** Partner account context. Present only when partner context resolution is enabled and a Partner Dashboard is found. */\n partnerContext?: PartnerContext;\n}\n\n/** Information about the calling user's Wix account. */\nexport interface Account {\n /**\n * Unique account identifier.\n * @format GUID\n * @maxLength 36\n */\n _id?: string;\n /** Date and time the account was created. */\n _createdDate?: Date | null;\n /** Date and time the account was last modified. */\n _updatedDate?: Date | null;\n /**\n * The account holder's display name. This field contains PII.\n * @maxLength 500\n */\n displayName?: string | null;\n /** Current status of the account. */\n status?: AccountStatusWithLiterals;\n /**\n * Co-branding partner label, if the account was created through a partner program.\n * @maxLength 50\n */\n coBranding?: string | null;\n}\n\n/** Status of a Wix account. */\nexport enum AccountStatus {\n /** Default value. Not used. */\n ACCOUNT_STATUS_UNSPECIFIED = 'ACCOUNT_STATUS_UNSPECIFIED',\n /** The account is active and in good standing. */\n ACTIVE = 'ACTIVE',\n /** The account has been blocked by Wix. */\n BLOCKED = 'BLOCKED',\n /** The account has been deleted. */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type AccountStatusWithLiterals =\n | AccountStatus\n | 'ACCOUNT_STATUS_UNSPECIFIED'\n | 'ACTIVE'\n | 'BLOCKED'\n | 'DELETED';\n\n/** Detailed information about a single site, enriched with app and editor metadata. */\nexport interface Site {\n /**\n * Unique site identifier.\n * @format GUID\n * @maxLength 36\n */\n _id?: string;\n /**\n * Human-readable site name as shown in the dashboard.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Published site URL. Only present for published sites with a live URL.\n * @maxLength 2048\n */\n url?: string | null;\n /** Date and time the site was created. */\n _createdDate?: Date | null;\n /** Date and time the site was last modified. */\n _updatedDate?: Date | null;\n /** Whether the site is currently published and accessible to visitors. */\n published?: boolean;\n /** Whether the site has an active Wix Premium plan. */\n premium?: boolean;\n /**\n * Account ID of the site owner.\n * @format GUID\n */\n ownerAccountId?: string;\n /** The editor type used to build and manage this site (e.g., `WIX`, `STUDIO`, `EDITOR_X`). */\n editorType?: EditorTypeWithLiterals;\n /** The origin or creation source of this site (e.g., `WIX`, `HEADLESS`, `RISE`). */\n namespace?: SiteNamespaceWithLiterals;\n /** Whether a custom domain (non-Wix) is connected to this site. */\n domainConnected?: boolean;\n /**\n * List of apps currently installed and enabled on this site.\n * @maxSize 500\n */\n installedApps?: InstalledApp[];\n /** Whether Velo by Wix (Wix Code) is enabled on this site. */\n veloEnabled?: boolean | null;\n /** Site-level properties such as language, locale, timezone, and currency. */\n properties?: SiteProperties;\n /**\n * CMS data collections defined on this site. Limited to the first 20 native collections.\n * @maxSize 20\n */\n cmsCollections?: CmsCollection[];\n /**\n * Headless OAuth apps installed on this site. Each also appears in\n * `installed_apps` with `is_oauth_app` set.\n * @maxSize 20\n */\n oauthApps?: SiteOAuthApp[];\n /**\n * Custom (non-first-party) apps installed on this site that expose Aria\n * skills and/or MCP tools, via the App Market AppSkillsService and\n * ToolsHost APIs. Names only — call the app's own skill/tool APIs for\n * full definitions (description, request/response schema, guidelines).\n * Renamed from `custom_apps_with_skills_tools` before this field shipped\n * to any released client — no existing consumers to break. Flynt's\n * renamed-field-breaking-change is a stateful rule, so it can't be\n * suppressed with a flynt-disable comment; instead skipped via a\n * \"#skip-stateful-flynt\" commit (see wix-private/flynt's\n * stateful-rule-disabled-by-comment rule README).\n * @maxSize 30\n */\n customApps?: CustomApp[];\n /**\n * Payment provider accounts connected on this site, as configured in the\n * site's Accept Payments settings. Only fetched when Wix Payments is installed.\n * @maxSize 50\n */\n paymentProviders?: SitePaymentProvider[];\n}\n\nexport enum EditorType {\n EDITOR_TYPE_UNSPECIFIED = 'EDITOR_TYPE_UNSPECIFIED',\n /** Classic Editor. */\n WIX = 'WIX',\n /** Studio Editor. */\n STUDIO = 'STUDIO',\n /** EditorX. */\n EDITOR_X = 'EDITOR_X',\n /** Editor3. */\n EDITOR_3 = 'EDITOR_3',\n /** Wix Vibe. */\n WIX_VIBE = 'WIX_VIBE',\n /** Blocks Editor. */\n BLOCKS = 'BLOCKS',\n /** Mobile Widget Builder. */\n MOBILE_WIDGET_BUILDER = 'MOBILE_WIDGET_BUILDER',\n /** Classic Editor (legacy alias). */\n EDITOR = 'EDITOR',\n /** Studio 2. */\n STUDIO_TWO = 'STUDIO_TWO',\n /** ADI (Artificial Design Intelligence). */\n ADI = 'ADI',\n /** Wixel Editor. */\n WIXEL = 'WIXEL',\n /** Picasso Editor. */\n PICASSO = 'PICASSO',\n /** Editorless (no editor site). */\n EDITORLESS = 'EDITORLESS',\n /** OD Editor. */\n ODEDITOR = 'ODEDITOR',\n /** Unknown (source default). */\n UNKNOWN = 'UNKNOWN',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'EDITOR_TYPE_UNSPECIFIED'\n | 'WIX'\n | 'STUDIO'\n | 'EDITOR_X'\n | 'EDITOR_3'\n | 'WIX_VIBE'\n | 'BLOCKS'\n | 'MOBILE_WIDGET_BUILDER'\n | 'EDITOR'\n | 'STUDIO_TWO'\n | 'ADI'\n | 'WIXEL'\n | 'PICASSO'\n | 'EDITORLESS'\n | 'ODEDITOR'\n | 'UNKNOWN';\n\n/** The origin or creation source of a site. */\nexport enum SiteNamespace {\n SITE_NAMESPACE_UNSPECIFIED = 'SITE_NAMESPACE_UNSPECIFIED',\n /** Standard Wix Editor site. */\n WIX = 'WIX',\n /** Wix ShoutOut email marketing. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** Wix Photo Albums. */\n ALBUMS = 'ALBUMS',\n /** Wix Stores test-drive sites. */\n WIX_STORES_TEST_DRIVES = 'WIX_STORES_TEST_DRIVES',\n /** Wix Stores test-drive (singular alias). */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Unknown namespace (default source value). */\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Wix Hotels vertical. */\n HOTELS = 'HOTELS',\n /** Wix Clubs (community groups). */\n CLUBS = 'CLUBS',\n /** Onboarding draft site (created during signup flow). */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** Developer / sandbox site. */\n DEV_SITE = 'DEV_SITE',\n /** Wix Logo Maker. */\n LOGOS = 'LOGOS',\n /** Wix Video Maker. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** Wix Partner Dashboard site. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** Wix Dev Center company site. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /** HTML-based draft site. */\n HTML_DRAFT = 'HTML_DRAFT',\n /** Business entity without a published site. */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Creator Economy platform. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** Dashboard-first experience (site created from dashboard). */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Wix Anywhere (mobile-first creation). */\n ANYWHERE = 'ANYWHERE',\n /** Headless / API-only site (no visual editor). */\n HEADLESS = 'HEADLESS',\n /** Account-level master CMS. */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Wix Rise platform. */\n RISE = 'RISE',\n /** Branded-first creation flow. */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia AI site builder. */\n NOWNIA = 'NOWNIA',\n /** User-generated content template. */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux visual IDE. */\n CODUX = 'CODUX',\n /** Media / design creator tool. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /** Shared blog for enterprise accounts. */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone Forms app site. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone Events app site. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** Mimir platform. */\n MIMIR = 'MIMIR',\n /** Twins platform. */\n TWINS = 'TWINS',\n /** Nano lightweight site. */\n NANO = 'NANO',\n /** Base44 platform. */\n BASE44 = 'BASE44',\n /** Channels platform. */\n CHANNELS = 'CHANNELS',\n}\n\n/** @enumType */\nexport type SiteNamespaceWithLiterals =\n | SiteNamespace\n | 'SITE_NAMESPACE_UNSPECIFIED'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVES'\n | 'WIX_STORES_TEST_DRIVE'\n | 'UNKNOWN_NAMESPACE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS';\n\n/** An app installed on a site. */\nexport interface InstalledApp {\n /**\n * The app's definition ID (unique identifier for the app).\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version. Either `\"V1\"` or `\"V3\"`.\n * Only present when the app is Wix Stores; absent for all other apps.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n /**\n * Whether this installed app is a headless OAuth app (an auth client for\n * minting visitor/member tokens, not a functional site app). Details for\n * these apps appear in the site's `oauth_apps` list.\n */\n oauthApp?: boolean;\n /**\n * The Wix Invoices version. Either `\"V1\"` or `\"V2\"`.\n * Only present when the app is Wix Invoices; absent for all other apps.\n * @maxLength 20\n */\n invoicesVersion?: string | null;\n /**\n * `true` when this installed app is the site's companion app: the private,\n * per-site Dev Center app that holds a Studio 2 site's code. Absent for every\n * other app, for sites that are not Studio 2, and while the companion app\n * has no extensions (monitoring extensions don't count). A site gets its\n * companion app the first time code is generated for it.\n */\n companionApp?: boolean | null;\n}\n\n/** Site-level properties from the SiteProperties service. */\nexport interface SiteProperties {\n /** Site locale. */\n locale?: SiteLocale;\n /**\n * Site language code (e.g., \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Payment currency code (e.g., \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g., \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n /**\n * Contact email.\n * @maxLength 500\n */\n email?: string;\n /**\n * Contact phone.\n * @maxLength 100\n */\n phone?: string;\n /** Main site address. */\n address?: SiteAddress;\n}\n\n/** Site locale. */\nexport interface SiteLocale {\n /**\n * Two-letter language code in ISO 639-1 alpha-2 format.\n * @maxLength 10\n */\n languageCode?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n}\n\n/** Main site address. Only the country is currently exposed. */\nexport interface SiteAddress {\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @format COUNTRY\n */\n country?: string;\n}\n\n/** A CMS data collection defined on a site. Only user-created (native) collections are included. */\nexport interface CmsCollection {\n /**\n * Collection ID (also used as the collection name in CMS).\n * @maxLength 256\n */\n _id?: string;\n /**\n * Human-readable display name.\n * @maxLength 500\n */\n displayName?: string;\n /**\n * Field schemas in this collection.\n * @maxSize 500\n */\n fields?: CmsField[];\n}\n\n/** A field in a CMS data collection. */\nexport interface CmsField {\n /**\n * Field key (used in queries and data operations).\n * @maxLength 256\n */\n key?: string;\n /**\n * Human-readable field name.\n * @maxLength 500\n */\n displayName?: string;\n /** The data type of the field. */\n type?: CmsFieldTypeWithLiterals;\n /**\n * Optional description of the field's purpose.\n * @maxLength 1000\n */\n description?: string;\n /** Whether this is a system field (`_id`, `_createdDate`, etc.). */\n systemField?: boolean;\n /**\n * For `REFERENCE` / `MULTI_REFERENCE` fields: the referenced collection ID.\n * @maxLength 256\n */\n referencedCollection?: string;\n}\n\n/** Data type of a CMS collection field. Subset of the CMS DataCollectionService Field.Type enum. */\nexport enum CmsFieldType {\n /** Unknown or unsupported field type. */\n UNKNOWN_FIELD_TYPE = 'UNKNOWN_FIELD_TYPE',\n /** Plain text. */\n TEXT = 'TEXT',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Date (without time). */\n DATE = 'DATE',\n /** Date and time. */\n DATETIME = 'DATETIME',\n /** Image URL. */\n IMAGE = 'IMAGE',\n /** Boolean. */\n BOOLEAN = 'BOOLEAN',\n /** Document URL. */\n DOCUMENT = 'DOCUMENT',\n /** URL. */\n URL = 'URL',\n /** Rich text (HTML subset). */\n RICH_TEXT = 'RICH_TEXT',\n /** Video URL. */\n VIDEO = 'VIDEO',\n /** Any type. */\n ANY = 'ANY',\n /** Array of strings. */\n ARRAY_STRING = 'ARRAY_STRING',\n /** Array of documents. */\n ARRAY_DOCUMENT = 'ARRAY_DOCUMENT',\n /** Audio URL. */\n AUDIO = 'AUDIO',\n /** Time string. */\n TIME = 'TIME',\n /** Language code. */\n LANGUAGE = 'LANGUAGE',\n /** Rich content. */\n RICH_CONTENT = 'RICH_CONTENT',\n /** Media gallery. */\n MEDIA_GALLERY = 'MEDIA_GALLERY',\n /** Address object. */\n ADDRESS = 'ADDRESS',\n /** Dynamic page link. */\n PAGE_LINK = 'PAGE_LINK',\n /** Single reference to another collection. */\n REFERENCE = 'REFERENCE',\n /** Multiple references to another collection. */\n MULTI_REFERENCE = 'MULTI_REFERENCE',\n /** JSON object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n}\n\n/** @enumType */\nexport type CmsFieldTypeWithLiterals =\n | CmsFieldType\n | 'UNKNOWN_FIELD_TYPE'\n | 'TEXT'\n | 'NUMBER'\n | 'DATE'\n | 'DATETIME'\n | 'IMAGE'\n | 'BOOLEAN'\n | 'DOCUMENT'\n | 'URL'\n | 'RICH_TEXT'\n | 'VIDEO'\n | 'ANY'\n | 'ARRAY_STRING'\n | 'ARRAY_DOCUMENT'\n | 'AUDIO'\n | 'TIME'\n | 'LANGUAGE'\n | 'RICH_CONTENT'\n | 'MEDIA_GALLERY'\n | 'ADDRESS'\n | 'PAGE_LINK'\n | 'REFERENCE'\n | 'MULTI_REFERENCE'\n | 'OBJECT'\n | 'ARRAY';\n\n/**\n * A headless OAuth app installed on the site — the auth client external\n * (headless) applications use to mint visitor and member tokens.\n */\nexport interface SiteOAuthApp {\n /**\n * OAuth app ID. Equals the installed app's `app_id`, and is also the OAuth\n * `client_id` used with the `anonymous` grant to mint visitor tokens.\n * @format GUID\n * @maxLength 36\n */\n clientId?: string;\n /**\n * Display name of the OAuth app.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Description of the OAuth app.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Domains allowed for redirects from Wix back to the external client\n * (the OAuth app's `allowed_redirect_domains`).\n * @maxSize 20\n * @maxLength 2048\n */\n allowedDomains?: string[];\n /**\n * External login URL, when member authentication happens outside Wix.\n * @maxLength 2048\n */\n loginUrl?: string | null;\n /**\n * External logout URL.\n * @maxLength 2048\n */\n logoutUrl?: string | null;\n /**\n * Application type as declared on the OAuth app (e.g. `WEB_APP`).\n * @maxLength 50\n */\n applicationType?: string;\n /**\n * Technology as declared on the OAuth app (e.g. `NEXTJS`).\n * @maxLength 50\n */\n technology?: string;\n /**\n * Which flow created the OAuth app (e.g. `headless-landing-page`).\n * @maxLength 2048\n */\n origin?: string;\n /** Date and time the OAuth app was created. */\n _createdDate?: Date | null;\n}\n\n/** A custom app installed on a site that declares Aria skills and/or MCP tools. */\nexport interface CustomApp {\n /**\n * App ID of the app declaring skills and/or tools.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * App name, as declared by the app.\n * @maxLength 100\n */\n appName?: string | null;\n /** Whether this app declares one or more Aria skills (AppSkillsService). */\n hasSkills?: boolean;\n /** Whether this app declares one or more MCP tools (ToolsHost). */\n hasTools?: boolean;\n}\n\nexport interface SitePaymentProvider {\n /**\n * Payment provider ID, e.g. `payPal`, `stripe`, `NA` (manual/offline payments),\n * or a GUID for Wix Payments and third-party providers.\n * @maxLength 100\n */\n paymentProviderId?: string;\n /**\n * Merchant's account name on the provider's side (may be masked). Safe to display.\n * @maxLength 500\n */\n providerAccountName?: string | null;\n /** Connection status of the provider account. */\n status?: StatusWithLiterals;\n /** Whether the merchant can currently accept payments through this provider. */\n payinsAllowed?: boolean;\n /** Whether the merchant can currently receive payouts from this provider. */\n payoutsAllowed?: boolean;\n /** Action the merchant must take on the provider's side, if any. */\n requiredAction?: RequiredActionWithLiterals;\n /**\n * Payment method types the merchant enabled for this provider, e.g. `creditCard`, `payPal`, `offline`.\n * @maxSize 50\n * @maxLength 100\n */\n enabledPaymentMethodTypes?: string[];\n}\n\nexport enum Status {\n /** Connected; can process payments and receive payouts. */\n OK = 'OK',\n /** Connected; can process payments but cannot receive payouts. */\n ACCEPTING_PAYINS_ONLY = 'ACCEPTING_PAYINS_ONLY',\n /** Connected, but pay-ins and payouts are disabled until the merchant acts on the provider's side. */\n PAYMENTS_BLOCKED = 'PAYMENTS_BLOCKED',\n /** The provider account has not been created yet. */\n ACCOUNT_CREATION_PENDING = 'ACCOUNT_CREATION_PENDING',\n /** Closed by the payment provider; not functional. */\n BLOCKED = 'BLOCKED',\n /** Pay-ins and payouts are blocked because of an issue with the account. */\n SUSPENDED = 'SUSPENDED',\n /** Provider account creation failed. */\n ACCOUNT_CREATION_FAILED = 'ACCOUNT_CREATION_FAILED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'OK'\n | 'ACCEPTING_PAYINS_ONLY'\n | 'PAYMENTS_BLOCKED'\n | 'ACCOUNT_CREATION_PENDING'\n | 'BLOCKED'\n | 'SUSPENDED'\n | 'ACCOUNT_CREATION_FAILED';\n\nexport enum RequiredAction {\n /** Nothing to do. */\n NONE = 'NONE',\n /** Merchant must claim the account on the provider's side to enable payouts. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT',\n /** Merchant must claim the account to enable payouts and avoid suspension (pay-ins already received). */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION',\n /** Merchant must claim the account on the provider's side to enable pay-ins. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYIN = 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN',\n}\n\n/** @enumType */\nexport type RequiredActionWithLiterals =\n | RequiredAction\n | 'NONE'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN';\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\n/** Partner account context for accounts that own a Wix Partner Dashboard. */\nexport interface PartnerContext {\n /** Whether the calling account has a Partner Dashboard. */\n partner?: boolean;\n /**\n * Partner Dashboard metasite ID.\n * @format GUID\n * @maxLength 36\n */\n dashboardSiteId?: string | null;\n /**\n * Partner Dashboard URL.\n * @maxLength 2048\n */\n dashboardUrl?: string | null;\n}\n\n/** Request to retrieve dynamic context rendered as markdown. */\nexport interface GetDynamicContextMarkdownRequest\n extends GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /** Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100). */\n query?: CursorQuery;\n /** Include the partner-account section when the calling account owns a Partner Dashboard. */\n includePartnerContext?: boolean;\n /** Include the account header section (account name, ID, status, dates). */\n includeAccountContext?: boolean;\n}\n\n/** @oneof */\nexport interface GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/** Response containing the rendered markdown report. */\nexport interface GetDynamicContextMarkdownResponse {\n /**\n * The markdown report. Byte-identical to the `@wix/dynamic-context-enricher` renderer output.\n * @maxLength 1000000\n */\n markdown?: string;\n}\n\n/** Request for the public visitor site context. The calling token determines the site. */\nexport interface GetVisitorSiteContextRequest {}\n\n/** The public context of a single site, as any visitor may see it. */\nexport interface GetVisitorSiteContextResponse {\n /** Site basics: identifier, display name, locale settings. */\n site?: VisitorSite;\n /** Public business information, as shown on the live site. */\n business?: VisitorBusinessInfo;\n /**\n * Visitor-relevant apps installed on the site. Only apps a visitor can\n * interact with are listed; all other installed apps are omitted.\n * @maxSize 20\n */\n installedApps?: VisitorInstalledApp[];\n}\n\n/** Public-facing basics of a site. */\nexport interface VisitorSite {\n /**\n * Site identifier.\n * @format GUID\n * @maxLength 36\n */\n _id?: string;\n /**\n * Site display name.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Site language code (e.g. \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n /**\n * Payment currency code (e.g. \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g. \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n}\n\n/** Public business information of a site — the details shown to visitors on the live site. */\nexport interface VisitorBusinessInfo {\n /**\n * Business name.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Business description.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Public contact email.\n * @maxLength 500\n */\n email?: string | null;\n /**\n * Public contact phone.\n * @maxLength 100\n */\n phone?: string | null;\n /**\n * Formatted business address.\n * @maxLength 1000\n */\n address?: string | null;\n}\n\n/** A visitor-relevant app installed on the site. */\nexport interface VisitorInstalledApp {\n /** The app. */\n app?: VisitorAppWithLiterals;\n /**\n * The app's definition ID.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version, `\"V1\"` or `\"V3\"`. Only present for STORES.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n}\n\n/** Apps a site visitor can interact with. */\nexport enum VisitorApp {\n /** Default value. Not used. */\n VISITOR_APP_UNSPECIFIED = 'VISITOR_APP_UNSPECIFIED',\n /** Wix Stores. */\n STORES = 'STORES',\n /** Wix Bookings. */\n BOOKINGS = 'BOOKINGS',\n /** Wix Events & Tickets. */\n EVENTS = 'EVENTS',\n /** Wix Blog. */\n BLOG = 'BLOG',\n /** Wix Pricing Plans. */\n PRICING_PLANS = 'PRICING_PLANS',\n /** Wix Restaurants Menus. */\n RESTAURANTS_MENUS = 'RESTAURANTS_MENUS',\n /** Wix Table Reservations. */\n TABLE_RESERVATIONS = 'TABLE_RESERVATIONS',\n /** Wix Reviews. */\n REVIEWS = 'REVIEWS',\n /** Wix eCommerce platform (cart and checkout). */\n ECOM = 'ECOM',\n}\n\n/** @enumType */\nexport type VisitorAppWithLiterals =\n | VisitorApp\n | 'VISITOR_APP_UNSPECIFIED'\n | 'STORES'\n | 'BOOKINGS'\n | 'EVENTS'\n | 'BLOG'\n | 'PRICING_PLANS'\n | 'RESTAURANTS_MENUS'\n | 'TABLE_RESERVATIONS'\n | 'REVIEWS'\n | 'ECOM';\n\n/** Request for the public visitor site context rendered as markdown. */\nexport interface GetVisitorSiteContextMarkdownRequest {}\n\n/** Response containing the rendered markdown report of the visitor site context. */\nexport interface GetVisitorSiteContextMarkdownResponse {\n /**\n * The markdown report.\n * @maxLength 100000\n */\n markdown?: string;\n}\n\n/**\n * Retrieves aggregated context for the caller's sites and account.\n *\n * Returns enriched site information including installed apps, editor type,\n * Velo status, and account details. Results are paginated using cursor-based paging.\n *\n * You can optionally filter by a single site ID or site display name.\n * When no filter is provided, all of the caller's sites are returned.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_dynamic_context\n * @applicableIdentity APP\n * @returns Response containing the caller's account and site context.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetDynamicContext\n */\nexport async function getDynamicContext(\n options?: GetDynamicContextOptions\n): Promise<\n NonNullablePaths<\n GetDynamicContextResponse,\n | `account._id`\n | `account.status`\n | `sites`\n | `sites.${number}._id`\n | `sites.${number}.published`\n | `sites.${number}.premium`\n | `sites.${number}.ownerAccountId`\n | `sites.${number}.editorType`\n | `sites.${number}.namespace`\n | `sites.${number}.domainConnected`\n | `sites.${number}.properties.locale.languageCode`\n | `sites.${number}.properties.locale.country`\n | `sites.${number}.properties.language`\n | `sites.${number}.properties.paymentCurrency`\n | `sites.${number}.properties.timeZone`\n | `sites.${number}.properties.email`\n | `sites.${number}.properties.phone`\n | `sites.${number}.properties.address.country`\n | `partnerContext.partner`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n siteId: options?.siteId,\n siteName: options?.siteName,\n query: options?.query,\n });\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContext(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n siteId: '$[0].siteId',\n siteName: '$[0].siteName',\n query: '$[0].query',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetDynamicContextOptions\n extends GetDynamicContextOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /**\n * Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100).\n * Pass the cursor from a previous response's `paging_metadata.cursors.next` to fetch the next page.\n * `query.filter` optionally accepts a Site-List filter and replaces the default\n * namespace filtering; `query.sort` is not supported and is ignored.\n */\n query?: CursorQuery;\n}\n\n/** @oneof */\nexport interface GetDynamicContextOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/**\n * Retrieves the same aggregated context as `GetDynamicContext`, rendered as a\n * markdown report. The markdown is byte-identical to the output of the\n * `@wix/dynamic-context-enricher` package used by the Wix MCP.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_dynamic_context_markdown\n * @applicableIdentity APP\n * @returns Response containing the rendered markdown report.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetDynamicContextMarkdown\n */\nexport async function getDynamicContextMarkdown(\n options?: GetDynamicContextMarkdownOptions\n): Promise<NonNullablePaths<GetDynamicContextMarkdownResponse, `markdown`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n siteId: options?.siteId,\n siteName: options?.siteName,\n query: options?.query,\n includePartnerContext: options?.includePartnerContext,\n includeAccountContext: options?.includeAccountContext,\n });\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContextMarkdown(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n siteId: '$[0].siteId',\n siteName: '$[0].siteName',\n query: '$[0].query',\n includePartnerContext: '$[0].includePartnerContext',\n includeAccountContext: '$[0].includeAccountContext',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetDynamicContextMarkdownOptions\n extends GetDynamicContextMarkdownOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /** Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100). */\n query?: CursorQuery;\n /** Include the partner-account section when the calling account owns a Partner Dashboard. */\n includePartnerContext?: boolean;\n /** Include the account header section (account name, ID, status, dates). */\n includeAccountContext?: boolean;\n}\n\n/** @oneof */\nexport interface GetDynamicContextMarkdownOptionsSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/**\n * Retrieves the public context of the site the calling token is scoped to,\n * as any site visitor may see it: site basics, public business info, and\n * visitor-relevant installed apps. Callable with visitor and member tokens\n * (headless OAuth `anonymous` grant), as well as app-instance and user tokens.\n *\n * The token determines the site — the request takes no parameters.\n * Unpublished or deleted sites return NOT_FOUND.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_visitor_site_context\n * @returns The public context of a single site, as any visitor may see it.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContext\n */\nexport async function getVisitorSiteContext(): Promise<\n NonNullablePaths<\n GetVisitorSiteContextResponse,\n | `site._id`\n | `site.language`\n | `site.country`\n | `site.paymentCurrency`\n | `site.timeZone`\n | `installedApps`\n | `installedApps.${number}.app`\n | `installedApps.${number}.appId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContext(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves the same public site context as `GetVisitorSiteContext`,\n * rendered as a markdown report ready to be passed directly to an LLM.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n * @public\n * @documentationMaturity preview\n * @permissionId code:context:v1:get_visitor_site_context_markdown\n * @returns Response containing the rendered markdown report of the visitor site context.\n * @fqn wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContextMarkdown\n */\nexport async function getVisitorSiteContextMarkdown(): Promise<\n NonNullablePaths<GetVisitorSiteContextMarkdownResponse, `markdown`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContextMarkdown(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'account.createdDate' },\n { path: 'account.updatedDate' },\n { path: 'sites.createdDate' },\n { path: 'sites.updatedDate' },\n { path: 'sites.oauthApps.createdDate' },\n];\n\nfunction resolveWixDynamicContextV1DynamicContextServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'dev._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/dynamic-context',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_dynamic-context_dynamic-context';\n\n/**\n * Retrieves aggregated context for the caller's sites and account.\n *\n * Returns enriched site information including installed apps, editor type,\n * Velo status, and account details. Results are paginated using cursor-based paging.\n *\n * You can optionally filter by a single site ID or site display name.\n * When no filter is provided, all of the caller's sites are returned.\n */\nexport function getDynamicContext(payload: object): RequestOptionsFactory<any> {\n function __getDynamicContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDynamicContext;\n}\n\n/**\n * Retrieves the same aggregated context as `GetDynamicContext`, rendered as a\n * markdown report. The markdown is byte-identical to the output of the\n * `@wix/dynamic-context-enricher` package used by the Wix MCP.\n */\nexport function getDynamicContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDynamicContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getDynamicContextMarkdown;\n}\n\n/**\n * Retrieves the public context of the site the calling token is scoped to,\n * as any site visitor may see it: site basics, public business info, and\n * visitor-relevant installed apps. Callable with visitor and member tokens\n * (headless OAuth `anonymous` grant), as well as app-instance and user tokens.\n *\n * The token determines the site — the request takes no parameters.\n * Unpublished or deleted sites return NOT_FOUND.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContext(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContext;\n}\n\n/**\n * Retrieves the same public site context as `GetVisitorSiteContext`,\n * rendered as a markdown report ready to be passed directly to an LLM.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContextMarkdown;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,qCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,uBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,sBAAsB;AAAA,EAC9B,EAAE,MAAM,sBAAsB;AAAA,EAC9B,EAAE,MAAM,oBAAoB;AAAA,EAC5B,EAAE,MAAM,oBAAoB;AAAA,EAC5B,EAAE,MAAM,8BAA8B;AACxC;AAEA,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AA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M,UACwC;AAAA,IAC1C;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAH;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,CAAC;AAAA,QAC3B,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC;AAAA,IACH;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getDynamicContext","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown","payload","SortOrder","AccountStatus","EditorType","SiteNamespace","CmsFieldType","Status","RequiredAction","VisitorApp","getDynamicContext","sdkTransformError","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown"]}
@@ -380,8 +380,9 @@ interface InstalledApp {
380
380
  /**
381
381
  * `true` when this installed app is the site's companion app: the private,
382
382
  * per-site Dev Center app that holds a Studio 2 site's code. Absent for every
383
- * other app, and for sites that are not Studio 2. A site gets its companion
384
- * app the first time code is generated for it.
383
+ * other app, for sites that are not Studio 2, and while the companion app
384
+ * has no extensions (monitoring extensions don't count). A site gets its
385
+ * companion app the first time code is generated for it.
385
386
  */
386
387
  companionApp?: boolean | null;
387
388
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.http.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.types.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.meta.ts"],"sourcesContent":["export * from './src/dynamic-context-v1-dynamic-context-dynamic-context.meta.js';\n","import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'account.createdDate' },\n { path: 'account.updatedDate' },\n { path: 'sites.createdDate' },\n { path: 'sites.updatedDate' },\n { path: 'sites.oauthApps.createdDate' },\n];\n\nfunction resolveWixDynamicContextV1DynamicContextServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'dev._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/dynamic-context',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_dynamic-context_dynamic-context';\n\n/**\n * Retrieves aggregated context for the caller's sites and account.\n *\n * Returns enriched site information including installed apps, editor type,\n * Velo status, and account details. Results are paginated using cursor-based paging.\n *\n * You can optionally filter by a single site ID or site display name.\n * When no filter is provided, all of the caller's sites are returned.\n */\nexport function getDynamicContext(payload: object): RequestOptionsFactory<any> {\n function __getDynamicContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDynamicContext;\n}\n\n/**\n * Retrieves the same aggregated context as `GetDynamicContext`, rendered as a\n * markdown report. The markdown is byte-identical to the output of the\n * `@wix/dynamic-context-enricher` package used by the Wix MCP.\n */\nexport function getDynamicContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDynamicContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getDynamicContextMarkdown;\n}\n\n/**\n * Retrieves the public context of the site the calling token is scoped to,\n * as any site visitor may see it: site basics, public business info, and\n * visitor-relevant installed apps. Callable with visitor and member tokens\n * (headless OAuth `anonymous` grant), as well as app-instance and user tokens.\n *\n * The token determines the site — the request takes no parameters.\n * Unpublished or deleted sites return NOT_FOUND.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContext(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContext;\n}\n\n/**\n * Retrieves the same public site context as `GetVisitorSiteContext`,\n * rendered as a markdown report ready to be passed directly to an LLM.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContextMarkdown;\n}\n","/** The Dynamic Site Context entity represents an aggregated view of a user's sites and account metadata. */\nexport interface DynamicContext {\n /**\n * Unique identifier for this dynamic context instance.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n}\n\n/** Request to retrieve dynamic context. Optionally filter by a single site. */\nexport interface GetDynamicContextRequest\n extends GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /**\n * Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100).\n * Pass the cursor from a previous response's `paging_metadata.cursors.next` to fetch the next page.\n * `query.filter` optionally accepts a Site-List filter and replaces the default\n * namespace filtering; `query.sort` is not supported and is ignored.\n */\n query?: CursorQuery;\n}\n\n/** @oneof */\nexport interface GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/** Response containing the caller's account and site context. */\nexport interface GetDynamicContextResponse {\n /** Account-level information for the calling user. */\n account?: Account;\n /**\n * Enriched context for each matching site, including installed apps and editor metadata.\n * Results are ordered by site creation date and limited to the requested page size.\n * @maxSize 100\n */\n sites?: Site[];\n /** Cursor-based paging metadata. Use `cursors.next` to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /** Partner account context. Present only when partner context resolution is enabled and a Partner Dashboard is found. */\n partnerContext?: PartnerContext;\n}\n\n/** Information about the calling user's Wix account. */\nexport interface Account {\n /**\n * Unique account identifier.\n * @format GUID\n * @maxLength 36\n */\n id?: string;\n /** Date and time the account was created. */\n createdDate?: Date | null;\n /** Date and time the account was last modified. */\n updatedDate?: Date | null;\n /**\n * The account holder's display name. This field contains PII.\n * @maxLength 500\n */\n displayName?: string | null;\n /** Current status of the account. */\n status?: AccountStatusWithLiterals;\n /**\n * Co-branding partner label, if the account was created through a partner program.\n * @maxLength 50\n */\n coBranding?: string | null;\n}\n\n/** Status of a Wix account. */\nexport enum AccountStatus {\n /** Default value. Not used. */\n ACCOUNT_STATUS_UNSPECIFIED = 'ACCOUNT_STATUS_UNSPECIFIED',\n /** The account is active and in good standing. */\n ACTIVE = 'ACTIVE',\n /** The account has been blocked by Wix. */\n BLOCKED = 'BLOCKED',\n /** The account has been deleted. */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type AccountStatusWithLiterals =\n | AccountStatus\n | 'ACCOUNT_STATUS_UNSPECIFIED'\n | 'ACTIVE'\n | 'BLOCKED'\n | 'DELETED';\n\n/** Detailed information about a single site, enriched with app and editor metadata. */\nexport interface Site {\n /**\n * Unique site identifier.\n * @format GUID\n * @maxLength 36\n */\n id?: string;\n /**\n * Human-readable site name as shown in the dashboard.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Published site URL. Only present for published sites with a live URL.\n * @maxLength 2048\n */\n url?: string | null;\n /** Date and time the site was created. */\n createdDate?: Date | null;\n /** Date and time the site was last modified. */\n updatedDate?: Date | null;\n /** Whether the site is currently published and accessible to visitors. */\n published?: boolean;\n /** Whether the site has an active Wix Premium plan. */\n premium?: boolean;\n /**\n * Account ID of the site owner.\n * @format GUID\n */\n ownerAccountId?: string;\n /** The editor type used to build and manage this site (e.g., `WIX`, `STUDIO`, `EDITOR_X`). */\n editorType?: EditorTypeWithLiterals;\n /** The origin or creation source of this site (e.g., `WIX`, `HEADLESS`, `RISE`). */\n namespace?: SiteNamespaceWithLiterals;\n /** Whether a custom domain (non-Wix) is connected to this site. */\n domainConnected?: boolean;\n /**\n * List of apps currently installed and enabled on this site.\n * @maxSize 500\n */\n installedApps?: InstalledApp[];\n /** Whether Velo by Wix (Wix Code) is enabled on this site. */\n veloEnabled?: boolean | null;\n /** Site-level properties such as language, locale, timezone, and currency. */\n properties?: SiteProperties;\n /**\n * CMS data collections defined on this site. Limited to the first 20 native collections.\n * @maxSize 20\n */\n cmsCollections?: CmsCollection[];\n /**\n * Headless OAuth apps installed on this site. Each also appears in\n * `installed_apps` with `is_oauth_app` set.\n * @maxSize 20\n */\n oauthApps?: SiteOAuthApp[];\n /**\n * Custom (non-first-party) apps installed on this site that expose Aria\n * skills and/or MCP tools, via the App Market AppSkillsService and\n * ToolsHost APIs. Names only — call the app's own skill/tool APIs for\n * full definitions (description, request/response schema, guidelines).\n * Renamed from `custom_apps_with_skills_tools` before this field shipped\n * to any released client — no existing consumers to break. Flynt's\n * renamed-field-breaking-change is a stateful rule, so it can't be\n * suppressed with a flynt-disable comment; instead skipped via a\n * \"#skip-stateful-flynt\" commit (see wix-private/flynt's\n * stateful-rule-disabled-by-comment rule README).\n * @maxSize 30\n */\n customApps?: CustomApp[];\n /**\n * Payment provider accounts connected on this site, as configured in the\n * site's Accept Payments settings. Only fetched when Wix Payments is installed.\n * @maxSize 50\n */\n paymentProviders?: SitePaymentProvider[];\n}\n\nexport enum EditorType {\n EDITOR_TYPE_UNSPECIFIED = 'EDITOR_TYPE_UNSPECIFIED',\n /** Classic Editor. */\n WIX = 'WIX',\n /** Studio Editor. */\n STUDIO = 'STUDIO',\n /** EditorX. */\n EDITOR_X = 'EDITOR_X',\n /** Editor3. */\n EDITOR_3 = 'EDITOR_3',\n /** Wix Vibe. */\n WIX_VIBE = 'WIX_VIBE',\n /** Blocks Editor. */\n BLOCKS = 'BLOCKS',\n /** Mobile Widget Builder. */\n MOBILE_WIDGET_BUILDER = 'MOBILE_WIDGET_BUILDER',\n /** Classic Editor (legacy alias). */\n EDITOR = 'EDITOR',\n /** Studio 2. */\n STUDIO_TWO = 'STUDIO_TWO',\n /** ADI (Artificial Design Intelligence). */\n ADI = 'ADI',\n /** Wixel Editor. */\n WIXEL = 'WIXEL',\n /** Picasso Editor. */\n PICASSO = 'PICASSO',\n /** Editorless (no editor site). */\n EDITORLESS = 'EDITORLESS',\n /** OD Editor. */\n ODEDITOR = 'ODEDITOR',\n /** Unknown (source default). */\n UNKNOWN = 'UNKNOWN',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'EDITOR_TYPE_UNSPECIFIED'\n | 'WIX'\n | 'STUDIO'\n | 'EDITOR_X'\n | 'EDITOR_3'\n | 'WIX_VIBE'\n | 'BLOCKS'\n | 'MOBILE_WIDGET_BUILDER'\n | 'EDITOR'\n | 'STUDIO_TWO'\n | 'ADI'\n | 'WIXEL'\n | 'PICASSO'\n | 'EDITORLESS'\n | 'ODEDITOR'\n | 'UNKNOWN';\n\n/** The origin or creation source of a site. */\nexport enum SiteNamespace {\n SITE_NAMESPACE_UNSPECIFIED = 'SITE_NAMESPACE_UNSPECIFIED',\n /** Standard Wix Editor site. */\n WIX = 'WIX',\n /** Wix ShoutOut email marketing. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** Wix Photo Albums. */\n ALBUMS = 'ALBUMS',\n /** Wix Stores test-drive sites. */\n WIX_STORES_TEST_DRIVES = 'WIX_STORES_TEST_DRIVES',\n /** Wix Stores test-drive (singular alias). */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Unknown namespace (default source value). */\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Wix Hotels vertical. */\n HOTELS = 'HOTELS',\n /** Wix Clubs (community groups). */\n CLUBS = 'CLUBS',\n /** Onboarding draft site (created during signup flow). */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** Developer / sandbox site. */\n DEV_SITE = 'DEV_SITE',\n /** Wix Logo Maker. */\n LOGOS = 'LOGOS',\n /** Wix Video Maker. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** Wix Partner Dashboard site. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** Wix Dev Center company site. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /** HTML-based draft site. */\n HTML_DRAFT = 'HTML_DRAFT',\n /** Business entity without a published site. */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Creator Economy platform. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** Dashboard-first experience (site created from dashboard). */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Wix Anywhere (mobile-first creation). */\n ANYWHERE = 'ANYWHERE',\n /** Headless / API-only site (no visual editor). */\n HEADLESS = 'HEADLESS',\n /** Account-level master CMS. */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Wix Rise platform. */\n RISE = 'RISE',\n /** Branded-first creation flow. */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia AI site builder. */\n NOWNIA = 'NOWNIA',\n /** User-generated content template. */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux visual IDE. */\n CODUX = 'CODUX',\n /** Media / design creator tool. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /** Shared blog for enterprise accounts. */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone Forms app site. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone Events app site. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** Mimir platform. */\n MIMIR = 'MIMIR',\n /** Twins platform. */\n TWINS = 'TWINS',\n /** Nano lightweight site. */\n NANO = 'NANO',\n /** Base44 platform. */\n BASE44 = 'BASE44',\n /** Channels platform. */\n CHANNELS = 'CHANNELS',\n}\n\n/** @enumType */\nexport type SiteNamespaceWithLiterals =\n | SiteNamespace\n | 'SITE_NAMESPACE_UNSPECIFIED'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVES'\n | 'WIX_STORES_TEST_DRIVE'\n | 'UNKNOWN_NAMESPACE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS';\n\n/** An app installed on a site. */\nexport interface InstalledApp {\n /**\n * The app's definition ID (unique identifier for the app).\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version. Either `\"V1\"` or `\"V3\"`.\n * Only present when the app is Wix Stores; absent for all other apps.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n /**\n * Whether this installed app is a headless OAuth app (an auth client for\n * minting visitor/member tokens, not a functional site app). Details for\n * these apps appear in the site's `oauth_apps` list.\n */\n oauthApp?: boolean;\n /**\n * The Wix Invoices version. Either `\"V1\"` or `\"V2\"`.\n * Only present when the app is Wix Invoices; absent for all other apps.\n * @maxLength 20\n */\n invoicesVersion?: string | null;\n /**\n * `true` when this installed app is the site's companion app: the private,\n * per-site Dev Center app that holds a Studio 2 site's code. Absent for every\n * other app, and for sites that are not Studio 2. A site gets its companion\n * app the first time code is generated for it.\n */\n companionApp?: boolean | null;\n}\n\n/** Site-level properties from the SiteProperties service. */\nexport interface SiteProperties {\n /** Site locale. */\n locale?: SiteLocale;\n /**\n * Site language code (e.g., \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Payment currency code (e.g., \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g., \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n /**\n * Contact email.\n * @maxLength 500\n */\n email?: string;\n /**\n * Contact phone.\n * @maxLength 100\n */\n phone?: string;\n /** Main site address. */\n address?: SiteAddress;\n}\n\n/** Site locale. */\nexport interface SiteLocale {\n /**\n * Two-letter language code in ISO 639-1 alpha-2 format.\n * @maxLength 10\n */\n languageCode?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n}\n\n/** Main site address. Only the country is currently exposed. */\nexport interface SiteAddress {\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @format COUNTRY\n */\n country?: string;\n}\n\n/** A CMS data collection defined on a site. Only user-created (native) collections are included. */\nexport interface CmsCollection {\n /**\n * Collection ID (also used as the collection name in CMS).\n * @maxLength 256\n */\n id?: string;\n /**\n * Human-readable display name.\n * @maxLength 500\n */\n displayName?: string;\n /**\n * Field schemas in this collection.\n * @maxSize 500\n */\n fields?: CmsField[];\n}\n\n/** A field in a CMS data collection. */\nexport interface CmsField {\n /**\n * Field key (used in queries and data operations).\n * @maxLength 256\n */\n key?: string;\n /**\n * Human-readable field name.\n * @maxLength 500\n */\n displayName?: string;\n /** The data type of the field. */\n type?: CmsFieldTypeWithLiterals;\n /**\n * Optional description of the field's purpose.\n * @maxLength 1000\n */\n description?: string;\n /** Whether this is a system field (`_id`, `_createdDate`, etc.). */\n systemField?: boolean;\n /**\n * For `REFERENCE` / `MULTI_REFERENCE` fields: the referenced collection ID.\n * @maxLength 256\n */\n referencedCollection?: string;\n}\n\n/** Data type of a CMS collection field. Subset of the CMS DataCollectionService Field.Type enum. */\nexport enum CmsFieldType {\n /** Unknown or unsupported field type. */\n UNKNOWN_FIELD_TYPE = 'UNKNOWN_FIELD_TYPE',\n /** Plain text. */\n TEXT = 'TEXT',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Date (without time). */\n DATE = 'DATE',\n /** Date and time. */\n DATETIME = 'DATETIME',\n /** Image URL. */\n IMAGE = 'IMAGE',\n /** Boolean. */\n BOOLEAN = 'BOOLEAN',\n /** Document URL. */\n DOCUMENT = 'DOCUMENT',\n /** URL. */\n URL = 'URL',\n /** Rich text (HTML subset). */\n RICH_TEXT = 'RICH_TEXT',\n /** Video URL. */\n VIDEO = 'VIDEO',\n /** Any type. */\n ANY = 'ANY',\n /** Array of strings. */\n ARRAY_STRING = 'ARRAY_STRING',\n /** Array of documents. */\n ARRAY_DOCUMENT = 'ARRAY_DOCUMENT',\n /** Audio URL. */\n AUDIO = 'AUDIO',\n /** Time string. */\n TIME = 'TIME',\n /** Language code. */\n LANGUAGE = 'LANGUAGE',\n /** Rich content. */\n RICH_CONTENT = 'RICH_CONTENT',\n /** Media gallery. */\n MEDIA_GALLERY = 'MEDIA_GALLERY',\n /** Address object. */\n ADDRESS = 'ADDRESS',\n /** Dynamic page link. */\n PAGE_LINK = 'PAGE_LINK',\n /** Single reference to another collection. */\n REFERENCE = 'REFERENCE',\n /** Multiple references to another collection. */\n MULTI_REFERENCE = 'MULTI_REFERENCE',\n /** JSON object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n}\n\n/** @enumType */\nexport type CmsFieldTypeWithLiterals =\n | CmsFieldType\n | 'UNKNOWN_FIELD_TYPE'\n | 'TEXT'\n | 'NUMBER'\n | 'DATE'\n | 'DATETIME'\n | 'IMAGE'\n | 'BOOLEAN'\n | 'DOCUMENT'\n | 'URL'\n | 'RICH_TEXT'\n | 'VIDEO'\n | 'ANY'\n | 'ARRAY_STRING'\n | 'ARRAY_DOCUMENT'\n | 'AUDIO'\n | 'TIME'\n | 'LANGUAGE'\n | 'RICH_CONTENT'\n | 'MEDIA_GALLERY'\n | 'ADDRESS'\n | 'PAGE_LINK'\n | 'REFERENCE'\n | 'MULTI_REFERENCE'\n | 'OBJECT'\n | 'ARRAY';\n\n/**\n * A headless OAuth app installed on the site — the auth client external\n * (headless) applications use to mint visitor and member tokens.\n */\nexport interface SiteOAuthApp {\n /**\n * OAuth app ID. Equals the installed app's `app_id`, and is also the OAuth\n * `client_id` used with the `anonymous` grant to mint visitor tokens.\n * @format GUID\n * @maxLength 36\n */\n clientId?: string;\n /**\n * Display name of the OAuth app.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Description of the OAuth app.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Domains allowed for redirects from Wix back to the external client\n * (the OAuth app's `allowed_redirect_domains`).\n * @maxSize 20\n * @maxLength 2048\n */\n allowedDomains?: string[];\n /**\n * External login URL, when member authentication happens outside Wix.\n * @maxLength 2048\n */\n loginUrl?: string | null;\n /**\n * External logout URL.\n * @maxLength 2048\n */\n logoutUrl?: string | null;\n /**\n * Application type as declared on the OAuth app (e.g. `WEB_APP`).\n * @maxLength 50\n */\n applicationType?: string;\n /**\n * Technology as declared on the OAuth app (e.g. `NEXTJS`).\n * @maxLength 50\n */\n technology?: string;\n /**\n * Which flow created the OAuth app (e.g. `headless-landing-page`).\n * @maxLength 2048\n */\n origin?: string;\n /** Date and time the OAuth app was created. */\n createdDate?: Date | null;\n}\n\n/** A custom app installed on a site that declares Aria skills and/or MCP tools. */\nexport interface CustomApp {\n /**\n * App ID of the app declaring skills and/or tools.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * App name, as declared by the app.\n * @maxLength 100\n */\n appName?: string | null;\n /** Whether this app declares one or more Aria skills (AppSkillsService). */\n hasSkills?: boolean;\n /** Whether this app declares one or more MCP tools (ToolsHost). */\n hasTools?: boolean;\n}\n\nexport interface SitePaymentProvider {\n /**\n * Payment provider ID, e.g. `payPal`, `stripe`, `NA` (manual/offline payments),\n * or a GUID for Wix Payments and third-party providers.\n * @maxLength 100\n */\n paymentProviderId?: string;\n /**\n * Merchant's account name on the provider's side (may be masked). Safe to display.\n * @maxLength 500\n */\n providerAccountName?: string | null;\n /** Connection status of the provider account. */\n status?: StatusWithLiterals;\n /** Whether the merchant can currently accept payments through this provider. */\n payinsAllowed?: boolean;\n /** Whether the merchant can currently receive payouts from this provider. */\n payoutsAllowed?: boolean;\n /** Action the merchant must take on the provider's side, if any. */\n requiredAction?: RequiredActionWithLiterals;\n /**\n * Payment method types the merchant enabled for this provider, e.g. `creditCard`, `payPal`, `offline`.\n * @maxSize 50\n * @maxLength 100\n */\n enabledPaymentMethodTypes?: string[];\n}\n\nexport enum Status {\n /** Connected; can process payments and receive payouts. */\n OK = 'OK',\n /** Connected; can process payments but cannot receive payouts. */\n ACCEPTING_PAYINS_ONLY = 'ACCEPTING_PAYINS_ONLY',\n /** Connected, but pay-ins and payouts are disabled until the merchant acts on the provider's side. */\n PAYMENTS_BLOCKED = 'PAYMENTS_BLOCKED',\n /** The provider account has not been created yet. */\n ACCOUNT_CREATION_PENDING = 'ACCOUNT_CREATION_PENDING',\n /** Closed by the payment provider; not functional. */\n BLOCKED = 'BLOCKED',\n /** Pay-ins and payouts are blocked because of an issue with the account. */\n SUSPENDED = 'SUSPENDED',\n /** Provider account creation failed. */\n ACCOUNT_CREATION_FAILED = 'ACCOUNT_CREATION_FAILED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'OK'\n | 'ACCEPTING_PAYINS_ONLY'\n | 'PAYMENTS_BLOCKED'\n | 'ACCOUNT_CREATION_PENDING'\n | 'BLOCKED'\n | 'SUSPENDED'\n | 'ACCOUNT_CREATION_FAILED';\n\nexport enum RequiredAction {\n /** Nothing to do. */\n NONE = 'NONE',\n /** Merchant must claim the account on the provider's side to enable payouts. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT',\n /** Merchant must claim the account to enable payouts and avoid suspension (pay-ins already received). */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION',\n /** Merchant must claim the account on the provider's side to enable pay-ins. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYIN = 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN',\n}\n\n/** @enumType */\nexport type RequiredActionWithLiterals =\n | RequiredAction\n | 'NONE'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN';\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\n/** Partner account context for accounts that own a Wix Partner Dashboard. */\nexport interface PartnerContext {\n /** Whether the calling account has a Partner Dashboard. */\n partner?: boolean;\n /**\n * Partner Dashboard metasite ID.\n * @format GUID\n * @maxLength 36\n */\n dashboardSiteId?: string | null;\n /**\n * Partner Dashboard URL.\n * @maxLength 2048\n */\n dashboardUrl?: string | null;\n}\n\n/** Request to retrieve dynamic context rendered as markdown. */\nexport interface GetDynamicContextMarkdownRequest\n extends GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /** Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100). */\n query?: CursorQuery;\n /** Include the partner-account section when the calling account owns a Partner Dashboard. */\n includePartnerContext?: boolean;\n /** Include the account header section (account name, ID, status, dates). */\n includeAccountContext?: boolean;\n}\n\n/** @oneof */\nexport interface GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/** Response containing the rendered markdown report. */\nexport interface GetDynamicContextMarkdownResponse {\n /**\n * The markdown report. Byte-identical to the `@wix/dynamic-context-enricher` renderer output.\n * @maxLength 1000000\n */\n markdown?: string;\n}\n\n/** Request for the public visitor site context. The calling token determines the site. */\nexport interface GetVisitorSiteContextRequest {}\n\n/** The public context of a single site, as any visitor may see it. */\nexport interface GetVisitorSiteContextResponse {\n /** Site basics: identifier, display name, locale settings. */\n site?: VisitorSite;\n /** Public business information, as shown on the live site. */\n business?: VisitorBusinessInfo;\n /**\n * Visitor-relevant apps installed on the site. Only apps a visitor can\n * interact with are listed; all other installed apps are omitted.\n * @maxSize 20\n */\n installedApps?: VisitorInstalledApp[];\n}\n\n/** Public-facing basics of a site. */\nexport interface VisitorSite {\n /**\n * Site identifier.\n * @format GUID\n * @maxLength 36\n */\n id?: string;\n /**\n * Site display name.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Site language code (e.g. \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n /**\n * Payment currency code (e.g. \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g. \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n}\n\n/** Public business information of a site — the details shown to visitors on the live site. */\nexport interface VisitorBusinessInfo {\n /**\n * Business name.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Business description.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Public contact email.\n * @maxLength 500\n */\n email?: string | null;\n /**\n * Public contact phone.\n * @maxLength 100\n */\n phone?: string | null;\n /**\n * Formatted business address.\n * @maxLength 1000\n */\n address?: string | null;\n}\n\n/** A visitor-relevant app installed on the site. */\nexport interface VisitorInstalledApp {\n /** The app. */\n app?: VisitorAppWithLiterals;\n /**\n * The app's definition ID.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version, `\"V1\"` or `\"V3\"`. Only present for STORES.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n}\n\n/** Apps a site visitor can interact with. */\nexport enum VisitorApp {\n /** Default value. Not used. */\n VISITOR_APP_UNSPECIFIED = 'VISITOR_APP_UNSPECIFIED',\n /** Wix Stores. */\n STORES = 'STORES',\n /** Wix Bookings. */\n BOOKINGS = 'BOOKINGS',\n /** Wix Events & Tickets. */\n EVENTS = 'EVENTS',\n /** Wix Blog. */\n BLOG = 'BLOG',\n /** Wix Pricing Plans. */\n PRICING_PLANS = 'PRICING_PLANS',\n /** Wix Restaurants Menus. */\n RESTAURANTS_MENUS = 'RESTAURANTS_MENUS',\n /** Wix Table Reservations. */\n TABLE_RESERVATIONS = 'TABLE_RESERVATIONS',\n /** Wix Reviews. */\n REVIEWS = 'REVIEWS',\n /** Wix eCommerce platform (cart and checkout). */\n ECOM = 'ECOM',\n}\n\n/** @enumType */\nexport type VisitorAppWithLiterals =\n | VisitorApp\n | 'VISITOR_APP_UNSPECIFIED'\n | 'STORES'\n | 'BOOKINGS'\n | 'EVENTS'\n | 'BLOG'\n | 'PRICING_PLANS'\n | 'RESTAURANTS_MENUS'\n | 'TABLE_RESERVATIONS'\n | 'REVIEWS'\n | 'ECOM';\n\n/** Request for the public visitor site context rendered as markdown. */\nexport interface GetVisitorSiteContextMarkdownRequest {}\n\n/** Response containing the rendered markdown report of the visitor site context. */\nexport interface GetVisitorSiteContextMarkdownResponse {\n /**\n * The markdown report.\n * @maxLength 100000\n */\n markdown?: string;\n}\n","import * as ambassadorWixDynamicContextV1DynamicContext from './dynamic-context-v1-dynamic-context-dynamic-context.http.js';\nimport * as ambassadorWixDynamicContextV1DynamicContextTypes from './dynamic-context-v1-dynamic-context-dynamic-context.types.js';\nimport * as ambassadorWixDynamicContextV1DynamicContextUniversalTypes from './dynamic-context-v1-dynamic-context-dynamic-context.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDynamicContext(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContext(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/dynamic-context',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDynamicContextMarkdown(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextMarkdownResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextMarkdownResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContextMarkdown(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/dynamic-context/markdown',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getVisitorSiteContext(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContext(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/visitor-site-context',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getVisitorSiteContextMarkdown(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextMarkdownResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextMarkdownResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContextMarkdown(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/visitor-site-context/markdown',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DynamicContext as DynamicContextOriginal,\n GetDynamicContextRequest as GetDynamicContextRequestOriginal,\n GetDynamicContextRequestSiteFilterOneOf as GetDynamicContextRequestSiteFilterOneOfOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n GetDynamicContextResponse as GetDynamicContextResponseOriginal,\n Account as AccountOriginal,\n AccountStatus as AccountStatusOriginal,\n AccountStatusWithLiterals as AccountStatusWithLiteralsOriginal,\n Site as SiteOriginal,\n EditorType as EditorTypeOriginal,\n EditorTypeWithLiterals as EditorTypeWithLiteralsOriginal,\n SiteNamespace as SiteNamespaceOriginal,\n SiteNamespaceWithLiterals as SiteNamespaceWithLiteralsOriginal,\n InstalledApp as InstalledAppOriginal,\n SiteProperties as SitePropertiesOriginal,\n SiteLocale as SiteLocaleOriginal,\n SiteAddress as SiteAddressOriginal,\n CmsCollection as CmsCollectionOriginal,\n CmsField as CmsFieldOriginal,\n CmsFieldType as CmsFieldTypeOriginal,\n CmsFieldTypeWithLiterals as CmsFieldTypeWithLiteralsOriginal,\n SiteOAuthApp as SiteOAuthAppOriginal,\n CustomApp as CustomAppOriginal,\n SitePaymentProvider as SitePaymentProviderOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n RequiredAction as RequiredActionOriginal,\n RequiredActionWithLiterals as RequiredActionWithLiteralsOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n PartnerContext as PartnerContextOriginal,\n GetDynamicContextMarkdownRequest as GetDynamicContextMarkdownRequestOriginal,\n GetDynamicContextMarkdownRequestSiteFilterOneOf as GetDynamicContextMarkdownRequestSiteFilterOneOfOriginal,\n GetDynamicContextMarkdownResponse as GetDynamicContextMarkdownResponseOriginal,\n GetVisitorSiteContextRequest as GetVisitorSiteContextRequestOriginal,\n GetVisitorSiteContextResponse as GetVisitorSiteContextResponseOriginal,\n VisitorSite as VisitorSiteOriginal,\n VisitorBusinessInfo as VisitorBusinessInfoOriginal,\n VisitorInstalledApp as VisitorInstalledAppOriginal,\n VisitorApp as VisitorAppOriginal,\n VisitorAppWithLiterals as VisitorAppWithLiteralsOriginal,\n GetVisitorSiteContextMarkdownRequest as GetVisitorSiteContextMarkdownRequestOriginal,\n GetVisitorSiteContextMarkdownResponse as GetVisitorSiteContextMarkdownResponseOriginal,\n} from './dynamic-context-v1-dynamic-context-dynamic-context.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,qCAAAC;AAAA;AAAA;;;ACAA,uBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,sBAAsB;AAAA,EAC9B,EAAE,MAAM,sBAAsB;AAAA,EAC9B,EAAE,MAAM,oBAAoB;AAAA,EAC5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QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC,sBAAsB,OAAO;AAE3E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getDynamicContext","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown","payload","SortOrder","AccountStatus","EditorType","SiteNamespace","CmsFieldType","Status","RequiredAction","VisitorApp","getDynamicContext","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.http.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.types.ts","../../src/dynamic-context-v1-dynamic-context-dynamic-context.meta.ts"],"sourcesContent":["export * from './src/dynamic-context-v1-dynamic-context-dynamic-context.meta.js';\n","import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'account.createdDate' },\n { path: 'account.updatedDate' },\n { path: 'sites.createdDate' },\n { path: 'sites.updatedDate' },\n { path: 'sites.oauthApps.createdDate' },\n];\n\nfunction resolveWixDynamicContextV1DynamicContextServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'dev._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/dynamic-context',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/dynamic-context',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_dynamic-context_dynamic-context';\n\n/**\n * Retrieves aggregated context for the caller's sites and account.\n *\n * Returns enriched site information including installed apps, editor type,\n * Velo status, and account details. Results are paginated using cursor-based paging.\n *\n * You can optionally filter by a single site ID or site display name.\n * When no filter is provided, all of the caller's sites are returned.\n */\nexport function getDynamicContext(payload: object): RequestOptionsFactory<any> {\n function __getDynamicContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDynamicContext;\n}\n\n/**\n * Retrieves the same aggregated context as `GetDynamicContext`, rendered as a\n * markdown report. The markdown is byte-identical to the output of the\n * `@wix/dynamic-context-enricher` package used by the Wix MCP.\n */\nexport function getDynamicContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDynamicContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetDynamicContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/dynamic-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getDynamicContextMarkdown;\n}\n\n/**\n * Retrieves the public context of the site the calling token is scoped to,\n * as any site visitor may see it: site basics, public business info, and\n * visitor-relevant installed apps. Callable with visitor and member tokens\n * (headless OAuth `anonymous` grant), as well as app-instance and user tokens.\n *\n * The token determines the site — the request takes no parameters.\n * Unpublished or deleted sites return NOT_FOUND.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContext(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContext({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContext',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContext;\n}\n\n/**\n * Retrieves the same public site context as `GetVisitorSiteContext`,\n * rendered as a markdown report ready to be passed directly to an LLM.\n *\n * > **Note:** This method is not yet enabled and currently returns an empty response.\n */\nexport function getVisitorSiteContextMarkdown(\n payload: object\n): RequestOptionsFactory<any> {\n function __getVisitorSiteContextMarkdown({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.dynamic.context.v1.dynamic_context',\n method: 'POST' as any,\n methodFqn:\n 'wix.dynamic.context.v1.DynamicContextService.GetVisitorSiteContextMarkdown',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDynamicContextV1DynamicContextServiceUrl({\n protoPath: '/v1/visitor-site-context/markdown',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getVisitorSiteContextMarkdown;\n}\n","/** The Dynamic Site Context entity represents an aggregated view of a user's sites and account metadata. */\nexport interface DynamicContext {\n /**\n * Unique identifier for this dynamic context instance.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n}\n\n/** Request to retrieve dynamic context. Optionally filter by a single site. */\nexport interface GetDynamicContextRequest\n extends GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /**\n * Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100).\n * Pass the cursor from a previous response's `paging_metadata.cursors.next` to fetch the next page.\n * `query.filter` optionally accepts a Site-List filter and replaces the default\n * namespace filtering; `query.sort` is not supported and is ignored.\n */\n query?: CursorQuery;\n}\n\n/** @oneof */\nexport interface GetDynamicContextRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/** Response containing the caller's account and site context. */\nexport interface GetDynamicContextResponse {\n /** Account-level information for the calling user. */\n account?: Account;\n /**\n * Enriched context for each matching site, including installed apps and editor metadata.\n * Results are ordered by site creation date and limited to the requested page size.\n * @maxSize 100\n */\n sites?: Site[];\n /** Cursor-based paging metadata. Use `cursors.next` to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /** Partner account context. Present only when partner context resolution is enabled and a Partner Dashboard is found. */\n partnerContext?: PartnerContext;\n}\n\n/** Information about the calling user's Wix account. */\nexport interface Account {\n /**\n * Unique account identifier.\n * @format GUID\n * @maxLength 36\n */\n id?: string;\n /** Date and time the account was created. */\n createdDate?: Date | null;\n /** Date and time the account was last modified. */\n updatedDate?: Date | null;\n /**\n * The account holder's display name. This field contains PII.\n * @maxLength 500\n */\n displayName?: string | null;\n /** Current status of the account. */\n status?: AccountStatusWithLiterals;\n /**\n * Co-branding partner label, if the account was created through a partner program.\n * @maxLength 50\n */\n coBranding?: string | null;\n}\n\n/** Status of a Wix account. */\nexport enum AccountStatus {\n /** Default value. Not used. */\n ACCOUNT_STATUS_UNSPECIFIED = 'ACCOUNT_STATUS_UNSPECIFIED',\n /** The account is active and in good standing. */\n ACTIVE = 'ACTIVE',\n /** The account has been blocked by Wix. */\n BLOCKED = 'BLOCKED',\n /** The account has been deleted. */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type AccountStatusWithLiterals =\n | AccountStatus\n | 'ACCOUNT_STATUS_UNSPECIFIED'\n | 'ACTIVE'\n | 'BLOCKED'\n | 'DELETED';\n\n/** Detailed information about a single site, enriched with app and editor metadata. */\nexport interface Site {\n /**\n * Unique site identifier.\n * @format GUID\n * @maxLength 36\n */\n id?: string;\n /**\n * Human-readable site name as shown in the dashboard.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Published site URL. Only present for published sites with a live URL.\n * @maxLength 2048\n */\n url?: string | null;\n /** Date and time the site was created. */\n createdDate?: Date | null;\n /** Date and time the site was last modified. */\n updatedDate?: Date | null;\n /** Whether the site is currently published and accessible to visitors. */\n published?: boolean;\n /** Whether the site has an active Wix Premium plan. */\n premium?: boolean;\n /**\n * Account ID of the site owner.\n * @format GUID\n */\n ownerAccountId?: string;\n /** The editor type used to build and manage this site (e.g., `WIX`, `STUDIO`, `EDITOR_X`). */\n editorType?: EditorTypeWithLiterals;\n /** The origin or creation source of this site (e.g., `WIX`, `HEADLESS`, `RISE`). */\n namespace?: SiteNamespaceWithLiterals;\n /** Whether a custom domain (non-Wix) is connected to this site. */\n domainConnected?: boolean;\n /**\n * List of apps currently installed and enabled on this site.\n * @maxSize 500\n */\n installedApps?: InstalledApp[];\n /** Whether Velo by Wix (Wix Code) is enabled on this site. */\n veloEnabled?: boolean | null;\n /** Site-level properties such as language, locale, timezone, and currency. */\n properties?: SiteProperties;\n /**\n * CMS data collections defined on this site. Limited to the first 20 native collections.\n * @maxSize 20\n */\n cmsCollections?: CmsCollection[];\n /**\n * Headless OAuth apps installed on this site. Each also appears in\n * `installed_apps` with `is_oauth_app` set.\n * @maxSize 20\n */\n oauthApps?: SiteOAuthApp[];\n /**\n * Custom (non-first-party) apps installed on this site that expose Aria\n * skills and/or MCP tools, via the App Market AppSkillsService and\n * ToolsHost APIs. Names only — call the app's own skill/tool APIs for\n * full definitions (description, request/response schema, guidelines).\n * Renamed from `custom_apps_with_skills_tools` before this field shipped\n * to any released client — no existing consumers to break. Flynt's\n * renamed-field-breaking-change is a stateful rule, so it can't be\n * suppressed with a flynt-disable comment; instead skipped via a\n * \"#skip-stateful-flynt\" commit (see wix-private/flynt's\n * stateful-rule-disabled-by-comment rule README).\n * @maxSize 30\n */\n customApps?: CustomApp[];\n /**\n * Payment provider accounts connected on this site, as configured in the\n * site's Accept Payments settings. Only fetched when Wix Payments is installed.\n * @maxSize 50\n */\n paymentProviders?: SitePaymentProvider[];\n}\n\nexport enum EditorType {\n EDITOR_TYPE_UNSPECIFIED = 'EDITOR_TYPE_UNSPECIFIED',\n /** Classic Editor. */\n WIX = 'WIX',\n /** Studio Editor. */\n STUDIO = 'STUDIO',\n /** EditorX. */\n EDITOR_X = 'EDITOR_X',\n /** Editor3. */\n EDITOR_3 = 'EDITOR_3',\n /** Wix Vibe. */\n WIX_VIBE = 'WIX_VIBE',\n /** Blocks Editor. */\n BLOCKS = 'BLOCKS',\n /** Mobile Widget Builder. */\n MOBILE_WIDGET_BUILDER = 'MOBILE_WIDGET_BUILDER',\n /** Classic Editor (legacy alias). */\n EDITOR = 'EDITOR',\n /** Studio 2. */\n STUDIO_TWO = 'STUDIO_TWO',\n /** ADI (Artificial Design Intelligence). */\n ADI = 'ADI',\n /** Wixel Editor. */\n WIXEL = 'WIXEL',\n /** Picasso Editor. */\n PICASSO = 'PICASSO',\n /** Editorless (no editor site). */\n EDITORLESS = 'EDITORLESS',\n /** OD Editor. */\n ODEDITOR = 'ODEDITOR',\n /** Unknown (source default). */\n UNKNOWN = 'UNKNOWN',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'EDITOR_TYPE_UNSPECIFIED'\n | 'WIX'\n | 'STUDIO'\n | 'EDITOR_X'\n | 'EDITOR_3'\n | 'WIX_VIBE'\n | 'BLOCKS'\n | 'MOBILE_WIDGET_BUILDER'\n | 'EDITOR'\n | 'STUDIO_TWO'\n | 'ADI'\n | 'WIXEL'\n | 'PICASSO'\n | 'EDITORLESS'\n | 'ODEDITOR'\n | 'UNKNOWN';\n\n/** The origin or creation source of a site. */\nexport enum SiteNamespace {\n SITE_NAMESPACE_UNSPECIFIED = 'SITE_NAMESPACE_UNSPECIFIED',\n /** Standard Wix Editor site. */\n WIX = 'WIX',\n /** Wix ShoutOut email marketing. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** Wix Photo Albums. */\n ALBUMS = 'ALBUMS',\n /** Wix Stores test-drive sites. */\n WIX_STORES_TEST_DRIVES = 'WIX_STORES_TEST_DRIVES',\n /** Wix Stores test-drive (singular alias). */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Unknown namespace (default source value). */\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Wix Hotels vertical. */\n HOTELS = 'HOTELS',\n /** Wix Clubs (community groups). */\n CLUBS = 'CLUBS',\n /** Onboarding draft site (created during signup flow). */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** Developer / sandbox site. */\n DEV_SITE = 'DEV_SITE',\n /** Wix Logo Maker. */\n LOGOS = 'LOGOS',\n /** Wix Video Maker. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** Wix Partner Dashboard site. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** Wix Dev Center company site. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /** HTML-based draft site. */\n HTML_DRAFT = 'HTML_DRAFT',\n /** Business entity without a published site. */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Creator Economy platform. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** Dashboard-first experience (site created from dashboard). */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Wix Anywhere (mobile-first creation). */\n ANYWHERE = 'ANYWHERE',\n /** Headless / API-only site (no visual editor). */\n HEADLESS = 'HEADLESS',\n /** Account-level master CMS. */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Wix Rise platform. */\n RISE = 'RISE',\n /** Branded-first creation flow. */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia AI site builder. */\n NOWNIA = 'NOWNIA',\n /** User-generated content template. */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux visual IDE. */\n CODUX = 'CODUX',\n /** Media / design creator tool. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /** Shared blog for enterprise accounts. */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone Forms app site. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone Events app site. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** Mimir platform. */\n MIMIR = 'MIMIR',\n /** Twins platform. */\n TWINS = 'TWINS',\n /** Nano lightweight site. */\n NANO = 'NANO',\n /** Base44 platform. */\n BASE44 = 'BASE44',\n /** Channels platform. */\n CHANNELS = 'CHANNELS',\n}\n\n/** @enumType */\nexport type SiteNamespaceWithLiterals =\n | SiteNamespace\n | 'SITE_NAMESPACE_UNSPECIFIED'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVES'\n | 'WIX_STORES_TEST_DRIVE'\n | 'UNKNOWN_NAMESPACE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS';\n\n/** An app installed on a site. */\nexport interface InstalledApp {\n /**\n * The app's definition ID (unique identifier for the app).\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version. Either `\"V1\"` or `\"V3\"`.\n * Only present when the app is Wix Stores; absent for all other apps.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n /**\n * Whether this installed app is a headless OAuth app (an auth client for\n * minting visitor/member tokens, not a functional site app). Details for\n * these apps appear in the site's `oauth_apps` list.\n */\n oauthApp?: boolean;\n /**\n * The Wix Invoices version. Either `\"V1\"` or `\"V2\"`.\n * Only present when the app is Wix Invoices; absent for all other apps.\n * @maxLength 20\n */\n invoicesVersion?: string | null;\n /**\n * `true` when this installed app is the site's companion app: the private,\n * per-site Dev Center app that holds a Studio 2 site's code. Absent for every\n * other app, for sites that are not Studio 2, and while the companion app\n * has no extensions (monitoring extensions don't count). A site gets its\n * companion app the first time code is generated for it.\n */\n companionApp?: boolean | null;\n}\n\n/** Site-level properties from the SiteProperties service. */\nexport interface SiteProperties {\n /** Site locale. */\n locale?: SiteLocale;\n /**\n * Site language code (e.g., \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Payment currency code (e.g., \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g., \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n /**\n * Contact email.\n * @maxLength 500\n */\n email?: string;\n /**\n * Contact phone.\n * @maxLength 100\n */\n phone?: string;\n /** Main site address. */\n address?: SiteAddress;\n}\n\n/** Site locale. */\nexport interface SiteLocale {\n /**\n * Two-letter language code in ISO 639-1 alpha-2 format.\n * @maxLength 10\n */\n languageCode?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n}\n\n/** Main site address. Only the country is currently exposed. */\nexport interface SiteAddress {\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @format COUNTRY\n */\n country?: string;\n}\n\n/** A CMS data collection defined on a site. Only user-created (native) collections are included. */\nexport interface CmsCollection {\n /**\n * Collection ID (also used as the collection name in CMS).\n * @maxLength 256\n */\n id?: string;\n /**\n * Human-readable display name.\n * @maxLength 500\n */\n displayName?: string;\n /**\n * Field schemas in this collection.\n * @maxSize 500\n */\n fields?: CmsField[];\n}\n\n/** A field in a CMS data collection. */\nexport interface CmsField {\n /**\n * Field key (used in queries and data operations).\n * @maxLength 256\n */\n key?: string;\n /**\n * Human-readable field name.\n * @maxLength 500\n */\n displayName?: string;\n /** The data type of the field. */\n type?: CmsFieldTypeWithLiterals;\n /**\n * Optional description of the field's purpose.\n * @maxLength 1000\n */\n description?: string;\n /** Whether this is a system field (`_id`, `_createdDate`, etc.). */\n systemField?: boolean;\n /**\n * For `REFERENCE` / `MULTI_REFERENCE` fields: the referenced collection ID.\n * @maxLength 256\n */\n referencedCollection?: string;\n}\n\n/** Data type of a CMS collection field. Subset of the CMS DataCollectionService Field.Type enum. */\nexport enum CmsFieldType {\n /** Unknown or unsupported field type. */\n UNKNOWN_FIELD_TYPE = 'UNKNOWN_FIELD_TYPE',\n /** Plain text. */\n TEXT = 'TEXT',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Date (without time). */\n DATE = 'DATE',\n /** Date and time. */\n DATETIME = 'DATETIME',\n /** Image URL. */\n IMAGE = 'IMAGE',\n /** Boolean. */\n BOOLEAN = 'BOOLEAN',\n /** Document URL. */\n DOCUMENT = 'DOCUMENT',\n /** URL. */\n URL = 'URL',\n /** Rich text (HTML subset). */\n RICH_TEXT = 'RICH_TEXT',\n /** Video URL. */\n VIDEO = 'VIDEO',\n /** Any type. */\n ANY = 'ANY',\n /** Array of strings. */\n ARRAY_STRING = 'ARRAY_STRING',\n /** Array of documents. */\n ARRAY_DOCUMENT = 'ARRAY_DOCUMENT',\n /** Audio URL. */\n AUDIO = 'AUDIO',\n /** Time string. */\n TIME = 'TIME',\n /** Language code. */\n LANGUAGE = 'LANGUAGE',\n /** Rich content. */\n RICH_CONTENT = 'RICH_CONTENT',\n /** Media gallery. */\n MEDIA_GALLERY = 'MEDIA_GALLERY',\n /** Address object. */\n ADDRESS = 'ADDRESS',\n /** Dynamic page link. */\n PAGE_LINK = 'PAGE_LINK',\n /** Single reference to another collection. */\n REFERENCE = 'REFERENCE',\n /** Multiple references to another collection. */\n MULTI_REFERENCE = 'MULTI_REFERENCE',\n /** JSON object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n}\n\n/** @enumType */\nexport type CmsFieldTypeWithLiterals =\n | CmsFieldType\n | 'UNKNOWN_FIELD_TYPE'\n | 'TEXT'\n | 'NUMBER'\n | 'DATE'\n | 'DATETIME'\n | 'IMAGE'\n | 'BOOLEAN'\n | 'DOCUMENT'\n | 'URL'\n | 'RICH_TEXT'\n | 'VIDEO'\n | 'ANY'\n | 'ARRAY_STRING'\n | 'ARRAY_DOCUMENT'\n | 'AUDIO'\n | 'TIME'\n | 'LANGUAGE'\n | 'RICH_CONTENT'\n | 'MEDIA_GALLERY'\n | 'ADDRESS'\n | 'PAGE_LINK'\n | 'REFERENCE'\n | 'MULTI_REFERENCE'\n | 'OBJECT'\n | 'ARRAY';\n\n/**\n * A headless OAuth app installed on the site — the auth client external\n * (headless) applications use to mint visitor and member tokens.\n */\nexport interface SiteOAuthApp {\n /**\n * OAuth app ID. Equals the installed app's `app_id`, and is also the OAuth\n * `client_id` used with the `anonymous` grant to mint visitor tokens.\n * @format GUID\n * @maxLength 36\n */\n clientId?: string;\n /**\n * Display name of the OAuth app.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Description of the OAuth app.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Domains allowed for redirects from Wix back to the external client\n * (the OAuth app's `allowed_redirect_domains`).\n * @maxSize 20\n * @maxLength 2048\n */\n allowedDomains?: string[];\n /**\n * External login URL, when member authentication happens outside Wix.\n * @maxLength 2048\n */\n loginUrl?: string | null;\n /**\n * External logout URL.\n * @maxLength 2048\n */\n logoutUrl?: string | null;\n /**\n * Application type as declared on the OAuth app (e.g. `WEB_APP`).\n * @maxLength 50\n */\n applicationType?: string;\n /**\n * Technology as declared on the OAuth app (e.g. `NEXTJS`).\n * @maxLength 50\n */\n technology?: string;\n /**\n * Which flow created the OAuth app (e.g. `headless-landing-page`).\n * @maxLength 2048\n */\n origin?: string;\n /** Date and time the OAuth app was created. */\n createdDate?: Date | null;\n}\n\n/** A custom app installed on a site that declares Aria skills and/or MCP tools. */\nexport interface CustomApp {\n /**\n * App ID of the app declaring skills and/or tools.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * App name, as declared by the app.\n * @maxLength 100\n */\n appName?: string | null;\n /** Whether this app declares one or more Aria skills (AppSkillsService). */\n hasSkills?: boolean;\n /** Whether this app declares one or more MCP tools (ToolsHost). */\n hasTools?: boolean;\n}\n\nexport interface SitePaymentProvider {\n /**\n * Payment provider ID, e.g. `payPal`, `stripe`, `NA` (manual/offline payments),\n * or a GUID for Wix Payments and third-party providers.\n * @maxLength 100\n */\n paymentProviderId?: string;\n /**\n * Merchant's account name on the provider's side (may be masked). Safe to display.\n * @maxLength 500\n */\n providerAccountName?: string | null;\n /** Connection status of the provider account. */\n status?: StatusWithLiterals;\n /** Whether the merchant can currently accept payments through this provider. */\n payinsAllowed?: boolean;\n /** Whether the merchant can currently receive payouts from this provider. */\n payoutsAllowed?: boolean;\n /** Action the merchant must take on the provider's side, if any. */\n requiredAction?: RequiredActionWithLiterals;\n /**\n * Payment method types the merchant enabled for this provider, e.g. `creditCard`, `payPal`, `offline`.\n * @maxSize 50\n * @maxLength 100\n */\n enabledPaymentMethodTypes?: string[];\n}\n\nexport enum Status {\n /** Connected; can process payments and receive payouts. */\n OK = 'OK',\n /** Connected; can process payments but cannot receive payouts. */\n ACCEPTING_PAYINS_ONLY = 'ACCEPTING_PAYINS_ONLY',\n /** Connected, but pay-ins and payouts are disabled until the merchant acts on the provider's side. */\n PAYMENTS_BLOCKED = 'PAYMENTS_BLOCKED',\n /** The provider account has not been created yet. */\n ACCOUNT_CREATION_PENDING = 'ACCOUNT_CREATION_PENDING',\n /** Closed by the payment provider; not functional. */\n BLOCKED = 'BLOCKED',\n /** Pay-ins and payouts are blocked because of an issue with the account. */\n SUSPENDED = 'SUSPENDED',\n /** Provider account creation failed. */\n ACCOUNT_CREATION_FAILED = 'ACCOUNT_CREATION_FAILED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'OK'\n | 'ACCEPTING_PAYINS_ONLY'\n | 'PAYMENTS_BLOCKED'\n | 'ACCOUNT_CREATION_PENDING'\n | 'BLOCKED'\n | 'SUSPENDED'\n | 'ACCOUNT_CREATION_FAILED';\n\nexport enum RequiredAction {\n /** Nothing to do. */\n NONE = 'NONE',\n /** Merchant must claim the account on the provider's side to enable payouts. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT',\n /** Merchant must claim the account to enable payouts and avoid suspension (pay-ins already received). */\n CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION = 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION',\n /** Merchant must claim the account on the provider's side to enable pay-ins. */\n CLAIM_ACCOUNT_TO_ENABLE_PAYIN = 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN',\n}\n\n/** @enumType */\nexport type RequiredActionWithLiterals =\n | RequiredAction\n | 'NONE'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYOUT_AND_AVOID_SUSPENSION'\n | 'CLAIM_ACCOUNT_TO_ENABLE_PAYIN';\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\n/** Partner account context for accounts that own a Wix Partner Dashboard. */\nexport interface PartnerContext {\n /** Whether the calling account has a Partner Dashboard. */\n partner?: boolean;\n /**\n * Partner Dashboard metasite ID.\n * @format GUID\n * @maxLength 36\n */\n dashboardSiteId?: string | null;\n /**\n * Partner Dashboard URL.\n * @maxLength 2048\n */\n dashboardUrl?: string | null;\n}\n\n/** Request to retrieve dynamic context rendered as markdown. */\nexport interface GetDynamicContextMarkdownRequest\n extends GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n /** Cursor-based pagination. Use `query.paging.limit` to control page size (default: 10, max: 100). */\n query?: CursorQuery;\n /** Include the partner-account section when the calling account owns a Partner Dashboard. */\n includePartnerContext?: boolean;\n /** Include the account header section (account name, ID, status, dates). */\n includeAccountContext?: boolean;\n}\n\n/** @oneof */\nexport interface GetDynamicContextMarkdownRequestSiteFilterOneOf {\n /**\n * Filter results to a single site by its ID (GUID format).\n * When provided, the response contains at most one site.\n * @format GUID\n * @maxLength 36\n */\n siteId?: string;\n /**\n * Filter results to a single site by its display name (exact match).\n * When provided, the response contains at most one site.\n * @maxLength 500\n */\n siteName?: string;\n}\n\n/** Response containing the rendered markdown report. */\nexport interface GetDynamicContextMarkdownResponse {\n /**\n * The markdown report. Byte-identical to the `@wix/dynamic-context-enricher` renderer output.\n * @maxLength 1000000\n */\n markdown?: string;\n}\n\n/** Request for the public visitor site context. The calling token determines the site. */\nexport interface GetVisitorSiteContextRequest {}\n\n/** The public context of a single site, as any visitor may see it. */\nexport interface GetVisitorSiteContextResponse {\n /** Site basics: identifier, display name, locale settings. */\n site?: VisitorSite;\n /** Public business information, as shown on the live site. */\n business?: VisitorBusinessInfo;\n /**\n * Visitor-relevant apps installed on the site. Only apps a visitor can\n * interact with are listed; all other installed apps are omitted.\n * @maxSize 20\n */\n installedApps?: VisitorInstalledApp[];\n}\n\n/** Public-facing basics of a site. */\nexport interface VisitorSite {\n /**\n * Site identifier.\n * @format GUID\n * @maxLength 36\n */\n id?: string;\n /**\n * Site display name.\n * @maxLength 500\n */\n displayName?: string | null;\n /**\n * Site language code (e.g. \"en\").\n * @maxLength 10\n */\n language?: string;\n /**\n * Two-letter country code in ISO-3166 alpha-2 format.\n * @maxLength 10\n */\n country?: string;\n /**\n * Payment currency code (e.g. \"EUR\", \"USD\").\n * @maxLength 10\n */\n paymentCurrency?: string;\n /**\n * IANA timezone identifier (e.g. \"Europe/Dublin\").\n * @maxLength 100\n */\n timeZone?: string;\n}\n\n/** Public business information of a site — the details shown to visitors on the live site. */\nexport interface VisitorBusinessInfo {\n /**\n * Business name.\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Business description.\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Public contact email.\n * @maxLength 500\n */\n email?: string | null;\n /**\n * Public contact phone.\n * @maxLength 100\n */\n phone?: string | null;\n /**\n * Formatted business address.\n * @maxLength 1000\n */\n address?: string | null;\n}\n\n/** A visitor-relevant app installed on the site. */\nexport interface VisitorInstalledApp {\n /** The app. */\n app?: VisitorAppWithLiterals;\n /**\n * The app's definition ID.\n * @format GUID\n * @maxLength 36\n */\n appId?: string;\n /**\n * The Wix Stores catalog version, `\"V1\"` or `\"V3\"`. Only present for STORES.\n * @maxLength 20\n */\n catalogVersion?: string | null;\n}\n\n/** Apps a site visitor can interact with. */\nexport enum VisitorApp {\n /** Default value. Not used. */\n VISITOR_APP_UNSPECIFIED = 'VISITOR_APP_UNSPECIFIED',\n /** Wix Stores. */\n STORES = 'STORES',\n /** Wix Bookings. */\n BOOKINGS = 'BOOKINGS',\n /** Wix Events & Tickets. */\n EVENTS = 'EVENTS',\n /** Wix Blog. */\n BLOG = 'BLOG',\n /** Wix Pricing Plans. */\n PRICING_PLANS = 'PRICING_PLANS',\n /** Wix Restaurants Menus. */\n RESTAURANTS_MENUS = 'RESTAURANTS_MENUS',\n /** Wix Table Reservations. */\n TABLE_RESERVATIONS = 'TABLE_RESERVATIONS',\n /** Wix Reviews. */\n REVIEWS = 'REVIEWS',\n /** Wix eCommerce platform (cart and checkout). */\n ECOM = 'ECOM',\n}\n\n/** @enumType */\nexport type VisitorAppWithLiterals =\n | VisitorApp\n | 'VISITOR_APP_UNSPECIFIED'\n | 'STORES'\n | 'BOOKINGS'\n | 'EVENTS'\n | 'BLOG'\n | 'PRICING_PLANS'\n | 'RESTAURANTS_MENUS'\n | 'TABLE_RESERVATIONS'\n | 'REVIEWS'\n | 'ECOM';\n\n/** Request for the public visitor site context rendered as markdown. */\nexport interface GetVisitorSiteContextMarkdownRequest {}\n\n/** Response containing the rendered markdown report of the visitor site context. */\nexport interface GetVisitorSiteContextMarkdownResponse {\n /**\n * The markdown report.\n * @maxLength 100000\n */\n markdown?: string;\n}\n","import * as ambassadorWixDynamicContextV1DynamicContext from './dynamic-context-v1-dynamic-context-dynamic-context.http.js';\nimport * as ambassadorWixDynamicContextV1DynamicContextTypes from './dynamic-context-v1-dynamic-context-dynamic-context.types.js';\nimport * as ambassadorWixDynamicContextV1DynamicContextUniversalTypes from './dynamic-context-v1-dynamic-context-dynamic-context.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDynamicContext(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContext(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/dynamic-context',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDynamicContextMarkdown(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetDynamicContextMarkdownResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetDynamicContextMarkdownResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getDynamicContextMarkdown(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/dynamic-context/markdown',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getVisitorSiteContext(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContext(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/visitor-site-context',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getVisitorSiteContextMarkdown(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextMarkdownRequest,\n ambassadorWixDynamicContextV1DynamicContextUniversalTypes.GetVisitorSiteContextMarkdownResponse,\n ambassadorWixDynamicContextV1DynamicContextTypes.GetVisitorSiteContextMarkdownResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDynamicContextV1DynamicContext.getVisitorSiteContextMarkdown(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/visitor-site-context/markdown',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DynamicContext as DynamicContextOriginal,\n GetDynamicContextRequest as GetDynamicContextRequestOriginal,\n GetDynamicContextRequestSiteFilterOneOf as GetDynamicContextRequestSiteFilterOneOfOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n GetDynamicContextResponse as GetDynamicContextResponseOriginal,\n Account as AccountOriginal,\n AccountStatus as AccountStatusOriginal,\n AccountStatusWithLiterals as AccountStatusWithLiteralsOriginal,\n Site as SiteOriginal,\n EditorType as EditorTypeOriginal,\n EditorTypeWithLiterals as EditorTypeWithLiteralsOriginal,\n SiteNamespace as SiteNamespaceOriginal,\n SiteNamespaceWithLiterals as SiteNamespaceWithLiteralsOriginal,\n InstalledApp as InstalledAppOriginal,\n SiteProperties as SitePropertiesOriginal,\n SiteLocale as SiteLocaleOriginal,\n SiteAddress as SiteAddressOriginal,\n CmsCollection as CmsCollectionOriginal,\n CmsField as CmsFieldOriginal,\n CmsFieldType as CmsFieldTypeOriginal,\n CmsFieldTypeWithLiterals as CmsFieldTypeWithLiteralsOriginal,\n SiteOAuthApp as SiteOAuthAppOriginal,\n CustomApp as CustomAppOriginal,\n SitePaymentProvider as SitePaymentProviderOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n RequiredAction as RequiredActionOriginal,\n RequiredActionWithLiterals as RequiredActionWithLiteralsOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n PartnerContext as PartnerContextOriginal,\n GetDynamicContextMarkdownRequest as GetDynamicContextMarkdownRequestOriginal,\n GetDynamicContextMarkdownRequestSiteFilterOneOf as GetDynamicContextMarkdownRequestSiteFilterOneOfOriginal,\n GetDynamicContextMarkdownResponse as GetDynamicContextMarkdownResponseOriginal,\n GetVisitorSiteContextRequest as GetVisitorSiteContextRequestOriginal,\n GetVisitorSiteContextResponse as GetVisitorSiteContextResponseOriginal,\n VisitorSite as VisitorSiteOriginal,\n VisitorBusinessInfo as VisitorBusinessInfoOriginal,\n VisitorInstalledApp as VisitorInstalledAppOriginal,\n VisitorApp as VisitorAppOriginal,\n VisitorAppWithLiterals as VisitorAppWithLiteralsOriginal,\n GetVisitorSiteContextMarkdownRequest as GetVisitorSiteContextMarkdownRequestOriginal,\n GetVisitorSiteContextMarkdownResponse as GetVisitorSiteContextMarkdownResponseOriginal,\n} from './dynamic-context-v1-dynamic-context-dynamic-context.types.js';\n"],"mappings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,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getDynamicContext","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown","payload","SortOrder","AccountStatus","EditorType","SiteNamespace","CmsFieldType","Status","RequiredAction","VisitorApp","getDynamicContext","getDynamicContextMarkdown","getVisitorSiteContext","getVisitorSiteContextMarkdown"]}